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,126 @@
|
|
|
1
|
+
import { defineComponent as j, mergeDefaults as D, toRef as N, useSlots as H, ref as g, watch as x, unref as k, watchEffect as q, computed as o, createVNode as l, isVNode as z, Fragment as G, toValue as r, mergeProps as J } from "vue";
|
|
2
|
+
import { a as K } from "../attachments/Attachments2.mjs";
|
|
3
|
+
import { Avatar as L } from "ant-design-vue";
|
|
4
|
+
import M from "../_util/hooks/use-x-component-config.mjs";
|
|
5
|
+
import O from "../x-provider/hooks/use-x-provider-context.mjs";
|
|
6
|
+
import "../x-provider/context.mjs";
|
|
7
|
+
import Q from "./hooks/useTypedEffect.mjs";
|
|
8
|
+
import W from "./hooks/useTypingConfig.mjs";
|
|
9
|
+
import Y from "./loading.mjs";
|
|
10
|
+
import Z from "./style/index.mjs";
|
|
11
|
+
import { useBubbleContextInject as U } from "./context.mjs";
|
|
12
|
+
const ce = /* @__PURE__ */ j({
|
|
13
|
+
name: "AXBubble",
|
|
14
|
+
__name: "Bubble",
|
|
15
|
+
props: D({
|
|
16
|
+
prefixCls: null,
|
|
17
|
+
rootClassName: null,
|
|
18
|
+
styles: null,
|
|
19
|
+
classNames: null,
|
|
20
|
+
avatar: null,
|
|
21
|
+
placement: null,
|
|
22
|
+
loading: {
|
|
23
|
+
type: Boolean
|
|
24
|
+
},
|
|
25
|
+
typing: null,
|
|
26
|
+
content: null,
|
|
27
|
+
messageRender: {
|
|
28
|
+
type: Function
|
|
29
|
+
},
|
|
30
|
+
loadingRender: {
|
|
31
|
+
type: Function
|
|
32
|
+
},
|
|
33
|
+
variant: null,
|
|
34
|
+
shape: null,
|
|
35
|
+
onTypingComplete: null,
|
|
36
|
+
header: null,
|
|
37
|
+
footer: {
|
|
38
|
+
type: Function
|
|
39
|
+
}
|
|
40
|
+
}, {
|
|
41
|
+
classNames: () => ({}),
|
|
42
|
+
styles: () => ({}),
|
|
43
|
+
placement: "start",
|
|
44
|
+
loading: !1,
|
|
45
|
+
content: "",
|
|
46
|
+
variant: "filled"
|
|
47
|
+
}),
|
|
48
|
+
setup(e, {
|
|
49
|
+
expose: $
|
|
50
|
+
}) {
|
|
51
|
+
const b = K(e, ["prefixCls", "rootClassName", "classNames", "styles", "avatar", "placement", "loading", "loadingRender", "typing", "content", "messageRender", "variant", "shape", "onTypingComplete", "header", "footer"]);
|
|
52
|
+
N(e, "content"), N(e, "prefixCls");
|
|
53
|
+
const a = H(), y = g(e.content);
|
|
54
|
+
x(() => e.content, () => {
|
|
55
|
+
y.value = e.content;
|
|
56
|
+
});
|
|
57
|
+
const {
|
|
58
|
+
onUpdate: c
|
|
59
|
+
} = k(U()), C = g(null), {
|
|
60
|
+
direction: R,
|
|
61
|
+
getPrefixCls: T
|
|
62
|
+
} = O(), t = T("bubble", e.prefixCls), n = M("bubble"), [P, S, V, h] = W(() => e.typing), [i, u] = Q(y, P, S, V), m = g(!1);
|
|
63
|
+
x(i, () => {
|
|
64
|
+
c == null || c();
|
|
65
|
+
}), q(() => {
|
|
66
|
+
var s;
|
|
67
|
+
!u.value && !e.loading ? m.value || (m.value = !0, (s = e.onTypingComplete) == null || s.call(e)) : m.value = !1;
|
|
68
|
+
});
|
|
69
|
+
const [w, B, E] = Z(() => t), F = o(() => [t, e.rootClassName, n.value.className, B.value, E, `${t}-${e.placement}`, {
|
|
70
|
+
[`${t}-rtl`]: R.value === "rtl"
|
|
71
|
+
}, {
|
|
72
|
+
[`${t}-typing`]: u.value && !e.loading && !e.messageRender && !a.message && !h.value
|
|
73
|
+
}]), I = o(() => a.avatar ? a.avatar() : z(e.avatar) ? e.avatar : l(L, e.avatar, null)), f = o(() => a.message ? a.message({
|
|
74
|
+
content: i.value
|
|
75
|
+
}) : e.messageRender ? e.messageRender(i.value) : i.value), X = o(() => e.loading ? a.loading ? a.loading() : e.loadingRender ? e.loadingRender() : l(Y, {
|
|
76
|
+
prefixCls: t
|
|
77
|
+
}, null) : l(G, null, [f.value, u.value && r(h)])), A = o(() => {
|
|
78
|
+
const s = l("div", {
|
|
79
|
+
style: {
|
|
80
|
+
...n.value.styles.content,
|
|
81
|
+
...e.styles.content
|
|
82
|
+
},
|
|
83
|
+
class: [`${t}-content`, `${t}-content-${e.variant}`, {
|
|
84
|
+
[`${t}-content-${e.shape}`]: e.shape
|
|
85
|
+
}, n.value.classNames.content, e.classNames.content]
|
|
86
|
+
}, [r(X)]), v = a.header ? a.header() : e.header, d = a.footer ? a.footer({
|
|
87
|
+
content: f.value
|
|
88
|
+
}) : typeof e.footer == "function" ? e.footer(f.value) : e.footer;
|
|
89
|
+
return v || d ? l("div", {
|
|
90
|
+
class: `${t}-content-wrapper`
|
|
91
|
+
}, [v && l("div", {
|
|
92
|
+
class: [`${t}-header`, n.value.classNames.header, e.classNames.header],
|
|
93
|
+
style: {
|
|
94
|
+
...n.value.styles.header,
|
|
95
|
+
...e.styles.header
|
|
96
|
+
}
|
|
97
|
+
}, [v]), s, d && l("div", {
|
|
98
|
+
class: [`${t}-footer`, n.value.classNames.footer, e.classNames.footer],
|
|
99
|
+
style: {
|
|
100
|
+
...n.value.styles.footer,
|
|
101
|
+
...e.styles.footer
|
|
102
|
+
}
|
|
103
|
+
}, [d])]) : s;
|
|
104
|
+
});
|
|
105
|
+
return $({
|
|
106
|
+
nativeElement: C
|
|
107
|
+
}), () => w(l("div", J({
|
|
108
|
+
style: {
|
|
109
|
+
...n.value.style
|
|
110
|
+
// ...(style as object),
|
|
111
|
+
},
|
|
112
|
+
class: r(F)
|
|
113
|
+
}, b, {
|
|
114
|
+
ref: C
|
|
115
|
+
}), [(a.avatar || e.avatar) && l("div", {
|
|
116
|
+
style: {
|
|
117
|
+
...n.value.styles.avatar,
|
|
118
|
+
...e.styles.avatar
|
|
119
|
+
},
|
|
120
|
+
class: [`${t}-avatar`, n.value.classNames.avatar, e.classNames.avatar]
|
|
121
|
+
}, [r(I)]), r(A)]));
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
export {
|
|
125
|
+
ce as default
|
|
126
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { defineComponent as M, mergeDefaults as O, toRef as g, useAttrs as W, mergeProps as h, ref as u, watch as m, watchEffect as j, onWatcherCleanup as q, unref as t, nextTick as F, computed as G, createVNode as x } from "vue";
|
|
2
|
+
import { a as J, c as Q } from "../attachments/Attachments2.mjs";
|
|
3
|
+
import { useEventCallback as Y } from "../_util/hooks/use-event-callback.mjs";
|
|
4
|
+
import Z from "../_util/pick-attrs.mjs";
|
|
5
|
+
import _ from "../x-provider/hooks/use-x-provider-context.mjs";
|
|
6
|
+
import "../x-provider/context.mjs";
|
|
7
|
+
import "ant-design-vue";
|
|
8
|
+
import tt from "./Bubble.mjs";
|
|
9
|
+
import et from "./hooks/useDisplayData.mjs";
|
|
10
|
+
import ot from "./hooks/useListData.mjs";
|
|
11
|
+
import st from "./style/index.mjs";
|
|
12
|
+
import b from "../_util/hooks/use-state.mjs";
|
|
13
|
+
import { BubbleContextProvider as lt } from "./context.mjs";
|
|
14
|
+
const rt = 1, vt = /* @__PURE__ */ M({
|
|
15
|
+
name: "AXBubbleList",
|
|
16
|
+
inheritAttrs: !1,
|
|
17
|
+
__name: "BubbleList",
|
|
18
|
+
props: O({
|
|
19
|
+
prefixCls: null,
|
|
20
|
+
rootClassName: null,
|
|
21
|
+
items: null,
|
|
22
|
+
autoScroll: {
|
|
23
|
+
type: Boolean
|
|
24
|
+
},
|
|
25
|
+
roles: null
|
|
26
|
+
}, {
|
|
27
|
+
autoScroll: !0
|
|
28
|
+
}),
|
|
29
|
+
setup(e, {
|
|
30
|
+
expose: D
|
|
31
|
+
}) {
|
|
32
|
+
const T = J(e, ["prefixCls", "rootClassName", "items", "autoScroll", "roles"]);
|
|
33
|
+
g(e, "roles"), g(e, "items"), g(e, "prefixCls");
|
|
34
|
+
const V = W(), A = Z(h(T, V), {
|
|
35
|
+
attr: !0,
|
|
36
|
+
aria: !0
|
|
37
|
+
}), v = u(e.items), S = u(e.roles);
|
|
38
|
+
m(() => e.items, () => {
|
|
39
|
+
v.value = e.items;
|
|
40
|
+
}), m(() => e.roles, () => {
|
|
41
|
+
S.value = e.roles;
|
|
42
|
+
});
|
|
43
|
+
const n = u(null), i = u({}), {
|
|
44
|
+
getPrefixCls: N
|
|
45
|
+
} = _(), P = N("bubble", e.prefixCls), R = `${P}-list`, [w, B, L] = st(P), [H, I] = b(!1);
|
|
46
|
+
j(() => {
|
|
47
|
+
I(!0), q(() => {
|
|
48
|
+
I(!1);
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
const U = ot(v, S), [a, $] = et(U), [E, f] = b(!0), [d, y] = b(0), z = (o) => {
|
|
52
|
+
const s = o.target;
|
|
53
|
+
f(s.scrollHeight - Math.abs(s.scrollTop) - s.clientHeight <= rt);
|
|
54
|
+
};
|
|
55
|
+
m(d, () => {
|
|
56
|
+
e.autoScroll && t(n) && t(E) && F(() => {
|
|
57
|
+
t(n).scrollTo({
|
|
58
|
+
top: t(n).scrollHeight
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
}), m(() => t(a).length, () => {
|
|
62
|
+
var o;
|
|
63
|
+
if (e.autoScroll) {
|
|
64
|
+
const s = (o = t(a)[t(a).length - 2]) == null ? void 0 : o.key, l = t(i)[s];
|
|
65
|
+
if (l) {
|
|
66
|
+
const {
|
|
67
|
+
nativeElement: r
|
|
68
|
+
} = l, {
|
|
69
|
+
top: c = 0,
|
|
70
|
+
bottom: C = 0
|
|
71
|
+
} = (r == null ? void 0 : r.getBoundingClientRect()) ?? {}, {
|
|
72
|
+
top: p,
|
|
73
|
+
bottom: K
|
|
74
|
+
} = t(n).getBoundingClientRect();
|
|
75
|
+
c < K && C > p && (y(t(d) + 1), f(!0));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
const X = Y(() => {
|
|
80
|
+
e.autoScroll && y(t(d) + 1);
|
|
81
|
+
}), k = G(() => ({
|
|
82
|
+
onUpdate: X
|
|
83
|
+
}));
|
|
84
|
+
return D({
|
|
85
|
+
nativeElement: n,
|
|
86
|
+
scrollTo: ({
|
|
87
|
+
key: o,
|
|
88
|
+
offset: s,
|
|
89
|
+
behavior: l = "smooth",
|
|
90
|
+
block: r
|
|
91
|
+
}) => {
|
|
92
|
+
if (typeof s == "number")
|
|
93
|
+
t(n).scrollTo({
|
|
94
|
+
top: s,
|
|
95
|
+
behavior: l
|
|
96
|
+
});
|
|
97
|
+
else if (o !== void 0) {
|
|
98
|
+
const c = t(i)[o];
|
|
99
|
+
if (c) {
|
|
100
|
+
const C = t(a).findIndex((p) => p.key === o);
|
|
101
|
+
f(C === t(a).length - 1), c.nativeElement.scrollIntoView({
|
|
102
|
+
behavior: l,
|
|
103
|
+
block: r
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}), () => w(x(lt, {
|
|
109
|
+
value: k.value
|
|
110
|
+
}, {
|
|
111
|
+
default: () => [x("div", h(A, {
|
|
112
|
+
class: Q(R, e.rootClassName, B.value, L, {
|
|
113
|
+
[`${R}-reach-end`]: E.value
|
|
114
|
+
}),
|
|
115
|
+
ref: n,
|
|
116
|
+
onScroll: z
|
|
117
|
+
}), [t(a).map(({
|
|
118
|
+
key: o,
|
|
119
|
+
onTypingComplete: s,
|
|
120
|
+
...l
|
|
121
|
+
}) => x(tt, h(l, {
|
|
122
|
+
key: o,
|
|
123
|
+
ref: (r) => {
|
|
124
|
+
r ? i.value[o] = r : delete i.value[o];
|
|
125
|
+
},
|
|
126
|
+
typing: H.value ? l.typing : !1,
|
|
127
|
+
onTypingComplete: () => {
|
|
128
|
+
s == null || s(), $(o);
|
|
129
|
+
}
|
|
130
|
+
}), null))])]
|
|
131
|
+
}));
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
export {
|
|
135
|
+
vt as default
|
|
136
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { shallowRef as b, defineComponent as p, computed as n, provide as i, watch as l, unref as c, triggerRef as a, inject as d } from "vue";
|
|
2
|
+
import { objectType as m } from "../_util/type.mjs";
|
|
3
|
+
const u = Symbol("BubbleContext"), o = b(), f = (e) => {
|
|
4
|
+
i(u, e), l(
|
|
5
|
+
e,
|
|
6
|
+
() => {
|
|
7
|
+
o.value = c(e), a(o);
|
|
8
|
+
},
|
|
9
|
+
{ immediate: !0, deep: !0 }
|
|
10
|
+
);
|
|
11
|
+
}, B = () => d(
|
|
12
|
+
u,
|
|
13
|
+
n(() => o.value || {})
|
|
14
|
+
), v = p({
|
|
15
|
+
props: {
|
|
16
|
+
value: m()
|
|
17
|
+
},
|
|
18
|
+
setup(e, { slots: t }) {
|
|
19
|
+
return f(n(() => e.value)), () => {
|
|
20
|
+
var r;
|
|
21
|
+
return (r = t.default) == null ? void 0 : r.call(t);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
v as BubbleContextProvider,
|
|
27
|
+
v as default,
|
|
28
|
+
o as globalBubbleContextApi,
|
|
29
|
+
B as useBubbleContextInject,
|
|
30
|
+
f as useBubbleContextProvider
|
|
31
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { computed as s, unref as e, watch as f } from "vue";
|
|
2
|
+
import { useEventCallback as c } from "../../_util/hooks/use-event-callback.mjs";
|
|
3
|
+
import d from "../../_util/hooks/use-state.mjs";
|
|
4
|
+
function h(a) {
|
|
5
|
+
const [r, o] = d(a.value.length), t = s(() => a.value.slice(0, e(r))), i = s(() => {
|
|
6
|
+
const l = e(t)[e(t).length - 1];
|
|
7
|
+
return l ? l.key : null;
|
|
8
|
+
});
|
|
9
|
+
f(
|
|
10
|
+
a,
|
|
11
|
+
() => {
|
|
12
|
+
var l;
|
|
13
|
+
if (!(e(t).length && e(t).every((n, y) => {
|
|
14
|
+
var u;
|
|
15
|
+
return n.key === ((u = a.value[y]) == null ? void 0 : u.key);
|
|
16
|
+
}))) {
|
|
17
|
+
if (e(t).length === 0)
|
|
18
|
+
o(1);
|
|
19
|
+
else
|
|
20
|
+
for (let n = 0; n < e(t).length; n += 1)
|
|
21
|
+
if (e(t)[n].key !== ((l = a.value[n]) == null ? void 0 : l.key)) {
|
|
22
|
+
o(n);
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{ immediate: !0, deep: !0 }
|
|
28
|
+
);
|
|
29
|
+
const p = c((l) => {
|
|
30
|
+
l === e(i) && o(e(r) + 1);
|
|
31
|
+
});
|
|
32
|
+
return [t, p];
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
h as default
|
|
36
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { computed as a } from "vue";
|
|
2
|
+
function p(u, e) {
|
|
3
|
+
const o = (t, r) => {
|
|
4
|
+
var n;
|
|
5
|
+
return typeof e.value == "function" ? e.value(t, r) : e ? ((n = e.value) == null ? void 0 : n[t.role]) || {} : {};
|
|
6
|
+
};
|
|
7
|
+
return a(() => (u.value || []).map((t, r) => {
|
|
8
|
+
const n = t.key ?? `preset_${r}`;
|
|
9
|
+
return {
|
|
10
|
+
...o(t, r),
|
|
11
|
+
...t,
|
|
12
|
+
key: n
|
|
13
|
+
};
|
|
14
|
+
}));
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
p as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import p from "../../_util/hooks/use-state.mjs";
|
|
2
|
+
import { computed as s, watch as f, unref as l, onWatcherCleanup as n } from "vue";
|
|
3
|
+
function u(e) {
|
|
4
|
+
return typeof e == "string";
|
|
5
|
+
}
|
|
6
|
+
const h = (e, t, g, m) => {
|
|
7
|
+
const [d, o] = p(""), [a, i] = p(1), v = s(() => t.value && u(e.value));
|
|
8
|
+
return f(e, () => {
|
|
9
|
+
const r = l(d);
|
|
10
|
+
o(e.value), !v.value && u(e.value) ? i(e.value.length) : u(e.value) && u(r) && e.value.indexOf(r) !== 0 && i(1);
|
|
11
|
+
}), f([a, t, e], () => {
|
|
12
|
+
if (v.value && u(e.value) && l(a) < e.value.length) {
|
|
13
|
+
const r = setTimeout(() => {
|
|
14
|
+
i(l(a) + g.value);
|
|
15
|
+
}, m.value);
|
|
16
|
+
n(() => {
|
|
17
|
+
clearTimeout(r);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}, { immediate: !0 }), [s(() => v.value && u(e.value) ? e.value.slice(0, l(a)) : e.value), s(() => v.value && u(e.value) && l(a) < e.value.length)];
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
h as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { computed as e, toValue as o } from "vue";
|
|
2
|
+
function i(n) {
|
|
3
|
+
const r = e(() => !!o(n)), f = {
|
|
4
|
+
step: 1,
|
|
5
|
+
interval: 50,
|
|
6
|
+
// set default suffix is empty
|
|
7
|
+
suffix: null
|
|
8
|
+
}, t = e(() => {
|
|
9
|
+
const u = o(n);
|
|
10
|
+
return {
|
|
11
|
+
...f,
|
|
12
|
+
...typeof u == "object" ? u : {}
|
|
13
|
+
};
|
|
14
|
+
});
|
|
15
|
+
return [
|
|
16
|
+
r,
|
|
17
|
+
e(() => t.value.step),
|
|
18
|
+
e(() => t.value.interval),
|
|
19
|
+
e(() => t.value.suffix)
|
|
20
|
+
];
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
i as default
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as i, createVNode as l } from "vue";
|
|
2
|
+
const n = /* @__PURE__ */ i({
|
|
3
|
+
name: "AXBubbleLoading",
|
|
4
|
+
__name: "loading",
|
|
5
|
+
props: {
|
|
6
|
+
prefixCls: null
|
|
7
|
+
},
|
|
8
|
+
setup(e) {
|
|
9
|
+
return () => l("span", {
|
|
10
|
+
class: `${e.prefixCls}-dot`
|
|
11
|
+
}, [l("i", {
|
|
12
|
+
class: `${e.prefixCls}-dot-item`,
|
|
13
|
+
key: "item-1"
|
|
14
|
+
}, null), l("i", {
|
|
15
|
+
class: `${e.prefixCls}-dot-item`,
|
|
16
|
+
key: "item-2"
|
|
17
|
+
}, null), l("i", {
|
|
18
|
+
class: `${e.prefixCls}-dot-item`,
|
|
19
|
+
key: "item-3"
|
|
20
|
+
}, null)]);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
n as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import "../../_util/cssinjs/StyleContext.mjs";
|
|
2
|
+
import "vue";
|
|
3
|
+
import { unit as i } 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
|
+
const g = (r) => {
|
|
8
|
+
const { componentCls: d, paddingSM: o, padding: n } = r;
|
|
9
|
+
return {
|
|
10
|
+
[d]: {
|
|
11
|
+
[`${d}-content`]: {
|
|
12
|
+
// Shared: filled, outlined, shadow
|
|
13
|
+
"&-filled,&-outlined,&-shadow": {
|
|
14
|
+
padding: `${i(o)} ${i(n)}`,
|
|
15
|
+
borderRadius: r.borderRadiusLG
|
|
16
|
+
},
|
|
17
|
+
// Filled:
|
|
18
|
+
"&-filled": {
|
|
19
|
+
backgroundColor: r.colorFillContent
|
|
20
|
+
},
|
|
21
|
+
// Outlined:
|
|
22
|
+
"&-outlined": {
|
|
23
|
+
border: `1px solid ${r.colorBorderSecondary}`
|
|
24
|
+
},
|
|
25
|
+
// Shadow:
|
|
26
|
+
"&-shadow": {
|
|
27
|
+
boxShadow: r.boxShadowTertiary
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}, h = (r) => {
|
|
33
|
+
const { componentCls: d, fontSize: o, lineHeight: n, paddingSM: a, padding: l, calc: e } = r, s = e(o).mul(n).div(2).add(a).equal(), t = `${d}-content`;
|
|
34
|
+
return {
|
|
35
|
+
[d]: {
|
|
36
|
+
[t]: {
|
|
37
|
+
// round:
|
|
38
|
+
"&-round": {
|
|
39
|
+
borderRadius: {
|
|
40
|
+
_skip_check_: !0,
|
|
41
|
+
value: s
|
|
42
|
+
},
|
|
43
|
+
paddingInline: e(l).mul(1.25).equal()
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
// corner:
|
|
47
|
+
[`&-start ${t}-corner`]: {
|
|
48
|
+
borderStartStartRadius: r.borderRadiusXS
|
|
49
|
+
},
|
|
50
|
+
[`&-end ${t}-corner`]: {
|
|
51
|
+
borderStartEndRadius: r.borderRadiusXS
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
h as genShapeStyle,
|
|
58
|
+
g as genVariantStyle
|
|
59
|
+
};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import "../../_util/cssinjs/StyleContext.mjs";
|
|
2
|
+
import "vue";
|
|
3
|
+
import { unit as m } from "../../_util/cssinjs/util.mjs";
|
|
4
|
+
import r from "../../_util/cssinjs/Keyframes.mjs";
|
|
5
|
+
import "../../_util/cssinjs/theme/ThemeCache.mjs";
|
|
6
|
+
import "../../_util/warning.mjs";
|
|
7
|
+
import "../../_util/cssinjs/transformers/legacyLogicalProperties.mjs";
|
|
8
|
+
import { merge as s } from "../../_util/cssinjs-utils/util/statistic.mjs";
|
|
9
|
+
import { genStyleHooks as c } from "../../theme/genStyleUtils.mjs";
|
|
10
|
+
import { genVariantStyle as p, genShapeStyle as d } from "./content.mjs";
|
|
11
|
+
import f from "./list.mjs";
|
|
12
|
+
const g = new r("loadingMove", {
|
|
13
|
+
"0%": {
|
|
14
|
+
transform: "translateY(0)"
|
|
15
|
+
},
|
|
16
|
+
"10%": {
|
|
17
|
+
transform: "translateY(4px)"
|
|
18
|
+
},
|
|
19
|
+
"20%": {
|
|
20
|
+
transform: "translateY(0)"
|
|
21
|
+
},
|
|
22
|
+
"30%": {
|
|
23
|
+
transform: "translateY(-4px)"
|
|
24
|
+
},
|
|
25
|
+
"40%": {
|
|
26
|
+
transform: "translateY(0)"
|
|
27
|
+
}
|
|
28
|
+
}), u = new r("cursorBlink", {
|
|
29
|
+
"0%": {
|
|
30
|
+
opacity: 1
|
|
31
|
+
},
|
|
32
|
+
"50%": {
|
|
33
|
+
opacity: 0
|
|
34
|
+
},
|
|
35
|
+
"100%": {
|
|
36
|
+
opacity: 1
|
|
37
|
+
}
|
|
38
|
+
}), h = (n) => {
|
|
39
|
+
const { componentCls: t, fontSize: e, lineHeight: o, paddingSM: i, colorText: l, calc: a } = n;
|
|
40
|
+
return {
|
|
41
|
+
[t]: {
|
|
42
|
+
display: "flex",
|
|
43
|
+
columnGap: i,
|
|
44
|
+
[`&${t}-end`]: {
|
|
45
|
+
justifyContent: "end",
|
|
46
|
+
flexDirection: "row-reverse",
|
|
47
|
+
[`& ${t}-content-wrapper`]: {
|
|
48
|
+
alignItems: "flex-end"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
[`&${t}-rtl`]: {
|
|
52
|
+
direction: "rtl"
|
|
53
|
+
},
|
|
54
|
+
[`&${t}-typing ${t}-content:last-child::after`]: {
|
|
55
|
+
content: '"|"',
|
|
56
|
+
fontWeight: 900,
|
|
57
|
+
userSelect: "none",
|
|
58
|
+
opacity: 1,
|
|
59
|
+
marginInlineStart: "0.1em",
|
|
60
|
+
animationName: u,
|
|
61
|
+
animationDuration: "0.8s",
|
|
62
|
+
animationIterationCount: "infinite",
|
|
63
|
+
animationTimingFunction: "linear"
|
|
64
|
+
},
|
|
65
|
+
// ============================ Avatar =============================
|
|
66
|
+
[`& ${t}-avatar`]: {
|
|
67
|
+
display: "inline-flex",
|
|
68
|
+
justifyContent: "center",
|
|
69
|
+
alignSelf: "flex-start"
|
|
70
|
+
},
|
|
71
|
+
// ======================== Header & Footer ========================
|
|
72
|
+
[`& ${t}-header, & ${t}-footer`]: {
|
|
73
|
+
fontSize: e,
|
|
74
|
+
lineHeight: o,
|
|
75
|
+
color: n.colorText
|
|
76
|
+
},
|
|
77
|
+
[`& ${t}-header`]: {
|
|
78
|
+
marginBottom: n.paddingXXS
|
|
79
|
+
},
|
|
80
|
+
[`& ${t}-footer`]: {
|
|
81
|
+
marginTop: i
|
|
82
|
+
},
|
|
83
|
+
// =========================== Content =============================
|
|
84
|
+
[`& ${t}-content-wrapper`]: {
|
|
85
|
+
flex: "auto",
|
|
86
|
+
display: "flex",
|
|
87
|
+
flexDirection: "column",
|
|
88
|
+
alignItems: "flex-start",
|
|
89
|
+
minWidth: 0,
|
|
90
|
+
maxWidth: "100%"
|
|
91
|
+
},
|
|
92
|
+
[`& ${t}-content`]: {
|
|
93
|
+
position: "relative",
|
|
94
|
+
boxSizing: "border-box",
|
|
95
|
+
minWidth: 0,
|
|
96
|
+
maxWidth: "100%",
|
|
97
|
+
color: l,
|
|
98
|
+
fontSize: n.fontSize,
|
|
99
|
+
lineHeight: n.lineHeight,
|
|
100
|
+
minHeight: a(i).mul(2).add(a(o).mul(e)).equal(),
|
|
101
|
+
wordBreak: "break-word",
|
|
102
|
+
[`& ${t}-dot`]: {
|
|
103
|
+
position: "relative",
|
|
104
|
+
height: "100%",
|
|
105
|
+
display: "flex",
|
|
106
|
+
alignItems: "center",
|
|
107
|
+
columnGap: n.marginXS,
|
|
108
|
+
padding: `0 ${m(n.paddingXXS)}`,
|
|
109
|
+
"&-item": {
|
|
110
|
+
backgroundColor: n.colorPrimary,
|
|
111
|
+
borderRadius: "100%",
|
|
112
|
+
width: 4,
|
|
113
|
+
height: 4,
|
|
114
|
+
animationName: g,
|
|
115
|
+
animationDuration: "2s",
|
|
116
|
+
animationIterationCount: "infinite",
|
|
117
|
+
animationTimingFunction: "linear",
|
|
118
|
+
"&:nth-child(1)": {
|
|
119
|
+
animationDelay: "0s"
|
|
120
|
+
},
|
|
121
|
+
"&:nth-child(2)": {
|
|
122
|
+
animationDelay: "0.2s"
|
|
123
|
+
},
|
|
124
|
+
"&:nth-child(3)": {
|
|
125
|
+
animationDelay: "0.4s"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
}, y = () => ({}), H = c(
|
|
133
|
+
"Bubble",
|
|
134
|
+
(n) => {
|
|
135
|
+
const t = s(n, {});
|
|
136
|
+
return [
|
|
137
|
+
h(t),
|
|
138
|
+
f(t),
|
|
139
|
+
p(t),
|
|
140
|
+
d(t)
|
|
141
|
+
];
|
|
142
|
+
},
|
|
143
|
+
y
|
|
144
|
+
);
|
|
145
|
+
export {
|
|
146
|
+
H as default,
|
|
147
|
+
y as prepareComponentToken
|
|
148
|
+
};
|