antdv-next 1.1.2 → 1.1.3
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/PurePanel.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/responsiveObserver.d.ts +2 -2
- package/dist/_util/statusUtils.d.ts +1 -1
- 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 +3 -3
- 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 +10988 -10599
- package/dist/antd-with-locales.js +82 -82
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +9456 -9067
- package/dist/antd.js +82 -82
- 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 +2 -2
- package/dist/avatar/Avatar.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/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/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/hooks/useCheckable.d.ts +2 -2
- 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/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/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 +7 -3
- package/dist/descriptions/Cell.d.ts +2 -2
- package/dist/descriptions/Item.d.ts +2 -2
- package/dist/descriptions/Row.d.ts +2 -2
- package/dist/descriptions/hooks/useItems.d.ts +8 -8
- 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 +2 -2
- package/dist/form/FormItem/ItemHolder.d.ts +3 -3
- package/dist/form/FormItem/ItemHolder.js +1 -1
- package/dist/form/FormItem/StatusProvider.d.ts +2 -2
- package/dist/form/FormItem/index.d.ts +5 -5
- package/dist/form/FormItem/index.js +24 -13
- package/dist/form/FormItemInput.d.ts +2 -2
- package/dist/form/FormItemLabel.d.ts +3 -3
- package/dist/form/context.d.ts +7 -7
- package/dist/form/hooks/useVariant.d.ts +2 -2
- package/dist/form/style/fallbackCmp.d.ts +4 -4
- package/dist/form/style/index.d.ts +2 -2
- package/dist/form/types.d.ts +6 -3
- package/dist/form/utils/messages.d.ts +1 -0
- package/dist/form/utils/messages.js +1 -0
- package/dist/form/utils/validateUtil.js +2 -0
- 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 +6 -6
- package/dist/image/hooks/usePreviewConfig.d.ts +10 -10
- package/dist/image/index.d.ts +3 -3
- package/dist/image/style/index.d.ts +2 -2
- 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 +7 -7
- 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/index.d.ts +2 -2
- package/dist/locale/useLocale.d.ts +2 -2
- package/dist/locale/zh_CN.js +2 -2
- package/dist/masonry/Masonry.d.ts +2 -2
- 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/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/message/PurePanel.d.ts +3 -3
- package/dist/message/style/index.d.ts +2 -2
- package/dist/message/useMessage.d.ts +3 -3
- package/dist/modal/ConfirmDialog.d.ts +4 -4
- package/dist/modal/Modal.d.ts +2 -2
- package/dist/modal/PurePanel.d.ts +2 -2
- 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/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/PurePanel.d.ts +3 -3
- package/dist/notification/style/index.d.ts +2 -2
- package/dist/notification/style/pure-panel.d.ts +4 -4
- package/dist/notification/useNotification.d.ts +3 -3
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.d.ts +2 -2
- package/dist/pagination/Pagination.js +6 -6
- 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/index.d.ts +2 -2
- package/dist/popconfirm/style/index.d.ts +2 -2
- package/dist/popover/PurePanel.d.ts +4 -4
- package/dist/popover/index.d.ts +2 -2
- 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/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 +4 -4
- package/dist/select/index.js +2 -0
- package/dist/select/style/index.d.ts +2 -2
- package/dist/select/style/select-input.js +2 -2
- package/dist/select/useIcons.d.ts +10 -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/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/hooks/useSizes.js +1 -3
- package/dist/splitter/index.d.ts +2 -2
- package/dist/splitter/style/index.d.ts +2 -2
- 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/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/InternalTable.d.ts +2 -2
- package/dist/table/Table.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/useFilter/index.d.ts +14 -14
- 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 +3 -3
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/themes/default/theme.d.ts +2 -2
- package/dist/theme/util/genStyleUtils.d.ts +14 -14
- package/dist/time-picker/index.d.ts +4 -4
- package/dist/time-picker/index.js +12 -3
- 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/panelRender.js +2 -8
- package/dist/tour/style/index.d.ts +2 -2
- 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 +7 -3
- package/dist/tree/style/index.js +10 -9
- 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/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 +7 -7
- package/web-tags.json +1764 -1764
- package/web-types.json +5453 -5452
package/dist/flex/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EmptyEmit } from "../_util/type.js";
|
|
2
2
|
import { FlexProps } from "./interface.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue702 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/flex/index.d.ts
|
|
7
7
|
interface FlexSlots {
|
|
8
8
|
default: () => any;
|
|
9
9
|
}
|
|
10
|
-
declare const Flex:
|
|
10
|
+
declare const Flex: vue702.DefineSetupFnComponent<FlexProps, EmptyEmit, SlotsType<FlexSlots>, FlexProps, vue702.PublicProps>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { type FlexProps, FlexSlots, Flex as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
2
2
|
import "../../theme/internal.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue1031 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/flex/style/index.d.ts
|
|
6
6
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
@@ -29,6 +29,6 @@ interface FlexToken extends FullToken<'Flex'> {
|
|
|
29
29
|
flexGapLG: number;
|
|
30
30
|
}
|
|
31
31
|
declare const prepareComponentToken: GetDefaultToken<'Flex'>;
|
|
32
|
-
declare const _default: (prefixCls:
|
|
32
|
+
declare const _default: (prefixCls: vue1031.Ref<string>, rootCls?: vue1031.Ref<string | undefined>) => readonly [vue1031.Ref<string, string>, vue1031.ComputedRef<string | undefined>];
|
|
33
33
|
//#endregion
|
|
34
34
|
export { ComponentToken, FlexToken, _default as default, prepareComponentToken };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FloatButtonProps } from "./FloatButton.js";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue1076 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/float-button/BackTop.d.ts
|
|
@@ -19,7 +19,7 @@ interface BackTopSlots {
|
|
|
19
19
|
default?: () => any;
|
|
20
20
|
icon?: () => any;
|
|
21
21
|
}
|
|
22
|
-
declare const BackTop:
|
|
22
|
+
declare const BackTop: vue1076.DefineSetupFnComponent<BackTopProps, BackTopEmits, SlotsType<BackTopSlots>, BackTopProps, vue1076.PublicProps>;
|
|
23
23
|
declare const BackTopWithInstall: typeof BackTop;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { BackTopEmits, BackTopEmitsProps, BackTopProps, BackTopSlots, BackTopWithInstall as default };
|
|
@@ -7,7 +7,7 @@ import { ComponentBaseProps } from "../config-provider/context.js";
|
|
|
7
7
|
import { ButtonHTMLType } from "../button/buttonHelper.js";
|
|
8
8
|
import { ButtonSemanticClassNames, ButtonSemanticName, ButtonSemanticStyles } from "../button/Button.js";
|
|
9
9
|
import "../button/index.js";
|
|
10
|
-
import * as
|
|
10
|
+
import * as vue1083 from "vue";
|
|
11
11
|
import { CSSProperties, SlotsType } from "vue";
|
|
12
12
|
|
|
13
13
|
//#region src/float-button/FloatButton.d.ts
|
|
@@ -61,7 +61,7 @@ interface FloatButtonEmitsProps {
|
|
|
61
61
|
onBlur?: FloatButtonEmits['blur'];
|
|
62
62
|
}
|
|
63
63
|
declare const floatButtonPrefixCls = "float-btn";
|
|
64
|
-
declare const InternalFloatButton:
|
|
64
|
+
declare const InternalFloatButton: vue1083.DefineSetupFnComponent<FloatButtonProps, FloatButtonEmits, SlotsType<FloatButtonSlots>, FloatButtonProps, vue1083.PublicProps>;
|
|
65
65
|
declare const FloatButton: typeof InternalFloatButton;
|
|
66
66
|
//#endregion
|
|
67
67
|
export { FloatButtonBadgeProps, FloatButtonClassNamesType, FloatButtonElement, FloatButtonEmits, FloatButtonEmitsProps, FloatButtonGroupTrigger, FloatButtonProps, FloatButtonRef, FloatButtonSemanticName, FloatButtonShape, FloatButtonSlots, FloatButtonStylesType, FloatButtonType, FloatButton as default, floatButtonPrefixCls };
|
|
@@ -3,7 +3,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { FloatButtonGroupTrigger, FloatButtonProps } from "./FloatButton.js";
|
|
5
5
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue1043 from "vue";
|
|
7
7
|
import { CSSProperties, SlotsType } from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/float-button/FloatButtonGroup.d.ts
|
|
@@ -55,7 +55,7 @@ interface FloatButtonGroupEmitsProps {
|
|
|
55
55
|
'onUpdate:open'?: FloatButtonGroupEmits['update:open'];
|
|
56
56
|
onClick?: FloatButtonGroupEmits['click'];
|
|
57
57
|
}
|
|
58
|
-
declare const InternalFloatButtonGroup:
|
|
58
|
+
declare const InternalFloatButtonGroup: vue1043.DefineSetupFnComponent<FloatButtonGroupProps, FloatButtonGroupEmits, SlotsType<FloatButtonGroupSlots>, FloatButtonGroupProps, vue1043.PublicProps>;
|
|
59
59
|
declare const FloatButtonGroup: typeof InternalFloatButtonGroup;
|
|
60
60
|
//#endregion
|
|
61
61
|
export { FloatButtonGroupClassNamesType, FloatButtonGroupEmits, FloatButtonGroupEmitsProps, FloatButtonGroupProps, FloatButtonGroupSemanticClassNames, FloatButtonGroupSemanticName, FloatButtonGroupSemanticStyles, FloatButtonGroupSlots, FloatButtonGroupStylesType, FloatButtonGroup as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FloatButtonProps } from "./FloatButton.js";
|
|
2
2
|
import { FloatButtonGroupProps } from "./FloatButtonGroup.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue831 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/float-button/PurePanel.d.ts
|
|
6
6
|
interface PureFloatButtonProps extends Omit<FloatButtonProps, 'target'> {
|
|
@@ -14,6 +14,6 @@ interface PurePanelProps extends Omit<PureFloatButtonProps, 'classes' | 'styles'
|
|
|
14
14
|
classes?: ClassNamesType;
|
|
15
15
|
styles?: StylesType;
|
|
16
16
|
}
|
|
17
|
-
declare const PurePanel:
|
|
17
|
+
declare const PurePanel: vue831.DefineSetupFnComponent<PurePanelProps, {}, {}, PurePanelProps & {}, vue831.PublicProps>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { PureFloatButtonProps, PurePanelProps, PurePanel as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatButtonProps, FloatButtonShape } from "./FloatButton.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue881 from "vue";
|
|
3
3
|
import { Ref } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/float-button/context.d.ts
|
|
@@ -11,10 +11,10 @@ interface GroupContextProps {
|
|
|
11
11
|
}
|
|
12
12
|
declare function useGroupContext(): Ref<GroupContextProps | null, GroupContextProps | null> | undefined;
|
|
13
13
|
declare function useGroupContextProvider(value: Ref<GroupContextProps | null>): void;
|
|
14
|
-
declare const GroupContextProvider:
|
|
14
|
+
declare const GroupContextProvider: vue881.DefineSetupFnComponent<{
|
|
15
15
|
value: GroupContextProps;
|
|
16
16
|
}, {}, {}, {
|
|
17
17
|
value: GroupContextProps;
|
|
18
|
-
} & {},
|
|
18
|
+
} & {}, vue881.PublicProps>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { GroupContextProps, GroupContextProvider, useGroupContext, useGroupContextProvider };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
2
2
|
import "../../theme/internal.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue844 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/float-button/style/index.d.ts
|
|
6
6
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
@@ -32,6 +32,6 @@ type FloatButtonToken = FullToken<'FloatButton'> & {
|
|
|
32
32
|
floatButtonInsetInlineEnd: number;
|
|
33
33
|
};
|
|
34
34
|
declare const prepareComponentToken: GetDefaultToken<'FloatButton'>;
|
|
35
|
-
declare const _default: (prefixCls:
|
|
35
|
+
declare const _default: (prefixCls: vue844.Ref<string>, rootCls?: vue844.Ref<string | undefined>) => readonly [vue844.Ref<string, string>, vue844.ComputedRef<string | undefined>];
|
|
36
36
|
//#endregion
|
|
37
37
|
export { ComponentToken, FloatButtonToken, _default as default, prepareComponentToken };
|
package/dist/form/ErrorList.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { ValidateStatus } from "./FormItem/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue852 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/form/ErrorList.d.ts
|
|
6
6
|
interface ErrorListProps {
|
|
@@ -11,6 +11,6 @@ interface ErrorListProps {
|
|
|
11
11
|
warnings?: any[];
|
|
12
12
|
onVisibleChanged?: (visible: boolean) => void;
|
|
13
13
|
}
|
|
14
|
-
declare const ErrorList:
|
|
14
|
+
declare const ErrorList: vue852.DefineSetupFnComponent<ErrorListProps, {}, {}, ErrorListProps & {}, vue852.PublicProps>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { ErrorListProps, ErrorList as default };
|
package/dist/form/Form.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { FormTooltipProps } from "./FormItemLabel.js";
|
|
|
8
8
|
import { FieldData, InternalNamePath, NamePath, Rule, ValidateErrorEntity, ValidateMessages, ValidateOptions } from "./types.js";
|
|
9
9
|
import { FeedbackIcons } from "./FormItem/index.js";
|
|
10
10
|
import { ComponentBaseProps, Variant } from "../config-provider/context.js";
|
|
11
|
-
import * as
|
|
11
|
+
import * as vue868 from "vue";
|
|
12
12
|
import { CSSProperties, HTMLAttributes, SlotsType } from "vue";
|
|
13
13
|
|
|
14
14
|
//#region src/form/Form.d.ts
|
|
@@ -104,6 +104,6 @@ interface FormInstance {
|
|
|
104
104
|
focusField: (fieldName: NamePath) => void;
|
|
105
105
|
getFieldInstance: (name: NamePath) => any;
|
|
106
106
|
}
|
|
107
|
-
declare const InternalForm:
|
|
107
|
+
declare const InternalForm: vue868.DefineSetupFnComponent<FormProps, FormEmits, SlotsType<FormSlots>, FormProps, vue868.PublicProps>;
|
|
108
108
|
//#endregion
|
|
109
109
|
export { FormClassNamesType, FormEmits, FormEmitsProps, FormInstance, FormItemLayout, FormLayout, FormProps, FormSemanticClassNames, FormSemanticName, FormSemanticStyles, FormSlots, FormStylesType, RequiredMark, type ScrollFocusOptions, InternalForm as default };
|
|
@@ -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 vue538 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: vue538.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: vue506.DefineSetupFnComponent<ItemHolderProps, {}, {},
|
|
|
34
34
|
fieldId?: string;
|
|
35
35
|
isRequired?: boolean;
|
|
36
36
|
onSubItemMetaChange: ReportMetaChange;
|
|
37
|
-
} & {},
|
|
37
|
+
} & {}, vue538.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 vue403 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: vue403.DefineSetupFnComponent<StatusProviderProps, {}, {}, StatusProviderProps & {}, vue403.PublicProps>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { StatusProviderProps, StatusProvider as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FormItemLabelProps } from "../FormItemLabel.js";
|
|
2
|
-
import { NamePath, Rule } from "../types.js";
|
|
2
|
+
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 vue416 from "vue";
|
|
7
7
|
import { SlotsType } from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/form/FormItem/index.d.ts
|
|
@@ -17,8 +17,8 @@ type FeedbackIcons = (itemStatus: {
|
|
|
17
17
|
interface BaseFormItemProps {
|
|
18
18
|
name?: NamePath;
|
|
19
19
|
rules?: Rule[];
|
|
20
|
-
trigger?:
|
|
21
|
-
validateTrigger?:
|
|
20
|
+
trigger?: TriggerType | TriggerType[];
|
|
21
|
+
validateTrigger?: TriggerType | TriggerType[] | false;
|
|
22
22
|
validateDebounce?: number;
|
|
23
23
|
validateFirst?: boolean | 'parallel';
|
|
24
24
|
}
|
|
@@ -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: vue416.DefineSetupFnComponent<InternalFormItemProps, FormItemEmits, SlotsType<FormItemSlots>, InternalFormItemProps, vue416.PublicProps>;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { BaseFormItemProps, FeedbackIcons, FormItemEmits, FormItemEmitsProps, FormItemProps, FormItemSlots, ValidateStatus, InternalFormItem as default };
|
|
@@ -31,8 +31,8 @@ function genEmptyMeta() {
|
|
|
31
31
|
const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
32
32
|
const formContext = useFormContext();
|
|
33
33
|
const mergedValidateTrigger = computed(() => {
|
|
34
|
-
const { validateTrigger } = props;
|
|
35
|
-
return validateTrigger !== void 0 ? validateTrigger : formContext.value?.validateTrigger
|
|
34
|
+
const { trigger, validateTrigger } = props;
|
|
35
|
+
return validateTrigger !== void 0 ? validateTrigger : trigger !== void 0 ? trigger : formContext.value?.validateTrigger;
|
|
36
36
|
});
|
|
37
37
|
const { prefixCls } = useComponentBaseConfig("form", props);
|
|
38
38
|
const notifyParentMetaChange = useNoStyleItemContext();
|
|
@@ -77,11 +77,12 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
77
77
|
else if (typeof currentValue === "boolean") ruleType = "boolean";
|
|
78
78
|
else if (Array.isArray(currentValue)) ruleType = "array";
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
const requiredRule = {
|
|
81
81
|
required: !!props.required,
|
|
82
|
-
trigger: mergedValidateTrigger.value || [],
|
|
83
82
|
...ruleType ? { type: ruleType } : {}
|
|
84
|
-
}
|
|
83
|
+
};
|
|
84
|
+
if (mergedValidateTrigger.value !== void 0) requiredRule.validateTrigger = mergedValidateTrigger.value || [];
|
|
85
|
+
collectedRules.push(requiredRule);
|
|
85
86
|
}
|
|
86
87
|
return collectedRules;
|
|
87
88
|
});
|
|
@@ -108,14 +109,24 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
108
109
|
};
|
|
109
110
|
if (props.noStyle && notifyParentMetaChange) notifyParentMetaChange(meta.value, meta.value.name);
|
|
110
111
|
};
|
|
112
|
+
const getRuleTrigger = (rule) => {
|
|
113
|
+
const ruleTrigger = rule.validateTrigger ?? rule.trigger;
|
|
114
|
+
if (ruleTrigger !== void 0) return ruleTrigger;
|
|
115
|
+
if (mergedValidateTrigger.value !== void 0) return mergedValidateTrigger.value;
|
|
116
|
+
return "change";
|
|
117
|
+
};
|
|
118
|
+
const getRuleTriggerList = (rule) => {
|
|
119
|
+
const ruleTrigger = getRuleTrigger(rule);
|
|
120
|
+
if (ruleTrigger === false) return [];
|
|
121
|
+
return toArray(ruleTrigger);
|
|
122
|
+
};
|
|
111
123
|
const validateRulesInner = (options = {}) => {
|
|
112
124
|
if (!namePath.value.length) return Promise.resolve();
|
|
113
125
|
let filteredRules = mergedRules.value;
|
|
114
126
|
const { triggerName } = options;
|
|
115
|
-
if (triggerName)
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
return toArray(ruleTrigger || mergedValidateTrigger.value || []).includes(triggerName);
|
|
127
|
+
if (triggerName) if (mergedValidateTrigger.value === false) filteredRules = [];
|
|
128
|
+
else filteredRules = filteredRules.filter((rule) => {
|
|
129
|
+
return getRuleTriggerList(rule).includes(triggerName);
|
|
119
130
|
});
|
|
120
131
|
if (!filteredRules.length) {
|
|
121
132
|
errors.value = [];
|
|
@@ -160,9 +171,9 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
160
171
|
});
|
|
161
172
|
};
|
|
162
173
|
const triggerValidate = (triggerName) => {
|
|
163
|
-
|
|
164
|
-
if (
|
|
165
|
-
|
|
174
|
+
if (mergedValidateTrigger.value === false) return;
|
|
175
|
+
if (!mergedRules.value.some((rule) => getRuleTriggerList(rule).includes(triggerName))) return;
|
|
176
|
+
validateRulesInner({ triggerName }).catch((e) => e);
|
|
166
177
|
};
|
|
167
178
|
const clearValidate = () => {
|
|
168
179
|
errors.value = [];
|
|
@@ -356,7 +367,7 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
356
367
|
required: false
|
|
357
368
|
},
|
|
358
369
|
trigger: {
|
|
359
|
-
type: String,
|
|
370
|
+
type: [String, Array],
|
|
360
371
|
required: false
|
|
361
372
|
},
|
|
362
373
|
validateTrigger: {
|
|
@@ -2,7 +2,7 @@ import { VueNode } 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 vue992 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;
|
|
23
23
|
}
|
|
24
|
-
declare const FormItemInput:
|
|
24
|
+
declare const FormItemInput: vue992.DefineSetupFnComponent<FormItemInputProps & FormItemInputMiscProps, {}, {}, FormItemInputProps & FormItemInputMiscProps & {}, vue992.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 vue895 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: vue895.DefineSetupFnComponent<FormItemLabelProps & {
|
|
31
31
|
required?: boolean;
|
|
32
32
|
prefixCls: string;
|
|
33
33
|
}, {}, {}, FormItemLabelProps & {
|
|
34
34
|
required?: boolean;
|
|
35
35
|
prefixCls: string;
|
|
36
|
-
} & {},
|
|
36
|
+
} & {}, vue895.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 vue871 from "vue";
|
|
10
10
|
import { Ref } from "vue";
|
|
11
11
|
import { Key } from "@v-c/util/dist/type";
|
|
12
12
|
|
|
@@ -61,7 +61,7 @@ interface FormItemPrefixContextProps {
|
|
|
61
61
|
status?: ValidateStatus;
|
|
62
62
|
}
|
|
63
63
|
declare function useFormItemPrefixContextProvider(value: Ref<FormItemPrefixContextProps>): void;
|
|
64
|
-
declare const FormItemPrefixContextProvider:
|
|
64
|
+
declare const FormItemPrefixContextProvider: vue871.DefineSetupFnComponent<FormItemPrefixContextProps, {}, {}, FormItemPrefixContextProps & {}, vue871.PublicProps>;
|
|
65
65
|
declare function useFormItemPrefixContext(): Ref<{
|
|
66
66
|
prefixCls: string;
|
|
67
67
|
}, {
|
|
@@ -70,7 +70,7 @@ declare function useFormItemPrefixContext(): Ref<{
|
|
|
70
70
|
prefixCls: string;
|
|
71
71
|
}>;
|
|
72
72
|
declare function useVariantContextProvider(variant: Ref<Variant | undefined>): void;
|
|
73
|
-
declare function useVariantContext(): Ref<"
|
|
73
|
+
declare function useVariantContext(): Ref<"filled" | "outlined" | "borderless" | "underlined" | undefined, "filled" | "outlined" | "borderless" | "underlined" | undefined>;
|
|
74
74
|
interface FormItemStatusContextProps {
|
|
75
75
|
isFormItemInput?: boolean;
|
|
76
76
|
status?: ValidateStatus;
|
|
@@ -101,19 +101,19 @@ declare function useFormItemInputContext(): Ref<{
|
|
|
101
101
|
/** `noStyle` Form Item Context. Used for error collection */
|
|
102
102
|
type ReportMetaChange = (meta: Meta, uniqueKeys: Key[]) => void;
|
|
103
103
|
declare function useNoStyleItemContextProvider(value: ReportMetaChange): void;
|
|
104
|
-
declare const NoStyleItemContextProvider:
|
|
104
|
+
declare const NoStyleItemContextProvider: vue871.DefineSetupFnComponent<{
|
|
105
105
|
value: ReportMetaChange;
|
|
106
106
|
}, {}, {}, {
|
|
107
107
|
value: ReportMetaChange;
|
|
108
|
-
} & {},
|
|
108
|
+
} & {}, vue871.PublicProps>;
|
|
109
109
|
declare function useNoStyleItemContext(): ReportMetaChange | null;
|
|
110
|
-
declare const NoFormStyle:
|
|
110
|
+
declare const NoFormStyle: vue871.DefineSetupFnComponent<{
|
|
111
111
|
override?: boolean;
|
|
112
112
|
status?: boolean;
|
|
113
113
|
}, {}, {}, {
|
|
114
114
|
override?: boolean;
|
|
115
115
|
status?: boolean;
|
|
116
|
-
} & {},
|
|
116
|
+
} & {}, vue871.PublicProps>;
|
|
117
117
|
interface FormItemProviderProps {
|
|
118
118
|
fieldId: Ref<string | undefined>;
|
|
119
119
|
triggerChange: () => void;
|
|
@@ -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 vue414 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 [vue414.ComputedRef<"filled" | "outlined" | "borderless" | "underlined">, vue414.ComputedRef<boolean>];
|
|
9
9
|
declare const useVariants: typeof useVariant;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { useVariant as default, useVariants };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue95 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: vue95.DefineComponent<vue95.ExtractPropTypes<{
|
|
9
9
|
prefixCls: StringConstructor;
|
|
10
10
|
rootCls: StringConstructor;
|
|
11
|
-
}>, () => null, {}, {}, {},
|
|
11
|
+
}>, () => null, {}, {}, {}, vue95.ComponentOptionsMixin, vue95.ComponentOptionsMixin, {}, string, vue95.PublicProps, Readonly<vue95.ExtractPropTypes<{
|
|
12
12
|
prefixCls: StringConstructor;
|
|
13
13
|
rootCls: StringConstructor;
|
|
14
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
14
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, vue95.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 vue123 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: vue123.Ref<string>, rootCls?: vue123.Ref<string | undefined>) => readonly [vue123.Ref<string, string>, vue123.ComputedRef<string | undefined>];
|
|
78
78
|
//#endregion
|
|
79
79
|
export { ComponentToken, FormToken, _default as default, prepareComponentToken, prepareToken };
|
package/dist/form/types.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ interface InternalFieldData extends Meta {
|
|
|
35
35
|
interface FieldData<Values = any> extends Partial<Omit<InternalFieldData, 'name'>> {
|
|
36
36
|
name: NamePath<Values>;
|
|
37
37
|
}
|
|
38
|
-
type RuleType = 'string' | 'number' | 'boolean' | 'method' | 'regexp' | 'integer' | 'float' | 'object' | 'enum' | 'date' | 'url' | 'hex' | 'email';
|
|
38
|
+
type RuleType = 'string' | 'number' | 'boolean' | 'method' | 'regexp' | 'integer' | 'float' | 'object' | 'enum' | 'date' | 'url' | 'hex' | 'email' | 'tel';
|
|
39
39
|
type Validator = (rule: RuleObject, value: StoreValue, callback: (error?: string) => void) => Promise<void | any> | void;
|
|
40
40
|
type RuleRender = (form: FormInstance) => RuleObject;
|
|
41
41
|
interface ValidatorRule {
|
|
@@ -43,6 +43,7 @@ interface ValidatorRule {
|
|
|
43
43
|
message?: string | Component;
|
|
44
44
|
validator: Validator;
|
|
45
45
|
}
|
|
46
|
+
type TriggerType = 'change' | 'blur' | 'focus';
|
|
46
47
|
interface BaseRule {
|
|
47
48
|
warningOnly?: boolean;
|
|
48
49
|
enum?: StoreValue[];
|
|
@@ -55,8 +56,9 @@ interface BaseRule {
|
|
|
55
56
|
transform?: (value: StoreValue) => StoreValue;
|
|
56
57
|
type?: RuleType;
|
|
57
58
|
whitespace?: boolean;
|
|
59
|
+
trigger?: TriggerType | TriggerType[];
|
|
58
60
|
/** Customize rule level `validateTrigger`. Must be subset of Field `validateTrigger` */
|
|
59
|
-
validateTrigger?:
|
|
61
|
+
validateTrigger?: TriggerType | TriggerType[];
|
|
60
62
|
}
|
|
61
63
|
type AggregationRule = BaseRule & Partial<ValidatorRule>;
|
|
62
64
|
interface ArrayRule extends Omit<AggregationRule, 'type'> {
|
|
@@ -257,6 +259,7 @@ interface ValidateMessages {
|
|
|
257
259
|
float?: ValidateMessage;
|
|
258
260
|
regexp?: ValidateMessage;
|
|
259
261
|
email?: ValidateMessage;
|
|
262
|
+
tel?: ValidateMessage;
|
|
260
263
|
url?: ValidateMessage;
|
|
261
264
|
hex?: ValidateMessage;
|
|
262
265
|
};
|
|
@@ -283,4 +286,4 @@ interface ValidateMessages {
|
|
|
283
286
|
};
|
|
284
287
|
}
|
|
285
288
|
//#endregion
|
|
286
|
-
export { BatchTask, Callbacks, EventArgs, FieldData, FieldEntity, FieldError, FilterFunc, FormInstance, FormRef, GetFieldsValueConfig, InternalFieldData, InternalFormInstance, InternalHooks, InternalNamePath, InternalValidateFields, InternalValidateOptions, Meta, NamePath, NotifyInfo, ReducerAction, Rule, RuleError, RuleObject, RuleRender, RuleType, Store, StoreValue, ValidateErrorEntity, ValidateFields, ValidateMessages, ValidateOptions, ValidatorRule, ValuedNotifyInfo, WatchCallBack, WatchOptions };
|
|
289
|
+
export { BatchTask, Callbacks, EventArgs, FieldData, FieldEntity, FieldError, FilterFunc, FormInstance, FormRef, GetFieldsValueConfig, InternalFieldData, InternalFormInstance, InternalHooks, InternalNamePath, InternalValidateFields, InternalValidateOptions, Meta, NamePath, NotifyInfo, ReducerAction, Rule, RuleError, RuleObject, RuleRender, RuleType, Store, StoreValue, TriggerType, ValidateErrorEntity, ValidateFields, ValidateMessages, ValidateOptions, ValidatorRule, ValuedNotifyInfo, WatchCallBack, WatchOptions };
|
|
@@ -20,6 +20,8 @@ const CODE_LOGIC_ERROR = "CODE_LOGIC_ERROR";
|
|
|
20
20
|
async function validateRule(name, value, rule, options, messageVariables) {
|
|
21
21
|
const cloneRule = { ...rule };
|
|
22
22
|
delete cloneRule.ruleIndex;
|
|
23
|
+
delete cloneRule.trigger;
|
|
24
|
+
delete cloneRule.validateTrigger;
|
|
23
25
|
AsyncValidator.warning = () => void 0;
|
|
24
26
|
if (cloneRule.validator) {
|
|
25
27
|
const originValidator = cloneRule.validator;
|
package/dist/grid/col.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue838 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: vue838.DefineSetupFnComponent<ColProps, {}, {}, ColProps & {}, vue838.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 vue842 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/grid/index.d.ts
|
|
6
|
-
declare function useBreakpoint():
|
|
6
|
+
declare function useBreakpoint(): vue842.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 vue1057 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: vue1057.DefineSetupFnComponent<RowProps, {}, {}, RowProps & {}, vue1057.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 vue469 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: vue469.Ref<string>, rootCls?: vue469.Ref<string | undefined>) => readonly [vue469.Ref<string, string>, vue469.ComputedRef<string | undefined>];
|
|
11
11
|
declare function getMediaSize(token: AliasToken): {
|
|
12
12
|
readonly xs: number;
|
|
13
13
|
readonly sm: number;
|
|
@@ -16,6 +16,6 @@ declare function getMediaSize(token: AliasToken): {
|
|
|
16
16
|
readonly xl: number;
|
|
17
17
|
readonly xxl: number;
|
|
18
18
|
};
|
|
19
|
-
declare const useColStyle: (prefixCls:
|
|
19
|
+
declare const useColStyle: (prefixCls: vue469.Ref<string>, rootCls?: vue469.Ref<string | undefined>) => readonly [vue469.Ref<string, string>, vue469.ComputedRef<string | undefined>];
|
|
20
20
|
//#endregion
|
|
21
21
|
export { ComponentToken, getMediaSize, prepareColComponentToken, prepareRowComponentToken, useColStyle, useRowStyle };
|