vft 0.0.150 → 0.0.153

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 (688) hide show
  1. package/es/app-components/form/form-label-wrap.d.ts +1 -1
  2. package/es/components/affix/affix.vue.d.ts +13 -13
  3. package/es/components/affix/affix.vue2.js +33 -33
  4. package/es/components/affix/index.d.ts +61 -132
  5. package/es/components/alert/alert.vue.d.ts +11 -52
  6. package/es/components/alert/alert.vue2.js +19 -19
  7. package/es/components/alert/index.d.ts +65 -122
  8. package/es/components/autocomplete/autocomplete.vue.d.ts +188 -170
  9. package/es/components/autocomplete/autocomplete.vue2.js +69 -69
  10. package/es/components/autocomplete/index.d.ts +1006 -729
  11. package/es/components/avatar/avatar.vue.d.ts +19 -40
  12. package/es/components/avatar/avatar.vue2.js +23 -23
  13. package/es/components/avatar/index.d.ts +53 -114
  14. package/es/components/backtop/backtop.vue.d.ts +11 -40
  15. package/es/components/backtop/backtop.vue2.js +20 -20
  16. package/es/components/backtop/index.d.ts +53 -114
  17. package/es/components/button/button-group.vue.d.ts +11 -15
  18. package/es/components/button/button.vue.d.ts +29 -138
  19. package/es/components/button/button.vue2.js +19 -19
  20. package/es/components/button/index.d.ts +210 -372
  21. package/es/components/button/use-button.js +1 -1
  22. package/es/components/card/card.vue.d.ts +15 -21
  23. package/es/components/card/index.d.ts +27 -95
  24. package/es/components/carousel/carousel-item.vue.d.ts +10 -15
  25. package/es/components/carousel/carousel.vue.d.ts +43 -92
  26. package/es/components/carousel/carousel.vue2.js +37 -37
  27. package/es/components/carousel/index.d.ts +176 -344
  28. package/es/components/check-tag/check-tag.vue.d.ts +11 -10
  29. package/es/components/check-tag/check-tag.vue2.js +16 -16
  30. package/es/components/check-tag/index.d.ts +24 -95
  31. package/es/components/checkbox/checkbox-button.vue.d.ts +12 -94
  32. package/es/components/checkbox/checkbox-group.vue.d.ts +27 -82
  33. package/es/components/checkbox/checkbox-group.vue2.js +37 -37
  34. package/es/components/checkbox/checkbox.vue.d.ts +24 -96
  35. package/es/components/checkbox/index.d.ts +576 -786
  36. package/es/components/clamp/clamp.vue.d.ts +25 -48
  37. package/es/components/clamp/clamp.vue2.js +35 -35
  38. package/es/components/clamp/index.d.ts +64 -122
  39. package/es/components/clamp-toggle/clamp-toggle.vue.d.ts +23 -76
  40. package/es/components/clamp-toggle/clamp-toggle.vue2.js +8 -8
  41. package/es/components/clamp-toggle/index.d.ts +1 -1
  42. package/es/components/col/col.vue.d.ts +30 -73
  43. package/es/components/col/index.d.ts +93 -136
  44. package/es/components/collapse-transition/index.d.ts +16 -166
  45. package/es/components/collapse-transition/src/collapse-transition.vue.d.ts +1 -1
  46. package/es/components/collection/collection-item.vue.d.ts +1 -1
  47. package/es/components/collection/collection.vue.d.ts +1 -1
  48. package/es/components/color-picker/color-picker.vue.d.ts +25 -74
  49. package/es/components/color-picker/color-picker.vue2.js +67 -67
  50. package/es/components/color-picker/components/alpha-slider.vue.d.ts +10 -17
  51. package/es/components/color-picker/components/hue-slider.vue.d.ts +1 -1
  52. package/es/components/color-picker/components/predefine.vue.d.ts +1 -1
  53. package/es/components/color-picker/components/sv-panel.vue.d.ts +1 -1
  54. package/es/components/color-picker/index.d.ts +7 -7
  55. package/es/components/config-provider/config-provider.vue.d.ts +10 -69
  56. package/es/components/config-provider/index.d.ts +77 -129
  57. package/es/components/container/aside.vue.d.ts +10 -9
  58. package/es/components/container/container.vue.d.ts +10 -9
  59. package/es/components/container/footer.vue.d.ts +10 -9
  60. package/es/components/container/header.vue.d.ts +10 -9
  61. package/es/components/container/index.d.ts +121 -775
  62. package/es/components/container/main.vue.d.ts +1 -1
  63. package/es/components/context-menu/context-menu.vue.d.ts +16 -27
  64. package/es/components/context-menu/context-menu.vue2.js +16 -16
  65. package/es/components/date-picker/composables/use-range-picker.d.ts +6 -6
  66. package/es/components/date-picker/date-picker-com/basic-cell-render.d.ts +1 -3
  67. package/es/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +22 -22
  68. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +61 -61
  69. package/es/components/date-picker/date-picker-com/basic-month-table.vue.d.ts +1 -1
  70. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +32 -32
  71. package/es/components/date-picker/date-picker-com/basic-year-table.vue.d.ts +1 -1
  72. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +29 -29
  73. package/es/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +11 -11
  74. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +170 -170
  75. package/es/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +9 -9
  76. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +59 -59
  77. package/es/components/date-picker/date-picker-com/panel-month-range.vue.d.ts +6 -6
  78. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +34 -34
  79. package/es/components/date-picker/date-picker.d.ts +1 -1
  80. package/es/components/date-picker/index.d.ts +2 -2
  81. package/es/components/date-picker/panel-utils.d.ts +167 -351
  82. package/es/components/date-time-select/date-time-select.vue.d.ts +11 -18
  83. package/es/components/date-time-select/date-time-select.vue2.js +27 -27
  84. package/es/components/date-time-select/index.d.ts +1 -1
  85. package/es/components/descriptions/description-item.vue.d.ts +20 -51
  86. package/es/components/descriptions/description.vue.d.ts +18 -39
  87. package/es/components/descriptions/descriptions-cell.d.ts +1 -1
  88. package/es/components/descriptions/descriptions-row.vue.d.ts +13 -9
  89. package/es/components/descriptions/index.d.ts +161 -339
  90. package/es/components/dialog/dialog-content.vue.d.ts +11 -52
  91. package/es/components/dialog/dialog.vue.d.ts +12 -144
  92. package/es/components/dialog/dialog.vue2.js +0 -1
  93. package/es/components/dialog/index.d.ts +178 -205
  94. package/es/components/divider/divider.vue.d.ts +10 -39
  95. package/es/components/divider/index.d.ts +47 -109
  96. package/es/components/drawer/drawer.vue.d.ts +12 -167
  97. package/es/components/drawer/index.d.ts +201 -220
  98. package/es/components/dropdown/dropdown-item-impl.vue.d.ts +2 -2
  99. package/es/components/dropdown/dropdown-item.vue.d.ts +3 -3
  100. package/es/components/dropdown/dropdown-menu.vue.d.ts +1 -1
  101. package/es/components/dropdown/dropdown.vue.d.ts +47 -144
  102. package/es/components/dropdown/dropdown.vue2.js +65 -65
  103. package/es/components/dropdown/index.d.ts +207 -215
  104. package/es/components/empty/empty.vue.d.ts +10 -27
  105. package/es/components/empty/index.d.ts +31 -97
  106. package/es/components/exception/exception.vue.d.ts +15 -21
  107. package/es/components/exception/index.d.ts +1 -1
  108. package/es/components/focus-trap/focus-trap.vue.d.ts +1 -1
  109. package/es/components/footer-layout/footer-layout.vue.d.ts +1 -1
  110. package/es/components/footer-layout/index.d.ts +8 -83
  111. package/es/components/form/form-item.vue.d.ts +29 -78
  112. package/es/components/form/form-item.vue2.js +58 -58
  113. package/es/components/form/form-label-wrap.d.ts +1 -1
  114. package/es/components/form/form.vue.d.ts +11 -94
  115. package/es/components/form/form.vue2.js +47 -47
  116. package/es/components/form/index.d.ts +338 -465
  117. package/es/components/full-screen/full-screen.vue.d.ts +11 -63
  118. package/es/components/full-screen/index.d.ts +1 -1
  119. package/es/components/header-layout/header-layout.vue.d.ts +10 -11
  120. package/es/components/header-layout/index.d.ts +17 -88
  121. package/es/components/horizontal-menu/horizontal-menu.vue.d.ts +11 -78
  122. package/es/components/horizontal-menu/horizontal-menu.vue2.js +40 -40
  123. package/es/components/horizontal-menu/index.d.ts +1 -1
  124. package/es/components/icon/icon.vue.d.ts +9 -46
  125. package/es/components/icon/index.d.ts +1 -1
  126. package/es/components/icon-text/icon-text.vue.d.ts +9 -64
  127. package/es/components/icon-text/index.d.ts +1 -1
  128. package/es/components/iframe-layout/iframe-layout.vue.d.ts +12 -10
  129. package/es/components/iframe-layout/iframe-layout.vue2.js +4 -4
  130. package/es/components/iframe-layout/iframe-page.vue.d.ts +12 -10
  131. package/es/components/iframe-layout/index.d.ts +1 -1
  132. package/es/components/image/image.vue.d.ts +14 -79
  133. package/es/components/image/image.vue2.js +53 -52
  134. package/es/components/image/index.d.ts +106 -155
  135. package/es/components/image/p-image.vue.d.ts +21 -47
  136. package/es/components/image/p-image.vue2.js +18 -18
  137. package/es/components/image-viewer/image-viewer.vue.d.ts +11 -52
  138. package/es/components/image-viewer/image-viewer.vue2.js +60 -60
  139. package/es/components/image-viewer/index.d.ts +71 -128
  140. package/es/components/input/index.d.ts +228 -253
  141. package/es/components/input/input.vue.d.ts +14 -157
  142. package/es/components/input/input.vue2.js +124 -124
  143. package/es/components/input-number/index.d.ts +3 -3
  144. package/es/components/input-number/input-number.vue.d.ts +13 -108
  145. package/es/components/input-number/input-number.vue2.js +86 -86
  146. package/es/components/link/index.d.ts +53 -114
  147. package/es/components/link/link.vue.d.ts +19 -40
  148. package/es/components/link/link.vue2.js +26 -26
  149. package/es/components/list-cell/index.d.ts +1 -1
  150. package/es/components/list-cell/list-cell.vue.d.ts +11 -30
  151. package/es/components/list-cell/list-cell.vue2.js +37 -37
  152. package/es/components/logo/index.d.ts +1 -1
  153. package/es/components/logo/logo.vue.d.ts +9 -24
  154. package/es/components/md-code-demo/index.d.ts +1 -1
  155. package/es/components/md-code-demo/md-code-demo.d.ts +1 -1
  156. package/es/components/md-code-tabs/index.d.ts +1 -1
  157. package/es/components/md-code-tabs/md-code-tabs.d.ts +1 -1
  158. package/es/components/md-comment/index.d.ts +1 -1
  159. package/es/components/md-comment/md-comment.vue.d.ts +1 -1
  160. package/es/components/md-container/index.d.ts +11 -86
  161. package/es/components/md-container/md-container.vue.d.ts +1 -1
  162. package/es/components/md-container/toc.d.ts +1 -1
  163. package/es/components/md-tabs/index.d.ts +1 -1
  164. package/es/components/md-tabs/md-tabs.d.ts +1 -1
  165. package/es/components/md-vue-playground/index.d.ts +1 -1
  166. package/es/components/md-vue-playground/md-vue-playground.vue.d.ts +14 -26
  167. package/es/components/menu/index.d.ts +203 -343
  168. package/es/components/menu/menu-collapse-transition.vue.d.ts +1 -1
  169. package/es/components/menu/menu-item-group.vue.d.ts +13 -9
  170. package/es/components/menu/menu-item.vue.d.ts +11 -64
  171. package/es/components/menu/menu-item.vue2.js +31 -31
  172. package/es/components/menu/menu.vue.d.ts +11 -64
  173. package/es/components/menu/menu.vue2.js +60 -60
  174. package/es/components/menu/sub-menu.vue.d.ts +11 -90
  175. package/es/components/menu/sub-menu.vue2.js +41 -41
  176. package/es/components/message/message.vue.d.ts +11 -104
  177. package/es/components/message/message.vue2.js +31 -31
  178. package/es/components/modal/index.d.ts +280 -253
  179. package/es/components/modal/modal-footer-action.vue.d.ts +11 -33
  180. package/es/components/modal/modal.vue.d.ts +63 -225
  181. package/es/components/modal/modal.vue2.js +32 -32
  182. package/es/components/multiple-tabs/index.d.ts +1 -1
  183. package/es/components/multiple-tabs/multiple-tabs.vue.d.ts +11 -33
  184. package/es/components/multiple-tabs/multiple-tabs.vue2.js +70 -100
  185. package/es/components/multiple-tabs/multiple-tabs.vue3.js +1 -4
  186. package/es/components/multiple-tabs/tab-content.vue.d.ts +17 -33
  187. package/es/components/multiple-tabs/tab-content.vue2.js +6 -6
  188. package/es/components/overlay/index.d.ts +1 -1
  189. package/es/components/overlay/overlay.vue.d.ts +18 -34
  190. package/es/components/overlay/overlay.vue2.js +18 -18
  191. package/es/components/page-wrapper/index.d.ts +15 -87
  192. package/es/components/page-wrapper/page-wrapper.vue.d.ts +13 -9
  193. package/es/components/pagination/components/jumper.vue.d.ts +12 -10
  194. package/es/components/pagination/components/next.vue.d.ts +17 -28
  195. package/es/components/pagination/components/pager.vue.d.ts +17 -30
  196. package/es/components/pagination/components/pager.vue2.js +29 -29
  197. package/es/components/pagination/components/prev.vue.d.ts +16 -22
  198. package/es/components/pagination/components/prev.vue2.js +9 -9
  199. package/es/components/pagination/components/sizes.vue.d.ts +18 -34
  200. package/es/components/pagination/components/sizes.vue2.js +17 -17
  201. package/es/components/pagination/components/total.vue.d.ts +12 -10
  202. package/es/components/pagination/index.d.ts +1 -1
  203. package/es/components/pagination/pagination.vue.d.ts +11 -112
  204. package/es/components/pagination/pagination.vue2.js +41 -41
  205. package/es/components/popconfirm/index.d.ts +127 -159
  206. package/es/components/popconfirm/popconfirm.vue.d.ts +52 -93
  207. package/es/components/popconfirm/popconfirm.vue2.js +26 -26
  208. package/es/components/popover/index.d.ts +161 -192
  209. package/es/components/popover/popover.vue2.js +31 -31
  210. package/es/components/popper/arrow.vue.d.ts +14 -10
  211. package/es/components/popper/content.vue2.js +55 -55
  212. package/es/components/popper/index.d.ts +22 -94
  213. package/es/components/popper/popper.vue.d.ts +14 -10
  214. package/es/components/popper/trigger.vue.d.ts +24 -70
  215. package/es/components/progress/index.d.ts +95 -141
  216. package/es/components/progress/progress.vue.d.ts +10 -87
  217. package/es/components/progress-i/index.d.ts +1 -1
  218. package/es/components/progress-i/progress-i.vue.d.ts +1 -1
  219. package/es/components/qrcode/index.d.ts +1 -1
  220. package/es/components/qrcode/qrcode.vue.d.ts +24 -35
  221. package/es/components/qrcode/qrcode.vue2.js +33 -33
  222. package/es/components/radio/index.d.ts +328 -611
  223. package/es/components/radio/radio-button.vue.d.ts +10 -33
  224. package/es/components/radio/radio-button.vue2.js +1 -1
  225. package/es/components/radio/radio-group.vue.d.ts +23 -72
  226. package/es/components/radio/radio-group.vue2.js +33 -33
  227. package/es/components/radio/radio.vue.d.ts +11 -46
  228. package/es/components/radio/radio.vue2.js +30 -30
  229. package/es/components/result/index.d.ts +1 -1
  230. package/es/components/result/result.vue.d.ts +15 -21
  231. package/es/components/router-view-content/index.d.ts +1 -1
  232. package/es/components/router-view-content/router-view-content.vue.d.ts +17 -42
  233. package/es/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +1 -1
  234. package/es/components/roving-focus-group/roving-focus-group.vue.d.ts +1 -1
  235. package/es/components/roving-focus-group/roving-focus-item.vue.d.ts +1 -1
  236. package/es/components/row/index.d.ts +31 -97
  237. package/es/components/row/row.vue.d.ts +10 -27
  238. package/es/components/scrollbar/bar.vue.d.ts +11 -34
  239. package/es/components/scrollbar/index.d.ts +104 -158
  240. package/es/components/scrollbar/scrollbar.vue.d.ts +11 -70
  241. package/es/components/scrollbar/scrollbar.vue2.js +53 -52
  242. package/es/components/scrollbar/thumb.vue.d.ts +9 -34
  243. package/es/components/search/index.d.ts +116 -169
  244. package/es/components/search/search.vue.d.ts +15 -66
  245. package/es/components/search/search.vue2.js +78 -78
  246. package/es/components/select/group-item.vue.d.ts +1 -1
  247. package/es/components/select/index.d.ts +356 -144
  248. package/es/components/select/option-item.vue.d.ts +1 -1
  249. package/es/components/select/select-dropdown.d.ts +1 -1
  250. package/es/components/select/select.vue.d.ts +178 -72
  251. package/es/components/select/useSelect.d.ts +175 -69
  252. package/es/components/side-menu/index.d.ts +1 -1
  253. package/es/components/side-menu/side-menu.vue.d.ts +47 -156
  254. package/es/components/side-menu/side-menu.vue2.js +76 -76
  255. package/es/components/skeleton/index.d.ts +44 -108
  256. package/es/components/skeleton/skeleton-item.vue.d.ts +13 -9
  257. package/es/components/skeleton/skeleton.vue.d.ts +18 -34
  258. package/es/components/slider/button.vue.d.ts +11 -28
  259. package/es/components/slider/button.vue2.js +33 -33
  260. package/es/components/slider/composables/use-slide.d.ts +88 -219
  261. package/es/components/slider/index.d.ts +1 -1
  262. package/es/components/slider/marker.d.ts +1 -1
  263. package/es/components/slider/slider.vue.d.ts +11 -160
  264. package/es/components/slider/slider.vue2.js +60 -60
  265. package/es/components/slot/only-child.d.ts +1 -1
  266. package/es/components/space/index.d.ts +3 -3
  267. package/es/components/space/item.d.ts +1 -1
  268. package/es/components/space/space.d.ts +4 -4
  269. package/es/components/super-form/index.d.ts +372 -322
  270. package/es/components/super-form/super-form-action.vue.d.ts +11 -46
  271. package/es/components/super-form/super-form-item.vue.d.ts +9 -54
  272. package/es/components/super-form/super-form.vue.d.ts +63 -294
  273. package/es/components/super-form/super-form.vue2.js +89 -89
  274. package/es/components/super-form/types.d.ts +2 -2
  275. package/es/components/switch/index.d.ts +7 -7
  276. package/es/components/switch/switch.vue.d.ts +37 -146
  277. package/es/components/switch/switch.vue2.js +86 -86
  278. package/es/components/table/field.d.ts +2 -2
  279. package/es/components/table/index.d.ts +1127 -945
  280. package/es/components/table/table.vue.d.ts +77 -686
  281. package/es/components/table/table.vue2.js +79 -79
  282. package/es/components/table/use/use-columns.d.ts +30 -30
  283. package/es/components/table/use/use-data-source.js +3 -3
  284. package/es/components/tabs/index.d.ts +77 -205
  285. package/es/components/tabs/tab-bar.vue.d.ts +14 -45
  286. package/es/components/tabs/tab-nav.vue.d.ts +29 -106
  287. package/es/components/tabs/tab-nav.vue2.js +32 -32
  288. package/es/components/tabs/tab-pane.vue.d.ts +22 -33
  289. package/es/components/tabs/tabs.vue.d.ts +13 -90
  290. package/es/components/tabs/tabs.vue2.js +47 -47
  291. package/es/components/tag/index.d.ts +1 -1
  292. package/es/components/tag/tag.vue.d.ts +11 -52
  293. package/es/components/tag/tag.vue2.js +18 -18
  294. package/es/components/time-picker/common/picker.vue.d.ts +89 -89
  295. package/es/components/time-picker/common/picker.vue2.js +83 -83
  296. package/es/components/time-picker/composables/use-time-picker.d.ts +12 -12
  297. package/es/components/time-picker/index.d.ts +2 -2
  298. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +20 -20
  299. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +44 -44
  300. package/es/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +14 -14
  301. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +55 -55
  302. package/es/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +12 -12
  303. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +93 -93
  304. package/es/components/time-picker/time-picker.d.ts +1 -1
  305. package/es/components/time-select/time-select.vue.d.ts +43 -43
  306. package/es/components/time-select/time-select.vue2.js +1 -2
  307. package/es/components/tooltip/content.vue2.js +22 -22
  308. package/es/components/tooltip/index.d.ts +329 -307
  309. package/es/components/tooltip/tooltip.vue.d.ts +13 -288
  310. package/es/components/tooltip/tooltip.vue2.js +43 -42
  311. package/es/components/tooltip/trigger.vue.d.ts +18 -34
  312. package/es/components/tree/index.d.ts +538 -546
  313. package/es/components/tree/tree-node-content.vue.d.ts +1 -1
  314. package/es/components/tree/tree-node.vue.d.ts +3 -3
  315. package/es/components/tree/tree.vue.d.ts +37 -176
  316. package/es/components/tree/tree.vue2.js +72 -72
  317. package/es/components/upload/index.d.ts +236 -233
  318. package/es/components/upload/upload-content.vue.d.ts +46 -173
  319. package/es/components/upload/upload-dragger.vue.d.ts +12 -10
  320. package/es/components/upload/upload-dragger.vue2.js +26 -26
  321. package/es/components/upload/upload-list.vue.d.ts +29 -36
  322. package/es/components/upload/upload-list.vue2.js +34 -34
  323. package/es/components/upload/upload.vue.d.ts +47 -185
  324. package/es/components/upload/use-handlers.d.ts +14 -3
  325. package/es/components/verify-code/index.d.ts +1 -1
  326. package/es/components/verify-code/useImageVerify.js +1 -1
  327. package/es/components/verify-code/verify-code.vue.d.ts +16 -22
  328. package/es/components/verify-code/verify-code.vue2.js +16 -16
  329. package/es/components/virtual-list/builders/build-grid.d.ts +3 -3
  330. package/es/components/virtual-list/builders/build-list.d.ts +5 -5
  331. package/es/components/virtual-list/components/dynamic-size-grid.d.ts +3 -3
  332. package/es/components/virtual-list/components/dynamic-size-list.d.ts +5 -5
  333. package/es/components/virtual-list/components/fixed-size-grid.d.ts +3 -3
  334. package/es/components/virtual-list/components/fixed-size-list.d.ts +5 -5
  335. package/es/components/virtual-list/components/scrollbar.d.ts +1 -1
  336. package/es/components/virtual-list/props.d.ts +3 -3
  337. package/es/package.json.d.ts +11 -11
  338. package/es/package.json.js +1 -1
  339. package/lib/app-components/form/form-label-wrap.d.ts +1 -1
  340. package/lib/components/affix/affix.vue.d.ts +13 -13
  341. package/lib/components/affix/affix.vue2.cjs +1 -1
  342. package/lib/components/affix/index.d.ts +61 -132
  343. package/lib/components/alert/alert.vue.d.ts +11 -52
  344. package/lib/components/alert/alert.vue2.cjs +1 -1
  345. package/lib/components/alert/index.d.ts +65 -122
  346. package/lib/components/autocomplete/autocomplete.vue.d.ts +188 -170
  347. package/lib/components/autocomplete/autocomplete.vue2.cjs +1 -1
  348. package/lib/components/autocomplete/index.d.ts +1006 -729
  349. package/lib/components/avatar/avatar.vue.d.ts +19 -40
  350. package/lib/components/avatar/avatar.vue2.cjs +1 -1
  351. package/lib/components/avatar/index.d.ts +53 -114
  352. package/lib/components/backtop/backtop.vue.d.ts +11 -40
  353. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  354. package/lib/components/backtop/index.d.ts +53 -114
  355. package/lib/components/button/button-group.vue.d.ts +11 -15
  356. package/lib/components/button/button.vue.d.ts +29 -138
  357. package/lib/components/button/button.vue2.cjs +1 -1
  358. package/lib/components/button/index.d.ts +210 -372
  359. package/lib/components/button/use-button.cjs +1 -1
  360. package/lib/components/card/card.vue.d.ts +15 -21
  361. package/lib/components/card/index.d.ts +27 -95
  362. package/lib/components/carousel/carousel-item.vue.d.ts +10 -15
  363. package/lib/components/carousel/carousel.vue.d.ts +43 -92
  364. package/lib/components/carousel/carousel.vue2.cjs +1 -1
  365. package/lib/components/carousel/index.d.ts +176 -344
  366. package/lib/components/check-tag/check-tag.vue.d.ts +11 -10
  367. package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
  368. package/lib/components/check-tag/index.d.ts +24 -95
  369. package/lib/components/checkbox/checkbox-button.vue.d.ts +12 -94
  370. package/lib/components/checkbox/checkbox-group.vue.d.ts +27 -82
  371. package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
  372. package/lib/components/checkbox/checkbox.vue.d.ts +24 -96
  373. package/lib/components/checkbox/index.d.ts +576 -786
  374. package/lib/components/clamp/clamp.vue.d.ts +25 -48
  375. package/lib/components/clamp/clamp.vue2.cjs +1 -1
  376. package/lib/components/clamp/index.d.ts +64 -122
  377. package/lib/components/clamp-toggle/clamp-toggle.vue.d.ts +23 -76
  378. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  379. package/lib/components/clamp-toggle/index.d.ts +1 -1
  380. package/lib/components/col/col.vue.d.ts +30 -73
  381. package/lib/components/col/index.d.ts +93 -136
  382. package/lib/components/collapse-transition/index.d.ts +16 -166
  383. package/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +1 -1
  384. package/lib/components/collection/collection-item.vue.d.ts +1 -1
  385. package/lib/components/collection/collection.vue.d.ts +1 -1
  386. package/lib/components/color-picker/color-picker.vue.d.ts +25 -74
  387. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  388. package/lib/components/color-picker/components/alpha-slider.vue.d.ts +10 -17
  389. package/lib/components/color-picker/components/hue-slider.vue.d.ts +1 -1
  390. package/lib/components/color-picker/components/predefine.vue.d.ts +1 -1
  391. package/lib/components/color-picker/components/sv-panel.vue.d.ts +1 -1
  392. package/lib/components/color-picker/index.d.ts +7 -7
  393. package/lib/components/config-provider/config-provider.vue.d.ts +10 -69
  394. package/lib/components/config-provider/index.d.ts +77 -129
  395. package/lib/components/container/aside.vue.d.ts +10 -9
  396. package/lib/components/container/container.vue.d.ts +10 -9
  397. package/lib/components/container/footer.vue.d.ts +10 -9
  398. package/lib/components/container/header.vue.d.ts +10 -9
  399. package/lib/components/container/index.d.ts +121 -775
  400. package/lib/components/container/main.vue.d.ts +1 -1
  401. package/lib/components/context-menu/context-menu.vue.d.ts +16 -27
  402. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  403. package/lib/components/date-picker/composables/use-range-picker.d.ts +6 -6
  404. package/lib/components/date-picker/date-picker-com/basic-cell-render.d.ts +1 -3
  405. package/lib/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +22 -22
  406. package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -1
  407. package/lib/components/date-picker/date-picker-com/basic-month-table.vue.d.ts +1 -1
  408. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  409. package/lib/components/date-picker/date-picker-com/basic-year-table.vue.d.ts +1 -1
  410. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  411. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +11 -11
  412. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  413. package/lib/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +9 -9
  414. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  415. package/lib/components/date-picker/date-picker-com/panel-month-range.vue.d.ts +6 -6
  416. package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
  417. package/lib/components/date-picker/date-picker.d.ts +1 -1
  418. package/lib/components/date-picker/index.d.ts +2 -2
  419. package/lib/components/date-picker/panel-utils.d.ts +167 -351
  420. package/lib/components/date-time-select/date-time-select.vue.d.ts +11 -18
  421. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  422. package/lib/components/date-time-select/index.d.ts +1 -1
  423. package/lib/components/descriptions/description-item.vue.d.ts +20 -51
  424. package/lib/components/descriptions/description.vue.d.ts +18 -39
  425. package/lib/components/descriptions/descriptions-cell.d.ts +1 -1
  426. package/lib/components/descriptions/descriptions-row.vue.d.ts +13 -9
  427. package/lib/components/descriptions/index.d.ts +161 -339
  428. package/lib/components/dialog/dialog-content.vue.d.ts +11 -52
  429. package/lib/components/dialog/dialog.vue.d.ts +12 -144
  430. package/lib/components/dialog/index.d.ts +178 -205
  431. package/lib/components/divider/divider.vue.d.ts +10 -39
  432. package/lib/components/divider/index.d.ts +47 -109
  433. package/lib/components/drawer/drawer.vue.d.ts +12 -167
  434. package/lib/components/drawer/index.d.ts +201 -220
  435. package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +2 -2
  436. package/lib/components/dropdown/dropdown-item.vue.d.ts +3 -3
  437. package/lib/components/dropdown/dropdown-menu.vue.d.ts +1 -1
  438. package/lib/components/dropdown/dropdown.vue.d.ts +47 -144
  439. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  440. package/lib/components/dropdown/index.d.ts +207 -215
  441. package/lib/components/empty/empty.vue.d.ts +10 -27
  442. package/lib/components/empty/index.d.ts +31 -97
  443. package/lib/components/exception/exception.vue.d.ts +15 -21
  444. package/lib/components/exception/index.d.ts +1 -1
  445. package/lib/components/focus-trap/focus-trap.vue.d.ts +1 -1
  446. package/lib/components/footer-layout/footer-layout.vue.d.ts +1 -1
  447. package/lib/components/footer-layout/index.d.ts +8 -83
  448. package/lib/components/form/form-item.vue.d.ts +29 -78
  449. package/lib/components/form/form-item.vue2.cjs +1 -1
  450. package/lib/components/form/form-label-wrap.d.ts +1 -1
  451. package/lib/components/form/form.vue.d.ts +11 -94
  452. package/lib/components/form/form.vue2.cjs +1 -1
  453. package/lib/components/form/index.d.ts +338 -465
  454. package/lib/components/full-screen/full-screen.vue.d.ts +11 -63
  455. package/lib/components/full-screen/index.d.ts +1 -1
  456. package/lib/components/header-layout/header-layout.vue.d.ts +10 -11
  457. package/lib/components/header-layout/index.d.ts +17 -88
  458. package/lib/components/horizontal-menu/horizontal-menu.vue.d.ts +11 -78
  459. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  460. package/lib/components/horizontal-menu/index.d.ts +1 -1
  461. package/lib/components/icon/icon.vue.d.ts +9 -46
  462. package/lib/components/icon/index.d.ts +1 -1
  463. package/lib/components/icon-text/icon-text.vue.d.ts +9 -64
  464. package/lib/components/icon-text/index.d.ts +1 -1
  465. package/lib/components/iframe-layout/iframe-layout.vue.d.ts +12 -10
  466. package/lib/components/iframe-layout/iframe-layout.vue2.cjs +1 -1
  467. package/lib/components/iframe-layout/iframe-page.vue.d.ts +12 -10
  468. package/lib/components/iframe-layout/index.d.ts +1 -1
  469. package/lib/components/image/image.vue.d.ts +14 -79
  470. package/lib/components/image/image.vue2.cjs +1 -1
  471. package/lib/components/image/index.d.ts +106 -155
  472. package/lib/components/image/p-image.vue.d.ts +21 -47
  473. package/lib/components/image/p-image.vue2.cjs +1 -1
  474. package/lib/components/image-viewer/image-viewer.vue.d.ts +11 -52
  475. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  476. package/lib/components/image-viewer/index.d.ts +71 -128
  477. package/lib/components/input/index.d.ts +228 -253
  478. package/lib/components/input/input.vue.d.ts +14 -157
  479. package/lib/components/input/input.vue2.cjs +1 -1
  480. package/lib/components/input-number/index.d.ts +3 -3
  481. package/lib/components/input-number/input-number.vue.d.ts +13 -108
  482. package/lib/components/input-number/input-number.vue2.cjs +1 -1
  483. package/lib/components/link/index.d.ts +53 -114
  484. package/lib/components/link/link.vue.d.ts +19 -40
  485. package/lib/components/link/link.vue2.cjs +1 -1
  486. package/lib/components/list-cell/index.d.ts +1 -1
  487. package/lib/components/list-cell/list-cell.vue.d.ts +11 -30
  488. package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
  489. package/lib/components/logo/index.d.ts +1 -1
  490. package/lib/components/logo/logo.vue.d.ts +9 -24
  491. package/lib/components/md-code-demo/index.d.ts +1 -1
  492. package/lib/components/md-code-demo/md-code-demo.d.ts +1 -1
  493. package/lib/components/md-code-tabs/index.d.ts +1 -1
  494. package/lib/components/md-code-tabs/md-code-tabs.d.ts +1 -1
  495. package/lib/components/md-comment/index.d.ts +1 -1
  496. package/lib/components/md-comment/md-comment.vue.d.ts +1 -1
  497. package/lib/components/md-container/index.d.ts +11 -86
  498. package/lib/components/md-container/md-container.vue.d.ts +1 -1
  499. package/lib/components/md-container/toc.d.ts +1 -1
  500. package/lib/components/md-tabs/index.d.ts +1 -1
  501. package/lib/components/md-tabs/md-tabs.d.ts +1 -1
  502. package/lib/components/md-vue-playground/index.d.ts +1 -1
  503. package/lib/components/md-vue-playground/md-vue-playground.vue.d.ts +14 -26
  504. package/lib/components/menu/index.d.ts +203 -343
  505. package/lib/components/menu/menu-collapse-transition.vue.d.ts +1 -1
  506. package/lib/components/menu/menu-item-group.vue.d.ts +13 -9
  507. package/lib/components/menu/menu-item.vue.d.ts +11 -64
  508. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  509. package/lib/components/menu/menu.vue.d.ts +11 -64
  510. package/lib/components/menu/menu.vue2.cjs +1 -1
  511. package/lib/components/menu/sub-menu.vue.d.ts +11 -90
  512. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  513. package/lib/components/message/message.vue.d.ts +11 -104
  514. package/lib/components/message/message.vue2.cjs +1 -1
  515. package/lib/components/modal/index.d.ts +280 -253
  516. package/lib/components/modal/modal-footer-action.vue.d.ts +11 -33
  517. package/lib/components/modal/modal.vue.d.ts +63 -225
  518. package/lib/components/modal/modal.vue2.cjs +1 -1
  519. package/lib/components/multiple-tabs/index.d.ts +1 -1
  520. package/lib/components/multiple-tabs/multiple-tabs.vue.d.ts +11 -33
  521. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  522. package/lib/components/multiple-tabs/multiple-tabs.vue3.cjs +1 -1
  523. package/lib/components/multiple-tabs/tab-content.vue.d.ts +17 -33
  524. package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
  525. package/lib/components/overlay/index.d.ts +1 -1
  526. package/lib/components/overlay/overlay.vue.d.ts +18 -34
  527. package/lib/components/overlay/overlay.vue2.cjs +1 -1
  528. package/lib/components/page-wrapper/index.d.ts +15 -87
  529. package/lib/components/page-wrapper/page-wrapper.vue.d.ts +13 -9
  530. package/lib/components/pagination/components/jumper.vue.d.ts +12 -10
  531. package/lib/components/pagination/components/next.vue.d.ts +17 -28
  532. package/lib/components/pagination/components/pager.vue.d.ts +17 -30
  533. package/lib/components/pagination/components/pager.vue2.cjs +1 -1
  534. package/lib/components/pagination/components/prev.vue.d.ts +16 -22
  535. package/lib/components/pagination/components/prev.vue2.cjs +1 -1
  536. package/lib/components/pagination/components/sizes.vue.d.ts +18 -34
  537. package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
  538. package/lib/components/pagination/components/total.vue.d.ts +12 -10
  539. package/lib/components/pagination/index.d.ts +1 -1
  540. package/lib/components/pagination/pagination.vue.d.ts +11 -112
  541. package/lib/components/pagination/pagination.vue2.cjs +1 -1
  542. package/lib/components/popconfirm/index.d.ts +127 -159
  543. package/lib/components/popconfirm/popconfirm.vue.d.ts +52 -93
  544. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  545. package/lib/components/popover/index.d.ts +161 -192
  546. package/lib/components/popover/popover.vue2.cjs +1 -1
  547. package/lib/components/popper/arrow.vue.d.ts +14 -10
  548. package/lib/components/popper/content.vue2.cjs +1 -1
  549. package/lib/components/popper/index.d.ts +22 -94
  550. package/lib/components/popper/popper.vue.d.ts +14 -10
  551. package/lib/components/popper/trigger.vue.d.ts +24 -70
  552. package/lib/components/progress/index.d.ts +95 -141
  553. package/lib/components/progress/progress.vue.d.ts +10 -87
  554. package/lib/components/progress-i/index.d.ts +1 -1
  555. package/lib/components/progress-i/progress-i.vue.d.ts +1 -1
  556. package/lib/components/qrcode/index.d.ts +1 -1
  557. package/lib/components/qrcode/qrcode.vue.d.ts +24 -35
  558. package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
  559. package/lib/components/radio/index.d.ts +328 -611
  560. package/lib/components/radio/radio-button.vue.d.ts +10 -33
  561. package/lib/components/radio/radio-button.vue2.cjs +1 -1
  562. package/lib/components/radio/radio-group.vue.d.ts +23 -72
  563. package/lib/components/radio/radio-group.vue2.cjs +1 -1
  564. package/lib/components/radio/radio.vue.d.ts +11 -46
  565. package/lib/components/radio/radio.vue2.cjs +1 -1
  566. package/lib/components/result/index.d.ts +1 -1
  567. package/lib/components/result/result.vue.d.ts +15 -21
  568. package/lib/components/router-view-content/index.d.ts +1 -1
  569. package/lib/components/router-view-content/router-view-content.vue.d.ts +17 -42
  570. package/lib/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +1 -1
  571. package/lib/components/roving-focus-group/roving-focus-group.vue.d.ts +1 -1
  572. package/lib/components/roving-focus-group/roving-focus-item.vue.d.ts +1 -1
  573. package/lib/components/row/index.d.ts +31 -97
  574. package/lib/components/row/row.vue.d.ts +10 -27
  575. package/lib/components/scrollbar/bar.vue.d.ts +11 -34
  576. package/lib/components/scrollbar/index.d.ts +104 -158
  577. package/lib/components/scrollbar/scrollbar.vue.d.ts +11 -70
  578. package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
  579. package/lib/components/scrollbar/thumb.vue.d.ts +9 -34
  580. package/lib/components/search/index.d.ts +116 -169
  581. package/lib/components/search/search.vue.d.ts +15 -66
  582. package/lib/components/search/search.vue2.cjs +1 -1
  583. package/lib/components/select/group-item.vue.d.ts +1 -1
  584. package/lib/components/select/index.d.ts +356 -144
  585. package/lib/components/select/option-item.vue.d.ts +1 -1
  586. package/lib/components/select/select-dropdown.d.ts +1 -1
  587. package/lib/components/select/select.vue.d.ts +178 -72
  588. package/lib/components/select/useSelect.d.ts +175 -69
  589. package/lib/components/side-menu/index.d.ts +1 -1
  590. package/lib/components/side-menu/side-menu.vue.d.ts +47 -156
  591. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  592. package/lib/components/skeleton/index.d.ts +44 -108
  593. package/lib/components/skeleton/skeleton-item.vue.d.ts +13 -9
  594. package/lib/components/skeleton/skeleton.vue.d.ts +18 -34
  595. package/lib/components/slider/button.vue.d.ts +11 -28
  596. package/lib/components/slider/button.vue2.cjs +1 -1
  597. package/lib/components/slider/composables/use-slide.d.ts +88 -219
  598. package/lib/components/slider/index.d.ts +1 -1
  599. package/lib/components/slider/marker.d.ts +1 -1
  600. package/lib/components/slider/slider.vue.d.ts +11 -160
  601. package/lib/components/slider/slider.vue2.cjs +1 -1
  602. package/lib/components/slot/only-child.d.ts +1 -1
  603. package/lib/components/space/index.d.ts +3 -3
  604. package/lib/components/space/item.d.ts +1 -1
  605. package/lib/components/space/space.d.ts +4 -4
  606. package/lib/components/super-form/index.d.ts +372 -322
  607. package/lib/components/super-form/super-form-action.vue.d.ts +11 -46
  608. package/lib/components/super-form/super-form-item.vue.d.ts +9 -54
  609. package/lib/components/super-form/super-form.vue.d.ts +63 -294
  610. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  611. package/lib/components/super-form/types.d.ts +2 -2
  612. package/lib/components/switch/index.d.ts +7 -7
  613. package/lib/components/switch/switch.vue.d.ts +37 -146
  614. package/lib/components/switch/switch.vue2.cjs +1 -1
  615. package/lib/components/table/field.d.ts +2 -2
  616. package/lib/components/table/index.d.ts +1127 -945
  617. package/lib/components/table/table.vue.d.ts +77 -686
  618. package/lib/components/table/table.vue2.cjs +1 -1
  619. package/lib/components/table/use/use-columns.d.ts +30 -30
  620. package/lib/components/tabs/index.d.ts +77 -205
  621. package/lib/components/tabs/tab-bar.vue.d.ts +14 -45
  622. package/lib/components/tabs/tab-nav.vue.d.ts +29 -106
  623. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  624. package/lib/components/tabs/tab-pane.vue.d.ts +22 -33
  625. package/lib/components/tabs/tabs.vue.d.ts +13 -90
  626. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  627. package/lib/components/tag/index.d.ts +1 -1
  628. package/lib/components/tag/tag.vue.d.ts +11 -52
  629. package/lib/components/tag/tag.vue2.cjs +1 -1
  630. package/lib/components/time-picker/common/picker.vue.d.ts +89 -89
  631. package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
  632. package/lib/components/time-picker/composables/use-time-picker.d.ts +12 -12
  633. package/lib/components/time-picker/index.d.ts +2 -2
  634. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +20 -20
  635. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -1
  636. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +14 -14
  637. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
  638. package/lib/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +12 -12
  639. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  640. package/lib/components/time-picker/time-picker.d.ts +1 -1
  641. package/lib/components/time-select/time-select.vue.d.ts +43 -43
  642. package/lib/components/time-select/time-select.vue2.cjs +1 -1
  643. package/lib/components/tooltip/content.vue2.cjs +1 -1
  644. package/lib/components/tooltip/index.d.ts +329 -307
  645. package/lib/components/tooltip/tooltip.vue.d.ts +13 -288
  646. package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
  647. package/lib/components/tooltip/trigger.vue.d.ts +18 -34
  648. package/lib/components/tree/index.d.ts +538 -546
  649. package/lib/components/tree/tree-node-content.vue.d.ts +1 -1
  650. package/lib/components/tree/tree-node.vue.d.ts +3 -3
  651. package/lib/components/tree/tree.vue.d.ts +37 -176
  652. package/lib/components/tree/tree.vue2.cjs +1 -1
  653. package/lib/components/upload/index.d.ts +236 -233
  654. package/lib/components/upload/upload-content.vue.d.ts +46 -173
  655. package/lib/components/upload/upload-dragger.vue.d.ts +12 -10
  656. package/lib/components/upload/upload-dragger.vue2.cjs +1 -1
  657. package/lib/components/upload/upload-list.vue.d.ts +29 -36
  658. package/lib/components/upload/upload-list.vue2.cjs +1 -1
  659. package/lib/components/upload/upload.vue.d.ts +47 -185
  660. package/lib/components/upload/use-handlers.d.ts +14 -3
  661. package/lib/components/verify-code/index.d.ts +1 -1
  662. package/lib/components/verify-code/useImageVerify.cjs +1 -1
  663. package/lib/components/verify-code/verify-code.vue.d.ts +16 -22
  664. package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
  665. package/lib/components/virtual-list/builders/build-grid.d.ts +3 -3
  666. package/lib/components/virtual-list/builders/build-list.d.ts +5 -5
  667. package/lib/components/virtual-list/components/dynamic-size-grid.d.ts +3 -3
  668. package/lib/components/virtual-list/components/dynamic-size-list.d.ts +5 -5
  669. package/lib/components/virtual-list/components/fixed-size-grid.d.ts +3 -3
  670. package/lib/components/virtual-list/components/fixed-size-list.d.ts +5 -5
  671. package/lib/components/virtual-list/components/scrollbar.d.ts +1 -1
  672. package/lib/components/virtual-list/props.d.ts +3 -3
  673. package/lib/package.json.cjs +1 -1
  674. package/lib/package.json.d.ts +11 -11
  675. package/package.json +14 -14
  676. package/web-types.json +1 -1
  677. package/es/app-components/super-form/types.d.ts +0 -177
  678. package/es/components/collection/collection.d.ts +0 -243
  679. package/es/components/popover/popover.vue.d.ts +0 -158
  680. package/es/components/popper/content.vue.d.ts +0 -184
  681. package/es/components/roving-focus-group/types.d.ts +0 -236
  682. package/es/components/tooltip/content.vue.d.ts +0 -210
  683. package/lib/app-components/super-form/types.d.ts +0 -177
  684. package/lib/components/collection/collection.d.ts +0 -243
  685. package/lib/components/popover/popover.vue.d.ts +0 -158
  686. package/lib/components/popper/content.vue.d.ts +0 -184
  687. package/lib/components/roving-focus-group/types.d.ts +0 -236
  688. package/lib/components/tooltip/content.vue.d.ts +0 -210
