antdv-next 1.8.2 → 1.8.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/hooks/useClosable.d.ts +3 -3
- package/dist/_util/hooks/useClosable.js +9 -9
- package/dist/affix/index.js +2 -7
- package/dist/antd-with-locales.esm.js +16050 -15720
- package/dist/antd-with-locales.js +79 -79
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +13249 -12919
- package/dist/antd.js +81 -81
- package/dist/badge/index.d.ts +4 -1
- package/dist/badge/index.js +4 -4
- package/dist/button/buttonHelper.d.ts +1 -1
- package/dist/button/style/index.js +8 -2
- package/dist/calendar/generateCalendar.js +1 -1
- package/dist/checkbox/Checkbox.js +1 -0
- package/dist/color-picker/ColorPicker.js +4 -0
- package/dist/color-picker/ColorPickerPanel.js +4 -0
- package/dist/color-picker/components/ColorSlider.js +12 -4
- package/dist/color-picker/components/PanelPicker/GradientColorBar.js +2 -0
- package/dist/components.d.ts +12 -8
- package/dist/components.js +3 -3
- package/dist/config-provider/context.d.ts +3 -3
- package/dist/config-provider/context.js +3 -3
- package/dist/descriptions/hooks/useItems.d.ts +6 -6
- package/dist/descriptions/hooks/useRow.js +1 -1
- package/dist/form/Form.d.ts +17 -44
- package/dist/form/Form.js +54 -5
- package/dist/form/FormItem/index.d.ts +3 -3
- package/dist/form/context.d.ts +3 -3
- package/dist/form/hooks/useForm.d.ts +4 -5
- package/dist/form/index.d.ts +29 -3
- package/dist/form/index.js +6 -6
- package/dist/form/types.d.ts +15 -7
- package/dist/image/hooks/usePreviewConfig.d.ts +4 -4
- package/dist/image/index.d.ts +5 -5
- package/dist/index.d.ts +14 -7
- package/dist/index.js +2 -2
- package/dist/input-number/style/index.js +3 -2
- package/dist/layout/layout.js +2 -3
- package/dist/mentions/index.js +2 -1
- package/dist/menu/MenuItem.js +1 -1
- package/dist/menu/index.d.ts +2 -1
- package/dist/menu/index.js +29 -5
- package/dist/menu/menu.js +39 -15
- package/dist/message/index.js +11 -9
- package/dist/modal/confirm.js +2 -3
- package/dist/modal/index.d.ts +2 -2
- package/dist/modal/interface.d.ts +1 -1
- package/dist/modal/useModal/index.js +9 -4
- package/dist/notification/index.js +3 -7
- package/dist/package.js +1 -1
- package/dist/package.json.d.ts +1 -0
- package/dist/segmented/style/index.js +3 -2
- package/dist/select/index.d.ts +1 -0
- package/dist/select/index.js +1 -1
- package/dist/skeleton/style/index.js +9 -13
- package/dist/slider/SliderTooltip.js +0 -1
- package/dist/slider/index.d.ts +2 -0
- package/dist/slider/index.js +4 -0
- package/dist/statistic/Timer.d.ts +2 -2
- package/dist/steps/index.js +2 -1
- package/dist/table/hooks/useFilter/FilterDropdown.js +1 -1
- package/dist/table/hooks/usePagination.d.ts +1 -2
- package/dist/table/hooks/usePagination.js +1 -3
- package/dist/table/hooks/useSorter.js +4 -8
- package/dist/table/style/index.js +1 -0
- package/dist/table/style/size.js +1 -0
- package/dist/table/util.d.ts +1 -1
- package/dist/tabs/style/index.js +5 -1
- package/dist/tag/hooks/useColor.d.ts +1 -1
- package/dist/tour/index.js +4 -1
- package/dist/transfer/hooks/useSelection.js +2 -1
- package/dist/tree/DirectoryTree.js +4 -3
- package/dist/tree/utils/dictUtil.js +5 -8
- package/dist/typography/Base/index.js +3 -1
- package/dist/typography/Base/util.js +2 -1
- package/dist/upload/Upload.js +14 -10
- package/dist/upload/UploadList/ListItem.js +4 -0
- package/dist/version/token.json +1 -1
- package/dist/watermark/utils.js +1 -1
- package/package.json +40 -39
- package/web-tags.json +16 -12
- package/web-types.json +32 -18
package/dist/badge/index.d.ts
CHANGED
|
@@ -45,6 +45,9 @@ interface BadgeSlots {
|
|
|
45
45
|
count?: () => any;
|
|
46
46
|
text?: () => any;
|
|
47
47
|
}
|
|
48
|
+
interface BadgeRef {
|
|
49
|
+
nativeElement: HTMLSpanElement;
|
|
50
|
+
}
|
|
48
51
|
declare const InternalBadge: import("vue").DefineSetupFnComponent<BadgeProps, EmptyEmit, SlotsType<BadgeSlots>, BadgeProps, import("vue").PublicProps>;
|
|
49
52
|
declare const Badge: typeof InternalBadge & {
|
|
50
53
|
Ribbon: typeof _default;
|
|
@@ -53,4 +56,4 @@ declare const BadgeRibbon: import("vue").DefineSetupFnComponent<RibbonProps, Emp
|
|
|
53
56
|
type BadgeRibbonProps = RibbonProps;
|
|
54
57
|
type BadgeRibbonRef = RibbonRef;
|
|
55
58
|
//#endregion
|
|
56
|
-
export { BadgeClassNamesType, BadgeProps, BadgeRibbon, BadgeRibbonProps, BadgeRibbonRef, BadgeSemanticClassNames, BadgeSemanticName, BadgeSemanticStyles, BadgeSlots, BadgeStylesType, Badge as default };
|
|
59
|
+
export { BadgeClassNamesType, BadgeProps, BadgeRef, BadgeRibbon, BadgeRibbonProps, BadgeRibbonRef, BadgeSemanticClassNames, BadgeSemanticName, BadgeSemanticStyles, BadgeSlots, BadgeStylesType, Badge as default };
|
package/dist/badge/index.js
CHANGED
|
@@ -20,8 +20,8 @@ const InternalBadge = /* @__PURE__ */ defineComponent((props, { slots, attrs, ex
|
|
|
20
20
|
const { class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, prefixCls, direction, getPrefixCls } = useComponentBaseConfig("badge", props);
|
|
21
21
|
const { classes, styles } = toPropsRefs$1(props, "classes", "styles");
|
|
22
22
|
const mergedProps = computed(() => props);
|
|
23
|
-
const
|
|
24
|
-
expose({
|
|
23
|
+
const nativeElementRef = shallowRef();
|
|
24
|
+
expose({ nativeElement: nativeElementRef });
|
|
25
25
|
const [hashId, cssVarCls] = style_default(prefixCls);
|
|
26
26
|
if (isDev) devUseWarning("Badge").deprecated(props.size !== "default", "size=\"default\"", "size=\"medium\"");
|
|
27
27
|
const numberedDisplayCount = computed(() => {
|
|
@@ -117,7 +117,7 @@ const InternalBadge = /* @__PURE__ */ defineComponent((props, { slots, attrs, ex
|
|
|
117
117
|
if (isStatusBadge.value) {
|
|
118
118
|
const statusTextColor = mergedStyles.value.root?.color;
|
|
119
119
|
return createVNode("span", mergeProps(restAttrs, {
|
|
120
|
-
"ref":
|
|
120
|
+
"ref": nativeElementRef,
|
|
121
121
|
"class": badgeClassName,
|
|
122
122
|
"style": [offsetStyle.value, mergedStyles.value.root]
|
|
123
123
|
}), [createVNode("span", {
|
|
@@ -139,7 +139,7 @@ const InternalBadge = /* @__PURE__ */ defineComponent((props, { slots, attrs, ex
|
|
|
139
139
|
const scrollNumberStyle = {};
|
|
140
140
|
if (props.color && !isInternalColor.value) scrollNumberStyle.background = props.color;
|
|
141
141
|
return createVNode("span", mergeProps(restAttrs, {
|
|
142
|
-
"ref":
|
|
142
|
+
"ref": nativeElementRef,
|
|
143
143
|
"class": badgeClassName,
|
|
144
144
|
"style": mergedStyles.value.root
|
|
145
145
|
}), [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, VNodeChild } from "vue";
|
|
2
2
|
//#region src/button/buttonHelper.d.ts
|
|
3
3
|
declare const isTwoCNChar: (string: string) => boolean;
|
|
4
|
-
declare function isUnBorderedButtonVariant(type?: ButtonVariantType): type is "
|
|
4
|
+
declare function isUnBorderedButtonVariant(type?: ButtonVariantType): type is "link" | "text";
|
|
5
5
|
declare function spaceChildren(children: VNodeChild[], needInserted: boolean, style?: CSSProperties, className?: string): VNodeChild[];
|
|
6
6
|
declare const _ButtonTypes: readonly ["default", "primary", "dashed", "link", "text"];
|
|
7
7
|
type ButtonType = (typeof _ButtonTypes)[number];
|
|
@@ -8,7 +8,7 @@ import genVariantStyle from "./variant.js";
|
|
|
8
8
|
import { unit } from "@antdv-next/cssinjs";
|
|
9
9
|
//#region src/button/style/index.ts
|
|
10
10
|
const genSharedButtonStyle = (token) => {
|
|
11
|
-
const { componentCls, iconCls, fontWeight, opacityLoading, motionDurationSlow, motionEaseInOut, iconGap, calc } = token;
|
|
11
|
+
const { componentCls, iconCls, fontWeight, opacityLoading, motionDurationMid, motionDurationSlow, motionEaseInOut, iconGap, calc } = token;
|
|
12
12
|
return { [componentCls]: {
|
|
13
13
|
outline: "none",
|
|
14
14
|
position: "relative",
|
|
@@ -21,7 +21,13 @@ const genSharedButtonStyle = (token) => {
|
|
|
21
21
|
textAlign: "center",
|
|
22
22
|
backgroundImage: "none",
|
|
23
23
|
cursor: "pointer",
|
|
24
|
-
transition:
|
|
24
|
+
transition: [
|
|
25
|
+
"color",
|
|
26
|
+
"background-color",
|
|
27
|
+
"border-color",
|
|
28
|
+
"box-shadow",
|
|
29
|
+
"opacity"
|
|
30
|
+
].map((prop) => `${prop} ${motionDurationMid} ${motionEaseInOut}`).join(","),
|
|
25
31
|
userSelect: "none",
|
|
26
32
|
touchAction: "manipulation",
|
|
27
33
|
...genNoMotionStyle(),
|
|
@@ -82,7 +82,7 @@ function generateCalendar(generateConfig) {
|
|
|
82
82
|
const panelMode = computed(() => mergedMode.value === "year" ? "month" : "date");
|
|
83
83
|
const mergedDisabledDate = computed(() => {
|
|
84
84
|
return (date) => {
|
|
85
|
-
return (props.validRange ? generateConfig.isAfter(props.validRange[0], date) || generateConfig.isAfter(date, props.validRange[1]) : false) || !!props.disabledDate?.(date);
|
|
85
|
+
return (props.validRange ? generateConfig.isAfter(props.validRange[0], date) && !isSameDate(date, props.validRange[0], generateConfig) || generateConfig.isAfter(date, props.validRange[1]) && !isSameDate(date, props.validRange[1], generateConfig) : false) || !!props.disabledDate?.(date);
|
|
86
86
|
};
|
|
87
87
|
});
|
|
88
88
|
const triggerPanelChange = (date, newMode) => {
|
|
@@ -109,6 +109,7 @@ const InternalCheckbox = /* @__PURE__ */ defineComponent((props, { slots, emit,
|
|
|
109
109
|
"onClick": onLabelClick
|
|
110
110
|
}, restAttrs), [createVNode(VcCheckbox, mergeProps(omit$1(props, keys), {
|
|
111
111
|
"onChange": (e) => {
|
|
112
|
+
if (checkboxRef.value?.input) checkboxRef.value.input.indeterminate = !!props.indeterminate;
|
|
112
113
|
emit("change", e);
|
|
113
114
|
},
|
|
114
115
|
"onUpdate:checked": (checked) => {
|
|
@@ -123,15 +123,19 @@ const GradientColorSlider = /* @__PURE__ */ defineComponent((props) => {
|
|
|
123
123
|
},
|
|
124
124
|
min: {
|
|
125
125
|
type: Number,
|
|
126
|
-
required:
|
|
126
|
+
required: false
|
|
127
127
|
},
|
|
128
128
|
max: {
|
|
129
129
|
type: Number,
|
|
130
|
-
required:
|
|
130
|
+
required: false
|
|
131
131
|
},
|
|
132
132
|
disabled: {
|
|
133
133
|
type: Boolean,
|
|
134
134
|
required: true
|
|
135
|
+
},
|
|
136
|
+
"aria-label": {
|
|
137
|
+
type: String,
|
|
138
|
+
required: false
|
|
135
139
|
}
|
|
136
140
|
},
|
|
137
141
|
name: "GradientColorSlider",
|
|
@@ -160,11 +164,11 @@ const SingleColorSlider = /* @__PURE__ */ defineComponent((props) => {
|
|
|
160
164
|
},
|
|
161
165
|
min: {
|
|
162
166
|
type: Number,
|
|
163
|
-
required:
|
|
167
|
+
required: false
|
|
164
168
|
},
|
|
165
169
|
max: {
|
|
166
170
|
type: Number,
|
|
167
|
-
required:
|
|
171
|
+
required: false
|
|
168
172
|
},
|
|
169
173
|
value: {
|
|
170
174
|
type: Number,
|
|
@@ -189,6 +193,10 @@ const SingleColorSlider = /* @__PURE__ */ defineComponent((props) => {
|
|
|
189
193
|
color: {
|
|
190
194
|
type: Object,
|
|
191
195
|
required: true
|
|
196
|
+
},
|
|
197
|
+
"aria-label": {
|
|
198
|
+
type: String,
|
|
199
|
+
required: false
|
|
192
200
|
}
|
|
193
201
|
},
|
|
194
202
|
name: "ColorSlider",
|
|
@@ -46,8 +46,10 @@ var GradientColorBar_default = /* @__PURE__ */ defineComponent((props) => {
|
|
|
46
46
|
props.onChange?.(new AggregationColor(nextColors), true);
|
|
47
47
|
};
|
|
48
48
|
const onKeyDelete = (index) => {
|
|
49
|
+
if (colorList.value.length <= 2) return;
|
|
49
50
|
const nextColors = [...colorList.value];
|
|
50
51
|
nextColors.splice(index, 1);
|
|
52
|
+
if (props.activeIndex >= nextColors.length) props.onActive(nextColors.length - 1);
|
|
51
53
|
const nextColor = new AggregationColor(nextColors);
|
|
52
54
|
props.onChange?.(nextColor);
|
|
53
55
|
props.onChangeComplete?.(nextColor);
|
package/dist/components.d.ts
CHANGED
|
@@ -4,14 +4,14 @@ import Row, { RowProps } from "./grid/row.js";
|
|
|
4
4
|
import "./grid/index.js";
|
|
5
5
|
import UniqueProvider from "./tooltip/UniqueProvider/index.js";
|
|
6
6
|
import _default$17, { TooltipAlignConfig, TooltipEmits, TooltipPlacement, TooltipProps, TooltipRef, TooltipSlots } from "./tooltip/index.js";
|
|
7
|
-
import { Rule, RuleObject, RuleRender, RuleType } from "./form/types.js";
|
|
8
|
-
import
|
|
7
|
+
import { FormInstance, FormValues, Rule, RuleObject, RuleRender, RuleType } from "./form/types.js";
|
|
8
|
+
import { FormEmits, FormProps, FormSlots } from "./form/Form.js";
|
|
9
9
|
import InternalFormItem, { FormItemEmits, FormItemProps, FormItemSlots } from "./form/FormItem/index.js";
|
|
10
10
|
import { DatePickerEmits, DatePickerSlots } from "./date-picker/generatePicker/generateSinglePicker.js";
|
|
11
11
|
import _default$16, { TimePickerEmits, TimePickerLocale, TimePickerProps, TimePickerSlots, TimeRangePicker, TimeRangePickerEmits, TimeRangePickerProps, TimeRangePickerSlots } from "./time-picker/index.js";
|
|
12
12
|
import _default$7, { DateMonthPicker, DatePickerProps, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, MonthPickerProps, RangePickerProps, WeekPickerProps } from "./date-picker/index.js";
|
|
13
13
|
import _default$8, { EmptyProps, EmptyRef, EmptySlots } from "./empty/index.js";
|
|
14
|
-
import { ModalEmits, ModalSlots } from "./modal/interface.js";
|
|
14
|
+
import { ModalEmits, ModalFuncProps, ModalLocale, ModalSlots } from "./modal/interface.js";
|
|
15
15
|
import Select, { SelectEmits, SelectOptGroup, SelectOption, SelectProps, SelectSlots, SelectValue } from "./select/index.js";
|
|
16
16
|
import { PaginationClassNamesType, PaginationComponents, PaginationConfig, PaginationEmits, PaginationLocale, PaginationPosition, PaginationSizeChangerProps, PaginationSlots, PaginationStylesType } from "./pagination/interface.js";
|
|
17
17
|
import Pagination from "./pagination/Pagination.js";
|
|
@@ -24,6 +24,7 @@ import InternalCheckbox, { CheckboxEmits, CheckboxProps, CheckboxSlots } from ".
|
|
|
24
24
|
import CheckboxGroup, { CheckboxGroupEmits, CheckboxGroupProps, CheckboxGroupSlots, CheckboxOptionType } from "./checkbox/Group.js";
|
|
25
25
|
import "./checkbox/index.js";
|
|
26
26
|
import { MenuItemProps } from "./menu/MenuItem.js";
|
|
27
|
+
import { MenuTheme } from "./menu/MenuContext.js";
|
|
27
28
|
import { MenuEmits, MenuSlots } from "./menu/menu.js";
|
|
28
29
|
import MenuItemGroup, { MenuItemGroupProps } from "./menu/MenuItemGroup.js";
|
|
29
30
|
import SubMenu, { SubMenuProps } from "./menu/SubMenu.js";
|
|
@@ -56,7 +57,7 @@ import Anchor, { AnchorEmits, AnchorProps, AnchorSlots } from "./anchor/Anchor.j
|
|
|
56
57
|
import "./anchor/index.js";
|
|
57
58
|
import AutoComplete, { AutoCompleteClassNamesType, AutoCompleteEmits, AutoCompleteProps, AutoCompleteSlots, AutoCompleteStylesType, DataSourceItemObject, DataSourceItemType, Option } from "./auto-complete/index.js";
|
|
58
59
|
import { RibbonProps, RibbonRef } from "./badge/Ribbon.js";
|
|
59
|
-
import Badge, { BadgeProps, BadgeRibbon, BadgeSlots } from "./badge/index.js";
|
|
60
|
+
import Badge, { BadgeProps, BadgeRef, BadgeRibbon, BadgeSlots } from "./badge/index.js";
|
|
60
61
|
import _default$2, { BreadcrumbItemProps } from "./breadcrumb/BreadcrumbItem.js";
|
|
61
62
|
import _default$3 from "./breadcrumb/BreadcrumbSeparator.js";
|
|
62
63
|
import { BreadcrumbEmits, BreadcrumbProps, BreadcrumbRef, BreadcrumbSlots, ItemType } from "./breadcrumb/Breadcrumb.js";
|
|
@@ -95,6 +96,7 @@ import InternalTextArea, { InputTextAreaRef, TextAreaProps, TextAreaRef } from "
|
|
|
95
96
|
import { ListyClassNames, ListyProps, ListyRef, ListyScrollToConfig, ListyStyles } from "./listy/interface.js";
|
|
96
97
|
import Listy from "./listy/index.js";
|
|
97
98
|
import { MasonryEmits, MasonryProps, MasonryRef, MasonrySlots } from "./masonry/Masonry.js";
|
|
99
|
+
import { ArgsProps as ArgsProps$1 } from "./notification/interface.js";
|
|
98
100
|
import useNotification from "./notification/useNotification.js";
|
|
99
101
|
import staticMethods$1 from "./notification/index.js";
|
|
100
102
|
import { QRCodeEmits } from "./qrcode/interface.js";
|
|
@@ -132,6 +134,7 @@ import { BlockProps } from "./typography/interface.js";
|
|
|
132
134
|
import { ButtonColorType, ButtonHTMLType, ButtonShape, ButtonType, ButtonVariantType } from "./button/buttonHelper.js";
|
|
133
135
|
import Button, { ButtonEmits, ButtonProps, ButtonSemanticName, ButtonSlots, LegacyButtonType } from "./button/Button.js";
|
|
134
136
|
import "./button/index.js";
|
|
137
|
+
import { ArgsProps } from "./message/interface.js";
|
|
135
138
|
import useModal from "./modal/useModal/index.js";
|
|
136
139
|
import { AppProps } from "./app/App.js";
|
|
137
140
|
import _default from "./app/index.js";
|
|
@@ -139,17 +142,18 @@ import { AvatarEmits, AvatarProps, AvatarSlots } from "./avatar/Avatar.js";
|
|
|
139
142
|
import AvatarGroup, { AvatarGroupProps, AvatarGroupRef } from "./avatar/AvatarGroup.js";
|
|
140
143
|
import Avatar from "./avatar/index.js";
|
|
141
144
|
import { BorderBeamColor, BorderBeamGradient } from "./border-beam/util.js";
|
|
142
|
-
import BorderBeam, { BorderBeamProps } from "./border-beam/BorderBeam.js";
|
|
145
|
+
import BorderBeam, { BorderBeamItem, BorderBeamProps } from "./border-beam/BorderBeam.js";
|
|
143
146
|
import "./border-beam/index.js";
|
|
144
147
|
import _default$1 from "./breadcrumb/index.js";
|
|
145
148
|
import CardGrid, { CardGridProps, CardGridRef } from "./card/CardGrid.js";
|
|
146
149
|
import _default$5 from "./card/index.js";
|
|
147
150
|
import Carousel, { CarouselEmits, CarouselProps, CarouselRef, CarouselSlots } from "./carousel/index.js";
|
|
148
151
|
import { FormHookInstance, useForm, useFormInstance } from "./form/hooks/useForm.js";
|
|
149
|
-
import "./form/index.js";
|
|
152
|
+
import Form, { FormConstructor } from "./form/index.js";
|
|
150
153
|
import { InputGroupProps } from "./input/Group.js";
|
|
151
154
|
import CompoundedInput, { InputGroup, InputOTP, InputPassword, InputSearch } from "./input/index.js";
|
|
152
155
|
import Layout, { BasicProps } from "./layout/layout.js";
|
|
156
|
+
import { SiderProps } from "./layout/Sider.js";
|
|
153
157
|
import { LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, useLayoutSider } from "./layout/index.js";
|
|
154
158
|
import _default$9 from "./masonry/index.js";
|
|
155
159
|
import Mentions, { MentionPlacement, MentionsClassNamesType, MentionsEmits, MentionsOptionProps, MentionsProps, MentionsRef, MentionsSlots, MentionsStylesType, Option as Option$1 } from "./mentions/index.js";
|
|
@@ -167,5 +171,5 @@ import Typography, { TypographyLink, TypographyParagraph, TypographyText, Typogr
|
|
|
167
171
|
import { DraggerProps } from "./upload/Dragger.js";
|
|
168
172
|
import { UploadRef } from "./upload/Upload.js";
|
|
169
173
|
import Upload, { UploadDragger, UploadProps } from "./upload/index.js";
|
|
170
|
-
import Watermark, { WatermarkEmits, WatermarkProps, WatermarkRef, WatermarkSlots } from "./watermark/index.js";
|
|
171
|
-
export { Affix, type AffixEmits, type AffixProps, type AffixRef, Alert, type AlertEmits, type AlertProps, type AlertSemanticType, type AlertSlots, Anchor, type AnchorEmits, type AnchorLinkProps, type AnchorProps, type AnchorSlots, type AntTreeNode, type AntTreeNodeCheckedEvent, type AntTreeNodeExpandedEvent, type AntTreeNodeMouseEvent, type AntTreeNodeProps, type AntTreeNodeSelectedEvent, type AntdTreeNodeAttribute, _default as App, type AppProps, AutoComplete, type AutoCompleteClassNamesType, type AutoCompleteEmits, Option as AutoCompleteOption, type AutoCompleteProps, type AutoCompleteSlots, type AutoCompleteStylesType, Avatar, type AvatarEmits, AvatarGroup, type AvatarGroupProps, type AvatarGroupRef, type AvatarProps, type AvatarSlots, BackTopWithInstall as BackTop, Badge, type BadgeProps, BadgeRibbon, type RibbonProps as BadgeRibbonProps, type RibbonRef as BadgeRibbonRef, type BadgeSlots, type BasicDataNode, BorderBeam, type BorderBeamColor, type BorderBeamGradient, type BorderBeamProps, _default$1 as Breadcrumb, type BreadcrumbEmits, _default$2 as BreadcrumbItem, type BreadcrumbItemProps, type ItemType as BreadcrumbItemType, type BreadcrumbProps, type BreadcrumbRef, _default$3 as BreadcrumbSeparator, type BreadcrumbSlots, Button, type ButtonColorType, type ButtonEmits, type ButtonHTMLType, type ButtonProps, type ButtonSemanticName, type ButtonShape, type SizeType as ButtonSize, type ButtonSlots, type ButtonType, type ButtonVariantType, _default$4 as Calendar, type CalendarMode, type CalendarProps, type CalendarRef, _default$5 as Card, type CardEmits, CardGrid, type CardGridProps, type CardGridRef, CardMeta, type CardMetaProps, type CardMetaRef, type CardProps, type CardSize, type CardSlots, type CardTabListType, Carousel, type CarouselEmits, type CarouselProps, type CarouselRef, type CarouselSlots, Cascader, type CascaderEmits, CascaderPanel, type CascaderPanelEmits, type CascaderPanelProps, type CascaderPanelSlots, type CascaderProps, type CascaderSlots, CheckableTag, CheckableTagGroup, type CheckableTagProps, InternalCheckbox as Checkbox, type CheckboxEmits, CheckboxGroup, type CheckboxGroupEmits, type CheckboxGroupProps, type CheckboxGroupSlots, type CheckboxOptionType, type CheckboxProps, type CheckboxSlots, Col, type ColProps, type ColSize, Collapse, CollapsePanel, type CollapsePanelProps, type CollapsePanelSlots, type CollapseProps, type AggregationColor as Color, ColorPicker, type ColorPickerEmits, type ColorPickerProps, type ColorPickerSlots, type ColorValueType, _default$6 as ConfigProvider, type ConfigProviderProps, type DataSourceItemObject, type DataSourceItemType, DateMonthPicker, _default$7 as DatePicker, type DatePickerEmits, type DatePickerProps, type DatePickerSlots, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItem, type DescriptionsItemProps, type DescriptionsItemSlots, type DescriptionsItemType, type DescriptionsProps, type DescriptionsRef, type DescriptionsSlots, DirectoryTree, type DirectoryTreeEmits, type ExpandAction as DirectoryTreeExpandAction, type DirectoryTreeProps, type DirectoryTreeSlots, Divider, type DividerProps, type DividerRef, Drawer, type DrawerEmits, type DrawerProps, type DrawerResizableConfig, type DrawerSlots, Dropdown, type DropdownArrowOptions, type DropdownEmits, type DropdownProps, type DropdownSlots, _default$8 as Empty, type EmptyProps, type EmptyRef, type EmptySlots, Flex, type FlexProps, type FlexSlots, FloatButton, FloatButtonGroup, type FloatButtonGroupProps, type FloatButtonGroupRef, type FloatButtonProps, type FloatButtonRef, InternalForm as Form, type FormEmits, type FormHookInstance, type FormInstance, InternalFormItem as FormItem, type FormItemEmits, type FormItemProps, type FormItemSlots, type FormProps, type FormSlots, _default_1 as Image, type ImageEmits, type PreviewConfig as ImagePreviewConfig, ImagePreviewGroup, type ImagePreviewGroupProps, type ImageProps, type ImageSlots, CompoundedInput as Input, type InputEmits, InputGroup, type InputGroupProps, InputNumber, type InputNumberEmits, type InputNumberProps, type VcInputNumberRef as InputNumberRef, type InputNumberStepContext, type ValueType as InputNumberValueType, InputOTP, type OTPEmits as InputOTPEmits, type OTPProps as InputOTPProps, type OTPSlots as InputOTPSlots, InputPassword, type PasswordProps as InputPasswordProps, type InputPasswordRef, type InputProps, type InputRef, InputSearch, type SearchProps as InputSearchProps, type InputSearchRef, type InputSlots, type InputTextAreaRef, type KeyWise, type KeyWiseTransferItem, Layout, LayoutContent, LayoutFooter, LayoutHeader, type BasicProps as LayoutProps, LayoutSider, type LegacyButtonType, type ListStyle, Listy, type ListyClassNames, type ListyProps, type ListyRef, type ListyScrollToConfig, type ListyStyles, _default$9 as Masonry, type MasonryEmits, type MasonryProps, type MasonryRef, type MasonrySlots, type MentionPlacement, Mentions, type MentionsClassNamesType, type MentionsEmits, Option$1 as MentionsOption, type MentionsOptionProps, type MentionsProps, type MentionsRef, type MentionsSlots, type MentionsStylesType, _default$10 as Menu, MenuDivider, type MenuEmits, type MenuInfo, MenuItem, MenuItemGroup, type MenuItemGroupProps, type MenuItemProps, type MenuItemType, type MenuProps, type MenuRef, type MenuSlots, _default$11 as Modal, type ModalEmits, type ModalProps, type ModalSlots, type MonthPickerProps, Pagination, type PaginationClassNamesType, type PaginationComponents, type PaginationConfig, type PaginationEmits, type PaginationLocale, type PaginationPosition, type PaginationProps, type PaginationSizeChangerProps, type PaginationSlots, type PaginationStylesType, Popconfirm, type PopconfirmEmits, type PopconfirmProps, type PopconfirmSlots, Popover, type PopoverEmits, type PopoverProps, type PopoverRef, type PopoverSlots, Progress, type ProgressProps, QRCode, type QRCodeEmits, type QRCodeProps, type QRCodeRef, InternalRadio as Radio, RadioButton, type RadioChangeEvent, type RadioEmits, RadioGroup, type RadioGroupEmits, type RadioGroupOptionType, type RadioGroupProps, type RadioGroupSlots, type RadioOptionType, type RadioProps, type RadioSlots, type RangePickerProps, Rate, type RateEmits, type RateProps, type RenderResult, type RenderResultObject, _default$12 as Result, type ResultProps, type ResultRef, type ResultSlots, type ResultStatusType, Row, type RowProps, type Rule, type RuleObject, type RuleRender, type RuleType, Segmented, type SegmentedEmits, type SegmentedOptions, type SegmentedProps, type SegmentedSlots, Select, type SelectAllLabel, type SelectEmits, type SelectInfo, SelectOptGroup, SelectOption, type SelectProps, type SelectSlots, type SelectValue, SkeletonWithSubComponents as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, type SkeletonProps, type SkeletonRef, Slider, type SliderEmits, type SliderProps, type SliderRef, Space, SpaceAddon, SpaceCompact, type SpaceCompactProps, type SpaceCompactRef, type SpaceProps, type SpaceSize, type SpaceSlots, _default$13 as Spin, type SpinProps, type SpinRef, type SpinSlots, Splitter, type SplitterEmits, SplitterPanel, type SplitterProps, type SplitterRef, type SplitterSlots, _default$14 as Statistic, type StatisticProps, type StatisticRef, StatisticTimer, type StatisticTimerProps, type StepItem, Steps, type StepsEmits, type StepsProps, type StepsSlots, SubMenu, type SubMenuProps, Switch, type SwitchEmits, type SwitchProps, type SwitchSize, type SwitchSlots, TabPane, type TabPaneProps, _default$15 as Table, type TableClassNamesType, Column as TableColumn, ColumnGroup as TableColumnGroup, type ColumnType as TableColumnType, type ColumnsType as TableColumnsType, type DataIndex as TableDataIndex, type TableEmits, type FilterDropdownProps as TableFilterDropdownProps, type TableLocale, type TablePaginationConfig, type TableProps, type TableRowSelection, type TableSlots, type SortOrder as TableSortOrder, type SorterResult as TableSorterResult, type TableStylesType, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, type TabsEmits, type TabsProps, type TabsRef, type TabsSlots, Tag, type TagProps, type TagSlots, InternalTextArea as TextArea, type TextAreaProps, type TextAreaRef, _default$16 as TimePicker, type TimePickerEmits, type TimePickerLocale, type TimePickerProps, type TimePickerSlots, TimeRangePicker, type TimeRangePickerEmits, type TimeRangePickerProps, type TimeRangePickerSlots, Timeline, TimelineItem, type TimelineItemProps, type TimelineItemSlots, type TimelineItemType, type TimelineProps, _default$17 as Tooltip, type TooltipAlignConfig, type TooltipEmits, type TooltipPlacement, type TooltipProps, type TooltipRef, type TooltipSlots, Tour, type TourEmits, type TourLocale, type TourProps, type TourSlots, type TourStepItem, type TourStylesType, InternalTransfer as Transfer, type TransferClassNamesType, type TransferCustomListBodyProps, type TransferDirection, type TransferEmits, type TransferItem, type TransferKey, type TransferListBodyProps, type TransferListProps, type TransferLocale, type TransferOperationProps, type PaginationType as TransferPaginationType, type TransferProps, type TransferRef, type TransferRender, type TransferSearchEmits, type TransferSearchOption, type TransferSearchProps, type TransferSearchSlots, type TransferSlots, type TransferStylesType, Tree, type DataNode as TreeDataNode, type TreeEmits, type TreeInstance, type TreeProps, TreeSelect, type TreeSelectEmits, type TreeSelectNode, type TreeSelectProps, type TreeSelectSlots, type TreeSlots, type UseTreeConfig as TreeUseTreeConfig, Typography, type BlockProps as TypographyBaseProps, TypographyLink, type LinkProps as TypographyLinkProps, TypographyParagraph, type ParagraphProps as TypographyParagraphProps, TypographyText, type TextProps as TypographyTextProps, TypographyTitle, type TitleProps as TypographyTitleProps, UniqueProvider, Upload, type UploadChangeParam, UploadDragger, type DraggerProps as UploadDraggerProps, type UploadEmits, type UploadFile, type UploadProps, type UploadRef, type UploadSlots, Watermark, type WatermarkEmits, type WatermarkProps, type WatermarkRef, type WatermarkSlots, type WeekPickerProps, staticMethods as message, staticMethods$1 as notification, useExportConfig as useConfig, useForm, useFormInstance, useLayoutSider, useMessage, useModal, useNotification, useTree };
|
|
174
|
+
import Watermark, { WatermarkContent, WatermarkEmits, WatermarkFont, WatermarkProps, WatermarkRef, WatermarkSlots, WatermarkText } from "./watermark/index.js";
|
|
175
|
+
export { Affix, type AffixEmits, type AffixProps, type AffixRef, Alert, type AlertEmits, type AlertProps, type AlertSemanticType, type AlertSlots, Anchor, type AnchorEmits, type AnchorLinkProps, type AnchorProps, type AnchorSlots, type AntTreeNode, type AntTreeNodeCheckedEvent, type AntTreeNodeExpandedEvent, type AntTreeNodeMouseEvent, type AntTreeNodeProps, type AntTreeNodeSelectedEvent, type AntdTreeNodeAttribute, _default as App, type AppProps, AutoComplete, type AutoCompleteClassNamesType, type AutoCompleteEmits, Option as AutoCompleteOption, type AutoCompleteProps, type AutoCompleteSlots, type AutoCompleteStylesType, Avatar, type AvatarEmits, AvatarGroup, type AvatarGroupProps, type AvatarGroupRef, type AvatarProps, type AvatarSlots, BackTopWithInstall as BackTop, Badge, type BadgeProps, type BadgeRef, BadgeRibbon, type RibbonProps as BadgeRibbonProps, type RibbonRef as BadgeRibbonRef, type BadgeSlots, type BasicDataNode, BorderBeam, type BorderBeamColor, type BorderBeamGradient, type BorderBeamItem, type BorderBeamProps, _default$1 as Breadcrumb, type BreadcrumbEmits, _default$2 as BreadcrumbItem, type BreadcrumbItemProps, type ItemType as BreadcrumbItemType, type BreadcrumbProps, type BreadcrumbRef, _default$3 as BreadcrumbSeparator, type BreadcrumbSlots, Button, type ButtonColorType, type ButtonEmits, type ButtonHTMLType, type ButtonProps, type ButtonSemanticName, type ButtonShape, type SizeType as ButtonSize, type ButtonSlots, type ButtonType, type ButtonVariantType, _default$4 as Calendar, type CalendarMode, type CalendarProps, type CalendarRef, _default$5 as Card, type CardEmits, CardGrid, type CardGridProps, type CardGridRef, CardMeta, type CardMetaProps, type CardMetaRef, type CardProps, type CardSize, type CardSlots, type CardTabListType, Carousel, type CarouselEmits, type CarouselProps, type CarouselRef, type CarouselSlots, Cascader, type CascaderEmits, CascaderPanel, type CascaderPanelEmits, type CascaderPanelProps, type CascaderPanelSlots, type CascaderProps, type CascaderSlots, CheckableTag, CheckableTagGroup, type CheckableTagProps, InternalCheckbox as Checkbox, type CheckboxEmits, CheckboxGroup, type CheckboxGroupEmits, type CheckboxGroupProps, type CheckboxGroupSlots, type CheckboxOptionType, type CheckboxProps, type CheckboxSlots, Col, type ColProps, type ColSize, Collapse, CollapsePanel, type CollapsePanelProps, type CollapsePanelSlots, type CollapseProps, type AggregationColor as Color, ColorPicker, type ColorPickerEmits, type ColorPickerProps, type ColorPickerSlots, type ColorValueType, _default$6 as ConfigProvider, type ConfigProviderProps, type DataSourceItemObject, type DataSourceItemType, DateMonthPicker, _default$7 as DatePicker, type DatePickerEmits, type DatePickerProps, type DatePickerSlots, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItem, type DescriptionsItemProps, type DescriptionsItemSlots, type DescriptionsItemType, type DescriptionsProps, type DescriptionsRef, type DescriptionsSlots, DirectoryTree, type DirectoryTreeEmits, type ExpandAction as DirectoryTreeExpandAction, type DirectoryTreeProps, type DirectoryTreeSlots, Divider, type DividerProps, type DividerRef, Drawer, type DrawerEmits, type DrawerProps, type DrawerResizableConfig, type DrawerSlots, Dropdown, type DropdownArrowOptions, type DropdownEmits, type DropdownProps, type DropdownSlots, _default$8 as Empty, type EmptyProps, type EmptyRef, type EmptySlots, Flex, type FlexProps, type FlexSlots, FloatButton, FloatButtonGroup, type FloatButtonGroupProps, type FloatButtonGroupRef, type FloatButtonProps, type FloatButtonRef, Form, type FormConstructor, type FormEmits, type FormHookInstance, type FormInstance, InternalFormItem as FormItem, type FormItemEmits, type FormItemProps, type FormItemSlots, type FormProps, type FormSlots, type FormValues, _default_1 as Image, type ImageEmits, type PreviewConfig as ImagePreviewConfig, ImagePreviewGroup, type ImagePreviewGroupProps, type ImageProps, type ImageSlots, CompoundedInput as Input, type InputEmits, InputGroup, type InputGroupProps, InputNumber, type InputNumberEmits, type InputNumberProps, type VcInputNumberRef as InputNumberRef, type InputNumberStepContext, type ValueType as InputNumberValueType, InputOTP, type OTPEmits as InputOTPEmits, type OTPProps as InputOTPProps, type OTPSlots as InputOTPSlots, InputPassword, type PasswordProps as InputPasswordProps, type InputPasswordRef, type InputProps, type InputRef, InputSearch, type SearchProps as InputSearchProps, type InputSearchRef, type InputSlots, type InputTextAreaRef, type KeyWise, type KeyWiseTransferItem, Layout, LayoutContent, LayoutFooter, LayoutHeader, type BasicProps as LayoutProps, LayoutSider, type LegacyButtonType, type ListStyle, Listy, type ListyClassNames, type ListyProps, type ListyRef, type ListyScrollToConfig, type ListyStyles, _default$9 as Masonry, type MasonryEmits, type MasonryProps, type MasonryRef, type MasonrySlots, type MentionPlacement, Mentions, type MentionsClassNamesType, type MentionsEmits, Option$1 as MentionsOption, type MentionsOptionProps, type MentionsProps, type MentionsRef, type MentionsSlots, type MentionsStylesType, _default$10 as Menu, MenuDivider, type MenuEmits, type MenuInfo, MenuItem, MenuItemGroup, type MenuItemGroupProps, type MenuItemProps, type MenuItemType, type MenuProps, type MenuRef, type MenuSlots, type MenuTheme, type ArgsProps as MessageArgsProps, _default$11 as Modal, type ModalEmits, type ModalFuncProps, type ModalLocale, type ModalProps, type ModalSlots, type MonthPickerProps, type ArgsProps$1 as NotificationArgsProps, Pagination, type PaginationClassNamesType, type PaginationComponents, type PaginationConfig, type PaginationEmits, type PaginationLocale, type PaginationPosition, type PaginationProps, type PaginationSizeChangerProps, type PaginationSlots, type PaginationStylesType, Popconfirm, type PopconfirmEmits, type PopconfirmProps, type PopconfirmSlots, Popover, type PopoverEmits, type PopoverProps, type PopoverRef, type PopoverSlots, Progress, type ProgressProps, QRCode, type QRCodeEmits, type QRCodeProps, type QRCodeRef, InternalRadio as Radio, RadioButton, type RadioChangeEvent, type RadioEmits, RadioGroup, type RadioGroupEmits, type RadioGroupOptionType, type RadioGroupProps, type RadioGroupSlots, type RadioOptionType, type RadioProps, type RadioSlots, type RangePickerProps, Rate, type RateEmits, type RateProps, type RenderResult, type RenderResultObject, _default$12 as Result, type ResultProps, type ResultRef, type ResultSlots, type ResultStatusType, Row, type RowProps, type Rule, type RuleObject, type RuleRender, type RuleType, Segmented, type SegmentedEmits, type SegmentedOptions, type SegmentedProps, type SegmentedSlots, Select, type SelectAllLabel, type SelectEmits, type SelectInfo, SelectOptGroup, SelectOption, type SelectProps, type SelectSlots, type SelectValue, type SiderProps, SkeletonWithSubComponents as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, type SkeletonProps, type SkeletonRef, Slider, type SliderEmits, type SliderProps, type SliderRef, Space, SpaceAddon, SpaceCompact, type SpaceCompactProps, type SpaceCompactRef, type SpaceProps, type SpaceSize, type SpaceSlots, _default$13 as Spin, type SpinProps, type SpinRef, type SpinSlots, Splitter, type SplitterEmits, SplitterPanel, type SplitterProps, type SplitterRef, type SplitterSlots, _default$14 as Statistic, type StatisticProps, type StatisticRef, StatisticTimer, type StatisticTimerProps, type StepItem, Steps, type StepsEmits, type StepsProps, type StepsSlots, SubMenu, type SubMenuProps, Switch, type SwitchEmits, type SwitchProps, type SwitchSize, type SwitchSlots, TabPane, type TabPaneProps, _default$15 as Table, type TableClassNamesType, Column as TableColumn, ColumnGroup as TableColumnGroup, type ColumnType as TableColumnType, type ColumnsType as TableColumnsType, type DataIndex as TableDataIndex, type TableEmits, type FilterDropdownProps as TableFilterDropdownProps, type TableLocale, type TablePaginationConfig, type TableProps, type TableRowSelection, type TableSlots, type SortOrder as TableSortOrder, type SorterResult as TableSorterResult, type TableStylesType, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, type TabsEmits, type TabsProps, type TabsRef, type TabsSlots, Tag, type TagProps, type TagSlots, InternalTextArea as TextArea, type TextAreaProps, type TextAreaRef, _default$16 as TimePicker, type TimePickerEmits, type TimePickerLocale, type TimePickerProps, type TimePickerSlots, TimeRangePicker, type TimeRangePickerEmits, type TimeRangePickerProps, type TimeRangePickerSlots, Timeline, TimelineItem, type TimelineItemProps, type TimelineItemSlots, type TimelineItemType, type TimelineProps, _default$17 as Tooltip, type TooltipAlignConfig, type TooltipEmits, type TooltipPlacement, type TooltipProps, type TooltipRef, type TooltipSlots, Tour, type TourEmits, type TourLocale, type TourProps, type TourSlots, type TourStepItem, type TourStylesType, InternalTransfer as Transfer, type TransferClassNamesType, type TransferCustomListBodyProps, type TransferDirection, type TransferEmits, type TransferItem, type TransferKey, type TransferListBodyProps, type TransferListProps, type TransferLocale, type TransferOperationProps, type PaginationType as TransferPaginationType, type TransferProps, type TransferRef, type TransferRender, type TransferSearchEmits, type TransferSearchOption, type TransferSearchProps, type TransferSearchSlots, type TransferSlots, type TransferStylesType, Tree, type DataNode as TreeDataNode, type TreeEmits, type TreeInstance, type TreeProps, TreeSelect, type TreeSelectEmits, type TreeSelectNode, type TreeSelectProps, type TreeSelectSlots, type TreeSlots, type UseTreeConfig as TreeUseTreeConfig, Typography, type BlockProps as TypographyBaseProps, TypographyLink, type LinkProps as TypographyLinkProps, TypographyParagraph, type ParagraphProps as TypographyParagraphProps, TypographyText, type TextProps as TypographyTextProps, TypographyTitle, type TitleProps as TypographyTitleProps, UniqueProvider, Upload, type UploadChangeParam, UploadDragger, type DraggerProps as UploadDraggerProps, type UploadEmits, type UploadFile, type UploadProps, type UploadRef, type UploadSlots, Watermark, type WatermarkContent, type WatermarkEmits, type WatermarkFont, type WatermarkProps, type WatermarkRef, type WatermarkSlots, type WatermarkText, type WeekPickerProps, staticMethods as message, staticMethods$1 as notification, useExportConfig as useConfig, useForm, useFormInstance, useLayoutSider, useMessage, useModal, useNotification, useTree };
|
package/dist/components.js
CHANGED
|
@@ -68,7 +68,7 @@ import BackTopWithInstall from "./float-button/BackTop.js";
|
|
|
68
68
|
import FloatButtonGroup from "./float-button/FloatButtonGroup.js";
|
|
69
69
|
import float_button_default from "./float-button/index.js";
|
|
70
70
|
import InternalFormItem from "./form/FormItem/index.js";
|
|
71
|
-
import
|
|
71
|
+
import Form from "./form/index.js";
|
|
72
72
|
import Image, { ImagePreviewGroup } from "./image/index.js";
|
|
73
73
|
import InternalTextArea from "./input/TextArea.js";
|
|
74
74
|
import CompoundedInput, { InputGroup, InputOTP, InputPassword, InputSearch } from "./input/index.js";
|
|
@@ -153,7 +153,7 @@ var components_exports = /* @__PURE__ */ __exportAll({
|
|
|
153
153
|
Flex: () => Flex,
|
|
154
154
|
FloatButton: () => float_button_default,
|
|
155
155
|
FloatButtonGroup: () => FloatButtonGroup,
|
|
156
|
-
Form: () =>
|
|
156
|
+
Form: () => Form,
|
|
157
157
|
FormItem: () => InternalFormItem,
|
|
158
158
|
Image: () => Image,
|
|
159
159
|
ImagePreviewGroup: () => ImagePreviewGroup,
|
|
@@ -250,4 +250,4 @@ var components_exports = /* @__PURE__ */ __exportAll({
|
|
|
250
250
|
useTree: () => useTree
|
|
251
251
|
});
|
|
252
252
|
//#endregion
|
|
253
|
-
export { Affix, alert_default as Alert, anchor_default as Anchor, App, AutoComplete, Option as AutoCompleteOption, Avatar, AvatarGroup, BackTopWithInstall as BackTop, Badge, BadgeRibbon, border_beam_default as BorderBeam, breadcrumb_default as Breadcrumb, BreadcrumbItem, BreadcrumbSeparator, button_default as Button, Calendar, card_default as Card, CardGrid, CardMeta, Carousel, Cascader, CascaderPanel, CheckableTag, CheckableTagGroup, checkbox_default as Checkbox, CheckboxGroup, Col, collapse_default as Collapse, CollapsePanel, color_picker_default as ColorPicker, ConfigProvider, DateMonthPicker, DatePicker, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItem, DirectoryTree, Divider, Drawer, Dropdown, Empty, Flex, float_button_default as FloatButton, FloatButtonGroup,
|
|
253
|
+
export { Affix, alert_default as Alert, anchor_default as Anchor, App, AutoComplete, Option as AutoCompleteOption, Avatar, AvatarGroup, BackTopWithInstall as BackTop, Badge, BadgeRibbon, border_beam_default as BorderBeam, breadcrumb_default as Breadcrumb, BreadcrumbItem, BreadcrumbSeparator, button_default as Button, Calendar, card_default as Card, CardGrid, CardMeta, Carousel, Cascader, CascaderPanel, CheckableTag, CheckableTagGroup, checkbox_default as Checkbox, CheckboxGroup, Col, collapse_default as Collapse, CollapsePanel, color_picker_default as ColorPicker, ConfigProvider, DateMonthPicker, DatePicker, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItem, DirectoryTree, Divider, Drawer, Dropdown, Empty, Flex, float_button_default as FloatButton, FloatButtonGroup, Form, InternalFormItem as FormItem, Image, ImagePreviewGroup, CompoundedInput as Input, InputGroup, InputNumber, InputOTP, InputPassword, InputSearch, layout_default as Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, Listy, masonry_default as Masonry, Mentions, Option$1 as MentionsOption, Menu, MenuDivider, MenuItem, MenuItemGroup, Modal, pagination_default as Pagination, Popconfirm, Popover, Progress, QRCode, radio_default as Radio, RadioButton, RadioGroup, Rate, Result, Row, Segmented, Select, SelectOptGroup, SelectOption, skeleton_default as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, Slider, Space, SpaceAddon, SpaceCompact, Spin, splitter_default as Splitter, SplitterPanel, statistic_default as Statistic, StatisticTimer, Steps, SubMenu, Switch, TabPane, InternalTable as Table, Column as TableColumn, ColumnGroup as TableColumnGroup, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, Tag, InternalTextArea as TextArea, TimePicker, TimeRangePicker, timeline_default as Timeline, TimelineItem, InternalTooltip as Tooltip, Tour, InternalTransfer as Transfer, Tree, TreeSelect, Typography, TypographyLink, TypographyParagraph, TypographyText, TypographyTitle, UniqueProvider, Upload, UploadDragger, Watermark, components_exports, staticMethods as message, staticMethods$1 as notification, useExportConfig as useConfig, useForm, useFormInstance, useLayoutSider, useMessage, useModal, useNotification, useTree };
|
|
@@ -490,7 +490,7 @@ declare function useBaseConfig<K extends string>(suffixCls?: K, props?: Componen
|
|
|
490
490
|
getPrefixCls: (suffixCls?: string, prefixCls?: string) => string;
|
|
491
491
|
prefixCls: Readonly<Ref<string, string>>;
|
|
492
492
|
direction: Readonly<Ref<DirectionType, DirectionType>>;
|
|
493
|
-
getPopupContainer:
|
|
493
|
+
getPopupContainer: NonNullable<ConfigConsumerProps["getPopupContainer"]>;
|
|
494
494
|
};
|
|
495
495
|
/**
|
|
496
496
|
* Get ConfigProvider configured component props.
|
|
@@ -508,9 +508,9 @@ declare function useComponentBaseConfig<T extends keyof ConfigComponentProps, K
|
|
|
508
508
|
direction: Readonly<Ref<DirectionType, DirectionType>>;
|
|
509
509
|
prefixCls: Readonly<Ref<string, string>>;
|
|
510
510
|
rootPrefixCls: Readonly<Ref<string, string>>;
|
|
511
|
-
getPopupContainer:
|
|
511
|
+
getPopupContainer: NonNullable<ConfigConsumerProps["getPopupContainer"]>;
|
|
512
512
|
getPrefixCls: (suffixCls?: string, customizePrefixCls?: string) => string;
|
|
513
|
-
getTargetContainer:
|
|
513
|
+
getTargetContainer: NonNullable<ConfigConsumerProps["getTargetContainer"]>;
|
|
514
514
|
virtual: Readonly<Ref<boolean | undefined, boolean | undefined>>;
|
|
515
515
|
renderEmpty: Readonly<Ref<RenderEmptyHandler | undefined, RenderEmptyHandler | undefined>>;
|
|
516
516
|
popupMatchSelectWidth: Readonly<Ref<boolean | undefined, boolean | undefined>>;
|
|
@@ -34,7 +34,7 @@ function useBaseConfig(suffixCls, props) {
|
|
|
34
34
|
getPrefixCls: (suffixCls, prefixCls) => config.value?.getPrefixCls(suffixCls, prefixCls),
|
|
35
35
|
prefixCls: toRef(() => config.value?.getPrefixCls(suffixCls, props?.prefixCls)),
|
|
36
36
|
direction: toRef(() => config.value?.direction),
|
|
37
|
-
getPopupContainer: config?.
|
|
37
|
+
getPopupContainer: ((...args) => config.value?.getPopupContainer?.(...args))
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
@@ -83,9 +83,9 @@ function useComponentBaseConfig(propName, props, keys, suffixCls) {
|
|
|
83
83
|
direction: toRef(() => context.value.direction),
|
|
84
84
|
prefixCls: toRef(() => context.value?.getPrefixCls(suffixCls ?? propName, props?.prefixCls)),
|
|
85
85
|
rootPrefixCls: toRef(() => context.value?.getPrefixCls()),
|
|
86
|
-
getPopupContainer: context.value
|
|
86
|
+
getPopupContainer: ((...args) => context.value?.getPopupContainer?.(...args)),
|
|
87
87
|
getPrefixCls: context.value.getPrefixCls,
|
|
88
|
-
getTargetContainer: context.value
|
|
88
|
+
getTargetContainer: (() => context.value?.getTargetContainer?.()),
|
|
89
89
|
virtual: toRef(() => context.value.virtual),
|
|
90
90
|
renderEmpty: toRef(() => context.value.renderEmpty),
|
|
91
91
|
popupMatchSelectWidth: toRef(() => context.value.popupMatchSelectWidth),
|
|
@@ -8,23 +8,23 @@ declare function useItems(screens: Ref<ScreenMap>, items: Ref<DescriptionsItemTy
|
|
|
8
8
|
filled: boolean;
|
|
9
9
|
_$index: number;
|
|
10
10
|
key?: import("@v-c/util/dist/type").Key;
|
|
11
|
-
|
|
11
|
+
label?: VueNode;
|
|
12
12
|
style?: import("vue").CSSProperties | undefined;
|
|
13
|
-
|
|
13
|
+
class?: string | undefined;
|
|
14
14
|
styles?: CellSemanticStyles | undefined;
|
|
15
|
+
classes?: CellSemanticClassNames | undefined;
|
|
15
16
|
rootClass?: string | undefined;
|
|
16
17
|
content?: VueNode;
|
|
17
|
-
label?: VueNode;
|
|
18
18
|
} | {
|
|
19
19
|
span: number | undefined;
|
|
20
20
|
key?: import("@v-c/util/dist/type").Key;
|
|
21
|
-
|
|
21
|
+
label?: VueNode;
|
|
22
22
|
style?: import("vue").CSSProperties | undefined;
|
|
23
|
-
|
|
23
|
+
class?: string | undefined;
|
|
24
24
|
styles?: CellSemanticStyles | undefined;
|
|
25
|
+
classes?: CellSemanticClassNames | undefined;
|
|
25
26
|
rootClass?: string | undefined;
|
|
26
27
|
content?: VueNode;
|
|
27
|
-
label?: VueNode;
|
|
28
28
|
_$index: number;
|
|
29
29
|
})[]>;
|
|
30
30
|
//#endregion
|
|
@@ -6,7 +6,7 @@ function getCalcRows(rowItems, mergedColumn) {
|
|
|
6
6
|
let tmpRow = [];
|
|
7
7
|
let exceed = false;
|
|
8
8
|
let count = 0;
|
|
9
|
-
rowItems.
|
|
9
|
+
rowItems.forEach((rowItem) => {
|
|
10
10
|
const { filled, ...restItem } = rowItem;
|
|
11
11
|
if (filled) {
|
|
12
12
|
tmpRow.push(restItem);
|
package/dist/form/Form.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ColProps } from "../grid/col.js";
|
|
|
5
5
|
import "../grid/index.js";
|
|
6
6
|
import { FormLabelAlign, ScrollFocusOptions } from "./interface.js";
|
|
7
7
|
import { FormTooltipProps } from "./FormItemLabel.js";
|
|
8
|
-
import { FieldData,
|
|
8
|
+
import { FieldData, FormInstance, FormValues, InternalNamePath, RulesMap, ValidateErrorEntity, ValidateMessages } from "./types.js";
|
|
9
9
|
import { FeedbackIcons } from "./FormItem/index.js";
|
|
10
10
|
import { ComponentBaseProps, Variant } from "../config-provider/context.js";
|
|
11
11
|
import { CSSProperties, HTMLAttributes, SlotsType } from "vue";
|
|
@@ -34,7 +34,7 @@ interface FormSemanticStyles {
|
|
|
34
34
|
}
|
|
35
35
|
type FormClassNamesType = SemanticClassNamesType<FormProps, FormSemanticClassNames>;
|
|
36
36
|
type FormStylesType = SemanticStylesType<FormProps, FormSemanticStyles>;
|
|
37
|
-
interface FormProps extends ComponentBaseProps, FormEmitsProps {
|
|
37
|
+
interface FormProps<Values = Record<string, any>> extends ComponentBaseProps, FormEmitsProps<Values> {
|
|
38
38
|
classes?: FormClassNamesType;
|
|
39
39
|
styles?: FormStylesType;
|
|
40
40
|
colon?: boolean;
|
|
@@ -51,7 +51,7 @@ interface FormProps extends ComponentBaseProps, FormEmitsProps {
|
|
|
51
51
|
requiredMark?: RequiredMark;
|
|
52
52
|
variant?: Variant;
|
|
53
53
|
validateMessages?: ValidateMessages;
|
|
54
|
-
model?:
|
|
54
|
+
model?: Values;
|
|
55
55
|
rules?: RulesMap;
|
|
56
56
|
validateTrigger?: string | string[] | false;
|
|
57
57
|
preserve?: boolean;
|
|
@@ -61,54 +61,27 @@ interface FormProps extends ComponentBaseProps, FormEmitsProps {
|
|
|
61
61
|
autocomplete?: string | undefined;
|
|
62
62
|
tooltip?: FormTooltipProps;
|
|
63
63
|
}
|
|
64
|
-
interface FormEmits {
|
|
65
|
-
finish: (values:
|
|
66
|
-
finishFailed: (errorInfo: ValidateErrorEntity) => void;
|
|
64
|
+
interface FormEmits<Values = any> {
|
|
65
|
+
finish: (values: FormValues<Values>) => void;
|
|
66
|
+
finishFailed: (errorInfo: ValidateErrorEntity<FormValues<Values>>) => void;
|
|
67
67
|
submit: (e: Event) => void;
|
|
68
68
|
reset: (e: Event) => void;
|
|
69
69
|
validate: (name: InternalNamePath, status: boolean, errors: any[] | null) => void;
|
|
70
|
-
valuesChange: (changedValues: Record<string, any>, values:
|
|
70
|
+
valuesChange: (changedValues: Record<string, any>, values: FormValues<Values>) => void;
|
|
71
71
|
fieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
72
72
|
}
|
|
73
|
-
interface FormEmitsProps {
|
|
74
|
-
onFinish?: FormEmits['finish'];
|
|
75
|
-
onFinishFailed?: FormEmits['finishFailed'];
|
|
76
|
-
onSubmit?: FormEmits['submit'];
|
|
77
|
-
onReset?: FormEmits['reset'];
|
|
78
|
-
onValidate?: FormEmits['validate'];
|
|
79
|
-
onValuesChange?: FormEmits['valuesChange'];
|
|
80
|
-
onFieldsChange?: FormEmits['fieldsChange'];
|
|
73
|
+
interface FormEmitsProps<Values = any> {
|
|
74
|
+
onFinish?: FormEmits<Values>['finish'];
|
|
75
|
+
onFinishFailed?: FormEmits<Values>['finishFailed'];
|
|
76
|
+
onSubmit?: FormEmits<Values>['submit'];
|
|
77
|
+
onReset?: FormEmits<Values>['reset'];
|
|
78
|
+
onValidate?: FormEmits<Values>['validate'];
|
|
79
|
+
onValuesChange?: FormEmits<Values>['valuesChange'];
|
|
80
|
+
onFieldsChange?: FormEmits<Values>['fieldsChange'];
|
|
81
81
|
}
|
|
82
82
|
interface FormSlots {
|
|
83
83
|
default: () => any;
|
|
84
84
|
}
|
|
85
|
-
|
|
86
|
-
getFieldValue: (name: NamePath) => any;
|
|
87
|
-
getFieldsValue: (nameList?: NamePath[] | true) => Record<string, any>;
|
|
88
|
-
getFieldError: (name: NamePath) => string[];
|
|
89
|
-
getFieldsError: (nameList?: NamePath[]) => {
|
|
90
|
-
name: InternalNamePath;
|
|
91
|
-
errors: string[];
|
|
92
|
-
warnings: string[];
|
|
93
|
-
}[];
|
|
94
|
-
getFieldWarning: (name: NamePath) => string[];
|
|
95
|
-
isFieldsTouched: (nameList?: NamePath[] | boolean, allFieldsTouched?: boolean) => boolean;
|
|
96
|
-
isFieldTouched: (name: NamePath) => boolean;
|
|
97
|
-
isFieldsValidating: (nameList?: NamePath[]) => boolean;
|
|
98
|
-
isFieldValidating: (name: NamePath) => boolean;
|
|
99
|
-
resetFields: (nameList?: NamePath[] | InternalNamePath[]) => void;
|
|
100
|
-
clearValidate: (nameList?: NamePath[] | InternalNamePath[]) => void;
|
|
101
|
-
setFields: (data: FieldData[]) => void;
|
|
102
|
-
setFieldValue: (name: NamePath, value: any) => void;
|
|
103
|
-
setFieldsValue: (values: Record<string, any>) => void;
|
|
104
|
-
validateFields: (nameList?: NamePath[] | ValidateOptions, options?: ValidateOptions) => Promise<Record<string, any>>;
|
|
105
|
-
validate: (nameList?: NamePath[] | ValidateOptions, options?: ValidateOptions) => Promise<Record<string, any>>;
|
|
106
|
-
submit: () => void;
|
|
107
|
-
nativeElement: HTMLFormElement | undefined;
|
|
108
|
-
scrollToField: (fieldName: NamePath, options?: ScrollFocusOptions | boolean) => void;
|
|
109
|
-
focusField: (fieldName: NamePath) => void;
|
|
110
|
-
getFieldInstance: (name: NamePath) => any;
|
|
111
|
-
}
|
|
112
|
-
declare const InternalForm: import("vue").DefineSetupFnComponent<FormProps, FormEmits, SlotsType<FormSlots>, FormProps, import("vue").PublicProps>;
|
|
85
|
+
declare const InternalForm: import("vue").DefineSetupFnComponent<FormProps<Record<string, any>>, FormEmits<any>, SlotsType<FormSlots>, FormProps<Record<string, any>>, import("vue").PublicProps>;
|
|
113
86
|
//#endregion
|
|
114
|
-
export { FormClassNamesType, FormEmits, FormEmitsProps, FormInstance, FormItemLayout, FormLayout, FormProps, FormSemanticClassNames, FormSemanticName, FormSemanticStyles, FormSlots, FormStylesType, RequiredMark, type ScrollFocusOptions, InternalForm as default };
|
|
87
|
+
export { FormClassNamesType, FormEmits, FormEmitsProps, type FormInstance, FormItemLayout, FormLayout, FormProps, FormSemanticClassNames, FormSemanticName, FormSemanticStyles, FormSlots, FormStylesType, RequiredMark, type ScrollFocusOptions, InternalForm as default };
|
package/dist/form/Form.js
CHANGED
|
@@ -21,6 +21,32 @@ import { cloneDeep, pick } from "es-toolkit";
|
|
|
21
21
|
import scrollIntoView from "scroll-into-view-if-needed";
|
|
22
22
|
import { getDOM } from "@v-c/util/dist/Dom/findDOMNode";
|
|
23
23
|
//#region src/form/Form.tsx
|
|
24
|
+
function isPlainRecord(val) {
|
|
25
|
+
return val !== null && typeof val === "object" && !Array.isArray(val) && Object.getPrototypeOf(val) === Object.prototype;
|
|
26
|
+
}
|
|
27
|
+
function clonePayloadValue(value, seen = /* @__PURE__ */ new Map()) {
|
|
28
|
+
const isArray = Array.isArray(value);
|
|
29
|
+
if (!isArray && !isPlainRecord(value)) return value;
|
|
30
|
+
if (seen.has(value)) return seen.get(value);
|
|
31
|
+
const cloned = isArray ? [] : {};
|
|
32
|
+
seen.set(value, cloned);
|
|
33
|
+
Object.keys(value).forEach((key) => {
|
|
34
|
+
cloned[key] = clonePayloadValue(value[key], seen);
|
|
35
|
+
});
|
|
36
|
+
return cloned;
|
|
37
|
+
}
|
|
38
|
+
function mergeModelValue(target, source, ancestors = /* @__PURE__ */ new Set()) {
|
|
39
|
+
Object.keys(source).forEach((key) => {
|
|
40
|
+
const next = source[key];
|
|
41
|
+
const prev = target[key];
|
|
42
|
+
if (isPlainRecord(next) && isPlainRecord(prev)) {
|
|
43
|
+
if (ancestors.has(next)) return;
|
|
44
|
+
ancestors.add(next);
|
|
45
|
+
mergeModelValue(prev, next, ancestors);
|
|
46
|
+
ancestors.delete(next);
|
|
47
|
+
} else target[key] = clonePayloadValue(next);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
24
50
|
const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, emit, attrs }) => {
|
|
25
51
|
const contextDisabled = useDisabledContext();
|
|
26
52
|
const { prefixCls, direction, requiredMark: contextRequiredMark, colon: contextColon, scrollToFirstError: contextScrollToFirstError, autoComplete: contextAutoComplete, autocomplete: contextAutocomplete, class: contextClassName, style: contextStyle, styles: contextStyles, classes: contextClassNames, tooltip: contextTooltip, labelAlign: contextLabelAlign, labelWrap: contextLabelWrap } = useComponentBaseConfig("form", props, [
|
|
@@ -109,10 +135,31 @@ const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, em
|
|
|
109
135
|
const getFieldValue = (namePath) => {
|
|
110
136
|
return get(model.value ?? {}, namePath);
|
|
111
137
|
};
|
|
112
|
-
const getFieldsValue = (nameList) => {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
138
|
+
const getFieldsValue = (nameList, filterFunc) => {
|
|
139
|
+
let mergedNameList;
|
|
140
|
+
let mergedFilterFunc;
|
|
141
|
+
if (nameList === true || Array.isArray(nameList)) {
|
|
142
|
+
mergedNameList = nameList;
|
|
143
|
+
mergedFilterFunc = filterFunc;
|
|
144
|
+
} else if (nameList && typeof nameList === "object") mergedFilterFunc = nameList.filter;
|
|
145
|
+
const store = model.value ?? {};
|
|
146
|
+
const filter = mergedFilterFunc;
|
|
147
|
+
if (mergedNameList === true && !filter) return cloneDeep(store);
|
|
148
|
+
const fieldList = Object.values(fields);
|
|
149
|
+
const filteredNameList = [];
|
|
150
|
+
if (Array.isArray(mergedNameList)) for (const name of mergedNameList) {
|
|
151
|
+
const namePath = getNamePath(name);
|
|
152
|
+
let matched = false;
|
|
153
|
+
for (const field of fieldList) {
|
|
154
|
+
const fieldNamePath = field.namePath();
|
|
155
|
+
if (!matchNamePath(fieldNamePath, namePath, true)) continue;
|
|
156
|
+
matched = true;
|
|
157
|
+
if (!filter || filter({ ...field.getMeta() })) filteredNameList.push(fieldNamePath);
|
|
158
|
+
}
|
|
159
|
+
if (!matched && (!filter || filter(null))) filteredNameList.push(namePath);
|
|
160
|
+
}
|
|
161
|
+
else for (const field of fieldList) if (!filter || filter({ ...field.getMeta() })) filteredNameList.push(field.namePath());
|
|
162
|
+
return cloneByNamePathList(store, filteredNameList);
|
|
116
163
|
};
|
|
117
164
|
const getFields = (namePathList) => {
|
|
118
165
|
return getFieldsByNameList(namePathList).map((field) => {
|
|
@@ -284,9 +331,11 @@ const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, em
|
|
|
284
331
|
};
|
|
285
332
|
const setFieldsValue = (values) => {
|
|
286
333
|
if (!model.value) return;
|
|
334
|
+
let store = {};
|
|
287
335
|
Object.keys(values || {}).forEach((key) => {
|
|
288
|
-
|
|
336
|
+
store = set(store, getNamePath(key), values[key]);
|
|
289
337
|
});
|
|
338
|
+
mergeModelValue(model.value, store);
|
|
290
339
|
triggerFieldsChange();
|
|
291
340
|
};
|
|
292
341
|
const getFieldError = (name) => {
|
|
@@ -12,8 +12,8 @@ type FeedbackIcons = (itemStatus: {
|
|
|
12
12
|
errors?: any[];
|
|
13
13
|
warnings?: any[];
|
|
14
14
|
}) => { [key in ValidateStatus]?: any; };
|
|
15
|
-
interface BaseFormItemProps {
|
|
16
|
-
name?: NamePath
|
|
15
|
+
interface BaseFormItemProps<Values = any> {
|
|
16
|
+
name?: NamePath<Values>;
|
|
17
17
|
rules?: Rule[];
|
|
18
18
|
trigger?: TriggerType | TriggerType[];
|
|
19
19
|
validateTrigger?: TriggerType | TriggerType[] | false;
|
|
@@ -21,7 +21,7 @@ interface BaseFormItemProps {
|
|
|
21
21
|
validateFirst?: boolean | 'parallel';
|
|
22
22
|
preserve?: boolean;
|
|
23
23
|
}
|
|
24
|
-
type FormItemProps = BaseFormItemProps & ComponentBaseProps & Omit<FormItemLabelProps, 'requiredMark'> & FormItemInputProps & {
|
|
24
|
+
type FormItemProps<Values = any> = BaseFormItemProps<Values> & ComponentBaseProps & Omit<FormItemLabelProps, 'requiredMark'> & FormItemInputProps & {
|
|
25
25
|
noStyle?: boolean;
|
|
26
26
|
id?: string;
|
|
27
27
|
hasFeedback?: boolean | {
|