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 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("../../_util/cssinjs/StyleContext.js");require("vue");const c=require("../../_util/cssinjs/util.js");require("../../_util/cssinjs/theme/ThemeCache.js");require("../../_util/warning.js");require("../../_util/cssinjs/transformers/legacyLogicalProperties.js");const u=require("../../_util/cssinjs-utils/util/statistic.js"),g=require("../../theme/genStyleUtils.js");require("../../transition-collapse/index.js");const p=require("./header.js"),b=require("../../transition-collapse/style/index.js"),S=e=>{const{componentCls:i,padding:o,paddingSM:r,paddingXS:n,paddingXXS:d,lineWidth:l,lineWidthBold:a,calc:s}=e;return{[i]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${e.boxShadowTertiary}`,transition:`background ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:s(e.borderRadius).mul(2).equal()},borderColor:e.colorBorder,borderWidth:0,borderStyle:"solid","&:after":{content:'""',position:"absolute",inset:0,pointerEvents:"none",transition:`border-color ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:"inherit"},borderStyle:"inherit",borderColor:"inherit",borderWidth:l},"&:focus-within":{boxShadow:`${e.boxShadowSecondary}`,borderColor:e.colorPrimary,"&:after":{borderWidth:a}},"&-disabled":{background:e.colorBgContainerDisabled},[`&${i}-rtl`]:{direction:"rtl"},[`${i}-content`]:{display:"flex",gap:n,width:"100%",paddingBlock:r,paddingInlineStart:o,paddingInlineEnd:r,boxSizing:"border-box",alignItems:"flex-end"},[`${i}-prefix`]:{flex:"none"},[`${i}-input`]:{padding:0,borderRadius:0,flex:"auto",alignSelf:"center",minHeight:"auto"},[`${i}-actions-list`]:{flex:"none",display:"flex","&-presets":{gap:e.paddingXS}},[`${i}-actions-btn`]:{"&-disabled":{opacity:.45},"&-loading-button":{padding:0,border:0},"&-loading-icon":{height:e.controlHeight,width:e.controlHeight,verticalAlign:"top"},"&-recording-icon":{height:"1.2em",width:"1.2em",verticalAlign:"top"}},[`${i}-footer`]:{paddingInlineStart:o,paddingInlineEnd:r,paddingBlockEnd:r,paddingBlockStart:d,boxSizing:"border-box"}}}},t=()=>({}),h=g.genStyleHooks("Sender",e=>{const{paddingXS:i,calc:o}=e,r=u.merge(e,{SenderContentMaxWidth:`calc(100% - ${c.unit(o(i).add(32).equal())})`});return[S(r),p.default(r),b.genTransitionCollapseStyle(r)]},t);exports.default=h;exports.prepareComponentToken=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const _=require("../_util/hooks/useMergedState.js"),o=require("vue");let r;!r&&typeof window<"u"&&(r=window.SpeechRecognition||window.webkitSpeechRecognition);function b(g,h){const w=g,i=o.computed(()=>{const e=o.toValue(h);return typeof e=="object"?{controlledRecording:e.recording,onControlledRecordingChange:e.onRecordingChange,speechInControlled:typeof e.recording=="boolean"}:{controlledRecording:void 0,onControlledRecordingChange:void 0,speechInControlled:!1}}),S=o.computed(()=>i.value.controlledRecording),n=i.value.onControlledRecordingChange,m=i.value.speechInControlled,s=o.ref(null);o.watchEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let e=null;navigator.permissions.query({name:"microphone"}).then(l=>{s.value=l.state,l.onchange=function(){s.value=this.state},e=l}),o.onWatcherCleanup(()=>{e&&(e.onchange=null)})}});const a=o.computed(()=>r&&s.value!=="denied"),t=o.ref(null),[c,d]=_.default(!1,{value:S}),u=o.ref(!1),R=()=>{if(a.value&&!t.value){const e=new r;e.onstart=()=>{d(!0)},e.onend=()=>{d(!1)},e.onresult=l=>{var f,p,v;if(!u.value){const y=(v=(p=(f=l.results)==null?void 0:f[0])==null?void 0:p[0])==null?void 0:v.transcript;w(y)}u.value=!1},t.value=e}};return{speechPermission:a,triggerSpeech:e=>{e&&!c.value||(u.value=e,m?n==null||n(!c.value):(R(),t.value&&(c.value?(t.value.stop(),n==null||n(!1)):(t.value.start(),n==null||n(!0)))))},recording:c}}exports.default=b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),h=require("../attachments/Attachments2.js"),O=require("../x-provider/hooks/use-x-provider-context.js");require("../x-provider/context.js");const D=require("ant-design-vue"),F=require("../_util/hooks/use-x-component-config.js"),P=require("./style/index.js"),y=require("../_util/hooks/use-state.js"),A=require("./useActive.js"),L=n.defineComponent({name:"AXSuggestion",__name:"Suggestion",props:n.mergeDefaults({prefixCls:null,className:null,rootClassName:null,style:null,children:{type:Function},open:{type:Boolean},onOpenChange:{type:Function},items:{type:Function},onSelect:{type:Function},block:{type:Boolean},styles:null,classNames:null},{open:!1}),setup(e){n.toRef(e,"prefixCls");const o=n.useSlots(),{direction:S,getPrefixCls:N}=O.default(),s=n.computed(()=>N("suggestion",e.prefixCls));`${s.value}`;const a=n.computed(()=>S.value==="rtl"),u=F.default("suggestion"),[q,c,i]=P.default(s),[r,b]=y.default(e.open),[k,x]=y.default(),l=t=>{var C;b(t),(C=e.onOpenChange)==null||C.call(e,t)},d=t=>{t===!1?l(!1):(x(t),l(!0))},f=()=>{l(!1)},g=n.computed(()=>typeof e.items=="function"?e.items(k.value):e.items),m=t=>{e.onSelect&&e.onSelect(t[t.length-1]),l(!1)},[V,v]=A.default(g,r,a,m,f),w=n.computed(()=>{var t;return o.default?o.default({onTrigger:d,onKeyDown:v}):(t=e.children)==null?void 0:t.call(e,{onTrigger:d,onKeyDown:v})});return()=>q(n.createVNode(D.Cascader,{options:g.value,open:r.value,value:V.value,placement:a.value?"topRight":"topLeft",onDropdownVisibleChange:t=>{t||f()},class:h.classnames(e.rootClassName,s.value,c,i,{[`${s.value}-block`]:e.block}),onChange:m,dropdownMatchSelectWidth:e.block},{default:()=>n.createVNode("div",{class:h.classnames(s.value,u.value.className,e.rootClassName,e.className,`${s.value}-wrapper`,c.value,i),style:{...u.value.style,...e.style}},[w.value])}))}});exports.default=L;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Suggestion.js");exports.Suggestion=e.default;exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("vue");require("../../_util/cssinjs/StyleContext.js");require("../../_util/cssinjs/theme/ThemeCache.js");require("../../_util/warning.js");require("../../_util/cssinjs/transformers/legacyLogicalProperties.js");const i=require("../../_util/cssinjs-utils/util/statistic.js"),s=require("../../theme/genStyleUtils.js"),o=t=>{const{componentCls:e,antCls:n}=t;return{[e]:{[`${n}-cascader-menus ${n}-cascader-menu`]:{height:"auto"},[`${e}-item`]:{"&-icon":{marginInlineEnd:t.paddingXXS},"&-extra":{marginInlineStart:t.padding}},[`&${e}-block`]:{[`${e}-item-extra`]:{marginInlineStart:"auto"}}}}},r=()=>({}),u=s.genStyleHooks("Suggestion",t=>{const e=i.merge(t,{});return o(e)},r);exports.default=u;exports.prepareComponentToken=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("vue"),_=require("../_util/hooks/use-event-callback.js"),D=require("../_util/hooks/use-state.js");function V(f,v,h,b,m){const[t,o]=D.default([]),c=(e,l=t.value)=>{let a=u.toValue(f);for(let r=0;r<e-1;r+=1){const n=l[r],s=a.find(i=>i.value===n);if(!s)break;a=s.children||[]}return a},w=e=>e.map((l,a)=>{const n=c(a+1,e).find(s=>s.value===l);return n==null?void 0:n.value}),g=e=>{const l=t.value.length||1,a=c(l),r=a.findIndex(i=>i.value===t.value[l-1]),n=a.length,s=a[(r+e+n)%n];o([...t.value.slice(0,l-1),s.value])},d=()=>{t.value.length>1&&o(t.value.slice(0,t.value.length-1))},k=()=>{const e=c(t.value.length+1);e.length&&o([...t.value,e[0].value])},I=_.useEventCallback(e=>{if(u.toValue(v))switch(console.log("e.key",e),e.key){case"ArrowDown":g(1),e.preventDefault();break;case"ArrowUp":g(-1),e.preventDefault();break;case"ArrowRight":u.toValue(h)?d():k(),e.preventDefault();break;case"ArrowLeft":u.toValue(h)?k():d(),e.preventDefault();break;case"Enter":c(t.value.length+1).length||b(w(t.value)),e.preventDefault();break;case"Escape":m(),e.preventDefault();break}});return u.watch(()=>u.toValue(v),()=>{u.toValue(v)&&o([u.toValue(f)[0].value])},{immediate:!0}),[t,I]}exports.default=V;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../_util/cssinjs-utils/util/genStyleUtils.js"),n=require("../x-provider/hooks/use-x-provider-context.js"),l=require("vue");require("../x-provider/context.js");require("ant-design-vue");const i=require("./useToken.js"),{genStyleHooks:a,genComponentStyleHook:c,genSubStyleComponent:d}=u.default({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=n.default();return{iconPrefixCls:l.unref(t),rootPrefixCls:e()}},useToken:()=>{const[e,t,o,r,s]=i.useInternalToken();return{theme:e,realToken:t,hashId:o,token:r,cssVar:s}},useCSP:()=>{const{csp:e}=n.default();return(e==null?void 0:e.value)??{}},layer:{name:"antdx",dependencies:["antd"]}});exports.genComponentStyleHook=c;exports.genStyleHooks=a;exports.genSubStyleComponent=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("ant-design-vue");Object.defineProperty(exports,"theme",{enumerable:!0,get:()=>e.theme});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},t={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0};exports.ignore=e;exports.unitless=t;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const X=require("../_util/cssinjs/hooks/useCacheToken.tsx2.js");require("../_util/cssinjs/StyleContext.js");const k=require("../_util/cssinjs/theme/createTheme.js");require("../_util/warning.js");require("../_util/cssinjs/theme/ThemeCache.js");const s=require("vue");require("../_util/cssinjs/transformers/legacyLogicalProperties.js");const f=require("ant-design-vue"),M=require("./patch-antd.js"),x=require("../attachments/FileList/FileList2.js"),L=require("../version/version.js");function g(){return g=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var o in t)({}).hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r},g.apply(null,arguments)}function h(r){return r>=0&&r<=255}function m(r,i){const{r:t,g:o,b:e,a:c}=new x.TinyColor(r).toRgb();if(c<1)return r;const{r:a,g:u,b:p}=new x.TinyColor(i).toRgb();for(let n=.01;n<=1;n+=.01){const l=Math.round((t-a*(1-n))/n),d=Math.round((o-u*(1-n))/n),b=Math.round((e-p*(1-n))/n);if(h(l)&&h(d)&&h(b))return new x.TinyColor({r:l,g:d,b,a:Math.round(n*100)/100}).toRgbString()}return new x.TinyColor({r:t,g:o,b:e,a:1}).toRgbString()}const z={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},C=g(g({},z),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
2
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
3
|
+
'Noto Color Emoji'`,fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});var w=function(r,i){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.indexOf(o)<0&&(t[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,o=Object.getOwnPropertySymbols(r);e<o.length;e++)i.indexOf(o[e])<0&&Object.prototype.propertyIsEnumerable.call(r,o[e])&&(t[o[e]]=r[o[e]]);return t};function B(r){const{override:i}=r,t=w(r,["override"]),o=g({},i);Object.keys(C).forEach(S=>{delete o[S]});const e=g(g({},t),o),c=480,a=576,u=768,p=992,n=1200,l=1600,d=2e3;return g(g(g({},e),{colorLink:e.colorInfoText,colorLinkHover:e.colorInfoHover,colorLinkActive:e.colorInfoActive,colorFillContent:e.colorFillSecondary,colorFillContentHover:e.colorFill,colorFillAlter:e.colorFillQuaternary,colorBgContainerDisabled:e.colorFillTertiary,colorBorderBg:e.colorBgContainer,colorSplit:m(e.colorBorderSecondary,e.colorBgContainer),colorTextPlaceholder:e.colorTextQuaternary,colorTextDisabled:e.colorTextQuaternary,colorTextHeading:e.colorText,colorTextLabel:e.colorTextSecondary,colorTextDescription:e.colorTextTertiary,colorTextLightSolid:e.colorWhite,colorHighlight:e.colorError,colorBgTextHover:e.colorFillSecondary,colorBgTextActive:e.colorFill,colorIcon:e.colorTextTertiary,colorIconHover:e.colorText,colorErrorOutline:m(e.colorErrorBg,e.colorBgContainer),colorWarningOutline:m(e.colorWarningBg,e.colorBgContainer),fontSizeIcon:e.fontSizeSM,lineWidth:e.lineWidth,controlOutlineWidth:e.lineWidth*2,controlInteractiveSize:e.controlHeight/2,controlItemBgHover:e.colorFillTertiary,controlItemBgActive:e.colorPrimaryBg,controlItemBgActiveHover:e.colorPrimaryBgHover,controlItemBgActiveDisabled:e.colorFill,controlTmpOutline:e.colorFillQuaternary,controlOutline:m(e.colorPrimaryBg,e.colorBgContainer),lineType:e.lineType,borderRadius:e.borderRadius,borderRadiusXS:e.borderRadiusXS,borderRadiusSM:e.borderRadiusSM,borderRadiusLG:e.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:e.sizeXXS,paddingXS:e.sizeXS,paddingSM:e.sizeSM,padding:e.size,paddingMD:e.sizeMD,paddingLG:e.sizeLG,paddingXL:e.sizeXL,paddingContentHorizontalLG:e.sizeLG,paddingContentVerticalLG:e.sizeMS,paddingContentHorizontal:e.sizeMS,paddingContentVertical:e.sizeSM,paddingContentHorizontalSM:e.size,paddingContentVerticalSM:e.sizeXS,marginXXS:e.sizeXXS,marginXS:e.sizeXS,marginSM:e.sizeSM,margin:e.size,marginMD:e.sizeMD,marginLG:e.sizeLG,marginXL:e.sizeXL,marginXXL:e.sizeXXL,boxShadow:`
|
|
4
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
5
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
6
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
7
|
+
`,boxShadowSecondary:`
|
|
8
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
9
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
10
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
11
|
+
`,boxShadowTertiary:`
|
|
12
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
13
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
14
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
15
|
+
`,screenXS:c,screenXSMin:c,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:p-1,screenLG:p,screenLGMin:p,screenLGMax:n-1,screenXL:n,screenXLMin:n,screenXLMax:l-1,screenXXL:l,screenXXLMin:l,screenXXLMax:d-1,screenXXXL:d,screenXXXLMin:d,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`
|
|
16
|
+
0 1px 2px -2px ${new x.TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
17
|
+
0 3px 6px 0 ${new x.TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
18
|
+
0 5px 12px 4px ${new x.TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
19
|
+
`,boxShadowDrawerRight:`
|
|
20
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
21
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
22
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
23
|
+
`,boxShadowDrawerLeft:`
|
|
24
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
25
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
26
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
27
|
+
`,boxShadowDrawerUp:`
|
|
28
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
29
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
30
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
31
|
+
`,boxShadowDrawerDown:`
|
|
32
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
33
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
34
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
35
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o)}const D=k.default(f.theme.defaultAlgorithm),O={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},T=(r,i,t)=>{const o=t.getDerivativeToken(r),{override:e,...c}=i;let a={...o,override:e};return a=B(a),c&&Object.entries(c).forEach(([u,p])=>{const{theme:n,...l}=p;let d=l;n&&(d=T({...a,...l},{override:l},n)),a[u]=d}),a};function v(){const{token:r,hashId:i,theme:t}=f.theme.useToken(),o=s.computed(()=>({token:r.value,hashed:i.value,theme:t.value})),{override:e,cssVar:c}=s.unref(o),a=s.computed(()=>o.value.token),u=s.computed(()=>o.value.hashed),p=s.computed(()=>o.value.theme??D),n=X.useCacheToken(s.computed(()=>p.value),s.computed(()=>[f.theme.defaultSeed,a.value]),s.computed(()=>({salt:`${L.default}-${u.value||""}`,override:e,getComputedToken:T,cssVar:c&&{prefix:c.prefix,key:c.key,unitless:M.unitless,ignore:M.ignore,preserve:O}}))),[l,d,b]=s.unref(n),S=s.computed(()=>n.value[0]),y=s.computed(()=>u.value?n.value[1]:"");return[p,b,y,S,c]}function I(){const[r,i,t]=v();return{theme:r,token:i,hashId:t}}exports.default=I;exports.getComputedToken=T;exports.useInternalToken=v;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),l=require("../attachments/Attachments2.js"),q=require("../_util/pick-attrs.js"),P=require("../x-provider/hooks/use-x-provider-context.js");require("../x-provider/context.js");require("ant-design-vue");const b=require("../_util/hooks/use-x-component-config.js"),k=require("./hooks/useCollapsible.js"),F=require("./style/index.js"),H=require("./context.js"),S=require("./item.js"),V=t.defineComponent({name:"AXThoughtChain",__name:"ThoughtChain",props:t.mergeDefaults({items:null,collapsible:{type:Boolean},size:null,styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({}),size:"middle"}),setup(e){const m=l.createPropsRestProxy(e,["prefixCls","rootClassName","class","items","collapsible","styles","style","classNames","size"]);t.toRef(e,"class"),t.toRef(e,"prefixCls");const d=t.computed(()=>q.default(m,{attr:!0,aria:!0,data:!0})),{getPrefixCls:n,direction:i}=P.default(),C=t.computed(()=>n()),a=t.computed(()=>n("thought-chain",e.prefixCls)),s=b.default("thoughtChain"),[h,v,y]=k.default(()=>e.collapsible,a.value,C.value),[f,N,g]=F.default(a),x=t.computed(()=>l.classnames(e.class,e.rootClassName,a.value,s.value.className,N.value,g,{[`${a.value}-rtl`]:i.value==="rtl"},`${a.value}-${e.size}`));return()=>f(t.createVNode("div",t.mergeProps(d.value,{class:x.value,style:{...typeof s.value.style=="object"?s.value.style:{},...typeof e.style=="object"?e.style:{}}}),[t.createVNode(H.ThoughtChainNodeContextProvider,{value:{prefixCls:a.value,enableCollapse:h.value,expandedKeys:v.value,direction:i.value,classNames:{itemHeader:l.classnames(s.value.classNames.itemHeader,e.classNames.itemHeader),itemContent:l.classnames(s.value.classNames.itemContent,e.classNames.itemContent),itemFooter:l.classnames(s.value.classNames.itemFooter,e.classNames.itemFooter)},styles:{itemHeader:{...s.value.styles.itemHeader,...e.styles.itemHeader},itemContent:{...s.value.styles.itemContent,...e.styles.itemContent},itemFooter:{...s.value.styles.itemFooter,...e.styles.itemFooter}}}},{default:()=>{var c;return[(c=e.items)==null?void 0:c.map((o,u)=>{var r;return t.createVNode(S.default,{key:o.key||`key_${u}`,class:l.classnames(s.value.classNames.item,e.classNames.item),style:{...s.value.styles.item,...e.styles.item},info:{...o,icon:o.icon||u+1},onClick:y,nextStatus:((r=e.items[u+1])==null?void 0:r.status)||o.status},null)})]}})]))}});exports.default=V;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../_util/type.js"),h=Symbol("ThoughtChainNodeContext"),o=e.shallowRef(),r=t=>{e.provide(h,t),e.watch(t,()=>{o.value=e.unref(t),e.triggerRef(o)},{immediate:!0,deep:!0})},a=()=>e.inject(h,e.computed(()=>o.value||{})),i=e.defineComponent({props:{value:d.objectType()},setup(t,{slots:n}){return r(e.computed(()=>t.value)),()=>{var u;return(u=n.default)==null?void 0:u.call(n)}}});exports.ThoughtChainNodeContextProvider=i;exports.default=i;exports.globalThoughtChainNodeContextApi=o;exports.useThoughtChainNodeContextInject=a;exports.useThoughtChainNodeContextProvider=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../_util/hooks/use-state.js"),l=require("vue"),c=(u,x,f)=>{const t=l.computed(()=>{const s=l.toValue(u);let e={expandedKeys:[],onExpand:()=>{}};return s?(typeof s=="object"&&(e={...e,...s}),{enableCollapse:!0,customizeExpandedKeys:e.expandedKeys,customizeOnExpand:e.onExpand}):{enableCollapse:!1,customizeExpandedKeys:e.expandedKeys,customizeOnExpand:e.onExpand}}),[a,d]=r.default(t.value.customizeExpandedKeys),p=s=>{var n,o;if(!t.value.enableCollapse)return;const e=a.value.includes(s)?a.value.filter(i=>i!==s):[...a.value,s];(o=(n=t.value).customizeOnExpand)==null||o.call(n,e),d(e)};return[l.computed(()=>t.value.enableCollapse),a,p]};exports.default=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ThoughtChain.js");exports.ThoughtChain=e.default;exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var r=(e=>(e.PENDING="pending",e.SUCCESS="success",e.ERROR="error",e))(r||{});exports.THOUGHT_CHAIN_ITEM_STATUS=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../attachments/Attachments2.js"),S=require("../_util/pick-attrs.js"),P=require("./context.js"),f=require("ant-design-vue");require("../transition-collapse/index.js");const $=require("../attachments/FileList/FileList2.js"),F=require("../transition-collapse/TransitionCollapse.js"),L=e.defineComponent({name:"AXThoughtChainNode",__name:"item",props:e.mergeDefaults({info:null,nextStatus:null,onClick:{type:Function}},{info:()=>({})}),setup(t){const n=l.createPropsRestProxy(t,["info","nextStatus","onClick"]),g=e.computed(()=>S.default(n,{attr:!0,aria:!0,data:!0})),o=P.useThoughtChainNodeContextInject(),p=e.computed(()=>o.value.prefixCls),c=e.computed(()=>o.value.enableCollapse),V=e.computed(()=>o.value.expandedKeys),i=e.computed(()=>o.value.direction),d=e.computed(()=>o.value.classNames),r=e.computed(()=>o.value.styles),T=e.useId(),h=e.computed(()=>t.info.key??T),b=e.computed(()=>t.info.icon),C=e.computed(()=>t.info.title),x=e.computed(()=>t.info.extra),u=e.computed(()=>t.info.content),y=e.computed(()=>t.info.footer),N=e.computed(()=>t.info.status),v=e.computed(()=>t.info.description),a=e.computed(()=>`${p.value}-item`),k=()=>{var s;return(s=t.onClick)==null?void 0:s.call(t,h.value)},m=e.computed(()=>{var s;return(s=V.value)==null?void 0:s.includes(h.value)}),q=e.computed(()=>c.value?m.value:!0);return()=>e.createVNode("div",e.mergeProps(g.value,{class:l.classnames(a.value,{[`${a.value}-${N.value}${t.nextStatus?`-${t.nextStatus}`:""}`]:N.value},n.class),style:n.style}),[e.createVNode("div",{class:l.classnames(`${a.value}-header`,d.value.itemHeader),style:r.value.itemHeader,onClick:k},[e.createVNode(f.Avatar,{icon:b.value,class:`${a.value}-icon`},null),e.createVNode("div",{class:l.classnames(`${a.value}-header-box`,{[`${a.value}-collapsible`]:c.value&&u.value})},[e.createVNode(f.Typography.Text,{strong:!0,ellipsis:{tooltip:{placement:i.value==="rtl"?"topRight":"topLeft",title:C.value}},class:`${a.value}-title`},{default:()=>[c.value&&u.value&&(i.value==="rtl"?e.createVNode($.LeftOutlined,{class:`${a.value}-collapse-icon`,rotate:m.value?-90:0},null):e.createVNode($.RightOutlined,{class:`${a.value}-collapse-icon`,rotate:m.value?90:0},null)),C.value]}),v.value&&e.createVNode(f.Typography.Text,{class:`${a.value}-desc`,ellipsis:{tooltip:{placement:i.value==="rtl"?"topRight":"topLeft",title:v.value}},type:"secondary"},{default:()=>[v.value]})]),x.value&&e.createVNode("div",{class:`${a.value}-extra`},[x.value])]),e.createVNode(F.default,{prefixCls:p.value},{default:()=>[u.value&&e.withDirectives(e.createVNode("div",{class:l.classnames(`${a.value}-content`)},[e.createVNode("div",{class:l.classnames(`${a.value}-content-box`,d.value.itemContent),style:r.value.itemContent},[u.value])]),[[e.vShow,q.value]])]}),y.value&&e.createVNode("div",{class:l.classnames(`${a.value}-footer`,d.value.itemFooter),style:r.value.itemFooter},[y.value])])}});exports.default=L;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("../../_util/cssinjs/StyleContext.js");require("vue");const S=require("../../_util/cssinjs/util.js");require("../../_util/cssinjs/theme/ThemeCache.js");require("../../_util/warning.js");require("../../_util/cssinjs/transformers/legacyLogicalProperties.js");const h=require("../../_util/cssinjs-utils/util/statistic.js"),g=require("../../theme/genStyleUtils.js");require("../../transition-collapse/index.js");const a=require("../interface.js"),p=require("../../transition-collapse/style/index.js"),z=e=>{const{componentCls:t}=e,i=`${t}-item`,l={[a.THOUGHT_CHAIN_ITEM_STATUS.PENDING]:e.colorPrimaryText,[a.THOUGHT_CHAIN_ITEM_STATUS.SUCCESS]:e.colorSuccessText,[a.THOUGHT_CHAIN_ITEM_STATUS.ERROR]:e.colorErrorText},r=Object.keys(l);return r.reduce((m,o)=>{const c=l[o];return r.forEach(n=>{const d=`& ${i}-${o}-${n}`,u=o===n?{}:{backgroundColor:"none !important",backgroundImage:`linear-gradient(${c}, ${l[n]})`};m[d]={[`& ${i}-icon, & > *::before`]:{backgroundColor:`${c} !important`},"& > :last-child::before":u}}),m},{})},$=e=>{const{calc:t,componentCls:i}=e,l=`${i}-item`,r={content:'""',width:t(e.lineWidth).mul(2).equal(),display:"block",position:"absolute",insetInlineEnd:"none",backgroundColor:e.colorTextPlaceholder};return{"& > :last-child > :last-child":{"&::before":{display:"none !important"},[`&${l}-footer`]:{"&::before":{display:"block !important",bottom:0}}},[`& > ${l}`]:{[`& ${l}-header, & ${l}-content, & ${l}-footer`]:{position:"relative","&::before":{bottom:t(e.itemGap).mul(-1).equal()}},[`& ${l}-header, & ${l}-content`]:{marginInlineStart:t(e.itemSize).mul(-1).equal(),"&::before":{...r,insetInlineStart:t(e.itemSize).div(2).sub(e.lineWidth).equal()}},[`& ${l}-header::before`]:{top:e.itemSize,bottom:t(e.itemGap).mul(-2).equal()},[`& ${l}-content::before`]:{top:"100%"},[`& ${l}-footer::before`]:{...r,top:0,insetInlineStart:t(e.itemSize).div(-2).sub(e.lineWidth).equal()}}}},f=e=>{const{componentCls:t}=e,i=`${t}-item`;return{[i]:{display:"flex",flexDirection:"column",[`& ${i}-collapsible`]:{cursor:"pointer"},[`& ${i}-header`]:{display:"flex",marginBottom:e.itemGap,gap:e.itemGap,alignItems:"flex-start",[`& ${i}-icon`]:{height:e.itemSize,width:e.itemSize,fontSize:e.itemFontSize,display:"flex",justifyContent:"center",alignItems:"center"},[`& ${i}-extra`]:{height:e.itemSize,maxHeight:e.itemSize},[`& ${i}-header-box`]:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",[`& ${i}-title`]:{height:e.itemSize,lineHeight:`${S.unit(e.itemSize)}`,maxHeight:e.itemSize,fontSize:e.itemFontSize,[`& ${i}-collapse-icon`]:{marginInlineEnd:e.marginXS}},[`& ${i}-desc`]:{fontSize:e.itemFontSize}}},[`& ${i}-content`]:{[`& ${i}-content-hidden`]:{display:"none"},[`& ${i}-content-box`]:{padding:e.itemGap,display:"inline-block",maxWidth:`calc(100% - ${e.itemSize})`,borderRadius:e.borderRadiusLG,backgroundColor:e.colorBgContainer,border:`${S.unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}},[`& ${i}-footer`]:{marginTop:e.itemGap,display:"inline-flex"}}}},s=(e,t="middle")=>{const{componentCls:i}=e,l={large:{itemSize:e.itemSizeLG,itemGap:e.itemGapLG,itemFontSize:e.itemFontSizeLG},middle:{itemSize:e.itemSize,itemGap:e.itemGap,itemFontSize:e.itemFontSize},small:{itemSize:e.itemSizeSM,itemGap:e.itemGapSM,itemFontSize:e.itemFontSizeSM}}[t];return{[`&${i}-${t}`]:{paddingInlineStart:l.itemSize,gap:l.itemGap,...f({...e,...l}),...$({...e,...l})}}},b=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",...z(e),...s(e),...s(e,"large"),...s(e,"small"),[`&${t}-rtl`]:{direction:"rtl"}}}},T=g.genStyleHooks("ThoughtChain",e=>{const t=h.merge(e,{itemFontSizeSM:e.fontSizeSM,itemSizeSM:e.calc(e.controlHeightXS).add(e.controlHeightSM).div(2).equal(),itemGapSM:e.marginSM,itemFontSize:e.fontSize,itemSize:e.calc(e.controlHeightSM).add(e.controlHeight).div(2).equal(),itemGap:e.margin,itemFontSizeLG:e.fontSizeLG,itemSizeLG:e.calc(e.controlHeight).add(e.controlHeightLG).div(2).equal(),itemGapLG:e.marginLG});return[b(t),p.genTransitionCollapseStyle(t)]});exports.default=T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),i=o.defineComponent({name:"AXTransitionCollapse",__name:"TransitionCollapse",props:{prefixCls:{default:"ax"}},setup(d){const s=d,a=o.useSlots(),n=o.computed(()=>s.prefixCls+"-transition-collapse"),e={beforeEnter(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.maxHeight="0",t.style.paddingTop="0",t.style.paddingBottom="0"},enter(t){t.dataset.oldOverflow=t.style.overflow,t.scrollHeight!==0?(t.style.maxHeight=`${t.scrollHeight}px`,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom):(t.style.maxHeight=`${t.dataset.oldMaxHeight||"999"}px`,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom),t.style.overflow="hidden"},afterEnter(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow},beforeLeave(t){t.dataset||(t.dataset={}),t.dataset.oldMaxHeight=t.scrollHeight,t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.overflow="hidden",t.style.maxHeight=`${t.scrollHeight}px`},leave(t){t.scrollHeight!==0&&(t.style.maxHeight="0",t.style.paddingTop="0",t.style.paddingBottom="0")},afterLeave(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom}};return()=>o.createVNode(o.Transition,{name:n.value,onBeforeEnter:e.beforeEnter,onEnter:e.enter,onAfterEnter:e.afterEnter,onBeforeLeave:e.beforeLeave,onLeave:e.leave,onAfterLeave:e.afterLeave},{default:()=>{var t;return[(t=a.default)==null?void 0:t.call(a)]}})}});exports.default=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./TransitionCollapse.js"),l=require("./style/index.js");e.default.install=function(t){return t.component(e.default.name,e.default),t};exports.TransitionCollapse=e.default;exports.default=e.default;exports.genTransitionCollapseStyle=l.genTransitionCollapseStyle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=t=>{const{componentCls:n}=t,i=`${n}-transition-collapse`;return{[n]:{[i]:{"&-enter-active":{transition:["max-height","padding-top","padding-bottom"].map(o=>`${o} ${t.motionDurationSlow} ${t.motionEaseInOut}`).join(",")},"&-leave-active":{transition:["max-height","padding-top","padding-bottom"].map(o=>`${o} ${t.motionDurationSlow} ${t.motionEaseInOut}`).join(",")}}}}};exports.genTransitionCollapseStyle=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./use-x-agent.js");exports.XAgent=e.XAgent;exports.default=e.default;exports.useXAgent=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("../x-request/x-request.js"),d=require("vue");let o=0;class a{constructor(s){this.requestingMap={},this.request=(e,r)=>{const{request:n}=this.config,{onUpdate:c,onSuccess:g,onError:q}=r,t=o;o+=1,this.requestingMap[t]=!0,n==null||n(e,{onUpdate:i=>{this.requestingMap[t]&&c(i)},onSuccess:i=>{this.requestingMap[t]&&(g(i),this.finishRequest(t))},onError:i=>{this.requestingMap[t]&&(q(i),this.finishRequest(t))}})},this.config=s}finishRequest(s){delete this.requestingMap[s]}isRequesting(){return Object.keys(this.requestingMap).length>0}}function l(u){const{request:s,...e}=u;return[d.computed(()=>new a({request:s||h.default({baseURL:e.baseURL,model:e.model,dangerouslyApiKey:e.dangerouslyApiKey}).create,...e}))]}exports.XAgent=a;exports.default=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./use-x-chat.js");exports.default=e.default;exports.useXChat=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const p=require("vue"),w=require("./useSyncState.js"),P=require("../_util/hooks/use-event-callback.js");function R(o){return Array.isArray(o)?o:[o]}function S(o){const{defaultMessages:b,agent:M,requestFallback:d,requestPlaceholder:c,parser:m}=o,q=p.ref(0),y=p.computed(()=>(b||[]).map((r,e)=>({id:`default_${e}`,status:"local",...r}))),[g,l]=w.default(y.value,()=>{}),f=(r,e)=>{const n={id:`msg_${q.value}`,message:r,status:e};return q.value+=1,n},k=p.computed(()=>{const r=[];return g.value.forEach(e=>{const n=m?m(e.message):e.message,i=R(n);i.forEach((a,t)=>{let s=e.id;i.length>1&&(s=`${s}_${t}`),r.push({id:s,message:a,status:e.status})})}),r}),v=r=>r.filter(e=>e.status!=="loading"&&e.status!=="error").map(e=>e.message),_=()=>v(g.value);return{onRequest:P.useEventCallback(r=>{if(!M)throw new Error("The agent parameter is required when using the onRequest method in an agent generated by useXAgent.");let e=null;l(a=>{let t=[...a,f(r,"local")];if(c){let s;typeof c=="function"?s=c(r,{messages:v(t)}):s=c;const u=f(s,"loading");e=u.id,t=[...t,u]}return t});let n=null;const i=(a,t)=>{let s=g.value.find(u=>u.id===n);return s?l(u=>u.map(h=>h.id===n?{...h,message:a,status:t}:h)):(s=f(a,t),l(u=>[...u.filter(E=>E.id!==e),s]),n=s.id),s};M.request({message:r,messages:_()},{onUpdate:a=>{i(a,"loading")},onSuccess:a=>{i(a,"success")},onError:async a=>{if(d){let t;typeof d=="function"?t=await d(r,{error:a,messages:_()}):t=d,l(s=>[...s.filter(u=>u.id!==e&&u.id!==n),f(t,"error")])}else l(t=>t.filter(s=>s.id!==e&&s.id!==n))}})}),messages:g,parsedMessages:k,setMessages:l}}exports.default=S;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue");function s(n,o){const e=a.ref(n);function l(t){const u=typeof t=="function"?t(e.value):t;u!==e.value&&o(u,e.value),e.value=u}return[e,l]}exports.default=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../_util/supportsPassive.js");function r(e,s,t,u){if(e&&e.addEventListener){let i=u;i===void 0&&o.default&&(s==="touchstart"||s==="touchmove"||s==="wheel")&&(i={passive:!1}),e.addEventListener(s,t,i)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(s,t)}}}exports.default=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}exports.default=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(s,i){return s.classList?s.classList.contains(i):` ${s.className} `.indexOf(` ${i} `)>-1}function t(s,i){s.classList?s.classList.add(i):a(s,i)||(s.className=`${s.className} ${i}`)}function c(s,i){if(s.classList)s.classList.remove(i);else if(a(s,i)){const l=s.className;s.className=` ${l} `.replace(` ${i} `," ")}}exports.addClass=t;exports.hasClass=a;exports.removeClass=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function t(e,n){return e&&e.contains?e.contains(n):!1}exports.default=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=/margin|padding|width|height|max|min|offset/,c={left:!0,top:!0},r={cssFloat:1,styleFloat:1,float:1};function u(e){return e.nodeType===1?e.ownerDocument.defaultView.getComputedStyle(e,null):{}}function d(e,t,o){if(t=t.toLowerCase(),o==="auto"){if(t==="height")return e.offsetHeight;if(t==="width")return e.offsetWidth}return t in c||(c[t]=i.test(t)),c[t]?parseFloat(o)||0:o}function f(e,t){const o=arguments.length,n=u(e);return t=r[t]?"cssFloat"in e.style?"cssFloat":"styleFloat":t,o===1?n:d(e,t,n[t]||e.style[t])}function s(e,t,o){const n=arguments.length;if(t=r[t]?"cssFloat"in e.style?"cssFloat":"styleFloat":t,n===3)return typeof o=="number"&&i.test(t)&&(o=`${o}px`),e.style[t]=o,o;for(const l in t)t.hasOwnProperty(l)&&s(e,l,t[l]);return u(e)}function g(e){return e===document.body?document.documentElement.clientWidth:e.offsetWidth}function h(e){return e===document.body?window.innerHeight||document.documentElement.clientHeight:e.offsetHeight}function m(){const e=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:e,height:t}}function y(){const e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function p(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function a(e){const t=e.getBoundingClientRect(),o=document.documentElement;return{left:t.left+(window.scrollX||o.scrollLeft)-(o.clientLeft||document.body.clientLeft||0),top:t.top+(window.scrollY||o.scrollTop)-(o.clientTop||document.body.clientTop||0)}}function w(e){return Array.prototype.slice.apply(e).map(o=>`${o}: ${e.getPropertyValue(o)};`).join("")}function b(e){return Object.keys(e).reduce((t,o)=>{const n=e[o];return typeof n>"u"||n===null||(t+=`${o}: ${e[o]};`),t},"")}exports.get=f;exports.getClientSize=y;exports.getDocSize=m;exports.getOffset=a;exports.getOuterHeight=h;exports.getOuterWidth=g;exports.getScroll=p;exports.set=s;exports.styleObjectToString=b;exports.styleToString=w;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./canUseDom.js"),m=require("./contains.js"),f="data-vc-order",y="vc-util-key",d=new Map;function S({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:y}function s(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function v(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function h(e){return Array.from((d.get(e)||e).children).filter(r=>r.tagName==="STYLE")}function l(e,r={}){if(!g.default())return null;const{csp:t,prepend:c}=r,n=document.createElement("style");n.setAttribute(f,v(c)),t!=null&&t.nonce&&(n.nonce=t==null?void 0:t.nonce),n.innerHTML=e;const i=s(r),{firstChild:u}=i;if(c){if(c==="queue"){const o=h(i).filter(a=>["prepend","prependQueue"].includes(a.getAttribute(f)));if(o.length)return i.insertBefore(n,o[o.length-1].nextSibling),n}i.insertBefore(n,u)}else i.appendChild(n);return n}function C(e,r={}){const t=s(r);return h(t).find(c=>c.getAttribute(S(r))===e)}function b(e,r={}){const t=C(e,r);t&&s(r).removeChild(t)}function N(e,r){const t=d.get(e);if(!t||!m.default(document,t)){const c=l("",r),{parentNode:n}=c;d.set(e,n),e.removeChild(c)}}function _(){d.clear()}function p(e,r,t={}){var u,o,a;const c=s(t);N(c,t);const n=C(r,t);if(n)return(u=t.csp)!=null&&u.nonce&&n.nonce!==((o=t.csp)==null?void 0:o.nonce)&&(n.nonce=(a=t.csp)==null?void 0:a.nonce),n.innerHTML!==e&&(n.innerHTML=e),n;const i=l(e,t);return i.setAttribute(S(t),r),i}exports.clearContainerCache=_;exports.injectCSS=l;exports.removeCSS=b;exports.updateCSS=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=t=>{if(!t)return!1;if(t.offsetParent)return!0;if(t.getBBox){const e=t.getBBox();if(e.width||e.height)return!0}if(t.getBoundingClientRect){const e=t.getBoundingClientRect();if(e.width||e.height)return!0}return!1};exports.default=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("../../_util/getScrollBarSize.js"),a=require("../../_util/setStyle.js");let n=[];const d="ant-scrolling-effect",l=new RegExp(`${d}`,"g");let u=0;const r=new Map;class m{constructor(h){this.getContainer=()=>{var i;return(i=this.options)==null?void 0:i.container},this.reLock=i=>{const e=n.find(({target:o})=>o===this.lockTarget);e&&this.unLock(),this.options=i,e&&(e.options=i,this.lock())},this.lock=()=>{var c;if(n.some(({target:t})=>t===this.lockTarget))return;if(n.some(({options:t})=>{var s;return(t==null?void 0:t.container)===((s=this.options)==null?void 0:s.container)})){n=[...n,{target:this.lockTarget,options:this.options}];return}let i=0;const e=((c=this.options)==null?void 0:c.container)||document.body;(e===document.body&&window.innerWidth-document.documentElement.clientWidth>0||e.scrollHeight>e.clientHeight)&&(i=f.default());const o=e.className;if(n.filter(({options:t})=>{var s;return(t==null?void 0:t.container)===((s=this.options)==null?void 0:s.container)}).length===0&&r.set(e,a.default({width:i!==0?`calc(100% - ${i}px)`:void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:e})),!l.test(o)){const t=`${o} ${d}`;e.className=t.trim()}n=[...n,{target:this.lockTarget,options:this.options}]},this.unLock=()=>{var c;const i=n.find(({target:t})=>t===this.lockTarget);if(n=n.filter(({target:t})=>t!==this.lockTarget),!i||n.some(({options:t})=>{var s;return(t==null?void 0:t.container)===((s=i.options)==null?void 0:s.container)}))return;const e=((c=this.options)==null?void 0:c.container)||document.body,o=e.className;l.test(o)&&(a.default(r.get(e),{element:e}),r.delete(e),e.className=e.className.replace(l,"").trim())},this.lockTarget=u++,this.options=h}}exports.default=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./warning.js"),a=(n,t,r)=>{e.warningOnce(n,`[ant-design-vue: ${t}] ${r}`)};exports.resetWarned=e.resetWarned;exports.default=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function l(u,r){let e=u;for(let t=0;t<r.length;t+=1){if(e==null)return;e=e[r[t]]}return e}exports.default=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("./warning.js");function g(c,o,a=!1){const u=new Set;function n(e,r,i=1){const s=u.has(e);if(y.warningOnce(!s,"Warning: There may be circular references"),s)return!1;if(e===r)return!0;if(a&&i>1)return!1;u.add(e);const f=i+1;if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(!n(e[t],r[t],f))return!1;return!0}if(e&&r&&typeof e=="object"&&typeof r=="object"){const t=Object.keys(e);return t.length!==Object.keys(r).length?!1:t.every(l=>n(e[l],r[l],f))}return!1}return n(c,o)}exports.default=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const i=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(i==null?void 0:i.substring(0,4))};exports.default=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./get.js");function o(e,t,l,u){if(!t.length)return l;const[s,...i]=t;let r;return!e&&typeof s=="number"?r=[]:Array.isArray(e)?r=[...e]:r={...e},u&&l===void 0&&i.length===1?delete r[s][i[0]]:r[s]=o(r[s],i,l,u),r}function c(e,t,l,u=!1){return t.length&&u&&l===void 0&&!n.default(e,t.slice(0,-1))?e:o(e,t,l,u)}exports.default=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let i={};function o(n,e){}function r(n,e){}function l(){i={}}function a(n,e,t){!e&&!i[t]&&(n(!1,t),i[t]=!0)}function c(n,e){a(o,n,e)}function u(n,e){a(r,n,e)}exports.call=a;exports.default=c;exports.note=r;exports.noteOnce=u;exports.resetWarned=l;exports.warning=o;exports.warningOnce=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./version.js");exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={Attachments:[{source:"Attachments",token:"colorBgPlaceholderHover",type:"string",desc:"",descEn:"",name:"",nameEn:""}],Bubble:[],Conversations:[],Prompts:[],Sender:[],Suggestion:[],ThoughtChain:[],Welcome:[]},t={components:e};exports.components=e;exports.default=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o={global:["fontSizeHeading3","lineHeightHeading3","fontSize","lineHeight","padding","paddingXXS","paddingXS","paddingSM","colorFillContent","borderRadiusLG"],component:{}},e={global:["fontSizeSM","controlHeightXS","controlHeightSM","marginSM","fontSize","controlHeight","margin","fontSizeLG","controlHeightLG","marginLG","colorPrimaryText","colorSuccessText","colorErrorText","blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","gold","lime","colorPrimary","colorSuccess","colorWarning","colorError","colorInfo","colorLink","colorTextBase","colorBgBase","fontFamily","fontFamilyCode","lineWidth","lineType","motionUnit","motionBase","motionEaseOutCirc","motionEaseInOutCirc","motionEaseOut","motionEaseInOut","motionEaseOutBack","motionEaseInBack","motionEaseInQuint","motionEaseOutQuint","borderRadius","sizeUnit","sizeStep","sizePopupArrow","zIndexBase","zIndexPopupBase","opacityImage","wireframe","motion","blue-1","blue1","blue-2","blue2","blue-3","blue3","blue-4","blue4","blue-5","blue5","blue-6","blue6","blue-7","blue7","blue-8","blue8","blue-9","blue9","blue-10","blue10","purple-1","purple1","purple-2","purple2","purple-3","purple3","purple-4","purple4","purple-5","purple5","purple-6","purple6","purple-7","purple7","purple-8","purple8","purple-9","purple9","purple-10","purple10","cyan-1","cyan1","cyan-2","cyan2","cyan-3","cyan3","cyan-4","cyan4","cyan-5","cyan5","cyan-6","cyan6","cyan-7","cyan7","cyan-8","cyan8","cyan-9","cyan9","cyan-10","cyan10","green-1","green1","green-2","green2","green-3","green3","green-4","green4","green-5","green5","green-6","green6","green-7","green7","green-8","green8","green-9","green9","green-10","green10","magenta-1","magenta1","magenta-2","magenta2","magenta-3","magenta3","magenta-4","magenta4","magenta-5","magenta5","magenta-6","magenta6","magenta-7","magenta7","magenta-8","magenta8","magenta-9","magenta9","magenta-10","magenta10","pink-1","pink1","pink-2","pink2","pink-3","pink3","pink-4","pink4","pink-5","pink5","pink-6","pink6","pink-7","pink7","pink-8","pink8","pink-9","pink9","pink-10","pink10","red-1","red1","red-2","red2","red-3","red3","red-4","red4","red-5","red5","red-6","red6","red-7","red7","red-8","red8","red-9","red9","red-10","red10","orange-1","orange1","orange-2","orange2","orange-3","orange3","orange-4","orange4","orange-5","orange5","orange-6","orange6","orange-7","orange7","orange-8","orange8","orange-9","orange9","orange-10","orange10","yellow-1","yellow1","yellow-2","yellow2","yellow-3","yellow3","yellow-4","yellow4","yellow-5","yellow5","yellow-6","yellow6","yellow-7","yellow7","yellow-8","yellow8","yellow-9","yellow9","yellow-10","yellow10","volcano-1","volcano1","volcano-2","volcano2","volcano-3","volcano3","volcano-4","volcano4","volcano-5","volcano5","volcano-6","volcano6","volcano-7","volcano7","volcano-8","volcano8","volcano-9","volcano9","volcano-10","volcano10","geekblue-1","geekblue1","geekblue-2","geekblue2","geekblue-3","geekblue3","geekblue-4","geekblue4","geekblue-5","geekblue5","geekblue-6","geekblue6","geekblue-7","geekblue7","geekblue-8","geekblue8","geekblue-9","geekblue9","geekblue-10","geekblue10","gold-1","gold1","gold-2","gold2","gold-3","gold3","gold-4","gold4","gold-5","gold5","gold-6","gold6","gold-7","gold7","gold-8","gold8","gold-9","gold9","gold-10","gold10","lime-1","lime1","lime-2","lime2","lime-3","lime3","lime-4","lime4","lime-5","lime5","lime-6","lime6","lime-7","lime7","lime-8","lime8","lime-9","lime9","lime-10","lime10","colorText","colorTextSecondary","colorTextTertiary","colorTextQuaternary","colorFill","colorFillSecondary","colorFillTertiary","colorFillQuaternary","colorBgSolid","colorBgSolidHover","colorBgSolidActive","colorBgLayout","colorBgContainer","colorBgElevated","colorBgSpotlight","colorBgBlur","colorBorder","colorBorderSecondary","colorPrimaryBg","colorPrimaryBgHover","colorPrimaryBorder","colorPrimaryBorderHover","colorPrimaryHover","colorPrimaryActive","colorPrimaryTextHover","colorPrimaryTextActive","colorSuccessBg","colorSuccessBgHover","colorSuccessBorder","colorSuccessBorderHover","colorSuccessHover","colorSuccessActive","colorSuccessTextHover","colorSuccessTextActive","colorErrorBg","colorErrorBgHover","colorErrorBgFilledHover","colorErrorBgActive","colorErrorBorder","colorErrorBorderHover","colorErrorHover","colorErrorActive","colorErrorTextHover","colorErrorTextActive","colorWarningBg","colorWarningBgHover","colorWarningBorder","colorWarningBorderHover","colorWarningHover","colorWarningActive","colorWarningTextHover","colorWarningText","colorWarningTextActive","colorInfoBg","colorInfoBgHover","colorInfoBorder","colorInfoBorderHover","colorInfoHover","colorInfoActive","colorInfoTextHover","colorInfoText","colorInfoTextActive","colorLinkHover","colorLinkActive","colorBgMask","colorWhite","fontSizeXL","fontSizeHeading1","fontSizeHeading2","fontSizeHeading3","fontSizeHeading4","fontSizeHeading5","lineHeight","lineHeightLG","lineHeightSM","fontHeight","fontHeightLG","fontHeightSM","lineHeightHeading1","lineHeightHeading2","lineHeightHeading3","lineHeightHeading4","lineHeightHeading5","sizeXXL","sizeXL","sizeLG","sizeMD","sizeMS","size","sizeSM","sizeXS","sizeXXS","motionDurationFast","motionDurationMid","motionDurationSlow","lineWidthBold","borderRadiusXS","borderRadiusSM","borderRadiusLG","borderRadiusOuter","colorFillContent","colorFillContentHover","colorFillAlter","colorBgContainerDisabled","colorBorderBg","colorSplit","colorTextPlaceholder","colorTextDisabled","colorTextHeading","colorTextLabel","colorTextDescription","colorTextLightSolid","colorHighlight","colorBgTextHover","colorBgTextActive","colorIcon","colorIconHover","colorErrorOutline","colorWarningOutline","fontSizeIcon","lineWidthFocus","controlOutlineWidth","controlInteractiveSize","controlItemBgHover","controlItemBgActive","controlItemBgActiveHover","controlItemBgActiveDisabled","controlTmpOutline","controlOutline","fontWeightStrong","opacityLoading","linkDecoration","linkHoverDecoration","linkFocusDecoration","controlPaddingHorizontal","controlPaddingHorizontalSM","paddingXXS","paddingXS","paddingSM","padding","paddingMD","paddingLG","paddingXL","paddingContentHorizontalLG","paddingContentVerticalLG","paddingContentHorizontal","paddingContentVertical","paddingContentHorizontalSM","paddingContentVerticalSM","marginXXS","marginXS","marginMD","marginXL","marginXXL","boxShadow","boxShadowSecondary","boxShadowTertiary","screenXS","screenXSMin","screenXSMax","screenSM","screenSMMin","screenSMMax","screenMD","screenMDMin","screenMDMax","screenLG","screenLGMin","screenLGMax","screenXL","screenXLMin","screenXLMax","screenXXL","screenXXLMin","boxShadowPopoverArrow","boxShadowCard","boxShadowDrawerRight","boxShadowDrawerLeft","boxShadowDrawerUp","boxShadowDrawerDown","boxShadowTabsOverflowLeft","boxShadowTabsOverflowRight","boxShadowTabsOverflowTop","boxShadowTabsOverflowBottom","_tokenKey","_themeKey","_hashId"],component:{}},r={global:["paddingXXS","padding"],component:{}},n={global:["paddingXS","padding","paddingSM","lineWidth","lineWidthBold","boxShadowTertiary","motionDurationSlow","borderRadius","colorBorder","boxShadowSecondary","colorPrimary","colorBgContainerDisabled","controlHeight","colorFillAlter","fontSize","lineHeight"],component:{}},l={global:["colorTextTertiary","paddingSM","paddingXS","padding","colorBgContainer","borderRadiusLG","motionDurationSlow","lineWidth","lineType","colorBorderSecondary","colorFillTertiary","colorFill","paddingXXS","fontSize","lineHeight","colorTextHeading","colorBgContainerDisabled","fontSizeLG","lineHeightLG","colorFillQuaternary"],component:{}},i={global:["paddingXXS","paddingSM","paddingXL","colorTextDescription","controlHeightLG","paddingXS","borderRadiusLG","motionDurationMid","motionEaseInOut","colorBgTextHover","colorText","colorTextDisabled","fontSizeXL"],component:{}},a={global:["fontSize","lineHeight","paddingSM","colorText","paddingXXS","marginXS","colorPrimary","padding","borderRadiusLG","colorFillContent","colorBorderSecondary","boxShadowTertiary","borderRadiusXS"],component:{}},t={global:["zIndexPopupBase","borderRadius","lineWidthBold","padding","colorPrimaryHover","paddingXXS","fontSizeHeading2","fontSize","lineHeight","paddingSM","colorText","colorBgContainer","motionDurationSlow","boxShadowTertiary","colorFillContent","lineWidth","paddingXS","fontSizeLG","colorTextTertiary","opacityLoading","colorError"],component:{colorBgPlaceholderHover:"rgba(255,255,255,0.85)"}},c={Welcome:o,ThoughtChain:e,Suggestion:r,Sender:n,Prompts:l,Conversations:i,Bubble:a,Attachments:t};exports.Attachments=t;exports.Bubble=a;exports.Conversations=i;exports.Prompts=l;exports.Sender=n;exports.Suggestion=r;exports.ThoughtChain=e;exports.Welcome=o;exports.default=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="1.0.3";exports.default=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),c=require("../attachments/Attachments2.js"),C=require("../x-provider/hooks/use-x-provider-context.js");require("../x-provider/context.js");const i=require("ant-design-vue"),g=require("../_util/hooks/use-x-component-config.js"),V=require("./style/index.js");function h(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const $=t.defineComponent({name:"AXWelcome",__name:"Welcome",props:t.mergeDefaults({prefixCls:null,rootClassName:null,className:null,style:null,variant:null,classNames:null,styles:null,icon:null,title:null,description:null,extra:null},{variant:"filled",classNames:()=>({}),styles:()=>({})}),setup(e){t.toRef(e,"prefixCls");const a=t.useSlots(),{direction:d,getPrefixCls:m}=C.default(),s=m("welcome",e.prefixCls),n=g.default("welcome"),[f,N,x]=V.default(s),v=t.computed(()=>{const l=a.icon?a.icon():e.icon;if(!l)return null;let u=l;return typeof l=="string"&&l.startsWith("http")&&(u=t.createVNode("img",{src:l,alt:"icon"},null)),t.createVNode("div",{class:c.classnames(`${s}-icon`,n.value.classNames.icon,e.classNames.icon),style:e.styles.icon},[u])}),r=t.computed(()=>{const l=a.title?a.title():e.title;return l?t.createVNode(i.Typography.Title,{level:4,class:c.classnames(`${s}-title`,n.value.classNames.title,e.classNames.title),style:e.styles.title},h(l)?l:{default:()=>[l]}):null}),o=t.computed(()=>a.description?a.description():e.description),y=t.computed(()=>{const l=a.extra?a.extra():e.extra;return l?t.createVNode("div",{class:c.classnames(`${s}-extra`,n.value.classNames.extra,e.classNames.extra),style:e.styles.extra},[l]):null});return()=>f(t.createVNode(i.Flex,{class:c.classnames(s,n.value.className,e.className,e.rootClassName,N.value,x,`${s}-${e.variant}`,{[`${s}-rtl`]:d.value==="rtl"}),style:e.style},{default:()=>[v.value,t.createVNode(i.Flex,{vertical:!0,class:`${s}-content-wrapper`},{default:()=>[a.extra||e.extra?t.createVNode(i.Flex,{align:"flex-start",class:`${s}-title-wrapper`},{default:()=>[r.value,y.value]}):r.value,o.value&&t.createVNode(i.Typography.Text,{class:c.classnames(`${s}-description`,n.value.classNames.description,e.classNames.description),style:e.styles.description},{default:()=>[o.value]})]})]}))}});exports.default=$;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Welcome.js");exports.Welcome=e.default;exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("vue");require("../../_util/cssinjs/StyleContext.js");require("../../_util/cssinjs/theme/ThemeCache.js");require("../../_util/warning.js");require("../../_util/cssinjs/transformers/legacyLogicalProperties.js");const a=require("../../_util/cssinjs-utils/util/statistic.js"),d=require("../../theme/genStyleUtils.js"),g=e=>{const{componentCls:i,calc:t}=e,r=t(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),l=t(e.fontSize).mul(e.lineHeight).equal();return{[i]:{gap:e.padding,[`${i}-icon`]:{height:t(r).add(l).add(e.paddingXXS).equal(),display:"flex",img:{height:"100%"}},[`${i}-content-wrapper`]:{gap:e.paddingXS,flex:"auto",minWidth:0,[`${i}-title-wrapper`]:{gap:e.paddingXS},[`${i}-title`]:{margin:0},[`${i}-extra`]:{marginInlineStart:"auto"}}}}},o=e=>{const{componentCls:i}=e;return{[i]:{"&-filled":{paddingInline:e.padding,paddingBlock:e.paddingSM,background:e.colorFillContent,borderRadius:e.borderRadiusLG},"&-borderless":{[`${i}-title`]:{fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3}}}}},n=()=>({}),s=d.genStyleHooks("Welcome",e=>{const i=a.merge(e,{});return[g(i),o(i)]},n);exports.default=s;exports.prepareComponentToken=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=require("../_util/type.js"),e=require("vue"),n=Symbol("XProviderContext"),t=e.shallowRef(),u=r=>{e.provide(n,r),e.watch(r,()=>{t.value=e.unref(r),e.triggerRef(t)},{immediate:!0,deep:!0})},c=()=>e.inject(n,e.computed(()=>t.value||{})),d=e.defineComponent({props:{value:v.objectType()},setup(r,{slots:o}){return u(e.computed(()=>r.value)),()=>{var i;return(i=o.default)==null?void 0:i.call(o)}}});exports.XProviderContextProvider=d;exports.default=d;exports.globalXProviderApi=t;exports.useXProviderContextInject=c;exports.useXProviderContextProvider=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),c="anticon",u=Symbol("configProvider"),d={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:n.computed(()=>c),getPopupContainer:n.computed(()=>()=>document.body),direction:n.computed(()=>"ltr")},l=()=>n.inject(u,d),s="ant";function f(){const{getPrefixCls:e,direction:t,csp:o,iconPrefixCls:r,theme:i}=l();return{theme:i,getPrefixCls:e,direction:t,csp:o,iconPrefixCls:r}}exports.default=f;exports.defaultPrefixCls=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./hooks/use-x-provider-context.js"),r=require("./index2.js");exports.defaultPrefixCls=e.defaultPrefixCls;exports.useXProviderContext=e.default;exports.XProvider=r._sfc_main;exports.default=r._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),u=require("../attachments/Attachments2.js"),d=require("./context.js"),l=require("./hooks/use-x-provider-context.js"),m=require("ant-design-vue"),h=t.defineComponent({name:"AXConfigProvider",inheritAttrs:!1,__name:"index",props:{bubble:{},conversations:{},prompts:{},sender:{},suggestion:{},thoughtChain:{},attachments:{},welcome:{},iconPrefixCls:{},getTargetContainer:{},getPopupContainer:{},prefixCls:{},getPrefixCls:{},renderEmpty:{},transformCellText:{},csp:{},input:{},autoInsertSpaceInButton:{type:Boolean},locale:{},pageHeader:{},componentSize:{},componentDisabled:{type:Boolean},direction:{},space:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{},form:{},pagination:{},theme:{},select:{},wave:{}},setup(e){const r=u.createPropsRestProxy(e,["attachments","bubble","conversations","prompts","sender","suggestion","thoughtChain","welcome"]),o=t.useSlots(),a=t.computed(()=>({attachments:e.attachments,bubble:e.bubble,conversations:e.conversations,prompts:e.prompts,sender:e.sender,suggestion:e.suggestion,thoughtChain:e.thoughtChain,welcome:e.welcome})),{theme:n}=l.default(),i=t.computed(()=>({...(n==null?void 0:n.value)||{},...r.theme})),c=t.computed(()=>{var s;return(s=o.default)==null?void 0:s.call(o)});return()=>t.createVNode(d.XProviderContextProvider,{value:a.value},{default:()=>[t.createVNode(m.ConfigProvider,t.mergeProps(r,{theme:i.value}),{default:()=>[c.value]})]})}});exports._sfc_main=h;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./x-fetch.js"),e=require("./x-request.js");exports.XFetch=t.default;exports.XRequest=e.default;exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=async(i,r={})=>{const{fetch:n=globalThis.fetch,middlewares:t={},...f}=r;if(typeof n!="function")throw new Error("The options.fetch must be a typeof fetch function!");let o=[i,f];typeof t.onRequest=="function"&&(o=await t.onRequest(...o));let e=await n(...o);if(typeof t.onResponse=="function"){const s=await t.onResponse(e);if(!(s instanceof Response))throw new Error("The options.onResponse must return a Response instance!");e=s}if(!e.ok)throw new Error(`Fetch failed with status ${e.status}`);if(!e.body)throw new Error("The response body is empty.");return e};exports.default=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const p=require("../x-stream/x-stream.js"),m=require("./x-fetch.js"),d=class d{constructor(n){this.create=async(u,e,o)=>{var r;const i={method:"POST",body:JSON.stringify({model:this.model,...u}),headers:this.defaultHeaders};try{const t=await m.default(this.baseURL,{fetch:this.customOptions.fetch,...i});if(o){await this.customResponseHandler(t,e,o);return}const s=t.headers.get("content-type")||"";switch(s.split(";")[0].trim()){case"text/event-stream":await this.sseResponseHandler(t,e);break;case"application/json":await this.jsonResponseHandler(t,e);break;default:throw new Error(`The response content-type: ${s} is not support!`)}}catch(t){const s=t instanceof Error?t:new Error("Unknown error!");throw(r=e==null?void 0:e.onError)==null||r.call(e,s),s}},this.customResponseHandler=async(u,e,o)=>{var r,t;const i=[];for await(const s of p.default({readableStream:u.body,transformStream:o}))i.push(s),(r=e==null?void 0:e.onUpdate)==null||r.call(e,s);(t=e==null?void 0:e.onSuccess)==null||t.call(e,i)},this.sseResponseHandler=async(u,e)=>{var i,r;const o=[];for await(const t of p.default({readableStream:u.body}))o.push(t),(i=e==null?void 0:e.onUpdate)==null||i.call(e,t);(r=e==null?void 0:e.onSuccess)==null||r.call(e,o)},this.jsonResponseHandler=async(u,e)=>{var i,r;const o=await u.json();(i=e==null?void 0:e.onUpdate)==null||i.call(e,o),(r=e==null?void 0:e.onSuccess)==null||r.call(e,[o])};const{baseURL:h,model:R,dangerouslyApiKey:U,...y}=n;this.baseURL=n.baseURL,this.model=n.model,this.defaultHeaders={"Content-Type":"application/json",...n.dangerouslyApiKey&&{Authorization:n.dangerouslyApiKey}},this.customOptions=y}static init(n){if(!n.baseURL||typeof n.baseURL!="string")throw new Error("The baseURL is not valid!");const h=n.fetch||n.baseURL;return d.instanceBuffer.has(h)||d.instanceBuffer.set(h,new d(n)),d.instanceBuffer.get(h)}};d.instanceBuffer=new Map;let f=d;const w=f.init;exports.default=w;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./x-stream.js");exports.XStream=e.default;exports.default=e.default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=`
|
|
2
|
+
|
|
3
|
+
`,h=`
|
|
4
|
+
`,c=":",u=e=>(e??"").trim()!=="";function d(){let e="";return new TransformStream({transform(t,o){e+=t;const r=e.split(f);r.slice(0,-1).forEach(n=>{u(n)&&o.enqueue(n)}),e=r[r.length-1]},flush(t){u(e)&&t.enqueue(e)}})}function m(){return new TransformStream({transform(e,t){const r=e.split(h).reduce((n,s)=>{const a=s.indexOf(c);if(a===-1)throw new Error(`The key-value separator "${c}" is not found in the sse line chunk!`);const i=s.slice(0,a);if(!u(i))return n;const l=s.slice(a+1);return{...n,[i]:l}},{});Object.keys(r).length!==0&&t.enqueue(r)}})}function S(e){const{readableStream:t,transformStream:o}=e;if(!(t instanceof ReadableStream))throw new Error("The options.readableStream must be an instance of ReadableStream.");const r=new TextDecoderStream,n=o?t.pipeThrough(r).pipeThrough(o):t.pipeThrough(r).pipeThrough(d()).pipeThrough(m());return n[Symbol.asyncIterator]=async function*(){const s=this.getReader();for(;;){const{done:a,value:i}=await s.read();if(a)break;i&&(yield i)}},n}exports.default=S;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ant-design-x-vue",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Craft AI-driven interfaces effortlessly",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"AI",
|
|
@@ -13,7 +13,10 @@
|
|
|
13
13
|
"vue"
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
|
-
"build": "
|
|
16
|
+
"build": "npm run build:es && npm run build:umd && npm run build:resolver",
|
|
17
|
+
"build:es": "vite build && vue-tsc --project ./tsconfig.build.json",
|
|
18
|
+
"build:umd": "vite build --config ./vite.config.umd.mts && vue-tsc --project ./tsconfig.build.json",
|
|
19
|
+
"build:resolver": "tsc resolver/index.ts --outDir resolver-dist --declaration",
|
|
17
20
|
"build:watch": "vite build --watch",
|
|
18
21
|
"docs:dev": "vitepress dev docs",
|
|
19
22
|
"docs:build": "vitepress build docs",
|
|
@@ -38,22 +41,26 @@
|
|
|
38
41
|
"license": "MIT",
|
|
39
42
|
"exports": {
|
|
40
43
|
".": {
|
|
41
|
-
"types": "./
|
|
42
|
-
"import": "./
|
|
43
|
-
"require": "./
|
|
44
|
+
"types": "./typings/index.d.ts",
|
|
45
|
+
"import": "./es/index.mjs",
|
|
46
|
+
"require": "./lib/index.js"
|
|
44
47
|
},
|
|
45
48
|
"./dist/style.css": "./dist/style.css",
|
|
46
49
|
"./resolver": {
|
|
47
|
-
"types": "./dist/
|
|
48
|
-
"import": "./dist/
|
|
50
|
+
"types": "./resolver-dist/index.d.ts",
|
|
51
|
+
"import": "./resolver-dist/index.js"
|
|
49
52
|
}
|
|
50
53
|
},
|
|
51
|
-
"main": "./
|
|
52
|
-
"module": "./
|
|
53
|
-
"unpkg": "dist/index.umd.js",
|
|
54
|
-
"types": "./
|
|
54
|
+
"main": "./lib/index.js",
|
|
55
|
+
"module": "./es/index.mjs",
|
|
56
|
+
"unpkg": "./dist/index.umd.js",
|
|
57
|
+
"types": "./typings/index.d.ts",
|
|
55
58
|
"files": [
|
|
56
|
-
"
|
|
59
|
+
"es",
|
|
60
|
+
"lib",
|
|
61
|
+
"dist",
|
|
62
|
+
"typings",
|
|
63
|
+
"resolver-dist"
|
|
57
64
|
],
|
|
58
65
|
"commitlint": {
|
|
59
66
|
"extends": [
|
|
@@ -106,6 +113,7 @@
|
|
|
106
113
|
"eslint": "^8.57.1",
|
|
107
114
|
"eslint-plugin-vue": "^9.17.0",
|
|
108
115
|
"fast-glob": "^3.3.2",
|
|
116
|
+
"glob": "^11.0.1",
|
|
109
117
|
"happy-dom": "^15.7.4",
|
|
110
118
|
"husky": "^8.0.1",
|
|
111
119
|
"less": "^4.2.0",
|
|
@@ -118,7 +126,7 @@
|
|
|
118
126
|
"stylelint": "^14.9.1",
|
|
119
127
|
"typescript": "~5.8.0",
|
|
120
128
|
"unplugin-vue-macros": "^2.14.5",
|
|
121
|
-
"vite": "^
|
|
129
|
+
"vite": "^6.2.0",
|
|
122
130
|
"vite-plugin-inspect": "^0.8.9",
|
|
123
131
|
"vitepress": "^1.5.0",
|
|
124
132
|
"vitest": "^2.1.1",
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { BubbleContentType, BubbleProps } from './interface';
|
|
2
|
+
import type { VNode } from 'vue';
|
|
3
|
+
declare const _default: <T extends BubbleContentType = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & Partial<{}> & BubbleProps<T>> & import("vue").PublicProps;
|
|
5
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
6
|
+
nativeElement: import("vue").Ref<HTMLDivElement, HTMLDivElement>;
|
|
7
|
+
}>): void;
|
|
8
|
+
attrs: any;
|
|
9
|
+
slots: Readonly<{
|
|
10
|
+
avatar?(): VNode;
|
|
11
|
+
header?(): VNode | string;
|
|
12
|
+
footer?(props?: {
|
|
13
|
+
content: BubbleContentType;
|
|
14
|
+
}): VNode | string;
|
|
15
|
+
loading?(): VNode;
|
|
16
|
+
message?(props?: {
|
|
17
|
+
content: string;
|
|
18
|
+
}): VNode | string;
|
|
19
|
+
}> & {
|
|
20
|
+
avatar?(): VNode;
|
|
21
|
+
header?(): VNode | string;
|
|
22
|
+
footer?(props?: {
|
|
23
|
+
content: BubbleContentType;
|
|
24
|
+
}): VNode | string;
|
|
25
|
+
loading?(): VNode;
|
|
26
|
+
message?(props?: {
|
|
27
|
+
content: string;
|
|
28
|
+
}): VNode | string;
|
|
29
|
+
};
|
|
30
|
+
emit: {};
|
|
31
|
+
}>) => import("vue").VNode & {
|
|
32
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
33
|
+
};
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_PrettifyLocal<T> = {
|
|
36
|
+
[K in keyof T]: T[K];
|
|
37
|
+
} & {};
|