vft 0.0.136 → 0.0.138

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 (280) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/es/comp-resolver.js +1 -3
  4. package/es/component.js +29 -25
  5. package/es/components/alert/alert.vue2.js +1 -4
  6. package/es/components/autocomplete/autocomplete.vue2.js +2 -8
  7. package/es/components/backtop/backtop.vue2.js +3 -2
  8. package/es/components/backtop/use-backtop.js +9 -5
  9. package/es/components/button/constants.js +1 -3
  10. package/es/components/button/use-button.js +4 -6
  11. package/es/components/carousel/carousel.vue2.js +3 -13
  12. package/es/components/carousel/use-carousel-item.js +2 -10
  13. package/es/components/carousel/use-carousel.js +2 -9
  14. package/es/components/checkbox/checkbox-button.vue2.js +1 -8
  15. package/es/components/checkbox/checkbox-group.vue2.js +1 -9
  16. package/es/components/checkbox/composables/use-checkbox-disabled.js +1 -3
  17. package/es/components/checkbox/composables/use-checkbox-event.js +2 -8
  18. package/es/components/checkbox/composables/use-checkbox.js +3 -7
  19. package/es/components/clamp/clamp.vue2.js +1 -4
  20. package/es/components/col/col.vue2.js +1 -3
  21. package/es/components/collection/collection.js +2 -6
  22. package/es/components/color-picker/color-picker.vue2.js +1 -5
  23. package/es/components/color-picker/components/hue-slider.vue2.js +4 -12
  24. package/es/components/color-picker/components/predefine.vue.js +1 -5
  25. package/es/components/color-picker/composables/use-alpha-slider.js +5 -17
  26. package/es/components/color-picker/contants.js +1 -3
  27. package/es/components/color-picker/utils/color.js +9 -29
  28. package/es/components/config-provider/hooks/use-global-config.js +5 -10
  29. package/es/components/container/footer.vue2.js +1 -3
  30. package/es/components/context-menu/context-menu.vue2.js +30 -15
  31. package/es/components/date-picker/composables/use-shortcut.js +1 -4
  32. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +2 -6
  33. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +3 -11
  34. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +6 -20
  35. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +2 -14
  36. package/es/components/descriptions/description.vue2.js +4 -6
  37. package/es/components/descriptions/descriptions-cell.js +1 -3
  38. package/es/components/dialog/dialog.vue.d.ts +1 -1
  39. package/es/components/drawer/drawer.vue2.js +1 -3
  40. package/es/components/dropdown/dropdown-item-impl.vue2.js +2 -9
  41. package/es/components/dropdown/dropdown-item.vue2.js +1 -4
  42. package/es/components/dropdown/dropdown-menu.vue2.js +5 -25
  43. package/es/components/dropdown/dropdown.vue2.js +2 -14
  44. package/es/components/dropdown/types.js +1 -10
  45. package/es/components/dropdown/useDropdown.js +1 -3
  46. package/es/components/exception/exception.vue2.js +6 -3
  47. package/es/components/focus-trap/focus-trap.vue2.js +4 -19
  48. package/es/components/footer-layout/footer-layout.vue2.js +3 -2
  49. package/es/components/form/form-item.vue2.js +7 -15
  50. package/es/components/form/hooks/use-form-common-props.js +1 -3
  51. package/es/components/form/types.d.ts +1 -1
  52. package/es/components/form/types.js +1 -6
  53. package/es/components/header-layout/header-layout.vue2.js +3 -2
  54. package/es/components/icon/icon.vue2.js +12 -7
  55. package/es/components/icon-text/icon-text.vue2.js +9 -6
  56. package/es/components/image/image.vue2.js +2 -10
  57. package/es/components/image/index.d.ts +49 -0
  58. package/es/components/image/index.js +3 -1
  59. package/es/components/image/p-image.vue.d.ts +51 -0
  60. package/es/components/image/p-image.vue.js +4 -0
  61. package/es/components/image/p-image.vue2.js +57 -0
  62. package/es/components/image/types.d.ts +1 -0
  63. package/es/components/image-viewer/image-viewer.vue2.js +4 -16
  64. package/es/components/index.d.ts +1 -0
  65. package/es/components/index.js +277 -274
  66. package/es/components/infinite-scroll/infinite-scroll.js +1 -3
  67. package/es/components/input/input.vue2.js +17 -9
  68. package/es/components/input-number/directives.js +1 -3
  69. package/es/components/input-number/input-number.vue2.js +2 -9
  70. package/es/components/link/link.vue2.js +1 -6
  71. package/es/components/list-cell/list-cell.vue2.js +7 -4
  72. package/es/components/loading/directive.js +1 -3
  73. package/es/components/md-code-demo/code-demo/code.js +14 -7
  74. package/es/components/md-code-demo/md-code-demo.js +97 -85
  75. package/es/components/md-code-tabs/md-code-tabs.js +3 -1
  76. package/es/components/md-container/md-container.vue2.js +3 -2
  77. package/es/components/md-container/toc.js +6 -1
  78. package/es/components/md-container/use/useActiveHeaderLinks.js +1 -7
  79. package/es/components/md-tabs/md-tabs.js +3 -1
  80. package/es/components/menu/menu-item.vue2.js +7 -3
  81. package/es/components/menu/menu.vue2.js +6 -14
  82. package/es/components/menu/sub-menu.vue2.js +3 -2
  83. package/es/components/message/message.vue2.js +1 -3
  84. package/es/components/message/method.js +5 -1
  85. package/es/components/modal/modal-footer-action.vue2.js +3 -2
  86. package/es/components/multiple-tabs/multiple-tabs.vue2.js +45 -36
  87. package/es/components/overlay/overlay.vue2.js +1 -5
  88. package/es/components/p-image/style/css.d.ts +0 -0
  89. package/es/components/p-image/style/css.js +2 -0
  90. package/es/components/p-image/style/index.d.ts +0 -0
  91. package/es/components/p-image/style/index.js +2 -0
  92. package/es/components/pagination/components/next.vue2.js +1 -3
  93. package/es/components/pagination/components/pager.vue2.js +5 -24
  94. package/es/components/pagination/components/prev.vue2.js +1 -3
  95. package/es/components/popconfirm/popconfirm.vue2.js +1 -5
  96. package/es/components/popper/arrow.vue2.js +1 -4
  97. package/es/components/popper/composables/use-content-dom.js +3 -16
  98. package/es/components/popper/composables/use-content.js +7 -11
  99. package/es/components/popper/content.vue.d.ts +2 -4
  100. package/es/components/popper/content.vue2.js +8 -12
  101. package/es/components/popper/trigger.vue2.js +6 -29
  102. package/es/components/progress/progress.vue2.js +1 -6
  103. package/es/components/progress-i/index.d.ts +2 -0
  104. package/es/components/progress-i/index.js +12 -0
  105. package/es/components/progress-i/progress-i.vue.d.ts +2 -0
  106. package/es/components/progress-i/progress-i.vue.js +4 -0
  107. package/es/components/progress-i/progress-i.vue2.js +10 -0
  108. package/es/components/progress-i/style/css.d.ts +0 -0
  109. package/es/components/progress-i/style/css.js +2 -0
  110. package/es/components/progress-i/style/index.d.ts +0 -0
  111. package/es/components/progress-i/style/index.js +2 -0
  112. package/es/components/qrcode/drawLogo.js +8 -1
  113. package/es/components/qrcode/qrcode.vue2.js +7 -3
  114. package/es/components/radio/radio.vue2.js +2 -9
  115. package/es/components/result/result.vue2.js +10 -5
  116. package/es/components/roving-focus-group/roving-focus-group-impl.vue2.js +2 -11
  117. package/es/components/roving-focus-group/roving-focus-item.vue2.js +2 -10
  118. package/es/components/roving-focus-group/types.js +1 -6
  119. package/es/components/scrollbar/constants.js +1 -3
  120. package/es/components/scrollbar/scrollbar.vue2.js +2 -9
  121. package/es/components/scrollbar/thumb.vue2.js +2 -12
  122. package/es/components/search/index.d.ts +2 -0
  123. package/es/components/search/search.vue.d.ts +1 -1
  124. package/es/components/select/select.vue.js +5 -20
  125. package/es/components/select/select.vue2.js +1 -9
  126. package/es/components/select/token.js +1 -3
  127. package/es/components/select/useAllowCreate.js +1 -3
  128. package/es/components/select/useSelect.js +10 -48
  129. package/es/components/side-menu/side-menu.vue2.js +19 -18
  130. package/es/components/skeleton/skeleton.vue2.js +5 -5
  131. package/es/components/slider/composables/use-lifecycle.js +1 -4
  132. package/es/components/slider/composables/use-slide.js +1 -4
  133. package/es/components/slider/composables/use-slider-button.js +5 -1
  134. package/es/components/slider/composables/use-stops.js +2 -6
  135. package/es/components/slider/composables/use-watch.js +1 -3
  136. package/es/components/slider/marker.js +1 -3
  137. package/es/components/slider/slider.vue2.js +2 -8
  138. package/es/components/space/space.js +25 -39
  139. package/es/components/super-form/component-map.js +13 -10
  140. package/es/components/super-form/index.d.ts +10 -7
  141. package/es/components/super-form/super-form-action.vue2.js +4 -6
  142. package/es/components/super-form/super-form-item.vue.d.ts +1 -1
  143. package/es/components/super-form/super-form-item.vue2.js +26 -25
  144. package/es/components/super-form/super-form.vue.d.ts +4 -3
  145. package/es/components/super-form/super-form.vue2.js +5 -3
  146. package/es/components/super-form/use/use-auto-focus.js +1 -6
  147. package/es/components/super-form/use/use-form-events.js +2 -6
  148. package/es/components/super-form/use/use-form-values.js +1 -6
  149. package/es/components/switch/switch.vue2.js +3 -17
  150. package/es/components/table/field.js +21 -20
  151. package/es/components/table/index.d.ts +357 -82
  152. package/es/components/table/table.vue.d.ts +91 -30
  153. package/es/components/table/table.vue2.js +128 -113
  154. package/es/components/table/types.d.ts +2 -2
  155. package/es/components/table/use/use-data-source.js +91 -92
  156. package/es/components/table/use/use-table.d.ts +1 -4
  157. package/es/components/table/use/use-table.js +3 -1
  158. package/es/components/tabs/tab-nav.vue2.js +18 -17
  159. package/es/components/time-picker/common/picker.vue2.js +8 -26
  160. package/es/components/time-picker/composables/use-time-panel.js +3 -14
  161. package/es/components/time-picker/composables/use-time-picker.js +2 -8
  162. package/es/components/time-picker/constants.d.ts +1 -1
  163. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +2 -9
  164. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +6 -10
  165. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +3 -14
  166. package/es/components/time-picker/utils.js +1 -5
  167. package/es/components/tooltip/content.vue2.js +4 -12
  168. package/es/components/tooltip/trigger.vue2.js +7 -25
  169. package/es/components/tooltip/utils.js +1 -3
  170. package/es/components/tree/model/node.js +2 -8
  171. package/es/components/tree/model/useDragNode.js +2 -12
  172. package/es/components/tree/model/useKeydown.js +5 -17
  173. package/es/components/tree/tree-node.vue2.js +2 -12
  174. package/es/components/tree/tree.vue2.js +2 -10
  175. package/es/components/upload/upload-content.vue2.js +2 -6
  176. package/es/components/upload/upload-dragger.vue2.js +1 -4
  177. package/es/components/upload/upload-list.vue2.js +2 -10
  178. package/es/components/upload/use-handlers.js +1 -3
  179. package/es/components/virtual-list/builders/build-grid.js +14 -77
  180. package/es/components/virtual-list/builders/build-list.js +9 -46
  181. package/es/components/virtual-list/components/dynamic-size-grid.js +4 -29
  182. package/es/components/virtual-list/components/dynamic-size-list.js +2 -11
  183. package/es/components/virtual-list/components/fixed-size-grid.js +9 -40
  184. package/es/components/virtual-list/components/fixed-size-list.js +1 -3
  185. package/es/components/virtual-list/components/scrollbar.js +3 -14
  186. package/es/components/virtual-list/props.js +1 -4
  187. package/es/constants/date.d.ts +1 -1
  188. package/es/constants/date.js +1 -9
  189. package/es/constants/size.d.ts +1 -1
  190. package/es/hooks/use-draggable/index.js +2 -10
  191. package/es/hooks/use-lockscreen/index.js +1 -4
  192. package/es/hooks/use-model-toggle/index.js +1 -3
  193. package/es/hooks/use-ordered-children/index.js +1 -3
  194. package/es/hooks/use-popper/index.js +5 -18
  195. package/es/index.js +408 -405
  196. package/es/package.json.d.ts +77 -0
  197. package/es/package.json.js +1 -1
  198. package/es/plugin.js +1 -5
  199. package/es/utils/ns-cover.js +16 -7
  200. package/es/utils/vue/install.d.ts +3 -0
  201. package/es/utils/vue/props/runtime.js +2 -9
  202. package/lib/component.cjs +1 -1
  203. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  204. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  205. package/lib/components/dialog/dialog.vue.d.ts +1 -1
  206. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  207. package/lib/components/form/types.d.ts +1 -1
  208. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  209. package/lib/components/image/index.cjs +1 -1
  210. package/lib/components/image/index.d.ts +49 -0
  211. package/lib/components/image/p-image.vue.cjs +1 -0
  212. package/lib/components/image/p-image.vue.d.ts +51 -0
  213. package/lib/components/image/p-image.vue2.cjs +1 -0
  214. package/lib/components/image/types.d.ts +1 -0
  215. package/lib/components/index.cjs +1 -1
  216. package/lib/components/index.d.ts +1 -0
  217. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  218. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  219. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  220. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  221. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  222. package/lib/components/p-image/style/css.cjs +1 -0
  223. package/lib/components/p-image/style/css.d.ts +0 -0
  224. package/lib/components/p-image/style/index.cjs +1 -0
  225. package/lib/components/p-image/style/index.d.ts +0 -0
  226. package/lib/components/popper/content.vue.d.ts +2 -4
  227. package/lib/components/progress-i/index.cjs +1 -0
  228. package/lib/components/progress-i/index.d.ts +2 -0
  229. package/lib/components/progress-i/progress-i.vue.cjs +1 -0
  230. package/lib/components/progress-i/progress-i.vue.d.ts +2 -0
  231. package/lib/components/progress-i/progress-i.vue2.cjs +1 -0
  232. package/lib/components/progress-i/style/css.cjs +1 -0
  233. package/lib/components/progress-i/style/css.d.ts +0 -0
  234. package/lib/components/progress-i/style/index.cjs +1 -0
  235. package/lib/components/progress-i/style/index.d.ts +0 -0
  236. package/lib/components/result/result.vue2.cjs +1 -1
  237. package/lib/components/search/index.d.ts +2 -0
  238. package/lib/components/search/search.vue.d.ts +1 -1
  239. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  240. package/lib/components/super-form/component-map.cjs +1 -1
  241. package/lib/components/super-form/index.d.ts +10 -7
  242. package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
  243. package/lib/components/super-form/super-form-item.vue.d.ts +1 -1
  244. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  245. package/lib/components/super-form/super-form.vue.d.ts +4 -3
  246. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  247. package/lib/components/table/field.cjs +1 -1
  248. package/lib/components/table/index.d.ts +357 -82
  249. package/lib/components/table/table.vue.d.ts +91 -30
  250. package/lib/components/table/table.vue2.cjs +1 -1
  251. package/lib/components/table/types.d.ts +2 -2
  252. package/lib/components/table/use/use-data-source.cjs +1 -1
  253. package/lib/components/table/use/use-table.d.ts +1 -4
  254. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  255. package/lib/components/time-picker/constants.d.ts +1 -1
  256. package/lib/constants/date.d.ts +1 -1
  257. package/lib/constants/size.d.ts +1 -1
  258. package/lib/index.cjs +1 -1
  259. package/lib/package.json.cjs +1 -1
  260. package/lib/package.json.d.ts +77 -0
  261. package/lib/utils/vue/install.d.ts +3 -0
  262. package/package.json +4 -4
  263. package/tags.json +1 -1
  264. package/theme-style/index.css +1 -1
  265. package/theme-style/src/index.scss +4 -0
  266. package/theme-style/src/input.scss +1 -0
  267. package/theme-style/src/p-image.scss +18 -0
  268. package/theme-style/src/progress-i.scss +0 -0
  269. package/theme-style/src/table.scss +7 -0
  270. package/theme-style/src/tabs.scss +120 -3
  271. package/theme-style/vft-input.css +1 -1
  272. package/theme-style/vft-md-comment.css +1 -1
  273. package/theme-style/vft-md-container.css +1 -1
  274. package/theme-style/vft-md-vue-playground.css +1 -1
  275. package/theme-style/vft-p-image.css +1 -0
  276. package/theme-style/vft-progress-i.css +0 -0
  277. package/theme-style/vft-select.css +1 -1
  278. package/theme-style/vft-table.css +1 -1
  279. package/theme-style/vft-tabs.css +1 -1
  280. package/web-types.json +1 -1
