@sdata/web-vue 3.30.0 → 4.1.0

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 (768) hide show
  1. package/dist/sd.css +319 -23
  2. package/dist/sd.min.css +2 -2
  3. package/es/_components/auto-tooltip/auto-tooltip.js +3 -62
  4. package/es/_components/auto-tooltip/auto-tooltip.vue.d.ts +17 -0
  5. package/es/_components/auto-tooltip/auto-tooltip.vue_vue_type_script_setup_true_lang.js +66 -0
  6. package/es/_components/client-only.js +3 -16
  7. package/es/_components/client-only.vue.d.ts +13 -0
  8. package/es/_components/client-only.vue_vue_type_script_setup_true_lang.js +17 -0
  9. package/es/_components/feedback-icon.vue_vue_type_script_setup_true_lang.js +1 -1
  10. package/es/_components/icon-hover.vue_vue_type_script_setup_true_lang.js +1 -1
  11. package/es/_components/input-label/input-label.js +3 -168
  12. package/es/_components/input-label/input-label.vue.d.ts +59 -0
  13. package/es/_components/input-label/input-label.vue_vue_type_script_setup_true_lang.js +192 -0
  14. package/es/_components/picker/input-range.vue_vue_type_script_setup_true_lang.js +1 -1
  15. package/es/_components/picker/input.vue_vue_type_script_setup_true_lang.js +1 -1
  16. package/es/_components/resize-observer.js +3 -44
  17. package/es/_components/resize-observer.vue.d.ts +17 -0
  18. package/es/_components/resize-observer.vue_vue_type_script_setup_true_lang.js +48 -0
  19. package/es/_components/resize-trigger.vue_vue_type_script_setup_true_lang.js +2 -2
  20. package/es/_components/select-view/select-view.js +3 -231
  21. package/es/_components/select-view/select-view.vue.d.ts +76 -0
  22. package/es/_components/select-view/select-view.vue_vue_type_script_setup_true_lang.js +269 -0
  23. package/es/_components/transition/expand-transition.vue_vue_type_script_setup_true_lang.js +1 -1
  24. package/es/_components/virtual-list/virtual-list.vue_vue_type_script_setup_true_lang.js +3 -3
  25. package/es/_hooks/use-scrollbar.js +1 -1
  26. package/es/_utils/array.js +1 -6
  27. package/es/_utils/color.js +4 -6
  28. package/es/_utils/date.js +2 -2
  29. package/es/_utils/global-config.js +1 -1
  30. package/es/_utils/omit.js +1 -1
  31. package/es/_utils/responsive-observe.js +1 -1
  32. package/es/_utils/virtual-dropdown.js +1 -1
  33. package/es/_utils/vue-utils.js +2 -1
  34. package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/asyncToGenerator.js +1 -1
  35. package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/defineProperty.js +1 -1
  36. package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/extends.js +1 -1
  37. package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectDestructuringEmpty.js +1 -1
  38. package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectSpread2.js +1 -1
  39. package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectWithoutProperties.js +1 -1
  40. package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  41. package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/toPrimitive.js +1 -1
  42. package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/toPropertyKey.js +1 -1
  43. package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/typeof.js +1 -1
  44. package/es/affix/affix.vue_vue_type_script_setup_true_lang.js +3 -3
  45. package/es/alert/alert.vue_vue_type_script_setup_true_lang.js +1 -1
  46. package/es/anchor/anchor-link.vue_vue_type_script_setup_true_lang.js +1 -1
  47. package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +3 -2
  48. package/es/auto-complete/auto-complete.js +3 -389
  49. package/es/auto-complete/auto-complete.vue.d.ts +693 -0
  50. package/es/auto-complete/auto-complete.vue_vue_type_script_setup_true_lang.js +293 -0
  51. package/es/auto-complete/index.d.ts +1667 -79
  52. package/es/avatar/avatar-group.js +4 -96
  53. package/es/avatar/avatar-group.vue.d.ts +29 -0
  54. package/es/avatar/avatar-group.vue_vue_type_script_setup_true_lang.js +84 -0
  55. package/es/avatar/avatar.vue_vue_type_script_setup_true_lang.js +1 -1
  56. package/es/avatar/index.d.ts +53 -51
  57. package/es/avatar/index.js +4 -4
  58. package/es/back-top/back-top.vue_vue_type_script_setup_true_lang.js +1 -1
  59. package/es/badge/badge.js +4 -149
  60. package/es/badge/badge.vue.d.ts +36 -0
  61. package/es/badge/badge.vue_vue_type_script_setup_true_lang.js +112 -0
  62. package/es/badge/index.d.ts +39 -100
  63. package/es/basic-crud-table/basic-crud-modal.vue_vue_type_script_setup_true_lang.js +2 -2
  64. package/es/basic-crud-table/basic-crud-table.vue_vue_type_script_setup_true_lang.js +2 -2
  65. package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +1 -1
  66. package/es/border-beam/styles.js +1 -1
  67. package/es/breadcrumb/breadcrumb-item.js +3 -106
  68. package/es/breadcrumb/breadcrumb-item.vue.d.ts +25 -0
  69. package/es/breadcrumb/breadcrumb-item.vue_vue_type_script_setup_true_lang.js +89 -0
  70. package/es/breadcrumb/breadcrumb.js +3 -115
  71. package/es/breadcrumb/breadcrumb.vue.d.ts +29 -0
  72. package/es/breadcrumb/breadcrumb.vue_vue_type_script_setup_true_lang.js +98 -0
  73. package/es/breadcrumb/index.d.ts +72 -79
  74. package/es/button/button-group.vue_vue_type_script_setup_true_lang.js +1 -1
  75. package/es/button/button.vue_vue_type_script_setup_true_lang.js +8 -6
  76. package/es/calendar/components/cell.vue_vue_type_script_setup_true_lang.js +4 -3
  77. package/es/calendar/components/event.vue_vue_type_script_setup_true_lang.js +2 -2
  78. package/es/calendar/components/headings-bar.vue_vue_type_script_setup_true_lang.js +3 -3
  79. package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +2 -2
  80. package/es/card/card-actions.js +5 -0
  81. package/es/card/card-actions.vue.d.ts +7 -0
  82. package/es/card/card-actions.vue_vue_type_script_setup_true_lang.js +23 -0
  83. package/es/card/card-grid.vue_vue_type_script_setup_true_lang.js +1 -1
  84. package/es/card/card-meta.js +3 -47
  85. package/es/card/card-meta.vue.d.ts +21 -0
  86. package/es/card/card-meta.vue_vue_type_script_setup_true_lang.js +54 -0
  87. package/es/card/card.js +3 -180
  88. package/es/card/card.vue.d.ts +40 -0
  89. package/es/card/card.vue_vue_type_script_setup_true_lang.js +116 -0
  90. package/es/card/context.d.ts +1 -2
  91. package/es/card/index.d.ts +67 -871
  92. package/es/card/index.js +1 -1
  93. package/es/carousel/carousel-arrow.vue_vue_type_script_setup_true_lang.js +1 -1
  94. package/es/carousel/carousel-indicator.vue_vue_type_script_setup_true_lang.js +1 -1
  95. package/es/carousel/carousel-item.vue_vue_type_script_setup_true_lang.js +1 -1
  96. package/es/carousel/carousel.js +3 -289
  97. package/es/carousel/{carousel.d.ts → carousel.vue.d.ts} +8 -11
  98. package/es/carousel/carousel.vue_vue_type_script_setup_true_lang.js +229 -0
  99. package/es/carousel/index.d.ts +11 -17
  100. package/es/carousel/index.js +1 -1
  101. package/es/cascader/base-cascader-panel.js +3 -70
  102. package/es/cascader/{base-cascader-panel.d.ts → base-cascader-panel.vue.d.ts} +20 -11
  103. package/es/cascader/base-cascader-panel.vue_vue_type_script_setup_true_lang.js +85 -0
  104. package/es/cascader/cascader-column.js +3 -75
  105. package/es/cascader/{cascader-column.d.ts → cascader-column.vue.d.ts} +18 -11
  106. package/es/cascader/cascader-column.vue_vue_type_script_setup_true_lang.js +103 -0
  107. package/es/cascader/cascader-option.js +3 -141
  108. package/es/cascader/{cascader-option.d.ts → cascader-option.vue.d.ts} +4 -3
  109. package/es/cascader/cascader-option.vue_vue_type_script_setup_true_lang.js +171 -0
  110. package/es/cascader/cascader-panel.vue_vue_type_script_setup_true_lang.js +4 -3
  111. package/es/cascader/cascader-search-panel.js +3 -58
  112. package/es/cascader/{cascader-search-panel.d.ts → cascader-search-panel.vue.d.ts} +15 -4
  113. package/es/cascader/cascader-search-panel.vue_vue_type_script_setup_true_lang.js +71 -0
  114. package/es/cascader/cascader.vue.d.ts +3 -1
  115. package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +17 -13
  116. package/es/checkbox/checkbox-group.js +3 -139
  117. package/es/checkbox/checkbox-group.vue.d.ts +41 -0
  118. package/es/checkbox/checkbox-group.vue_vue_type_script_setup_true_lang.js +100 -0
  119. package/es/checkbox/checkbox.js +3 -195
  120. package/es/checkbox/checkbox.vue.d.ts +39 -0
  121. package/es/checkbox/checkbox.vue_vue_type_script_setup_true_lang.js +165 -0
  122. package/es/checkbox/icon-check.js +3 -18
  123. package/es/checkbox/icon-check.vue.d.ts +3 -0
  124. package/es/checkbox/icon-check.vue_vue_type_script_setup_true_lang.js +24 -0
  125. package/es/checkbox/index.d.ts +102 -294
  126. package/es/collapse/collapse-item.js +3 -177
  127. package/es/collapse/collapse-item.vue.d.ts +30 -0
  128. package/es/collapse/collapse-item.vue_vue_type_script_setup_true_lang.js +168 -0
  129. package/es/collapse/collapse.vue.d.ts +1 -1
  130. package/es/collapse/collapse.vue_vue_type_script_setup_true_lang.js +1 -1
  131. package/es/collapse/index.d.ts +50 -155
  132. package/es/collapse/style/index.css +1 -0
  133. package/es/collapse/style/index.scss +1 -0
  134. package/es/color-picker/color-picker.js +3 -293
  135. package/es/color-picker/{color-picker.d.ts → color-picker.vue.d.ts} +25 -14
  136. package/es/color-picker/color-picker.vue_vue_type_script_setup_true_lang.js +256 -0
  137. package/es/color-picker/control-bar.js +3 -54
  138. package/es/color-picker/{control-bar.d.ts → control-bar.vue.d.ts} +5 -4
  139. package/es/color-picker/control-bar.vue_vue_type_script_setup_true_lang.js +68 -0
  140. package/es/color-picker/gradient-thumb.js +5 -0
  141. package/es/color-picker/gradient-thumb.vue.d.ts +13 -0
  142. package/es/color-picker/gradient-thumb.vue_vue_type_script_setup_true_lang.js +69 -0
  143. package/es/color-picker/index.d.ts +37 -32
  144. package/es/color-picker/palette.js +3 -43
  145. package/es/color-picker/palette.vue.d.ts +17 -0
  146. package/es/color-picker/palette.vue_vue_type_script_setup_true_lang.js +51 -0
  147. package/es/color-picker/panel.js +3 -475
  148. package/es/color-picker/{panel.d.ts → panel.vue.d.ts} +5 -4
  149. package/es/color-picker/panel.vue_vue_type_script_setup_true_lang.js +453 -0
  150. package/es/color-picker/utils.js +12 -10
  151. package/es/comment/comment.vue_vue_type_script_setup_true_lang.js +1 -1
  152. package/es/components.d.ts +2 -0
  153. package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +1 -1
  154. package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +1 -1
  155. package/es/config-provider/theme.js +1 -1
  156. package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +2 -2
  157. package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +2 -2
  158. package/es/date-picker/hooks/use-range-header-value.js +2 -2
  159. package/es/date-picker/hooks/use-range-time-picker-value.js +1 -1
  160. package/es/date-picker/hooks/use-time-picker-value.js +10 -8
  161. package/es/date-picker/index.d.ts +238 -122
  162. package/es/date-picker/panels/body.vue_vue_type_script_setup_true_lang.js +1 -1
  163. package/es/date-picker/panels/date/index.vue_vue_type_script_setup_true_lang.js +2 -2
  164. package/es/date-picker/panels/footer.vue_vue_type_script_setup_true_lang.js +1 -1
  165. package/es/date-picker/panels/header.vue_vue_type_script_setup_true_lang.js +1 -1
  166. package/es/date-picker/panels/month/index.vue_vue_type_script_setup_true_lang.js +1 -1
  167. package/es/date-picker/panels/quarter/index.vue_vue_type_script_setup_true_lang.js +1 -1
  168. package/es/date-picker/panels/shortcuts.vue_vue_type_script_setup_true_lang.js +1 -1
  169. package/es/date-picker/panels/week/index.vue_vue_type_script_setup_true_lang.js +1 -1
  170. package/es/date-picker/panels/week-list.vue_vue_type_script_setup_true_lang.js +1 -1
  171. package/es/date-picker/panels/year/index.vue_vue_type_script_setup_true_lang.js +2 -2
  172. package/es/date-picker/picker-panel.vue_vue_type_script_setup_true_lang.js +1 -1
  173. package/es/date-picker/picker.vue.d.ts +1 -1
  174. package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +3 -3
  175. package/es/date-picker/pickers/date-picker.js +3 -93
  176. package/es/date-picker/pickers/{date-picker.d.ts → date-picker.vue.d.ts} +26 -35
  177. package/es/date-picker/pickers/date-picker.vue_vue_type_script_setup_true_lang.js +107 -0
  178. package/es/date-picker/pickers/month-picker.js +3 -37
  179. package/es/date-picker/pickers/month-picker.vue.d.ts +38 -0
  180. package/es/date-picker/pickers/month-picker.vue_vue_type_script_setup_true_lang.js +51 -0
  181. package/es/date-picker/pickers/quarter-picker.js +3 -46
  182. package/es/date-picker/pickers/{quarter-picker.d.ts → quarter-picker.vue.d.ts} +14 -3
  183. package/es/date-picker/pickers/quarter-picker.vue_vue_type_script_setup_true_lang.js +60 -0
  184. package/es/date-picker/pickers/week-picker.js +3 -56
  185. package/es/date-picker/pickers/{week-picker.d.ts → week-picker.vue.d.ts} +15 -4
  186. package/es/date-picker/pickers/week-picker.vue_vue_type_script_setup_true_lang.js +70 -0
  187. package/es/date-picker/pickers/year-picker.js +3 -37
  188. package/es/date-picker/pickers/year-picker.vue.d.ts +38 -0
  189. package/es/date-picker/pickers/year-picker.vue_vue_type_script_setup_true_lang.js +51 -0
  190. package/es/date-picker/range-picker-panel.vue_vue_type_script_setup_true_lang.js +1 -1
  191. package/es/date-picker/range-picker.vue.d.ts +1 -1
  192. package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +3 -3
  193. package/es/descriptions/descriptions-item.vue_vue_type_script_setup_true_lang.js +1 -1
  194. package/es/descriptions/descriptions.js +3 -232
  195. package/es/descriptions/{descriptions.d.ts → descriptions.vue.d.ts} +22 -23
  196. package/es/descriptions/descriptions.vue_vue_type_script_setup_true_lang.js +209 -0
  197. package/es/descriptions/index.d.ts +18 -32
  198. package/es/descriptions/index.js +1 -1
  199. package/es/divider/divider.js +3 -71
  200. package/es/divider/divider.vue.d.ts +21 -0
  201. package/es/divider/divider.vue_vue_type_script_setup_true_lang.js +47 -0
  202. package/es/divider/index.d.ts +25 -66
  203. package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +3 -3
  204. package/es/drawer/index.js +2 -2
  205. package/es/dropdown/dropdown-button.vue_vue_type_script_setup_true_lang.js +1 -1
  206. package/es/dropdown/dropdown-group.vue_vue_type_script_setup_true_lang.js +1 -1
  207. package/es/dropdown/dropdown-option.vue_vue_type_script_setup_true_lang.js +1 -1
  208. package/es/dropdown/dropdown-panel.vue_vue_type_script_setup_true_lang.js +1 -2
  209. package/es/dropdown/dropdown-submenu.vue_vue_type_script_setup_true_lang.js +1 -1
  210. package/es/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +1 -1
  211. package/es/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +3 -3
  212. package/es/ellipsis/performant-ellipsis.vue_vue_type_script_setup_true_lang.js +2 -2
  213. package/es/empty/empty.js +3 -49
  214. package/es/empty/empty.vue.d.ts +18 -0
  215. package/es/empty/empty.vue_vue_type_script_setup_true_lang.js +44 -0
  216. package/es/empty/index.d.ts +20 -36
  217. package/es/file-previewer/file-previewer.vue_vue_type_script_setup_true_lang.js +2 -2
  218. package/es/file-previewer/pdfjs-worker.min.mjs +4 -4
  219. package/es/file-previewer/use-pdf-js.js +2 -2
  220. package/es/form/form-item-label.vue_vue_type_script_setup_true_lang.js +1 -1
  221. package/es/form/form-item-message.vue_vue_type_script_setup_true_lang.js +1 -1
  222. package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +31 -30
  223. package/es/form/form.vue_vue_type_script_setup_true_lang.js +1 -1
  224. package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +4 -3
  225. package/es/grid/grid-item.vue_vue_type_script_setup_true_lang.js +1 -1
  226. package/es/grid/grid-row.vue_vue_type_script_setup_true_lang.js +3 -2
  227. package/es/grid/grid.vue_vue_type_script_setup_true_lang.js +1 -1
  228. package/es/grid/style/col.scss +29 -41
  229. package/es/grid/style/index.css +237 -0
  230. package/es/icon/icon-arrow-up/icon-arrow-up.vue_vue_type_script_setup_true_lang.js +1 -1
  231. package/es/icon/icon-calendar/icon-calendar.vue_vue_type_script_setup_true_lang.js +1 -1
  232. package/es/icon/icon-caret-down/icon-caret-down.vue_vue_type_script_setup_true_lang.js +1 -1
  233. package/es/icon/icon-caret-left/icon-caret-left.vue_vue_type_script_setup_true_lang.js +1 -1
  234. package/es/icon/icon-caret-right/icon-caret-right.vue_vue_type_script_setup_true_lang.js +1 -1
  235. package/es/icon/icon-caret-up/icon-caret-up.vue_vue_type_script_setup_true_lang.js +1 -1
  236. package/es/icon/icon-check/icon-check.vue_vue_type_script_setup_true_lang.js +1 -1
  237. package/es/icon/icon-check-circle-fill/icon-check-circle-fill.vue_vue_type_script_setup_true_lang.js +1 -1
  238. package/es/icon/icon-clock-circle/icon-clock-circle.vue_vue_type_script_setup_true_lang.js +1 -1
  239. package/es/icon/icon-close/icon-close.vue_vue_type_script_setup_true_lang.js +1 -1
  240. package/es/icon/icon-close-circle-fill/icon-close-circle-fill.vue_vue_type_script_setup_true_lang.js +1 -1
  241. package/es/icon/icon-copy/icon-copy.vue_vue_type_script_setup_true_lang.js +1 -1
  242. package/es/icon/icon-delete/icon-delete.vue_vue_type_script_setup_true_lang.js +1 -1
  243. package/es/icon/icon-double-left/icon-double-left.vue_vue_type_script_setup_true_lang.js +1 -1
  244. package/es/icon/icon-double-right/icon-double-right.vue_vue_type_script_setup_true_lang.js +1 -1
  245. package/es/icon/icon-down/icon-down.vue_vue_type_script_setup_true_lang.js +1 -1
  246. package/es/icon/icon-drag-dot/icon-drag-dot.vue_vue_type_script_setup_true_lang.js +1 -1
  247. package/es/icon/icon-drag-dot-vertical/icon-drag-dot-vertical.vue_vue_type_script_setup_true_lang.js +1 -1
  248. package/es/icon/icon-edit/icon-edit.vue_vue_type_script_setup_true_lang.js +1 -1
  249. package/es/icon/icon-empty/icon-empty.vue_vue_type_script_setup_true_lang.js +1 -1
  250. package/es/icon/icon-exclamation/icon-exclamation.vue_vue_type_script_setup_true_lang.js +1 -1
  251. package/es/icon/icon-exclamation-circle-fill/icon-exclamation-circle-fill.vue_vue_type_script_setup_true_lang.js +1 -1
  252. package/es/icon/icon-eye/icon-eye.vue_vue_type_script_setup_true_lang.js +1 -1
  253. package/es/icon/icon-eye-invisible/icon-eye-invisible.vue_vue_type_script_setup_true_lang.js +1 -1
  254. package/es/icon/icon-face-frown-fill/icon-face-frown-fill.vue_vue_type_script_setup_true_lang.js +1 -1
  255. package/es/icon/icon-face-meh-fill/icon-face-meh-fill.vue_vue_type_script_setup_true_lang.js +1 -1
  256. package/es/icon/icon-face-smile-fill/icon-face-smile-fill.vue_vue_type_script_setup_true_lang.js +1 -1
  257. package/es/icon/icon-file/icon-file.vue_vue_type_script_setup_true_lang.js +1 -1
  258. package/es/icon/icon-file-audio/icon-file-audio.vue_vue_type_script_setup_true_lang.js +1 -1
  259. package/es/icon/icon-file-image/icon-file-image.vue_vue_type_script_setup_true_lang.js +1 -1
  260. package/es/icon/icon-file-pdf/icon-file-pdf.vue_vue_type_script_setup_true_lang.js +1 -1
  261. package/es/icon/icon-file-video/icon-file-video.vue_vue_type_script_setup_true_lang.js +1 -1
  262. package/es/icon/icon-filter/icon-filter.vue_vue_type_script_setup_true_lang.js +1 -1
  263. package/es/icon/icon-fullscreen/icon-fullscreen.vue_vue_type_script_setup_true_lang.js +1 -1
  264. package/es/icon/icon-image-close/icon-image-close.vue_vue_type_script_setup_true_lang.js +1 -1
  265. package/es/icon/icon-info/icon-info.vue_vue_type_script_setup_true_lang.js +1 -1
  266. package/es/icon/icon-info-circle-fill/icon-info-circle-fill.vue_vue_type_script_setup_true_lang.js +1 -1
  267. package/es/icon/icon-left/icon-left.vue_vue_type_script_setup_true_lang.js +1 -1
  268. package/es/icon/icon-link/icon-link.vue_vue_type_script_setup_true_lang.js +1 -1
  269. package/es/icon/icon-list/icon-list.vue_vue_type_script_setup_true_lang.js +1 -1
  270. package/es/icon/icon-loading/icon-loading.vue_vue_type_script_setup_true_lang.js +1 -1
  271. package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +1 -1
  272. package/es/icon/icon-menu-fold/icon-menu-fold.vue_vue_type_script_setup_true_lang.js +1 -1
  273. package/es/icon/icon-menu-unfold/icon-menu-unfold.vue_vue_type_script_setup_true_lang.js +1 -1
  274. package/es/icon/icon-minus/icon-minus.vue_vue_type_script_setup_true_lang.js +1 -1
  275. package/es/icon/icon-more/icon-more.vue_vue_type_script_setup_true_lang.js +1 -1
  276. package/es/icon/icon-mute/icon-mute.vue_vue_type_script_setup_true_lang.js +1 -1
  277. package/es/icon/icon-oblique-line/icon-oblique-line.vue_vue_type_script_setup_true_lang.js +1 -1
  278. package/es/icon/icon-original-size/icon-original-size.vue_vue_type_script_setup_true_lang.js +1 -1
  279. package/es/icon/icon-pause/icon-pause.vue_vue_type_script_setup_true_lang.js +1 -1
  280. package/es/icon/icon-play-arrow-fill/icon-play-arrow-fill.vue_vue_type_script_setup_true_lang.js +1 -1
  281. package/es/icon/icon-plus/icon-plus.vue_vue_type_script_setup_true_lang.js +1 -1
  282. package/es/icon/icon-question-circle/icon-question-circle.vue_vue_type_script_setup_true_lang.js +1 -1
  283. package/es/icon/icon-right/icon-right.vue_vue_type_script_setup_true_lang.js +1 -1
  284. package/es/icon/icon-rotate-left/icon-rotate-left.vue_vue_type_script_setup_true_lang.js +1 -1
  285. package/es/icon/icon-rotate-right/icon-rotate-right.vue_vue_type_script_setup_true_lang.js +1 -1
  286. package/es/icon/icon-search/icon-search.vue_vue_type_script_setup_true_lang.js +1 -1
  287. package/es/icon/icon-star-fill/icon-star-fill.vue_vue_type_script_setup_true_lang.js +1 -1
  288. package/es/icon/icon-to-top/icon-to-top.vue_vue_type_script_setup_true_lang.js +1 -1
  289. package/es/icon/icon-up/icon-up.vue_vue_type_script_setup_true_lang.js +1 -1
  290. package/es/icon/icon-upload/icon-upload.vue_vue_type_script_setup_true_lang.js +1 -1
  291. package/es/icon/icon-voice/icon-voice.vue_vue_type_script_setup_true_lang.js +1 -1
  292. package/es/icon/icon-zoom-in/icon-zoom-in.vue_vue_type_script_setup_true_lang.js +1 -1
  293. package/es/icon/icon-zoom-out/icon-zoom-out.vue_vue_type_script_setup_true_lang.js +1 -1
  294. package/es/icon-component/add-from-icon-font-cn.d.ts +8 -13
  295. package/es/icon-component/add-from-icon-font-cn.js +13 -22
  296. package/es/icon-component/icon-font.js +5 -0
  297. package/es/icon-component/icon-font.vue.d.ts +35 -0
  298. package/es/icon-component/icon-font.vue_vue_type_script_setup_true_lang.js +38 -0
  299. package/es/icon-component/icon.vue_vue_type_script_setup_true_lang.js +1 -1
  300. package/es/icon-component/index.d.ts +1 -13
  301. package/es/icon.js +5 -5
  302. package/es/image/hooks/use-image-drag.js +3 -1
  303. package/es/image/image-footer.vue_vue_type_script_setup_true_lang.js +1 -1
  304. package/es/image/image.vue_vue_type_script_setup_true_lang.js +2 -2
  305. package/es/image/index.d.ts +1 -1
  306. package/es/image/preview-action.js +3 -47
  307. package/es/image/preview-action.vue.d.ts +29 -0
  308. package/es/image/preview-action.vue_vue_type_script_setup_true_lang.js +55 -0
  309. package/es/image/preview-arrow.vue_vue_type_script_setup_true_lang.js +1 -1
  310. package/es/image/preview-group.vue_vue_type_script_setup_true_lang.js +1 -1
  311. package/es/image/preview-toolbar.vue.d.ts +2 -2
  312. package/es/image/preview-toolbar.vue_vue_type_script_setup_true_lang.js +3 -3
  313. package/es/image/preview.vue_vue_type_script_setup_true_lang.js +33 -23
  314. package/es/index.css +319 -23
  315. package/es/index.d.ts +2 -2
  316. package/es/index.js +16 -14
  317. package/es/index.scss +1 -1
  318. package/es/input/index.d.ts +1770 -136
  319. package/es/input/index.js +1 -1
  320. package/es/input/input-group.vue_vue_type_script_setup_true_lang.js +1 -1
  321. package/es/input/input-password.vue_vue_type_script_setup_true_lang.js +3 -3
  322. package/es/input/input-search.js +3 -140
  323. package/es/input/input-search.vue.d.ts +620 -0
  324. package/es/input/input-search.vue_vue_type_script_setup_true_lang.js +168 -0
  325. package/es/input/input.js +3 -487
  326. package/es/input/{input.d.ts → input.vue.d.ts} +42 -43
  327. package/es/input/input.vue_vue_type_script_setup_true_lang.js +377 -0
  328. package/es/input-mask/input-mask.vue_vue_type_script_setup_true_lang.js +1 -1
  329. package/es/input-mask/mask-engine.js +4 -4
  330. package/es/input-mask/presets.js +1 -1
  331. package/es/input-number/index.d.ts +1670 -106
  332. package/es/input-number/input-number.js +3 -529
  333. package/es/input-number/input-number.vue.d.ts +708 -0
  334. package/es/input-number/input-number.vue_vue_type_script_setup_true_lang.js +384 -0
  335. package/es/input-tag/index.d.ts +76 -92
  336. package/es/input-tag/input-tag.js +3 -672
  337. package/es/input-tag/{input-tag.d.ts → input-tag.vue.d.ts} +52 -49
  338. package/es/input-tag/input-tag.vue_vue_type_script_setup_true_lang.js +585 -0
  339. package/es/input-tag/utils.js +1 -1
  340. package/es/json-form/json-form-component.vue_vue_type_script_setup_true_lang.js +1 -1
  341. package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +1 -1
  342. package/es/json-form/json-form.vue_vue_type_script_setup_true_lang.js +1 -1
  343. package/es/json-form/utils.js +4 -4
  344. package/es/kv-list/index.d.ts +34 -34
  345. package/es/kv-list/kv-list-row.vue_vue_type_script_setup_true_lang.js +1 -1
  346. package/es/kv-list/kv-list.vue_vue_type_script_setup_true_lang.js +1 -1
  347. package/es/layout/content.vue_vue_type_script_setup_true_lang.js +1 -1
  348. package/es/layout/footer.vue_vue_type_script_setup_true_lang.js +1 -1
  349. package/es/layout/header.vue_vue_type_script_setup_true_lang.js +1 -1
  350. package/es/layout/layout.vue_vue_type_script_setup_true_lang.js +4 -3
  351. package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +1 -1
  352. package/es/link/link.vue_vue_type_script_setup_true_lang.js +1 -1
  353. package/es/list/index.d.ts +2619 -93
  354. package/es/list/index.js +2 -2
  355. package/es/list/list-item-meta.vue_vue_type_script_setup_true_lang.js +1 -1
  356. package/es/list/list-item.js +3 -54
  357. package/es/list/list-item.vue.d.ts +22 -0
  358. package/es/list/list-item.vue_vue_type_script_setup_true_lang.js +58 -0
  359. package/es/list/list.js +3 -383
  360. package/es/list/list.vue.d.ts +980 -0
  361. package/es/list/list.vue_vue_type_script_setup_true_lang.js +326 -0
  362. package/es/mention/index.d.ts +3234 -58
  363. package/es/mention/mention.js +3 -437
  364. package/es/mention/mention.vue.d.ts +1210 -0
  365. package/es/mention/mention.vue_vue_type_script_setup_true_lang.js +376 -0
  366. package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +5 -4
  367. package/es/menu/hooks/use-level.js +2 -1
  368. package/es/menu/indent.vue_vue_type_script_setup_true_lang.js +3 -2
  369. package/es/menu/index.d.ts +3 -3
  370. package/es/menu/index.js +1 -1
  371. package/es/menu/item-group.vue_vue_type_script_setup_true_lang.js +3 -2
  372. package/es/menu/item.js +3 -127
  373. package/es/menu/{item.d.ts → item.vue.d.ts} +25 -4
  374. package/es/menu/item.vue_vue_type_script_setup_true_lang.js +147 -0
  375. package/es/menu/menu.js +3 -57
  376. package/es/menu/menu.vue.d.ts +66 -0
  377. package/es/menu/menu.vue_vue_type_script_setup_true_lang.js +78 -0
  378. package/es/menu/overflow-wrap.js +3 -97
  379. package/es/menu/overflow-wrap.vue.d.ts +3 -0
  380. package/es/menu/overflow-wrap.vue_vue_type_script_setup_true_lang.js +114 -0
  381. package/es/menu/sub-menu-inline.vue_vue_type_script_setup_true_lang.js +2 -2
  382. package/es/menu/sub-menu-pop.vue_vue_type_script_setup_true_lang.js +2 -2
  383. package/es/menu/sub-menu.js +3 -115
  384. package/es/menu/{sub-menu.d.ts → sub-menu.vue.d.ts} +27 -30
  385. package/es/menu/sub-menu.vue_vue_type_script_setup_true_lang.js +110 -0
  386. package/es/message/index.js +1 -1
  387. package/es/message/message-list.js +3 -45
  388. package/es/message/{message-list.d.ts → message-list.vue.d.ts} +9 -7
  389. package/es/message/message-list.vue_vue_type_script_setup_true_lang.js +64 -0
  390. package/es/message/message.vue_vue_type_script_setup_true_lang.js +1 -1
  391. package/es/modal/index.js +3 -3
  392. package/es/modal/modal.vue_vue_type_script_setup_true_lang.js +3 -3
  393. package/es/model-selector/model-selector-content.vue_vue_type_script_setup_true_lang.js +1 -1
  394. package/es/model-selector/model-selector-dialog.vue_vue_type_script_setup_true_lang.js +1 -1
  395. package/es/model-selector/model-selector-empty.vue_vue_type_script_setup_true_lang.js +1 -1
  396. package/es/model-selector/model-selector-group.vue_vue_type_script_setup_true_lang.js +1 -1
  397. package/es/model-selector/model-selector-input.vue_vue_type_script_setup_true_lang.js +1 -1
  398. package/es/model-selector/model-selector-item.vue_vue_type_script_setup_true_lang.js +1 -1
  399. package/es/model-selector/model-selector-list.vue_vue_type_script_setup_true_lang.js +1 -1
  400. package/es/model-selector/model-selector-logo-group.vue_vue_type_script_setup_true_lang.js +1 -1
  401. package/es/model-selector/model-selector-logo.vue_vue_type_script_setup_true_lang.js +1 -1
  402. package/es/model-selector/model-selector-name.vue_vue_type_script_setup_true_lang.js +1 -1
  403. package/es/model-selector/model-selector-separator.vue_vue_type_script_setup_true_lang.js +1 -1
  404. package/es/model-selector/model-selector-shortcut.vue_vue_type_script_setup_true_lang.js +1 -1
  405. package/es/model-selector/model-selector-trigger-element.js +5 -0
  406. package/es/model-selector/model-selector-trigger-element.vue.d.ts +7 -0
  407. package/es/model-selector/model-selector-trigger-element.vue_vue_type_script_lang.js +18 -0
  408. package/es/model-selector/model-selector-trigger.vue_vue_type_script_setup_true_lang.js +4 -17
  409. package/es/model-selector/model-selector.vue_vue_type_script_setup_true_lang.js +1 -1
  410. package/es/notification/index.js +1 -1
  411. package/es/notification/notification-list.js +3 -58
  412. package/es/notification/notification-list.vue.d.ts +34 -0
  413. package/es/notification/notification-list.vue_vue_type_script_setup_true_lang.js +96 -0
  414. package/es/notification/notification.vue_vue_type_script_setup_true_lang.js +1 -1
  415. package/es/number-flow/continuous.d.ts +2 -0
  416. package/es/number-flow/continuous.js +7 -0
  417. package/es/number-flow/formatter.d.ts +15 -0
  418. package/es/number-flow/formatter.js +54 -0
  419. package/es/number-flow/group-key.d.ts +11 -0
  420. package/es/number-flow/group-key.js +4 -0
  421. package/es/number-flow/index.d.ts +63 -0
  422. package/es/number-flow/index.js +15 -0
  423. package/es/number-flow/number-flow-group.js +5 -0
  424. package/es/number-flow/number-flow-group.vue.d.ts +12 -0
  425. package/es/number-flow/number-flow-group.vue_vue_type_script_setup_true_lang.js +58 -0
  426. package/es/number-flow/number-flow.js +5 -0
  427. package/es/number-flow/number-flow.vue.d.ts +20 -0
  428. package/es/number-flow/number-flow.vue_vue_type_script_setup_true_lang.js +284 -0
  429. package/es/number-flow/style/index.css +85 -0
  430. package/es/number-flow/style/index.scss +93 -0
  431. package/es/number-flow/style/token.scss +5 -0
  432. package/es/number-flow/types.d.ts +46 -0
  433. package/es/number-flow/use-can-animate.d.ts +4 -0
  434. package/es/number-flow/use-can-animate.js +30 -0
  435. package/es/page-header/page-header.vue_vue_type_script_setup_true_lang.js +1 -1
  436. package/es/pagination/index.d.ts +45 -49
  437. package/es/pagination/page-item-ellipsis.vue_vue_type_script_setup_true_lang.js +1 -1
  438. package/es/pagination/page-item-step.vue_vue_type_script_setup_true_lang.js +1 -1
  439. package/es/pagination/page-item.vue_vue_type_script_setup_true_lang.js +1 -1
  440. package/es/pagination/page-jumper.vue_vue_type_script_setup_true_lang.js +1 -1
  441. package/es/pagination/page-options.vue_vue_type_script_setup_true_lang.js +1 -1
  442. package/es/pagination/pagination.js +3 -463
  443. package/es/pagination/{pagination.d.ts → pagination.vue.d.ts} +42 -31
  444. package/es/pagination/pagination.vue_vue_type_script_setup_true_lang.js +454 -0
  445. package/es/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +2 -2
  446. package/es/popover/popover.vue_vue_type_script_setup_true_lang.js +1 -1
  447. package/es/progress/circle.vue_vue_type_script_setup_true_lang.js +1 -1
  448. package/es/progress/line.vue_vue_type_script_setup_true_lang.js +1 -1
  449. package/es/progress/progress.vue_vue_type_script_setup_true_lang.js +1 -1
  450. package/es/progress/steps.vue_vue_type_script_setup_true_lang.js +1 -1
  451. package/es/qr-code/index.d.ts +18 -33
  452. package/es/qr-code/qr-code.vue.d.ts +6 -11
  453. package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +4 -3
  454. package/es/radio/index.d.ts +111 -289
  455. package/es/radio/radio-group.js +3 -168
  456. package/es/radio/radio-group.vue.d.ts +45 -0
  457. package/es/radio/radio-group.vue_vue_type_script_setup_true_lang.js +129 -0
  458. package/es/radio/radio.js +3 -172
  459. package/es/radio/radio.vue.d.ts +40 -0
  460. package/es/radio/radio.vue_vue_type_script_setup_true_lang.js +152 -0
  461. package/es/rate/index.d.ts +17 -11
  462. package/es/rate/rate.js +3 -269
  463. package/es/rate/{rate.d.ts → rate.vue.d.ts} +18 -6
  464. package/es/rate/rate.vue_vue_type_script_setup_true_lang.js +220 -0
  465. package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +1 -3
  466. package/es/result/403.js +3 -481
  467. package/es/result/403.vue.d.ts +3 -0
  468. package/es/result/403.vue_vue_type_script_setup_true_lang.js +24 -0
  469. package/es/result/404.js +3 -335
  470. package/es/result/404.vue.d.ts +3 -0
  471. package/es/result/404.vue_vue_type_script_setup_true_lang.js +24 -0
  472. package/es/result/500.js +3 -344
  473. package/es/result/500.vue.d.ts +3 -0
  474. package/es/result/500.vue_vue_type_script_setup_true_lang.js +19 -0
  475. package/es/result/result.vue_vue_type_script_setup_true_lang.js +2 -2
  476. package/es/rich-text-editor/index.d.ts +3 -3
  477. package/es/rich-text-editor/nodes/inline-component-node.js +1 -1
  478. package/es/rich-text-editor/rich-text-editor.vue.d.ts +1 -1
  479. package/es/rich-text-editor/rich-text-editor.vue_vue_type_script_setup_true_lang.js +2 -2
  480. package/es/rich-text-editor/rich-text-node-renderer.vue_vue_type_script_setup_true_lang.js +4 -4
  481. package/es/scrollbar/scrollbar.vue_vue_type_script_setup_true_lang.js +2 -2
  482. package/es/sd-vue.js +17 -16
  483. package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +2 -2
  484. package/es/select/hooks/use-options.js +1 -1
  485. package/es/select/index.d.ts +93 -2299
  486. package/es/select/select-dropdown.vue_vue_type_script_setup_true_lang.js +1 -1
  487. package/es/select/select.js +3 -684
  488. package/es/select/select.vue.d.ts +450 -0
  489. package/es/select/select.vue_vue_type_script_setup_true_lang.js +774 -0
  490. package/es/select/utils.js +1 -1
  491. package/es/selectable-card/selectable-card.vue_vue_type_script_setup_true_lang.js +1 -1
  492. package/es/sender/sender-header.vue_vue_type_script_setup_true_lang.js +1 -1
  493. package/es/sender/sender-recording-icon.js +5 -0
  494. package/es/sender/sender-recording-icon.vue.d.ts +3 -0
  495. package/es/sender/sender-recording-icon.vue_vue_type_script_setup_true_lang.js +38 -0
  496. package/es/sender/sender-skill-tag.js +5 -0
  497. package/es/sender/sender-skill-tag.vue.d.ts +28 -0
  498. package/es/sender/sender-skill-tag.vue_vue_type_script_setup_true_lang.js +59 -0
  499. package/es/sender/sender-stop-loading-icon.js +5 -0
  500. package/es/sender/sender-stop-loading-icon.vue.d.ts +3 -0
  501. package/es/sender/sender-stop-loading-icon.vue_vue_type_script_setup_true_lang.js +54 -0
  502. package/es/sender/sender-switch.vue_vue_type_script_setup_true_lang.js +1 -1
  503. package/es/sender/sender.vue_vue_type_script_setup_true_lang.js +8 -109
  504. package/es/sender/use-recorder.js +2 -1
  505. package/es/skeleton/line.vue_vue_type_script_setup_true_lang.js +1 -1
  506. package/es/skeleton/shape.vue_vue_type_script_setup_true_lang.js +1 -1
  507. package/es/skeleton/skeleton.vue_vue_type_script_setup_true_lang.js +1 -1
  508. package/es/slider/slider-button.vue_vue_type_script_setup_true_lang.js +5 -2
  509. package/es/slider/slider-dots.vue_vue_type_script_setup_true_lang.js +1 -1
  510. package/es/slider/slider-input.vue_vue_type_script_setup_true_lang.js +1 -1
  511. package/es/slider/slider-marks.vue_vue_type_script_setup_true_lang.js +1 -1
  512. package/es/slider/slider-ticks.vue_vue_type_script_setup_true_lang.js +1 -1
  513. package/es/slider/slider.vue_vue_type_script_setup_true_lang.js +1 -1
  514. package/es/slider/utils.js +1 -2
  515. package/es/space/index.d.ts +26 -72
  516. package/es/space/space.js +3 -101
  517. package/es/space/space.vue.d.ts +22 -0
  518. package/es/space/space.vue_vue_type_script_setup_true_lang.js +84 -0
  519. package/es/spin/dot-loading.js +3 -28
  520. package/es/spin/dot-loading.vue.d.ts +6 -0
  521. package/es/spin/dot-loading.vue_vue_type_script_setup_true_lang.js +33 -0
  522. package/es/spin/index.d.ts +37 -60
  523. package/es/spin/spin.js +3 -153
  524. package/es/spin/spin.vue.d.ts +27 -0
  525. package/es/spin/spin.vue_vue_type_script_setup_true_lang.js +139 -0
  526. package/es/split/split.vue_vue_type_script_setup_true_lang.js +2 -2
  527. package/es/statistic/countdown.vue.d.ts +9 -0
  528. package/es/statistic/countdown.vue_vue_type_script_setup_true_lang.js +30 -3
  529. package/es/statistic/index.d.ts +15 -0
  530. package/es/statistic/statistic.vue.d.ts +3 -3
  531. package/es/statistic/statistic.vue_vue_type_script_setup_true_lang.js +32 -63
  532. package/es/statistic/style/index.css +3 -0
  533. package/es/statistic/style/index.scss +5 -0
  534. package/es/statistic/utils.js +5 -5
  535. package/es/steps/step.vue_vue_type_script_setup_true_lang.js +1 -1
  536. package/es/steps/steps.vue_vue_type_script_setup_true_lang.js +1 -1
  537. package/es/style/theme/z-index.js +3 -3
  538. package/es/switch/switch.vue_vue_type_script_setup_true_lang.js +2 -2
  539. package/es/table/hooks/use-row-selection.js +1 -1
  540. package/es/table/index.d.ts +449 -362
  541. package/es/table/index.js +1 -1
  542. package/es/table/table-column.js +3 -254
  543. package/es/table/table-column.vue.d.ts +75 -0
  544. package/es/table/table-column.vue_vue_type_script_setup_true_lang.js +194 -0
  545. package/es/table/table-operation-td.js +3 -130
  546. package/es/table/table-operation-td.vue.d.ts +87 -0
  547. package/es/table/table-operation-td.vue_vue_type_script_setup_true_lang.js +114 -0
  548. package/es/table/table-operation-th.js +3 -73
  549. package/es/table/{table-operation-th.d.ts → table-operation-th.vue.d.ts} +5 -4
  550. package/es/table/table-operation-th.vue_vue_type_script_setup_true_lang.js +86 -0
  551. package/es/table/table-tbody.js +3 -16
  552. package/es/table/table-tbody.vue.d.ts +14 -0
  553. package/es/table/table-tbody.vue_vue_type_script_setup_true_lang.js +23 -0
  554. package/es/table/table-td.js +3 -192
  555. package/es/table/{table-td.d.ts → table-td.vue.d.ts} +26 -12
  556. package/es/table/table-td.vue_vue_type_script_setup_true_lang.js +218 -0
  557. package/es/table/table-th.js +3 -225
  558. package/es/table/{table-th.d.ts → table-th.vue.d.ts} +17 -6
  559. package/es/table/table-th.vue_vue_type_script_setup_true_lang.js +268 -0
  560. package/es/table/table-thead.js +3 -16
  561. package/es/table/table-thead.vue.d.ts +14 -0
  562. package/es/table/table-thead.vue_vue_type_script_setup_true_lang.js +23 -0
  563. package/es/table/table-tr.js +3 -34
  564. package/es/table/table-tr.vue.d.ts +30 -0
  565. package/es/table/table-tr.vue_vue_type_script_setup_true_lang.js +48 -0
  566. package/es/table/table.js +3 -1637
  567. package/es/table/{table.d.ts → table.vue.d.ts} +41 -56
  568. package/es/table/table.vue_vue_type_script_setup_true_lang.js +1568 -0
  569. package/es/table/utils.js +1 -1
  570. package/es/tabs/index.d.ts +32 -33
  571. package/es/tabs/tab-pane.vue_vue_type_script_setup_true_lang.js +1 -1
  572. package/es/tabs/tabs-button.js +3 -58
  573. package/es/tabs/{tabs-button.d.ts → tabs-button.vue.d.ts} +6 -3
  574. package/es/tabs/tabs-button.vue_vue_type_script_setup_true_lang.js +54 -0
  575. package/es/tabs/tabs-nav-ink.vue_vue_type_script_setup_true_lang.js +1 -1
  576. package/es/tabs/tabs-nav.js +3 -297
  577. package/es/tabs/{tabs-nav.d.ts → tabs-nav.vue.d.ts} +23 -13
  578. package/es/tabs/tabs-nav.vue_vue_type_script_setup_true_lang.js +332 -0
  579. package/es/tabs/tabs-tab.vue_vue_type_script_setup_true_lang.js +1 -1
  580. package/es/tabs/tabs.js +3 -325
  581. package/es/tabs/{tabs.d.ts → tabs.vue.d.ts} +25 -18
  582. package/es/tabs/tabs.vue_vue_type_script_setup_true_lang.js +237 -0
  583. package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +1 -1
  584. package/es/tag-group/tag-group.vue_vue_type_script_setup_true_lang.js +2 -2
  585. package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +4 -3
  586. package/es/thinking-orb/engine/lattice.js +1 -1
  587. package/es/thinking-orb/engine/morph.js +1 -1
  588. package/es/thinking-orb/engine/profiles.js +1 -1
  589. package/es/thinking-orb/presets.js +1 -1
  590. package/es/thinking-orb/thinking-orb.vue_vue_type_script_setup_true_lang.js +1 -1
  591. package/es/time-picker/hooks/use-time-state.js +4 -2
  592. package/es/time-picker/panel.vue_vue_type_script_setup_true_lang.js +2 -2
  593. package/es/time-picker/range-panel.js +3 -56
  594. package/es/time-picker/range-panel.vue.d.ts +44 -0
  595. package/es/time-picker/range-panel.vue_vue_type_script_setup_true_lang.js +65 -0
  596. package/es/time-picker/time-column.vue_vue_type_script_setup_true_lang.js +1 -1
  597. package/es/time-picker/time-picker.vue_vue_type_script_setup_true_lang.js +2 -2
  598. package/es/timeline/context.d.ts +1 -0
  599. package/es/timeline/index.d.ts +36 -426
  600. package/es/timeline/item.vue.d.ts +3 -0
  601. package/es/timeline/item.vue_vue_type_script_setup_true_lang.js +7 -5
  602. package/es/timeline/timeline.js +3 -109
  603. package/es/timeline/timeline.vue.d.ts +26 -0
  604. package/es/timeline/timeline.vue_vue_type_script_setup_true_lang.js +68 -0
  605. package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +1 -1
  606. package/es/tooltip/index.d.ts +3 -0
  607. package/es/tooltip/interface.d.ts +1 -0
  608. package/es/tooltip/style/index.css +3 -0
  609. package/es/tooltip/style/index.scss +4 -0
  610. package/es/tooltip/tooltip.vue.d.ts +1 -0
  611. package/es/tooltip/tooltip.vue_vue_type_script_setup_true_lang.js +6 -2
  612. package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +17 -15
  613. package/es/transfer/transfer-list-item.js +3 -74
  614. package/es/transfer/transfer-list-item.vue.d.ts +30 -0
  615. package/es/transfer/transfer-list-item.vue_vue_type_script_setup_true_lang.js +101 -0
  616. package/es/transfer/transfer-view.vue_vue_type_script_setup_true_lang.js +3 -3
  617. package/es/transfer/transfer.vue_vue_type_script_setup_true_lang.js +1 -1
  618. package/es/tree/base-node.vue_vue_type_script_setup_true_lang.js +1 -1
  619. package/es/tree/expand-transition.vue_vue_type_script_setup_true_lang.js +1 -1
  620. package/es/tree/hooks/use-draggable.js +0 -2
  621. package/es/tree/node-switcher.js +2 -2
  622. package/es/tree/node-switcher.vue.d.ts +7 -43
  623. package/es/tree/node-switcher.vue_vue_type_script_setup_true_lang.js +85 -0
  624. package/es/tree/node.js +3 -20
  625. package/es/tree/node.vue.d.ts +15 -0
  626. package/es/tree/node.vue_vue_type_script_setup_true_lang.js +30 -0
  627. package/es/tree/transition-node-list.vue_vue_type_script_setup_true_lang.js +1 -1
  628. package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +28 -30
  629. package/es/tree/utils/tree-data.js +1 -1
  630. package/es/tree-select/hooks/use-selected-state.js +1 -1
  631. package/es/tree-select/panel.js +3 -71
  632. package/es/tree-select/panel.vue.d.ts +56 -0
  633. package/es/tree-select/panel.vue_vue_type_script_setup_true_lang.js +75 -0
  634. package/es/tree-select/tree-select.vue.d.ts +5 -2
  635. package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +4 -4
  636. package/es/trigger/index.d.ts +168 -506
  637. package/es/trigger/trigger.js +3 -833
  638. package/es/trigger/trigger.vue.d.ts +108 -0
  639. package/es/trigger/trigger.vue_vue_type_script_setup_true_lang.js +642 -0
  640. package/es/typography/base.js +3 -427
  641. package/es/typography/base.vue.d.ts +116 -0
  642. package/es/typography/base.vue_vue_type_script_setup_true_lang.js +314 -0
  643. package/es/typography/edit-content.vue_vue_type_script_setup_true_lang.js +1 -1
  644. package/es/typography/index.d.ts +108 -37
  645. package/es/typography/operations.vue_vue_type_script_setup_true_lang.js +1 -1
  646. package/es/typography/paragraph.js +3 -35
  647. package/es/typography/paragraph.vue.d.ts +33 -0
  648. package/es/typography/paragraph.vue_vue_type_script_setup_true_lang.js +42 -0
  649. package/es/typography/text.js +3 -22
  650. package/es/typography/text.vue.d.ts +27 -0
  651. package/es/typography/text.vue_vue_type_script_setup_true_lang.js +31 -0
  652. package/es/typography/title.js +3 -24
  653. package/es/typography/title.vue.d.ts +26 -0
  654. package/es/typography/title.vue_vue_type_script_setup_true_lang.js +33 -0
  655. package/es/typography/typography-content.js +5 -0
  656. package/es/typography/typography-content.vue.d.ts +9 -0
  657. package/es/typography/typography-content.vue_vue_type_script_setup_true_lang.js +47 -0
  658. package/es/typography/typography-operations.js +5 -0
  659. package/es/typography/typography-operations.vue.d.ts +22 -0
  660. package/es/typography/typography-operations.vue_vue_type_script_setup_true_lang.js +73 -0
  661. package/es/typography/typography.vue_vue_type_script_setup_true_lang.js +1 -1
  662. package/es/typography/utils/getInnerText.d.ts +1 -1
  663. package/es/typography/utils/getInnerText.js +4 -5
  664. package/es/typography/utils/inner-text-renderer.js +5 -0
  665. package/es/typography/utils/inner-text-renderer.vue.d.ts +7 -0
  666. package/es/typography/utils/inner-text-renderer.vue_vue_type_script_setup_true_lang.js +22 -0
  667. package/es/typography/utils/measure.d.ts +2 -3
  668. package/es/typography/utils/measure.js +8 -10
  669. package/es/upload/index.d.ts +74 -148
  670. package/es/upload/style/index.css +7 -9
  671. package/es/upload/style/index.scss +6 -6
  672. package/es/upload/upload-button.js +3 -137
  673. package/es/upload/{upload-button.d.ts → upload-button.vue.d.ts} +18 -11
  674. package/es/upload/upload-button.vue_vue_type_script_setup_true_lang.js +161 -0
  675. package/es/upload/upload-list-item.js +3 -120
  676. package/es/upload/{upload-list-item.d.ts → upload-list-item.vue.d.ts} +5 -4
  677. package/es/upload/upload-list-item.vue_vue_type_script_setup_true_lang.js +195 -0
  678. package/es/upload/upload-list.js +3 -46
  679. package/es/upload/upload-list.vue.d.ts +38 -0
  680. package/es/upload/upload-list.vue_vue_type_script_setup_true_lang.js +47 -0
  681. package/es/upload/upload-picture-item.js +3 -86
  682. package/es/upload/upload-picture-item.vue.d.ts +35 -0
  683. package/es/upload/upload-picture-item.vue_vue_type_script_setup_true_lang.js +147 -0
  684. package/es/upload/upload-progress.js +3 -73
  685. package/es/upload/{upload-progress.d.ts → upload-progress.vue.d.ts} +5 -4
  686. package/es/upload/upload-progress.vue_vue_type_script_setup_true_lang.js +75 -0
  687. package/es/upload/upload.js +3 -671
  688. package/es/upload/{upload.d.ts → upload.vue.d.ts} +50 -83
  689. package/es/upload/upload.vue_vue_type_script_setup_true_lang.js +392 -0
  690. package/es/verification-code/index.d.ts +18 -24
  691. package/es/verification-code/verification-code.js +3 -216
  692. package/es/verification-code/{verification-code.d.ts → verification-code.vue.d.ts} +12 -15
  693. package/es/verification-code/verification-code.vue_vue_type_script_setup_true_lang.js +192 -0
  694. package/es/watermark/hooks/use-mutation-observer.js +1 -1
  695. package/es/watermark/index.d.ts +12 -8
  696. package/es/watermark/watermark.js +3 -292
  697. package/es/watermark/{watermark.d.ts → watermark.vue.d.ts} +13 -2
  698. package/es/watermark/watermark.vue_vue_type_script_setup_true_lang.js +303 -0
  699. package/json/vetur-attributes.json +74 -1352
  700. package/json/vetur-tags.json +94 -473
  701. package/json/web-types.json +2615 -5690
  702. package/package.json +14 -14
  703. package/es/_components/auto-tooltip/auto-tooltip.d.ts +0 -10
  704. package/es/_components/client-only.d.ts +0 -4
  705. package/es/_components/input-label/input-label.d.ts +0 -70
  706. package/es/_components/resize-observer.d.ts +0 -6
  707. package/es/_components/select-view/select-view.d.ts +0 -171
  708. package/es/auto-complete/auto-complete.d.ts +0 -146
  709. package/es/avatar/avatar-group.d.ts +0 -58
  710. package/es/badge/badge.d.ts +0 -67
  711. package/es/breadcrumb/breadcrumb-item.d.ts +0 -35
  712. package/es/breadcrumb/breadcrumb.d.ts +0 -34
  713. package/es/card/card-meta.d.ts +0 -18
  714. package/es/card/card.d.ts +0 -464
  715. package/es/checkbox/checkbox-group.d.ts +0 -62
  716. package/es/checkbox/checkbox.d.ts +0 -146
  717. package/es/checkbox/icon-check.d.ts +0 -2
  718. package/es/collapse/collapse-item.d.ts +0 -157
  719. package/es/color-picker/palette.d.ts +0 -16
  720. package/es/date-picker/pickers/month-picker.d.ts +0 -27
  721. package/es/date-picker/pickers/year-picker.d.ts +0 -27
  722. package/es/divider/divider.d.ts +0 -43
  723. package/es/empty/empty.d.ts +0 -20
  724. package/es/image/preview-action.d.ts +0 -73
  725. package/es/input/input-search.d.ts +0 -81
  726. package/es/input-number/input-number.d.ts +0 -178
  727. package/es/list/list-item.d.ts +0 -16
  728. package/es/list/list.d.ts +0 -127
  729. package/es/mention/mention.d.ts +0 -128
  730. package/es/menu/menu.d.ts +0 -455
  731. package/es/menu/overflow-wrap.d.ts +0 -2
  732. package/es/notification/notification-list.d.ts +0 -32
  733. package/es/overflow-list/index.d.ts +0 -81
  734. package/es/overflow-list/index.js +0 -10
  735. package/es/overflow-list/overflow-list.d.ts +0 -37
  736. package/es/overflow-list/overflow-list.js +0 -140
  737. package/es/overflow-list/style/index.css +0 -30
  738. package/es/overflow-list/style/index.scss +0 -20
  739. package/es/radio/radio-group.d.ts +0 -72
  740. package/es/radio/radio.d.ts +0 -140
  741. package/es/result/403.d.ts +0 -2
  742. package/es/result/404.d.ts +0 -2
  743. package/es/result/500.d.ts +0 -2
  744. package/es/select/select.d.ts +0 -1533
  745. package/es/space/space.d.ts +0 -45
  746. package/es/spin/dot-loading.d.ts +0 -10
  747. package/es/spin/spin.d.ts +0 -37
  748. package/es/table/table-column.d.ts +0 -120
  749. package/es/table/table-operation-td.d.ts +0 -813
  750. package/es/table/table-tbody.d.ts +0 -4
  751. package/es/table/table-thead.d.ts +0 -4
  752. package/es/table/table-tr.d.ts +0 -41
  753. package/es/time-picker/range-panel.d.ts +0 -203
  754. package/es/timeline/timeline.d.ts +0 -226
  755. package/es/transfer/transfer-list-item.d.ts +0 -45
  756. package/es/tree/node-switcher.vue_vue_type_script_lang.js +0 -69
  757. package/es/tree/node.d.ts +0 -4
  758. package/es/tree-select/panel.d.ts +0 -14
  759. package/es/trigger/trigger.d.ts +0 -366
  760. package/es/typography/base.d.ts +0 -171
  761. package/es/typography/paragraph.d.ts +0 -27
  762. package/es/typography/text.d.ts +0 -18
  763. package/es/typography/title.d.ts +0 -17
  764. package/es/upload/upload-list.d.ts +0 -63
  765. package/es/upload/upload-picture-item.d.ts +0 -24
  766. /package/es/{overflow-list → number-flow}/style/css.js +0 -0
  767. /package/es/{overflow-list → number-flow}/style/index.d.ts +0 -0
  768. /package/es/{overflow-list → number-flow}/style/index.js +0 -0
