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,61 @@
|
|
|
1
|
+
import { lintWarning as a } from "./utils.mjs";
|
|
2
|
+
const p = (t, r, i) => {
|
|
3
|
+
switch (t) {
|
|
4
|
+
case "marginLeft":
|
|
5
|
+
case "marginRight":
|
|
6
|
+
case "paddingLeft":
|
|
7
|
+
case "paddingRight":
|
|
8
|
+
case "left":
|
|
9
|
+
case "right":
|
|
10
|
+
case "borderLeft":
|
|
11
|
+
case "borderLeftWidth":
|
|
12
|
+
case "borderLeftStyle":
|
|
13
|
+
case "borderLeftColor":
|
|
14
|
+
case "borderRight":
|
|
15
|
+
case "borderRightWidth":
|
|
16
|
+
case "borderRightStyle":
|
|
17
|
+
case "borderRightColor":
|
|
18
|
+
case "borderTopLeftRadius":
|
|
19
|
+
case "borderTopRightRadius":
|
|
20
|
+
case "borderBottomLeftRadius":
|
|
21
|
+
case "borderBottomRightRadius":
|
|
22
|
+
a(
|
|
23
|
+
`You seem to be using non-logical property '${t}' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,
|
|
24
|
+
i
|
|
25
|
+
);
|
|
26
|
+
return;
|
|
27
|
+
case "margin":
|
|
28
|
+
case "padding":
|
|
29
|
+
case "borderWidth":
|
|
30
|
+
case "borderStyle":
|
|
31
|
+
if (typeof r == "string") {
|
|
32
|
+
const s = r.split(" ").map((n) => n.trim());
|
|
33
|
+
s.length === 4 && s[1] !== s[3] && a(
|
|
34
|
+
`You seem to be using '${t}' property with different left ${t} and right ${t}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,
|
|
35
|
+
i
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
return;
|
|
39
|
+
case "clear":
|
|
40
|
+
case "textAlign":
|
|
41
|
+
(r === "left" || r === "right") && a(
|
|
42
|
+
`You seem to be using non-logical value '${r}' of ${t}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,
|
|
43
|
+
i
|
|
44
|
+
);
|
|
45
|
+
return;
|
|
46
|
+
case "borderRadius":
|
|
47
|
+
typeof r == "string" && r.split("/").map((o) => o.trim()).reduce((o, l) => {
|
|
48
|
+
if (o)
|
|
49
|
+
return o;
|
|
50
|
+
const e = l.split(" ").map((d) => d.trim());
|
|
51
|
+
return e.length >= 2 && e[0] !== e[1] || e.length === 3 && e[1] !== e[2] || e.length === 4 && e[2] !== e[3] ? !0 : o;
|
|
52
|
+
}, !1) && a(
|
|
53
|
+
`You seem to be using non-logical value '${r}' of ${t}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,
|
|
54
|
+
i
|
|
55
|
+
);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
p as default
|
|
61
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { warningOnce as i } from "../../../vc-util/warning.mjs";
|
|
2
|
+
function a(r, t) {
|
|
3
|
+
const { path: n, parentSelectors: e } = t;
|
|
4
|
+
i(
|
|
5
|
+
!1,
|
|
6
|
+
`[Ant Design Vue CSS-in-JS] ${n ? `Error in '${n}': ` : ""}${r}${e.length ? ` Selector info: ${e.join(" -> ")}` : ""}`
|
|
7
|
+
);
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
a as lintWarning
|
|
11
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import n from "../../warning.mjs";
|
|
2
|
+
let t = 0;
|
|
3
|
+
class s {
|
|
4
|
+
constructor(r) {
|
|
5
|
+
this.derivatives = Array.isArray(r) ? r : [r], this.id = t, r.length === 0 && n(
|
|
6
|
+
r.length > 0
|
|
7
|
+
), t += 1;
|
|
8
|
+
}
|
|
9
|
+
getDerivativeToken(r) {
|
|
10
|
+
return this.derivatives.reduce(
|
|
11
|
+
(e, i) => i(r, e),
|
|
12
|
+
void 0
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
s as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
function f(n, e) {
|
|
2
|
+
if (n.length !== e.length)
|
|
3
|
+
return !1;
|
|
4
|
+
for (let s = 0; s < n.length; s++)
|
|
5
|
+
if (n[s] !== e[s])
|
|
6
|
+
return !1;
|
|
7
|
+
return !0;
|
|
8
|
+
}
|
|
9
|
+
const i = class i {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0;
|
|
12
|
+
}
|
|
13
|
+
size() {
|
|
14
|
+
return this.keys.length;
|
|
15
|
+
}
|
|
16
|
+
internalGet(e, s = !1) {
|
|
17
|
+
let t = { map: this.cache };
|
|
18
|
+
return e.forEach((l) => {
|
|
19
|
+
var a;
|
|
20
|
+
t ? t = (a = t == null ? void 0 : t.map) == null ? void 0 : a.get(l) : t = void 0;
|
|
21
|
+
}), t != null && t.value && s && (t.value[1] = this.cacheCallTimes++), t == null ? void 0 : t.value;
|
|
22
|
+
}
|
|
23
|
+
get(e) {
|
|
24
|
+
var s;
|
|
25
|
+
return (s = this.internalGet(e, !0)) == null ? void 0 : s[0];
|
|
26
|
+
}
|
|
27
|
+
has(e) {
|
|
28
|
+
return !!this.internalGet(e);
|
|
29
|
+
}
|
|
30
|
+
set(e, s) {
|
|
31
|
+
if (!this.has(e)) {
|
|
32
|
+
if (this.size() + 1 > i.MAX_CACHE_SIZE + i.MAX_CACHE_OFFSET) {
|
|
33
|
+
const [l] = this.keys.reduce(
|
|
34
|
+
(a, h) => {
|
|
35
|
+
const [, r] = a;
|
|
36
|
+
return this.internalGet(h)[1] < r ? [h, this.internalGet(h)[1]] : a;
|
|
37
|
+
},
|
|
38
|
+
[this.keys[0], this.cacheCallTimes]
|
|
39
|
+
);
|
|
40
|
+
this.delete(l);
|
|
41
|
+
}
|
|
42
|
+
this.keys.push(e);
|
|
43
|
+
}
|
|
44
|
+
let t = this.cache;
|
|
45
|
+
e.forEach((l, a) => {
|
|
46
|
+
if (a === e.length - 1)
|
|
47
|
+
t.set(l, { value: [s, this.cacheCallTimes++] });
|
|
48
|
+
else {
|
|
49
|
+
const h = t.get(l);
|
|
50
|
+
h ? h.map || (h.map = /* @__PURE__ */ new Map()) : t.set(l, { map: /* @__PURE__ */ new Map() }), t = t.get(l).map;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
deleteByPath(e, s) {
|
|
55
|
+
var a;
|
|
56
|
+
const t = e.get(s[0]);
|
|
57
|
+
if (s.length === 1)
|
|
58
|
+
return t.map ? e.set(s[0], { map: t.map }) : e.delete(s[0]), (a = t.value) == null ? void 0 : a[0];
|
|
59
|
+
const l = this.deleteByPath(t.map, s.slice(1));
|
|
60
|
+
return (!t.map || t.map.size === 0) && !t.value && e.delete(s[0]), l;
|
|
61
|
+
}
|
|
62
|
+
delete(e) {
|
|
63
|
+
if (this.has(e))
|
|
64
|
+
return this.keys = this.keys.filter((s) => !f(s, e)), this.deleteByPath(this.cache, e);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
i.MAX_CACHE_SIZE = 20, i.MAX_CACHE_OFFSET = 5;
|
|
68
|
+
let u = i;
|
|
69
|
+
export {
|
|
70
|
+
u as default,
|
|
71
|
+
f as sameDerivativeOption
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
function g(e) {
|
|
2
|
+
if (typeof e == "number")
|
|
3
|
+
return [e];
|
|
4
|
+
const n = String(e).split(/\s+/);
|
|
5
|
+
let d = "", t = 0;
|
|
6
|
+
return n.reduce((r, o) => (o.includes("(") ? (d += o, t += o.split("(").length - 1) : o.includes(")") ? (d += ` ${o}`, t -= o.split(")").length - 1, t === 0 && (r.push(d), d = "")) : t > 0 ? d += ` ${o}` : r.push(o), r), []);
|
|
7
|
+
}
|
|
8
|
+
function i(e) {
|
|
9
|
+
return e.notSplit = !0, e;
|
|
10
|
+
}
|
|
11
|
+
const p = {
|
|
12
|
+
// Inset
|
|
13
|
+
inset: ["top", "right", "bottom", "left"],
|
|
14
|
+
insetBlock: ["top", "bottom"],
|
|
15
|
+
insetBlockStart: ["top"],
|
|
16
|
+
insetBlockEnd: ["bottom"],
|
|
17
|
+
insetInline: ["left", "right"],
|
|
18
|
+
insetInlineStart: ["left"],
|
|
19
|
+
insetInlineEnd: ["right"],
|
|
20
|
+
// Margin
|
|
21
|
+
marginBlock: ["marginTop", "marginBottom"],
|
|
22
|
+
marginBlockStart: ["marginTop"],
|
|
23
|
+
marginBlockEnd: ["marginBottom"],
|
|
24
|
+
marginInline: ["marginLeft", "marginRight"],
|
|
25
|
+
marginInlineStart: ["marginLeft"],
|
|
26
|
+
marginInlineEnd: ["marginRight"],
|
|
27
|
+
// Padding
|
|
28
|
+
paddingBlock: ["paddingTop", "paddingBottom"],
|
|
29
|
+
paddingBlockStart: ["paddingTop"],
|
|
30
|
+
paddingBlockEnd: ["paddingBottom"],
|
|
31
|
+
paddingInline: ["paddingLeft", "paddingRight"],
|
|
32
|
+
paddingInlineStart: ["paddingLeft"],
|
|
33
|
+
paddingInlineEnd: ["paddingRight"],
|
|
34
|
+
// Border
|
|
35
|
+
borderBlock: i(["borderTop", "borderBottom"]),
|
|
36
|
+
borderBlockStart: i(["borderTop"]),
|
|
37
|
+
borderBlockEnd: i(["borderBottom"]),
|
|
38
|
+
borderInline: i(["borderLeft", "borderRight"]),
|
|
39
|
+
borderInlineStart: i(["borderLeft"]),
|
|
40
|
+
borderInlineEnd: i(["borderRight"]),
|
|
41
|
+
// Border width
|
|
42
|
+
borderBlockWidth: ["borderTopWidth", "borderBottomWidth"],
|
|
43
|
+
borderBlockStartWidth: ["borderTopWidth"],
|
|
44
|
+
borderBlockEndWidth: ["borderBottomWidth"],
|
|
45
|
+
borderInlineWidth: ["borderLeftWidth", "borderRightWidth"],
|
|
46
|
+
borderInlineStartWidth: ["borderLeftWidth"],
|
|
47
|
+
borderInlineEndWidth: ["borderRightWidth"],
|
|
48
|
+
// Border style
|
|
49
|
+
borderBlockStyle: ["borderTopStyle", "borderBottomStyle"],
|
|
50
|
+
borderBlockStartStyle: ["borderTopStyle"],
|
|
51
|
+
borderBlockEndStyle: ["borderBottomStyle"],
|
|
52
|
+
borderInlineStyle: ["borderLeftStyle", "borderRightStyle"],
|
|
53
|
+
borderInlineStartStyle: ["borderLeftStyle"],
|
|
54
|
+
borderInlineEndStyle: ["borderRightStyle"],
|
|
55
|
+
// Border color
|
|
56
|
+
borderBlockColor: ["borderTopColor", "borderBottomColor"],
|
|
57
|
+
borderBlockStartColor: ["borderTopColor"],
|
|
58
|
+
borderBlockEndColor: ["borderBottomColor"],
|
|
59
|
+
borderInlineColor: ["borderLeftColor", "borderRightColor"],
|
|
60
|
+
borderInlineStartColor: ["borderLeftColor"],
|
|
61
|
+
borderInlineEndColor: ["borderRightColor"],
|
|
62
|
+
// Border radius
|
|
63
|
+
borderStartStartRadius: ["borderTopLeftRadius"],
|
|
64
|
+
borderStartEndRadius: ["borderTopRightRadius"],
|
|
65
|
+
borderEndStartRadius: ["borderBottomLeftRadius"],
|
|
66
|
+
borderEndEndRadius: ["borderBottomRightRadius"]
|
|
67
|
+
};
|
|
68
|
+
function a(e) {
|
|
69
|
+
return { _skip_check_: !0, value: e };
|
|
70
|
+
}
|
|
71
|
+
const h = {
|
|
72
|
+
visit: (e) => {
|
|
73
|
+
const n = {};
|
|
74
|
+
return Object.keys(e).forEach((d) => {
|
|
75
|
+
const t = e[d], r = p[d];
|
|
76
|
+
if (r && (typeof t == "number" || typeof t == "string")) {
|
|
77
|
+
const o = g(t);
|
|
78
|
+
r.length && r.notSplit ? r.forEach((l) => {
|
|
79
|
+
n[l] = a(t);
|
|
80
|
+
}) : r.length === 1 ? n[r[0]] = a(t) : r.length === 2 ? r.forEach((l, b) => {
|
|
81
|
+
n[l] = a(o[b] ?? o[0]);
|
|
82
|
+
}) : r.length === 4 ? r.forEach((l, b) => {
|
|
83
|
+
n[l] = a(o[b] ?? o[b - 2] ?? o[0]);
|
|
84
|
+
}) : n[d] = t;
|
|
85
|
+
} else
|
|
86
|
+
n[d] = t;
|
|
87
|
+
}), n;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
export {
|
|
91
|
+
h as default
|
|
92
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { b as u } from "../hooks/useStyleRegister/index.tsx2.mjs";
|
|
2
|
+
const l = /url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;
|
|
3
|
+
function d(s, i) {
|
|
4
|
+
const o = Math.pow(10, i + 1), c = Math.floor(s * o);
|
|
5
|
+
return Math.round(c / 10) * 10 / o;
|
|
6
|
+
}
|
|
7
|
+
const h = (s = {}) => {
|
|
8
|
+
const { rootValue: i = 16, precision: o = 5, mediaQuery: c = !1 } = s, p = (n, e) => {
|
|
9
|
+
if (!e) return n;
|
|
10
|
+
const t = parseFloat(e);
|
|
11
|
+
return t <= 1 ? n : `${d(t / i, o)}rem`;
|
|
12
|
+
};
|
|
13
|
+
return { visit: (n) => {
|
|
14
|
+
const e = { ...n };
|
|
15
|
+
return Object.entries(n).forEach(([t, r]) => {
|
|
16
|
+
if (typeof r == "string" && r.includes("px")) {
|
|
17
|
+
const a = r.replace(l, p);
|
|
18
|
+
e[t] = a;
|
|
19
|
+
}
|
|
20
|
+
!u[t] && typeof r == "number" && r !== 0 && (e[t] = `${r}px`.replace(l, p));
|
|
21
|
+
const f = t.trim();
|
|
22
|
+
if (f.startsWith("@") && f.includes("px") && c) {
|
|
23
|
+
const a = t.replace(l, p);
|
|
24
|
+
e[a] = e[t], delete e[t];
|
|
25
|
+
}
|
|
26
|
+
}), e;
|
|
27
|
+
} };
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
h as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { m as C } from "./hooks/useCacheToken.tsx2.mjs";
|
|
2
|
+
import { updateCSS as T, removeCSS as A } from "../../vc-util/Dom/dynamicCSS.mjs";
|
|
3
|
+
import b from "../../vc-util/Dom/canUseDom.mjs";
|
|
4
|
+
import "./theme/ThemeCache.mjs";
|
|
5
|
+
import j from "./theme/Theme.mjs";
|
|
6
|
+
const v = "data-token-hash", O = "data-css-hash", Z = "data-cache-path", y = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
function h(t) {
|
|
8
|
+
let r = y.get(t) || "";
|
|
9
|
+
return r || (Object.keys(t).forEach((e) => {
|
|
10
|
+
const s = t[e];
|
|
11
|
+
r += e, s instanceof j ? r += s.id : s && typeof s == "object" ? r += h(s) : r += s;
|
|
12
|
+
}), y.set(t, r)), r;
|
|
13
|
+
}
|
|
14
|
+
function k(t, r) {
|
|
15
|
+
return C(`${r}_${h(t)}`);
|
|
16
|
+
}
|
|
17
|
+
const c = `random-${Date.now()}-${Math.random()}`.replace(/\./g, ""), $ = "_bAmBoO_";
|
|
18
|
+
function d(t, r, e) {
|
|
19
|
+
var s, n;
|
|
20
|
+
if (b()) {
|
|
21
|
+
T(t, c);
|
|
22
|
+
const o = document.createElement("div");
|
|
23
|
+
o.style.position = "fixed", o.style.left = "0", o.style.top = "0", r == null || r(o), document.body.appendChild(o);
|
|
24
|
+
const a = e ? e(o) : (s = getComputedStyle(o).content) == null ? void 0 : s.includes($);
|
|
25
|
+
return (n = o.parentNode) == null || n.removeChild(o), A(c), a;
|
|
26
|
+
}
|
|
27
|
+
return !1;
|
|
28
|
+
}
|
|
29
|
+
let i;
|
|
30
|
+
function K() {
|
|
31
|
+
return i === void 0 && (i = d(
|
|
32
|
+
`@layer ${c} { .${c} { content: "${$}"!important; } }`,
|
|
33
|
+
(t) => {
|
|
34
|
+
t.className = c;
|
|
35
|
+
}
|
|
36
|
+
)), i;
|
|
37
|
+
}
|
|
38
|
+
let l;
|
|
39
|
+
function M() {
|
|
40
|
+
return l === void 0 && (l = d(
|
|
41
|
+
`:where(.${c}) { content: "${$}"!important; }`,
|
|
42
|
+
(t) => {
|
|
43
|
+
t.className = c;
|
|
44
|
+
}
|
|
45
|
+
)), l;
|
|
46
|
+
}
|
|
47
|
+
let m;
|
|
48
|
+
function V() {
|
|
49
|
+
return m === void 0 && (m = d(
|
|
50
|
+
`.${c} { inset-block: 93px !important; }`,
|
|
51
|
+
(t) => {
|
|
52
|
+
t.className = c;
|
|
53
|
+
},
|
|
54
|
+
(t) => getComputedStyle(t).bottom === "93px"
|
|
55
|
+
)), m;
|
|
56
|
+
}
|
|
57
|
+
const W = b();
|
|
58
|
+
function D(t) {
|
|
59
|
+
return typeof t == "number" ? `${t}px` : t;
|
|
60
|
+
}
|
|
61
|
+
const _ = (t, r = "") => `--${r ? `${r}-` : ""}${t}`.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g, "$1-$2").replace(/([a-z])([A-Z0-9])/g, "$1-$2").toLowerCase();
|
|
62
|
+
function H(t, r, e, s = {}, n = !1) {
|
|
63
|
+
if (n)
|
|
64
|
+
return t;
|
|
65
|
+
const o = {
|
|
66
|
+
...s,
|
|
67
|
+
[v]: r,
|
|
68
|
+
[O]: e
|
|
69
|
+
};
|
|
70
|
+
return `<style ${Object.keys(o).map((p) => {
|
|
71
|
+
const u = o[p];
|
|
72
|
+
return u ? `${p}="${u}"` : null;
|
|
73
|
+
}).filter((p) => p).join(" ")}>${t}</style>`;
|
|
74
|
+
}
|
|
75
|
+
const x = (t, r, e) => Object.keys(t).length ? `.${r}${e != null && e.scope ? `.${e.scope}` : ""}{${Object.entries(t).map(([s, n]) => `${s}:${n};`).join("")}}` : "", P = (t, r, e) => {
|
|
76
|
+
const s = {}, n = {};
|
|
77
|
+
return Object.entries(t).forEach(([o, a]) => {
|
|
78
|
+
var p, u, S;
|
|
79
|
+
if ((p = e == null ? void 0 : e.preserve) != null && p[o])
|
|
80
|
+
n[o] = a;
|
|
81
|
+
else if ((typeof a == "string" || typeof a == "number") && !((u = e == null ? void 0 : e.ignore) != null && u[o])) {
|
|
82
|
+
const f = _(o, e == null ? void 0 : e.prefix);
|
|
83
|
+
s[f] = typeof a == "number" && !((S = e == null ? void 0 : e.unitless) != null && S[o]) ? `${a}px` : String(a), n[o] = `var(${f})`;
|
|
84
|
+
}
|
|
85
|
+
}), [n, x(s, r, { scope: e == null ? void 0 : e.scope })];
|
|
86
|
+
};
|
|
87
|
+
export {
|
|
88
|
+
Z as ATTR_CACHE_PATH,
|
|
89
|
+
O as ATTR_MARK,
|
|
90
|
+
v as ATTR_TOKEN,
|
|
91
|
+
h as flattenToken,
|
|
92
|
+
W as isClientSide,
|
|
93
|
+
x as serializeCSSVar,
|
|
94
|
+
K as supportLayer,
|
|
95
|
+
V as supportLogicProps,
|
|
96
|
+
M as supportWhere,
|
|
97
|
+
H as toStyleStr,
|
|
98
|
+
_ as token2CSSVar,
|
|
99
|
+
k as token2key,
|
|
100
|
+
P as transformToken,
|
|
101
|
+
D as unit
|
|
102
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var n = (a, t, e) => t in a ? i(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
|
|
3
|
+
var c = (a, t, e) => n(a, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { computed as r } from "vue";
|
|
5
|
+
const h = 1e3 * 60 * 10;
|
|
6
|
+
class p {
|
|
7
|
+
constructor() {
|
|
8
|
+
c(this, "map", /* @__PURE__ */ new Map());
|
|
9
|
+
// Use WeakMap to avoid memory leak
|
|
10
|
+
c(this, "objectIDMap", /* @__PURE__ */ new WeakMap());
|
|
11
|
+
c(this, "nextID", 0);
|
|
12
|
+
c(this, "lastAccessBeat", /* @__PURE__ */ new Map());
|
|
13
|
+
// We will clean up the cache when reach the limit
|
|
14
|
+
c(this, "accessBeat", 0);
|
|
15
|
+
}
|
|
16
|
+
set(t, e) {
|
|
17
|
+
this.clear();
|
|
18
|
+
const s = this.getCompositeKey(t);
|
|
19
|
+
this.map.set(s, e), this.lastAccessBeat.set(s, Date.now());
|
|
20
|
+
}
|
|
21
|
+
get(t) {
|
|
22
|
+
const e = this.getCompositeKey(t), s = this.map.get(e);
|
|
23
|
+
return this.lastAccessBeat.set(e, Date.now()), this.accessBeat += 1, s;
|
|
24
|
+
}
|
|
25
|
+
getCompositeKey(t) {
|
|
26
|
+
return t.map((s) => s && typeof s == "object" ? `obj_${this.getObjectID(s)}` : `${typeof s}_${s}`).join("|");
|
|
27
|
+
}
|
|
28
|
+
getObjectID(t) {
|
|
29
|
+
if (this.objectIDMap.has(t))
|
|
30
|
+
return this.objectIDMap.get(t);
|
|
31
|
+
const e = this.nextID;
|
|
32
|
+
return this.objectIDMap.set(t, e), this.nextID += 1, e;
|
|
33
|
+
}
|
|
34
|
+
clear() {
|
|
35
|
+
if (this.accessBeat > 1e4) {
|
|
36
|
+
const t = Date.now();
|
|
37
|
+
this.lastAccessBeat.forEach((e, s) => {
|
|
38
|
+
t - e > h && (this.map.delete(s), this.lastAccessBeat.delete(s));
|
|
39
|
+
}), this.accessBeat = 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const o = new p();
|
|
44
|
+
function l(a, t) {
|
|
45
|
+
return r(() => {
|
|
46
|
+
const e = o.get(t);
|
|
47
|
+
if (e)
|
|
48
|
+
return e;
|
|
49
|
+
const s = a();
|
|
50
|
+
return o.set(t, s), s;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
l as default
|
|
55
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as a } from "./util/genStyleUtils.mjs";
|
|
2
|
+
import { default as o } from "./util/calc/index.mjs";
|
|
3
|
+
import { merge as f, statistic as l, default as i } from "./util/statistic.mjs";
|
|
4
|
+
export {
|
|
5
|
+
o as genCalc,
|
|
6
|
+
a as genStyleUtils,
|
|
7
|
+
f as mergeToken,
|
|
8
|
+
l as statistic,
|
|
9
|
+
i as statisticToken
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import o from "./calculator.mjs";
|
|
2
|
+
const u = "CALC_UNIT", f = new RegExp(u, "g");
|
|
3
|
+
function l(r) {
|
|
4
|
+
return typeof r == "number" ? `${r}${u}` : r;
|
|
5
|
+
}
|
|
6
|
+
class e extends o {
|
|
7
|
+
constructor(t, i) {
|
|
8
|
+
super(), this.result = "";
|
|
9
|
+
const s = typeof t;
|
|
10
|
+
this.unitlessCssVar = i, t instanceof e ? this.result = `(${t.result})` : s === "number" ? this.result = l(t) : s === "string" && (this.result = t);
|
|
11
|
+
}
|
|
12
|
+
add(t) {
|
|
13
|
+
return t instanceof e ? this.result = `${this.result} + ${t.getResult()}` : (typeof t == "number" || typeof t == "string") && (this.result = `${this.result} + ${l(t)}`), this.lowPriority = !0, this;
|
|
14
|
+
}
|
|
15
|
+
sub(t) {
|
|
16
|
+
return t instanceof e ? this.result = `${this.result} - ${t.getResult()}` : (typeof t == "number" || typeof t == "string") && (this.result = `${this.result} - ${l(t)}`), this.lowPriority = !0, this;
|
|
17
|
+
}
|
|
18
|
+
mul(t) {
|
|
19
|
+
return this.lowPriority && (this.result = `(${this.result})`), t instanceof e ? this.result = `${this.result} * ${t.getResult(!0)}` : (typeof t == "number" || typeof t == "string") && (this.result = `${this.result} * ${t}`), this.lowPriority = !1, this;
|
|
20
|
+
}
|
|
21
|
+
div(t) {
|
|
22
|
+
return this.lowPriority && (this.result = `(${this.result})`), t instanceof e ? this.result = `${this.result} / ${t.getResult(!0)}` : (typeof t == "number" || typeof t == "string") && (this.result = `${this.result} / ${t}`), this.lowPriority = !1, this;
|
|
23
|
+
}
|
|
24
|
+
getResult(t) {
|
|
25
|
+
return this.lowPriority || t ? `(${this.result})` : this.result;
|
|
26
|
+
}
|
|
27
|
+
equal(t) {
|
|
28
|
+
const { unit: i } = t || {};
|
|
29
|
+
let s = !0;
|
|
30
|
+
return typeof i == "boolean" ? s = i : Array.from(this.unitlessCssVar).some((h) => this.result.includes(h)) && (s = !1), this.result = this.result.replace(f, s ? "px" : ""), typeof this.lowPriority < "u" ? `calc(${this.result})` : this.result;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
e as default
|
|
35
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import s from "./calculator.mjs";
|
|
2
|
+
class t extends s {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
super(), this.result = 0, e instanceof t ? this.result = e.result : typeof e == "number" && (this.result = e);
|
|
5
|
+
}
|
|
6
|
+
add(e) {
|
|
7
|
+
return e instanceof t ? this.result += e.result : typeof e == "number" && (this.result += e), this;
|
|
8
|
+
}
|
|
9
|
+
sub(e) {
|
|
10
|
+
return e instanceof t ? this.result -= e.result : typeof e == "number" && (this.result -= e), this;
|
|
11
|
+
}
|
|
12
|
+
mul(e) {
|
|
13
|
+
return e instanceof t ? this.result *= e.result : typeof e == "number" && (this.result *= e), this;
|
|
14
|
+
}
|
|
15
|
+
div(e) {
|
|
16
|
+
return e instanceof t ? this.result /= e.result : typeof e == "number" && (this.result /= e), this;
|
|
17
|
+
}
|
|
18
|
+
equal() {
|
|
19
|
+
return this.result;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
t as default
|
|
24
|
+
};
|