@@ -29,83 +29,7 @@ export interface InputProps {
29
29
  validateEvent?: boolean;
30
30
  inputStyle?: StyleValue;
31
31
  }
32
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
33
- id: {
34
- type: globalThis.PropType<string>;
35
- };
36
- size: {
37
- type: globalThis.PropType<"default" | "small" | "large">;
38
- };
39
- disabled: {
40
- type: globalThis.PropType<boolean>;
41
- };
42
- modelValue: {
43
- type: globalThis.PropType<string | number>;
44
- };
45
- type: {
46
- type: globalThis.PropType<string>;
47
- };
48
- resize: {
49
- type: globalThis.PropType<"both" | "none" | "vertical" | "horizontal">;
50
- };
51
- autosize: {
52
- type: globalThis.PropType<boolean | {
53
- minRows?: number | undefined;
54
- maxRows?: number | undefined;
55
- }>;
56
- };
57
- autocomplete: {
58
- type: globalThis.PropType<string>;
59
- };
60
- formatter: {
61
- type: globalThis.PropType<Function>;
62
- };
63
- parser: {
64
- type: globalThis.PropType<Function>;
65
- };
66
- placeholder: {
67
- type: globalThis.PropType<string>;
68
- };
69
- form: {
70
- type: globalThis.PropType<string>;
71
- };
72
- readonly: {
73
- type: globalThis.PropType<boolean>;
74
- };
75
- clearable: {
76
- type: globalThis.PropType<boolean>;
77
- };
78
- showPassword: {
79
- type: globalThis.PropType<boolean>;
80
- };
81
- showWordLimit: {
82
- type: globalThis.PropType<boolean>;
83
- };
84
- suffixIcon: {
85
- type: globalThis.PropType<string | IconProps>;
86
- };
87
- prefixIcon: {
88
- type: globalThis.PropType<string | IconProps>;
89
- };
90
- clearIcon: {
91
- type: globalThis.PropType<string | IconProps>;
92
- };
93
- containerRole: {
94
- type: globalThis.PropType<string>;
95
- };
96
- label: {
97
- type: globalThis.PropType<string>;
98
- };
99
- tabindex: {
100
- type: globalThis.PropType<string | number>;
101
- };
102
- validateEvent: {
103
- type: globalThis.PropType<boolean>;
104
- };
105
- inputStyle: {
106
- type: globalThis.PropType<StyleValue>;
107
- };
108
- }, {
32
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<InputProps>, {
109
33
  /** @description HTML input element */
110
34
  input: import("vue").ShallowRef<HTMLInputElement | undefined>;
111
35
  /** @description HTML textarea element */
@@ -145,90 +69,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
145
69
  suffixClick: (value: any) => void;
146
70
  prefixClick: (value: any) => void;
147
71
  enter: () => void;
148
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<{
149
- id: {
150
- type: globalThis.PropType<string>;
151
- };
152
- size: {
153
- type: globalThis.PropType<"default" | "small" | "large">;
154
- };
155
- disabled: {
156
- type: globalThis.PropType<boolean>;
157
- };
158
- modelValue: {
159
- type: globalThis.PropType<string | number>;
160
- };
161
- type: {
162
- type: globalThis.PropType<string>;
163
- };
164
- resize: {
165
- type: globalThis.PropType<"both" | "none" | "vertical" | "horizontal">;
166
- };
167
- autosize: {
168
- type: globalThis.PropType<boolean | {
169
- minRows?: number | undefined;
170
- maxRows?: number | undefined;
171
- }>;
172
- };
173
- autocomplete: {
174
- type: globalThis.PropType<string>;
175
- };
176
- formatter: {
177
- type: globalThis.PropType<Function>;
178
- };
179
- parser: {
180
- type: globalThis.PropType<Function>;
181
- };
182
- placeholder: {
183
- type: globalThis.PropType<string>;
184
- };
185
- form: {
186
- type: globalThis.PropType<string>;
187
- };
188
- readonly: {
189
- type: globalThis.PropType<boolean>;
190
- };
191
- clearable: {
192
- type: globalThis.PropType<boolean>;
193
- };
194
- showPassword: {
195
- type: globalThis.PropType<boolean>;
196
- };
197
- showWordLimit: {
198
- type: globalThis.PropType<boolean>;
199
- };
200
- suffixIcon: {
201
- type: globalThis.PropType<string | IconProps>;
202
- };
203
- prefixIcon: {
204
- type: globalThis.PropType<string | IconProps>;
205
- };
206
- clearIcon: {
207
- type: globalThis.PropType<string | IconProps>;
208
- };
209
- containerRole: {
210
- type: globalThis.PropType<string>;
211
- };
212
- label: {
213
- type: globalThis.PropType<string>;
214
- };
215
- tabindex: {
216
- type: globalThis.PropType<string | number>;
217
- };
218
- validateEvent: {
219
- type: globalThis.PropType<boolean>;
220
- };
221
- inputStyle: {
222
- type: globalThis.PropType<StyleValue>;
223
- };
224
- }>> & {
72
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<InputProps>>> & {
73
+ onChange?: ((value: string) => any) | undefined;
74
+ onInput?: ((value: string) => any) | undefined;
75
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
225
76
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
226
77
  onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
227
78
  onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
228
79
  onFocus?: ((evt: FocusEvent) => any) | undefined;
229
- onBlur?: ((evt: FocusEvent) => any) | undefined;
230
- onChange?: ((value: string) => any) | undefined;
231
- onInput?: ((value: string) => any) | undefined;
232
80
  onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
233
81
  onMouseenter?: ((evt: MouseEvent) => any) | undefined;
234
82
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
@@ -244,6 +92,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
244
92
  append?(_: {}): any;
245
93
  }>;
246
94
  export default _default;
95
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
96
+ type __VLS_TypePropsToRuntimeProps<T> = {
97
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
98
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
99
+ } : {
100
+ type: import('vue').PropType<T[K]>;
101
+ required: true;
102
+ };
103
+ };
247
104
  type __VLS_WithTemplateSlots<T, S> = T & {
248
105
  new (): {
249
106
  $slots: S;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),F=require("@vft/constants"),ee=require("@vft/use"),r=require("@vft/utils");require("../form/index.cjs");const w=require("../icon/index.cjs"),ne=require("@vueuse/core"),M=require("../../utils/error.cjs");require("../../utils/ns-cover.cjs");const Ve=require("lodash"),te=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const oe=require("./utils.cjs"),ae=require("../form/hooks/use-form-item.cjs"),le=require("../form/hooks/use-form-common-props.cjs"),Se=["role"],ze=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],Ie=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],Ne=e.defineComponent({__name:"input",props:{id:{},size:{default:""},disabled:{type:Boolean},modelValue:{},type:{default:"text"},resize:{},autosize:{type:[Object,Boolean],default:!1},autocomplete:{default:"off"},formatter:{},parser:{},placeholder:{},form:{},readonly:{type:Boolean},clearable:{type:Boolean},showPassword:{type:Boolean},showWordLimit:{type:Boolean},suffixIcon:{},prefixIcon:{},clearIcon:{},containerRole:{},label:{},tabindex:{default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{}},emits:{[F.UPDATE_MODEL_EVENT]:t=>r.isString(t),input:t=>r.isString(t),change:t=>r.isString(t),suffixClick:t=>r.isString(t),prefixClick:t=>r.isString(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,enter:()=>!0,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},setup(t,{expose:se,emit:l}){const y=e.useAttrs(),d=e.useSlots(),A=e.computed(()=>{const n={};return t.containerRole==="combobox"&&(n["aria-haspopup"]=y["aria-haspopup"],n["aria-owns"]=y["aria-owns"],n["aria-expanded"]=y["aria-expanded"]),n}),re=e.computed(()=>[t.type==="textarea"?O.b():o.b(),o.m(ie.value),o.is("disabled",f.value),o.is("exceed",ve.value),o.is("focus",v.value),{[o.b("group")]:d.prepend||d.append,[o.bm("group","append")]:d.append,[o.bm("group","prepend")]:d.prepend,[o.m("prefix")]:d.prefix||t.prefixIcon,[o.m("suffix")]:d.suffix||t.suffixIcon||t.clearable||t.showPassword,[o.bm("suffix","password-clear")]:B.value&&P.value},y.class]),ue=e.getCurrentInstance(),ce=e.computed(()=>[o.e("wrapper"),o.is("focus",v.value)]),u=ee.useAttrs({excludeKeys:e.computed(()=>Object.keys(A.value))}),{form:S,formItem:s}=ae.useFormItem(),{inputId:D}=ae.useFormItemInputId(ue.props,{formItemContext:s}),ie=le.useFormSize(),f=le.useFormDisabled(),o=te.useNamespace("input"),O=te.useNamespace("textarea"),x=e.shallowRef(),m=e.shallowRef(),v=e.ref(!1),z=e.ref(!1),h=e.ref(!1),E=e.ref(!1),R=e.ref(),I=e.shallowRef(t.inputStyle),k=e.computed(()=>x.value||m.value),N=e.computed(()=>r.singleAttrToObj(t.prefixIcon,"icon",{size:16})),K=e.computed(()=>r.singleAttrToObj(t.suffixIcon,"icon",{size:16})),de=e.computed(()=>r.singleAttrToObj(t.clearIcon,"icon",{icon:"icon-circle-close",size:16})),$=e.computed(()=>(S==null?void 0:S.statusIcon)??!1),g=e.computed(()=>(s==null?void 0:s.validateState)||""),j=e.computed(()=>g.value&&{validating:"icon-loading",success:"icon-circle-check",error:"icon-circle-close"}[g.value]),fe=e.computed(()=>E.value?{icon:"icon-view",size:16}:{icon:"icon-hide",size:16}),me=e.computed(()=>[y.style,t.inputStyle]),L=e.computed(()=>[t.inputStyle,I.value,{resize:t.resize}]),i=e.computed(()=>Ve.isNil(t.modelValue)?"":String(t.modelValue)),B=e.computed(()=>t.clearable&&!f.value&&!t.readonly&&!!i.value&&(v.value||z.value)),P=e.computed(()=>t.showPassword&&!f.value&&!t.readonly&&!!i.value&&(!!i.value||v.value)),p=e.computed(()=>t.showWordLimit&&!!u.value.maxlength&&(t.type==="text"||t.type==="textarea")&&!f.value&&!t.readonly&&!t.showPassword),T=e.computed(()=>Array.from(i.value).length),ve=e.computed(()=>!!p.value&&T.value>Number(u.value.maxlength)),pe=e.computed(()=>!!d.suffix||!!t.suffixIcon||B.value||t.showPassword||p.value||!!g.value&&$.value),[ye,he]=ee.useCursor(x);ne.useResizeObserver(m,n=>{if(!p.value||t.resize!=="both")return;const a=n[0],{width:c}=a.contentRect;R.value={right:`calc(100% - ${c+15+6}px)`}});const V=()=>{if(!(!ne.isClient||t.type!=="textarea"))if(t.autosize){const n=r.isObject(t.autosize)?t.autosize.minRows:void 0,a=r.isObject(t.autosize)?t.autosize.maxRows:void 0;I.value={...oe.calcTextareaHeight(m.value,n,a)}}else I.value={minHeight:oe.calcTextareaHeight(m.value).minHeight}},b=()=>{const n=k.value;!n||n.value===i.value||(n.value=i.value)},q=async n=>{ye();let{value:a}=n.target;if(u.value.maxlength&&a.length>=u.value.maxlength&&(a=a.slice(0,Number(u.value.maxlength))),t.formatter&&(a=t.parser?t.parser(a):a,a=t.formatter(a)),!h.value){if(a===i.value){b();return}l(F.UPDATE_MODEL_EVENT,a),l("input",a),await e.nextTick(),b(),he()}},W=n=>{l("change",n.target.value)},ke=()=>{l("suffixClick",t.modelValue)},ge=()=>{l("prefixClick",t.modelValue)},H=n=>{l("compositionstart",n),h.value=!0},be=n=>/([(\uAC00-\uD7AF)|\u3130-\u318F])+/.test(n),U=n=>{var C;l("compositionupdate",n);const a=(C=n.target)==null?void 0:C.value,c=a[a.length-1]||"";h.value=!be(c)},G=n=>{l("compositionend",n),h.value&&(h.value=!1,q(n))},Ce=()=>{E.value=!E.value,J()},J=async()=>{var n;await e.nextTick(),(n=k.value)==null||n.focus()},we=()=>{var n;return(n=k.value)==null?void 0:n.blur()},Q=n=>{v.value=!0,l("focus",n)},X=n=>{var a;v.value=!1,l("blur",n),t.validateEvent&&((a=s==null?void 0:s.validate)==null||a.call(s,"blur").catch(c=>M.debugWarn(c)))},xe=n=>{z.value=!1,l("mouseleave",n)},Ee=n=>{z.value=!0,l("mouseenter",n)},Y=n=>{let a=n.key;if(n.target.type==="number"&&["e","+","-0","E"].includes(a))return n.returnValue=!1,!1;l("keydown",n)},Be=()=>{var n;(n=k.value)==null||n.select()},Z=()=>{l(F.UPDATE_MODEL_EVENT,""),l("change",""),l("clear"),l("input","")};return e.watch(()=>t.modelValue,()=>{var n;e.nextTick(()=>V()),t.validateEvent&&((n=s==null?void 0:s.validate)==null||n.call(s,"change").catch(a=>M.debugWarn(a)))}),e.watch(i,()=>b()),e.watch(()=>t.type,async()=>{await e.nextTick(),b(),V()}),e.onMounted(()=>{!t.formatter&&t.parser&&M.debugWarn("VftInput","If you set the parser, you also need to set the formatter."),b(),e.nextTick(V)}),se({input:x,textarea:m,ref:k,textareaStyle:L,autosize:t.autosize,focus:J,blur:we,select:Be,clear:Z,resizeTextarea:V}),(n,a)=>{var c,C,_;return e.withDirectives((e.openBlock(),e.createElementBlock("div",e.mergeProps(A.value,{class:re.value,style:me.value,role:n.containerRole,onMouseenter:Ee,onMouseleave:xe}),[n.type!=="textarea"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.$slots.prepend?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o).be("group","prepend"))},[e.renderSlot(n.$slots,"prepend")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(ce.value)},[n.$slots.prefix||(c=N.value)!=null&&c.icon?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(o).e("prefix"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("prefix-inner")),onClick:ge},[e.renderSlot(n.$slots,"prefix"),(C=N.value)!=null&&C.icon?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:0,pointer:""},N.value,{class:e.unref(o).e("icon")}),null,16,["class"])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({id:e.unref(D),ref_key:"input",ref:x,class:e.unref(o).e("inner")},e.unref(u),{type:n.showPassword?E.value?"text":"password":n.type,disabled:e.unref(f),formatter:n.formatter,parser:n.parser,readonly:n.readonly,autocomplete:n.autocomplete,tabindex:n.tabindex,"aria-label":n.label,placeholder:n.placeholder,style:n.inputStyle,form:n.form,onCompositionstart:H,onCompositionupdate:U,onCompositionend:G,onInput:q,onFocus:Q,onBlur:X,onChange:W,onKeydown:Y,onKeyup:a[0]||(a[0]=e.withKeys(Pe=>l("enter"),["enter"]))}),null,16,ze),pe.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(o).e("suffix"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("suffix-inner")),onClick:ke},[!B.value||!P.value||!p.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(n.$slots,"suffix"),(_=K.value)!=null&&_.icon?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:0},K.value,{class:e.unref(o).e("icon")}),null,16,["class"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:1,pointer:"",class:[e.unref(o).e("icon"),e.unref(o).e("clear")]},de.value,{onMousedown:e.withModifiers(e.unref(r.noop),["prevent"]),onClick:e.withModifiers(Z,["stop"])}),null,16,["class","onMousedown","onClick"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:2},fe.value,{class:[e.unref(o).e("icon"),e.unref(o).e("password")],onClick:Ce}),null,16,["class"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(e.unref(o).e("count"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("count-inner"))},e.toDisplayString(T.value)+" / "+e.toDisplayString(e.unref(u).maxlength),3)],2)):e.createCommentVNode("",!0),g.value&&j.value&&$.value?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),{key:4,icon:j.value,class:e.normalizeClass([e.unref(o).e("icon"),e.unref(o).e("validateIcon"),e.unref(o).is("loading",g.value==="validating")])},null,8,["icon","class"])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)],2),n.$slots.append?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(o).be("group","append"))},[e.renderSlot(n.$slots,"append")],2)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("textarea",e.mergeProps({id:e.unref(D),ref_key:"textarea",ref:m,class:e.unref(O).e("inner")},e.unref(u),{tabindex:n.tabindex,disabled:e.unref(f),readonly:n.readonly,autocomplete:n.autocomplete,style:L.value,"aria-label":n.label,placeholder:n.placeholder,form:n.form,onCompositionstart:H,onCompositionupdate:U,onCompositionend:G,onInput:q,onFocus:Q,onBlur:X,onChange:W,onKeydown:Y}),null,16,Ie),p.value?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(R.value),class:e.normalizeClass(e.unref(o).e("count"))},e.toDisplayString(T.value)+" / "+e.toDisplayString(e.unref(u).maxlength),7)):e.createCommentVNode("",!0)],64))],16,Se)),[[e.vShow,n.type!=="hidden"]])}}});exports.default=Ne;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),F=require("@vft/constants"),ee=require("@vft/use"),r=require("@vft/utils");require("../form/index.cjs");const w=require("../icon/index.cjs"),te=require("@vueuse/core"),M=require("../../utils/error.cjs");require("../../utils/ns-cover.cjs");const Se=require("lodash"),ne=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const oe=require("./utils.cjs"),ae=require("../form/hooks/use-form-item.cjs"),le=require("../form/hooks/use-form-common-props.cjs"),ze=["role"],Ie=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],Ne=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],Pe=e.defineComponent({__name:"input",props:{id:{},size:{default:""},disabled:{type:Boolean},modelValue:{},type:{default:"text"},resize:{},autosize:{type:[Object,Boolean],default:!1},autocomplete:{default:"off"},formatter:{},parser:{},placeholder:{},form:{},readonly:{type:Boolean},clearable:{type:Boolean},showPassword:{type:Boolean},showWordLimit:{type:Boolean},suffixIcon:{},prefixIcon:{},clearIcon:{},containerRole:{},label:{},tabindex:{default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:[Boolean,null,String,Object,Array]}},emits:{[F.UPDATE_MODEL_EVENT]:n=>r.isString(n),input:n=>r.isString(n),change:n=>r.isString(n),suffixClick:n=>r.isString(n),prefixClick:n=>r.isString(n),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0,enter:()=>!0,mouseleave:n=>n instanceof MouseEvent,mouseenter:n=>n instanceof MouseEvent,keydown:n=>n instanceof Event,compositionstart:n=>n instanceof CompositionEvent,compositionupdate:n=>n instanceof CompositionEvent,compositionend:n=>n instanceof CompositionEvent},setup(n,{expose:se,emit:re}){const l=re,y=e.useAttrs(),d=e.useSlots(),A=e.computed(()=>{const t={};return n.containerRole==="combobox"&&(t["aria-haspopup"]=y["aria-haspopup"],t["aria-owns"]=y["aria-owns"],t["aria-expanded"]=y["aria-expanded"]),t}),ue=e.computed(()=>[n.type==="textarea"?O.b():o.b(),o.m(de.value),o.is("disabled",m.value),o.is("exceed",ve.value),o.is("focus",p.value),{[o.b("group")]:d.prepend||d.append,[o.bm("group","append")]:d.append,[o.bm("group","prepend")]:d.prepend,[o.m("prefix")]:d.prefix||n.prefixIcon,[o.m("suffix")]:d.suffix||n.suffixIcon||n.clearable||n.showPassword,[o.bm("suffix","password-clear")]:B.value&&P.value},y.class]),ie=e.getCurrentInstance(),ce=e.computed(()=>[o.e("wrapper"),o.is("focus",p.value)]),u=ee.useAttrs({excludeKeys:e.computed(()=>Object.keys(A.value))}),{form:S,formItem:s}=ae.useFormItem(),{inputId:D}=ae.useFormItemInputId(ie.props,{formItemContext:s}),de=le.useFormSize(),m=le.useFormDisabled(),o=ne.useNamespace("input"),O=ne.useNamespace("textarea"),x=e.shallowRef(),f=e.shallowRef(),p=e.ref(!1),z=e.ref(!1),h=e.ref(!1),E=e.ref(!1),R=e.ref(),I=e.shallowRef(n.inputStyle),g=e.computed(()=>x.value||f.value),N=e.computed(()=>r.singleAttrToObj(n.prefixIcon,"icon",{size:16})),K=e.computed(()=>r.singleAttrToObj(n.suffixIcon,"icon",{size:16})),me=e.computed(()=>r.singleAttrToObj(n.clearIcon,"icon",{icon:"icon-circle-close",size:16})),$=e.computed(()=>(S==null?void 0:S.statusIcon)??!1),k=e.computed(()=>(s==null?void 0:s.validateState)||""),j=e.computed(()=>k.value&&{validating:"icon-loading",success:"icon-circle-check",error:"icon-circle-close"}[k.value]),fe=e.computed(()=>E.value?{icon:"icon-view",size:16}:{icon:"icon-hide",size:16}),pe=e.computed(()=>[y.style,n.inputStyle]),L=e.computed(()=>[n.inputStyle,I.value,{resize:n.resize}]),c=e.computed(()=>Se.isNil(n.modelValue)?"":String(n.modelValue)),B=e.computed(()=>n.clearable&&!m.value&&!n.readonly&&!!c.value&&(p.value||z.value)),P=e.computed(()=>n.showPassword&&!m.value&&!n.readonly&&!!c.value&&(!!c.value||p.value)),v=e.computed(()=>n.showWordLimit&&!!u.value.maxlength&&(n.type==="text"||n.type==="textarea")&&!m.value&&!n.readonly&&!n.showPassword),T=e.computed(()=>Array.from(c.value).length),ve=e.computed(()=>!!v.value&&T.value>Number(u.value.maxlength)),ye=e.computed(()=>!!d.suffix||!!n.suffixIcon||B.value||n.showPassword||v.value||!!k.value&&$.value),[he,ge]=ee.useCursor(x);te.useResizeObserver(f,t=>{if(!v.value||n.resize!=="both")return;const a=t[0],{width:i}=a.contentRect;R.value={right:`calc(100% - ${i+15+6}px)`}});const V=()=>{if(!(!te.isClient||n.type!=="textarea"))if(n.autosize){const t=r.isObject(n.autosize)?n.autosize.minRows:void 0,a=r.isObject(n.autosize)?n.autosize.maxRows:void 0;I.value={...oe.calcTextareaHeight(f.value,t,a)}}else I.value={minHeight:oe.calcTextareaHeight(f.value).minHeight}},b=()=>{const t=g.value;!t||t.value===c.value||(t.value=c.value)},q=async t=>{he();let{value:a}=t.target;if(u.value.maxlength&&a.length>=u.value.maxlength&&(a=a.slice(0,Number(u.value.maxlength))),n.formatter&&(a=n.parser?n.parser(a):a,a=n.formatter(a)),!h.value){if(a===c.value){b();return}l(F.UPDATE_MODEL_EVENT,a),l("input",a),await e.nextTick(),b(),ge()}},W=t=>{l("change",t.target.value)},ke=()=>{l("suffixClick",n.modelValue)},be=()=>{l("prefixClick",n.modelValue)},H=t=>{l("compositionstart",t),h.value=!0},Ce=t=>/([(\uAC00-\uD7AF)|\u3130-\u318F])+/.test(t),U=t=>{var C;l("compositionupdate",t);const a=(C=t.target)==null?void 0:C.value,i=a[a.length-1]||"";h.value=!Ce(i)},G=t=>{l("compositionend",t),h.value&&(h.value=!1,q(t))},we=()=>{E.value=!E.value,J()},J=async()=>{var t;await e.nextTick(),(t=g.value)==null||t.focus()},xe=()=>{var t;return(t=g.value)==null?void 0:t.blur()},Q=t=>{p.value=!0,l("focus",t)},X=t=>{var a;p.value=!1,l("blur",t),n.validateEvent&&((a=s==null?void 0:s.validate)==null||a.call(s,"blur").catch(i=>M.debugWarn(i)))},Ee=t=>{z.value=!1,l("mouseleave",t)},Be=t=>{z.value=!0,l("mouseenter",t)},Y=t=>{let a=t.key;if(t.target.type==="number"&&["e","+","-0","E"].includes(a))return t.returnValue=!1,!1;l("keydown",t)},Ve=()=>{var t;(t=g.value)==null||t.select()},Z=()=>{l(F.UPDATE_MODEL_EVENT,""),l("change",""),l("clear"),l("input","")};return e.watch(()=>n.modelValue,()=>{var t;e.nextTick(()=>V()),n.validateEvent&&((t=s==null?void 0:s.validate)==null||t.call(s,"change").catch(a=>M.debugWarn(a)))}),e.watch(c,()=>b()),e.watch(()=>n.type,async()=>{await e.nextTick(),b(),V()}),e.onMounted(()=>{!n.formatter&&n.parser&&M.debugWarn("VftInput","If you set the parser, you also need to set the formatter."),b(),e.nextTick(V)}),se({input:x,textarea:f,ref:g,textareaStyle:L,autosize:n.autosize,focus:J,blur:xe,select:Ve,clear:Z,resizeTextarea:V}),(t,a)=>{var i,C,_;return e.withDirectives((e.openBlock(),e.createElementBlock("div",e.mergeProps(A.value,{class:ue.value,style:pe.value,role:t.containerRole,onMouseenter:Be,onMouseleave:Ee}),[t.type!=="textarea"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.$slots.prepend?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o).be("group","prepend"))},[e.renderSlot(t.$slots,"prepend")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(ce.value)},[t.$slots.prefix||(i=N.value)!=null&&i.icon?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(o).e("prefix"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("prefix-inner")),onClick:be},[e.renderSlot(t.$slots,"prefix"),(C=N.value)!=null&&C.icon?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:0,pointer:""},N.value,{class:e.unref(o).e("icon")}),null,16,["class"])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({id:e.unref(D),ref_key:"input",ref:x,class:e.unref(o).e("inner")},e.unref(u),{type:t.showPassword?E.value?"text":"password":t.type,disabled:e.unref(m),formatter:t.formatter,parser:t.parser,readonly:t.readonly,autocomplete:t.autocomplete,tabindex:t.tabindex,"aria-label":t.label,placeholder:t.placeholder,style:t.inputStyle,form:t.form,onCompositionstart:H,onCompositionupdate:U,onCompositionend:G,onInput:q,onFocus:Q,onBlur:X,onChange:W,onKeydown:Y,onKeyup:a[0]||(a[0]=e.withKeys(Te=>l("enter"),["enter"]))}),null,16,Ie),ye.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(o).e("suffix"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("suffix-inner")),onClick:ke},[!B.value||!P.value||!v.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(t.$slots,"suffix"),(_=K.value)!=null&&_.icon?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:0},K.value,{class:e.unref(o).e("icon")}),null,16,["class"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:1,pointer:"",class:[e.unref(o).e("icon"),e.unref(o).e("clear")]},me.value,{onMousedown:e.withModifiers(e.unref(r.noop),["prevent"]),onClick:e.withModifiers(Z,["stop"])}),null,16,["class","onMousedown"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:2},fe.value,{class:[e.unref(o).e("icon"),e.unref(o).e("password")],onClick:we}),null,16,["class"])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(e.unref(o).e("count"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("count-inner"))},e.toDisplayString(T.value)+" / "+e.toDisplayString(e.unref(u).maxlength),3)],2)):e.createCommentVNode("",!0),k.value&&j.value&&$.value?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),{key:4,icon:j.value,class:e.normalizeClass([e.unref(o).e("icon"),e.unref(o).e("validateIcon"),e.unref(o).is("loading",k.value==="validating")])},null,8,["icon","class"])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)],2),t.$slots.append?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(o).be("group","append"))},[e.renderSlot(t.$slots,"append")],2)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("textarea",e.mergeProps({id:e.unref(D),ref_key:"textarea",ref:f,class:e.unref(O).e("inner")},e.unref(u),{tabindex:t.tabindex,disabled:e.unref(m),readonly:t.readonly,autocomplete:t.autocomplete,style:L.value,"aria-label":t.label,placeholder:t.placeholder,form:t.form,onCompositionstart:H,onCompositionupdate:U,onCompositionend:G,onInput:q,onFocus:Q,onBlur:X,onChange:W,onKeydown:Y}),null,16,Ne),v.value?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(R.value),class:e.normalizeClass(e.unref(o).e("count"))},e.toDisplayString(T.value)+" / "+e.toDisplayString(e.unref(u).maxlength),7)):e.createCommentVNode("",!0)],64))],16,ze)),[[e.vShow,t.type!=="hidden"]])}}});exports.default=Pe;