@@ -1,5 +1,9 @@
1
- import { PropType } from 'vue';
2
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1
+ import { type PropType } from 'vue';
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
7
  disabled: {
4
8
  type: BooleanConstructor;
5
9
  default: boolean;
@@ -9,9 +13,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
9
13
  default: boolean;
10
14
  };
11
15
  accept: StringConstructor;
12
- listType: {
13
- type: StringConstructor;
14
- };
16
+ listType: StringConstructor;
15
17
  tip: StringConstructor;
16
18
  draggable: {
17
19
  type: BooleanConstructor;
@@ -22,14 +24,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
22
24
  default: boolean;
23
25
  };
24
26
  uploadFiles: {
25
- type: FunctionConstructor;
27
+ type: PropType<(files: File[]) => void>;
26
28
  required: true;
27
29
  };
28
30
  hide: BooleanConstructor;
29
31
  onButtonClick: {
30
32
  type: PropType<(event: Event) => Promise<FileList> | void>;
31
33
  };
32
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
33
35
  disabled: {
34
36
  type: BooleanConstructor;
35
37
  default: boolean;
@@ -39,9 +41,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
39
41
  default: boolean;
40
42
  };
41
43
  accept: StringConstructor;
42
- listType: {
43
- type: StringConstructor;
44
- };
44
+ listType: StringConstructor;
45
45
  tip: StringConstructor;
