vft 0.0.149 → 0.0.151

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 (756) hide show
  1. package/es/app-components/button/button-custom.d.ts +2 -2
  2. package/es/app-components/button/use-button.d.ts +6 -6
  3. package/es/app-components/form/form-label-wrap.d.ts +2 -2
  4. package/es/app-components/form/hooks/use-form-common-props.d.ts +4 -5
  5. package/es/app-components/form/utils.d.ts +1 -1
  6. package/es/app-components/hooks/use-id.d.ts +1 -2
  7. package/es/components/affix/affix.d.ts +3 -3
  8. package/es/components/affix/affix.vue.d.ts +15 -15
  9. package/es/components/affix/affix.vue2.js +33 -33
  10. package/es/components/affix/index.d.ts +64 -135
  11. package/es/components/alert/alert.vue.d.ts +11 -52
  12. package/es/components/alert/alert.vue2.js +19 -19
  13. package/es/components/alert/index.d.ts +65 -122
  14. package/es/components/autocomplete/autocomplete.vue.d.ts +206 -188
  15. package/es/components/autocomplete/autocomplete.vue2.js +69 -69
  16. package/es/components/autocomplete/index.d.ts +1038 -761
  17. package/es/components/avatar/avatar.vue.d.ts +19 -40
  18. package/es/components/avatar/avatar.vue2.js +23 -23
  19. package/es/components/avatar/index.d.ts +53 -114
  20. package/es/components/backtop/backtop.vue.d.ts +11 -40
  21. package/es/components/backtop/backtop.vue2.js +20 -20
  22. package/es/components/backtop/index.d.ts +53 -114
  23. package/es/components/button/button-custom.d.ts +1 -1
  24. package/es/components/button/button-group.vue.d.ts +11 -15
  25. package/es/components/button/button.vue.d.ts +30 -139
  26. package/es/components/button/button.vue2.js +19 -19
  27. package/es/components/button/index.d.ts +215 -377
  28. package/es/components/button/use-button.d.ts +3 -3
  29. package/es/components/button/use-button.js +1 -1
  30. package/es/components/card/card.vue.d.ts +15 -21
  31. package/es/components/card/index.d.ts +27 -95
  32. package/es/components/carousel/carousel-item.vue.d.ts +10 -15
  33. package/es/components/carousel/carousel.vue.d.ts +45 -94
  34. package/es/components/carousel/carousel.vue2.js +37 -37
  35. package/es/components/carousel/index.d.ts +186 -354
  36. package/es/components/carousel/use-carousel.d.ts +2 -2
  37. package/es/components/check-tag/check-tag.vue.d.ts +11 -10
  38. package/es/components/check-tag/check-tag.vue2.js +16 -16
  39. package/es/components/check-tag/index.d.ts +24 -95
  40. package/es/components/checkbox/checkbox-button.vue.d.ts +13 -95
  41. package/es/components/checkbox/checkbox-group.vue.d.ts +28 -83
  42. package/es/components/checkbox/checkbox-group.vue2.js +37 -37
  43. package/es/components/checkbox/checkbox.vue.d.ts +25 -97
  44. package/es/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
  45. package/es/components/checkbox/composables/use-checkbox.d.ts +1 -1
  46. package/es/components/checkbox/index.d.ts +591 -801
  47. package/es/components/clamp/clamp.vue.d.ts +25 -48
  48. package/es/components/clamp/clamp.vue2.js +35 -35
  49. package/es/components/clamp/index.d.ts +64 -122
  50. package/es/components/clamp-toggle/clamp-toggle.vue.d.ts +23 -76
  51. package/es/components/clamp-toggle/clamp-toggle.vue2.js +8 -8
  52. package/es/components/clamp-toggle/index.d.ts +1 -1
  53. package/es/components/col/col.vue.d.ts +30 -73
  54. package/es/components/col/index.d.ts +93 -136
  55. package/es/components/collapse-transition/index.d.ts +16 -166
  56. package/es/components/collapse-transition/src/collapse-transition.vue.d.ts +1 -1
  57. package/es/components/collection/collection-item.vue.d.ts +1 -1
  58. package/es/components/collection/collection.vue.d.ts +1 -1
  59. package/es/components/color-picker/color-picker.vue.d.ts +26 -75
  60. package/es/components/color-picker/color-picker.vue2.js +67 -67
  61. package/es/components/color-picker/components/alpha-slider.vue.d.ts +10 -17
  62. package/es/components/color-picker/components/hue-slider.vue.d.ts +1 -1
  63. package/es/components/color-picker/components/predefine.vue.d.ts +1 -1
  64. package/es/components/color-picker/components/sv-panel.vue.d.ts +1 -1
  65. package/es/components/color-picker/index.d.ts +8 -8
  66. package/es/components/config-provider/config-provider.vue.d.ts +10 -69
  67. package/es/components/config-provider/hooks/use-global-config.d.ts +2 -3
  68. package/es/components/config-provider/index.d.ts +77 -129
  69. package/es/components/container/aside.vue.d.ts +10 -9
  70. package/es/components/container/container.vue.d.ts +10 -9
  71. package/es/components/container/footer.vue.d.ts +10 -9
  72. package/es/components/container/header.vue.d.ts +10 -9
  73. package/es/components/container/index.d.ts +121 -775
  74. package/es/components/container/main.vue.d.ts +1 -1
  75. package/es/components/context-menu/context-menu.vue.d.ts +16 -27
  76. package/es/components/context-menu/context-menu.vue2.js +16 -16
  77. package/es/components/date-picker/composables/use-range-picker.d.ts +6 -6
  78. package/es/components/date-picker/date-picker-com/basic-cell-render.d.ts +1 -3
  79. package/es/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +22 -22
  80. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +61 -61
  81. package/es/components/date-picker/date-picker-com/basic-month-table.vue.d.ts +1 -1
  82. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +32 -32
  83. package/es/components/date-picker/date-picker-com/basic-year-table.vue.d.ts +1 -1
  84. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +29 -29
  85. package/es/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +10 -10
  86. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +170 -170
  87. package/es/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +8 -8
  88. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +59 -59
  89. package/es/components/date-picker/date-picker-com/panel-month-range.vue.d.ts +6 -6
  90. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +34 -34
  91. package/es/components/date-picker/date-picker.d.ts +21 -5
  92. package/es/components/date-picker/index.d.ts +42 -10
  93. package/es/components/date-picker/panel-utils.d.ts +163 -347
  94. package/es/components/date-picker/props/date-picker.d.ts +9 -1
  95. package/es/components/date-picker/props/shared.d.ts +1 -1
  96. package/es/components/date-picker/utils.d.ts +1 -1
  97. package/es/components/date-time-select/date-time-select.vue.d.ts +11 -18
  98. package/es/components/date-time-select/date-time-select.vue2.js +27 -27
  99. package/es/components/date-time-select/index.d.ts +1 -1
  100. package/es/components/descriptions/description-item.vue.d.ts +20 -51
  101. package/es/components/descriptions/description.vue.d.ts +18 -39
  102. package/es/components/descriptions/descriptions-cell.d.ts +1 -1
  103. package/es/components/descriptions/descriptions-row.vue.d.ts +13 -9
  104. package/es/components/descriptions/index.d.ts +161 -339
  105. package/es/components/dialog/dialog-content.vue.d.ts +11 -52
  106. package/es/components/dialog/dialog.vue.d.ts +14 -146
  107. package/es/components/dialog/dialog.vue2.js +0 -1
  108. package/es/components/dialog/index.d.ts +180 -207
  109. package/es/components/divider/divider.vue.d.ts +10 -39
  110. package/es/components/divider/index.d.ts +47 -109
  111. package/es/components/drawer/drawer.vue.d.ts +14 -169
  112. package/es/components/drawer/index.d.ts +203 -222
  113. package/es/components/dropdown/dropdown-item-impl.vue.d.ts +2 -2
  114. package/es/components/dropdown/dropdown-item.vue.d.ts +3 -3
  115. package/es/components/dropdown/dropdown-menu.vue.d.ts +1 -1
  116. package/es/components/dropdown/dropdown.vue.d.ts +50 -147
  117. package/es/components/dropdown/dropdown.vue2.js +65 -65
  118. package/es/components/dropdown/index.d.ts +223 -231
  119. package/es/components/empty/empty.vue.d.ts +10 -27
  120. package/es/components/empty/index.d.ts +31 -97
  121. package/es/components/exception/exception.vue.d.ts +15 -21
  122. package/es/components/exception/index.d.ts +1 -1
  123. package/es/components/focus-trap/focus-trap.vue.d.ts +1 -1
  124. package/es/components/focus-trap/utils.d.ts +1 -1
  125. package/es/components/footer-layout/footer-layout.vue.d.ts +1 -1
  126. package/es/components/footer-layout/index.d.ts +8 -83
  127. package/es/components/form/form-item.vue.d.ts +30 -79
  128. package/es/components/form/form-item.vue2.js +58 -58
  129. package/es/components/form/form-label-wrap.d.ts +1 -1
  130. package/es/components/form/form.vue.d.ts +11 -94
  131. package/es/components/form/form.vue2.js +47 -47
  132. package/es/components/form/hooks/use-form-common-props.d.ts +4 -6
  133. package/es/components/form/index.d.ts +350 -477
  134. package/es/components/full-screen/full-screen.vue.d.ts +11 -63
  135. package/es/components/full-screen/index.d.ts +1 -1
  136. package/es/components/header-layout/header-layout.vue.d.ts +10 -11
  137. package/es/components/header-layout/index.d.ts +17 -88
  138. package/es/components/horizontal-menu/horizontal-menu.vue.d.ts +11 -78
  139. package/es/components/horizontal-menu/horizontal-menu.vue2.js +40 -40
  140. package/es/components/horizontal-menu/index.d.ts +1 -1
  141. package/es/components/icon/icon.vue.d.ts +9 -46
  142. package/es/components/icon/index.d.ts +1 -1
  143. package/es/components/icon-text/icon-text.vue.d.ts +9 -64
  144. package/es/components/icon-text/index.d.ts +1 -1
  145. package/es/components/iframe-layout/iframe-layout.vue.d.ts +12 -10
  146. package/es/components/iframe-layout/iframe-layout.vue2.js +4 -4
  147. package/es/components/iframe-layout/iframe-page.vue.d.ts +12 -10
  148. package/es/components/iframe-layout/index.d.ts +1 -1
  149. package/es/components/image/image.vue.d.ts +14 -79
  150. package/es/components/image/image.vue2.js +53 -52
  151. package/es/components/image/index.d.ts +106 -155
  152. package/es/components/image/p-image.vue.d.ts +21 -47
  153. package/es/components/image/p-image.vue2.js +18 -18
  154. package/es/components/image-viewer/image-viewer.vue.d.ts +11 -52
  155. package/es/components/image-viewer/image-viewer.vue2.js +60 -60
  156. package/es/components/image-viewer/index.d.ts +71 -128
  157. package/es/components/input/index.d.ts +232 -257
  158. package/es/components/input/input.vue.d.ts +17 -160
  159. package/es/components/input/input.vue2.js +124 -124
  160. package/es/components/input-number/index.d.ts +5 -5
  161. package/es/components/input-number/input-number.vue.d.ts +15 -110
  162. package/es/components/input-number/input-number.vue2.js +86 -86
  163. package/es/components/link/index.d.ts +53 -114
  164. package/es/components/link/link.vue.d.ts +19 -40
  165. package/es/components/link/link.vue2.js +26 -26
  166. package/es/components/list-cell/index.d.ts +1 -1
  167. package/es/components/list-cell/list-cell.vue.d.ts +11 -30
  168. package/es/components/list-cell/list-cell.vue2.js +37 -37
  169. package/es/components/loading/index.d.ts +9 -17
  170. package/es/components/loading/loading.d.ts +9 -17
  171. package/es/components/logo/index.d.ts +1 -1
  172. package/es/components/logo/logo.vue.d.ts +9 -24
  173. package/es/components/md-code-demo/index.d.ts +1 -1
  174. package/es/components/md-code-demo/md-code-demo.d.ts +1 -1
  175. package/es/components/md-code-tabs/index.d.ts +1 -1
  176. package/es/components/md-code-tabs/md-code-tabs.d.ts +1 -1
  177. package/es/components/md-comment/index.d.ts +1 -1
  178. package/es/components/md-comment/md-comment.vue.d.ts +1 -1
  179. package/es/components/md-container/index.d.ts +11 -86
  180. package/es/components/md-container/md-container.vue.d.ts +1 -1
  181. package/es/components/md-container/toc.d.ts +1 -1
  182. package/es/components/md-tabs/index.d.ts +1 -1
  183. package/es/components/md-tabs/md-tabs.d.ts +1 -1
  184. package/es/components/md-vue-playground/index.d.ts +1 -1
  185. package/es/components/md-vue-playground/md-vue-playground.vue.d.ts +14 -26
  186. package/es/components/menu/index.d.ts +203 -343
  187. package/es/components/menu/menu-collapse-transition.vue.d.ts +1 -1
  188. package/es/components/menu/menu-item-group.vue.d.ts +13 -9
  189. package/es/components/menu/menu-item.vue.d.ts +11 -64
  190. package/es/components/menu/menu-item.vue2.js +31 -31
  191. package/es/components/menu/menu.vue.d.ts +11 -64
  192. package/es/components/menu/menu.vue2.js +60 -60
  193. package/es/components/menu/sub-menu.vue.d.ts +11 -90
  194. package/es/components/menu/sub-menu.vue2.js +41 -41
  195. package/es/components/message/message.vue.d.ts +11 -104
  196. package/es/components/message/message.vue2.js +31 -31
  197. package/es/components/modal/index.d.ts +291 -264
  198. package/es/components/modal/modal-footer-action.vue.d.ts +11 -33
  199. package/es/components/modal/modal.vue.d.ts +64 -226
  200. package/es/components/modal/modal.vue2.js +32 -32
  201. package/es/components/multiple-tabs/index.d.ts +1 -1
  202. package/es/components/multiple-tabs/multiple-tabs.vue.d.ts +11 -33
  203. package/es/components/multiple-tabs/multiple-tabs.vue2.js +70 -100
  204. package/es/components/multiple-tabs/multiple-tabs.vue3.js +1 -4
  205. package/es/components/multiple-tabs/tab-content.vue.d.ts +16 -31
  206. package/es/components/multiple-tabs/tab-content.vue2.js +6 -6
  207. package/es/components/overlay/index.d.ts +1 -1
  208. package/es/components/overlay/overlay.vue.d.ts +18 -34
  209. package/es/components/overlay/overlay.vue2.js +18 -18
  210. package/es/components/page-wrapper/index.d.ts +15 -87
  211. package/es/components/page-wrapper/page-wrapper.vue.d.ts +13 -9
  212. package/es/components/pagination/components/jumper.vue.d.ts +12 -10
  213. package/es/components/pagination/components/next.vue.d.ts +17 -28
  214. package/es/components/pagination/components/pager.vue.d.ts +17 -30
  215. package/es/components/pagination/components/pager.vue2.js +29 -29
  216. package/es/components/pagination/components/prev.vue.d.ts +16 -22
  217. package/es/components/pagination/components/prev.vue2.js +9 -9
  218. package/es/components/pagination/components/sizes.vue.d.ts +18 -34
  219. package/es/components/pagination/components/sizes.vue2.js +17 -17
  220. package/es/components/pagination/components/total.vue.d.ts +12 -10
  221. package/es/components/pagination/index.d.ts +1 -1
  222. package/es/components/pagination/pagination.vue.d.ts +11 -112
  223. package/es/components/pagination/pagination.vue2.js +41 -41
  224. package/es/components/popconfirm/index.d.ts +134 -166
  225. package/es/components/popconfirm/popconfirm.vue.d.ts +53 -94
  226. package/es/components/popconfirm/popconfirm.vue2.js +26 -26
  227. package/es/components/popover/index.d.ts +165 -196
  228. package/es/components/popover/popover.vue2.js +31 -31
  229. package/es/components/popper/arrow.vue.d.ts +14 -10
  230. package/es/components/popper/composables/use-content-dom.d.ts +1 -3
  231. package/es/components/popper/composables/use-content.d.ts +6 -70
  232. package/es/components/popper/content.vue2.js +55 -55
  233. package/es/components/popper/index.d.ts +24 -96
  234. package/es/components/popper/popper.vue.d.ts +15 -12
  235. package/es/components/popper/trigger.vue.d.ts +24 -70
  236. package/es/components/popper/utils.d.ts +2 -45
  237. package/es/components/progress/index.d.ts +97 -143
  238. package/es/components/progress/progress.vue.d.ts +10 -87
  239. package/es/components/progress-i/index.d.ts +1 -1
  240. package/es/components/progress-i/progress-i.vue.d.ts +1 -1
  241. package/es/components/qrcode/index.d.ts +1 -1
  242. package/es/components/qrcode/qrcode.vue.d.ts +24 -35
  243. package/es/components/qrcode/qrcode.vue2.js +33 -33
  244. package/es/components/radio/index.d.ts +336 -619
  245. package/es/components/radio/radio-button.vue.d.ts +10 -33
  246. package/es/components/radio/radio-button.vue2.js +1 -1
  247. package/es/components/radio/radio-group.vue.d.ts +24 -73
  248. package/es/components/radio/radio-group.vue2.js +33 -33
  249. package/es/components/radio/radio.vue.d.ts +12 -47
  250. package/es/components/radio/radio.vue2.js +30 -30
  251. package/es/components/radio/use-radio.d.ts +1 -1
  252. package/es/components/result/index.d.ts +1 -1
  253. package/es/components/result/result.vue.d.ts +15 -21
  254. package/es/components/router-view-content/index.d.ts +1 -1
  255. package/es/components/router-view-content/router-view-content.vue.d.ts +17 -42
  256. package/es/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +1 -1
  257. package/es/components/roving-focus-group/roving-focus-group.vue.d.ts +1 -1
  258. package/es/components/roving-focus-group/roving-focus-item.vue.d.ts +1 -1
  259. package/es/components/row/index.d.ts +31 -97
  260. package/es/components/row/row.vue.d.ts +10 -27
  261. package/es/components/scrollbar/bar.vue.d.ts +11 -34
  262. package/es/components/scrollbar/index.d.ts +104 -158
  263. package/es/components/scrollbar/scrollbar.vue.d.ts +11 -70
  264. package/es/components/scrollbar/scrollbar.vue2.js +53 -52
  265. package/es/components/scrollbar/thumb.vue.d.ts +9 -34
  266. package/es/components/search/index.d.ts +118 -171
  267. package/es/components/search/search.vue.d.ts +16 -67
  268. package/es/components/search/search.vue2.js +78 -78
  269. package/es/components/select/defaults.d.ts +3 -4
  270. package/es/components/select/group-item.vue.d.ts +1 -1
  271. package/es/components/select/index.d.ts +406 -194
  272. package/es/components/select/option-item.vue.d.ts +1 -1
  273. package/es/components/select/select-dropdown.d.ts +1 -1
  274. package/es/components/select/select.vue.d.ts +203 -97
  275. package/es/components/select/useSelect.d.ts +189 -83
  276. package/es/components/side-menu/index.d.ts +5 -9
  277. package/es/components/side-menu/side-menu.vue.d.ts +49 -158
  278. package/es/components/side-menu/side-menu.vue2.js +76 -76
  279. package/es/components/skeleton/index.d.ts +44 -108
  280. package/es/components/skeleton/skeleton-item.vue.d.ts +13 -9
  281. package/es/components/skeleton/skeleton.vue.d.ts +18 -34
  282. package/es/components/slider/button.vue.d.ts +11 -28
  283. package/es/components/slider/button.vue2.js +33 -33
  284. package/es/components/slider/composables/use-slide.d.ts +90 -221
  285. package/es/components/slider/index.d.ts +4 -4
  286. package/es/components/slider/marker.d.ts +1 -1
  287. package/es/components/slider/slider.d.ts +3 -3
  288. package/es/components/slider/slider.vue.d.ts +12 -161
  289. package/es/components/slider/slider.vue2.js +60 -60
  290. package/es/components/slot/only-child.d.ts +1 -1
  291. package/es/components/space/index.d.ts +4 -7
  292. package/es/components/space/item.d.ts +1 -1
  293. package/es/components/space/space.d.ts +5 -8
  294. package/es/components/super-form/index.d.ts +377 -327
  295. package/es/components/super-form/super-form-action.vue.d.ts +11 -46
  296. package/es/components/super-form/super-form-item.vue.d.ts +9 -54
  297. package/es/components/super-form/super-form.vue.d.ts +65 -296
  298. package/es/components/super-form/super-form.vue2.js +89 -89
  299. package/es/components/switch/index.d.ts +16 -16
  300. package/es/components/switch/switch.vue.d.ts +40 -149
  301. package/es/components/switch/switch.vue2.js +86 -86
  302. package/es/components/table/field.d.ts +2 -2
  303. package/es/components/table/index.d.ts +1145 -963
  304. package/es/components/table/table.vue.d.ts +78 -687
  305. package/es/components/table/table.vue2.js +79 -79
  306. package/es/components/table/use/use-columns.d.ts +3 -801
  307. package/es/components/table/use/use-data-source.js +3 -3
  308. package/es/components/tabs/index.d.ts +79 -207
  309. package/es/components/tabs/tab-bar.vue.d.ts +14 -45
  310. package/es/components/tabs/tab-nav.vue.d.ts +29 -106
  311. package/es/components/tabs/tab-nav.vue2.js +32 -32
  312. package/es/components/tabs/tab-pane.vue.d.ts +22 -33
  313. package/es/components/tabs/tabs.vue.d.ts +13 -90
  314. package/es/components/tabs/tabs.vue2.js +47 -47
  315. package/es/components/tag/index.d.ts +1 -1
  316. package/es/components/tag/tag.vue.d.ts +11 -52
  317. package/es/components/tag/tag.vue2.js +18 -18
  318. package/es/components/time-picker/common/picker.vue.d.ts +107 -92
  319. package/es/components/time-picker/common/picker.vue2.js +83 -83
  320. package/es/components/time-picker/common/props.d.ts +9 -2
  321. package/es/components/time-picker/composables/use-time-picker.d.ts +12 -12
  322. package/es/components/time-picker/index.d.ts +42 -10
  323. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +20 -20
  324. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +44 -44
  325. package/es/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +14 -14
  326. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +55 -55
  327. package/es/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +12 -12
  328. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +93 -93
  329. package/es/components/time-picker/time-picker.d.ts +21 -5
  330. package/es/components/time-picker/utils.d.ts +1 -1
  331. package/es/components/time-select/time-select.vue.d.ts +44 -44
  332. package/es/components/time-select/time-select.vue2.js +1 -2
  333. package/es/components/tooltip/content.vue2.js +22 -22
  334. package/es/components/tooltip/index.d.ts +337 -315
  335. package/es/components/tooltip/tooltip.vue.d.ts +13 -288
  336. package/es/components/tooltip/tooltip.vue2.js +43 -42
  337. package/es/components/tooltip/trigger.vue.d.ts +18 -34
  338. package/es/components/tooltip/utils.d.ts +1 -1
  339. package/es/components/tree/index.d.ts +727 -735
  340. package/es/components/tree/tree-node-content.vue.d.ts +1 -1
  341. package/es/components/tree/tree-node.vue.d.ts +3 -3
  342. package/es/components/tree/tree.vue.d.ts +37 -176
  343. package/es/components/tree/tree.vue2.js +72 -72
  344. package/es/components/upload/index.d.ts +236 -233
  345. package/es/components/upload/upload-content.vue.d.ts +46 -173
  346. package/es/components/upload/upload-dragger.vue.d.ts +12 -10
  347. package/es/components/upload/upload-dragger.vue2.js +26 -26
  348. package/es/components/upload/upload-list.vue.d.ts +29 -36
  349. package/es/components/upload/upload-list.vue2.js +34 -34
  350. package/es/components/upload/upload.vue.d.ts +47 -185
  351. package/es/components/upload/use-handlers.d.ts +2 -11
  352. package/es/components/verify-code/index.d.ts +1 -1
  353. package/es/components/verify-code/useImageVerify.js +1 -1
  354. package/es/components/verify-code/verify-code.vue.d.ts +16 -22
  355. package/es/components/verify-code/verify-code.vue2.js +16 -16
  356. package/es/components/virtual-list/builders/build-grid.d.ts +3 -3
  357. package/es/components/virtual-list/builders/build-list.d.ts +5 -5
  358. package/es/components/virtual-list/components/dynamic-size-grid.d.ts +3 -3
  359. package/es/components/virtual-list/components/dynamic-size-list.d.ts +5 -5
  360. package/es/components/virtual-list/components/fixed-size-grid.d.ts +3 -3
  361. package/es/components/virtual-list/components/fixed-size-list.d.ts +5 -5
  362. package/es/components/virtual-list/components/scrollbar.d.ts +1 -1
  363. package/es/components/virtual-list/hooks/use-cache.d.ts +1 -1
  364. package/es/components/virtual-list/props.d.ts +3 -3
  365. package/es/hooks/use-id/index.d.ts +1 -2
  366. package/es/hooks/use-model-toggle/index.d.ts +2 -2
  367. package/es/hooks/use-popper/index.d.ts +7 -70
  368. package/es/hooks/use-same-target/index.d.ts +3 -3
  369. package/es/hooks/use-z-index/index.d.ts +1 -1
  370. package/es/package.json.d.ts +11 -11
  371. package/es/package.json.js +1 -1
  372. package/lib/app-components/button/button-custom.d.ts +2 -2
  373. package/lib/app-components/button/use-button.d.ts +6 -6
  374. package/lib/app-components/form/form-label-wrap.d.ts +2 -2
  375. package/lib/app-components/form/hooks/use-form-common-props.d.ts +4 -5
  376. package/lib/app-components/form/utils.d.ts +1 -1
  377. package/lib/app-components/hooks/use-id.d.ts +1 -2
  378. package/lib/components/affix/affix.d.ts +3 -3
  379. package/lib/components/affix/affix.vue.d.ts +15 -15
  380. package/lib/components/affix/affix.vue2.cjs +1 -1
  381. package/lib/components/affix/index.d.ts +64 -135
  382. package/lib/components/alert/alert.vue.d.ts +11 -52
  383. package/lib/components/alert/alert.vue2.cjs +1 -1
  384. package/lib/components/alert/index.d.ts +65 -122
  385. package/lib/components/autocomplete/autocomplete.vue.d.ts +206 -188
  386. package/lib/components/autocomplete/autocomplete.vue2.cjs +1 -1
  387. package/lib/components/autocomplete/index.d.ts +1038 -761
  388. package/lib/components/avatar/avatar.vue.d.ts +19 -40
  389. package/lib/components/avatar/avatar.vue2.cjs +1 -1
  390. package/lib/components/avatar/index.d.ts +53 -114
  391. package/lib/components/backtop/backtop.vue.d.ts +11 -40
  392. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  393. package/lib/components/backtop/index.d.ts +53 -114
  394. package/lib/components/button/button-custom.d.ts +1 -1
  395. package/lib/components/button/button-group.vue.d.ts +11 -15
  396. package/lib/components/button/button.vue.d.ts +30 -139
  397. package/lib/components/button/button.vue2.cjs +1 -1
  398. package/lib/components/button/index.d.ts +215 -377
  399. package/lib/components/button/use-button.cjs +1 -1
  400. package/lib/components/button/use-button.d.ts +3 -3
  401. package/lib/components/card/card.vue.d.ts +15 -21
  402. package/lib/components/card/index.d.ts +27 -95
  403. package/lib/components/carousel/carousel-item.vue.d.ts +10 -15
  404. package/lib/components/carousel/carousel.vue.d.ts +45 -94
  405. package/lib/components/carousel/carousel.vue2.cjs +1 -1
  406. package/lib/components/carousel/index.d.ts +186 -354
  407. package/lib/components/carousel/use-carousel.d.ts +2 -2
  408. package/lib/components/check-tag/check-tag.vue.d.ts +11 -10
  409. package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
  410. package/lib/components/check-tag/index.d.ts +24 -95
  411. package/lib/components/checkbox/checkbox-button.vue.d.ts +13 -95
  412. package/lib/components/checkbox/checkbox-group.vue.d.ts +28 -83
  413. package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
  414. package/lib/components/checkbox/checkbox.vue.d.ts +25 -97
  415. package/lib/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
  416. package/lib/components/checkbox/composables/use-checkbox.d.ts +1 -1
  417. package/lib/components/checkbox/index.d.ts +591 -801
  418. package/lib/components/clamp/clamp.vue.d.ts +25 -48
  419. package/lib/components/clamp/clamp.vue2.cjs +1 -1
  420. package/lib/components/clamp/index.d.ts +64 -122
  421. package/lib/components/clamp-toggle/clamp-toggle.vue.d.ts +23 -76
  422. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  423. package/lib/components/clamp-toggle/index.d.ts +1 -1
  424. package/lib/components/col/col.vue.d.ts +30 -73
  425. package/lib/components/col/index.d.ts +93 -136
  426. package/lib/components/collapse-transition/index.d.ts +16 -166
  427. package/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +1 -1
  428. package/lib/components/collection/collection-item.vue.d.ts +1 -1
  429. package/lib/components/collection/collection.vue.d.ts +1 -1
  430. package/lib/components/color-picker/color-picker.vue.d.ts +26 -75
  431. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  432. package/lib/components/color-picker/components/alpha-slider.vue.d.ts +10 -17
  433. package/lib/components/color-picker/components/hue-slider.vue.d.ts +1 -1
  434. package/lib/components/color-picker/components/predefine.vue.d.ts +1 -1
  435. package/lib/components/color-picker/components/sv-panel.vue.d.ts +1 -1
  436. package/lib/components/color-picker/index.d.ts +8 -8
  437. package/lib/components/config-provider/config-provider.vue.d.ts +10 -69
  438. package/lib/components/config-provider/hooks/use-global-config.d.ts +2 -3
  439. package/lib/components/config-provider/index.d.ts +77 -129
  440. package/lib/components/container/aside.vue.d.ts +10 -9
  441. package/lib/components/container/container.vue.d.ts +10 -9
  442. package/lib/components/container/footer.vue.d.ts +10 -9
  443. package/lib/components/container/header.vue.d.ts +10 -9
  444. package/lib/components/container/index.d.ts +121 -775
  445. package/lib/components/container/main.vue.d.ts +1 -1
  446. package/lib/components/context-menu/context-menu.vue.d.ts +16 -27
  447. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  448. package/lib/components/date-picker/composables/use-range-picker.d.ts +6 -6
  449. package/lib/components/date-picker/date-picker-com/basic-cell-render.d.ts +1 -3
  450. package/lib/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +22 -22
  451. package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -1
  452. package/lib/components/date-picker/date-picker-com/basic-month-table.vue.d.ts +1 -1
  453. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  454. package/lib/components/date-picker/date-picker-com/basic-year-table.vue.d.ts +1 -1
  455. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  456. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +10 -10
  457. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  458. package/lib/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +8 -8
  459. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  460. package/lib/components/date-picker/date-picker-com/panel-month-range.vue.d.ts +6 -6
  461. package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
  462. package/lib/components/date-picker/date-picker.d.ts +21 -5
  463. package/lib/components/date-picker/index.d.ts +42 -10
  464. package/lib/components/date-picker/panel-utils.d.ts +163 -347
  465. package/lib/components/date-picker/props/date-picker.d.ts +9 -1
  466. package/lib/components/date-picker/props/shared.d.ts +1 -1
  467. package/lib/components/date-picker/utils.d.ts +1 -1
  468. package/lib/components/date-time-select/date-time-select.vue.d.ts +11 -18
  469. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  470. package/lib/components/date-time-select/index.d.ts +1 -1
  471. package/lib/components/descriptions/description-item.vue.d.ts +20 -51
  472. package/lib/components/descriptions/description.vue.d.ts +18 -39
  473. package/lib/components/descriptions/descriptions-cell.d.ts +1 -1
  474. package/lib/components/descriptions/descriptions-row.vue.d.ts +13 -9
  475. package/lib/components/descriptions/index.d.ts +161 -339
  476. package/lib/components/dialog/dialog-content.vue.d.ts +11 -52
  477. package/lib/components/dialog/dialog.vue.d.ts +14 -146
  478. package/lib/components/dialog/index.d.ts +180 -207
  479. package/lib/components/divider/divider.vue.d.ts +10 -39
  480. package/lib/components/divider/index.d.ts +47 -109
  481. package/lib/components/drawer/drawer.vue.d.ts +14 -169
  482. package/lib/components/drawer/index.d.ts +203 -222
  483. package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +2 -2
  484. package/lib/components/dropdown/dropdown-item.vue.d.ts +3 -3
  485. package/lib/components/dropdown/dropdown-menu.vue.d.ts +1 -1
  486. package/lib/components/dropdown/dropdown.vue.d.ts +50 -147
  487. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  488. package/lib/components/dropdown/index.d.ts +223 -231
  489. package/lib/components/empty/empty.vue.d.ts +10 -27
  490. package/lib/components/empty/index.d.ts +31 -97
  491. package/lib/components/exception/exception.vue.d.ts +15 -21
  492. package/lib/components/exception/index.d.ts +1 -1
  493. package/lib/components/focus-trap/focus-trap.vue.d.ts +1 -1
  494. package/lib/components/focus-trap/utils.d.ts +1 -1
  495. package/lib/components/footer-layout/footer-layout.vue.d.ts +1 -1
  496. package/lib/components/footer-layout/index.d.ts +8 -83
  497. package/lib/components/form/form-item.vue.d.ts +30 -79
  498. package/lib/components/form/form-item.vue2.cjs +1 -1
  499. package/lib/components/form/form-label-wrap.d.ts +1 -1
  500. package/lib/components/form/form.vue.d.ts +11 -94
  501. package/lib/components/form/form.vue2.cjs +1 -1
  502. package/lib/components/form/hooks/use-form-common-props.d.ts +4 -6
  503. package/lib/components/form/index.d.ts +350 -477
  504. package/lib/components/full-screen/full-screen.vue.d.ts +11 -63
  505. package/lib/components/full-screen/index.d.ts +1 -1
  506. package/lib/components/header-layout/header-layout.vue.d.ts +10 -11
  507. package/lib/components/header-layout/index.d.ts +17 -88
  508. package/lib/components/horizontal-menu/horizontal-menu.vue.d.ts +11 -78
  509. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  510. package/lib/components/horizontal-menu/index.d.ts +1 -1
  511. package/lib/components/icon/icon.vue.d.ts +9 -46
  512. package/lib/components/icon/index.d.ts +1 -1
  513. package/lib/components/icon-text/icon-text.vue.d.ts +9 -64
  514. package/lib/components/icon-text/index.d.ts +1 -1
  515. package/lib/components/iframe-layout/iframe-layout.vue.d.ts +12 -10
  516. package/lib/components/iframe-layout/iframe-layout.vue2.cjs +1 -1
  517. package/lib/components/iframe-layout/iframe-page.vue.d.ts +12 -10
  518. package/lib/components/iframe-layout/index.d.ts +1 -1
  519. package/lib/components/image/image.vue.d.ts +14 -79
  520. package/lib/components/image/image.vue2.cjs +1 -1
  521. package/lib/components/image/index.d.ts +106 -155
  522. package/lib/components/image/p-image.vue.d.ts +21 -47
  523. package/lib/components/image/p-image.vue2.cjs +1 -1
  524. package/lib/components/image-viewer/image-viewer.vue.d.ts +11 -52
  525. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  526. package/lib/components/image-viewer/index.d.ts +71 -128
  527. package/lib/components/input/index.d.ts +232 -257
  528. package/lib/components/input/input.vue.d.ts +17 -160
  529. package/lib/components/input/input.vue2.cjs +1 -1
  530. package/lib/components/input-number/index.d.ts +5 -5
  531. package/lib/components/input-number/input-number.vue.d.ts +15 -110
  532. package/lib/components/input-number/input-number.vue2.cjs +1 -1
  533. package/lib/components/link/index.d.ts +53 -114
  534. package/lib/components/link/link.vue.d.ts +19 -40
  535. package/lib/components/link/link.vue2.cjs +1 -1
  536. package/lib/components/list-cell/index.d.ts +1 -1
  537. package/lib/components/list-cell/list-cell.vue.d.ts +11 -30
  538. package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
  539. package/lib/components/loading/index.d.ts +9 -17
  540. package/lib/components/loading/loading.d.ts +9 -17
  541. package/lib/components/logo/index.d.ts +1 -1
  542. package/lib/components/logo/logo.vue.d.ts +9 -24
  543. package/lib/components/md-code-demo/index.d.ts +1 -1
  544. package/lib/components/md-code-demo/md-code-demo.d.ts +1 -1
  545. package/lib/components/md-code-tabs/index.d.ts +1 -1
  546. package/lib/components/md-code-tabs/md-code-tabs.d.ts +1 -1
  547. package/lib/components/md-comment/index.d.ts +1 -1
  548. package/lib/components/md-comment/md-comment.vue.d.ts +1 -1
  549. package/lib/components/md-container/index.d.ts +11 -86
  550. package/lib/components/md-container/md-container.vue.d.ts +1 -1
  551. package/lib/components/md-container/toc.d.ts +1 -1
  552. package/lib/components/md-tabs/index.d.ts +1 -1
  553. package/lib/components/md-tabs/md-tabs.d.ts +1 -1
  554. package/lib/components/md-vue-playground/index.d.ts +1 -1
  555. package/lib/components/md-vue-playground/md-vue-playground.vue.d.ts +14 -26
  556. package/lib/components/menu/index.d.ts +203 -343
  557. package/lib/components/menu/menu-collapse-transition.vue.d.ts +1 -1
  558. package/lib/components/menu/menu-item-group.vue.d.ts +13 -9
  559. package/lib/components/menu/menu-item.vue.d.ts +11 -64
  560. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  561. package/lib/components/menu/menu.vue.d.ts +11 -64
  562. package/lib/components/menu/menu.vue2.cjs +1 -1
  563. package/lib/components/menu/sub-menu.vue.d.ts +11 -90
  564. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  565. package/lib/components/message/message.vue.d.ts +11 -104
  566. package/lib/components/message/message.vue2.cjs +1 -1
  567. package/lib/components/modal/index.d.ts +291 -264
  568. package/lib/components/modal/modal-footer-action.vue.d.ts +11 -33
  569. package/lib/components/modal/modal.vue.d.ts +64 -226
  570. package/lib/components/modal/modal.vue2.cjs +1 -1
  571. package/lib/components/multiple-tabs/index.d.ts +1 -1
  572. package/lib/components/multiple-tabs/multiple-tabs.vue.d.ts +11 -33
  573. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  574. package/lib/components/multiple-tabs/multiple-tabs.vue3.cjs +1 -1
  575. package/lib/components/multiple-tabs/tab-content.vue.d.ts +16 -31
  576. package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
  577. package/lib/components/overlay/index.d.ts +1 -1
  578. package/lib/components/overlay/overlay.vue.d.ts +18 -34
  579. package/lib/components/overlay/overlay.vue2.cjs +1 -1
  580. package/lib/components/page-wrapper/index.d.ts +15 -87
  581. package/lib/components/page-wrapper/page-wrapper.vue.d.ts +13 -9
  582. package/lib/components/pagination/components/jumper.vue.d.ts +12 -10
  583. package/lib/components/pagination/components/next.vue.d.ts +17 -28
  584. package/lib/components/pagination/components/pager.vue.d.ts +17 -30
  585. package/lib/components/pagination/components/pager.vue2.cjs +1 -1
  586. package/lib/components/pagination/components/prev.vue.d.ts +16 -22
  587. package/lib/components/pagination/components/prev.vue2.cjs +1 -1
  588. package/lib/components/pagination/components/sizes.vue.d.ts +18 -34
  589. package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
  590. package/lib/components/pagination/components/total.vue.d.ts +12 -10
  591. package/lib/components/pagination/index.d.ts +1 -1
  592. package/lib/components/pagination/pagination.vue.d.ts +11 -112
  593. package/lib/components/pagination/pagination.vue2.cjs +1 -1
  594. package/lib/components/popconfirm/index.d.ts +134 -166
  595. package/lib/components/popconfirm/popconfirm.vue.d.ts +53 -94
  596. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  597. package/lib/components/popover/index.d.ts +165 -196
  598. package/lib/components/popover/popover.vue2.cjs +1 -1
  599. package/lib/components/popper/arrow.vue.d.ts +14 -10
  600. package/lib/components/popper/composables/use-content-dom.d.ts +1 -3
  601. package/lib/components/popper/composables/use-content.d.ts +6 -70
  602. package/lib/components/popper/content.vue2.cjs +1 -1
  603. package/lib/components/popper/index.d.ts +24 -96
  604. package/lib/components/popper/popper.vue.d.ts +15 -12
  605. package/lib/components/popper/trigger.vue.d.ts +24 -70
  606. package/lib/components/popper/utils.d.ts +2 -45
  607. package/lib/components/progress/index.d.ts +97 -143
  608. package/lib/components/progress/progress.vue.d.ts +10 -87
  609. package/lib/components/progress-i/index.d.ts +1 -1
  610. package/lib/components/progress-i/progress-i.vue.d.ts +1 -1
  611. package/lib/components/qrcode/index.d.ts +1 -1
  612. package/lib/components/qrcode/qrcode.vue.d.ts +24 -35
  613. package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
  614. package/lib/components/radio/index.d.ts +336 -619
  615. package/lib/components/radio/radio-button.vue.d.ts +10 -33
  616. package/lib/components/radio/radio-button.vue2.cjs +1 -1
  617. package/lib/components/radio/radio-group.vue.d.ts +24 -73
  618. package/lib/components/radio/radio-group.vue2.cjs +1 -1
  619. package/lib/components/radio/radio.vue.d.ts +12 -47
  620. package/lib/components/radio/radio.vue2.cjs +1 -1
  621. package/lib/components/radio/use-radio.d.ts +1 -1
  622. package/lib/components/result/index.d.ts +1 -1
  623. package/lib/components/result/result.vue.d.ts +15 -21
  624. package/lib/components/router-view-content/index.d.ts +1 -1
  625. package/lib/components/router-view-content/router-view-content.vue.d.ts +17 -42
  626. package/lib/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +1 -1
  627. package/lib/components/roving-focus-group/roving-focus-group.vue.d.ts +1 -1
  628. package/lib/components/roving-focus-group/roving-focus-item.vue.d.ts +1 -1
  629. package/lib/components/row/index.d.ts +31 -97
  630. package/lib/components/row/row.vue.d.ts +10 -27
  631. package/lib/components/scrollbar/bar.vue.d.ts +11 -34
  632. package/lib/components/scrollbar/index.d.ts +104 -158
  633. package/lib/components/scrollbar/scrollbar.vue.d.ts +11 -70
  634. package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
  635. package/lib/components/scrollbar/thumb.vue.d.ts +9 -34
  636. package/lib/components/search/index.d.ts +118 -171
  637. package/lib/components/search/search.vue.d.ts +16 -67
  638. package/lib/components/search/search.vue2.cjs +1 -1
  639. package/lib/components/select/defaults.d.ts +3 -4
  640. package/lib/components/select/group-item.vue.d.ts +1 -1
  641. package/lib/components/select/index.d.ts +406 -194
  642. package/lib/components/select/option-item.vue.d.ts +1 -1
  643. package/lib/components/select/select-dropdown.d.ts +1 -1
  644. package/lib/components/select/select.vue.d.ts +203 -97
  645. package/lib/components/select/useSelect.d.ts +189 -83
  646. package/lib/components/side-menu/index.d.ts +5 -9
  647. package/lib/components/side-menu/side-menu.vue.d.ts +49 -158
  648. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  649. package/lib/components/skeleton/index.d.ts +44 -108
  650. package/lib/components/skeleton/skeleton-item.vue.d.ts +13 -9
  651. package/lib/components/skeleton/skeleton.vue.d.ts +18 -34
  652. package/lib/components/slider/button.vue.d.ts +11 -28
  653. package/lib/components/slider/button.vue2.cjs +1 -1
  654. package/lib/components/slider/composables/use-slide.d.ts +90 -221
  655. package/lib/components/slider/index.d.ts +4 -4
  656. package/lib/components/slider/marker.d.ts +1 -1
  657. package/lib/components/slider/slider.d.ts +3 -3
  658. package/lib/components/slider/slider.vue.d.ts +12 -161
  659. package/lib/components/slider/slider.vue2.cjs +1 -1
  660. package/lib/components/slot/only-child.d.ts +1 -1
  661. package/lib/components/space/index.d.ts +4 -7
  662. package/lib/components/space/item.d.ts +1 -1
  663. package/lib/components/space/space.d.ts +5 -8
  664. package/lib/components/super-form/index.d.ts +377 -327
  665. package/lib/components/super-form/super-form-action.vue.d.ts +11 -46
  666. package/lib/components/super-form/super-form-item.vue.d.ts +9 -54
  667. package/lib/components/super-form/super-form.vue.d.ts +65 -296
  668. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  669. package/lib/components/switch/index.d.ts +16 -16
  670. package/lib/components/switch/switch.vue.d.ts +40 -149
  671. package/lib/components/switch/switch.vue2.cjs +1 -1
  672. package/lib/components/table/field.d.ts +2 -2
  673. package/lib/components/table/index.d.ts +1145 -963
  674. package/lib/components/table/table.vue.d.ts +78 -687
  675. package/lib/components/table/table.vue2.cjs +1 -1
  676. package/lib/components/table/use/use-columns.d.ts +3 -801
  677. package/lib/components/tabs/index.d.ts +79 -207
  678. package/lib/components/tabs/tab-bar.vue.d.ts +14 -45
  679. package/lib/components/tabs/tab-nav.vue.d.ts +29 -106
  680. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  681. package/lib/components/tabs/tab-pane.vue.d.ts +22 -33
  682. package/lib/components/tabs/tabs.vue.d.ts +13 -90
  683. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  684. package/lib/components/tag/index.d.ts +1 -1
  685. package/lib/components/tag/tag.vue.d.ts +11 -52
  686. package/lib/components/tag/tag.vue2.cjs +1 -1
  687. package/lib/components/time-picker/common/picker.vue.d.ts +107 -92
  688. package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
  689. package/lib/components/time-picker/common/props.d.ts +9 -2
  690. package/lib/components/time-picker/composables/use-time-picker.d.ts +12 -12
  691. package/lib/components/time-picker/index.d.ts +42 -10
  692. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +20 -20
  693. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -1
  694. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +14 -14
  695. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
  696. package/lib/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +12 -12
  697. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  698. package/lib/components/time-picker/time-picker.d.ts +21 -5
  699. package/lib/components/time-picker/utils.d.ts +1 -1
  700. package/lib/components/time-select/time-select.vue.d.ts +44 -44
  701. package/lib/components/time-select/time-select.vue2.cjs +1 -1
  702. package/lib/components/tooltip/content.vue2.cjs +1 -1
  703. package/lib/components/tooltip/index.d.ts +337 -315
  704. package/lib/components/tooltip/tooltip.vue.d.ts +13 -288
  705. package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
  706. package/lib/components/tooltip/trigger.vue.d.ts +18 -34
  707. package/lib/components/tooltip/utils.d.ts +1 -1
  708. package/lib/components/tree/index.d.ts +727 -735
  709. package/lib/components/tree/tree-node-content.vue.d.ts +1 -1
  710. package/lib/components/tree/tree-node.vue.d.ts +3 -3
  711. package/lib/components/tree/tree.vue.d.ts +37 -176
  712. package/lib/components/tree/tree.vue2.cjs +1 -1
  713. package/lib/components/upload/index.d.ts +236 -233
  714. package/lib/components/upload/upload-content.vue.d.ts +46 -173
  715. package/lib/components/upload/upload-dragger.vue.d.ts +12 -10
  716. package/lib/components/upload/upload-dragger.vue2.cjs +1 -1
  717. package/lib/components/upload/upload-list.vue.d.ts +29 -36
  718. package/lib/components/upload/upload-list.vue2.cjs +1 -1
  719. package/lib/components/upload/upload.vue.d.ts +47 -185
  720. package/lib/components/upload/use-handlers.d.ts +2 -11
  721. package/lib/components/verify-code/index.d.ts +1 -1
  722. package/lib/components/verify-code/useImageVerify.cjs +1 -1
  723. package/lib/components/verify-code/verify-code.vue.d.ts +16 -22
  724. package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
  725. package/lib/components/virtual-list/builders/build-grid.d.ts +3 -3
  726. package/lib/components/virtual-list/builders/build-list.d.ts +5 -5
  727. package/lib/components/virtual-list/components/dynamic-size-grid.d.ts +3 -3
  728. package/lib/components/virtual-list/components/dynamic-size-list.d.ts +5 -5
  729. package/lib/components/virtual-list/components/fixed-size-grid.d.ts +3 -3
  730. package/lib/components/virtual-list/components/fixed-size-list.d.ts +5 -5
  731. package/lib/components/virtual-list/components/scrollbar.d.ts +1 -1
  732. package/lib/components/virtual-list/hooks/use-cache.d.ts +1 -1
  733. package/lib/components/virtual-list/props.d.ts +3 -3
  734. package/lib/hooks/use-id/index.d.ts +1 -2
  735. package/lib/hooks/use-model-toggle/index.d.ts +2 -2
  736. package/lib/hooks/use-popper/index.d.ts +7 -70
  737. package/lib/hooks/use-same-target/index.d.ts +3 -3
  738. package/lib/hooks/use-z-index/index.d.ts +1 -1
  739. package/lib/package.json.cjs +1 -1
  740. package/lib/package.json.d.ts +11 -11
  741. package/package.json +14 -14
  742. package/web-types.json +1 -1
  743. package/es/app-components/super-form/types.d.ts +0 -177
  744. package/es/components/collection/collection.d.ts +0 -243
  745. package/es/components/popover/popover.vue.d.ts +0 -158
  746. package/es/components/popper/content.vue.d.ts +0 -184
  747. package/es/components/roving-focus-group/types.d.ts +0 -236
  748. package/es/components/super-form/types.d.ts +0 -176
  749. package/es/components/tooltip/content.vue.d.ts +0 -210
  750. package/lib/app-components/super-form/types.d.ts +0 -177
  751. package/lib/components/collection/collection.d.ts +0 -243
  752. package/lib/components/popover/popover.vue.d.ts +0 -158
  753. package/lib/components/popper/content.vue.d.ts +0 -184
  754. package/lib/components/roving-focus-group/types.d.ts +0 -236
  755. package/lib/components/super-form/types.d.ts +0 -176
  756. 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 */
