@vunk/plus 1.13.1 → 1.15.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 (540) hide show
  1. package/ant/_util/BaseInput.d.ts +56 -0
  2. package/ant/_util/BaseInputInner.d.ts +65 -0
  3. package/ant/_util/BaseMixin.d.ts +7 -0
  4. package/ant/_util/EventInterface.d.ts +18 -0
  5. package/ant/_util/KeyCode.d.ts +436 -0
  6. package/ant/_util/Portal.d.ts +14 -0
  7. package/ant/_util/PortalWrapper.d.ts +41 -0
  8. package/ant/_util/canUseDom.d.ts +2 -0
  9. package/ant/_util/classNames.d.ts +2 -0
  10. package/ant/_util/collapseMotion.d.ts +3 -0
  11. package/ant/_util/colors.d.ts +13 -0
  12. package/ant/_util/copy-to-clipboard/index.d.ts +8 -0
  13. package/ant/_util/copy-to-clipboard/toggle-selection.d.ts +2 -0
  14. package/ant/_util/createContext.d.ts +5 -0
  15. package/ant/_util/createRef.d.ts +10 -0
  16. package/ant/_util/cssinjs/Cache.d.ts +11 -0
  17. package/ant/_util/cssinjs/Keyframes.d.ts +9 -0
  18. package/ant/_util/cssinjs/StyleContext.d.ts +508 -0
  19. package/ant/_util/cssinjs/hooks/useCacheToken.d.ts +40 -0
  20. package/ant/_util/cssinjs/hooks/useGlobalCache.d.ts +3 -0
  21. package/ant/_util/cssinjs/hooks/useHMR.d.ts +3 -0
  22. package/ant/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.d.ts +14 -0
  23. package/ant/_util/cssinjs/hooks/useStyleRegister/index.d.ts +68 -0
  24. package/ant/_util/cssinjs/index.d.ts +195 -0
  25. package/ant/_util/cssinjs/linters/contentQuotesLinter.d.ts +3 -0
  26. package/ant/_util/cssinjs/linters/hashedAnimationLinter.d.ts +3 -0
  27. package/ant/_util/cssinjs/linters/index.d.ts +6 -0
  28. package/ant/_util/cssinjs/linters/interface.d.ts +8 -0
  29. package/ant/_util/cssinjs/linters/legacyNotSelectorLinter.d.ts +3 -0
  30. package/ant/_util/cssinjs/linters/logicalPropertiesLinter.d.ts +3 -0
  31. package/ant/_util/cssinjs/linters/parentSelectorLinter.d.ts +3 -0
  32. package/ant/_util/cssinjs/linters/utils.d.ts +2 -0
  33. package/ant/_util/cssinjs/theme/Theme.d.ts +11 -0
  34. package/ant/_util/cssinjs/theme/ThemeCache.d.ts +20 -0
  35. package/ant/_util/cssinjs/theme/createTheme.d.ts +6 -0
  36. package/ant/_util/cssinjs/theme/index.d.ts +4 -0
  37. package/ant/_util/cssinjs/theme/interface.d.ts +2 -0
  38. package/ant/_util/cssinjs/transformers/interface.d.ts +4 -0
  39. package/ant/_util/cssinjs/transformers/legacyLogicalProperties.d.ts +12 -0
  40. package/ant/_util/cssinjs/transformers/px2rem.d.ts +20 -0
  41. package/ant/_util/cssinjs/util.d.ts +8 -0
  42. package/ant/_util/firstNotUndefined.d.ts +2 -0
  43. package/ant/_util/gapSize.d.ts +3 -0
  44. package/ant/_util/getScrollBarSize.d.ts +5 -0
  45. package/ant/_util/hooks/_vueuse/resolveUnref.d.ts +5 -0
  46. package/ant/_util/hooks/_vueuse/types.d.ts +114 -0
  47. package/ant/_util/hooks/_vueuse/unrefElement.d.ts +13 -0
  48. package/ant/_util/hooks/useBreakpoint.d.ts +4 -0
  49. package/ant/_util/hooks/useFlexGapSupport.d.ts +2 -0
  50. package/ant/_util/hooks/useMergedState.d.ts +7 -0
  51. package/ant/_util/hooks/useRefs.d.ts +7 -0
  52. package/ant/_util/hooks/useScrollLocker.d.ts +6 -0
  53. package/ant/_util/hooks/useState.d.ts +2 -0
  54. package/ant/_util/isValid.d.ts +2 -0
  55. package/ant/_util/omit.d.ts +2 -0
  56. package/ant/_util/pickAttrs.d.ts +11 -0
  57. package/ant/_util/placements.d.ts +65 -0
  58. package/ant/_util/props-util/index.d.ts +33 -0
  59. package/ant/_util/props-util/initDefaultProps.d.ts +6 -0
  60. package/ant/_util/raf.d.ts +5 -0
  61. package/ant/_util/responsiveObserve.d.ts +21 -0
  62. package/ant/_util/setStyle.d.ts +12 -0
  63. package/ant/_util/statusUtils.d.ts +6 -0
  64. package/ant/_util/styleChecker.d.ts +4 -0
  65. package/ant/_util/transButton.d.ts +34 -0
  66. package/ant/_util/transition.d.ts +18 -0
  67. package/ant/_util/type.d.ts +62 -0
  68. package/ant/_util/util.d.ts +18 -0
  69. package/ant/_util/vnode.d.ts +11 -0
  70. package/ant/_util/vue-types/index.d.ts +12 -0
  71. package/ant/_util/warning.d.ts +6 -0
  72. package/ant/_util/wave/WaveEffect.d.ts +6 -0
  73. package/ant/_util/wave/index.d.ts +13 -0
  74. package/ant/_util/wave/style.d.ts +6 -0
  75. package/ant/_util/wave/useWave.d.ts +4 -0
  76. package/ant/_util/wave/util.d.ts +3 -0
  77. package/ant/button/LoadingIcon.d.ts +12 -0
  78. package/ant/button/button-group.d.ts +33 -0
  79. package/ant/button/button.d.ts +112 -0
  80. package/ant/button/buttonTypes.d.ts +58 -0
  81. package/ant/button/index.d.ts +12 -0
  82. package/ant/button/style/group.d.ts +4 -0
  83. package/ant/button/style/index.d.ts +10 -0
  84. package/ant/calendar/style/index.d.ts +21 -0
  85. package/ant/config-provider/DisabledContext.d.ts +4 -0
  86. package/ant/config-provider/SizeContext.d.ts +4 -0
  87. package/ant/config-provider/context.d.ts +208 -0
  88. package/ant/config-provider/cssVariables.d.ts +3 -0
  89. package/ant/config-provider/hooks/useConfigInject.d.ts +37 -0
  90. package/ant/config-provider/hooks/useTheme.d.ts +3 -0
  91. package/ant/config-provider/index.d.ts +290 -0
  92. package/ant/config-provider/renderEmpty.d.ts +8 -0
  93. package/ant/config-provider/style/index.d.ts +3 -0
  94. package/ant/date-picker/style/index.d.ts +35 -0
  95. package/ant/empty/empty.d.ts +2 -0
  96. package/ant/empty/index.d.ts +86 -0
  97. package/ant/empty/simple.d.ts +2 -0
  98. package/ant/empty/style/index.d.ts +5 -0
  99. package/ant/flex/index.d.ts +142 -0
  100. package/ant/flex/interface.d.ts +36 -0
  101. package/ant/flex/style/index.d.ts +29 -0
  102. package/ant/flex/utils.d.ts +6 -0
  103. package/ant/form/ErrorList.d.ts +21 -0
  104. package/ant/form/Form.d.ts +772 -0
  105. package/ant/form/FormItem.d.ts +191 -0
  106. package/ant/form/FormItemContext.d.ts +32 -0
  107. package/ant/form/FormItemInput.d.ts +44 -0
  108. package/ant/form/FormItemLabel.d.ts +19 -0
  109. package/ant/form/context.d.ts +35 -0
  110. package/ant/form/index.d.ts +16 -0
  111. package/ant/form/interface.d.ts +171 -0
  112. package/ant/form/style/explain.d.ts +4 -0
  113. package/ant/form/style/index.d.ts +7 -0
  114. package/ant/form/useForm.d.ts +45 -0
  115. package/ant/form/utils/asyncUtil.d.ts +2 -0
  116. package/ant/form/utils/messages.d.ts +47 -0
  117. package/ant/form/utils/typeUtil.d.ts +1 -0
  118. package/ant/form/utils/useDebounce.d.ts +2 -0
  119. package/ant/form/utils/validateUtil.d.ts +6 -0
  120. package/ant/form/utils/valueUtil.d.ts +15 -0
  121. package/ant/grid/Col.d.ts +116 -0
  122. package/ant/grid/Row.d.ts +77 -0
  123. package/ant/grid/context.d.ts +11 -0
  124. package/ant/grid/index.d.ts +10 -0
  125. package/ant/grid/style/index.d.ts +2 -0
  126. package/ant/image/PreviewGroup.d.ts +37 -0
  127. package/ant/image/index.d.ts +71 -0
  128. package/ant/image/style/index.d.ts +21 -0
  129. package/ant/index.cjs +203 -0
  130. package/ant/index.d.ts +27 -0
  131. package/ant/index.mjs +20993 -0
  132. package/ant/input/ClearableLabeledInput.d.ts +151 -0
  133. package/ant/input/Group.d.ts +24 -0
  134. package/ant/input/Input.d.ts +191 -0
  135. package/ant/input/Password.d.ts +217 -0
  136. package/ant/input/ResizableTextArea.d.ts +215 -0
  137. package/ant/input/Search.d.ts +195 -0
  138. package/ant/input/TextArea.d.ts +217 -0
  139. package/ant/input/calculateNodeHeight.d.ts +9 -0
  140. package/ant/input/index.d.ts +15 -0
  141. package/ant/input/inputProps.d.ts +207 -0
  142. package/ant/input/style/index.d.ts +30 -0
  143. package/ant/input/util.d.ts +2 -0
  144. package/ant/locale/LocaleReceiver.d.ts +35 -0
  145. package/ant/locale/en_US.d.ts +3 -0
  146. package/ant/locale/index.d.ts +91 -0
  147. package/ant/locale-provider/LocaleReceiver.d.ts +3 -0
  148. package/ant/locale-provider/index.d.ts +3 -0
  149. package/ant/modal/locale.d.ts +7 -0
  150. package/ant/modal/style/index.d.ts +32 -0
  151. package/ant/progress/Circle.d.ts +168 -0
  152. package/ant/progress/Line.d.ts +205 -0
  153. package/ant/progress/Steps.d.ts +168 -0
  154. package/ant/progress/index.d.ts +204 -0
  155. package/ant/progress/progress.d.ts +117 -0
  156. package/ant/progress/props.d.ts +79 -0
  157. package/ant/progress/style/index.d.ts +4 -0
  158. package/ant/progress/utils.d.ts +13 -0
  159. package/ant/space/Compact.d.ts +119 -0
  160. package/ant/space/style/compact.d.ts +8 -0
  161. package/ant/space/style/index.d.ts +5 -0
  162. package/ant/style/compact-item-vertical.d.ts +4 -0
  163. package/ant/style/compact-item.d.ts +18 -0
  164. package/ant/style/index.d.ts +13 -0
  165. package/ant/style/motion/collapse.d.ts +4 -0
  166. package/ant/style/motion/fade.d.ts +7 -0
  167. package/ant/style/motion/index.d.ts +6 -0
  168. package/ant/style/motion/motion.d.ts +2 -0
  169. package/ant/style/motion/move.d.ts +15 -0
  170. package/ant/style/motion/slide.d.ts +15 -0
  171. package/ant/style/motion/zoom.d.ts +19 -0
  172. package/ant/style/operationUnit.d.ts +3 -0
  173. package/ant/style/placementArrow.d.ts +19 -0
  174. package/ant/style/presetColor.d.ts +16 -0
  175. package/ant/style/roundedArrow.d.ts +2 -0
  176. package/ant/theme/index.d.ts +23 -0
  177. package/ant/theme/interface/alias.d.ts +115 -0
  178. package/ant/theme/interface/components.d.ts +32 -0
  179. package/ant/theme/interface/index.d.ts +13 -0
  180. package/ant/theme/interface/maps/colors.d.ts +350 -0
  181. package/ant/theme/interface/maps/font.d.ts +44 -0
  182. package/ant/theme/interface/maps/index.d.ts +17 -0
  183. package/ant/theme/interface/maps/size.d.ts +63 -0
  184. package/ant/theme/interface/maps/style.d.ts +37 -0
  185. package/ant/theme/interface/presetColors.d.ts +8 -0
  186. package/ant/theme/interface/seeds.d.ts +163 -0
  187. package/ant/theme/internal.d.ts +49 -0
  188. package/ant/theme/themes/ColorMap.d.ts +15 -0
  189. package/ant/theme/themes/compact/genCompactSizeMapToken.d.ts +2 -0
  190. package/ant/theme/themes/compact/index.d.ts +4 -0
  191. package/ant/theme/themes/dark/colorAlgorithm.d.ts +2 -0
  192. package/ant/theme/themes/dark/colors.d.ts +3 -0
  193. package/ant/theme/themes/dark/index.d.ts +4 -0
  194. package/ant/theme/themes/default/colorAlgorithm.d.ts +2 -0
  195. package/ant/theme/themes/default/colors.d.ts +3 -0
  196. package/ant/theme/themes/default/index.d.ts +2 -0
  197. package/ant/theme/themes/seed.d.ts +4 -0
  198. package/ant/theme/themes/shared/genColorMapToken.d.ts +8 -0
  199. package/ant/theme/themes/shared/genCommonMapToken.d.ts +2 -0
  200. package/ant/theme/themes/shared/genControlHeight.d.ts +3 -0
  201. package/ant/theme/themes/shared/genFontMapToken.d.ts +3 -0
  202. package/ant/theme/themes/shared/genFontSizes.d.ts +4 -0
  203. package/ant/theme/themes/shared/genRadius.d.ts +3 -0
  204. package/ant/theme/themes/shared/genSizeMapToken.d.ts +2 -0
  205. package/ant/theme/util/alias.d.ts +12 -0
  206. package/ant/theme/util/genComponentStyleHook.d.ts +26 -0
  207. package/ant/theme/util/getAlphaColor.d.ts +2 -0
  208. package/ant/theme/util/statistic.d.ts +18 -0
  209. package/ant/tooltip/Tooltip.d.ts +228 -0
  210. package/ant/tooltip/abstractTooltipProps.d.ts +73 -0
  211. package/ant/tooltip/index.d.ts +245 -0
  212. package/ant/tooltip/style/index.d.ts +8 -0
  213. package/ant/tooltip/util.d.ts +6 -0
  214. package/ant/typography/Base.d.ts +200 -0
  215. package/ant/typography/Editable.d.ts +49 -0
  216. package/ant/typography/Link.d.ts +51 -0
  217. package/ant/typography/Paragraph.d.ts +51 -0
  218. package/ant/typography/Text.d.ts +51 -0
  219. package/ant/typography/Title.d.ts +48 -0
  220. package/ant/typography/Typography.d.ts +24 -0
  221. package/ant/typography/index.d.ts +17 -0
  222. package/ant/typography/style/index.d.ts +9 -0
  223. package/ant/typography/style/mixins.d.ts +9 -0
  224. package/ant/typography/util.d.ts +11 -0
  225. package/ant/upload/Dragger.d.ts +393 -0
  226. package/ant/upload/Upload.d.ts +396 -0
  227. package/ant/upload/UploadList/ListItem.d.ts +339 -0
  228. package/ant/upload/UploadList/index.d.ts +232 -0
  229. package/ant/upload/index.d.ts +1460 -0
  230. package/ant/upload/interface.d.ts +355 -0
  231. package/ant/upload/style/dragger.d.ts +4 -0
  232. package/ant/upload/style/index.d.ts +10 -0
  233. package/ant/upload/style/list.d.ts +4 -0
  234. package/ant/upload/style/motion.d.ts +4 -0
  235. package/ant/upload/style/picture.d.ts +5 -0
  236. package/ant/upload/style/rtl.d.ts +4 -0
  237. package/ant/upload/utils.d.ts +8 -0
  238. package/ant/vc-align/Align.d.ts +45 -0
  239. package/ant/vc-align/hooks/useBuffer.d.ts +3 -0
  240. package/ant/vc-align/interface.d.ts +56 -0
  241. package/ant/vc-align/util.d.ts +4 -0
  242. package/ant/vc-dialog/Content.d.ts +181 -0
  243. package/ant/vc-dialog/Dialog.d.ts +169 -0
  244. package/ant/vc-dialog/DialogWrap.d.ts +165 -0
  245. package/ant/vc-dialog/IDialogPropTypes.d.ts +79 -0
  246. package/ant/vc-dialog/Mask.d.ts +14 -0
  247. package/ant/vc-dialog/index.d.ts +4 -0
  248. package/ant/vc-dialog/util.d.ts +6 -0
  249. package/ant/vc-image/index.d.ts +3 -0
  250. package/ant/vc-image/src/Image.d.ts +114 -0
  251. package/ant/vc-image/src/Preview.d.ts +292 -0
  252. package/ant/vc-image/src/PreviewGroup.d.ts +79 -0
  253. package/ant/vc-image/src/getFixScaleEleTransPosition.d.ts +16 -0
  254. package/ant/vc-image/src/hooks/useFrameSetState.d.ts +3 -0
  255. package/ant/vc-input/BaseInput.d.ts +97 -0
  256. package/ant/vc-input/Input.d.ts +192 -0
  257. package/ant/vc-input/inputProps.d.ts +169 -0
  258. package/ant/vc-input/utils/commonUtils.d.ts +8 -0
  259. package/ant/vc-progress/index.d.ts +5 -0
  260. package/ant/vc-progress/src/Circle.d.ts +41 -0
  261. package/ant/vc-progress/src/Line.d.ts +40 -0
  262. package/ant/vc-progress/src/common.d.ts +5 -0
  263. package/ant/vc-progress/src/index.d.ts +86 -0
  264. package/ant/vc-progress/src/types.d.ts +25 -0
  265. package/ant/vc-resize-observer/index.d.ts +25 -0
  266. package/ant/vc-tooltip/index.d.ts +2 -0
  267. package/ant/vc-tooltip/src/Content.d.ts +17 -0
  268. package/ant/vc-tooltip/src/Tooltip.d.ts +141 -0
  269. package/ant/vc-tooltip/src/placements.d.ts +111 -0
  270. package/ant/vc-trigger/Popup/Mask.d.ts +14 -0
  271. package/ant/vc-trigger/Popup/MobilePopupInner.d.ts +103 -0
  272. package/ant/vc-trigger/Popup/PopupInner.d.ts +98 -0
  273. package/ant/vc-trigger/Popup/index.d.ts +104 -0
  274. package/ant/vc-trigger/Popup/interface.d.ts +151 -0
  275. package/ant/vc-trigger/Popup/useStretchStyle.d.ts +4 -0
  276. package/ant/vc-trigger/Popup/useVisibleStatus.d.ts +15 -0
  277. package/ant/vc-trigger/Trigger.d.ts +282 -0
  278. package/ant/vc-trigger/context.d.ts +11 -0
  279. package/ant/vc-trigger/index.d.ts +6 -0
  280. package/ant/vc-trigger/interface.d.ts +175 -0
  281. package/ant/vc-trigger/utils/alignUtil.d.ts +3 -0
  282. package/ant/vc-trigger/utils/motionUtil.d.ts +12 -0
  283. package/ant/vc-upload/AjaxUploader.d.ts +108 -0
  284. package/ant/vc-upload/Upload.d.ts +108 -0
  285. package/ant/vc-upload/attr-accept.d.ts +3 -0
  286. package/ant/vc-upload/index.d.ts +4 -0
  287. package/ant/vc-upload/interface.d.ts +79 -0
  288. package/ant/vc-upload/request.d.ts +4 -0
  289. package/ant/vc-upload/traverseFileTree.d.ts +14 -0
  290. package/ant/vc-upload/uid.d.ts +1 -0
  291. package/ant/vc-util/Dom/contains.d.ts +1 -0
  292. package/ant/vc-util/Dom/css.d.ts +22 -0
  293. package/ant/vc-util/Dom/dynamicCSS.d.ts +20 -0
  294. package/ant/vc-util/Dom/isVisible.d.ts +2 -0
  295. package/ant/vc-util/Dom/scrollLocker.d.ts +12 -0
  296. package/ant/vc-util/devWarning.d.ts +4 -0
  297. package/ant/vc-util/get.d.ts +1 -0
  298. package/ant/vc-util/set.d.ts +1 -0
  299. package/ant/vc-util/warning.d.ts +7 -0
  300. package/ant/version/index.d.ts +2 -0
  301. package/antx/_util/__tests__/warning.test.d.ts +1 -0
  302. package/antx/_util/cssinjs/Cache.d.ts +11 -0
  303. package/antx/_util/cssinjs/Keyframes.d.ts +9 -0
  304. package/antx/_util/cssinjs/StyleContext.d.ts +508 -0
  305. package/antx/_util/cssinjs/hooks/useCSSVarRegister.d.ts +20 -0
  306. package/antx/_util/cssinjs/hooks/useCacheToken.d.ts +40 -0
  307. package/antx/_util/cssinjs/hooks/useGlobalCache.d.ts +6 -0
  308. package/antx/_util/cssinjs/hooks/useHMR.d.ts +3 -0
  309. package/antx/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.d.ts +14 -0
  310. package/antx/_util/cssinjs/hooks/useStyleRegister/index.d.ts +69 -0
  311. package/antx/_util/cssinjs/index.d.ts +197 -0
  312. package/antx/_util/cssinjs/linters/contentQuotesLinter.d.ts +3 -0
  313. package/antx/_util/cssinjs/linters/hashedAnimationLinter.d.ts +3 -0
  314. package/antx/_util/cssinjs/linters/index.d.ts +6 -0
  315. package/antx/_util/cssinjs/linters/interface.d.ts +8 -0
  316. package/antx/_util/cssinjs/linters/legacyNotSelectorLinter.d.ts +3 -0
  317. package/antx/_util/cssinjs/linters/logicalPropertiesLinter.d.ts +3 -0
  318. package/antx/_util/cssinjs/linters/parentSelectorLinter.d.ts +3 -0
  319. package/antx/_util/cssinjs/linters/utils.d.ts +2 -0
  320. package/antx/_util/cssinjs/theme/Theme.d.ts +11 -0
  321. package/antx/_util/cssinjs/theme/ThemeCache.d.ts +20 -0
  322. package/antx/_util/cssinjs/theme/createTheme.d.ts +6 -0
  323. package/antx/_util/cssinjs/theme/index.d.ts +4 -0
  324. package/antx/_util/cssinjs/theme/interface.d.ts +2 -0
  325. package/antx/_util/cssinjs/transformers/interface.d.ts +4 -0
  326. package/antx/_util/cssinjs/transformers/legacyLogicalProperties.d.ts +12 -0
  327. package/antx/_util/cssinjs/transformers/px2rem.d.ts +20 -0
  328. package/antx/_util/cssinjs/util.d.ts +28 -0
  329. package/antx/_util/cssinjs-utils/_util/hooks/useUniqueMemo.d.ts +5 -0
  330. package/antx/_util/cssinjs-utils/hooks/useCSP.d.ts +8 -0
  331. package/antx/_util/cssinjs-utils/hooks/usePrefix.d.ts +11 -0
  332. package/antx/_util/cssinjs-utils/hooks/useToken.d.ts +21 -0
  333. package/antx/_util/cssinjs-utils/index.d.ts +6 -0
  334. package/antx/_util/cssinjs-utils/interface/components.d.ts +10 -0
  335. package/antx/_util/cssinjs-utils/interface/index.d.ts +3 -0
  336. package/antx/_util/cssinjs-utils/util/calc/CSSCalculator.d.ts +15 -0
  337. package/antx/_util/cssinjs-utils/util/calc/NumCalculator.d.ts +11 -0
  338. package/antx/_util/cssinjs-utils/util/calc/calculator.d.ts +30 -0
  339. package/antx/_util/cssinjs-utils/util/calc/index.d.ts +5 -0
  340. package/antx/_util/cssinjs-utils/util/genStyleUtils.d.ts +116 -0
  341. package/antx/_util/cssinjs-utils/util/getCompVarPrefix.d.ts +2 -0
  342. package/antx/_util/cssinjs-utils/util/getComponentToken.d.ts +9 -0
  343. package/antx/_util/cssinjs-utils/util/getDefaultComponentToken.d.ts +5 -0
  344. package/antx/_util/cssinjs-utils/util/maxmin.d.ts +8 -0
  345. package/antx/_util/cssinjs-utils/util/statistic.d.ts +20 -0
  346. package/antx/_util/getScrollBarSize.d.ts +5 -0
  347. package/antx/_util/getValue.d.ts +2 -0
  348. package/antx/_util/hooks/use-event-callback.d.ts +1 -0
  349. package/antx/_util/hooks/use-state.d.ts +2 -0
  350. package/antx/_util/hooks/use-x-component-config.d.ts +4 -0
  351. package/antx/_util/hooks/useMergedState.d.ts +7 -0
  352. package/antx/_util/motion.d.ts +3 -0
  353. package/antx/_util/pick-attrs.d.ts +11 -0
  354. package/antx/_util/setStyle.d.ts +12 -0
  355. package/antx/_util/transition.d.ts +29 -0
  356. package/antx/_util/type.d.ts +62 -0
  357. package/antx/_util/warning.d.ts +47 -0
  358. package/antx/attachments/Attachments.vue.d.ts +16 -0
  359. package/antx/attachments/DropArea.vue.d.ts +4 -0
  360. package/antx/attachments/FileList/AudioIcon.vue.d.ts +3 -0
  361. package/antx/attachments/FileList/FileList.vue.d.ts +4 -0
  362. package/antx/attachments/FileList/FileListCard.vue.d.ts +6 -0
  363. package/antx/attachments/FileList/Progress.vue.d.ts +103 -0
  364. package/antx/attachments/FileList/VideoIcon.vue.d.ts +3 -0
  365. package/antx/attachments/FileList/index.d.ts +3 -0
  366. package/antx/attachments/PlaceholderUploader.vue.d.ts +6 -0
  367. package/antx/attachments/SilentUploader.vue.d.ts +6 -0
  368. package/antx/attachments/constants.d.ts +9 -0
  369. package/antx/attachments/context.d.ts +21 -0
  370. package/antx/attachments/index.d.ts +26 -0
  371. package/antx/attachments/interface.d.ts +130 -0
  372. package/antx/attachments/style/fileCard.d.ts +4 -0
  373. package/antx/attachments/style/index.d.ts +9 -0
  374. package/antx/attachments/util.d.ts +3 -0
  375. package/antx/components.d.ts +4 -0
  376. package/antx/hooks.d.ts +8 -0
  377. package/antx/index.cjs +78 -0
  378. package/antx/index.d.ts +10 -0
  379. package/antx/index.mjs +6015 -0
  380. package/antx/sender/Sender.vue.d.ts +48 -0
  381. package/antx/sender/SenderHeader.vue.d.ts +13 -0
  382. package/antx/sender/StopLoading.vue.d.ts +6 -0
  383. package/antx/sender/components/ActionButton/context.d.ts +21 -0
  384. package/antx/sender/components/ActionButton/index.vue.d.ts +13 -0
  385. package/antx/sender/components/ClearButton.vue.d.ts +4 -0
  386. package/antx/sender/components/LoadingButton.vue.d.ts +4 -0
  387. package/antx/sender/components/SendButton.vue.d.ts +4 -0
  388. package/antx/sender/components/SpeechButton/RecordingIcon.vue.d.ts +4 -0
  389. package/antx/sender/components/SpeechButton/index.vue.d.ts +4 -0
  390. package/antx/sender/context.d.ts +21 -0
  391. package/antx/sender/index.d.ts +82 -0
  392. package/antx/sender/interface.d.ts +145 -0
  393. package/antx/sender/style/header.d.ts +4 -0
  394. package/antx/sender/style/index.d.ts +9 -0
  395. package/antx/sender/useSpeech.d.ts +16 -0
  396. package/antx/theme/components.d.ts +8 -0
  397. package/antx/theme/cssinjs-utils.d.ts +14 -0
  398. package/antx/theme/genStyleUtils.d.ts +27 -0
  399. package/antx/theme/index.d.ts +2 -0
  400. package/antx/theme/patch-antd.d.ts +28 -0
  401. package/antx/theme/useToken.d.ts +19 -0
  402. package/antx/transition-collapse/TransitionCollapse.vue.d.ts +17 -0
  403. package/antx/transition-collapse/index.d.ts +6 -0
  404. package/antx/transition-collapse/style/index.d.ts +6 -0
  405. package/antx/type-utility.d.ts +1 -0
  406. package/antx/use-x-agent/index.d.ts +4 -0
  407. package/antx/use-x-agent/use-x-agent.d.ts +34 -0
  408. package/antx/use-x-chat/index.d.ts +4 -0
  409. package/antx/use-x-chat/use-x-chat.d.ts +54 -0
  410. package/antx/use-x-chat/useSyncState.d.ts +4 -0
  411. package/antx/version/index.d.ts +2 -0
  412. package/antx/x-provider/context.d.ts +84 -0
  413. package/antx/x-provider/hooks/use-x-provider-context.d.ts +9 -0
  414. package/antx/x-provider/index.d.ts +5 -0
  415. package/antx/x-provider/index.vue.d.ts +13 -0
  416. package/antx/x-request/index.d.ts +6 -0
  417. package/antx/x-request/x-fetch.d.ts +18 -0
  418. package/antx/x-request/x-request.d.ts +89 -0
  419. package/antx/x-stream/index.d.ts +4 -0
  420. package/antx/x-stream/x-stream.d.ts +32 -0
  421. package/components/agent-chat-provider/index.cjs +1 -1
  422. package/components/agent-chat-provider/index.mjs +1 -3
  423. package/components/agent-chat-provider/src/index.vue.d.ts +3 -3
  424. package/components/agent-chat-provider/src/types.d.ts +1 -1
  425. package/components/agent-chat-provider/src/use.d.ts +2 -2
  426. package/components/avatar/index.mjs +2 -2
  427. package/components/avatar/src/index.vue.d.ts +2 -121
  428. package/components/broadcasting-markdown/index.cjs +3 -3
  429. package/components/broadcasting-markdown/index.mjs +2 -5
  430. package/components/broadcasting-markdown/src/ctx.d.ts +2 -2
  431. package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +6 -6
  432. package/components/broadcasting-markdown/src/index.vue.d.ts +33 -33
  433. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +1 -1
  434. package/components/broadcasting-markdown/src/use.d.ts +1 -1
  435. package/components/bubble-list/index.cjs +1 -1
  436. package/components/bubble-list/index.mjs +5 -5
  437. package/components/bubble-list/src/core/index.vue.d.ts +7 -7
  438. package/components/bubble-list/src/ctx.d.ts +2 -2
  439. package/components/bubble-list/src/index.vue.d.ts +5 -4
  440. package/components/bubble-templates/index.mjs +2 -2
  441. package/components/chat-independent/index.mjs +4 -4
  442. package/components/chat-independent/src/index.vue.d.ts +1 -1
  443. package/components/components.css +1 -1
  444. package/components/drawer/index.mjs +1 -1
  445. package/components/drawer/src/ctx.d.ts +37 -31
  446. package/components/drawer/src/index.vue.d.ts +87 -77
  447. package/components/file-viewer/index.cjs +1 -0
  448. package/components/file-viewer/index.d.ts +4 -0
  449. package/components/file-viewer/index.mjs +130 -0
  450. package/components/file-viewer/src/ctx.d.ts +69 -0
  451. package/components/file-viewer/src/index.vue.d.ts +108 -0
  452. package/components/file-viewer/src/types.d.ts +3 -0
  453. package/components/lottie-animation/index.mjs +2 -2
  454. package/components/lottie-animation/src/index.vue.d.ts +1 -1
  455. package/components/metahuman-broadcasting/index.mjs +2 -2
  456. package/components/metahuman-broadcasting/src/ctx.d.ts +2 -2
  457. package/components/metahuman-broadcasting/src/index.vue.d.ts +4 -4
  458. package/components/monaco-editor/index.cjs +1 -1
  459. package/components/monaco-editor/index.mjs +52 -48
  460. package/components/monaco-editor/src/ctx.d.ts +3 -3
  461. package/components/monaco-editor/src/index.vue.d.ts +5 -5
  462. package/components/pixi-frame/index.cjs +1 -1
  463. package/components/pixi-frame/index.mjs +25 -25
  464. package/components/pixi-frame/src/apng.vue.d.ts +10 -10
  465. package/components/pixi-frame/src/bitmap-generator.vue.d.ts +7 -7
  466. package/components/pixi-frame/src/bitmap.vue.d.ts +12 -12
  467. package/components/pixi-frame/src/buffer-image.vue.d.ts +13 -13
  468. package/components/pixi-frame/src/core.vue.d.ts +12 -12
  469. package/components/pixi-frame/src/ctx.d.ts +5 -5
  470. package/components/pixi-frame/src/index.vue.d.ts +81 -81
  471. package/components/pixi-frame/src/video.vue.d.ts +10 -10
  472. package/components/recorder-button/index.cjs +1 -1
  473. package/components/recorder-button/index.mjs +75 -75
  474. package/components/recorder-button/src/ctx.d.ts +3 -3
  475. package/components/recorder-button/src/index.vue.d.ts +114 -197
  476. package/components/routes-menu-content/index.cjs +1 -1
  477. package/components/routes-menu-content/index.mjs +12 -12
  478. package/components/routes-menu-content/src/ctx.d.ts +1 -1
  479. package/components/routes-menu-content/src/index.vue.d.ts +58 -99
  480. package/components/routes-menu-content/src/item/core/ctx.d.ts +1 -1
  481. package/components/routes-menu-content/src/item/core/index.vue.d.ts +40 -81
  482. package/components/routes-menu-content/src/item/index.vue.d.ts +56 -97
  483. package/components/scrollbar/index.mjs +4 -4
  484. package/components/scrollbar/src/index.vue.d.ts +35 -34
  485. package/components/scrollbar/src/util.d.ts +1 -1
  486. package/components/sender/index.cjs +1 -1
  487. package/components/sender/index.mjs +7 -7
  488. package/components/sender/src/SenderHeader.vue.d.ts +2 -2
  489. package/components/sender/src/ctx.d.ts +9 -9
  490. package/components/sender/src/index.vue.d.ts +28 -28
  491. package/components/speech-button/index.cjs +1 -1
  492. package/components/speech-button/index.mjs +1 -1
  493. package/components/speech-button/src/ctx.d.ts +1 -1
  494. package/components/speech-button/src/index.vue.d.ts +3 -3
  495. package/components/table-columns/src/ctx.d.ts +2 -2
  496. package/components/table-columns/src/el-ctx.d.ts +2 -2
  497. package/components/table-columns/src/index.vue.d.ts +6 -6
  498. package/components/table-columns/src/types.d.ts +3 -4
  499. package/components/tables-v1/index.cjs +1 -1
  500. package/components/tables-v1/index.mjs +3 -3
  501. package/components/tables-v1/src/ctx.d.ts +69 -74
  502. package/components/tables-v1/src/el-ctx.d.ts +24 -24
  503. package/components/tables-v1/src/index.vue.d.ts +54 -313
  504. package/components/tables-v1-checkbox/index.cjs +31 -35
  505. package/components/tables-v1-checkbox/index.mjs +1239 -1042
  506. package/components/tables-v1-checkbox/src/ctx.d.ts +68 -73
  507. package/components/tables-v1-checkbox/src/index.vue.d.ts +274 -542
  508. package/components/text/index.mjs +3 -3
  509. package/components/text/src/ctx.d.ts +39 -246
  510. package/components/text/src/index.vue.d.ts +98 -509
  511. package/components/thinking/index.mjs +5 -5
  512. package/components/thinking/src/ctx.d.ts +3 -3
  513. package/components/thinking/src/index.vue.d.ts +8 -8
  514. package/components/typing-markdown/index.mjs +2 -2
  515. package/components/typing-markdown/src/ctx.d.ts +3 -3
  516. package/components/typing-markdown/src/index.vue.d.ts +6 -6
  517. package/components/vditor/index.cjs +1 -1
  518. package/components/vditor/index.mjs +2 -2
  519. package/components/vditor/src/ctx.d.ts +2 -2
  520. package/components/vditor/src/handle-fullscreen.vue.d.ts +3 -3
  521. package/components/vditor/src/handle-value.vue.d.ts +3 -3
  522. package/components/vditor/src/index.vue.d.ts +10 -10
  523. package/components/xgplayer/index.mjs +5 -5
  524. package/composables/recorder/index.cjs +1 -1
  525. package/composables/recorder/index.mjs +3214 -3099
  526. package/element/bubble/index.cjs +2 -2
  527. package/element/bubble/index.mjs +57 -57
  528. package/element/index.css +1 -1
  529. package/element/thinking/index.cjs +1 -1
  530. package/element/thinking/index.mjs +63 -69
  531. package/icons/end/index.cjs +1 -1
  532. package/icons/end/index.mjs +3 -3
  533. package/icons/keyboard/index.cjs +1 -1
  534. package/icons/keyboard/index.mjs +3 -3
  535. package/icons/start/index.cjs +1 -1
  536. package/icons/start/index.mjs +3 -3
  537. package/icons/voice/index.cjs +1 -1
  538. package/icons/voice/index.mjs +3 -3
  539. package/index.css +2 -2
  540. package/package.json +16 -1
