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,96 @@
|
|
|
1
|
+
import { defineComponent as S, mergeDefaults as L, computed as e, useId as A, createVNode as a, mergeProps as F, withDirectives as O, vShow as w } from "vue";
|
|
2
|
+
import { a as D, c as n } from "../attachments/Attachments2.mjs";
|
|
3
|
+
import H from "../_util/pick-attrs.mjs";
|
|
4
|
+
import { useThoughtChainNodeContextInject as I } from "./context.mjs";
|
|
5
|
+
import { Avatar as K, Typography as g } from "ant-design-vue";
|
|
6
|
+
import "../transition-collapse/index.mjs";
|
|
7
|
+
import { L as V, R as j } from "../attachments/FileList/FileList2.mjs";
|
|
8
|
+
import X from "../transition-collapse/TransitionCollapse.mjs";
|
|
9
|
+
const U = /* @__PURE__ */ S({
|
|
10
|
+
name: "AXThoughtChainNode",
|
|
11
|
+
__name: "item",
|
|
12
|
+
props: L({
|
|
13
|
+
info: null,
|
|
14
|
+
nextStatus: null,
|
|
15
|
+
onClick: {
|
|
16
|
+
type: Function
|
|
17
|
+
}
|
|
18
|
+
}, {
|
|
19
|
+
info: () => ({})
|
|
20
|
+
}),
|
|
21
|
+
setup(t) {
|
|
22
|
+
const i = D(t, ["info", "nextStatus", "onClick"]), k = e(() => H(i, {
|
|
23
|
+
attr: !0,
|
|
24
|
+
aria: !0,
|
|
25
|
+
data: !0
|
|
26
|
+
})), o = I(), h = e(() => o.value.prefixCls), c = e(() => o.value.enableCollapse), N = e(() => o.value.expandedKeys), v = e(() => o.value.direction), r = e(() => o.value.classNames), d = e(() => o.value.styles), b = A(), x = e(() => t.info.key ?? b), T = e(() => t.info.icon), C = e(() => t.info.title), $ = e(() => t.info.extra), u = e(() => t.info.content), y = e(() => t.info.footer), p = e(() => t.info.status), m = e(() => t.info.description), l = e(() => `${h.value}-item`), P = () => {
|
|
27
|
+
var s;
|
|
28
|
+
return (s = t.onClick) == null ? void 0 : s.call(t, x.value);
|
|
29
|
+
}, f = e(() => {
|
|
30
|
+
var s;
|
|
31
|
+
return (s = N.value) == null ? void 0 : s.includes(x.value);
|
|
32
|
+
}), R = e(() => c.value ? f.value : !0);
|
|
33
|
+
return () => a("div", F(k.value, {
|
|
34
|
+
class: n(l.value, {
|
|
35
|
+
[`${l.value}-${p.value}${t.nextStatus ? `-${t.nextStatus}` : ""}`]: p.value
|
|
36
|
+
}, i.class),
|
|
37
|
+
style: i.style
|
|
38
|
+
}), [a("div", {
|
|
39
|
+
class: n(`${l.value}-header`, r.value.itemHeader),
|
|
40
|
+
style: d.value.itemHeader,
|
|
41
|
+
onClick: P
|
|
42
|
+
}, [a(K, {
|
|
43
|
+
icon: T.value,
|
|
44
|
+
class: `${l.value}-icon`
|
|
45
|
+
}, null), a("div", {
|
|
46
|
+
class: n(`${l.value}-header-box`, {
|
|
47
|
+
[`${l.value}-collapsible`]: c.value && u.value
|
|
48
|
+
})
|
|
49
|
+
}, [a(g.Text, {
|
|
50
|
+
strong: !0,
|
|
51
|
+
ellipsis: {
|
|
52
|
+
tooltip: {
|
|
53
|
+
placement: v.value === "rtl" ? "topRight" : "topLeft",
|
|
54
|
+
title: C.value
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
class: `${l.value}-title`
|
|
58
|
+
}, {
|
|
59
|
+
default: () => [c.value && u.value && (v.value === "rtl" ? a(V, {
|
|
60
|
+
class: `${l.value}-collapse-icon`,
|
|
61
|
+
rotate: f.value ? -90 : 0
|
|
62
|
+
}, null) : a(j, {
|
|
63
|
+
class: `${l.value}-collapse-icon`,
|
|
64
|
+
rotate: f.value ? 90 : 0
|
|
65
|
+
}, null)), C.value]
|
|
66
|
+
}), m.value && a(g.Text, {
|
|
67
|
+
class: `${l.value}-desc`,
|
|
68
|
+
ellipsis: {
|
|
69
|
+
tooltip: {
|
|
70
|
+
placement: v.value === "rtl" ? "topRight" : "topLeft",
|
|
71
|
+
title: m.value
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
type: "secondary"
|
|
75
|
+
}, {
|
|
76
|
+
default: () => [m.value]
|
|
77
|
+
})]), $.value && a("div", {
|
|
78
|
+
class: `${l.value}-extra`
|
|
79
|
+
}, [$.value])]), a(X, {
|
|
80
|
+
prefixCls: h.value
|
|
81
|
+
}, {
|
|
82
|
+
default: () => [u.value && O(a("div", {
|
|
83
|
+
class: n(`${l.value}-content`)
|
|
84
|
+
}, [a("div", {
|
|
85
|
+
class: n(`${l.value}-content-box`, r.value.itemContent),
|
|
86
|
+
style: d.value.itemContent
|
|
87
|
+
}, [u.value])]), [[w, R.value]])]
|
|
88
|
+
}), y.value && a("div", {
|
|
89
|
+
class: n(`${l.value}-footer`, r.value.itemFooter),
|
|
90
|
+
style: d.value.itemFooter
|
|
91
|
+
}, [y.value])]);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
export {
|
|
95
|
+
U as default
|
|
96
|
+
};
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import "../../_util/cssinjs/StyleContext.mjs";
|
|
2
|
+
import "vue";
|
|
3
|
+
import { unit as S } from "../../_util/cssinjs/util.mjs";
|
|
4
|
+
import "../../_util/cssinjs/theme/ThemeCache.mjs";
|
|
5
|
+
import "../../_util/warning.mjs";
|
|
6
|
+
import "../../_util/cssinjs/transformers/legacyLogicalProperties.mjs";
|
|
7
|
+
import { merge as h } from "../../_util/cssinjs-utils/util/statistic.mjs";
|
|
8
|
+
import { genStyleHooks as g } from "../../theme/genStyleUtils.mjs";
|
|
9
|
+
import "../../transition-collapse/index.mjs";
|
|
10
|
+
import { THOUGHT_CHAIN_ITEM_STATUS as a } from "../interface.mjs";
|
|
11
|
+
import { genTransitionCollapseStyle as u } from "../../transition-collapse/style/index.mjs";
|
|
12
|
+
const f = (e) => {
|
|
13
|
+
const { componentCls: t } = e, i = `${t}-item`, o = {
|
|
14
|
+
[a.PENDING]: e.colorPrimaryText,
|
|
15
|
+
[a.SUCCESS]: e.colorSuccessText,
|
|
16
|
+
[a.ERROR]: e.colorErrorText
|
|
17
|
+
}, l = Object.keys(o);
|
|
18
|
+
return l.reduce((c, r) => {
|
|
19
|
+
const s = o[r];
|
|
20
|
+
return l.forEach((m) => {
|
|
21
|
+
const d = `& ${i}-${r}-${m}`, p = r === m ? {} : {
|
|
22
|
+
backgroundColor: "none !important",
|
|
23
|
+
backgroundImage: `linear-gradient(${s}, ${o[m]})`
|
|
24
|
+
};
|
|
25
|
+
c[d] = {
|
|
26
|
+
[`& ${i}-icon, & > *::before`]: {
|
|
27
|
+
backgroundColor: `${s} !important`
|
|
28
|
+
},
|
|
29
|
+
"& > :last-child::before": p
|
|
30
|
+
};
|
|
31
|
+
}), c;
|
|
32
|
+
}, {});
|
|
33
|
+
}, z = (e) => {
|
|
34
|
+
const { calc: t, componentCls: i } = e, o = `${i}-item`, l = {
|
|
35
|
+
content: '""',
|
|
36
|
+
width: t(e.lineWidth).mul(2).equal(),
|
|
37
|
+
display: "block",
|
|
38
|
+
position: "absolute",
|
|
39
|
+
insetInlineEnd: "none",
|
|
40
|
+
backgroundColor: e.colorTextPlaceholder
|
|
41
|
+
};
|
|
42
|
+
return {
|
|
43
|
+
"& > :last-child > :last-child": {
|
|
44
|
+
"&::before": {
|
|
45
|
+
display: "none !important"
|
|
46
|
+
},
|
|
47
|
+
[`&${o}-footer`]: {
|
|
48
|
+
"&::before": {
|
|
49
|
+
display: "block !important",
|
|
50
|
+
bottom: 0
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
[`& > ${o}`]: {
|
|
55
|
+
[`& ${o}-header, & ${o}-content, & ${o}-footer`]: {
|
|
56
|
+
position: "relative",
|
|
57
|
+
"&::before": {
|
|
58
|
+
bottom: t(e.itemGap).mul(-1).equal()
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
[`& ${o}-header, & ${o}-content`]: {
|
|
62
|
+
marginInlineStart: t(e.itemSize).mul(-1).equal(),
|
|
63
|
+
"&::before": {
|
|
64
|
+
...l,
|
|
65
|
+
insetInlineStart: t(e.itemSize).div(2).sub(e.lineWidth).equal()
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
[`& ${o}-header::before`]: {
|
|
69
|
+
top: e.itemSize,
|
|
70
|
+
bottom: t(e.itemGap).mul(-2).equal()
|
|
71
|
+
},
|
|
72
|
+
[`& ${o}-content::before`]: {
|
|
73
|
+
top: "100%"
|
|
74
|
+
},
|
|
75
|
+
[`& ${o}-footer::before`]: {
|
|
76
|
+
...l,
|
|
77
|
+
top: 0,
|
|
78
|
+
insetInlineStart: t(e.itemSize).div(-2).sub(e.lineWidth).equal()
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
}, $ = (e) => {
|
|
83
|
+
const { componentCls: t } = e, i = `${t}-item`;
|
|
84
|
+
return {
|
|
85
|
+
[i]: {
|
|
86
|
+
display: "flex",
|
|
87
|
+
flexDirection: "column",
|
|
88
|
+
[`& ${i}-collapsible`]: {
|
|
89
|
+
cursor: "pointer"
|
|
90
|
+
},
|
|
91
|
+
[`& ${i}-header`]: {
|
|
92
|
+
display: "flex",
|
|
93
|
+
marginBottom: e.itemGap,
|
|
94
|
+
gap: e.itemGap,
|
|
95
|
+
alignItems: "flex-start",
|
|
96
|
+
[`& ${i}-icon`]: {
|
|
97
|
+
height: e.itemSize,
|
|
98
|
+
width: e.itemSize,
|
|
99
|
+
fontSize: e.itemFontSize,
|
|
100
|
+
display: "flex",
|
|
101
|
+
justifyContent: "center",
|
|
102
|
+
alignItems: "center"
|
|
103
|
+
},
|
|
104
|
+
[`& ${i}-extra`]: {
|
|
105
|
+
height: e.itemSize,
|
|
106
|
+
maxHeight: e.itemSize
|
|
107
|
+
},
|
|
108
|
+
[`& ${i}-header-box`]: {
|
|
109
|
+
flex: 1,
|
|
110
|
+
display: "flex",
|
|
111
|
+
flexDirection: "column",
|
|
112
|
+
overflow: "hidden",
|
|
113
|
+
[`& ${i}-title`]: {
|
|
114
|
+
height: e.itemSize,
|
|
115
|
+
lineHeight: `${S(e.itemSize)}`,
|
|
116
|
+
maxHeight: e.itemSize,
|
|
117
|
+
fontSize: e.itemFontSize,
|
|
118
|
+
[`& ${i}-collapse-icon`]: {
|
|
119
|
+
marginInlineEnd: e.marginXS
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
[`& ${i}-desc`]: {
|
|
123
|
+
fontSize: e.itemFontSize
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
[`& ${i}-content`]: {
|
|
128
|
+
[`& ${i}-content-hidden`]: {
|
|
129
|
+
display: "none"
|
|
130
|
+
},
|
|
131
|
+
[`& ${i}-content-box`]: {
|
|
132
|
+
padding: e.itemGap,
|
|
133
|
+
display: "inline-block",
|
|
134
|
+
maxWidth: `calc(100% - ${e.itemSize})`,
|
|
135
|
+
borderRadius: e.borderRadiusLG,
|
|
136
|
+
backgroundColor: e.colorBgContainer,
|
|
137
|
+
border: `${S(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
[`& ${i}-footer`]: {
|
|
141
|
+
marginTop: e.itemGap,
|
|
142
|
+
display: "inline-flex"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
}, n = (e, t = "middle") => {
|
|
147
|
+
const { componentCls: i } = e, o = {
|
|
148
|
+
large: {
|
|
149
|
+
itemSize: e.itemSizeLG,
|
|
150
|
+
itemGap: e.itemGapLG,
|
|
151
|
+
itemFontSize: e.itemFontSizeLG
|
|
152
|
+
},
|
|
153
|
+
middle: {
|
|
154
|
+
itemSize: e.itemSize,
|
|
155
|
+
itemGap: e.itemGap,
|
|
156
|
+
itemFontSize: e.itemFontSize
|
|
157
|
+
},
|
|
158
|
+
small: {
|
|
159
|
+
itemSize: e.itemSizeSM,
|
|
160
|
+
itemGap: e.itemGapSM,
|
|
161
|
+
itemFontSize: e.itemFontSizeSM
|
|
162
|
+
}
|
|
163
|
+
}[t];
|
|
164
|
+
return {
|
|
165
|
+
[`&${i}-${t}`]: {
|
|
166
|
+
paddingInlineStart: o.itemSize,
|
|
167
|
+
gap: o.itemGap,
|
|
168
|
+
...$({
|
|
169
|
+
...e,
|
|
170
|
+
...o
|
|
171
|
+
}),
|
|
172
|
+
...z({
|
|
173
|
+
...e,
|
|
174
|
+
...o
|
|
175
|
+
})
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
}, b = (e) => {
|
|
179
|
+
const { componentCls: t } = e;
|
|
180
|
+
return {
|
|
181
|
+
[t]: {
|
|
182
|
+
display: "flex",
|
|
183
|
+
flexDirection: "column",
|
|
184
|
+
...f(e),
|
|
185
|
+
...n(e),
|
|
186
|
+
...n(e, "large"),
|
|
187
|
+
...n(e, "small"),
|
|
188
|
+
[`&${t}-rtl`]: {
|
|
189
|
+
direction: "rtl"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
}, E = g("ThoughtChain", (e) => {
|
|
194
|
+
const t = h(e, {
|
|
195
|
+
// small size tokens
|
|
196
|
+
itemFontSizeSM: e.fontSizeSM,
|
|
197
|
+
itemSizeSM: e.calc(e.controlHeightXS).add(e.controlHeightSM).div(2).equal(),
|
|
198
|
+
itemGapSM: e.marginSM,
|
|
199
|
+
// default size tokens
|
|
200
|
+
itemFontSize: e.fontSize,
|
|
201
|
+
itemSize: e.calc(e.controlHeightSM).add(e.controlHeight).div(2).equal(),
|
|
202
|
+
itemGap: e.margin,
|
|
203
|
+
// large size tokens
|
|
204
|
+
itemFontSizeLG: e.fontSizeLG,
|
|
205
|
+
itemSizeLG: e.calc(e.controlHeight).add(e.controlHeightLG).div(2).equal(),
|
|
206
|
+
itemGapLG: e.marginLG
|
|
207
|
+
});
|
|
208
|
+
return [
|
|
209
|
+
b(t),
|
|
210
|
+
u(t)
|
|
211
|
+
];
|
|
212
|
+
});
|
|
213
|
+
export {
|
|
214
|
+
E as default
|
|
215
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent as n, useSlots as i, computed as r, createVNode as p, Transition as g } from "vue";
|
|
2
|
+
const l = /* @__PURE__ */ n({
|
|
3
|
+
name: "AXTransitionCollapse",
|
|
4
|
+
__name: "TransitionCollapse",
|
|
5
|
+
props: {
|
|
6
|
+
prefixCls: {
|
|
7
|
+
default: "ax"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
const d = e, a = i(), s = r(() => d.prefixCls + "-transition-collapse"), o = {
|
|
12
|
+
beforeEnter(t) {
|
|
13
|
+
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";
|
|
14
|
+
},
|
|
15
|
+
enter(t) {
|
|
16
|
+
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";
|
|
17
|
+
},
|
|
18
|
+
afterEnter(t) {
|
|
19
|
+
t.style.maxHeight = "", t.style.overflow = t.dataset.oldOverflow;
|
|
20
|
+
},
|
|
21
|
+
beforeLeave(t) {
|
|
22
|
+
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`;
|
|
23
|
+
},
|
|
24
|
+
leave(t) {
|
|
25
|
+
t.scrollHeight !== 0 && (t.style.maxHeight = "0", t.style.paddingTop = "0", t.style.paddingBottom = "0");
|
|
26
|
+
},
|
|
27
|
+
afterLeave(t) {
|
|
28
|
+
t.style.maxHeight = "", t.style.overflow = t.dataset.oldOverflow, t.style.paddingTop = t.dataset.oldPaddingTop, t.style.paddingBottom = t.dataset.oldPaddingBottom;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
return () => p(g, {
|
|
32
|
+
name: s.value,
|
|
33
|
+
onBeforeEnter: o.beforeEnter,
|
|
34
|
+
onEnter: o.enter,
|
|
35
|
+
onAfterEnter: o.afterEnter,
|
|
36
|
+
onBeforeLeave: o.beforeLeave,
|
|
37
|
+
onLeave: o.leave,
|
|
38
|
+
onAfterLeave: o.afterLeave
|
|
39
|
+
}, {
|
|
40
|
+
default: () => {
|
|
41
|
+
var t;
|
|
42
|
+
return [(t = a.default) == null ? void 0 : t.call(a)];
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
l as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import n from "./TransitionCollapse.mjs";
|
|
2
|
+
import { genTransitionCollapseStyle as r } from "./style/index.mjs";
|
|
3
|
+
n.install = function(o) {
|
|
4
|
+
return o.component(n.name, n), o;
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
n as TransitionCollapse,
|
|
8
|
+
n as default,
|
|
9
|
+
r as genTransitionCollapseStyle
|
|
10
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const a = (t) => {
|
|
2
|
+
const { componentCls: n } = t, i = `${n}-transition-collapse`;
|
|
3
|
+
return {
|
|
4
|
+
[n]: {
|
|
5
|
+
[i]: {
|
|
6
|
+
"&-enter-active": {
|
|
7
|
+
transition: ["max-height", "padding-top", "padding-bottom"].map(
|
|
8
|
+
(o) => `${o} ${t.motionDurationSlow} ${t.motionEaseInOut}`
|
|
9
|
+
).join(",")
|
|
10
|
+
},
|
|
11
|
+
"&-leave-active": {
|
|
12
|
+
transition: ["max-height", "padding-top", "padding-bottom"].map(
|
|
13
|
+
(o) => `${o} ${t.motionDurationSlow} ${t.motionEaseInOut}`
|
|
14
|
+
).join(",")
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
a as genTransitionCollapseStyle
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import h from "../x-request/x-request.mjs";
|
|
2
|
+
import { computed as p } from "vue";
|
|
3
|
+
let u = 0;
|
|
4
|
+
class q {
|
|
5
|
+
constructor(s) {
|
|
6
|
+
this.requestingMap = {}, this.request = (e, o) => {
|
|
7
|
+
const { request: n } = this.config, { onUpdate: a, onSuccess: c, onError: g } = o, t = u;
|
|
8
|
+
u += 1, this.requestingMap[t] = !0, n == null || n(e, {
|
|
9
|
+
// Status should be unique.
|
|
10
|
+
// One get success or error should not get more message
|
|
11
|
+
onUpdate: (i) => {
|
|
12
|
+
this.requestingMap[t] && a(i);
|
|
13
|
+
},
|
|
14
|
+
onSuccess: (i) => {
|
|
15
|
+
this.requestingMap[t] && (c(i), this.finishRequest(t));
|
|
16
|
+
},
|
|
17
|
+
onError: (i) => {
|
|
18
|
+
this.requestingMap[t] && (g(i), this.finishRequest(t));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}, this.config = s;
|
|
22
|
+
}
|
|
23
|
+
finishRequest(s) {
|
|
24
|
+
delete this.requestingMap[s];
|
|
25
|
+
}
|
|
26
|
+
isRequesting() {
|
|
27
|
+
return Object.keys(this.requestingMap).length > 0;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
function l(r) {
|
|
31
|
+
const { request: s, ...e } = r;
|
|
32
|
+
return [
|
|
33
|
+
p(
|
|
34
|
+
() => new q({
|
|
35
|
+
// @ts-expect-error
|
|
36
|
+
request: s || h({
|
|
37
|
+
baseURL: e.baseURL,
|
|
38
|
+
model: e.model,
|
|
39
|
+
dangerouslyApiKey: e.dangerouslyApiKey
|
|
40
|
+
}).create,
|
|
41
|
+
...e
|
|
42
|
+
})
|
|
43
|
+
)
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
q as XAgent,
|
|
48
|
+
l as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { ref as k, computed as b } from "vue";
|
|
2
|
+
import A from "./useSyncState.mjs";
|
|
3
|
+
import { useEventCallback as P } from "../_util/hooks/use-event-callback.mjs";
|
|
4
|
+
function $(l) {
|
|
5
|
+
return Array.isArray(l) ? l : [l];
|
|
6
|
+
}
|
|
7
|
+
function F(l) {
|
|
8
|
+
const { defaultMessages: v, agent: p, requestFallback: d, requestPlaceholder: c, parser: h } = l, M = k(0), w = b(() => (v || []).map((r, e) => ({
|
|
9
|
+
id: `default_${e}`,
|
|
10
|
+
status: "local",
|
|
11
|
+
...r
|
|
12
|
+
}))), [g, u] = A(w.value, () => {
|
|
13
|
+
}), f = (r, e) => {
|
|
14
|
+
const o = {
|
|
15
|
+
id: `msg_${M.value}`,
|
|
16
|
+
message: r,
|
|
17
|
+
status: e
|
|
18
|
+
};
|
|
19
|
+
return M.value += 1, o;
|
|
20
|
+
}, E = b(() => {
|
|
21
|
+
const r = [];
|
|
22
|
+
return g.value.forEach((e) => {
|
|
23
|
+
const o = h ? h(e.message) : e.message, i = $(o);
|
|
24
|
+
i.forEach((a, t) => {
|
|
25
|
+
let s = e.id;
|
|
26
|
+
i.length > 1 && (s = `${s}_${t}`), r.push({
|
|
27
|
+
id: s,
|
|
28
|
+
message: a,
|
|
29
|
+
status: e.status
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
}), r;
|
|
33
|
+
}), y = (r) => r.filter((e) => e.status !== "loading" && e.status !== "error").map((e) => e.message), q = () => y(g.value);
|
|
34
|
+
return {
|
|
35
|
+
onRequest: P((r) => {
|
|
36
|
+
if (!p)
|
|
37
|
+
throw new Error(
|
|
38
|
+
"The agent parameter is required when using the onRequest method in an agent generated by useXAgent."
|
|
39
|
+
);
|
|
40
|
+
let e = null;
|
|
41
|
+
u((a) => {
|
|
42
|
+
let t = [...a, f(r, "local")];
|
|
43
|
+
if (c) {
|
|
44
|
+
let s;
|
|
45
|
+
typeof c == "function" ? s = c(r, {
|
|
46
|
+
messages: y(t)
|
|
47
|
+
}) : s = c;
|
|
48
|
+
const n = f(s, "loading");
|
|
49
|
+
e = n.id, t = [...t, n];
|
|
50
|
+
}
|
|
51
|
+
return t;
|
|
52
|
+
});
|
|
53
|
+
let o = null;
|
|
54
|
+
const i = (a, t) => {
|
|
55
|
+
let s = g.value.find((n) => n.id === o);
|
|
56
|
+
return s ? u((n) => n.map((m) => m.id === o ? {
|
|
57
|
+
...m,
|
|
58
|
+
message: a,
|
|
59
|
+
status: t
|
|
60
|
+
} : m)) : (s = f(a, t), u((n) => [...n.filter((R) => R.id !== e), s]), o = s.id), s;
|
|
61
|
+
};
|
|
62
|
+
p.request(
|
|
63
|
+
{
|
|
64
|
+
message: r,
|
|
65
|
+
messages: q()
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
onUpdate: (a) => {
|
|
69
|
+
i(a, "loading");
|
|
70
|
+
},
|
|
71
|
+
onSuccess: (a) => {
|
|
72
|
+
i(a, "success");
|
|
73
|
+
},
|
|
74
|
+
onError: async (a) => {
|
|
75
|
+
if (d) {
|
|
76
|
+
let t;
|
|
77
|
+
typeof d == "function" ? t = await d(r, {
|
|
78
|
+
error: a,
|
|
79
|
+
messages: q()
|
|
80
|
+
}) : t = d, u((s) => [
|
|
81
|
+
...s.filter((n) => n.id !== e && n.id !== o),
|
|
82
|
+
f(t, "error")
|
|
83
|
+
]);
|
|
84
|
+
} else
|
|
85
|
+
u((t) => t.filter((s) => s.id !== e && s.id !== o));
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
}),
|
|
90
|
+
messages: g,
|
|
91
|
+
parsedMessages: E,
|
|
92
|
+
setMessages: u
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
export {
|
|
96
|
+
F as default
|
|
97
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import r from "../../_util/supportsPassive.mjs";
|
|
2
|
+
function f(e, s, o, n) {
|
|
3
|
+
if (e && e.addEventListener) {
|
|
4
|
+
let i = n;
|
|
5
|
+
i === void 0 && r && (s === "touchstart" || s === "touchmove" || s === "wheel") && (i = { passive: !1 }), e.addEventListener(s, o, i);
|
|
6
|
+
}
|
|
7
|
+
return {
|
|
8
|
+
remove: () => {
|
|
9
|
+
e && e.removeEventListener && e.removeEventListener(s, o);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
f as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function l(s, i) {
|
|
2
|
+
return s.classList ? s.classList.contains(i) : ` ${s.className} `.indexOf(` ${i} `) > -1;
|
|
3
|
+
}
|
|
4
|
+
function t(s, i) {
|
|
5
|
+
s.classList ? s.classList.add(i) : l(s, i) || (s.className = `${s.className} ${i}`);
|
|
6
|
+
}
|
|
7
|
+
function c(s, i) {
|
|
8
|
+
if (s.classList)
|
|
9
|
+
s.classList.remove(i);
|
|
10
|
+
else if (l(s, i)) {
|
|
11
|
+
const a = s.className;
|
|
12
|
+
s.className = ` ${a} `.replace(` ${i} `, " ");
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
t as addClass,
|
|
17
|
+
l as hasClass,
|
|
18
|
+
c as removeClass
|
|
19
|
+
};
|