@vunk/plus 1.13.1 → 1.15.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/ant/_util/BaseInput.d.ts +56 -0
- package/ant/_util/BaseInputInner.d.ts +65 -0
- package/ant/_util/BaseMixin.d.ts +7 -0
- package/ant/_util/EventInterface.d.ts +18 -0
- package/ant/_util/KeyCode.d.ts +436 -0
- package/ant/_util/Portal.d.ts +14 -0
- package/ant/_util/PortalWrapper.d.ts +41 -0
- package/ant/_util/canUseDom.d.ts +2 -0
- package/ant/_util/classNames.d.ts +2 -0
- package/ant/_util/collapseMotion.d.ts +3 -0
- package/ant/_util/colors.d.ts +13 -0
- package/ant/_util/copy-to-clipboard/index.d.ts +8 -0
- package/ant/_util/copy-to-clipboard/toggle-selection.d.ts +2 -0
- package/ant/_util/createContext.d.ts +5 -0
- package/ant/_util/createRef.d.ts +10 -0
- package/ant/_util/cssinjs/Cache.d.ts +11 -0
- package/ant/_util/cssinjs/Keyframes.d.ts +9 -0
- package/ant/_util/cssinjs/StyleContext.d.ts +508 -0
- package/ant/_util/cssinjs/hooks/useCacheToken.d.ts +40 -0
- package/ant/_util/cssinjs/hooks/useGlobalCache.d.ts +3 -0
- package/ant/_util/cssinjs/hooks/useHMR.d.ts +3 -0
- package/ant/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.d.ts +14 -0
- package/ant/_util/cssinjs/hooks/useStyleRegister/index.d.ts +68 -0
- package/ant/_util/cssinjs/index.d.ts +195 -0
- package/ant/_util/cssinjs/linters/contentQuotesLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/hashedAnimationLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/index.d.ts +6 -0
- package/ant/_util/cssinjs/linters/interface.d.ts +8 -0
- package/ant/_util/cssinjs/linters/legacyNotSelectorLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/logicalPropertiesLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/parentSelectorLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/utils.d.ts +2 -0
- package/ant/_util/cssinjs/theme/Theme.d.ts +11 -0
- package/ant/_util/cssinjs/theme/ThemeCache.d.ts +20 -0
- package/ant/_util/cssinjs/theme/createTheme.d.ts +6 -0
- package/ant/_util/cssinjs/theme/index.d.ts +4 -0
- package/ant/_util/cssinjs/theme/interface.d.ts +2 -0
- package/ant/_util/cssinjs/transformers/interface.d.ts +4 -0
- package/ant/_util/cssinjs/transformers/legacyLogicalProperties.d.ts +12 -0
- package/ant/_util/cssinjs/transformers/px2rem.d.ts +20 -0
- package/ant/_util/cssinjs/util.d.ts +8 -0
- package/ant/_util/firstNotUndefined.d.ts +2 -0
- package/ant/_util/gapSize.d.ts +3 -0
- package/ant/_util/getScrollBarSize.d.ts +5 -0
- package/ant/_util/hooks/_vueuse/resolveUnref.d.ts +5 -0
- package/ant/_util/hooks/_vueuse/types.d.ts +114 -0
- package/ant/_util/hooks/_vueuse/unrefElement.d.ts +13 -0
- package/ant/_util/hooks/useBreakpoint.d.ts +4 -0
- package/ant/_util/hooks/useFlexGapSupport.d.ts +2 -0
- package/ant/_util/hooks/useMergedState.d.ts +7 -0
- package/ant/_util/hooks/useRefs.d.ts +7 -0
- package/ant/_util/hooks/useScrollLocker.d.ts +6 -0
- package/ant/_util/hooks/useState.d.ts +2 -0
- package/ant/_util/isValid.d.ts +2 -0
- package/ant/_util/omit.d.ts +2 -0
- package/ant/_util/pickAttrs.d.ts +11 -0
- package/ant/_util/placements.d.ts +65 -0
- package/ant/_util/props-util/index.d.ts +33 -0
- package/ant/_util/props-util/initDefaultProps.d.ts +6 -0
- package/ant/_util/raf.d.ts +5 -0
- package/ant/_util/responsiveObserve.d.ts +21 -0
- package/ant/_util/setStyle.d.ts +12 -0
- package/ant/_util/statusUtils.d.ts +6 -0
- package/ant/_util/styleChecker.d.ts +4 -0
- package/ant/_util/transButton.d.ts +34 -0
- package/ant/_util/transition.d.ts +18 -0
- package/ant/_util/type.d.ts +62 -0
- package/ant/_util/util.d.ts +18 -0
- package/ant/_util/vnode.d.ts +11 -0
- package/ant/_util/vue-types/index.d.ts +12 -0
- package/ant/_util/warning.d.ts +6 -0
- package/ant/_util/wave/WaveEffect.d.ts +6 -0
- package/ant/_util/wave/index.d.ts +13 -0
- package/ant/_util/wave/style.d.ts +6 -0
- package/ant/_util/wave/useWave.d.ts +4 -0
- package/ant/_util/wave/util.d.ts +3 -0
- package/ant/button/LoadingIcon.d.ts +12 -0
- package/ant/button/button-group.d.ts +33 -0
- package/ant/button/button.d.ts +112 -0
- package/ant/button/buttonTypes.d.ts +58 -0
- package/ant/button/index.d.ts +12 -0
- package/ant/button/style/group.d.ts +4 -0
- package/ant/button/style/index.d.ts +10 -0
- package/ant/calendar/style/index.d.ts +21 -0
- package/ant/config-provider/DisabledContext.d.ts +4 -0
- package/ant/config-provider/SizeContext.d.ts +4 -0
- package/ant/config-provider/context.d.ts +208 -0
- package/ant/config-provider/cssVariables.d.ts +3 -0
- package/ant/config-provider/hooks/useConfigInject.d.ts +37 -0
- package/ant/config-provider/hooks/useTheme.d.ts +3 -0
- package/ant/config-provider/index.d.ts +290 -0
- package/ant/config-provider/renderEmpty.d.ts +8 -0
- package/ant/config-provider/style/index.d.ts +3 -0
- package/ant/date-picker/style/index.d.ts +35 -0
- package/ant/empty/empty.d.ts +2 -0
- package/ant/empty/index.d.ts +86 -0
- package/ant/empty/simple.d.ts +2 -0
- package/ant/empty/style/index.d.ts +5 -0
- package/ant/flex/index.d.ts +142 -0
- package/ant/flex/interface.d.ts +36 -0
- package/ant/flex/style/index.d.ts +29 -0
- package/ant/flex/utils.d.ts +6 -0
- package/ant/form/ErrorList.d.ts +21 -0
- package/ant/form/Form.d.ts +772 -0
- package/ant/form/FormItem.d.ts +191 -0
- package/ant/form/FormItemContext.d.ts +32 -0
- package/ant/form/FormItemInput.d.ts +44 -0
- package/ant/form/FormItemLabel.d.ts +19 -0
- package/ant/form/context.d.ts +35 -0
- package/ant/form/index.d.ts +16 -0
- package/ant/form/interface.d.ts +171 -0
- package/ant/form/style/explain.d.ts +4 -0
- package/ant/form/style/index.d.ts +7 -0
- package/ant/form/useForm.d.ts +45 -0
- package/ant/form/utils/asyncUtil.d.ts +2 -0
- package/ant/form/utils/messages.d.ts +47 -0
- package/ant/form/utils/typeUtil.d.ts +1 -0
- package/ant/form/utils/useDebounce.d.ts +2 -0
- package/ant/form/utils/validateUtil.d.ts +6 -0
- package/ant/form/utils/valueUtil.d.ts +15 -0
- package/ant/grid/Col.d.ts +116 -0
- package/ant/grid/Row.d.ts +77 -0
- package/ant/grid/context.d.ts +11 -0
- package/ant/grid/index.d.ts +10 -0
- package/ant/grid/style/index.d.ts +2 -0
- package/ant/image/PreviewGroup.d.ts +37 -0
- package/ant/image/index.d.ts +71 -0
- package/ant/image/style/index.d.ts +21 -0
- package/ant/index.cjs +203 -0
- package/ant/index.d.ts +27 -0
- package/ant/index.mjs +20993 -0
- package/ant/input/ClearableLabeledInput.d.ts +151 -0
- package/ant/input/Group.d.ts +24 -0
- package/ant/input/Input.d.ts +191 -0
- package/ant/input/Password.d.ts +217 -0
- package/ant/input/ResizableTextArea.d.ts +215 -0
- package/ant/input/Search.d.ts +195 -0
- package/ant/input/TextArea.d.ts +217 -0
- package/ant/input/calculateNodeHeight.d.ts +9 -0
- package/ant/input/index.d.ts +15 -0
- package/ant/input/inputProps.d.ts +207 -0
- package/ant/input/style/index.d.ts +30 -0
- package/ant/input/util.d.ts +2 -0
- package/ant/locale/LocaleReceiver.d.ts +35 -0
- package/ant/locale/en_US.d.ts +3 -0
- package/ant/locale/index.d.ts +91 -0
- package/ant/locale-provider/LocaleReceiver.d.ts +3 -0
- package/ant/locale-provider/index.d.ts +3 -0
- package/ant/modal/locale.d.ts +7 -0
- package/ant/modal/style/index.d.ts +32 -0
- package/ant/progress/Circle.d.ts +168 -0
- package/ant/progress/Line.d.ts +205 -0
- package/ant/progress/Steps.d.ts +168 -0
- package/ant/progress/index.d.ts +204 -0
- package/ant/progress/progress.d.ts +117 -0
- package/ant/progress/props.d.ts +79 -0
- package/ant/progress/style/index.d.ts +4 -0
- package/ant/progress/utils.d.ts +13 -0
- package/ant/space/Compact.d.ts +119 -0
- package/ant/space/style/compact.d.ts +8 -0
- package/ant/space/style/index.d.ts +5 -0
- package/ant/style/compact-item-vertical.d.ts +4 -0
- package/ant/style/compact-item.d.ts +18 -0
- package/ant/style/index.d.ts +13 -0
- package/ant/style/motion/collapse.d.ts +4 -0
- package/ant/style/motion/fade.d.ts +7 -0
- package/ant/style/motion/index.d.ts +6 -0
- package/ant/style/motion/motion.d.ts +2 -0
- package/ant/style/motion/move.d.ts +15 -0
- package/ant/style/motion/slide.d.ts +15 -0
- package/ant/style/motion/zoom.d.ts +19 -0
- package/ant/style/operationUnit.d.ts +3 -0
- package/ant/style/placementArrow.d.ts +19 -0
- package/ant/style/presetColor.d.ts +16 -0
- package/ant/style/roundedArrow.d.ts +2 -0
- package/ant/theme/index.d.ts +23 -0
- package/ant/theme/interface/alias.d.ts +115 -0
- package/ant/theme/interface/components.d.ts +32 -0
- package/ant/theme/interface/index.d.ts +13 -0
- package/ant/theme/interface/maps/colors.d.ts +350 -0
- package/ant/theme/interface/maps/font.d.ts +44 -0
- package/ant/theme/interface/maps/index.d.ts +17 -0
- package/ant/theme/interface/maps/size.d.ts +63 -0
- package/ant/theme/interface/maps/style.d.ts +37 -0
- package/ant/theme/interface/presetColors.d.ts +8 -0
- package/ant/theme/interface/seeds.d.ts +163 -0
- package/ant/theme/internal.d.ts +49 -0
- package/ant/theme/themes/ColorMap.d.ts +15 -0
- package/ant/theme/themes/compact/genCompactSizeMapToken.d.ts +2 -0
- package/ant/theme/themes/compact/index.d.ts +4 -0
- package/ant/theme/themes/dark/colorAlgorithm.d.ts +2 -0
- package/ant/theme/themes/dark/colors.d.ts +3 -0
- package/ant/theme/themes/dark/index.d.ts +4 -0
- package/ant/theme/themes/default/colorAlgorithm.d.ts +2 -0
- package/ant/theme/themes/default/colors.d.ts +3 -0
- package/ant/theme/themes/default/index.d.ts +2 -0
- package/ant/theme/themes/seed.d.ts +4 -0
- package/ant/theme/themes/shared/genColorMapToken.d.ts +8 -0
- package/ant/theme/themes/shared/genCommonMapToken.d.ts +2 -0
- package/ant/theme/themes/shared/genControlHeight.d.ts +3 -0
- package/ant/theme/themes/shared/genFontMapToken.d.ts +3 -0
- package/ant/theme/themes/shared/genFontSizes.d.ts +4 -0
- package/ant/theme/themes/shared/genRadius.d.ts +3 -0
- package/ant/theme/themes/shared/genSizeMapToken.d.ts +2 -0
- package/ant/theme/util/alias.d.ts +12 -0
- package/ant/theme/util/genComponentStyleHook.d.ts +26 -0
- package/ant/theme/util/getAlphaColor.d.ts +2 -0
- package/ant/theme/util/statistic.d.ts +18 -0
- package/ant/tooltip/Tooltip.d.ts +228 -0
- package/ant/tooltip/abstractTooltipProps.d.ts +73 -0
- package/ant/tooltip/index.d.ts +245 -0
- package/ant/tooltip/style/index.d.ts +8 -0
- package/ant/tooltip/util.d.ts +6 -0
- package/ant/typography/Base.d.ts +200 -0
- package/ant/typography/Editable.d.ts +49 -0
- package/ant/typography/Link.d.ts +51 -0
- package/ant/typography/Paragraph.d.ts +51 -0
- package/ant/typography/Text.d.ts +51 -0
- package/ant/typography/Title.d.ts +48 -0
- package/ant/typography/Typography.d.ts +24 -0
- package/ant/typography/index.d.ts +17 -0
- package/ant/typography/style/index.d.ts +9 -0
- package/ant/typography/style/mixins.d.ts +9 -0
- package/ant/typography/util.d.ts +11 -0
- package/ant/upload/Dragger.d.ts +393 -0
- package/ant/upload/Upload.d.ts +396 -0
- package/ant/upload/UploadList/ListItem.d.ts +339 -0
- package/ant/upload/UploadList/index.d.ts +232 -0
- package/ant/upload/index.d.ts +1460 -0
- package/ant/upload/interface.d.ts +355 -0
- package/ant/upload/style/dragger.d.ts +4 -0
- package/ant/upload/style/index.d.ts +10 -0
- package/ant/upload/style/list.d.ts +4 -0
- package/ant/upload/style/motion.d.ts +4 -0
- package/ant/upload/style/picture.d.ts +5 -0
- package/ant/upload/style/rtl.d.ts +4 -0
- package/ant/upload/utils.d.ts +8 -0
- package/ant/vc-align/Align.d.ts +45 -0
- package/ant/vc-align/hooks/useBuffer.d.ts +3 -0
- package/ant/vc-align/interface.d.ts +56 -0
- package/ant/vc-align/util.d.ts +4 -0
- package/ant/vc-dialog/Content.d.ts +181 -0
- package/ant/vc-dialog/Dialog.d.ts +169 -0
- package/ant/vc-dialog/DialogWrap.d.ts +165 -0
- package/ant/vc-dialog/IDialogPropTypes.d.ts +79 -0
- package/ant/vc-dialog/Mask.d.ts +14 -0
- package/ant/vc-dialog/index.d.ts +4 -0
- package/ant/vc-dialog/util.d.ts +6 -0
- package/ant/vc-image/index.d.ts +3 -0
- package/ant/vc-image/src/Image.d.ts +114 -0
- package/ant/vc-image/src/Preview.d.ts +292 -0
- package/ant/vc-image/src/PreviewGroup.d.ts +79 -0
- package/ant/vc-image/src/getFixScaleEleTransPosition.d.ts +16 -0
- package/ant/vc-image/src/hooks/useFrameSetState.d.ts +3 -0
- package/ant/vc-input/BaseInput.d.ts +97 -0
- package/ant/vc-input/Input.d.ts +192 -0
- package/ant/vc-input/inputProps.d.ts +169 -0
- package/ant/vc-input/utils/commonUtils.d.ts +8 -0
- package/ant/vc-progress/index.d.ts +5 -0
- package/ant/vc-progress/src/Circle.d.ts +41 -0
- package/ant/vc-progress/src/Line.d.ts +40 -0
- package/ant/vc-progress/src/common.d.ts +5 -0
- package/ant/vc-progress/src/index.d.ts +86 -0
- package/ant/vc-progress/src/types.d.ts +25 -0
- package/ant/vc-resize-observer/index.d.ts +25 -0
- package/ant/vc-tooltip/index.d.ts +2 -0
- package/ant/vc-tooltip/src/Content.d.ts +17 -0
- package/ant/vc-tooltip/src/Tooltip.d.ts +141 -0
- package/ant/vc-tooltip/src/placements.d.ts +111 -0
- package/ant/vc-trigger/Popup/Mask.d.ts +14 -0
- package/ant/vc-trigger/Popup/MobilePopupInner.d.ts +103 -0
- package/ant/vc-trigger/Popup/PopupInner.d.ts +98 -0
- package/ant/vc-trigger/Popup/index.d.ts +104 -0
- package/ant/vc-trigger/Popup/interface.d.ts +151 -0
- package/ant/vc-trigger/Popup/useStretchStyle.d.ts +4 -0
- package/ant/vc-trigger/Popup/useVisibleStatus.d.ts +15 -0
- package/ant/vc-trigger/Trigger.d.ts +282 -0
- package/ant/vc-trigger/context.d.ts +11 -0
- package/ant/vc-trigger/index.d.ts +6 -0
- package/ant/vc-trigger/interface.d.ts +175 -0
- package/ant/vc-trigger/utils/alignUtil.d.ts +3 -0
- package/ant/vc-trigger/utils/motionUtil.d.ts +12 -0
- package/ant/vc-upload/AjaxUploader.d.ts +108 -0
- package/ant/vc-upload/Upload.d.ts +108 -0
- package/ant/vc-upload/attr-accept.d.ts +3 -0
- package/ant/vc-upload/index.d.ts +4 -0
- package/ant/vc-upload/interface.d.ts +79 -0
- package/ant/vc-upload/request.d.ts +4 -0
- package/ant/vc-upload/traverseFileTree.d.ts +14 -0
- package/ant/vc-upload/uid.d.ts +1 -0
- package/ant/vc-util/Dom/contains.d.ts +1 -0
- package/ant/vc-util/Dom/css.d.ts +22 -0
- package/ant/vc-util/Dom/dynamicCSS.d.ts +20 -0
- package/ant/vc-util/Dom/isVisible.d.ts +2 -0
- package/ant/vc-util/Dom/scrollLocker.d.ts +12 -0
- package/ant/vc-util/devWarning.d.ts +4 -0
- package/ant/vc-util/get.d.ts +1 -0
- package/ant/vc-util/set.d.ts +1 -0
- package/ant/vc-util/warning.d.ts +7 -0
- package/ant/version/index.d.ts +2 -0
- package/antx/_util/__tests__/warning.test.d.ts +1 -0
- package/antx/_util/cssinjs/Cache.d.ts +11 -0
- package/antx/_util/cssinjs/Keyframes.d.ts +9 -0
- package/antx/_util/cssinjs/StyleContext.d.ts +508 -0
- package/antx/_util/cssinjs/hooks/useCSSVarRegister.d.ts +20 -0
- package/antx/_util/cssinjs/hooks/useCacheToken.d.ts +40 -0
- package/antx/_util/cssinjs/hooks/useGlobalCache.d.ts +6 -0
- package/antx/_util/cssinjs/hooks/useHMR.d.ts +3 -0
- package/antx/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.d.ts +14 -0
- package/antx/_util/cssinjs/hooks/useStyleRegister/index.d.ts +69 -0
- package/antx/_util/cssinjs/index.d.ts +197 -0
- package/antx/_util/cssinjs/linters/contentQuotesLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/hashedAnimationLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/index.d.ts +6 -0
- package/antx/_util/cssinjs/linters/interface.d.ts +8 -0
- package/antx/_util/cssinjs/linters/legacyNotSelectorLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/logicalPropertiesLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/parentSelectorLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/utils.d.ts +2 -0
- package/antx/_util/cssinjs/theme/Theme.d.ts +11 -0
- package/antx/_util/cssinjs/theme/ThemeCache.d.ts +20 -0
- package/antx/_util/cssinjs/theme/createTheme.d.ts +6 -0
- package/antx/_util/cssinjs/theme/index.d.ts +4 -0
- package/antx/_util/cssinjs/theme/interface.d.ts +2 -0
- package/antx/_util/cssinjs/transformers/interface.d.ts +4 -0
- package/antx/_util/cssinjs/transformers/legacyLogicalProperties.d.ts +12 -0
- package/antx/_util/cssinjs/transformers/px2rem.d.ts +20 -0
- package/antx/_util/cssinjs/util.d.ts +28 -0
- package/antx/_util/cssinjs-utils/_util/hooks/useUniqueMemo.d.ts +5 -0
- package/antx/_util/cssinjs-utils/hooks/useCSP.d.ts +8 -0
- package/antx/_util/cssinjs-utils/hooks/usePrefix.d.ts +11 -0
- package/antx/_util/cssinjs-utils/hooks/useToken.d.ts +21 -0
- package/antx/_util/cssinjs-utils/index.d.ts +6 -0
- package/antx/_util/cssinjs-utils/interface/components.d.ts +10 -0
- package/antx/_util/cssinjs-utils/interface/index.d.ts +3 -0
- package/antx/_util/cssinjs-utils/util/calc/CSSCalculator.d.ts +15 -0
- package/antx/_util/cssinjs-utils/util/calc/NumCalculator.d.ts +11 -0
- package/antx/_util/cssinjs-utils/util/calc/calculator.d.ts +30 -0
- package/antx/_util/cssinjs-utils/util/calc/index.d.ts +5 -0
- package/antx/_util/cssinjs-utils/util/genStyleUtils.d.ts +116 -0
- package/antx/_util/cssinjs-utils/util/getCompVarPrefix.d.ts +2 -0
- package/antx/_util/cssinjs-utils/util/getComponentToken.d.ts +9 -0
- package/antx/_util/cssinjs-utils/util/getDefaultComponentToken.d.ts +5 -0
- package/antx/_util/cssinjs-utils/util/maxmin.d.ts +8 -0
- package/antx/_util/cssinjs-utils/util/statistic.d.ts +20 -0
- package/antx/_util/getScrollBarSize.d.ts +5 -0
- package/antx/_util/getValue.d.ts +2 -0
- package/antx/_util/hooks/use-event-callback.d.ts +1 -0
- package/antx/_util/hooks/use-state.d.ts +2 -0
- package/antx/_util/hooks/use-x-component-config.d.ts +4 -0
- package/antx/_util/hooks/useMergedState.d.ts +7 -0
- package/antx/_util/motion.d.ts +3 -0
- package/antx/_util/pick-attrs.d.ts +11 -0
- package/antx/_util/setStyle.d.ts +12 -0
- package/antx/_util/transition.d.ts +29 -0
- package/antx/_util/type.d.ts +62 -0
- package/antx/_util/warning.d.ts +47 -0
- package/antx/attachments/Attachments.vue.d.ts +16 -0
- package/antx/attachments/DropArea.vue.d.ts +4 -0
- package/antx/attachments/FileList/AudioIcon.vue.d.ts +3 -0
- package/antx/attachments/FileList/FileList.vue.d.ts +4 -0
- package/antx/attachments/FileList/FileListCard.vue.d.ts +6 -0
- package/antx/attachments/FileList/Progress.vue.d.ts +103 -0
- package/antx/attachments/FileList/VideoIcon.vue.d.ts +3 -0
- package/antx/attachments/FileList/index.d.ts +3 -0
- package/antx/attachments/PlaceholderUploader.vue.d.ts +6 -0
- package/antx/attachments/SilentUploader.vue.d.ts +6 -0
- package/antx/attachments/constants.d.ts +9 -0
- package/antx/attachments/context.d.ts +21 -0
- package/antx/attachments/index.d.ts +26 -0
- package/antx/attachments/interface.d.ts +130 -0
- package/antx/attachments/style/fileCard.d.ts +4 -0
- package/antx/attachments/style/index.d.ts +9 -0
- package/antx/attachments/util.d.ts +3 -0
- package/antx/components.d.ts +4 -0
- package/antx/hooks.d.ts +8 -0
- package/antx/index.cjs +78 -0
- package/antx/index.d.ts +10 -0
- package/antx/index.mjs +6015 -0
- package/antx/sender/Sender.vue.d.ts +48 -0
- package/antx/sender/SenderHeader.vue.d.ts +13 -0
- package/antx/sender/StopLoading.vue.d.ts +6 -0
- package/antx/sender/components/ActionButton/context.d.ts +21 -0
- package/antx/sender/components/ActionButton/index.vue.d.ts +13 -0
- package/antx/sender/components/ClearButton.vue.d.ts +4 -0
- package/antx/sender/components/LoadingButton.vue.d.ts +4 -0
- package/antx/sender/components/SendButton.vue.d.ts +4 -0
- package/antx/sender/components/SpeechButton/RecordingIcon.vue.d.ts +4 -0
- package/antx/sender/components/SpeechButton/index.vue.d.ts +4 -0
- package/antx/sender/context.d.ts +21 -0
- package/antx/sender/index.d.ts +82 -0
- package/antx/sender/interface.d.ts +145 -0
- package/antx/sender/style/header.d.ts +4 -0
- package/antx/sender/style/index.d.ts +9 -0
- package/antx/sender/useSpeech.d.ts +16 -0
- package/antx/theme/components.d.ts +8 -0
- package/antx/theme/cssinjs-utils.d.ts +14 -0
- package/antx/theme/genStyleUtils.d.ts +27 -0
- package/antx/theme/index.d.ts +2 -0
- package/antx/theme/patch-antd.d.ts +28 -0
- package/antx/theme/useToken.d.ts +19 -0
- package/antx/transition-collapse/TransitionCollapse.vue.d.ts +17 -0
- package/antx/transition-collapse/index.d.ts +6 -0
- package/antx/transition-collapse/style/index.d.ts +6 -0
- package/antx/type-utility.d.ts +1 -0
- package/antx/use-x-agent/index.d.ts +4 -0
- package/antx/use-x-agent/use-x-agent.d.ts +34 -0
- package/antx/use-x-chat/index.d.ts +4 -0
- package/antx/use-x-chat/use-x-chat.d.ts +54 -0
- package/antx/use-x-chat/useSyncState.d.ts +4 -0
- package/antx/version/index.d.ts +2 -0
- package/antx/x-provider/context.d.ts +84 -0
- package/antx/x-provider/hooks/use-x-provider-context.d.ts +9 -0
- package/antx/x-provider/index.d.ts +5 -0
- package/antx/x-provider/index.vue.d.ts +13 -0
- package/antx/x-request/index.d.ts +6 -0
- package/antx/x-request/x-fetch.d.ts +18 -0
- package/antx/x-request/x-request.d.ts +89 -0
- package/antx/x-stream/index.d.ts +4 -0
- package/antx/x-stream/x-stream.d.ts +32 -0
- package/components/agent-chat-provider/index.cjs +1 -1
- package/components/agent-chat-provider/index.mjs +1 -3
- package/components/agent-chat-provider/src/index.vue.d.ts +3 -3
- package/components/agent-chat-provider/src/types.d.ts +1 -1
- package/components/agent-chat-provider/src/use.d.ts +2 -2
- package/components/avatar/index.mjs +2 -2
- package/components/avatar/src/index.vue.d.ts +2 -121
- package/components/broadcasting-markdown/index.cjs +3 -3
- package/components/broadcasting-markdown/index.mjs +2 -5
- package/components/broadcasting-markdown/src/ctx.d.ts +2 -2
- package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +6 -6
- package/components/broadcasting-markdown/src/index.vue.d.ts +33 -33
- package/components/broadcasting-markdown/src/paragraph.vue.d.ts +1 -1
- package/components/broadcasting-markdown/src/use.d.ts +1 -1
- package/components/bubble-list/index.cjs +1 -1
- package/components/bubble-list/index.mjs +5 -5
- package/components/bubble-list/src/core/index.vue.d.ts +7 -7
- package/components/bubble-list/src/ctx.d.ts +2 -2
- package/components/bubble-list/src/index.vue.d.ts +5 -4
- package/components/bubble-templates/index.mjs +2 -2
- package/components/chat-independent/index.mjs +4 -4
- package/components/chat-independent/src/index.vue.d.ts +1 -1
- package/components/components.css +1 -1
- package/components/drawer/index.mjs +1 -1
- package/components/drawer/src/ctx.d.ts +37 -31
- package/components/drawer/src/index.vue.d.ts +87 -77
- package/components/file-viewer/index.cjs +1 -0
- package/components/file-viewer/index.d.ts +4 -0
- package/components/file-viewer/index.mjs +130 -0
- package/components/file-viewer/src/ctx.d.ts +69 -0
- package/components/file-viewer/src/index.vue.d.ts +108 -0
- package/components/file-viewer/src/types.d.ts +3 -0
- package/components/lottie-animation/index.mjs +2 -2
- package/components/lottie-animation/src/index.vue.d.ts +1 -1
- package/components/metahuman-broadcasting/index.mjs +2 -2
- package/components/metahuman-broadcasting/src/ctx.d.ts +2 -2
- package/components/metahuman-broadcasting/src/index.vue.d.ts +4 -4
- package/components/monaco-editor/index.cjs +1 -1
- package/components/monaco-editor/index.mjs +52 -48
- package/components/monaco-editor/src/ctx.d.ts +3 -3
- package/components/monaco-editor/src/index.vue.d.ts +5 -5
- package/components/pixi-frame/index.cjs +1 -1
- package/components/pixi-frame/index.mjs +25 -25
- package/components/pixi-frame/src/apng.vue.d.ts +10 -10
- package/components/pixi-frame/src/bitmap-generator.vue.d.ts +7 -7
- package/components/pixi-frame/src/bitmap.vue.d.ts +12 -12
- package/components/pixi-frame/src/buffer-image.vue.d.ts +13 -13
- package/components/pixi-frame/src/core.vue.d.ts +12 -12
- package/components/pixi-frame/src/ctx.d.ts +5 -5
- package/components/pixi-frame/src/index.vue.d.ts +81 -81
- package/components/pixi-frame/src/video.vue.d.ts +10 -10
- package/components/recorder-button/index.cjs +1 -1
- package/components/recorder-button/index.mjs +75 -75
- package/components/recorder-button/src/ctx.d.ts +3 -3
- package/components/recorder-button/src/index.vue.d.ts +114 -197
- package/components/routes-menu-content/index.cjs +1 -1
- package/components/routes-menu-content/index.mjs +12 -12
- package/components/routes-menu-content/src/ctx.d.ts +1 -1
- package/components/routes-menu-content/src/index.vue.d.ts +58 -99
- package/components/routes-menu-content/src/item/core/ctx.d.ts +1 -1
- package/components/routes-menu-content/src/item/core/index.vue.d.ts +40 -81
- package/components/routes-menu-content/src/item/index.vue.d.ts +56 -97
- package/components/scrollbar/index.mjs +4 -4
- package/components/scrollbar/src/index.vue.d.ts +35 -34
- package/components/scrollbar/src/util.d.ts +1 -1
- package/components/sender/index.cjs +1 -1
- package/components/sender/index.mjs +7 -7
- package/components/sender/src/SenderHeader.vue.d.ts +2 -2
- package/components/sender/src/ctx.d.ts +9 -9
- package/components/sender/src/index.vue.d.ts +28 -28
- package/components/speech-button/index.cjs +1 -1
- package/components/speech-button/index.mjs +1 -1
- package/components/speech-button/src/ctx.d.ts +1 -1
- package/components/speech-button/src/index.vue.d.ts +3 -3
- package/components/table-columns/src/ctx.d.ts +2 -2
- package/components/table-columns/src/el-ctx.d.ts +2 -2
- package/components/table-columns/src/index.vue.d.ts +6 -6
- package/components/table-columns/src/types.d.ts +3 -4
- package/components/tables-v1/index.cjs +1 -1
- package/components/tables-v1/index.mjs +3 -3
- package/components/tables-v1/src/ctx.d.ts +69 -74
- package/components/tables-v1/src/el-ctx.d.ts +24 -24
- package/components/tables-v1/src/index.vue.d.ts +54 -313
- package/components/tables-v1-checkbox/index.cjs +31 -35
- package/components/tables-v1-checkbox/index.mjs +1239 -1042
- package/components/tables-v1-checkbox/src/ctx.d.ts +68 -73
- package/components/tables-v1-checkbox/src/index.vue.d.ts +274 -542
- package/components/text/index.mjs +3 -3
- package/components/text/src/ctx.d.ts +39 -246
- package/components/text/src/index.vue.d.ts +98 -509
- package/components/thinking/index.mjs +5 -5
- package/components/thinking/src/ctx.d.ts +3 -3
- package/components/thinking/src/index.vue.d.ts +8 -8
- package/components/typing-markdown/index.mjs +2 -2
- package/components/typing-markdown/src/ctx.d.ts +3 -3
- package/components/typing-markdown/src/index.vue.d.ts +6 -6
- package/components/vditor/index.cjs +1 -1
- package/components/vditor/index.mjs +2 -2
- package/components/vditor/src/ctx.d.ts +2 -2
- package/components/vditor/src/handle-fullscreen.vue.d.ts +3 -3
- package/components/vditor/src/handle-value.vue.d.ts +3 -3
- package/components/vditor/src/index.vue.d.ts +10 -10
- package/components/xgplayer/index.mjs +5 -5
- package/composables/recorder/index.cjs +1 -1
- package/composables/recorder/index.mjs +3214 -3099
- package/element/bubble/index.cjs +2 -2
- package/element/bubble/index.mjs +57 -57
- package/element/index.css +1 -1
- package/element/thinking/index.cjs +1 -1
- package/element/thinking/index.mjs +63 -69
- package/icons/end/index.cjs +1 -1
- package/icons/end/index.mjs +3 -3
- package/icons/keyboard/index.cjs +1 -1
- package/icons/keyboard/index.mjs +3 -3
- package/icons/start/index.cjs +1 -1
- package/icons/start/index.mjs +3 -3
- package/icons/voice/index.cjs +1 -1
- package/icons/voice/index.mjs +3 -3
- package/index.css +2 -2
- package/package.json +16 -1
|
@@ -7,7 +7,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
7
7
|
};
|
|
8
8
|
data: {
|
|
9
9
|
type: import("vue").PropType<any[]>;
|
|
10
|
-
default: () =>
|
|
10
|
+
default: () => any[];
|
|
11
11
|
};
|
|
12
12
|
loop: {
|
|
13
13
|
type: BooleanConstructor;
|
|
@@ -27,7 +27,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
27
27
|
};
|
|
28
28
|
resize: {
|
|
29
29
|
type: import("vue").PropType<import("./types.ts").Resize>;
|
|
30
|
-
default:
|
|
30
|
+
default: any;
|
|
31
31
|
};
|
|
32
32
|
prerender: {
|
|
33
33
|
type: BooleanConstructor;
|
|
@@ -41,9 +41,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
41
41
|
isApng: import("vue").ComputedRef<boolean>;
|
|
42
42
|
isVideo: import("vue").ComputedRef<boolean>;
|
|
43
43
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
|
-
'update:status':
|
|
45
|
-
'update:data':
|
|
46
|
-
setData:
|
|
44
|
+
'update:status': any;
|
|
45
|
+
'update:data': any;
|
|
46
|
+
setData: any;
|
|
47
47
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
48
|
url: {
|
|
49
49
|
type: StringConstructor;
|
|
@@ -51,7 +51,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
51
51
|
};
|
|
52
52
|
data: {
|
|
53
53
|
type: import("vue").PropType<any[]>;
|
|
54
|
-
default: () =>
|
|
54
|
+
default: () => any[];
|
|
55
55
|
};
|
|
56
56
|
loop: {
|
|
57
57
|
type: BooleanConstructor;
|
|
@@ -71,7 +71,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
71
71
|
};
|
|
72
72
|
resize: {
|
|
73
73
|
type: import("vue").PropType<import("./types.ts").Resize>;
|
|
74
|
-
default:
|
|
74
|
+
default: any;
|
|
75
75
|
};
|
|
76
76
|
prerender: {
|
|
77
77
|
type: BooleanConstructor;
|
|
@@ -82,9 +82,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
82
82
|
default: boolean;
|
|
83
83
|
};
|
|
84
84
|
}>> & Readonly<{
|
|
85
|
-
"onUpdate:status"?: (
|
|
86
|
-
onSetData?: (
|
|
87
|
-
"onUpdate:data"?: (
|
|
85
|
+
"onUpdate:status"?: (...args: any) => any;
|
|
86
|
+
onSetData?: (...args: any) => any;
|
|
87
|
+
"onUpdate:data"?: (...args: any) => any;
|
|
88
88
|
}>, {
|
|
89
89
|
data: any[];
|
|
90
90
|
resize: import("./types.ts").Resize;
|
|
@@ -103,7 +103,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
103
103
|
};
|
|
104
104
|
data: {
|
|
105
105
|
type: import("vue").PropType<any[]>;
|
|
106
|
-
default: () =>
|
|
106
|
+
default: () => any[];
|
|
107
107
|
};
|
|
108
108
|
loop: {
|
|
109
109
|
type: BooleanConstructor;
|
|
@@ -123,7 +123,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
123
123
|
};
|
|
124
124
|
resize: {
|
|
125
125
|
type: import("vue").PropType<import("./types.ts").Resize>;
|
|
126
|
-
default:
|
|
126
|
+
default: any;
|
|
127
127
|
};
|
|
128
128
|
prerender: {
|
|
129
129
|
type: BooleanConstructor;
|
|
@@ -134,13 +134,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
134
134
|
default: boolean;
|
|
135
135
|
};
|
|
136
136
|
}>> & Readonly<{
|
|
137
|
-
"onUpdate:status"?: (
|
|
138
|
-
onSetData?: (
|
|
139
|
-
"onUpdate:data"?: (
|
|
137
|
+
"onUpdate:status"?: (...args: any[]) => any;
|
|
138
|
+
onSetData?: (...args: any[]) => any;
|
|
139
|
+
"onUpdate:data"?: (...args: any[]) => any;
|
|
140
140
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
141
|
-
"update:status": (...args: any[]) => void;
|
|
142
|
-
setData: (...args: any[]) => void;
|
|
143
|
-
"update:data": (...args: any[]) => void;
|
|
141
|
+
"update:status": ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
142
|
+
setData: ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
143
|
+
"update:data": ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
144
144
|
}, import("vue").PublicProps, {
|
|
145
145
|
data: any[];
|
|
146
146
|
resize: import("./types.ts").Resize;
|
|
@@ -164,7 +164,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
164
164
|
};
|
|
165
165
|
data: {
|
|
166
166
|
type: import("vue").PropType<any[]>;
|
|
167
|
-
default: () =>
|
|
167
|
+
default: () => any[];
|
|
168
168
|
};
|
|
169
169
|
loop: {
|
|
170
170
|
type: BooleanConstructor;
|
|
@@ -184,7 +184,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
184
184
|
};
|
|
185
185
|
resize: {
|
|
186
186
|
type: import("vue").PropType<import("./types.ts").Resize>;
|
|
187
|
-
default:
|
|
187
|
+
default: any;
|
|
188
188
|
};
|
|
189
189
|
prerender: {
|
|
190
190
|
type: BooleanConstructor;
|
|
@@ -195,9 +195,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
195
195
|
default: boolean;
|
|
196
196
|
};
|
|
197
197
|
}>> & Readonly<{
|
|
198
|
-
"onUpdate:status"?: (
|
|
199
|
-
onSetData?: (
|
|
200
|
-
"onUpdate:data"?: (
|
|
198
|
+
"onUpdate:status"?: (...args: any[]) => any;
|
|
199
|
+
onSetData?: (...args: any[]) => any;
|
|
200
|
+
"onUpdate:data"?: (...args: any[]) => any;
|
|
201
201
|
}>, {}, {}, {}, {}, {
|
|
202
202
|
data: any[];
|
|
203
203
|
resize: import("./types.ts").Resize;
|
|
@@ -218,7 +218,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
218
218
|
};
|
|
219
219
|
data: {
|
|
220
220
|
type: import("vue").PropType<any[]>;
|
|
221
|
-
default: () =>
|
|
221
|
+
default: () => any[];
|
|
222
222
|
};
|
|
223
223
|
loop: {
|
|
224
224
|
type: BooleanConstructor;
|
|
@@ -238,7 +238,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
238
238
|
};
|
|
239
239
|
resize: {
|
|
240
240
|
type: import("vue").PropType<import("./types.ts").Resize>;
|
|
241
|
-
default:
|
|
241
|
+
default: any;
|
|
242
242
|
};
|
|
243
243
|
prerender: {
|
|
244
244
|
type: BooleanConstructor;
|
|
@@ -249,13 +249,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
249
249
|
default: boolean;
|
|
250
250
|
};
|
|
251
251
|
}>> & Readonly<{
|
|
252
|
-
"onUpdate:status"?: (
|
|
253
|
-
onSetData?: (
|
|
254
|
-
"onUpdate:data"?: (
|
|
252
|
+
"onUpdate:status"?: (...args: any[]) => any;
|
|
253
|
+
onSetData?: (...args: any[]) => any;
|
|
254
|
+
"onUpdate:data"?: (...args: any[]) => any;
|
|
255
255
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
256
|
-
"update:status": (...args: any[]) => void;
|
|
257
|
-
setData: (...args: any[]) => void;
|
|
258
|
-
"update:data": (...args: any[]) => void;
|
|
256
|
+
"update:status": ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
257
|
+
setData: ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
258
|
+
"update:data": ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
259
259
|
}, string, {
|
|
260
260
|
data: any[];
|
|
261
261
|
resize: import("./types.ts").Resize;
|
|
@@ -308,7 +308,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
308
308
|
};
|
|
309
309
|
data: {
|
|
310
310
|
type: import("vue").PropType<any[]>;
|
|
311
|
-
default: () =>
|
|
311
|
+
default: () => any[];
|
|
312
312
|
};
|
|
313
313
|
loop: {
|
|
314
314
|
type: BooleanConstructor;
|
|
@@ -328,7 +328,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
328
328
|
};
|
|
329
329
|
resize: {
|
|
330
330
|
type: import("vue").PropType<import("./types.ts").Resize>;
|
|
331
|
-
default:
|
|
331
|
+
default: any;
|
|
332
332
|
};
|
|
333
333
|
prerender: {
|
|
334
334
|
type: BooleanConstructor;
|
|
@@ -339,13 +339,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
339
339
|
default: boolean;
|
|
340
340
|
};
|
|
341
341
|
}>> & Readonly<{
|
|
342
|
-
"onUpdate:status"?: (
|
|
343
|
-
onSetData?: (
|
|
344
|
-
"onUpdate:data"?: (
|
|
342
|
+
"onUpdate:status"?: (...args: any[]) => any;
|
|
343
|
+
onSetData?: (...args: any[]) => any;
|
|
344
|
+
"onUpdate:data"?: (...args: any[]) => any;
|
|
345
345
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
346
|
-
"update:status": (...args: any[]) => void;
|
|
347
|
-
setData: (...args: any[]) => void;
|
|
348
|
-
"update:data": (...args: any[]) => void;
|
|
346
|
+
"update:status": ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
347
|
+
setData: ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
348
|
+
"update:data": ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
349
349
|
}, import("vue").PublicProps, {
|
|
350
350
|
data: any[];
|
|
351
351
|
resize: import("./types.ts").Resize;
|
|
@@ -369,7 +369,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
369
369
|
};
|
|
370
370
|
data: {
|
|
371
371
|
type: import("vue").PropType<any[]>;
|
|
372
|
-
default: () =>
|
|
372
|
+
default: () => any[];
|
|
373
373
|
};
|
|
374
374
|
loop: {
|
|
375
375
|
type: BooleanConstructor;
|
|
@@ -389,7 +389,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
389
389
|
};
|
|
390
390
|
resize: {
|
|
391
391
|
type: import("vue").PropType<import("./types.ts").Resize>;
|
|
392
|
-
default:
|
|
392
|
+
default: any;
|
|
393
393
|
};
|
|
394
394
|
prerender: {
|
|
395
395
|
type: BooleanConstructor;
|
|
@@ -400,9 +400,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
400
400
|
default: boolean;
|
|
401
401
|
};
|
|
402
402
|
}>> & Readonly<{
|
|
403
|
-
"onUpdate:status"?: (
|
|
404
|
-
onSetData?: (
|
|
405
|
-
"onUpdate:data"?: (
|
|
403
|
+
"onUpdate:status"?: (...args: any[]) => any;
|
|
404
|
+
onSetData?: (...args: any[]) => any;
|
|
405
|
+
"onUpdate:data"?: (...args: any[]) => any;
|
|
406
406
|
}>, {}, {}, {}, {}, {
|
|
407
407
|
data: any[];
|
|
408
408
|
resize: import("./types.ts").Resize;
|
|
@@ -423,7 +423,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
423
423
|
};
|
|
424
424
|
data: {
|
|
425
425
|
type: import("vue").PropType<any[]>;
|
|
426
|
-
default: () =>
|
|
426
|
+
default: () => any[];
|
|
427
427
|
};
|
|
428
428
|
loop: {
|
|
429
429
|
type: BooleanConstructor;
|
|
@@ -443,7 +443,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
443
443
|
};
|
|
444
444
|
resize: {
|
|
445
445
|
type: import("vue").PropType<import("./types.ts").Resize>;
|
|
446
|
-
default:
|
|
446
|
+
default: any;
|
|
447
447
|
};
|
|
448
448
|
prerender: {
|
|
449
449
|
type: BooleanConstructor;
|
|
@@ -454,13 +454,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
454
454
|
default: boolean;
|
|
455
455
|
};
|
|
456
456
|
}>> & Readonly<{
|
|
457
|
-
"onUpdate:status"?: (
|
|
458
|
-
onSetData?: (
|
|
459
|
-
"onUpdate:data"?: (
|
|
457
|
+
"onUpdate:status"?: (...args: any[]) => any;
|
|
458
|
+
onSetData?: (...args: any[]) => any;
|
|
459
|
+
"onUpdate:data"?: (...args: any[]) => any;
|
|
460
460
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
461
|
-
"update:status": (...args: any[]) => void;
|
|
462
|
-
setData: (...args: any[]) => void;
|
|
463
|
-
"update:data": (...args: any[]) => void;
|
|
461
|
+
"update:status": ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
462
|
+
setData: ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
463
|
+
"update:data": ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
464
464
|
}, string, {
|
|
465
465
|
data: any[];
|
|
466
466
|
resize: import("./types.ts").Resize;
|
|
@@ -486,7 +486,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
486
486
|
};
|
|
487
487
|
resize: {
|
|
488
488
|
type: import("vue").PropType<import("./types.ts").Resize>;
|
|
489
|
-
default:
|
|
489
|
+
default: any;
|
|
490
490
|
};
|
|
491
491
|
visible: {
|
|
492
492
|
type: BooleanConstructor;
|
|
@@ -513,18 +513,18 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
513
513
|
default: number;
|
|
514
514
|
};
|
|
515
515
|
}>> & Readonly<{
|
|
516
|
-
onLoad?: (
|
|
517
|
-
"onUpdate:status"?: (
|
|
518
|
-
onSetData?: (
|
|
519
|
-
"onUpdate:data"?: (
|
|
520
|
-
"onUpdate:frameIndex"?: (
|
|
521
|
-
onNotFound?: (
|
|
516
|
+
onLoad?: (e: import("./types.ts").LoadEvent) => any;
|
|
517
|
+
"onUpdate:status"?: (...args: any[]) => any;
|
|
518
|
+
onSetData?: (...args: any[]) => any;
|
|
519
|
+
"onUpdate:data"?: (...args: any[]) => any;
|
|
520
|
+
"onUpdate:frameIndex"?: (...args: any[]) => any;
|
|
521
|
+
onNotFound?: (_index: number) => any;
|
|
522
522
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
523
523
|
load: (e: import("./types.ts").LoadEvent) => void;
|
|
524
|
-
"update:status": (...args: any[]) => void;
|
|
525
|
-
setData: (...args: any[]) => void;
|
|
526
|
-
"update:data": (...args: any[]) => void;
|
|
527
|
-
"update:frameIndex": (...args: any[]) => void;
|
|
524
|
+
"update:status": ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
525
|
+
setData: ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
526
|
+
"update:data": ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
527
|
+
"update:frameIndex": ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
528
528
|
notFound: (_index: number) => void;
|
|
529
529
|
}, import("vue").PublicProps, {
|
|
530
530
|
resize: import("./types.ts").Resize;
|
|
@@ -550,7 +550,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
550
550
|
};
|
|
551
551
|
resize: {
|
|
552
552
|
type: import("vue").PropType<import("./types.ts").Resize>;
|
|
553
|
-
default:
|
|
553
|
+
default: any;
|
|
554
554
|
};
|
|
555
555
|
visible: {
|
|
556
556
|
type: BooleanConstructor;
|
|
@@ -577,12 +577,12 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
577
577
|
default: number;
|
|
578
578
|
};
|
|
579
579
|
}>> & Readonly<{
|
|
580
|
-
onLoad?: (
|
|
581
|
-
"onUpdate:status"?: (
|
|
582
|
-
onSetData?: (
|
|
583
|
-
"onUpdate:data"?: (
|
|
584
|
-
"onUpdate:frameIndex"?: (
|
|
585
|
-
onNotFound?: (
|
|
580
|
+
onLoad?: (e: import("./types.ts").LoadEvent) => any;
|
|
581
|
+
"onUpdate:status"?: (...args: any[]) => any;
|
|
582
|
+
onSetData?: (...args: any[]) => any;
|
|
583
|
+
"onUpdate:data"?: (...args: any[]) => any;
|
|
584
|
+
"onUpdate:frameIndex"?: (...args: any[]) => any;
|
|
585
|
+
onNotFound?: (_index: number) => any;
|
|
586
586
|
}>, {}, {}, {}, {}, {
|
|
587
587
|
resize: import("./types.ts").Resize;
|
|
588
588
|
visible: boolean;
|
|
@@ -604,7 +604,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
604
604
|
};
|
|
605
605
|
resize: {
|
|
606
606
|
type: import("vue").PropType<import("./types.ts").Resize>;
|
|
607
|
-
default:
|
|
607
|
+
default: any;
|
|
608
608
|
};
|
|
609
609
|
visible: {
|
|
610
610
|
type: BooleanConstructor;
|
|
@@ -631,18 +631,18 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
631
631
|
default: number;
|
|
632
632
|
};
|
|
633
633
|
}>> & Readonly<{
|
|
634
|
-
onLoad?: (
|
|
635
|
-
"onUpdate:status"?: (
|
|
636
|
-
onSetData?: (
|
|
637
|
-
"onUpdate:data"?: (
|
|
638
|
-
"onUpdate:frameIndex"?: (
|
|
639
|
-
onNotFound?: (
|
|
634
|
+
onLoad?: (e: import("./types.ts").LoadEvent) => any;
|
|
635
|
+
"onUpdate:status"?: (...args: any[]) => any;
|
|
636
|
+
onSetData?: (...args: any[]) => any;
|
|
637
|
+
"onUpdate:data"?: (...args: any[]) => any;
|
|
638
|
+
"onUpdate:frameIndex"?: (...args: any[]) => any;
|
|
639
|
+
onNotFound?: (_index: number) => any;
|
|
640
640
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
641
641
|
load: (e: import("./types.ts").LoadEvent) => void;
|
|
642
|
-
"update:status": (...args: any[]) => void;
|
|
643
|
-
setData: (...args: any[]) => void;
|
|
644
|
-
"update:data": (...args: any[]) => void;
|
|
645
|
-
"update:frameIndex": (...args: any[]) => void;
|
|
642
|
+
"update:status": ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
643
|
+
setData: ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
644
|
+
"update:data": ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
645
|
+
"update:frameIndex": ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
646
646
|
notFound: (_index: number) => void;
|
|
647
647
|
}, string, {
|
|
648
648
|
resize: import("./types.ts").Resize;
|
|
@@ -10,7 +10,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
10
10
|
};
|
|
11
11
|
data: {
|
|
12
12
|
type: import("vue").PropType<any[]>;
|
|
13
|
-
default: () =>
|
|
13
|
+
default: () => any[];
|
|
14
14
|
};
|
|
15
15
|
loop: {
|
|
16
16
|
type: BooleanConstructor;
|
|
@@ -30,7 +30,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
30
30
|
};
|
|
31
31
|
resize: {
|
|
32
32
|
type: import("vue").PropType<import("./types").Resize>;
|
|
33
|
-
default:
|
|
33
|
+
default: any;
|
|
34
34
|
};
|
|
35
35
|
prerender: {
|
|
36
36
|
type: BooleanConstructor;
|
|
@@ -41,9 +41,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
41
41
|
default: boolean;
|
|
42
42
|
};
|
|
43
43
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
|
-
"update:status": (...args: any[]) => void;
|
|
45
|
-
setData: (...args: any[]) => void;
|
|
46
|
-
"update:data": (...args: any[]) => void;
|
|
44
|
+
"update:status": ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
45
|
+
setData: ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
46
|
+
"update:data": ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
47
47
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
48
|
url: {
|
|
49
49
|
type: StringConstructor;
|
|
@@ -51,7 +51,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
51
51
|
};
|
|
52
52
|
data: {
|
|
53
53
|
type: import("vue").PropType<any[]>;
|
|
54
|
-
default: () =>
|
|
54
|
+
default: () => any[];
|
|
55
55
|
};
|
|
56
56
|
loop: {
|
|
57
57
|
type: BooleanConstructor;
|
|
@@ -71,7 +71,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
71
71
|
};
|
|
72
72
|
resize: {
|
|
73
73
|
type: import("vue").PropType<import("./types").Resize>;
|
|
74
|
-
default:
|
|
74
|
+
default: any;
|
|
75
75
|
};
|
|
76
76
|
prerender: {
|
|
77
77
|
type: BooleanConstructor;
|
|
@@ -82,9 +82,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
82
82
|
default: boolean;
|
|
83
83
|
};
|
|
84
84
|
}>> & Readonly<{
|
|
85
|
-
"onUpdate:status"?: (
|
|
86
|
-
onSetData?: (
|
|
87
|
-
"onUpdate:data"?: (
|
|
85
|
+
"onUpdate:status"?: (...args: any[]) => any;
|
|
86
|
+
onSetData?: (...args: any[]) => any;
|
|
87
|
+
"onUpdate:data"?: (...args: any[]) => any;
|
|
88
88
|
}>, {
|
|
89
89
|
data: any[];
|
|
90
90
|
resize: import("./types").Resize;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const S=require("@vunk/plus/composables/recorder"),V=require("element-plus"),e=require("vue"),L=require("../_plugin-vue_export-helper-BHFhmbuH.js"),M={onTextZone:{type:Function,default:void 0},appendTo:{type:null,default:"body"},disabled:{type:Boolean,default:!1},speechToText:{type:Function,default:void 0},submitToText:{type:Boolean,default:!1}},O={submitText:t=>typeof t=="string",submit:t=>!0,error:t=>!0};async function Z(t,s){const l=new FormData;l.append("file",s,"audio.wav");const a=await fetch(t,{method:"POST",body:l});if(!a.ok)throw new Error("Speech to text failed");return(await a.json()).text}const P=100,C=e.defineComponent({name:"VkRecorderButton",components:{ElButton:V.ElButton},props:M,emits:O,setup(t,{emit:s}){const l=e.ref(),{openOrStart:a,recording:i,recorder:d,wave:g}=S.useRecorder({waveViewRef:l,defaultOptions:{onProcess:D}}),m=e.ref("");let w=null;const c=e.ref(!1),B=async()=>{try{await a({openThen:()=>(c.value=!1,!1)})}catch(n){console.error("录音失败:",n),s("error",n),c.value=!1;return}i.value=!0},_=e.ref({x:0,y:0}),v=e.ref(!1),f=e.ref(!1);let b=!1;const N=()=>{const n=f.value;d.stop(async o=>{if(m.value=(window.URL||webkitURL).createObjectURL(o),d.close(),i.value=!1,s("submit",{blob:o,url:m.value}),n||t.submitToText)if(t.onTextZone)t.onTextZone({blob:o,url:m.value});else{if(t.speechToText){t.speechToText(o).then(r=>{s("submitText",r)});return}Z("/speech-to-text",o).then(r=>{s("submitText",r)}).catch(r=>{console.error("语音识别错误:",r),V.ElMessage.error("转换文字失败")})}})},R=()=>{document.addEventListener("mousemove",E),document.addEventListener("mouseup",x)},y=()=>{document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",x)},k=n=>{if(t.disabled)return;n.preventDefault(),b=!0;const o="touches"in n?n.touches[0]:n;_.value={x:o.clientX,y:o.clientY},n instanceof MouseEvent&&R(),w=setTimeout(()=>{b&&(c.value=!0,B())},P)};function E(n){if(n.preventDefault(),!c.value)return;const o="touches"in n?n.touches[0]:n;_.value={x:o.clientX,y:o.clientY};const r=document.querySelector(".cancel-btn-x"),p=document.querySelector(".text-btn-x");if(r&&p){const T=r.getBoundingClientRect(),h=p.getBoundingClientRect();v.value=o.clientX>=T.left&&o.clientX<=T.right&&o.clientY>=T.top&&o.clientY<=T.bottom,f.value=o.clientX>=h.left&&o.clientX<=h.right&&o.clientY>=h.top&&o.clientY<=h.bottom}}function x(n){b=!1,clearTimeout(w),c.value&&(v.value?d.close():N(),c.value=!1,v.value=!1,f.value=!1),n instanceof MouseEvent&&y()}function D(n,o,r,p){g.value?.input(n[n.length-1],o,p)}return e.onUnmounted(()=>{y()}),{onmousedown:k,onmousemove:E,onmouseup:x,recording:i,recordingNode:l,blobUrl:m,isDragging:c,cancelZone:v,isTextZone:f}}}),q={class:"vk-recorder-container"},U={class:"vk-recording-mask"},X={class:"recording-tip"},Y={ref:"recordingNode",class:"wave-container"},$={class:"tip-text"},j={class:"action-buttons"},z={class:"cancel-btn-x"},F={class:"text-btn-x"};function A(t,s,l,a,i,d){const g=e.resolveComponent("ElButton");return e.openBlock(),e.createElementBlock("div",q,[(e.openBlock(),e.createBlock(e.Teleport,{to:t.appendTo},[e.withDirectives(e.createElementVNode("div",U,[e.createElementVNode("div",X,[e.createElementVNode("div",Y,null,512),e.createElementVNode("div",$,e.toDisplayString(t.cancelZone?"松开手指,取消发送":"松开发送,上滑取消"),1)]),e.createElementVNode("div",j,[e.createElementVNode("div",z,[e.createElementVNode("div",{class:e.normalizeClass(["cancel-btn",{active:t.cancelZone}])},[...s[0]||(s[0]=[e.createElementVNode("div",{class:"btn-icon"}," × ",-1),e.createElementVNode("div",{class:"btn-text"}," 取消发送 ",-1)])],2)]),e.createElementVNode("div",F,[e.createElementVNode("div",{class:e.normalizeClass(["text-btn",{active:t.isTextZone}])},[...s[1]||(s[1]=[e.createElementVNode("div",{class:"btn-icon"}," 文 ",-1),e.createElementVNode("div",{class:"btn-text"}," 转为文字 ",-1)])],2)])])],512),[[e.vShow,t.isDragging]])],8,["to"])),e.createVNode(g,e.mergeProps(t.$attrs,{disabled:t.disabled,class:["vk-recorder-button",{"is-recording":t.recording}],size:"large",onTouchstart:t.onmousedown,onTouchmove:t.onmousemove,onTouchend:t.onmouseup,onMousedown:t.onmousedown}),{default:e.withCtx(()=>[...s[2]||(s[2]=[e.createElementVNode("span",{class:"vk-recorder-button-text"},"按住 说话",-1)])]),_:1},16,["disabled","class","onTouchstart","onTouchmove","onTouchend","onMousedown"])])}const u=L._export_sfc(C,[["render",A]]),G=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));u.install=t=>{t.component(u.name||"VkRecorderButton",u)};exports.VkRecorderButton=u;exports.__VkRecorderButton=G;exports.default=u;
|