ant-design-x-vue 1.1.1 → 1.2.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 (518) hide show
  1. package/dist/index.umd.js +19 -198
  2. package/es/_util/cssinjs/Cache.mjs +16 -0
  3. package/es/_util/cssinjs/Keyframes.mjs +11 -0
  4. package/es/_util/cssinjs/StyleContext.mjs +116 -0
  5. package/es/_util/cssinjs/hooks/useCSSVarRegister.mjs +47 -0
  6. package/es/_util/cssinjs/hooks/useCacheToken.mjs +9 -0
  7. package/es/_util/cssinjs/hooks/useCacheToken.tsx2.mjs +76 -0
  8. package/es/_util/cssinjs/hooks/useGlobalCache.mjs +27 -0
  9. package/es/_util/cssinjs/hooks/useHMR.mjs +7 -0
  10. package/es/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.mjs +51 -0
  11. package/es/_util/cssinjs/hooks/useStyleRegister/index.mjs +17 -0
  12. package/es/_util/cssinjs/hooks/useStyleRegister/index.tsx2.mjs +541 -0
  13. package/es/_util/cssinjs/index.mjs +59 -0
  14. package/es/_util/cssinjs/linters/contentQuotesLinter.mjs +13 -0
  15. package/es/_util/cssinjs/linters/hashedAnimationLinter.mjs +10 -0
  16. package/es/_util/cssinjs/linters/index.mjs +12 -0
  17. package/es/_util/cssinjs/linters/interface.mjs +1 -0
  18. package/es/_util/cssinjs/linters/legacyNotSelectorLinter.mjs +15 -0
  19. package/es/_util/cssinjs/linters/logicalPropertiesLinter.mjs +61 -0
  20. package/es/_util/cssinjs/linters/parentSelectorLinter.mjs +7 -0
  21. package/es/_util/cssinjs/linters/utils.mjs +11 -0
  22. package/es/_util/cssinjs/theme/Theme.mjs +18 -0
  23. package/es/_util/cssinjs/theme/ThemeCache.mjs +72 -0
  24. package/es/_util/cssinjs/theme/createTheme.mjs +10 -0
  25. package/es/_util/cssinjs/theme/index.mjs +8 -0
  26. package/es/_util/cssinjs/theme/interface.mjs +1 -0
  27. package/es/_util/cssinjs/transformers/interface.mjs +1 -0
  28. package/es/_util/cssinjs/transformers/legacyLogicalProperties.mjs +92 -0
  29. package/es/_util/cssinjs/transformers/px2rem.mjs +31 -0
  30. package/es/_util/cssinjs/util.mjs +102 -0
  31. package/es/_util/cssinjs-utils/_util/hooks/useUniqueMemo.mjs +55 -0
  32. package/es/_util/cssinjs-utils/hooks/useCSP.mjs +4 -0
  33. package/es/_util/cssinjs-utils/hooks/usePrefix.mjs +1 -0
  34. package/es/_util/cssinjs-utils/hooks/useToken.mjs +1 -0
  35. package/es/_util/cssinjs-utils/index.mjs +10 -0
  36. package/es/_util/cssinjs-utils/interface/components.mjs +1 -0
  37. package/es/_util/cssinjs-utils/interface/index.mjs +1 -0
  38. package/es/_util/cssinjs-utils/util/calc/CSSCalculator.mjs +35 -0
  39. package/es/_util/cssinjs-utils/util/calc/NumCalculator.mjs +24 -0
  40. package/es/_util/cssinjs-utils/util/calc/calculator.mjs +5 -0
  41. package/es/_util/cssinjs-utils/util/calc/index.mjs +9 -0
  42. package/es/_util/cssinjs-utils/util/genStyleUtils.mjs +188 -0
  43. package/es/_util/cssinjs-utils/util/getCompVarPrefix.mjs +7 -0
  44. package/es/_util/cssinjs-utils/util/getComponentToken.mjs +18 -0
  45. package/es/_util/cssinjs-utils/util/getDefaultComponentToken.mjs +9 -0
  46. package/es/_util/cssinjs-utils/util/maxmin.mjs +15 -0
  47. package/es/_util/cssinjs-utils/util/statistic.mjs +45 -0
  48. package/es/_util/getScrollBarSize.mjs +33 -0
  49. package/es/_util/getValue.mjs +11 -0
  50. package/es/_util/hooks/use-event-callback.mjs +10 -0
  51. package/es/_util/hooks/use-state.mjs +11 -0
  52. package/es/_util/hooks/use-x-component-config.mjs +17 -0
  53. package/es/_util/hooks/useMergedState.mjs +21 -0
  54. package/es/_util/motion.mjs +23 -0
  55. package/es/_util/pick-attrs.mjs +43 -0
  56. package/es/_util/setStyle.mjs +11 -0
  57. package/es/_util/supportsPassive.mjs +14 -0
  58. package/es/_util/transition.mjs +75 -0
  59. package/es/_util/type.mjs +48 -0
  60. package/es/_util/warning.mjs +45 -0
  61. package/es/attachments/Attachments.mjs +4 -0
  62. package/es/attachments/Attachments2.mjs +255 -0
  63. package/es/attachments/DropArea.mjs +58 -0
  64. package/es/attachments/FileList/AudioIcon.mjs +5 -0
  65. package/es/attachments/FileList/AudioIcon2.mjs +35 -0
  66. package/es/attachments/FileList/FileList.mjs +4 -0
  67. package/es/attachments/FileList/FileList2.mjs +1574 -0
  68. package/es/attachments/FileList/FileListCard.mjs +168 -0
  69. package/es/attachments/FileList/Progress.mjs +49 -0
  70. package/es/attachments/FileList/VideoIcon.mjs +30 -0
  71. package/es/attachments/FileList/index.mjs +6 -0
  72. package/es/attachments/PlaceholderUploader.mjs +79 -0
  73. package/es/attachments/SilentUploader.mjs +27 -0
  74. package/es/attachments/context.mjs +32 -0
  75. package/es/attachments/index.mjs +12 -0
  76. package/es/attachments/interface.mjs +1 -0
  77. package/es/attachments/style/fileCard.mjs +157 -0
  78. package/es/attachments/style/index.mjs +584 -0
  79. package/es/attachments/util.mjs +31 -0
  80. package/es/bubble/Bubble.mjs +126 -0
  81. package/es/bubble/BubbleList.mjs +136 -0
  82. package/es/bubble/context.mjs +31 -0
  83. package/es/bubble/hooks/useDisplayData.mjs +36 -0
  84. package/es/bubble/hooks/useListData.mjs +18 -0
  85. package/es/bubble/hooks/useTypedEffect.mjs +24 -0
  86. package/es/bubble/hooks/useTypingConfig.mjs +24 -0
  87. package/es/bubble/index.mjs +10 -0
  88. package/es/bubble/interface.mjs +1 -0
  89. package/es/bubble/loading.mjs +25 -0
  90. package/es/bubble/style/content.mjs +59 -0
  91. package/es/bubble/style/index.mjs +148 -0
  92. package/es/bubble/style/list.mjs +14 -0
  93. package/es/conversations/Conversations.mjs +105 -0
  94. package/es/conversations/ConversationsItem.mjs +89 -0
  95. package/es/conversations/GroupTitle.mjs +22 -0
  96. package/es/conversations/context.mjs +31 -0
  97. package/es/conversations/hooks/useGroupable.mjs +48 -0
  98. package/es/conversations/index.mjs +5 -0
  99. package/es/conversations/interface.mjs +1 -0
  100. package/es/conversations/style/index.mjs +103 -0
  101. package/es/index.mjs +38 -0
  102. package/es/prompts/Prompts.mjs +116 -0
  103. package/es/prompts/index.mjs +5 -0
  104. package/es/prompts/interface.mjs +1 -0
  105. package/es/prompts/style/index.mjs +143 -0
  106. package/es/sender/Sender.mjs +251 -0
  107. package/es/sender/SenderHeader.mjs +82 -0
  108. package/es/sender/StopLoading.mjs +52 -0
  109. package/es/sender/components/ActionButton/context.mjs +31 -0
  110. package/es/sender/components/ActionButton/index.mjs +65 -0
  111. package/es/sender/components/ClearButton.mjs +41 -0
  112. package/es/sender/components/LoadingButton.mjs +58 -0
  113. package/es/sender/components/SendButton.mjs +45 -0
  114. package/es/sender/components/SpeechButton/RecordingIcon.mjs +49 -0
  115. package/es/sender/components/SpeechButton/index.mjs +59 -0
  116. package/es/sender/context.mjs +31 -0
  117. package/es/sender/index.mjs +9 -0
  118. package/es/sender/interface.mjs +1 -0
  119. package/es/sender/style/header.mjs +49 -0
  120. package/es/sender/style/index.mjs +147 -0
  121. package/es/sender/useSpeech.mjs +55 -0
  122. package/es/suggestion/Suggestion.mjs +93 -0
  123. package/es/suggestion/index.mjs +5 -0
  124. package/es/suggestion/interface.mjs +1 -0
  125. package/es/suggestion/style/index.mjs +41 -0
  126. package/es/suggestion/useActive.mjs +56 -0
  127. package/es/theme/components.mjs +1 -0
  128. package/es/theme/cssinjs-utils.mjs +1 -0
  129. package/es/theme/genStyleUtils.mjs +32 -0
  130. package/es/theme/index.mjs +4 -0
  131. package/es/theme/patch-antd.mjs +33 -0
  132. package/es/theme/useToken.mjs +351 -0
  133. package/es/thought-chain/ThoughtChain.mjs +107 -0
  134. package/es/thought-chain/context.mjs +31 -0
  135. package/es/thought-chain/hooks/useCollapsible.mjs +36 -0
  136. package/es/thought-chain/index.mjs +5 -0
  137. package/es/thought-chain/interface.mjs +4 -0
  138. package/es/thought-chain/item.mjs +96 -0
  139. package/es/thought-chain/style/index.mjs +215 -0
  140. package/es/transition-collapse/TransitionCollapse.mjs +49 -0
  141. package/es/transition-collapse/index.mjs +10 -0
  142. package/es/transition-collapse/style/index.mjs +22 -0
  143. package/es/type-utility.mjs +1 -0
  144. package/es/use-x-agent/index.mjs +7 -0
  145. package/es/use-x-agent/use-x-agent.mjs +49 -0
  146. package/es/use-x-chat/index.mjs +5 -0
  147. package/es/use-x-chat/use-x-chat.mjs +97 -0
  148. package/es/use-x-chat/useSyncState.mjs +12 -0
  149. package/es/vc-util/Dom/addEventListener.mjs +15 -0
  150. package/es/vc-util/Dom/canUseDom.mjs +6 -0
  151. package/es/vc-util/Dom/class.mjs +19 -0
  152. package/es/vc-util/Dom/contains.mjs +6 -0
  153. package/es/vc-util/Dom/css.mjs +86 -0
  154. package/es/vc-util/Dom/dynamicCSS.mjs +70 -0
  155. package/es/vc-util/Dom/isVisible.mjs +20 -0
  156. package/es/vc-util/Dom/scrollLocker.mjs +66 -0
  157. package/es/vc-util/devWarning.mjs +9 -0
  158. package/es/vc-util/get.mjs +12 -0
  159. package/es/vc-util/isEqual.mjs +32 -0
  160. package/es/vc-util/isMobile.mjs +13 -0
  161. package/es/vc-util/set.mjs +14 -0
  162. package/es/vc-util/warning.mjs +26 -0
  163. package/es/version/index.mjs +4 -0
  164. package/es/version/token-meta.mjs +7 -0
  165. package/es/version/token.mjs +21 -0
  166. package/es/version/version.mjs +4 -0
  167. package/es/welcome/Welcome.mjs +91 -0
  168. package/es/welcome/index.mjs +5 -0
  169. package/es/welcome/interface.mjs +1 -0
  170. package/es/welcome/style/index.mjs +69 -0
  171. package/es/x-provider/context.mjs +31 -0
  172. package/es/x-provider/hooks/use-x-provider-context.mjs +21 -0
  173. package/es/x-provider/index.mjs +8 -0
  174. package/es/x-provider/index2.mjs +81 -0
  175. package/es/x-request/index.mjs +7 -0
  176. package/es/x-request/x-fetch.mjs +22 -0
  177. package/es/x-request/x-request.mjs +83 -0
  178. package/es/x-stream/index.mjs +5 -0
  179. package/es/x-stream/x-stream.mjs +64 -0
  180. package/lib/_util/cssinjs/Cache.js +1 -0
  181. package/lib/_util/cssinjs/Keyframes.js +1 -0
  182. package/lib/_util/cssinjs/StyleContext.js +1 -0
  183. package/lib/_util/cssinjs/hooks/useCSSVarRegister.js +1 -0
  184. package/lib/_util/cssinjs/hooks/useCacheToken.js +1 -0
  185. package/lib/_util/cssinjs/hooks/useCacheToken.tsx2.js +1 -0
  186. package/lib/_util/cssinjs/hooks/useGlobalCache.js +1 -0
  187. package/lib/_util/cssinjs/hooks/useHMR.js +1 -0
  188. package/lib/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.js +1 -0
  189. package/lib/_util/cssinjs/hooks/useStyleRegister/index.js +1 -0
  190. package/lib/_util/cssinjs/hooks/useStyleRegister/index.tsx2.js +2 -0
  191. package/lib/_util/cssinjs/index.js +1 -0
  192. package/lib/_util/cssinjs/linters/contentQuotesLinter.js +1 -0
  193. package/lib/_util/cssinjs/linters/hashedAnimationLinter.js +1 -0
  194. package/lib/_util/cssinjs/linters/index.js +1 -0
  195. package/lib/_util/cssinjs/linters/interface.js +1 -0
  196. package/lib/_util/cssinjs/linters/legacyNotSelectorLinter.js +1 -0
  197. package/lib/_util/cssinjs/linters/logicalPropertiesLinter.js +1 -0
  198. package/lib/_util/cssinjs/linters/parentSelectorLinter.js +1 -0
  199. package/lib/_util/cssinjs/linters/utils.js +1 -0
  200. package/lib/_util/cssinjs/theme/Theme.js +1 -0
  201. package/lib/_util/cssinjs/theme/ThemeCache.js +1 -0
  202. package/lib/_util/cssinjs/theme/createTheme.js +1 -0
  203. package/lib/_util/cssinjs/theme/index.js +1 -0
  204. package/lib/_util/cssinjs/theme/interface.js +1 -0
  205. package/lib/_util/cssinjs/transformers/interface.js +1 -0
  206. package/lib/_util/cssinjs/transformers/legacyLogicalProperties.js +1 -0
  207. package/lib/_util/cssinjs/transformers/px2rem.js +1 -0
  208. package/lib/_util/cssinjs/util.js +1 -0
  209. package/lib/_util/cssinjs-utils/_util/hooks/useUniqueMemo.js +1 -0
  210. package/lib/_util/cssinjs-utils/hooks/useCSP.js +1 -0
  211. package/lib/_util/cssinjs-utils/hooks/usePrefix.js +1 -0
  212. package/lib/_util/cssinjs-utils/hooks/useToken.js +1 -0
  213. package/lib/_util/cssinjs-utils/index.js +1 -0
  214. package/lib/_util/cssinjs-utils/interface/components.js +1 -0
  215. package/lib/_util/cssinjs-utils/interface/index.js +1 -0
  216. package/lib/_util/cssinjs-utils/util/calc/CSSCalculator.js +1 -0
  217. package/lib/_util/cssinjs-utils/util/calc/NumCalculator.js +1 -0
  218. package/lib/_util/cssinjs-utils/util/calc/calculator.js +1 -0
  219. package/lib/_util/cssinjs-utils/util/calc/index.js +1 -0
  220. package/lib/_util/cssinjs-utils/util/genStyleUtils.js +1 -0
  221. package/lib/_util/cssinjs-utils/util/getCompVarPrefix.js +1 -0
  222. package/lib/_util/cssinjs-utils/util/getComponentToken.js +1 -0
  223. package/lib/_util/cssinjs-utils/util/getDefaultComponentToken.js +1 -0
  224. package/lib/_util/cssinjs-utils/util/maxmin.js +1 -0
  225. package/lib/_util/cssinjs-utils/util/statistic.js +1 -0
  226. package/lib/_util/getScrollBarSize.js +1 -0
  227. package/lib/_util/getValue.js +1 -0
  228. package/lib/_util/hooks/use-event-callback.js +1 -0
  229. package/lib/_util/hooks/use-state.js +1 -0
  230. package/lib/_util/hooks/use-x-component-config.js +1 -0
  231. package/lib/_util/hooks/useMergedState.js +1 -0
  232. package/lib/_util/motion.js +1 -0
  233. package/lib/_util/pick-attrs.js +18 -0
  234. package/lib/_util/setStyle.js +1 -0
  235. package/lib/_util/supportsPassive.js +1 -0
  236. package/lib/_util/transition.js +1 -0
  237. package/lib/_util/type.js +1 -0
  238. package/lib/_util/warning.js +1 -0
  239. package/lib/attachments/Attachments.js +1 -0
  240. package/lib/attachments/Attachments2.js +5 -0
  241. package/lib/attachments/DropArea.js +1 -0
  242. package/lib/attachments/FileList/AudioIcon.js +1 -0
  243. package/lib/attachments/FileList/AudioIcon2.js +1 -0
  244. package/lib/attachments/FileList/FileList.js +1 -0
  245. package/lib/attachments/FileList/FileList2.js +57 -0
  246. package/lib/attachments/FileList/FileListCard.js +1 -0
  247. package/lib/attachments/FileList/Progress.js +1 -0
  248. package/lib/attachments/FileList/VideoIcon.js +1 -0
  249. package/lib/attachments/FileList/index.js +1 -0
  250. package/lib/attachments/PlaceholderUploader.js +1 -0
  251. package/lib/attachments/SilentUploader.js +1 -0
  252. package/lib/attachments/context.js +1 -0
  253. package/lib/attachments/index.js +1 -0
  254. package/lib/attachments/interface.js +1 -0
  255. package/lib/attachments/style/fileCard.js +1 -0
  256. package/lib/attachments/style/index.js +1 -0
  257. package/lib/attachments/util.js +1 -0
  258. package/lib/bubble/Bubble.js +1 -0
  259. package/lib/bubble/BubbleList.js +1 -0
  260. package/lib/bubble/context.js +1 -0
  261. package/lib/bubble/hooks/useDisplayData.js +1 -0
  262. package/lib/bubble/hooks/useListData.js +1 -0
  263. package/lib/bubble/hooks/useTypedEffect.js +1 -0
  264. package/lib/bubble/hooks/useTypingConfig.js +1 -0
  265. package/lib/bubble/index.js +1 -0
  266. package/lib/bubble/interface.js +1 -0
  267. package/lib/bubble/loading.js +1 -0
  268. package/lib/bubble/style/content.js +1 -0
  269. package/lib/bubble/style/index.js +1 -0
  270. package/lib/bubble/style/list.js +1 -0
  271. package/lib/conversations/Conversations.js +1 -0
  272. package/lib/conversations/ConversationsItem.js +1 -0
  273. package/lib/conversations/GroupTitle.js +1 -0
  274. package/lib/conversations/context.js +1 -0
  275. package/lib/conversations/hooks/useGroupable.js +1 -0
  276. package/lib/conversations/index.js +1 -0
  277. package/lib/conversations/interface.js +1 -0
  278. package/lib/conversations/style/index.js +1 -0
  279. package/lib/index.js +1 -0
  280. package/lib/prompts/Prompts.js +1 -0
  281. package/lib/prompts/index.js +1 -0
  282. package/lib/prompts/interface.js +1 -0
  283. package/lib/prompts/style/index.js +1 -0
  284. package/lib/sender/Sender.js +1 -0
  285. package/lib/sender/SenderHeader.js +1 -0
  286. package/lib/sender/StopLoading.js +1 -0
  287. package/lib/sender/components/ActionButton/context.js +1 -0
  288. package/lib/sender/components/ActionButton/index.js +1 -0
  289. package/lib/sender/components/ClearButton.js +1 -0
  290. package/lib/sender/components/LoadingButton.js +1 -0
  291. package/lib/sender/components/SendButton.js +1 -0
  292. package/lib/sender/components/SpeechButton/RecordingIcon.js +1 -0
  293. package/lib/sender/components/SpeechButton/index.js +1 -0
  294. package/lib/sender/context.js +1 -0
  295. package/lib/sender/index.js +1 -0
  296. package/lib/sender/interface.js +1 -0
  297. package/lib/sender/style/header.js +1 -0
  298. package/lib/sender/style/index.js +1 -0
  299. package/lib/sender/useSpeech.js +1 -0
  300. package/lib/suggestion/Suggestion.js +1 -0
  301. package/lib/suggestion/index.js +1 -0
  302. package/lib/suggestion/interface.js +1 -0
  303. package/lib/suggestion/style/index.js +1 -0
  304. package/lib/suggestion/useActive.js +1 -0
  305. package/lib/theme/components.js +1 -0
  306. package/lib/theme/cssinjs-utils.js +1 -0
  307. package/lib/theme/genStyleUtils.js +1 -0
  308. package/lib/theme/index.js +1 -0
  309. package/lib/theme/patch-antd.js +1 -0
  310. package/lib/theme/useToken.js +35 -0
  311. package/lib/thought-chain/ThoughtChain.js +1 -0
  312. package/lib/thought-chain/context.js +1 -0
  313. package/lib/thought-chain/hooks/useCollapsible.js +1 -0
  314. package/lib/thought-chain/index.js +1 -0
  315. package/lib/thought-chain/interface.js +1 -0
  316. package/lib/thought-chain/item.js +1 -0
  317. package/lib/thought-chain/style/index.js +1 -0
  318. package/lib/transition-collapse/TransitionCollapse.js +1 -0
  319. package/lib/transition-collapse/index.js +1 -0
  320. package/lib/transition-collapse/style/index.js +1 -0
  321. package/lib/type-utility.js +1 -0
  322. package/lib/use-x-agent/index.js +1 -0
  323. package/lib/use-x-agent/use-x-agent.js +1 -0
  324. package/lib/use-x-chat/index.js +1 -0
  325. package/lib/use-x-chat/use-x-chat.js +1 -0
  326. package/lib/use-x-chat/useSyncState.js +1 -0
  327. package/lib/vc-util/Dom/addEventListener.js +1 -0
  328. package/lib/vc-util/Dom/canUseDom.js +1 -0
  329. package/lib/vc-util/Dom/class.js +1 -0
  330. package/lib/vc-util/Dom/contains.js +1 -0
  331. package/lib/vc-util/Dom/css.js +1 -0
  332. package/lib/vc-util/Dom/dynamicCSS.js +1 -0
  333. package/lib/vc-util/Dom/isVisible.js +1 -0
  334. package/lib/vc-util/Dom/scrollLocker.js +1 -0
  335. package/lib/vc-util/devWarning.js +1 -0
  336. package/lib/vc-util/get.js +1 -0
  337. package/lib/vc-util/isEqual.js +1 -0
  338. package/lib/vc-util/isMobile.js +1 -0
  339. package/lib/vc-util/set.js +1 -0
  340. package/lib/vc-util/warning.js +1 -0
  341. package/lib/version/index.js +1 -0
  342. package/lib/version/token-meta.js +1 -0
  343. package/lib/version/token.js +1 -0
  344. package/lib/version/version.js +1 -0
  345. package/lib/welcome/Welcome.js +1 -0
  346. package/lib/welcome/index.js +1 -0
  347. package/lib/welcome/interface.js +1 -0
  348. package/lib/welcome/style/index.js +1 -0
  349. package/lib/x-provider/context.js +1 -0
  350. package/lib/x-provider/hooks/use-x-provider-context.js +1 -0
  351. package/lib/x-provider/index.js +1 -0
  352. package/lib/x-provider/index2.js +1 -0
  353. package/lib/x-request/index.js +1 -0
  354. package/lib/x-request/x-fetch.js +1 -0
  355. package/lib/x-request/x-request.js +1 -0
  356. package/lib/x-stream/index.js +1 -0
  357. package/lib/x-stream/x-stream.js +4 -0
  358. package/package.json +21 -13
  359. package/typings/bubble/Bubble.vue.d.ts +37 -0
  360. package/typings/bubble/index.d.ts +258 -0
  361. package/{dist/typings → typings}/bubble/interface.d.ts +6 -4
  362. package/{dist/typings → typings}/conversations/interface.d.ts +2 -1
  363. package/{dist/typings → typings}/sender/interface.d.ts +1 -1
  364. package/{dist/typings → typings}/x-provider/context.d.ts +9 -9
  365. package/dist/index.mjs +0 -34154
  366. package/dist/typings/bubble/Bubble.vue.d.ts +0 -35
  367. package/dist/typings/bubble/index.d.ts +0 -51
  368. /package/{dist/resolver → resolver-dist}/index.d.ts +0 -0
  369. /package/{dist/resolver → resolver-dist}/index.js +0 -0
  370. /package/{dist/typings → typings}/_util/cssinjs/Cache.d.ts +0 -0
  371. /package/{dist/typings → typings}/_util/cssinjs/Keyframes.d.ts +0 -0
  372. /package/{dist/typings → typings}/_util/cssinjs/StyleContext.d.ts +0 -0
  373. /package/{dist/typings → typings}/_util/cssinjs/hooks/useCSSVarRegister.d.ts +0 -0
  374. /package/{dist/typings → typings}/_util/cssinjs/hooks/useCacheToken.d.ts +0 -0
  375. /package/{dist/typings → typings}/_util/cssinjs/hooks/useGlobalCache.d.ts +0 -0
  376. /package/{dist/typings → typings}/_util/cssinjs/hooks/useHMR.d.ts +0 -0
  377. /package/{dist/typings → typings}/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.d.ts +0 -0
  378. /package/{dist/typings → typings}/_util/cssinjs/hooks/useStyleRegister/index.d.ts +0 -0
  379. /package/{dist/typings → typings}/_util/cssinjs/index.d.ts +0 -0
  380. /package/{dist/typings → typings}/_util/cssinjs/linters/contentQuotesLinter.d.ts +0 -0
  381. /package/{dist/typings → typings}/_util/cssinjs/linters/hashedAnimationLinter.d.ts +0 -0
  382. /package/{dist/typings → typings}/_util/cssinjs/linters/index.d.ts +0 -0
  383. /package/{dist/typings → typings}/_util/cssinjs/linters/interface.d.ts +0 -0
  384. /package/{dist/typings → typings}/_util/cssinjs/linters/legacyNotSelectorLinter.d.ts +0 -0
  385. /package/{dist/typings → typings}/_util/cssinjs/linters/logicalPropertiesLinter.d.ts +0 -0
  386. /package/{dist/typings → typings}/_util/cssinjs/linters/parentSelectorLinter.d.ts +0 -0
  387. /package/{dist/typings → typings}/_util/cssinjs/linters/utils.d.ts +0 -0
  388. /package/{dist/typings → typings}/_util/cssinjs/theme/Theme.d.ts +0 -0
  389. /package/{dist/typings → typings}/_util/cssinjs/theme/ThemeCache.d.ts +0 -0
  390. /package/{dist/typings → typings}/_util/cssinjs/theme/createTheme.d.ts +0 -0
  391. /package/{dist/typings → typings}/_util/cssinjs/theme/index.d.ts +0 -0
  392. /package/{dist/typings → typings}/_util/cssinjs/theme/interface.d.ts +0 -0
  393. /package/{dist/typings → typings}/_util/cssinjs/transformers/interface.d.ts +0 -0
  394. /package/{dist/typings → typings}/_util/cssinjs/transformers/legacyLogicalProperties.d.ts +0 -0
  395. /package/{dist/typings → typings}/_util/cssinjs/transformers/px2rem.d.ts +0 -0
  396. /package/{dist/typings → typings}/_util/cssinjs/util.d.ts +0 -0
  397. /package/{dist/typings → typings}/_util/cssinjs-utils/_util/hooks/useUniqueMemo.d.ts +0 -0
  398. /package/{dist/typings → typings}/_util/cssinjs-utils/hooks/useCSP.d.ts +0 -0
  399. /package/{dist/typings → typings}/_util/cssinjs-utils/hooks/usePrefix.d.ts +0 -0
  400. /package/{dist/typings → typings}/_util/cssinjs-utils/hooks/useToken.d.ts +0 -0
  401. /package/{dist/typings → typings}/_util/cssinjs-utils/index.d.ts +0 -0
  402. /package/{dist/typings → typings}/_util/cssinjs-utils/interface/components.d.ts +0 -0
  403. /package/{dist/typings → typings}/_util/cssinjs-utils/interface/index.d.ts +0 -0
  404. /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/CSSCalculator.d.ts +0 -0
  405. /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/NumCalculator.d.ts +0 -0
  406. /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/calculator.d.ts +0 -0
  407. /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/index.d.ts +0 -0
  408. /package/{dist/typings → typings}/_util/cssinjs-utils/util/genStyleUtils.d.ts +0 -0
  409. /package/{dist/typings → typings}/_util/cssinjs-utils/util/getCompVarPrefix.d.ts +0 -0
  410. /package/{dist/typings → typings}/_util/cssinjs-utils/util/getComponentToken.d.ts +0 -0
  411. /package/{dist/typings → typings}/_util/cssinjs-utils/util/getDefaultComponentToken.d.ts +0 -0
  412. /package/{dist/typings → typings}/_util/cssinjs-utils/util/maxmin.d.ts +0 -0
  413. /package/{dist/typings → typings}/_util/cssinjs-utils/util/statistic.d.ts +0 -0
  414. /package/{dist/typings → typings}/_util/getValue.d.ts +0 -0
  415. /package/{dist/typings → typings}/_util/hooks/use-event-callback.d.ts +0 -0
  416. /package/{dist/typings → typings}/_util/hooks/use-state.d.ts +0 -0
  417. /package/{dist/typings → typings}/_util/hooks/use-x-component-config.d.ts +0 -0
  418. /package/{dist/typings → typings}/_util/hooks/useMergedState.d.ts +0 -0
  419. /package/{dist/typings → typings}/_util/pick-attrs.d.ts +0 -0
  420. /package/{dist/typings → typings}/_util/type.d.ts +0 -0
  421. /package/{dist/typings → typings}/_util/warning.d.ts +0 -0
  422. /package/{dist/typings → typings}/attachments/Attachments.vue.d.ts +0 -0
  423. /package/{dist/typings → typings}/attachments/DropArea.vue.d.ts +0 -0
  424. /package/{dist/typings → typings}/attachments/FileList/AudioIcon.vue.d.ts +0 -0
  425. /package/{dist/typings → typings}/attachments/FileList/FileList.vue.d.ts +0 -0
  426. /package/{dist/typings → typings}/attachments/FileList/FileListCard.vue.d.ts +0 -0
  427. /package/{dist/typings → typings}/attachments/FileList/VideoIcon.vue.d.ts +0 -0
  428. /package/{dist/typings → typings}/attachments/FileList/index.d.ts +0 -0
  429. /package/{dist/typings → typings}/attachments/PlaceholderUploader.vue.d.ts +0 -0
  430. /package/{dist/typings → typings}/attachments/SilentUploader.vue.d.ts +0 -0
  431. /package/{dist/typings → typings}/attachments/context.d.ts +0 -0
  432. /package/{dist/typings → typings}/attachments/index.d.ts +0 -0
  433. /package/{dist/typings → typings}/attachments/interface.d.ts +0 -0
  434. /package/{dist/typings → typings}/attachments/style/fileCard.d.ts +0 -0
  435. /package/{dist/typings → typings}/attachments/style/index.d.ts +0 -0
  436. /package/{dist/typings → typings}/attachments/util.d.ts +0 -0
  437. /package/{dist/typings → typings}/bubble/BubbleList.vue.d.ts +0 -0
  438. /package/{dist/typings → typings}/bubble/context.d.ts +0 -0
  439. /package/{dist/typings → typings}/bubble/hooks/useDisplayData.d.ts +0 -0
  440. /package/{dist/typings → typings}/bubble/hooks/useListData.d.ts +0 -0
  441. /package/{dist/typings → typings}/bubble/hooks/useTypedEffect.d.ts +0 -0
  442. /package/{dist/typings → typings}/bubble/hooks/useTypingConfig.d.ts +0 -0
  443. /package/{dist/typings → typings}/bubble/loading.vue.d.ts +0 -0
  444. /package/{dist/typings → typings}/bubble/style/content.d.ts +0 -0
  445. /package/{dist/typings → typings}/bubble/style/index.d.ts +0 -0
  446. /package/{dist/typings → typings}/bubble/style/list.d.ts +0 -0
  447. /package/{dist/typings → typings}/conversations/Conversations.vue.d.ts +0 -0
  448. /package/{dist/typings → typings}/conversations/ConversationsItem.vue.d.ts +0 -0
  449. /package/{dist/typings → typings}/conversations/GroupTitle.vue.d.ts +0 -0
  450. /package/{dist/typings → typings}/conversations/context.d.ts +0 -0
  451. /package/{dist/typings → typings}/conversations/hooks/useGroupable.d.ts +0 -0
  452. /package/{dist/typings → typings}/conversations/index.d.ts +0 -0
  453. /package/{dist/typings → typings}/conversations/style/index.d.ts +0 -0
  454. /package/{dist/typings → typings}/index.d.ts +0 -0
  455. /package/{dist/typings → typings}/prompts/Prompts.vue.d.ts +0 -0
  456. /package/{dist/typings → typings}/prompts/index.d.ts +0 -0
  457. /package/{dist/typings → typings}/prompts/interface.d.ts +0 -0
  458. /package/{dist/typings → typings}/prompts/style/index.d.ts +0 -0
  459. /package/{dist/typings → typings}/sender/Sender.vue.d.ts +0 -0
  460. /package/{dist/typings → typings}/sender/SenderHeader.vue.d.ts +0 -0
  461. /package/{dist/typings → typings}/sender/StopLoading.vue.d.ts +0 -0
  462. /package/{dist/typings → typings}/sender/components/ActionButton/context.d.ts +0 -0
  463. /package/{dist/typings → typings}/sender/components/ActionButton/index.vue.d.ts +0 -0
  464. /package/{dist/typings → typings}/sender/components/ClearButton.vue.d.ts +0 -0
  465. /package/{dist/typings → typings}/sender/components/LoadingButton.vue.d.ts +0 -0
  466. /package/{dist/typings → typings}/sender/components/SendButton.vue.d.ts +0 -0
  467. /package/{dist/typings → typings}/sender/components/SpeechButton/RecordingIcon.vue.d.ts +0 -0
  468. /package/{dist/typings → typings}/sender/components/SpeechButton/index.vue.d.ts +0 -0
  469. /package/{dist/typings → typings}/sender/context.d.ts +0 -0
  470. /package/{dist/typings → typings}/sender/index.d.ts +0 -0
  471. /package/{dist/typings → typings}/sender/style/header.d.ts +0 -0
  472. /package/{dist/typings → typings}/sender/style/index.d.ts +0 -0
  473. /package/{dist/typings → typings}/sender/useSpeech.d.ts +0 -0
  474. /package/{dist/typings → typings}/suggestion/Suggestion.vue.d.ts +0 -0
  475. /package/{dist/typings → typings}/suggestion/index.d.ts +0 -0
  476. /package/{dist/typings → typings}/suggestion/interface.d.ts +0 -0
  477. /package/{dist/typings → typings}/suggestion/style/index.d.ts +0 -0
  478. /package/{dist/typings → typings}/suggestion/useActive.d.ts +0 -0
  479. /package/{dist/typings → typings}/theme/components.d.ts +0 -0
  480. /package/{dist/typings → typings}/theme/cssinjs-utils.d.ts +0 -0
  481. /package/{dist/typings → typings}/theme/genStyleUtils.d.ts +0 -0
  482. /package/{dist/typings → typings}/theme/index.d.ts +0 -0
  483. /package/{dist/typings → typings}/theme/patch-antd.d.ts +0 -0
  484. /package/{dist/typings → typings}/theme/useToken.d.ts +0 -0
  485. /package/{dist/typings → typings}/thought-chain/ThoughtChain.vue.d.ts +0 -0
  486. /package/{dist/typings → typings}/thought-chain/context.d.ts +0 -0
  487. /package/{dist/typings → typings}/thought-chain/hooks/useCollapsible.d.ts +0 -0
  488. /package/{dist/typings → typings}/thought-chain/index.d.ts +0 -0
  489. /package/{dist/typings → typings}/thought-chain/interface.d.ts +0 -0
  490. /package/{dist/typings → typings}/thought-chain/item.vue.d.ts +0 -0
  491. /package/{dist/typings → typings}/thought-chain/style/index.d.ts +0 -0
  492. /package/{dist/typings → typings}/transition-collapse/TransitionCollapse.vue.d.ts +0 -0
  493. /package/{dist/typings → typings}/transition-collapse/index.d.ts +0 -0
  494. /package/{dist/typings → typings}/transition-collapse/style/index.d.ts +0 -0
  495. /package/{dist/typings → typings}/type-utility.d.ts +0 -0
  496. /package/{dist/typings → typings}/use-x-agent/index.d.ts +0 -0
  497. /package/{dist/typings → typings}/use-x-agent/use-x-agent.d.ts +0 -0
  498. /package/{dist/typings → typings}/use-x-chat/index.d.ts +0 -0
  499. /package/{dist/typings → typings}/use-x-chat/use-x-chat.d.ts +0 -0
  500. /package/{dist/typings → typings}/use-x-chat/useSyncState.d.ts +0 -0
  501. /package/{dist/typings → typings}/vc-util/Dom/canUseDom.d.ts +0 -0
  502. /package/{dist/typings → typings}/vc-util/Dom/contains.d.ts +0 -0
  503. /package/{dist/typings → typings}/vc-util/Dom/dynamicCSS.d.ts +0 -0
  504. /package/{dist/typings → typings}/vc-util/warning.d.ts +0 -0
  505. /package/{dist/typings → typings}/version/index.d.ts +0 -0
  506. /package/{dist/typings → typings}/version/version.d.ts +0 -0
  507. /package/{dist/typings → typings}/welcome/Welcome.vue.d.ts +0 -0
  508. /package/{dist/typings → typings}/welcome/index.d.ts +0 -0
  509. /package/{dist/typings → typings}/welcome/interface.d.ts +0 -0
  510. /package/{dist/typings → typings}/welcome/style/index.d.ts +0 -0
  511. /package/{dist/typings → typings}/x-provider/hooks/use-x-provider-context.d.ts +0 -0
  512. /package/{dist/typings → typings}/x-provider/index.d.ts +0 -0
  513. /package/{dist/typings → typings}/x-provider/index.vue.d.ts +0 -0
  514. /package/{dist/typings → typings}/x-request/index.d.ts +0 -0
  515. /package/{dist/typings → typings}/x-request/x-fetch.d.ts +0 -0
  516. /package/{dist/typings → typings}/x-request/x-request.d.ts +0 -0
  517. /package/{dist/typings → typings}/x-stream/index.d.ts +0 -0
  518. /package/{dist/typings → typings}/x-stream/x-stream.d.ts +0 -0
