@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
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import type { PropType, ExtractPropTypes, ComputedRef, Ref, ComponentPublicInstance, HTMLAttributes } from 'vue';
|
|
2
|
+
import type { ColProps } from '../grid/Col';
|
|
3
|
+
import type { CustomSlotsType } from '../_util/type';
|
|
4
|
+
import type { FormLabelAlign, InternalNamePath, Rule, RuleError, ValidateOptions } from './interface';
|
|
5
|
+
declare const ValidateStatuses: ["success", "warning", "error", "validating", ""];
|
|
6
|
+
export type ValidateStatus = (typeof ValidateStatuses)[number];
|
|
7
|
+
export interface FieldExpose {
|
|
8
|
+
fieldValue: Ref<any>;
|
|
9
|
+
fieldId: ComputedRef<any>;
|
|
10
|
+
fieldName: ComputedRef<any>;
|
|
11
|
+
resetField: () => void;
|
|
12
|
+
clearValidate: () => void;
|
|
13
|
+
namePath: ComputedRef<InternalNamePath>;
|
|
14
|
+
rules?: ComputedRef<Rule[]>;
|
|
15
|
+
validateRules: (options: ValidateOptions) => Promise<void> | Promise<RuleError[]>;
|
|
16
|
+
}
|
|
17
|
+
export declare const formItemProps: () => {
|
|
18
|
+
htmlFor: StringConstructor;
|
|
19
|
+
prefixCls: StringConstructor;
|
|
20
|
+
label: import("vue-types").VueTypeValidableDef<any, import("vue-types").ValidatorFunction<any>>;
|
|
21
|
+
help: import("vue-types").VueTypeValidableDef<any, import("vue-types").ValidatorFunction<any>>;
|
|
22
|
+
extra: import("vue-types").VueTypeValidableDef<any, import("vue-types").ValidatorFunction<any>>;
|
|
23
|
+
labelCol: {
|
|
24
|
+
type: PropType<ColProps & HTMLAttributes>;
|
|
25
|
+
};
|
|
26
|
+
wrapperCol: {
|
|
27
|
+
type: PropType<ColProps & HTMLAttributes>;
|
|
28
|
+
};
|
|
29
|
+
hasFeedback: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
colon: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: any;
|
|
36
|
+
};
|
|
37
|
+
labelAlign: PropType<FormLabelAlign>;
|
|
38
|
+
prop: {
|
|
39
|
+
type: PropType<string | number | Array<string | number>>;
|
|
40
|
+
};
|
|
41
|
+
name: {
|
|
42
|
+
type: PropType<string | number | Array<string | number>>;
|
|
43
|
+
};
|
|
44
|
+
rules: PropType<Rule[] | Rule>;
|
|
45
|
+
autoLink: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
required: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: any;
|
|
52
|
+
};
|
|
53
|
+
validateFirst: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: any;
|
|
56
|
+
};
|
|
57
|
+
validateStatus: import("vue-types").VueTypeDef<string>;
|
|
58
|
+
validateTrigger: {
|
|
59
|
+
type: PropType<string | string[]>;
|
|
60
|
+
};
|
|
61
|
+
messageVariables: {
|
|
62
|
+
type: PropType<Record<string, string>>;
|
|
63
|
+
};
|
|
64
|
+
hidden: BooleanConstructor;
|
|
65
|
+
noStyle: BooleanConstructor;
|
|
66
|
+
tooltip: StringConstructor;
|
|
67
|
+
};
|
|
68
|
+
export type FormItemProps = Partial<ExtractPropTypes<ReturnType<typeof formItemProps>>>;
|
|
69
|
+
export type FormItemExpose = {
|
|
70
|
+
onFieldBlur: () => void;
|
|
71
|
+
onFieldChange: () => void;
|
|
72
|
+
clearValidate: () => void;
|
|
73
|
+
resetField: () => void;
|
|
74
|
+
};
|
|
75
|
+
export type FormItemInstance = ComponentPublicInstance<FormItemProps, FormItemExpose>;
|
|
76
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
77
|
+
htmlFor: StringConstructor;
|
|
78
|
+
prefixCls: StringConstructor;
|
|
79
|
+
label: import("vue-types").VueTypeValidableDef<any, import("vue-types").ValidatorFunction<any>>;
|
|
80
|
+
help: import("vue-types").VueTypeValidableDef<any, import("vue-types").ValidatorFunction<any>>;
|
|
81
|
+
extra: import("vue-types").VueTypeValidableDef<any, import("vue-types").ValidatorFunction<any>>;
|
|
82
|
+
labelCol: {
|
|
83
|
+
type: PropType<ColProps & HTMLAttributes>;
|
|
84
|
+
};
|
|
85
|
+
wrapperCol: {
|
|
86
|
+
type: PropType<ColProps & HTMLAttributes>;
|
|
87
|
+
};
|
|
88
|
+
hasFeedback: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
colon: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: any;
|
|
95
|
+
};
|
|
96
|
+
labelAlign: PropType<FormLabelAlign>;
|
|
97
|
+
prop: {
|
|
98
|
+
type: PropType<string | number | Array<string | number>>;
|
|
99
|
+
};
|
|
100
|
+
name: {
|
|
101
|
+
type: PropType<string | number | Array<string | number>>;
|
|
102
|
+
};
|
|
103
|
+
rules: PropType<Rule[] | Rule>;
|
|
104
|
+
autoLink: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
108
|
+
required: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: any;
|
|
111
|
+
};
|
|
112
|
+
validateFirst: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
default: any;
|
|
115
|
+
};
|
|
116
|
+
validateStatus: import("vue-types").VueTypeDef<string>;
|
|
117
|
+
validateTrigger: {
|
|
118
|
+
type: PropType<string | string[]>;
|
|
119
|
+
};
|
|
120
|
+
messageVariables: {
|
|
121
|
+
type: PropType<Record<string, string>>;
|
|
122
|
+
};
|
|
123
|
+
hidden: BooleanConstructor;
|
|
124
|
+
noStyle: BooleanConstructor;
|
|
125
|
+
tooltip: StringConstructor;
|
|
126
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
127
|
+
htmlFor: StringConstructor;
|
|
128
|
+
prefixCls: StringConstructor;
|
|
129
|
+
label: import("vue-types").VueTypeValidableDef<any, import("vue-types").ValidatorFunction<any>>;
|
|
130
|
+
help: import("vue-types").VueTypeValidableDef<any, import("vue-types").ValidatorFunction<any>>;
|
|
131
|
+
extra: import("vue-types").VueTypeValidableDef<any, import("vue-types").ValidatorFunction<any>>;
|
|
132
|
+
labelCol: {
|
|
133
|
+
type: PropType<ColProps & HTMLAttributes>;
|
|
134
|
+
};
|
|
135
|
+
wrapperCol: {
|
|
136
|
+
type: PropType<ColProps & HTMLAttributes>;
|
|
137
|
+
};
|
|
138
|
+
hasFeedback: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
default: boolean;
|
|
141
|
+
};
|
|
142
|
+
colon: {
|
|
143
|
+
type: BooleanConstructor;
|
|
144
|
+
default: any;
|
|
145
|
+
};
|
|
146
|
+
labelAlign: PropType<FormLabelAlign>;
|
|
147
|
+
prop: {
|
|
148
|
+
type: PropType<string | number | Array<string | number>>;
|
|
149
|
+
};
|
|
150
|
+
name: {
|
|
151
|
+
type: PropType<string | number | Array<string | number>>;
|
|
152
|
+
};
|
|
153
|
+
rules: PropType<Rule[] | Rule>;
|
|
154
|
+
autoLink: {
|
|
155
|
+
type: BooleanConstructor;
|
|
156
|
+
default: boolean;
|
|
157
|
+
};
|
|
158
|
+
required: {
|
|
159
|
+
type: BooleanConstructor;
|
|
160
|
+
default: any;
|
|
161
|
+
};
|
|
162
|
+
validateFirst: {
|
|
163
|
+
type: BooleanConstructor;
|
|
164
|
+
default: any;
|
|
165
|
+
};
|
|
166
|
+
validateStatus: import("vue-types").VueTypeDef<string>;
|
|
167
|
+
validateTrigger: {
|
|
168
|
+
type: PropType<string | string[]>;
|
|
169
|
+
};
|
|
170
|
+
messageVariables: {
|
|
171
|
+
type: PropType<Record<string, string>>;
|
|
172
|
+
};
|
|
173
|
+
hidden: BooleanConstructor;
|
|
174
|
+
noStyle: BooleanConstructor;
|
|
175
|
+
tooltip: StringConstructor;
|
|
176
|
+
}>> & Readonly<{}>, {
|
|
177
|
+
required: boolean;
|
|
178
|
+
hidden: boolean;
|
|
179
|
+
colon: boolean;
|
|
180
|
+
hasFeedback: boolean;
|
|
181
|
+
autoLink: boolean;
|
|
182
|
+
validateFirst: boolean;
|
|
183
|
+
noStyle: boolean;
|
|
184
|
+
}, CustomSlotsType<{
|
|
185
|
+
help: any;
|
|
186
|
+
label: any;
|
|
187
|
+
extra: any;
|
|
188
|
+
default: any;
|
|
189
|
+
tooltip: any;
|
|
190
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
191
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ComputedRef } from 'vue';
|
|
2
|
+
import type { ValidateStatus } from './FormItem';
|
|
3
|
+
export type FormItemContext = {
|
|
4
|
+
id: ComputedRef<string>;
|
|
5
|
+
onFieldBlur: () => void;
|
|
6
|
+
onFieldChange: () => void;
|
|
7
|
+
clearValidate: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const useProvideFormItemContext: (props: FormItemContext, useValidation?: ComputedRef<boolean>) => void;
|
|
10
|
+
export declare const useInjectFormItemContext: () => FormItemContext;
|
|
11
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
export default _default;
|
|
15
|
+
export interface FormItemStatusContextProps {
|
|
16
|
+
isFormItemInput?: boolean;
|
|
17
|
+
status?: ValidateStatus;
|
|
18
|
+
hasFeedback?: boolean;
|
|
19
|
+
feedbackIcon?: any;
|
|
20
|
+
}
|
|
21
|
+
export declare const FormItemInputContext: {
|
|
22
|
+
useProvide: (props: FormItemStatusContextProps, newProps?: FormItemStatusContextProps) => {
|
|
23
|
+
isFormItemInput?: boolean;
|
|
24
|
+
status?: ValidateStatus;
|
|
25
|
+
hasFeedback?: boolean;
|
|
26
|
+
feedbackIcon?: any;
|
|
27
|
+
};
|
|
28
|
+
useInject: () => FormItemStatusContextProps;
|
|
29
|
+
};
|
|
30
|
+
export declare const NoFormStatus: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ColProps } from '../grid/Col';
|
|
2
|
+
import type { ValidateStatus } from './FormItem';
|
|
3
|
+
import type { CustomSlotsType, VueNode } from '../_util/type';
|
|
4
|
+
export interface FormItemInputMiscProps {
|
|
5
|
+
prefixCls: string;
|
|
6
|
+
errors: VueNode[];
|
|
7
|
+
hasFeedback?: boolean;
|
|
8
|
+
validateStatus?: ValidateStatus;
|
|
9
|
+
}
|
|
10
|
+
export interface FormItemInputProps {
|
|
11
|
+
wrapperCol?: ColProps;
|
|
12
|
+
help?: VueNode;
|
|
13
|
+
extra?: VueNode;
|
|
14
|
+
status?: ValidateStatus;
|
|
15
|
+
}
|
|
16
|
+
declare const FormItemInput: import("vue").DefineComponent<{
|
|
17
|
+
errors?: any;
|
|
18
|
+
marginBottom?: any;
|
|
19
|
+
help?: any;
|
|
20
|
+
prefixCls?: any;
|
|
21
|
+
status?: any;
|
|
22
|
+
onErrorVisibleChanged?: any;
|
|
23
|
+
hasFeedback?: any;
|
|
24
|
+
onDomErrorVisibleChange?: any;
|
|
25
|
+
wrapperCol?: any;
|
|
26
|
+
extra?: any;
|
|
27
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
28
|
+
errors?: any;
|
|
29
|
+
marginBottom?: any;
|
|
30
|
+
help?: any;
|
|
31
|
+
prefixCls?: any;
|
|
32
|
+
status?: any;
|
|
33
|
+
onErrorVisibleChanged?: any;
|
|
34
|
+
hasFeedback?: any;
|
|
35
|
+
onDomErrorVisibleChange?: any;
|
|
36
|
+
wrapperCol?: any;
|
|
37
|
+
extra?: any;
|
|
38
|
+
}> & Readonly<{}>, {}, CustomSlotsType<{
|
|
39
|
+
help: any;
|
|
40
|
+
errors: any;
|
|
41
|
+
extra: any;
|
|
42
|
+
default: any;
|
|
43
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
44
|
+
export default FormItemInput;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ColProps } from '../grid/Col';
|
|
2
|
+
import type { FormLabelAlign } from './interface';
|
|
3
|
+
import type { RequiredMark } from './Form';
|
|
4
|
+
import type { VueNode } from '../_util/type';
|
|
5
|
+
import type { FunctionalComponent, HTMLAttributes } from 'vue';
|
|
6
|
+
export interface FormItemLabelProps {
|
|
7
|
+
colon?: boolean;
|
|
8
|
+
htmlFor?: string;
|
|
9
|
+
label?: VueNode;
|
|
10
|
+
labelAlign?: FormLabelAlign;
|
|
11
|
+
labelCol?: ColProps & HTMLAttributes;
|
|
12
|
+
requiredMark?: RequiredMark;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
prefixCls: string;
|
|
15
|
+
onClick: Function;
|
|
16
|
+
tooltip: string;
|
|
17
|
+
}
|
|
18
|
+
declare const FormItemLabel: FunctionalComponent<FormItemLabelProps>;
|
|
19
|
+
export default FormItemLabel;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { InjectionKey, ComputedRef } from 'vue';
|
|
2
|
+
import type { ColProps } from '../grid';
|
|
3
|
+
import type { RequiredMark } from './Form';
|
|
4
|
+
import type { ValidateStatus, FieldExpose } from './FormItem';
|
|
5
|
+
import type { FormLabelAlign, Rule, ValidateMessages } from './interface';
|
|
6
|
+
export interface FormContextProps {
|
|
7
|
+
model?: ComputedRef<any>;
|
|
8
|
+
vertical: ComputedRef<boolean>;
|
|
9
|
+
name?: ComputedRef<string>;
|
|
10
|
+
colon?: ComputedRef<boolean>;
|
|
11
|
+
labelAlign?: ComputedRef<FormLabelAlign>;
|
|
12
|
+
labelWrap?: ComputedRef<boolean>;
|
|
13
|
+
labelCol?: ComputedRef<ColProps>;
|
|
14
|
+
wrapperCol?: ComputedRef<ColProps>;
|
|
15
|
+
requiredMark?: ComputedRef<RequiredMark>;
|
|
16
|
+
addField: (eventKey: string, field: FieldExpose) => void;
|
|
17
|
+
removeField: (eventKey: string) => void;
|
|
18
|
+
validateTrigger?: ComputedRef<string | string[]>;
|
|
19
|
+
rules?: ComputedRef<{
|
|
20
|
+
[k: string]: Rule[] | Rule;
|
|
21
|
+
}>;
|
|
22
|
+
onValidate: (name: string | number | Array<string | number>, status: boolean, errors: string[] | null) => void;
|
|
23
|
+
validateMessages: ComputedRef<ValidateMessages>;
|
|
24
|
+
}
|
|
25
|
+
export declare const FormContextKey: InjectionKey<FormContextProps>;
|
|
26
|
+
export declare const useProvideForm: (state: FormContextProps) => void;
|
|
27
|
+
export declare const useInjectForm: () => FormContextProps;
|
|
28
|
+
/** Used for ErrorList only */
|
|
29
|
+
export interface FormItemPrefixContextProps {
|
|
30
|
+
prefixCls: ComputedRef<string>;
|
|
31
|
+
status?: ComputedRef<ValidateStatus>;
|
|
32
|
+
}
|
|
33
|
+
export declare const FormItemPrefixContextKey: InjectionKey<FormItemPrefixContextProps>;
|
|
34
|
+
export declare const useProvideFormItemPrefix: (state: FormItemPrefixContextProps) => void;
|
|
35
|
+
export declare const useInjectFormItemPrefix: () => FormItemPrefixContextProps;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Plugin } from 'vue';
|
|
2
|
+
import Form, { formProps } from './Form';
|
|
3
|
+
import FormItem, { formItemProps } from './FormItem';
|
|
4
|
+
import useForm from './useForm';
|
|
5
|
+
import FormItemRest, { useInjectFormItemContext } from './FormItemContext';
|
|
6
|
+
export type { Rule, RuleObject } from './interface';
|
|
7
|
+
export type { FormProps, FormInstance } from './Form';
|
|
8
|
+
export type { FormItemProps, FormItemInstance } from './FormItem';
|
|
9
|
+
export { FormItem, formItemProps, formProps, FormItemRest, useForm, useInjectFormItemContext };
|
|
10
|
+
declare const _default: typeof Form & Plugin & {
|
|
11
|
+
readonly Item: typeof Form.Item;
|
|
12
|
+
readonly ItemRest: typeof FormItemRest;
|
|
13
|
+
readonly useForm: typeof useForm;
|
|
14
|
+
readonly useInjectFormItemContext: typeof useInjectFormItemContext;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import type { VueNode } from '../_util/type';
|
|
2
|
+
export type FormLabelAlign = 'left' | 'right';
|
|
3
|
+
export type InternalNamePath = (string | number)[];
|
|
4
|
+
export type NamePath = string | number | InternalNamePath;
|
|
5
|
+
export type StoreValue = any;
|
|
6
|
+
export interface Store {
|
|
7
|
+
[name: string]: StoreValue;
|
|
8
|
+
}
|
|
9
|
+
export interface Meta {
|
|
10
|
+
touched: boolean;
|
|
11
|
+
validating: boolean;
|
|
12
|
+
errors: string[];
|
|
13
|
+
name: InternalNamePath;
|
|
14
|
+
}
|
|
15
|
+
export interface InternalFieldData extends Meta {
|
|
16
|
+
value: StoreValue;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Used by `setFields` config
|
|
20
|
+
*/
|
|
21
|
+
export interface FieldData extends Partial<Omit<InternalFieldData, 'name'>> {
|
|
22
|
+
name: NamePath;
|
|
23
|
+
}
|
|
24
|
+
export type RuleType = 'string' | 'number' | 'boolean' | 'method' | 'regexp' | 'integer' | 'float' | 'object' | 'enum' | 'date' | 'url' | 'hex' | 'email';
|
|
25
|
+
type Validator = (rule: RuleObject, value: StoreValue, callback: (error?: string) => void) => Promise<void> | void;
|
|
26
|
+
export interface ValidatorRule {
|
|
27
|
+
warningOnly?: boolean;
|
|
28
|
+
message?: string | VueNode;
|
|
29
|
+
/** custom validate function (Note: callback must be called) */
|
|
30
|
+
validator: Validator;
|
|
31
|
+
}
|
|
32
|
+
interface BaseRule {
|
|
33
|
+
warningOnly?: boolean;
|
|
34
|
+
/** validate the value from a list of possible values */
|
|
35
|
+
enum?: StoreValue[];
|
|
36
|
+
/** validate the exact length of a field */
|
|
37
|
+
len?: number;
|
|
38
|
+
/** validate the max length of a field */
|
|
39
|
+
max?: number;
|
|
40
|
+
/** validation error message */
|
|
41
|
+
message?: string | VueNode;
|
|
42
|
+
/** validate the min length of a field */
|
|
43
|
+
min?: number;
|
|
44
|
+
/** validate from a regular expression */
|
|
45
|
+
pattern?: RegExp;
|
|
46
|
+
/** indicates whether field is required */
|
|
47
|
+
required?: boolean;
|
|
48
|
+
/** transform a value before validation */
|
|
49
|
+
transform?: (value: StoreValue) => StoreValue;
|
|
50
|
+
/** built-in validation type, available options: https://github.com/yiminghe/async-validator#type */
|
|
51
|
+
type?: RuleType;
|
|
52
|
+
/** treat required fields that only contain whitespace as errors */
|
|
53
|
+
whitespace?: boolean;
|
|
54
|
+
/** Customize rule level `validateTrigger`. Must be subset of Field `validateTrigger` */
|
|
55
|
+
validateTrigger?: string | string[];
|
|
56
|
+
/** Check trigger timing */
|
|
57
|
+
trigger?: 'blur' | 'change' | Array<'change' | 'blur'>;
|
|
58
|
+
}
|
|
59
|
+
type AggregationRule = BaseRule & Partial<ValidatorRule>;
|
|
60
|
+
interface ArrayRule extends Omit<AggregationRule, 'type'> {
|
|
61
|
+
type: 'array';
|
|
62
|
+
defaultField?: RuleObject;
|
|
63
|
+
}
|
|
64
|
+
export type RuleObject = AggregationRule | ArrayRule;
|
|
65
|
+
export type Rule = RuleObject;
|
|
66
|
+
export interface ValidateErrorEntity<Values = any> {
|
|
67
|
+
values: Values;
|
|
68
|
+
errorFields: {
|
|
69
|
+
name: InternalNamePath;
|
|
70
|
+
errors: string[];
|
|
71
|
+
}[];
|
|
72
|
+
outOfDate: boolean;
|
|
73
|
+
}
|
|
74
|
+
export interface FieldError {
|
|
75
|
+
name: InternalNamePath | string;
|
|
76
|
+
errors: string[];
|
|
77
|
+
}
|
|
78
|
+
export interface RuleError {
|
|
79
|
+
errors: string[];
|
|
80
|
+
rule: RuleObject;
|
|
81
|
+
}
|
|
82
|
+
export interface ValidateOptions {
|
|
83
|
+
triggerName?: string;
|
|
84
|
+
validateMessages?: ValidateMessages;
|
|
85
|
+
}
|
|
86
|
+
export type InternalValidateFields = (nameList?: NamePath[], options?: ValidateOptions) => Promise<Store>;
|
|
87
|
+
export type ValidateFields = (nameList?: NamePath[]) => Promise<Store>;
|
|
88
|
+
interface ValueUpdateInfo {
|
|
89
|
+
type: 'valueUpdate';
|
|
90
|
+
source: 'internal' | 'external';
|
|
91
|
+
}
|
|
92
|
+
interface ValidateFinishInfo {
|
|
93
|
+
type: 'validateFinish';
|
|
94
|
+
}
|
|
95
|
+
interface ResetInfo {
|
|
96
|
+
type: 'reset';
|
|
97
|
+
}
|
|
98
|
+
interface SetFieldInfo {
|
|
99
|
+
type: 'setField';
|
|
100
|
+
data: FieldData;
|
|
101
|
+
}
|
|
102
|
+
interface DependenciesUpdateInfo {
|
|
103
|
+
type: 'dependenciesUpdate';
|
|
104
|
+
/**
|
|
105
|
+
* Contains all the related `InternalNamePath[]`.
|
|
106
|
+
* a <- b <- c : change `a`
|
|
107
|
+
* relatedFields=[a, b, c]
|
|
108
|
+
*/
|
|
109
|
+
relatedFields: InternalNamePath[];
|
|
110
|
+
}
|
|
111
|
+
export type NotifyInfo = ValueUpdateInfo | ValidateFinishInfo | ResetInfo | SetFieldInfo | DependenciesUpdateInfo;
|
|
112
|
+
export type ValuedNotifyInfo = NotifyInfo & {
|
|
113
|
+
store: Store;
|
|
114
|
+
};
|
|
115
|
+
export interface Callbacks<Values = any> {
|
|
116
|
+
onValuesChange?: (changedValues: any, values: Values) => void;
|
|
117
|
+
onFieldsChange?: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
118
|
+
onFinish?: (values: Values) => void;
|
|
119
|
+
onFinishFailed?: (errorInfo: ValidateErrorEntity<Values>) => void;
|
|
120
|
+
onValidate?: (name: string | number | string[] | number[], status: boolean, errors: string[] | null) => void;
|
|
121
|
+
}
|
|
122
|
+
export type EventArgs = any[];
|
|
123
|
+
type ValidateMessage = string | (() => string);
|
|
124
|
+
export interface ValidateMessages {
|
|
125
|
+
default?: ValidateMessage;
|
|
126
|
+
required?: ValidateMessage;
|
|
127
|
+
enum?: ValidateMessage;
|
|
128
|
+
whitespace?: ValidateMessage;
|
|
129
|
+
date?: {
|
|
130
|
+
format?: ValidateMessage;
|
|
131
|
+
parse?: ValidateMessage;
|
|
132
|
+
invalid?: ValidateMessage;
|
|
133
|
+
};
|
|
134
|
+
types?: {
|
|
135
|
+
string?: ValidateMessage;
|
|
136
|
+
method?: ValidateMessage;
|
|
137
|
+
array?: ValidateMessage;
|
|
138
|
+
object?: ValidateMessage;
|
|
139
|
+
number?: ValidateMessage;
|
|
140
|
+
date?: ValidateMessage;
|
|
141
|
+
boolean?: ValidateMessage;
|
|
142
|
+
integer?: ValidateMessage;
|
|
143
|
+
float?: ValidateMessage;
|
|
144
|
+
regexp?: ValidateMessage;
|
|
145
|
+
email?: ValidateMessage;
|
|
146
|
+
url?: ValidateMessage;
|
|
147
|
+
hex?: ValidateMessage;
|
|
148
|
+
};
|
|
149
|
+
string?: {
|
|
150
|
+
len?: ValidateMessage;
|
|
151
|
+
min?: ValidateMessage;
|
|
152
|
+
max?: ValidateMessage;
|
|
153
|
+
range?: ValidateMessage;
|
|
154
|
+
};
|
|
155
|
+
number?: {
|
|
156
|
+
len?: ValidateMessage;
|
|
157
|
+
min?: ValidateMessage;
|
|
158
|
+
max?: ValidateMessage;
|
|
159
|
+
range?: ValidateMessage;
|
|
160
|
+
};
|
|
161
|
+
array?: {
|
|
162
|
+
len?: ValidateMessage;
|
|
163
|
+
min?: ValidateMessage;
|
|
164
|
+
max?: ValidateMessage;
|
|
165
|
+
range?: ValidateMessage;
|
|
166
|
+
};
|
|
167
|
+
pattern?: {
|
|
168
|
+
mismatch?: ValidateMessage;
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FullToken } from '../../theme/internal';
|
|
2
|
+
export interface FormToken extends FullToken<'Form'> {
|
|
3
|
+
formItemCls: string;
|
|
4
|
+
rootPrefixCls: string;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").Ref<string>) => import("../../theme/internal").UseComponentStyleResult;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import type { Callbacks, RuleError, ValidateMessages } from './interface';
|
|
3
|
+
import type { ValidateStatus } from './FormItem';
|
|
4
|
+
interface DebounceSettings {
|
|
5
|
+
leading?: boolean;
|
|
6
|
+
wait?: number;
|
|
7
|
+
trailing?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface Props {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
export interface validateOptions {
|
|
13
|
+
validateFirst?: boolean;
|
|
14
|
+
validateMessages?: ValidateMessages;
|
|
15
|
+
trigger?: 'change' | 'blur' | string | string[];
|
|
16
|
+
}
|
|
17
|
+
type namesType = string | string[];
|
|
18
|
+
export interface ValidateInfo {
|
|
19
|
+
autoLink?: boolean;
|
|
20
|
+
required?: boolean;
|
|
21
|
+
validateStatus?: ValidateStatus;
|
|
22
|
+
help?: any;
|
|
23
|
+
}
|
|
24
|
+
export interface validateInfos {
|
|
25
|
+
[key: string]: ValidateInfo;
|
|
26
|
+
}
|
|
27
|
+
declare function useForm(modelRef: Props | Ref<Props>, rulesRef?: Props | Ref<Props>, options?: {
|
|
28
|
+
immediate?: boolean;
|
|
29
|
+
deep?: boolean;
|
|
30
|
+
validateOnRuleChange?: boolean;
|
|
31
|
+
debounce?: DebounceSettings;
|
|
32
|
+
onValidate?: Callbacks['onValidate'];
|
|
33
|
+
}): {
|
|
34
|
+
modelRef: Props | Ref<Props>;
|
|
35
|
+
rulesRef: Props | Ref<Props>;
|
|
36
|
+
initialModel: Props;
|
|
37
|
+
validateInfos: validateInfos;
|
|
38
|
+
resetFields: (newValues?: Props) => void;
|
|
39
|
+
validate: <T = any>(names?: namesType, option?: validateOptions) => Promise<T>;
|
|
40
|
+
/** This is an internal usage. Do not use in your prod */
|
|
41
|
+
validateField: (name: string, value: any, rules: Record<string, unknown>[], option?: validateOptions) => Promise<RuleError[]>;
|
|
42
|
+
mergeValidateInfo: (items: ValidateInfo | ValidateInfo[]) => ValidateInfo;
|
|
43
|
+
clearValidate: (names?: namesType) => void;
|
|
44
|
+
};
|
|
45
|
+
export default useForm;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const defaultValidateMessages: {
|
|
2
|
+
default: string;
|
|
3
|
+
required: string;
|
|
4
|
+
enum: string;
|
|
5
|
+
whitespace: string;
|
|
6
|
+
date: {
|
|
7
|
+
format: string;
|
|
8
|
+
parse: string;
|
|
9
|
+
invalid: string;
|
|
10
|
+
};
|
|
11
|
+
types: {
|
|
12
|
+
string: string;
|
|
13
|
+
method: string;
|
|
14
|
+
array: string;
|
|
15
|
+
object: string;
|
|
16
|
+
number: string;
|
|
17
|
+
date: string;
|
|
18
|
+
boolean: string;
|
|
19
|
+
integer: string;
|
|
20
|
+
float: string;
|
|
21
|
+
regexp: string;
|
|
22
|
+
email: string;
|
|
23
|
+
url: string;
|
|
24
|
+
hex: string;
|
|
25
|
+
};
|
|
26
|
+
string: {
|
|
27
|
+
len: string;
|
|
28
|
+
min: string;
|
|
29
|
+
max: string;
|
|
30
|
+
range: string;
|
|
31
|
+
};
|
|
32
|
+
number: {
|
|
33
|
+
len: string;
|
|
34
|
+
min: string;
|
|
35
|
+
max: string;
|
|
36
|
+
range: string;
|
|
37
|
+
};
|
|
38
|
+
array: {
|
|
39
|
+
len: string;
|
|
40
|
+
min: string;
|
|
41
|
+
max: string;
|
|
42
|
+
range: string;
|
|
43
|
+
};
|
|
44
|
+
pattern: {
|
|
45
|
+
mismatch: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function toArray<T>(value?: T | T[] | null): T[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { InternalNamePath, RuleError, RuleObject, ValidateOptions } from '../interface';
|
|
2
|
+
/**
|
|
3
|
+
* We use `async-validator` to validate the value.
|
|
4
|
+
* But only check one value in a time to avoid namePath validate issue.
|
|
5
|
+
*/
|
|
6
|
+
export declare function validateRules(namePath: InternalNamePath, value: any, rules: RuleObject[], options: ValidateOptions, validateFirst: boolean | 'parallel', messageVariables?: Record<string, string>): Promise<RuleError[]>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { InternalNamePath, NamePath } from '../interface';
|
|
2
|
+
/**
|
|
3
|
+
* Convert name to internal supported format.
|
|
4
|
+
* This function should keep since we still thinking if need support like `a.b.c` format.
|
|
5
|
+
* 'a' => ['a']
|
|
6
|
+
* 123 => [123]
|
|
7
|
+
* ['a', 123] => ['a', 123]
|
|
8
|
+
*/
|
|
9
|
+
export declare function getNamePath(path: NamePath | null): InternalNamePath;
|
|
10
|
+
export declare function getValue<T>(store: T, namePath: InternalNamePath): any;
|
|
11
|
+
export declare function setValue<T>(store: T, namePath: InternalNamePath, value: any, removeIfUndefined?: boolean): T;
|
|
12
|
+
export declare function containsNamePath(namePathList: InternalNamePath[], namePath: InternalNamePath): boolean;
|
|
13
|
+
export declare function setValues<T>(store: T, ...restValues: T[]): T;
|
|
14
|
+
export declare function cloneByNamePathList<T>(store: T, namePathList: InternalNamePath[]): T;
|
|
15
|
+
export declare function matchNamePath(namePath: InternalNamePath, changedNamePath: InternalNamePath | null): boolean;
|