46
46
  draggable: {
47
47
  type: BooleanConstructor;
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
52
52
  default: boolean;
53
53
  };
54
54
  uploadFiles: {
55
- type: FunctionConstructor;
55
+ type: PropType<(files: File[]) => void>;
56
56
  required: true;
57
57
  };
58
58
  hide: BooleanConstructor;
@@ -66,4 +66,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
66
66
  draggable: boolean;
67
67
  directory: boolean;
68
68
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
69
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
70
+ declare const _default: typeof __VLS_export;
69
71
  export default _default;
72
+ type __VLS_WithSlots<T, S> = T & {
73
+ new (): {
74
+ $slots: S;
75
+ };
76
+ };
@@ -0,0 +1,161 @@
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.142.0/helpers/esm/objectSpread2.js";
2
+ import { getPrefixCls } from "../_utils/global-config.js";
3
+ import { isFunction, isPromise } from "../_utils/is.js";
4
+ import { useI18n } from "../locale/index.js";
5
+ import Button from "../button/index.js";
6
+ import IconPlus from "../icon/icon-plus/index.js";
7
+ import IconUpload from "../icon/icon-upload/index.js";
8
+ import { getFiles, loopDirectory } from "./utils.js";
9
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderSlot, toDisplayString, unref, withCtx } from "vue";
10
+ //#region components/upload/upload-button.vue?vue&type=script&setup=true&lang.ts
11
+ var _hoisted_1 = [
12
+ "disabled",
13
+ "accept",
14
+ "multiple",
15
+ "webkitdirectory"
16
+ ];
17
+ var _hoisted_2 = { key: 0 };
18
+ var upload_button_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "UploadButton" }), {}, {
19
+ __name: "upload-button",
20
+ props: {
21
+ disabled: {
22
+ type: Boolean,
23
+ default: false
24
+ },
25
+ directory: {
26
+ type: Boolean,
27
+ default: false
28
+ },
29
+ accept: String,
30
+ listType: String,
31
+ tip: String,
32
+ draggable: {
33
+ type: Boolean,
34
+ default: false
35
+ },
36
+ multiple: {
37
+ type: Boolean,
38
+ default: false
39
+ },
40
+ uploadFiles: {
41
+ type: Function,
42
+ required: true
43
+ },
44
+ hide: Boolean,
45
+ onButtonClick: { type: Function }
46
+ },
47
+ setup(__props) {
48
+ const props = __props;
49
+ const prefixCls = getPrefixCls("upload");
50
+ const { t } = useI18n();
51
+ const isDragging = ref(false);
52
+ const inputRef = ref(null);
53
+ const dropRef = ref(null);
54
+ const dragEnterCount = ref(0);
55
+ const cls = computed(() => [prefixCls, {
56
+ [`${prefixCls}-type-picture-card`]: props.listType === "picture-card",
57
+ [`${prefixCls}-draggable`]: props.draggable,
58
+ [`${prefixCls}-disabled`]: props.disabled,
59
+ [`${prefixCls}-hide`]: props.hide
60
+ }]);
61
+ function setDragEnterCount(type) {
62
+ if (type === "subtract") dragEnterCount.value -= 1;
63
+ else if (type === "add") dragEnterCount.value += 1;
64
+ else dragEnterCount.value = 0;
65
+ }
66
+ function handleClick(event) {
67
+ var _inputRef$value;
68
+ if (props.disabled) return;
69
+ if (isFunction(props.onButtonClick)) {
70
+ const result = props.onButtonClick(event);
71
+ if (isPromise(result)) {
72
+ result.then((files) => {
73
+ props.uploadFiles(getFiles(files));
74
+ });
75
+ return;
76
+ }
77
+ }
78
+ (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.click();
79
+ }
80
+ function handleInputChange(event) {
81
+ const target = event.target;
82
+ if (target.files) props.uploadFiles(getFiles(target.files));
83
+ target.value = "";
84
+ }
85
+ function handleDrop(event) {
86
+ var _event$dataTransfer;
87
+ event.preventDefault();
88
+ isDragging.value = false;
89
+ setDragEnterCount("reset");
90
+ if (props.disabled) return;
91
+ if (props.directory && ((_event$dataTransfer = event.dataTransfer) === null || _event$dataTransfer === void 0 ? void 0 : _event$dataTransfer.items)) loopDirectory(event.dataTransfer.items, props.accept, (files) => {
92
+ props.uploadFiles(files);
93
+ });
94
+ else {
95
+ var _event$dataTransfer2;
96
+ const files = getFiles((_event$dataTransfer2 = event.dataTransfer) === null || _event$dataTransfer2 === void 0 ? void 0 : _event$dataTransfer2.files, props.accept);
97
+ props.uploadFiles(props.multiple ? files : files.slice(0, 1));
98
+ }
99
+ }
100
+ function handleDragLeave(event) {
101
+ event.preventDefault();
102
+ setDragEnterCount("subtract");
103
+ if (dragEnterCount.value === 0) {
104
+ isDragging.value = false;
105
+ setDragEnterCount("reset");
106
+ }
107
+ }
108
+ function handleDragOver(event) {
109
+ event.preventDefault();
110
+ if (!props.disabled && !isDragging.value) isDragging.value = true;
111
+ }
112
+ return (_ctx, _cache) => {
113
+ return openBlock(), createElementBlock("span", {
114
+ ref_key: "dropRef",
115
+ ref: dropRef,
116
+ class: normalizeClass(cls.value),
117
+ onClick: handleClick,
118
+ onDragenter: _cache[0] || (_cache[0] = ($event) => setDragEnterCount("add")),
119
+ onDrop: handleDrop,
120
+ onDragover: handleDragOver,
121
+ onDragleave: handleDragLeave
122
+ }, [createElementVNode("input", {
123
+ ref_key: "inputRef",
124
+ ref: inputRef,
125
+ type: "file",
126
+ style: { "display": "none" },
127
+ disabled: __props.disabled,
128
+ accept: __props.accept,
129
+ multiple: __props.multiple,
130
+ webkitdirectory: __props.directory ? "webkitdirectory" : void 0,
131
+ onChange: handleInputChange
132
+ }, null, 40, _hoisted_1), _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_2, [renderSlot(_ctx.$slots, "default")])) : __props.listType === "picture-card" ? (openBlock(), createElementBlock("div", {
133
+ key: 1,
134
+ class: normalizeClass(`${unref(prefixCls)}-picture-card`)
135
+ }, [createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-picture-card-text`) }, [createVNode(unref(IconPlus))], 2), __props.tip ? (openBlock(), createElementBlock("div", {
136
+ key: 0,
137
+ class: normalizeClass(`${unref(prefixCls)}-tip`)
138
+ }, toDisplayString(__props.tip), 3)) : createCommentVNode("", true)], 2)) : __props.draggable ? (openBlock(), createElementBlock("div", {
139
+ key: 2,
140
+ class: normalizeClass([`${unref(prefixCls)}-drag`, { [`${unref(prefixCls)}-drag-active`]: isDragging.value }])
141
+ }, [
142
+ createElementVNode("div", null, [createVNode(unref(IconPlus))]),
143
+ createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-drag-text`) }, toDisplayString(isDragging.value ? unref(t)("upload.dragHover") : unref(t)("upload.drag")), 3),
144
+ __props.tip ? (openBlock(), createElementBlock("div", {
145
+ key: 0,
146
+ class: normalizeClass(`${unref(prefixCls)}-tip`)
147
+ }, toDisplayString(__props.tip), 3)) : createCommentVNode("", true)
148
+ ], 2)) : (openBlock(), createBlock(unref(Button), {
149
+ key: 3,
150
+ type: "primary",
151
+ disabled: __props.disabled
152
+ }, {
153
+ icon: withCtx(() => [createVNode(unref(IconUpload))]),
154
+ default: withCtx(() => [createTextVNode(" " + toDisplayString(unref(t)("upload.buttonText")), 1)]),
155
+ _: 1
156
+ }, 8, ["disabled"]))], 34);
157
+ };
158
+ }
159
+ }));
160
+ //#endregion
161
+ export { upload_button_vue_vue_type_script_setup_true_lang_default as default };
@@ -1,122 +1,5 @@
1
- import { getPrefixCls } from "../_utils/global-config.js";
2
- import icon_hover_default from "../_components/icon-hover.js";
3
- import { isActivationKey } from "../_utils/keyboard.js";
4
- import IconExclamationCircleFill from "../icon/icon-exclamation-circle-fill/index.js";
5
- import { useI18n } from "../locale/index.js";
6
- import Tooltip from "../tooltip/index.js";
7
- import IconDelete from "../icon/icon-delete/index.js";
8
- import IconFile from "../icon/icon-file/index.js";
9
- import { uploadInjectionKey } from "./context.js";
10
- import IconFileAudio from "../icon/icon-file-audio/index.js";
11
- import IconFileImage from "../icon/icon-file-image/index.js";
12
- import IconFilePdf from "../icon/icon-file-pdf/index.js";
13
- import IconFileVideo from "../icon/icon-file-video/index.js";
14
- import upload_progress_default from "./upload-progress.js";
15
- import { createVNode, defineComponent, inject, mergeProps } from "vue";
16
- //#region components/upload/upload-list-item.tsx
17
- var upload_list_item_default = /* @__PURE__ */ defineComponent({
18
- name: "UploadListItem",
19
- props: {
20
- file: {
21
- type: Object,
22
- required: true
23
- },
24
- listType: {
25
- type: String,
26
- required: true
27
- }
28
- },
29
- setup(props) {
30
- const itemCls = `${getPrefixCls("upload-list")}-item`;
31
- const { t } = useI18n();
32
- const uploadCtx = inject(uploadInjectionKey, void 0);
33
- const renderFileIcon = () => {
34
- let type = "";
35
- if (props.file.file && props.file.file.type) type = props.file.file.type;
36
- else {
37
- var _props$file$name$spli, _props$file$name;
38
- const extension = (_props$file$name$spli = (_props$file$name = props.file.name) === null || _props$file$name === void 0 ? void 0 : _props$file$name.split(".")[1]) !== null && _props$file$name$spli !== void 0 ? _props$file$name$spli : "";
39
- if ([
40
- "png",
41
- "jpg",
42
- "jpeg",
43
- "bmp",
44
- "gif",
45
- "webp"
46
- ].includes(extension)) type = "image";
47
- else if ([
48
- "mp4",
49
- "m2v",
50
- "mkv",
51
- "m4v",
52
- "mov"
53
- ].includes(extension)) type = "video";
54
- else if ([
55
- "mp3",
56
- "wav",
57
- "wmv",
58
- "m4a",
59
- "acc",
60
- "flac"
61
- ].includes(extension)) type = "audio";
62
- }
63
- if (type.includes("image")) return createVNode(IconFileImage, null, null);
64
- if (type.includes("pdf")) return createVNode(IconFilePdf, null, null);
65
- if (type.includes("audio")) return createVNode(IconFileAudio, null, null);
66
- if (type.includes("video")) return createVNode(IconFileVideo, null, null);
67
- return createVNode(IconFile, null, null);
68
- };
69
- return () => {
70
- var _uploadCtx$slots$imag, _uploadCtx$slots, _uploadCtx$slots$imag2, _ref, _uploadCtx$slots$file, _uploadCtx$slots2, _uploadCtx$slots2$fil, _uploadCtx$customIcon, _uploadCtx$customIcon2, _ref2, _uploadCtx$slots$file2, _uploadCtx$slots3, _uploadCtx$slots3$fil, _uploadCtx$customIcon3, _uploadCtx$customIcon4, _ref3, _uploadCtx$slots$file3, _uploadCtx$slots4, _uploadCtx$slots4$fil, _uploadCtx$customIcon5, _uploadCtx$customIcon6, _uploadCtx$slots7, _uploadCtx$slots7$ext;
71
- return createVNode("div", { "class": [itemCls, `${itemCls}-${props.file.status}`] }, [
72
- createVNode("div", { "class": `${itemCls}-content` }, [
73
- (uploadCtx === null || uploadCtx === void 0 ? void 0 : uploadCtx.listType) === "picture" && createVNode("span", { "class": `${itemCls}-thumbnail` }, [(_uploadCtx$slots$imag = uploadCtx === null || uploadCtx === void 0 || (_uploadCtx$slots$imag2 = (_uploadCtx$slots = uploadCtx.slots).image) === null || _uploadCtx$slots$imag2 === void 0 ? void 0 : _uploadCtx$slots$imag2.call(_uploadCtx$slots, { fileItem: props.file })) !== null && _uploadCtx$slots$imag !== void 0 ? _uploadCtx$slots$imag : createVNode("img", mergeProps({
74
- "src": props.file.url,
75
- "alt": props.file.name
76
- }, (uploadCtx === null || uploadCtx === void 0 ? void 0 : uploadCtx.imageLoading) ? { loading: uploadCtx.imageLoading } : void 0), null)]),
77
- createVNode("div", { "class": `${itemCls}-name` }, [
78
- (uploadCtx === null || uploadCtx === void 0 ? void 0 : uploadCtx.listType) === "text" && createVNode("span", { "class": `${itemCls}-file-icon` }, [(_ref = (_uploadCtx$slots$file = uploadCtx === null || uploadCtx === void 0 || (_uploadCtx$slots2$fil = (_uploadCtx$slots2 = uploadCtx.slots)["file-icon"]) === null || _uploadCtx$slots2$fil === void 0 ? void 0 : _uploadCtx$slots2$fil.call(_uploadCtx$slots2, { fileItem: props.file })) !== null && _uploadCtx$slots$file !== void 0 ? _uploadCtx$slots$file : uploadCtx === null || uploadCtx === void 0 || (_uploadCtx$customIcon = uploadCtx.customIcon) === null || _uploadCtx$customIcon === void 0 || (_uploadCtx$customIcon2 = _uploadCtx$customIcon.fileIcon) === null || _uploadCtx$customIcon2 === void 0 ? void 0 : _uploadCtx$customIcon2.call(_uploadCtx$customIcon, props.file)) !== null && _ref !== void 0 ? _ref : renderFileIcon()]),
79
- (uploadCtx === null || uploadCtx === void 0 ? void 0 : uploadCtx.showLink) && props.file.url ? createVNode("a", mergeProps({
80
- "class": `${itemCls}-name-link`,
81
- "target": "_blank",
82
- "href": props.file.url
83
- }, (uploadCtx === null || uploadCtx === void 0 ? void 0 : uploadCtx.download) ? { download: props.file.name } : void 0), [(_ref2 = (_uploadCtx$slots$file2 = uploadCtx === null || uploadCtx === void 0 || (_uploadCtx$slots3$fil = (_uploadCtx$slots3 = uploadCtx.slots)["file-name"]) === null || _uploadCtx$slots3$fil === void 0 ? void 0 : _uploadCtx$slots3$fil.call(_uploadCtx$slots3, { fileItem: props.file })) !== null && _uploadCtx$slots$file2 !== void 0 ? _uploadCtx$slots$file2 : uploadCtx === null || uploadCtx === void 0 || (_uploadCtx$customIcon3 = uploadCtx.customIcon) === null || _uploadCtx$customIcon3 === void 0 || (_uploadCtx$customIcon4 = _uploadCtx$customIcon3.fileName) === null || _uploadCtx$customIcon4 === void 0 ? void 0 : _uploadCtx$customIcon4.call(_uploadCtx$customIcon3, props.file)) !== null && _ref2 !== void 0 ? _ref2 : props.file.name]) : createVNode("span", {
84
- "class": `${itemCls}-name-text`,
85
- "onClick": () => uploadCtx === null || uploadCtx === void 0 ? void 0 : uploadCtx.onPreview(props.file)
86
- }, [(_ref3 = (_uploadCtx$slots$file3 = uploadCtx === null || uploadCtx === void 0 || (_uploadCtx$slots4$fil = (_uploadCtx$slots4 = uploadCtx.slots)["file-name"]) === null || _uploadCtx$slots4$fil === void 0 ? void 0 : _uploadCtx$slots4$fil.call(_uploadCtx$slots4, { fileItem: props.file })) !== null && _uploadCtx$slots$file3 !== void 0 ? _uploadCtx$slots$file3 : uploadCtx === null || uploadCtx === void 0 || (_uploadCtx$customIcon5 = uploadCtx.customIcon) === null || _uploadCtx$customIcon5 === void 0 || (_uploadCtx$customIcon6 = _uploadCtx$customIcon5.fileName) === null || _uploadCtx$customIcon6 === void 0 ? void 0 : _uploadCtx$customIcon6.call(_uploadCtx$customIcon5, props.file)) !== null && _ref3 !== void 0 ? _ref3 : props.file.name]),
87
- props.file.status === "error" && createVNode(Tooltip, { "content": t("upload.error") }, { default: () => {
88
- var _ref4, _uploadCtx$slots$erro, _uploadCtx$slots5, _uploadCtx$slots5$err, _uploadCtx$customIcon7, _uploadCtx$customIcon8;
89
- return [createVNode("span", { "class": [uploadCtx === null || uploadCtx === void 0 ? void 0 : uploadCtx.iconCls, `${uploadCtx === null || uploadCtx === void 0 ? void 0 : uploadCtx.iconCls}-error`] }, [(_ref4 = (_uploadCtx$slots$erro = uploadCtx === null || uploadCtx === void 0 || (_uploadCtx$slots5$err = (_uploadCtx$slots5 = uploadCtx.slots)["error-icon"]) === null || _uploadCtx$slots5$err === void 0 ? void 0 : _uploadCtx$slots5$err.call(_uploadCtx$slots5)) !== null && _uploadCtx$slots$erro !== void 0 ? _uploadCtx$slots$erro : uploadCtx === null || uploadCtx === void 0 || (_uploadCtx$customIcon7 = uploadCtx.customIcon) === null || _uploadCtx$customIcon7 === void 0 || (_uploadCtx$customIcon8 = _uploadCtx$customIcon7.errorIcon) === null || _uploadCtx$customIcon8 === void 0 ? void 0 : _uploadCtx$customIcon8.call(_uploadCtx$customIcon7)) !== null && _ref4 !== void 0 ? _ref4 : createVNode(IconExclamationCircleFill, null, null)])];
90
- } })
91
- ]),
92
- createVNode(upload_progress_default, {
93
- "file": props.file,
94
- "listType": props.listType
95
- }, null)
96
- ]),
97
- (uploadCtx === null || uploadCtx === void 0 ? void 0 : uploadCtx.showRemoveButton) && createVNode("span", { "class": `${itemCls}-operation` }, [createVNode("span", {
98
- "role": "button",
99
- "tabindex": "0",
100
- "aria-label": t("a11y.remove"),
101
- "onClick": () => {
102
- var _uploadCtx$onRemove;
103
- return uploadCtx === null || uploadCtx === void 0 || (_uploadCtx$onRemove = uploadCtx.onRemove) === null || _uploadCtx$onRemove === void 0 ? void 0 : _uploadCtx$onRemove.call(uploadCtx, props.file);
104
- },
105
- "onKeydown": (e) => {
106
- if (isActivationKey(e)) {
107
- var _uploadCtx$onRemove2;
108
- e.preventDefault();
109
- uploadCtx === null || uploadCtx === void 0 || (_uploadCtx$onRemove2 = uploadCtx.onRemove) === null || _uploadCtx$onRemove2 === void 0 || _uploadCtx$onRemove2.call(uploadCtx, props.file);
110
- }
111
- }
112
- }, [createVNode(icon_hover_default, null, { default: () => {
113
- var _ref5, _uploadCtx$slots$remo, _uploadCtx$slots6, _uploadCtx$slots6$rem, _uploadCtx$customIcon9, _uploadCtx$customIcon10;
114
- return [createVNode("span", { "class": [uploadCtx === null || uploadCtx === void 0 ? void 0 : uploadCtx.iconCls, `${uploadCtx === null || uploadCtx === void 0 ? void 0 : uploadCtx.iconCls}-remove`] }, [(_ref5 = (_uploadCtx$slots$remo = uploadCtx === null || uploadCtx === void 0 || (_uploadCtx$slots6$rem = (_uploadCtx$slots6 = uploadCtx.slots)["remove-icon"]) === null || _uploadCtx$slots6$rem === void 0 ? void 0 : _uploadCtx$slots6$rem.call(_uploadCtx$slots6)) !== null && _uploadCtx$slots$remo !== void 0 ? _uploadCtx$slots$remo : uploadCtx === null || uploadCtx === void 0 || (_uploadCtx$customIcon9 = uploadCtx.customIcon) === null || _uploadCtx$customIcon9 === void 0 || (_uploadCtx$customIcon10 = _uploadCtx$customIcon9.removeIcon) === null || _uploadCtx$customIcon10 === void 0 ? void 0 : _uploadCtx$customIcon10.call(_uploadCtx$customIcon9)) !== null && _ref5 !== void 0 ? _ref5 : createVNode(IconDelete, null, null)])];
115
- } })])]),
116
- uploadCtx === null || uploadCtx === void 0 || (_uploadCtx$slots7$ext = (_uploadCtx$slots7 = uploadCtx.slots)["extra-button"]) === null || _uploadCtx$slots7$ext === void 0 ? void 0 : _uploadCtx$slots7$ext.call(_uploadCtx$slots7, { fileItem: props.file })
117
- ]);
118
- };
119
- }
120
- });
1
+ import upload_list_item_vue_vue_type_script_setup_true_lang_default from "./upload-list-item.vue_vue_type_script_setup_true_lang.js";
2
+ //#region components/upload/upload-list-item.vue
3
+ var upload_list_item_default = upload_list_item_vue_vue_type_script_setup_true_lang_default;
121
4
  //#endregion