@@ -130,11 +54,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
130
54
  /** @description resize textarea. */
131
55
  resizeTextarea: () => void;
132
56
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
133
- "update:modelValue": (value: string) => void;
134
- change: (value: string) => void;
135
57
  input: (value: string) => void;
136
58
  clear: () => void;
137
59
  blur: (evt: FocusEvent) => void;
60
+ change: (value: string) => void;
138
61
  compositionend: (evt: CompositionEvent) => void;
139
62
  compositionstart: (evt: CompositionEvent) => void;
140
63
  compositionupdate: (evt: CompositionEvent) => void;
@@ -142,99 +65,24 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
142
65
  keydown: (evt: Event | KeyboardEvent) => void;
143
66
  mouseenter: (evt: MouseEvent) => void;
144
67
  mouseleave: (evt: MouseEvent) => void;
68
+ "update:modelValue": (value: string) => void;
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
+ onInput?: ((value: string) => any) | undefined;
74
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
75
+ onChange?: ((value: string) => 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;
235
83
  onEnter?: (() => any) | undefined;
236
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
237
84
  onClear?: (() => any) | undefined;
85
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
238
86
  onSuffixClick?: ((value: any) => any) | undefined;
239
87
  onPrefixClick?: ((value: any) => any) | undefined;
240
88
  }, {}, {}>, {
@@ -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;
@@ -56,12 +56,12 @@ export declare const VftInputNumber: import("vft/es/utils").SFCWithInstall<impor
56
56
  focus: () => void;
57
57
  blur: () => void;
58
58
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
+ blur: (e: FocusEvent) => void;
60
+ focus: (e: FocusEvent) => void;
59
61
  "update:modelValue": (val: number | undefined) => void;
60
62
  change: (cur: number | undefined, prev: number | undefined) => void;
61
63
  input: (val: number | null | undefined) => void;
62
- blur: (e: FocusEvent) => void;
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;
117
+ onInput?: ((val: number | null | undefined) => any) | undefined;
118
118
  onBlur?: ((e: FocusEvent) => any) | undefined;
119
119
  onChange?: ((cur: number | undefined, prev: number | undefined) => any) | undefined;
120
- onInput?: ((val: number | null | undefined) => 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,126 +68,31 @@ 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 */
127
75
  blur: () => void;
128
76
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
77
+ blur: (e: FocusEvent) => void;
78
+ focus: (e: FocusEvent) => void;
129
79
  "update:modelValue": (val: number | undefined) => void;
130
80
  change: (cur: number | undefined, prev: number | undefined) => void;
131
81
  input: (val: number | null | undefined) => void;
132
- blur: (e: FocusEvent) => void;
133
- 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;
82
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<InputNumberProps>>> & {
83
+ onInput?: ((val: number | null | undefined) => any) | undefined;
188
84
  onBlur?: ((e: FocusEvent) => any) | undefined;
189
85
  onChange?: ((cur: number | undefined, prev: number | undefined) => any) | undefined;
190
- onInput?: ((val: number | null | undefined) => 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;