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,188 @@
|
|
|
1
|
+
import { unref as Z, computed as k, toValue as A, createVNode as E, Fragment as _ } from "vue";
|
|
2
|
+
import "../../cssinjs/StyleContext.mjs";
|
|
3
|
+
import { token2CSSVar as V } from "../../cssinjs/util.mjs";
|
|
4
|
+
import N from "../../cssinjs/hooks/useCSSVarRegister.mjs";
|
|
5
|
+
import { u as M } from "../../cssinjs/hooks/useStyleRegister/index.tsx2.mjs";
|
|
6
|
+
import "../../cssinjs/theme/ThemeCache.mjs";
|
|
7
|
+
import "../../warning.mjs";
|
|
8
|
+
import "../../cssinjs/transformers/legacyLogicalProperties.mjs";
|
|
9
|
+
import ee from "./calc/index.mjs";
|
|
10
|
+
import F from "./getCompVarPrefix.mjs";
|
|
11
|
+
import H from "./getComponentToken.mjs";
|
|
12
|
+
import q from "./getDefaultComponentToken.mjs";
|
|
13
|
+
import te from "./maxmin.mjs";
|
|
14
|
+
import ne, { merge as re } from "./statistic.mjs";
|
|
15
|
+
import oe from "../_util/hooks/useUniqueMemo.mjs";
|
|
16
|
+
import se from "../hooks/useCSP.mjs";
|
|
17
|
+
function xe(j) {
|
|
18
|
+
const {
|
|
19
|
+
useCSP: z = se,
|
|
20
|
+
useToken: T,
|
|
21
|
+
usePrefix: D,
|
|
22
|
+
getResetStyles: U,
|
|
23
|
+
getCommonStyle: O,
|
|
24
|
+
getCompUnitless: P
|
|
25
|
+
} = j;
|
|
26
|
+
function L(e, S, c, t) {
|
|
27
|
+
const i = Array.isArray(e) ? e[0] : e;
|
|
28
|
+
function o(r) {
|
|
29
|
+
return `${String(i)}${r.slice(0, 1).toUpperCase()}${r.slice(1)}`;
|
|
30
|
+
}
|
|
31
|
+
const m = (t == null ? void 0 : t.unitless) || {}, u = {
|
|
32
|
+
...typeof P == "function" ? P(e) : {},
|
|
33
|
+
[o("zIndexPopup")]: !0
|
|
34
|
+
};
|
|
35
|
+
Object.keys(m).forEach((r) => {
|
|
36
|
+
u[o(r)] = m[r];
|
|
37
|
+
});
|
|
38
|
+
const f = {
|
|
39
|
+
...t,
|
|
40
|
+
unitless: u,
|
|
41
|
+
prefixToken: o
|
|
42
|
+
}, s = v(e, S, c, f), l = B(i, c, f);
|
|
43
|
+
return (r, a = A(r)) => {
|
|
44
|
+
const [, n] = s(A(r), a), [y, d] = l(a);
|
|
45
|
+
return [y, n, d];
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function B(e, S, c) {
|
|
49
|
+
const {
|
|
50
|
+
unitless: t,
|
|
51
|
+
injectStyle: i = !0,
|
|
52
|
+
prefixToken: o,
|
|
53
|
+
ignore: m
|
|
54
|
+
} = c, p = ({
|
|
55
|
+
rootCls: f,
|
|
56
|
+
cssVar: s = {}
|
|
57
|
+
}) => {
|
|
58
|
+
const {
|
|
59
|
+
realToken: l
|
|
60
|
+
} = T();
|
|
61
|
+
return N({
|
|
62
|
+
path: [e],
|
|
63
|
+
prefix: s.prefix,
|
|
64
|
+
key: s.key,
|
|
65
|
+
unitless: t,
|
|
66
|
+
ignore: m,
|
|
67
|
+
token: l,
|
|
68
|
+
scope: f
|
|
69
|
+
}, () => {
|
|
70
|
+
const r = q(e, l, S), a = H(e, l, r, {
|
|
71
|
+
deprecatedTokens: c == null ? void 0 : c.deprecatedTokens
|
|
72
|
+
});
|
|
73
|
+
return Object.keys(r).forEach((n) => {
|
|
74
|
+
a[o(n)] = a[n], delete a[n];
|
|
75
|
+
}), a;
|
|
76
|
+
}), null;
|
|
77
|
+
};
|
|
78
|
+
return (f) => {
|
|
79
|
+
const {
|
|
80
|
+
cssVar: s
|
|
81
|
+
} = T();
|
|
82
|
+
return [(l) => i && s ? E(_, null, [E(p, {
|
|
83
|
+
rootCls: f,
|
|
84
|
+
cssVar: s,
|
|
85
|
+
component: e
|
|
86
|
+
}, null), l]) : l, s == null ? void 0 : s.key];
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function v(e, S, c, t = {}) {
|
|
90
|
+
const i = Array.isArray(e) ? e : [e, e], [o] = i, m = i.join("-"), p = j.layer || {
|
|
91
|
+
name: "antd"
|
|
92
|
+
};
|
|
93
|
+
return (u, f = u) => {
|
|
94
|
+
const {
|
|
95
|
+
theme: s,
|
|
96
|
+
realToken: l,
|
|
97
|
+
hashId: r,
|
|
98
|
+
token: a,
|
|
99
|
+
cssVar: n
|
|
100
|
+
} = T(), {
|
|
101
|
+
rootPrefixCls: y,
|
|
102
|
+
iconPrefixCls: d
|
|
103
|
+
} = D(), R = z(), x = n ? "css" : "js", J = Z(oe(() => {
|
|
104
|
+
const C = /* @__PURE__ */ new Set();
|
|
105
|
+
return n && Object.keys(t.unitless || {}).forEach((h) => {
|
|
106
|
+
C.add(V(h, n.prefix)), C.add(V(h, F(o, n.prefix)));
|
|
107
|
+
}), ee(x, C);
|
|
108
|
+
}, [x, o, n == null ? void 0 : n.prefix])), {
|
|
109
|
+
max: K,
|
|
110
|
+
min: Q
|
|
111
|
+
} = te(x), $ = k(() => ({
|
|
112
|
+
theme: s.value,
|
|
113
|
+
token: a.value,
|
|
114
|
+
hashId: r.value,
|
|
115
|
+
nonce: () => R.nonce,
|
|
116
|
+
clientOnly: t.clientOnly,
|
|
117
|
+
layer: p,
|
|
118
|
+
// antd is always at top of styles
|
|
119
|
+
order: t.order || -999
|
|
120
|
+
}));
|
|
121
|
+
return typeof U == "function" && M(k(() => ({
|
|
122
|
+
...$.value,
|
|
123
|
+
clientOnly: !1,
|
|
124
|
+
path: ["Shared", y]
|
|
125
|
+
})), () => U(a.value, {
|
|
126
|
+
prefix: {
|
|
127
|
+
rootPrefixCls: y,
|
|
128
|
+
iconPrefixCls: d
|
|
129
|
+
},
|
|
130
|
+
csp: R
|
|
131
|
+
})), [M(k(() => ({
|
|
132
|
+
...$.value,
|
|
133
|
+
path: [m, u, d]
|
|
134
|
+
})), () => {
|
|
135
|
+
if (t.injectStyle === !1)
|
|
136
|
+
return [];
|
|
137
|
+
const {
|
|
138
|
+
token: C,
|
|
139
|
+
flush: h
|
|
140
|
+
} = ne(a), g = q(o, l, c), W = `.${u}`, b = H(o, l, g, {
|
|
141
|
+
deprecatedTokens: t.deprecatedTokens
|
|
142
|
+
});
|
|
143
|
+
n && g && typeof g == "object" && Object.keys(g).forEach((w) => {
|
|
144
|
+
g[w] = `var(${V(w, F(o, n.prefix))})`;
|
|
145
|
+
});
|
|
146
|
+
const I = k(() => re(C.value, {
|
|
147
|
+
componentCls: W,
|
|
148
|
+
prefixCls: u,
|
|
149
|
+
iconCls: `.${d}`,
|
|
150
|
+
antCls: `.${y}`,
|
|
151
|
+
calc: J,
|
|
152
|
+
// @ts-ignore
|
|
153
|
+
max: K,
|
|
154
|
+
// @ts-ignore
|
|
155
|
+
min: Q
|
|
156
|
+
}, n ? g : b)), X = k(() => S(I.value, {
|
|
157
|
+
hashId: r.value,
|
|
158
|
+
prefixCls: u,
|
|
159
|
+
rootPrefixCls: y,
|
|
160
|
+
iconPrefixCls: d
|
|
161
|
+
}));
|
|
162
|
+
h(o, b);
|
|
163
|
+
const Y = typeof O == "function" ? O(I.value, u, f, t.resetFont) : null;
|
|
164
|
+
return [t.resetStyle === !1 ? null : Y, X.value];
|
|
165
|
+
}), r];
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
function G(e, S, c, t = {}) {
|
|
169
|
+
const i = v(e, S, c, {
|
|
170
|
+
resetStyle: !1,
|
|
171
|
+
// Sub Style should default after root one
|
|
172
|
+
order: -998,
|
|
173
|
+
...t
|
|
174
|
+
});
|
|
175
|
+
return ({
|
|
176
|
+
prefixCls: m,
|
|
177
|
+
rootCls: p = m
|
|
178
|
+
}) => (i(m, p), null);
|
|
179
|
+
}
|
|
180
|
+
return {
|
|
181
|
+
genStyleHooks: L,
|
|
182
|
+
genSubStyleComponent: G,
|
|
183
|
+
genComponentStyleHook: v
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
export {
|
|
187
|
+
xe as default
|
|
188
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
function j(E, g = {}, b, a) {
|
|
2
|
+
const r = {
|
|
3
|
+
...g[E]
|
|
4
|
+
};
|
|
5
|
+
if (a != null && a.deprecatedTokens) {
|
|
6
|
+
const { deprecatedTokens: f } = a;
|
|
7
|
+
f.forEach(([h, c]) => {
|
|
8
|
+
(r != null && r[h] || r != null && r[c]) && (r[c] ?? (r[c] = r == null ? void 0 : r[h]));
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
const d = { ...b, ...r };
|
|
12
|
+
return Object.keys(d).forEach((f) => {
|
|
13
|
+
d[f] === g[f] && delete d[f];
|
|
14
|
+
}), d;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
j as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../../cssinjs/StyleContext.mjs";
|
|
2
|
+
import "vue";
|
|
3
|
+
import { unit as t } from "../../cssinjs/util.mjs";
|
|
4
|
+
import "../../cssinjs/theme/ThemeCache.mjs";
|
|
5
|
+
import "../../warning.mjs";
|
|
6
|
+
import "../../cssinjs/transformers/legacyLogicalProperties.mjs";
|
|
7
|
+
function u(n) {
|
|
8
|
+
return n === "js" ? { max: Math.max, min: Math.min } : {
|
|
9
|
+
max: (...m) => `max(${m.map((i) => t(i)).join(",")})`,
|
|
10
|
+
min: (...m) => `min(${m.map((i) => t(i)).join(",")})`
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
u as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
const u = typeof CSSINJS_STATISTIC < "u";
|
|
2
|
+
let i = !0;
|
|
3
|
+
function l(...r) {
|
|
4
|
+
if (!u)
|
|
5
|
+
return Object.assign({}, ...r);
|
|
6
|
+
i = !1;
|
|
7
|
+
const e = {};
|
|
8
|
+
return r.forEach((n) => {
|
|
9
|
+
if (typeof n != "object")
|
|
10
|
+
return;
|
|
11
|
+
Object.keys(n).forEach((t) => {
|
|
12
|
+
Object.defineProperty(e, t, {
|
|
13
|
+
configurable: !0,
|
|
14
|
+
enumerable: !0,
|
|
15
|
+
get: () => n[t]
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
}), i = !0, e;
|
|
19
|
+
}
|
|
20
|
+
const f = {}, d = {};
|
|
21
|
+
function a() {
|
|
22
|
+
}
|
|
23
|
+
const y = (r) => {
|
|
24
|
+
let e, n = r, c = a;
|
|
25
|
+
return u && typeof Proxy < "u" && (e = /* @__PURE__ */ new Set(), n = new Proxy(r, {
|
|
26
|
+
get(t, o) {
|
|
27
|
+
return i && (e == null || e.add(o)), t[o];
|
|
28
|
+
}
|
|
29
|
+
}), c = (t, o) => {
|
|
30
|
+
var s;
|
|
31
|
+
f[t] = {
|
|
32
|
+
global: Array.from(e),
|
|
33
|
+
component: {
|
|
34
|
+
...(s = f[t]) == null ? void 0 : s.component,
|
|
35
|
+
...o
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}), { token: n, keys: e, flush: c };
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
d as _statistic_build_,
|
|
42
|
+
y as default,
|
|
43
|
+
l as merge,
|
|
44
|
+
f as statistic
|
|
45
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
let d;
|
|
2
|
+
function c(n) {
|
|
3
|
+
if (typeof document > "u")
|
|
4
|
+
return 0;
|
|
5
|
+
if (n || d === void 0) {
|
|
6
|
+
const e = document.createElement("div");
|
|
7
|
+
e.style.width = "100%", e.style.height = "200px";
|
|
8
|
+
const t = document.createElement("div"), i = t.style;
|
|
9
|
+
i.position = "absolute", i.top = "0", i.left = "0", i.pointerEvents = "none", i.visibility = "hidden", i.width = "200px", i.height = "150px", i.overflow = "hidden", t.appendChild(e), document.body.appendChild(t);
|
|
10
|
+
const l = e.offsetWidth;
|
|
11
|
+
t.style.overflow = "scroll";
|
|
12
|
+
let o = e.offsetWidth;
|
|
13
|
+
l === o && (o = t.clientWidth), document.body.removeChild(t), d = l - o;
|
|
14
|
+
}
|
|
15
|
+
return d;
|
|
16
|
+
}
|
|
17
|
+
function r(n) {
|
|
18
|
+
const e = n.match(/^(.*)px$/), t = Number(e == null ? void 0 : e[1]);
|
|
19
|
+
return Number.isNaN(t) ? c() : t;
|
|
20
|
+
}
|
|
21
|
+
function h(n) {
|
|
22
|
+
if (typeof document > "u" || !n || !(n instanceof Element))
|
|
23
|
+
return { width: 0, height: 0 };
|
|
24
|
+
const { width: e, height: t } = getComputedStyle(n, "::-webkit-scrollbar");
|
|
25
|
+
return {
|
|
26
|
+
width: r(e),
|
|
27
|
+
height: r(t)
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
c as default,
|
|
32
|
+
h as getTargetScrollBarSize
|
|
33
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useXProviderContextInject as o } from "../../x-provider/context.mjs";
|
|
2
|
+
import { computed as n, unref as s } from "vue";
|
|
3
|
+
const r = {
|
|
4
|
+
classNames: {},
|
|
5
|
+
styles: {},
|
|
6
|
+
className: "",
|
|
7
|
+
style: {}
|
|
8
|
+
}, c = (e) => {
|
|
9
|
+
const t = o();
|
|
10
|
+
return n(() => ({
|
|
11
|
+
...r,
|
|
12
|
+
...s(t)[e]
|
|
13
|
+
}));
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
c as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ref as o, unref as c, watchEffect as s, watch as g, toRaw as d } from "vue";
|
|
2
|
+
function m(l, t) {
|
|
3
|
+
const { defaultValue: u, value: a = o() } = t || {};
|
|
4
|
+
let n = typeof l == "function" ? l() : l;
|
|
5
|
+
a.value !== void 0 && (n = c(a)), u !== void 0 && (n = typeof u == "function" ? u() : u);
|
|
6
|
+
const v = o(n), f = o(n);
|
|
7
|
+
s(() => {
|
|
8
|
+
let e = a.value !== void 0 ? a.value : v.value;
|
|
9
|
+
t.postState && (e = t.postState(e)), f.value = e;
|
|
10
|
+
});
|
|
11
|
+
function r(e) {
|
|
12
|
+
const i = f.value;
|
|
13
|
+
v.value = e, d(f.value) !== e && t.onChange && t.onChange(e, i);
|
|
14
|
+
}
|
|
15
|
+
return g(a, () => {
|
|
16
|
+
v.value = a.value;
|
|
17
|
+
}), [f, r];
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
m as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defaultPrefixCls as r } from "../x-provider/hooks/use-x-provider-context.mjs";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "../x-provider/context.mjs";
|
|
4
|
+
import "ant-design-vue";
|
|
5
|
+
const e = () => ({ height: 0, opacity: 0 }), n = (t) => {
|
|
6
|
+
const { scrollHeight: o } = t;
|
|
7
|
+
return { height: o, opacity: 1 };
|
|
8
|
+
}, a = (t) => ({ height: t ? t.offsetHeight : 0 }), i = (t, o) => (o == null ? void 0 : o.deadline) === !0 || o.propertyName === "height", h = (t = r) => ({
|
|
9
|
+
motionName: `${t}-motion-collapse`,
|
|
10
|
+
onAppearStart: e,
|
|
11
|
+
onEnterStart: e,
|
|
12
|
+
onAppearActive: n,
|
|
13
|
+
onEnterActive: n,
|
|
14
|
+
onLeaveStart: a,
|
|
15
|
+
onLeaveActive: e,
|
|
16
|
+
onAppearEnd: i,
|
|
17
|
+
onEnterEnd: i,
|
|
18
|
+
onLeaveEnd: i,
|
|
19
|
+
motionDeadline: 500
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
h as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const l = `accept acceptcharset accesskey action allowfullscreen allowtransparency
|
|
2
|
+
alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
|
|
3
|
+
charset checked classid class colspan cols content contenteditable contextmenu
|
|
4
|
+
controls coords crossorigin data datetime default defer dir disabled download draggable
|
|
5
|
+
enctype form formaction formenctype formmethod formnovalidate formtarget frameborder
|
|
6
|
+
headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity
|
|
7
|
+
is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media
|
|
8
|
+
mediagroup method min minlength multiple muted name novalidate nonce open
|
|
9
|
+
optimum pattern placeholder poster preload radiogroup readonly rel required
|
|
10
|
+
reversed role rowspan rows sandbox scope scoped scrolling seamless selected
|
|
11
|
+
shape size sizes span spellcheck src srcdoc srclang srcset start step style
|
|
12
|
+
summary tabindex target title type usemap value width wmode wrap`, c = `onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown
|
|
13
|
+
onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick
|
|
14
|
+
onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown
|
|
15
|
+
onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
|
|
16
|
+
onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
|
|
17
|
+
onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
|
|
18
|
+
onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`, r = `${l} ${c}`.split(/[\s\n]+/), i = "aria-", d = "data-";
|
|
19
|
+
function s(t, n) {
|
|
20
|
+
return t.indexOf(n) === 0;
|
|
21
|
+
}
|
|
22
|
+
function u(t, n = !1) {
|
|
23
|
+
let o;
|
|
24
|
+
n === !1 ? o = {
|
|
25
|
+
aria: !0,
|
|
26
|
+
data: !0,
|
|
27
|
+
attr: !0
|
|
28
|
+
} : n === !0 ? o = {
|
|
29
|
+
aria: !0
|
|
30
|
+
} : o = {
|
|
31
|
+
...n
|
|
32
|
+
};
|
|
33
|
+
const a = {};
|
|
34
|
+
return Object.keys(t).forEach((e) => {
|
|
35
|
+
// Aria
|
|
36
|
+
(o.aria && (e === "role" || s(e, i)) || // Data
|
|
37
|
+
o.data && s(e, d) || // Attr
|
|
38
|
+
o.attr && (r.includes(e) || r.includes(e.toLowerCase()))) && (a[e] = t[e]);
|
|
39
|
+
}), a;
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
u as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
let s = !1;
|
|
2
|
+
try {
|
|
3
|
+
const e = Object.defineProperty({}, "passive", {
|
|
4
|
+
get() {
|
|
5
|
+
s = !0;
|
|
6
|
+
}
|
|
7
|
+
});
|
|
8
|
+
window.addEventListener("testPassive", null, e), window.removeEventListener("testPassive", null, e);
|
|
9
|
+
} catch {
|
|
10
|
+
}
|
|
11
|
+
const t = s;
|
|
12
|
+
export {
|
|
13
|
+
t as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { nextTick as t } from "vue";
|
|
2
|
+
const u = (e) => e !== void 0 && (e === "topLeft" || e === "topRight") ? "slide-down" : "slide-up", s = (e, r = {}) => e ? {
|
|
3
|
+
name: e,
|
|
4
|
+
appear: !0,
|
|
5
|
+
// type: 'animation',
|
|
6
|
+
// appearFromClass: `${transitionName}-appear ${transitionName}-appear-prepare`,
|
|
7
|
+
// appearActiveClass: `antdv-base-transtion`,
|
|
8
|
+
// appearToClass: `${transitionName}-appear ${transitionName}-appear-active`,
|
|
9
|
+
enterFromClass: `${e}-enter ${e}-enter-prepare ${e}-enter-start`,
|
|
10
|
+
enterActiveClass: `${e}-enter ${e}-enter-prepare`,
|
|
11
|
+
enterToClass: `${e}-enter ${e}-enter-active`,
|
|
12
|
+
leaveFromClass: ` ${e}-leave`,
|
|
13
|
+
leaveActiveClass: `${e}-leave ${e}-leave-active`,
|
|
14
|
+
leaveToClass: `${e}-leave ${e}-leave-active`,
|
|
15
|
+
...r
|
|
16
|
+
} : {
|
|
17
|
+
css: !1,
|
|
18
|
+
...r
|
|
19
|
+
}, a = (e, r = {}) => e ? {
|
|
20
|
+
name: e,
|
|
21
|
+
appear: !0,
|
|
22
|
+
// appearFromClass: `${transitionName}-appear ${transitionName}-appear-prepare`,
|
|
23
|
+
appearActiveClass: `${e}`,
|
|
24
|
+
appearToClass: `${e}-appear ${e}-appear-active`,
|
|
25
|
+
enterFromClass: `${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,
|
|
26
|
+
enterActiveClass: `${e}`,
|
|
27
|
+
enterToClass: `${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,
|
|
28
|
+
leaveActiveClass: `${e} ${e}-leave`,
|
|
29
|
+
leaveToClass: `${e}-leave-active`,
|
|
30
|
+
...r
|
|
31
|
+
} : {
|
|
32
|
+
css: !1,
|
|
33
|
+
...r
|
|
34
|
+
}, v = () => ({
|
|
35
|
+
height: 0,
|
|
36
|
+
opacity: 0
|
|
37
|
+
}), $ = (e) => ({
|
|
38
|
+
height: `${e.scrollHeight}px`,
|
|
39
|
+
opacity: 1
|
|
40
|
+
}), o = (e) => ({
|
|
41
|
+
height: `${e.offsetHeight}px`
|
|
42
|
+
}), g = (e = "ant-motion-collapse", r, p) => ({
|
|
43
|
+
name: e,
|
|
44
|
+
appear: !0,
|
|
45
|
+
css: !0,
|
|
46
|
+
onBeforeEnter: (l) => {
|
|
47
|
+
p.value = e, r.value = v();
|
|
48
|
+
},
|
|
49
|
+
onEnter: (l) => {
|
|
50
|
+
t(() => {
|
|
51
|
+
r.value = $(l);
|
|
52
|
+
});
|
|
53
|
+
},
|
|
54
|
+
onAfterEnter: () => {
|
|
55
|
+
p.value = "", r.value = {};
|
|
56
|
+
},
|
|
57
|
+
onBeforeLeave: (l) => {
|
|
58
|
+
p.value = e, r.value = o(l);
|
|
59
|
+
},
|
|
60
|
+
onLeave: (l) => {
|
|
61
|
+
setTimeout(() => {
|
|
62
|
+
r.value = v();
|
|
63
|
+
});
|
|
64
|
+
},
|
|
65
|
+
onAfterLeave: () => {
|
|
66
|
+
p.value = "", r.value = {};
|
|
67
|
+
}
|
|
68
|
+
}), C = (e, r, p) => p !== void 0 ? p : `${e}-${r}`;
|
|
69
|
+
export {
|
|
70
|
+
g as collapseMotion,
|
|
71
|
+
u as getTransitionDirection,
|
|
72
|
+
a as getTransitionGroupProps,
|
|
73
|
+
C as getTransitionName,
|
|
74
|
+
s as getTransitionProps
|
|
75
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const r = (...t) => t, o = (...t) => t, a = (t) => {
|
|
2
|
+
const n = t;
|
|
3
|
+
return n.install = function(e) {
|
|
4
|
+
e.component(n.displayName || n.name, t);
|
|
5
|
+
}, t;
|
|
6
|
+
};
|
|
7
|
+
function y() {
|
|
8
|
+
return { type: [Function, Array] };
|
|
9
|
+
}
|
|
10
|
+
function c(t) {
|
|
11
|
+
return { type: Object, default: t };
|
|
12
|
+
}
|
|
13
|
+
function i(t) {
|
|
14
|
+
return { type: Boolean, default: t };
|
|
15
|
+
}
|
|
16
|
+
function p(t) {
|
|
17
|
+
return { type: Function, default: t };
|
|
18
|
+
}
|
|
19
|
+
function u(t, n) {
|
|
20
|
+
const e = { validator: () => !0, default: t };
|
|
21
|
+
return e;
|
|
22
|
+
}
|
|
23
|
+
function f() {
|
|
24
|
+
return { validator: () => !0 };
|
|
25
|
+
}
|
|
26
|
+
function l(t) {
|
|
27
|
+
return { type: Array, default: t };
|
|
28
|
+
}
|
|
29
|
+
function d(t) {
|
|
30
|
+
return { type: String, default: t };
|
|
31
|
+
}
|
|
32
|
+
function s(t, n) {
|
|
33
|
+
return t ? { type: t, default: n } : u(n);
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
u as anyType,
|
|
37
|
+
l as arrayType,
|
|
38
|
+
i as booleanType,
|
|
39
|
+
y as eventType,
|
|
40
|
+
p as functionType,
|
|
41
|
+
c as objectType,
|
|
42
|
+
s as someType,
|
|
43
|
+
d as stringType,
|
|
44
|
+
r as tuple,
|
|
45
|
+
o as tupleNum,
|
|
46
|
+
f as vNodeType,
|
|
47
|
+
a as withInstall
|
|
48
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { shallowRef as u, defineComponent as p, computed as o, provide as c, watch as d, unref as g, triggerRef as f, inject as m } from "vue";
|
|
2
|
+
import { resetWarned as W } from "../vc-util/warning.mjs";
|
|
3
|
+
import { objectType as s } from "./type.mjs";
|
|
4
|
+
function a() {
|
|
5
|
+
}
|
|
6
|
+
function b() {
|
|
7
|
+
W();
|
|
8
|
+
}
|
|
9
|
+
let j = a;
|
|
10
|
+
const i = Symbol("WarningContext"), t = u(), x = (e) => {
|
|
11
|
+
c(i, e), d(
|
|
12
|
+
e,
|
|
13
|
+
() => {
|
|
14
|
+
t.value = g(e), f(t);
|
|
15
|
+
},
|
|
16
|
+
{ immediate: !0, deep: !0 }
|
|
17
|
+
);
|
|
18
|
+
}, w = () => m(
|
|
19
|
+
i,
|
|
20
|
+
o(() => t.value || {})
|
|
21
|
+
), y = p({
|
|
22
|
+
props: {
|
|
23
|
+
value: s()
|
|
24
|
+
},
|
|
25
|
+
setup(e, { slots: n }) {
|
|
26
|
+
return x(o(() => e.value)), () => {
|
|
27
|
+
var r;
|
|
28
|
+
return (r = n.default) == null ? void 0 : r.call(n);
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}), h = () => {
|
|
32
|
+
const e = () => {
|
|
33
|
+
};
|
|
34
|
+
return e.deprecated = a, e;
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
y as WarningContextProvider,
|
|
38
|
+
j as default,
|
|
39
|
+
h as devUseWarning,
|
|
40
|
+
t as globalWarningContextApi,
|
|
41
|
+
a as noop,
|
|
42
|
+
b as resetWarned,
|
|
43
|
+
w as useWarningContextInject,
|
|
44
|
+
x as useWarningContextProvider
|
|
45
|
+
};
|