122
5
  export { upload_list_item_default as default };
@@ -1,6 +1,6 @@
1
- import { PropType } from 'vue';
2
- import { FileItem, ListType } from './interfaces';
3
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1
+ import { type PropType } from 'vue';
2
+ import type { FileItem, ListType } from './interfaces';
3
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  file: {
5
5
  type: PropType<FileItem>;
6
6
  required: true;
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
9
9
  type: PropType<ListType>;
10
10
  required: true;
11
11
  };
12
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
13
  file: {
14
14
  type: PropType<FileItem>;
15
15
  required: true;
@@ -19,4 +19,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
19
19
  required: true;
20
20
  };
21
21
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
22
+ declare const _default: typeof __VLS_export;
22
23
  export default _default;
@@ -0,0 +1,195 @@
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.142.0/helpers/esm/objectSpread2.js";
2
+ import { getPrefixCls } from "../_utils/global-config.js";
3
+ import icon_hover_default from "../_components/icon-hover.js";
4
+ import { isActivationKey } from "../_utils/keyboard.js";
5
+ import IconExclamationCircleFill from "../icon/icon-exclamation-circle-fill/index.js";
6
+ import { useI18n } from "../locale/index.js";
7
+ import Tooltip from "../tooltip/index.js";
8
+ import IconDelete from "../icon/icon-delete/index.js";
9
+ import IconFile from "../icon/icon-file/index.js";
10
+ import { uploadInjectionKey } from "./context.js";
11
+ import IconFileAudio from "../icon/icon-file-audio/index.js";
12
+ import IconFileImage from "../icon/icon-file-image/index.js";
13
+ import IconFilePdf from "../icon/icon-file-pdf/index.js";
14
+ import IconFileVideo from "../icon/icon-file-video/index.js";
15
+ import upload_progress_default from "./upload-progress.js";
16
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, normalizeClass, openBlock, resolveDynamicComponent, toDisplayString, toRef, unref, withCtx } from "vue";
17
+ import { createReusableTemplate } from "@vueuse/core";
18
+ //#region components/upload/upload-list-item.vue?vue&type=script&setup=true&lang.ts
19
+ var _hoisted_1 = [
20
+ "src",
21
+ "alt",
22
+ "loading"
23
+ ];
24
+ var _hoisted_2 = ["href", "download"];
25
+ var _hoisted_3 = ["aria-label"];
26
+ var upload_list_item_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "UploadListItem" }), {}, {
27
+ __name: "upload-list-item",
28
+ props: {
29
+ file: {
30
+ type: Object,
31
+ required: true
32
+ },
33
+ listType: {
34
+ type: String,
35
+ required: true
36
+ }
37
+ },
38
+ setup(__props) {
39
+ const file = toRef(__props, "file");
40
+ const itemCls = `${getPrefixCls("upload-list")}-item`;
41
+ const { t } = useI18n();
42
+ const uploadCtx = inject(uploadInjectionKey, void 0);
43
+ const [DefineFileName, ReuseFileName] = createReusableTemplate();
44
+ const VNodeRenderer = ({ content }) => content;
45
+ const customFileIcon = computed(() => {
46
+ var _uploadCtx$customIcon, _uploadCtx$customIcon2;
47
+ return uploadCtx === null || uploadCtx === void 0 || (_uploadCtx$customIcon = uploadCtx.customIcon) === null || _uploadCtx$customIcon === void 0 || (_uploadCtx$customIcon2 = _uploadCtx$customIcon.fileIcon) === null || _uploadCtx$customIcon2 === void 0 ? void 0 : _uploadCtx$customIcon2.call(_uploadCtx$customIcon, file.value);
48
+ });
49
+ const customFileName = computed(() => {
50
+ var _uploadCtx$customIcon3, _uploadCtx$customIcon4;
51
+ return uploadCtx === null || uploadCtx === void 0 || (_uploadCtx$customIcon3 = uploadCtx.customIcon) === null || _uploadCtx$customIcon3 === void 0 || (_uploadCtx$customIcon4 = _uploadCtx$customIcon3.fileName) === null || _uploadCtx$customIcon4 === void 0 ? void 0 : _uploadCtx$customIcon4.call(_uploadCtx$customIcon3, file.value);
52
+ });
53
+ const fileIconComponent = computed(() => {
54
+ var _file$value$file;
55
+ let type = "";
56
+ if ((_file$value$file = file.value.file) === null || _file$value$file === void 0 ? void 0 : _file$value$file.type) type = file.value.file.type;
57
+ else {
58
+ var _file$value$name$spli, _file$value$name;
59
+ const extension = (_file$value$name$spli = (_file$value$name = file.value.name) === null || _file$value$name === void 0 ? void 0 : _file$value$name.split(".")[1]) !== null && _file$value$name$spli !== void 0 ? _file$value$name$spli : "";
60
+ if ([
61
+ "png",
62
+ "jpg",
63
+ "jpeg",
64
+ "bmp",
65
+ "gif",
66
+ "webp"
67
+ ].includes(extension)) type = "image";
68
+ else if ([
69
+ "mp4",
70
+ "m2v",
71
+ "mkv",
72
+ "m4v",
73
+ "mov"
74
+ ].includes(extension)) type = "video";
75
+ else if ([
76
+ "mp3",
77
+ "wav",
78
+ "wmv",
79
+ "m4a",
80
+ "acc",
81
+ "flac"
82
+ ].includes(extension)) type = "audio";
83
+ }
84
+ if (type.includes("image")) return IconFileImage;
85
+ if (type.includes("pdf")) return IconFilePdf;
86
+ if (type.includes("audio")) return IconFileAudio;
87
+ if (type.includes("video")) return IconFileVideo;
88
+ return IconFile;
89
+ });
90
+ function onRemoveKeydown(event) {
91
+ if (isActivationKey(event)) {
92
+ var _uploadCtx$onRemove;
93
+ event.preventDefault();
94
+ uploadCtx === null || uploadCtx === void 0 || (_uploadCtx$onRemove = uploadCtx.onRemove) === null || _uploadCtx$onRemove === void 0 || _uploadCtx$onRemove.call(uploadCtx, file.value);
95
+ }
96
+ }
97
+ return (_ctx, _cache) => {
98
+ var _unref3, _unref4, _unref5, _unref6, _unref7, _unref8, _unref9, _unref15, _unref21;
99
+ return openBlock(), createElementBlock("div", { class: normalizeClass([itemCls, `${itemCls}-${file.value.status}`]) }, [
100
+ createVNode(unref(DefineFileName), null, {
101
+ default: withCtx(() => {
102
+ var _unref2;
103
+ return [((_unref2 = unref(uploadCtx)) === null || _unref2 === void 0 ? void 0 : _unref2.slots["file-name"]) ? (openBlock(), createBlock(resolveDynamicComponent(unref(uploadCtx).slots["file-name"]), {
104
+ key: 0,
105
+ "file-item": file.value
106
+ }, null, 8, ["file-item"])) : customFileName.value ? (openBlock(), createBlock(VNodeRenderer, {
107
+ key: 1,
108
+ content: customFileName.value
109
+ }, null, 8, ["content"])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [createTextVNode(toDisplayString(file.value.name), 1)], 64))];
110
+ }),
111
+ _: 1
112
+ }),
113
+ createElementVNode("div", { class: normalizeClass(`${itemCls}-content`) }, [
114
+ ((_unref3 = unref(uploadCtx)) === null || _unref3 === void 0 ? void 0 : _unref3.listType) === "picture" ? (openBlock(), createElementBlock("span", {
115
+ key: 0,
116
+ class: normalizeClass(`${itemCls}-thumbnail`)
117
+ }, [((_unref4 = unref(uploadCtx)) === null || _unref4 === void 0 ? void 0 : _unref4.slots.image) ? (openBlock(), createBlock(resolveDynamicComponent(unref(uploadCtx).slots.image), {
118
+ key: 0,
119
+ "file-item": file.value
120
+ }, null, 8, ["file-item"])) : (openBlock(), createElementBlock("img", {
121
+ key: 1,
122
+ src: file.value.url,
123
+ alt: file.value.name,
124
+ loading: ((_unref5 = unref(uploadCtx)) === null || _unref5 === void 0 ? void 0 : _unref5.imageLoading) || void 0
125
+ }, null, 8, _hoisted_1))], 2)) : createCommentVNode("", true),
126
+ createElementVNode("div", { class: normalizeClass(`${itemCls}-name`) }, [
127
+ ((_unref6 = unref(uploadCtx)) === null || _unref6 === void 0 ? void 0 : _unref6.listType) === "text" ? (openBlock(), createElementBlock("span", {
128
+ key: 0,
129
+ class: normalizeClass(`${itemCls}-file-icon`)
130
+ }, [((_unref7 = unref(uploadCtx)) === null || _unref7 === void 0 ? void 0 : _unref7.slots["file-icon"]) ? (openBlock(), createBlock(resolveDynamicComponent(unref(uploadCtx).slots["file-icon"]), {
131
+ key: 0,
132
+ "file-item": file.value
133
+ }, null, 8, ["file-item"])) : customFileIcon.value ? (openBlock(), createBlock(VNodeRenderer, {
134
+ key: 1,
135
+ content: customFileIcon.value
136
+ }, null, 8, ["content"])) : (openBlock(), createBlock(resolveDynamicComponent(fileIconComponent.value), { key: 2 }))], 2)) : createCommentVNode("", true),
137
+ ((_unref8 = unref(uploadCtx)) === null || _unref8 === void 0 ? void 0 : _unref8.showLink) && file.value.url ? (openBlock(), createElementBlock("a", {
138
+ key: 1,
139
+ class: normalizeClass(`${itemCls}-name-link`),
140
+ target: "_blank",
141
+ href: file.value.url,
142
+ download: ((_unref9 = unref(uploadCtx)) === null || _unref9 === void 0 ? void 0 : _unref9.download) ? file.value.name : void 0
143
+ }, [createVNode(unref(ReuseFileName))], 10, _hoisted_2)) : (openBlock(), createElementBlock("span", {
144
+ key: 2,
145
+ class: normalizeClass(`${itemCls}-name-text`),
146
+ onClick: _cache[0] || (_cache[0] = ($event) => {
147
+ var _unref10;
148
+ return (_unref10 = unref(uploadCtx)) === null || _unref10 === void 0 ? void 0 : _unref10.onPreview(file.value);
149
+ })
150
+ }, [createVNode(unref(ReuseFileName))], 2)),
151
+ file.value.status === "error" ? (openBlock(), createBlock(unref(Tooltip), {
152
+ key: 3,
153
+ content: unref(t)("upload.error")
154
+ }, {
155
+ default: withCtx(() => {
156
+ var _unref11, _unref12, _unref13, _unref14;
157
+ return [createElementVNode("span", { class: normalizeClass([(_unref11 = unref(uploadCtx)) === null || _unref11 === void 0 ? void 0 : _unref11.iconCls, `${(_unref12 = unref(uploadCtx)) === null || _unref12 === void 0 ? void 0 : _unref12.iconCls}-error`]) }, [((_unref13 = unref(uploadCtx)) === null || _unref13 === void 0 ? void 0 : _unref13.slots["error-icon"]) ? (openBlock(), createBlock(resolveDynamicComponent(unref(uploadCtx).slots["error-icon"]), { key: 0 })) : ((_unref14 = unref(uploadCtx)) === null || _unref14 === void 0 || (_unref14 = _unref14.customIcon) === null || _unref14 === void 0 ? void 0 : _unref14.errorIcon) ? (openBlock(), createBlock(resolveDynamicComponent(unref(uploadCtx).customIcon.errorIcon), { key: 1 })) : (openBlock(), createBlock(unref(IconExclamationCircleFill), { key: 2 }))], 2)];
158
+ }),
159
+ _: 1
160
+ }, 8, ["content"])) : createCommentVNode("", true)
161
+ ], 2),
162
+ createVNode(upload_progress_default, {
163
+ file: file.value,
164
+ "list-type": __props.listType
165
+ }, null, 8, ["file", "list-type"])
166
+ ], 2),
167
+ ((_unref15 = unref(uploadCtx)) === null || _unref15 === void 0 ? void 0 : _unref15.showRemoveButton) ? (openBlock(), createElementBlock("span", {
168
+ key: 0,
169
+ class: normalizeClass(`${itemCls}-operation`)
170
+ }, [createElementVNode("span", {
171
+ role: "button",
172
+ tabindex: "0",
173
+ "aria-label": unref(t)("a11y.remove"),
174
+ onClick: _cache[1] || (_cache[1] = ($event) => {
175
+ var _unref16, _unref16$onRemove;
176
+ return (_unref16 = unref(uploadCtx)) === null || _unref16 === void 0 || (_unref16$onRemove = _unref16.onRemove) === null || _unref16$onRemove === void 0 ? void 0 : _unref16$onRemove.call(_unref16, file.value);
177
+ }),
178
+ onKeydown: onRemoveKeydown
179
+ }, [createVNode(icon_hover_default, null, {
180
+ default: withCtx(() => {
181
+ var _unref17, _unref18, _unref19, _unref20;
182
+ return [createElementVNode("span", { class: normalizeClass([(_unref17 = unref(uploadCtx)) === null || _unref17 === void 0 ? void 0 : _unref17.iconCls, `${(_unref18 = unref(uploadCtx)) === null || _unref18 === void 0 ? void 0 : _unref18.iconCls}-remove`]) }, [((_unref19 = unref(uploadCtx)) === null || _unref19 === void 0 ? void 0 : _unref19.slots["remove-icon"]) ? (openBlock(), createBlock(resolveDynamicComponent(unref(uploadCtx).slots["remove-icon"]), { key: 0 })) : ((_unref20 = unref(uploadCtx)) === null || _unref20 === void 0 || (_unref20 = _unref20.customIcon) === null || _unref20 === void 0 ? void 0 : _unref20.removeIcon) ? (openBlock(), createBlock(resolveDynamicComponent(unref(uploadCtx).customIcon.removeIcon), { key: 1 })) : (openBlock(), createBlock(unref(IconDelete), { key: 2 }))], 2)];
183
+ }),
184
+ _: 1
185
+ })], 40, _hoisted_3)], 2)) : createCommentVNode("", true),
186
+ ((_unref21 = unref(uploadCtx)) === null || _unref21 === void 0 ? void 0 : _unref21.slots["extra-button"]) ? (openBlock(), createBlock(resolveDynamicComponent(unref(uploadCtx).slots["extra-button"]), {
187
+ key: 1,
188
+ "file-item": file.value
189
+ }, null, 8, ["file-item"])) : createCommentVNode("", true)
190
+ ], 2);
191
+ };
192
+ }
193
+ }));
194
+ //#endregion
195
+ export { upload_list_item_vue_vue_type_script_setup_true_lang_default as default };
@@ -1,48 +1,5 @@
1
- import { getPrefixCls } from "../_utils/global-config.js";
2
- import { isFunction } from "../_utils/is.js";
3
- import upload_list_item_default from "./upload-list-item.js";
4
- import upload_picture_item_default from "./upload-picture-item.js";
5
- import { TransitionGroup, computed, createVNode, defineComponent, mergeProps } from "vue";
6
- //#region components/upload/upload-list.tsx
7
- var upload_list_default = /* @__PURE__ */ defineComponent({
8
- name: "UploadList",
9
- components: {
10
- UploadListItem: upload_list_item_default,
11
- UploadPictureItem: upload_picture_item_default
12
- },
13
- props: {
14
- fileList: {
15
- type: Array,
16
- required: true
17
- },
18
- listType: {
19
- type: String,
20
- required: true
21
- }
22
- },
23
- setup(props, { slots }) {
24
- const prefixCls = getPrefixCls("upload");
25
- const cls = computed(() => [`${prefixCls}-list`, `${prefixCls}-list-type-${props.listType}`]);
26
- const renderItem = (fileItem, index) => {
27
- if (isFunction(slots["upload-item"])) return slots["upload-item"]({
28
- fileItem,
29
- index
30
- });
31
- if (props.listType === "picture-card") return createVNode(upload_picture_item_default, {
32
- "file": fileItem,
33
- "key": `item-${index}`
34
- }, null);
35
- return createVNode(upload_list_item_default, {
36
- "file": fileItem,
37
- "listType": props.listType,
38
- "key": `item-${index}`
39
- }, null);
40
- };
41
- return () => createVNode(TransitionGroup, mergeProps({ "tag": "div" }, { class: cls.value }), { default: () => {
42
- var _slots$uploadButton;
43
- return [...props.fileList.map((item, index) => renderItem(item, index)), props.listType === "picture-card" && ((_slots$uploadButton = slots["upload-button"]) === null || _slots$uploadButton === void 0 ? void 0 : _slots$uploadButton.call(slots))];
44
- } });
45
- }
46
- });
1
+ import upload_list_vue_vue_type_script_setup_true_lang_default from "./upload-list.vue_vue_type_script_setup_true_lang.js";
2
+ //#region components/upload/upload-list.vue
3
+ var upload_list_default = upload_list_vue_vue_type_script_setup_true_lang_default;
47
4
  //#endregion
48
5
  export { upload_list_default as default };