vft 0.0.70 → 0.0.72

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 (1631) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/es/component.js +56 -40
  4. package/es/components/alert/alert.vue2.js +22 -24
  5. package/es/components/aside/style/css.js +2 -0
  6. package/es/components/aside/style/index.js +2 -0
  7. package/es/components/avatar/avatar.vue2.js +14 -16
  8. package/es/components/back-top/back-top.vue2.js +7 -7
  9. package/es/components/button/button-custom.js +2 -4
  10. package/es/components/button/button-group.vue2.js +6 -8
  11. package/es/components/button/button.vue2.js +14 -16
  12. package/es/components/checkbox/checkbox-button.vue2.js +27 -29
  13. package/es/components/checkbox/checkbox-group.vue2.js +5 -7
  14. package/es/components/checkbox/checkbox.vue2.js +30 -32
  15. package/es/components/clamp/clamp.vue2.js +10 -12
  16. package/es/components/clamp-toggle/clamp-toggle.vue2.js +8 -10
  17. package/es/components/col/col.vue.js +4 -0
  18. package/es/components/col/col.vue2.js +60 -0
  19. package/es/components/col/index.js +12 -0
  20. package/es/components/col/style/css.js +2 -0
  21. package/es/components/col/style/index.js +2 -0
  22. package/es/components/col/types.js +1 -0
  23. package/es/components/collapse-transition/src/collapse-transition.vue2.js +5 -7
  24. package/es/components/color-picker/color-picker.vue2.js +2 -4
  25. package/es/components/color-picker/components/hue-slider.vue2.js +2 -4
  26. package/es/components/color-picker/components/predefine.vue2.js +7 -9
  27. package/es/components/color-picker/components/sv-panel.vue2.js +15 -17
  28. package/es/components/color-picker/composables/use-alpha-slider.js +4 -6
  29. package/es/components/config-provider/config-provider.vue2.js +11 -13
  30. package/es/components/config-provider/hooks/use-global-config.js +7 -9
  31. package/es/components/container/aside.vue.js +4 -0
  32. package/es/components/container/aside.vue2.js +37 -0
  33. package/es/components/container/container.vue.js +4 -0
  34. package/es/components/container/container.vue2.js +33 -0
  35. package/es/components/container/footer.vue.js +4 -0
  36. package/es/components/container/footer.vue2.js +39 -0
  37. package/es/components/container/header.vue.js +4 -0
  38. package/es/components/container/header.vue2.js +39 -0
  39. package/es/components/container/index.js +25 -0
  40. package/es/components/container/main.vue.js +4 -0
  41. package/es/components/container/main.vue2.js +26 -0
  42. package/es/components/container/style/css.js +6 -0
  43. package/es/components/container/style/index.js +6 -0
  44. package/es/components/context-menu/context-menu.vue2.js +9 -8
  45. package/es/components/date-picker/composables/use-month-range-header.js +29 -0
  46. package/es/components/date-picker/composables/use-range-picker.js +68 -0
  47. package/es/components/date-picker/composables/use-shortcut.js +24 -0
  48. package/es/components/date-picker/constants.js +4 -0
  49. package/es/components/date-picker/date-picker-com/basic-cell-render.js +37 -0
  50. package/es/components/date-picker/date-picker-com/basic-date-table.vue.js +4 -0
  51. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +206 -0
  52. package/es/components/date-picker/date-picker-com/basic-month-table.vue.js +4 -0
  53. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +131 -0
  54. package/es/components/date-picker/date-picker-com/basic-year-table.vue.js +4 -0
  55. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +85 -0
  56. package/es/components/date-picker/date-picker-com/panel-date-pick.vue.js +4 -0
  57. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +455 -0
  58. package/es/components/date-picker/date-picker-com/panel-date-range.vue.js +4 -0
  59. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +383 -0
  60. package/es/components/date-picker/date-picker-com/panel-month-range.vue.js +4 -0
  61. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +170 -0
  62. package/es/components/date-picker/date-picker.js +81 -0
  63. package/es/components/date-picker/date-picker.type.js +1 -0
  64. package/es/components/date-picker/index.js +14 -0
  65. package/es/components/date-picker/panel-utils.js +17 -0
  66. package/es/components/date-picker/props/basic-cell.js +14 -0
  67. package/es/components/date-picker/props/basic-date-table.js +18 -0
  68. package/es/components/date-picker/props/basic-month-table.js +14 -0
  69. package/es/components/date-picker/props/basic-year-table.js +15 -0
  70. package/es/components/date-picker/props/date-picker.js +18 -0
  71. package/es/components/date-picker/props/panel-date-pick.js +23 -0
  72. package/es/components/date-picker/props/panel-date-range.js +14 -0
  73. package/es/components/date-picker/props/panel-month-range.js +14 -0
  74. package/es/components/date-picker/props/shared.js +56 -0
  75. package/es/components/date-picker/style/css.js +2 -0
  76. package/es/components/date-picker/style/index.js +7 -0
  77. package/es/components/date-picker/utils.js +49 -0
  78. package/es/components/date-time-select/date-time-select.vue2.js +97 -111
  79. package/es/components/date-time-select/style/index.js +6 -0
  80. package/es/components/descriptions/description-item.vue2.js +6 -8
  81. package/es/components/descriptions/description.vue2.js +23 -25
  82. package/es/components/descriptions/descriptions-cell.js +11 -13
  83. package/es/components/descriptions/descriptions-row.vue2.js +13 -15
  84. package/es/components/dialog/dialog-content.vue2.js +9 -11
  85. package/es/components/dialog/dialog.vue2.js +2 -3
  86. package/es/components/dialog/hooks/use-dialog.js +2 -3
  87. package/es/components/divider/divider.vue2.js +7 -9
  88. package/es/components/dropdown/dropdown-item-impl.vue2.js +2 -4
  89. package/es/components/dropdown/dropdown-menu.vue2.js +2 -4
  90. package/es/components/dropdown/dropdown.vue2.js +2 -4
  91. package/es/components/dropdown/useDropdown.js +13 -15
  92. package/es/components/empty/empty.vue2.js +9 -11
  93. package/es/components/footer/style/css.js +2 -0
  94. package/es/components/footer/style/index.js +2 -0
  95. package/es/components/footer-layout/footer-layout.vue2.js +105 -37
  96. package/es/components/form/form-item.vue2.js +2 -4
  97. package/es/components/form/form-label-wrap.js +13 -15
  98. package/es/components/form/form.vue2.js +8 -10
  99. package/es/components/form/hooks/use-form-common-props.js +3 -5
  100. package/es/components/form/hooks/use-form-item.js +14 -16
  101. package/es/components/full-screen/full-screen.vue2.js +5 -7
  102. package/es/components/header/style/css.js +2 -0
  103. package/es/components/header/style/index.js +2 -0
  104. package/es/components/header-layout/header-layout.vue2.js +122 -39
  105. package/es/components/horizontal-menu/horizontal-menu.vue.js +4 -0
  106. package/es/components/horizontal-menu/horizontal-menu.vue2.js +115 -0
  107. package/es/components/horizontal-menu/index.js +12 -0
  108. package/es/components/horizontal-menu/style/css.js +6 -0
  109. package/es/components/horizontal-menu/style/index.js +6 -0
  110. package/es/components/icon/icon.vue2.js +13 -15
  111. package/es/components/icon-text/icon-text.vue2.js +2 -4
  112. package/es/components/iframe-layout/iframe-layout.vue2.js +6 -8
  113. package/es/components/iframe-layout/iframe-page.vue2.js +11 -13
  114. package/es/components/image/image.vue2.js +10 -12
  115. package/es/components/image-viewer/image-viewer.vue2.js +2 -4
  116. package/es/components/index.js +254 -209
  117. package/es/components/input/input.vue2.js +191 -192
  118. package/es/components/link/link.vue2.js +25 -27
  119. package/es/components/list-cell/list-cell.vue2.js +18 -20
  120. package/es/components/loading/loading.js +6 -8
  121. package/es/components/loading/service.js +2 -4
  122. package/es/components/logo/logo.vue2.js +23 -25
  123. package/es/components/main/style/css.js +2 -0
  124. package/es/components/main/style/index.js +2 -0
  125. package/es/components/md-code-demo/md-code-demo.js +2 -4
  126. package/es/components/md-comment/md-comment.vue2.js +8 -10
  127. package/es/components/md-container/md-container.vue2.js +67 -64
  128. package/es/components/md-container/toc.js +1 -1
  129. package/es/components/md-tabs/md-tabs.js +0 -1
  130. package/es/components/md-vue-playground/md-vue-playground.vue2.js +10 -12
  131. package/es/components/menu/menu-collapse-transition.vue2.js +2 -4
  132. package/es/components/menu/menu-item-group.vue2.js +13 -15
  133. package/es/components/menu/menu-item.vue2.js +94 -73
  134. package/es/components/menu/menu.vue2.js +100 -108
  135. package/es/components/menu/sub-menu.vue2.js +83 -82
  136. package/es/components/menu/use-menu-css-var.js +2 -4
  137. package/es/components/multiple-tabs/index.js +15 -9
  138. package/es/components/multiple-tabs/multiple-tabs.vue2.js +50 -45
  139. package/es/components/overlay/overlay.vue2.js +15 -17
  140. package/es/components/page-wrapper/page-wrapper.vue2.js +8 -10
  141. package/es/components/pagination/components/jumper.vue2.js +14 -16
  142. package/es/components/pagination/components/pager.vue2.js +2 -4
  143. package/es/components/pagination/components/sizes.vue2.js +2 -4
  144. package/es/components/pagination/components/total.vue2.js +4 -6
  145. package/es/components/pagination/pagination.vue2.js +7 -9
  146. package/es/components/popover/popover.vue2.js +2 -4
  147. package/es/components/popper/arrow.vue2.js +2 -4
  148. package/es/components/popper/composables/use-content-dom.js +7 -9
  149. package/es/components/popper/composables/use-content.js +2 -4
  150. package/es/components/popper/trigger.vue2.js +2 -4
  151. package/es/components/qrcode/qrcode.vue2.js +8 -10
  152. package/es/components/radio/radio-button.vue2.js +12 -14
  153. package/es/components/radio/radio-group.vue2.js +11 -13
  154. package/es/components/radio/radio.vue2.js +7 -9
  155. package/es/components/result/result.vue2.js +7 -7
  156. package/es/components/router-view-content/router-view-content.vue2.js +6 -8
  157. package/es/components/roving-focus-group/roving-focus-item.vue2.js +10 -12
  158. package/es/components/row/constants.js +4 -0
  159. package/es/components/row/index.js +14 -0
  160. package/es/components/row/row.vue.js +4 -0
  161. package/es/components/row/row.vue2.js +49 -0
  162. package/es/components/row/style/css.js +2 -0
  163. package/es/components/row/style/index.js +2 -0
  164. package/es/components/row/types.js +1 -0
  165. package/es/components/scrollbar/index.js +9 -11
  166. package/es/components/scrollbar/scrollbar.vue2.js +12 -14
  167. package/es/components/scrollbar/thumb.vue2.js +2 -4
  168. package/es/components/search/search.vue2.js +136 -159
  169. package/es/components/select-v2/group-item.vue2.js +2 -4
  170. package/es/components/select-v2/option-item.vue2.js +6 -8
  171. package/es/components/select-v2/select-dropdown.js +2 -4
  172. package/es/components/select-v2/useInput.js +5 -6
  173. package/es/components/select-v2/useSelect.js +19 -21
  174. package/es/components/select-v2/util.js +1 -1
  175. package/es/components/side-menu/side-menu.vue2.js +213 -150
  176. package/es/components/side-menu/use-drag-line.js +29 -28
  177. package/es/components/slot/only-child.js +11 -13
  178. package/es/components/switch/switch.vue2.js +8 -10
  179. package/es/components/table/table.vue2.js +13 -15
  180. package/es/components/tabs/tab-bar.vue2.js +2 -4
  181. package/es/components/tabs/tab-nav.vue2.js +7 -7
  182. package/es/components/tabs/tab-pane.vue2.js +10 -12
  183. package/es/components/tabs/tabs.vue2.js +38 -40
  184. package/es/components/tag/tag.vue2.js +7 -9
  185. package/es/components/time-picker/common/picker.vue.js +4 -0
  186. package/es/components/time-picker/common/picker.vue2.js +438 -0
  187. package/es/components/time-picker/common/props.js +201 -0
  188. package/es/components/time-picker/composables/use-time-panel.js +60 -0
  189. package/es/components/time-picker/composables/use-time-picker.js +40 -0
  190. package/es/components/time-picker/constants.js +17 -0
  191. package/es/components/time-picker/index.js +31 -0
  192. package/es/components/time-picker/props/basic-time-spinner.js +31 -0
  193. package/es/components/time-picker/props/panel-time-picker.js +17 -0
  194. package/es/components/time-picker/props/panel-time-range.js +16 -0
  195. package/es/components/time-picker/props/shared.js +40 -0
  196. package/es/components/time-picker/style/css.js +2 -0
  197. package/es/components/time-picker/style/index.js +2 -0
  198. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue.js +4 -0
  199. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +227 -0
  200. package/es/components/time-picker/time-picker-com/panel-time-pick.vue.js +4 -0
  201. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +107 -0
  202. package/es/components/time-picker/time-picker-com/panel-time-range.vue.js +4 -0
  203. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +190 -0
  204. package/es/components/time-picker/time-picker.js +70 -0
  205. package/es/components/time-picker/types.js +1 -0
  206. package/es/components/time-picker/utils.js +35 -0
  207. package/es/components/time-select/style/css.js +2 -0
  208. package/es/components/time-select/style/index.js +2 -0
  209. package/es/components/time-select/time-select.js +54 -0
  210. package/es/components/time-select/time-select.vue.js +4 -0
  211. package/es/components/time-select/time-select.vue2.js +104 -0
  212. package/es/components/time-select/utils.js +40 -0
  213. package/es/components/tooltip/content.vue2.js +16 -18
  214. package/es/components/tooltip/index.js +5 -3
  215. package/es/components/tooltip/tooltip.vue2.js +20 -22
  216. package/es/components/tooltip/trigger.vue2.js +8 -10
  217. package/es/components/tooltip/utils.js +4 -6
  218. package/es/components/verify-code/verify-code.vue2.js +5 -7
  219. package/es/components/virtual-list/builders/build-grid.js +2 -4
  220. package/es/components/virtual-list/builders/build-list.js +34 -36
  221. package/es/components/virtual-list/components/dynamic-size-grid.js +47 -48
  222. package/es/components/virtual-list/components/scrollbar.js +10 -12
  223. package/es/hooks/use-lockscreen/index.js +16 -17
  224. package/es/hooks/use-namespace/index.js +22 -22
  225. package/es/hooks/use-same-target/index.js +5 -5
  226. package/es/index.js +381 -336
  227. package/es/package.json.js +1 -1
  228. package/global.d.ts +73 -2
  229. package/lib/component.cjs +1 -1
  230. package/lib/components/alert/alert.vue2.cjs +1 -1
  231. package/lib/components/aside/style/css.cjs +1 -0
  232. package/lib/components/aside/style/index.cjs +1 -0
  233. package/lib/components/avatar/avatar.vue2.cjs +1 -1
  234. package/lib/components/back-top/back-top.vue2.cjs +1 -1
  235. package/lib/components/button/button-custom.cjs +1 -1
  236. package/lib/components/button/button-group.vue2.cjs +1 -1
  237. package/lib/components/button/button.vue2.cjs +1 -1
  238. package/lib/components/checkbox/checkbox-button.vue2.cjs +1 -1
  239. package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
  240. package/lib/components/checkbox/checkbox.vue2.cjs +1 -1
  241. package/lib/components/clamp/clamp.vue2.cjs +1 -1
  242. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  243. package/lib/components/col/col.vue.cjs +1 -0
  244. package/lib/components/col/col.vue2.cjs +1 -0
  245. package/lib/components/col/index.cjs +1 -0
  246. package/lib/components/col/style/css.cjs +1 -0
  247. package/lib/components/col/style/index.cjs +1 -0
  248. package/lib/components/col/types.cjs +1 -0
  249. package/lib/components/collapse-transition/src/collapse-transition.vue2.cjs +1 -1
  250. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  251. package/lib/components/color-picker/components/hue-slider.vue2.cjs +1 -1
  252. package/lib/components/color-picker/components/predefine.vue2.cjs +1 -1
  253. package/lib/components/color-picker/components/sv-panel.vue2.cjs +1 -1
  254. package/lib/components/color-picker/composables/use-alpha-slider.cjs +1 -1
  255. package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
  256. package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
  257. package/lib/components/container/aside.vue.cjs +1 -0
  258. package/lib/components/container/aside.vue2.cjs +1 -0
  259. package/lib/components/container/container.vue.cjs +1 -0
  260. package/lib/components/container/container.vue2.cjs +1 -0
  261. package/lib/components/container/footer.vue.cjs +1 -0
  262. package/lib/components/container/footer.vue2.cjs +1 -0
  263. package/lib/components/container/header.vue.cjs +1 -0
  264. package/lib/components/container/header.vue2.cjs +1 -0
  265. package/lib/components/container/index.cjs +1 -0
  266. package/lib/components/container/main.vue.cjs +1 -0
  267. package/lib/components/container/main.vue2.cjs +1 -0
  268. package/lib/components/container/style/css.cjs +1 -0
  269. package/lib/components/container/style/index.cjs +1 -0
  270. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  271. package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -0
  272. package/lib/components/date-picker/composables/use-range-picker.cjs +1 -0
  273. package/lib/components/date-picker/composables/use-shortcut.cjs +1 -0
  274. package/lib/components/date-picker/constants.cjs +1 -0
  275. package/lib/components/date-picker/date-picker-com/basic-cell-render.cjs +1 -0
  276. package/lib/components/date-picker/date-picker-com/basic-date-table.vue.cjs +1 -0
  277. package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -0
  278. package/lib/components/date-picker/date-picker-com/basic-month-table.vue.cjs +1 -0
  279. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -0
  280. package/lib/components/date-picker/date-picker-com/basic-year-table.vue.cjs +1 -0
  281. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -0
  282. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.cjs +1 -0
  283. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -0
  284. package/lib/components/date-picker/date-picker-com/panel-date-range.vue.cjs +1 -0
  285. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -0
  286. package/lib/components/date-picker/date-picker-com/panel-month-range.vue.cjs +1 -0
  287. package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -0
  288. package/lib/components/date-picker/date-picker.cjs +1 -0
  289. package/lib/components/date-picker/date-picker.type.cjs +1 -0
  290. package/lib/components/date-picker/index.cjs +1 -0
  291. package/lib/components/date-picker/panel-utils.cjs +1 -0
  292. package/lib/components/date-picker/props/basic-cell.cjs +1 -0
  293. package/lib/components/date-picker/props/basic-date-table.cjs +1 -0
  294. package/lib/components/date-picker/props/basic-month-table.cjs +1 -0
  295. package/lib/components/date-picker/props/basic-year-table.cjs +1 -0
  296. package/lib/components/date-picker/props/date-picker.cjs +1 -0
  297. package/lib/components/date-picker/props/panel-date-pick.cjs +1 -0
  298. package/lib/components/date-picker/props/panel-date-range.cjs +1 -0
  299. package/lib/components/date-picker/props/panel-month-range.cjs +1 -0
  300. package/lib/components/date-picker/props/shared.cjs +1 -0
  301. package/lib/components/date-picker/style/css.cjs +1 -0
  302. package/lib/components/date-picker/style/index.cjs +1 -0
  303. package/lib/components/date-picker/utils.cjs +1 -0
  304. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  305. package/lib/components/date-time-select/style/index.cjs +1 -1
  306. package/lib/components/descriptions/description-item.vue2.cjs +1 -1
  307. package/lib/components/descriptions/description.vue2.cjs +1 -1
  308. package/lib/components/descriptions/descriptions-cell.cjs +1 -1
  309. package/lib/components/descriptions/descriptions-row.vue2.cjs +1 -1
  310. package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
  311. package/lib/components/dialog/dialog.vue2.cjs +1 -1
  312. package/lib/components/dialog/hooks/use-dialog.cjs +1 -1
  313. package/lib/components/divider/divider.vue2.cjs +1 -1
  314. package/lib/components/dropdown/dropdown-item-impl.vue2.cjs +1 -1
  315. package/lib/components/dropdown/dropdown-menu.vue2.cjs +1 -1
  316. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  317. package/lib/components/dropdown/useDropdown.cjs +1 -1
  318. package/lib/components/empty/empty.vue2.cjs +1 -1
  319. package/lib/components/footer/style/css.cjs +1 -0
  320. package/lib/components/footer/style/index.cjs +1 -0
  321. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  322. package/lib/components/form/form-item.vue2.cjs +1 -1
  323. package/lib/components/form/form-label-wrap.cjs +1 -1
  324. package/lib/components/form/form.vue2.cjs +1 -1
  325. package/lib/components/form/hooks/use-form-common-props.cjs +1 -1
  326. package/lib/components/form/hooks/use-form-item.cjs +1 -1
  327. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  328. package/lib/components/header/style/css.cjs +1 -0
  329. package/lib/components/header/style/index.cjs +1 -0
  330. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  331. package/lib/components/horizontal-menu/horizontal-menu.vue.cjs +1 -0
  332. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -0
  333. package/lib/components/horizontal-menu/index.cjs +1 -0
  334. package/lib/components/horizontal-menu/style/css.cjs +1 -0
  335. package/lib/components/horizontal-menu/style/index.cjs +1 -0
  336. package/lib/components/icon/icon.vue2.cjs +1 -1
  337. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  338. package/lib/components/iframe-layout/iframe-layout.vue2.cjs +1 -1
  339. package/lib/components/iframe-layout/iframe-page.vue2.cjs +1 -1
  340. package/lib/components/image/image.vue2.cjs +1 -1
  341. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  342. package/lib/components/index.cjs +1 -1
  343. package/lib/components/input/input.vue2.cjs +1 -1
  344. package/lib/components/link/link.vue2.cjs +1 -1
  345. package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
  346. package/lib/components/loading/loading.cjs +1 -1
  347. package/lib/components/loading/service.cjs +1 -1
  348. package/lib/components/logo/logo.vue2.cjs +1 -1
  349. package/lib/components/main/style/css.cjs +1 -0
  350. package/lib/components/main/style/index.cjs +1 -0
  351. package/lib/components/md-code-demo/md-code-demo.cjs +1 -1
  352. package/lib/components/md-comment/md-comment.vue2.cjs +1 -1
  353. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  354. package/lib/components/md-container/toc.cjs +1 -1
  355. package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
  356. package/lib/components/menu/menu-collapse-transition.vue2.cjs +1 -1
  357. package/lib/components/menu/menu-item-group.vue2.cjs +1 -1
  358. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  359. package/lib/components/menu/menu.vue2.cjs +1 -1
  360. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  361. package/lib/components/menu/use-menu-css-var.cjs +1 -1
  362. package/lib/components/multiple-tabs/index.cjs +1 -1
  363. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  364. package/lib/components/overlay/overlay.vue2.cjs +1 -1
  365. package/lib/components/page-wrapper/page-wrapper.vue2.cjs +1 -1
  366. package/lib/components/pagination/components/jumper.vue2.cjs +1 -1
  367. package/lib/components/pagination/components/pager.vue2.cjs +1 -1
  368. package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
  369. package/lib/components/pagination/components/total.vue2.cjs +1 -1
  370. package/lib/components/pagination/pagination.vue2.cjs +1 -1
  371. package/lib/components/popover/popover.vue2.cjs +1 -1
  372. package/lib/components/popper/arrow.vue2.cjs +1 -1
  373. package/lib/components/popper/composables/use-content-dom.cjs +1 -1
  374. package/lib/components/popper/composables/use-content.cjs +1 -1
  375. package/lib/components/popper/trigger.vue2.cjs +1 -1
  376. package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
  377. package/lib/components/radio/radio-button.vue2.cjs +1 -1
  378. package/lib/components/radio/radio-group.vue2.cjs +1 -1
  379. package/lib/components/radio/radio.vue2.cjs +1 -1
  380. package/lib/components/result/result.vue2.cjs +1 -1
  381. package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
  382. package/lib/components/roving-focus-group/roving-focus-item.vue2.cjs +1 -1
  383. package/lib/components/row/constants.cjs +1 -0
  384. package/lib/components/row/index.cjs +1 -0
  385. package/lib/components/row/row.vue.cjs +1 -0
  386. package/lib/components/row/row.vue2.cjs +1 -0
  387. package/lib/components/row/style/css.cjs +1 -0
  388. package/lib/components/row/style/index.cjs +1 -0
  389. package/lib/components/row/types.cjs +1 -0
  390. package/lib/components/scrollbar/index.cjs +1 -1
  391. package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
  392. package/lib/components/scrollbar/thumb.vue2.cjs +1 -1
  393. package/lib/components/search/search.vue2.cjs +1 -1
  394. package/lib/components/select-v2/group-item.vue2.cjs +1 -1
  395. package/lib/components/select-v2/option-item.vue2.cjs +1 -1
  396. package/lib/components/select-v2/select-dropdown.cjs +1 -1
  397. package/lib/components/select-v2/useInput.cjs +1 -1
  398. package/lib/components/select-v2/useSelect.cjs +1 -1
  399. package/lib/components/select-v2/util.cjs +1 -1
  400. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  401. package/lib/components/side-menu/use-drag-line.cjs +1 -1
  402. package/lib/components/slot/only-child.cjs +1 -1
  403. package/lib/components/switch/switch.vue2.cjs +1 -1
  404. package/lib/components/table/table.vue2.cjs +1 -1
  405. package/lib/components/tabs/tab-bar.vue2.cjs +1 -1
  406. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  407. package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
  408. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  409. package/lib/components/tag/tag.vue2.cjs +1 -1
  410. package/lib/components/time-picker/common/picker.vue.cjs +1 -0
  411. package/lib/components/time-picker/common/picker.vue2.cjs +1 -0
  412. package/lib/components/time-picker/common/props.cjs +1 -0
  413. package/lib/components/time-picker/composables/use-time-panel.cjs +1 -0
  414. package/lib/components/time-picker/composables/use-time-picker.cjs +1 -0
  415. package/lib/components/time-picker/constants.cjs +1 -0
  416. package/lib/components/time-picker/index.cjs +1 -0
  417. package/lib/components/time-picker/props/basic-time-spinner.cjs +1 -0
  418. package/lib/components/time-picker/props/panel-time-picker.cjs +1 -0
  419. package/lib/components/time-picker/props/panel-time-range.cjs +1 -0
  420. package/lib/components/time-picker/props/shared.cjs +1 -0
  421. package/lib/components/time-picker/style/css.cjs +1 -0
  422. package/lib/components/time-picker/style/index.cjs +1 -0
  423. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue.cjs +1 -0
  424. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -0
  425. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue.cjs +1 -0
  426. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -0
  427. package/lib/components/time-picker/time-picker-com/panel-time-range.vue.cjs +1 -0
  428. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -0
  429. package/lib/components/time-picker/time-picker.cjs +1 -0
  430. package/lib/components/time-picker/types.cjs +1 -0
  431. package/lib/components/time-picker/utils.cjs +1 -0
  432. package/lib/components/time-select/style/css.cjs +1 -0
  433. package/lib/components/time-select/style/index.cjs +1 -0
  434. package/lib/components/time-select/time-select.cjs +1 -0
  435. package/lib/components/time-select/time-select.vue.cjs +1 -0
  436. package/lib/components/time-select/time-select.vue2.cjs +1 -0
  437. package/lib/components/time-select/utils.cjs +1 -0
  438. package/lib/components/tooltip/content.vue2.cjs +1 -1
  439. package/lib/components/tooltip/index.cjs +1 -1
  440. package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
  441. package/lib/components/tooltip/trigger.vue2.cjs +1 -1
  442. package/lib/components/tooltip/utils.cjs +1 -1
  443. package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
  444. package/lib/components/virtual-list/builders/build-grid.cjs +1 -1
  445. package/lib/components/virtual-list/builders/build-list.cjs +1 -1
  446. package/lib/components/virtual-list/components/dynamic-size-grid.cjs +3 -3
  447. package/lib/components/virtual-list/components/scrollbar.cjs +1 -1
  448. package/lib/hooks/use-lockscreen/index.cjs +1 -1
  449. package/lib/hooks/use-namespace/index.cjs +1 -1
  450. package/lib/hooks/use-same-target/index.cjs +1 -1
  451. package/lib/index.cjs +1 -1
  452. package/lib/package.json.cjs +1 -1
  453. package/package.json +7 -7
  454. package/tags.json +1 -1
  455. package/theme-style/base.css +1 -1
  456. package/theme-style/display.css +1 -0
  457. package/theme-style/index.css +1 -1
  458. package/theme-style/src/affix.scss +7 -0
  459. package/theme-style/src/aside.scss +8 -0
  460. package/theme-style/src/autocomplete.scss +83 -0
  461. package/theme-style/src/back-top.scss +7 -6
  462. package/theme-style/src/badge.scss +57 -0
  463. package/theme-style/src/breadcrumb.scss +61 -0
  464. package/theme-style/src/calendar.scss +80 -0
  465. package/theme-style/src/card.scss +38 -0
  466. package/theme-style/src/carousel-item.scss +50 -0
  467. package/theme-style/src/carousel.scss +174 -0
  468. package/theme-style/src/cascader-panel.scss +138 -0
  469. package/theme-style/src/cascader.scss +216 -0
  470. package/theme-style/src/check-tag.scss +29 -0
  471. package/theme-style/src/col.scss +52 -0
  472. package/theme-style/src/collapse.scss +67 -0
  473. package/theme-style/src/color-picker.scss +2 -2
  474. package/theme-style/src/common/popup.scss +47 -0
  475. package/theme-style/src/common/transition.scss +21 -3
  476. package/theme-style/src/common/var.scss +388 -6
  477. package/theme-style/src/container.scss +14 -0
  478. package/theme-style/src/date-picker/date-picker.scss +110 -0
  479. package/theme-style/src/date-picker/date-range-picker.scss +113 -0
  480. package/theme-style/src/date-picker/date-table.scss +162 -0
  481. package/theme-style/src/date-picker/month-table.scss +90 -0
  482. package/theme-style/src/date-picker/picker-panel.scss +131 -0
  483. package/theme-style/src/date-picker/picker.scss +210 -0
  484. package/theme-style/src/date-picker/time-picker.scss +90 -0
  485. package/theme-style/src/date-picker/time-range-picker.scss +33 -0
  486. package/theme-style/src/date-picker/time-spinner.scss +111 -0
  487. package/theme-style/src/date-picker/year-table.scss +60 -0
  488. package/theme-style/src/date-picker.scss +9 -0
  489. package/theme-style/src/date-time-select.scss +46 -20
  490. package/theme-style/src/display.scss +12 -0
  491. package/theme-style/src/drawer.scss +160 -0
  492. package/theme-style/src/footer-layout.scss +4 -9
  493. package/theme-style/src/footer.scss +11 -0
  494. package/theme-style/src/header-layout.scss +26 -15
  495. package/theme-style/src/header.scss +11 -0
  496. package/theme-style/src/horizontal-menu.scss +90 -0
  497. package/theme-style/src/icon.scss +6 -6
  498. package/theme-style/src/index.scss +123 -76
  499. package/theme-style/src/input-number.scss +175 -0
  500. package/theme-style/src/input.scss +3 -6
  501. package/theme-style/src/list-cell.scss +3 -3
  502. package/theme-style/src/loading.scss +1 -1
  503. package/theme-style/src/main.scss +10 -0
  504. package/theme-style/src/md/code.scss +3 -6
  505. package/theme-style/src/md/demo-block.scss +2 -2
  506. package/theme-style/src/md/pswp.scss +4 -4
  507. package/theme-style/src/md/scroll-bar.scss +1 -1
  508. package/theme-style/src/md/table.scss +3 -3
  509. package/theme-style/src/md/toc.scss +3 -3
  510. package/theme-style/src/md-comment.scss +1086 -200
  511. package/theme-style/src/md-container.scss +6 -9
  512. package/theme-style/src/md-vue-playground.scss +0 -15
  513. package/theme-style/src/menu.scss +43 -17
  514. package/theme-style/src/message-box.scss +258 -0
  515. package/theme-style/src/mixins/_col.scss +38 -0
  516. package/theme-style/src/mixins/mixins.scss +25 -0
  517. package/theme-style/src/notification.scss +105 -0
  518. package/theme-style/src/option.scss +36 -0
  519. package/theme-style/src/pagination.scss +0 -2
  520. package/theme-style/src/progress.scss +169 -0
  521. package/theme-style/src/rate.scss +101 -0
  522. package/theme-style/src/reset.scss +92 -0
  523. package/theme-style/src/row.scss +31 -0
  524. package/theme-style/src/search.scss +28 -0
  525. package/theme-style/src/select-dropdown.scss +2 -2
  526. package/theme-style/src/side-menu.scss +9 -3
  527. package/theme-style/src/slider.scss +211 -0
  528. package/theme-style/src/space.scss +20 -0
  529. package/theme-style/src/spinner.scss +43 -0
  530. package/theme-style/src/statistic.scss +35 -0
  531. package/theme-style/src/step.scss +316 -0
  532. package/theme-style/src/steps.scss +21 -0
  533. package/theme-style/src/tabs.scss +2 -2
  534. package/theme-style/src/time-picker.scss +5 -0
  535. package/theme-style/src/time-select.scss +37 -0
  536. package/theme-style/src/timeline-item.scss +85 -0
  537. package/theme-style/src/timeline.scss +46 -0
  538. package/theme-style/src/transfer.scss +206 -0
  539. package/theme-style/src/tree-select.scss +36 -0
  540. package/theme-style/src/tree.scss +131 -0
  541. package/theme-style/src/upload.scss +621 -0
  542. package/theme-style/vft-affix.css +1 -0
  543. package/theme-style/vft-aside.css +1 -0
  544. package/theme-style/vft-autocomplete.css +1 -0
  545. package/theme-style/vft-back-top.css +1 -1
  546. package/theme-style/vft-badge.css +1 -0
  547. package/theme-style/vft-breadcrumb.css +1 -0
  548. package/theme-style/vft-calendar.css +1 -0
  549. package/theme-style/vft-card.css +1 -0
  550. package/theme-style/vft-carousel-item.css +1 -0
  551. package/theme-style/vft-carousel.css +1 -0
  552. package/theme-style/vft-cascader-panel.css +1 -0
  553. package/theme-style/vft-cascader.css +1 -0
  554. package/theme-style/vft-check-tag.css +1 -0
  555. package/theme-style/vft-col.css +1 -0
  556. package/theme-style/vft-collapse.css +1 -0
  557. package/theme-style/vft-color-picker.css +1 -1
  558. package/theme-style/vft-container.css +1 -0
  559. package/theme-style/vft-date-picker.css +1 -0
  560. package/theme-style/vft-date-time-select.css +1 -1
  561. package/theme-style/vft-drawer.css +1 -0
  562. package/theme-style/vft-footer-layout.css +1 -1
  563. package/theme-style/vft-footer.css +1 -0
  564. package/theme-style/vft-header-layout.css +1 -1
  565. package/theme-style/vft-header.css +1 -0
  566. package/theme-style/vft-horizontal-menu.css +1 -0
  567. package/theme-style/vft-input-number.css +1 -0
  568. package/theme-style/vft-input.css +1 -1
  569. package/theme-style/vft-main.css +1 -0
  570. package/theme-style/vft-md-comment.css +1 -1
  571. package/theme-style/vft-md-container.css +1 -1
  572. package/theme-style/vft-md-vue-playground.css +1 -1
  573. package/theme-style/vft-menu.css +1 -1
  574. package/theme-style/vft-message-box.css +1 -0
  575. package/theme-style/vft-notification.css +1 -0
  576. package/theme-style/vft-option.css +1 -0
  577. package/theme-style/vft-pagination.css +1 -1
  578. package/theme-style/vft-progress.css +1 -0
  579. package/theme-style/vft-rate.css +1 -0
  580. package/theme-style/vft-reset.css +1 -0
  581. package/theme-style/vft-row.css +1 -0
  582. package/theme-style/vft-search.css +1 -1
  583. package/theme-style/vft-select-dropdown.css +1 -1
  584. package/theme-style/vft-select.css +1 -1
  585. package/theme-style/vft-side-menu.css +1 -1
  586. package/theme-style/vft-slider.css +1 -0
  587. package/theme-style/vft-space.css +1 -0
  588. package/theme-style/vft-spinner.css +1 -0
  589. package/theme-style/vft-statistic.css +1 -0
  590. package/theme-style/vft-step.css +1 -0
  591. package/theme-style/vft-steps.css +1 -0
  592. package/theme-style/vft-tabs.css +1 -1
  593. package/theme-style/vft-time-picker.css +1 -0
  594. package/theme-style/vft-time-select.css +1 -0
  595. package/theme-style/vft-timeline-item.css +1 -0
  596. package/theme-style/vft-timeline.css +1 -0
  597. package/theme-style/vft-transfer.css +1 -0
  598. package/theme-style/vft-tree-select.css +1 -0
  599. package/theme-style/vft-tree.css +1 -0
  600. package/theme-style/vft-upload.css +1 -0
  601. package/theme-style/vft-var.css +1 -1
  602. package/web-types.json +1 -1
  603. package/es/comp-resolver.d.ts +0 -49
  604. package/es/component.d.ts +0 -3
  605. package/es/components/alert/alert.vue.d.ts +0 -102
  606. package/es/components/alert/index.d.ts +0 -73
  607. package/es/components/alert/types.d.ts +0 -4
  608. package/es/components/avatar/avatar.vue.d.ts +0 -56
  609. package/es/components/avatar/index.d.ts +0 -54
  610. package/es/components/back-top/back-top.vue.d.ts +0 -69
  611. package/es/components/back-top/index.d.ts +0 -54
  612. package/es/components/back-top/use-back-top.d.ts +0 -5
  613. package/es/components/base/style/css.d.ts +0 -0
  614. package/es/components/base/style/index.d.ts +0 -0
  615. package/es/components/button/button-custom.d.ts +0 -4
  616. package/es/components/button/button-group.vue.d.ts +0 -23
  617. package/es/components/button/button.vue.d.ts +0 -189
  618. package/es/components/button/constants.d.ts +0 -7
  619. package/es/components/button/index.d.ts +0 -203
  620. package/es/components/button/instance.d.ts +0 -4
  621. package/es/components/button/style/css.d.ts +0 -0
  622. package/es/components/button/style/index.d.ts +0 -0
  623. package/es/components/button/types.d.ts +0 -4
  624. package/es/components/button/use-button.d.ts +0 -10
  625. package/es/components/button-group/style/css.d.ts +0 -0
  626. package/es/components/button-group/style/index.d.ts +0 -0
  627. package/es/components/checkbox/checkbox-button.vue.d.ts +0 -137
  628. package/es/components/checkbox/checkbox-group.vue.d.ts +0 -112
  629. package/es/components/checkbox/checkbox.vue.d.ts +0 -141
  630. package/es/components/checkbox/composables/index.d.ts +0 -5
  631. package/es/components/checkbox/composables/use-checkbox-disabled.d.ts +0 -6
  632. package/es/components/checkbox/composables/use-checkbox-event.d.ts +0 -7
  633. package/es/components/checkbox/composables/use-checkbox-model.d.ts +0 -7
  634. package/es/components/checkbox/composables/use-checkbox-status.d.ts +0 -11
  635. package/es/components/checkbox/composables/use-checkbox.d.ts +0 -15
  636. package/es/components/checkbox/constants.d.ts +0 -8
  637. package/es/components/checkbox/index.d.ts +0 -556
  638. package/es/components/checkbox/style/css.d.ts +0 -0
  639. package/es/components/checkbox/style/index.d.ts +0 -0
  640. package/es/components/checkbox/types.d.ts +0 -2
  641. package/es/components/checkbox-button/style/css.d.ts +0 -0
  642. package/es/components/checkbox-button/style/index.d.ts +0 -0
  643. package/es/components/checkbox-group/style/css.d.ts +0 -0
  644. package/es/components/checkbox-group/style/index.d.ts +0 -0
  645. package/es/components/clamp/clamp.vue.d.ts +0 -64
  646. package/es/components/clamp/index.d.ts +0 -63
  647. package/es/components/clamp/style/css.d.ts +0 -0
  648. package/es/components/clamp/style/index.d.ts +0 -0
  649. package/es/components/clamp-toggle/clamp-toggle.vue.d.ts +0 -101
  650. package/es/components/clamp-toggle/index.d.ts +0 -100
  651. package/es/components/clamp-toggle/style/css.d.ts +0 -0
  652. package/es/components/clamp-toggle/style/index.d.ts +0 -0
  653. package/es/components/collapse-transition/index.d.ts +0 -4
  654. package/es/components/collapse-transition/src/collapse-transition.vue.d.ts +0 -2
  655. package/es/components/collapse-transition/style/css.d.ts +0 -0
  656. package/es/components/collapse-transition/style/index.d.ts +0 -0
  657. package/es/components/collection/collection-item.vue.d.ts +0 -2
  658. package/es/components/collection/collection.d.ts +0 -242
  659. package/es/components/collection/collection.vue.d.ts +0 -2
  660. package/es/components/collection/index.d.ts +0 -2
  661. package/es/components/collection/tokens.d.ts +0 -12
  662. package/es/components/color-picker/color-picker.vue.d.ts +0 -126
  663. package/es/components/color-picker/components/alpha-slider.vue.d.ts +0 -42
  664. package/es/components/color-picker/components/hue-slider.vue.d.ts +0 -44
  665. package/es/components/color-picker/components/predefine.vue.d.ts +0 -43
  666. package/es/components/color-picker/components/sv-panel.vue.d.ts +0 -42
  667. package/es/components/color-picker/composables/use-alpha-slider.d.ts +0 -20
  668. package/es/components/color-picker/contants.d.ts +0 -5
  669. package/es/components/color-picker/index.d.ts +0 -108
  670. package/es/components/color-picker/style/css.d.ts +0 -0
  671. package/es/components/color-picker/style/index.d.ts +0 -0
  672. package/es/components/color-picker/utils/color.d.ts +0 -29
  673. package/es/components/color-picker/utils/draggable.d.ts +0 -6
  674. package/es/components/config-provider/config-provider.vue.d.ts +0 -107
  675. package/es/components/config-provider/constants.d.ts +0 -6
  676. package/es/components/config-provider/hooks/use-global-config.d.ts +0 -31
  677. package/es/components/config-provider/index.d.ts +0 -86
  678. package/es/components/config-provider/style/css.d.ts +0 -0
  679. package/es/components/config-provider/style/index.d.ts +0 -0
  680. package/es/components/context-menu/context-menu.vue.d.ts +0 -39
  681. package/es/components/context-menu/createContextMenu.d.ts +0 -3
  682. package/es/components/context-menu/index.d.ts +0 -3
  683. package/es/components/context-menu/style/css.d.ts +0 -0
  684. package/es/components/context-menu/style/index.d.ts +0 -0
  685. package/es/components/context-menu/types.d.ts +0 -23
  686. package/es/components/context-menu/useContextMenu.d.ts +0 -3
  687. package/es/components/date-time-select/date-time-select.vue.d.ts +0 -38
  688. package/es/components/date-time-select/index.d.ts +0 -30
  689. package/es/components/date-time-select/style/css.d.ts +0 -0
  690. package/es/components/date-time-select/style/index.d.ts +0 -0
  691. package/es/components/date-time-select/types.d.ts +0 -10
  692. package/es/components/descriptions/description-item.vue.d.ts +0 -69
  693. package/es/components/descriptions/description.vue.d.ts +0 -53
  694. package/es/components/descriptions/descriptions-cell.d.ts +0 -25
  695. package/es/components/descriptions/descriptions-row.vue.d.ts +0 -13
  696. package/es/components/descriptions/descriptions.type.d.ts +0 -18
  697. package/es/components/descriptions/index.d.ts +0 -187
  698. package/es/components/descriptions/style/css.d.ts +0 -0
  699. package/es/components/descriptions/style/index.d.ts +0 -0
  700. package/es/components/descriptions/token.d.ts +0 -3
  701. package/es/components/descriptions-item/style/css.d.ts +0 -0
  702. package/es/components/descriptions-item/style/index.d.ts +0 -0
  703. package/es/components/dialog/constants.d.ts +0 -11
  704. package/es/components/dialog/dialog-content.vue.d.ts +0 -81
  705. package/es/components/dialog/dialog.vue.d.ts +0 -164
  706. package/es/components/dialog/hooks/use-dialog.d.ts +0 -23
  707. package/es/components/dialog/index.d.ts +0 -146
  708. package/es/components/dialog/style/css.d.ts +0 -0
  709. package/es/components/dialog/style/index.d.ts +0 -0
  710. package/es/components/dialog/types.d.ts +0 -10
  711. package/es/components/divider/divider.vue.d.ts +0 -53
  712. package/es/components/divider/index.d.ts +0 -52
  713. package/es/components/divider/style/css.d.ts +0 -0
  714. package/es/components/divider/style/index.d.ts +0 -0
  715. package/es/components/divider/types.d.ts +0 -2
  716. package/es/components/docs-layout/style/css.d.ts +0 -0
  717. package/es/components/docs-layout/style/index.d.ts +0 -0
  718. package/es/components/dropdown/dropdown-item-impl.vue.d.ts +0 -57
  719. package/es/components/dropdown/dropdown-item.vue.d.ts +0 -43
  720. package/es/components/dropdown/dropdown-menu.vue.d.ts +0 -22
  721. package/es/components/dropdown/dropdown.vue.d.ts +0 -828
  722. package/es/components/dropdown/index.d.ts +0 -959
  723. package/es/components/dropdown/style/css.d.ts +0 -0
  724. package/es/components/dropdown/style/index.d.ts +0 -0
  725. package/es/components/dropdown/tokens.d.ts +0 -10
  726. package/es/components/dropdown/types.d.ts +0 -267
  727. package/es/components/dropdown/useDropdown.d.ts +0 -6
  728. package/es/components/dropdown-item/style/css.d.ts +0 -0
  729. package/es/components/dropdown-item/style/index.d.ts +0 -0
  730. package/es/components/dropdown-menu/style/css.d.ts +0 -0
  731. package/es/components/dropdown-menu/style/index.d.ts +0 -0
  732. package/es/components/empty/constants.d.ts +0 -12
  733. package/es/components/empty/empty.vue.d.ts +0 -48
  734. package/es/components/empty/index.d.ts +0 -37
  735. package/es/components/empty/style/css.d.ts +0 -0
  736. package/es/components/empty/style/index.d.ts +0 -0
  737. package/es/components/exception/exception.vue.d.ts +0 -29
  738. package/es/components/exception/index.d.ts +0 -28
  739. package/es/components/exception/style/css.d.ts +0 -0
  740. package/es/components/exception/style/index.d.ts +0 -0
  741. package/es/components/focus-trap/focus-trap.vue.d.ts +0 -32
  742. package/es/components/focus-trap/index.d.ts +0 -5
  743. package/es/components/focus-trap/tokens.d.ts +0 -13
  744. package/es/components/focus-trap/utils.d.ts +0 -29
  745. package/es/components/footer-layout/footer-layout.vue.d.ts +0 -13
  746. package/es/components/footer-layout/index.d.ts +0 -12
  747. package/es/components/footer-layout/style/css.d.ts +0 -0
  748. package/es/components/footer-layout/style/index.d.ts +0 -0
  749. package/es/components/form/constants.d.ts +0 -4
  750. package/es/components/form/form-item.vue.d.ts +0 -146
  751. package/es/components/form/form-label-wrap.d.ts +0 -11
  752. package/es/components/form/form.vue.d.ts +0 -168
  753. package/es/components/form/hooks/index.d.ts +0 -2
  754. package/es/components/form/hooks/use-form-common-props.d.ts +0 -6
  755. package/es/components/form/hooks/use-form-item.d.ts +0 -18
  756. package/es/components/form/index.d.ts +0 -364
  757. package/es/components/form/style/css.d.ts +0 -0
  758. package/es/components/form/style/index.d.ts +0 -0
  759. package/es/components/form/types.d.ts +0 -43
  760. package/es/components/form/utils.d.ts +0 -9
  761. package/es/components/form-item/style/css.d.ts +0 -0
  762. package/es/components/form-item/style/index.d.ts +0 -0
  763. package/es/components/full-screen/full-screen.vue.d.ts +0 -5
  764. package/es/components/full-screen/index.d.ts +0 -2
  765. package/es/components/full-screen/style/css.d.ts +0 -0
  766. package/es/components/full-screen/style/index.d.ts +0 -0
  767. package/es/components/header-layout/header-layout.vue.d.ts +0 -14
  768. package/es/components/header-layout/index.d.ts +0 -12
  769. package/es/components/header-layout/style/css.d.ts +0 -0
  770. package/es/components/header-layout/style/index.d.ts +0 -0
  771. package/es/components/icon/icon.vue.d.ts +0 -73
  772. package/es/components/icon/index.d.ts +0 -63
  773. package/es/components/icon/style/css.d.ts +0 -0
  774. package/es/components/icon/style/index.d.ts +0 -0
  775. package/es/components/icon-text/icon-text.vue.d.ts +0 -98
  776. package/es/components/icon-text/index.d.ts +0 -85
  777. package/es/components/icon-text/style/css.d.ts +0 -0
  778. package/es/components/icon-text/style/index.d.ts +0 -0
  779. package/es/components/iframe-layout/iframe-layout.vue.d.ts +0 -14
  780. package/es/components/iframe-layout/iframe-page.vue.d.ts +0 -13
  781. package/es/components/iframe-layout/index.d.ts +0 -12
  782. package/es/components/iframe-layout/style/css.d.ts +0 -0
  783. package/es/components/iframe-layout/style/index.d.ts +0 -0
  784. package/es/components/image/image.vue.d.ts +0 -122
  785. package/es/components/image/index.d.ts +0 -108
  786. package/es/components/image/style/css.d.ts +0 -0
  787. package/es/components/image/style/index.d.ts +0 -0
  788. package/es/components/image/types.d.ts +0 -1
  789. package/es/components/image-viewer/image-viewer.vue.d.ts +0 -88
  790. package/es/components/image-viewer/index.d.ts +0 -77
  791. package/es/components/image-viewer/style/css.d.ts +0 -0
  792. package/es/components/image-viewer/style/index.d.ts +0 -0
  793. package/es/components/image-viewer/types.d.ts +0 -1
  794. package/es/components/index.d.ts +0 -60
  795. package/es/components/input/index.d.ts +0 -252
  796. package/es/components/input/input.vue.d.ts +0 -265
  797. package/es/components/input/style/css.d.ts +0 -0
  798. package/es/components/input/style/index.d.ts +0 -0
  799. package/es/components/input/utils.d.ts +0 -6
  800. package/es/components/link/index.d.ts +0 -54
  801. package/es/components/link/link.vue.d.ts +0 -58
  802. package/es/components/link/style/css.d.ts +0 -0
  803. package/es/components/link/style/index.d.ts +0 -0
  804. package/es/components/list-cell/index.d.ts +0 -38
  805. package/es/components/list-cell/list-cell.vue.d.ts +0 -53
  806. package/es/components/list-cell/style/css.d.ts +0 -0
  807. package/es/components/list-cell/style/index.d.ts +0 -0
  808. package/es/components/loading/directive.d.ts +0 -18
  809. package/es/components/loading/index.d.ts +0 -48
  810. package/es/components/loading/loading.d.ts +0 -36
  811. package/es/components/loading/service.d.ts +0 -3
  812. package/es/components/loading/style/css.d.ts +0 -0
  813. package/es/components/loading/style/index.d.ts +0 -0
  814. package/es/components/loading/types.d.ts +0 -27
  815. package/es/components/logo/index.d.ts +0 -29
  816. package/es/components/logo/logo.vue.d.ts +0 -29
  817. package/es/components/logo/style/css.d.ts +0 -0
  818. package/es/components/logo/style/index.d.ts +0 -0
  819. package/es/components/logo/types.d.ts +0 -6
  820. package/es/components/md-code-demo/code-demo/code.d.ts +0 -13
  821. package/es/components/md-code-demo/code-demo/index.d.ts +0 -2
  822. package/es/components/md-code-demo/code-demo/loadScript.d.ts +0 -5
  823. package/es/components/md-code-demo/code-demo/typings.d.ts +0 -15
  824. package/es/components/md-code-demo/code-demo/utils.d.ts +0 -13
  825. package/es/components/md-code-demo/index.d.ts +0 -50
  826. package/es/components/md-code-demo/md-code-demo.d.ts +0 -99
  827. package/es/components/md-code-demo/style/css.d.ts +0 -0
  828. package/es/components/md-code-demo/style/index.d.ts +0 -0
  829. package/es/components/md-code-demo/type.d.ts +0 -89
  830. package/es/components/md-code-demo/utils.d.ts +0 -5
  831. package/es/components/md-code-tabs/index.d.ts +0 -41
  832. package/es/components/md-code-tabs/md-code-tabs.d.ts +0 -81
  833. package/es/components/md-code-tabs/style/css.d.ts +0 -0
  834. package/es/components/md-code-tabs/style/index.d.ts +0 -0
  835. package/es/components/md-comment/index.d.ts +0 -2
  836. package/es/components/md-comment/md-comment.vue.d.ts +0 -2
  837. package/es/components/md-comment/style/css.d.ts +0 -0
  838. package/es/components/md-comment/style/index.d.ts +0 -0
  839. package/es/components/md-container/index.d.ts +0 -4
  840. package/es/components/md-container/md-container.vue.d.ts +0 -4
  841. package/es/components/md-container/style/css.d.ts +0 -0
  842. package/es/components/md-container/style/index.d.ts +0 -0
  843. package/es/components/md-container/toc.d.ts +0 -44
  844. package/es/components/md-container/use/index.d.ts +0 -2
  845. package/es/components/md-container/use/useActiveHeaderLinks.d.ts +0 -7
  846. package/es/components/md-container/use/useCopyCode.d.ts +0 -1
  847. package/es/components/md-container/utils.d.ts +0 -11
  848. package/es/components/md-tabs/index.d.ts +0 -42
  849. package/es/components/md-tabs/md-tabs.d.ts +0 -84
  850. package/es/components/md-tabs/style/css.d.ts +0 -0
  851. package/es/components/md-tabs/style/index.d.ts +0 -0
  852. package/es/components/md-vue-playground/index.d.ts +0 -28
  853. package/es/components/md-vue-playground/md-vue-playground.vue.d.ts +0 -29
  854. package/es/components/md-vue-playground/playground.d.ts +0 -97
  855. package/es/components/md-vue-playground/style/css.d.ts +0 -0
  856. package/es/components/md-vue-playground/style/index.d.ts +0 -0
  857. package/es/components/menu/index.d.ts +0 -504
  858. package/es/components/menu/menu-collapse-transition.vue.d.ts +0 -5
  859. package/es/components/menu/menu-item-group.vue.d.ts +0 -13
  860. package/es/components/menu/menu-item.vue.d.ts +0 -81
  861. package/es/components/menu/menu.vue.d.ts +0 -109
  862. package/es/components/menu/style/css.d.ts +0 -0
  863. package/es/components/menu/style/index.d.ts +0 -0
  864. package/es/components/menu/sub-menu.vue.d.ts +0 -112
  865. package/es/components/menu/types.d.ts +0 -59
  866. package/es/components/menu/use-menu-css-var.d.ts +0 -1
  867. package/es/components/menu/use-menu.d.ts +0 -14
  868. package/es/components/menu/utils/menu-bar.d.ts +0 -7
  869. package/es/components/menu/utils/menu-item.d.ts +0 -9
  870. package/es/components/menu/utils/submenu.d.ts +0 -12
  871. package/es/components/menu-item/style/css.d.ts +0 -0
  872. package/es/components/menu-item/style/index.d.ts +0 -0
  873. package/es/components/menu-item-group/style/css.d.ts +0 -0
  874. package/es/components/menu-item-group/style/index.d.ts +0 -0
  875. package/es/components/message/index.d.ts +0 -4
  876. package/es/components/message/instance.d.ts +0 -17
  877. package/es/components/message/message.vue.d.ts +0 -145
  878. package/es/components/message/method.d.ts +0 -4
  879. package/es/components/message/style/css.d.ts +0 -0
  880. package/es/components/message/style/index.d.ts +0 -0
  881. package/es/components/message/types.d.ts +0 -63
  882. package/es/components/multiple-tabs/index.d.ts +0 -30
  883. package/es/components/multiple-tabs/multiple-tabs.vue.d.ts +0 -29
  884. package/es/components/multiple-tabs/style/css.d.ts +0 -0
  885. package/es/components/multiple-tabs/style/index.d.ts +0 -0
  886. package/es/components/multiple-tabs/tab-content.vue.d.ts +0 -40
  887. package/es/components/multiple-tabs/types.d.ts +0 -3
  888. package/es/components/multiple-tabs/use/index.d.ts +0 -2
  889. package/es/components/multiple-tabs/use/use-multiple-tabs.d.ts +0 -9
  890. package/es/components/multiple-tabs/use/use-tab-dropdown.d.ts +0 -6
  891. package/es/components/overlay/index.d.ts +0 -46
  892. package/es/components/overlay/overlay.vue.d.ts +0 -47
  893. package/es/components/overlay/style/css.d.ts +0 -0
  894. package/es/components/overlay/style/index.d.ts +0 -0
  895. package/es/components/page-wrapper/index.d.ts +0 -12
  896. package/es/components/page-wrapper/page-wrapper.vue.d.ts +0 -13
  897. package/es/components/page-wrapper/style/css.d.ts +0 -0
  898. package/es/components/page-wrapper/style/index.d.ts +0 -0
  899. package/es/components/pagination/components/jumper.vue.d.ts +0 -14
  900. package/es/components/pagination/components/next.vue.d.ts +0 -39
  901. package/es/components/pagination/components/pager.vue.d.ts +0 -39
  902. package/es/components/pagination/components/prev.vue.d.ts +0 -31
  903. package/es/components/pagination/components/sizes.vue.d.ts +0 -47
  904. package/es/components/pagination/components/total.vue.d.ts +0 -13
  905. package/es/components/pagination/index.d.ts +0 -164
  906. package/es/components/pagination/pagination.vue.d.ts +0 -185
  907. package/es/components/pagination/style/css.d.ts +0 -0
  908. package/es/components/pagination/style/index.d.ts +0 -0
  909. package/es/components/pagination/usePagination.d.ts +0 -10
  910. package/es/components/popover/directive.d.ts +0 -4
  911. package/es/components/popover/index.d.ts +0 -182
  912. package/es/components/popover/popover.vue.d.ts +0 -187
  913. package/es/components/popover/style/css.d.ts +0 -0
  914. package/es/components/popover/style/index.d.ts +0 -0
  915. package/es/components/popover/types.d.ts +0 -26
  916. package/es/components/popper/arrow.vue.d.ts +0 -18
  917. package/es/components/popper/composables/index.d.ts +0 -3
  918. package/es/components/popper/composables/use-content-dom.d.ts +0 -16
  919. package/es/components/popper/composables/use-content.d.ts +0 -77
  920. package/es/components/popper/composables/use-focus-trap.d.ts +0 -11
  921. package/es/components/popper/constants.d.ts +0 -24
  922. package/es/components/popper/content.vue.d.ts +0 -222
  923. package/es/components/popper/index.d.ts +0 -18
  924. package/es/components/popper/popper.vue.d.ts +0 -13
  925. package/es/components/popper/style/css.d.ts +0 -0
  926. package/es/components/popper/style/index.d.ts +0 -0
  927. package/es/components/popper/trigger.vue.d.ts +0 -99
  928. package/es/components/popper/types.d.ts +0 -45
  929. package/es/components/popper/utils.d.ts +0 -49
  930. package/es/components/qrcode/drawCanvas.d.ts +0 -2
  931. package/es/components/qrcode/drawLogo.d.ts +0 -2
  932. package/es/components/qrcode/index.d.ts +0 -50
  933. package/es/components/qrcode/qrcode.vue.d.ts +0 -51
  934. package/es/components/qrcode/qrcodePlus.d.ts +0 -3
  935. package/es/components/qrcode/style/css.d.ts +0 -0
  936. package/es/components/qrcode/style/index.d.ts +0 -0
  937. package/es/components/qrcode/toCanvas.d.ts +0 -2
  938. package/es/components/qrcode/types.d.ts +0 -31
  939. package/es/components/radio/constants.d.ts +0 -6
  940. package/es/components/radio/index.d.ts +0 -294
  941. package/es/components/radio/radio-button.vue.d.ts +0 -44
  942. package/es/components/radio/radio-group.vue.d.ts +0 -96
  943. package/es/components/radio/radio.vue.d.ts +0 -65
  944. package/es/components/radio/style/css.d.ts +0 -0
  945. package/es/components/radio/style/index.d.ts +0 -0
  946. package/es/components/radio/use-radio.d.ts +0 -15
  947. package/es/components/radio-button/style/css.d.ts +0 -0
  948. package/es/components/radio-button/style/index.d.ts +0 -0
  949. package/es/components/radio-group/style/css.d.ts +0 -0
  950. package/es/components/radio-group/style/index.d.ts +0 -0
  951. package/es/components/result/index.d.ts +0 -28
  952. package/es/components/result/result.vue.d.ts +0 -30
  953. package/es/components/result/style/css.d.ts +0 -0
  954. package/es/components/result/style/index.d.ts +0 -0
  955. package/es/components/router-view-content/index.d.ts +0 -52
  956. package/es/components/router-view-content/router-view-content.vue.d.ts +0 -54
  957. package/es/components/router-view-content/style/css.d.ts +0 -0
  958. package/es/components/router-view-content/style/index.d.ts +0 -0
  959. package/es/components/roving-focus-group/index.d.ts +0 -10
  960. package/es/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +0 -48
  961. package/es/components/roving-focus-group/roving-focus-group.vue.d.ts +0 -2
  962. package/es/components/roving-focus-group/roving-focus-item.vue.d.ts +0 -32
  963. package/es/components/roving-focus-group/tokens.d.ts +0 -37
  964. package/es/components/roving-focus-group/types.d.ts +0 -252
  965. package/es/components/roving-focus-group/utils.d.ts +0 -8
  966. package/es/components/scrollbar/bar.vue.d.ts +0 -54
  967. package/es/components/scrollbar/constants.d.ts +0 -6
  968. package/es/components/scrollbar/index.d.ts +0 -113
  969. package/es/components/scrollbar/scrollbar.vue.d.ts +0 -163
  970. package/es/components/scrollbar/style/css.d.ts +0 -0
  971. package/es/components/scrollbar/style/index.d.ts +0 -0
  972. package/es/components/scrollbar/thumb.vue.d.ts +0 -52
  973. package/es/components/scrollbar/types.d.ts +0 -2
  974. package/es/components/scrollbar/util.d.ts +0 -28
  975. package/es/components/search/index.d.ts +0 -98
  976. package/es/components/search/search.vue.d.ts +0 -100
  977. package/es/components/search/style/css.d.ts +0 -0
  978. package/es/components/search/style/index.d.ts +0 -0
  979. package/es/components/select-v2/defaults.d.ts +0 -113
  980. package/es/components/select-v2/group-item.vue.d.ts +0 -35
  981. package/es/components/select-v2/index.d.ts +0 -2025
  982. package/es/components/select-v2/option-item.vue.d.ts +0 -49
  983. package/es/components/select-v2/select-dropdown.d.ts +0 -16
  984. package/es/components/select-v2/select.types.d.ts +0 -18
  985. package/es/components/select-v2/select.vue.d.ts +0 -1012
  986. package/es/components/select-v2/style/css.d.ts +0 -0
  987. package/es/components/select-v2/style/index.d.ts +0 -0
  988. package/es/components/select-v2/token.d.ts +0 -16
  989. package/es/components/select-v2/useAllowCreate.d.ts +0 -8
  990. package/es/components/select-v2/useInput.d.ts +0 -5
  991. package/es/components/select-v2/useOption.d.ts +0 -7
  992. package/es/components/select-v2/useSelect.d.ts +0 -782
  993. package/es/components/select-v2/util.d.ts +0 -2
  994. package/es/components/side-menu/index.d.ts +0 -155
  995. package/es/components/side-menu/side-menu.vue.d.ts +0 -156
  996. package/es/components/side-menu/style/css.d.ts +0 -0
  997. package/es/components/side-menu/style/index.d.ts +0 -0
  998. package/es/components/side-menu/types.d.ts +0 -19
  999. package/es/components/side-menu/use-drag-line.d.ts +0 -10
  1000. package/es/components/slot/index.d.ts +0 -2
  1001. package/es/components/slot/only-child.d.ts +0 -7
  1002. package/es/components/sub-menu/style/css.d.ts +0 -0
  1003. package/es/components/sub-menu/style/index.d.ts +0 -0
  1004. package/es/components/switch/index.d.ts +0 -205
  1005. package/es/components/switch/style/css.d.ts +0 -0
  1006. package/es/components/switch/style/index.d.ts +0 -0
  1007. package/es/components/switch/switch.vue.d.ts +0 -236
  1008. package/es/components/tab-pane/style/css.d.ts +0 -0
  1009. package/es/components/tab-pane/style/index.d.ts +0 -0
  1010. package/es/components/table/style/css.d.ts +0 -0
  1011. package/es/components/table/style/index.d.ts +0 -0
  1012. package/es/components/table/table.vue.d.ts +0 -121
  1013. package/es/components/table/type.d.ts +0 -21
  1014. package/es/components/tabs/index.d.ts +0 -274
  1015. package/es/components/tabs/style/css.d.ts +0 -0
  1016. package/es/components/tabs/style/index.d.ts +0 -0
  1017. package/es/components/tabs/tab-bar.vue.d.ts +0 -51
  1018. package/es/components/tabs/tab-nav.vue.d.ts +0 -120
  1019. package/es/components/tabs/tab-pane.vue.d.ts +0 -45
  1020. package/es/components/tabs/tabs.vue.d.ts +0 -159
  1021. package/es/components/tabs/types.d.ts +0 -59
  1022. package/es/components/tag/index.d.ts +0 -71
  1023. package/es/components/tag/style/css.d.ts +0 -0
  1024. package/es/components/tag/style/index.d.ts +0 -0
  1025. package/es/components/tag/tag.vue.d.ts +0 -74
  1026. package/es/components/tag/types.d.ts +0 -1
  1027. package/es/components/time-select-extend/style/css.d.ts +0 -0
  1028. package/es/components/time-select-extend/style/css.js +0 -2
  1029. package/es/components/time-select-extend/style/index.d.ts +0 -0
  1030. package/es/components/time-select-extend/style/index.js +0 -2
  1031. package/es/components/tooltip/constants.d.ts +0 -18
  1032. package/es/components/tooltip/content.vue.d.ts +0 -268
  1033. package/es/components/tooltip/index.d.ts +0 -398
  1034. package/es/components/tooltip/style/css.d.ts +0 -0
  1035. package/es/components/tooltip/style/index.d.ts +0 -0
  1036. package/es/components/tooltip/tooltip.vue.d.ts +0 -470
  1037. package/es/components/tooltip/trigger.vue.d.ts +0 -54
  1038. package/es/components/tooltip/types.d.ts +0 -53
  1039. package/es/components/tooltip/utils.d.ts +0 -11
  1040. package/es/components/types.d.ts +0 -1
  1041. package/es/components/verify-code/index.d.ts +0 -23
  1042. package/es/components/verify-code/style/css.d.ts +0 -0
  1043. package/es/components/verify-code/style/index.d.ts +0 -0
  1044. package/es/components/verify-code/useImageVerify.d.ts +0 -11
  1045. package/es/components/verify-code/verify-code.vue.d.ts +0 -24
  1046. package/es/components/virtual-list/builders/build-grid.d.ts +0 -214
  1047. package/es/components/virtual-list/builders/build-list.d.ts +0 -167
  1048. package/es/components/virtual-list/components/dynamic-size-grid.d.ts +0 -206
  1049. package/es/components/virtual-list/components/dynamic-size-list.d.ts +0 -165
  1050. package/es/components/virtual-list/components/fixed-size-grid.d.ts +0 -193
  1051. package/es/components/virtual-list/components/fixed-size-list.d.ts +0 -164
  1052. package/es/components/virtual-list/components/scrollbar.d.ts +0 -79
  1053. package/es/components/virtual-list/defaults.d.ts +0 -30
  1054. package/es/components/virtual-list/hooks/use-cache.d.ts +0 -1
  1055. package/es/components/virtual-list/hooks/use-grid-wheel.d.ts +0 -13
  1056. package/es/components/virtual-list/hooks/use-wheel.d.ts +0 -13
  1057. package/es/components/virtual-list/index.d.ts +0 -8
  1058. package/es/components/virtual-list/props.d.ts +0 -201
  1059. package/es/components/virtual-list/style/css.d.ts +0 -0
  1060. package/es/components/virtual-list/style/index.d.ts +0 -0
  1061. package/es/components/virtual-list/types.d.ts +0 -137
  1062. package/es/components/virtual-list/utils.d.ts +0 -17
  1063. package/es/constants/aria.d.ts +0 -17
  1064. package/es/constants/date.d.ts +0 -3
  1065. package/es/constants/event.d.ts +0 -3
  1066. package/es/constants/index.d.ts +0 -5
  1067. package/es/constants/key.d.ts +0 -1
  1068. package/es/constants/size.d.ts +0 -7
  1069. package/es/defaults.d.ts +0 -5
  1070. package/es/hooks/index.d.ts +0 -16
  1071. package/es/hooks/use-cursor/index.d.ts +0 -2
  1072. package/es/hooks/use-delayed-toggle/index.d.ts +0 -10
  1073. package/es/hooks/use-draggable/index.d.ts +0 -2
  1074. package/es/hooks/use-forward-ref/index.d.ts +0 -9
  1075. package/es/hooks/use-id/index.d.ts +0 -9
  1076. package/es/hooks/use-lockscreen/index.d.ts +0 -11
  1077. package/es/hooks/use-model-toggle/index.d.ts +0 -25
  1078. package/es/hooks/use-namespace/index.d.ts +0 -24
  1079. package/es/hooks/use-ordered-children/index.d.ts +0 -8
  1080. package/es/hooks/use-popper/index.d.ts +0 -78
  1081. package/es/hooks/use-popper-container/index.d.ts +0 -5
  1082. package/es/hooks/use-prop/index.d.ts +0 -2
  1083. package/es/hooks/use-same-target/index.d.ts +0 -5
  1084. package/es/hooks/use-size/index.d.ts +0 -7
  1085. package/es/hooks/use-timeout/index.d.ts +0 -4
  1086. package/es/hooks/use-z-index/index.d.ts +0 -9
  1087. package/es/index.d.ts +0 -11
  1088. package/es/make-installer.d.ts +0 -6
  1089. package/es/plugin.d.ts +0 -3
  1090. package/es/utils/dom/index.d.ts +0 -2
  1091. package/es/utils/dom/position.d.ts +0 -7
  1092. package/es/utils/dom/scroll.d.ts +0 -8
  1093. package/es/utils/error.d.ts +0 -3
  1094. package/es/utils/event.d.ts +0 -6
  1095. package/es/utils/helper.d.ts +0 -1
  1096. package/es/utils/index.d.ts +0 -8
  1097. package/es/utils/ns-cover.d.ts +0 -16
  1098. package/es/utils/objects.d.ts +0 -4
  1099. package/es/utils/typescript.d.ts +0 -12
  1100. package/es/utils/vue/data-helper.d.ts +0 -1
  1101. package/es/utils/vue/index.d.ts +0 -7
  1102. package/es/utils/vue/install.d.ts +0 -6
  1103. package/es/utils/vue/props/index.d.ts +0 -3
  1104. package/es/utils/vue/props/runtime.d.ts +0 -28
  1105. package/es/utils/vue/props/types.d.ts +0 -120
  1106. package/es/utils/vue/props/util.d.ts +0 -8
  1107. package/es/utils/vue/raf.d.ts +0 -2
  1108. package/es/utils/vue/refs.d.ts +0 -3
  1109. package/es/utils/vue/typescript.d.ts +0 -5
  1110. package/es/utils/vue/vnode.d.ts +0 -51
  1111. package/lib/comp-resolver.d.ts +0 -49
  1112. package/lib/component.d.ts +0 -3
  1113. package/lib/components/alert/alert.vue.d.ts +0 -102
  1114. package/lib/components/alert/index.d.ts +0 -73
  1115. package/lib/components/alert/style/css.d.ts +0 -0
  1116. package/lib/components/alert/style/index.d.ts +0 -0
  1117. package/lib/components/alert/types.d.ts +0 -4
  1118. package/lib/components/avatar/avatar.vue.d.ts +0 -56
  1119. package/lib/components/avatar/index.d.ts +0 -54
  1120. package/lib/components/avatar/style/css.d.ts +0 -0
  1121. package/lib/components/avatar/style/index.d.ts +0 -0
  1122. package/lib/components/back-top/back-top.vue.d.ts +0 -69
  1123. package/lib/components/back-top/index.d.ts +0 -54
  1124. package/lib/components/back-top/style/css.d.ts +0 -0
  1125. package/lib/components/back-top/style/index.d.ts +0 -0
  1126. package/lib/components/back-top/use-back-top.d.ts +0 -5
  1127. package/lib/components/base/style/css.d.ts +0 -0
  1128. package/lib/components/base/style/index.d.ts +0 -0
  1129. package/lib/components/button/button-custom.d.ts +0 -4
  1130. package/lib/components/button/button-group.vue.d.ts +0 -23
  1131. package/lib/components/button/button.vue.d.ts +0 -189
  1132. package/lib/components/button/constants.d.ts +0 -7
  1133. package/lib/components/button/index.d.ts +0 -203
  1134. package/lib/components/button/instance.d.ts +0 -4
  1135. package/lib/components/button/style/css.d.ts +0 -0
  1136. package/lib/components/button/style/index.d.ts +0 -0
  1137. package/lib/components/button/types.d.ts +0 -4
  1138. package/lib/components/button/use-button.d.ts +0 -10
  1139. package/lib/components/button-group/style/css.d.ts +0 -0
  1140. package/lib/components/button-group/style/index.d.ts +0 -0
  1141. package/lib/components/checkbox/checkbox-button.vue.d.ts +0 -137
  1142. package/lib/components/checkbox/checkbox-group.vue.d.ts +0 -112
  1143. package/lib/components/checkbox/checkbox.vue.d.ts +0 -141
  1144. package/lib/components/checkbox/composables/index.d.ts +0 -5
  1145. package/lib/components/checkbox/composables/use-checkbox-disabled.d.ts +0 -6
  1146. package/lib/components/checkbox/composables/use-checkbox-event.d.ts +0 -7
  1147. package/lib/components/checkbox/composables/use-checkbox-model.d.ts +0 -7
  1148. package/lib/components/checkbox/composables/use-checkbox-status.d.ts +0 -11
  1149. package/lib/components/checkbox/composables/use-checkbox.d.ts +0 -15
  1150. package/lib/components/checkbox/constants.d.ts +0 -8
  1151. package/lib/components/checkbox/index.d.ts +0 -556
  1152. package/lib/components/checkbox/style/css.d.ts +0 -0
  1153. package/lib/components/checkbox/style/index.d.ts +0 -0
  1154. package/lib/components/checkbox/types.d.ts +0 -2
  1155. package/lib/components/checkbox-button/style/css.d.ts +0 -0
  1156. package/lib/components/checkbox-button/style/index.d.ts +0 -0
  1157. package/lib/components/checkbox-group/style/css.d.ts +0 -0
  1158. package/lib/components/checkbox-group/style/index.d.ts +0 -0
  1159. package/lib/components/clamp/clamp.vue.d.ts +0 -64
  1160. package/lib/components/clamp/index.d.ts +0 -63
  1161. package/lib/components/clamp/style/css.d.ts +0 -0
  1162. package/lib/components/clamp/style/index.d.ts +0 -0
  1163. package/lib/components/clamp-toggle/clamp-toggle.vue.d.ts +0 -101
  1164. package/lib/components/clamp-toggle/index.d.ts +0 -100
  1165. package/lib/components/clamp-toggle/style/css.d.ts +0 -0
  1166. package/lib/components/clamp-toggle/style/index.d.ts +0 -0
  1167. package/lib/components/collapse-transition/index.d.ts +0 -4
  1168. package/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +0 -2
  1169. package/lib/components/collapse-transition/style/css.d.ts +0 -0
  1170. package/lib/components/collapse-transition/style/index.d.ts +0 -0
  1171. package/lib/components/collection/collection-item.vue.d.ts +0 -2
  1172. package/lib/components/collection/collection.d.ts +0 -242
  1173. package/lib/components/collection/collection.vue.d.ts +0 -2
  1174. package/lib/components/collection/index.d.ts +0 -2
  1175. package/lib/components/collection/tokens.d.ts +0 -12
  1176. package/lib/components/color-picker/color-picker.vue.d.ts +0 -126
  1177. package/lib/components/color-picker/components/alpha-slider.vue.d.ts +0 -42
  1178. package/lib/components/color-picker/components/hue-slider.vue.d.ts +0 -44
  1179. package/lib/components/color-picker/components/predefine.vue.d.ts +0 -43
  1180. package/lib/components/color-picker/components/sv-panel.vue.d.ts +0 -42
  1181. package/lib/components/color-picker/composables/use-alpha-slider.d.ts +0 -20
  1182. package/lib/components/color-picker/contants.d.ts +0 -5
  1183. package/lib/components/color-picker/index.d.ts +0 -108
  1184. package/lib/components/color-picker/style/css.d.ts +0 -0
  1185. package/lib/components/color-picker/style/index.d.ts +0 -0
  1186. package/lib/components/color-picker/utils/color.d.ts +0 -29
  1187. package/lib/components/color-picker/utils/draggable.d.ts +0 -6
  1188. package/lib/components/config-provider/config-provider.vue.d.ts +0 -107
  1189. package/lib/components/config-provider/constants.d.ts +0 -6
  1190. package/lib/components/config-provider/hooks/use-global-config.d.ts +0 -31
  1191. package/lib/components/config-provider/index.d.ts +0 -86
  1192. package/lib/components/config-provider/style/css.d.ts +0 -0
  1193. package/lib/components/config-provider/style/index.d.ts +0 -0
  1194. package/lib/components/context-menu/context-menu.vue.d.ts +0 -39
  1195. package/lib/components/context-menu/createContextMenu.d.ts +0 -3
  1196. package/lib/components/context-menu/index.d.ts +0 -3
  1197. package/lib/components/context-menu/style/css.d.ts +0 -0
  1198. package/lib/components/context-menu/style/index.d.ts +0 -0
  1199. package/lib/components/context-menu/types.d.ts +0 -23
  1200. package/lib/components/context-menu/useContextMenu.d.ts +0 -3
  1201. package/lib/components/date-time-select/date-time-select.vue.d.ts +0 -38
  1202. package/lib/components/date-time-select/index.d.ts +0 -30
  1203. package/lib/components/date-time-select/style/css.d.ts +0 -0
  1204. package/lib/components/date-time-select/style/index.d.ts +0 -0
  1205. package/lib/components/date-time-select/types.d.ts +0 -10
  1206. package/lib/components/descriptions/description-item.vue.d.ts +0 -69
  1207. package/lib/components/descriptions/description.vue.d.ts +0 -53
  1208. package/lib/components/descriptions/descriptions-cell.d.ts +0 -25
  1209. package/lib/components/descriptions/descriptions-row.vue.d.ts +0 -13
  1210. package/lib/components/descriptions/descriptions.type.d.ts +0 -18
  1211. package/lib/components/descriptions/index.d.ts +0 -187
  1212. package/lib/components/descriptions/style/css.d.ts +0 -0
  1213. package/lib/components/descriptions/style/index.d.ts +0 -0
  1214. package/lib/components/descriptions/token.d.ts +0 -3
  1215. package/lib/components/descriptions-item/style/css.d.ts +0 -0
  1216. package/lib/components/descriptions-item/style/index.d.ts +0 -0
  1217. package/lib/components/dialog/constants.d.ts +0 -11
  1218. package/lib/components/dialog/dialog-content.vue.d.ts +0 -81
  1219. package/lib/components/dialog/dialog.vue.d.ts +0 -164
  1220. package/lib/components/dialog/hooks/use-dialog.d.ts +0 -23
  1221. package/lib/components/dialog/index.d.ts +0 -146
  1222. package/lib/components/dialog/style/css.d.ts +0 -0
  1223. package/lib/components/dialog/style/index.d.ts +0 -0
  1224. package/lib/components/dialog/types.d.ts +0 -10
  1225. package/lib/components/divider/divider.vue.d.ts +0 -53
  1226. package/lib/components/divider/index.d.ts +0 -52
  1227. package/lib/components/divider/style/css.d.ts +0 -0
  1228. package/lib/components/divider/style/index.d.ts +0 -0
  1229. package/lib/components/divider/types.d.ts +0 -2
  1230. package/lib/components/docs-layout/style/css.d.ts +0 -0
  1231. package/lib/components/docs-layout/style/index.d.ts +0 -0
  1232. package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +0 -57
  1233. package/lib/components/dropdown/dropdown-item.vue.d.ts +0 -43
  1234. package/lib/components/dropdown/dropdown-menu.vue.d.ts +0 -22
  1235. package/lib/components/dropdown/dropdown.vue.d.ts +0 -828
  1236. package/lib/components/dropdown/index.d.ts +0 -959
  1237. package/lib/components/dropdown/style/css.d.ts +0 -0
  1238. package/lib/components/dropdown/style/index.d.ts +0 -0
  1239. package/lib/components/dropdown/tokens.d.ts +0 -10
  1240. package/lib/components/dropdown/types.d.ts +0 -267
  1241. package/lib/components/dropdown/useDropdown.d.ts +0 -6
  1242. package/lib/components/dropdown-item/style/css.d.ts +0 -0
  1243. package/lib/components/dropdown-item/style/index.d.ts +0 -0
  1244. package/lib/components/dropdown-menu/style/css.d.ts +0 -0
  1245. package/lib/components/dropdown-menu/style/index.d.ts +0 -0
  1246. package/lib/components/empty/constants.d.ts +0 -12
  1247. package/lib/components/empty/empty.vue.d.ts +0 -48
  1248. package/lib/components/empty/index.d.ts +0 -37
  1249. package/lib/components/empty/style/css.d.ts +0 -0
  1250. package/lib/components/empty/style/index.d.ts +0 -0
  1251. package/lib/components/exception/exception.vue.d.ts +0 -29
  1252. package/lib/components/exception/index.d.ts +0 -28
  1253. package/lib/components/exception/style/css.d.ts +0 -0
  1254. package/lib/components/exception/style/index.d.ts +0 -0
  1255. package/lib/components/focus-trap/focus-trap.vue.d.ts +0 -32
  1256. package/lib/components/focus-trap/index.d.ts +0 -5
  1257. package/lib/components/focus-trap/tokens.d.ts +0 -13
  1258. package/lib/components/focus-trap/utils.d.ts +0 -29
  1259. package/lib/components/footer-layout/footer-layout.vue.d.ts +0 -13
  1260. package/lib/components/footer-layout/index.d.ts +0 -12
  1261. package/lib/components/footer-layout/style/css.d.ts +0 -0
  1262. package/lib/components/footer-layout/style/index.d.ts +0 -0
  1263. package/lib/components/form/constants.d.ts +0 -4
  1264. package/lib/components/form/form-item.vue.d.ts +0 -146
  1265. package/lib/components/form/form-label-wrap.d.ts +0 -11
  1266. package/lib/components/form/form.vue.d.ts +0 -168
  1267. package/lib/components/form/hooks/index.d.ts +0 -2
  1268. package/lib/components/form/hooks/use-form-common-props.d.ts +0 -6
  1269. package/lib/components/form/hooks/use-form-item.d.ts +0 -18
  1270. package/lib/components/form/index.d.ts +0 -364
  1271. package/lib/components/form/style/css.d.ts +0 -0
  1272. package/lib/components/form/style/index.d.ts +0 -0
  1273. package/lib/components/form/types.d.ts +0 -43
  1274. package/lib/components/form/utils.d.ts +0 -9
  1275. package/lib/components/form-item/style/css.d.ts +0 -0
  1276. package/lib/components/form-item/style/index.d.ts +0 -0
  1277. package/lib/components/full-screen/full-screen.vue.d.ts +0 -5
  1278. package/lib/components/full-screen/index.d.ts +0 -2
  1279. package/lib/components/full-screen/style/css.d.ts +0 -0
  1280. package/lib/components/full-screen/style/index.d.ts +0 -0
  1281. package/lib/components/header-layout/header-layout.vue.d.ts +0 -14
  1282. package/lib/components/header-layout/index.d.ts +0 -12
  1283. package/lib/components/header-layout/style/css.d.ts +0 -0
  1284. package/lib/components/header-layout/style/index.d.ts +0 -0
  1285. package/lib/components/icon/icon.vue.d.ts +0 -73
  1286. package/lib/components/icon/index.d.ts +0 -63
  1287. package/lib/components/icon/style/css.d.ts +0 -0
  1288. package/lib/components/icon/style/index.d.ts +0 -0
  1289. package/lib/components/icon-text/icon-text.vue.d.ts +0 -98
  1290. package/lib/components/icon-text/index.d.ts +0 -85
  1291. package/lib/components/icon-text/style/css.d.ts +0 -0
  1292. package/lib/components/icon-text/style/index.d.ts +0 -0
  1293. package/lib/components/iframe-layout/iframe-layout.vue.d.ts +0 -14
  1294. package/lib/components/iframe-layout/iframe-page.vue.d.ts +0 -13
  1295. package/lib/components/iframe-layout/index.d.ts +0 -12
  1296. package/lib/components/iframe-layout/style/css.d.ts +0 -0
  1297. package/lib/components/iframe-layout/style/index.d.ts +0 -0
  1298. package/lib/components/image/image.vue.d.ts +0 -122
  1299. package/lib/components/image/index.d.ts +0 -108
  1300. package/lib/components/image/style/css.d.ts +0 -0
  1301. package/lib/components/image/style/index.d.ts +0 -0
  1302. package/lib/components/image/types.d.ts +0 -1
  1303. package/lib/components/image-viewer/image-viewer.vue.d.ts +0 -88
  1304. package/lib/components/image-viewer/index.d.ts +0 -77
  1305. package/lib/components/image-viewer/style/css.d.ts +0 -0
  1306. package/lib/components/image-viewer/style/index.d.ts +0 -0
  1307. package/lib/components/image-viewer/types.d.ts +0 -1
  1308. package/lib/components/index.d.ts +0 -60
  1309. package/lib/components/input/index.d.ts +0 -252
  1310. package/lib/components/input/input.vue.d.ts +0 -265
  1311. package/lib/components/input/style/css.d.ts +0 -0
  1312. package/lib/components/input/style/index.d.ts +0 -0
  1313. package/lib/components/input/utils.d.ts +0 -6
  1314. package/lib/components/link/index.d.ts +0 -54
  1315. package/lib/components/link/link.vue.d.ts +0 -58
  1316. package/lib/components/link/style/css.d.ts +0 -0
  1317. package/lib/components/link/style/index.d.ts +0 -0
  1318. package/lib/components/list-cell/index.d.ts +0 -38
  1319. package/lib/components/list-cell/list-cell.vue.d.ts +0 -53
  1320. package/lib/components/list-cell/style/css.d.ts +0 -0
  1321. package/lib/components/list-cell/style/index.d.ts +0 -0
  1322. package/lib/components/loading/directive.d.ts +0 -18
  1323. package/lib/components/loading/index.d.ts +0 -48
  1324. package/lib/components/loading/loading.d.ts +0 -36
  1325. package/lib/components/loading/service.d.ts +0 -3
  1326. package/lib/components/loading/style/css.d.ts +0 -0
  1327. package/lib/components/loading/style/index.d.ts +0 -0
  1328. package/lib/components/loading/types.d.ts +0 -27
  1329. package/lib/components/logo/index.d.ts +0 -29
  1330. package/lib/components/logo/logo.vue.d.ts +0 -29
  1331. package/lib/components/logo/style/css.d.ts +0 -0
  1332. package/lib/components/logo/style/index.d.ts +0 -0
  1333. package/lib/components/logo/types.d.ts +0 -6
  1334. package/lib/components/md-code-demo/code-demo/code.d.ts +0 -13
  1335. package/lib/components/md-code-demo/code-demo/index.d.ts +0 -2
  1336. package/lib/components/md-code-demo/code-demo/loadScript.d.ts +0 -5
  1337. package/lib/components/md-code-demo/code-demo/typings.d.ts +0 -15
  1338. package/lib/components/md-code-demo/code-demo/utils.d.ts +0 -13
  1339. package/lib/components/md-code-demo/index.d.ts +0 -50
  1340. package/lib/components/md-code-demo/md-code-demo.d.ts +0 -99
  1341. package/lib/components/md-code-demo/style/css.d.ts +0 -0
  1342. package/lib/components/md-code-demo/style/index.d.ts +0 -0
  1343. package/lib/components/md-code-demo/type.d.ts +0 -89
  1344. package/lib/components/md-code-demo/utils.d.ts +0 -5
  1345. package/lib/components/md-code-tabs/index.d.ts +0 -41
  1346. package/lib/components/md-code-tabs/md-code-tabs.d.ts +0 -81
  1347. package/lib/components/md-code-tabs/style/css.d.ts +0 -0
  1348. package/lib/components/md-code-tabs/style/index.d.ts +0 -0
  1349. package/lib/components/md-comment/index.d.ts +0 -2
  1350. package/lib/components/md-comment/md-comment.vue.d.ts +0 -2
  1351. package/lib/components/md-comment/style/css.d.ts +0 -0
  1352. package/lib/components/md-comment/style/index.d.ts +0 -0
  1353. package/lib/components/md-container/index.d.ts +0 -4
  1354. package/lib/components/md-container/md-container.vue.d.ts +0 -4
  1355. package/lib/components/md-container/style/css.d.ts +0 -0
  1356. package/lib/components/md-container/style/index.d.ts +0 -0
  1357. package/lib/components/md-container/toc.d.ts +0 -44
  1358. package/lib/components/md-container/use/index.d.ts +0 -2
  1359. package/lib/components/md-container/use/useActiveHeaderLinks.d.ts +0 -7
  1360. package/lib/components/md-container/use/useCopyCode.d.ts +0 -1
  1361. package/lib/components/md-container/utils.d.ts +0 -11
  1362. package/lib/components/md-tabs/index.d.ts +0 -42
  1363. package/lib/components/md-tabs/md-tabs.d.ts +0 -84
  1364. package/lib/components/md-tabs/style/css.d.ts +0 -0
  1365. package/lib/components/md-tabs/style/index.d.ts +0 -0
  1366. package/lib/components/md-vue-playground/index.d.ts +0 -28
  1367. package/lib/components/md-vue-playground/md-vue-playground.vue.d.ts +0 -29
  1368. package/lib/components/md-vue-playground/playground.d.ts +0 -97
  1369. package/lib/components/md-vue-playground/style/css.d.ts +0 -0
  1370. package/lib/components/md-vue-playground/style/index.d.ts +0 -0
  1371. package/lib/components/menu/index.d.ts +0 -504
  1372. package/lib/components/menu/menu-collapse-transition.vue.d.ts +0 -5
  1373. package/lib/components/menu/menu-item-group.vue.d.ts +0 -13
  1374. package/lib/components/menu/menu-item.vue.d.ts +0 -81
  1375. package/lib/components/menu/menu.vue.d.ts +0 -109
  1376. package/lib/components/menu/style/css.d.ts +0 -0
  1377. package/lib/components/menu/style/index.d.ts +0 -0
  1378. package/lib/components/menu/sub-menu.vue.d.ts +0 -112
  1379. package/lib/components/menu/types.d.ts +0 -59
  1380. package/lib/components/menu/use-menu-css-var.d.ts +0 -1
  1381. package/lib/components/menu/use-menu.d.ts +0 -14
  1382. package/lib/components/menu/utils/menu-bar.d.ts +0 -7
  1383. package/lib/components/menu/utils/menu-item.d.ts +0 -9
  1384. package/lib/components/menu/utils/submenu.d.ts +0 -12
  1385. package/lib/components/menu-item/style/css.d.ts +0 -0
  1386. package/lib/components/menu-item/style/index.d.ts +0 -0
  1387. package/lib/components/menu-item-group/style/css.d.ts +0 -0
  1388. package/lib/components/menu-item-group/style/index.d.ts +0 -0
  1389. package/lib/components/message/index.d.ts +0 -4
  1390. package/lib/components/message/instance.d.ts +0 -17
  1391. package/lib/components/message/message.vue.d.ts +0 -145
  1392. package/lib/components/message/method.d.ts +0 -4
  1393. package/lib/components/message/style/css.d.ts +0 -0
  1394. package/lib/components/message/style/index.d.ts +0 -0
  1395. package/lib/components/message/types.d.ts +0 -63
  1396. package/lib/components/multiple-tabs/index.d.ts +0 -30
  1397. package/lib/components/multiple-tabs/multiple-tabs.vue.d.ts +0 -29
  1398. package/lib/components/multiple-tabs/style/css.d.ts +0 -0
  1399. package/lib/components/multiple-tabs/style/index.d.ts +0 -0
  1400. package/lib/components/multiple-tabs/tab-content.vue.d.ts +0 -40
  1401. package/lib/components/multiple-tabs/types.d.ts +0 -3
  1402. package/lib/components/multiple-tabs/use/index.d.ts +0 -2
  1403. package/lib/components/multiple-tabs/use/use-multiple-tabs.d.ts +0 -9
  1404. package/lib/components/multiple-tabs/use/use-tab-dropdown.d.ts +0 -6
  1405. package/lib/components/overlay/index.d.ts +0 -46
  1406. package/lib/components/overlay/overlay.vue.d.ts +0 -47
  1407. package/lib/components/overlay/style/css.d.ts +0 -0
  1408. package/lib/components/overlay/style/index.d.ts +0 -0
  1409. package/lib/components/page-wrapper/index.d.ts +0 -12
  1410. package/lib/components/page-wrapper/page-wrapper.vue.d.ts +0 -13
  1411. package/lib/components/page-wrapper/style/css.d.ts +0 -0
  1412. package/lib/components/page-wrapper/style/index.d.ts +0 -0
  1413. package/lib/components/pagination/components/jumper.vue.d.ts +0 -14
  1414. package/lib/components/pagination/components/next.vue.d.ts +0 -39
  1415. package/lib/components/pagination/components/pager.vue.d.ts +0 -39
  1416. package/lib/components/pagination/components/prev.vue.d.ts +0 -31
  1417. package/lib/components/pagination/components/sizes.vue.d.ts +0 -47
  1418. package/lib/components/pagination/components/total.vue.d.ts +0 -13
  1419. package/lib/components/pagination/index.d.ts +0 -164
  1420. package/lib/components/pagination/pagination.vue.d.ts +0 -185
  1421. package/lib/components/pagination/style/css.d.ts +0 -0
  1422. package/lib/components/pagination/style/index.d.ts +0 -0
  1423. package/lib/components/pagination/usePagination.d.ts +0 -10
  1424. package/lib/components/popover/directive.d.ts +0 -4
  1425. package/lib/components/popover/index.d.ts +0 -182
  1426. package/lib/components/popover/popover.vue.d.ts +0 -187
  1427. package/lib/components/popover/style/css.d.ts +0 -0
  1428. package/lib/components/popover/style/index.d.ts +0 -0
  1429. package/lib/components/popover/types.d.ts +0 -26
  1430. package/lib/components/popper/arrow.vue.d.ts +0 -18
  1431. package/lib/components/popper/composables/index.d.ts +0 -3
  1432. package/lib/components/popper/composables/use-content-dom.d.ts +0 -16
  1433. package/lib/components/popper/composables/use-content.d.ts +0 -77
  1434. package/lib/components/popper/composables/use-focus-trap.d.ts +0 -11
  1435. package/lib/components/popper/constants.d.ts +0 -24
  1436. package/lib/components/popper/content.vue.d.ts +0 -222
  1437. package/lib/components/popper/index.d.ts +0 -18
  1438. package/lib/components/popper/popper.vue.d.ts +0 -13
  1439. package/lib/components/popper/style/css.d.ts +0 -0
  1440. package/lib/components/popper/style/index.d.ts +0 -0
  1441. package/lib/components/popper/trigger.vue.d.ts +0 -99
  1442. package/lib/components/popper/types.d.ts +0 -45
  1443. package/lib/components/popper/utils.d.ts +0 -49
  1444. package/lib/components/qrcode/drawCanvas.d.ts +0 -2
  1445. package/lib/components/qrcode/drawLogo.d.ts +0 -2
  1446. package/lib/components/qrcode/index.d.ts +0 -50
  1447. package/lib/components/qrcode/qrcode.vue.d.ts +0 -51
  1448. package/lib/components/qrcode/qrcodePlus.d.ts +0 -3
  1449. package/lib/components/qrcode/style/css.d.ts +0 -0
  1450. package/lib/components/qrcode/style/index.d.ts +0 -0
  1451. package/lib/components/qrcode/toCanvas.d.ts +0 -2
  1452. package/lib/components/qrcode/types.d.ts +0 -31
  1453. package/lib/components/radio/constants.d.ts +0 -6
  1454. package/lib/components/radio/index.d.ts +0 -294
  1455. package/lib/components/radio/radio-button.vue.d.ts +0 -44
  1456. package/lib/components/radio/radio-group.vue.d.ts +0 -96
  1457. package/lib/components/radio/radio.vue.d.ts +0 -65
  1458. package/lib/components/radio/style/css.d.ts +0 -0
  1459. package/lib/components/radio/style/index.d.ts +0 -0
  1460. package/lib/components/radio/use-radio.d.ts +0 -15
  1461. package/lib/components/radio-button/style/css.d.ts +0 -0
  1462. package/lib/components/radio-button/style/index.d.ts +0 -0
  1463. package/lib/components/radio-group/style/css.d.ts +0 -0
  1464. package/lib/components/radio-group/style/index.d.ts +0 -0
  1465. package/lib/components/result/index.d.ts +0 -28
  1466. package/lib/components/result/result.vue.d.ts +0 -30
  1467. package/lib/components/result/style/css.d.ts +0 -0
  1468. package/lib/components/result/style/index.d.ts +0 -0
  1469. package/lib/components/router-view-content/index.d.ts +0 -52
  1470. package/lib/components/router-view-content/router-view-content.vue.d.ts +0 -54
  1471. package/lib/components/router-view-content/style/css.d.ts +0 -0
  1472. package/lib/components/router-view-content/style/index.d.ts +0 -0
  1473. package/lib/components/roving-focus-group/index.d.ts +0 -10
  1474. package/lib/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +0 -48
  1475. package/lib/components/roving-focus-group/roving-focus-group.vue.d.ts +0 -2
  1476. package/lib/components/roving-focus-group/roving-focus-item.vue.d.ts +0 -32
  1477. package/lib/components/roving-focus-group/tokens.d.ts +0 -37
  1478. package/lib/components/roving-focus-group/types.d.ts +0 -252
  1479. package/lib/components/roving-focus-group/utils.d.ts +0 -8
  1480. package/lib/components/scrollbar/bar.vue.d.ts +0 -54
  1481. package/lib/components/scrollbar/constants.d.ts +0 -6
  1482. package/lib/components/scrollbar/index.d.ts +0 -113
  1483. package/lib/components/scrollbar/scrollbar.vue.d.ts +0 -163
  1484. package/lib/components/scrollbar/style/css.d.ts +0 -0
  1485. package/lib/components/scrollbar/style/index.d.ts +0 -0
  1486. package/lib/components/scrollbar/thumb.vue.d.ts +0 -52
  1487. package/lib/components/scrollbar/types.d.ts +0 -2
  1488. package/lib/components/scrollbar/util.d.ts +0 -28
  1489. package/lib/components/search/index.d.ts +0 -98
  1490. package/lib/components/search/search.vue.d.ts +0 -100
  1491. package/lib/components/search/style/css.d.ts +0 -0
  1492. package/lib/components/search/style/index.d.ts +0 -0
  1493. package/lib/components/select-v2/defaults.d.ts +0 -113
  1494. package/lib/components/select-v2/group-item.vue.d.ts +0 -35
  1495. package/lib/components/select-v2/index.d.ts +0 -2025
  1496. package/lib/components/select-v2/option-item.vue.d.ts +0 -49
  1497. package/lib/components/select-v2/select-dropdown.d.ts +0 -16
  1498. package/lib/components/select-v2/select.types.d.ts +0 -18
  1499. package/lib/components/select-v2/select.vue.d.ts +0 -1012
  1500. package/lib/components/select-v2/style/css.d.ts +0 -0
  1501. package/lib/components/select-v2/style/index.d.ts +0 -0
  1502. package/lib/components/select-v2/token.d.ts +0 -16
  1503. package/lib/components/select-v2/useAllowCreate.d.ts +0 -8
  1504. package/lib/components/select-v2/useInput.d.ts +0 -5
  1505. package/lib/components/select-v2/useOption.d.ts +0 -7
  1506. package/lib/components/select-v2/useSelect.d.ts +0 -782
  1507. package/lib/components/select-v2/util.d.ts +0 -2
  1508. package/lib/components/side-menu/index.d.ts +0 -155
  1509. package/lib/components/side-menu/side-menu.vue.d.ts +0 -156
  1510. package/lib/components/side-menu/style/css.d.ts +0 -0
  1511. package/lib/components/side-menu/style/index.d.ts +0 -0
  1512. package/lib/components/side-menu/types.d.ts +0 -19
  1513. package/lib/components/side-menu/use-drag-line.d.ts +0 -10
  1514. package/lib/components/slot/index.d.ts +0 -2
  1515. package/lib/components/slot/only-child.d.ts +0 -7
  1516. package/lib/components/sub-menu/style/css.d.ts +0 -0
  1517. package/lib/components/sub-menu/style/index.d.ts +0 -0
  1518. package/lib/components/switch/index.d.ts +0 -205
  1519. package/lib/components/switch/style/css.d.ts +0 -0
  1520. package/lib/components/switch/style/index.d.ts +0 -0
  1521. package/lib/components/switch/switch.vue.d.ts +0 -236
  1522. package/lib/components/tab-pane/style/css.d.ts +0 -0
  1523. package/lib/components/tab-pane/style/index.d.ts +0 -0
  1524. package/lib/components/table/style/css.d.ts +0 -0
  1525. package/lib/components/table/style/index.d.ts +0 -0
  1526. package/lib/components/table/table.vue.d.ts +0 -121
  1527. package/lib/components/table/type.d.ts +0 -21
  1528. package/lib/components/tabs/index.d.ts +0 -274
  1529. package/lib/components/tabs/style/css.d.ts +0 -0
  1530. package/lib/components/tabs/style/index.d.ts +0 -0
  1531. package/lib/components/tabs/tab-bar.vue.d.ts +0 -51
  1532. package/lib/components/tabs/tab-nav.vue.d.ts +0 -120
  1533. package/lib/components/tabs/tab-pane.vue.d.ts +0 -45
  1534. package/lib/components/tabs/tabs.vue.d.ts +0 -159
  1535. package/lib/components/tabs/types.d.ts +0 -59
  1536. package/lib/components/tag/index.d.ts +0 -71
  1537. package/lib/components/tag/style/css.d.ts +0 -0
  1538. package/lib/components/tag/style/index.d.ts +0 -0
  1539. package/lib/components/tag/tag.vue.d.ts +0 -74
  1540. package/lib/components/tag/types.d.ts +0 -1
  1541. package/lib/components/time-select-extend/style/css.cjs +0 -1
  1542. package/lib/components/time-select-extend/style/css.d.ts +0 -0
  1543. package/lib/components/time-select-extend/style/index.cjs +0 -1
  1544. package/lib/components/time-select-extend/style/index.d.ts +0 -0
  1545. package/lib/components/tooltip/constants.d.ts +0 -18
  1546. package/lib/components/tooltip/content.vue.d.ts +0 -268
  1547. package/lib/components/tooltip/index.d.ts +0 -398
  1548. package/lib/components/tooltip/style/css.d.ts +0 -0
  1549. package/lib/components/tooltip/style/index.d.ts +0 -0
  1550. package/lib/components/tooltip/tooltip.vue.d.ts +0 -470
  1551. package/lib/components/tooltip/trigger.vue.d.ts +0 -54
  1552. package/lib/components/tooltip/types.d.ts +0 -53
  1553. package/lib/components/tooltip/utils.d.ts +0 -11
  1554. package/lib/components/types.d.ts +0 -1
  1555. package/lib/components/verify-code/index.d.ts +0 -23
  1556. package/lib/components/verify-code/style/css.d.ts +0 -0
  1557. package/lib/components/verify-code/style/index.d.ts +0 -0
  1558. package/lib/components/verify-code/useImageVerify.d.ts +0 -11
  1559. package/lib/components/verify-code/verify-code.vue.d.ts +0 -24
  1560. package/lib/components/virtual-list/builders/build-grid.d.ts +0 -214
  1561. package/lib/components/virtual-list/builders/build-list.d.ts +0 -167
  1562. package/lib/components/virtual-list/components/dynamic-size-grid.d.ts +0 -206
  1563. package/lib/components/virtual-list/components/dynamic-size-list.d.ts +0 -165
  1564. package/lib/components/virtual-list/components/fixed-size-grid.d.ts +0 -193
  1565. package/lib/components/virtual-list/components/fixed-size-list.d.ts +0 -164
  1566. package/lib/components/virtual-list/components/scrollbar.d.ts +0 -79
  1567. package/lib/components/virtual-list/defaults.d.ts +0 -30
  1568. package/lib/components/virtual-list/hooks/use-cache.d.ts +0 -1
  1569. package/lib/components/virtual-list/hooks/use-grid-wheel.d.ts +0 -13
  1570. package/lib/components/virtual-list/hooks/use-wheel.d.ts +0 -13
  1571. package/lib/components/virtual-list/index.d.ts +0 -8
  1572. package/lib/components/virtual-list/props.d.ts +0 -201
  1573. package/lib/components/virtual-list/style/css.d.ts +0 -0
  1574. package/lib/components/virtual-list/style/index.d.ts +0 -0
  1575. package/lib/components/virtual-list/types.d.ts +0 -137
  1576. package/lib/components/virtual-list/utils.d.ts +0 -17
  1577. package/lib/constants/aria.d.ts +0 -17
  1578. package/lib/constants/date.d.ts +0 -3
  1579. package/lib/constants/event.d.ts +0 -3
  1580. package/lib/constants/index.d.ts +0 -5
  1581. package/lib/constants/key.d.ts +0 -1
  1582. package/lib/constants/size.d.ts +0 -7
  1583. package/lib/defaults.d.ts +0 -5
  1584. package/lib/hooks/index.d.ts +0 -16
  1585. package/lib/hooks/use-cursor/index.d.ts +0 -2
  1586. package/lib/hooks/use-delayed-toggle/index.d.ts +0 -10
  1587. package/lib/hooks/use-draggable/index.d.ts +0 -2
  1588. package/lib/hooks/use-forward-ref/index.d.ts +0 -9
  1589. package/lib/hooks/use-id/index.d.ts +0 -9
  1590. package/lib/hooks/use-lockscreen/index.d.ts +0 -11
  1591. package/lib/hooks/use-model-toggle/index.d.ts +0 -25
  1592. package/lib/hooks/use-namespace/index.d.ts +0 -24
  1593. package/lib/hooks/use-ordered-children/index.d.ts +0 -8
  1594. package/lib/hooks/use-popper/index.d.ts +0 -78
  1595. package/lib/hooks/use-popper-container/index.d.ts +0 -5
  1596. package/lib/hooks/use-prop/index.d.ts +0 -2
  1597. package/lib/hooks/use-same-target/index.d.ts +0 -5
  1598. package/lib/hooks/use-size/index.d.ts +0 -7
  1599. package/lib/hooks/use-timeout/index.d.ts +0 -4
  1600. package/lib/hooks/use-z-index/index.d.ts +0 -9
  1601. package/lib/index.d.ts +0 -11
  1602. package/lib/make-installer.d.ts +0 -6
  1603. package/lib/plugin.d.ts +0 -3
  1604. package/lib/utils/dom/index.d.ts +0 -2
  1605. package/lib/utils/dom/position.d.ts +0 -7
  1606. package/lib/utils/dom/scroll.d.ts +0 -8
  1607. package/lib/utils/error.d.ts +0 -3
  1608. package/lib/utils/event.d.ts +0 -6
  1609. package/lib/utils/helper.d.ts +0 -1
  1610. package/lib/utils/index.d.ts +0 -8
  1611. package/lib/utils/ns-cover.d.ts +0 -16
  1612. package/lib/utils/objects.d.ts +0 -4
  1613. package/lib/utils/typescript.d.ts +0 -12
  1614. package/lib/utils/vue/data-helper.d.ts +0 -1
  1615. package/lib/utils/vue/index.d.ts +0 -7
  1616. package/lib/utils/vue/install.d.ts +0 -6
  1617. package/lib/utils/vue/props/index.d.ts +0 -3
  1618. package/lib/utils/vue/props/runtime.d.ts +0 -28
  1619. package/lib/utils/vue/props/types.d.ts +0 -120
  1620. package/lib/utils/vue/props/util.d.ts +0 -8
  1621. package/lib/utils/vue/raf.d.ts +0 -2
  1622. package/lib/utils/vue/refs.d.ts +0 -3
  1623. package/lib/utils/vue/typescript.d.ts +0 -5
  1624. package/lib/utils/vue/vnode.d.ts +0 -51
  1625. package/theme-style/src/md/list.scss +0 -21
  1626. /package/{es/components/alert/style/css.d.ts → theme-style/src/breadcrumb-item.scss} +0 -0
  1627. /package/{es/components/alert/style/index.d.ts → theme-style/src/collapse-item.scss} +0 -0
  1628. /package/{es/components/avatar/style/css.d.ts → theme-style/src/infinite-scroll.scss} +0 -0
  1629. /package/{es/components/avatar/style/index.d.ts → theme-style/vft-breadcrumb-item.css} +0 -0
  1630. /package/{es/components/back-top/style/css.d.ts → theme-style/vft-collapse-item.css} +0 -0
  1631. /package/{es/components/back-top/style/index.d.ts → theme-style/vft-infinite-scroll.css} +0 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../config-provider/hooks/use-global-config.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");const F=require("../../hooks/use-id/index.cjs");require("@vueuse/core");require("@vft/utils");const c=require("../../utils/event.cjs");require("../../utils/ns-cover.cjs");require("@vue/reactivity");require("@vue/shared");const g=require("../../constants/aria.cjs"),p=require("./types.cjs"),v=require("./tokens.cjs"),i=require("./utils.cjs"),k=e.defineComponent({components:{RovingFocusCollectionItem:p.VftCollectionItem},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(m,{emit:s}){const{currentTabbedId:_,loop:q,onItemFocus:a,onItemShiftTab:O}=e.inject(v.ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{getItems:E}=e.inject(p.ROVING_FOCUS_COLLECTION_INJECTION_KEY,void 0),o=F.useId(),b=e.ref(null),l=c.composeEventHandlers(t=>{s("mousedown",t)},t=>{m.focusable?a(e.unref(o)):t.preventDefault()}),d=c.composeEventHandlers(t=>{s("focus",t)},()=>{a(e.unref(o))}),f=c.composeEventHandlers(t=>{s("keydown",t)},t=>{const{key:T,shiftKey:N,target:y,currentTarget:I}=t;if(T===g.EVENT_CODE.tab&&N){O();return}if(y!==I)return;const u=i.getFocusIntent(t);if(u){t.preventDefault();let r=E().filter(n=>n.focusable).map(n=>n.ref);switch(u){case"last":{r.reverse();break}case"prev":case"next":{u==="prev"&&r.reverse();const n=r.indexOf(I);r=q.value?i.reorderArray(r,n+1):r.slice(n+1);break}}e.nextTick(()=>{i.focusFirst(r)})}}),C=e.computed(()=>_.value===e.unref(o));return e.provide(v.ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,{rovingFocusGroupItemRef:b,tabIndex:e.computed(()=>e.unref(C)?0:-1),handleMousedown:l,handleFocus:d,handleKeydown:f}),{id:o,handleKeydown:f,handleFocus:d,handleMousedown:l}}});exports.default=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../config-provider/hooks/use-global-config.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");const F=require("../../hooks/use-id/index.cjs");require("@vueuse/core");require("@vft/utils");const c=require("../../utils/event.cjs");require("../../utils/ns-cover.cjs");const g=require("../../constants/aria.cjs"),p=require("./types.cjs"),v=require("./tokens.cjs"),i=require("./utils.cjs"),k=e.defineComponent({components:{RovingFocusCollectionItem:p.VftCollectionItem},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(m,{emit:s}){const{currentTabbedId:_,loop:O,onItemFocus:a,onItemShiftTab:q}=e.inject(v.ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{getItems:E}=e.inject(p.ROVING_FOCUS_COLLECTION_INJECTION_KEY,void 0),o=F.useId(),b=e.ref(null),l=c.composeEventHandlers(t=>{s("mousedown",t)},t=>{m.focusable?a(e.unref(o)):t.preventDefault()}),d=c.composeEventHandlers(t=>{s("focus",t)},()=>{a(e.unref(o))}),f=c.composeEventHandlers(t=>{s("keydown",t)},t=>{const{key:T,shiftKey:N,target:y,currentTarget:I}=t;if(T===g.EVENT_CODE.tab&&N){q();return}if(y!==I)return;const u=i.getFocusIntent(t);if(u){t.preventDefault();let r=E().filter(n=>n.focusable).map(n=>n.ref);switch(u){case"last":{r.reverse();break}case"prev":case"next":{u==="prev"&&r.reverse();const n=r.indexOf(I);r=O.value?i.reorderArray(r,n+1):r.slice(n+1);break}}e.nextTick(()=>{i.focusFirst(r)})}}),C=e.computed(()=>_.value===e.unref(o));return e.provide(v.ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,{rovingFocusGroupItemRef:b,tabIndex:e.computed(()=>e.unref(C)?0:-1),handleMousedown:l,handleFocus:d,handleKeydown:f}),{id:o,handleKeydown:f,handleFocus:d,handleMousedown:l}}});exports.default=k;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Symbol("rowContextKey");exports.rowContextKey=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../utils/vue/install.cjs");require("vue");require("@vft/utils");require("lodash");require("@vueuse/core");require("../../utils/ns-cover.cjs");const r=require("./row.vue2.cjs"),u=require("./constants.cjs"),e=t.withInstall(r.default);exports.rowContextKey=u.rowContextKey;exports.VftRow=e;exports.default=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./row.vue2.cjs");exports.default=e.default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("./constants.cjs"),l=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");const s=l.useNamespace("row"),c=e.defineComponent({name:s.b()}),d=e.defineComponent({...c,props:{tag:{default:"div"},gutter:{default:0},justify:{default:"start"},align:{default:"top"}},setup(n){const t=n,u=e.computed(()=>t.gutter);e.provide(a.rowContextKey,{gutter:u});const o=e.computed(()=>{const r={};return t.gutter&&(r.marginRight=r.marginLeft=`-${t.gutter/2}px`),r}),i=e.computed(()=>[s.b(),s.is(`justify-${t.justify}`,t.justify!=="start"),s.is(`align-${t.align}`,t.align!=="top")]);return(r,f)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.tag),{class:e.normalizeClass(e.unref(i)),style:e.normalizeStyle(e.unref(o))},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},8,["class","style"]))}});exports.default=d;
