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,58 @@
|
|
|
1
|
+
import { defineComponent as a, mergeDefaults as r, createVNode as l, mergeProps as s } from "vue";
|
|
2
|
+
import { a as i, c as u } from "../../attachments/Attachments2.mjs";
|
|
3
|
+
import c from "./ActionButton/index.mjs";
|
|
4
|
+
import m from "../StopLoading.mjs";
|
|
5
|
+
import { useActionButtonContextInject as d } from "./ActionButton/context.mjs";
|
|
6
|
+
import { theme as p } from "ant-design-vue";
|
|
7
|
+
const x = /* @__PURE__ */ a({
|
|
8
|
+
name: "AXSenderLoadingButton",
|
|
9
|
+
__name: "LoadingButton",
|
|
10
|
+
props: r({
|
|
11
|
+
prefixCls: null,
|
|
12
|
+
type: null,
|
|
13
|
+
htmlType: null,
|
|
14
|
+
shape: null,
|
|
15
|
+
size: null,
|
|
16
|
+
loading: null,
|
|
17
|
+
disabled: null,
|
|
18
|
+
ghost: null,
|
|
19
|
+
block: null,
|
|
20
|
+
danger: null,
|
|
21
|
+
icon: null,
|
|
22
|
+
href: null,
|
|
23
|
+
target: null,
|
|
24
|
+
title: null,
|
|
25
|
+
onClick: null,
|
|
26
|
+
onMousedown: null
|
|
27
|
+
}, {
|
|
28
|
+
type: "primary",
|
|
29
|
+
shape: "circle",
|
|
30
|
+
icon: null,
|
|
31
|
+
disabled: void 0
|
|
32
|
+
}),
|
|
33
|
+
setup(e) {
|
|
34
|
+
const o = i(e, ["type", "shape", "icon", "disabled"]), n = d(), {
|
|
35
|
+
token: t
|
|
36
|
+
} = p.useToken();
|
|
37
|
+
return () => l(c, s({
|
|
38
|
+
type: e.type,
|
|
39
|
+
disabled: e.disabled,
|
|
40
|
+
shape: e.shape,
|
|
41
|
+
icon: e.icon
|
|
42
|
+
}, o, {
|
|
43
|
+
style: {
|
|
44
|
+
backgroundColor: "transparent",
|
|
45
|
+
color: t.value.colorPrimary
|
|
46
|
+
},
|
|
47
|
+
class: u(`${n.value.prefixCls}-loading-button`),
|
|
48
|
+
action: "onCancel"
|
|
49
|
+
}), {
|
|
50
|
+
default: () => [l(m, {
|
|
51
|
+
className: `${n.value.prefixCls}-loading-icon`
|
|
52
|
+
}, null)]
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
x as default
|
|
58
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineComponent as t, mergeDefaults as o, createVNode as l, mergeProps as r } from "vue";
|
|
2
|
+
import { a } from "../../attachments/Attachments2.mjs";
|
|
3
|
+
import u from "./ActionButton/index.mjs";
|
|
4
|
+
import { A as s } from "../../attachments/FileList/FileList2.mjs";
|
|
5
|
+
const f = /* @__PURE__ */ t({
|
|
6
|
+
name: "AXSenderLoadingButton",
|
|
7
|
+
__name: "SendButton",
|
|
8
|
+
props: o({
|
|
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
|
+
type: "primary",
|
|
27
|
+
shape: "circle",
|
|
28
|
+
disabled: void 0
|
|
29
|
+
}),
|
|
30
|
+
setup(e) {
|
|
31
|
+
const n = a(e, ["type", "shape", "disabled"]);
|
|
32
|
+
return () => l(u, r({
|
|
33
|
+
type: e.type,
|
|
34
|
+
shape: e.shape,
|
|
35
|
+
disabled: e.disabled
|
|
36
|
+
}, n, {
|
|
37
|
+
action: "onSend"
|
|
38
|
+
}), {
|
|
39
|
+
default: () => [l(s, null, null)]
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export {
|
|
44
|
+
f as default
|
|
45
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent as T, createVNode as e, createTextVNode as $ } from "vue";
|
|
2
|
+
const t = 1e3, n = 4, r = 140, s = 250, l = 500, c = 0.8, w = /* @__PURE__ */ T({
|
|
3
|
+
name: "AXSenderRecordingIcon",
|
|
4
|
+
__name: "RecordingIcon",
|
|
5
|
+
props: {
|
|
6
|
+
className: null
|
|
7
|
+
},
|
|
8
|
+
setup(u) {
|
|
9
|
+
const i = r / 2;
|
|
10
|
+
return () => e("svg", {
|
|
11
|
+
color: "currentColor",
|
|
12
|
+
viewBox: `0 0 ${t} ${t}`,
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
15
|
+
class: u.className
|
|
16
|
+
}, [e("title", null, [$("Speech Recording")]), Array.from({
|
|
17
|
+
length: n
|
|
18
|
+
}).map((d, o) => {
|
|
19
|
+
const m = (t - r * n) / (n - 1), g = o * (m + r), a = t / 2 - s / 2, p = t / 2 - l / 2;
|
|
20
|
+
return e("rect", {
|
|
21
|
+
fill: "currentColor",
|
|
22
|
+
rx: i,
|
|
23
|
+
ry: i,
|
|
24
|
+
height: s,
|
|
25
|
+
width: r,
|
|
26
|
+
x: g,
|
|
27
|
+
y: a,
|
|
28
|
+
key: o
|
|
29
|
+
}, [e("animate", {
|
|
30
|
+
attributeName: "height",
|
|
31
|
+
values: `${s}; ${l}; ${s}`,
|
|
32
|
+
keyTimes: "0; 0.5; 1",
|
|
33
|
+
dur: `${c}s`,
|
|
34
|
+
begin: `${c / n * o}s`,
|
|
35
|
+
repeatCount: "indefinite"
|
|
36
|
+
}, null), e("animate", {
|
|
37
|
+
attributeName: "y",
|
|
38
|
+
values: `${a}; ${p}; ${a}`,
|
|
39
|
+
keyTimes: "0; 0.5; 1",
|
|
40
|
+
dur: `${c}s`,
|
|
41
|
+
begin: `${c / n * o}s`,
|
|
42
|
+
repeatCount: "indefinite"
|
|
43
|
+
}, null)]);
|
|
44
|
+
})]);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
w as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { defineComponent as c, mergeDefaults as d, computed as o, createVNode as l, mergeProps as m } from "vue";
|
|
2
|
+
import { a as p } from "../../../attachments/Attachments2.mjs";
|
|
3
|
+
import { theme as f } from "ant-design-vue";
|
|
4
|
+
import y from "../ActionButton/index.mjs";
|
|
5
|
+
import { useActionButtonContextInject as g } from "../ActionButton/context.mjs";
|
|
6
|
+
import h from "./RecordingIcon.mjs";
|
|
7
|
+
import { j as x, k as b } from "../../../attachments/FileList/FileList2.mjs";
|
|
8
|
+
const j = /* @__PURE__ */ c({
|
|
9
|
+
name: "AXSenderSpeechButton",
|
|
10
|
+
__name: "index",
|
|
11
|
+
props: d({
|
|
12
|
+
prefixCls: null,
|
|
13
|
+
type: null,
|
|
14
|
+
htmlType: null,
|
|
15
|
+
shape: null,
|
|
16
|
+
size: null,
|
|
17
|
+
loading: null,
|
|
18
|
+
disabled: null,
|
|
19
|
+
ghost: null,
|
|
20
|
+
block: null,
|
|
21
|
+
danger: null,
|
|
22
|
+
icon: null,
|
|
23
|
+
href: null,
|
|
24
|
+
target: null,
|
|
25
|
+
title: null,
|
|
26
|
+
onClick: null,
|
|
27
|
+
onMousedown: null
|
|
28
|
+
}, {
|
|
29
|
+
type: "text",
|
|
30
|
+
disabled: void 0
|
|
31
|
+
}),
|
|
32
|
+
setup(n) {
|
|
33
|
+
const u = p(n, ["type", "disabled"]), t = g(), {
|
|
34
|
+
token: r
|
|
35
|
+
} = f.useToken(), s = o(() => t.value.speechRecording), i = o(() => t.value.prefixCls), a = o(() => {
|
|
36
|
+
let e;
|
|
37
|
+
return s.value ? e = l(h, {
|
|
38
|
+
className: `${i.value}-recording-icon`
|
|
39
|
+
}, null) : t.value.onSpeechDisabled ? e = l(x, null, null) : e = l(b, null, null), e;
|
|
40
|
+
});
|
|
41
|
+
return () => l(y, m({
|
|
42
|
+
type: n.type,
|
|
43
|
+
disabled: n.disabled
|
|
44
|
+
}, u, {
|
|
45
|
+
style: {
|
|
46
|
+
display: "flex",
|
|
47
|
+
justifyContent: "center",
|
|
48
|
+
alignItems: "center",
|
|
49
|
+
color: r.value.colorPrimary
|
|
50
|
+
},
|
|
51
|
+
action: "onSpeech"
|
|
52
|
+
}), {
|
|
53
|
+
default: () => [a.value]
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
export {
|
|
58
|
+
j as default
|
|
59
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { shallowRef as a, defineComponent as u, computed as o, provide as p, watch as i, unref as c, triggerRef as m, inject as f } from "vue";
|
|
2
|
+
import { objectType as x } from "../_util/type.mjs";
|
|
3
|
+
const d = Symbol("SenderHeaderContext"), t = a(), C = (e) => {
|
|
4
|
+
p(d, e), i(
|
|
5
|
+
e,
|
|
6
|
+
() => {
|
|
7
|
+
t.value = c(e), m(t);
|
|
8
|
+
},
|
|
9
|
+
{ immediate: !0, deep: !0 }
|
|
10
|
+
);
|
|
11
|
+
}, l = () => f(
|
|
12
|
+
d,
|
|
13
|
+
o(() => t.value || {})
|
|
14
|
+
), v = u({
|
|
15
|
+
props: {
|
|
16
|
+
value: x()
|
|
17
|
+
},
|
|
18
|
+
setup(e, { slots: r }) {
|
|
19
|
+
return C(o(() => e.value)), () => {
|
|
20
|
+
var n;
|
|
21
|
+
return (n = r.default) == null ? void 0 : n.call(r);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
v as SenderHeaderContextProvider,
|
|
27
|
+
v as default,
|
|
28
|
+
t as globalSenderHeaderContextApi,
|
|
29
|
+
l as useSenderHeaderContextInject,
|
|
30
|
+
C as useSenderHeaderContextProvider
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const t = (d) => {
|
|
2
|
+
const { componentCls: e, calc: o } = d, r = `${e}-header`;
|
|
3
|
+
return {
|
|
4
|
+
[e]: {
|
|
5
|
+
[r]: {
|
|
6
|
+
borderBottomWidth: d.lineWidth,
|
|
7
|
+
borderBottomStyle: "solid",
|
|
8
|
+
borderBottomColor: d.colorBorder,
|
|
9
|
+
// ======================== Header ========================
|
|
10
|
+
"&-header": {
|
|
11
|
+
background: d.colorFillAlter,
|
|
12
|
+
fontSize: d.fontSize,
|
|
13
|
+
lineHeight: d.lineHeight,
|
|
14
|
+
paddingBlock: o(d.paddingSM).sub(d.lineWidthBold).equal(),
|
|
15
|
+
paddingInlineStart: d.padding,
|
|
16
|
+
paddingInlineEnd: d.paddingXS,
|
|
17
|
+
display: "flex",
|
|
18
|
+
borderRadius: {
|
|
19
|
+
_skip_check_: !0,
|
|
20
|
+
value: o(d.borderRadius).mul(2).equal()
|
|
21
|
+
},
|
|
22
|
+
borderBottomRightRadius: 0,
|
|
23
|
+
borderBottomLeftRadius: 0,
|
|
24
|
+
[`${r}-title`]: {
|
|
25
|
+
flex: "auto"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
// ======================= Content ========================
|
|
29
|
+
"&-content": {
|
|
30
|
+
padding: d.padding
|
|
31
|
+
},
|
|
32
|
+
// ======================== Motion ========================
|
|
33
|
+
"&-motion": {
|
|
34
|
+
transition: ["height", "border"].map((i) => `${i} ${d.motionDurationSlow}`).join(","),
|
|
35
|
+
overflow: "hidden",
|
|
36
|
+
"&-enter-start, &-leave-active": {
|
|
37
|
+
borderBottomColor: "transparent"
|
|
38
|
+
},
|
|
39
|
+
"&-hidden": {
|
|
40
|
+
display: "none"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
t as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import "../../_util/cssinjs/StyleContext.mjs";
|
|
2
|
+
import "vue";
|
|
3
|
+
import { unit as p } 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 c } from "../../_util/cssinjs-utils/util/statistic.mjs";
|
|
8
|
+
import { genStyleHooks as g } from "../../theme/genStyleUtils.mjs";
|
|
9
|
+
import "../../transition-collapse/index.mjs";
|
|
10
|
+
import s from "./header.mjs";
|
|
11
|
+
import { genTransitionCollapseStyle as b } from "../../transition-collapse/style/index.mjs";
|
|
12
|
+
const S = (o) => {
|
|
13
|
+
const {
|
|
14
|
+
componentCls: i,
|
|
15
|
+
padding: e,
|
|
16
|
+
paddingSM: r,
|
|
17
|
+
paddingXS: n,
|
|
18
|
+
paddingXXS: d,
|
|
19
|
+
lineWidth: t,
|
|
20
|
+
lineWidthBold: a,
|
|
21
|
+
calc: l
|
|
22
|
+
} = o;
|
|
23
|
+
return {
|
|
24
|
+
[i]: {
|
|
25
|
+
position: "relative",
|
|
26
|
+
width: "100%",
|
|
27
|
+
boxSizing: "border-box",
|
|
28
|
+
boxShadow: `${o.boxShadowTertiary}`,
|
|
29
|
+
transition: `background ${o.motionDurationSlow}`,
|
|
30
|
+
// Border
|
|
31
|
+
borderRadius: {
|
|
32
|
+
_skip_check_: !0,
|
|
33
|
+
value: l(o.borderRadius).mul(2).equal()
|
|
34
|
+
},
|
|
35
|
+
borderColor: o.colorBorder,
|
|
36
|
+
borderWidth: 0,
|
|
37
|
+
borderStyle: "solid",
|
|
38
|
+
// Border
|
|
39
|
+
"&:after": {
|
|
40
|
+
content: '""',
|
|
41
|
+
position: "absolute",
|
|
42
|
+
inset: 0,
|
|
43
|
+
pointerEvents: "none",
|
|
44
|
+
transition: `border-color ${o.motionDurationSlow}`,
|
|
45
|
+
borderRadius: {
|
|
46
|
+
_skip_check_: !0,
|
|
47
|
+
value: "inherit"
|
|
48
|
+
},
|
|
49
|
+
borderStyle: "inherit",
|
|
50
|
+
borderColor: "inherit",
|
|
51
|
+
borderWidth: t
|
|
52
|
+
},
|
|
53
|
+
// Focus
|
|
54
|
+
"&:focus-within": {
|
|
55
|
+
boxShadow: `${o.boxShadowSecondary}`,
|
|
56
|
+
borderColor: o.colorPrimary,
|
|
57
|
+
"&:after": {
|
|
58
|
+
borderWidth: a
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"&-disabled": {
|
|
62
|
+
background: o.colorBgContainerDisabled
|
|
63
|
+
},
|
|
64
|
+
// ============================== RTL ==============================
|
|
65
|
+
[`&${i}-rtl`]: {
|
|
66
|
+
direction: "rtl"
|
|
67
|
+
},
|
|
68
|
+
// ============================ Content ============================
|
|
69
|
+
[`${i}-content`]: {
|
|
70
|
+
display: "flex",
|
|
71
|
+
gap: n,
|
|
72
|
+
width: "100%",
|
|
73
|
+
paddingBlock: r,
|
|
74
|
+
paddingInlineStart: e,
|
|
75
|
+
paddingInlineEnd: r,
|
|
76
|
+
boxSizing: "border-box",
|
|
77
|
+
alignItems: "flex-end"
|
|
78
|
+
},
|
|
79
|
+
// ============================ Prefix =============================
|
|
80
|
+
[`${i}-prefix`]: {
|
|
81
|
+
flex: "none"
|
|
82
|
+
},
|
|
83
|
+
// ============================= Input =============================
|
|
84
|
+
[`${i}-input`]: {
|
|
85
|
+
padding: 0,
|
|
86
|
+
borderRadius: 0,
|
|
87
|
+
flex: "auto",
|
|
88
|
+
alignSelf: "center",
|
|
89
|
+
minHeight: "auto"
|
|
90
|
+
},
|
|
91
|
+
// ============================ Actions ============================
|
|
92
|
+
[`${i}-actions-list`]: {
|
|
93
|
+
flex: "none",
|
|
94
|
+
display: "flex",
|
|
95
|
+
"&-presets": {
|
|
96
|
+
gap: o.paddingXS
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
[`${i}-actions-btn`]: {
|
|
100
|
+
"&-disabled": {
|
|
101
|
+
opacity: 0.45
|
|
102
|
+
},
|
|
103
|
+
"&-loading-button": {
|
|
104
|
+
padding: 0,
|
|
105
|
+
border: 0
|
|
106
|
+
},
|
|
107
|
+
"&-loading-icon": {
|
|
108
|
+
height: o.controlHeight,
|
|
109
|
+
width: o.controlHeight,
|
|
110
|
+
verticalAlign: "top"
|
|
111
|
+
},
|
|
112
|
+
"&-recording-icon": {
|
|
113
|
+
height: "1.2em",
|
|
114
|
+
width: "1.2em",
|
|
115
|
+
verticalAlign: "top"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
// ============================ Footer =============================
|
|
119
|
+
[`${i}-footer`]: {
|
|
120
|
+
paddingInlineStart: e,
|
|
121
|
+
paddingInlineEnd: r,
|
|
122
|
+
paddingBlockEnd: r,
|
|
123
|
+
paddingBlockStart: d,
|
|
124
|
+
boxSizing: "border-box"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
}, h = () => ({}), _ = g(
|
|
129
|
+
"Sender",
|
|
130
|
+
(o) => {
|
|
131
|
+
const { paddingXS: i, calc: e } = o, r = c(o, {
|
|
132
|
+
SenderContentMaxWidth: `calc(100% - ${p(
|
|
133
|
+
e(i).add(32).equal()
|
|
134
|
+
)})`
|
|
135
|
+
});
|
|
136
|
+
return [
|
|
137
|
+
S(r),
|
|
138
|
+
s(r),
|
|
139
|
+
b(r)
|
|
140
|
+
];
|
|
141
|
+
},
|
|
142
|
+
h
|
|
143
|
+
);
|
|
144
|
+
export {
|
|
145
|
+
_ as default,
|
|
146
|
+
h as prepareComponentToken
|
|
147
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import b from "../_util/hooks/useMergedState.mjs";
|
|
2
|
+
import { computed as a, toValue as C, ref as u, watchEffect as E, onWatcherCleanup as P } from "vue";
|
|
3
|
+
let c;
|
|
4
|
+
!c && typeof window < "u" && (c = window.SpeechRecognition || window.webkitSpeechRecognition);
|
|
5
|
+
function x(h, w) {
|
|
6
|
+
const m = h, i = a(() => {
|
|
7
|
+
const e = C(w);
|
|
8
|
+
return typeof e == "object" ? {
|
|
9
|
+
controlledRecording: e.recording,
|
|
10
|
+
onControlledRecordingChange: e.onRecordingChange,
|
|
11
|
+
speechInControlled: typeof e.recording == "boolean"
|
|
12
|
+
} : {
|
|
13
|
+
controlledRecording: void 0,
|
|
14
|
+
onControlledRecordingChange: void 0,
|
|
15
|
+
speechInControlled: !1
|
|
16
|
+
};
|
|
17
|
+
}), R = a(() => i.value.controlledRecording), n = i.value.onControlledRecordingChange, S = i.value.speechInControlled, r = u(null);
|
|
18
|
+
E(() => {
|
|
19
|
+
if (typeof navigator < "u" && "permissions" in navigator) {
|
|
20
|
+
let e = null;
|
|
21
|
+
navigator.permissions.query({ name: "microphone" }).then((t) => {
|
|
22
|
+
r.value = t.state, t.onchange = function() {
|
|
23
|
+
r.value = this.state;
|
|
24
|
+
}, e = t;
|
|
25
|
+
}), P(() => {
|
|
26
|
+
e && (e.onchange = null);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
const f = a(() => c && r.value !== "denied"), o = u(null), [l, d] = b(!1, {
|
|
31
|
+
value: R
|
|
32
|
+
}), s = u(!1), y = () => {
|
|
33
|
+
if (f.value && !o.value) {
|
|
34
|
+
const e = new c();
|
|
35
|
+
e.onstart = () => {
|
|
36
|
+
d(!0);
|
|
37
|
+
}, e.onend = () => {
|
|
38
|
+
d(!1);
|
|
39
|
+
}, e.onresult = (t) => {
|
|
40
|
+
var p, v, g;
|
|
41
|
+
if (!s.value) {
|
|
42
|
+
const I = (g = (v = (p = t.results) == null ? void 0 : p[0]) == null ? void 0 : v[0]) == null ? void 0 : g.transcript;
|
|
43
|
+
m(I);
|
|
44
|
+
}
|
|
45
|
+
s.value = !1;
|
|
46
|
+
}, o.value = e;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
return { speechPermission: f, triggerSpeech: (e) => {
|
|
50
|
+
e && !l.value || (s.value = e, S ? n == null || n(!l.value) : (y(), o.value && (l.value ? (o.value.stop(), n == null || n(!1)) : (o.value.start(), n == null || n(!0)))));
|
|
51
|
+
}, recording: l };
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
x as default
|
|
55
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { defineComponent as D, mergeDefaults as L, toRef as R, useSlots as X, computed as o, createVNode as h } from "vue";
|
|
2
|
+
import { c as y } from "../attachments/Attachments2.mjs";
|
|
3
|
+
import $ from "../x-provider/hooks/use-x-provider-context.mjs";
|
|
4
|
+
import "../x-provider/context.mjs";
|
|
5
|
+
import { Cascader as A } from "ant-design-vue";
|
|
6
|
+
import B from "../_util/hooks/use-x-component-config.mjs";
|
|
7
|
+
import I from "./style/index.mjs";
|
|
8
|
+
import S from "../_util/hooks/use-state.mjs";
|
|
9
|
+
import P from "./useActive.mjs";
|
|
10
|
+
const H = /* @__PURE__ */ D({
|
|
11
|
+
name: "AXSuggestion",
|
|
12
|
+
__name: "Suggestion",
|
|
13
|
+
props: L({
|
|
14
|
+
prefixCls: null,
|
|
15
|
+
className: null,
|
|
16
|
+
rootClassName: null,
|
|
17
|
+
style: null,
|
|
18
|
+
children: {
|
|
19
|
+
type: Function
|
|
20
|
+
},
|
|
21
|
+
open: {
|
|
22
|
+
type: Boolean
|
|
23
|
+
},
|
|
24
|
+
onOpenChange: {
|
|
25
|
+
type: Function
|
|
26
|
+
},
|
|
27
|
+
items: {
|
|
28
|
+
type: Function
|
|
29
|
+
},
|
|
30
|
+
onSelect: {
|
|
31
|
+
type: Function
|
|
32
|
+
},
|
|
33
|
+
block: {
|
|
34
|
+
type: Boolean
|
|
35
|
+
},
|
|
36
|
+
styles: null,
|
|
37
|
+
classNames: null
|
|
38
|
+
}, {
|
|
39
|
+
open: !1
|
|
40
|
+
}),
|
|
41
|
+
setup(e) {
|
|
42
|
+
R(e, "prefixCls");
|
|
43
|
+
const s = X(), {
|
|
44
|
+
direction: N,
|
|
45
|
+
getPrefixCls: x
|
|
46
|
+
} = $(), n = o(() => x("suggestion", e.prefixCls));
|
|
47
|
+
`${n.value}`;
|
|
48
|
+
const a = o(() => N.value === "rtl"), i = B("suggestion"), [b, c, u] = I(n), [m, w] = S(e.open), [k, F] = S(), l = (t) => {
|
|
49
|
+
var v;
|
|
50
|
+
w(t), (v = e.onOpenChange) == null || v.call(e, t);
|
|
51
|
+
}, r = (t) => {
|
|
52
|
+
t === !1 ? l(!1) : (F(t), l(!0));
|
|
53
|
+
}, f = () => {
|
|
54
|
+
l(!1);
|
|
55
|
+
}, g = o(() => typeof e.items == "function" ? e.items(k.value) : e.items), C = (t) => {
|
|
56
|
+
e.onSelect && e.onSelect(t[t.length - 1]), l(!1);
|
|
57
|
+
}, [O, d] = P(g, m, a, C, f), V = o(() => {
|
|
58
|
+
var t;
|
|
59
|
+
return s.default ? s.default({
|
|
60
|
+
onTrigger: r,
|
|
61
|
+
onKeyDown: d
|
|
62
|
+
}) : (t = e.children) == null ? void 0 : t.call(e, {
|
|
63
|
+
onTrigger: r,
|
|
64
|
+
onKeyDown: d
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
return () => b(h(A, {
|
|
68
|
+
options: g.value,
|
|
69
|
+
open: m.value,
|
|
70
|
+
value: O.value,
|
|
71
|
+
placement: a.value ? "topRight" : "topLeft",
|
|
72
|
+
onDropdownVisibleChange: (t) => {
|
|
73
|
+
t || f();
|
|
74
|
+
},
|
|
75
|
+
class: y(e.rootClassName, n.value, c, u, {
|
|
76
|
+
[`${n.value}-block`]: e.block
|
|
77
|
+
}),
|
|
78
|
+
onChange: C,
|
|
79
|
+
dropdownMatchSelectWidth: e.block
|
|
80
|
+
}, {
|
|
81
|
+
default: () => h("div", {
|
|
82
|
+
class: y(n.value, i.value.className, e.rootClassName, e.className, `${n.value}-wrapper`, c.value, u),
|
|
83
|
+
style: {
|
|
84
|
+
...i.value.style,
|
|
85
|
+
...e.style
|
|
86
|
+
}
|
|
87
|
+
}, [V.value])
|
|
88
|
+
}));
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
export {
|
|
92
|
+
H as default
|
|
93
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import "vue";
|
|
2
|
+
import "../../_util/cssinjs/StyleContext.mjs";
|
|
3
|
+
import "../../_util/cssinjs/theme/ThemeCache.mjs";
|
|
4
|
+
import "../../_util/warning.mjs";
|
|
5
|
+
import "../../_util/cssinjs/transformers/legacyLogicalProperties.mjs";
|
|
6
|
+
import { merge as o } from "../../_util/cssinjs-utils/util/statistic.mjs";
|
|
7
|
+
import { genStyleHooks as r } from "../../theme/genStyleUtils.mjs";
|
|
8
|
+
const i = (n) => {
|
|
9
|
+
const { componentCls: t, antCls: e } = n;
|
|
10
|
+
return {
|
|
11
|
+
[t]: {
|
|
12
|
+
[`${e}-cascader-menus ${e}-cascader-menu`]: {
|
|
13
|
+
height: "auto"
|
|
14
|
+
},
|
|
15
|
+
[`${t}-item`]: {
|
|
16
|
+
"&-icon": {
|
|
17
|
+
marginInlineEnd: n.paddingXXS
|
|
18
|
+
},
|
|
19
|
+
"&-extra": {
|
|
20
|
+
marginInlineStart: n.padding
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
[`&${t}-block`]: {
|
|
24
|
+
[`${t}-item-extra`]: {
|
|
25
|
+
marginInlineStart: "auto"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}, a = () => ({}), S = r(
|
|
31
|
+
"Suggestion",
|
|
32
|
+
(n) => {
|
|
33
|
+
const t = o(n, {});
|
|
34
|
+
return i(t);
|
|
35
|
+
},
|
|
36
|
+
a
|
|
37
|
+
);
|
|
38
|
+
export {
|
|
39
|
+
S as default,
|
|
40
|
+
a as prepareComponentToken
|
|
41
|
+
};
|