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.
- package/dist/index.umd.js +19 -198
- package/es/_util/cssinjs/Cache.mjs +16 -0
- package/es/_util/cssinjs/Keyframes.mjs +11 -0
- package/es/_util/cssinjs/StyleContext.mjs +116 -0
- package/es/_util/cssinjs/hooks/useCSSVarRegister.mjs +47 -0
- package/es/_util/cssinjs/hooks/useCacheToken.mjs +9 -0
- package/es/_util/cssinjs/hooks/useCacheToken.tsx2.mjs +76 -0
- package/es/_util/cssinjs/hooks/useGlobalCache.mjs +27 -0
- package/es/_util/cssinjs/hooks/useHMR.mjs +7 -0
- package/es/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.mjs +51 -0
- package/es/_util/cssinjs/hooks/useStyleRegister/index.mjs +17 -0
- package/es/_util/cssinjs/hooks/useStyleRegister/index.tsx2.mjs +541 -0
- package/es/_util/cssinjs/index.mjs +59 -0
- package/es/_util/cssinjs/linters/contentQuotesLinter.mjs +13 -0
- package/es/_util/cssinjs/linters/hashedAnimationLinter.mjs +10 -0
- package/es/_util/cssinjs/linters/index.mjs +12 -0
- package/es/_util/cssinjs/linters/interface.mjs +1 -0
- package/es/_util/cssinjs/linters/legacyNotSelectorLinter.mjs +15 -0
- package/es/_util/cssinjs/linters/logicalPropertiesLinter.mjs +61 -0
- package/es/_util/cssinjs/linters/parentSelectorLinter.mjs +7 -0
- package/es/_util/cssinjs/linters/utils.mjs +11 -0
- package/es/_util/cssinjs/theme/Theme.mjs +18 -0
- package/es/_util/cssinjs/theme/ThemeCache.mjs +72 -0
- package/es/_util/cssinjs/theme/createTheme.mjs +10 -0
- package/es/_util/cssinjs/theme/index.mjs +8 -0
- package/es/_util/cssinjs/theme/interface.mjs +1 -0
- package/es/_util/cssinjs/transformers/interface.mjs +1 -0
- package/es/_util/cssinjs/transformers/legacyLogicalProperties.mjs +92 -0
- package/es/_util/cssinjs/transformers/px2rem.mjs +31 -0
- package/es/_util/cssinjs/util.mjs +102 -0
- package/es/_util/cssinjs-utils/_util/hooks/useUniqueMemo.mjs +55 -0
- package/es/_util/cssinjs-utils/hooks/useCSP.mjs +4 -0
- package/es/_util/cssinjs-utils/hooks/usePrefix.mjs +1 -0
- package/es/_util/cssinjs-utils/hooks/useToken.mjs +1 -0
- package/es/_util/cssinjs-utils/index.mjs +10 -0
- package/es/_util/cssinjs-utils/interface/components.mjs +1 -0
- package/es/_util/cssinjs-utils/interface/index.mjs +1 -0
- package/es/_util/cssinjs-utils/util/calc/CSSCalculator.mjs +35 -0
- package/es/_util/cssinjs-utils/util/calc/NumCalculator.mjs +24 -0
- package/es/_util/cssinjs-utils/util/calc/calculator.mjs +5 -0
- package/es/_util/cssinjs-utils/util/calc/index.mjs +9 -0
- package/es/_util/cssinjs-utils/util/genStyleUtils.mjs +188 -0
- package/es/_util/cssinjs-utils/util/getCompVarPrefix.mjs +7 -0
- package/es/_util/cssinjs-utils/util/getComponentToken.mjs +18 -0
- package/es/_util/cssinjs-utils/util/getDefaultComponentToken.mjs +9 -0
- package/es/_util/cssinjs-utils/util/maxmin.mjs +15 -0
- package/es/_util/cssinjs-utils/util/statistic.mjs +45 -0
- package/es/_util/getScrollBarSize.mjs +33 -0
- package/es/_util/getValue.mjs +11 -0
- package/es/_util/hooks/use-event-callback.mjs +10 -0
- package/es/_util/hooks/use-state.mjs +11 -0
- package/es/_util/hooks/use-x-component-config.mjs +17 -0
- package/es/_util/hooks/useMergedState.mjs +21 -0
- package/es/_util/motion.mjs +23 -0
- package/es/_util/pick-attrs.mjs +43 -0
- package/es/_util/setStyle.mjs +11 -0
- package/es/_util/supportsPassive.mjs +14 -0
- package/es/_util/transition.mjs +75 -0
- package/es/_util/type.mjs +48 -0
- package/es/_util/warning.mjs +45 -0
- package/es/attachments/Attachments.mjs +4 -0
- package/es/attachments/Attachments2.mjs +255 -0
- package/es/attachments/DropArea.mjs +58 -0
- package/es/attachments/FileList/AudioIcon.mjs +5 -0
- package/es/attachments/FileList/AudioIcon2.mjs +35 -0
- package/es/attachments/FileList/FileList.mjs +4 -0
- package/es/attachments/FileList/FileList2.mjs +1574 -0
- package/es/attachments/FileList/FileListCard.mjs +168 -0
- package/es/attachments/FileList/Progress.mjs +49 -0
- package/es/attachments/FileList/VideoIcon.mjs +30 -0
- package/es/attachments/FileList/index.mjs +6 -0
- package/es/attachments/PlaceholderUploader.mjs +79 -0
- package/es/attachments/SilentUploader.mjs +27 -0
- package/es/attachments/context.mjs +32 -0
- package/es/attachments/index.mjs +12 -0
- package/es/attachments/interface.mjs +1 -0
- package/es/attachments/style/fileCard.mjs +157 -0
- package/es/attachments/style/index.mjs +584 -0
- package/es/attachments/util.mjs +31 -0
- package/es/bubble/Bubble.mjs +126 -0
- package/es/bubble/BubbleList.mjs +136 -0
- package/es/bubble/context.mjs +31 -0
- package/es/bubble/hooks/useDisplayData.mjs +36 -0
- package/es/bubble/hooks/useListData.mjs +18 -0
- package/es/bubble/hooks/useTypedEffect.mjs +24 -0
- package/es/bubble/hooks/useTypingConfig.mjs +24 -0
- package/es/bubble/index.mjs +10 -0
- package/es/bubble/interface.mjs +1 -0
- package/es/bubble/loading.mjs +25 -0
- package/es/bubble/style/content.mjs +59 -0
- package/es/bubble/style/index.mjs +148 -0
- package/es/bubble/style/list.mjs +14 -0
- package/es/conversations/Conversations.mjs +105 -0
- package/es/conversations/ConversationsItem.mjs +89 -0
- package/es/conversations/GroupTitle.mjs +22 -0
- package/es/conversations/context.mjs +31 -0
- package/es/conversations/hooks/useGroupable.mjs +48 -0
- package/es/conversations/index.mjs +5 -0
- package/es/conversations/interface.mjs +1 -0
- package/es/conversations/style/index.mjs +103 -0
- package/es/index.mjs +38 -0
- package/es/prompts/Prompts.mjs +116 -0
- package/es/prompts/index.mjs +5 -0
- package/es/prompts/interface.mjs +1 -0
- package/es/prompts/style/index.mjs +143 -0
- package/es/sender/Sender.mjs +251 -0
- package/es/sender/SenderHeader.mjs +82 -0
- package/es/sender/StopLoading.mjs +52 -0
- package/es/sender/components/ActionButton/context.mjs +31 -0
- package/es/sender/components/ActionButton/index.mjs +65 -0
- package/es/sender/components/ClearButton.mjs +41 -0
- package/es/sender/components/LoadingButton.mjs +58 -0
- package/es/sender/components/SendButton.mjs +45 -0
- package/es/sender/components/SpeechButton/RecordingIcon.mjs +49 -0
- package/es/sender/components/SpeechButton/index.mjs +59 -0
- package/es/sender/context.mjs +31 -0
- package/es/sender/index.mjs +9 -0
- package/es/sender/interface.mjs +1 -0
- package/es/sender/style/header.mjs +49 -0
- package/es/sender/style/index.mjs +147 -0
- package/es/sender/useSpeech.mjs +55 -0
- package/es/suggestion/Suggestion.mjs +93 -0
- package/es/suggestion/index.mjs +5 -0
- package/es/suggestion/interface.mjs +1 -0
- package/es/suggestion/style/index.mjs +41 -0
- package/es/suggestion/useActive.mjs +56 -0
- package/es/theme/components.mjs +1 -0
- package/es/theme/cssinjs-utils.mjs +1 -0
- package/es/theme/genStyleUtils.mjs +32 -0
- package/es/theme/index.mjs +4 -0
- package/es/theme/patch-antd.mjs +33 -0
- package/es/theme/useToken.mjs +351 -0
- package/es/thought-chain/ThoughtChain.mjs +107 -0
- package/es/thought-chain/context.mjs +31 -0
- package/es/thought-chain/hooks/useCollapsible.mjs +36 -0
- package/es/thought-chain/index.mjs +5 -0
- package/es/thought-chain/interface.mjs +4 -0
- package/es/thought-chain/item.mjs +96 -0
- package/es/thought-chain/style/index.mjs +215 -0
- package/es/transition-collapse/TransitionCollapse.mjs +49 -0
- package/es/transition-collapse/index.mjs +10 -0
- package/es/transition-collapse/style/index.mjs +22 -0
- package/es/type-utility.mjs +1 -0
- package/es/use-x-agent/index.mjs +7 -0
- package/es/use-x-agent/use-x-agent.mjs +49 -0
- package/es/use-x-chat/index.mjs +5 -0
- package/es/use-x-chat/use-x-chat.mjs +97 -0
- package/es/use-x-chat/useSyncState.mjs +12 -0
- package/es/vc-util/Dom/addEventListener.mjs +15 -0
- package/es/vc-util/Dom/canUseDom.mjs +6 -0
- package/es/vc-util/Dom/class.mjs +19 -0
- package/es/vc-util/Dom/contains.mjs +6 -0
- package/es/vc-util/Dom/css.mjs +86 -0
- package/es/vc-util/Dom/dynamicCSS.mjs +70 -0
- package/es/vc-util/Dom/isVisible.mjs +20 -0
- package/es/vc-util/Dom/scrollLocker.mjs +66 -0
- package/es/vc-util/devWarning.mjs +9 -0
- package/es/vc-util/get.mjs +12 -0
- package/es/vc-util/isEqual.mjs +32 -0
- package/es/vc-util/isMobile.mjs +13 -0
- package/es/vc-util/set.mjs +14 -0
- package/es/vc-util/warning.mjs +26 -0
- package/es/version/index.mjs +4 -0
- package/es/version/token-meta.mjs +7 -0
- package/es/version/token.mjs +21 -0
- package/es/version/version.mjs +4 -0
- package/es/welcome/Welcome.mjs +91 -0
- package/es/welcome/index.mjs +5 -0
- package/es/welcome/interface.mjs +1 -0
- package/es/welcome/style/index.mjs +69 -0
- package/es/x-provider/context.mjs +31 -0
- package/es/x-provider/hooks/use-x-provider-context.mjs +21 -0
- package/es/x-provider/index.mjs +8 -0
- package/es/x-provider/index2.mjs +81 -0
- package/es/x-request/index.mjs +7 -0
- package/es/x-request/x-fetch.mjs +22 -0
- package/es/x-request/x-request.mjs +83 -0
- package/es/x-stream/index.mjs +5 -0
- package/es/x-stream/x-stream.mjs +64 -0
- package/lib/_util/cssinjs/Cache.js +1 -0
- package/lib/_util/cssinjs/Keyframes.js +1 -0
- package/lib/_util/cssinjs/StyleContext.js +1 -0
- package/lib/_util/cssinjs/hooks/useCSSVarRegister.js +1 -0
- package/lib/_util/cssinjs/hooks/useCacheToken.js +1 -0
- package/lib/_util/cssinjs/hooks/useCacheToken.tsx2.js +1 -0
- package/lib/_util/cssinjs/hooks/useGlobalCache.js +1 -0
- package/lib/_util/cssinjs/hooks/useHMR.js +1 -0
- package/lib/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.js +1 -0
- package/lib/_util/cssinjs/hooks/useStyleRegister/index.js +1 -0
- package/lib/_util/cssinjs/hooks/useStyleRegister/index.tsx2.js +2 -0
- package/lib/_util/cssinjs/index.js +1 -0
- package/lib/_util/cssinjs/linters/contentQuotesLinter.js +1 -0
- package/lib/_util/cssinjs/linters/hashedAnimationLinter.js +1 -0
- package/lib/_util/cssinjs/linters/index.js +1 -0
- package/lib/_util/cssinjs/linters/interface.js +1 -0
- package/lib/_util/cssinjs/linters/legacyNotSelectorLinter.js +1 -0
- package/lib/_util/cssinjs/linters/logicalPropertiesLinter.js +1 -0
- package/lib/_util/cssinjs/linters/parentSelectorLinter.js +1 -0
- package/lib/_util/cssinjs/linters/utils.js +1 -0
- package/lib/_util/cssinjs/theme/Theme.js +1 -0
- package/lib/_util/cssinjs/theme/ThemeCache.js +1 -0
- package/lib/_util/cssinjs/theme/createTheme.js +1 -0
- package/lib/_util/cssinjs/theme/index.js +1 -0
- package/lib/_util/cssinjs/theme/interface.js +1 -0
- package/lib/_util/cssinjs/transformers/interface.js +1 -0
- package/lib/_util/cssinjs/transformers/legacyLogicalProperties.js +1 -0
- package/lib/_util/cssinjs/transformers/px2rem.js +1 -0
- package/lib/_util/cssinjs/util.js +1 -0
- package/lib/_util/cssinjs-utils/_util/hooks/useUniqueMemo.js +1 -0
- package/lib/_util/cssinjs-utils/hooks/useCSP.js +1 -0
- package/lib/_util/cssinjs-utils/hooks/usePrefix.js +1 -0
- package/lib/_util/cssinjs-utils/hooks/useToken.js +1 -0
- package/lib/_util/cssinjs-utils/index.js +1 -0
- package/lib/_util/cssinjs-utils/interface/components.js +1 -0
- package/lib/_util/cssinjs-utils/interface/index.js +1 -0
- package/lib/_util/cssinjs-utils/util/calc/CSSCalculator.js +1 -0
- package/lib/_util/cssinjs-utils/util/calc/NumCalculator.js +1 -0
- package/lib/_util/cssinjs-utils/util/calc/calculator.js +1 -0
- package/lib/_util/cssinjs-utils/util/calc/index.js +1 -0
- package/lib/_util/cssinjs-utils/util/genStyleUtils.js +1 -0
- package/lib/_util/cssinjs-utils/util/getCompVarPrefix.js +1 -0
- package/lib/_util/cssinjs-utils/util/getComponentToken.js +1 -0
- package/lib/_util/cssinjs-utils/util/getDefaultComponentToken.js +1 -0
- package/lib/_util/cssinjs-utils/util/maxmin.js +1 -0
- package/lib/_util/cssinjs-utils/util/statistic.js +1 -0
- package/lib/_util/getScrollBarSize.js +1 -0
- package/lib/_util/getValue.js +1 -0
- package/lib/_util/hooks/use-event-callback.js +1 -0
- package/lib/_util/hooks/use-state.js +1 -0
- package/lib/_util/hooks/use-x-component-config.js +1 -0
- package/lib/_util/hooks/useMergedState.js +1 -0
- package/lib/_util/motion.js +1 -0
- package/lib/_util/pick-attrs.js +18 -0
- package/lib/_util/setStyle.js +1 -0
- package/lib/_util/supportsPassive.js +1 -0
- package/lib/_util/transition.js +1 -0
- package/lib/_util/type.js +1 -0
- package/lib/_util/warning.js +1 -0
- package/lib/attachments/Attachments.js +1 -0
- package/lib/attachments/Attachments2.js +5 -0
- package/lib/attachments/DropArea.js +1 -0
- package/lib/attachments/FileList/AudioIcon.js +1 -0
- package/lib/attachments/FileList/AudioIcon2.js +1 -0
- package/lib/attachments/FileList/FileList.js +1 -0
- package/lib/attachments/FileList/FileList2.js +57 -0
- package/lib/attachments/FileList/FileListCard.js +1 -0
- package/lib/attachments/FileList/Progress.js +1 -0
- package/lib/attachments/FileList/VideoIcon.js +1 -0
- package/lib/attachments/FileList/index.js +1 -0
- package/lib/attachments/PlaceholderUploader.js +1 -0
- package/lib/attachments/SilentUploader.js +1 -0
- package/lib/attachments/context.js +1 -0
- package/lib/attachments/index.js +1 -0
- package/lib/attachments/interface.js +1 -0
- package/lib/attachments/style/fileCard.js +1 -0
- package/lib/attachments/style/index.js +1 -0
- package/lib/attachments/util.js +1 -0
- package/lib/bubble/Bubble.js +1 -0
- package/lib/bubble/BubbleList.js +1 -0
- package/lib/bubble/context.js +1 -0
- package/lib/bubble/hooks/useDisplayData.js +1 -0
- package/lib/bubble/hooks/useListData.js +1 -0
- package/lib/bubble/hooks/useTypedEffect.js +1 -0
- package/lib/bubble/hooks/useTypingConfig.js +1 -0
- package/lib/bubble/index.js +1 -0
- package/lib/bubble/interface.js +1 -0
- package/lib/bubble/loading.js +1 -0
- package/lib/bubble/style/content.js +1 -0
- package/lib/bubble/style/index.js +1 -0
- package/lib/bubble/style/list.js +1 -0
- package/lib/conversations/Conversations.js +1 -0
- package/lib/conversations/ConversationsItem.js +1 -0
- package/lib/conversations/GroupTitle.js +1 -0
- package/lib/conversations/context.js +1 -0
- package/lib/conversations/hooks/useGroupable.js +1 -0
- package/lib/conversations/index.js +1 -0
- package/lib/conversations/interface.js +1 -0
- package/lib/conversations/style/index.js +1 -0
- package/lib/index.js +1 -0
- package/lib/prompts/Prompts.js +1 -0
- package/lib/prompts/index.js +1 -0
- package/lib/prompts/interface.js +1 -0
- package/lib/prompts/style/index.js +1 -0
- package/lib/sender/Sender.js +1 -0
- package/lib/sender/SenderHeader.js +1 -0
- package/lib/sender/StopLoading.js +1 -0
- package/lib/sender/components/ActionButton/context.js +1 -0
- package/lib/sender/components/ActionButton/index.js +1 -0
- package/lib/sender/components/ClearButton.js +1 -0
- package/lib/sender/components/LoadingButton.js +1 -0
- package/lib/sender/components/SendButton.js +1 -0
- package/lib/sender/components/SpeechButton/RecordingIcon.js +1 -0
- package/lib/sender/components/SpeechButton/index.js +1 -0
- package/lib/sender/context.js +1 -0
- package/lib/sender/index.js +1 -0
- package/lib/sender/interface.js +1 -0
- package/lib/sender/style/header.js +1 -0
- package/lib/sender/style/index.js +1 -0
- package/lib/sender/useSpeech.js +1 -0
- package/lib/suggestion/Suggestion.js +1 -0
- package/lib/suggestion/index.js +1 -0
- package/lib/suggestion/interface.js +1 -0
- package/lib/suggestion/style/index.js +1 -0
- package/lib/suggestion/useActive.js +1 -0
- package/lib/theme/components.js +1 -0
- package/lib/theme/cssinjs-utils.js +1 -0
- package/lib/theme/genStyleUtils.js +1 -0
- package/lib/theme/index.js +1 -0
- package/lib/theme/patch-antd.js +1 -0
- package/lib/theme/useToken.js +35 -0
- package/lib/thought-chain/ThoughtChain.js +1 -0
- package/lib/thought-chain/context.js +1 -0
- package/lib/thought-chain/hooks/useCollapsible.js +1 -0
- package/lib/thought-chain/index.js +1 -0
- package/lib/thought-chain/interface.js +1 -0
- package/lib/thought-chain/item.js +1 -0
- package/lib/thought-chain/style/index.js +1 -0
- package/lib/transition-collapse/TransitionCollapse.js +1 -0
- package/lib/transition-collapse/index.js +1 -0
- package/lib/transition-collapse/style/index.js +1 -0
- package/lib/type-utility.js +1 -0
- package/lib/use-x-agent/index.js +1 -0
- package/lib/use-x-agent/use-x-agent.js +1 -0
- package/lib/use-x-chat/index.js +1 -0
- package/lib/use-x-chat/use-x-chat.js +1 -0
- package/lib/use-x-chat/useSyncState.js +1 -0
- package/lib/vc-util/Dom/addEventListener.js +1 -0
- package/lib/vc-util/Dom/canUseDom.js +1 -0
- package/lib/vc-util/Dom/class.js +1 -0
- package/lib/vc-util/Dom/contains.js +1 -0
- package/lib/vc-util/Dom/css.js +1 -0
- package/lib/vc-util/Dom/dynamicCSS.js +1 -0
- package/lib/vc-util/Dom/isVisible.js +1 -0
- package/lib/vc-util/Dom/scrollLocker.js +1 -0
- package/lib/vc-util/devWarning.js +1 -0
- package/lib/vc-util/get.js +1 -0
- package/lib/vc-util/isEqual.js +1 -0
- package/lib/vc-util/isMobile.js +1 -0
- package/lib/vc-util/set.js +1 -0
- package/lib/vc-util/warning.js +1 -0
- package/lib/version/index.js +1 -0
- package/lib/version/token-meta.js +1 -0
- package/lib/version/token.js +1 -0
- package/lib/version/version.js +1 -0
- package/lib/welcome/Welcome.js +1 -0
- package/lib/welcome/index.js +1 -0
- package/lib/welcome/interface.js +1 -0
- package/lib/welcome/style/index.js +1 -0
- package/lib/x-provider/context.js +1 -0
- package/lib/x-provider/hooks/use-x-provider-context.js +1 -0
- package/lib/x-provider/index.js +1 -0
- package/lib/x-provider/index2.js +1 -0
- package/lib/x-request/index.js +1 -0
- package/lib/x-request/x-fetch.js +1 -0
- package/lib/x-request/x-request.js +1 -0
- package/lib/x-stream/index.js +1 -0
- package/lib/x-stream/x-stream.js +4 -0
- package/package.json +21 -13
- package/typings/bubble/Bubble.vue.d.ts +37 -0
- package/typings/bubble/index.d.ts +258 -0
- package/{dist/typings → typings}/bubble/interface.d.ts +6 -4
- package/{dist/typings → typings}/conversations/interface.d.ts +2 -1
- package/{dist/typings → typings}/sender/interface.d.ts +1 -1
- package/{dist/typings → typings}/x-provider/context.d.ts +9 -9
- package/dist/index.mjs +0 -34154
- package/dist/typings/bubble/Bubble.vue.d.ts +0 -35
- package/dist/typings/bubble/index.d.ts +0 -51
- /package/{dist/resolver → resolver-dist}/index.d.ts +0 -0
- /package/{dist/resolver → resolver-dist}/index.js +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/Cache.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/Keyframes.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/StyleContext.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/hooks/useCSSVarRegister.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/hooks/useCacheToken.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/hooks/useGlobalCache.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/hooks/useHMR.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/hooks/useStyleRegister/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/contentQuotesLinter.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/hashedAnimationLinter.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/interface.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/legacyNotSelectorLinter.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/logicalPropertiesLinter.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/parentSelectorLinter.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/utils.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/theme/Theme.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/theme/ThemeCache.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/theme/createTheme.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/theme/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/theme/interface.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/transformers/interface.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/transformers/legacyLogicalProperties.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/transformers/px2rem.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/util.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/_util/hooks/useUniqueMemo.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/hooks/useCSP.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/hooks/usePrefix.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/hooks/useToken.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/interface/components.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/interface/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/CSSCalculator.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/NumCalculator.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/calculator.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/genStyleUtils.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/getCompVarPrefix.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/getComponentToken.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/getDefaultComponentToken.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/maxmin.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/statistic.d.ts +0 -0
- /package/{dist/typings → typings}/_util/getValue.d.ts +0 -0
- /package/{dist/typings → typings}/_util/hooks/use-event-callback.d.ts +0 -0
- /package/{dist/typings → typings}/_util/hooks/use-state.d.ts +0 -0
- /package/{dist/typings → typings}/_util/hooks/use-x-component-config.d.ts +0 -0
- /package/{dist/typings → typings}/_util/hooks/useMergedState.d.ts +0 -0
- /package/{dist/typings → typings}/_util/pick-attrs.d.ts +0 -0
- /package/{dist/typings → typings}/_util/type.d.ts +0 -0
- /package/{dist/typings → typings}/_util/warning.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/Attachments.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/DropArea.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/FileList/AudioIcon.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/FileList/FileList.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/FileList/FileListCard.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/FileList/VideoIcon.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/FileList/index.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/PlaceholderUploader.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/SilentUploader.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/context.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/index.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/interface.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/style/fileCard.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/util.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/BubbleList.vue.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/context.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/hooks/useDisplayData.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/hooks/useListData.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/hooks/useTypedEffect.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/hooks/useTypingConfig.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/loading.vue.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/style/content.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/style/list.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/Conversations.vue.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/ConversationsItem.vue.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/GroupTitle.vue.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/context.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/hooks/useGroupable.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/index.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/index.d.ts +0 -0
- /package/{dist/typings → typings}/prompts/Prompts.vue.d.ts +0 -0
- /package/{dist/typings → typings}/prompts/index.d.ts +0 -0
- /package/{dist/typings → typings}/prompts/interface.d.ts +0 -0
- /package/{dist/typings → typings}/prompts/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/sender/Sender.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/SenderHeader.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/StopLoading.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/ActionButton/context.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/ActionButton/index.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/ClearButton.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/LoadingButton.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/SendButton.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/SpeechButton/RecordingIcon.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/SpeechButton/index.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/context.d.ts +0 -0
- /package/{dist/typings → typings}/sender/index.d.ts +0 -0
- /package/{dist/typings → typings}/sender/style/header.d.ts +0 -0
- /package/{dist/typings → typings}/sender/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/sender/useSpeech.d.ts +0 -0
- /package/{dist/typings → typings}/suggestion/Suggestion.vue.d.ts +0 -0
- /package/{dist/typings → typings}/suggestion/index.d.ts +0 -0
- /package/{dist/typings → typings}/suggestion/interface.d.ts +0 -0
- /package/{dist/typings → typings}/suggestion/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/suggestion/useActive.d.ts +0 -0
- /package/{dist/typings → typings}/theme/components.d.ts +0 -0
- /package/{dist/typings → typings}/theme/cssinjs-utils.d.ts +0 -0
- /package/{dist/typings → typings}/theme/genStyleUtils.d.ts +0 -0
- /package/{dist/typings → typings}/theme/index.d.ts +0 -0
- /package/{dist/typings → typings}/theme/patch-antd.d.ts +0 -0
- /package/{dist/typings → typings}/theme/useToken.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/ThoughtChain.vue.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/context.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/hooks/useCollapsible.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/index.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/interface.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/item.vue.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/transition-collapse/TransitionCollapse.vue.d.ts +0 -0
- /package/{dist/typings → typings}/transition-collapse/index.d.ts +0 -0
- /package/{dist/typings → typings}/transition-collapse/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/type-utility.d.ts +0 -0
- /package/{dist/typings → typings}/use-x-agent/index.d.ts +0 -0
- /package/{dist/typings → typings}/use-x-agent/use-x-agent.d.ts +0 -0
- /package/{dist/typings → typings}/use-x-chat/index.d.ts +0 -0
- /package/{dist/typings → typings}/use-x-chat/use-x-chat.d.ts +0 -0
- /package/{dist/typings → typings}/use-x-chat/useSyncState.d.ts +0 -0
- /package/{dist/typings → typings}/vc-util/Dom/canUseDom.d.ts +0 -0
- /package/{dist/typings → typings}/vc-util/Dom/contains.d.ts +0 -0
- /package/{dist/typings → typings}/vc-util/Dom/dynamicCSS.d.ts +0 -0
- /package/{dist/typings → typings}/vc-util/warning.d.ts +0 -0
- /package/{dist/typings → typings}/version/index.d.ts +0 -0
- /package/{dist/typings → typings}/version/version.d.ts +0 -0
- /package/{dist/typings → typings}/welcome/Welcome.vue.d.ts +0 -0
- /package/{dist/typings → typings}/welcome/index.d.ts +0 -0
- /package/{dist/typings → typings}/welcome/interface.d.ts +0 -0
- /package/{dist/typings → typings}/welcome/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/x-provider/hooks/use-x-provider-context.d.ts +0 -0
- /package/{dist/typings → typings}/x-provider/index.d.ts +0 -0
- /package/{dist/typings → typings}/x-provider/index.vue.d.ts +0 -0
- /package/{dist/typings → typings}/x-request/index.d.ts +0 -0
- /package/{dist/typings → typings}/x-request/x-fetch.d.ts +0 -0
- /package/{dist/typings → typings}/x-request/x-request.d.ts +0 -0
- /package/{dist/typings → typings}/x-stream/index.d.ts +0 -0
- /package/{dist/typings → typings}/x-stream/x-stream.d.ts +0 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { defineComponent as $, mergeDefaults as S, toRef as m, ref as G, computed as n, watch as V, createVNode as s, mergeProps as X } from "vue";
|
|
2
|
+
import { a as j, c as v } from "../attachments/Attachments2.mjs";
|
|
3
|
+
import w from "../_util/pick-attrs.mjs";
|
|
4
|
+
import F from "./ConversationsItem.mjs";
|
|
5
|
+
import y from "./GroupTitle.mjs";
|
|
6
|
+
import M from "../_util/hooks/useMergedState.mjs";
|
|
7
|
+
import R from "../x-provider/hooks/use-x-provider-context.mjs";
|
|
8
|
+
import "../x-provider/context.mjs";
|
|
9
|
+
import "ant-design-vue";
|
|
10
|
+
import T from "./hooks/useGroupable.mjs";
|
|
11
|
+
import D from "../_util/hooks/use-x-component-config.mjs";
|
|
12
|
+
import L from "./style/index.mjs";
|
|
13
|
+
import { GroupTitleContextProvider as q } from "./context.mjs";
|
|
14
|
+
const _ = /* @__PURE__ */ $({
|
|
15
|
+
name: "AXConversations",
|
|
16
|
+
__name: "Conversations",
|
|
17
|
+
props: S({
|
|
18
|
+
items: null,
|
|
19
|
+
activeKey: null,
|
|
20
|
+
defaultActiveKey: null,
|
|
21
|
+
onActiveChange: {
|
|
22
|
+
type: Function
|
|
23
|
+
},
|
|
24
|
+
menu: {
|
|
25
|
+
type: Function
|
|
26
|
+
},
|
|
27
|
+
groupable: null,
|
|
28
|
+
styles: null,
|
|
29
|
+
classNames: null,
|
|
30
|
+
prefixCls: null,
|
|
31
|
+
rootClassName: null
|
|
32
|
+
}, {
|
|
33
|
+
styles: () => ({}),
|
|
34
|
+
classNames: () => ({})
|
|
35
|
+
}),
|
|
36
|
+
setup(e) {
|
|
37
|
+
const C = j(e, ["prefixCls", "rootClassName", "items", "activeKey", "defaultActiveKey", "onActiveChange", "menu", "styles", "classNames", "groupable", "class", "style"]);
|
|
38
|
+
m(e, "class"), m(e, "activeKey"), m(e, "prefixCls");
|
|
39
|
+
const c = G(e.activeKey), f = n(() => w(C, {
|
|
40
|
+
attr: !0,
|
|
41
|
+
aria: !0,
|
|
42
|
+
data: !0
|
|
43
|
+
})), [d, x] = M(e.defaultActiveKey, {
|
|
44
|
+
value: c
|
|
45
|
+
});
|
|
46
|
+
V(() => e.activeKey, () => {
|
|
47
|
+
c.value = e.activeKey;
|
|
48
|
+
});
|
|
49
|
+
const u = T(() => e.groupable, () => e.items), {
|
|
50
|
+
getPrefixCls: k,
|
|
51
|
+
direction: r
|
|
52
|
+
} = R(), l = n(() => k("conversations", e.prefixCls)), i = D("conversations"), [K, A, N] = L(l), g = n(() => v(l.value, i.value.className, e.class, e.rootClassName, A.value, N, {
|
|
53
|
+
[`${l.value}-rtl`]: r.value === "rtl"
|
|
54
|
+
})), P = (t) => {
|
|
55
|
+
x(t.key), e.onActiveChange && e.onActiveChange(t.key);
|
|
56
|
+
};
|
|
57
|
+
return () => K(s("ul", X(f.value, {
|
|
58
|
+
style: {
|
|
59
|
+
...typeof i.value.style == "object" ? i.value.style : {},
|
|
60
|
+
...typeof e.style == "object" ? e.style : {}
|
|
61
|
+
},
|
|
62
|
+
class: g.value
|
|
63
|
+
}), [u.value.groupList.map((t, b) => {
|
|
64
|
+
const o = t.data.map((a, h) => s(F, {
|
|
65
|
+
key: a.key || `key-${h}`,
|
|
66
|
+
info: a,
|
|
67
|
+
prefixCls: l.value,
|
|
68
|
+
direction: r.value,
|
|
69
|
+
class: v(e.classNames.item, i.value.classNames.item),
|
|
70
|
+
style: {
|
|
71
|
+
...i.value.styles.item,
|
|
72
|
+
...e.styles.item
|
|
73
|
+
},
|
|
74
|
+
menu: typeof e.menu == "function" ? e.menu(a) : e.menu,
|
|
75
|
+
active: d.value === a.key,
|
|
76
|
+
onClick: P
|
|
77
|
+
}, null));
|
|
78
|
+
return u.value.enableGroup ? s("li", {
|
|
79
|
+
key: t.name || `key-${b}`
|
|
80
|
+
}, [s(q, {
|
|
81
|
+
value: {
|
|
82
|
+
prefixCls: l.value
|
|
83
|
+
}
|
|
84
|
+
}, {
|
|
85
|
+
default: () => {
|
|
86
|
+
var a;
|
|
87
|
+
return [((a = t.title) == null ? void 0 : a.call(t, t.name, {
|
|
88
|
+
components: {
|
|
89
|
+
GroupTitle: y
|
|
90
|
+
}
|
|
91
|
+
})) || s(y, {
|
|
92
|
+
key: t.name
|
|
93
|
+
}, {
|
|
94
|
+
default: () => [t.name]
|
|
95
|
+
})];
|
|
96
|
+
}
|
|
97
|
+
}), s("ul", {
|
|
98
|
+
class: `${l.value}-list`
|
|
99
|
+
}, [o])]) : o;
|
|
100
|
+
})]));
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
export {
|
|
104
|
+
_ as default
|
|
105
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { defineComponent as y, toRef as P, computed as l, createVNode as t, mergeProps as h } from "vue";
|
|
2
|
+
import { a as $, c as O } from "../attachments/Attachments2.mjs";
|
|
3
|
+
import T from "../_util/pick-attrs.mjs";
|
|
4
|
+
import { Tooltip as E, Typography as M, Dropdown as p, Menu as w } from "ant-design-vue";
|
|
5
|
+
import c from "../_util/hooks/use-state.mjs";
|
|
6
|
+
import { E as I } from "../attachments/FileList/FileList2.mjs";
|
|
7
|
+
const L = /* @__PURE__ */ y({
|
|
8
|
+
name: "AXConversationsItem",
|
|
9
|
+
__name: "ConversationsItem",
|
|
10
|
+
props: {
|
|
11
|
+
info: null,
|
|
12
|
+
prefixCls: null,
|
|
13
|
+
direction: null,
|
|
14
|
+
menu: null,
|
|
15
|
+
active: {
|
|
16
|
+
type: Boolean
|
|
17
|
+
},
|
|
18
|
+
onClick: {
|
|
19
|
+
type: Function
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(e) {
|
|
23
|
+
const s = $(e, ["prefixCls", "info", "class", "direction", "onClick", "active", "menu"]);
|
|
24
|
+
P(e, "class");
|
|
25
|
+
const u = l(() => T(s, {
|
|
26
|
+
aria: !0,
|
|
27
|
+
data: !0,
|
|
28
|
+
attr: !0
|
|
29
|
+
})), f = (n) => {
|
|
30
|
+
n.stopPropagation();
|
|
31
|
+
}, i = l(() => e.info.disabled), [m, d] = c(!1), [g, r] = c(!1), v = l(() => O(e.class, `${e.prefixCls}-item`, {
|
|
32
|
+
[`${e.prefixCls}-item-active`]: e.active && !i.value
|
|
33
|
+
}, {
|
|
34
|
+
[`${e.prefixCls}-item-disabled`]: i.value
|
|
35
|
+
})), C = () => {
|
|
36
|
+
!i.value && e.onClick && e.onClick(e.info);
|
|
37
|
+
}, x = (n) => {
|
|
38
|
+
n && r(!n);
|
|
39
|
+
}, o = l(() => {
|
|
40
|
+
var n;
|
|
41
|
+
return (n = e.menu) == null ? void 0 : n.trigger;
|
|
42
|
+
}), b = l(() => {
|
|
43
|
+
const {
|
|
44
|
+
trigger: n,
|
|
45
|
+
...a
|
|
46
|
+
} = e.menu || {};
|
|
47
|
+
return a;
|
|
48
|
+
}), k = (n) => {
|
|
49
|
+
const a = t(I, {
|
|
50
|
+
onClick: f,
|
|
51
|
+
class: `${e.prefixCls}-menu-icon`
|
|
52
|
+
}, null);
|
|
53
|
+
return o.value ? typeof o.value == "function" ? o.value(n, {
|
|
54
|
+
originNode: a
|
|
55
|
+
}) : o.value : a;
|
|
56
|
+
};
|
|
57
|
+
return () => t(E, {
|
|
58
|
+
title: e.info.label,
|
|
59
|
+
open: m.value && g.value,
|
|
60
|
+
onOpenChange: r,
|
|
61
|
+
placement: e.direction === "rtl" ? "left" : "right"
|
|
62
|
+
}, {
|
|
63
|
+
default: () => [t("li", h(u.value, {
|
|
64
|
+
class: v.value,
|
|
65
|
+
onClick: C
|
|
66
|
+
}), [e.info.icon && t("div", {
|
|
67
|
+
class: `${e.prefixCls}-icon`
|
|
68
|
+
}, [e.info.icon]), t(M.Text, {
|
|
69
|
+
class: `${e.prefixCls}-label`,
|
|
70
|
+
ellipsis: {
|
|
71
|
+
onEllipsis: d
|
|
72
|
+
}
|
|
73
|
+
}, {
|
|
74
|
+
default: () => [e.info.label]
|
|
75
|
+
}), !i.value && e.menu && t(p, {
|
|
76
|
+
placement: e.direction === "rtl" ? "bottomLeft" : "bottomRight",
|
|
77
|
+
trigger: ["click"],
|
|
78
|
+
disabled: i.value,
|
|
79
|
+
onOpenChange: x
|
|
80
|
+
}, {
|
|
81
|
+
default: () => k(e.info),
|
|
82
|
+
overlay: () => t(w, b.value, null)
|
|
83
|
+
})])]
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
export {
|
|
88
|
+
L as default
|
|
89
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as p, useSlots as s, computed as u, createVNode as r } from "vue";
|
|
2
|
+
import { c as a } from "../attachments/Attachments2.mjs";
|
|
3
|
+
import { useGroupTitleContextInject as l } from "./context.mjs";
|
|
4
|
+
import { Typography as i } from "ant-design-vue";
|
|
5
|
+
const _ = /* @__PURE__ */ p({
|
|
6
|
+
name: "AXConversationsGroupTitle",
|
|
7
|
+
__name: "GroupTitle",
|
|
8
|
+
setup(m) {
|
|
9
|
+
const e = s(), n = l(), t = u(() => {
|
|
10
|
+
var o;
|
|
11
|
+
return (o = e.default) == null ? void 0 : o.call(e);
|
|
12
|
+
});
|
|
13
|
+
return () => r("div", {
|
|
14
|
+
class: a(`${n.value.prefixCls}-group-title`)
|
|
15
|
+
}, [t.value && r(i.Text, null, {
|
|
16
|
+
default: () => [t.value]
|
|
17
|
+
})]);
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
_ as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { shallowRef as p, defineComponent as i, computed as n, provide as l, watch as c, unref as a, triggerRef as d, inject as m } from "vue";
|
|
2
|
+
import { objectType as f } from "../_util/type.mjs";
|
|
3
|
+
const u = Symbol("GroupTitleContext"), o = p(), x = (e) => {
|
|
4
|
+
l(u, e), c(
|
|
5
|
+
e,
|
|
6
|
+
() => {
|
|
7
|
+
o.value = a(e), d(o);
|
|
8
|
+
},
|
|
9
|
+
{ immediate: !0, deep: !0 }
|
|
10
|
+
);
|
|
11
|
+
}, G = () => m(
|
|
12
|
+
u,
|
|
13
|
+
n(() => o.value || {})
|
|
14
|
+
), v = i({
|
|
15
|
+
props: {
|
|
16
|
+
value: f()
|
|
17
|
+
},
|
|
18
|
+
setup(e, { slots: t }) {
|
|
19
|
+
return x(n(() => e.value)), () => {
|
|
20
|
+
var r;
|
|
21
|
+
return (r = t.default) == null ? void 0 : r.call(t);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
v as GroupTitleContextProvider,
|
|
27
|
+
v as default,
|
|
28
|
+
o as globalGroupTitleContextApi,
|
|
29
|
+
G as useGroupTitleContextInject,
|
|
30
|
+
x as useGroupTitleContextProvider
|
|
31
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { computed as i, toValue as r } from "vue";
|
|
2
|
+
const n = "__ungrouped", b = (u, a = []) => {
|
|
3
|
+
const o = i(() => {
|
|
4
|
+
if (!r(u))
|
|
5
|
+
return {
|
|
6
|
+
enableGroup: !1,
|
|
7
|
+
sort: void 0,
|
|
8
|
+
title: void 0
|
|
9
|
+
};
|
|
10
|
+
let t = {
|
|
11
|
+
sort: void 0,
|
|
12
|
+
title: void 0
|
|
13
|
+
};
|
|
14
|
+
return typeof r(u) == "object" && (t = { ...t, ...r(u) }), {
|
|
15
|
+
enableGroup: !0,
|
|
16
|
+
sort: t.sort,
|
|
17
|
+
title: t.title
|
|
18
|
+
};
|
|
19
|
+
});
|
|
20
|
+
return i(() => {
|
|
21
|
+
if (!o.value.enableGroup)
|
|
22
|
+
return {
|
|
23
|
+
groupList: [
|
|
24
|
+
{
|
|
25
|
+
name: n,
|
|
26
|
+
data: r(a),
|
|
27
|
+
title: void 0
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
enableGroup: o.value.enableGroup
|
|
31
|
+
};
|
|
32
|
+
const t = r(a).reduce((e, l) => {
|
|
33
|
+
const s = l.group || n;
|
|
34
|
+
return e[s] || (e[s] = []), e[s].push(l), e;
|
|
35
|
+
}, {});
|
|
36
|
+
return {
|
|
37
|
+
groupList: (o.value.sort ? Object.keys(t).sort(o.value.sort) : Object.keys(t)).map((e) => ({
|
|
38
|
+
name: e === n ? void 0 : e,
|
|
39
|
+
title: o.value.title,
|
|
40
|
+
data: t[e]
|
|
41
|
+
})),
|
|
42
|
+
enableGroup: o.value.enableGroup
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
b as default
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import "../../_util/cssinjs/StyleContext.mjs";
|
|
2
|
+
import "vue";
|
|
3
|
+
import { unit as r } from "../../_util/cssinjs/util.mjs";
|
|
4
|
+
import "../../_util/cssinjs/theme/ThemeCache.mjs";
|
|
5
|
+
import "../../_util/warning.mjs";
|
|
6
|
+
import "../../_util/cssinjs/transformers/legacyLogicalProperties.mjs";
|
|
7
|
+
import { genStyleHooks as e } from "../../theme/genStyleUtils.mjs";
|
|
8
|
+
import { merge as l } from "../../_util/cssinjs-utils/util/statistic.mjs";
|
|
9
|
+
const t = (o) => {
|
|
10
|
+
const { componentCls: i } = o;
|
|
11
|
+
return {
|
|
12
|
+
[i]: {
|
|
13
|
+
display: "flex",
|
|
14
|
+
flexDirection: "column",
|
|
15
|
+
gap: o.paddingXXS,
|
|
16
|
+
overflowY: "auto",
|
|
17
|
+
padding: o.paddingSM,
|
|
18
|
+
[`&${i}-rtl`]: {
|
|
19
|
+
direction: "rtl"
|
|
20
|
+
},
|
|
21
|
+
// 会话列表
|
|
22
|
+
[`& ${i}-list`]: {
|
|
23
|
+
display: "flex",
|
|
24
|
+
gap: o.paddingXXS,
|
|
25
|
+
flexDirection: "column",
|
|
26
|
+
paddingLeft: 0,
|
|
27
|
+
[`& ${i}-item`]: {
|
|
28
|
+
paddingInlineStart: o.paddingXL
|
|
29
|
+
},
|
|
30
|
+
[`& ${i}-label`]: {
|
|
31
|
+
color: o.colorTextDescription
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
// 会话列表项
|
|
35
|
+
[`& ${i}-item`]: {
|
|
36
|
+
display: "flex",
|
|
37
|
+
height: o.controlHeightLG,
|
|
38
|
+
minHeight: o.controlHeightLG,
|
|
39
|
+
gap: o.paddingXS,
|
|
40
|
+
padding: `0 ${r(o.paddingXS)}`,
|
|
41
|
+
alignItems: "center",
|
|
42
|
+
borderRadius: o.borderRadiusLG,
|
|
43
|
+
cursor: "pointer",
|
|
44
|
+
transition: `all ${o.motionDurationMid} ${o.motionEaseInOut}`,
|
|
45
|
+
// 悬浮样式
|
|
46
|
+
"&:hover": {
|
|
47
|
+
backgroundColor: o.colorBgTextHover
|
|
48
|
+
},
|
|
49
|
+
// 选中样式
|
|
50
|
+
"&-active": {
|
|
51
|
+
backgroundColor: o.colorBgTextHover,
|
|
52
|
+
[`& ${i}-label, ${i}-menu-icon`]: {
|
|
53
|
+
color: o.colorText
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
// 禁用样式
|
|
57
|
+
"&-disabled": {
|
|
58
|
+
cursor: "not-allowed",
|
|
59
|
+
[`& ${i}-label`]: {
|
|
60
|
+
color: o.colorTextDisabled
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
// 悬浮、选中时激活操作菜单
|
|
64
|
+
"&:hover, &-active": {
|
|
65
|
+
[`& ${i}-menu-icon`]: {
|
|
66
|
+
opacity: 1
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
// 会话名
|
|
71
|
+
[`& ${i}-label`]: {
|
|
72
|
+
flex: 1,
|
|
73
|
+
overflow: "hidden",
|
|
74
|
+
textOverflow: "ellipsis",
|
|
75
|
+
color: o.colorText
|
|
76
|
+
},
|
|
77
|
+
// 会话操作菜单
|
|
78
|
+
[`& ${i}-menu-icon`]: {
|
|
79
|
+
opacity: 0,
|
|
80
|
+
fontSize: o.fontSizeXL
|
|
81
|
+
},
|
|
82
|
+
// 会话图标
|
|
83
|
+
[`& ${i}-group-title`]: {
|
|
84
|
+
display: "flex",
|
|
85
|
+
alignItems: "center",
|
|
86
|
+
height: o.controlHeightLG,
|
|
87
|
+
minHeight: o.controlHeightLG,
|
|
88
|
+
padding: `0 ${r(o.paddingXS)}`
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}, n = () => ({}), f = e(
|
|
93
|
+
"Conversations",
|
|
94
|
+
(o) => {
|
|
95
|
+
const i = l(o, {});
|
|
96
|
+
return t(i);
|
|
97
|
+
},
|
|
98
|
+
n
|
|
99
|
+
);
|
|
100
|
+
export {
|
|
101
|
+
f as default,
|
|
102
|
+
n as prepareComponentToken
|
|
103
|
+
};
|
package/es/index.mjs
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defaultPrefixCls as o, default as r } from "./x-provider/hooks/use-x-provider-context.mjs";
|
|
2
|
+
import { _ as f } from "./x-provider/index2.mjs";
|
|
3
|
+
import { default as u } from "./bubble/index.mjs";
|
|
4
|
+
import { default as l } from "./conversations/Conversations.mjs";
|
|
5
|
+
import { default as x } from "./welcome/Welcome.mjs";
|
|
6
|
+
import { default as n } from "./prompts/Prompts.mjs";
|
|
7
|
+
import { default as h } from "./suggestion/Suggestion.mjs";
|
|
8
|
+
import { default as g } from "./sender/index.mjs";
|
|
9
|
+
import { default as b } from "./attachments/index.mjs";
|
|
10
|
+
import { default as c } from "./thought-chain/ThoughtChain.mjs";
|
|
11
|
+
import { default as A } from "./x-stream/x-stream.mjs";
|
|
12
|
+
import { default as B } from "./x-request/x-fetch.mjs";
|
|
13
|
+
import { default as F } from "./x-request/x-request.mjs";
|
|
14
|
+
import { XAgent as R, default as T } from "./use-x-agent/use-x-agent.mjs";
|
|
15
|
+
import { default as _ } from "./use-x-chat/use-x-chat.mjs";
|
|
16
|
+
import { theme as k } from "ant-design-vue";
|
|
17
|
+
import { default as y } from "./bubble/BubbleList.mjs";
|
|
18
|
+
export {
|
|
19
|
+
b as Attachments,
|
|
20
|
+
u as Bubble,
|
|
21
|
+
y as BubbleList,
|
|
22
|
+
l as Conversations,
|
|
23
|
+
n as Prompts,
|
|
24
|
+
g as Sender,
|
|
25
|
+
h as Suggestion,
|
|
26
|
+
c as ThoughtChain,
|
|
27
|
+
x as Welcome,
|
|
28
|
+
R as XAgent,
|
|
29
|
+
B as XFetch,
|
|
30
|
+
f as XProvider,
|
|
31
|
+
F as XRequest,
|
|
32
|
+
A as XStream,
|
|
33
|
+
o as defaultPrefixCls,
|
|
34
|
+
k as theme,
|
|
35
|
+
T as useXAgent,
|
|
36
|
+
_ as useXChat,
|
|
37
|
+
r as useXProviderContext
|
|
38
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { defineComponent as k, mergeDefaults as x, toRef as u, useSlots as g, computed as c, createVNode as a, mergeProps as I } from "vue";
|
|
2
|
+
import { a as P, c as i } from "../attachments/Attachments2.mjs";
|
|
3
|
+
import w from "./style/index.mjs";
|
|
4
|
+
import S from "../x-provider/hooks/use-x-provider-context.mjs";
|
|
5
|
+
import "../x-provider/context.mjs";
|
|
6
|
+
import { Typography as L } from "ant-design-vue";
|
|
7
|
+
import V from "../_util/hooks/use-x-component-config.mjs";
|
|
8
|
+
const X = /* @__PURE__ */ k({
|
|
9
|
+
name: "AXPrompts",
|
|
10
|
+
__name: "Prompts",
|
|
11
|
+
props: x({
|
|
12
|
+
items: null,
|
|
13
|
+
title: null,
|
|
14
|
+
onItemClick: {
|
|
15
|
+
type: Function
|
|
16
|
+
},
|
|
17
|
+
vertical: {
|
|
18
|
+
type: Boolean
|
|
19
|
+
},
|
|
20
|
+
wrap: {
|
|
21
|
+
type: Boolean
|
|
22
|
+
},
|
|
23
|
+
styles: null,
|
|
24
|
+
classNames: null,
|
|
25
|
+
prefixCls: null,
|
|
26
|
+
rootClassName: null
|
|
27
|
+
}, {
|
|
28
|
+
styles: () => ({}),
|
|
29
|
+
classNames: () => ({})
|
|
30
|
+
}),
|
|
31
|
+
setup(e) {
|
|
32
|
+
const y = P(e, ["prefixCls", "title", "class", "items", "onItemClick", "vertical", "wrap", "rootClassName", "styles", "classNames", "style"]);
|
|
33
|
+
u(e, "class"), u(e, "prefixCls");
|
|
34
|
+
const n = g(), {
|
|
35
|
+
getPrefixCls: v,
|
|
36
|
+
direction: C
|
|
37
|
+
} = S(), t = v("prompts", e.prefixCls), l = V("prompts"), [d, N, $] = w(t), f = c(() => i(t, l.value.className, e.class, e.rootClassName, N.value, $, {
|
|
38
|
+
[`${t}-rtl`]: C.value === "rtl"
|
|
39
|
+
})), b = c(() => i(`${t}-list`, l.value.classNames.list, e.classNames.list, {
|
|
40
|
+
[`${t}-list-wrap`]: e.wrap
|
|
41
|
+
}, {
|
|
42
|
+
[`${t}-list-vertical`]: e.vertical
|
|
43
|
+
})), o = c(() => n.title ? n.title() : e.title);
|
|
44
|
+
return () => {
|
|
45
|
+
var r;
|
|
46
|
+
return d(a("div", I(y, {
|
|
47
|
+
class: f.value,
|
|
48
|
+
style: {
|
|
49
|
+
...typeof e.style == "object" ? e.style : {},
|
|
50
|
+
...typeof l.value.style == "object" ? l.value.style : {}
|
|
51
|
+
}
|
|
52
|
+
}), [o.value && a(L.Title, {
|
|
53
|
+
level: 5,
|
|
54
|
+
class: i(`${t}-title`, l.value.classNames.title, e.classNames.title),
|
|
55
|
+
style: {
|
|
56
|
+
...l.value.styles.title,
|
|
57
|
+
...e.styles.title
|
|
58
|
+
}
|
|
59
|
+
}, {
|
|
60
|
+
default: () => [o.value]
|
|
61
|
+
}), a("div", {
|
|
62
|
+
class: b.value,
|
|
63
|
+
style: {
|
|
64
|
+
...l.value.styles.list,
|
|
65
|
+
...e.styles.list
|
|
66
|
+
}
|
|
67
|
+
}, [(r = e.items) == null ? void 0 : r.map((s, h) => {
|
|
68
|
+
const m = s.children && s.children.length > 0;
|
|
69
|
+
return a("div", {
|
|
70
|
+
key: s.key || `key_${h}`,
|
|
71
|
+
style: {
|
|
72
|
+
...l.value.styles.item,
|
|
73
|
+
...e.styles.item
|
|
74
|
+
},
|
|
75
|
+
class: i(`${t}-item`, l.value.classNames.item, e.classNames.item, {
|
|
76
|
+
[`${t}-item-disabled`]: s.disabled,
|
|
77
|
+
[`${t}-item-has-nest`]: m
|
|
78
|
+
}),
|
|
79
|
+
onClick: () => {
|
|
80
|
+
!m && e.onItemClick && e.onItemClick({
|
|
81
|
+
data: s
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}, [s.icon && a("div", {
|
|
85
|
+
class: `${t}-icon`
|
|
86
|
+
}, [s.icon]), a("div", {
|
|
87
|
+
class: i(`${t}-content`, l.value.classNames.itemContent, e.classNames.itemContent),
|
|
88
|
+
style: {
|
|
89
|
+
...l.value.styles.itemContent,
|
|
90
|
+
...e.styles.itemContent
|
|
91
|
+
}
|
|
92
|
+
}, [s.label && a("h6", {
|
|
93
|
+
class: `${t}-label`
|
|
94
|
+
}, [s.label]), s.description && a("p", {
|
|
95
|
+
class: `${t}-desc`
|
|
96
|
+
}, [s.description]), m && a(X, {
|
|
97
|
+
class: `${t}-nested`,
|
|
98
|
+
items: s.children,
|
|
99
|
+
vertical: !0,
|
|
100
|
+
onItemClick: e.onItemClick,
|
|
101
|
+
classNames: {
|
|
102
|
+
list: e.classNames.subList,
|
|
103
|
+
item: e.classNames.subItem
|
|
104
|
+
},
|
|
105
|
+
styles: {
|
|
106
|
+
list: e.styles.subList,
|
|
107
|
+
item: e.styles.subItem
|
|
108
|
+
}
|
|
109
|
+
}, null)])]);
|
|
110
|
+
})])]));
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
export {
|
|
115
|
+
X as default
|
|
116
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|