@@ -61,7 +61,7 @@ export declare const VftInputNumber: import("vft/es/utils").SFCWithInstall<impor
61
61
  input: (val: number | null | undefined) => void;
62
62
  blur: (e: FocusEvent) => void;
63
63
  focus: (e: FocusEvent) => void;
64
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<{
64
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
65
65
  id: {
66
66
  type: globalThis.PropType<string>;
67
67
  };
@@ -114,10 +114,10 @@ export declare const VftInputNumber: import("vft/es/utils").SFCWithInstall<impor
114
114
  type: globalThis.PropType<boolean>;
115
115
  };
116
116
  }>> & {
117
- onFocus?: ((e: FocusEvent) => any) | undefined;
118
- onBlur?: ((e: FocusEvent) => any) | undefined;
119
117
  onChange?: ((cur: number | undefined, prev: number | undefined) => any) | undefined;
120
118
  onInput?: ((val: number | null | undefined) => any) | undefined;
119
+ onBlur?: ((e: FocusEvent) => any) | undefined;
120
+ onFocus?: ((e: FocusEvent) => any) | undefined;
121
121
  "onUpdate:modelValue"?: ((val: number | undefined) => any) | undefined;
122
122
  }, {}, {}>> & Record<string, any>;
123
123
  export default VftInputNumber;