@@ -39,9 +39,7 @@ function a(t, e) {
39
39
  sideEffects: i(s.styleName, e)
40
40
  };
41
41
  }
42
- const f = [
43
- "VftAutoResizer"
44
- ];
42
+ const f = ["VftAutoResizer"];
45
43
  function p(t = {}) {
46
44
  let e;
47
45
  async function o() {
package/es/component.js CHANGED
@@ -10,11 +10,11 @@ import { VftClamp as l } from "./components/clamp/index.js";
10
10
  import { VftClampToggle as u } from "./components/clamp-toggle/index.js";
11
11
  import { VftCol as d } from "./components/col/index.js";
12
12
  import { VftCollapseTransition as c } from "./components/collapse-transition/index.js";
13
- import { VftColorPicker as C } from "./components/color-picker/index.js";
14
- import { VftConfigProvider as s } from "./components/config-provider/index.js";
15
- import { VftAside as M, VftContainer as T, VftFooter as I, VftHeader as g, VftMain as S } from "./components/container/index.js";
16
- import { VftDatePicker as b } from "./components/date-picker/index.js";
17
- import { VftDateTimeSelect as P } from "./components/date-time-select/index.js";
13
+ import { VftColorPicker as s } from "./components/color-picker/index.js";
14
+ import { VftConfigProvider as C } from "./components/config-provider/index.js";
15
+ import { VftAside as M, VftContainer as I, VftFooter as T, VftHeader as g, VftMain as P } from "./components/container/index.js";
16
+ import { VftDatePicker as S } from "./components/date-picker/index.js";
17
+ import { VftDateTimeSelect as b } from "./components/date-time-select/index.js";
18
18
  import { VftDescriptions as k, VftDescriptionsItem as D } from "./components/descriptions/index.js";
19
19
  import { VftDialog as w } from "./components/dialog/index.js";
20
20
  import { VftDivider as y } from "./components/divider/index.js";
@@ -51,13 +51,13 @@ import { VftOverlay as no } from "./components/overlay/index.js";
51
51
  import { VftPageWrapper as lo } from "./components/page-wrapper/index.js";
52
52
  import { VftPagination as uo } from "./components/pagination/index.js";
53
53
  import { VftPopconfirm as co } from "./components/popconfirm/index.js";
54
- import { VftPopover as Co } from "./components/popover/index.js";
55
- import { VftPopper as so } from "./components/popper/index.js";
54
+ import { VftPopover as so } from "./components/popover/index.js";
55
+ import { VftPopper as Co } from "./components/popper/index.js";
56
56
  import { VftProgress as Mo } from "./components/progress/index.js";
57
- import { VftQrcode as To } from "./components/qrcode/index.js";
58
- import { VftRadioButton as Io, VftRadio as go, VftRadioGroup as So } from "./components/radio/index.js";
59
- import { VftResult as bo } from "./components/result/index.js";
60
- import { VftRouterViewContent as Po } from "./components/router-view-content/index.js";
57
+ import { VftQrcode as Io } from "./components/qrcode/index.js";
58
+ import { VftRadioButton as To, VftRadio as go, VftRadioGroup as Po } from "./components/radio/index.js";
59
+ import { VftResult as So } from "./components/result/index.js";
60
+ import { VftRouterViewContent as bo } from "./components/router-view-content/index.js";
61
61
  import { VftRow as ko } from "./components/row/index.js";
62
62
  import { VftScrollbar as Do } from "./components/scrollbar/index.js";
63
63
  import { VftSearch as wo } from "./components/search/index.js";
@@ -76,7 +76,11 @@ import { VftTooltip as No } from "./components/tooltip/index.js";
76
76
  import { VftTree as Oo } from "./components/tree/index.js";
77
77
  import { VftUpload as Qo } from "./components/upload/index.js";
78
78
  import { VftVerifyCode as Uo } from "./components/verify-code/index.js";
79
- const cr = [
79
+ import { VftProgressI as Wo } from "./components/progress-i/index.js";
80
+ const Cr = [
81
+ // phone
82
+ Wo,
83
+ //
80
84
  _,
81
85
  $,
82
86
  vo,
@@ -102,19 +106,19 @@ const cr = [
102
106
  Y,
103
107
  mo,
104
108
  ro,
105
- b,
109
+ S,
106
110
  oo,
107
111
  M,
108
- T,
109
112
  I,
113
+ T,
110
114
  g,
111
- S,
115
+ P,
112
116
  z,
113
117
  d,
114
118
  zo,
115
119
  ko,
116
120
  w,
117
- P,
121
+ b,
118
122
  K,
119
123
  W,
120
124
  Ao,
@@ -123,11 +127,11 @@ const cr = [
123
127
  F,
124
128
  L,
125
129
  Do,
126
- C,
130
+ s,
127
131
  Bo,
128
- Io,
132
+ To,
129
133
  go,
130
- So,
134
+ Po,
131
135
  e,
132
136
  a,
133
137
  n,
@@ -139,7 +143,7 @@ const cr = [
139
143
  lo,
140
144
  l,
141
145
  u,
142
- To,
146
+ Io,
143
147
  no,
144
148
  Eo,
145
149
  ho,
@@ -151,9 +155,9 @@ const cr = [
151
155
  H,
152
156
  k,
153
157
  D,
154
- s,
158
+ C,
155
159
  m,
156
- Po,
160
+ bo,
157
161
  Q,
158
162
  B,
159
163
  E,
@@ -168,14 +172,14 @@ const cr = [
168
172
  N,
169
173
  r,
170
174
  R,
171
- bo,
175
+ So,
172
176
  Go,
173
177
  Ho,
174
178
  No,
175
- Co,
176
179
  so,
180
+ Co,
177
181
  v
178
182
  ];
179
183
  export {
180
- cr as default
184
+ Cr as default
181
185
  };
@@ -25,10 +25,7 @@ const D = C({
25
25
  close: (n) => n instanceof MouseEvent
26
26
  },
27
27
  setup(n, { emit: h }) {
28
- const t = E("alert"), d = w(), f = g(!0), m = c(() => n.type), B = c(() => [
29
- t.e("icon"),
30
- { [t.is("big")]: !!n.description || !!d.default }
31
- ]), T = c(() => ({ [t.is("bold")]: n.description || d.default })), p = (e) => {
28
+ const t = E("alert"), d = w(), f = g(!0), m = c(() => n.type), B = c(() => [t.e("icon"), { [t.is("big")]: !!n.description || !!d.default }]), T = c(() => ({ [t.is("bold")]: n.description || d.default })), p = (e) => {
32
29
  f.value = !1, h("close", e);
33
30
  };
34
31
  return (e, z) => (s(), r(I, {
@@ -54,9 +54,7 @@ const Oe = ["aria-expanded", "aria-owns"], Re = ["id", "aria-selected", "onClick
54
54
  setup(t, { expose: Y, emit: r }) {
55
55
  const Z = Ce(), x = de(), M = Ke(), o = f(), P = f(), V = f(), W = f();
56
56
  let U = !1, C = !1;
57
- const u = f([]), a = f(-1), H = f(""), c = f(!1), h = f(!1), m = f(!1), b = w(() => i.b(String(Ne()))), _ = w(() => x.style), d = w(() => (u.value.length > 0 || m.value) && c.value), I = w(() => !t.hideLoading && m.value), ee = w(() => o.value ? Array.from(
58
- o.value.$el.querySelectorAll("input")
59
- ) : []), te = async () => {
57
+ const u = f([]), a = f(-1), H = f(""), c = f(!1), h = f(!1), m = f(!1), b = w(() => i.b(String(Ne()))), _ = w(() => x.style), d = w(() => (u.value.length > 0 || m.value) && c.value), I = w(() => !t.hideLoading && m.value), ee = w(() => o.value ? Array.from(o.value.$el.querySelectorAll("input")) : []), te = async () => {
60
58
  await Ee(), d.value && (H.value = `${o.value.$el.offsetWidth}px`);
61
59
  }, le = () => {
62
60
  a.value = -1;
@@ -119,11 +117,7 @@ const Oe = ["aria-expanded", "aria-owns"], Re = ["id", "aria-selected", "onClick
119
117
  return;
120
118
  }
121
119
  e >= u.value.length && (e = u.value.length - 1);
122
- const l = P.value.querySelector(
123
- `.${i.be("suggestion", "wrap")}`
124
- ), v = l.querySelectorAll(
125
- `.${i.be("suggestion", "list")} li`
126
- )[e], p = l.scrollTop, { offsetTop: F, scrollHeight: N } = v;
120
+ const l = P.value.querySelector(`.${i.be("suggestion", "wrap")}`), v = l.querySelectorAll(`.${i.be("suggestion", "list")} li`)[e], p = l.scrollTop, { offsetTop: F, scrollHeight: N } = v;
127
121
  F + N > p + l.clientHeight && (l.scrollTop += N), F < p && (l.scrollTop -= N), a.value = e, o.value.ref.setAttribute(
128
122
  "aria-activedescendant",
129
123
  `${b.value}-item-${a.value}`
@@ -92,13 +92,14 @@ import "@popperjs/core";
92
92
  import "../../hooks/use-z-index/index.js";
93
93
  import "../message/index.js";
94
94
  import "../infinite-scroll/index.js";
95
+ import "../progress-i/index.js";
95
96
  import { useBackTop as I } from "./use-backtop.js";
96
97
  const m = (
97
98
  /* hoist-static*/
98
99
  w("backtop")
99
100
  ), N = s({
100
101
  name: "vft-backtop"
101
- }), Co = /* @__PURE__ */ s({
102
+ }), ho = /* @__PURE__ */ s({
102
103
  ...N,
103
104
  props: {
104
105
  visibilityHeight: { default: 200 },
@@ -141,5 +142,5 @@ const m = (
141
142
  }
142
143
  });
143
144
  export {
144
- Co as default
145
+ ho as default
145
146
  };
@@ -12,11 +12,15 @@ const w = (t, c, a) => {
12
12
  o.value = document, e.value = document.documentElement, t.target && T(() => {
13
13
  i(t.target);
14
14
  }, 40);
15
- }), y([() => t == null ? void 0 : t.scrollTargetKey, () => t.target], (l, h) => {
16
- (l[0] !== h[0] || l[1]) && i(t.target);
17
- }, {
18
- flush: "post"
19
- });
15
+ }), y(
16
+ [() => t == null ? void 0 : t.scrollTargetKey, () => t.target],
17
+ (l, h) => {
18
+ (l[0] !== h[0] || l[1]) && i(t.target);
19
+ },
20
+ {
21
+ flush: "post"
22
+ }
23
+ );
20
24
  function i(l) {
21
25
  if (e.value = document.querySelector(l) ?? void 0, !e.value) {
22
26
  console.error(a, `target does not exist: ${l}`);
@@ -1,6 +1,4 @@
1
- const t = Symbol(
2
- "buttonGroupContextKey"
3
- );
1
+ const t = Symbol("buttonGroupContextKey");
4
2
  export {
5
3
  t as buttonGroupContextKey
6
4
  };
@@ -7,12 +7,10 @@ import { useFormItem as T } from "../form/hooks/use-form-item.js";
7
7
  import { useGlobalConfig as z } from "../config-provider/hooks/use-global-config.js";
8
8
  import { useFormSize as C, useFormDisabled as D } from "../form/hooks/use-form-common-props.js";
9
9
  const E = (t, l) => {
10
- const o = _(k, void 0), u = z("button"), { form: s } = T(), d = C(i(() => o == null ? void 0 : o.size)), r = D(), m = F(), a = I(), f = i(() => t.type || (o == null ? void 0 : o.type) || ""), p = i(
11
- () => {
12
- var e;
13
- return t.autoInsertSpace ?? ((e = u.value) == null ? void 0 : e.autoInsertSpace) ?? !1;
14
- }
15
- ), g = i(() => {
10
+ const o = _(k, void 0), u = z("button"), { form: s } = T(), d = C(i(() => o == null ? void 0 : o.size)), r = D(), m = F(), a = I(), f = i(() => t.type || (o == null ? void 0 : o.type) || ""), p = i(() => {
11
+ var e;
12
+ return t.autoInsertSpace ?? ((e = u.value) == null ? void 0 : e.autoInsertSpace) ?? !1;
13
+ }), g = i(() => {
16
14
  var c;
17
15
  const e = (c = a.default) == null ? void 0 : c.call(a);
18
16
  if (p.value && (e == null ? void 0 : e.length) === 1) {
@@ -99,10 +99,7 @@ const ee = ["onMouseenter", "onClick"], te = { key: 0 }, oe = N({
99
99
  }, [
100
100
  V(e(L), { icon: "ico-ep:arrow-left" })
101
101
  ], 34), [
102
- [
103
- E,
104
- (r.arrow === "always" || e(h)) && (a.loop || e(l) > 0)
105
- ]
102
+ [E, (r.arrow === "always" || e(h)) && (a.loop || e(l) > 0)]
106
103
  ])
107
104
  ]),
108
105
  _: 1
@@ -122,10 +119,7 @@ const ee = ["onMouseenter", "onClick"], te = { key: 0 }, oe = N({
122
119
  }, [
123
120
  V(e(L), { icon: "ico-ep:arrow-right" })
124
121
  ], 34), [
125
- [
126
- E,
127
- (r.arrow === "always" || e(h)) && (a.loop || e(l) < e(v).length - 1)
128
- ]
122
+ [E, (r.arrow === "always" || e(h)) && (a.loop || e(l) < e(v).length - 1)]
129
123
  ])
130
124
  ]),
131
125
  _: 1
@@ -138,11 +132,7 @@ const ee = ["onMouseenter", "onClick"], te = { key: 0 }, oe = N({
138
132
  }, [
139
133
  (s(!0), u(X, null, Y(e(v), (n, m) => (s(), u("li", {
140
134
  key: m,
141
- class: i([
142
- e(t).e("indicator"),
143
- e(t).em("indicator", r.direction),
144
- e(t).is("active", m === e(l))
145
- ]),
135
+ class: i([e(t).e("indicator"), e(t).em("indicator", r.direction), e(t).is("active", m === e(l))]),
146
136
  onMouseenter: (R) => e(J)(m),
147
137
  onClick: d((R) => e(O)(m), ["stop"])
148
138
  }, [
@@ -7,13 +7,7 @@ import "lodash";
7
7
  import { carouselContextKey as j } from "./constants.js";
8
8
  const G = (T, b) => {
9
9
  const s = L(j), c = N();
10
- s || H(
11
- b,
12
- "usage: <vft-carousel></vft-carousel-item></vft-carousel>"
13
- ), c || H(
14
- b,
15
- "compositional hook can only be invoked inside setups"
16
- );
10
+ s || H(b, "usage: <vft-carousel></vft-carousel-item></vft-carousel>"), c || H(b, "compositional hook can only be invoked inside setups");
17
11
  const f = 0.83, h = a(), A = a(!1), i = a(0), C = a(1), m = a(!1), g = a(!1), v = a(!1), I = a(!1), { isCardType: d, isVertical: y } = s;
18
12
  function W(t, e, o) {
19
13
  const r = o - 1, n = e - 1, u = e + 1, p = o / 2;
@@ -36,9 +30,7 @@ const G = (T, b) => {
36
30
  };
37
31
  function E() {
38
32
  if (s && l(d)) {
39
- const t = s.items.value.findIndex(
40
- ({ uid: e }) => e === c.uid
41
- );
33
+ const t = s.items.value.findIndex(({ uid: e }) => e === c.uid);
42
34
  s.setActiveItem(t);
43
35
  }
44
36
  }
@@ -14,12 +14,7 @@ const N = 300, we = (n, B, R) => {
14
14
  children: r,
15
15
  addChild: k,
16
16
  removeChild: z
17
- } = ce(
18
- ne(),
19
- "VftCarouselItem"
20
- ), a = c(-1), i = c(null), g = c(!1), m = c(), T = c(0), P = v(
21
- () => n.arrow !== "never" && !d(u)
22
- ), V = v(() => r.value.some((e) => {
17
+ } = ce(ne(), "VftCarouselItem"), a = c(-1), i = c(null), g = c(!1), m = c(), T = c(0), P = v(() => n.arrow !== "never" && !d(u)), V = v(() => r.value.some((e) => {
23
18
  var t, o;
24
19
  return ((o = (t = e.props) == null ? void 0 : t.label) == null ? void 0 : o.toString().length) > 0;
25
20
  })), E = v(() => n.type === "card"), u = v(() => n.direction === "vertical"), _ = v(() => n.height !== "auto" ? {
@@ -47,9 +42,7 @@ const N = 300, we = (n, B, R) => {
47
42
  };
48
43
  function l(e) {
49
44
  if (ue(e)) {
50
- const s = r.value.filter(
51
- (y) => y.props.name === e
52
- );
45
+ const s = r.value.filter((y) => y.props.name === e);
53
46
  s.length > 0 && (e = r.value.indexOf(s[0]));
54
47
  }
55
48
  if (e = Number(e), Number.isNaN(e) || e !== Math.floor(e)) {
@@ -32,14 +32,7 @@ const U = ["name", "tabindex", "disabled", "true-value", "false-value"], M = ["n
32
32
  },
33
33
  emits: ["update:modelValue", "change"],
34
34
  setup(S) {
35
- const $ = S, N = D(), {
36
- isFocused: s,
37
- isChecked: p,
38
- isDisabled: m,
39
- checkboxButtonSize: z,
40
- model: n,
41
- handleChange: i
42
- } = E($, N), u = F(K, void 0), a = w("checkbox"), c = v(() => {
35
+ const $ = S, N = D(), { isFocused: s, isChecked: p, isDisabled: m, checkboxButtonSize: z, model: n, handleChange: i } = E($, N), u = F(K, void 0), a = w("checkbox"), c = v(() => {
43
36
  var l, o;
44
37
  const e = ((l = u == null ? void 0 : u.fill) == null ? void 0 : l.value) ?? "";
45
38
  return {
@@ -46,15 +46,7 @@ const A = m({
46
46
  }
47
47
  });
48
48
  return k($, {
49
- ...w(g(o), [
50
- "size",
51
- "min",
52
- "max",
53
- "disabled",
54
- "validateEvent",
55
- "fill",
56
- "textColor"
57
- ]),
49
+ ...w(g(o), ["size", "min", "max", "disabled", "validateEvent", "fill", "textColor"]),
58
50
  modelValue: v,
59
51
  changeEvent: i
60
52
  }), V(
@@ -13,9 +13,7 @@ const x = ({
13
13
  return !o(a) && i.value.length >= a && !t.value || !o(n) && i.value.length <= n && t.value;
14
14
  });
15
15
  return {
16
- isDisabled: v(
17
- r(() => (e == null ? void 0 : e.disabled.value) || s.value)
18
- ),
16
+ isDisabled: v(r(() => (e == null ? void 0 : e.disabled.value) || s.value)),
19
17
  isLimitDisabled: s
20
18
  };
21
19
  };
@@ -28,15 +28,9 @@ const P = (t, {
28
28
  i("change", c(a.checked), e);
29
29
  }
30
30
  async function g(e) {
31
- r.value || !l.value && !v.value && m.value && (e.composedPath().some(
32
- (d) => d.tagName === "LABEL"
33
- ) || (n.value = c(
34
- [!1, t.falseValue].includes(n.value)
35
- ), await L(), s(n.value, e)));
31
+ r.value || !l.value && !v.value && m.value && (e.composedPath().some((d) => d.tagName === "LABEL") || (n.value = c([!1, t.falseValue].includes(n.value)), await L(), s(n.value, e)));
36
32
  }
37
- const h = E(
38
- () => (u == null ? void 0 : u.validateEvent) || t.validateEvent
39
- );
33
+ const h = E(() => (u == null ? void 0 : u.validateEvent) || t.validateEvent);
40
34
  return k(
41
35
  () => t.modelValue,
42
36
  () => {
@@ -11,13 +11,9 @@ const L = (e, { model: t }) => {
11
11
  }
12
12
  e.checked && i();
13
13
  }, M = (e, t) => {
14
- const { formItem: i } = F(), { model: o, isGroup: n, isLimitExceeded: a } = C(e), {
15
- isFocused: r,
16
- isChecked: s,
17
- checkboxButtonSize: d,
18
- checkboxSize: l,
19
- hasOwnLabel: u
20
- } = v(e, t, { model: o }), { isDisabled: c } = k({ model: o, isChecked: s }), { inputId: b, isLabeledByFormItem: m } = S(e, {
14
+ const { formItem: i } = F(), { model: o, isGroup: n, isLimitExceeded: a } = C(e), { isFocused: r, isChecked: s, checkboxButtonSize: d, checkboxSize: l, hasOwnLabel: u } = v(e, t, {
15
+ model: o
16
+ }), { isDisabled: c } = k({ model: o, isChecked: s }), { inputId: b, isLabeledByFormItem: m } = S(e, {
21
17
  formItemContext: i,
22
18
  disableIdGeneration: u,
23
19
  disableIdManagement: n
@@ -35,10 +35,7 @@ const K = ["aria-label"], P = M({
35
35
  var t;
36
36
  (t = l.unregisterResizeCallback) == null || t.call(l);
37
37
  }, s = () => !e.maxLines && !e.maxHeight || !a.value ? !1 : e.maxLines && m() > e.maxLines ? !0 : !!(e.maxHeight && a.value.scrollHeight > a.value.offsetHeight), m = () => r.value ? Object.keys(
38
- Array.prototype.slice.call(r.value.getClientRects()).reduce((t, {
39
- top: i,
40
- bottom: f
41
- }) => {
38
+ Array.prototype.slice.call(r.value.getClientRects()).reduce((t, { top: i, bottom: f }) => {
42
39
  const o = `${i}/${f}`;
43
40
  return t[o] || (t[o] = !0), t;
44
41
  }, {})
@@ -38,9 +38,7 @@ const o = (
38
38
  u(l) && (s === "span" ? t.push(o.b(`${e[s]}`)) : l > 0 && t.push(o.b(`${s}-${e[s]}`)));
39
39
  }), ["xs", "sm", "md", "lg", "xl"].forEach((s) => {
40
40
  u(e[s]) ? t.push(o.b(`${s}-${e[s]}`)) : _(e[s]) && Object.entries(e[s]).forEach(([l, r]) => {
41
- t.push(
42
- l !== "span" ? o.b(`${s}-${l}-${r}`) : o.b(`${s}-${r}`)
43
- );
41
+ t.push(l !== "span" ? o.b(`${s}-${l}-${r}`) : o.b(`${s}-${r}`));
44
42
  });
45
43
  }), a.value && t.push(o.is("guttered")), [o.b(), t];
46
44
  });
@@ -13,12 +13,8 @@ const M = "data-vft-collection-item", A = (E) => {
13
13
  const e = s(i);
14
14
  if (!e)
15
15
  return [];
16
- const t = Array.from(
17
- e.querySelectorAll(`[${M}]`)
18
- );
19
- return [...o.values()].sort(
20
- (O, a) => t.indexOf(O.ref) - t.indexOf(a.ref)
21
- );
16
+ const t = Array.from(e.querySelectorAll(`[${M}]`));
17
+ return [...o.values()].sort((O, a) => t.indexOf(O.ref) - t.indexOf(a.ref));
22
18
  },
23
19
  collectionRef: i
24
20
  });
@@ -51,11 +51,7 @@ const Se = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex
51
51
  format: a.colorFormat || "",
52
52
  value: a.modelValue
53
53
  })
54
- ), v = c(!1), s = c(!1), b = c(""), X = h(() => !a.modelValue && !s.value ? "transparent" : oe(r, a.showAlpha)), S = h(() => !a.modelValue && !s.value ? "" : r.value), Y = h(() => z.value ? void 0 : a.label || "色彩选择器"), Z = h(() => z.value ? i == null ? void 0 : i.labelId : void 0), ee = h(() => [
55
- l.b("picker"),
56
- l.is("disabled", E.value),
57
- l.bm("picker", j.value)
58
- ]);
54
+ ), v = c(!1), s = c(!1), b = c(""), X = h(() => !a.modelValue && !s.value ? "transparent" : oe(r, a.showAlpha)), S = h(() => !a.modelValue && !s.value ? "" : r.value), Y = h(() => z.value ? void 0 : a.label || "色彩选择器"), Z = h(() => z.value ? i == null ? void 0 : i.labelId : void 0), ee = h(() => [l.b("picker"), l.is("disabled", E.value), l.bm("picker", j.value)]);
59
55
  function oe(e, n) {
60
56
  if (!(e instanceof $))
61
57
  throw new TypeError("color should be instance of _color Class");
@@ -35,14 +35,10 @@ const O = T({
35
35
  let h;
36
36
  if (u.vertical) {
37
37
  let o = H - r.top;
38
- o = Math.min(o, r.height - e.value.offsetHeight / 2), o = Math.max(e.value.offsetHeight / 2, o), h = Math.round(
39
- (o - e.value.offsetHeight / 2) / (r.height - e.value.offsetHeight) * 360
40
- );
38
+ o = Math.min(o, r.height - e.value.offsetHeight / 2), o = Math.max(e.value.offsetHeight / 2, o), h = Math.round((o - e.value.offsetHeight / 2) / (r.height - e.value.offsetHeight) * 360);
41
39
  } else {
42
40
  let o = C - r.left;
43
- o = Math.min(o, r.width - e.value.offsetWidth / 2), o = Math.max(e.value.offsetWidth / 2, o), h = Math.round(
44
- (o - e.value.offsetWidth / 2) / (r.width - e.value.offsetWidth) * 360
45
- );
41
+ o = Math.min(o, r.width - e.value.offsetWidth / 2), o = Math.max(e.value.offsetWidth / 2, o), h = Math.round((o - e.value.offsetWidth / 2) / (r.width - e.value.offsetWidth) * 360);
46
42
  }
47
43
  u.color.set("hue", h);
48
44
  }
@@ -53,9 +49,7 @@ const O = T({
53
49
  if (u.vertical)
54
50
  return 0;
55
51
  const n = u.color.get("hue");
56
- return t ? Math.round(
57
- n * (t.offsetWidth - e.value.offsetWidth / 2) / 360
58
- ) : 0;
52
+ return t ? Math.round(n * (t.offsetWidth - e.value.offsetWidth / 2) / 360) : 0;
59
53
  }
60
54
  function b() {
61
55
  if (!e.value)
@@ -64,9 +58,7 @@ const O = T({
64
58
  if (!u.vertical)
65
59
  return 0;
66
60
  const n = u.color.get("hue");
67
- return t ? Math.round(
68
- n * (t.offsetHeight - e.value.offsetHeight / 2) / 360
69
- ) : 0;
61
+ return t ? Math.round(n * (t.offsetHeight - e.value.offsetHeight / 2) / 360) : 0;
70
62
  }
71
63
  function c() {
72
64
  s.value = M(), d.value = b();
@@ -11,11 +11,7 @@ function u(e, f, k, v, h, C) {
11
11
  }, [
12
12
  (r(!0), l(c, null, d(e.rgbaColors, (o, n) => (r(), l("div", {
13
13
  key: e.colors[n],
14
- class: s([
15
- e.ns.e("color-selector"),
16
- e.ns.is("alpha", o._alpha < 100),
17
- { selected: o.selected }
18
- ]),
14
+ class: s([e.ns.e("color-selector"), e.ns.is("alpha", o._alpha < 100), { selected: o.selected }]),
19
15
  onClick: ($) => e.handleSelect(n)
20
16
  }, [
21
17
  a("div", {
@@ -21,17 +21,13 @@ const U = (e) => {
21
21
  let o = d - l.top;
22
22
  o = Math.max(t.value.offsetHeight / 2, o), o = Math.min(o, l.height - t.value.offsetHeight / 2), e.color.set(
23
23
  "alpha",
24
- Math.round(
25
- (o - t.value.offsetHeight / 2) / (l.height - t.value.offsetHeight) * 100
26
- )
24
+ Math.round((o - t.value.offsetHeight / 2) / (l.height - t.value.offsetHeight) * 100)
27
25
  );
28
26
  } else {
29
27
  let o = v - l.left;
30
28
  o = Math.max(t.value.offsetWidth / 2, o), o = Math.min(o, l.width - t.value.offsetWidth / 2), e.color.set(
31
29
  "alpha",
32
- Math.round(
33
- (o - t.value.offsetWidth / 2) / (l.width - t.value.offsetWidth) * 100
34
- )
30
+ Math.round((o - t.value.offsetWidth / 2) / (l.width - t.value.offsetWidth) * 100)
35
31
  );
36
32
  }
37
33
  }
@@ -41,19 +37,13 @@ const U = (e) => {
41
37
  handleDrag: r,
42
38
  handleClick: h
43
39
  };
44
- }, j = (e, {
45
- bar: f,
46
- thumb: t,
47
- handleDrag: u
48
- }) => {
40
+ }, j = (e, { bar: f, thumb: t, handleDrag: u }) => {
49
41
  const h = $(), r = R("color-alpha-slider"), i = m(0), s = m(0), l = m();
50
42
  function v() {
51
43
  if (!t.value || e.vertical)
52
44
  return 0;
53
45
  const a = h.vnode.el, n = e.color.get("alpha");
54
- return a ? Math.round(
55
- n * (a.offsetWidth - t.value.offsetWidth / 2) / 100
56
- ) : 0;
46
+ return a ? Math.round(n * (a.offsetWidth - t.value.offsetWidth / 2) / 100) : 0;
57
47
  }
58
48
  function d() {
59
49
  if (!t.value)
@@ -62,9 +52,7 @@ const U = (e) => {
62
52
  if (!e.vertical)
63
53
  return 0;
64
54
  const n = e.color.get("alpha");
65
- return a ? Math.round(
66
- n * (a.offsetHeight - t.value.offsetHeight / 2) / 100
67
- ) : 0;
55
+ return a ? Math.round(n * (a.offsetHeight - t.value.offsetHeight / 2) / 100) : 0;
68
56
  }
69
57
  function o() {
70
58
  if (e.color && e.color.value) {
@@ -1,6 +1,4 @@
1
- const o = Symbol(
2
- "colorPickerContextKey"
3
- );
1
+ const o = Symbol("colorPickerContextKey");
4
2
  export {
5
3
  o as colorPickerContextKey
6
4
  };