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,143 @@
|
|
|
1
|
+
import { genStyleHooks as t } from "../../theme/genStyleUtils.mjs";
|
|
2
|
+
import "../../_util/cssinjs/StyleContext.mjs";
|
|
3
|
+
import "vue";
|
|
4
|
+
import { unit as o } from "../../_util/cssinjs/util.mjs";
|
|
5
|
+
import "../../_util/cssinjs/theme/ThemeCache.mjs";
|
|
6
|
+
import "../../_util/warning.mjs";
|
|
7
|
+
import "../../_util/cssinjs/transformers/legacyLogicalProperties.mjs";
|
|
8
|
+
import { merge as l } from "../../_util/cssinjs-utils/util/statistic.mjs";
|
|
9
|
+
const n = (r) => {
|
|
10
|
+
const { componentCls: e } = r;
|
|
11
|
+
return {
|
|
12
|
+
[e]: {
|
|
13
|
+
// ======================== Prompt ========================
|
|
14
|
+
"&, & *": {
|
|
15
|
+
boxSizing: "border-box"
|
|
16
|
+
},
|
|
17
|
+
maxWidth: "100%",
|
|
18
|
+
[`&${e}-rtl`]: {
|
|
19
|
+
direction: "rtl"
|
|
20
|
+
},
|
|
21
|
+
[`& ${e}-title`]: {
|
|
22
|
+
marginBlockStart: 0,
|
|
23
|
+
fontWeight: "normal",
|
|
24
|
+
color: r.colorTextTertiary
|
|
25
|
+
},
|
|
26
|
+
[`& ${e}-list`]: {
|
|
27
|
+
display: "flex",
|
|
28
|
+
gap: r.paddingSM,
|
|
29
|
+
overflowX: "scroll",
|
|
30
|
+
"&::-webkit-scrollbar": {
|
|
31
|
+
display: "none"
|
|
32
|
+
},
|
|
33
|
+
listStyle: "none",
|
|
34
|
+
paddingInlineStart: 0,
|
|
35
|
+
marginBlock: 0,
|
|
36
|
+
alignItems: "stretch",
|
|
37
|
+
"&-wrap": {
|
|
38
|
+
flexWrap: "wrap"
|
|
39
|
+
},
|
|
40
|
+
"&-vertical": {
|
|
41
|
+
flexDirection: "column",
|
|
42
|
+
alignItems: "flex-start"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
// ========================= Item =========================
|
|
46
|
+
[`${e}-item`]: {
|
|
47
|
+
flex: "none",
|
|
48
|
+
display: "flex",
|
|
49
|
+
gap: r.paddingXS,
|
|
50
|
+
height: "auto",
|
|
51
|
+
paddingBlock: r.paddingSM,
|
|
52
|
+
paddingInline: r.padding,
|
|
53
|
+
alignItems: "flex-start",
|
|
54
|
+
justifyContent: "flex-start",
|
|
55
|
+
background: r.colorBgContainer,
|
|
56
|
+
borderRadius: r.borderRadiusLG,
|
|
57
|
+
transition: ["border", "background"].map((i) => `${i} ${r.motionDurationSlow}`).join(","),
|
|
58
|
+
border: `${o(r.lineWidth)} ${r.lineType} ${r.colorBorderSecondary}`,
|
|
59
|
+
[`&:not(${e}-item-has-nest)`]: {
|
|
60
|
+
"&:hover": {
|
|
61
|
+
cursor: "pointer",
|
|
62
|
+
background: r.colorFillTertiary
|
|
63
|
+
},
|
|
64
|
+
"&:active": {
|
|
65
|
+
background: r.colorFill
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
[`${e}-content`]: {
|
|
69
|
+
flex: "auto",
|
|
70
|
+
minWidth: 0,
|
|
71
|
+
display: "flex",
|
|
72
|
+
gap: r.paddingXXS,
|
|
73
|
+
flexDirection: "column",
|
|
74
|
+
alignItems: "flex-start"
|
|
75
|
+
},
|
|
76
|
+
[`${e}-icon, ${e}-label, ${e}-desc`]: {
|
|
77
|
+
margin: 0,
|
|
78
|
+
padding: 0,
|
|
79
|
+
fontSize: r.fontSize,
|
|
80
|
+
lineHeight: r.lineHeight,
|
|
81
|
+
textAlign: "start",
|
|
82
|
+
whiteSpace: "normal"
|
|
83
|
+
},
|
|
84
|
+
[`${e}-label`]: {
|
|
85
|
+
color: r.colorTextHeading,
|
|
86
|
+
fontWeight: 500
|
|
87
|
+
},
|
|
88
|
+
[`${e}-label + ${e}-desc`]: {
|
|
89
|
+
color: r.colorTextTertiary
|
|
90
|
+
},
|
|
91
|
+
// Disabled
|
|
92
|
+
[`&${e}-item-disabled`]: {
|
|
93
|
+
pointerEvents: "none",
|
|
94
|
+
background: r.colorBgContainerDisabled,
|
|
95
|
+
[`${e}-label, ${e}-desc`]: {
|
|
96
|
+
color: r.colorTextTertiary
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
}, a = (r) => {
|
|
103
|
+
const { componentCls: e } = r;
|
|
104
|
+
return {
|
|
105
|
+
[e]: {
|
|
106
|
+
// ========================= Parent =========================
|
|
107
|
+
[`${e}-item-has-nest`]: {
|
|
108
|
+
[`> ${e}-content`]: {
|
|
109
|
+
// gap: token.paddingSM,
|
|
110
|
+
[`> ${e}-label`]: {
|
|
111
|
+
fontSize: r.fontSizeLG,
|
|
112
|
+
lineHeight: r.lineHeightLG
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
// ========================= Nested =========================
|
|
117
|
+
[`&${e}-nested`]: {
|
|
118
|
+
marginTop: r.paddingXS,
|
|
119
|
+
// ======================== Prompt ========================
|
|
120
|
+
alignSelf: "stretch",
|
|
121
|
+
[`${e}-list`]: {
|
|
122
|
+
alignItems: "stretch"
|
|
123
|
+
},
|
|
124
|
+
// ========================= Item =========================
|
|
125
|
+
[`${e}-item`]: {
|
|
126
|
+
border: 0,
|
|
127
|
+
background: r.colorFillQuaternary
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
}, c = () => ({}), u = t(
|
|
133
|
+
"Prompts",
|
|
134
|
+
(r) => {
|
|
135
|
+
const e = l(r, {});
|
|
136
|
+
return [n(e), a(e)];
|
|
137
|
+
},
|
|
138
|
+
c
|
|
139
|
+
);
|
|
140
|
+
export {
|
|
141
|
+
u as default,
|
|
142
|
+
c as prepareComponentToken
|
|
143
|
+
};
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { defineComponent as ee, toRef as te, useSlots as ne, computed as a, ref as d, watch as ae, createVNode as o, mergeProps as oe } from "vue";
|
|
2
|
+
import { a as le, c } from "../attachments/Attachments2.mjs";
|
|
3
|
+
import { Input as se, Flex as ie } from "ant-design-vue";
|
|
4
|
+
import ue from "../_util/pick-attrs.mjs";
|
|
5
|
+
import re from "../_util/hooks/use-x-component-config.mjs";
|
|
6
|
+
import ce from "../x-provider/hooks/use-x-provider-context.mjs";
|
|
7
|
+
import "../x-provider/context.mjs";
|
|
8
|
+
import { SenderHeaderContextProvider as fe } from "./context.mjs";
|
|
9
|
+
import { ActionButtonContextProvider as de } from "./components/ActionButton/context.mjs";
|
|
10
|
+
import me from "./components/ClearButton.mjs";
|
|
11
|
+
import D from "./components/LoadingButton.mjs";
|
|
12
|
+
import K from "./components/SendButton.mjs";
|
|
13
|
+
import R from "./components/SpeechButton/index.mjs";
|
|
14
|
+
import ve from "./style/index.mjs";
|
|
15
|
+
import Ce from "./useSpeech.mjs";
|
|
16
|
+
import ye from "../_util/getValue.mjs";
|
|
17
|
+
const Ae = /* @__PURE__ */ ee({
|
|
18
|
+
name: "AXSender",
|
|
19
|
+
__name: "Sender",
|
|
20
|
+
props: {
|
|
21
|
+
onKeyPress: {},
|
|
22
|
+
onFocus: {},
|
|
23
|
+
onBlur: {},
|
|
24
|
+
prefixCls: {},
|
|
25
|
+
defaultValue: {},
|
|
26
|
+
value: {},
|
|
27
|
+
loading: {
|
|
28
|
+
type: Boolean
|
|
29
|
+
},
|
|
30
|
+
placeholder: {},
|
|
31
|
+
readOnly: {
|
|
32
|
+
type: Boolean
|
|
33
|
+
},
|
|
34
|
+
submitType: {
|
|
35
|
+
type: [String, Boolean],
|
|
36
|
+
default: "enter"
|
|
37
|
+
},
|
|
38
|
+
disabled: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: void 0
|
|
41
|
+
},
|
|
42
|
+
onSubmit: {},
|
|
43
|
+
onChange: {},
|
|
44
|
+
onCancel: {},
|
|
45
|
+
onKeyDown: {},
|
|
46
|
+
onPaste: {},
|
|
47
|
+
onPasteFile: {},
|
|
48
|
+
components: {},
|
|
49
|
+
styles: {
|
|
50
|
+
default: () => ({})
|
|
51
|
+
},
|
|
52
|
+
rootClassName: {},
|
|
53
|
+
classNames: {
|
|
54
|
+
default: () => ({})
|
|
55
|
+
},
|
|
56
|
+
style: {},
|
|
57
|
+
className: {},
|
|
58
|
+
actions: {
|
|
59
|
+
type: [Object, Function, Boolean],
|
|
60
|
+
default: void 0
|
|
61
|
+
},
|
|
62
|
+
allowSpeech: {},
|
|
63
|
+
prefix: {},
|
|
64
|
+
footer: {},
|
|
65
|
+
header: {},
|
|
66
|
+
autoSize: {
|
|
67
|
+
default: () => ({
|
|
68
|
+
maxRows: 8
|
|
69
|
+
})
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
emits: ["update:value"],
|
|
73
|
+
setup(e, {
|
|
74
|
+
expose: I,
|
|
75
|
+
emit: F
|
|
76
|
+
}) {
|
|
77
|
+
const V = le(e, ["prefixCls", "styles", "classNames", "className", "rootClassName", "style", "defaultValue", "value", "placeholder", "readOnly", "submitType", "onSubmit", "loading", "components", "onCancel", "onChange", "actions", "onKeyPress", "onKeyDown", "disabled", "allowSpeech", "prefix", "footer", "header", "onPaste", "onPasteFile", "autoSize"]);
|
|
78
|
+
te(e, "prefixCls");
|
|
79
|
+
function A(t, n, r) {
|
|
80
|
+
return ye(t, n) || r;
|
|
81
|
+
}
|
|
82
|
+
const m = {
|
|
83
|
+
SendButton: K,
|
|
84
|
+
ClearButton: me,
|
|
85
|
+
LoadingButton: D,
|
|
86
|
+
SpeechButton: R
|
|
87
|
+
}, E = F, i = ne(), {
|
|
88
|
+
direction: O,
|
|
89
|
+
getPrefixCls: T
|
|
90
|
+
} = ce(), l = a(() => T("sender", e.prefixCls)), v = d(null), f = d(null), s = re("sender"), g = a(() => `${l.value}-input`), [k, z, X] = ve(l.value), L = a(() => c(l.value, s.value.className, e.className, e.rootClassName, z.value, X, {
|
|
91
|
+
[`${l.value}-rtl`]: O.value === "rtl",
|
|
92
|
+
[`${l.value}-disabled`]: e.disabled
|
|
93
|
+
})), M = a(() => `${l.value}-actions-btn`), S = a(() => `${l.value}-actions-list`), u = d(e.value ?? e.defaultValue ?? ""), x = (t) => {
|
|
94
|
+
u.value = t;
|
|
95
|
+
};
|
|
96
|
+
ae(() => e.value, () => {
|
|
97
|
+
x(e.value);
|
|
98
|
+
});
|
|
99
|
+
const C = (t, n) => {
|
|
100
|
+
x(t), E("update:value", t), e.onChange && e.onChange(t, n);
|
|
101
|
+
}, {
|
|
102
|
+
speechPermission: j,
|
|
103
|
+
triggerSpeech: b,
|
|
104
|
+
recording: q
|
|
105
|
+
} = Ce((t) => {
|
|
106
|
+
C(`${u.value} ${t}`);
|
|
107
|
+
}, () => e.allowSpeech), H = A(e.components, ["input"], se.TextArea), G = a(() => ue(V, {
|
|
108
|
+
attr: !0,
|
|
109
|
+
aria: !0,
|
|
110
|
+
data: !0
|
|
111
|
+
})), J = a(() => ({
|
|
112
|
+
...G.value,
|
|
113
|
+
ref: f
|
|
114
|
+
})), y = () => {
|
|
115
|
+
u.value && e.onSubmit && !e.loading && e.onSubmit(u.value);
|
|
116
|
+
}, Q = () => {
|
|
117
|
+
C("");
|
|
118
|
+
}, h = d(!1), U = () => {
|
|
119
|
+
h.value = !0;
|
|
120
|
+
}, W = () => {
|
|
121
|
+
h.value = !1;
|
|
122
|
+
}, Y = (t) => {
|
|
123
|
+
const n = t.key === "Enter" && !h.value;
|
|
124
|
+
switch (e.submitType) {
|
|
125
|
+
case "enter":
|
|
126
|
+
n && !t.shiftKey && (t.preventDefault(), y());
|
|
127
|
+
break;
|
|
128
|
+
case "shiftEnter":
|
|
129
|
+
n && t.shiftKey && (t.preventDefault(), y());
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
e.onKeyPress && e.onKeyPress(t);
|
|
133
|
+
}, Z = (t) => {
|
|
134
|
+
var r, B;
|
|
135
|
+
const n = (r = t.clipboardData) == null ? void 0 : r.files;
|
|
136
|
+
n != null && n.length && e.onPasteFile && (e.onPasteFile(n[0], n), t.preventDefault()), (B = e.onPaste) == null || B.call(e, t);
|
|
137
|
+
}, p = (t) => {
|
|
138
|
+
var n, r;
|
|
139
|
+
t.target !== ((n = v.value) == null ? void 0 : n.querySelector(`.${g.value}`)) && t.preventDefault(), (r = f.value) == null || r.focus();
|
|
140
|
+
}, P = a(() => {
|
|
141
|
+
let t = o(ie, {
|
|
142
|
+
class: `${S.value}-presets`
|
|
143
|
+
}, {
|
|
144
|
+
default: () => [e.allowSpeech && o(R, null, null), e.loading ? o(D, null, null) : o(K, null, null)]
|
|
145
|
+
});
|
|
146
|
+
const n = {
|
|
147
|
+
components: m
|
|
148
|
+
};
|
|
149
|
+
return i.actions ? t = i.actions({
|
|
150
|
+
ori: t,
|
|
151
|
+
info: n
|
|
152
|
+
}) : typeof e.actions == "function" ? t = e.actions(t, n) : (e.actions || e.actions === !1) && (t = e.actions), t;
|
|
153
|
+
}), _ = a(() => ({
|
|
154
|
+
prefixCls: M.value,
|
|
155
|
+
onSend: y,
|
|
156
|
+
onSendDisabled: !u.value,
|
|
157
|
+
onClear: Q,
|
|
158
|
+
onClearDisabled: !u.value,
|
|
159
|
+
onCancel: e.onCancel,
|
|
160
|
+
onCancelDisabled: !e.loading,
|
|
161
|
+
onSpeech: () => b(!1),
|
|
162
|
+
onSpeechDisabled: !j.value,
|
|
163
|
+
speechRecording: q.value,
|
|
164
|
+
disabled: e.disabled
|
|
165
|
+
})), N = a(() => {
|
|
166
|
+
let t = null;
|
|
167
|
+
const n = {
|
|
168
|
+
components: m
|
|
169
|
+
};
|
|
170
|
+
return i.footer ? t = i.footer({
|
|
171
|
+
info: n
|
|
172
|
+
}) : typeof e.footer == "function" ? t = e.footer({
|
|
173
|
+
components: m
|
|
174
|
+
}) : e.footer && (t = e.footer), t;
|
|
175
|
+
}), $ = a(() => i.header ? i.header() : e.header), w = a(() => i.prefix ? i.prefix() : e.prefix);
|
|
176
|
+
return I({
|
|
177
|
+
nativeElement: v.value,
|
|
178
|
+
// @ts-expect-error
|
|
179
|
+
focus: (t) => {
|
|
180
|
+
var n;
|
|
181
|
+
return (n = f.value) == null ? void 0 : n.focus(t);
|
|
182
|
+
},
|
|
183
|
+
// @ts-expect-error
|
|
184
|
+
blur: () => {
|
|
185
|
+
var t;
|
|
186
|
+
return (t = f.value) == null ? void 0 : t.blur();
|
|
187
|
+
}
|
|
188
|
+
}), () => k(o("div", {
|
|
189
|
+
ref: v,
|
|
190
|
+
class: L.value,
|
|
191
|
+
style: {
|
|
192
|
+
...s.value.style,
|
|
193
|
+
...e.style
|
|
194
|
+
}
|
|
195
|
+
}, [$.value && o(fe, {
|
|
196
|
+
value: {
|
|
197
|
+
prefixCls: l.value
|
|
198
|
+
}
|
|
199
|
+
}, {
|
|
200
|
+
default: () => [$.value]
|
|
201
|
+
}), o(de, {
|
|
202
|
+
value: _.value
|
|
203
|
+
}, {
|
|
204
|
+
default: () => [o("div", {
|
|
205
|
+
class: `${l.value}-content`,
|
|
206
|
+
onMousedown: p
|
|
207
|
+
}, [w.value && o("div", {
|
|
208
|
+
class: c(`${l.value}-prefix`, s.value.classNames.prefix, e.classNames.prefix),
|
|
209
|
+
style: {
|
|
210
|
+
...s.value.styles.prefix,
|
|
211
|
+
...e.styles.prefix
|
|
212
|
+
}
|
|
213
|
+
}, [w.value]), o(H, oe(J.value, {
|
|
214
|
+
disabled: e.disabled,
|
|
215
|
+
style: {
|
|
216
|
+
...s.value.styles.input,
|
|
217
|
+
...e.styles.input
|
|
218
|
+
},
|
|
219
|
+
class: c(g.value, s.value.classNames.input, e.classNames.input),
|
|
220
|
+
autoSize: e.autoSize,
|
|
221
|
+
value: u.value,
|
|
222
|
+
onChange: (t) => {
|
|
223
|
+
C(t.target.value, t), b(!0);
|
|
224
|
+
},
|
|
225
|
+
onPressEnter: Y,
|
|
226
|
+
onCompositionstart: U,
|
|
227
|
+
onCompositionend: W,
|
|
228
|
+
onKeydown: e.onKeyDown,
|
|
229
|
+
placeholder: e.placeholder,
|
|
230
|
+
onPaste: Z,
|
|
231
|
+
bordered: !1,
|
|
232
|
+
readOnly: e.readOnly
|
|
233
|
+
}), null), P.value && o("div", {
|
|
234
|
+
class: c(S.value, s.value.classNames.actions, e.classNames.actions),
|
|
235
|
+
style: {
|
|
236
|
+
...s.value.styles.actions,
|
|
237
|
+
...e.styles.actions
|
|
238
|
+
}
|
|
239
|
+
}, [P.value])]), N.value && o("div", {
|
|
240
|
+
class: c(`${l.value}-footer`, s.value.classNames.footer, e.classNames.footer),
|
|
241
|
+
style: {
|
|
242
|
+
...s.value.styles.footer,
|
|
243
|
+
...e.styles.footer
|
|
244
|
+
}
|
|
245
|
+
}, [N.value])]
|
|
246
|
+
})]));
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
export {
|
|
250
|
+
Ae as default
|
|
251
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { defineComponent as u, mergeDefaults as m, toRef as d, useSlots as r, computed as f, useAttrs as v, createVNode as l, withDirectives as y, mergeProps as h, vShow as C } from "vue";
|
|
2
|
+
import { Button as N } from "ant-design-vue";
|
|
3
|
+
import { c as n } from "../attachments/Attachments2.mjs";
|
|
4
|
+
import { useSenderHeaderContextInject as x } from "./context.mjs";
|
|
5
|
+
import "../transition-collapse/index.mjs";
|
|
6
|
+
import S from "../transition-collapse/TransitionCollapse.mjs";
|
|
7
|
+
import { h as $ } from "../attachments/FileList/FileList2.mjs";
|
|
8
|
+
const w = /* @__PURE__ */ u({
|
|
9
|
+
name: "AXSenderHeader",
|
|
10
|
+
inheritAttrs: !1,
|
|
11
|
+
__name: "SenderHeader",
|
|
12
|
+
props: m({
|
|
13
|
+
forceRender: {
|
|
14
|
+
type: Boolean
|
|
15
|
+
},
|
|
16
|
+
open: {
|
|
17
|
+
type: Boolean
|
|
18
|
+
},
|
|
19
|
+
onOpenChange: {
|
|
20
|
+
type: Function
|
|
21
|
+
},
|
|
22
|
+
title: null,
|
|
23
|
+
children: null,
|
|
24
|
+
className: null,
|
|
25
|
+
style: null,
|
|
26
|
+
classNames: null,
|
|
27
|
+
styles: null,
|
|
28
|
+
closable: {
|
|
29
|
+
type: Boolean
|
|
30
|
+
}
|
|
31
|
+
}, {
|
|
32
|
+
classNames: () => ({}),
|
|
33
|
+
styles: () => ({})
|
|
34
|
+
}),
|
|
35
|
+
setup(e) {
|
|
36
|
+
d(e, "classNames");
|
|
37
|
+
const a = r(), s = x(), t = f(() => `${s.value.prefixCls}-header`), i = v();
|
|
38
|
+
return () => l(S, {
|
|
39
|
+
prefixCls: s.value.prefixCls
|
|
40
|
+
}, {
|
|
41
|
+
default: () => {
|
|
42
|
+
var c;
|
|
43
|
+
return [e.open || e.forceRender ? y(l("div", h(i, {
|
|
44
|
+
class: n(t.value, e.className),
|
|
45
|
+
style: {
|
|
46
|
+
...e.style
|
|
47
|
+
}
|
|
48
|
+
}), [(e.closable !== !1 || e.title) && l("div", {
|
|
49
|
+
class: (
|
|
50
|
+
// We follow antd naming standard here.
|
|
51
|
+
// So the header part is use `-header` suffix.
|
|
52
|
+
// Though its little bit weird for double `-header`.
|
|
53
|
+
n(`${t.value}-header`, e.classNames.header)
|
|
54
|
+
),
|
|
55
|
+
style: {
|
|
56
|
+
...e.styles.header
|
|
57
|
+
}
|
|
58
|
+
}, [l("div", {
|
|
59
|
+
class: `${t.value}-title`
|
|
60
|
+
}, [e.title]), e.closable !== !1 && l("div", {
|
|
61
|
+
class: `${t.value}-close`
|
|
62
|
+
}, [l(N, {
|
|
63
|
+
type: "text",
|
|
64
|
+
icon: l($, null, null),
|
|
65
|
+
size: "small",
|
|
66
|
+
onClick: () => {
|
|
67
|
+
var o;
|
|
68
|
+
(o = e.onOpenChange) == null || o.call(e, !e.open);
|
|
69
|
+
}
|
|
70
|
+
}, null)])]), a.default && l("div", {
|
|
71
|
+
class: n(`${t.value}-content`, e.classNames.content),
|
|
72
|
+
style: {
|
|
73
|
+
...e.styles.content
|
|
74
|
+
}
|
|
75
|
+
}, [(c = a.default) == null ? void 0 : c.call(a)])]), [[C, e.open]]) : null];
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
export {
|
|
81
|
+
w as default
|
|
82
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineComponent as o, createVNode as r, createTextVNode as n } from "vue";
|
|
2
|
+
const a = /* @__PURE__ */ o({
|
|
3
|
+
name: "AXSenderStopLoading",
|
|
4
|
+
__name: "StopLoading",
|
|
5
|
+
props: {
|
|
6
|
+
className: null
|
|
7
|
+
},
|
|
8
|
+
setup(t) {
|
|
9
|
+
const e = t;
|
|
10
|
+
return () => r("svg", {
|
|
11
|
+
color: "currentColor",
|
|
12
|
+
viewBox: "0 0 1000 1000",
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
15
|
+
class: e.className
|
|
16
|
+
}, [r("title", null, [n("Stop Loading")]), r("rect", {
|
|
17
|
+
fill: "currentColor",
|
|
18
|
+
height: "250",
|
|
19
|
+
rx: "24",
|
|
20
|
+
ry: "24",
|
|
21
|
+
width: "250",
|
|
22
|
+
x: "375",
|
|
23
|
+
y: "375"
|
|
24
|
+
}, null), r("circle", {
|
|
25
|
+
cx: "500",
|
|
26
|
+
cy: "500",
|
|
27
|
+
fill: "none",
|
|
28
|
+
r: "450",
|
|
29
|
+
stroke: "currentColor",
|
|
30
|
+
"stroke-width": "100",
|
|
31
|
+
opacity: "0.45"
|
|
32
|
+
}, null), r("circle", {
|
|
33
|
+
cx: "500",
|
|
34
|
+
cy: "500",
|
|
35
|
+
fill: "none",
|
|
36
|
+
r: "450",
|
|
37
|
+
stroke: "currentColor",
|
|
38
|
+
"stroke-width": "100",
|
|
39
|
+
"stroke-dasharray": "600 9999999"
|
|
40
|
+
}, [r("animateTransform", {
|
|
41
|
+
attributeName: "transform",
|
|
42
|
+
dur: "1s",
|
|
43
|
+
from: "0 500 500",
|
|
44
|
+
repeatCount: "indefinite",
|
|
45
|
+
to: "360 500 500",
|
|
46
|
+
type: "rotate"
|
|
47
|
+
}, null)])]);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
export {
|
|
51
|
+
a as default
|
|
52
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { shallowRef as i, defineComponent as c, computed as r, provide as p, watch as a, unref as d, triggerRef as m, inject as f } from "vue";
|
|
2
|
+
import { objectType as x } from "../../../_util/type.mjs";
|
|
3
|
+
const u = Symbol("ActionButtonContext"), o = i(), A = (t) => {
|
|
4
|
+
p(u, t), a(
|
|
5
|
+
t,
|
|
6
|
+
() => {
|
|
7
|
+
o.value = d(t), m(o);
|
|
8
|
+
},
|
|
9
|
+
{ immediate: !0, deep: !0 }
|
|
10
|
+
);
|
|
11
|
+
}, l = () => f(
|
|
12
|
+
u,
|
|
13
|
+
r(() => o.value || {})
|
|
14
|
+
), v = c({
|
|
15
|
+
props: {
|
|
16
|
+
value: x()
|
|
17
|
+
},
|
|
18
|
+
setup(t, { slots: e }) {
|
|
19
|
+
return A(r(() => t.value)), () => {
|
|
20
|
+
var n;
|
|
21
|
+
return (n = e.default) == null ? void 0 : n.call(e);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
v as ActionButtonContextProvider,
|
|
27
|
+
v as default,
|
|
28
|
+
o as globalActionButtonContextApi,
|
|
29
|
+
l as useActionButtonContextInject,
|
|
30
|
+
A as useActionButtonContextProvider
|
|
31
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { defineComponent as d, toRef as u, useSlots as f, computed as s, createVNode as m, mergeProps as y } from "vue";
|
|
2
|
+
import { a as b, c as p } from "../../../attachments/Attachments2.mjs";
|
|
3
|
+
import { Button as C } from "ant-design-vue";
|
|
4
|
+
import { useActionButtonContextInject as x } from "./context.mjs";
|
|
5
|
+
const A = /* @__PURE__ */ d({
|
|
6
|
+
name: "AXSenderActionButton",
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
action: {},
|
|
10
|
+
prefixCls: {},
|
|
11
|
+
type: {
|
|
12
|
+
default: "text"
|
|
13
|
+
},
|
|
14
|
+
htmlType: {},
|
|
15
|
+
shape: {},
|
|
16
|
+
size: {},
|
|
17
|
+
loading: {
|
|
18
|
+
type: [Boolean, Object]
|
|
19
|
+
},
|
|
20
|
+
disabled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: void 0
|
|
23
|
+
},
|
|
24
|
+
ghost: {
|
|
25
|
+
type: Boolean
|
|
26
|
+
},
|
|
27
|
+
block: {
|
|
28
|
+
type: Boolean
|
|
29
|
+
},
|
|
30
|
+
danger: {
|
|
31
|
+
type: Boolean
|
|
32
|
+
},
|
|
33
|
+
icon: {},
|
|
34
|
+
href: {},
|
|
35
|
+
target: {},
|
|
36
|
+
title: {},
|
|
37
|
+
onClick: {},
|
|
38
|
+
onMousedown: {}
|
|
39
|
+
},
|
|
40
|
+
setup(e) {
|
|
41
|
+
const c = b(e, ["action", "type", "disabled", "onClick"]);
|
|
42
|
+
u(e, "disabled");
|
|
43
|
+
const r = f(), n = x(), l = s(() => {
|
|
44
|
+
var o;
|
|
45
|
+
const a = n.value.disabled, t = (o = n.value) == null ? void 0 : o[`${e.action}Disabled`];
|
|
46
|
+
return e.disabled ?? a ?? t;
|
|
47
|
+
}), i = s(() => n.value.prefixCls);
|
|
48
|
+
return () => m(C, y({
|
|
49
|
+
type: e.type
|
|
50
|
+
}, c, {
|
|
51
|
+
onClick: (a) => {
|
|
52
|
+
var t, o;
|
|
53
|
+
l.value || ((o = (t = n.value) == null ? void 0 : t[e.action]) == null || o.call(t), e.onClick && !Array.isArray(e.onClick) && e.onClick(a));
|
|
54
|
+
},
|
|
55
|
+
class: p(i.value, {
|
|
56
|
+
[`${i.value}-disabled`]: l.value
|
|
57
|
+
})
|
|
58
|
+
}), {
|
|
59
|
+
icon: () => r.default()
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export {
|
|
64
|
+
A as default
|
|
65
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as r, mergeDefaults as t, createVNode as e, mergeProps as o } from "vue";
|
|
2
|
+
import { a as u } from "../../attachments/Attachments2.mjs";
|
|
3
|
+
import a from "./ActionButton/index.mjs";
|
|
4
|
+
import { i as s } from "../../attachments/FileList/FileList2.mjs";
|
|
5
|
+
const f = /* @__PURE__ */ r({
|
|
6
|
+
name: "AXSenderClearButton",
|
|
7
|
+
__name: "ClearButton",
|
|
8
|
+
props: t({
|
|
9
|
+
prefixCls: null,
|
|
10
|
+
type: null,
|
|
11
|
+
htmlType: null,
|
|
12
|
+
shape: null,
|
|
13
|
+
size: null,
|
|
14
|
+
loading: null,
|
|
15
|
+
disabled: null,
|
|
16
|
+
ghost: null,
|
|
17
|
+
block: null,
|
|
18
|
+
danger: null,
|
|
19
|
+
icon: null,
|
|
20
|
+
href: null,
|
|
21
|
+
target: null,
|
|
22
|
+
title: null,
|
|
23
|
+
onClick: null,
|
|
24
|
+
onMousedown: null
|
|
25
|
+
}, {
|
|
26
|
+
disabled: void 0
|
|
27
|
+
}),
|
|
28
|
+
setup(l) {
|
|
29
|
+
const n = u(l, ["disabled"]);
|
|
30
|
+
return () => e(a, o({
|
|
31
|
+
disabled: l.disabled
|
|
32
|
+
}, n, {
|
|
33
|
+
action: "onClear"
|
|
34
|
+
}), {
|
|
35
|
+
default: () => [e(s, null, null)]
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
f as default
|
|
41
|
+
};
|