@vunk/plus 1.13.1 → 1.14.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/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/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 +1 -1
- package/package.json +11 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as z, ref as v, watch as c, computed as a, nextTick as E,
|
|
1
|
+
import { defineComponent as B, useSlots as z, ref as v, watch as c, computed as a, nextTick as E, openBlock as m, createElementBlock as _, normalizeStyle as W, createElementVNode as i, normalizeClass as b, toDisplayString as k, createVNode as l, unref as s, withCtx as h, withModifiers as A, createCommentVNode as H, withDirectives as N, renderSlot as R, vShow as j } from "vue";
|
|
2
2
|
import { ArrowRightBold as D } from "@element-plus/icons-vue";
|
|
3
3
|
import { VkScrollbar as M } from "@vunk/plus/components/scrollbar";
|
|
4
4
|
import { ElIcon as O, ElCollapseTransition as $ } from "element-plus";
|
|
@@ -179,7 +179,7 @@ const I = {
|
|
|
179
179
|
status: t.status
|
|
180
180
|
}));
|
|
181
181
|
}
|
|
182
|
-
return (n, L) => (
|
|
182
|
+
return (n, L) => (m(), _("div", {
|
|
183
183
|
class: "vk-thinking",
|
|
184
184
|
style: W(V.value)
|
|
185
185
|
}, [
|
|
@@ -209,12 +209,12 @@ const I = {
|
|
|
209
209
|
_: 1
|
|
210
210
|
}, 8, ["class"])
|
|
211
211
|
], 8, F),
|
|
212
|
-
x.value ? (
|
|
212
|
+
x.value ? (m(), _("button", {
|
|
213
213
|
key: 0,
|
|
214
214
|
class: "vk-thinking__skip",
|
|
215
215
|
type: "button",
|
|
216
|
-
onClick:
|
|
217
|
-
}, k(n.skipText), 1)) :
|
|
216
|
+
onClick: A(w, ["stop"])
|
|
217
|
+
}, k(n.skipText), 1)) : H("", !0)
|
|
218
218
|
]),
|
|
219
219
|
l(s($), null, {
|
|
220
220
|
default: h(() => [
|
|
@@ -71,9 +71,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
71
71
|
default: string;
|
|
72
72
|
};
|
|
73
73
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
74
|
-
change: (...args: any[]) => void;
|
|
75
|
-
skip: (...args: any[]) => void;
|
|
76
|
-
"update:modelValue": (...args: any[]) => void;
|
|
74
|
+
change: ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
75
|
+
skip: ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
76
|
+
"update:modelValue": ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
77
77
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
78
78
|
modelValue: {
|
|
79
79
|
type: BooleanConstructor;
|
|
@@ -140,9 +140,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
140
140
|
default: string;
|
|
141
141
|
};
|
|
142
142
|
}>> & Readonly<{
|
|
143
|
-
onChange?: (
|
|
144
|
-
onSkip?: (
|
|
145
|
-
"onUpdate:modelValue"?: (
|
|
143
|
+
onChange?: (...args: any[]) => any;
|
|
144
|
+
onSkip?: (...args: any[]) => any;
|
|
145
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
146
146
|
}>, {
|
|
147
147
|
duration: string;
|
|
148
148
|
title: string;
|
|
@@ -152,14 +152,14 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
152
152
|
disabled: boolean;
|
|
153
153
|
maxWidth: string;
|
|
154
154
|
status: import("./types").ThinkingStatus;
|
|
155
|
-
modelValue: boolean;
|
|
156
155
|
backgroundColor: string;
|
|
156
|
+
borderColor: string;
|
|
157
|
+
modelValue: boolean;
|
|
157
158
|
autoCollapse: boolean;
|
|
158
159
|
buttonWidth: string;
|
|
159
160
|
skipText: string;
|
|
160
161
|
showSkip: boolean;
|
|
161
162
|
radius: string;
|
|
162
|
-
borderColor: string;
|
|
163
163
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
164
164
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
165
165
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { noop as g, computedAsync as h, debouncedRef as y } from "@vueuse/core";
|
|
2
2
|
import { useModelComputed as k } from "@vunk/core/composables";
|
|
3
3
|
import { noop as p } from "@vunk/shared/function";
|
|
4
|
-
import { defineComponent as b, ref as w, computed as c, watch as f,
|
|
4
|
+
import { defineComponent as b, ref as w, computed as c, watch as f, openBlock as T, createElementBlock as _, normalizeClass as v } from "vue";
|
|
5
5
|
import { highlight as M } from "@vunk/shared/markdown/shiki";
|
|
6
6
|
import I from "markdown-it-async";
|
|
7
7
|
import { _ as B } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
@@ -92,7 +92,7 @@ const $ = x(), V = {
|
|
|
92
92
|
}
|
|
93
93
|
}), z = ["innerHTML"];
|
|
94
94
|
function A(e, a, t, n, i, o) {
|
|
95
|
-
return
|
|
95
|
+
return T(), _("div", {
|
|
96
96
|
class: v(["vk-typing-markdown", {
|
|
97
97
|
"is-typing": e.isDebouncedTyping,
|
|
98
98
|
"is-loading": e.loading
|
|
@@ -25,7 +25,7 @@ export declare const props: {
|
|
|
25
25
|
*/
|
|
26
26
|
markdownItSetup: {
|
|
27
27
|
type: PropType<(md: MarkdownItAsync) => void>;
|
|
28
|
-
default:
|
|
28
|
+
default: any;
|
|
29
29
|
};
|
|
30
30
|
finished: {
|
|
31
31
|
type: BooleanConstructor;
|
|
@@ -36,6 +36,6 @@ export declare const props: {
|
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
export declare const emits: {
|
|
39
|
-
typing:
|
|
40
|
-
'update:finished':
|
|
39
|
+
typing: any;
|
|
40
|
+
'update:finished': any;
|
|
41
41
|
};
|
|
@@ -19,7 +19,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
19
19
|
};
|
|
20
20
|
markdownItSetup: {
|
|
21
21
|
type: import("vue").PropType<(md: import("markdown-it-async").MarkdownItAsync) => void>;
|
|
22
|
-
default:
|
|
22
|
+
default: any;
|
|
23
23
|
};
|
|
24
24
|
finished: {
|
|
25
25
|
type: BooleanConstructor;
|
|
@@ -32,8 +32,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
32
32
|
htmlText: import("vue").Ref<string, string>;
|
|
33
33
|
isDebouncedTyping: Readonly<import("vue").Ref<boolean, boolean>>;
|
|
34
34
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
|
-
typing:
|
|
36
|
-
'update:finished':
|
|
35
|
+
typing: any;
|
|
36
|
+
'update:finished': any;
|
|
37
37
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
38
|
source: {
|
|
39
39
|
type: StringConstructor;
|
|
@@ -53,7 +53,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
53
53
|
};
|
|
54
54
|
markdownItSetup: {
|
|
55
55
|
type: import("vue").PropType<(md: import("markdown-it-async").MarkdownItAsync) => void>;
|
|
56
|
-
default:
|
|
56
|
+
default: any;
|
|
57
57
|
};
|
|
58
58
|
finished: {
|
|
59
59
|
type: BooleanConstructor;
|
|
@@ -63,8 +63,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
63
63
|
default: boolean;
|
|
64
64
|
};
|
|
65
65
|
}>> & Readonly<{
|
|
66
|
-
onTyping?: (
|
|
67
|
-
"onUpdate:finished"?: (
|
|
66
|
+
onTyping?: (...args: any) => any;
|
|
67
|
+
"onUpdate:finished"?: (...args: any) => any;
|
|
68
68
|
}>, {
|
|
69
69
|
source: string;
|
|
70
70
|
pause: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const k=require("vditor"),p=require("@vunk/core/shared/utils-vue"),t=require("vue"),y=require("mitt"),V=require("@vueuse/core"),b=require("@vunk/core"),_=require("../_plugin-vue_export-helper-BHFhmbuH.js"),C=["headings","bold","italic","strike","link","|","list","ordered-list","outdent","indent","|","line","code","inline-code","insert-before","insert-after","|","table","|","undo","redo","|","fullscreen","outline","export","|"],f={modelValue:{type:String,default:""},defaultOptions:{type:Object,default:()=>({})},placeholder:{type:String,default:"Crtl + Enter 发送; Enter 换行"},toolbar:{type:Array,default:()=>C},fullscreen:{type:Boolean,default:!1}},O=p.bindPropsFactory(f),m={load:e=>e,"update:modelValue":e=>e,ctrlEnter:e=>e,"update:fullscreen":e=>e},E=p.onEmitsFactory(m),h=Object.freeze(Object.defineProperty({__proto__:null,createBindProps:O,createOnEmits:E,emits:m,props:f},Symbol.toStringTag,{value:"Module"})),v=()=>{const e=t.inject("vkVditorRef",null);if(!e)throw new Error("useVditor must be used after VditorProvider");return t.unref(e)},g=()=>{const e=t.inject("vkVditorMitter",null);if(!e)throw new Error("useVditorMitter must be used after VditorProvider");return e},w=t.defineComponent({props:{modelValue:{type:String,default:""}},emits:{"update:modelValue":null},setup(e,{emit:o}){const u=v(),s=g();e.modelValue&&u.setValue(e.modelValue,!0);const{pause:n,resume:a}=V.watchPausable(()=>e.modelValue,r=>{u.setValue(r,!0)});return s.on("input",r=>{n(),o("update:modelValue",r),t.nextTick(a)}),()=>null}}),B=t.defineComponent({props:{fullscreen:{type:Boolean,default:!1}},emits:{"update:fullscreen":null},setup(e,{emit:o}){const u=v(),s=u.vditor.element,n=t.ref(!1);return V.useMutationObserver(s,()=>{s.classList.contains("vditor--fullscreen")?n.value=!0:n.value=!1},{attributes:!0}),t.watch(()=>e.fullscreen,a=>{if(a!==n.value){const r=u.vditor.ir?.element;if(!r)return;r.dispatchEvent(new KeyboardEvent("keydown",{key:"'",ctrlKey:!0}))}},{immediate:!0}),t.watch(()=>n.value,a=>{o("update:fullscreen",a)}),()=>null}}),S=t.defineComponent({name:"VkVditor",components:{HandleValue:w,HandleFullscreen:B,VkAsyncTeleport:b.VkAsyncTeleport},props:f,emits:m,setup(e,{emit:o}){const u=t.ref(),s=t.ref(!1),n=y(),a=t.shallowRef(),r=t.ref(!1);return t.provide("vkVditorMitter",n),t.provide("vkVditorRef",a),t.onMounted(()=>{const i=new k(u.value,{...e.defaultOptions,placeholder:e.placeholder,cache:{enable:!0,id:"VkVditorCache",...e.defaultOptions.cache||{}},after(){a.value=i,s.value=!0,o("load",i),e.defaultOptions.after?.()},input(l){n.emit("input",l),e.defaultOptions.input?.(l)},ctrlEnter(l){o("update:modelValue",l),o("ctrlEnter",l)},focus(l){r.value=!0,e.defaultOptions.focus?.(l)},blur(l){r.value=!1,e.defaultOptions.blur?.(l)},toolbar:e.toolbar})}),{vditorNode:u,isTextareaFocus:r,ready:s}}}),T={ref:"vditorNode",class:"vkf-vditor"};function $(e,o,u,s,n,a){const r=t.resolveComponent("VkAsyncTeleport"),i=t.resolveComponent("HandleValue"),l=t.resolveComponent("HandleFullscreen");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",T,null,512),e.ready?(t.openBlock(),t.createBlock(r,{key:0,to:e.vditorNode},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["vkf-vditor-footer",{"is-textarea-focus":e.isTextareaFocus}])},[t.renderSlot(e.$slots,"footer")],2)]),_:3},8,["to"])):t.createCommentVNode("",!0),e.ready?(t.openBlock(),t.createBlock(i,{key:1,"model-value":e.modelValue,"onUpdate:modelValue":o[0]||(o[0]=c=>e.$emit("update:modelValue",c))},null,8,["model-value"])):t.createCommentVNode("",!0),e.ready?(t.openBlock(),t.createBlock(l,{key:2,fullscreen:e.fullscreen,"onUpdate:fullscreen":o[1]||(o[1]=c=>e.$emit("update:fullscreen",c))},null,8,["fullscreen"])):t.createCommentVNode("",!0),e.ready?t.renderSlot(e.$slots,"default",{
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const k=require("vditor"),p=require("@vunk/core/shared/utils-vue"),t=require("vue"),y=require("mitt"),V=require("@vueuse/core"),b=require("@vunk/core"),_=require("../_plugin-vue_export-helper-BHFhmbuH.js"),C=["headings","bold","italic","strike","link","|","list","ordered-list","outdent","indent","|","line","code","inline-code","insert-before","insert-after","|","table","|","undo","redo","|","fullscreen","outline","export","|"],f={modelValue:{type:String,default:""},defaultOptions:{type:Object,default:()=>({})},placeholder:{type:String,default:"Crtl + Enter 发送; Enter 换行"},toolbar:{type:Array,default:()=>C},fullscreen:{type:Boolean,default:!1}},O=p.bindPropsFactory(f),m={load:e=>e,"update:modelValue":e=>e,ctrlEnter:e=>e,"update:fullscreen":e=>e},E=p.onEmitsFactory(m),h=Object.freeze(Object.defineProperty({__proto__:null,createBindProps:O,createOnEmits:E,emits:m,props:f},Symbol.toStringTag,{value:"Module"})),v=()=>{const e=t.inject("vkVditorRef",null);if(!e)throw new Error("useVditor must be used after VditorProvider");return t.unref(e)},g=()=>{const e=t.inject("vkVditorMitter",null);if(!e)throw new Error("useVditorMitter must be used after VditorProvider");return e},w=t.defineComponent({props:{modelValue:{type:String,default:""}},emits:{"update:modelValue":null},setup(e,{emit:o}){const u=v(),s=g();e.modelValue&&u.setValue(e.modelValue,!0);const{pause:n,resume:a}=V.watchPausable(()=>e.modelValue,r=>{u.setValue(r,!0)});return s.on("input",r=>{n(),o("update:modelValue",r),t.nextTick(a)}),()=>null}}),B=t.defineComponent({props:{fullscreen:{type:Boolean,default:!1}},emits:{"update:fullscreen":null},setup(e,{emit:o}){const u=v(),s=u.vditor.element,n=t.ref(!1);return V.useMutationObserver(s,()=>{s.classList.contains("vditor--fullscreen")?n.value=!0:n.value=!1},{attributes:!0}),t.watch(()=>e.fullscreen,a=>{if(a!==n.value){const r=u.vditor.ir?.element;if(!r)return;r.dispatchEvent(new KeyboardEvent("keydown",{key:"'",ctrlKey:!0}))}},{immediate:!0}),t.watch(()=>n.value,a=>{o("update:fullscreen",a)}),()=>null}}),S=t.defineComponent({name:"VkVditor",components:{HandleValue:w,HandleFullscreen:B,VkAsyncTeleport:b.VkAsyncTeleport},props:f,emits:m,setup(e,{emit:o}){const u=t.ref(),s=t.ref(!1),n=y(),a=t.shallowRef(),r=t.ref(!1);return t.provide("vkVditorMitter",n),t.provide("vkVditorRef",a),t.onMounted(()=>{const i=new k(u.value,{...e.defaultOptions,placeholder:e.placeholder,cache:{enable:!0,id:"VkVditorCache",...e.defaultOptions.cache||{}},after(){a.value=i,s.value=!0,o("load",i),e.defaultOptions.after?.()},input(l){n.emit("input",l),e.defaultOptions.input?.(l)},ctrlEnter(l){o("update:modelValue",l),o("ctrlEnter",l)},focus(l){r.value=!0,e.defaultOptions.focus?.(l)},blur(l){r.value=!1,e.defaultOptions.blur?.(l)},toolbar:e.toolbar})}),{vditorNode:u,isTextareaFocus:r,ready:s}}}),T={ref:"vditorNode",class:"vkf-vditor"};function $(e,o,u,s,n,a){const r=t.resolveComponent("VkAsyncTeleport"),i=t.resolveComponent("HandleValue"),l=t.resolveComponent("HandleFullscreen");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",T,null,512),e.ready?(t.openBlock(),t.createBlock(r,{key:0,to:e.vditorNode},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["vkf-vditor-footer",{"is-textarea-focus":e.isTextareaFocus}])},[t.renderSlot(e.$slots,"footer")],2)]),_:3},8,["to"])):t.createCommentVNode("",!0),e.ready?(t.openBlock(),t.createBlock(i,{key:1,"model-value":e.modelValue,"onUpdate:modelValue":o[0]||(o[0]=c=>e.$emit("update:modelValue",c))},null,8,["model-value"])):t.createCommentVNode("",!0),e.ready?(t.openBlock(),t.createBlock(l,{key:2,fullscreen:e.fullscreen,"onUpdate:fullscreen":o[1]||(o[1]=c=>e.$emit("update:fullscreen",c))},null,8,["fullscreen"])):t.createCommentVNode("",!0),e.ready?t.renderSlot(e.$slots,"default",{},void 0,void 0,3):t.createCommentVNode("",!0)],64)}const d=_._export_sfc(S,[["render",$]]),M=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));d.install=e=>{e.component(d.name||"VkVditor",d)};exports.VkVditor=d;exports._VkVditorCtx=h;exports.__VkVditor=M;exports.default=d;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import $ from "vditor";
|
|
2
2
|
import { bindPropsFactory as g, onEmitsFactory as F } from "@vunk/core/shared/utils-vue";
|
|
3
|
-
import { inject as h, unref as T, defineComponent as v, nextTick as C, ref as c, watch as b, shallowRef as M, provide as _, onMounted as S, resolveComponent as m,
|
|
3
|
+
import { inject as h, unref as T, defineComponent as v, nextTick as C, ref as c, watch as b, shallowRef as M, provide as _, onMounted as S, resolveComponent as m, openBlock as d, createElementBlock as P, Fragment as j, createElementVNode as O, createBlock as p, withCtx as B, normalizeClass as H, renderSlot as E, createCommentVNode as i } from "vue";
|
|
4
4
|
import N from "mitt";
|
|
5
5
|
import { watchPausable as A, useMutationObserver as R } from "@vueuse/core";
|
|
6
6
|
import { VkAsyncTeleport as z } from "@vunk/core";
|
|
@@ -199,7 +199,7 @@ function W(e, t, n, u, l, a) {
|
|
|
199
199
|
fullscreen: e.fullscreen,
|
|
200
200
|
"onUpdate:fullscreen": t[1] || (t[1] = (f) => e.$emit("update:fullscreen", f))
|
|
201
201
|
}, null, 8, ["fullscreen"])) : i("", !0),
|
|
202
|
-
e.ready ? E(e.$slots, "default", {
|
|
202
|
+
e.ready ? E(e.$slots, "default", {}, void 0, void 0, 3) : i("", !0)
|
|
203
203
|
], 64);
|
|
204
204
|
}
|
|
205
205
|
const V = /* @__PURE__ */ K(J, [["render", W]]), le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -23,14 +23,14 @@ export declare const props: {
|
|
|
23
23
|
default: boolean;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"toolbar", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"fullscreen", keyof T2> | Extract<"defaultOptions", keyof T2>)[]>(propsArg: T2, excludes?: EX
|
|
26
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"toolbar", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"fullscreen", keyof T2> | Extract<"defaultOptions", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"toolbar", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"fullscreen", keyof T2>, KE> | Exclude<Extract<"defaultOptions", keyof T2>, KE> : Extract<"toolbar", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"fullscreen", keyof T2> | Extract<"defaultOptions", keyof T2>]: { [k in Extract<"toolbar", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"fullscreen", keyof T2> | Extract<"defaultOptions", keyof T2>]: T2[k]; }[P]; }>;
|
|
27
27
|
export declare const emits: {
|
|
28
28
|
load: (e: Vditor) => Vditor;
|
|
29
29
|
'update:modelValue': (e: string) => string;
|
|
30
30
|
ctrlEnter: (e: string) => string;
|
|
31
31
|
'update:fullscreen': (e: boolean) => boolean;
|
|
32
32
|
};
|
|
33
|
-
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("load" | "update:modelValue" | "update:fullscreen" | "ctrlEnter")[]>(emit: T2, excludes?: EX
|
|
33
|
+
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("load" | "update:modelValue" | "update:fullscreen" | "ctrlEnter")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"load", KE> | Exclude<"update:modelValue", KE> | Exclude<"update:fullscreen", KE> | Exclude<"ctrlEnter", KE> : "load" | "update:modelValue" | "update:fullscreen" | "ctrlEnter"]: {
|
|
34
34
|
load: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
35
35
|
'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
36
36
|
ctrlEnter: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
@@ -5,15 +5,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
5
5
|
type: BooleanConstructor;
|
|
6
6
|
default: boolean;
|
|
7
7
|
};
|
|
8
|
-
}>, () =>
|
|
9
|
-
'update:fullscreen':
|
|
8
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
'update:fullscreen': any;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
11
|
fullscreen: {
|
|
12
12
|
type: BooleanConstructor;
|
|
13
13
|
default: boolean;
|
|
14
14
|
};
|
|
15
15
|
}>> & Readonly<{
|
|
16
|
-
"onUpdate:fullscreen"?: (
|
|
16
|
+
"onUpdate:fullscreen"?: (...args: any) => any;
|
|
17
17
|
}>, {
|
|
18
18
|
fullscreen: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -5,15 +5,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
5
5
|
type: StringConstructor;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
|
-
}>, () =>
|
|
9
|
-
'update:modelValue':
|
|
8
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
'update:modelValue': any;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
11
|
modelValue: {
|
|
12
12
|
type: StringConstructor;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
15
|
}>> & Readonly<{
|
|
16
|
-
"onUpdate:modelValue"?: (
|
|
16
|
+
"onUpdate:modelValue"?: (...args: any) => any;
|
|
17
17
|
}>, {
|
|
18
18
|
modelValue: string;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -54,10 +54,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
54
54
|
default: boolean;
|
|
55
55
|
};
|
|
56
56
|
}>> & Readonly<{
|
|
57
|
-
onLoad?: (
|
|
58
|
-
"onUpdate:modelValue"?: (
|
|
59
|
-
"onUpdate:fullscreen"?: (
|
|
60
|
-
onCtrlEnter?: (
|
|
57
|
+
onLoad?: (e: Vditor) => any;
|
|
58
|
+
"onUpdate:modelValue"?: (e: string) => any;
|
|
59
|
+
"onUpdate:fullscreen"?: (e: boolean) => any;
|
|
60
|
+
onCtrlEnter?: (e: string) => any;
|
|
61
61
|
}>, {
|
|
62
62
|
toolbar: string[];
|
|
63
63
|
placeholder: string;
|
|
@@ -70,15 +70,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
70
70
|
type: StringConstructor;
|
|
71
71
|
default: string;
|
|
72
72
|
};
|
|
73
|
-
}>, () =>
|
|
74
|
-
'update:modelValue':
|
|
73
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
74
|
+
'update:modelValue': any;
|
|
75
75
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
76
76
|
modelValue: {
|
|
77
77
|
type: StringConstructor;
|
|
78
78
|
default: string;
|
|
79
79
|
};
|
|
80
80
|
}>> & Readonly<{
|
|
81
|
-
"onUpdate:modelValue"?: (
|
|
81
|
+
"onUpdate:modelValue"?: (...args: any) => any;
|
|
82
82
|
}>, {
|
|
83
83
|
modelValue: string;
|
|
84
84
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -87,15 +87,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
87
87
|
type: BooleanConstructor;
|
|
88
88
|
default: boolean;
|
|
89
89
|
};
|
|
90
|
-
}>, () =>
|
|
91
|
-
'update:fullscreen':
|
|
90
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
91
|
+
'update:fullscreen': any;
|
|
92
92
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
93
93
|
fullscreen: {
|
|
94
94
|
type: BooleanConstructor;
|
|
95
95
|
default: boolean;
|
|
96
96
|
};
|
|
97
97
|
}>> & Readonly<{
|
|
98
|
-
"onUpdate:fullscreen"?: (
|
|
98
|
+
"onUpdate:fullscreen"?: (...args: any) => any;
|
|
99
99
|
}>, {
|
|
100
100
|
fullscreen: boolean;
|
|
101
101
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { provide as i, inject as y, defineComponent as p, watchEffect as n, renderSlot as s, useId as f, ref as _, onMounted as m,
|
|
1
|
+
import { provide as i, inject as y, defineComponent as p, watchEffect as n, renderSlot as s, useId as f, ref as _, onMounted as m, openBlock as u, createElementBlock as g, Fragment as h, createElementVNode as k, unref as v, createBlock as w, withCtx as P, createCommentVNode as V } from "vue";
|
|
2
2
|
import b from "xgplayer";
|
|
3
3
|
const c = {
|
|
4
4
|
/**
|
|
@@ -55,13 +55,13 @@ const x = /* @__PURE__ */ p({
|
|
|
55
55
|
});
|
|
56
56
|
O(a), o.value = !0;
|
|
57
57
|
}), (a, E) => (u(), g(h, null, [
|
|
58
|
-
k("div", { id:
|
|
59
|
-
o.value ? (u(),
|
|
60
|
-
default:
|
|
58
|
+
k("div", { id: v(r) }, null, 8, B),
|
|
59
|
+
o.value ? (u(), w(x, { key: 0 }, {
|
|
60
|
+
default: P(() => [
|
|
61
61
|
s(a.$slots, "default")
|
|
62
62
|
]),
|
|
63
63
|
_: 3
|
|
64
|
-
})) :
|
|
64
|
+
})) : V("", !0)
|
|
65
65
|
], 64));
|
|
66
66
|
}
|
|
67
67
|
}), C = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|