@@ -0,0 +1 @@
1
+ "use strict";require("vft/theme-style/base.css");require("vft/theme-style/vft-row.css");
@@ -0,0 +1 @@
1
+ "use strict";require("vft/theme-style/src/base.scss");require("vft/theme-style/src/row.scss");
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../utils/vue/install.cjs");require("vue");require("@vft/utils");require("lodash");require("@vueuse/core");require("../../utils/ns-cover.cjs");const u=require("./scrollbar.vue2.cjs"),e=require("./util.cjs");require("../config-provider/hooks/use-global-config.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");require("@vue/reactivity");require("@vue/shared");const l=require("./constants.cjs"),r=t.withInstall(u.default);exports.BAR_MAP=e.BAR_MAP;exports.GAP=e.GAP;exports.renderThumbStyle=e.renderThumbStyle;exports.scrollbarContextKey=l.scrollbarContextKey;exports.VftScrollbar=r;exports.default=r;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../utils/vue/install.cjs");require("vue");require("@vft/utils");require("lodash");require("@vueuse/core");require("../../utils/ns-cover.cjs");const u=require("./scrollbar.vue2.cjs"),e=require("./util.cjs");require("../config-provider/hooks/use-global-config.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const l=require("./constants.cjs"),r=t.withInstall(u.default);exports.BAR_MAP=e.BAR_MAP;exports.GAP=e.GAP;exports.renderThumbStyle=e.renderThumbStyle;exports.scrollbarContextKey=l.scrollbarContextKey;exports.VftScrollbar=r;exports.default=r;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("@vueuse/core"),i=require("@vft/utils"),P=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");const k=require("../../utils/error.cjs");require("../../utils/ns-cover.cjs");require("@vue/reactivity");require("@vue/shared");const d=require("./util.cjs"),A=require("./bar.vue2.cjs"),G=require("./constants.cjs"),N="ElScrollbar",o=P.useNamespace("scrollbar"),L=e.defineComponent({name:o.b()}),O=e.defineComponent({...L,props:{height:{default:""},maxHeight:{default:""},native:{type:Boolean,default:!1},wrapStyle:{default:""},wrapClass:{default:""},viewClass:{default:""},viewStyle:{default:""},noresize:{type:Boolean},tag:{default:"div"},always:{type:Boolean},minSize:{default:20}},emits:{scroll:({scrollTop:l,scrollLeft:v})=>[l,v].every(i.isNumber)},setup(l,{expose:v,emit:T}){let s,u;const b=e.ref(),r=e.ref(),w=e.ref(),g=e.ref("0"),S=e.ref("0"),m=e.ref(),x=e.ref(1),z=e.ref(1),H=e.computed(()=>{const t={};return l.height&&(t.height=i.addUnit(l.height)),l.maxHeight&&(t.maxHeight=i.addUnit(l.maxHeight)),[l.wrapStyle,t]}),B=e.computed(()=>[l.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!l.native}]),E=e.computed(()=>[o.e("view"),l.viewClass]),q=()=>{var t;r.value&&((t=m.value)==null||t.handleScroll(r.value),T("scroll",{scrollTop:r.value.scrollTop,scrollLeft:r.value.scrollLeft}))};function M(t,a){i.isObject(t)?r.value.scrollTo(t):i.isNumber(t)&&i.isNumber(a)&&r.value.scrollTo(t,a)}const R=t=>{if(!i.isNumber(t)){k.debugWarn(N,"value must be a number");return}r.value.scrollTop=t},W=t=>{if(!i.isNumber(t)){k.debugWarn(N,"value must be a number");return}r.value.scrollLeft=t},n=()=>{if(!r.value)return;const t=r.value.offsetHeight-d.GAP,a=r.value.offsetWidth-d.GAP,h=t**2/r.value.scrollHeight,y=a**2/r.value.scrollWidth,c=Math.max(h,l.minSize),f=Math.max(y,l.minSize);x.value=h/(t-h)/(c/(t-c)),z.value=y/(a-y)/(f/(a-f)),S.value=c+d.GAP<t?`${c}px`:"",g.value=f+d.GAP<a?`${f}px`:""};return e.watch(()=>l.noresize,t=>{t?(s==null||s(),u==null||u()):({stop:s}=C.useResizeObserver(w,n),u=C.useEventListener("resize",n))},{immediate:!0}),e.watch(()=>[l.maxHeight,l.height],()=>{l.native||e.nextTick(()=>{var t;n(),r.value&&((t=m.value)==null||t.handleScroll(r.value))})}),e.provide(G.scrollbarContextKey,e.reactive({scrollbarElement:b,wrapElement:r})),e.onMounted(()=>{l.native||e.nextTick(()=>{n()})}),e.onUpdated(()=>n()),v({wrapRef:r,update:n,scrollTo:M,setScrollTop:R,setScrollLeft:W,handleScroll:q}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"scrollbarRef",ref:b,class:e.normalizeClass(e.unref(o).b())},[e.createElementVNode("div",{ref_key:"wrapRef",ref:r,class:e.normalizeClass(e.unref(B)),style:e.normalizeStyle(e.unref(H)),onScroll:q},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.tag),{ref_key:"resizeRef",ref:w,class:e.normalizeClass(e.unref(E)),style:e.normalizeStyle(l.viewStyle)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["class","style"]))],38),l.native?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(A.default,{key:0,ref_key:"barRef",ref:m,height:S.value,width:g.value,always:l.always,"ratio-x":z.value,"ratio-y":x.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});exports.default=O;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("@vueuse/core"),i=require("@vft/utils"),P=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");const q=require("../../utils/error.cjs");require("../../utils/ns-cover.cjs");const d=require("./util.cjs"),A=require("./bar.vue2.cjs"),G=require("./constants.cjs"),N="ElScrollbar",o=P.useNamespace("scrollbar"),L=e.defineComponent({name:o.b()}),O=e.defineComponent({...L,props:{height:{default:""},maxHeight:{default:""},native:{type:Boolean,default:!1},wrapStyle:{default:""},wrapClass:{default:""},viewClass:{default:""},viewStyle:{default:""},noresize:{type:Boolean},tag:{default:"div"},always:{type:Boolean},minSize:{default:20}},emits:{scroll:({scrollTop:l,scrollLeft:v})=>[l,v].every(i.isNumber)},setup(l,{expose:v,emit:T}){let s,u;const b=e.ref(),a=e.ref(),w=e.ref(),g=e.ref("0"),S=e.ref("0"),m=e.ref(),x=e.ref(1),z=e.ref(1),H=e.computed(()=>{const t={};return l.height&&(t.height=i.addUnit(l.height)),l.maxHeight&&(t.maxHeight=i.addUnit(l.maxHeight)),[l.wrapStyle,t]}),B=e.computed(()=>[l.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!l.native}]),E=e.computed(()=>[o.e("view"),l.viewClass]),C=()=>{var t;a.value&&((t=m.value)==null||t.handleScroll(a.value),T("scroll",{scrollTop:a.value.scrollTop,scrollLeft:a.value.scrollLeft}))};function M(t,r){i.isObject(t)?a.value.scrollTo(t):i.isNumber(t)&&i.isNumber(r)&&a.value.scrollTo(t,r)}const R=t=>{if(!i.isNumber(t)){q.debugWarn(N,"value must be a number");return}a.value.scrollTop=t},W=t=>{if(!i.isNumber(t)){q.debugWarn(N,"value must be a number");return}a.value.scrollLeft=t},n=()=>{if(!a.value)return;const t=a.value.offsetHeight-d.GAP,r=a.value.offsetWidth-d.GAP,h=t**2/a.value.scrollHeight,y=r**2/a.value.scrollWidth,c=Math.max(h,l.minSize),f=Math.max(y,l.minSize);x.value=h/(t-h)/(c/(t-c)),z.value=y/(r-y)/(f/(r-f)),S.value=c+d.GAP<t?`${c}px`:"",g.value=f+d.GAP<r?`${f}px`:""};return e.watch(()=>l.noresize,t=>{t?(s==null||s(),u==null||u()):({stop:s}=k.useResizeObserver(w,n),u=k.useEventListener("resize",n))},{immediate:!0}),e.watch(()=>[l.maxHeight,l.height],()=>{l.native||e.nextTick(()=>{var t;n(),a.value&&((t=m.value)==null||t.handleScroll(a.value))})}),e.provide(G.scrollbarContextKey,e.reactive({scrollbarElement:b,wrapElement:a})),e.onMounted(()=>{l.native||e.nextTick(()=>{n()})}),e.onUpdated(()=>n()),v({wrapRef:a,update:n,scrollTo:M,setScrollTop:R,setScrollLeft:W,handleScroll:C}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"scrollbarRef",ref:b,class:e.normalizeClass(e.unref(o).b())},[e.createElementVNode("div",{ref_key:"wrapRef",ref:a,class:e.normalizeClass(e.unref(B)),style:e.normalizeStyle(e.unref(H)),onScroll:C},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.tag),{ref_key:"resizeRef",ref:w,class:e.normalizeClass(e.unref(E)),style:e.normalizeStyle(l.viewStyle)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["class","style"]))],38),l.native?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(A.default,{key:0,ref_key:"barRef",ref:m,height:S.value,width:g.value,always:l.always,"ratio-x":z.value,"ratio-y":x.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});exports.default=O;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),E=require("@vueuse/core");require("@vft/utils");const B=require("../../utils/error.cjs");require("lodash");require("../../utils/ns-cover.cjs");const L=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");require("@vue/reactivity");require("@vue/shared");const x=require("./constants.cjs"),S=require("./util.cjs"),R="Thumb",T=e.defineComponent({__name:"thumb",props:{vertical:{type:Boolean},size:null,move:null,ratio:null,always:{type:Boolean}},setup(a){const o=e.inject(x.scrollbarContextKey),c=L.useNamespace("scrollbar");o||B.throwError(R,"can not inject scrollbar context");const r=e.ref(),u=e.ref(),m=e.ref({}),i=e.ref(!1);let v=!1,f=!1,d=E.isClient?document.onselectstart:null;const t=e.computed(()=>S.BAR_MAP[a.vertical?"vertical":"horizontal"]),y=e.computed(()=>S.renderThumbStyle({size:a.size,move:a.move,bar:t.value})),g=e.computed(()=>r.value[t.value.offset]**2/o.wrapElement[t.value.scrollSize]/a.ratio/u.value[t.value.offset]),q=n=>{var s;if(n.stopPropagation(),n.ctrlKey||[1,2].includes(n.button))return;(s=window.getSelection())==null||s.removeAllRanges(),C(n);const l=n.currentTarget;l&&(m.value[t.value.axis]=l[t.value.offset]-(n[t.value.client]-l.getBoundingClientRect()[t.value.direction]))},z=n=>{if(!u.value||!r.value||!o.wrapElement)return;const l=Math.abs(n.target.getBoundingClientRect()[t.value.direction]-n[t.value.client]),s=u.value[t.value.offset]/2,h=(l-s)*100*g.value/r.value[t.value.offset];o.wrapElement[t.value.scroll]=h*o.wrapElement[t.value.scrollSize]/100},C=n=>{n.stopImmediatePropagation(),v=!0,document.addEventListener("mousemove",p),document.addEventListener("mouseup",b),d=document.onselectstart,document.onselectstart=()=>!1},p=n=>{if(!r.value||!u.value||v===!1)return;const l=m.value[t.value.axis];if(!l)return;const s=(r.value.getBoundingClientRect()[t.value.direction]-n[t.value.client])*-1,h=u.value[t.value.offset]-l,k=(s-h)*100*g.value/r.value[t.value.offset];o.wrapElement[t.value.scroll]=k*o.wrapElement[t.value.scrollSize]/100},b=()=>{v=!1,m.value[t.value.axis]=0,document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",b),w(),f&&(i.value=!1)},P=()=>{f=!1,i.value=!!a.size},M=()=>{f=!0,i.value=v};e.onBeforeUnmount(()=>{w(),document.removeEventListener("mouseup",b)});const w=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return E.useEventListener(e.toRef(o,"scrollbarElement"),"mousemove",P),E.useEventListener(e.toRef(o,"scrollbarElement"),"mouseleave",M),(n,l)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(c).b("fade")},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"instance",ref:r,class:e.normalizeClass([e.unref(c).e("bar"),e.unref(c).is(e.unref(t).key)]),onMousedown:z},[e.createElementVNode("div",{ref_key:"thumb",ref:u,class:e.normalizeClass(e.unref(c).e("thumb")),style:e.normalizeStyle(e.unref(y)),onMousedown:q},null,38)],34),[[e.vShow,a.always||i.value]])]),_:1},8,["name"]))}});exports.default=T;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),E=require("@vueuse/core");require("@vft/utils");const B=require("../../utils/error.cjs");require("lodash");require("../../utils/ns-cover.cjs");const L=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const x=require("./constants.cjs"),S=require("./util.cjs"),R="Thumb",T=e.defineComponent({__name:"thumb",props:{vertical:{type:Boolean},size:null,move:null,ratio:null,always:{type:Boolean}},setup(a){const o=e.inject(x.scrollbarContextKey),c=L.useNamespace("scrollbar");o||B.throwError(R,"can not inject scrollbar context");const r=e.ref(),u=e.ref(),m=e.ref({}),i=e.ref(!1);let v=!1,f=!1,d=E.isClient?document.onselectstart:null;const t=e.computed(()=>S.BAR_MAP[a.vertical?"vertical":"horizontal"]),y=e.computed(()=>S.renderThumbStyle({size:a.size,move:a.move,bar:t.value})),g=e.computed(()=>r.value[t.value.offset]**2/o.wrapElement[t.value.scrollSize]/a.ratio/u.value[t.value.offset]),q=n=>{var s;if(n.stopPropagation(),n.ctrlKey||[1,2].includes(n.button))return;(s=window.getSelection())==null||s.removeAllRanges(),C(n);const l=n.currentTarget;l&&(m.value[t.value.axis]=l[t.value.offset]-(n[t.value.client]-l.getBoundingClientRect()[t.value.direction]))},z=n=>{if(!u.value||!r.value||!o.wrapElement)return;const l=Math.abs(n.target.getBoundingClientRect()[t.value.direction]-n[t.value.client]),s=u.value[t.value.offset]/2,h=(l-s)*100*g.value/r.value[t.value.offset];o.wrapElement[t.value.scroll]=h*o.wrapElement[t.value.scrollSize]/100},C=n=>{n.stopImmediatePropagation(),v=!0,document.addEventListener("mousemove",p),document.addEventListener("mouseup",b),d=document.onselectstart,document.onselectstart=()=>!1},p=n=>{if(!r.value||!u.value||v===!1)return;const l=m.value[t.value.axis];if(!l)return;const s=(r.value.getBoundingClientRect()[t.value.direction]-n[t.value.client])*-1,h=u.value[t.value.offset]-l,k=(s-h)*100*g.value/r.value[t.value.offset];o.wrapElement[t.value.scroll]=k*o.wrapElement[t.value.scrollSize]/100},b=()=>{v=!1,m.value[t.value.axis]=0,document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",b),w(),f&&(i.value=!1)},P=()=>{f=!1,i.value=!!a.size},M=()=>{f=!0,i.value=v};e.onBeforeUnmount(()=>{w(),document.removeEventListener("mouseup",b)});const w=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return E.useEventListener(e.toRef(o,"scrollbarElement"),"mousemove",P),E.useEventListener(e.toRef(o,"scrollbarElement"),"mouseleave",M),(n,l)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(c).b("fade")},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"instance",ref:r,class:e.normalizeClass([e.unref(c).e("bar"),e.unref(c).is(e.unref(t).key)]),onMousedown:z},[e.createElementVNode("div",{ref_key:"thumb",ref:u,class:e.normalizeClass(e.unref(c).e("thumb")),style:e.normalizeStyle(e.unref(y)),onMousedown:q},null,38)],34),[[e.vShow,a.always||i.value]])]),_:1},8,["name"]))}});exports.default=T;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("@vft/router"),l=require("@vft/utils");require("../divider/index.cjs");require("../icon/index.cjs");require("../avatar/index.cjs");require("../empty/index.cjs");require("../result/index.cjs");require("../tabs/index.cjs");require("../popper/index.cjs");require("../collapse-transition/index.cjs");require("../tooltip/index.cjs");const b=require("../popover/index.cjs");require("../menu/index.cjs");require("../context-menu/context-menu.vue2.cjs");require("../multiple-tabs/multiple-tabs.vue2.cjs");require("@vft/store");require("@vft/use");require("vue-router");require("../header-layout/index.cjs");require("../footer-layout/index.cjs");require("../iframe-layout/index.cjs");require("../router-view-content/index.cjs");require("../logo/index.cjs");require("../back-top/index.cjs");require("../config-provider/index.cjs");require("../descriptions/index.cjs");require("../full-screen/index.cjs");require("../icon-text/index.cjs");require("../image/index.cjs");const y=require("../input/index.cjs");require("../link/index.cjs");require("../pagination/index.cjs");require("../tag/index.cjs");require("../side-menu/index.cjs");require("../qrcode/index.cjs");require("../overlay/index.cjs");require("../clamp/index.cjs");require("../clamp-toggle/index.cjs");require("../page-wrapper/index.cjs");require("../exception/index.cjs");require("./index.cjs");require("../form/index.cjs");require("../button/index.cjs");require("../checkbox/index.cjs");require("../radio/index.cjs");require("../switch/index.cjs");require("../color-picker/index.cjs");require("../scrollbar/index.cjs");require("../dropdown/index.cjs");require("../virtual-list/components/fixed-size-list.cjs");require("../virtual-list/components/dynamic-size-list.cjs");require("../virtual-list/components/fixed-size-grid.cjs");require("../virtual-list/components/dynamic-size-grid.cjs");require("../virtual-list/props.cjs");require("../select-v2/index.cjs");require("../verify-code/index.cjs");require("../table/index.cjs");require("../image-viewer/index.cjs");require("../list-cell/index.cjs");require("../dialog/index.cjs");require("../date-time-select/index.cjs");require("../md-container/index.cjs");require("../md-comment/index.cjs");require("../md-tabs/index.cjs");require("../md-vue-playground/index.cjs");require("../md-code-demo/index.cjs");require("../md-code-tabs/index.cjs");require("../message/index.cjs");const S=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");const w=require("@vueuse/core");require("../../utils/ns-cover.cjs");require("@vue/reactivity");require("@vue/shared");const s=S.useNamespace("search"),g=e.defineComponent({name:s.b()}),$=e.defineComponent({...g,props:{modelValue:{default:""},placeholder:null,clearable:{type:Boolean,default:!0},suffixIcon:{default:{icon:"vico-search",color:"#8B8C8C",cursor:!0}},prefixIcon:null,clearIcon:null,width:{default:200},focusWidth:null,hasPopover:{type:Boolean,default:!0},popoverCfg:null,visible:{type:Boolean}},emits:["update:modelValue","update:visible","focus","enter","clear"],setup(i,{emit:t}){const a=e.ref(),f=e.ref(),o=e.ref(),q=()=>{console.log(i.modelValue)};k.useRouterHelper();const d=()=>{t("update:visible",!0),t("focus")},p=e.computed(()=>({"show-arrow":!1,transition:"vft-zoom-in-top",placement:"bottom-start","hide-after":100,offset:3,width:500,...i.popoverCfg})),v=e.computed(()=>{function r(u){return l.generateCssVars({width:l.addUnit(u),"focus-width":l.addUnit(u)},"input")}return i.visible?r(i.focusWidth??i.width):r(i.width)}),h=r=>{t("update:modelValue",r)},c=s.e("content"),m=r=>{var u,n;Array.from(r.target.classList).includes(c)||((n=(u=e.unref(a).popperRef)==null?void 0:u.delayHide)==null||n.call(u),t("update:visible",!1))},C=()=>{t("update:visible",!1),w.useTimeoutFn(()=>{var r;return(r=o.value)==null?void 0:r.blur()},100),t("clear")};return e.watch(()=>i.visible,r=>{r?o.value.focus():o.value.blur()}),(r,u)=>{const n=e.resolveDirective("click-outside");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"searchRef",ref:f,class:e.normalizeClass([e.unref(s).b()])},[e.createVNode(e.unref(y.VftInput),e.mergeProps({ref_key:"inputRef",ref:o},r.$props,{inputStyle:e.unref(v),onInput:h,onSuffixclick:q,onFocus:d,onClear:C}),e.createSlots({_:2},[r.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"prefix")]),key:"0"}:void 0,r.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"suffix")]),key:"1"}:void 0,r.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"prepend")]),key:"2"}:void 0,r.$slots.append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"append")]),key:"3"}:void 0]),1040,["inputStyle"])],2)),[[n,m]]),i.hasPopover?(e.openBlock(),e.createBlock(e.unref(b.VftPopover),e.mergeProps({key:0,ref_key:"popoverRef",ref:a},e.unref(p),{"virtual-ref":f.value,visible:i.visible,"virtual-triggering":""}),{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(c))},[e.renderSlot(r.$slots,"default")],2)]),_:3},16,["virtual-ref","visible"])):e.createCommentVNode("",!0)],64)}}});exports.default=$;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),U=require("../input/index.cjs"),z=require("../popover/index.cjs"),F=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");const a=require("@vft/utils"),m=require("../../utils/ns-cover.cjs"),i=F.useNamespace("search"),N=e.defineComponent({name:i.b()}),D=e.defineComponent({...N,props:{modelValue:{default:""},placeholder:null,clearable:{type:Boolean,default:!0},suffixIcon:{default:{icon:"ico-ep:search",color:"#8B8C8C",pointer:!0}},prefixIcon:null,clearIcon:null,width:{default:200},activeWidth:null,usePopover:{type:Boolean,default:!0},popoverCfg:null},emits:["update:modelValue","blur","focus","clear","enter","prefixClick","suffixClick","mouseenter","mouseleave","keydown","change"],setup(n,{expose:C,emit:o}){const c=e.ref(),v=e.ref(),p=e.ref(),s=e.ref(!1),f=e.ref(!1),l=e.ref(!1),k=e.computed(()=>m.generateCssVars({width:n.activeWidth&&(l.value||n.modelValue)?a.addUnit(n.activeWidth):a.addUnit(n.width)},"input")),y=e.computed(()=>m.generateCssVars({"active-width":n.activeWidth?a.addUnit(n.activeWidth):a.addUnit(n.width)},"search")),w=e.computed(()=>({"show-arrow":!1,transition:"vft-zoom-in-top-fast",placement:"bottom-start","hide-after":100,offset:3,width:500,...n.popoverCfg})),V=t=>{o("update:modelValue",t)},g=()=>{d()};function x(){l.value=!0}function d(){l.value=!1}const S=()=>{u(),o("clear")};function b(){f.value=!0,o("mouseenter",n.modelValue)}function $(){f.value=!1,o("mouseleave",n.modelValue)}const B=()=>{l.value=!0,s.value=!0,o("focus")};function P(){s.value=!1,o("blur")}function q(){u(),o("prefixClick",n.modelValue)}function R(){u(),o("suffixClick",n.modelValue)}function E(){u(),o("enter",n.modelValue)}function u(){n.usePopover&&d(),p.value.blur()}const I=t=>{o("keydown",t)},M=e.computed(()=>{var t,r;return(r=(t=c.value)==null?void 0:t.popperRef)==null?void 0:r.contentRef});return C({isFocus:s,isHover:f,visible:l,hidePopover:d,showPopover:x}),(t,r)=>{const W=e.resolveDirective("click-outside");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"searchRef",ref:v,class:e.normalizeClass([e.unref(i).b(),e.unref(i).is("active",l.value||n.modelValue)]),style:e.normalizeStyle(e.unref(y))},[e.createVNode(e.unref(U.VftInput),e.mergeProps({ref_key:"inputRef",ref:p},t.$props,{inputStyle:e.unref(k),onInput:V,onFocus:B,onEnter:E,onBlur:P,onMouseenter:b,onMouseleave:$,onPrefixClick:q,onSuffixClick:R,onChange:r[0]||(r[0]=h=>{o("change",n.modelValue)}),onKeydown:I,onClear:S}),e.createSlots({_:2},[t.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"prefix")]),key:"0"}:void 0,t.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"suffix")]),key:"1"}:void 0,t.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"prepend")]),key:"2"}:void 0,t.$slots.append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"append")]),key:"3"}:void 0]),1040,["inputStyle"])],6)),[[W,g,e.unref(M)]]),n.usePopover?(e.openBlock(),e.createBlock(e.unref(z.VftPopover),e.mergeProps({key:0,ref_key:"popoverRef",ref:c},e.unref(w),{"virtual-ref":v.value,visible:l.value,"onUpdate:visible":r[1]||(r[1]=h=>l.value=h),"virtual-triggering":""}),{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(i).e("content"))},[e.renderSlot(t.$slots,"default")],2)]),_:3},16,["virtual-ref","visible"])):e.createCommentVNode("",!0)],64)}}});exports.default=D;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");require("@vue/reactivity");require("@vue/shared");const u=e.defineComponent({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:r.useNamespace("select")}}});exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");const t=e.defineComponent({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:r.useNamespace("select")}}});exports.default=t;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("vue"),o=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");require("@vue/reactivity");require("@vue/shared");const n=require("./useOption.cjs"),c=require("./defaults.cjs"),q=s.defineComponent({props:c.OptionProps,emits:["select","hover"],setup(e,{emit:r}){const t=o.useNamespace("select"),{hoverItem:u,selectOptionClick:i}=n.useOption(e,{emit:r});return{ns:t,hoverItem:u,selectOptionClick:i}}});exports.default=q;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),o=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");const n=require("./useOption.cjs"),c=require("./defaults.cjs"),l=i.defineComponent({props:c.OptionProps,emits:["select","hover"],setup(e,{emit:r}){const t=o.useNamespace("select"),{hoverItem:s,selectOptionClick:u}=n.useOption(e,{emit:r});return{ns:t,hoverItem:s,selectOptionClick:u}}});exports.default=l;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("vue"),u=require("lodash"),g=require("@vft/utils"),C=require("../virtual-list/components/fixed-size-list.cjs"),B=require("../virtual-list/components/dynamic-size-list.cjs");require("../virtual-list/components/fixed-size-grid.cjs");require("../virtual-list/components/dynamic-size-grid.cjs");require("../virtual-list/props.cjs");const F=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("../../utils/ns-cover.cjs");require("@vue/reactivity");require("@vue/shared");const G=require("../../constants/aria.cjs"),R=require("./group-item.vue.cjs"),U=require("./option-item.vue.cjs"),$=require("./token.cjs"),J=r.defineComponent({name:"VftSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(h,{slots:a,expose:z}){const n=r.inject($.selectV2InjectionKey),p=F.useNamespace("select"),V=r.ref([]),m=r.ref(),O=r.computed(()=>h.data.length);r.watch(()=>O.value,()=>{var e,t;(t=(e=n.popper.value).updatePopper)==null||t.call(e)});const f=r.computed(()=>g.isUndefined(n.props.estimatedOptionHeight)),v=r.computed(()=>f.value?{itemSize:n.props.itemHeight}:{estimatedSize:n.props.estimatedOptionHeight,itemSize:e=>V.value[e]}),T=(e=[],t)=>{const{props:{valueKey:o}}=n;return g.isObject(t)?e&&e.some(s=>u.get(s,o)===u.get(t,o)):e.includes(t)},H=(e,t)=>{if(g.isObject(t)){const{valueKey:o}=n.props;return u.get(e,o)===u.get(t,o)}else return e===t},q=(e,t)=>{const{valueKey:o}=n.props;return n.props.multiple?T(e,u.get(t,o)):H(e,u.get(t,o))},S=(e,t)=>{const{disabled:o,multiple:s,multipleLimit:i}=n.props;return o||!t&&(s?i>0&&e.length>=i:!1)},w=e=>h.hoveringIndex===e;z({listRef:m,isSized:f,isItemDisabled:S,isItemHovering:w,isItemSelected:q,scrollToItem:e=>{const t=m.value;t&&t.scrollToItem(e)},resetScrollTop:()=>{const e=m.value;e&&e.resetScrollTop()}});const K=e=>{const{index:t,data:o,style:s}=e,i=r.unref(f),{itemSize:d,estimatedSize:l}=r.unref(v),{modelValue:b}=n.props,{onSelect:P,onHover:L}=n,c=o[t];if(c.type==="Group")return r.createVNode(R.default,{item:c,style:s,height:i?d:l},null);const N=q(b,c),A=S(b,N),M=w(t);return r.createVNode(U.default,r.mergeProps(e,{selected:N,disabled:c.disabled||A,created:!!c.created,hovering:M,item:c,onSelect:P,onHover:L}),{default:_=>{var I;return((I=a.default)==null?void 0:I.call(a,_))||r.createVNode("span",null,[c.label])}})},{onKeyboardNavigate:y,onKeyboardSelect:k}=n,x=()=>{y("forward")},j=()=>{y("backward")},D=()=>{n.expanded=!1},E=e=>{const{code:t}=e,{tab:o,esc:s,down:i,up:d,enter:l}=G.EVENT_CODE;switch(t!==o&&(e.preventDefault(),e.stopPropagation()),t){case o:case s:{D();break}case i:{x();break}case d:{j();break}case l:{k();break}}};return()=>{var l;const{data:e,width:t}=h,{height:o,multiple:s,scrollbarAlwaysOn:i}=n.props;if(e.length===0)return r.createVNode("div",{class:p.b("dropdown"),style:{width:`${t}px`}},[(l=a.empty)==null?void 0:l.call(a)]);const d=r.unref(f)?C.default:B.default;return r.createVNode("div",{class:[p.b("dropdown"),p.is("multiple",s)]},[r.createVNode(d,r.mergeProps({ref:m},r.unref(v),{className:p.be("dropdown","list"),scrollbarAlwaysOn:i,data:e,height:o,width:t,total:e.length,onKeydown:E}),{default:b=>r.createVNode(K,b,null)})])}}});exports.default=J;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("vue"),u=require("lodash"),g=require("@vft/utils"),C=require("../virtual-list/components/fixed-size-list.cjs"),B=require("../virtual-list/components/dynamic-size-list.cjs");require("../virtual-list/components/fixed-size-grid.cjs");require("../virtual-list/components/dynamic-size-grid.cjs");require("../virtual-list/props.cjs");const F=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("../../utils/ns-cover.cjs");const G=require("../../constants/aria.cjs"),R=require("./group-item.vue.cjs"),U=require("./option-item.vue.cjs"),$=require("./token.cjs"),J=r.defineComponent({name:"VftSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(h,{slots:a,expose:z}){const n=r.inject($.selectV2InjectionKey),p=F.useNamespace("select"),V=r.ref([]),m=r.ref(),O=r.computed(()=>h.data.length);r.watch(()=>O.value,()=>{var e,t;(t=(e=n.popper.value).updatePopper)==null||t.call(e)});const f=r.computed(()=>g.isUndefined(n.props.estimatedOptionHeight)),v=r.computed(()=>f.value?{itemSize:n.props.itemHeight}:{estimatedSize:n.props.estimatedOptionHeight,itemSize:e=>V.value[e]}),T=(e=[],t)=>{const{props:{valueKey:o}}=n;return g.isObject(t)?e&&e.some(s=>u.get(s,o)===u.get(t,o)):e.includes(t)},H=(e,t)=>{if(g.isObject(t)){const{valueKey:o}=n.props;return u.get(e,o)===u.get(t,o)}else return e===t},S=(e,t)=>{const{valueKey:o}=n.props;return n.props.multiple?T(e,u.get(t,o)):H(e,u.get(t,o))},q=(e,t)=>{const{disabled:o,multiple:s,multipleLimit:i}=n.props;return o||!t&&(s?i>0&&e.length>=i:!1)},w=e=>h.hoveringIndex===e;z({listRef:m,isSized:f,isItemDisabled:q,isItemHovering:w,isItemSelected:S,scrollToItem:e=>{const t=m.value;t&&t.scrollToItem(e)},resetScrollTop:()=>{const e=m.value;e&&e.resetScrollTop()}});const K=e=>{const{index:t,data:o,style:s}=e,i=r.unref(f),{itemSize:d,estimatedSize:l}=r.unref(v),{modelValue:b}=n.props,{onSelect:P,onHover:L}=n,c=o[t];if(c.type==="Group")return r.createVNode(R.default,{item:c,style:s,height:i?d:l},null);const N=S(b,c),A=q(b,N),M=w(t);return r.createVNode(U.default,r.mergeProps(e,{selected:N,disabled:c.disabled||A,created:!!c.created,hovering:M,item:c,onSelect:P,onHover:L}),{default:_=>{var I;return((I=a.default)==null?void 0:I.call(a,_))||r.createVNode("span",null,[c.label])}})},{onKeyboardNavigate:y,onKeyboardSelect:k}=n,x=()=>{y("forward")},j=()=>{y("backward")},D=()=>{n.expanded=!1},E=e=>{const{code:t}=e,{tab:o,esc:s,down:i,up:d,enter:l}=G.EVENT_CODE;switch(t!==o&&(e.preventDefault(),e.stopPropagation()),t){case o:case s:{D();break}case i:{x();break}case d:{j();break}case l:{k();break}}};return()=>{var l;const{data:e,width:t}=h,{height:o,multiple:s,scrollbarAlwaysOn:i}=n.props;if(e.length===0)return r.createVNode("div",{class:p.b("dropdown"),style:{width:`${t}px`}},[(l=a.empty)==null?void 0:l.call(a)]);const d=r.unref(f)?C.default:B.default;return r.createVNode("div",{class:[p.b("dropdown"),p.is("multiple",s)]},[r.createVNode(d,r.mergeProps({ref:m},r.unref(v),{className:p.be("dropdown","list"),scrollbarAlwaysOn:i,data:e,height:o,width:t,total:e.length,onKeydown:E}),{default:b=>r.createVNode(K,b,null)})])}}});exports.default=J;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),a=require("@vue/shared"),r=require("@vft/utils");function u(o){const t=i.ref(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:e=>{const n=e.target.value,s=n[n.length-1]||"";t.value=!r.isKorean(s)},handleCompositionEnd:e=>{t.value&&(t.value=!1,a.isFunction(o)&&o(e))}}}exports.useInput=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),i=require("@vft/utils");function u(o){const t=a.ref(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:e=>{const n=e.target.value,s=n[n.length-1]||"";t.value=!i.isKorean(s)},handleCompositionEnd:e=>{t.value&&(t.value=!1,i.isFunction(o)&&o(e))}}}exports.useInput=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),v=require("@vue/shared"),f=require("lodash"),ke=require("@vueuse/core"),le=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");require("@vft/utils");const _e=require("../../utils/error.cjs"),Fe=require("../../utils/vue/data-helper.cjs");require("../../utils/ns-cover.cjs");require("@vue/reactivity");const ne=require("../../constants/event.cjs");require("../form/index.cjs");const ze=require("./useAllowCreate.cjs"),Ke=require("./util.cjs"),Ue=require("./useInput.cjs"),Qe=require("../form/hooks/use-form-item.cjs"),je=require("../form/hooks/use-form-common-props.cjs"),ue="",ae=11,Ge={larget:51,default:42,small:33},$e=(n,m)=>{const W=le.useNamespace("select-v2"),ie=le.useNamespace("input"),{form:w,formItem:h}=Qe.useFormItem(),l=a.reactive({inputValue:ue,displayInputValue:ue,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),oe=a.ref(-1),B=a.ref(-1),ce=a.ref(null),g=a.ref(null),q=a.ref(null),b=a.ref(null),O=a.ref(null),S=a.ref(null),I=a.ref(null),c=a.ref(!1),x=a.computed(()=>n.disabled||(w==null?void 0:w.disabled)),se=a.computed(()=>{const e=s.value.length*34;return e>n.height?n.height:e}),L=a.computed(()=>!f.isNil(n.modelValue)),re=a.computed(()=>{const e=n.multiple?Array.isArray(n.modelValue)&&n.modelValue.length>0:L.value;return n.clearable&&!x.value&&l.comboBoxHovering&&e}),D=a.computed(()=>n.remote&&n.filterable?"":"ico-ep:arrow-up"),de=a.computed(()=>D.value&&W.is("reverse",c.value)),fe=a.computed(()=>(h==null?void 0:h.validateState)||""),he="validateIcon",k=a.computed(()=>n.remote?300:0),R=a.computed(()=>{const e=s.value;return n.loading?n.loadingText||t("el.select.loading"):n.remote&&l.inputValue===""&&e.length===0?!1:n.filterable&&l.inputValue&&e.length>0?n.noMatchText||t("el.select.noMatch"):e.length===0?n.noDataText||t("el.select.noData"):null}),s=a.computed(()=>{const e=u=>{const i=l.inputValue,o=new RegExp(Fe.escapeStringRegexp(i),"i");return i?o.test(u.label||""):!0};return n.loading?[]:Ke.flattenOptions(n.options.concat(l.createdOptions).map(u=>{if(v.isArray(u.options)){const i=u.options.filter(e);if(i.length>0)return{...u,options:i}}else if(n.remote||e(u))return u;return null}).filter(u=>u!==null))}),ge=a.computed(()=>s.value.every(e=>e.disabled)),_=je.useFormSize(),F=a.computed(()=>_.value==="small"?"small":"default"),ve=a.computed(()=>{const e=S.value,u=F.value||"default",i=e?Number.parseInt(getComputedStyle(e).paddingLeft):0,o=e?Number.parseInt(getComputedStyle(e).paddingRight):0;return l.selectWidth-o-i-Ge[u]}),z=()=>{var e;B.value=((e=O.value)==null?void 0:e.offsetWidth)||200},me=a.computed(()=>({width:`${l.calculatedWidth===0?ae:Math.ceil(l.calculatedWidth)+ae}px`})),Ve=a.computed(()=>v.isArray(n.modelValue)?n.modelValue.length===0&&!l.displayInputValue:n.filterable?l.displayInputValue.length===0:!0),pe=a.computed(()=>{const e=n.placeholder||t("el.select.placeholder");return n.multiple||f.isNil(n.modelValue)?e:l.selectedLabel}),be=a.computed(()=>{var e,u;return(u=(e=b.value)==null?void 0:e.popperRef)==null?void 0:u.contentRef}),K=a.computed(()=>{if(n.multiple){const e=n.modelValue.length;if(n.modelValue.length>0)return s.value.findIndex(u=>u.value===n.modelValue[e-1])}else if(n.modelValue)return s.value.findIndex(e=>e.value===n.modelValue);return-1}),Ie=a.computed({get(){return c.value&&R.value!==!1},set(e){c.value=e}}),xe=a.computed(()=>l.cachedOptions.slice(0,n.maxCollapseTags)),ye=a.computed(()=>l.cachedOptions.slice(n.maxCollapseTags)),{createNewOption:U,removeNewOption:E,selectNewOption:Q,clearAllNewOption:M}=ze.useAllowCreate(n,l),{handleCompositionStart:Oe,handleCompositionUpdate:Se,handleCompositionEnd:Ce}=Ue.useInput(e=>te(e)),j=()=>{var e,u,i;(u=(e=g.value)==null?void 0:e.focus)==null||u.call(e),(i=b.value)==null||i.updatePopper()},N=()=>{if(!n.automaticDropdown&&!x.value)return l.isComposing&&(l.softFocus=!0),a.nextTick(()=>{var e,u;c.value=!c.value,(u=(e=g.value)==null?void 0:e.focus)==null||u.call(e)})},G=()=>(n.filterable&&l.inputValue!==l.selectedLabel&&(l.query=l.selectedLabel),J(l.inputValue),a.nextTick(()=>{U(l.inputValue)})),$=f.debounce(G,k.value),J=e=>{l.previousQuery!==e&&(l.previousQuery=e,n.filterable&&v.isFunction(n.filterMethod)?n.filterMethod(e):n.filterable&&n.remote&&v.isFunction(n.remoteMethod)&&n.remoteMethod(e))},Te=e=>{f.isEqual(n.modelValue,e)||m(ne.CHANGE_EVENT,e)},y=e=>{m(ne.UPDATE_MODEL_EVENT,e),Te(e),l.previousValue=e==null?void 0:e.toString()},we=(e=[],u)=>{if(!v.isObject(u))return e.indexOf(u);const i=n.valueKey;let o=-1;return e.some((r,d)=>f.get(r,i)===f.get(u,i)?(o=d,!0):!1),o},V=e=>v.isObject(e)?f.get(e,n.valueKey):e,qe=e=>v.isObject(e)?e.label:e,A=()=>a.nextTick(()=>{var u,i;if(!g.value)return;const e=S.value;O.value.height=e.offsetHeight,c.value&&R.value!==!1&&((i=(u=b.value)==null?void 0:u.updatePopper)==null||i.call(u))}),X=()=>{var e,u;if(Le(),z(),(u=(e=b.value)==null?void 0:e.updatePopper)==null||u.call(e),n.multiple)return A()},Le=()=>{const e=S.value;e&&(l.selectWidth=e.getBoundingClientRect().width)},Y=(e,u,i=!0)=>{var o,r;if(n.multiple){let d=n.modelValue.slice();const T=we(d,V(e));T>-1?(d=[...d.slice(0,T),...d.slice(T+1)],l.cachedOptions.splice(T,1),E(e)):(n.multipleLimit<=0||d.length<n.multipleLimit)&&(d=[...d,V(e)],l.cachedOptions.push(e),Q(e),p(u)),y(d),e.created&&(l.query="",J(""),l.inputLength=20),n.filterable&&!n.reserveKeyword&&((r=(o=g.value).focus)==null||r.call(o),C("")),n.filterable&&(l.calculatedWidth=I.value.getBoundingClientRect().width),A(),We()}else oe.value=u,l.selectedLabel=e.label,y(V(e)),c.value=!1,l.isComposing=!1,l.isSilentBlur=i,Q(e),e.created||M(),p(u)},Re=(e,u)=>{const{valueKey:i}=n,o=n.modelValue.indexOf(f.get(u,i));if(o>-1&&!x.value){const r=[...n.modelValue.slice(0,o),...n.modelValue.slice(o+1)];return l.cachedOptions.splice(o,1),y(r),m("remove-tag",f.get(u,i)),l.softFocus=!0,E(u),a.nextTick(j)}e.stopPropagation()},Ee=e=>{const u=l.isComposing;l.isComposing=!0,l.softFocus?l.softFocus=!1:u||m("focus",e)},Z=e=>(l.softFocus=!1,a.nextTick(()=>{var u,i;(i=(u=g.value)==null?void 0:u.blur)==null||i.call(u),I.value&&(l.calculatedWidth=I.value.getBoundingClientRect().width),l.isSilentBlur?l.isSilentBlur=!1:l.isComposing&&m("blur",e),l.isComposing=!1})),Me=()=>{l.displayInputValue.length>0?C(""):c.value=!1},Ne=e=>{if(l.displayInputValue.length===0){e.preventDefault();const u=n.modelValue.slice();u.pop(),E(l.cachedOptions.pop()),y(u)}},Ae=()=>{let e;return v.isArray(n.modelValue)?e=[]:e=void 0,l.softFocus=!0,n.multiple?l.cachedOptions=[]:l.selectedLabel="",c.value=!1,y(e),m("clear"),M(),a.nextTick(j)},C=e=>{l.displayInputValue=e,l.inputValue=e},ee=(e,u=void 0)=>{const i=s.value;if(!["forward","backward"].includes(e)||x.value||i.length<=0||ge.value)return;if(!c.value)return N();u===void 0&&(u=l.hoveringIndex);let o=-1;e==="forward"?(o=u+1,o>=i.length&&(o=0)):e==="backward"&&(o=u-1,(o<0||o>=i.length)&&(o=i.length-1));const r=i[o];if(r.disabled||r.type==="Group")return ee(e,o);p(o),H(o)},He=()=>{if(c.value)~l.hoveringIndex&&s.value[l.hoveringIndex]&&Y(s.value[l.hoveringIndex],l.hoveringIndex,!1);else return N()},p=e=>{l.hoveringIndex=e},Pe=()=>{l.hoveringIndex=-1},We=()=>{var u;const e=g.value;e&&((u=e.focus)==null||u.call(e))},te=e=>{const u=e.target.value;if(C(u),l.displayInputValue.length>0&&!c.value&&(c.value=!0),l.calculatedWidth=I.value.getBoundingClientRect().width,n.multiple&&A(),n.remote)$();else return G()},Be=()=>(c.value=!1,Z()),De=()=>(l.inputValue=l.displayInputValue,a.nextTick(()=>{~K.value&&(p(K.value),H(l.hoveringIndex))})),H=e=>{q.value.scrollToItem(e)},P=()=>{if(Pe(),n.multiple)if(n.modelValue.length>0){let e=!1;l.cachedOptions.length=0,l.previousValue=n.modelValue.toString(),n.modelValue.forEach(u=>{const i=s.value.findIndex(o=>V(o)===u);~i&&(l.cachedOptions.push(s.value[i]),e||p(i),e=!0)})}else l.cachedOptions=[],l.previousValue=void 0;else if(L.value){l.previousValue=n.modelValue;const e=s.value,u=e.findIndex(i=>V(i)===V(n.modelValue));~u?(l.selectedLabel=e[u].label,p(u)):l.selectedLabel=`${n.modelValue}`}else l.selectedLabel="",l.previousValue=void 0;M(),z()};return a.watch(c,e=>{var u,i;m("visible-change",e),e?(i=(u=b.value).update)==null||i.call(u):(l.displayInputValue="",l.previousQuery=null,U(""))}),a.watch(()=>n.modelValue,(e,u)=>{var i;(!e||e.toString()!==l.previousValue)&&P(),!f.isEqual(e,u)&&n.validateEvent&&((i=h==null?void 0:h.validate)==null||i.call(h,"change").catch(o=>_e.debugWarn(o)))},{deep:!0}),a.watch(()=>n.options,()=>{const e=g.value;(!e||e&&document.activeElement!==e)&&P()},{deep:!0}),a.watch(s,()=>a.nextTick(q.value.resetScrollTop)),a.onMounted(()=>{P()}),ke.useResizeObserver(O,X),{collapseTagSize:F,currentPlaceholder:pe,expanded:c,emptyText:R,popupHeight:se,debounce:k,filteredOptions:s,iconComponent:D,iconReverse:de,inputWrapperStyle:me,popperSize:B,dropdownMenuVisible:Ie,hasModelValue:L,shouldShowPlaceholder:Ve,selectDisabled:x,selectSize:_,showClearBtn:re,states:l,tagMaxWidth:ve,nsSelectV2:W,nsInput:ie,calculatorRef:I,controlRef:ce,inputRef:g,menuRef:q,popper:b,selectRef:O,selectionRef:S,popperRef:be,validateState:fe,validateIcon:he,showTagList:xe,collapseTagList:ye,debouncedOnInputChange:$,deleteTag:Re,getLabel:qe,getValueKey:V,handleBlur:Z,handleClear:Ae,handleClickOutside:Be,handleDel:Ne,handleEsc:Me,handleFocus:Ee,handleMenuEnter:De,handleResize:X,toggleMenu:N,scrollTo:H,onInput:te,onKeyboardNavigate:ee,onKeyboardSelect:He,onSelect:Y,onHover:p,onUpdateInputValue:C,handleCompositionStart:Oe,handleCompositionEnd:Ce,handleCompositionUpdate:Se}};exports.default=$e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),v=require("@vft/utils"),f=require("lodash"),ke=require("@vueuse/core"),le=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const _e=require("../../utils/error.cjs"),Fe=require("../../utils/vue/data-helper.cjs");require("../../utils/ns-cover.cjs");const ne=require("../../constants/event.cjs");require("../form/index.cjs");const ze=require("./useAllowCreate.cjs"),Ke=require("./util.cjs"),Ue=require("./useInput.cjs"),Qe=require("../form/hooks/use-form-item.cjs"),je=require("../form/hooks/use-form-common-props.cjs"),ue="",ae=11,Ge={larget:51,default:42,small:33},$e=(n,m)=>{const W=le.useNamespace("select-v2"),ie=le.useNamespace("input"),{form:w,formItem:h}=Qe.useFormItem(),l=a.reactive({inputValue:ue,displayInputValue:ue,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),oe=a.ref(-1),B=a.ref(-1),ce=a.ref(null),g=a.ref(null),L=a.ref(null),b=a.ref(null),O=a.ref(null),S=a.ref(null),I=a.ref(null),c=a.ref(!1),x=a.computed(()=>n.disabled||(w==null?void 0:w.disabled)),se=a.computed(()=>{const e=s.value.length*34;return e>n.height?n.height:e}),q=a.computed(()=>!f.isNil(n.modelValue)),re=a.computed(()=>{const e=n.multiple?Array.isArray(n.modelValue)&&n.modelValue.length>0:q.value;return n.clearable&&!x.value&&l.comboBoxHovering&&e}),D=a.computed(()=>n.remote&&n.filterable?"":"ico-ep:arrow-up"),de=a.computed(()=>D.value&&W.is("reverse",c.value)),fe=a.computed(()=>(h==null?void 0:h.validateState)||""),he="validateIcon",k=a.computed(()=>n.remote?300:0),R=a.computed(()=>{const e=s.value;return n.loading?n.loadingText||t("el.select.loading"):n.remote&&l.inputValue===""&&e.length===0?!1:n.filterable&&l.inputValue&&e.length>0?n.noMatchText||t("el.select.noMatch"):e.length===0?n.noDataText||t("el.select.noData"):null}),s=a.computed(()=>{const e=u=>{const i=l.inputValue,o=new RegExp(Fe.escapeStringRegexp(i),"i");return i?o.test(u.label||""):!0};return n.loading?[]:Ke.flattenOptions(n.options.concat(l.createdOptions).map(u=>{if(v.isArray(u.options)){const i=u.options.filter(e);if(i.length>0)return{...u,options:i}}else if(n.remote||e(u))return u;return null}).filter(u=>u!==null))}),ge=a.computed(()=>s.value.every(e=>e.disabled)),_=je.useFormSize(),F=a.computed(()=>_.value==="small"?"small":"default"),ve=a.computed(()=>{const e=S.value,u=F.value||"default",i=e?Number.parseInt(getComputedStyle(e).paddingLeft):0,o=e?Number.parseInt(getComputedStyle(e).paddingRight):0;return l.selectWidth-o-i-Ge[u]}),z=()=>{var e;B.value=((e=O.value)==null?void 0:e.offsetWidth)||200},me=a.computed(()=>({width:`${l.calculatedWidth===0?ae:Math.ceil(l.calculatedWidth)+ae}px`})),Ve=a.computed(()=>v.isArray(n.modelValue)?n.modelValue.length===0&&!l.displayInputValue:n.filterable?l.displayInputValue.length===0:!0),pe=a.computed(()=>{const e=n.placeholder||t("el.select.placeholder");return n.multiple||f.isNil(n.modelValue)?e:l.selectedLabel}),be=a.computed(()=>{var e,u;return(u=(e=b.value)==null?void 0:e.popperRef)==null?void 0:u.contentRef}),K=a.computed(()=>{if(n.multiple){const e=n.modelValue.length;if(n.modelValue.length>0)return s.value.findIndex(u=>u.value===n.modelValue[e-1])}else if(n.modelValue)return s.value.findIndex(e=>e.value===n.modelValue);return-1}),Ie=a.computed({get(){return c.value&&R.value!==!1},set(e){c.value=e}}),xe=a.computed(()=>l.cachedOptions.slice(0,n.maxCollapseTags)),ye=a.computed(()=>l.cachedOptions.slice(n.maxCollapseTags)),{createNewOption:U,removeNewOption:E,selectNewOption:Q,clearAllNewOption:M}=ze.useAllowCreate(n,l),{handleCompositionStart:Oe,handleCompositionUpdate:Se,handleCompositionEnd:Ce}=Ue.useInput(e=>te(e)),j=()=>{var e,u,i;(u=(e=g.value)==null?void 0:e.focus)==null||u.call(e),(i=b.value)==null||i.updatePopper()},N=()=>{if(!n.automaticDropdown&&!x.value)return l.isComposing&&(l.softFocus=!0),a.nextTick(()=>{var e,u;c.value=!c.value,(u=(e=g.value)==null?void 0:e.focus)==null||u.call(e)})},G=()=>(n.filterable&&l.inputValue!==l.selectedLabel&&(l.query=l.selectedLabel),J(l.inputValue),a.nextTick(()=>{U(l.inputValue)})),$=f.debounce(G,k.value),J=e=>{l.previousQuery!==e&&(l.previousQuery=e,n.filterable&&v.isFunction(n.filterMethod)?n.filterMethod(e):n.filterable&&n.remote&&v.isFunction(n.remoteMethod)&&n.remoteMethod(e))},Te=e=>{f.isEqual(n.modelValue,e)||m(ne.CHANGE_EVENT,e)},y=e=>{m(ne.UPDATE_MODEL_EVENT,e),Te(e),l.previousValue=e==null?void 0:e.toString()},we=(e=[],u)=>{if(!v.isObject(u))return e.indexOf(u);const i=n.valueKey;let o=-1;return e.some((r,d)=>f.get(r,i)===f.get(u,i)?(o=d,!0):!1),o},V=e=>v.isObject(e)?f.get(e,n.valueKey):e,Le=e=>v.isObject(e)?e.label:e,A=()=>a.nextTick(()=>{var u,i;if(!g.value)return;const e=S.value;O.value.height=e.offsetHeight,c.value&&R.value!==!1&&((i=(u=b.value)==null?void 0:u.updatePopper)==null||i.call(u))}),X=()=>{var e,u;if(qe(),z(),(u=(e=b.value)==null?void 0:e.updatePopper)==null||u.call(e),n.multiple)return A()},qe=()=>{const e=S.value;e&&(l.selectWidth=e.getBoundingClientRect().width)},Y=(e,u,i=!0)=>{var o,r;if(n.multiple){let d=n.modelValue.slice();const T=we(d,V(e));T>-1?(d=[...d.slice(0,T),...d.slice(T+1)],l.cachedOptions.splice(T,1),E(e)):(n.multipleLimit<=0||d.length<n.multipleLimit)&&(d=[...d,V(e)],l.cachedOptions.push(e),Q(e),p(u)),y(d),e.created&&(l.query="",J(""),l.inputLength=20),n.filterable&&!n.reserveKeyword&&((r=(o=g.value).focus)==null||r.call(o),C("")),n.filterable&&(l.calculatedWidth=I.value.getBoundingClientRect().width),A(),We()}else oe.value=u,l.selectedLabel=e.label,y(V(e)),c.value=!1,l.isComposing=!1,l.isSilentBlur=i,Q(e),e.created||M(),p(u)},Re=(e,u)=>{const{valueKey:i}=n,o=n.modelValue.indexOf(f.get(u,i));if(o>-1&&!x.value){const r=[...n.modelValue.slice(0,o),...n.modelValue.slice(o+1)];return l.cachedOptions.splice(o,1),y(r),m("remove-tag",f.get(u,i)),l.softFocus=!0,E(u),a.nextTick(j)}e.stopPropagation()},Ee=e=>{const u=l.isComposing;l.isComposing=!0,l.softFocus?l.softFocus=!1:u||m("focus",e)},Z=e=>(l.softFocus=!1,a.nextTick(()=>{var u,i;(i=(u=g.value)==null?void 0:u.blur)==null||i.call(u),I.value&&(l.calculatedWidth=I.value.getBoundingClientRect().width),l.isSilentBlur?l.isSilentBlur=!1:l.isComposing&&m("blur",e),l.isComposing=!1})),Me=()=>{l.displayInputValue.length>0?C(""):c.value=!1},Ne=e=>{if(l.displayInputValue.length===0){e.preventDefault();const u=n.modelValue.slice();u.pop(),E(l.cachedOptions.pop()),y(u)}},Ae=()=>{let e;return v.isArray(n.modelValue)?e=[]:e=void 0,l.softFocus=!0,n.multiple?l.cachedOptions=[]:l.selectedLabel="",c.value=!1,y(e),m("clear"),M(),a.nextTick(j)},C=e=>{l.displayInputValue=e,l.inputValue=e},ee=(e,u=void 0)=>{const i=s.value;if(!["forward","backward"].includes(e)||x.value||i.length<=0||ge.value)return;if(!c.value)return N();u===void 0&&(u=l.hoveringIndex);let o=-1;e==="forward"?(o=u+1,o>=i.length&&(o=0)):e==="backward"&&(o=u-1,(o<0||o>=i.length)&&(o=i.length-1));const r=i[o];if(r.disabled||r.type==="Group")return ee(e,o);p(o),H(o)},He=()=>{if(c.value)~l.hoveringIndex&&s.value[l.hoveringIndex]&&Y(s.value[l.hoveringIndex],l.hoveringIndex,!1);else return N()},p=e=>{l.hoveringIndex=e},Pe=()=>{l.hoveringIndex=-1},We=()=>{var u;const e=g.value;e&&((u=e.focus)==null||u.call(e))},te=e=>{const u=e.target.value;if(C(u),l.displayInputValue.length>0&&!c.value&&(c.value=!0),l.calculatedWidth=I.value.getBoundingClientRect().width,n.multiple&&A(),n.remote)$();else return G()},Be=()=>(c.value=!1,Z()),De=()=>(l.inputValue=l.displayInputValue,a.nextTick(()=>{~K.value&&(p(K.value),H(l.hoveringIndex))})),H=e=>{L.value.scrollToItem(e)},P=()=>{if(Pe(),n.multiple)if(n.modelValue.length>0){let e=!1;l.cachedOptions.length=0,l.previousValue=n.modelValue.toString(),n.modelValue.forEach(u=>{const i=s.value.findIndex(o=>V(o)===u);~i&&(l.cachedOptions.push(s.value[i]),e||p(i),e=!0)})}else l.cachedOptions=[],l.previousValue=void 0;else if(q.value){l.previousValue=n.modelValue;const e=s.value,u=e.findIndex(i=>V(i)===V(n.modelValue));~u?(l.selectedLabel=e[u].label,p(u)):l.selectedLabel=`${n.modelValue}`}else l.selectedLabel="",l.previousValue=void 0;M(),z()};return a.watch(c,e=>{var u,i;m("visible-change",e),e?(i=(u=b.value).update)==null||i.call(u):(l.displayInputValue="",l.previousQuery=null,U(""))}),a.watch(()=>n.modelValue,(e,u)=>{var i;(!e||e.toString()!==l.previousValue)&&P(),!f.isEqual(e,u)&&n.validateEvent&&((i=h==null?void 0:h.validate)==null||i.call(h,"change").catch(o=>_e.debugWarn(o)))},{deep:!0}),a.watch(()=>n.options,()=>{const e=g.value;(!e||e&&document.activeElement!==e)&&P()},{deep:!0}),a.watch(s,()=>a.nextTick(L.value.resetScrollTop)),a.onMounted(()=>{P()}),ke.useResizeObserver(O,X),{collapseTagSize:F,currentPlaceholder:pe,expanded:c,emptyText:R,popupHeight:se,debounce:k,filteredOptions:s,iconComponent:D,iconReverse:de,inputWrapperStyle:me,popperSize:B,dropdownMenuVisible:Ie,hasModelValue:q,shouldShowPlaceholder:Ve,selectDisabled:x,selectSize:_,showClearBtn:re,states:l,tagMaxWidth:ve,nsSelectV2:W,nsInput:ie,calculatorRef:I,controlRef:ce,inputRef:g,menuRef:L,popper:b,selectRef:O,selectionRef:S,popperRef:be,validateState:fe,validateIcon:he,showTagList:xe,collapseTagList:ye,debouncedOnInputChange:$,deleteTag:Re,getLabel:Le,getValueKey:V,handleBlur:Z,handleClear:Ae,handleClickOutside:Be,handleDel:Ne,handleEsc:Me,handleFocus:Ee,handleMenuEnter:De,handleResize:X,toggleMenu:N,scrollTo:H,onInput:te,onKeyboardNavigate:ee,onKeyboardSelect:He,onSelect:Y,onHover:p,onUpdateInputValue:C,handleCompositionStart:Oe,handleCompositionEnd:Ce,handleCompositionUpdate:Se}};exports.default=$e;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@vue/shared"),u=s=>{const e=[];return s.forEach(t=>{l.isArray(t.options)?(e.push({label:t.label,isTitle:!0,type:"Group"}),t.options.forEach(r=>{e.push(r)}),e.push({type:"Group"})):e.push(t)}),e};exports.flattenOptions=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@vft/utils"),u=s=>{const e=[];return s.forEach(t=>{l.isArray(t.options)?(e.push({label:t.label,isTitle:!0,type:"Group"}),t.options.forEach(r=>{e.push(r)}),e.push({type:"Group"})):e.push(t)}),e};exports.flattenOptions=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("../divider/index.cjs");const L=require("../icon/index.cjs");require("../avatar/index.cjs");require("../empty/index.cjs");require("../result/index.cjs");require("../tabs/index.cjs");require("../popper/index.cjs");require("../collapse-transition/index.cjs");require("../tooltip/index.cjs");require("../popover/index.cjs");const p=require("../menu/index.cjs"),h=require("@vft/utils");require("../context-menu/context-menu.vue2.cjs");require("../multiple-tabs/multiple-tabs.vue2.cjs");const N=require("@vft/router");require("@vft/store");const P=require("@vft/use"),j=require("vue-router");require("../header-layout/index.cjs");require("../footer-layout/index.cjs");require("../iframe-layout/index.cjs");require("../router-view-content/index.cjs");require("../logo/index.cjs");require("../back-top/index.cjs");require("../config-provider/index.cjs");require("../descriptions/index.cjs");require("../full-screen/index.cjs");require("../icon-text/index.cjs");require("../image/index.cjs");require("../input/index.cjs");require("../link/index.cjs");require("../pagination/index.cjs");require("../tag/index.cjs");require("./index.cjs");require("../qrcode/index.cjs");require("../overlay/index.cjs");require("../clamp/index.cjs");require("../clamp-toggle/index.cjs");require("../page-wrapper/index.cjs");require("../exception/index.cjs");require("../search/index.cjs");require("../form/index.cjs");require("../button/index.cjs");require("../checkbox/index.cjs");require("../radio/index.cjs");require("../switch/index.cjs");require("../color-picker/index.cjs");require("../scrollbar/index.cjs");require("../dropdown/index.cjs");require("../virtual-list/components/fixed-size-list.cjs");require("../virtual-list/components/dynamic-size-list.cjs");require("../virtual-list/components/fixed-size-grid.cjs");require("../virtual-list/components/dynamic-size-grid.cjs");require("../virtual-list/props.cjs");require("../select-v2/index.cjs");require("../verify-code/index.cjs");require("../table/index.cjs");require("../image-viewer/index.cjs");require("../list-cell/index.cjs");require("../dialog/index.cjs");require("../date-time-select/index.cjs");require("../md-container/index.cjs");require("../md-comment/index.cjs");require("../md-tabs/index.cjs");require("../md-vue-playground/index.cjs");require("../md-code-demo/index.cjs");require("../md-code-tabs/index.cjs");require("../message/index.cjs");const z=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("../../utils/ns-cover.cjs");require("@vue/reactivity");require("@vue/shared");const Y=require("./use-drag-line.cjs"),a=z.useNamespace("side-menu"),F=t.defineComponent({name:a.b()}),G=t.defineComponent({...F,props:{menus:null,uniqueOpened:{type:Boolean,default:!0},collapse:{type:Boolean,default:!1},defaultActive:null,sideWidth:null,collapseWidth:{default:50},attrMapping:null,extraHeight:{default:100},menuTopBottomHeight:{default:40},showCollapse:{type:Boolean,default:!1},dragOption:null,dragWidth:{type:Boolean,default:!1},useMenuSelect:{type:Boolean,default:!0},openListenRoute:{type:Boolean,default:!1},openDisabled:{type:Boolean},defaultOpeneds:null},emits:["update:collapse","update:sideWidth","dragEnd","select","dragWidthEnd"],setup(r,{expose:B,emit:g}){const f=t.useSlots(),x=t.ref(),i=t.computed(()=>({path:"path",children:"children",title:"title",index:"path",icon:"icon",disabled:"disabled",...r.attrMapping}));N.listenerRouteChange(e=>{var u;!e||(u=e.meta)!=null&&u.hideSide&&!r.openListenRoute||(x.value=e.path)});const y=(e,u)=>{const n=e[i.value.path],d=e[i.value.title],o=e==null?void 0:e[i.value.children],s=e==null?void 0:e[i.value.index],c=e==null?void 0:e[i.value.icon],q=!(e!=null&&e[i.value.disabled]);return o!=null&&o.length?t.h(p.VftSubMenu,{popperAppendToBody:!0,key:s||n,index:s||n,title:d,icon:c,popperClass:a.e("popper")},{default:()=>o==null?void 0:o.map((l,w)=>{var S;const b=l[i.value.path],M=l[i.value.index],H=l[i.value.icon],$=l[i.value.title],E=l[i.value.disabled];return(S=l==null?void 0:l[i.value.children])!=null&&S.length?y(l,w):t.h(p.VftMenuItem,{key:M||b,index:M||b,route:b,icon:H,title:$,disabled:r.openDisabled&&E})})}):t.h(p.VftMenuItem,{key:s||n,index:s||n,title:d,route:n,icon:c,disabled:r.openDisabled&&q},f.menuItem?()=>{var l;return(l=f.menuItem)==null?void 0:l.call(f,{item:e,index:u})}:"")},m=t.computed(()=>{var e,u;return t.h(p.VftMenu,{onSelect:r.useMenuSelect?R:()=>{},defaultActive:r.defaultActive||x.value,defaultOpeneds:r.defaultOpeneds,class:[a.e("con"),(e=r.dragOption)!=null&&e.dragClassName?a.e((u=r.dragOption)==null?void 0:u.dragClassName):""],style:{height:`calc(100% - ${r.menuTopBottomHeight}px)`},uniqueOpened:r.uniqueOpened,collapse:r.collapse,"collapse-transition":!1},()=>r.menus.map((n,d)=>y(n,d)))}),{go:O}=N.useRouterHelper(),V=j.useRouter();async function R(e){var o,s,c;const u=e.route;let n=e.route;e.indexPath.some(q=>h.isUrl(q))&&(n=e.indexPath.slice(-2).join("/"));const d=(c=(s=(o=V.getRoutes().filter(q=>q.path===n))==null?void 0:o[0])==null?void 0:s.meta)==null?void 0:c.linkTarget;O(d?{url:u,winOpenOpt:{target:d}}:u),g("select",e)}const C=t.ref(),T=t.computed(()=>({width:h.addUnit(r.sideWidth),height:`calc(100% - ${r.extraHeight}px)`})),k=t.computed(()=>[a.b(),a.m("fixed")]);t.onMounted(()=>{t.nextTick(()=>{var e,u,n;if((e=r.dragOption)!=null&&e.dragClassName){const d=(n=document.querySelectorAll("."+a.e((u=r.dragOption)==null?void 0:u.dragClassName)))==null?void 0:n[0],{initSortable:o}=P.useSortable(d,{draggable:".vft-menu-item",onEnd:s=>{const{oldIndex:c,newIndex:q}=s;h.isNullOrUndefined(c)||h.isNullOrUndefined(q)||c===q||g("dragEnd",c,q)},...r.dragOption});o()}})});const v=t.ref(),W=t.ref(),D=t.computed(()=>({left:h.addUnit(r.sideWidth)}));function A(){r.collapse?g("update:sideWidth",C.value):(C.value=r.sideWidth,g("update:sideWidth",r.collapseWidth)),g("update:collapse",!r.collapse)}const U=t.getCurrentInstance();return r.dragWidth&&Y.useDragLine(v,W,t.computed(()=>h.removeUnit(r.collapseWidth)),U,t.computed(()=>r.collapse)),B({sideRef:v}),()=>t.createVNode("div",{ref:v,class:k.value,style:T.value},[f.top?t.createVNode("div",{class:a.e("top")},[f.top()]):null,m.value,f.bottom?t.createVNode("div",{class:a.e("bottom")},[f.bottom()]):r.showCollapse?t.createVNode("div",{onClick:A,class:[a.e("bottom"),a.e("collapse")]},[t.createVNode(L.VftIcon,{style:{transform:r.collapse?"rotateY(180deg)":""},size:20,icon:"ico-iconoir:sidebar-collapse"},null)]):null,r.dragWidth?t.createVNode("div",{ref:W,style:D.value,class:a.e("drag-bar")},null):null])}});exports.default=G;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("vue");require("../divider/index.cjs");const G=require("../icon/index.cjs");require("../avatar/index.cjs");require("../empty/index.cjs");require("../result/index.cjs");require("../tabs/index.cjs");require("../popper/index.cjs");require("../collapse-transition/index.cjs");require("../tooltip/index.cjs");require("../popover/index.cjs");const b=require("../menu/index.cjs"),g=require("@vft/utils");require("../context-menu/context-menu.vue2.cjs");require("../multiple-tabs/index.cjs");require("../header-layout/index.cjs");require("../footer-layout/index.cjs");require("../iframe-layout/index.cjs");require("../router-view-content/index.cjs");require("../logo/index.cjs");require("../back-top/index.cjs");require("../container/index.cjs");require("../config-provider/index.cjs");require("../descriptions/index.cjs");require("../full-screen/index.cjs");require("../icon-text/index.cjs");require("../image/index.cjs");require("../input/index.cjs");require("../link/index.cjs");require("../pagination/index.cjs");require("../tag/index.cjs");require("./index.cjs");require("../qrcode/index.cjs");require("../overlay/index.cjs");require("../clamp/index.cjs");require("../clamp-toggle/index.cjs");require("../page-wrapper/index.cjs");require("../exception/index.cjs");require("../search/index.cjs");require("../form/index.cjs");require("../button/index.cjs");require("../checkbox/index.cjs");require("../radio/index.cjs");require("../switch/index.cjs");require("../color-picker/index.cjs");require("../scrollbar/index.cjs");require("../dropdown/index.cjs");require("../virtual-list/components/fixed-size-list.cjs");require("../virtual-list/components/dynamic-size-list.cjs");require("../virtual-list/components/fixed-size-grid.cjs");require("../virtual-list/components/dynamic-size-grid.cjs");require("../virtual-list/props.cjs");require("../select-v2/index.cjs");require("../verify-code/index.cjs");require("../table/index.cjs");require("../image-viewer/index.cjs");require("../list-cell/index.cjs");require("../dialog/index.cjs");require("../date-time-select/index.cjs");require("../col/index.cjs");require("../row/index.cjs");require("../horizontal-menu/index.cjs");require("../time-picker/index.cjs");require("../date-picker/index.cjs");require("../md-container/index.cjs");require("../md-comment/index.cjs");require("../md-tabs/index.cjs");require("../md-vue-playground/index.cjs");require("../md-code-demo/index.cjs");require("../md-code-tabs/index.cjs");require("../message/index.cjs");const K=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("../../utils/ns-cover.cjs");const V=require("@vft/router"),Q=require("@vft/use"),X=require("./use-drag-line.cjs"),s=K.useNamespace("side-menu");function ee(v){return typeof v=="function"||Object.prototype.toString.call(v)==="[object Object]"&&!r.isVNode(v)}const re=r.defineComponent({name:s.b()}),te=r.defineComponent({...re,props:{isFixedLeft:{type:Boolean,default:!0},menus:null,width:{default:200},height:{default:"100%"},collapseWidth:{default:50},attrMapping:null,menuTopBottomHeight:{default:0},showCollapse:{type:Boolean,default:!1},dragOption:null,dragWidthCfg:{type:[Boolean,Object],default:!1},useRouterJump:{type:Boolean,default:!1},openDisabled:{type:Boolean},autoScrollActiveDom:{type:[Boolean,Number],default:!0},openMenuCollapse:{type:Boolean,default:!0},collapse:{type:Boolean,default:!1},uniqueOpened:{type:Boolean,default:!0},defaultActive:null,defaultOpeneds:null},emits:["update:collapse","update:width","dragEnd","dragWidthEnd","select","subMenuClick","menuItemMouseenter","menuItemMouseleave"],setup(v,{expose:k,emit:f}){const t=v,{defaultActive:y,collapse:h,uniqueOpened:W,defaultOpeneds:M,openMenuCollapse:A}=r.toRefs(t),i=r.useSlots(),x=r.getCurrentInstance(),O=r.ref(),a=r.computed(()=>({path:"path",children:"children",title:"title",index:"path",icon:"icon",disabled:"disabled",...t.attrMapping}));V.listenerRouteChange(e=>{var o;!e||(o=e.meta)!=null&&o.hideSide&&!t.useRouterJump||(O.value=e.path)});const j=e=>{var u;const o=e.e;if(t.autoScrollActiveDom&&o){const d=g.isNumber(t.autoScrollActiveDom)?t.autoScrollActiveDom:0,l=o.target;(u=m.value)!=null&&u.menu&&l&&setTimeout(()=>{m.value.menu.scrollTop=m.value.menu.scrollTop+(l.getBoundingClientRect().top-m.value.menu.getBoundingClientRect().top)+d},300)}f("subMenuClick",e)},I=e=>{f("menuItemMouseenter",e)},E=e=>{f("menuItemMouseleave",e)},N=(e,o)=>{const u=e[a.value.path],d=e[a.value.title],l=e==null?void 0:e[a.value.children],c=e==null?void 0:e[a.value.index],p=e==null?void 0:e[a.value.icon],q=!!(e!=null&&e[a.value.disabled]);return l!=null&&l.length?r.h(b.VftSubMenu,{...e,popperAppendToBody:!0,key:c||u,index:c||u,title:d,icon:p,class:c||u,disabled:t.openDisabled&&q,popperClass:s.e("popper")},{default:()=>l==null?void 0:l.map((n,F)=>{var R;const S=n[a.value.path],D=n[a.value.index],Z=n[a.value.icon],z=n[a.value.title],Y=!!n[a.value.disabled];return(R=n==null?void 0:n[a.value.children])!=null&&R.length?N(n,F):r.h(b.VftMenuItem,{...n,key:D||S,index:D||S,route:S,icon:Z,title:z,disabled:t.openDisabled&&Y},i.menuItem?()=>{var T;return(T=i.menuItem)==null?void 0:T.call(i,{item:n})}:"")})}):r.h(b.VftMenuItem,{...e,key:c||u,index:c||u,title:d,route:u,icon:p,disabled:t.openDisabled&&q,onMouseenter:()=>I(e),onMouseleave:()=>E(e)},i.menuItem?()=>{var n;return(n=i.menuItem)==null?void 0:n.call(i,{item:e,index:o})}:"")},m=r.ref(),L=r.computed(()=>({...t.collapseWidth===0&&h.value?{width:0}:{},height:`calc(100% - ${t.menuTopBottomHeight}px)`})),P=r.computed(()=>{var o,u;let e;return r.h(r.createVNode(b.VftMenu,{ref:m,onSelect:U,onOpen:j,defaultActive:(y==null?void 0:y.value)||O.value,defaultOpeneds:M==null?void 0:M.value,class:[s.e("con"),(o=t.dragOption)!=null&&o.dragClassName?s.e((u=t.dragOption)==null?void 0:u.dragClassName):""],style:L.value,collapse:A.value?h.value:!1,uniqueOpened:W.value,collapseTransition:!1},ee(e=t.menus.map((d,l)=>N(d,l)))?e:{default:()=>[e]}))}),w=x.appContext.config.globalProperties.$router;async function U(e){var o,u,d;if(t.useRouterJump){const{go:l}=V.useRouterHelper(w),c=e.route;let p=e.route;e.indexPath.some(n=>g.isUrl(n))&&(p=e.indexPath.slice(-2).join("/"));const q=(d=(u=(o=w.getRoutes().filter(n=>n.path===p))==null?void 0:o[0])==null?void 0:u.meta)==null?void 0:d.linkTarget;l(q?{url:c,winOpenOpt:{target:q}}:c)}f("select",e)}r.onMounted(()=>{r.nextTick(()=>{var e,o,u;if((e=t.dragOption)!=null&&e.dragClassName){const d=(u=document.querySelectorAll("."+s.e((o=t.dragOption)==null?void 0:o.dragClassName)))==null?void 0:u[0],{initSortable:l}=Q.useSortable(d,{draggable:".vft-menu-item",onEnd:c=>{const{oldIndex:p,newIndex:q}=c;g.isNullOrUndefined(p)||g.isNullOrUndefined(q)||p===q||f("dragEnd",p,q)},...t.dragOption});l()}})});const C=r.ref(),B=r.ref(),_=r.ref(),$=r.computed(()=>({...t.collapseWidth===0&&h.value?{borderRight:"none"}:{},width:g.addUnit(t.width),height:t.height}));r.watch(()=>h.value,e=>{e?f("update:width",t.collapseWidth):f("update:width",_.value||t.width),_.value=t.width}),t.dragWidthCfg&&X.useDragLine(C,B,x);const H=r.computed(()=>({left:g.addUnit(t.width)})),J=r.computed(()=>[s.b(),t.isFixedLeft?s.m("fixed"):""]);return k({sideRef:C}),()=>{var e;return r.createVNode("div",{ref:C,class:J.value,style:$.value},[i.top?r.createVNode("div",{class:s.e("top")},[i.top()]):null,P.value,i.bottom?r.createVNode("div",{class:s.e("bottom")},[i.bottom()]):t.showCollapse?r.createVNode("div",{onClick:()=>f("update:collapse",!h.value),class:[s.e("bottom"),s.e("collapse")]},[r.createVNode(G.VftIcon,{style:{transform:h.value?"rotateY(180deg)":""},size:20,icon:"ico-iconoir:sidebar-collapse"},null)]):null,(e=i.default)==null?void 0:e.call(i),t.dragWidthCfg?r.createVNode("div",{ref:B,style:H.value,class:s.e("drag-bar")},null):null])}}});exports.default=te;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("@vft/use"),r=require("vue");function g(l,f,a,s,m){r.onMounted(()=>{r.nextTick(()=>{w.useDebounceFn(v,100)()})});function i(e){var n;const u=r.unref(e);return u?Reflect.has(u,"$el")?(n=r.unref(e))==null?void 0:n.$el:r.unref(e):null}function p(e,u,n){document.onmousemove=function(o){let t=e.left+(o.clientX-n);o=o||window.event;const d=800,c=r.unref(a);return t<0&&(t=0),t>d&&(t=d),t<=c&&(t=c,s.emit("update:sideWidth",c),s.emit("update:collapse",!0)),e.style.left=t+"px",!1}}function h(e){const u=i(f),n=i(l);document.onmouseup=function(){var t;document.onmousemove=null,document.onmouseup=null,n.style.transition="width 0.2s";const o=parseInt(u.style.left);o>r.unref(a)&&m.value&&s.emit("update:collapse",!1),s.emit("update:sideWidth",o),s.emit("dragWidthEnd"),(t=e.releaseCapture)==null||t.call(e)}}function v(){const e=i(f);if(!e)return;const u=i(l);u&&(e.onmousedown=n=>{var t;u.style.transition="unset";const o=n==null?void 0:n.clientX;return e.left=e.offsetLeft,p(e,u,o),h(e),(t=e.setCapture)==null||t.call(e),!1})}return{}}exports.useDragLine=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("@vft/use"),o=require("vue");function T(p,h,i){var c,f;const g=((f=(c=i.props)==null?void 0:c.dragWidthCfg)==null?void 0:f.minWidth)||200;o.onMounted(()=>{o.nextTick(()=>{m.useDebounceFn(w,100)()})});function s(t){var u;const n=o.unref(t);return n?Reflect.has(n,"$el")?(u=o.unref(t))==null?void 0:u.$el:o.unref(t):null}function W(t,n,u){document.onmousemove=function(r){var a,l;let e=t.left+(r.clientX-u);r=r||window.event;const d=((l=(a=i.props)==null?void 0:a.dragWidthCfg)==null?void 0:l.maxWidth)||800,x=o.unref(g);return e<=x?void 0:(e<0&&(e=0),e>d&&(e=d),t.style.left=e+"px",m.useThrottleFn(()=>{i.emit("update:width",e)},150)(),!1)}}function v(t){document.onmouseup=function(){var n;document.onmousemove=null,document.onmouseup=null,(n=t.releaseCapture)==null||n.call(t)}}function w(){const t=s(h);if(!t)return;const n=s(p);n&&(t.onmousedown=u=>{var e;const r=u==null?void 0:u.clientX;return t.left=t.offsetLeft,W(t,n,r),v(t),(e=t.setCapture)==null||e.call(t),!1})}return{}}exports.useDragLine=T;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),g=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");const d=require("../../hooks/use-forward-ref/index.cjs");require("@vueuse/core");const f=require("@vft/utils"),s=require("../../utils/error.cjs");require("../../utils/ns-cover.cjs");require("@vue/reactivity");require("@vue/shared");const c="VftOnlyChild",p=r.defineComponent({name:c,setup(t,{slots:n,attrs:e}){const i=r.inject(d.FORWARD_REF_INJECTION_KEY),q=d.useForwardRefDirective((i==null?void 0:i.setForwardRef)??f.noop);return()=>{var l;const u=(l=n.default)==null?void 0:l.call(n,e);if(!u)return null;if(u.length>1)return s.debugWarn(c,"requires exact only one valid child."),null;const o=h(u);return o?r.withDirectives(r.cloneVNode(o,e),[[q]]):(s.debugWarn(c,"no valid child node found"),null)}}});function h(t){if(!t)return null;const n=t;for(const e of n){if(f.isObject(e))switch(e.type){case r.Comment:continue;case r.Text:case"svg":return a(e);case r.Fragment:return h(e.children);default:return e}return a(e)}return null}function a(t){const n=g.useNamespace("only-child");return r.createVNode("span",{class:n.e("content")},[t])}exports.OnlyChild=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),g=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");const d=require("../../hooks/use-forward-ref/index.cjs");require("@vueuse/core");const f=require("@vft/utils"),s=require("../../utils/error.cjs");require("../../utils/ns-cover.cjs");const c="VftOnlyChild",p=r.defineComponent({name:c,setup(t,{slots:n,attrs:e}){const i=r.inject(d.FORWARD_REF_INJECTION_KEY),q=d.useForwardRefDirective((i==null?void 0:i.setForwardRef)??f.noop);return()=>{var l;const u=(l=n.default)==null?void 0:l.call(n,e);if(!u)return null;if(u.length>1)return s.debugWarn(c,"requires exact only one valid child."),null;const o=h(u);return o?r.withDirectives(r.cloneVNode(o,e),[[q]]):(s.debugWarn(c,"no valid child node found"),null)}}});function h(t){if(!t)return null;const n=t;for(const e of n){if(f.isObject(e))switch(e.type){case r.Comment:continue;case r.Text:case"svg":return a(e);case r.Fragment:return h(e.children);default:return e}return a(e)}return null}function a(t){const n=g.useNamespace("only-child");return r.createVNode("span",{class:n.e("content")},[t])}exports.OnlyChild=p;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),V=require("@vft/utils"),P=require("@vue/shared"),E=require("../../utils/error.cjs");require("lodash");require("@vueuse/core");require("../../utils/ns-cover.cjs");const C=require("../icon/index.cjs");require("../form/index.cjs");const i=require("../../constants/event.cjs"),U=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");require("@vue/reactivity");const I=require("../form/hooks/use-form-item.cjs"),w=require("../form/hooks/use-form-common-props.cjs"),K=["onClick"],j=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],G=["aria-hidden"],H=["aria-hidden"],L=["aria-hidden"],o=U.useNamespace("switch"),W=e.defineComponent({name:o.b()}),$=e.defineComponent({...W,props:{modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:null,inlinePrompt:{type:Boolean,default:!1},activeIcon:null,inactiveIcon:null,activeText:null,inactiveText:null,activeColor:null,inactiveColor:null,borderColor:null,activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:null,validateEvent:{type:Boolean,default:!0},id:null,loading:{type:Boolean,default:!1},beforeChange:{type:Function},size:null,tabindex:null},emits:[i.UPDATE_MODEL_EVENT,i.CHANGE_EVENT,i.INPUT_EVENT],setup(t,{expose:z,emit:c}){const n=t,{formItem:u}=I.useFormItem(),q=w.useFormSize(),{inputId:S}=I.useFormItemInputId(n,{formItemContext:u}),s=e.computed(()=>V.singleAttrToObj(n.activeIcon,"icon")),f=e.computed(()=>V.singleAttrToObj(n.inactiveIcon,"icon")),h=w.useFormDisabled(e.computed(()=>n.loading)),b=e.ref(n.modelValue!==!1),m=e.ref(),D=e.ref(),A=e.computed(()=>[o.b(),o.m(q.value),o.is("disabled",h.value),o.is("checked",a.value)]),O=e.computed(()=>({width:V.addUnit(n.width)}));e.watch(()=>n.modelValue,()=>{b.value=!0}),e.watch(()=>n.value,()=>{b.value=!1});const y=e.computed(()=>b.value?n.modelValue:n.value),a=e.computed(()=>y.value===n.activeValue);[n.activeValue,n.inactiveValue].includes(y.value)||(c(i.UPDATE_MODEL_EVENT,n.inactiveValue),c(i.CHANGE_EVENT,n.inactiveValue),c(i.INPUT_EVENT,n.inactiveValue)),e.watch(a,l=>{var r;m.value.checked=l,n.validateEvent&&((r=u==null?void 0:u.validate)==null||r.call(u,"change").catch(v=>E.debugWarn(v)))});const k=()=>{const l=a.value?n.inactiveValue:n.activeValue;c(i.UPDATE_MODEL_EVENT,l),c(i.CHANGE_EVENT,l),c(i.INPUT_EVENT,l),e.nextTick(()=>{m.value.checked=a.value})},B=()=>{if(h.value)return;const{beforeChange:l}=n;if(!l){k();return}const r=l();[P.isPromise(r),V.isBoolean(r)].includes(!0)||E.throwError(o.b(),"beforeChange must return type `Promise<boolean>` or `boolean`"),P.isPromise(r)?r.then(d=>{d&&k()}).catch(d=>{E.debugWarn(o.b(),`some error occurred: ${d}`)}):r&&k()},F=e.computed(()=>o.cssVarBlock({...n.activeColor?{"on-color":n.activeColor}:null,...n.inactiveColor?{"off-color":n.inactiveColor}:null,...n.borderColor?{"border-color":n.borderColor}:null})),M=()=>{var l,r;(r=(l=m.value)==null?void 0:l.focus)==null||r.call(l)};return e.onMounted(()=>{m.value.checked=a.value}),z({focus:M,checked:a}),(l,r)=>{var v,d,N,T,g,p,x;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(A)),style:e.normalizeStyle(e.unref(F)),onClick:e.withModifiers(B,["prevent"])},[e.createElementVNode("input",{id:e.unref(S),ref_key:"input",ref:m,class:e.normalizeClass(e.unref(o).e("input")),type:"checkbox",role:"switch","aria-checked":e.unref(a),"aria-disabled":e.unref(h),name:t.name,"true-value":t.activeValue,"false-value":t.inactiveValue,disabled:e.unref(h),tabindex:t.tabindex,onChange:k,onKeydown:e.withKeys(B,["enter"])},null,42,j),!t.inlinePrompt&&(t.inactiveIcon||t.inactiveText)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([e.unref(o).e("label"),e.unref(o).em("label","left"),e.unref(o).is("active",!e.unref(a))])},[(v=e.unref(f))!=null&&v.icon?(e.openBlock(),e.createBlock(e.unref(C.VftIcon),e.normalizeProps(e.mergeProps({key:0},e.unref(f))),null,16)):e.createCommentVNode("",!0),!((d=e.unref(f))!=null&&d.icon)&&t.inactiveText?(e.openBlock(),e.createElementBlock("span",{key:1,"aria-hidden":e.unref(a)},e.toDisplayString(t.inactiveText),9,G)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("span",{ref_key:"core",ref:D,class:e.normalizeClass(e.unref(o).e("core")),style:e.normalizeStyle(e.unref(O))},[t.inlinePrompt?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o).e("inner"))},[(N=e.unref(s))!=null&&N.icon||(T=e.unref(f))!=null&&T.icon?(e.openBlock(),e.createBlock(e.unref(C.VftIcon),e.normalizeProps(e.mergeProps({key:0},e.unref(a)?e.unref(s):e.unref(f))),null,16)):t.activeText||t.inactiveText?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(o).is("text")),"aria-hidden":!e.unref(a)},e.toDisplayString(e.unref(a)?t.activeText:t.inactiveText),11,H)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o).e("action"))},[t.loading?(e.openBlock(),e.createBlock(e.unref(C.VftIcon),{key:0,rotate:"",class:e.normalizeClass(e.unref(o).is("loading")),icon:"ico-ep:loading"},null,8,["class"])):e.createCommentVNode("",!0)],2)],6),!t.inlinePrompt&&((g=e.unref(s))!=null&&g.icon||t.activeText)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([e.unref(o).e("label"),e.unref(o).em("label","right"),e.unref(o).is("active",e.unref(a))])},[(p=e.unref(s))!=null&&p.icon?(e.openBlock(),e.createBlock(e.unref(C.VftIcon),e.normalizeProps(e.mergeProps({key:0},e.unref(s))),null,16)):e.createCommentVNode("",!0),!((x=e.unref(s))!=null&&x.icon)&&t.activeText?(e.openBlock(),e.createElementBlock("span",{key:1,"aria-hidden":!e.unref(a)},e.toDisplayString(t.activeText),9,L)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],14,K)}}});exports.default=$;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("@vft/utils"),E=require("../../utils/error.cjs");require("lodash");require("@vueuse/core");require("../../utils/ns-cover.cjs");const C=require("../icon/index.cjs");require("../form/index.cjs");const i=require("../../constants/event.cjs"),M=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const P=require("../form/hooks/use-form-item.cjs"),I=require("../form/hooks/use-form-common-props.cjs"),U=["onClick"],K=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],j=["aria-hidden"],G=["aria-hidden"],H=["aria-hidden"],o=M.useNamespace("switch"),L=e.defineComponent({name:o.b()}),W=e.defineComponent({...L,props:{modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:null,inlinePrompt:{type:Boolean,default:!1},activeIcon:null,inactiveIcon:null,activeText:null,inactiveText:null,activeColor:null,inactiveColor:null,borderColor:null,activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:null,validateEvent:{type:Boolean,default:!0},id:null,loading:{type:Boolean,default:!1},beforeChange:{type:Function},size:null,tabindex:null},emits:[i.UPDATE_MODEL_EVENT,i.CHANGE_EVENT,i.INPUT_EVENT],setup(t,{expose:w,emit:c}){const n=t,{formItem:u}=P.useFormItem(),z=I.useFormSize(),{inputId:q}=P.useFormItemInputId(n,{formItemContext:u}),s=e.computed(()=>f.singleAttrToObj(n.activeIcon,"icon")),m=e.computed(()=>f.singleAttrToObj(n.inactiveIcon,"icon")),k=I.useFormDisabled(e.computed(()=>n.loading)),b=e.ref(n.modelValue!==!1),v=e.ref(),S=e.ref(),D=e.computed(()=>[o.b(),o.m(z.value),o.is("disabled",k.value),o.is("checked",a.value)]),A=e.computed(()=>({width:f.addUnit(n.width)}));e.watch(()=>n.modelValue,()=>{b.value=!0}),e.watch(()=>n.value,()=>{b.value=!1});const y=e.computed(()=>b.value?n.modelValue:n.value),a=e.computed(()=>y.value===n.activeValue);[n.activeValue,n.inactiveValue].includes(y.value)||(c(i.UPDATE_MODEL_EVENT,n.inactiveValue),c(i.CHANGE_EVENT,n.inactiveValue),c(i.INPUT_EVENT,n.inactiveValue)),e.watch(a,l=>{var r;v.value.checked=l,n.validateEvent&&((r=u==null?void 0:u.validate)==null||r.call(u,"change").catch(h=>E.debugWarn(h)))});const V=()=>{const l=a.value?n.inactiveValue:n.activeValue;c(i.UPDATE_MODEL_EVENT,l),c(i.CHANGE_EVENT,l),c(i.INPUT_EVENT,l),e.nextTick(()=>{v.value.checked=a.value})},B=()=>{if(k.value)return;const{beforeChange:l}=n;if(!l){V();return}const r=l();[f.isPromise(r),f.isBoolean(r)].includes(!0)||E.throwError(o.b(),"beforeChange must return type `Promise<boolean>` or `boolean`"),f.isPromise(r)?r.then(d=>{d&&V()}).catch(d=>{E.debugWarn(o.b(),`some error occurred: ${d}`)}):r&&V()},O=e.computed(()=>o.cssVarBlock({...n.activeColor?{"on-color":n.activeColor}:null,...n.inactiveColor?{"off-color":n.inactiveColor}:null,...n.borderColor?{"border-color":n.borderColor}:null})),F=()=>{var l,r;(r=(l=v.value)==null?void 0:l.focus)==null||r.call(l)};return e.onMounted(()=>{v.value.checked=a.value}),w({focus:F,checked:a}),(l,r)=>{var h,d,N,T,g,p,x;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(D)),style:e.normalizeStyle(e.unref(O)),onClick:e.withModifiers(B,["prevent"])},[e.createElementVNode("input",{id:e.unref(q),ref_key:"input",ref:v,class:e.normalizeClass(e.unref(o).e("input")),type:"checkbox",role:"switch","aria-checked":e.unref(a),"aria-disabled":e.unref(k),name:t.name,"true-value":t.activeValue,"false-value":t.inactiveValue,disabled:e.unref(k),tabindex:t.tabindex,onChange:V,onKeydown:e.withKeys(B,["enter"])},null,42,K),!t.inlinePrompt&&(t.inactiveIcon||t.inactiveText)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([e.unref(o).e("label"),e.unref(o).em("label","left"),e.unref(o).is("active",!e.unref(a))])},[(h=e.unref(m))!=null&&h.icon?(e.openBlock(),e.createBlock(e.unref(C.VftIcon),e.normalizeProps(e.mergeProps({key:0},e.unref(m))),null,16)):e.createCommentVNode("",!0),!((d=e.unref(m))!=null&&d.icon)&&t.inactiveText?(e.openBlock(),e.createElementBlock("span",{key:1,"aria-hidden":e.unref(a)},e.toDisplayString(t.inactiveText),9,j)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("span",{ref_key:"core",ref:S,class:e.normalizeClass(e.unref(o).e("core")),style:e.normalizeStyle(e.unref(A))},[t.inlinePrompt?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o).e("inner"))},[(N=e.unref(s))!=null&&N.icon||(T=e.unref(m))!=null&&T.icon?(e.openBlock(),e.createBlock(e.unref(C.VftIcon),e.normalizeProps(e.mergeProps({key:0},e.unref(a)?e.unref(s):e.unref(m))),null,16)):t.activeText||t.inactiveText?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(o).is("text")),"aria-hidden":!e.unref(a)},e.toDisplayString(e.unref(a)?t.activeText:t.inactiveText),11,G)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o).e("action"))},[t.loading?(e.openBlock(),e.createBlock(e.unref(C.VftIcon),{key:0,rotate:"",class:e.normalizeClass(e.unref(o).is("loading")),icon:"ico-ep:loading"},null,8,["class"])):e.createCommentVNode("",!0)],2)],6),!t.inlinePrompt&&((g=e.unref(s))!=null&&g.icon||t.activeText)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([e.unref(o).e("label"),e.unref(o).em("label","right"),e.unref(o).is("active",e.unref(a))])},[(p=e.unref(s))!=null&&p.icon?(e.openBlock(),e.createBlock(e.unref(C.VftIcon),e.normalizeProps(e.mergeProps({key:0},e.unref(s))),null,16)):e.createCommentVNode("",!0),!((x=e.unref(s))!=null&&x.icon)&&t.activeText?(e.openBlock(),e.createElementBlock("span",{key:1,"aria-hidden":!e.unref(a)},e.toDisplayString(t.activeText),9,H)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],14,U)}}});exports.default=W;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),W=require("../empty/index.cjs"),k=require("../pagination/index.cjs"),$=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");const N=require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");require("@vue/reactivity");require("@vue/shared");const p=require("vxe-table"),A=require("../empty/constants.cjs"),u=$.useNamespace("table"),M=e.defineComponent({name:u.b()}),j=e.defineComponent({...M,props:{maxHeight:null,columns:null,tableData:{default:[]},loading:{type:Boolean,default:!1},height:null,pageSize:{default:50},pageNum:{default:1},total:null,defaultSort:{default:{}},tableConfig:{default:{}},sticky:{type:[Boolean,Object]},pagePlacement:{default:"bottom-right"},pageOptions:null},emits:["page-change","sort-change","update:pageNum"],setup(n,{expose:q,emit:m}){const z=e.useAttrs(),B=e.ref(0),i=e.ref(),E=N.useDebounceFn(()=>H(),120),x=e.computed(()=>n.pagePlacement.startsWith("bottom"));e.watch([()=>n.loading,()=>n.tableData,()=>n.columns],()=>{E()},{immediate:!0});function H(){h.data=n.tableData,b(n.pageNum)}p.renderer.add("Encrypt",{renderDefault(t,l){const{row:a,column:r}=l;return e.createVNode("span",{class:"line-clamp",innerHTML:a[r.field]||"-"},null)}}),p.renderer.add("Clamp",{renderDefault(t,l){const{row:a,column:r}=l;return r.showOverflow=null,e.createVNode(e.resolveComponent("vftClampToggle"),{autoResize:!0,maxLines:2,text:a[r.field],title:a[r.field],toggleText:["展开","收起"],onClampChange:c=>R(l)},null)}}),p.formats.mixin({showEmpty({cellValue:t}){return t||"-"}});function P(t){m("page-change",t),m("update:pageNum",t)}const R=(t,l)=>{const{rowid:a}=t;e.nextTick(()=>{const r=document.getElementsByClassName("vxe-body--row"),c=[];for(var s=0;s<r.length;s++)r[s].getAttribute("rowid")===a&&c.push(r[s]);setTimeout(()=>{if(c.length>1){const d=c[0].clientHeight,I=c[1].clientHeight;d!==I&&(c[1].style.height=d+"px")}},1)})},L=e.computed(()=>n.columns.filter(t=>(t&&t.type!=="seq"&&!t.formatter&&!t.slots&&!t.cellRender&&(t.cellRender={name:"Encrypt"}),t))),V=()=>({maxHeight:"88px",height:"44px"}),O=t=>{var a;const{column:l}=t;return{maxHeight:((a=l==null?void 0:l.cellRender)==null?void 0:a.name)==="Clamp"?"max-content":"44px"}},h=e.reactive({autoResize:!0,sortConfig:{trigger:"cell",remote:!0,defaultSort:{field:"",order:"desc",...n.defaultSort},orders:["desc","asc",null]},seqConfig:{startIndex:B.value},cellClassName:"cellClass",rowClassName:"rowClass",cellStyle:O,rowStyle:V,headerRowClassName:"headerRowClass",headerAlign:"center",columnConfig:{resizable:!0},rowConfig:{isHover:!0},scrollY:{mode:"wheel"},scrollX:{enabled:!1},...n.tableConfig,...z}),T=t=>{m("sort-change",t)};e.watch(()=>n.pageNum,t=>{b(t)});const b=t=>{h.seqConfig&&(h.seqConfig.startIndex=(t-1)*n.pageSize)},g=e.ref(),w=e.ref(),y=e.ref(!1);let o=e.ref(),v=e.ref();const f=e.computed(()=>{var t;return((t=n.sticky)==null?void 0:t.getContainer)||document.documentElement||document.body});e.watch(()=>[i,n.sticky],()=>{var t,l,a;(t=i.value)!=null&&t.$el&&n.sticky&&((l=f.value)==null||l.removeEventListener("scroll",C),(a=f.value)==null||a.addEventListener("scroll",C),setTimeout(()=>{S()},50))},{immediate:!0,deep:!0});function S(){if(!o.value||!v.value||(C(),!y.value))return;const t=o.value.clientWidth,l=v.value.offsetWidth;g.value.style.width=t-1+"px",w.value.style.width=l+"px"}function C(){var c,s,d;if(!((c=i.value)!=null&&c.$el)||!o.value||!f.value)return;const t=((s=f.value)==null?void 0:s.clientHeight)||window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,{top:l,bottom:a}=o.value.getBoundingClientRect(),r=((d=f.value)==null?void 0:d.getBoundingClientRect().top)||document.body.getBoundingClientRect().top;y.value=l<t&&a>t&&a-r>t,g.value.scrollLeft=o.value.scrollLeft}const D=()=>{var l;const t=(l=i.value)==null?void 0:l.$el;t&&(o.value=t.querySelector(".vxe-table--body-wrapper"),v.value=t.querySelector(".vxe-table--body"),!(!o.value&&!v.value)&&(o.value.addEventListener("scroll",function(a){g.value.scrollLeft=a.target.scrollLeft}),g.value.addEventListener("scroll",function(a){o.value.scrollLeft=a.target.scrollLeft})))};return e.onMounted(()=>{n.sticky&&(D(),N.useResizeObserver(i,()=>S()))}),q({table:i}),(t,l)=>{const a=e.resolveComponent("vxe-grid");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(u).b())},[e.unref(x)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(k.VftPagination),e.mergeProps({key:0,class:[e.unref(u).e("pager"),e.unref(u).m("pager-"+n.pagePlacement)],layout:"prev, pager, next"},n.pageOptions,{total:n.total,"page-size":n.pageSize,onCurrentChange:l[0]||(l[0]=r=>m("page-change",n.pageNum)),"current-page":n.pageNum}),null,16,["class","total","page-size","current-page"])),e.createVNode(a,e.mergeProps({ref_key:"xGrid",ref:i},h,{height:n.height,"max-height":n.maxHeight,columns:e.unref(L),data:n.tableData,"auto-resize":"",loading:n.loading,resizable:"",onSortChange:T}),e.createSlots({empty:e.withCtx(()=>[e.createVNode(e.unref(W.VftEmpty),{type:e.unref(A.EmptyEnum).NO_DATA},null,8,["type"])]),_:2},[n.sticky?{name:"bottom",fn:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"stickyScroll",ref:g,class:e.normalizeClass(e.unref(u).e("sticky-scroll-warpper"))},[e.createElementVNode("div",{ref_key:"stickyScrollBar",ref:w,class:e.normalizeClass(e.unref(u).e("sticky-scroll-bar"))},null,2)],2),[[e.vShow,y.value]])]),key:"0"}:void 0]),1040,["height","max-height","columns","data","loading"]),e.unref(x)?(e.openBlock(),e.createBlock(e.unref(k.VftPagination),e.mergeProps({key:1,class:[e.unref(u).e("pager"),e.unref(u).m("pager-"+n.pagePlacement)],layout:"prev, pager, next"},n.pageOptions,{total:n.total,"page-size":n.pageSize,onCurrentChange:P,"current-page":n.pageNum}),null,16,["class","total","page-size","current-page"])):e.createCommentVNode("",!0)],2)}}});exports.default=j;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),W=require("../empty/index.cjs"),k=require("../pagination/index.cjs"),$=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");const N=require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");const p=require("vxe-table"),A=require("../empty/constants.cjs"),u=$.useNamespace("table"),M=e.defineComponent({name:u.b()}),j=e.defineComponent({...M,props:{maxHeight:null,columns:null,tableData:{default:[]},loading:{type:Boolean,default:!1},height:null,pageSize:{default:50},pageNum:{default:1},total:null,defaultSort:{default:{}},tableConfig:{default:{}},sticky:{type:[Boolean,Object]},pagePlacement:{default:"bottom-right"},pageOptions:null},emits:["page-change","sort-change","update:pageNum"],setup(n,{expose:q,emit:m}){const z=e.useAttrs(),B=e.ref(0),i=e.ref(),E=N.useDebounceFn(()=>H(),120),x=e.computed(()=>n.pagePlacement.startsWith("bottom"));e.watch([()=>n.loading,()=>n.tableData,()=>n.columns],()=>{E()},{immediate:!0});function H(){h.data=n.tableData,b(n.pageNum)}p.renderer.add("Encrypt",{renderDefault(t,l){const{row:a,column:r}=l;return e.createVNode("span",{class:"line-clamp",innerHTML:a[r.field]||"-"},null)}}),p.renderer.add("Clamp",{renderDefault(t,l){const{row:a,column:r}=l;return r.showOverflow=null,e.createVNode(e.resolveComponent("vftClampToggle"),{autoResize:!0,maxLines:2,text:a[r.field],title:a[r.field],toggleText:["展开","收起"],onClampChange:c=>R(l)},null)}}),p.formats.mixin({showEmpty({cellValue:t}){return t||"-"}});function P(t){m("page-change",t),m("update:pageNum",t)}const R=(t,l)=>{const{rowid:a}=t;e.nextTick(()=>{const r=document.getElementsByClassName("vxe-body--row"),c=[];for(var s=0;s<r.length;s++)r[s].getAttribute("rowid")===a&&c.push(r[s]);setTimeout(()=>{if(c.length>1){const d=c[0].clientHeight,I=c[1].clientHeight;d!==I&&(c[1].style.height=d+"px")}},1)})},L=e.computed(()=>n.columns.filter(t=>(t&&t.type!=="seq"&&!t.formatter&&!t.slots&&!t.cellRender&&(t.cellRender={name:"Encrypt"}),t))),V=()=>({maxHeight:"88px",height:"44px"}),O=t=>{var a;const{column:l}=t;return{maxHeight:((a=l==null?void 0:l.cellRender)==null?void 0:a.name)==="Clamp"?"max-content":"44px"}},h=e.reactive({autoResize:!0,sortConfig:{trigger:"cell",remote:!0,defaultSort:{field:"",order:"desc",...n.defaultSort},orders:["desc","asc",null]},seqConfig:{startIndex:B.value},cellClassName:"cellClass",rowClassName:"rowClass",cellStyle:O,rowStyle:V,headerRowClassName:"headerRowClass",headerAlign:"center",columnConfig:{resizable:!0},rowConfig:{isHover:!0},scrollY:{mode:"wheel"},scrollX:{enabled:!1},...n.tableConfig,...z}),T=t=>{m("sort-change",t)};e.watch(()=>n.pageNum,t=>{b(t)});const b=t=>{h.seqConfig&&(h.seqConfig.startIndex=(t-1)*n.pageSize)},g=e.ref(),w=e.ref();let y=e.ref(!1),o=e.ref(null),v=e.ref(null);const f=e.computed(()=>{var t;return((t=n.sticky)==null?void 0:t.getContainer)||document.documentElement||document.body});e.watch(()=>[i,n.sticky],()=>{var t,l,a;(t=i.value)!=null&&t.$el&&n.sticky&&((l=f.value)==null||l.removeEventListener("scroll",C),(a=f.value)==null||a.addEventListener("scroll",C),setTimeout(()=>{S()},50))},{immediate:!0,deep:!0});function S(){if(!o.value||!v.value||(C(),!y.value))return;const t=o.value.clientWidth,l=v.value.offsetWidth;g.value.style.width=t-1+"px",w.value.style.width=l+"px"}function C(){var c,s,d;if(!((c=i.value)!=null&&c.$el)||!o.value||!f.value)return;const t=((s=f.value)==null?void 0:s.clientHeight)||window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,{top:l,bottom:a}=o.value.getBoundingClientRect(),r=((d=f.value)==null?void 0:d.getBoundingClientRect().top)||document.body.getBoundingClientRect().top;y.value=l<t&&a>t&&a-r>t,g.value.scrollLeft=o.value.scrollLeft}const D=()=>{var l;const t=(l=i.value)==null?void 0:l.$el;t&&(o.value=t.querySelector(".vxe-table--body-wrapper"),v.value=t.querySelector(".vxe-table--body"),!(!o.value&&!v.value)&&(o.value.addEventListener("scroll",function(a){g.value.scrollLeft=a.target.scrollLeft}),g.value.addEventListener("scroll",function(a){o.value.scrollLeft=a.target.scrollLeft})))};return e.onMounted(()=>{n.sticky&&(D(),N.useResizeObserver(i,()=>S()))}),q({table:i}),(t,l)=>{const a=e.resolveComponent("vxe-grid");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(u).b())},[e.unref(x)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(k.VftPagination),e.mergeProps({key:0,class:[e.unref(u).e("pager"),e.unref(u).m("pager-"+n.pagePlacement)],layout:"prev, pager, next"},n.pageOptions,{total:n.total,"page-size":n.pageSize,onCurrentChange:l[0]||(l[0]=r=>m("page-change",n.pageNum)),"current-page":n.pageNum}),null,16,["class","total","page-size","current-page"])),e.createVNode(a,e.mergeProps({ref_key:"xGrid",ref:i},h,{height:n.height,"max-height":n.maxHeight,columns:e.unref(L),data:n.tableData,"auto-resize":"",loading:n.loading,resizable:"",onSortChange:T}),e.createSlots({empty:e.withCtx(()=>[e.createVNode(e.unref(W.VftEmpty),{type:e.unref(A.EmptyEnum).NO_DATA},null,8,["type"])]),_:2},[n.sticky?{name:"bottom",fn:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"stickyScroll",ref:g,class:e.normalizeClass(e.unref(u).e("sticky-scroll-warpper"))},[e.createElementVNode("div",{ref_key:"stickyScrollBar",ref:w,class:e.normalizeClass(e.unref(u).e("sticky-scroll-bar"))},null,2)],2),[[e.vShow,e.unref(y)]])]),key:"0"}:void 0]),1040,["height","max-height","columns","data","loading"]),e.unref(x)?(e.openBlock(),e.createBlock(e.unref(k.VftPagination),e.mergeProps({key:1,class:[e.unref(u).e("pager"),e.unref(u).m("pager-"+n.pagePlacement)],layout:"prev, pager, next"},n.pageOptions,{total:n.total,"page-size":n.pageSize,onCurrentChange:P,"current-page":n.pageNum}),null,16,["class","total","page-size","current-page"])):e.createCommentVNode("",!0)],2)}}});exports.default=j;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("./types.cjs"),S=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");const w=require("@vueuse/core"),c=require("@vft/utils");require("../../utils/ns-cover.cjs");require("@vue/reactivity");require("@vue/shared");const $=e.defineComponent({__name:"tab-bar",props:{tabs:null},setup(g,{expose:q}){const a=g,v=e.getCurrentInstance(),l=e.inject(x.TabsRootContextKey),p=S.useNamespace("tabs"),i=e.ref(),f=e.ref(),_=()=>{let t=0,r=0;const s=["top","bottom"].includes(l.props.tabPosition)?"width":"height",b=s==="width"?"x":"y",z=b==="x"?"left":"top";return a.tabs.every(d=>{var m,y;const n=(y=(m=v.parent)==null?void 0:m.refs)==null?void 0:y[`tab-${d.uid}`];if(!n)return!1;if(!d.active)return!0;t=n[`offset${c.capitalize(z)}`],r=n[`client${c.capitalize(s)}`];const u=window.getComputedStyle(n);return s==="width"&&(a.tabs.length>1&&(r-=Number.parseFloat(u.paddingLeft)+Number.parseFloat(u.paddingRight)),t+=Number.parseFloat(u.paddingLeft)),!1}),{[s]:`${r}px`,transform:`translate${c.capitalize(b)}(${t}px)`}},o=()=>f.value=_();e.watch(()=>a.tabs,async()=>{await e.nextTick(),o()},{immediate:!0});const h=e.computed(()=>l.props.tabPosition);return w.useResizeObserver(i,()=>o()),q({ref:i,update:o}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"barRef",ref:i,class:e.normalizeClass([e.unref(p).e("active-bar"),e.unref(p).is(e.unref(h))]),style:e.normalizeStyle(f.value)},null,6))}});exports.default=$;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("./types.cjs"),S=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");const w=require("@vueuse/core"),u=require("@vft/utils");require("../../utils/ns-cover.cjs");const $=e.defineComponent({__name:"tab-bar",props:{tabs:null},setup(g,{expose:v}){const a=g,_=e.getCurrentInstance(),l=e.inject(x.TabsRootContextKey),p=S.useNamespace("tabs"),i=e.ref(),f=e.ref(),h=()=>{let t=0,r=0;const s=["top","bottom"].includes(l.props.tabPosition)?"width":"height",b=s==="width"?"x":"y",z=b==="x"?"left":"top";return a.tabs.every(d=>{var m,y;const n=(y=(m=_.parent)==null?void 0:m.refs)==null?void 0:y[`tab-${d.uid}`];if(!n)return!1;if(!d.active)return!0;t=n[`offset${u.capitalize(z)}`],r=n[`client${u.capitalize(s)}`];const c=window.getComputedStyle(n);return s==="width"&&(a.tabs.length>1&&(r-=Number.parseFloat(c.paddingLeft)+Number.parseFloat(c.paddingRight)),t+=Number.parseFloat(c.paddingLeft)),!1}),{[s]:`${r}px`,transform:`translate${u.capitalize(b)}(${t}px)`}},o=()=>f.value=h();e.watch(()=>a.tabs,async()=>{await e.nextTick(),o()},{immediate:!0});const q=e.computed(()=>l.props.tabPosition);return w.useResizeObserver(i,()=>o()),v({ref:i,update:o}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"barRef",ref:i,class:e.normalizeClass([e.unref(p).e("active-bar"),e.unref(p).is(e.unref(q))]),style:e.normalizeStyle(f.value)},null,6))}});exports.default=$;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),w=require("@vft/utils"),G=require("../../utils/error.cjs");require("lodash");const T=require("@vueuse/core");require("../../utils/ns-cover.cjs");require("../divider/index.cjs");const V=require("../icon/index.cjs");require("../avatar/index.cjs");require("../empty/index.cjs");require("../result/index.cjs");require("./index.cjs");require("../popper/index.cjs");require("../collapse-transition/index.cjs");require("../tooltip/index.cjs");require("../popover/index.cjs");require("../menu/index.cjs");require("../context-menu/context-menu.vue2.cjs");require("../multiple-tabs/multiple-tabs.vue2.cjs");require("@vft/router");require("@vft/store");require("@vft/use");require("vue-router");require("../header-layout/index.cjs");require("../footer-layout/index.cjs");require("../iframe-layout/index.cjs");require("../router-view-content/index.cjs");require("../logo/index.cjs");require("../back-top/index.cjs");require("../config-provider/index.cjs");require("../descriptions/index.cjs");require("../full-screen/index.cjs");require("../icon-text/index.cjs");require("../image/index.cjs");require("../input/index.cjs");require("../link/index.cjs");require("../pagination/index.cjs");require("../tag/index.cjs");require("../side-menu/index.cjs");require("../qrcode/index.cjs");require("../overlay/index.cjs");require("../clamp/index.cjs");require("../clamp-toggle/index.cjs");require("../page-wrapper/index.cjs");require("../exception/index.cjs");require("../search/index.cjs");require("../form/index.cjs");require("../button/index.cjs");require("../checkbox/index.cjs");require("../radio/index.cjs");require("../switch/index.cjs");require("../color-picker/index.cjs");require("../scrollbar/index.cjs");require("../dropdown/index.cjs");require("../virtual-list/components/fixed-size-list.cjs");require("../virtual-list/components/dynamic-size-list.cjs");require("../virtual-list/components/fixed-size-grid.cjs");require("../virtual-list/components/dynamic-size-grid.cjs");require("../virtual-list/props.cjs");require("../select-v2/index.cjs");require("../verify-code/index.cjs");require("../table/index.cjs");require("../image-viewer/index.cjs");require("../list-cell/index.cjs");require("../dialog/index.cjs");require("../date-time-select/index.cjs");require("../md-container/index.cjs");require("../md-comment/index.cjs");require("../md-tabs/index.cjs");require("../md-vue-playground/index.cjs");require("../md-code-demo/index.cjs");require("../md-code-tabs/index.cjs");require("../message/index.cjs");const R=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");require("@vue/reactivity");require("@vue/shared");const x=require("@vft/constants"),J=require("./types.cjs"),Q=require("./tab-bar.vue2.cjs"),P=R.useNamespace("tab-nav"),Z=t.defineComponent({name:P.b()}),_=t.defineComponent({...Z,props:{panes:null,editable:{type:Boolean},addable:{type:Boolean},stretch:{type:Boolean},showBar:{type:Boolean,default:!1},closeIconCfg:null,addIconCfg:null,arrowLeftIconCfg:null,arrowRightIconCfg:null},emits:["tabClick","tabRemove","tabAdd","tabContextmenu"],setup(n,{expose:A,emit:m}){var z;const D=t.getCurrentInstance(),b=t.inject(J.TabsRootContextKey);b||G.throwError(P.b(),"<vft-tabs><tab-nav /></vft-tabs>");const o=R.useNamespace("tabs"),F=T.useDocumentVisibility(),L=T.useWindowFocus(),N=t.ref(),q=t.ref(),C=t.ref(),f=t.ref(!1),d=t.ref(0),y=t.ref(!1),p=t.ref(!0),h=t.computed(()=>["top","bottom"].includes(b.props.tabPosition)?"width":"height"),M=t.computed(()=>({transform:`translate${h.value==="width"?"X":"Y"}(-${d.value}px)`})),K=()=>{if(!q.value)return;const r=q.value[`offset${w.capitalize(h.value)}`],e=d.value;e&&(d.value=e>r?e-r:0)},j=()=>{if(!q.value||!C.value)return;const r=C.value[`offset${w.capitalize(h.value)}`],e=q.value[`offset${w.capitalize(h.value)}`],i=d.value;r-i<=e||(d.value=r-i>e*2?i+e:r-e)},$=async()=>{const r=C.value;if(!f.value||!N.value||!q.value||!r)return;await t.nextTick();const e=N.value.querySelector(".is-active");if(!e)return;const i=q.value,g=["top","bottom"].includes(b.props.tabPosition),l=e.getBoundingClientRect(),a=i.getBoundingClientRect(),c=g?r.offsetWidth-a.width:r.offsetHeight-a.height,s=d.value;let u=s;g?(l.left<a.left&&(u=s-(a.left-l.left)),l.right>a.right&&(u=s+l.right-a.right)):(l.top<a.top&&(u=s-(a.top-l.top)),l.bottom>a.bottom&&(u=s+(l.bottom-a.bottom))),u=Math.max(u,0),d.value=Math.min(u,c)},B=()=>{if(!C.value||!q.value)return;const r=C.value[`offset${w.capitalize(h.value)}`],e=q.value[`offset${w.capitalize(h.value)}`],i=d.value;e<r?(f.value=f.value||{},f.value.prev=i,f.value.next=i+e<r,r-i<e&&(d.value=r-e)):(f.value=!1,i>0&&(d.value=0))},H=r=>{const e=r.code,{up:i,down:g,left:l,right:a}=x.EVENT_CODE;if(![i,g,l,a].includes(e))return;const c=Array.from(r.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),s=c.indexOf(r.target);let u;e===l||e===i?s===0?u=c.length-1:u=s-1:s<c.length-1?u=s+1:u=0,c[u].focus(),c[u].click(),O()},O=()=>{p.value&&(y.value=!0)},I=()=>y.value=!1;t.watch(F,r=>{r==="hidden"?p.value=!1:r==="visible"&&setTimeout(()=>p.value=!0,50)}),t.watch(L,r=>{r?setTimeout(()=>p.value=!0,50):p.value=!1}),T.useResizeObserver(N,B),t.onMounted(()=>setTimeout(()=>$(),0)),t.onUpdated(()=>B()),A({scrollToActiveTab:$,removeFocus:I}),t.watch(()=>n.panes,()=>D.update(),{flush:"post"});const W=t.computed(()=>{var r,e;return f.value?[t.createVNode("span",{class:[o.e("nav-prev"),o.is("disabled",!f.value.prev)],onClick:K},[(r=n.arrowLeftIconCfg)!=null&&r.icon?t.createVNode(V.VftIcon,n.arrowLeftIconCfg,null):null]),t.createVNode("span",{class:[o.e("nav-next"),o.is("disabled",!f.value.next)],onClick:j},[(e=n.arrowRightIconCfg)!=null&&e.icon?t.createVNode(V.VftIcon,n.arrowRightIconCfg,null):null])]:null}),U=t.computed(()=>{var r;return(r=n.panes)==null?void 0:r.map((e,i)=>{var E,S,k;const g=e.uid,l=e.props.disabled,a=e.props.name??e.index??`${i}`,c=!l&&(e.isClosable||n.editable);e.index=`${i}`;const s=c?t.createVNode("span",{class:"is-icon-close",onClick:v=>m("tabRemove",e,v)},[(E=n.closeIconCfg)!=null&&E.icon?t.createVNode(V.VftIcon,n.closeIconCfg,null):null]):null,u=((k=(S=e.slots).label)==null?void 0:k.call(S))||e.props.label,Y=!l&&e.active?0:-1;return t.createVNode("div",{ref:`tab-${g}`,class:[o.e("item"),o.is(b.props.tabPosition),o.is("active",e.active),o.is("disabled",l),o.is("closable",c),o.is("focus",y.value)],id:`tab-${a}`,key:`tab-${g}`,"aria-controls":`pane-${a}`,role:"tab","aria-selected":e.active,tabindex:Y,onFocus:()=>O(),onBlur:()=>I(),onClick:v=>{I(),m("tabClick",e,a,v)},onContextmenu:v=>{v.preventDefault(),m("tabContextmenu",{pane:e,index:i,event:v})},onKeydown:v=>{c&&(v.code===x.EVENT_CODE.delete||v.code===x.EVENT_CODE.backspace)&&m("tabRemove",e,v)}},[u,s])})}),X=n.editable||n.addable?t.createVNode("span",{class:o.e("new-tab"),tabindex:"0",onClick:()=>m("tabAdd"),onKeydown:r=>{r.code===x.EVENT_CODE.enter&&m("tabAdd")}},[(z=n.addIconCfg)!=null&&z.icon?t.createVNode(V.VftIcon,n.addIconCfg,null):null]):null;return()=>t.createVNode("div",{ref:N,class:[o.e("nav-wrap"),o.is("scrollable",!!f.value),o.is(b.props.tabPosition)]},[W.value,t.createVNode("div",{class:o.e("nav-scroll"),ref:q},[t.createVNode("div",{class:[o.e("nav"),o.is(b.props.tabPosition),o.is("stretch",n.stretch&&["top","bottom"].includes(b.props.tabPosition))],ref:C,style:M.value,role:"tablist",onKeydown:H},[n.showBar?t.createVNode(Q.default,{tabs:[...n.panes]},null):null,U.value]),X])])}});exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),w=require("@vft/utils"),G=require("../../utils/error.cjs");require("lodash");const T=require("@vueuse/core");require("../../utils/ns-cover.cjs");require("../divider/index.cjs");const V=require("../icon/index.cjs");require("../avatar/index.cjs");require("../empty/index.cjs");require("../result/index.cjs");require("./index.cjs");require("../popper/index.cjs");require("../collapse-transition/index.cjs");require("../tooltip/index.cjs");require("../popover/index.cjs");require("../menu/index.cjs");require("../context-menu/context-menu.vue2.cjs");require("../multiple-tabs/index.cjs");require("../header-layout/index.cjs");require("../footer-layout/index.cjs");require("../iframe-layout/index.cjs");require("../router-view-content/index.cjs");require("../logo/index.cjs");require("../back-top/index.cjs");require("../container/index.cjs");require("../config-provider/index.cjs");require("../descriptions/index.cjs");require("../full-screen/index.cjs");require("../icon-text/index.cjs");require("../image/index.cjs");require("../input/index.cjs");require("../link/index.cjs");require("../pagination/index.cjs");require("../tag/index.cjs");require("../side-menu/index.cjs");require("../qrcode/index.cjs");require("../overlay/index.cjs");require("../clamp/index.cjs");require("../clamp-toggle/index.cjs");require("../page-wrapper/index.cjs");require("../exception/index.cjs");require("../search/index.cjs");require("../form/index.cjs");require("../button/index.cjs");require("../checkbox/index.cjs");require("../radio/index.cjs");require("../switch/index.cjs");require("../color-picker/index.cjs");require("../scrollbar/index.cjs");require("../dropdown/index.cjs");require("../virtual-list/components/fixed-size-list.cjs");require("../virtual-list/components/dynamic-size-list.cjs");require("../virtual-list/components/fixed-size-grid.cjs");require("../virtual-list/components/dynamic-size-grid.cjs");require("../virtual-list/props.cjs");require("../select-v2/index.cjs");require("../verify-code/index.cjs");require("../table/index.cjs");require("../image-viewer/index.cjs");require("../list-cell/index.cjs");require("../dialog/index.cjs");require("../date-time-select/index.cjs");require("../col/index.cjs");require("../row/index.cjs");require("../horizontal-menu/index.cjs");require("../time-picker/index.cjs");require("../date-picker/index.cjs");require("../md-container/index.cjs");require("../md-comment/index.cjs");require("../md-tabs/index.cjs");require("../md-vue-playground/index.cjs");require("../md-code-demo/index.cjs");require("../md-code-tabs/index.cjs");require("../message/index.cjs");const R=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const x=require("@vft/constants"),J=require("./types.cjs"),Q=require("./tab-bar.vue2.cjs"),P=R.useNamespace("tab-nav"),Z=t.defineComponent({name:P.b()}),_=t.defineComponent({...Z,props:{panes:null,editable:{type:Boolean},addable:{type:Boolean},stretch:{type:Boolean},showBar:{type:Boolean,default:!1},closeIconCfg:null,addIconCfg:null,arrowLeftIconCfg:null,arrowRightIconCfg:null},emits:["tabClick","tabRemove","tabAdd","tabContextmenu"],setup(n,{expose:A,emit:m}){var z;const D=t.getCurrentInstance(),b=t.inject(J.TabsRootContextKey);b||G.throwError(P.b(),"<vft-tabs><tab-nav /></vft-tabs>");const o=R.useNamespace("tabs"),F=T.useDocumentVisibility(),L=T.useWindowFocus(),N=t.ref(),q=t.ref(),C=t.ref(),f=t.ref(!1),d=t.ref(0),y=t.ref(!1),p=t.ref(!0),h=t.computed(()=>["top","bottom"].includes(b.props.tabPosition)?"width":"height"),M=t.computed(()=>({transform:`translate${h.value==="width"?"X":"Y"}(-${d.value}px)`})),K=()=>{if(!q.value)return;const r=q.value[`offset${w.capitalize(h.value)}`],e=d.value;e&&(d.value=e>r?e-r:0)},j=()=>{if(!q.value||!C.value)return;const r=C.value[`offset${w.capitalize(h.value)}`],e=q.value[`offset${w.capitalize(h.value)}`],i=d.value;r-i<=e||(d.value=r-i>e*2?i+e:r-e)},$=async()=>{const r=C.value;if(!f.value||!N.value||!q.value||!r)return;await t.nextTick();const e=N.value.querySelector(".is-active");if(!e)return;const i=q.value,g=["top","bottom"].includes(b.props.tabPosition),l=e.getBoundingClientRect(),a=i.getBoundingClientRect(),c=g?r.offsetWidth-a.width:r.offsetHeight-a.height,s=d.value;let u=s;g?(l.left<a.left&&(u=s-(a.left-l.left)),l.right>a.right&&(u=s+l.right-a.right)):(l.top<a.top&&(u=s-(a.top-l.top)),l.bottom>a.bottom&&(u=s+(l.bottom-a.bottom))),u=Math.max(u,0),d.value=Math.min(u,c)},B=()=>{if(!C.value||!q.value)return;const r=C.value[`offset${w.capitalize(h.value)}`],e=q.value[`offset${w.capitalize(h.value)}`],i=d.value;e<r?(f.value=f.value||{},f.value.prev=i,f.value.next=i+e<r,r-i<e&&(d.value=r-e)):(f.value=!1,i>0&&(d.value=0))},H=r=>{const e=r.code,{up:i,down:g,left:l,right:a}=x.EVENT_CODE;if(![i,g,l,a].includes(e))return;const c=Array.from(r.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),s=c.indexOf(r.target);let u;e===l||e===i?s===0?u=c.length-1:u=s-1:s<c.length-1?u=s+1:u=0,c[u].focus(),c[u].click(),O()},O=()=>{p.value&&(y.value=!0)},I=()=>y.value=!1;t.watch(F,r=>{r==="hidden"?p.value=!1:r==="visible"&&setTimeout(()=>p.value=!0,50)}),t.watch(L,r=>{r?setTimeout(()=>p.value=!0,50):p.value=!1}),T.useResizeObserver(N,B),t.onMounted(()=>setTimeout(()=>$(),0)),t.onUpdated(()=>B()),A({scrollToActiveTab:$,removeFocus:I}),t.watch(()=>n.panes,()=>D.update(),{flush:"post"});const W=t.computed(()=>{var r,e;return f.value?[t.createVNode("span",{class:[o.e("nav-prev"),o.is("disabled",!f.value.prev)],onClick:K},[(r=n.arrowLeftIconCfg)!=null&&r.icon?t.createVNode(V.VftIcon,n.arrowLeftIconCfg,null):null]),t.createVNode("span",{class:[o.e("nav-next"),o.is("disabled",!f.value.next)],onClick:j},[(e=n.arrowRightIconCfg)!=null&&e.icon?t.createVNode(V.VftIcon,n.arrowRightIconCfg,null):null])]:null}),U=t.computed(()=>{var r;return(r=n.panes)==null?void 0:r.map((e,i)=>{var E,S,k;const g=e.uid,l=e.props.disabled,a=e.props.name??e.index??`${i}`,c=!l&&(e.isClosable||n.editable);e.index=`${i}`;const s=c?t.createVNode("span",{class:"is-icon-close",onClick:v=>m("tabRemove",e,v)},[(E=n.closeIconCfg)!=null&&E.icon?t.createVNode(V.VftIcon,n.closeIconCfg,null):null]):null,u=((k=(S=e.slots).label)==null?void 0:k.call(S))||e.props.label,Y=!l&&e.active?0:-1;return t.createVNode("div",{ref:`tab-${g}`,class:[o.e("item"),o.is(b.props.tabPosition),o.is("active",e.active),o.is("disabled",l),o.is("closable",c),o.is("focus",y.value)],id:`tab-${a}`,key:`tab-${g}`,"aria-controls":`pane-${a}`,role:"tab","aria-selected":e.active,tabindex:Y,onFocus:()=>O(),onBlur:()=>I(),onClick:v=>{I(),m("tabClick",e,a,v)},onContextmenu:v=>{v.preventDefault(),m("tabContextmenu",{pane:e,index:i,event:v})},onKeydown:v=>{c&&(v.code===x.EVENT_CODE.delete||v.code===x.EVENT_CODE.backspace)&&m("tabRemove",e,v)}},[u,s])})}),X=n.editable||n.addable?t.createVNode("span",{class:o.e("new-tab"),tabindex:"0",onClick:()=>m("tabAdd"),onKeydown:r=>{r.code===x.EVENT_CODE.enter&&m("tabAdd")}},[(z=n.addIconCfg)!=null&&z.icon?t.createVNode(V.VftIcon,n.addIconCfg,null):null]):null;return()=>t.createVNode("div",{ref:N,class:[o.e("nav-wrap"),o.is("scrollable",!!f.value),o.is(b.props.tabPosition)]},[W.value,t.createVNode("div",{class:o.e("nav-scroll"),ref:q},[t.createVNode("div",{class:[o.e("nav"),o.is(b.props.tabPosition),o.is("stretch",n.stretch&&["top","bottom"].includes(b.props.tabPosition))],ref:C,style:M.value,role:"tablist",onKeydown:H},[n.showBar?t.createVNode(Q.default,{tabs:[...n.panes]},null):null,U.value]),X])])}});exports.default=_;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("@vft/utils");const f=require("../../utils/error.cjs");require("lodash");const d=require("@vueuse/core");require("../../utils/ns-cover.cjs");const v=require("./types.cjs"),q=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");require("@vue/reactivity");require("@vue/shared");const y=["id","aria-hidden","aria-labelledby"],l=q.useNamespace("tab-pane"),h=e.defineComponent({name:l.b()}),C=e.defineComponent({...h,props:{label:null,name:null,closable:{type:Boolean},disabled:{type:Boolean},lazy:{type:Boolean}},setup(n){const a=e.getCurrentInstance(),b=e.useSlots(),r=e.inject(v.TabsRootContextKey);r||f.throwError(l.b(),"usage: <vft-tabs><vft-tab-pane /></vft-tabs/>");const o=e.ref(),p=e.computed(()=>n.closable||r.props.closable),t=d.eagerComputed(()=>r.currentName.value===(n.name??o.value)),i=e.ref(t.value),u=e.computed(()=>n.name??o.value),m=d.eagerComputed(()=>!n.lazy||i.value||t.value);e.watch(t,s=>{s&&(i.value=!0)});const c=e.reactive({uid:a.uid,slots:b,props:a.props,paneName:u,active:t,index:o,isClosable:p,attrs:a.attrs});return e.onMounted(()=>{r.registerPane(c)}),e.onUnmounted(()=>{r.unregisterPane(c.uid)}),(s,g)=>e.unref(m)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,id:`pane-${e.unref(u)}`,class:e.normalizeClass(e.unref(l).b()),role:"tabpanel","aria-hidden":!e.unref(t),"aria-labelledby":`tab-${e.unref(u)}`},[e.renderSlot(s.$slots,"default")],10,y)),[[e.vShow,e.unref(t)]]):e.createCommentVNode("",!0)}});exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("@vft/utils");const f=require("../../utils/error.cjs");require("lodash");const d=require("@vueuse/core");require("../../utils/ns-cover.cjs");const v=require("./types.cjs"),y=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const q=["id","aria-hidden","aria-labelledby"],l=y.useNamespace("tab-pane"),h=e.defineComponent({name:l.b()}),C=e.defineComponent({...h,props:{label:null,name:null,closable:{type:Boolean},disabled:{type:Boolean},lazy:{type:Boolean}},setup(r){const a=e.getCurrentInstance(),b=e.useSlots(),n=e.inject(v.TabsRootContextKey);n||f.throwError(l.b(),"usage: <vft-tabs><vft-tab-pane /></vft-tabs/>");const o=e.ref(),p=e.computed(()=>r.closable||n.props.closable),t=d.eagerComputed(()=>n.currentName.value===(r.name??o.value)),i=e.ref(t.value),s=e.computed(()=>r.name??o.value),m=d.eagerComputed(()=>!r.lazy||i.value||t.value);e.watch(t,u=>{u&&(i.value=!0)});const c=e.reactive({uid:a.uid,slots:b,props:a.props,paneName:s,active:t,index:o,isClosable:p,attrs:a.attrs});return e.onMounted(()=>{n.registerPane(c)}),e.onUnmounted(()=>{n.unregisterPane(c.uid)}),(u,g)=>e.unref(m)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,id:`pane-${e.unref(s)}`,class:e.normalizeClass(e.unref(l).b()),role:"tabpanel","aria-hidden":!e.unref(t),"aria-labelledby":`tab-${e.unref(s)}`},[e.renderSlot(u.$slots,"default")],10,q)),[[e.vShow,e.unref(t)]]):e.createCommentVNode("",!0)}});exports.default=C;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),P=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");const s=require("@vft/utils");require("../../utils/ns-cover.cjs");const V=require("../../hooks/use-ordered-children/index.cjs");require("@vue/reactivity");require("@vue/shared");const B=require("@vft/constants"),A=require("./tab-nav.vue2.cjs"),E=require("./types.cjs"),d=P.useNamespace("tabs"),k=n.defineComponent({name:d.b()}),M=n.defineComponent({...k,props:{closable:{type:Boolean},addable:{type:Boolean,default:!1},modelValue:null,editable:{type:Boolean},tabPosition:{default:"top"},beforeLeave:{type:Function},stretch:{type:Boolean},showBar:{type:Boolean,default:!1},closeIconCfg:null,addIconCfg:null,arrowLeftIconCfg:null,arrowRightIconCfg:null},emits:{[B.UPDATE_MODEL_EVENT]:t=>s.isNumberish(t),tabClick:(t,u)=>u instanceof Event,tabContextMenu:(t,u,a)=>a instanceof Event,tabChange:t=>s.isNumberish(t),edit:(t,u)=>["remove","add"].includes(u),tabRemove:t=>s.isNumberish(t),tabAdd:()=>!0},setup(t,{expose:u,emit:a}){const m=n.getCurrentInstance(),i=n.useSlots(),l=n.ref(),c=n.ref(t.modelValue??"0"),g=e=>{c.value=e,a("update:modelValue",e),a("tabChange",e)},f=async e=>{var o,r,C;if(!(c.value===e||s.isUndefined(e)))try{await((o=t.beforeLeave)==null?void 0:o.call(t,e,c.value))!==!1&&(g(e),(C=(r=l.value)==null?void 0:r.removeFocus)==null||C.call(r))}catch{}},h=(e,o,r)=>{e.props.disabled||(f(o),a("tabClick",e,r))},I=(e,o)=>{e.props.disabled||s.isUndefined(e.props.name)||(o.stopPropagation(),a("edit",e.props.name,"remove"),a("tabRemove",e.props.name))};n.watch(()=>t.modelValue,e=>f(e)),n.watch(c,async()=>{var e;await n.nextTick(),(e=l.value)==null||e.scrollToActiveTab()});const p=()=>{a("edit",void 0,"add"),a("tabAdd")},w=(e,o,r)=>{a("tabContextMenu",e,o,r)},b=n.computed(()=>{var e;return n.createVNode("div",{class:d.e("content")},[(e=i.default)==null?void 0:e.call(i)])}),{children:N,addChild:q,removeChild:T}=V.useOrderedChildren(n.getCurrentInstance(),"vft-tab-pane");n.provide(E.TabsRootContextKey,{props:m.props,currentName:c,registerPane:q,unregisterPane:T}),u({currentName:c});const y=n.computed(()=>({icon:"ico-ep:plus",size:12,...t.addIconCfg})),R=n.computed(()=>({icon:"ico-ep:close",size:14,...t.closeIconCfg})),x=n.computed(()=>({icon:"ico-ep:arrow-left",size:18,...t.arrowLeftIconCfg})),L=n.computed(()=>({icon:"ico-ep:arrow-right",size:18,...t.arrowRightIconCfg})),v=n.computed(()=>{var e;return n.createVNode("div",{class:[d.e("header"),d.is(t.tabPosition)]},[n.createVNode(A.default,{ref:l,currentName:c.value,panes:N.value,stretch:t.stretch,showBar:t.showBar,closeIconCfg:R.value,addIconCfg:y.value,arrowRightIconCfg:L.value,arrowLeftIconCfg:x.value,editable:t.editable,addable:t.addable,onTabClick:h,onTabRemove:I,onTabAdd:p,onTabContextmenu:w},null),(e=i.headerRight)==null?void 0:e.call(i)])});return()=>n.createVNode("div",{class:[d.b(),d.m(t.tabPosition)]},[...t.tabPosition!=="bottom"?[v.value,b.value]:[b.value,v.value]])}});exports.default=M;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),P=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");const s=require("@vft/utils");require("../../utils/ns-cover.cjs");const V=require("../../hooks/use-ordered-children/index.cjs"),B=require("@vft/constants"),A=require("./tab-nav.vue2.cjs"),E=require("./types.cjs"),i=P.useNamespace("tabs"),k=n.defineComponent({name:i.b()}),M=n.defineComponent({...k,props:{closable:{type:Boolean},addable:{type:Boolean,default:!1},modelValue:null,editable:{type:Boolean},tabPosition:{default:"top"},beforeLeave:{type:Function},stretch:{type:Boolean},showBar:{type:Boolean,default:!1},closeIconCfg:null,addIconCfg:null,arrowLeftIconCfg:null,arrowRightIconCfg:null},emits:{[B.UPDATE_MODEL_EVENT]:t=>s.isNumberish(t),tabClick:(t,u)=>u instanceof Event,tabContextMenu:(t,u,a)=>a instanceof Event,tabChange:t=>s.isNumberish(t),edit:(t,u)=>["remove","add"].includes(u),tabRemove:t=>s.isNumberish(t),tabAdd:()=>!0},setup(t,{expose:u,emit:a}){const m=n.getCurrentInstance(),d=n.useSlots(),l=n.ref(),c=n.ref(t.modelValue??"0"),g=e=>{c.value=e,a("update:modelValue",e),a("tabChange",e)},f=async e=>{var o,r,C;if(!(c.value===e||s.isUndefined(e)))try{await((o=t.beforeLeave)==null?void 0:o.call(t,e,c.value))!==!1&&(g(e),(C=(r=l.value)==null?void 0:r.removeFocus)==null||C.call(r))}catch{}},h=(e,o,r)=>{e.props.disabled||(f(o),a("tabClick",e,r))},I=(e,o)=>{e.props.disabled||s.isUndefined(e.props.name)||(o.stopPropagation(),a("edit",e.props.name,"remove"),a("tabRemove",e.props.name))};n.watch(()=>t.modelValue,e=>f(e)),n.watch(c,async()=>{var e;await n.nextTick(),(e=l.value)==null||e.scrollToActiveTab()});const p=()=>{a("edit",void 0,"add"),a("tabAdd")},w=(e,o,r)=>{a("tabContextMenu",e,o,r)},b=n.computed(()=>{var e;return n.createVNode("div",{class:i.e("content")},[(e=d.default)==null?void 0:e.call(d)])}),{children:N,addChild:T,removeChild:y}=V.useOrderedChildren(n.getCurrentInstance(),"vft-tab-pane");n.provide(E.TabsRootContextKey,{props:m.props,currentName:c,registerPane:T,unregisterPane:y}),u({currentName:c});const q=n.computed(()=>({icon:"ico-ep:plus",size:12,...t.addIconCfg})),R=n.computed(()=>({icon:"ico-ep:close",size:14,...t.closeIconCfg})),x=n.computed(()=>({icon:"ico-ep:arrow-left",size:18,...t.arrowLeftIconCfg})),L=n.computed(()=>({icon:"ico-ep:arrow-right",size:18,...t.arrowRightIconCfg})),v=n.computed(()=>{var e;return n.createVNode("div",{class:[i.e("header"),i.is(t.tabPosition)]},[n.createVNode(A.default,{ref:l,currentName:c.value,panes:N.value,stretch:t.stretch,showBar:t.showBar,closeIconCfg:R.value,addIconCfg:q.value,arrowRightIconCfg:L.value,arrowLeftIconCfg:x.value,editable:t.editable,addable:t.addable,onTabClick:h,onTabRemove:I,onTabAdd:p,onTabContextmenu:w},null),(e=d.headerRight)==null?void 0:e.call(d)])});return()=>n.createVNode("div",{class:[i.b(),i.m(t.tabPosition)]},[...t.tabPosition!=="bottom"?[v.value,b.value]:[b.value,v.value]])}});exports.default=M;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),d=require("../icon/index.cjs"),f=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");require("@vue/reactivity");require("@vue/shared");require("../form/index.cjs");const m=require("../form/hooks/use-form-common-props.cjs");function b(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const q=n.defineComponent({__name:"tag",props:{closable:{type:Boolean},type:null,hit:{type:Boolean},disableTransitions:{type:Boolean,default:!0},color:null,size:null,effect:{default:"light"},round:{type:Boolean}},emits:["close","click"],setup(e,{emit:r}){const l=n.useSlots(),i=m.useFormSize(),t=f.useNamespace("tag"),s=n.computed(()=>[t.b(),t.is("closable",e.closable),t.m(e.type),t.m(i.value),t.m(e.effect),t.is("hit",e.hit),t.is("round",e.round)]),a=o=>{r("close",o)},u=o=>{r("click",o)},c=()=>{var o;return n.createVNode("span",{class:s.value,style:{backgroundColor:e.color},onClick:u},[n.createVNode("span",{class:t.e("content")},[(o=l.default)==null?void 0:o.call(l)]),e.closable?n.createVNode("div",{class:t.e("close"),onClick:a},[n.createVNode(d.VftIcon,{icon:"ico-ep:close"},null)]):""])};return()=>{let o;return e.disableTransitions?c():n.createVNode(n.Transition,{name:`${t.namespace.value}-zoom-in-center`,appear:!0},b(o=c())?o:{default:()=>[o]})}}});exports.default=q;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),d=require("../icon/index.cjs"),f=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");require("../form/index.cjs");const m=require("../form/hooks/use-form-common-props.cjs");function b(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const q=n.defineComponent({__name:"tag",props:{closable:{type:Boolean},type:null,hit:{type:Boolean},disableTransitions:{type:Boolean,default:!0},color:null,size:null,effect:{default:"light"},round:{type:Boolean}},emits:["close","click"],setup(e,{emit:c}){const l=n.useSlots(),s=m.useFormSize(),t=f.useNamespace("tag"),a=n.computed(()=>[t.b(),t.is("closable",e.closable),t.m(e.type),t.m(s.value),t.m(e.effect),t.is("hit",e.hit),t.is("round",e.round)]),i=o=>{c("close",o)},u=o=>{c("click",o)},r=()=>{var o;return n.createVNode("span",{class:a.value,style:{backgroundColor:e.color},onClick:u},[n.createVNode("span",{class:t.e("content")},[(o=l.default)==null?void 0:o.call(l)]),e.closable?n.createVNode("div",{class:t.e("close"),onClick:i},[n.createVNode(d.VftIcon,{icon:"ico-ep:close"},null)]):""])};return()=>{let o;return e.disableTransitions?r():n.createVNode(n.Transition,{name:`${t.namespace.value}-zoom-in-center`,appear:!0},b(o=r())?o:{default:()=>[o]})}}});exports.default=q;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./picker.vue2.cjs");exports.default=e.default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),Pe=require("lodash"),De=require("@vueuse/core"),J=require("../../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../../hooks/use-z-index/index.cjs");const m=require("@vft/utils"),ae=require("../../../utils/error.cjs");require("../../../utils/ns-cover.cjs");require("../../form/index.cjs");const Be=require("../../input/index.cjs"),F=require("../../icon/index.cjs"),Te=require("../../tooltip/index.cjs"),C=require("../../../constants/aria.cjs"),b=require("../utils.cjs"),Se=require("./props.cjs"),qe=require("../../form/hooks/use-form-item.cjs"),Me=require("../../form/hooks/use-form-common-props.cjs"),Ne=["id","name","placeholder","value","disabled","readonly"],Re=["id","name","placeholder","value","disabled","readonly"],ze=n.defineComponent({name:"Picker"}),Fe=n.defineComponent({...ze,props:Se.timePickerDefaultProps,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(le,{expose:oe,emit:c}){const t=le,V=n.ref("zh-cn"),p=J.useNamespace("date"),E=J.useNamespace("input"),v=J.useNamespace("range"),{form:O,formItem:g}=qe.useFormItem(),te=n.inject("ElPopperOptions",{}),$=n.ref(),h=n.ref(),r=n.ref(!1),A=n.ref(!1),G=n.ref(null);let K=!1,w=!1;n.watch(r,e=>{e?n.nextTick(()=>{e&&(G.value=t.modelValue)}):(l.value=null,n.nextTick(()=>{j(t.modelValue)}))});const j=(e,a)=>{(a||!b.valueEquals(e,G.value))&&(c("change",e),t.validateEvent&&(g==null||g.validate("change").catch(o=>ae.debugWarn(o))))},y=e=>{if(!b.valueEquals(t.modelValue,e)){let a;m.isArray(e)?a=e.map(o=>b.formatter(o,t.valueFormat,V.value)):e&&(a=b.formatter(e,t.valueFormat,V.value)),c("update:modelValue",e&&a,V.value)}},re=e=>{c("keydown",e)},I=n.computed(()=>{if(h.value){const e=N.value?h.value:h.value.$el;return Array.from(e.querySelectorAll("input"))}return[]}),ue=(e,a,o)=>{const u=I.value;u.length&&(!o||o==="min"?(u[0].setSelectionRange(e,a),u[0].focus()):o==="max"&&(u[1].setSelectionRange(e,a),u[1].focus()))},se=()=>{U(!0,!0),n.nextTick(()=>{w=!1})},Q=(e="",a=!1)=>{a||(w=!0),r.value=a;let o;m.isArray(e)?o=e.map(u=>u.toDate()):o=e&&e.toDate(),l.value=null,y(o)},ie=()=>{A.value=!0},ce=()=>{c("visible-change",!0)},fe=e=>{(e==null?void 0:e.key)===C.EVENT_CODE.esc&&U(!0,!0)},de=()=>{A.value=!1,r.value=!1,w=!1,c("visible-change",!1)},pe=()=>{r.value=!0},ve=()=>{r.value=!1},U=(e=!0,a=!1)=>{w=a;const[o,u]=n.unref(I);let d=o;!e&&N.value&&(d=u),d&&d.focus()},P=e=>{t.readonly||i.value||r.value||w||(r.value=!0,c("focus",e))};let X;const B=e=>{const a=async()=>{setTimeout(()=>{var o;X===a&&(!((o=$.value)!=null&&o.isFocusInsideContent()&&!K)&&I.value.filter(u=>u.contains(document.activeElement)).length===0&&(H(),r.value=!1,c("blur",e),t.validateEvent&&(g==null||g.validate("blur").catch(u=>ae.debugWarn(u)))),K=!1)},0)};X=a,a()},i=n.computed(()=>t.disabled||(O==null?void 0:O.disabled)),T=n.computed(()=>{let e;if(q.value?s.value.getDefaultValue&&(e=s.value.getDefaultValue()):m.isArray(t.modelValue)?e=t.modelValue.map(a=>b.parseDate(a,t.valueFormat,V.value)):e=b.parseDate(t.modelValue,t.valueFormat,V.value),s.value.getRangeAvailableTime){const a=s.value.getRangeAvailableTime(e);Pe.isEqual(a,e)||(e=a,y(m.isArray(e)?e.map(o=>o.toDate()):e.toDate()))}return m.isArray(e)&&e.some(a=>!a)&&(e=[]),e}),f=n.computed(()=>{if(!s.value.panelReady)return"";const e=L(T.value);return m.isArray(l.value)?[l.value[0]||e&&e[0]||"",l.value[1]||e&&e[1]||""]:l.value!==null?l.value:!he.value&&q.value||!r.value&&q.value?"":e?Y.value?e.join(", "):e:""}),me=n.computed(()=>t.type.includes("time")),he=n.computed(()=>t.type.startsWith("time")),Y=n.computed(()=>t.type==="dates"),S=n.computed(()=>t.prefixIcon||(me.value?"ico-ep:clock":"ico-ep:calendar")),k=n.ref(!1),Z=e=>{t.readonly||i.value||k.value&&(e.stopPropagation(),se(),y(null),j(null,!0),k.value=!1,r.value=!1,s.value.handleClear&&s.value.handleClear())},q=n.computed(()=>{const{modelValue:e}=t;return!e||m.isArray(e)&&!e.filter(Boolean).length}),D=async e=>{var a;t.readonly||i.value||(((a=e.target)==null?void 0:a.tagName)!=="INPUT"||I.value.includes(document.activeElement))&&(r.value=!0)},_=()=>{t.readonly||i.value||!q.value&&t.clearable&&(k.value=!0)},x=()=>{k.value=!1},M=e=>{var a;t.readonly||i.value||(((a=e.touches[0].target)==null?void 0:a.tagName)!=="INPUT"||I.value.includes(document.activeElement))&&(r.value=!0)},N=n.computed(()=>t.type.includes("range")),W=Me.useFormSize(),ye=n.computed(()=>{var e,a;return(a=(e=n.unref($))==null?void 0:e.popperRef)==null?void 0:a.contentRef}),ee=n.computed(()=>{var e;return n.unref(N)?n.unref(h):(e=n.unref(h))==null?void 0:e.$el});De.onClickOutside(ee,e=>{const a=n.unref(ye),o=n.unref(ee);a&&(e.target===a||e.composedPath().includes(a))||e.target===o||e.composedPath().includes(o)||(r.value=!1)});const l=n.ref(null),H=()=>{if(l.value){const e=R(f.value);e&&z(e)&&(y(m.isArray(e)?e.map(a=>a.toDate()):e.toDate()),l.value=null)}l.value===""&&(y(null),j(null),l.value=null)},R=e=>e?s.value.parseUserInput(e):null,L=e=>e?s.value.formatToString(e):null,z=e=>s.value.isValidValue(e),ne=async e=>{if(t.readonly||i.value)return;const{code:a}=e;if(re(e),a===C.EVENT_CODE.esc){r.value===!0&&(r.value=!1,e.preventDefault(),e.stopPropagation());return}if(a===C.EVENT_CODE.down&&(s.value.handleFocusPicker&&(e.preventDefault(),e.stopPropagation()),r.value===!1&&(r.value=!0,await n.nextTick()),s.value.handleFocusPicker)){s.value.handleFocusPicker();return}if(a===C.EVENT_CODE.tab){K=!0;return}if(a===C.EVENT_CODE.enter||a===C.EVENT_CODE.numpadEnter){(l.value===null||l.value===""||z(R(f.value)))&&(H(),r.value=!1),e.stopPropagation();return}if(l.value){e.stopPropagation();return}s.value.handleKeydownInput&&s.value.handleKeydownInput(e)},ge=e=>{l.value=e,r.value||(r.value=!0)},ke=e=>{const a=e.target;l.value?l.value=[a.value,l.value[1]]:l.value=[a.value,null]},Ce=e=>{const a=e.target;l.value?l.value=[l.value[0],a.value]:l.value=[null,a.value]},be=()=>{var u;const e=l.value,a=R(e&&e[0]),o=n.unref(T);if(a&&a.isValid()){l.value=[L(a),((u=f.value)==null?void 0:u[1])||null];const d=[a,o&&(o[1]||null)];z(d)&&(y(d),l.value=null)}},Ve=()=>{var u;const e=n.unref(l),a=R(e&&e[1]),o=n.unref(T);if(a&&a.isValid()){l.value=[((u=n.unref(f))==null?void 0:u[0])||null,L(a)];const d=[o&&o[0],a];z(d)&&(y(d),l.value=null)}},s=n.ref({}),Ee=e=>{s.value[e[0]]=e[1],s.value.panelReady=!0},we=e=>{c("calendar-change",e)},Ie=(e,a,o)=>{c("panel-change",e,a,o)};return n.provide("EP_PICKER_BASE",{props:t}),oe({focus:U,handleFocusInput:P,handleBlurInput:B,handleOpen:pe,handleClose:ve,onPick:Q}),(e,a)=>(n.openBlock(),n.createBlock(n.unref(Te.VftTooltip),n.mergeProps({ref_key:"refPopper",ref:$,visible:r.value,effect:"light",pure:"",trigger:"click"},e.$attrs,{role:"dialog",teleported:"",transition:`${n.unref(p).namespace.value}-zoom-in-top`,"popper-class":[`${n.unref(p).namespace.value}-picker__popper`,e.popperClass],"popper-options":n.unref(te),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:ie,onShow:ce,onHide:de}),{default:n.withCtx(()=>[n.unref(N)?(n.openBlock(),n.createElementBlock("div",{key:1,ref_key:"inputRef",ref:h,class:n.normalizeClass([n.unref(p).b("editor"),n.unref(p).bm("editor",e.type),n.unref(E).e("wrapper"),n.unref(p).is("disabled",n.unref(i)),n.unref(p).is("active",r.value),n.unref(v).b("editor"),n.unref(W)?n.unref(v).bm("editor",n.unref(W)):"",e.$attrs.class]),style:n.normalizeStyle(e.$attrs.style),onClick:P,onMouseenter:_,onMouseleave:x,onTouchstart:M,onKeydown:ne},[n.unref(S)?(n.openBlock(),n.createBlock(n.unref(F.VftIcon),{key:0,class:n.normalizeClass([n.unref(E).e("icon"),n.unref(v).e("icon")]),onMousedown:n.withModifiers(D,["prevent"]),onTouchstart:M},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(S))))]),_:1},8,["class","onMousedown"])):n.createCommentVNode("",!0),n.createElementVNode("input",{id:e.id&&e.id[0],autocomplete:"off",name:e.name&&e.name[0],placeholder:e.startPlaceholder,value:n.unref(f)&&n.unref(f)[0],disabled:n.unref(i),readonly:!e.editable||e.readonly,class:n.normalizeClass(n.unref(v).b("input")),onMousedown:D,onInput:ke,onChange:be,onFocus:P,onBlur:B},null,42,Ne),n.renderSlot(e.$slots,"range-separator",{},()=>[n.createElementVNode("span",{class:n.normalizeClass(n.unref(v).b("separator"))},n.toDisplayString(e.rangeSeparator),3)]),n.createElementVNode("input",{id:e.id&&e.id[1],autocomplete:"off",name:e.name&&e.name[1],placeholder:e.endPlaceholder,value:n.unref(f)&&n.unref(f)[1],disabled:n.unref(i),readonly:!e.editable||e.readonly,class:n.normalizeClass(n.unref(v).b("input")),onMousedown:D,onFocus:P,onBlur:B,onInput:Ce,onChange:Ve},null,42,Re),e.clearIcon?(n.openBlock(),n.createBlock(n.unref(F.VftIcon),{key:1,class:n.normalizeClass([n.unref(E).e("icon"),n.unref(v).e("close-icon"),{[n.unref(v).e("close-icon--hidden")]:!k.value}]),onClick:Z},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class"])):n.createCommentVNode("",!0)],38)):(n.openBlock(),n.createBlock(n.unref(Be.VftInput),{key:0,id:e.id,ref_key:"inputRef",ref:h,"container-role":"combobox","model-value":n.unref(f),name:e.name,size:n.unref(W),disabled:n.unref(i),placeholder:e.placeholder,class:n.normalizeClass([n.unref(p).b("editor"),n.unref(p).bm("editor",e.type),e.$attrs.class]),style:n.normalizeStyle(e.$attrs.style),readonly:!e.editable||e.readonly||n.unref(Y)||e.type==="week",label:e.label,tabindex:e.tabindex,"validate-event":!1,onInput:ge,onFocus:P,onBlur:B,onKeydown:ne,onChange:H,onMousedown:D,onMouseenter:_,onMouseleave:x,onTouchstart:M,onClick:a[0]||(a[0]=n.withModifiers(()=>{},["stop"]))},{prefix:n.withCtx(()=>[n.unref(S)?(n.openBlock(),n.createBlock(n.unref(F.VftIcon),{key:0,class:n.normalizeClass(n.unref(E).e("icon")),onMousedown:n.withModifiers(D,["prevent"]),onTouchstart:M},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(S))))]),_:1},8,["class","onMousedown"])):n.createCommentVNode("",!0)]),suffix:n.withCtx(()=>[k.value&&e.clearIcon?(n.openBlock(),n.createBlock(n.unref(F.VftIcon),{key:0,class:n.normalizeClass(`${n.unref(E).e("icon")} clear-icon`),onClick:n.withModifiers(Z,["stop"])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):n.createCommentVNode("",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:n.withCtx(()=>[n.renderSlot(e.$slots,"default",{visible:r.value,actualVisible:A.value,parsedValue:n.unref(T),format:e.format,unlinkPanels:e.unlinkPanels,type:e.type,defaultValue:e.defaultValue,onPick:Q,onSelectRange:ue,onSetPickerOption:Ee,onCalendarChange:we,onPanelChange:Ie,onKeydown:fe,onMousedown:a[1]||(a[1]=n.withModifiers(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});exports.default=Fe;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@vft/utils");require("vue");const e=require("../../../utils/vue/props/runtime.cjs");require("@vueuse/core");require("../../../utils/ns-cover.cjs");require("lodash");const t=require("../props/shared.cjs"),r=e.buildProps({id:{type:e.definePropType([Array,String])},name:{type:e.definePropType([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:e.definePropType([String,Object])},editable:{type:Boolean,default:!0},prefixIcon:{type:e.definePropType([String,Object]),default:""},size:{type:Object},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:e.definePropType(Object),default:()=>({})},modelValue:{type:e.definePropType([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:e.definePropType([Date,Array])},defaultTime:{type:e.definePropType([Date,Array])},isRange:{type:Boolean,default:!1},...t.disabledTimeListsProps,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:e.definePropType([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean});exports.timePickerDefaultProps=r;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=({getAvailableHours:l,getAvailableMinutes:a,getAvailableSeconds:h})=>{const d=(s,n,m,i)=>{const r={hour:l,minute:a,second:h};let t=s;return["hour","minute","second"].forEach(o=>{if(r[o]){let e;const u=r[o];switch(o){case"minute":{e=u(t.hour(),n,i);break}case"second":{e=u(t.hour(),t.minute(),n,i);break}default:{e=u(n,i);break}}if(e!=null&&e.length&&!e.includes(t[o]())){const b=m?0:e.length-1;t=t[o](e[b])}}}),t},c={};return{timePickerOptions:c,getAvailableTime:d,onSetOption:([s,n])=>{c[s]=n}}};exports.useTimePanel=f;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("vue"),c=require("../utils.cjs"),L=t=>{const e=(n,o)=>n||o,r=n=>n!==!0;return t.map(e).filter(r)},A=(t,e,r)=>({getHoursList:(i,s)=>c.makeList(24,t&&(()=>t==null?void 0:t(i,s))),getMinutesList:(i,s,g)=>c.makeList(60,e&&(()=>e==null?void 0:e(i,s,g))),getSecondsList:(i,s,g,u)=>c.makeList(60,r&&(()=>r==null?void 0:r(i,s,g,u)))}),V=(t,e,r)=>{const{getHoursList:n,getMinutesList:o,getSecondsList:v}=A(t,e,r);return{getAvailableHours:(u,l)=>L(n(u,l)),getAvailableMinutes:(u,l,a)=>L(o(u,l,a)),getAvailableSeconds:(u,l,a,T)=>L(v(u,l,a,T))}},f=t=>{const e=m.ref(t.parsedValue);return m.watch(()=>t.visible,r=>{r||(e.value=t.parsedValue)}),e};exports.buildAvailableTimeSlotGetter=V;exports.getTimeLists=A;exports.useOldValue=f;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=["hours","minutes","seconds"],t="HH:mm:ss",e="YYYY-MM-DD",A={date:e,dates:e,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${e} ${t}`,monthrange:"YYYY-MM",daterange:e,datetimerange:`${e} ${t}`};exports.DEFAULT_FORMATS_DATE=e;exports.DEFAULT_FORMATS_DATEPICKER=A;exports.DEFAULT_FORMATS_TIME=t;exports.timeUnits=T;