antdv-next 1.3.3 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_util/ActionButton.d.ts +2 -2
- package/dist/_util/ContextIsolator.d.ts +3 -3
- package/dist/_util/hooks/useClosable.d.ts +2 -2
- package/dist/_util/hooks/useMergeSemantic.d.ts +4 -4
- package/dist/_util/hooks/useMergedMask.d.ts +3 -3
- package/dist/_util/instance.d.ts +2 -2
- package/dist/_util/is.d.ts +4 -0
- package/dist/_util/is.js +9 -0
- package/dist/_util/responsiveObserver.d.ts +2 -2
- package/dist/_util/statusUtils.d.ts +1 -1
- package/dist/_util/tools.d.ts +14 -1
- package/dist/_util/tools.js +29 -2
- package/dist/_util/vueNode.d.ts +2 -7
- package/dist/_util/wave/WaveEffect.d.ts +5 -5
- package/dist/_util/wave/index.d.ts +2 -2
- package/dist/_util/wave/style.d.ts +2 -2
- package/dist/_util/zindexContext.d.ts +2 -2
- package/dist/affix/index.d.ts +3 -3
- package/dist/affix/style/index.d.ts +2 -2
- package/dist/alert/Alert.d.ts +2 -2
- package/dist/alert/style/index.d.ts +2 -2
- package/dist/anchor/Anchor.d.ts +2 -2
- package/dist/anchor/AnchorLink.d.ts +2 -2
- package/dist/anchor/style/index.d.ts +2 -2
- package/dist/antd-with-locales.esm.js +12861 -12583
- package/dist/antd-with-locales.js +80 -80
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +10489 -10224
- package/dist/antd.js +77 -77
- package/dist/app/App.d.ts +2 -2
- package/dist/app/context.d.ts +2 -2
- package/dist/app/style/index.d.ts +2 -2
- package/dist/auto-complete/index.d.ts +5 -4
- package/dist/auto-complete/index.js +5 -13
- package/dist/avatar/Avatar.d.ts +2 -2
- package/dist/avatar/AvatarContext.d.ts +2 -2
- package/dist/avatar/AvatarGroup.d.ts +2 -2
- package/dist/avatar/style/index.d.ts +2 -2
- package/dist/badge/Ribbon.d.ts +2 -2
- package/dist/badge/ScrollNumber.d.ts +2 -2
- package/dist/badge/SingleNumber.d.ts +2 -2
- package/dist/badge/index.d.ts +3 -3
- package/dist/badge/style/index.d.ts +2 -2
- package/dist/badge/style/ribbon.d.ts +2 -2
- package/dist/border-beam/BorderBeam.d.ts +3 -3
- package/dist/border-beam/hooks/useBorderSize.d.ts +2 -2
- package/dist/border-beam/style/index.d.ts +2 -2
- package/dist/breadcrumb/Breadcrumb.d.ts +3 -3
- package/dist/breadcrumb/BreadcrumbItem.d.ts +3 -3
- package/dist/breadcrumb/BreadcrumbSeparator.d.ts +2 -2
- package/dist/breadcrumb/style/index.d.ts +2 -2
- package/dist/breadcrumb/useItemRender.d.ts +2 -2
- package/dist/button/Button.d.ts +2 -2
- package/dist/button/DefaultLoadingIcon.d.ts +2 -2
- package/dist/button/IconWrapper.d.ts +2 -2
- package/dist/button/buttonHelper.d.ts +1 -1
- package/dist/button/style/compact.d.ts +4 -4
- package/dist/button/style/index.d.ts +2 -2
- package/dist/calendar/Header.d.ts +2 -2
- package/dist/calendar/generateCalendar.d.ts +2 -2
- package/dist/calendar/generateCalendar.js +3 -2
- package/dist/calendar/index.d.ts +2 -2
- package/dist/calendar/style/index.d.ts +2 -2
- package/dist/card/Card.d.ts +2 -2
- package/dist/card/CardGrid.d.ts +2 -2
- package/dist/card/CardMeta.d.ts +2 -2
- package/dist/card/style/index.d.ts +2 -2
- package/dist/carousel/index.d.ts +2 -2
- package/dist/carousel/style/index.d.ts +2 -2
- package/dist/cascader/Panel.d.ts +2 -2
- package/dist/cascader/hooks/useBase.d.ts +5 -5
- package/dist/cascader/index.d.ts +2 -2
- package/dist/cascader/style/index.d.ts +2 -2
- package/dist/cascader/style/panel.d.ts +2 -2
- package/dist/checkbox/Checkbox.d.ts +2 -2
- package/dist/checkbox/Group.d.ts +2 -2
- package/dist/checkbox/style/index.d.ts +4 -4
- package/dist/collapse/Collapse.d.ts +2 -2
- package/dist/collapse/Collapse.js +7 -2
- package/dist/collapse/CollapsePanel.d.ts +2 -2
- package/dist/collapse/style/index.d.ts +2 -2
- package/dist/color-picker/ColorPicker.d.ts +2 -2
- package/dist/color-picker/ColorPickerPanel.d.ts +2 -2
- package/dist/color-picker/components/ColorAlphaInput.d.ts +2 -2
- package/dist/color-picker/components/ColorClear.d.ts +2 -2
- package/dist/color-picker/components/ColorHexInput.d.ts +2 -2
- package/dist/color-picker/components/ColorHsbInput.d.ts +2 -2
- package/dist/color-picker/components/ColorInput.d.ts +2 -2
- package/dist/color-picker/components/ColorPresets.d.ts +2 -2
- package/dist/color-picker/components/ColorRgbInput.d.ts +2 -2
- package/dist/color-picker/components/ColorSlider.d.ts +3 -3
- package/dist/color-picker/components/ColorSteppers.d.ts +2 -2
- package/dist/color-picker/components/ColorTrigger.d.ts +2 -2
- package/dist/color-picker/components/PanelPicker/GradientColorBar.d.ts +2 -2
- package/dist/color-picker/components/PanelPicker/index.d.ts +2 -2
- package/dist/color-picker/components/PanelPresets.d.ts +2 -2
- package/dist/color-picker/context.d.ts +3 -3
- package/dist/color-picker/hooks/useModeColor.d.ts +2 -2
- package/dist/color-picker/style/index.d.ts +2 -2
- package/dist/components.d.ts +2 -1
- package/dist/components.js +4 -1
- package/dist/config-provider/DisabledContext.d.ts +2 -2
- package/dist/config-provider/SizeContext.d.ts +2 -2
- package/dist/config-provider/context.d.ts +15 -15
- package/dist/config-provider/defaultRenderEmpty.d.ts +2 -2
- package/dist/config-provider/hooks/useCSSVarCls.d.ts +2 -2
- package/dist/config-provider/hooks/useConfig.d.ts +3 -3
- package/dist/config-provider/hooks/useSize.d.ts +2 -2
- package/dist/config-provider/hooks/useTheme.d.ts +2 -2
- package/dist/config-provider/index.d.ts +4 -4
- package/dist/date-picker/PickerButton.d.ts +2 -2
- package/dist/date-picker/generatePicker/SuffixIcon.d.ts +2 -2
- package/dist/date-picker/generatePicker/generateRangePicker.d.ts +2 -2
- package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +7 -7
- package/dist/date-picker/generatePicker/index.d.ts +8 -8
- package/dist/date-picker/generatePicker/useComponents.d.ts +11 -11
- package/dist/date-picker/index.d.ts +13 -13
- package/dist/date-picker/style/index.d.ts +2 -2
- package/dist/date-picker/util.d.ts +3 -3
- package/dist/descriptions/Cell.d.ts +2 -2
- package/dist/descriptions/Cell.js +4 -1
- package/dist/descriptions/Item.d.ts +2 -2
- package/dist/descriptions/Row.d.ts +2 -2
- package/dist/descriptions/hooks/useItems.d.ts +10 -10
- package/dist/descriptions/hooks/useRow.d.ts +2 -2
- package/dist/descriptions/index.d.ts +2 -2
- package/dist/descriptions/style/index.d.ts +2 -2
- package/dist/divider/index.d.ts +2 -2
- package/dist/divider/style/index.d.ts +2 -2
- package/dist/drawer/DrawerPanel.d.ts +2 -2
- package/dist/drawer/index.d.ts +3 -3
- package/dist/drawer/style/index.d.ts +2 -2
- package/dist/drawer/useFocusable.d.ts +2 -2
- package/dist/dropdown/dropdown.d.ts +2 -2
- package/dist/dropdown/style/index.d.ts +2 -2
- package/dist/empty/empty.d.ts +2 -2
- package/dist/empty/index.d.ts +5 -5
- package/dist/empty/simple.d.ts +2 -2
- package/dist/empty/style/index.d.ts +2 -2
- package/dist/flex/index.d.ts +2 -2
- package/dist/flex/style/index.d.ts +2 -2
- package/dist/float-button/BackTop.d.ts +2 -2
- package/dist/float-button/FloatButton.d.ts +2 -2
- package/dist/float-button/FloatButtonGroup.d.ts +2 -2
- package/dist/float-button/PurePanel.d.ts +2 -2
- package/dist/float-button/context.d.ts +3 -3
- package/dist/float-button/style/index.d.ts +2 -2
- package/dist/form/ErrorList.d.ts +2 -2
- package/dist/form/Form.d.ts +4 -4
- package/dist/form/Form.js +52 -9
- package/dist/form/FormItem/ItemHolder.d.ts +3 -3
- package/dist/form/FormItem/StatusProvider.d.ts +2 -2
- package/dist/form/FormItem/index.d.ts +2 -2
- package/dist/form/FormItem/index.js +11 -4
- package/dist/form/FormItemInput.d.ts +2 -2
- package/dist/form/FormItemLabel.d.ts +3 -3
- package/dist/form/context.d.ts +7 -6
- package/dist/form/hooks/useForm.d.ts +28 -1
- package/dist/form/hooks/useForm.js +60 -1
- package/dist/form/hooks/useVariant.d.ts +2 -2
- package/dist/form/index.d.ts +2 -1
- package/dist/form/index.js +4 -1
- package/dist/form/style/fallbackCmp.d.ts +4 -4
- package/dist/form/style/index.d.ts +2 -2
- package/dist/grid/col.d.ts +2 -2
- package/dist/grid/index.d.ts +2 -2
- package/dist/grid/row.d.ts +2 -2
- package/dist/grid/style/index.d.ts +3 -3
- package/dist/image/PreviewGroup.d.ts +12 -12
- package/dist/image/hooks/useMergedPreviewConfig.d.ts +2 -2
- package/dist/image/hooks/usePreviewConfig.d.ts +9 -9
- package/dist/image/index.d.ts +3 -3
- package/dist/image/style/index.d.ts +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/input/Group.d.ts +3 -3
- package/dist/input/Input.d.ts +2 -2
- package/dist/input/OTP/OTPInput.d.ts +3 -3
- package/dist/input/OTP/index.d.ts +2 -2
- package/dist/input/Password.d.ts +2 -2
- package/dist/input/Search.d.ts +2 -2
- package/dist/input/TextArea.d.ts +2 -2
- package/dist/input/index.d.ts +6 -6
- package/dist/input/style/index.d.ts +3 -3
- package/dist/input/style/otp.d.ts +2 -2
- package/dist/input/style/search.d.ts +2 -2
- package/dist/input/style/textarea.d.ts +2 -2
- package/dist/input-number/index.d.ts +2 -2
- package/dist/input-number/style/index.d.ts +2 -2
- package/dist/layout/Sider.d.ts +2 -2
- package/dist/layout/index.d.ts +5 -5
- package/dist/layout/layout.d.ts +5 -5
- package/dist/layout/style/index.d.ts +2 -2
- package/dist/layout/style/sider.d.ts +2 -2
- package/dist/locale/en_GB.js +12 -1
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/useLocale.d.ts +2 -2
- package/dist/masonry/Masonry.d.ts +3 -3
- package/dist/masonry/MasonryItem.d.ts +2 -2
- package/dist/masonry/hooks/usePositions.d.ts +2 -2
- package/dist/masonry/style/index.d.ts +2 -2
- package/dist/mentions/index.d.ts +2 -2
- package/dist/mentions/style/index.d.ts +2 -2
- package/dist/menu/MenuContext.d.ts +3 -3
- package/dist/menu/MenuDivider.d.ts +2 -2
- package/dist/menu/MenuItem.d.ts +2 -2
- package/dist/menu/MenuItemGroup.d.ts +2 -2
- package/dist/menu/OverrideContext.d.ts +3 -3
- package/dist/menu/SubMenu.d.ts +2 -2
- package/dist/menu/index.d.ts +3 -3
- package/dist/menu/menu.d.ts +2 -2
- package/dist/menu/style/index.d.ts +2 -2
- package/dist/menu/style/vertical.js +3 -2
- package/dist/message/PureList.d.ts +3 -3
- package/dist/message/PurePanel.d.ts +3 -3
- package/dist/message/style/index.d.ts +5 -5
- package/dist/message/useMessage.d.ts +3 -3
- package/dist/modal/ConfirmDialog.d.ts +4 -4
- package/dist/modal/ConfirmDialog.js +15 -0
- package/dist/modal/Modal.d.ts +2 -2
- package/dist/modal/Modal.js +5 -0
- package/dist/modal/PurePanel.d.ts +2 -2
- package/dist/modal/PurePanel.js +5 -0
- package/dist/modal/components/ConfirmCancelBtn.d.ts +2 -2
- package/dist/modal/components/ConfirmOkBtn.d.ts +2 -2
- package/dist/modal/components/NormalCancelBtn.d.ts +2 -2
- package/dist/modal/components/NormalOkBtn.d.ts +2 -2
- package/dist/modal/confirm.js +5 -0
- package/dist/modal/shared.d.ts +4 -4
- package/dist/modal/style/confirm.d.ts +4 -4
- package/dist/modal/style/index.d.ts +2 -2
- package/dist/modal/useModal/HookModal.d.ts +3 -3
- package/dist/notification/PureList.d.ts +3 -3
- package/dist/notification/PurePanel.d.ts +3 -3
- package/dist/notification/style/index.d.ts +5 -5
- package/dist/notification/useNotification.d.ts +3 -3
- package/dist/notification/useNotification.js +3 -1
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.d.ts +2 -2
- package/dist/pagination/style/bordered.d.ts +4 -4
- package/dist/pagination/style/index.d.ts +2 -2
- package/dist/popconfirm/PurePanel.d.ts +3 -3
- package/dist/popconfirm/PurePanel.js +3 -2
- package/dist/popconfirm/index.d.ts +3 -3
- package/dist/popconfirm/index.js +3 -2
- package/dist/popconfirm/style/index.d.ts +2 -2
- package/dist/popover/PurePanel.d.ts +4 -4
- package/dist/popover/PurePanel.js +4 -3
- package/dist/popover/index.d.ts +2 -2
- package/dist/popover/index.js +2 -1
- package/dist/popover/style/index.d.ts +2 -2
- package/dist/progress/Circle.d.ts +3 -3
- package/dist/progress/Line.d.ts +3 -3
- package/dist/progress/Steps.d.ts +2 -2
- package/dist/progress/progress.d.ts +2 -2
- package/dist/progress/style/index.d.ts +2 -2
- package/dist/qrcode/QrcodeStatus.d.ts +2 -2
- package/dist/qrcode/index.d.ts +2 -2
- package/dist/qrcode/style/index.d.ts +2 -2
- package/dist/radio/group.d.ts +2 -2
- package/dist/radio/index.d.ts +3 -3
- package/dist/radio/radio.d.ts +2 -2
- package/dist/radio/radioButton.d.ts +2 -2
- package/dist/radio/style/index.d.ts +2 -2
- package/dist/radio/style/index.js +68 -2
- package/dist/rate/index.d.ts +2 -2
- package/dist/rate/style/index.d.ts +2 -2
- package/dist/result/index.d.ts +2 -2
- package/dist/result/noFound.d.ts +2 -2
- package/dist/result/serverError.d.ts +2 -2
- package/dist/result/style/index.d.ts +2 -2
- package/dist/result/unauthorized.d.ts +2 -2
- package/dist/segmented/index.d.ts +2 -2
- package/dist/segmented/style/index.d.ts +2 -2
- package/dist/select/index.d.ts +6 -6
- package/dist/select/style/index.d.ts +2 -2
- package/dist/select/useIcons.d.ts +5 -5
- package/dist/select/usePopupRender.d.ts +2 -2
- package/dist/skeleton/Avatar.d.ts +2 -2
- package/dist/skeleton/Button.d.ts +2 -2
- package/dist/skeleton/Element.d.ts +2 -2
- package/dist/skeleton/Image.d.ts +2 -2
- package/dist/skeleton/Input.d.ts +2 -2
- package/dist/skeleton/Node.d.ts +2 -2
- package/dist/skeleton/Paragraph.d.ts +2 -2
- package/dist/skeleton/Skeleton.d.ts +2 -2
- package/dist/skeleton/Title.d.ts +2 -2
- package/dist/skeleton/style/index.d.ts +2 -2
- package/dist/slider/SliderTooltip.d.ts +3 -3
- package/dist/slider/index.d.ts +2 -2
- package/dist/slider/style/index.d.ts +2 -2
- package/dist/slider/style/index.js +1 -0
- package/dist/space/Addon.d.ts +2 -2
- package/dist/space/Compact.d.ts +6 -6
- package/dist/space/Item.d.ts +2 -2
- package/dist/space/index.d.ts +4 -4
- package/dist/space/style/addon.d.ts +2 -2
- package/dist/space/style/compact.d.ts +2 -2
- package/dist/space/style/index.d.ts +2 -2
- package/dist/spin/Indicator/Looper.d.ts +2 -2
- package/dist/spin/Indicator/Progress.d.ts +2 -2
- package/dist/spin/Indicator/index.d.ts +2 -2
- package/dist/spin/index.d.ts +2 -2
- package/dist/spin/style/index.d.ts +2 -2
- package/dist/spin/usePercent.d.ts +2 -2
- package/dist/splitter/Panel.d.ts +3 -3
- package/dist/splitter/SplitBar.d.ts +2 -2
- package/dist/splitter/Splitter.d.ts +2 -2
- package/dist/splitter/hooks/useResizable.d.ts +2 -2
- package/dist/splitter/hooks/useResize.d.ts +2 -2
- package/dist/splitter/hooks/useSizes.d.ts +2 -2
- package/dist/splitter/index.d.ts +2 -2
- package/dist/splitter/style/index.d.ts +2 -2
- package/dist/splitter/style/index.js +1 -1
- package/dist/statistic/Number.d.ts +2 -2
- package/dist/statistic/Statistic.d.ts +2 -2
- package/dist/statistic/Timer.d.ts +2 -2
- package/dist/statistic/index.d.ts +2 -2
- package/dist/statistic/style/index.d.ts +2 -2
- package/dist/steps/PanelArrow.d.ts +2 -2
- package/dist/steps/ProgressIcon.d.ts +2 -2
- package/dist/steps/index.d.ts +2 -2
- package/dist/steps/style/index.d.ts +2 -2
- package/dist/style/index.js +14 -5
- package/dist/switch/index.d.ts +2 -2
- package/dist/switch/style/index.d.ts +2 -2
- package/dist/table/Column.d.ts +2 -2
- package/dist/table/ColumnGroup.d.ts +2 -2
- package/dist/table/ExpandIcon.d.ts +2 -2
- package/dist/table/TableMeasureRowContext.d.ts +3 -3
- package/dist/table/hooks/useFilter/FilterDropdown.d.ts +3 -3
- package/dist/table/hooks/useFilter/FilterSearch.d.ts +2 -2
- package/dist/table/hooks/useFilter/FilterWrapper.d.ts +3 -3
- package/dist/table/hooks/usePagination.d.ts +2 -2
- package/dist/table/hooks/useSelection.d.ts +2 -2
- package/dist/table/hooks/useSorter.d.ts +2 -2
- package/dist/table/style/index.d.ts +2 -2
- package/dist/tabs/TabPane.d.ts +2 -2
- package/dist/tabs/hooks/useLegacyItems.d.ts +2 -2
- package/dist/tabs/index.d.ts +2 -2
- package/dist/tabs/style/index.d.ts +2 -2
- package/dist/tag/CheckableTag.d.ts +2 -2
- package/dist/tag/CheckableTagGroup.d.ts +2 -2
- package/dist/tag/hooks/useColor.d.ts +2 -2
- package/dist/tag/index.d.ts +2 -2
- package/dist/tag/style/index.d.ts +2 -2
- package/dist/tag/style/presetCmp.d.ts +4 -4
- package/dist/tag/style/statusCmp.d.ts +4 -4
- package/dist/theme/context.d.ts +2 -2
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/util/alias.js +3 -3
- package/dist/theme/util/genStyleUtils.d.ts +6 -6
- package/dist/time-picker/index.d.ts +4 -4
- package/dist/timeline/Timeline.d.ts +2 -2
- package/dist/timeline/TimelineItem.d.ts +2 -2
- package/dist/timeline/style/index.d.ts +2 -2
- package/dist/tooltip/PurePanel.d.ts +2 -2
- package/dist/tooltip/UniqueProvider/MotionContent.d.ts +2 -2
- package/dist/tooltip/UniqueProvider/index.d.ts +2 -2
- package/dist/tooltip/index.d.ts +2 -2
- package/dist/tooltip/style/index.d.ts +2 -2
- package/dist/tour/PurePanel.d.ts +2 -2
- package/dist/tour/index.d.ts +2 -2
- package/dist/tour/panelRender.d.ts +2 -2
- package/dist/tour/style/index.d.ts +2 -2
- package/dist/tour/style/index.js +1 -0
- package/dist/transfer/Actions.d.ts +2 -2
- package/dist/transfer/ListBody.d.ts +2 -2
- package/dist/transfer/ListItem.d.ts +2 -2
- package/dist/transfer/Section.d.ts +2 -2
- package/dist/transfer/Transfer.d.ts +2 -2
- package/dist/transfer/hooks/useData.d.ts +2 -2
- package/dist/transfer/search.d.ts +2 -2
- package/dist/transfer/style/index.d.ts +2 -2
- package/dist/tree/DirectoryTree.d.ts +2 -2
- package/dist/tree/Tree.d.ts +2 -2
- package/dist/tree/style/index.d.ts +2 -2
- package/dist/tree/utils/dropIndicator.d.ts +2 -2
- package/dist/tree/utils/iconUtil.d.ts +2 -2
- package/dist/tree-select/index.d.ts +3 -3
- package/dist/tree-select/style/index.d.ts +2 -2
- package/dist/typography/Base/CopyBtn.d.ts +2 -2
- package/dist/typography/Base/Ellipsis.d.ts +3 -3
- package/dist/typography/Base/EllipsisTooltip.d.ts +2 -2
- package/dist/typography/Base/index.d.ts +2 -2
- package/dist/typography/Editable.d.ts +2 -2
- package/dist/typography/Link.d.ts +2 -2
- package/dist/typography/Paragraph.d.ts +2 -2
- package/dist/typography/Text.d.ts +2 -2
- package/dist/typography/Title.d.ts +2 -2
- package/dist/typography/Typography.d.ts +2 -2
- package/dist/typography/hooks/useCopyClick.d.ts +3 -3
- package/dist/typography/hooks/useMergedConfig.d.ts +2 -2
- package/dist/typography/hooks/useTooltipProps.d.ts +2 -2
- package/dist/typography/index.d.ts +5 -5
- package/dist/typography/style/index.d.ts +2 -2
- package/dist/upload/Dragger.d.ts +3 -3
- package/dist/upload/Upload.d.ts +2 -2
- package/dist/upload/Upload.js +6 -2
- package/dist/upload/UploadList/ListItem.d.ts +2 -2
- package/dist/upload/UploadList/index.d.ts +2 -2
- package/dist/upload/index.d.ts +3 -3
- package/dist/upload/style/index.d.ts +2 -2
- package/dist/watermark/context.d.ts +2 -2
- package/dist/watermark/index.d.ts +2 -2
- package/package.json +8 -8
- package/web-tags.json +944 -924
- package/web-types.json +2926 -2886
|
@@ -5,7 +5,7 @@ import { FormItemInputProps } from "../FormItemInput.js";
|
|
|
5
5
|
import { BaseFormItemProps, FeedbackIcons, FormItemProps, ValidateStatus } from "./index.js";
|
|
6
6
|
import { ComponentBaseProps } from "../../config-provider/context.js";
|
|
7
7
|
import { ReportMetaChange } from "../context.js";
|
|
8
|
-
import * as
|
|
8
|
+
import * as vue345 from "vue";
|
|
9
9
|
|
|
10
10
|
//#region src/form/FormItem/ItemHolder.d.ts
|
|
11
11
|
type ItemHolderProps = FormItemProps & {
|
|
@@ -16,7 +16,7 @@ type ItemHolderProps = FormItemProps & {
|
|
|
16
16
|
isRequired?: boolean;
|
|
17
17
|
onSubItemMetaChange: ReportMetaChange;
|
|
18
18
|
};
|
|
19
|
-
declare const ItemHolder:
|
|
19
|
+
declare const ItemHolder: vue345.DefineSetupFnComponent<ItemHolderProps, {}, {}, BaseFormItemProps & ComponentBaseProps & Omit<FormItemLabelProps, "requiredMark"> & FormItemInputProps & {
|
|
20
20
|
noStyle?: boolean;
|
|
21
21
|
id?: string;
|
|
22
22
|
hasFeedback?: boolean | {
|
|
@@ -34,6 +34,6 @@ declare const ItemHolder: vue430.DefineSetupFnComponent<ItemHolderProps, {}, {},
|
|
|
34
34
|
fieldId?: string;
|
|
35
35
|
isRequired?: boolean;
|
|
36
36
|
onSubItemMetaChange: ReportMetaChange;
|
|
37
|
-
} & {},
|
|
37
|
+
} & {}, vue345.PublicProps>;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { ItemHolderProps, ItemHolder as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, NamePath } from "../types.js";
|
|
2
2
|
import { FeedbackIcons, ValidateStatus } from "./index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue871 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/form/FormItem/StatusProvider.d.ts
|
|
6
6
|
interface StatusProviderProps {
|
|
@@ -15,6 +15,6 @@ interface StatusProviderProps {
|
|
|
15
15
|
noStyle?: boolean;
|
|
16
16
|
name?: NamePath;
|
|
17
17
|
}
|
|
18
|
-
declare const StatusProvider:
|
|
18
|
+
declare const StatusProvider: vue871.DefineSetupFnComponent<StatusProviderProps, {}, {}, StatusProviderProps & {}, vue871.PublicProps>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { StatusProviderProps, StatusProvider as default };
|
|
@@ -3,7 +3,7 @@ import { NamePath, Rule, TriggerType } from "../types.js";
|
|
|
3
3
|
import { FormItemLayout } from "../Form.js";
|
|
4
4
|
import { FormItemInputProps } from "../FormItemInput.js";
|
|
5
5
|
import { ComponentBaseProps } from "../../config-provider/context.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue483 from "vue";
|
|
7
7
|
import { SlotsType } from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/form/FormItem/index.d.ts
|
|
@@ -44,6 +44,6 @@ interface FormItemSlots {
|
|
|
44
44
|
help?: () => any;
|
|
45
45
|
}
|
|
46
46
|
interface InternalFormItemProps extends FormItemProps, FormItemEmitsProps {}
|
|
47
|
-
declare const InternalFormItem:
|
|
47
|
+
declare const InternalFormItem: vue483.DefineSetupFnComponent<InternalFormItemProps, FormItemEmits, SlotsType<FormItemSlots>, InternalFormItemProps, vue483.PublicProps>;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { BaseFormItemProps, FeedbackIcons, FormItemEmits, FormItemEmitsProps, FormItemProps, FormItemSlots, ValidateStatus, InternalFormItem as default };
|
|
@@ -123,12 +123,13 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
123
123
|
const validateRulesInner = (options = {}) => {
|
|
124
124
|
if (!namePath.value.length) return Promise.resolve();
|
|
125
125
|
let filteredRules = mergedRules.value;
|
|
126
|
-
const { triggerName } = options;
|
|
126
|
+
const { triggerName, validateOnly = false } = options;
|
|
127
127
|
if (triggerName) if (mergedValidateTrigger.value === false) filteredRules = [];
|
|
128
128
|
else filteredRules = filteredRules.filter((rule) => {
|
|
129
129
|
return getRuleTriggerList(rule).includes(triggerName);
|
|
130
130
|
});
|
|
131
131
|
if (!filteredRules.length) {
|
|
132
|
+
if (validateOnly) return Promise.resolve();
|
|
132
133
|
errors.value = [];
|
|
133
134
|
warnings.value = [];
|
|
134
135
|
updateMeta({
|
|
@@ -141,14 +142,19 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
141
142
|
formContext.value?.triggerFieldsChange?.([namePath.value]);
|
|
142
143
|
return Promise.resolve();
|
|
143
144
|
}
|
|
144
|
-
updateMeta({
|
|
145
|
+
if (!validateOnly) updateMeta({
|
|
145
146
|
validating: true,
|
|
146
147
|
validated: true
|
|
147
148
|
});
|
|
148
|
-
|
|
149
|
+
const promise = validateRules(namePath.value, fieldValue.value, filteredRules, {
|
|
149
150
|
validateMessages: formContext.value?.validateMessages,
|
|
150
151
|
...options
|
|
151
|
-
}, props.validateFirst ?? false, messageVariables.value)
|
|
152
|
+
}, props.validateFirst ?? false, messageVariables.value);
|
|
153
|
+
if (validateOnly) return promise.catch((e) => e).then((results = []) => {
|
|
154
|
+
if (results.some(({ rule: { warningOnly }, errors: ruleErrors }) => !warningOnly && ruleErrors.length)) return Promise.reject(results);
|
|
155
|
+
return results;
|
|
156
|
+
});
|
|
157
|
+
return promise.catch((e) => e).then((results = []) => {
|
|
152
158
|
const mergedErrors = [];
|
|
153
159
|
const mergedWarnings = [];
|
|
154
160
|
results.forEach(({ rule: { warningOnly }, errors: ruleErrors }) => {
|
|
@@ -251,6 +257,7 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
251
257
|
getValue: () => fieldValue.value,
|
|
252
258
|
getMeta: () => meta.value,
|
|
253
259
|
rules: () => mergedRules.value,
|
|
260
|
+
isFieldDirty: () => meta.value.touched || meta.value.validated || initialValue.value !== void 0,
|
|
254
261
|
validateRules: (options) => validateRulesInner(options),
|
|
255
262
|
resetField,
|
|
256
263
|
clearValidate,
|
|
@@ -2,7 +2,7 @@ import { VueNode as VueNode$1 } from "../_util/type.js";
|
|
|
2
2
|
import { ColProps } from "../grid/col.js";
|
|
3
3
|
import "../grid/index.js";
|
|
4
4
|
import { ValidateStatus } from "./FormItem/index.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue821 from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/form/FormItemInput.d.ts
|
|
8
8
|
interface FormItemInputMiscProps {
|
|
@@ -21,6 +21,6 @@ interface FormItemInputProps {
|
|
|
21
21
|
fieldId?: string;
|
|
22
22
|
label?: VueNode$1;
|
|
23
23
|
}
|
|
24
|
-
declare const FormItemInput:
|
|
24
|
+
declare const FormItemInput: vue821.DefineSetupFnComponent<FormItemInputProps & FormItemInputMiscProps, {}, {}, FormItemInputProps & FormItemInputMiscProps & {}, vue821.PublicProps>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { FormItemInputProps, FormItemInput as default };
|
|
@@ -4,7 +4,7 @@ import "../grid/index.js";
|
|
|
4
4
|
import { TooltipProps } from "../tooltip/index.js";
|
|
5
5
|
import { FormLabelAlign } from "./interface.js";
|
|
6
6
|
import { RequiredMark } from "./Form.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue458 from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/form/FormItemLabel.d.ts
|
|
10
10
|
type FormTooltipProps = TooltipProps & {
|
|
@@ -27,12 +27,12 @@ interface FormItemLabelProps {
|
|
|
27
27
|
tooltip?: FormItemTooltipType;
|
|
28
28
|
vertical?: boolean;
|
|
29
29
|
}
|
|
30
|
-
declare const FormItemLabel:
|
|
30
|
+
declare const FormItemLabel: vue458.DefineSetupFnComponent<FormItemLabelProps & {
|
|
31
31
|
required?: boolean;
|
|
32
32
|
prefixCls: string;
|
|
33
33
|
}, {}, {}, FormItemLabelProps & {
|
|
34
34
|
required?: boolean;
|
|
35
35
|
prefixCls: string;
|
|
36
|
-
} & {},
|
|
36
|
+
} & {}, vue458.PublicProps>;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { ColPropsWithClass, FormItemLabelProps, FormItemTooltipType, FormTooltipProps, FormItemLabel as default };
|
package/dist/form/context.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { InternalNamePath, Meta, NamePath, Rule, ValidateMessages } from "./type
|
|
|
6
6
|
import { FormLayout, FormSemanticName, RequiredMark } from "./Form.js";
|
|
7
7
|
import { FeedbackIcons, ValidateStatus } from "./FormItem/index.js";
|
|
8
8
|
import { Variant } from "../config-provider/context.js";
|
|
9
|
-
import * as
|
|
9
|
+
import * as vue1 from "vue";
|
|
10
10
|
import { Ref } from "vue";
|
|
11
11
|
import { Key } from "@v-c/util/dist/type";
|
|
12
12
|
|
|
@@ -17,6 +17,7 @@ interface FormFieldRegister {
|
|
|
17
17
|
getValue: () => any;
|
|
18
18
|
getMeta: () => Meta;
|
|
19
19
|
rules?: () => Rule[];
|
|
20
|
+
isFieldDirty?: () => boolean;
|
|
20
21
|
validateRules: (options?: Record<string, any>) => Promise<void>;
|
|
21
22
|
resetField: () => void;
|
|
22
23
|
clearValidate: () => void;
|
|
@@ -61,7 +62,7 @@ interface FormItemPrefixContextProps {
|
|
|
61
62
|
status?: ValidateStatus;
|
|
62
63
|
}
|
|
63
64
|
declare function useFormItemPrefixContextProvider(value: Ref<FormItemPrefixContextProps>): void;
|
|
64
|
-
declare const FormItemPrefixContextProvider:
|
|
65
|
+
declare const FormItemPrefixContextProvider: vue1.DefineSetupFnComponent<FormItemPrefixContextProps, {}, {}, FormItemPrefixContextProps & {}, vue1.PublicProps>;
|
|
65
66
|
declare function useFormItemPrefixContext(): Ref<{
|
|
66
67
|
prefixCls: string;
|
|
67
68
|
}, {
|
|
@@ -101,19 +102,19 @@ declare function useFormItemInputContext(): Ref<{
|
|
|
101
102
|
/** `noStyle` Form Item Context. Used for error collection */
|
|
102
103
|
type ReportMetaChange = (meta: Meta, uniqueKeys: Key[]) => void;
|
|
103
104
|
declare function useNoStyleItemContextProvider(value: ReportMetaChange): void;
|
|
104
|
-
declare const NoStyleItemContextProvider:
|
|
105
|
+
declare const NoStyleItemContextProvider: vue1.DefineSetupFnComponent<{
|
|
105
106
|
value: ReportMetaChange;
|
|
106
107
|
}, {}, {}, {
|
|
107
108
|
value: ReportMetaChange;
|
|
108
|
-
} & {},
|
|
109
|
+
} & {}, vue1.PublicProps>;
|
|
109
110
|
declare function useNoStyleItemContext(): ReportMetaChange | null;
|
|
110
|
-
declare const NoFormStyle:
|
|
111
|
+
declare const NoFormStyle: vue1.DefineSetupFnComponent<{
|
|
111
112
|
override?: boolean;
|
|
112
113
|
status?: boolean;
|
|
113
114
|
}, {}, {}, {
|
|
114
115
|
override?: boolean;
|
|
115
116
|
status?: boolean;
|
|
116
|
-
} & {},
|
|
117
|
+
} & {}, vue1.PublicProps>;
|
|
117
118
|
interface FormItemProviderProps {
|
|
118
119
|
fieldId: Ref<string | undefined>;
|
|
119
120
|
triggerChange: () => void;
|
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
import { NamePath } from "../types.js";
|
|
2
|
+
import { FormInstance } from "../Form.js";
|
|
3
|
+
import { InjectionKey, ShallowRef } from "vue";
|
|
2
4
|
|
|
3
5
|
//#region src/form/hooks/useForm.d.ts
|
|
4
6
|
declare function toNamePathStr(name: NamePath): string;
|
|
7
|
+
interface FormHookEntry {
|
|
8
|
+
name?: string;
|
|
9
|
+
instanceRef: ShallowRef<FormInstance | undefined>;
|
|
10
|
+
/** Current owner of this entry: a Form component uid, or 'explicit' for template ref binding */
|
|
11
|
+
boundBy?: number | 'explicit';
|
|
12
|
+
}
|
|
13
|
+
interface FormHookRegistry {
|
|
14
|
+
entries: FormHookEntry[];
|
|
15
|
+
}
|
|
16
|
+
declare const FormHookRegistryKey: InjectionKey<FormHookRegistry>;
|
|
17
|
+
declare const FormInstanceContextKey: InjectionKey<FormInstance>;
|
|
18
|
+
type FormHookInstance = FormInstance & ((instance: any) => void);
|
|
19
|
+
/**
|
|
20
|
+
* Create a form instance proxy before the Form component mounts.
|
|
21
|
+
*
|
|
22
|
+
* Binding (priority order):
|
|
23
|
+
* 1. Explicit: pass it as a template ref — `<Form :ref="form">`.
|
|
24
|
+
* 2. By name: `useForm('login')` connects to `<Form name="login">`.
|
|
25
|
+
* 3. Single/ordered fallback: unnamed instances connect to descendant Forms in declaration order.
|
|
26
|
+
*/
|
|
27
|
+
declare function useForm(name?: string): FormHookInstance;
|
|
28
|
+
/**
|
|
29
|
+
* Get the closest Form instance from context. Only usable inside a Form.
|
|
30
|
+
*/
|
|
31
|
+
declare function useFormInstance(): FormInstance;
|
|
5
32
|
//#endregion
|
|
6
|
-
export { toNamePathStr };
|
|
33
|
+
export { FormHookEntry, FormHookInstance, FormHookRegistry, FormHookRegistryKey, FormInstanceContextKey, toNamePathStr, useForm, useFormInstance };
|
|
@@ -1,9 +1,68 @@
|
|
|
1
1
|
import { toArray } from "../util.js";
|
|
2
|
+
import { getCurrentInstance, inject, provide, shallowRef } from "vue";
|
|
3
|
+
import { warning } from "@v-c/util/dist/warning";
|
|
2
4
|
|
|
3
5
|
//#region src/form/hooks/useForm.ts
|
|
4
6
|
function toNamePathStr(name) {
|
|
5
7
|
return toArray(name).join("_");
|
|
6
8
|
}
|
|
9
|
+
const FormHookRegistryKey = Symbol("AFormHookRegistry");
|
|
10
|
+
const FormInstanceContextKey = Symbol("AFormInstance");
|
|
11
|
+
const registryMap = /* @__PURE__ */ new WeakMap();
|
|
12
|
+
function useFormHookRegistry() {
|
|
13
|
+
const vm = getCurrentInstance();
|
|
14
|
+
if (!vm) return { entries: [] };
|
|
15
|
+
let registry = registryMap.get(vm);
|
|
16
|
+
if (!registry) {
|
|
17
|
+
registry = { entries: [] };
|
|
18
|
+
registryMap.set(vm, registry);
|
|
19
|
+
provide(FormHookRegistryKey, registry);
|
|
20
|
+
}
|
|
21
|
+
return registry;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Create a form instance proxy before the Form component mounts.
|
|
25
|
+
*
|
|
26
|
+
* Binding (priority order):
|
|
27
|
+
* 1. Explicit: pass it as a template ref — `<Form :ref="form">`.
|
|
28
|
+
* 2. By name: `useForm('login')` connects to `<Form name="login">`.
|
|
29
|
+
* 3. Single/ordered fallback: unnamed instances connect to descendant Forms in declaration order.
|
|
30
|
+
*/
|
|
31
|
+
function useForm(name) {
|
|
32
|
+
const instanceRef = shallowRef();
|
|
33
|
+
const registry = useFormHookRegistry();
|
|
34
|
+
const entry = {
|
|
35
|
+
name,
|
|
36
|
+
instanceRef
|
|
37
|
+
};
|
|
38
|
+
registry.entries.push(entry);
|
|
39
|
+
const bindTemplateRef = (exposed) => {
|
|
40
|
+
if (exposed) {
|
|
41
|
+
entry.boundBy = "explicit";
|
|
42
|
+
instanceRef.value = exposed;
|
|
43
|
+
} else if (entry.boundBy === "explicit") {
|
|
44
|
+
entry.boundBy = void 0;
|
|
45
|
+
instanceRef.value = void 0;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
return new Proxy(bindTemplateRef, { get(_target, key) {
|
|
49
|
+
if (key === "__instanceRef") return instanceRef;
|
|
50
|
+
if (typeof key === "symbol" || key === "then" || key.startsWith("__v_")) return;
|
|
51
|
+
const instance = instanceRef.value;
|
|
52
|
+
if (!instance) {
|
|
53
|
+
warning(false, "Instance created by `useForm` is not connected to any Form element. Forget to bind it via template ref or a matching `name`?");
|
|
54
|
+
return () => void 0;
|
|
55
|
+
}
|
|
56
|
+
const value = instance[key];
|
|
57
|
+
return typeof value === "function" ? value.bind(instance) : value;
|
|
58
|
+
} });
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Get the closest Form instance from context. Only usable inside a Form.
|
|
62
|
+
*/
|
|
63
|
+
function useFormInstance() {
|
|
64
|
+
return inject(FormInstanceContextKey, void 0);
|
|
65
|
+
}
|
|
7
66
|
|
|
8
67
|
//#endregion
|
|
9
|
-
export { toNamePathStr };
|
|
68
|
+
export { FormHookRegistryKey, FormInstanceContextKey, toNamePathStr, useForm, useFormInstance };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ConfigProviderProps } from "../../config-provider/define.js";
|
|
2
2
|
import { Variant } from "../../config-provider/context.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue334 from "vue";
|
|
4
4
|
import { Ref } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/form/hooks/useVariant.d.ts
|
|
7
7
|
type VariantComponents = keyof Pick<ConfigProviderProps, 'input' | 'inputNumber' | 'textArea' | 'mentions' | 'select' | 'cascader' | 'treeSelect' | 'datePicker' | 'timePicker' | 'rangePicker' | 'card'>;
|
|
8
|
-
declare function useVariant(component: VariantComponents, variant?: Ref<Variant | undefined>, legacyBordered?: Ref<boolean | undefined> | boolean): readonly [
|
|
8
|
+
declare function useVariant(component: VariantComponents, variant?: Ref<Variant | undefined>, legacyBordered?: Ref<boolean | undefined> | boolean): readonly [vue334.ComputedRef<"outlined" | "borderless" | "filled" | "underlined">, vue334.ComputedRef<boolean>];
|
|
9
9
|
declare const useVariants: typeof useVariant;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { useVariant as default, useVariants };
|
package/dist/form/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import InternalForm, { FormEmits, FormInstance, FormProps, FormSlots } from "./Form.js";
|
|
2
2
|
import InternalFormItem, { FormItemEmits, FormItemProps, FormItemSlots } from "./FormItem/index.js";
|
|
3
|
-
|
|
3
|
+
import { FormHookInstance, useForm, useFormInstance } from "./hooks/useForm.js";
|
|
4
|
+
export { type FormEmits, type FormHookInstance, type FormInstance, InternalFormItem as FormItem, type FormItemEmits, type FormItemProps, type FormItemSlots, type FormProps, type FormSlots, InternalForm as default, useForm, useFormInstance };
|
package/dist/form/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useForm, useFormInstance } from "./hooks/useForm.js";
|
|
1
2
|
import Form_default from "./Form.js";
|
|
2
3
|
import FormItem_default from "./FormItem/index.js";
|
|
3
4
|
|
|
@@ -6,7 +7,9 @@ Form_default.install = (app) => {
|
|
|
6
7
|
app.component(Form_default.name, Form_default);
|
|
7
8
|
app.component(FormItem_default.name, FormItem_default);
|
|
8
9
|
};
|
|
10
|
+
Form_default.useForm = useForm;
|
|
11
|
+
Form_default.useFormInstance = useFormInstance;
|
|
9
12
|
var form_default = Form_default;
|
|
10
13
|
|
|
11
14
|
//#endregion
|
|
12
|
-
export { FormItem_default as FormItem, form_default as default };
|
|
15
|
+
export { FormItem_default as FormItem, form_default as default, useForm, useFormInstance };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue466 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/form/style/fallbackCmp.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Fallback of IE.
|
|
6
6
|
* Safe to remove.
|
|
7
7
|
*/
|
|
8
|
-
declare const _default:
|
|
8
|
+
declare const _default: vue466.DefineComponent<vue466.ExtractPropTypes<{
|
|
9
9
|
prefixCls: StringConstructor;
|
|
10
10
|
rootCls: StringConstructor;
|
|
11
|
-
}>, () => null, {}, {}, {},
|
|
11
|
+
}>, () => null, {}, {}, {}, vue466.ComponentOptionsMixin, vue466.ComponentOptionsMixin, {}, string, vue466.PublicProps, Readonly<vue466.ExtractPropTypes<{
|
|
12
12
|
prefixCls: StringConstructor;
|
|
13
13
|
rootCls: StringConstructor;
|
|
14
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
14
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, vue466.ComponentProvideOptions, true, {}, any>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { _default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FullToken, GenStyleFn, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
2
2
|
import "../../theme/internal.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue399 from "vue";
|
|
4
4
|
import { CSSProperties } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/form/style/index.d.ts
|
|
@@ -74,6 +74,6 @@ interface FormToken extends FullToken<'Form'> {
|
|
|
74
74
|
}
|
|
75
75
|
declare const prepareComponentToken: GetDefaultToken<'Form'>;
|
|
76
76
|
declare function prepareToken(token: Parameters<GenStyleFn<'Form'>>[0], rootPrefixCls: string): FormToken;
|
|
77
|
-
declare const _default: (prefixCls:
|
|
77
|
+
declare const _default: (prefixCls: vue399.Ref<string>, rootCls?: vue399.Ref<string | undefined>) => readonly [vue399.Ref<string, string>, vue399.ComputedRef<string | undefined>];
|
|
78
78
|
//#endregion
|
|
79
79
|
export { ComponentToken, FormToken, _default as default, prepareComponentToken, prepareToken };
|
package/dist/grid/col.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue79 from "vue";
|
|
2
2
|
import { LiteralUnion } from "@v-c/util/dist/type";
|
|
3
3
|
|
|
4
4
|
//#region src/grid/col.d.ts
|
|
@@ -28,6 +28,6 @@ interface ColProps {
|
|
|
28
28
|
xxl?: ColSpanType | ColSize;
|
|
29
29
|
xxxl?: ColSpanType | ColSize;
|
|
30
30
|
}
|
|
31
|
-
declare const Col:
|
|
31
|
+
declare const Col: vue79.DefineSetupFnComponent<ColProps, {}, {}, ColProps & {}, vue79.PublicProps>;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { ColProps, ColSize, Col as default };
|
package/dist/grid/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Col, { ColProps, ColSize } from "./col.js";
|
|
2
2
|
import Row, { RowProps } from "./row.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue60 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/grid/index.d.ts
|
|
6
|
-
declare function useBreakpoint():
|
|
6
|
+
declare function useBreakpoint(): vue60.Ref<{
|
|
7
7
|
xxxl?: boolean | undefined;
|
|
8
8
|
xxl?: boolean | undefined;
|
|
9
9
|
xl?: boolean | undefined;
|
package/dist/grid/row.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Breakpoint } from "../_util/responsiveObserver.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue151 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/grid/row.d.ts
|
|
5
5
|
declare const _RowAligns: readonly ["top", "middle", "bottom", "stretch"];
|
|
@@ -15,6 +15,6 @@ interface RowProps {
|
|
|
15
15
|
prefixCls?: string;
|
|
16
16
|
wrap?: boolean;
|
|
17
17
|
}
|
|
18
|
-
declare const Row:
|
|
18
|
+
declare const Row: vue151.DefineSetupFnComponent<RowProps, {}, {}, RowProps & {}, vue151.PublicProps>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { Gutter, RowProps, Row as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AliasToken } from "../../theme/interface/alias.js";
|
|
2
2
|
import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
3
3
|
import "../../theme/internal.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue813 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/grid/style/index.d.ts
|
|
7
7
|
interface ComponentToken {}
|
|
8
8
|
declare const prepareRowComponentToken: GetDefaultToken<'Grid'>;
|
|
9
9
|
declare const prepareColComponentToken: GetDefaultToken<'Grid'>;
|
|
10
|
-
declare const useRowStyle: (prefixCls:
|
|
10
|
+
declare const useRowStyle: (prefixCls: vue813.Ref<string>, rootCls?: vue813.Ref<string | undefined>) => readonly [vue813.Ref<string, string>, vue813.ComputedRef<string | undefined>];
|
|
11
11
|
declare function getMediaSize(token: AliasToken): {
|
|
12
12
|
readonly xs: number;
|
|
13
13
|
readonly sm: number;
|
|
@@ -17,6 +17,6 @@ declare function getMediaSize(token: AliasToken): {
|
|
|
17
17
|
readonly xxl: number;
|
|
18
18
|
readonly xxxl: number;
|
|
19
19
|
};
|
|
20
|
-
declare const useColStyle: (prefixCls:
|
|
20
|
+
declare const useColStyle: (prefixCls: vue813.Ref<string>, rootCls?: vue813.Ref<string | undefined>) => readonly [vue813.Ref<string, string>, vue813.ComputedRef<string | undefined>];
|
|
21
21
|
//#endregion
|
|
22
22
|
export { ComponentToken, getMediaSize, prepareColComponentToken, prepareRowComponentToken, useColStyle, useRowStyle };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { MaskType } from "../_util/hooks/useMergedMask.js";
|
|
2
2
|
import "../_util/hooks/index.js";
|
|
3
3
|
import { DeprecatedPreviewConfig, ImageClassNamesType, ImageStylesType } from "./index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue44 from "vue";
|
|
5
5
|
import { PreviewGroupProps as PreviewGroupProps$1 } from "@v-c/image";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue_jsx_runtime1 from "vue/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/image/PreviewGroup.d.ts
|
|
9
9
|
declare const icons: {
|
|
10
|
-
rotateLeft:
|
|
11
|
-
rotateRight:
|
|
12
|
-
zoomIn:
|
|
13
|
-
zoomOut:
|
|
14
|
-
close:
|
|
15
|
-
left:
|
|
16
|
-
right:
|
|
17
|
-
flipX:
|
|
18
|
-
flipY:
|
|
10
|
+
rotateLeft: vue_jsx_runtime1.JSX.Element;
|
|
11
|
+
rotateRight: vue_jsx_runtime1.JSX.Element;
|
|
12
|
+
zoomIn: vue_jsx_runtime1.JSX.Element;
|
|
13
|
+
zoomOut: vue_jsx_runtime1.JSX.Element;
|
|
14
|
+
close: vue_jsx_runtime1.JSX.Element;
|
|
15
|
+
left: vue_jsx_runtime1.JSX.Element;
|
|
16
|
+
right: vue_jsx_runtime1.JSX.Element;
|
|
17
|
+
flipX: vue_jsx_runtime1.JSX.Element;
|
|
18
|
+
flipY: vue_jsx_runtime1.JSX.Element;
|
|
19
19
|
};
|
|
20
20
|
type OriginPreviewConfig = NonNullable<Exclude<PreviewGroupProps$1['preview'], boolean>>;
|
|
21
21
|
type GroupPreviewConfig = OriginPreviewConfig & DeprecatedPreviewConfig & {
|
|
@@ -27,6 +27,6 @@ interface PreviewGroupProps extends Omit<PreviewGroupProps$1, 'preview' | 'style
|
|
|
27
27
|
classes?: ImageClassNamesType;
|
|
28
28
|
styles?: ImageStylesType;
|
|
29
29
|
}
|
|
30
|
-
declare const InternalPreviewGroup:
|
|
30
|
+
declare const InternalPreviewGroup: vue44.DefineSetupFnComponent<PreviewGroupProps, {}, {}, PreviewGroupProps & {}, vue44.PublicProps>;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { GroupPreviewConfig, PreviewGroupProps, InternalPreviewGroup as default, icons };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { GroupPreviewConfig } from "../PreviewGroup.js";
|
|
2
2
|
import { PreviewConfig } from "../index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue1052 from "vue";
|
|
4
4
|
import { Ref } from "vue";
|
|
5
5
|
import * as _v_c_util0 from "@v-c/util";
|
|
6
6
|
import * as _v_c_image_dist_Preview_index_js0 from "@v-c/image/dist/Preview/index.js";
|
|
7
7
|
import * as _v_c_portal_dist_Portal_js0 from "@v-c/portal/dist/Portal.js";
|
|
8
8
|
|
|
9
9
|
//#region src/image/hooks/useMergedPreviewConfig.d.ts
|
|
10
|
-
declare function useMergedPreviewConfig<T extends PreviewConfig | GroupPreviewConfig>(previewConfig: Ref<T>, contextPreviewConfig: Ref<T>, prefixCls: Ref<string>, mergedRootClassName: Ref<string>, getContextPopupContainer: PreviewConfig['getContainer'], icons: Ref<PreviewConfig['icons']>, defaultCover?: Ref<any>):
|
|
10
|
+
declare function useMergedPreviewConfig<T extends PreviewConfig | GroupPreviewConfig>(previewConfig: Ref<T>, contextPreviewConfig: Ref<T>, prefixCls: Ref<string>, mergedRootClassName: Ref<string>, getContextPopupContainer: PreviewConfig['getContainer'], icons: Ref<PreviewConfig['icons']>, defaultCover?: Ref<any>): vue1052.ComputedRef<{
|
|
11
11
|
motionName: string;
|
|
12
12
|
} & T & {
|
|
13
13
|
icons: _v_c_image_dist_Preview_index_js0.OperationIcons | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GroupPreviewConfig } from "../PreviewGroup.js";
|
|
2
2
|
import { PreviewConfig } from "../index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue1053 from "vue";
|
|
4
4
|
import { Ref } from "vue";
|
|
5
5
|
import * as _v_c_util0 from "@v-c/util";
|
|
6
6
|
import * as _v_c_image0 from "@v-c/image";
|
|
@@ -9,26 +9,26 @@ import * as _v_c_portal_dist_Portal_js0 from "@v-c/portal/dist/Portal.js";
|
|
|
9
9
|
import * as _v_c_image_dist_hooks_useImageTransform_js0 from "@v-c/image/dist/hooks/useImageTransform.js";
|
|
10
10
|
|
|
11
11
|
//#region src/image/hooks/usePreviewConfig.d.ts
|
|
12
|
-
declare function usePreviewConfig<T extends PreviewConfig | GroupPreviewConfig>(preview: Ref<T | boolean | undefined>):
|
|
12
|
+
declare function usePreviewConfig<T extends PreviewConfig | GroupPreviewConfig>(preview: Ref<T | boolean | undefined>): vue1053.ComputedRef<({} | null)[] | readonly [{
|
|
13
13
|
readonly open: boolean | undefined;
|
|
14
14
|
readonly onOpenChange: ((value: boolean, info: {
|
|
15
15
|
current: number;
|
|
16
16
|
}) => void) | undefined;
|
|
17
|
-
readonly cover: string | number | boolean |
|
|
17
|
+
readonly cover: string | number | boolean | vue1053.VNode<vue1053.RendererNode, vue1053.RendererElement, {
|
|
18
18
|
[key: string]: any;
|
|
19
|
-
}> |
|
|
19
|
+
}> | vue1053.ComponentOptions<any, any, any, vue1053.ComputedOptions, vue1053.MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, vue1053.ComponentProvideOptions> | vue1053.FunctionalComponent<any, {}, any, {}> | {
|
|
20
20
|
new (...args: any[]): any;
|
|
21
21
|
__isFragment?: never;
|
|
22
22
|
__isTeleport?: never;
|
|
23
23
|
__isSuspense?: never;
|
|
24
|
-
} | (string | number | boolean | void |
|
|
24
|
+
} | (string | number | boolean | void | vue1053.Component | vue1053.VNode<vue1053.RendererNode, vue1053.RendererElement, {
|
|
25
25
|
[key: string]: any;
|
|
26
26
|
}> | null | undefined)[] | _v_c_image0.CoverConfig | {
|
|
27
27
|
enabled?: boolean;
|
|
28
28
|
blur: boolean;
|
|
29
29
|
closable?: boolean;
|
|
30
30
|
} | undefined;
|
|
31
|
-
readonly mask: boolean |
|
|
31
|
+
readonly mask: boolean | vue1053.VNode<vue1053.RendererNode, vue1053.RendererElement, {
|
|
32
32
|
[key: string]: any;
|
|
33
33
|
}> | {
|
|
34
34
|
enabled?: boolean;
|
|
@@ -43,21 +43,21 @@ declare function usePreviewConfig<T extends PreviewConfig | GroupPreviewConfig>(
|
|
|
43
43
|
image: _v_c_image0.ImgInfo;
|
|
44
44
|
}) => _v_c_util0.VueNode;
|
|
45
45
|
readonly onChange?: (current: number, prevCurrent: number) => void;
|
|
46
|
-
readonly closeIcon?: _v_c_util0.VueNode | boolean | null;
|
|
47
46
|
readonly focusTrap?: boolean;
|
|
48
47
|
readonly afterOpenChange?: (open: boolean) => void;
|
|
49
48
|
readonly maskClosable?: boolean;
|
|
50
49
|
readonly zIndex?: number;
|
|
51
50
|
readonly getContainer?: _v_c_portal_dist_Portal_js0.PortalProps["getContainer"];
|
|
52
|
-
readonly
|
|
51
|
+
readonly closeIcon?: _v_c_util0.VueNode | boolean | null;
|
|
53
52
|
readonly src?: string;
|
|
54
53
|
readonly alt?: string;
|
|
54
|
+
readonly icons?: _v_c_image_dist_Preview_index_js0.OperationIcons;
|
|
55
|
+
readonly motionName?: string;
|
|
55
56
|
readonly countRender?: (current: number, total: number) => _v_c_util0.VueNode;
|
|
56
57
|
readonly scaleStep?: number;
|
|
57
58
|
readonly minScale?: number;
|
|
58
59
|
readonly maxScale?: number;
|
|
59
60
|
readonly movable?: boolean;
|
|
60
|
-
readonly icons?: _v_c_image_dist_Preview_index_js0.OperationIcons;
|
|
61
61
|
readonly onTransform?: (info: {
|
|
62
62
|
transform: _v_c_image_dist_hooks_useImageTransform_js0.TransformType;
|
|
63
63
|
action: _v_c_image_dist_hooks_useImageTransform_js0.TransformAction;
|
package/dist/image/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { VueNode as VueNode$1 } from "../_util/type.js";
|
|
|
3
3
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import "../_util/hooks/index.js";
|
|
5
5
|
import InternalPreviewGroup, { PreviewGroupProps as PreviewGroupProps$1 } from "./PreviewGroup.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue40 from "vue";
|
|
7
7
|
import { CSSProperties, SlotsType } from "vue";
|
|
8
8
|
import { ImageProps as ImageProps$1 } from "@v-c/image";
|
|
9
9
|
|
|
@@ -94,11 +94,11 @@ interface ImageSlots {
|
|
|
94
94
|
cover: () => any;
|
|
95
95
|
actionsRender: () => OriginPreviewConfig['actionsRender'];
|
|
96
96
|
}
|
|
97
|
-
declare const Image:
|
|
97
|
+
declare const Image: vue40.DefineSetupFnComponent<ImageProps, ImageEmits, SlotsType<ImageSlots>, ImageProps, vue40.PublicProps>;
|
|
98
98
|
declare const _default_1: typeof Image & {
|
|
99
99
|
PreviewGroup: typeof InternalPreviewGroup;
|
|
100
100
|
};
|
|
101
|
-
declare const ImagePreviewGroup:
|
|
101
|
+
declare const ImagePreviewGroup: vue40.DefineSetupFnComponent<PreviewGroupProps$1, {}, {}, PreviewGroupProps$1 & {}, vue40.PublicProps>;
|
|
102
102
|
type ImagePreviewGroupProps = PreviewGroupProps$1;
|
|
103
103
|
//#endregion
|
|
104
104
|
export { DeprecatedPreviewConfig, ImageClassNamesType, ImageEmits, ImageEmitsProps, ImagePopupSemanticClassNames, ImagePopupSemanticName, ImagePopupSemanticStyles, ImagePreviewGroup, ImagePreviewGroupProps, ImageProps, ImageSemanticClassNames, ImageSemanticName, ImageSemanticStyles, ImageSlots, ImageStylesType, PreviewConfig, _default_1 as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
2
2
|
import { GenerateStyle } from "../../theme/interface/index.js";
|
|
3
3
|
import "../../theme/internal.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue825 from "vue";
|
|
5
5
|
import { CSSObject } from "@antdv-next/cssinjs";
|
|
6
6
|
|
|
7
7
|
//#region src/image/style/index.d.ts
|
|
@@ -53,6 +53,6 @@ declare function genBoxStyle(position?: PositionType): CSSObject;
|
|
|
53
53
|
declare const genImageCoverStyle: GenerateStyle<ImageToken, CSSObject>;
|
|
54
54
|
declare const genImagePreviewStyle: GenerateStyle<ImageToken, CSSObject>;
|
|
55
55
|
declare const prepareComponentToken: GetDefaultToken<'Image'>;
|
|
56
|
-
declare const _default: (prefixCls:
|
|
56
|
+
declare const _default: (prefixCls: vue825.Ref<string>, rootCls?: vue825.Ref<string | undefined>) => readonly [vue825.Ref<string, string>, vue825.ComputedRef<string | undefined>];
|
|
57
57
|
//#endregion
|
|
58
58
|
export { ComponentToken, ImageToken, PositionType, _default as default, genBoxStyle, genImageCoverStyle, genImagePreviewStyle, prepareComponentToken };
|