antdv-next 1.5.2 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_util/hooks/useMergedMask.js +1 -1
- package/dist/_util/statusUtils.d.ts +1 -1
- package/dist/_util/vueNode.d.ts +6 -2
- package/dist/alert/Alert.js +7 -7
- package/dist/anchor/AnchorLink.d.ts +4 -3
- package/dist/antd-with-locales.esm.js +14913 -13982
- package/dist/antd-with-locales.js +81 -81
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +11493 -10902
- package/dist/antd.js +81 -81
- package/dist/auto-complete/index.d.ts +4 -4
- package/dist/auto-complete/index.js +17 -10
- package/dist/breadcrumb/Breadcrumb.js +4 -3
- package/dist/breadcrumb/BreadcrumbItem.js +2 -1
- package/dist/button/buttonHelper.d.ts +1 -1
- package/dist/card/Card.d.ts +5 -1
- package/dist/card/Card.js +9 -5
- package/dist/card/CardMeta.js +4 -3
- package/dist/cascader/index.d.ts +6 -6
- package/dist/cascader/index.js +9 -0
- package/dist/checkbox/Checkbox.js +1 -1
- package/dist/color-picker/ColorPicker.js +7 -7
- package/dist/config-provider/SizeContext.d.ts +1 -1
- package/dist/config-provider/SizeContext.js +1 -1
- package/dist/config-provider/context.d.ts +5 -2
- package/dist/config-provider/hooks/useTheme.js +2 -1
- package/dist/date-picker/generatePicker/generateRangePicker.js +15 -2
- package/dist/date-picker/generatePicker/generateSinglePicker.js +14 -1
- package/dist/date-picker/generatePicker/useComponents.d.ts +2 -2
- package/dist/date-picker/locale/ar_EG.js +8 -0
- package/dist/date-picker/locale/bg_BG.js +8 -0
- package/dist/date-picker/locale/ca_ES.js +8 -0
- package/dist/date-picker/locale/cs_CZ.js +8 -0
- package/dist/date-picker/locale/da_DK.js +8 -0
- package/dist/date-picker/locale/de_DE.js +11 -1
- package/dist/date-picker/locale/es_ES.js +8 -0
- package/dist/date-picker/locale/fi_FI.js +8 -0
- package/dist/date-picker/locale/fr_BE.js +1 -0
- package/dist/date-picker/locale/fr_CA.js +1 -0
- package/dist/date-picker/locale/fr_FR.js +1 -0
- package/dist/date-picker/locale/gl_ES.js +8 -0
- package/dist/date-picker/locale/he_IL.js +8 -0
- package/dist/date-picker/locale/hi_IN.js +1 -0
- package/dist/date-picker/locale/hr_HR.js +1 -0
- package/dist/date-picker/locale/hu_HU.js +8 -0
- package/dist/date-picker/locale/it_IT.js +8 -0
- package/dist/date-picker/locale/ms_MY.js +8 -0
- package/dist/date-picker/locale/nb_NO.js +1 -0
- package/dist/date-picker/locale/nl_BE.js +1 -0
- package/dist/date-picker/locale/nl_NL.js +1 -0
- package/dist/date-picker/locale/pl_PL.js +8 -0
- package/dist/date-picker/locale/pt_BR.js +8 -0
- package/dist/date-picker/locale/pt_PT.js +8 -0
- package/dist/date-picker/locale/ro_RO.js +8 -0
- package/dist/date-picker/locale/ru_RU.js +1 -0
- package/dist/date-picker/locale/sk_SK.js +8 -0
- package/dist/date-picker/locale/sr_RS.js +1 -0
- package/dist/date-picker/locale/sv_SE.js +1 -0
- package/dist/date-picker/locale/th_TH.js +1 -0
- package/dist/date-picker/locale/tr_TR.js +1 -0
- package/dist/date-picker/locale/uk_UA.js +1 -0
- package/dist/date-picker/locale/zh_TW.js +1 -1
- package/dist/descriptions/Row.js +4 -3
- package/dist/descriptions/hooks/useItems.d.ts +6 -6
- package/dist/drawer/DrawerPanel.js +7 -4
- package/dist/drawer/index.js +2 -1
- package/dist/dropdown/dropdown.d.ts +3 -6
- package/dist/dropdown/dropdown.js +8 -4
- package/dist/empty/index.js +2 -1
- package/dist/float-button/FloatButton.js +2 -1
- package/dist/float-button/style/group.js +31 -5
- package/dist/form/FormItemLabel.js +2 -1
- package/dist/form/context.d.ts +1 -1
- package/dist/form/hooks/useVariant.d.ts +1 -1
- package/dist/form/style/index.js +4 -1
- package/dist/grid/row.js +9 -16
- package/dist/image/PreviewGroup.js +1 -1
- package/dist/image/hooks/usePreviewConfig.d.ts +3 -3
- package/dist/input/Password.js +2 -2
- package/dist/input/Search.js +1 -4
- package/dist/input-number/index.d.ts +11 -0
- package/dist/input-number/index.js +21 -0
- package/dist/input-number/style/index.js +25 -2
- package/dist/listy/index.js +4 -0
- package/dist/locale/ar_EG.js +4 -0
- package/dist/locale/bg_BG.js +4 -0
- package/dist/locale/ca_ES.js +4 -0
- package/dist/locale/cs_CZ.js +4 -0
- package/dist/locale/da_DK.js +4 -0
- package/dist/locale/de_DE.js +4 -0
- package/dist/locale/el_GR.js +4 -0
- package/dist/locale/en_GB.js +4 -0
- package/dist/locale/es_ES.js +4 -0
- package/dist/locale/et_EE.js +4 -0
- package/dist/locale/fa_IR.js +4 -0
- package/dist/locale/fi_FI.js +4 -0
- package/dist/locale/fr_BE.js +4 -0
- package/dist/locale/fr_CA.js +4 -0
- package/dist/locale/fr_FR.js +4 -0
- package/dist/locale/gl_ES.js +4 -0
- package/dist/locale/he_IL.js +4 -0
- package/dist/locale/hi_IN.js +4 -0
- package/dist/locale/hr_HR.js +4 -0
- package/dist/locale/hu_HU.js +4 -0
- package/dist/locale/id_ID.js +4 -0
- package/dist/locale/it_IT.js +4 -0
- package/dist/locale/ja_JP.js +4 -0
- package/dist/locale/ko_KR.js +4 -0
- package/dist/locale/lt_LT.js +4 -0
- package/dist/locale/lv_LV.js +4 -0
- package/dist/locale/ms_MY.js +4 -0
- package/dist/locale/nb_NO.js +4 -0
- package/dist/locale/nl_BE.js +4 -0
- package/dist/locale/nl_NL.js +4 -0
- package/dist/locale/pl_PL.js +4 -0
- package/dist/locale/pt_BR.js +4 -0
- package/dist/locale/pt_PT.js +4 -0
- package/dist/locale/ro_RO.js +4 -0
- package/dist/locale/ru_RU.js +4 -0
- package/dist/locale/sk_SK.js +4 -0
- package/dist/locale/sl_SI.js +4 -0
- package/dist/locale/sr_RS.js +4 -0
- package/dist/locale/sv_SE.js +4 -0
- package/dist/locale/th_TH.js +4 -0
- package/dist/locale/tr_TR.js +4 -0
- package/dist/locale/uk_UA.js +4 -0
- package/dist/locale/vi_VN.js +4 -0
- package/dist/locale/zh_HK.js +4 -0
- package/dist/locale/zh_TW.js +5 -1
- package/dist/menu/style/theme.js +1 -0
- package/dist/menu/style/vertical.js +8 -5
- package/dist/modal/components/NormalCancelBtn.js +6 -1
- package/dist/modal/interface.d.ts +1 -0
- package/dist/notification/useNotification.js +1 -1
- package/dist/package.js +1 -1
- package/dist/popconfirm/PurePanel.js +1 -1
- package/dist/popconfirm/index.js +6 -6
- package/dist/popover/index.js +6 -6
- package/dist/radio/radio.js +2 -1
- package/dist/segmented/index.js +3 -5
- package/dist/segmented/style/index.js +5 -1
- package/dist/select/index.d.ts +4 -3
- package/dist/select/index.js +8 -4
- package/dist/skeleton/Image.js +3 -1
- package/dist/slider/index.d.ts +1 -0
- package/dist/slider/index.js +4 -0
- package/dist/space/Compact.d.ts +1 -1
- package/dist/statistic/Statistic.js +4 -3
- package/dist/steps/PanelArrow.js +3 -2
- package/dist/steps/ProgressIcon.js +7 -10
- package/dist/table/hooks/useFilter/FilterDropdown.js +14 -14
- package/dist/table/hooks/useSorter.js +7 -9
- package/dist/table/interface.d.ts +1 -1
- package/dist/table/style/virtual.js +2 -1
- package/dist/tabs/index.js +4 -1
- package/dist/tag/CheckableTag.js +5 -3
- package/dist/tag/CheckableTagGroup.d.ts +3 -0
- package/dist/tag/CheckableTagGroup.js +3 -3
- package/dist/tag/hooks/useColor.d.ts +1 -1
- package/dist/tag/index.js +3 -2
- package/dist/time-picker/index.js +26 -0
- package/dist/tooltip/index.js +4 -4
- package/dist/tour/panelRender.js +8 -2
- package/dist/transfer/Section.js +1 -1
- package/dist/tree/DirectoryTree.js +1 -0
- package/dist/tree-select/index.d.ts +4 -4
- package/dist/tree-select/index.js +4 -0
- package/dist/upload/utils.js +8 -6
- package/dist/version/token.json +1 -1
- package/dist/watermark/useClips.js +1 -0
- package/package.json +31 -31
- package/web-tags.json +1765 -1737
- package/web-types.json +5970 -5915
package/dist/locale/nl_NL.js
CHANGED
package/dist/locale/pl_PL.js
CHANGED
package/dist/locale/pt_BR.js
CHANGED
package/dist/locale/pt_PT.js
CHANGED
package/dist/locale/ro_RO.js
CHANGED
package/dist/locale/ru_RU.js
CHANGED
package/dist/locale/sk_SK.js
CHANGED
package/dist/locale/sl_SI.js
CHANGED
package/dist/locale/sr_RS.js
CHANGED
package/dist/locale/sv_SE.js
CHANGED
package/dist/locale/th_TH.js
CHANGED
package/dist/locale/tr_TR.js
CHANGED
package/dist/locale/uk_UA.js
CHANGED
package/dist/locale/vi_VN.js
CHANGED
package/dist/locale/zh_HK.js
CHANGED
package/dist/locale/zh_TW.js
CHANGED
|
@@ -77,6 +77,10 @@ const localeValues = {
|
|
|
77
77
|
expand: "展開",
|
|
78
78
|
collapse: "收合"
|
|
79
79
|
},
|
|
80
|
+
Carousel: {
|
|
81
|
+
prevSlide: "上一張投影片",
|
|
82
|
+
nextSlide: "下一張投影片"
|
|
83
|
+
},
|
|
80
84
|
Form: {
|
|
81
85
|
optional: "(選填)",
|
|
82
86
|
defaultValidateMessages: {
|
|
@@ -134,7 +138,7 @@ const localeValues = {
|
|
|
134
138
|
presetEmpty: "暫無",
|
|
135
139
|
transparent: "透明",
|
|
136
140
|
singleColor: "單色",
|
|
137
|
-
gradientColor: "
|
|
141
|
+
gradientColor: "漸層色"
|
|
138
142
|
}
|
|
139
143
|
};
|
|
140
144
|
//#endregion
|
package/dist/menu/style/theme.js
CHANGED
|
@@ -56,6 +56,7 @@ function getThemeStyle(token, themeSuffix) {
|
|
|
56
56
|
position: "absolute",
|
|
57
57
|
insetInline: itemPaddingInline,
|
|
58
58
|
bottom: 0,
|
|
59
|
+
pointerEvents: "none",
|
|
59
60
|
borderBottom: `${unit(activeBarHeight)} solid transparent`,
|
|
60
61
|
transition: `border-color ${motionDurationSlow} ${motionEaseInOut}`,
|
|
61
62
|
content: "\"\""
|
|
@@ -84,11 +84,14 @@ const getVerticalStyle = (token) => {
|
|
|
84
84
|
} },
|
|
85
85
|
{ [`${componentCls}-inline-collapsed`]: {
|
|
86
86
|
width: collapsedWidth,
|
|
87
|
-
[`&${componentCls}-root`]: { [`${componentCls}-item, ${componentCls}-submenu ${componentCls}-submenu-title`]: {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
[`&${componentCls}-root`]: { [`${componentCls}-item, ${componentCls}-submenu ${componentCls}-submenu-title`]: {
|
|
88
|
+
transition: [`border-color`, `background-color`].map((property) => `${property} ${motionDurationSlow}`).join(","),
|
|
89
|
+
[`> ${componentCls}-inline-collapsed-noicon`]: {
|
|
90
|
+
fontSize: fontSizeLG,
|
|
91
|
+
textAlign: "center",
|
|
92
|
+
width: "100%"
|
|
93
|
+
}
|
|
94
|
+
} },
|
|
92
95
|
[`> ${componentCls}-item,
|
|
93
96
|
> ${componentCls}-item-group > ${componentCls}-item-group-list > ${componentCls}-item,
|
|
94
97
|
> ${componentCls}-item-group > ${componentCls}-item-group-list > ${componentCls}-submenu > ${componentCls}-submenu-title,
|
|
@@ -9,7 +9,12 @@ const NormalCancelBtn = /* @__PURE__ */ defineComponent(() => {
|
|
|
9
9
|
const context = useModalContext();
|
|
10
10
|
return () => {
|
|
11
11
|
const { onCancel, cancelTextLocale, cancelButtonProps } = context.value;
|
|
12
|
-
|
|
12
|
+
const { onClick, ...restCancelButtonProps } = cancelButtonProps ?? {};
|
|
13
|
+
const onInternalClick = (event) => {
|
|
14
|
+
onCancel?.(event);
|
|
15
|
+
onClick?.(event);
|
|
16
|
+
};
|
|
17
|
+
return createVNode(button_default, mergeProps(restCancelButtonProps, { "onClick": onInternalClick }), _isSlot(cancelTextLocale) ? cancelTextLocale : { default: () => [cancelTextLocale] });
|
|
13
18
|
};
|
|
14
19
|
}, {
|
|
15
20
|
name: "NormalCancelBtn",
|
|
@@ -4,13 +4,13 @@ import useToken from "../theme/useToken.js";
|
|
|
4
4
|
import { mergeClassNames, mergeStyles, resolveStyleOrClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
5
5
|
import { toPropsRefs } from "../_util/tools.js";
|
|
6
6
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
7
|
+
import { isRenderable } from "../_util/is.js";
|
|
7
8
|
import style_default from "./style/index.js";
|
|
8
9
|
import { getCloseIconConfig, getMotion, getPlacementStyle } from "./util.js";
|
|
9
10
|
import localeValues from "../locale/en_US.js";
|
|
10
11
|
import useLocale from "../locale/useLocale.js";
|
|
11
12
|
import { computeClosable, pickClosable } from "../_util/hooks/useClosable.js";
|
|
12
13
|
import { getCloseIcon, getIconWrapperClassName, resolveIconNode } from "./PurePanel.js";
|
|
13
|
-
import { isRenderable } from "../_util/is.js";
|
|
14
14
|
import { computed, createVNode, defineComponent, isVNode, mergeDefaults, mergeProps, shallowRef, unref } from "vue";
|
|
15
15
|
import { clsx } from "@v-c/util";
|
|
16
16
|
import { useNotification as useNotification$1, useNotificationProvider } from "@v-c/notification";
|
package/dist/package.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useComponentBaseConfig, useConfig } from "../config-provider/context.js";
|
|
2
|
+
import { isRenderable } from "../_util/is.js";
|
|
2
3
|
import localeValues from "../locale/en_US.js";
|
|
3
4
|
import useLocale from "../locale/useLocale.js";
|
|
4
5
|
import button_default from "../button/index.js";
|
|
5
6
|
import ActionButton from "../_util/ActionButton.js";
|
|
6
|
-
import { isRenderable } from "../_util/is.js";
|
|
7
7
|
import PurePanel$1 from "../popover/PurePanel.js";
|
|
8
8
|
import style_default from "./style/index.js";
|
|
9
9
|
import { computed, createVNode, defineComponent, isVNode, mergeProps } from "vue";
|
package/dist/popconfirm/index.js
CHANGED
|
@@ -47,10 +47,10 @@ const Popconfirm = /* @__PURE__ */ defineComponent((props, { slots, attrs, expos
|
|
|
47
47
|
if (val !== void 0) open.value = val;
|
|
48
48
|
else if (prevVal !== void 0) open.value = false;
|
|
49
49
|
}, { immediate: true });
|
|
50
|
-
const settingOpen = (
|
|
51
|
-
if (props.open === void 0) open.value =
|
|
52
|
-
emit("openChange",
|
|
53
|
-
emit("update:open",
|
|
50
|
+
const settingOpen = (nextOpen, e) => {
|
|
51
|
+
if (props.open === void 0) open.value = nextOpen;
|
|
52
|
+
emit("openChange", nextOpen, e);
|
|
53
|
+
emit("update:open", nextOpen);
|
|
54
54
|
};
|
|
55
55
|
const close = (e) => {
|
|
56
56
|
settingOpen(false, e);
|
|
@@ -62,9 +62,9 @@ const Popconfirm = /* @__PURE__ */ defineComponent((props, { slots, attrs, expos
|
|
|
62
62
|
const handlePopupClick = (e) => {
|
|
63
63
|
emit("popupClick", e);
|
|
64
64
|
};
|
|
65
|
-
const onInternalOpenChange = (
|
|
65
|
+
const onInternalOpenChange = (nextOpen, e) => {
|
|
66
66
|
if (props.disabled) return;
|
|
67
|
-
settingOpen(
|
|
67
|
+
settingOpen(nextOpen, e);
|
|
68
68
|
};
|
|
69
69
|
const handleConfirm = useLiveListener("confirm");
|
|
70
70
|
expose({
|
package/dist/popover/index.js
CHANGED
|
@@ -48,16 +48,16 @@ const Popover = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose,
|
|
|
48
48
|
if (val !== void 0) open.value = val;
|
|
49
49
|
else if (prevVal !== void 0) open.value = false;
|
|
50
50
|
}, { immediate: true });
|
|
51
|
-
const settingOpen = (
|
|
52
|
-
if (props.open === void 0) open.value =
|
|
53
|
-
emit("openChange",
|
|
54
|
-
emit("update:open",
|
|
51
|
+
const settingOpen = (nextOpen, e) => {
|
|
52
|
+
if (props.open === void 0) open.value = nextOpen;
|
|
53
|
+
emit("openChange", nextOpen, e);
|
|
54
|
+
emit("update:open", nextOpen);
|
|
55
55
|
};
|
|
56
56
|
const onKeyDown = (e) => {
|
|
57
57
|
if (e.keyCode === KeyCode.ESC) settingOpen(false, e);
|
|
58
58
|
};
|
|
59
|
-
const onInternalOpenChange = (
|
|
60
|
-
settingOpen(
|
|
59
|
+
const onInternalOpenChange = (nextOpen) => {
|
|
60
|
+
settingOpen(nextOpen);
|
|
61
61
|
};
|
|
62
62
|
return () => {
|
|
63
63
|
const children = filterEmpty(slots?.default?.() ?? [])?.[0];
|
package/dist/radio/radio.js
CHANGED
|
@@ -59,7 +59,8 @@ const InternalRadio = /* @__PURE__ */ defineComponent((props, { slots, expose, a
|
|
|
59
59
|
return {
|
|
60
60
|
...props,
|
|
61
61
|
...radioProps.value,
|
|
62
|
-
disabled:
|
|
62
|
+
disabled: radioProps.value.disabled,
|
|
63
|
+
checked: mergedChecked.value
|
|
63
64
|
};
|
|
64
65
|
});
|
|
65
66
|
const contextStyleRoot = useSemanticRootStyle(contextStyle);
|
package/dist/segmented/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { useSize } from "../config-provider/hooks/useSize.js";
|
|
|
4
4
|
import { pureAttrs, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
5
5
|
import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
6
6
|
import InternalTooltip from "../tooltip/index.js";
|
|
7
|
+
import { isRenderable } from "../_util/is.js";
|
|
7
8
|
import style_default from "./style/index.js";
|
|
8
9
|
import { Fragment, computed, createVNode, defineComponent, isVNode, mergeDefaults, mergeProps, useId } from "vue";
|
|
9
10
|
import { clsx } from "@v-c/util";
|
|
@@ -43,7 +44,7 @@ const InternalSegmented = /* @__PURE__ */ defineComponent((props, { attrs, emit,
|
|
|
43
44
|
if (hasIcon || hasCustomLabel) {
|
|
44
45
|
const { label, icon: _icon, ...restOption } = _option;
|
|
45
46
|
const mergedLabel = labelFromSlot.length > 0 ? labelFromSlot : label;
|
|
46
|
-
const showLabel =
|
|
47
|
+
const showLabel = labelFromSlot.length > 0 || isRenderable(label);
|
|
47
48
|
const icon = getSlotPropsFnRun({}, option, "icon") ?? iconFromSlot;
|
|
48
49
|
return {
|
|
49
50
|
...restOption,
|
|
@@ -157,10 +158,7 @@ const InternalSegmented = /* @__PURE__ */ defineComponent((props, { attrs, emit,
|
|
|
157
158
|
type: String,
|
|
158
159
|
required: false
|
|
159
160
|
}
|
|
160
|
-
}, {
|
|
161
|
-
size: "middle",
|
|
162
|
-
shape: "default"
|
|
163
|
-
}),
|
|
161
|
+
}, { shape: "default" }),
|
|
164
162
|
emits: ["change", "update:value"],
|
|
165
163
|
name: "ASegmented",
|
|
166
164
|
inheritAttrs: false
|
|
@@ -66,6 +66,10 @@ const genSegmentedStyle = (token) => {
|
|
|
66
66
|
...getItemSelectedStyle(token),
|
|
67
67
|
color: token.itemSelectedColor
|
|
68
68
|
},
|
|
69
|
+
"&-selected-text": {
|
|
70
|
+
color: token.itemSelectedColor,
|
|
71
|
+
transition: `color ${motionDurationMid}`
|
|
72
|
+
},
|
|
69
73
|
"&-focused": genFocusOutline(token),
|
|
70
74
|
"&::after": {
|
|
71
75
|
content: "\"\"",
|
|
@@ -80,7 +84,7 @@ const genSegmentedStyle = (token) => {
|
|
|
80
84
|
pointerEvents: "none",
|
|
81
85
|
transition: ["opacity", "background-color"].map((prop) => `${prop} ${motionDurationMid}`).join(", ")
|
|
82
86
|
},
|
|
83
|
-
[`&:not(${componentCls}-item-selected):not(${componentCls}-item-disabled)`]: {
|
|
87
|
+
[`&:not(${componentCls}-item-selected):not(${componentCls}-item-selected-text):not(${componentCls}-item-disabled)`]: {
|
|
84
88
|
"&:hover, &:active": { color: token.itemHoverColor },
|
|
85
89
|
"&:hover::after": {
|
|
86
90
|
opacity: 1,
|
package/dist/select/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { SizeType } from "../config-provider/SizeContext.js";
|
|
|
5
5
|
import { InputStatus } from "../_util/statusUtils.js";
|
|
6
6
|
import { SelectCommonPlacement } from "../_util/motion.js";
|
|
7
7
|
import { ComponentBaseProps, Variant } from "../config-provider/context.js";
|
|
8
|
-
import { CSSProperties, SlotsType } from "vue";
|
|
8
|
+
import { CSSProperties, SlotsType, VNode, VNodeChild } from "vue";
|
|
9
9
|
import { SearchConfig, SelectProps as SelectProps$1 } from "@v-c/select";
|
|
10
10
|
//#region src/select/index.d.ts
|
|
11
11
|
type RawValue = string | number;
|
|
@@ -15,7 +15,7 @@ interface LabeledValue {
|
|
|
15
15
|
label: VueNode;
|
|
16
16
|
}
|
|
17
17
|
type SelectValue = RawValue | RawValue[] | LabeledValue | LabeledValue[] | undefined;
|
|
18
|
-
interface InternalSelectProps extends ComponentBaseProps, Omit<SelectProps$1, 'mode' | 'classNames' | 'className' | 'style' | 'prefix' | 'styles'> {
|
|
18
|
+
interface InternalSelectProps extends ComponentBaseProps, Omit<SelectProps$1, 'mode' | 'classNames' | 'className' | 'style' | 'prefix' | 'styles' | 'onPopupVisibleChange' | 'popupRender'> {
|
|
19
19
|
prefix?: VueNode;
|
|
20
20
|
suffixIcon?: VueNode;
|
|
21
21
|
size?: SizeType;
|
|
@@ -35,6 +35,7 @@ interface InternalSelectProps extends ComponentBaseProps, Omit<SelectProps$1, 'm
|
|
|
35
35
|
variant?: Variant;
|
|
36
36
|
styles?: SelectStylesType;
|
|
37
37
|
classes?: SelectClassNamesType;
|
|
38
|
+
popupRender?: (menu: VNode) => VNodeChild;
|
|
38
39
|
}
|
|
39
40
|
interface SelectSemanticClassNames {
|
|
40
41
|
root?: string;
|
|
@@ -76,7 +77,7 @@ type SelectClassNamesType = SemanticClassNamesType<SelectProps, SelectSemanticCl
|
|
|
76
77
|
type SelectStylesType = SemanticStylesType<SelectProps, SelectSemanticStyles, {
|
|
77
78
|
popup?: SelectPopupSemanticStyles;
|
|
78
79
|
}>;
|
|
79
|
-
type RcEventKeys = 'onClear' | 'onKeyUp' | 'onKeyDown' | 'onBlur' | 'onClick' | 'onActive' | 'onChange' | 'onDeselect' | 'onInputKeyDown' | 'onMouseDown' | 'onMouseLeave' | 'onMouseEnter' | 'onFocus' | 'onPopupScroll' | '
|
|
80
|
+
type RcEventKeys = 'onClear' | 'onKeyUp' | 'onKeyDown' | 'onBlur' | 'onClick' | 'onActive' | 'onChange' | 'onDeselect' | 'onInputKeyDown' | 'onMouseDown' | 'onMouseLeave' | 'onMouseEnter' | 'onFocus' | 'onPopupScroll' | 'onSelect' | 'optionRender';
|
|
80
81
|
interface SelectProps extends Omit<InternalSelectProps, 'mode' | 'getInputElement' | 'getRawInputElement' | 'backfill' | 'placement' | 'dropdownClassName' | 'dropdownStyle' | 'classes' | 'styles' | RcEventKeys>, SelectEmitsProps {
|
|
81
82
|
placement?: SelectCommonPlacement;
|
|
82
83
|
mode?: 'multiple' | 'tags';
|
package/dist/select/index.js
CHANGED
|
@@ -370,6 +370,10 @@ const Select = /* @__PURE__ */ defineComponent((props, { slots, emit, expose, at
|
|
|
370
370
|
type: String,
|
|
371
371
|
required: false
|
|
372
372
|
},
|
|
373
|
+
popupRender: {
|
|
374
|
+
type: Function,
|
|
375
|
+
required: false
|
|
376
|
+
},
|
|
373
377
|
rootClass: {
|
|
374
378
|
type: String,
|
|
375
379
|
required: false
|
|
@@ -484,6 +488,10 @@ const Select = /* @__PURE__ */ defineComponent((props, { slots, emit, expose, at
|
|
|
484
488
|
required: false,
|
|
485
489
|
default: void 0
|
|
486
490
|
},
|
|
491
|
+
autoComplete: {
|
|
492
|
+
type: String,
|
|
493
|
+
required: false
|
|
494
|
+
},
|
|
487
495
|
placeholder: {
|
|
488
496
|
type: [
|
|
489
497
|
Object,
|
|
@@ -627,10 +635,6 @@ const Select = /* @__PURE__ */ defineComponent((props, { slots, emit, expose, at
|
|
|
627
635
|
type: Object,
|
|
628
636
|
required: false
|
|
629
637
|
},
|
|
630
|
-
popupRender: {
|
|
631
|
-
type: Function,
|
|
632
|
-
required: false
|
|
633
|
-
},
|
|
634
638
|
popupAlign: {
|
|
635
639
|
type: Object,
|
|
636
640
|
required: false
|
package/dist/skeleton/Image.js
CHANGED
|
@@ -9,7 +9,9 @@ const SkeletonImage = /* @__PURE__ */ defineComponent((props, { attrs }) => {
|
|
|
9
9
|
return createVNode(SkeletonNode, mergeProps(props, attrs, { "internalClassName": `${prefixCls.value}-image` }), { default: () => [createVNode("svg", {
|
|
10
10
|
"viewBox": "0 0 1098 1024",
|
|
11
11
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
12
|
-
"class": `${prefixCls.value}-image-svg
|
|
12
|
+
"class": `${prefixCls.value}-image-svg`,
|
|
13
|
+
"aria-hidden": "true",
|
|
14
|
+
"focusable": "false"
|
|
13
15
|
}, [createVNode("title", null, [createTextVNode("Image placeholder")]), createVNode("path", {
|
|
14
16
|
"d": path,
|
|
15
17
|
"class": `${prefixCls.value}-image-path`
|
package/dist/slider/index.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ interface SliderBaseProps {
|
|
|
69
69
|
tabIndex?: SliderProps['tabIndex'];
|
|
70
70
|
ariaLabelForHandle?: SliderProps['ariaLabelForHandle'];
|
|
71
71
|
ariaLabelledByForHandle?: SliderProps['ariaLabelledByForHandle'];
|
|
72
|
+
ariaDescribedByForHandle?: SliderProps['ariaDescribedByForHandle'];
|
|
72
73
|
ariaRequired?: SliderProps['ariaRequired'];
|
|
73
74
|
ariaValueTextFormatterForHandle?: SliderProps['ariaValueTextFormatterForHandle'];
|
|
74
75
|
}
|
package/dist/slider/index.js
CHANGED
|
@@ -297,6 +297,10 @@ const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose })
|
|
|
297
297
|
type: [String, Array],
|
|
298
298
|
required: false
|
|
299
299
|
},
|
|
300
|
+
ariaDescribedByForHandle: {
|
|
301
|
+
type: [String, Array],
|
|
302
|
+
required: false
|
|
303
|
+
},
|
|
300
304
|
ariaRequired: {
|
|
301
305
|
type: Boolean,
|
|
302
306
|
required: false,
|
package/dist/space/Compact.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ interface SpaceCompactItemContextType {
|
|
|
21
21
|
declare function useSpaceCompactItemContext(): Ref<SpaceCompactItemContextType | null, SpaceCompactItemContextType | null>;
|
|
22
22
|
declare function useCompactItemContext(prefixCls: Ref<string>, direction: Ref<DirectionType>): {
|
|
23
23
|
compactSize: import("vue").ComputedRef<SizeType>;
|
|
24
|
-
compactDirection: import("vue").ComputedRef<"
|
|
24
|
+
compactDirection: import("vue").ComputedRef<"vertical" | "horizontal" | undefined>;
|
|
25
25
|
compactItemClassnames: import("vue").ComputedRef<string>;
|
|
26
26
|
};
|
|
27
27
|
declare const NoCompactStyle: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
2
|
import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { clsx as clsx$1, getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
4
|
+
import { isRenderable } from "../_util/is.js";
|
|
4
5
|
import skeleton_default from "../skeleton/index.js";
|
|
5
6
|
import StatisticNumber from "./Number.js";
|
|
6
7
|
import style_default from "./style/index.js";
|
|
@@ -55,7 +56,7 @@ const Statistic = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit,
|
|
|
55
56
|
"style": [mergedStyles.value.root, attrs.style],
|
|
56
57
|
"onMouseenter": handleMouseEnter,
|
|
57
58
|
"onMouseleave": handleMouseLeave
|
|
58
|
-
}), [
|
|
59
|
+
}), [isRenderable(title) && createVNode("div", {
|
|
59
60
|
"class": headerClassNames,
|
|
60
61
|
"style": mergedStyles.value.header
|
|
61
62
|
}, [createVNode("div", {
|
|
@@ -70,12 +71,12 @@ const Statistic = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit,
|
|
|
70
71
|
"style": [valueStyle, mergedStyles.value.content],
|
|
71
72
|
"class": contentClassNames
|
|
72
73
|
}, [
|
|
73
|
-
|
|
74
|
+
isRenderable(prefix) && createVNode("span", {
|
|
74
75
|
"class": prefixClassNames,
|
|
75
76
|
"style": mergedStyles.value.prefix
|
|
76
77
|
}, [prefix]),
|
|
77
78
|
valueRender ? valueRender(valueNode) : valueNode,
|
|
78
|
-
|
|
79
|
+
isRenderable(suffix) && createVNode("span", {
|
|
79
80
|
"class": suffixClassNames,
|
|
80
81
|
"style": mergedStyles.value.suffix
|
|
81
82
|
}, [suffix])
|
package/dist/steps/PanelArrow.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createVNode, defineComponent } from "vue";
|
|
2
2
|
//#region src/steps/PanelArrow.tsx
|
|
3
3
|
const PanelArrow = /* @__PURE__ */ defineComponent((props) => {
|
|
4
4
|
return () => {
|
|
5
5
|
const { prefixCls } = props;
|
|
6
6
|
return createVNode("svg", {
|
|
7
|
+
"aria-hidden": "true",
|
|
7
8
|
"class": `${prefixCls}-panel-arrow`,
|
|
8
9
|
"viewBox": "0 0 100 100",
|
|
9
10
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
10
11
|
"preserveAspectRatio": "none"
|
|
11
|
-
}, [createVNode("
|
|
12
|
+
}, [createVNode("path", { "d": "M 0 0 L 100 50 L 0 100" }, null)]);
|
|
12
13
|
};
|
|
13
14
|
}, {
|
|
14
15
|
props: { prefixCls: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
2
|
-
import { Fragment,
|
|
2
|
+
import { Fragment, createVNode, defineComponent } from "vue";
|
|
3
3
|
import { clsx } from "@v-c/util";
|
|
4
4
|
//#region src/steps/ProgressIcon.tsx
|
|
5
5
|
const ProgressIcon = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
@@ -15,18 +15,15 @@ const ProgressIcon = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
15
15
|
"width": "100%",
|
|
16
16
|
"height": "100%",
|
|
17
17
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
18
|
+
"role": "progressbar",
|
|
18
19
|
"aria-valuemax": 100,
|
|
19
20
|
"aria-valuemin": 0,
|
|
20
21
|
"aria-valuenow": percent
|
|
21
|
-
}, [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"stroke-dasharray": dashArray,
|
|
27
|
-
"transform": "rotate(-90 50 50)"
|
|
28
|
-
}, null)
|
|
29
|
-
]), slots?.default?.()]);
|
|
22
|
+
}, [createVNode("circle", { "class": clsx(circleCls, `${circleCls}-rail`) }, null), createVNode("circle", {
|
|
23
|
+
"class": clsx(circleCls, `${circleCls}-ptg`),
|
|
24
|
+
"stroke-dasharray": dashArray,
|
|
25
|
+
"transform": "rotate(-90 50 50)"
|
|
26
|
+
}, null)]), slots?.default?.()]);
|
|
30
27
|
};
|
|
31
28
|
}, {
|
|
32
29
|
props: {
|