@@ -0,0 +1,168 @@
1
+ import { defineComponent as N, toRef as M, createVNode as e, computed as n, useTemplateRef as V, watch as U, onWatcherCleanup as X, Fragment as S, mergeProps as G } from "vue";
2
+ import { c as W } from "../Attachments2.mjs";
3
+ import { A as D } from "./AudioIcon2.mjs";
4
+ import K from "./VideoIcon.mjs";
5
+ import { useAttachmentContextInject as Y } from "../context.mjs";
6
+ import Z from "../../x-provider/hooks/use-x-provider-context.mjs";
7
+ import "../../x-provider/context.mjs";
8
+ import { Image as q, Progress as H } from "ant-design-vue";
9
+ import { previewImage as J } from "../util.mjs";
10
+ import Q from "../style/index.mjs";
11
+ import _ from "../../_util/hooks/use-state.mjs";
12
+ import { F as ee, a as le, b as te, c as ie, d as ne, e as oe, f as ae, g as se, C as ce } from "./FileList2.mjs";
13
+ const v = " ", d = "#8c8c8c", Ie = /* @__PURE__ */ N({
14
+ name: "AXAttachmentsFileListCard",
15
+ __name: "FileListCard",
16
+ props: {
17
+ prefixCls: null,
18
+ item: null,
19
+ onRemove: {
20
+ type: Function
21
+ },
22
+ className: null,
23
+ style: null,
24
+ imageProps: null
25
+ },
26
+ setup(l, {
27
+ expose: h
28
+ }) {
29
+ M(l, "prefixCls");
30
+ const x = ["png", "jpg", "jpeg", "gif", "bmp", "webp", "svg"], P = [{
31
+ icon: e(ee, null, null),
32
+ color: "#22b35e",
33
+ ext: ["xlsx", "xls"]
34
+ }, {
35
+ icon: e(le, null, null),
36
+ color: d,
37
+ ext: x
38
+ }, {
39
+ icon: e(te, null, null),
40
+ color: d,
41
+ ext: ["md", "mdx"]
42
+ }, {
43
+ icon: e(ie, null, null),
44
+ color: "#ff4d4f",
45
+ ext: ["pdf"]
46
+ }, {
47
+ icon: e(ne, null, null),
48
+ color: "#ff6e31",
49
+ ext: ["ppt", "pptx"]
50
+ }, {
51
+ icon: e(oe, null, null),
52
+ color: "#1677ff",
53
+ ext: ["doc", "docx"]
54
+ }, {
55
+ icon: e(ae, null, null),
56
+ color: "#fab714",
57
+ ext: ["zip", "rar", "7z", "tar", "gz"]
58
+ }, {
59
+ icon: e(K, null, null),
60
+ color: "#ff4d4f",
61
+ ext: ["mp4", "avi", "mov", "wmv", "flv", "mkv"]
62
+ }, {
63
+ icon: e(D, null, null),
64
+ color: "#8c8c8c",
65
+ ext: ["mp3", "wav", "flac", "ape", "aac", "ogg"]
66
+ }];
67
+ function g(o, i) {
68
+ return i.some((s) => o.toLowerCase() === `.${s}`);
69
+ }
70
+ function b(o) {
71
+ let i = o;
72
+ const s = ["B", "KB", "MB", "GB", "TB", "PB", "EB"];
73
+ let f = 0;
74
+ for (; i >= 1024 && f < s.length - 1; )
75
+ i /= 1024, f++;
76
+ return `${i.toFixed(0)} ${s[f]}`;
77
+ }
78
+ const y = Y(), E = n(() => y.value.disabled), O = n(() => l.item.name), p = n(() => l.item.size), r = n(() => l.item.percent), a = n(() => l.item.status || "done"), F = n(() => l.item.description), {
79
+ getPrefixCls: R
80
+ } = Z(), C = n(() => R("attachment", l.prefixCls)), t = `${C.value}-list-card`, [j, z, A] = Q(C), B = V("file-list-card-container"), c = n(() => {
81
+ const o = O.value || "", i = o.match(/^(.*)\.[^.]+$/);
82
+ return {
83
+ namePrefix: i ? i[1] : o,
84
+ nameSuffix: i ? o.slice(i[1].length) : ""
85
+ };
86
+ }), T = n(() => g(c.value.nameSuffix, x)), $ = n(() => F.value ? F.value : a.value === "uploading" ? `${r.value || 0}%` : a.value === "error" ? l.item.response || v : p.value ? b(p.value) : v), I = n(() => {
87
+ for (const {
88
+ ext: o,
89
+ icon: i,
90
+ color: s
91
+ } of P)
92
+ if (g(c.value.nameSuffix, o))
93
+ return {
94
+ icon: i,
95
+ iconColor: s
96
+ };
97
+ return {
98
+ icon: e(se, {
99
+ key: "defaultIcon"
100
+ }, null),
101
+ iconColor: d
102
+ };
103
+ }), [L, w] = _();
104
+ U(() => l.item.originFileObj, () => {
105
+ if (l.item.originFileObj) {
106
+ let o = !0;
107
+ J(l.item.originFileObj).then((i) => {
108
+ o && w(i);
109
+ }), X(() => {
110
+ o = !1;
111
+ });
112
+ }
113
+ w(void 0);
114
+ }, {
115
+ immediate: !0
116
+ });
117
+ const u = n(() => l.item.thumbUrl || l.item.url || L.value), m = n(() => T.value && (l.item.originFileObj || u.value)), k = n(() => m.value ? e(S, null, [u.value && e(q, G(l.imageProps, {
118
+ alt: "preview",
119
+ src: u.value
120
+ }), null), a.value !== "done" && e("div", {
121
+ class: `${t}-img-mask`
122
+ }, [a.value === "uploading" && r.value !== void 0 && e(H, {
123
+ percent: r.value,
124
+ prefixCls: t
125
+ }, null), a.value === "error" && e("div", {
126
+ class: `${t}-desc`
127
+ }, [e("div", {
128
+ class: `${t}-ellipsis-prefix`
129
+ }, [$.value])])])]) : e(S, null, [e("div", {
130
+ class: `${t}-icon`,
131
+ style: {
132
+ color: I.value.iconColor
133
+ }
134
+ }, [I.value.icon]), e("div", {
135
+ class: `${t}-content`
136
+ }, [e("div", {
137
+ class: `${t}-name`
138
+ }, [e("div", {
139
+ class: `${t}-ellipsis-prefix`
140
+ }, [c.value.namePrefix ?? v]), e("div", {
141
+ class: `${t}-ellipsis-suffix`
142
+ }, [c.value.nameSuffix])]), e("div", {
143
+ class: `${t}-desc`
144
+ }, [e("div", {
145
+ class: `${t}-ellipsis-prefix`
146
+ }, [$.value])])])]));
147
+ return h({
148
+ nativeElement: B
149
+ }), () => j(e("div", {
150
+ class: W(t, {
151
+ [`${t}-status-${a.value}`]: a.value,
152
+ [`${t}-type-preview`]: m.value,
153
+ [`${t}-type-overview`]: !m.value
154
+ }, l.className, z.value, A),
155
+ style: l.style,
156
+ ref: "file-list-card-container"
157
+ }, [k.value, !E.value && l.onRemove && e("button", {
158
+ type: "button",
159
+ class: `${t}-remove`,
160
+ onClick: () => {
161
+ l.onRemove(l.item);
162
+ }
163
+ }, [e(ce, null, null)])]));
164
+ }
165
+ });
166
+ export {
167
+ Ie as default
168
+ };
@@ -0,0 +1,49 @@
1
+ import { defineComponent as s, createVNode as e, createTextVNode as n } from "vue";
2
+ import { theme as a, Progress as p } from "ant-design-vue";
3
+ const l = /* @__PURE__ */ s({
4
+ name: "AXAttachmentsProgress",
5
+ __name: "Progress",
6
+ props: {
7
+ prefixCls: {},
8
+ type: {},
9
+ percent: {},
10
+ format: {},
11
+ status: {},
12
+ showInfo: {
13
+ type: Boolean
14
+ },
15
+ strokeWidth: {},
16
+ strokeLinecap: {},
17
+ strokeColor: {},
18
+ trailColor: {},
19
+ width: {},
20
+ success: {},
21
+ gapDegree: {},
22
+ gapPosition: {},
23
+ size: {},
24
+ steps: {},
25
+ successPercent: {},
26
+ title: {},
27
+ progressStatus: {}
28
+ },
29
+ setup(t) {
30
+ const {
31
+ token: o
32
+ } = a.useToken();
33
+ return () => e(p, {
34
+ type: "circle",
35
+ percent: t.percent,
36
+ size: o.value.fontSizeHeading2 * 2,
37
+ strokeColor: "#FFF",
38
+ trailColor: "rgba(255, 255, 255, 0.3)",
39
+ format: (r) => e("span", {
40
+ style: {
41
+ color: "#FFF"
42
+ }
43
+ }, [(r || 0).toFixed(0), n("%")])
44
+ }, null);
45
+ }
46
+ });
47
+ export {
48
+ l as default
49
+ };
@@ -0,0 +1,30 @@
1
+ import { createElementBlock as t, openBlock as n, createElementVNode as e } from "vue";
2
+ import { _ as r } from "./AudioIcon2.mjs";
3
+ const l = {}, i = {
4
+ width: "1em",
5
+ height: "1em",
6
+ viewBox: "0 0 16 16",
7
+ version: "1.1",
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ xmlnsXlink: "http://www.w3.org/1999/xlink"
10
+ };
11
+ function s(c, o) {
12
+ return n(), t("svg", i, o[0] || (o[0] = [
13
+ e("title", null, "video", -1),
14
+ e("g", {
15
+ stroke: "none",
16
+ "stroke-width": "1",
17
+ fill: "none",
18
+ "fill-rule": "evenodd"
19
+ }, [
20
+ e("path", {
21
+ d: "M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",
22
+ fill: "currentColor"
23
+ })
24
+ ], -1)
25
+ ]));
26
+ }
27
+ const m = /* @__PURE__ */ r(l, [["render", s]]);
28
+ export {
29
+ m as default
30
+ };
@@ -0,0 +1,6 @@
1
+ import { _ as t } from "./FileList2.mjs";
2
+ import { default as i } from "./FileListCard.mjs";
3
+ export {
4
+ t as FileList,
5
+ i as FileListCard
6
+ };
@@ -0,0 +1,79 @@
1
+ import { defineComponent as y, mergeDefaults as D, computed as d, useTemplateRef as x, isVNode as c, createVNode as l, mergeProps as C } from "vue";
2
+ import { c as T } from "./Attachments2.mjs";
3
+ import { useAttachmentContextInject as $ } from "./context.mjs";
4
+ import A from "../_util/hooks/use-state.mjs";
5
+ import { Flex as b, Typography as o, Upload as N } from "ant-design-vue";
6
+ const E = /* @__PURE__ */ y({
7
+ name: "AXAttachmentsPlaceholderUploader",
8
+ __name: "PlaceholderUploader",
9
+ props: D({
10
+ prefixCls: null,
11
+ placeholder: null,
12
+ upload: null,
13
+ className: null,
14
+ style: null
15
+ }, {
16
+ placeholder: () => ({})
17
+ }),
18
+ setup(e, {
19
+ expose: i
20
+ }) {
21
+ const a = `${e.prefixCls}-placeholder`, r = d(() => e.placeholder || {}), u = x("upload-dragger"), s = $(), [p, n] = A(!1), f = () => {
22
+ n(!0);
23
+ }, m = (t) => {
24
+ t.currentTarget.contains(t.relatedTarget) || n(!1);
25
+ }, g = () => {
26
+ n(!1);
27
+ };
28
+ i({
29
+ nativeElement: u
30
+ });
31
+ const h = (t) => Array.isArray(t) && t.every(c), v = d(() => c(e.placeholder) || h(e.placeholder) ? e.placeholder : l(b, {
32
+ align: "center",
33
+ justify: "center",
34
+ vertical: !0,
35
+ class: `${a}-inner`
36
+ }, {
37
+ default: () => [l(o.Text, {
38
+ class: `${a}-icon`
39
+ }, {
40
+ default: () => [r.value.icon]
41
+ }), l(o.Title, {
42
+ class: `${a}-title`,
43
+ level: 5
44
+ }, {
45
+ default: () => [r.value.title]
46
+ }), l(o.Text, {
47
+ class: `${a}-description`,
48
+ type: "secondary"
49
+ }, {
50
+ default: () => [r.value.description]
51
+ })]
52
+ }));
53
+ return () => l("div", {
54
+ class: T(a, {
55
+ [`${a}-drag-in`]: p.value,
56
+ [`${a}-disabled`]: s.value.disabled
57
+ }, e.className),
58
+ onDragenter: f,
59
+ onDragleave: m,
60
+ onDrop: g,
61
+ "aria-hidden": s.value.disabled,
62
+ style: e.style
63
+ }, [l(N.Dragger, C({
64
+ showUploadList: !1
65
+ }, e.upload, {
66
+ ref: "upload-dragger",
67
+ style: {
68
+ padding: 0,
69
+ border: 0,
70
+ background: "transparent"
71
+ }
72
+ }), {
73
+ default: () => [v.value]
74
+ })]);
75
+ }
76
+ });
77
+ export {
78
+ E as default
79
+ };
@@ -0,0 +1,27 @@
1
+ import { defineComponent as a, useTemplateRef as t, createVNode as n, mergeProps as r } from "vue";
2
+ import { Upload as p } from "ant-design-vue";
3
+ const u = /* @__PURE__ */ a({
4
+ name: "AXAttachmentsSilentUploader",
5
+ __name: "SilentUploader",
6
+ props: {
7
+ children: null,
8
+ upload: null,
9
+ rootClassName: null
10
+ },
11
+ setup(e, {
12
+ expose: l
13
+ }) {
14
+ const o = t("upload");
15
+ return l({
16
+ nativeElement: o
17
+ }), () => n(p, r(e.upload, {
18
+ showUploadList: !1,
19
+ ref: "upload"
20
+ }), {
21
+ default: () => [e.children]
22
+ });
23
+ }
24
+ });
25
+ export {
26
+ u as default
27
+ };
@@ -0,0 +1,32 @@
1
+ import { shallowRef as c, defineComponent as m, computed as o, provide as u, watch as i, unref as p, triggerRef as d, inject as f } from "vue";
2
+ import { objectType as h } from "../_util/type.mjs";
3
+ const a = Symbol("AttachmentContext"), n = c(), A = (t) => {
4
+ u(a, t), i(
5
+ t,
6
+ () => {
7
+ n.value = p(t), d(n);
8
+ },
9
+ { immediate: !0, deep: !0 }
10
+ );
11
+ }, l = () => f(
12
+ a,
13
+ o(() => n.value || {})
14
+ ), s = m({
15
+ inheritAttrs: !1,
16
+ props: {
17
+ value: h()
18
+ },
19
+ setup(t, { slots: e }) {
20
+ return A(o(() => t.value)), () => {
21
+ var r;
22
+ return (r = e.default) == null ? void 0 : r.call(e);
23
+ };
24
+ }
25
+ });
26
+ export {
27
+ s as AttachmentContextProvider,
28
+ s as default,
29
+ n as globalAttachmentContextApi,
30
+ l as useAttachmentContextInject,
31
+ A as useAttachmentContextProvider
32
+ };
@@ -0,0 +1,12 @@
1
+ import { _ as t } from "./Attachments2.mjs";
2
+ import "vue";
3
+ import "ant-design-vue";
4
+ import "./context.mjs";
5
+ import m from "./FileList/FileListCard.mjs";
6
+ const p = Object.assign(t, {
7
+ FileCard: m
8
+ });
9
+ export {
10
+ p as Attachments,
11
+ p as default
12
+ };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,157 @@
1
+ const o = (i) => {
2
+ const { componentCls: d, antCls: t, calc: r } = i, e = `${d}-list-card`, a = r(i.fontSize).mul(i.lineHeight).mul(2).add(i.paddingSM).add(i.paddingSM).equal();
3
+ return {
4
+ [e]: {
5
+ borderRadius: i.borderRadius,
6
+ position: "relative",
7
+ background: i.colorFillContent,
8
+ borderWidth: i.lineWidth,
9
+ borderStyle: "solid",
10
+ borderColor: "transparent",
11
+ flex: "none",
12
+ // =============================== Desc ================================
13
+ [`${e}-name,${e}-desc`]: {
14
+ display: "flex",
15
+ flexWrap: "nowrap",
16
+ maxWidth: "100%"
17
+ },
18
+ [`${e}-ellipsis-prefix`]: {
19
+ flex: "0 1 auto",
20
+ minWidth: 0,
21
+ overflow: "hidden",
22
+ textOverflow: "ellipsis",
23
+ whiteSpace: "nowrap"
24
+ },
25
+ [`${e}-ellipsis-suffix`]: {
26
+ flex: "none"
27
+ },
28
+ // ============================= Overview ==============================
29
+ "&-type-overview": {
30
+ padding: r(i.paddingSM).sub(i.lineWidth).equal(),
31
+ paddingInlineStart: r(i.padding).add(i.lineWidth).equal(),
32
+ display: "flex",
33
+ flexWrap: "nowrap",
34
+ gap: i.paddingXS,
35
+ alignItems: "flex-start",
36
+ width: 236,
37
+ // Icon
38
+ [`${e}-icon`]: {
39
+ fontSize: r(i.fontSizeLG).mul(2).equal(),
40
+ lineHeight: 1,
41
+ paddingTop: r(i.paddingXXS).mul(1.5).equal(),
42
+ flex: "none"
43
+ },
44
+ // Content
45
+ [`${e}-content`]: {
46
+ flex: "auto",
47
+ minWidth: 0,
48
+ display: "flex",
49
+ flexDirection: "column",
50
+ alignItems: "stretch"
51
+ },
52
+ [`${e}-desc`]: {
53
+ color: i.colorTextTertiary
54
+ }
55
+ },
56
+ // ============================== Preview ==============================
57
+ "&-type-preview": {
58
+ width: a,
59
+ height: a,
60
+ lineHeight: 1,
61
+ display: "flex",
62
+ alignItems: "center",
63
+ [`&:not(${e}-status-error)`]: {
64
+ border: 0
65
+ },
66
+ // Img
67
+ [`${t}-image`]: {
68
+ width: "100%",
69
+ height: "100%",
70
+ borderRadius: "inherit",
71
+ img: {
72
+ height: "100%",
73
+ objectFit: "cover",
74
+ borderRadius: "inherit"
75
+ }
76
+ },
77
+ // Mask
78
+ [`${e}-img-mask`]: {
79
+ position: "absolute",
80
+ inset: 0,
81
+ display: "flex",
82
+ justifyContent: "center",
83
+ alignItems: "center",
84
+ background: `rgba(0, 0, 0, ${i.opacityLoading})`,
85
+ borderRadius: "inherit"
86
+ },
87
+ // Error
88
+ [`&${e}-status-error`]: {
89
+ [`img, ${e}-img-mask`]: {
90
+ borderRadius: r(i.borderRadius).sub(i.lineWidth).equal()
91
+ },
92
+ [`${e}-desc`]: {
93
+ paddingInline: i.paddingXXS
94
+ }
95
+ },
96
+ // Progress
97
+ [`${e}-progress`]: {}
98
+ },
99
+ // ============================ Remove Icon ============================
100
+ [`${e}-remove`]: {
101
+ position: "absolute",
102
+ top: 0,
103
+ insetInlineEnd: 0,
104
+ border: 0,
105
+ padding: i.paddingXXS,
106
+ background: "transparent",
107
+ lineHeight: 1,
108
+ transform: "translate(50%, -50%)",
109
+ fontSize: i.fontSize,
110
+ cursor: "pointer",
111
+ opacity: i.opacityLoading,
112
+ display: "none",
113
+ "&:dir(rtl)": {
114
+ transform: "translate(-50%, -50%)"
115
+ },
116
+ "&:hover": {
117
+ opacity: 1
118
+ },
119
+ "&:active": {
120
+ opacity: i.opacityLoading
121
+ }
122
+ },
123
+ [`&:hover ${e}-remove`]: {
124
+ display: "block"
125
+ },
126
+ // ============================== Status ===============================
127
+ "&-status-error": {
128
+ borderColor: i.colorError,
129
+ [`${e}-desc`]: {
130
+ color: i.colorError
131
+ }
132
+ },
133
+ // ============================== Motion ===============================
134
+ "&-motion": {
135
+ overflow: "hidden",
136
+ transition: ["opacity", "width", "margin", "padding"].map((n) => `${n} ${i.motionDurationSlow}`).join(","),
137
+ [`${e}-remove`]: {
138
+ display: "none !important"
139
+ },
140
+ "&-appear-start": {
141
+ width: 0,
142
+ transition: "none"
143
+ },
144
+ "&-leave-active": {
145
+ opacity: 0,
146
+ width: 0,
147
+ paddingInline: 0,
148
+ borderInlineWidth: 0,
149
+ marginInlineEnd: r(i.paddingSM).mul(-1).equal()
150
+ }
151
+ }
152
+ }
153
+ };
154
+ };
155
+ export {
156
+ o as default
157
+ };