@@ -0,0 +1,5 @@
1
+ import type { TokenType } from '../../cssinjs';
2
+ import type { GetDefaultToken } from './genStyleUtils';
3
+ import type { GlobalToken, TokenMap, TokenMapKey } from '../interface';
4
+ declare function getDefaultComponentToken<CompTokenMap extends TokenMap, AliasToken extends TokenType, C extends TokenMapKey<CompTokenMap>>(component: C, token: GlobalToken<CompTokenMap, AliasToken>, getDefaultToken: GetDefaultToken<CompTokenMap, AliasToken, C>): any;
5
+ export default getDefaultComponentToken;
@@ -0,0 +1,8 @@
1
+ declare function genMaxMin(type: 'css' | 'js'): {
2
+ max: (...values: number[]) => number;
3
+ min: (...values: number[]) => number;
4
+ } | {
5
+ max: (...args: (string | number)[]) => string;
6
+ min: (...args: (string | number)[]) => string;
7
+ };
8
+ export default genMaxMin;
@@ -0,0 +1,20 @@
1
+ import type { TokenMap } from '../interface';
2
+ /**
3
+ * This function will do as `Object.assign` in production. But will use Object.defineProperty:get to
4
+ * pass all value access in development. To support statistic field usage with alias token.
5
+ */
6
+ export declare function merge<CompTokenMap extends TokenMap>(...objs: Partial<CompTokenMap>[]): CompTokenMap;
7
+ /** @internal Internal Usage. Not use in your production. */
8
+ export declare const statistic: Record<string, {
9
+ global: string[];
10
+ component: Record<string, string | number>;
11
+ }>;
12
+ /** @internal Internal Usage. Not use in your production. */
13
+ export declare const _statistic_build_: typeof statistic;
14
+ /** Statistic token usage case. Should use `merge` function if you do not want spread record. */
15
+ declare const statisticToken: <CompTokenMap extends TokenMap>(token: CompTokenMap) => {
16
+ token: CompTokenMap;
17
+ keys: Set<string>;
18
+ flush: (componentName: string, componentToken: Record<string, string | number>) => void;
19
+ };
20
+ export default statisticToken;
@@ -0,0 +1,5 @@
1
+ export default function getScrollBarSize(fresh?: boolean): number;
2
+ export declare function getTargetScrollBarSize(target: HTMLElement): {
3
+ width: number;
4
+ height: number;
5
+ };
@@ -0,0 +1,2 @@
1
+ declare function get(entity: any, path: (string | number | symbol)[] | readonly (string | number | symbol)[]): any;
2
+ export default get;
@@ -0,0 +1 @@
1
+ export declare function useEventCallback<T>(handler?: (value: T) => void): (value: T) => void;
@@ -0,0 +1,2 @@
1
+ import type { Ref } from 'vue';
2
+ export default function useState<T, R = Ref<T>>(defaultStateValue?: T | (() => T)): [R, (val: T) => void];
@@ -0,0 +1,4 @@
1
+ import type { XComponentStyleConfig, XComponentsConfig } from '../../x-provider/context';
2
+ import { Ref } from 'vue';
3
+ declare const useXComponentConfig: <C extends keyof XComponentsConfig>(component: C) => Ref<Required<XComponentsConfig>[C] & XComponentStyleConfig>;
4
+ export default useXComponentConfig;
@@ -0,0 +1,7 @@
1
+ import type { Ref, UnwrapRef } from 'vue';
2
+ export default function useMergedState<T, R = Ref<T>>(defaultStateValue: T | (() => T), option?: {
3
+ defaultValue?: T | (() => T);
4
+ value?: Ref<T> | Ref<UnwrapRef<T>>;
5
+ onChange?: (val: T, prevValue: T) => void;
6
+ postState?: (val: T) => T;
7
+ }): [R, (val: T) => void];
@@ -0,0 +1,3 @@
1
+ import type { CSSMotionProps } from './transition';
2
+ declare const initCollapseMotion: (rootCls?: string) => CSSMotionProps;
3
+ export default initCollapseMotion;
@@ -0,0 +1,11 @@
1
+ export interface PickConfig {
2
+ aria?: boolean;
3
+ data?: boolean;
4
+ attr?: boolean;
5
+ }
6
+ /**
7
+ * Picker props from exist props with filter
8
+ * @param props Passed props
9
+ * @param ariaOnly boolean | { aria?: boolean; data?: boolean; attr?: boolean; } filter config
10
+ */
11
+ export default function pickAttrs(props: object, ariaOnly?: boolean | PickConfig): {};
@@ -0,0 +1,12 @@
1
+ import type { CSSProperties } from 'vue';
2
+ /**
3
+ * Easy to set element style, return previous style
4
+ * IE browser compatible(IE browser doesn't merge overflow style, need to set it separately)
5
+ * https://github.com/ant-design/ant-design/issues/19393
6
+ *
7
+ */
8
+ export interface SetStyleOptions {
9
+ element?: HTMLElement;
10
+ }
11
+ declare function setStyle(style: CSSProperties, options?: SetStyleOptions): CSSProperties;
12
+ export default setStyle;
@@ -0,0 +1,29 @@
1
+ import type { BaseTransitionProps, CSSProperties, Ref, TransitionGroupProps, TransitionProps } from 'vue';
2
+ declare const SelectPlacements: ["bottomLeft", "bottomRight", "topLeft", "topRight"];
3
+ export type SelectCommonPlacement = (typeof SelectPlacements)[number];
4
+ declare const getTransitionDirection: (placement: SelectCommonPlacement | undefined) => "slide-up" | "slide-down";
5
+ export declare const getTransitionProps: (transitionName: string, opt?: TransitionProps) => TransitionProps;
6
+ export declare const getTransitionGroupProps: (transitionName: string, opt?: TransitionProps) => TransitionGroupProps;
7
+ export declare type MotionEvent = (TransitionEvent | AnimationEvent) & {
8
+ deadline?: boolean;
9
+ };
10
+ export declare type MotionEventHandler = (element: Element, done?: () => void) => CSSProperties;
11
+ export declare type MotionEndEventHandler = (element: Element, done?: MotionEvent) => boolean | void;
12
+ export interface CSSMotionProps extends Partial<BaseTransitionProps<Element>> {
13
+ name?: string;
14
+ css?: boolean;
15
+ motionName?: string;
16
+ motionDeadline?: number;
17
+ onAppearStart?: MotionEventHandler;
18
+ onEnterStart?: MotionEventHandler;
19
+ onAppearActive?: MotionEventHandler;
20
+ onEnterActive?: MotionEventHandler;
21
+ onLeaveStart?: MotionEventHandler;
22
+ onLeaveActive?: MotionEventHandler;
23
+ onAppearEnd?: MotionEndEventHandler;
24
+ onEnterEnd?: MotionEndEventHandler;
25
+ onLeaveEnd?: MotionEndEventHandler;
26
+ }
27
+ declare const collapseMotion: (name: string, style: Ref<CSSProperties>, className: Ref<string>) => CSSMotionProps;
28
+ declare const getTransitionName: (rootPrefixCls: string, motion: string, transitionName?: string) => string;
29
+ export { collapseMotion, getTransitionName, getTransitionDirection };
@@ -0,0 +1,62 @@
1
+ import type { PropType, Plugin, Ref, VNode, SlotsType } from 'vue';
2
+ export declare const tuple: <T extends string[]>(...args: T) => T;
3
+ export declare const tupleNum: <T extends number[]>(...args: T) => T;
4
+ /**
5
+ * https://stackoverflow.com/a/59187769
6
+ * Extract the type of an element of an array/tuple without performing indexing
7
+ */
8
+ export type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never;
9
+ /**
10
+ * https://github.com/Microsoft/TypeScript/issues/29729
11
+ */
12
+ export type LiteralUnion<T extends string> = T | (string & {});
13
+ export type Data = Record<string, unknown>;
14
+ export type Key = string | number;
15
+ type DefaultFactory<T> = (props: Data) => T | null | undefined;
16
+ export interface PropOptions<T = any, D = T> {
17
+ type?: PropType<T> | true | null;
18
+ required?: boolean;
19
+ default?: D | DefaultFactory<D> | null | undefined | object;
20
+ validator?(value: unknown): boolean;
21
+ }
22
+ declare type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void;
23
+ export type VueNode = VNodeChildAtom | VNodeChildAtom[] | VNode;
24
+ export declare const withInstall: <T>(comp: T) => T & Plugin;
25
+ export type MaybeRef<T> = T | Ref<T>;
26
+ export declare function eventType<T>(): {
27
+ type: PropType<T | T[]>;
28
+ };
29
+ export declare function objectType<T = {}>(defaultVal?: T): {
30
+ type: PropType<T>;
31
+ default: T;
32
+ };
33
+ export declare function booleanType(defaultVal?: boolean): {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ export declare function functionType<T = () => {}>(defaultVal?: T): {
38
+ type: PropType<T>;
39
+ default: T;
40
+ };
41
+ export declare function anyType<T = any>(defaultVal?: T, required?: boolean): {
42
+ default: T;
43
+ type: PropType<T>;
44
+ };
45
+ export declare function vNodeType<T = VueNode>(): {
46
+ type: PropType<T>;
47
+ };
48
+ export declare function arrayType<T extends any[]>(defaultVal?: T): {
49
+ type: PropType<T>;
50
+ default: T;
51
+ };
52
+ export declare function stringType<T extends string = string>(defaultVal?: T): {
53
+ type: PropType<T>;
54
+ default: T;
55
+ };
56
+ export declare function someType<T>(types?: any[], defaultVal?: T): {
57
+ type: PropType<T>;
58
+ default: T;
59
+ };
60
+ export type CustomSlotsType<T> = SlotsType<T>;
61
+ export type AnyObject = Record<PropertyKey, any>;
62
+ export {};
@@ -0,0 +1,47 @@
1
+ import { ComputedRef } from 'vue';
2
+ export declare function noop(): void;
3
+ export declare function resetWarned(): void;
4
+ type Warning = (valid: boolean, component: string, message?: string) => void;
5
+ declare let warning: Warning;
6
+ type BaseTypeWarning = (valid: boolean,
7
+ /**
8
+ * - deprecated: Some API will be removed in future but still support now.
9
+ * - usage: Some API usage is not correct.
10
+ * - breaking: Breaking change like API is removed.
11
+ */
12
+ type: 'deprecated' | 'usage' | 'breaking', message?: string) => void;
13
+ type TypeWarning = BaseTypeWarning & {
14
+ deprecated: (valid: boolean, oldProp: string, newProp: string, message?: string) => void;
15
+ };
16
+ export interface WarningContextProps {
17
+ /**
18
+ * @descCN 设置警告等级,设置 `false` 时会将废弃相关信息聚合为单条信息。
19
+ * @descEN Set the warning level. When set to `false`, discard related information will be aggregated into a single message.
20
+ */
21
+ strict?: boolean;
22
+ }
23
+ export declare const globalWarningContextApi: import("vue").ShallowRef<WarningContextProps, WarningContextProps>;
24
+ export declare const useWarningContextProvider: (value: ComputedRef<WarningContextProps>) => void;
25
+ export declare const useWarningContextInject: () => ComputedRef<WarningContextProps>;
26
+ export declare const WarningContextProvider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
27
+ value: {
28
+ type: import("vue").PropType<WarningContextProps>;
29
+ default: WarningContextProps;
30
+ };
31
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
32
+ [key: string]: any;
33
+ }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
+ value: {
35
+ type: import("vue").PropType<WarningContextProps>;
36
+ default: WarningContextProps;
37
+ };
38
+ }>> & Readonly<{}>, {
39
+ value: WarningContextProps;
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
41
+ /**
42
+ * This is a hook but we not named as `useWarning`
43
+ * since this is only used in development.
44
+ * We should always wrap this in `if (process.env.NODE_ENV !== 'production')` condition
45
+ */
46
+ export declare const devUseWarning: (component: string) => TypeWarning;
47
+ export default warning;
@@ -0,0 +1,16 @@
1
+ import { type VNode } from 'vue';
2
+ import type { AttachmentsProps, AttachmentsRef } from './interface';
3
+ type __VLS_Slots = {
4
+ placeholder?(props?: {
5
+ type: 'inline' | 'drop';
6
+ }): VNode | string;
7
+ };
8
+ declare const __VLS_base: import("vue").DefineComponent<AttachmentsProps, AttachmentsRef, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AttachmentsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -0,0 +1,4 @@
1
+ import type { DropUploaderProps } from './interface';
2
+ declare const __VLS_export: import("vue").DefineComponent<DropUploaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DropUploaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import type { FileListProps } from '../interface';
2
+ declare const __VLS_export: import("vue").DefineComponent<FileListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FileListProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import type { FileListCardProps } from '../interface';
2
+ declare const __VLS_export: import("vue").DefineComponent<FileListCardProps, {
3
+ nativeElement: Readonly<import("vue").ShallowRef<HTMLDivElement>>;
4
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FileListCardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -0,0 +1,103 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<Partial<import("vue").ExtractPropTypes<{
2
+ prefixCls: StringConstructor;
3
+ type: {
4
+ type: import("vue").PropType<"circle" | "line" | "dashboard">;
5
+ default: "circle" | "line" | "dashboard";
6
+ };
7
+ percent: NumberConstructor;
8
+ format: {
9
+ type: import("vue").PropType<(percent?: number, successPercent?: number) => import("@vunk/plus/ant/_util/type").VueNode>;
10
+ default: (percent?: number, successPercent?: number) => import("@vunk/plus/ant/_util/type").VueNode;
11
+ };
12
+ status: {
13
+ type: import("vue").PropType<"normal" | "active" | "success" | "exception">;
14
+ default: "normal" | "active" | "success" | "exception";
15
+ };
16
+ showInfo: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ strokeWidth: NumberConstructor;
21
+ strokeLinecap: {
22
+ type: import("vue").PropType<"round" | "butt" | "square">;
23
+ default: "round" | "butt" | "square";
24
+ };
25
+ strokeColor: {
26
+ default: string | string[] | import("@vunk/plus/ant/progress/props").ProgressGradient;
27
+ type: import("vue").PropType<string | string[] | import("@vunk/plus/ant/progress/props").ProgressGradient>;
28
+ };
29
+ trailColor: StringConstructor;
30
+ width: NumberConstructor;
31
+ success: {
32
+ type: import("vue").PropType<import("@vunk/plus/ant/progress/props").SuccessProps>;
33
+ default: import("@vunk/plus/ant/progress/props").SuccessProps;
34
+ };
35
+ gapDegree: NumberConstructor;
36
+ gapPosition: {
37
+ type: import("vue").PropType<"left" | "right" | "bottom" | "top">;
38
+ default: "left" | "right" | "bottom" | "top";
39
+ };
40
+ size: {
41
+ type: import("vue").PropType<import("@vunk/plus/ant/progress/props").ProgressSize>;
42
+ default: import("@vunk/plus/ant/progress/props").ProgressSize;
43
+ };
44
+ steps: NumberConstructor;
45
+ successPercent: NumberConstructor;
46
+ title: StringConstructor;
47
+ progressStatus: {
48
+ type: import("vue").PropType<"normal" | "active" | "success" | "exception">;
49
+ default: "normal" | "active" | "success" | "exception";
50
+ };
51
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Partial<import("vue").ExtractPropTypes<{
52
+ prefixCls: StringConstructor;
53
+ type: {
54
+ type: import("vue").PropType<"circle" | "line" | "dashboard">;
55
+ default: "circle" | "line" | "dashboard";
56
+ };
57
+ percent: NumberConstructor;
58
+ format: {
59
+ type: import("vue").PropType<(percent?: number, successPercent?: number) => import("@vunk/plus/ant/_util/type").VueNode>;
60
+ default: (percent?: number, successPercent?: number) => import("@vunk/plus/ant/_util/type").VueNode;
61
+ };
62
+ status: {
63
+ type: import("vue").PropType<"normal" | "active" | "success" | "exception">;
64
+ default: "normal" | "active" | "success" | "exception";
65
+ };
66
+ showInfo: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ strokeWidth: NumberConstructor;
71
+ strokeLinecap: {
72
+ type: import("vue").PropType<"round" | "butt" | "square">;
73
+ default: "round" | "butt" | "square";
74
+ };
75
+ strokeColor: {
76
+ default: string | string[] | import("@vunk/plus/ant/progress/props").ProgressGradient;
77
+ type: import("vue").PropType<string | string[] | import("@vunk/plus/ant/progress/props").ProgressGradient>;
78
+ };
79
+ trailColor: StringConstructor;
80
+ width: NumberConstructor;
81
+ success: {
82
+ type: import("vue").PropType<import("@vunk/plus/ant/progress/props").SuccessProps>;
83
+ default: import("@vunk/plus/ant/progress/props").SuccessProps;
84
+ };
85
+ gapDegree: NumberConstructor;
86
+ gapPosition: {
87
+ type: import("vue").PropType<"left" | "right" | "bottom" | "top">;
88
+ default: "left" | "right" | "bottom" | "top";
89
+ };
90
+ size: {
91
+ type: import("vue").PropType<import("@vunk/plus/ant/progress/props").ProgressSize>;
92
+ default: import("@vunk/plus/ant/progress/props").ProgressSize;
93
+ };
94
+ steps: NumberConstructor;
95
+ successPercent: NumberConstructor;
96
+ title: StringConstructor;
97
+ progressStatus: {
98
+ type: import("vue").PropType<"normal" | "active" | "success" | "exception">;
99
+ default: "normal" | "active" | "success" | "exception";
100
+ };
101
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
102
+ declare const _default: typeof __VLS_export;
103
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import FileList from './FileList.vue';
2
+ import FileListCard from './FileListCard.vue';
3
+ export { FileList, FileListCard };
@@ -0,0 +1,6 @@
1
+ import type { PlaceholderProps } from './interface';
2
+ declare const __VLS_export: import("vue").DefineComponent<PlaceholderProps, {
3
+ nativeElement: import("vue").ComputedRef<HTMLElement>;
4
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PlaceholderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import type { SilentUploaderProps } from './interface';
2
+ declare const __VLS_export: import("vue").DefineComponent<SilentUploaderProps, {
3
+ nativeElement: import("vue").ComputedRef<HTMLElement>;
4
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SilentUploaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -0,0 +1,9 @@
1
+ export declare const IMG_EXTS: Set<string>;
2
+ export declare const AUDIO_EXTS: Set<string>;
3
+ export declare const VIDEO_EXTS: Set<string>;
4
+ export declare const MARKDOWN_EXTS: Set<string>;
5
+ export declare const ZIP_EXTS: Set<string>;
6
+ export declare const EXCEL_EXTS: Set<string>;
7
+ export declare const PPT_EXTS: Set<string>;
8
+ export declare const WORD_EXTS: Set<string>;
9
+ export declare const PDF_EXTS: Set<string>;
@@ -0,0 +1,21 @@
1
+ import { ComputedRef } from "vue";
2
+ import { AttachmentContextProps } from "./interface";
3
+ export declare const globalAttachmentContextApi: import("vue").ShallowRef<AttachmentContextProps, AttachmentContextProps>;
4
+ export declare const useAttachmentContextProvider: (value: ComputedRef<AttachmentContextProps>) => void;
5
+ export declare const useAttachmentContextInject: () => ComputedRef<AttachmentContextProps>;
6
+ export declare const AttachmentContextProvider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
+ value: {
8
+ type: import("vue").PropType<AttachmentContextProps>;
9
+ default: AttachmentContextProps;
10
+ };
11
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
12
+ [key: string]: any;
13
+ }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
14
+ value: {
15
+ type: import("vue").PropType<AttachmentContextProps>;
16
+ default: AttachmentContextProps;
17
+ };
18
+ }>> & Readonly<{}>, {
19
+ value: AttachmentContextProps;
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
+ export default AttachmentContextProvider;
@@ -0,0 +1,26 @@
1
+ export type { Attachment, AttachmentsProps, AttachmentsRef } from './interface';
2
+ declare const Attachments: {
3
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./interface").AttachmentsProps> & Readonly<{}>, import("./interface").AttachmentsRef, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
4
+ P: {};
5
+ B: {};
6
+ D: {};
7
+ C: {};
8
+ M: {};
9
+ Defaults: {};
10
+ }, Readonly<import("./interface").AttachmentsProps> & Readonly<{}>, import("./interface").AttachmentsRef, {}, {}, {}, {}>;
11
+ __isFragment?: never;
12
+ __isTeleport?: never;
13
+ __isSuspense?: never;
14
+ } & import("vue").ComponentOptionsBase<Readonly<import("./interface").AttachmentsProps> & Readonly<{}>, import("./interface").AttachmentsRef, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
15
+ $slots: {
16
+ placeholder?(props?: {
17
+ type: "inline" | "drop";
18
+ }): import("vue").VNode | string;
19
+ };
20
+ }) & {
21
+ FileCard: import("vue").DefineComponent<import("./interface").FileListCardProps, {
22
+ nativeElement: Readonly<import("vue").ShallowRef<HTMLDivElement>>;
23
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./interface").FileListCardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ };
25
+ export default Attachments;
26
+ export { Attachments, };
@@ -0,0 +1,130 @@
1
+ import type { ImageProps, UploadChangeParam, UploadFile, UploadProps } from "@vunk/plus/ant";
2
+ import type { CSSProperties, VNode } from "vue";
3
+ export interface AttachmentContextProps {
4
+ disabled?: boolean;
5
+ }
6
+ export interface DropUploaderProps {
7
+ prefixCls: string;
8
+ className: string;
9
+ getDropContainer?: null | (() => HTMLElement | null | undefined);
10
+ children?: VNode;
11
+ }
12
+ export interface SilentUploaderProps {
13
+ children: VNode;
14
+ upload: UploadProps;
15
+ rootClassName?: string;
16
+ }
17
+ export interface PlaceholderConfig {
18
+ icon?: VNode;
19
+ title?: VNode | string;
20
+ description?: VNode | string;
21
+ }
22
+ export type PlaceholderType = PlaceholderConfig | VNode | string;
23
+ export interface PlaceholderProps {
24
+ prefixCls: string;
25
+ placeholder?: PlaceholderType;
26
+ upload?: UploadProps;
27
+ className?: string;
28
+ style?: CSSProperties;
29
+ }
30
+ export type SemanticType = 'list' | 'item' | 'placeholder' | 'upload';
31
+ export interface FileListProps {
32
+ prefixCls: string;
33
+ items: Attachment[];
34
+ onRemove: (item: Attachment) => void;
35
+ overflow?: 'scrollX' | 'scrollY' | 'wrap';
36
+ upload: UploadProps;
37
+ imageProps?: ImageProps;
38
+ listClassName?: string;
39
+ listStyle?: CSSProperties;
40
+ itemClassName?: string;
41
+ itemStyle?: CSSProperties;
42
+ uploadClassName?: string;
43
+ uploadStyle?: CSSProperties;
44
+ }
45
+ export interface FileListCardProps {
46
+ prefixCls?: string;
47
+ item: Attachment;
48
+ onRemove?: (item: Attachment) => void;
49
+ className?: string;
50
+ style?: CSSProperties;
51
+ imageProps?: ImageProps;
52
+ icon?: VNode | PresetIcons;
53
+ type?: 'file' | 'image';
54
+ }
55
+ export interface ProgressProps {
56
+ prefixCls: string;
57
+ percent: number;
58
+ }
59
+ export type Attachment = UploadProps['fileList'][number] & {
60
+ description?: VNode | string;
61
+ };
62
+ export interface AntdUploadProps {
63
+ capture?: UploadProps['capture'];
64
+ type?: UploadProps['type'];
65
+ name?: UploadProps['name'];
66
+ defaultFileList?: UploadProps['defaultFileList'];
67
+ /** @deprecated remove this prop */
68
+ action?: UploadProps['action'];
69
+ directory?: UploadProps['directory'];
70
+ data?: UploadProps['data'];
71
+ method?: UploadProps['method'];
72
+ headers?: UploadProps['headers'];
73
+ showUploadList?: UploadProps['showUploadList'];
74
+ multiple?: UploadProps['multiple'];
75
+ accept?: UploadProps['accept'];
76
+ beforeUpload?: UploadProps['beforeUpload'];
77
+ onChange?: UploadProps['onChange'];
78
+ 'onUpdate:fileList'?: UploadProps['onUpdate:fileList'];
79
+ onDrop?: UploadProps['onDrop'];
80
+ listType?: UploadProps['listType'];
81
+ onPreview?: UploadProps['onPreview'];
82
+ onDownload?: UploadProps['onDownload'];
83
+ onReject?: UploadProps['onReject'];
84
+ onRemove?: UploadProps['onRemove'];
85
+ /** @deprecated Please use `onRemove` directly */
86
+ remove?: UploadProps['remove'];
87
+ supportServerRender?: UploadProps['supportServerRender'];
88
+ disabled?: UploadProps['disabled'];
89
+ prefixCls?: UploadProps['prefixCls'];
90
+ customRequest?: UploadProps['customRequest'];
91
+ withCredentials?: UploadProps['withCredentials'];
92
+ openFileDialogOnClick?: UploadProps['openFileDialogOnClick'];
93
+ locale?: UploadProps['locale'];
94
+ id?: UploadProps['id'];
95
+ previewFile?: UploadProps['previewFile'];
96
+ /** @deprecated Please use `beforeUpload` directly */
97
+ transformFile?: UploadProps['transformFile'];
98
+ iconRender?: UploadProps['iconRender'];
99
+ isImageUrl?: UploadProps['isImageUrl'];
100
+ progress?: UploadProps['progress'];
101
+ itemRender?: UploadProps['itemRender'];
102
+ /** Config max count of `fileList`. Will replace current one when `maxCount` is 1 */
103
+ maxCount?: UploadProps['maxCount'];
104
+ height?: UploadProps['height'];
105
+ removeIcon?: UploadProps['removeIcon'];
106
+ downloadIcon?: UploadProps['downloadIcon'];
107
+ previewIcon?: UploadProps['previewIcon'];
108
+ }
109
+ export interface AttachmentsProps extends AntdUploadProps {
110
+ prefixCls?: string;
111
+ rootClassName?: string;
112
+ rootStyle?: CSSProperties;
113
+ style?: CSSProperties;
114
+ className?: string;
115
+ classNames?: Partial<Record<SemanticType, string>>;
116
+ styles?: Partial<Record<SemanticType, CSSProperties>>;
117
+ children?: VNode;
118
+ disabled?: boolean;
119
+ placeholder?: PlaceholderType | ((type: 'inline' | 'drop') => PlaceholderType);
120
+ getDropContainer?: null | (() => HTMLElement | null | undefined);
121
+ items?: Attachment[];
122
+ overflow?: FileListProps['overflow'];
123
+ imageProps?: FileListProps['imageProps'];
124
+ onChange?: (info: UploadChangeParam<UploadFile>) => void;
125
+ }
126
+ export interface AttachmentsRef {
127
+ nativeElement: HTMLDivElement | null;
128
+ upload: (file: File | File[] | FileList) => void;
129
+ }
130
+ export type PresetIcons = 'default' | 'excel' | 'image' | 'markdown' | 'pdf' | 'ppt' | 'word' | 'zip' | 'video' | 'audio';
@@ -0,0 +1,4 @@
1
+ import type { AttachmentsToken } from '.';
2
+ import type { GenerateStyle } from '../../theme/cssinjs-utils';
3
+ declare const genFileCardStyle: GenerateStyle<AttachmentsToken>;
4
+ export default genFileCardStyle;
@@ -0,0 +1,9 @@
1
+ import type { FullToken, GetDefaultToken } from '../../theme/cssinjs-utils';
2
+ export interface ComponentToken {
3
+ colorBgPlaceholderHover: string;
4
+ }
5
+ export interface AttachmentsToken extends FullToken<'Attachments'> {
6
+ }
7
+ export declare const prepareComponentToken: GetDefaultToken<'Attachments'>;
8
+ declare const _default: (prefixCls: import("vue").MaybeRefOrGetter<string>, rootCls?: string) => readonly [(node: import("vue").VNode) => import("vue").VNode, import("vue").Ref<string, string>, string];
9
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export declare const isImageFileType: (type: string) => boolean;
2
+ export declare function previewImage(file: File | Blob): Promise<string>;
3
+ export declare function matchExt(suffix: string, ext: Set<string>): boolean;
@@ -0,0 +1,4 @@
1
+ export { Sender } from './sender';
2
+ export type { SenderProps } from './sender';
3
+ export { Attachments } from './attachments';
4
+ export type { Attachment, AttachmentsProps, AttachmentsRef } from './attachments';