@@ -68,59 +68,7 @@ export interface InputNumberProps {
68
68
  */
69
69
  validateEvent?: boolean;
70
70
  }
71
- declare const _default: import("vue").DefineComponent<{
72
- id: {
73
- type: globalThis.PropType<string>;
74
- };
75
- step: {
76
- type: globalThis.PropType<number>;
77
- };
78
- stepStrictly: {
79
- type: globalThis.PropType<boolean>;
80
- };
81
- max: {
82
- type: globalThis.PropType<number>;
83
- };
84
- min: {
85
- type: globalThis.PropType<number>;
86
- };
87
- modelValue: {
88
- type: globalThis.PropType<number>;
89
- };
90
- readonly: {
91
- type: globalThis.PropType<boolean>;
92
- };
93
- disabled: {
94
- type: globalThis.PropType<boolean>;
95
- };
96
- size: {
97
- type: globalThis.PropType<"default" | "small" | "large">;
98
- };
99
- controls: {
100
- type: globalThis.PropType<boolean>;
101
- };
102
- controlsPosition: {
103
- type: globalThis.PropType<"" | "right">;
104
- };
105
- valueOnClear: {
106
- type: globalThis.PropType<string | number | null>;
107
- };
108
- name: {
109
- type: globalThis.PropType<string>;
110
- };
111
- label: {
112
- type: globalThis.PropType<string>;
113
- };
114
- placeholder: {
115
- type: globalThis.PropType<string>;
116
- };
117
- precision: {
118
- type: globalThis.PropType<number>;
119
- };
120
- validateEvent: {
121
- type: globalThis.PropType<boolean>;
122
- };
123
- }, {
71
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<InputNumberProps>, {
124
72
  /** @description get focus the input component */
125
73
  focus: () => void;
126
74
  /** @description remove focus the input component */
@@ -131,63 +79,20 @@ declare const _default: import("vue").DefineComponent<{
131
79
  input: (val: number | null | undefined) => void;
132
80
  blur: (e: FocusEvent) => void;
133
81
  focus: (e: FocusEvent) => void;
134
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<{
135
- id: {
136
- type: globalThis.PropType<string>;
137
- };
138
- step: {
139
- type: globalThis.PropType<number>;
140
- };
141
- stepStrictly: {
142
- type: globalThis.PropType<boolean>;
143
- };
144
- max: {
145
- type: globalThis.PropType<number>;
146
- };
147
- min: {
148
- type: globalThis.PropType<number>;
149
- };
150
- modelValue: {
151
- type: globalThis.PropType<number>;
152
- };
153
- readonly: {
154
- type: globalThis.PropType<boolean>;
155
- };
156
- disabled: {
157
- type: globalThis.PropType<boolean>;
158
- };
159
- size: {
160
- type: globalThis.PropType<"default" | "small" | "large">;
161
- };
162
- controls: {
163
- type: globalThis.PropType<boolean>;
164
- };
165
- controlsPosition: {
166
- type: globalThis.PropType<"" | "right">;
167
- };
168
- valueOnClear: {
169
- type: globalThis.PropType<string | number | null>;
170
- };
171
- name: {
172
- type: globalThis.PropType<string>;
173
- };
174
- label: {
175
- type: globalThis.PropType<string>;
176
- };
177
- placeholder: {
178
- type: globalThis.PropType<string>;
179
- };
180
- precision: {
181
- type: globalThis.PropType<number>;
182
- };
183
- validateEvent: {
184
- type: globalThis.PropType<boolean>;
185
- };
186
- }>> & {
187
- onFocus?: ((e: FocusEvent) => any) | undefined;
188
- onBlur?: ((e: FocusEvent) => any) | undefined;
82
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<InputNumberProps>>> & {
189
83
  onChange?: ((cur: number | undefined, prev: number | undefined) => any) | undefined;
190
84
  onInput?: ((val: number | null | undefined) => any) | undefined;
85
+ onBlur?: ((e: FocusEvent) => any) | undefined;
86
+ onFocus?: ((e: FocusEvent) => any) | undefined;
191
87
  "onUpdate:modelValue"?: ((val: number | undefined) => any) | undefined;
192
88
  }, {}, {}>;
193
89
  export default _default;
90
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
91
+ type __VLS_TypePropsToRuntimeProps<T> = {
92
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
93
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
94
+ } : {
95
+ type: import('vue').PropType<T[K]>;
96
+ required: true;
97
+ };
98
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),l=require("@vft/utils");require("../form/index.cjs");const x=require("../icon/index.cjs"),$=require("../input/index.cjs"),o=require("../../constants/event.cjs");require("@vueuse/core");const I=require("../../utils/error.cjs");require("../../utils/ns-cover.cjs");const b=require("lodash"),G=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const S=require("./directives.cjs"),R=require("../form/hooks/use-form-item.cjs"),O=require("../form/hooks/use-form-common-props.cjs"),H=["onKeydown"],Y=["onKeydown"],d=G.useNamespace("input-number"),j=t.defineComponent({name:d.b()}),J=t.defineComponent({...j,props:{id:{default:void 0},step:{default:1},stepStrictly:{type:Boolean},max:{default:Number.POSITIVE_INFINITY},min:{default:Number.NEGATIVE_INFINITY},modelValue:{},readonly:{type:Boolean},disabled:{type:Boolean},size:{default:"default"},controls:{type:Boolean,default:!0},controlsPosition:{default:""},valueOnClear:{default:null},name:{},label:{},placeholder:{},precision:{},validateEvent:{type:Boolean,default:!0}},emits:{[o.CHANGE_EVENT]:(n,v)=>v!==n,blur:n=>n instanceof FocusEvent,focus:n=>n instanceof FocusEvent,[o.INPUT_EVENT]:n=>l.isNumber(n)||b.isNil(n),[o.UPDATE_MODEL_EVENT]:n=>l.isNumber(n)||b.isNil(n)},setup(n,{expose:v,emit:s}){const m=t.ref(),r=t.reactive({currentValue:n.modelValue,userInput:null}),{formItem:c}=R.useFormItem(),P=t.computed(()=>n.modelValue&&l.isNumber(n.modelValue)&&n.modelValue<=n.min),C=t.computed(()=>n.modelValue&&l.isNumber(n.modelValue)&&n.modelValue>=n.max),U=t.computed(()=>{const e=D(n.step);return l.isUndefined(n.precision)?Math.max(D(n.modelValue),e):(e>n.precision&&I.debugWarn("InputNumber","precision should not be less than the decimal places of step"),n.precision)}),V=t.computed(()=>n.controls&&n.controlsPosition==="right"),A=O.useFormSize(),f=O.useFormDisabled(),E=t.computed(()=>{if(r.userInput!==null)return r.userInput;let e=r.currentValue;if(b.isNil(e))return"";if(l.isNumber(e)){if(Number.isNaN(e))return"";l.isUndefined(n.precision)||(e=e==null?void 0:e.toFixed(n.precision))}return e}),h=(e,u)=>{if(l.isUndefined(u)&&(u=U.value),u===0)return Math.round(e);let i=String(e);const a=i.indexOf(".");if(a===-1||!i.replace(".","").split("")[a+u])return e;const M=i.length;return i.charAt(M-1)==="5"&&(i=`${i.slice(0,Math.max(0,M-1))}6`),Number.parseFloat(Number(i).toFixed(u))},D=e=>{if(b.isNil(e))return 0;const u=e.toString(),i=u.indexOf(".");let a=0;return i!==-1&&(a=u.length-i-1),a},q=(e,u=1)=>l.isNumber(e)?h(e+n.step*u):r.currentValue,w=()=>{if(n.readonly||f.value||C.value)return;const e=Number(E.value)||0,u=q(e);N(u),s(o.INPUT_EVENT,r.currentValue)},y=()=>{if(n.readonly||f.value||P.value)return;const e=Number(E.value)||0,u=q(e,-1);N(u),s(o.INPUT_EVENT,r.currentValue)},T=(e,u)=>{let i=Number(e);if(b.isNil(e)||Number.isNaN(i))return null;if(e===""){if(n.valueOnClear===null)return null;i=l.isString(n.valueOnClear)?{min:n.min,max:n.max}[n.valueOnClear]:n.valueOnClear}return n.stepStrictly&&(i=h(Math.round(i/n.step)*n.step,n.precision)),l.isUndefined(n.precision)||(i=h(i,n.precision)),(i>n.max||i<n.min)&&(i=i>n.max?n.max:n.min,u&&s(o.UPDATE_MODEL_EVENT,i)),i},N=(e,u=!0)=>{var g;const i=r.currentValue,a=T(e);if(!u){s(o.UPDATE_MODEL_EVENT,a);return}i!==a&&(r.userInput=null,s(o.UPDATE_MODEL_EVENT,a),s(o.CHANGE_EVENT,a,i),n.validateEvent&&((g=c==null?void 0:c.validate)==null||g.call(c,"change").catch(F=>I.debugWarn(F))),r.currentValue=a)},B=e=>{r.userInput=e;const u=e===""?null:Number(e);s(o.INPUT_EVENT,u),N(u,!1)},k=e=>{const u=e!==""?Number(e):"";(l.isNumber(u)&&!Number.isNaN(u)||e==="")&&N(u),r.userInput=null},K=()=>{var e,u;(u=(e=m.value)==null?void 0:e.focus)==null||u.call(e)},z=()=>{var e,u;(u=(e=m.value)==null?void 0:e.blur)==null||u.call(e)},L=e=>{s("focus",e)},W=e=>{var u;s("blur",e),n.validateEvent&&((u=c==null?void 0:c.validate)==null||u.call(c,"blur").catch(i=>I.debugWarn(i)))};return t.watch(()=>n.modelValue,e=>{const u=T(r.userInput),i=T(e,!0);!l.isNumber(u)&&(!u||u!==i)&&(r.currentValue=i,r.userInput=null)},{immediate:!0}),t.onMounted(()=>{var u;const e=(u=m.value)==null?void 0:u.input;if(e.setAttribute("role","spinbutton"),Number.isFinite(n.max)?e.setAttribute("aria-valuemax",String(n.max)):e.removeAttribute("aria-valuemax"),Number.isFinite(n.min)?e.setAttribute("aria-valuemin",String(n.min)):e.removeAttribute("aria-valuemin"),e.setAttribute("aria-valuenow",String(r.currentValue)),e.setAttribute("aria-disabled",String(f.value)),!l.isNumber(n.modelValue)&&n.modelValue!==null){let i=Number(n.modelValue);Number.isNaN(i)&&(i=null),s(o.UPDATE_MODEL_EVENT,i)}}),t.onUpdated(()=>{var u;const e=(u=m.value)==null?void 0:u.input;e==null||e.setAttribute("aria-valuenow",`${r.currentValue}`)}),v({focus:K,blur:z}),(e,u)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([t.unref(d).b(),t.unref(d).m(t.unref(A)),t.unref(d).is("disabled",t.unref(f)),t.unref(d).is("without-controls",!e.controls),t.unref(d).is("controls-right",V.value)]),onDragstart:u[1]||(u[1]=t.withModifiers(()=>{},["prevent"]))},[e.controls?t.withDirectives((t.openBlock(),t.createElementBlock("span",{key:0,role:"button",class:t.normalizeClass([t.unref(d).e("decrease"),t.unref(d).is("disabled",P.value)]),onKeydown:t.withKeys(y,["enter"])},[t.createVNode(t.unref(x.VftIcon),{icon:V.value?"icon-arrow-down":"icon-minus"},null,8,["icon"])],42,H)),[[t.unref(S.vRepeatClick),y]]):t.createCommentVNode("",!0),e.controls?t.withDirectives((t.openBlock(),t.createElementBlock("span",{key:1,role:"button",class:t.normalizeClass([t.unref(d).e("increase"),t.unref(d).is("disabled",C.value)]),onKeydown:t.withKeys(w,["enter"])},[t.createVNode(t.unref(x.VftIcon),{icon:V.value?"icon-arrow-up":"icon-plus"},null,8,["icon"])],42,Y)),[[t.unref(S.vRepeatClick),w]]):t.createCommentVNode("",!0),t.createVNode(t.unref($.VftInput),{id:e.id,ref_key:"input",ref:m,type:"number",step:e.step,"model-value":E.value,placeholder:e.placeholder,readonly:e.readonly,disabled:t.unref(f),size:t.unref(A),max:e.max,min:e.min,name:e.name,label:e.label,"validate-event":!1,onWheel:u[0]||(u[0]=t.withModifiers(()=>{},["prevent"])),onKeydown:[t.withKeys(t.withModifiers(w,["prevent"]),["up"]),t.withKeys(t.withModifiers(y,["prevent"]),["down"])],onBlur:W,onFocus:L,onInput:B,onChange:k},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});exports.default=J;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),l=require("@vft/utils");require("../form/index.cjs");const x=require("../icon/index.cjs"),G=require("../input/index.cjs"),o=require("../../constants/event.cjs");require("@vueuse/core");const I=require("../../utils/error.cjs");require("../../utils/ns-cover.cjs");const b=require("lodash"),R=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const S=require("./directives.cjs"),H=require("../form/hooks/use-form-item.cjs"),O=require("../form/hooks/use-form-common-props.cjs"),d=R.useNamespace("input-number"),Y=t.defineComponent({name:d.b()}),j=t.defineComponent({...Y,props:{id:{default:void 0},step:{default:1},stepStrictly:{type:Boolean},max:{default:Number.POSITIVE_INFINITY},min:{default:Number.NEGATIVE_INFINITY},modelValue:{},readonly:{type:Boolean},disabled:{type:Boolean},size:{default:"default"},controls:{type:Boolean,default:!0},controlsPosition:{default:""},valueOnClear:{default:null},name:{},label:{},placeholder:{},precision:{},validateEvent:{type:Boolean,default:!0}},emits:{[o.CHANGE_EVENT]:(n,v)=>v!==n,blur:n=>n instanceof FocusEvent,focus:n=>n instanceof FocusEvent,[o.INPUT_EVENT]:n=>l.isNumber(n)||b.isNil(n),[o.UPDATE_MODEL_EVENT]:n=>l.isNumber(n)||b.isNil(n)},setup(n,{expose:v,emit:U}){const s=U,m=t.ref(),r=t.reactive({currentValue:n.modelValue,userInput:null}),{formItem:c}=H.useFormItem(),P=t.computed(()=>n.modelValue&&l.isNumber(n.modelValue)&&n.modelValue<=n.min),C=t.computed(()=>n.modelValue&&l.isNumber(n.modelValue)&&n.modelValue>=n.max),B=t.computed(()=>{const e=D(n.step);return l.isUndefined(n.precision)?Math.max(D(n.modelValue),e):(e>n.precision&&I.debugWarn("InputNumber","precision should not be less than the decimal places of step"),n.precision)}),V=t.computed(()=>n.controls&&n.controlsPosition==="right"),A=O.useFormSize(),f=O.useFormDisabled(),E=t.computed(()=>{if(r.userInput!==null)return r.userInput;let e=r.currentValue;if(b.isNil(e))return"";if(l.isNumber(e)){if(Number.isNaN(e))return"";l.isUndefined(n.precision)||(e=e==null?void 0:e.toFixed(n.precision))}return e}),h=(e,i)=>{if(l.isUndefined(i)&&(i=B.value),i===0)return Math.round(e);let u=String(e);const a=u.indexOf(".");if(a===-1||!u.replace(".","").split("")[a+i])return e;const M=u.length;return u.charAt(M-1)==="5"&&(u=`${u.slice(0,Math.max(0,M-1))}6`),Number.parseFloat(Number(u).toFixed(i))},D=e=>{if(b.isNil(e))return 0;const i=e.toString(),u=i.indexOf(".");let a=0;return u!==-1&&(a=i.length-u-1),a},q=(e,i=1)=>l.isNumber(e)?h(e+n.step*i):r.currentValue,w=()=>{if(n.readonly||f.value||C.value)return;const e=Number(E.value)||0,i=q(e);N(i),s(o.INPUT_EVENT,r.currentValue)},y=()=>{if(n.readonly||f.value||P.value)return;const e=Number(E.value)||0,i=q(e,-1);N(i),s(o.INPUT_EVENT,r.currentValue)},T=(e,i)=>{let u=Number(e);if(b.isNil(e)||Number.isNaN(u))return null;if(e===""){if(n.valueOnClear===null)return null;u=l.isString(n.valueOnClear)?{min:n.min,max:n.max}[n.valueOnClear]:n.valueOnClear}return n.stepStrictly&&(u=h(Math.round(u/n.step)*n.step,n.precision)),l.isUndefined(n.precision)||(u=h(u,n.precision)),(u>n.max||u<n.min)&&(u=u>n.max?n.max:n.min,i&&s(o.UPDATE_MODEL_EVENT,u)),u},N=(e,i=!0)=>{var g;const u=r.currentValue,a=T(e);if(!i){s(o.UPDATE_MODEL_EVENT,a);return}u!==a&&(r.userInput=null,s(o.UPDATE_MODEL_EVENT,a),s(o.CHANGE_EVENT,a,u),n.validateEvent&&((g=c==null?void 0:c.validate)==null||g.call(c,"change").catch(F=>I.debugWarn(F))),r.currentValue=a)},k=e=>{r.userInput=e;const i=e===""?null:Number(e);s(o.INPUT_EVENT,i),N(i,!1)},z=e=>{const i=e!==""?Number(e):"";(l.isNumber(i)&&!Number.isNaN(i)||e==="")&&N(i),r.userInput=null},K=()=>{var e,i;(i=(e=m.value)==null?void 0:e.focus)==null||i.call(e)},L=()=>{var e,i;(i=(e=m.value)==null?void 0:e.blur)==null||i.call(e)},W=e=>{s("focus",e)},$=e=>{var i;s("blur",e),n.validateEvent&&((i=c==null?void 0:c.validate)==null||i.call(c,"blur").catch(u=>I.debugWarn(u)))};return t.watch(()=>n.modelValue,e=>{const i=T(r.userInput),u=T(e,!0);!l.isNumber(i)&&(!i||i!==u)&&(r.currentValue=u,r.userInput=null)},{immediate:!0}),t.onMounted(()=>{var i;const e=(i=m.value)==null?void 0:i.input;if(e.setAttribute("role","spinbutton"),Number.isFinite(n.max)?e.setAttribute("aria-valuemax",String(n.max)):e.removeAttribute("aria-valuemax"),Number.isFinite(n.min)?e.setAttribute("aria-valuemin",String(n.min)):e.removeAttribute("aria-valuemin"),e.setAttribute("aria-valuenow",String(r.currentValue)),e.setAttribute("aria-disabled",String(f.value)),!l.isNumber(n.modelValue)&&n.modelValue!==null){let u=Number(n.modelValue);Number.isNaN(u)&&(u=null),s(o.UPDATE_MODEL_EVENT,u)}}),t.onUpdated(()=>{var i;const e=(i=m.value)==null?void 0:i.input;e==null||e.setAttribute("aria-valuenow",`${r.currentValue}`)}),v({focus:K,blur:L}),(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([t.unref(d).b(),t.unref(d).m(t.unref(A)),t.unref(d).is("disabled",t.unref(f)),t.unref(d).is("without-controls",!e.controls),t.unref(d).is("controls-right",V.value)]),onDragstart:i[1]||(i[1]=t.withModifiers(()=>{},["prevent"]))},[e.controls?t.withDirectives((t.openBlock(),t.createElementBlock("span",{key:0,role:"button",class:t.normalizeClass([t.unref(d).e("decrease"),t.unref(d).is("disabled",P.value)]),onKeydown:t.withKeys(y,["enter"])},[t.createVNode(t.unref(x.VftIcon),{icon:V.value?"icon-arrow-down":"icon-minus"},null,8,["icon"])],34)),[[t.unref(S.vRepeatClick),y]]):t.createCommentVNode("",!0),e.controls?t.withDirectives((t.openBlock(),t.createElementBlock("span",{key:1,role:"button",class:t.normalizeClass([t.unref(d).e("increase"),t.unref(d).is("disabled",C.value)]),onKeydown:t.withKeys(w,["enter"])},[t.createVNode(t.unref(x.VftIcon),{icon:V.value?"icon-arrow-up":"icon-plus"},null,8,["icon"])],34)),[[t.unref(S.vRepeatClick),w]]):t.createCommentVNode("",!0),t.createVNode(t.unref(G.VftInput),{id:e.id,ref_key:"input",ref:m,type:"number",step:e.step,"model-value":E.value,placeholder:e.placeholder,readonly:e.readonly,disabled:t.unref(f),size:t.unref(A),max:e.max,min:e.min,name:e.name,label:e.label,"validate-event":!1,onWheel:i[0]||(i[0]=t.withModifiers(()=>{},["prevent"])),onKeydown:[t.withKeys(t.withModifiers(w,["prevent"]),["up"]),t.withKeys(t.withModifiers(y,["prevent"]),["down"])],onBlur:$,onFocus:W,onInput:k,onChange:z},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});exports.default=j;
@@ -1,117 +1,5 @@
1
1
  export declare const VftLink: import("vft/es/utils").SFCWithInstall<{
2
- new (...args: any[]): {
3
- $: import("vue").ComponentInternalInstance;
4
- $data: {};
5
- $props: {
6
- style?: unknown;
7
- key?: string | number | symbol | undefined;
8
- readonly type?: "default" | "success" | "primary" | "warning" | "info" | "danger" | undefined;
9
- ref?: import("vue").VNodeRef | undefined;
10
- class?: unknown;
11
- readonly icon?: import("..").IconProps | undefined;
12
- onClick?: ((...args: any[]) => any) | undefined;
13
- readonly disabled?: boolean | undefined;
14
- ref_for?: boolean | undefined;
15
- ref_key?: string | undefined;
16
- onVnodeBeforeMount?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
17
- [key: string]: any;
18
- }>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
19
- [key: string]: any;
20
- }>) => void)[] | undefined;
21
- onVnodeMounted?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
22
- [key: string]: any;
23
- }>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
24
- [key: string]: any;
25
- }>) => void)[] | undefined;
26
- onVnodeBeforeUpdate?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
27
- [key: string]: any;
28
- }>, oldVNode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
29
- [key: string]: any;
30
- }>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
31
- [key: string]: any;
32
- }>, oldVNode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
33
- [key: string]: any;
34
- }>) => void)[] | undefined;
35
- onVnodeUpdated?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
36
- [key: string]: any;
37
- }>, oldVNode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
38
- [key: string]: any;
39
- }>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
40
- [key: string]: any;
41
- }>, oldVNode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
42
- [key: string]: any;
43
- }>) => void)[] | undefined;
44
- onVnodeBeforeUnmount?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
- [key: string]: any;
46
- }>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
- [key: string]: any;
48
- }>) => void)[] | undefined;
49
- onVnodeUnmounted?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
50
- [key: string]: any;
51
- }>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
52
- [key: string]: any;
53
- }>) => void)[] | undefined;
54
- readonly underline?: boolean | undefined;
55
- readonly route?: import("vue-router").RouteLocationRaw | import("@vft/router").WinOpenType | undefined;
56
- readonly isReplace?: boolean | undefined;
57
- };
58
- $attrs: {
59
- [x: string]: unknown;
60
- };
61
- $refs: {
62
- [x: string]: unknown;
63
- };
64
- $slots: Readonly<{
65
- [name: string]: import("vue").Slot<any> | undefined;
66
- }>;
67
- $root: globalThis.ComponentPublicInstance | null;
68
- $parent: globalThis.ComponentPublicInstance | null;
69
- $emit: (event: "click", ...args: any[]) => void;
70
- $el: any;
71
- $options: import("vue").ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
72
- type: {
73
- type: globalThis.PropType<"default" | "success" | "primary" | "warning" | "info" | "danger">;
74
- };
75
- underline: {
76
- type: globalThis.PropType<boolean>;
77
- };
78
- disabled: {
79
- type: globalThis.PropType<boolean>;
80
- };
81
- route: {
82
- type: globalThis.PropType<import("vue-router").RouteLocationRaw | import("@vft/router").WinOpenType>;
83
- };
84
- isReplace: {
85
- type: globalThis.PropType<boolean>;
86
- };
87
- icon: {
88
- type: globalThis.PropType<import("..").IconProps>;
89
- };
90
- }>> & {
91
- onClick?: ((...args: any[]) => any) | undefined;
92
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
93
- click: (...args: any[]) => void;
94
- }, string, {}, {}, string, {}> & {
95
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
96
- created?: ((() => void) | (() => void)[]) | undefined;
97
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
98
- mounted?: ((() => void) | (() => void)[]) | undefined;
99
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
100
- updated?: ((() => void) | (() => void)[]) | undefined;
101
- activated?: ((() => void) | (() => void)[]) | undefined;
102
- deactivated?: ((() => void) | (() => void)[]) | undefined;
103
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
104
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
105
- destroyed?: ((() => void) | (() => void)[]) | undefined;
106
- unmounted?: ((() => void) | (() => void)[]) | undefined;
107
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
108
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
109
- errorCaptured?: (((err: unknown, instance: globalThis.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: globalThis.ComponentPublicInstance | null, info: string) => boolean | void)[]) | undefined;
110
- };
111
- $forceUpdate: () => void;
112
- $nextTick: typeof import("vue").nextTick;
113
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
114
- } & Readonly<globalThis.ExtractPropTypes<{
2
+ new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<globalThis.ExtractPropTypes<{
115
3
  type: {
116
4
  type: globalThis.PropType<"default" | "success" | "primary" | "warning" | "info" | "danger">;
117
5
  };
@@ -132,7 +20,58 @@ export declare const VftLink: import("vft/es/utils").SFCWithInstall<{
132
20
  };
133
21
  }>> & {
134
22
  onClick?: ((...args: any[]) => any) | undefined;
135
- } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
23
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
+ click: (...args: any[]) => void;
25
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<globalThis.ExtractPropTypes<{
26
+ type: {
27
+ type: globalThis.PropType<"default" | "success" | "primary" | "warning" | "info" | "danger">;
28
+ };
29
+ underline: {
30
+ type: globalThis.PropType<boolean>;
31
+ };
32
+ disabled: {
33
+ type: globalThis.PropType<boolean>;
34
+ };
35
+ route: {
36
+ type: globalThis.PropType<import("vue-router").RouteLocationRaw | import("@vft/router").WinOpenType>;
37
+ };
38
+ isReplace: {
39
+ type: globalThis.PropType<boolean>;
40
+ };
41
+ icon: {
42
+ type: globalThis.PropType<import("..").IconProps>;
43
+ };
44
+ }>> & {
45
+ onClick?: ((...args: any[]) => any) | undefined;
46
+ }, {}, true, {}, {}, {
47
+ P: {};
48
+ B: {};
49
+ D: {};
50
+ C: {};
51
+ M: {};
52
+ Defaults: {};
53
+ }, Readonly<globalThis.ExtractPropTypes<{
54
+ type: {
55
+ type: globalThis.PropType<"default" | "success" | "primary" | "warning" | "info" | "danger">;
56
+ };
57
+ underline: {
58
+ type: globalThis.PropType<boolean>;
59
+ };
60
+ disabled: {
61
+ type: globalThis.PropType<boolean>;
62
+ };
63
+ route: {
64
+ type: globalThis.PropType<import("vue-router").RouteLocationRaw | import("@vft/router").WinOpenType>;
65
+ };
66
+ isReplace: {
67
+ type: globalThis.PropType<boolean>;
68
+ };
69
+ icon: {
70
+ type: globalThis.PropType<import("..").IconProps>;
71
+ };
72
+ }>> & {
73
+ onClick?: ((...args: any[]) => any) | undefined;
74
+ }, {}, {}, {}, {}, {}>;
136
75
  __isFragment?: undefined;
137
76
  __isTeleport?: undefined;
138
77
  __isSuspense?: undefined;