antdv-next 1.7.1 → 1.8.1
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/useMergeSemantic.js +2 -2
- package/dist/_util/vueNode.d.ts +2 -6
- package/dist/alert/Alert.js +10 -5
- package/dist/antd-with-locales.esm.js +14360 -11910
- package/dist/antd-with-locales.js +82 -79
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +13203 -10918
- package/dist/antd.js +82 -79
- package/dist/auto-complete/index.d.ts +2 -0
- package/dist/auto-complete/index.js +28 -23
- package/dist/button/Button.js +31 -18
- package/dist/calendar/Header.js +4 -4
- package/dist/card/Card.js +1 -1
- package/dist/carousel/index.js +3 -3
- package/dist/cascader/index.d.ts +7 -1
- package/dist/cascader/index.js +42 -34
- package/dist/checkbox/Checkbox.js +5 -2
- package/dist/checkbox/Group.js +2 -2
- package/dist/collapse/Collapse.js +2 -2
- package/dist/color-picker/ColorPicker.js +15 -2
- package/dist/color-picker/components/ColorSlider.js +2 -2
- package/dist/color-picker/interface.d.ts +3 -0
- package/dist/components.d.ts +1 -1
- package/dist/config-provider/context.d.ts +13 -9
- package/dist/config-provider/define.d.ts +2 -1
- package/dist/config-provider/index.js +9 -0
- package/dist/date-picker/generatePicker/generateRangePicker.d.ts +2 -0
- package/dist/date-picker/generatePicker/generateRangePicker.js +19 -11
- package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +2 -0
- package/dist/date-picker/generatePicker/generateSinglePicker.js +14 -10
- package/dist/date-picker/generatePicker/useComponents.js +2 -2
- package/dist/date-picker/generatePicker/useSuffix.d.ts +12 -0
- package/dist/date-picker/generatePicker/useSuffix.js +11 -0
- package/dist/date-picker/style/panel.js +11 -8
- package/dist/date-picker/util.d.ts +2 -6
- package/dist/date-picker/util.js +4 -3
- package/dist/descriptions/hooks/useItems.d.ts +6 -6
- package/dist/descriptions/index.js +2 -2
- package/dist/divider/index.js +14 -4
- package/dist/drawer/index.js +2 -2
- package/dist/dropdown/dropdown.js +6 -6
- package/dist/flex/index.js +2 -2
- package/dist/float-button/FloatButton.js +2 -2
- package/dist/float-button/FloatButtonGroup.js +2 -2
- package/dist/float-button/PurePanel.js +5 -5
- package/dist/form/Form.js +40 -10
- package/dist/form/FormItem/ItemHolder.d.ts +3 -18
- package/dist/form/FormItem/StatusProvider.js +2 -1
- package/dist/form/FormItem/index.d.ts +1 -0
- package/dist/form/FormItem/index.js +13 -2
- package/dist/form/FormItemInput.js +3 -4
- package/dist/form/FormItemLabel.js +7 -3
- package/dist/form/context.d.ts +3 -3
- package/dist/form/hooks/useVariant.d.ts +14 -4
- package/dist/form/hooks/useVariant.js +24 -13
- package/dist/form/interface.d.ts +4 -1
- package/dist/form/style/index.js +1 -1
- package/dist/image/PreviewGroup.js +2 -2
- package/dist/image/hooks/usePreviewConfig.d.ts +7 -7
- package/dist/image/index.js +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/input/Input.js +4 -4
- package/dist/input/OTP/OTPInput.js +31 -30
- package/dist/input/OTP/index.js +10 -2
- package/dist/input/Password.js +7 -3
- package/dist/input/Search.js +5 -5
- package/dist/input/TextArea.js +4 -4
- package/dist/input-number/index.js +3 -3
- package/dist/layout/Sider.js +2 -2
- package/dist/locale/ar_EG.js +3 -1
- package/dist/locale/az_AZ.js +3 -1
- package/dist/locale/bg_BG.js +3 -1
- package/dist/locale/bn_BD.js +3 -1
- package/dist/locale/by_BY.js +3 -1
- package/dist/locale/ca_ES.js +3 -1
- package/dist/locale/cs_CZ.js +13 -9
- package/dist/locale/da_DK.js +3 -1
- package/dist/locale/de_DE.js +6 -2
- package/dist/locale/el_GR.js +3 -1
- package/dist/locale/en_GB.js +3 -1
- package/dist/locale/en_US.js +5 -2
- package/dist/locale/es_ES.js +3 -1
- package/dist/locale/et_EE.js +3 -1
- package/dist/locale/eu_ES.js +3 -1
- package/dist/locale/fa_IR.js +3 -1
- package/dist/locale/fi_FI.js +3 -1
- package/dist/locale/fr_BE.js +3 -1
- package/dist/locale/fr_CA.js +3 -1
- package/dist/locale/fr_FR.js +6 -2
- package/dist/locale/ga_IE.js +3 -1
- package/dist/locale/gl_ES.js +3 -1
- package/dist/locale/he_IL.js +3 -1
- package/dist/locale/hi_IN.js +3 -1
- package/dist/locale/hr_HR.js +3 -1
- package/dist/locale/hu_HU.js +3 -1
- package/dist/locale/hy_AM.js +5 -13
- package/dist/locale/id_ID.js +3 -1
- package/dist/locale/index.d.ts +6 -0
- package/dist/locale/is_IS.js +3 -1
- package/dist/locale/it_IT.js +6 -2
- package/dist/locale/ja_JP.js +3 -1
- package/dist/locale/ka_GE.js +3 -1
- package/dist/locale/kk_KZ.js +3 -1
- package/dist/locale/km_KH.js +3 -1
- package/dist/locale/kmr_IQ.js +3 -1
- package/dist/locale/kn_IN.js +3 -1
- package/dist/locale/ko_KR.js +3 -1
- package/dist/locale/ku_IQ.js +3 -1
- package/dist/locale/lt_LT.js +3 -1
- package/dist/locale/lv_LV.js +3 -1
- package/dist/locale/mk_MK.js +3 -1
- package/dist/locale/ml_IN.js +3 -1
- package/dist/locale/mn_MN.js +3 -1
- package/dist/locale/mr_IN.js +3 -1
- package/dist/locale/ms_MY.js +3 -1
- package/dist/locale/my_MM.js +3 -1
- package/dist/locale/nb_NO.js +3 -1
- package/dist/locale/ne_NP.js +4 -2
- package/dist/locale/nl_BE.js +3 -1
- package/dist/locale/nl_NL.js +3 -1
- package/dist/locale/pl_PL.js +3 -1
- package/dist/locale/pt_BR.js +3 -1
- package/dist/locale/pt_PT.js +3 -1
- package/dist/locale/ro_RO.js +3 -1
- package/dist/locale/ru_RU.js +3 -1
- package/dist/locale/si_LK.js +3 -1
- package/dist/locale/sk_SK.js +3 -1
- package/dist/locale/sl_SI.js +3 -1
- package/dist/locale/sq_AL.js +5 -13
- package/dist/locale/sr_RS.js +3 -1
- package/dist/locale/sv_SE.js +3 -1
- package/dist/locale/ta_IN.js +3 -1
- package/dist/locale/th_TH.js +3 -1
- package/dist/locale/tk_TK.js +3 -1
- package/dist/locale/tr_TR.js +3 -1
- package/dist/locale/uk_UA.js +3 -1
- package/dist/locale/ur_PK.js +3 -1
- package/dist/locale/uz_UZ.js +3 -1
- package/dist/locale/vi_VN.js +3 -1
- package/dist/locale/zh_CN.js +5 -2
- package/dist/locale/zh_HK.js +3 -1
- package/dist/locale/zh_TW.js +3 -1
- package/dist/mentions/index.js +4 -4
- package/dist/menu/MenuItem.js +7 -7
- package/dist/menu/SubMenu.js +5 -4
- package/dist/menu/menu.js +2 -2
- package/dist/message/PurePanel.js +2 -2
- package/dist/modal/Modal.js +5 -5
- package/dist/notification/PurePanel.js +2 -2
- package/dist/notification/style/placement.js +3 -6
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.js +6 -5
- package/dist/pagination/index.d.ts +2 -1
- package/dist/pagination/interface.d.ts +2 -2
- package/dist/pagination/style/index.js +3 -3
- package/dist/popconfirm/index.js +2 -2
- package/dist/popover/PurePanel.js +2 -2
- package/dist/popover/style/index.js +1 -0
- package/dist/progress/Circle.js +3 -3
- package/dist/qrcode/index.js +2 -2
- package/dist/qrcode/style/index.js +0 -4
- package/dist/radio/radio.js +2 -2
- package/dist/rate/index.js +2 -2
- package/dist/select/index.d.ts +11 -3
- package/dist/select/index.js +55 -38
- package/dist/select/useIcons.d.ts +23 -12
- package/dist/select/useIcons.js +34 -13
- package/dist/select/useShowArrow.d.ts +2 -3
- package/dist/select/useShowArrow.js +3 -5
- package/dist/skeleton/Paragraph.js +2 -2
- package/dist/skeleton/Skeleton.js +2 -2
- package/dist/skeleton/Title.js +2 -2
- package/dist/slider/index.js +2 -2
- package/dist/space/Compact.d.ts +1 -1
- package/dist/space/index.d.ts +1 -1
- package/dist/space/style/index.js +8 -2
- package/dist/splitter/SplitBar.js +2 -1
- package/dist/splitter/Splitter.js +2 -2
- package/dist/statistic/Number.js +7 -1
- package/dist/steps/index.js +9 -3
- package/dist/switch/index.js +2 -2
- package/dist/table/InternalTable.js +2 -2
- package/dist/table/hooks/useFilter/index.js +5 -2
- package/dist/table/hooks/usePagination.d.ts +2 -1
- package/dist/table/hooks/usePagination.js +6 -3
- package/dist/table/style/expand.js +4 -1
- package/dist/table/util.d.ts +1 -1
- package/dist/tabs/index.js +19 -11
- package/dist/tag/hooks/useColor.d.ts +1 -1
- package/dist/tag/index.d.ts +1 -1
- package/dist/tag/index.js +13 -5
- package/dist/theme/getDesignToken.js +2 -1
- package/dist/time-picker/index.d.ts +6 -0
- package/dist/time-picker/index.js +11 -1
- package/dist/timeline/Timeline.js +16 -10
- package/dist/tooltip/PurePanel.js +2 -2
- package/dist/tooltip/index.js +3 -6
- package/dist/tooltip/style/index.js +1 -0
- package/dist/tour/index.js +2 -3
- package/dist/tour/panelRender.js +4 -4
- package/dist/transfer/Section.js +2 -2
- package/dist/tree/DirectoryTree.js +2 -2
- package/dist/tree/Tree.js +2 -2
- package/dist/tree/style/index.js +6 -1
- package/dist/tree/utils/iconUtil.js +1 -1
- package/dist/tree-select/index.d.ts +32 -2
- package/dist/tree-select/index.js +75 -75
- package/dist/upload/Upload.js +2 -2
- package/dist/version/token.json +1 -1
- package/dist/watermark/useWatermark.d.ts +1 -7
- package/dist/watermark/useWatermark.js +1 -7
- package/package.json +6 -6
- package/web-tags.json +87 -31
- package/web-types.json +246 -161
- package/dist/date-picker/generatePicker/SuffixIcon.d.ts +0 -12
- package/dist/date-picker/generatePicker/SuffixIcon.js +0 -51
- package/dist/form/style/fallbackCmp.d.ts +0 -14
- package/dist/form/style/fallbackCmp.js +0 -13
package/dist/image/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import style_default from "./style/index.js";
|
|
|
9
9
|
import InternalPreviewGroup, { icons } from "./PreviewGroup.js";
|
|
10
10
|
import { computed, createVNode, defineComponent, mergeProps, ref } from "vue";
|
|
11
11
|
import { clsx } from "@v-c/util";
|
|
12
|
-
import { omit } from "es-toolkit";
|
|
12
|
+
import { omit as omit$1 } from "es-toolkit";
|
|
13
13
|
import VcImage from "@v-c/image";
|
|
14
14
|
//#region src/image/index.tsx
|
|
15
15
|
const Image = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) => {
|
|
@@ -56,7 +56,7 @@ const Image = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) =>
|
|
|
56
56
|
const { className, restAttrs } = getAttrStyleAndClass(attrs);
|
|
57
57
|
const mergedClassName = clsx(className, hashId.value, contextClassName.value);
|
|
58
58
|
const { image: mergedImageStyle, ...restMergedStyles } = mergedStyles.value;
|
|
59
|
-
const otherProps = omit(props, [
|
|
59
|
+
const otherProps = omit$1(props, [
|
|
60
60
|
"prefixCls",
|
|
61
61
|
"preview",
|
|
62
62
|
"styles",
|
|
@@ -82,7 +82,7 @@ const Image = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) =>
|
|
|
82
82
|
"class": mergedClassName,
|
|
83
83
|
"style": mergedImageStyle,
|
|
84
84
|
"fallback": mergedFallback
|
|
85
|
-
}, omit(otherProps, ["placeholder"]), onEvents, {
|
|
85
|
+
}, omit$1(otherProps, ["placeholder"]), onEvents, {
|
|
86
86
|
"placeholder": placeholder,
|
|
87
87
|
"classNames": mergedClassNames.value,
|
|
88
88
|
"styles": restMergedStyles
|
package/dist/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ import Alert, { AlertEmits, AlertProps, AlertSemanticType, AlertSlots } from "./
|
|
|
51
51
|
import { Affix, AffixEmits, AffixProps, AffixRef } from "./affix/index.js";
|
|
52
52
|
import { AnchorLinkProps } from "./anchor/AnchorLink.js";
|
|
53
53
|
import Anchor, { AnchorEmits, AnchorProps, AnchorSlots } from "./anchor/Anchor.js";
|
|
54
|
+
import AutoComplete, { AutoCompleteClassNamesType, AutoCompleteEmits, AutoCompleteProps, AutoCompleteSlots, AutoCompleteStylesType, DataSourceItemObject, DataSourceItemType, Option } from "./auto-complete/index.js";
|
|
54
55
|
import { RibbonProps, RibbonRef } from "./badge/Ribbon.js";
|
|
55
56
|
import Badge, { BadgeProps, BadgeRibbon, BadgeSlots } from "./badge/index.js";
|
|
56
57
|
import _default$2, { BreadcrumbItemProps } from "./breadcrumb/BreadcrumbItem.js";
|
|
@@ -128,7 +129,6 @@ import { useResponsive } from "./_util/hooks/useResponsive.js";
|
|
|
128
129
|
import useModal from "./modal/useModal/index.js";
|
|
129
130
|
import { AppProps } from "./app/App.js";
|
|
130
131
|
import _default from "./app/index.js";
|
|
131
|
-
import AutoComplete, { AutoCompleteClassNamesType, AutoCompleteEmits, AutoCompleteProps, AutoCompleteSlots, AutoCompleteStylesType, DataSourceItemObject, DataSourceItemType, Option } from "./auto-complete/index.js";
|
|
132
132
|
import { AvatarEmits, AvatarProps, AvatarSlots } from "./avatar/Avatar.js";
|
|
133
133
|
import AvatarGroup, { AvatarGroupProps, AvatarGroupRef } from "./avatar/AvatarGroup.js";
|
|
134
134
|
import Avatar from "./avatar/index.js";
|
package/dist/input/Input.js
CHANGED
|
@@ -8,14 +8,14 @@ import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr,
|
|
|
8
8
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
9
9
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
10
10
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
11
|
-
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
|
|
12
11
|
import useVariant from "../form/hooks/useVariant.js";
|
|
13
|
-
import style_default, { useSharedStyle } from "./style/index.js";
|
|
14
12
|
import useAllowClear, { useAllowClearLabel } from "../_util/hooks/useAllowClear.js";
|
|
13
|
+
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
|
|
14
|
+
import style_default, { useSharedStyle } from "./style/index.js";
|
|
15
15
|
import useRemovePasswordTimeout from "./hooks/useRemovePasswordTimeout.js";
|
|
16
16
|
import { Fragment, computed, createVNode, defineComponent, isVNode, mergeProps, shallowRef } from "vue";
|
|
17
17
|
import { clsx } from "@v-c/util";
|
|
18
|
-
import { omit } from "es-toolkit";
|
|
18
|
+
import { omit as omit$1 } from "es-toolkit";
|
|
19
19
|
import VcInput from "@v-c/input";
|
|
20
20
|
//#region src/input/Input.tsx
|
|
21
21
|
function _isSlot(s) {
|
|
@@ -148,7 +148,7 @@ const InternalInput = /* @__PURE__ */ defineComponent((props, { slots, expose, e
|
|
|
148
148
|
"space": true
|
|
149
149
|
}, _isSlot(node) ? node : { default: () => [node] });
|
|
150
150
|
};
|
|
151
|
-
const restProps = omit(props, omitKeys);
|
|
151
|
+
const restProps = omit$1(props, omitKeys);
|
|
152
152
|
const classesValue = clsx(contextClassName.value, className, rootClass.value, compactItemClassnames.value, cssVarCls.value, rootCls.value, mergedClassNames.value.root, hashId.value);
|
|
153
153
|
const mergedStyle = {
|
|
154
154
|
...mergedStyles.value.root,
|
|
@@ -3,7 +3,7 @@ import InternalInput from "../Input.js";
|
|
|
3
3
|
import { computed, createVNode, defineComponent, mergeProps, shallowRef } from "vue";
|
|
4
4
|
import { clsx } from "@v-c/util";
|
|
5
5
|
import raf from "@v-c/util/dist/raf";
|
|
6
|
-
import { omit } from "es-toolkit";
|
|
6
|
+
import { omit as omit$1 } from "es-toolkit";
|
|
7
7
|
//#region src/input/OTP/OTPInput.tsx
|
|
8
8
|
const DEFAULT_MASK_VALUE = "•";
|
|
9
9
|
const OTPInput = /* @__PURE__ */ defineComponent((props, { attrs, expose, slots }) => {
|
|
@@ -34,35 +34,36 @@ const OTPInput = /* @__PURE__ */ defineComponent((props, { attrs, expose, slots
|
|
|
34
34
|
else if (key === "Backspace" && !props.value) props.onActiveChange(props.index - 1);
|
|
35
35
|
syncSelection();
|
|
36
36
|
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
37
|
+
return () => {
|
|
38
|
+
const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
|
|
39
|
+
const restInputProps = omit$1(props, [
|
|
40
|
+
"prefixCls",
|
|
41
|
+
"index",
|
|
42
|
+
"onChange",
|
|
43
|
+
"onActiveChange",
|
|
44
|
+
"onFocus",
|
|
45
|
+
"mask"
|
|
46
|
+
]);
|
|
47
|
+
return createVNode("span", {
|
|
48
|
+
"class": `${props.prefixCls}-input-wrapper`,
|
|
49
|
+
"role": "presentation"
|
|
50
|
+
}, [props.mask && props.value !== "" && props.value !== void 0 && createVNode("span", {
|
|
51
|
+
"class": `${props.prefixCls}-mask-icon`,
|
|
52
|
+
"aria-hidden": "true"
|
|
53
|
+
}, [typeof props.mask === "string" ? props.mask : DEFAULT_MASK_VALUE]), createVNode(InternalInput, mergeProps(restAttrs, restInputProps, {
|
|
54
|
+
"ref": inputRef,
|
|
55
|
+
"value": props.value,
|
|
56
|
+
"type": props.type ?? (props.mask ? "password" : "text"),
|
|
57
|
+
"class": clsx(className, { [`${props.prefixCls}-mask-input`]: props.mask }),
|
|
58
|
+
"style": style,
|
|
59
|
+
"onChange": handleChange,
|
|
60
|
+
"htmlSize": 1,
|
|
61
|
+
"onKeydown": handleKeyDown,
|
|
62
|
+
"onFocus": handleInternalFocus,
|
|
63
|
+
"onMousedown": () => syncSelection(),
|
|
64
|
+
"onMouseup": () => syncSelection()
|
|
65
|
+
}), slots)]);
|
|
66
|
+
};
|
|
66
67
|
}, {
|
|
67
68
|
props: {
|
|
68
69
|
prefixCls: {
|
package/dist/input/OTP/index.js
CHANGED
|
@@ -5,8 +5,9 @@ import { useSize } from "../../config-provider/hooks/useSize.js";
|
|
|
5
5
|
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../../_util/hooks/useMergeSemantic.js";
|
|
6
6
|
import { toPropsRefs } from "../../_util/tools.js";
|
|
7
7
|
import { isRenderable } from "../../_util/is.js";
|
|
8
|
-
import { getMergedStatus } from "../../_util/statusUtils.js";
|
|
9
8
|
import useVariant from "../../form/hooks/useVariant.js";
|
|
9
|
+
import useLocale from "../../locale/useLocale.js";
|
|
10
|
+
import { getMergedStatus } from "../../_util/statusUtils.js";
|
|
10
11
|
import otp_default from "../style/otp.js";
|
|
11
12
|
import OTPInput from "./OTPInput.js";
|
|
12
13
|
import { Fragment, computed, createVNode, defineComponent, mergeProps, shallowRef, watch } from "vue";
|
|
@@ -36,6 +37,7 @@ const OTP = /* @__PURE__ */ defineComponent((props, { attrs, emit, slots }) => {
|
|
|
36
37
|
}));
|
|
37
38
|
const contextStyleRoot = useSemanticRootStyle(contextStyle);
|
|
38
39
|
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles), useToProps(mergedProps));
|
|
40
|
+
const [inputLocale] = useLocale("Input");
|
|
39
41
|
const inputRefs = shallowRef({});
|
|
40
42
|
const internalFormatter = (txt) => props.formatter ? props.formatter(txt) : txt;
|
|
41
43
|
const initialValue = internalFormatter(props.value ?? props.defaultValue ?? "");
|
|
@@ -93,7 +95,11 @@ const OTP = /* @__PURE__ */ defineComponent((props, { attrs, emit, slots }) => {
|
|
|
93
95
|
}, [separatorNode]);
|
|
94
96
|
};
|
|
95
97
|
return () => {
|
|
96
|
-
const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
|
|
98
|
+
const { className, style, restAttrs: rootAttrs } = getAttrStyleAndClass(attrs);
|
|
99
|
+
const { "aria-invalid": ariaInvalid, ...restAttrs } = rootAttrs;
|
|
100
|
+
const mergedAriaInvalid = ariaInvalid ?? (mergedStatus.value === "error" || void 0);
|
|
101
|
+
const otpCellLabel = inputLocale.value.otpCell;
|
|
102
|
+
const getCellLabel = (index) => otpCellLabel?.replace(/\$\{index\}/g, String(index + 1)).replace(/\$\{total\}/g, String(mergedLength.value));
|
|
97
103
|
return createVNode("div", mergeProps(restAttrs, {
|
|
98
104
|
"class": clsx(className, prefixCls.value, cssVarCls.value, props.rootClass, contextClassName.value, hashId.value, {
|
|
99
105
|
[`${prefixCls.value}-sm`]: mergedSize.value === "small",
|
|
@@ -109,6 +115,8 @@ const OTP = /* @__PURE__ */ defineComponent((props, { attrs, emit, slots }) => {
|
|
|
109
115
|
"key": `otp-${index}`,
|
|
110
116
|
"prefixCls": prefixCls.value,
|
|
111
117
|
"index": index,
|
|
118
|
+
"aria-label": getCellLabel(index),
|
|
119
|
+
"aria-invalid": mergedAriaInvalid,
|
|
112
120
|
"value": valueCells.value[index] || "",
|
|
113
121
|
"onChange": handleInputChange,
|
|
114
122
|
"onActiveChange": handleActiveChange,
|
package/dist/input/Password.js
CHANGED
|
@@ -2,12 +2,13 @@ import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
|
2
2
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
3
3
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
4
4
|
import useVariant from "../form/hooks/useVariant.js";
|
|
5
|
+
import { useLocaleGetter } from "../locale/useLocale.js";
|
|
5
6
|
import useRemovePasswordTimeout from "./hooks/useRemovePasswordTimeout.js";
|
|
6
7
|
import InternalInput from "./Input.js";
|
|
7
8
|
import { Fragment, computed, createVNode, defineComponent, mergeProps, shallowRef, watch } from "vue";
|
|
8
9
|
import { clsx } from "@v-c/util";
|
|
9
10
|
import { EyeInvisibleOutlined, EyeOutlined } from "@antdv-next/icons";
|
|
10
|
-
import { omit } from "es-toolkit";
|
|
11
|
+
import { omit as omit$1 } from "es-toolkit";
|
|
11
12
|
//#region src/input/Password.tsx
|
|
12
13
|
const defaultIconRender = (visible) => visible ? createVNode(EyeOutlined, null, null) : createVNode(EyeInvisibleOutlined, null, null);
|
|
13
14
|
const InternalPassword = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit, expose }) => {
|
|
@@ -18,6 +19,7 @@ const InternalPassword = /* @__PURE__ */ defineComponent((props, { slots, attrs,
|
|
|
18
19
|
const disabledContext = useDisabledContext();
|
|
19
20
|
const mergedDisabled = computed(() => customDisabled.value ?? disabledContext.value);
|
|
20
21
|
const [mergedVariant] = useVariant("inputPassword", customizeVariant, bordered, "input");
|
|
22
|
+
const getGlobalLocale = useLocaleGetter("global");
|
|
21
23
|
const inputRef = shallowRef();
|
|
22
24
|
const removePasswordTimeout = useRemovePasswordTimeout(inputRef);
|
|
23
25
|
const visibilityToggle = computed(() => props.visibilityToggle ?? true);
|
|
@@ -47,11 +49,13 @@ const InternalPassword = /* @__PURE__ */ defineComponent((props, { slots, attrs,
|
|
|
47
49
|
const toggle = visibilityToggle.value;
|
|
48
50
|
const iconTabIndex = typeof toggle === "object" ? toggle.tabIndex : void 0;
|
|
49
51
|
const triggerProps = { [eventName]: () => triggerVisibleChange() };
|
|
52
|
+
const { show, hide } = getGlobalLocale();
|
|
50
53
|
return createVNode("span", mergeProps({
|
|
51
54
|
"key": "passwordIcon",
|
|
52
55
|
"role": "button",
|
|
53
56
|
"tabindex": mergedDisabled.value ? -1 : iconTabIndex ?? 0,
|
|
54
57
|
"class": `${passwordPrefixCls.value}-icon`,
|
|
58
|
+
"aria-label": visible.value ? hide : show,
|
|
55
59
|
"aria-disabled": mergedDisabled.value,
|
|
56
60
|
"aria-pressed": visible.value,
|
|
57
61
|
"onMousedown": (e) => e.preventDefault(),
|
|
@@ -78,7 +82,7 @@ const InternalPassword = /* @__PURE__ */ defineComponent((props, { slots, attrs,
|
|
|
78
82
|
input: computed(() => inputRef.value?.input ?? null)
|
|
79
83
|
});
|
|
80
84
|
return () => {
|
|
81
|
-
const restInputProps = omit(props, [
|
|
85
|
+
const restInputProps = omit$1(props, [
|
|
82
86
|
"iconRender",
|
|
83
87
|
"visibilityToggle",
|
|
84
88
|
"action",
|
|
@@ -108,7 +112,7 @@ const InternalPassword = /* @__PURE__ */ defineComponent((props, { slots, attrs,
|
|
|
108
112
|
"onCompositionend": (e) => emit("compositionend", e),
|
|
109
113
|
"onKeydown": (e) => emit("keydown", e),
|
|
110
114
|
"onKeyup": (e) => emit("keyup", e)
|
|
111
|
-
}, { "onUpdate:value": handleUpdateValue }), { ...omit(slots, ["suffix", "iconRender"]) });
|
|
115
|
+
}, { "onUpdate:value": handleUpdateValue }), { ...omit$1(slots, ["suffix", "iconRender"]) });
|
|
112
116
|
};
|
|
113
117
|
}, {
|
|
114
118
|
props: {
|
package/dist/input/Search.js
CHANGED
|
@@ -5,15 +5,15 @@ import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr,
|
|
|
5
5
|
import fallbackProp from "../_util/fallbackProp.js";
|
|
6
6
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
7
7
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
8
|
-
import button_default from "../button/index.js";
|
|
9
8
|
import useVariant from "../form/hooks/useVariant.js";
|
|
9
|
+
import button_default from "../button/index.js";
|
|
10
10
|
import { SpaceCompact } from "../space/index.js";
|
|
11
11
|
import InternalInput from "./Input.js";
|
|
12
12
|
import search_default from "./style/search.js";
|
|
13
13
|
import { cloneVNode, computed, createVNode, defineComponent, isVNode, mergeProps, shallowRef } from "vue";
|
|
14
14
|
import { clsx } from "@v-c/util";
|
|
15
15
|
import { SearchOutlined } from "@antdv-next/icons";
|
|
16
|
-
import { omit } from "es-toolkit";
|
|
16
|
+
import { omit as omit$1 } from "es-toolkit";
|
|
17
17
|
import pickAttrs from "@v-c/util/dist/pickAttrs";
|
|
18
18
|
//#region src/input/Search.tsx
|
|
19
19
|
function _isSlot(s) {
|
|
@@ -88,7 +88,7 @@ const InternalSearch = /* @__PURE__ */ defineComponent((props, { slots, attrs, e
|
|
|
88
88
|
Object.keys(rootAttrs).forEach((key) => {
|
|
89
89
|
delete inputAttrs[key];
|
|
90
90
|
});
|
|
91
|
-
const restInputProps = omit(props, omitInputKeys);
|
|
91
|
+
const restInputProps = omit$1(props, omitInputKeys);
|
|
92
92
|
const mergedClassName = clsx(prefixCls.value, cssVarCls.value, {
|
|
93
93
|
[`${prefixCls.value}-rtl`]: direction.value === "rtl",
|
|
94
94
|
[`${prefixCls.value}-${mergedSize.value}`]: mergedSize.value,
|
|
@@ -135,8 +135,8 @@ const InternalSearch = /* @__PURE__ */ defineComponent((props, { slots, attrs, e
|
|
|
135
135
|
"onMousedown": onMouseDown,
|
|
136
136
|
"onClick": onSearchClick
|
|
137
137
|
}, _isSlot(buttonChildren) ? buttonChildren : { default: () => [buttonChildren] });
|
|
138
|
-
const inputClassNames = omit(mergedClassNames.value, ["root", "button"]);
|
|
139
|
-
const inputStyles = omit(mergedStyles.value, ["root", "button"]);
|
|
138
|
+
const inputClassNames = omit$1(mergedClassNames.value, ["root", "button"]);
|
|
139
|
+
const inputStyles = omit$1(mergedStyles.value, ["root", "button"]);
|
|
140
140
|
return createVNode(SpaceCompact, mergeProps({
|
|
141
141
|
"class": mergedClassName,
|
|
142
142
|
"style": mergedRootStyle
|
package/dist/input/TextArea.js
CHANGED
|
@@ -7,14 +7,14 @@ import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr,
|
|
|
7
7
|
import { toPropsRefs } from "../_util/tools.js";
|
|
8
8
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
9
9
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
10
|
-
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
|
|
11
10
|
import useVariant from "../form/hooks/useVariant.js";
|
|
12
|
-
import { useSharedStyle } from "./style/index.js";
|
|
13
11
|
import useAllowClear, { useAllowClearLabel } from "../_util/hooks/useAllowClear.js";
|
|
12
|
+
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
|
|
13
|
+
import { useSharedStyle } from "./style/index.js";
|
|
14
14
|
import textarea_default from "./style/textarea.js";
|
|
15
15
|
import { computed, createVNode, defineComponent, mergeProps, onBeforeUnmount, shallowRef } from "vue";
|
|
16
16
|
import { clsx } from "@v-c/util";
|
|
17
|
-
import { omit } from "es-toolkit/compat";
|
|
17
|
+
import { omit as omit$1 } from "es-toolkit/compat";
|
|
18
18
|
import VcTextArea from "@v-c/textarea";
|
|
19
19
|
//#region src/input/TextArea.tsx
|
|
20
20
|
const omitKeys = [
|
|
@@ -107,7 +107,7 @@ const InternalTextArea = /* @__PURE__ */ defineComponent((props, { attrs, emit,
|
|
|
107
107
|
const handleCompositionEnd = (e) => emit("compositionend", e);
|
|
108
108
|
return () => {
|
|
109
109
|
const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
|
|
110
|
-
const restProps = omit(props, omitKeys);
|
|
110
|
+
const restProps = omit$1(props, omitKeys);
|
|
111
111
|
const textareaAttrs = {
|
|
112
112
|
...restAttrs,
|
|
113
113
|
maxLength: props.maxlength,
|
|
@@ -8,15 +8,15 @@ import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr,
|
|
|
8
8
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
9
9
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
10
10
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
11
|
-
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
|
|
12
11
|
import useVariant from "../form/hooks/useVariant.js";
|
|
13
12
|
import useAllowClear, { useAllowClearLabel } from "../_util/hooks/useAllowClear.js";
|
|
13
|
+
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
|
|
14
14
|
import { SpaceAddon, SpaceCompact } from "../space/index.js";
|
|
15
15
|
import style_default from "./style/index.js";
|
|
16
16
|
import { Fragment, computed, createVNode, defineComponent, isVNode, mergeProps, shallowRef } from "vue";
|
|
17
17
|
import { clsx } from "@v-c/util";
|
|
18
18
|
import { DownOutlined, MinusOutlined, PlusOutlined, UpOutlined } from "@antdv-next/icons";
|
|
19
|
-
import { omit } from "es-toolkit";
|
|
19
|
+
import { omit as omit$1 } from "es-toolkit";
|
|
20
20
|
import VcInputNumber from "@v-c/input-number";
|
|
21
21
|
//#region src/input-number/index.tsx
|
|
22
22
|
function _isSlot(s) {
|
|
@@ -168,7 +168,7 @@ const InputNumber = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
|
|
|
168
168
|
const handleClear = () => emit("clear");
|
|
169
169
|
return () => {
|
|
170
170
|
const { restAttrs } = getAttrStyleAndClass(attrs);
|
|
171
|
-
const restProps = omit(props, omitKeys);
|
|
171
|
+
const restProps = omit$1(props, omitKeys);
|
|
172
172
|
const { min, max, step } = props;
|
|
173
173
|
const prefixNode = getSlotPropsFnRun(slots, props, "prefix");
|
|
174
174
|
const suffixSlot = getSlotPropsFnRun(slots, props, "suffix");
|
package/dist/layout/Sider.js
CHANGED
|
@@ -7,7 +7,7 @@ import sider_default from "./style/sider.js";
|
|
|
7
7
|
import { computed, createVNode, defineComponent, inject, mergeDefaults, mergeProps, onBeforeUnmount, provide, ref, shallowRef, watch } from "vue";
|
|
8
8
|
import { classNames } from "@v-c/util";
|
|
9
9
|
import { BarsOutlined, LeftOutlined, RightOutlined } from "@antdv-next/icons";
|
|
10
|
-
import { omit } from "es-toolkit";
|
|
10
|
+
import { omit as omit$1 } from "es-toolkit";
|
|
11
11
|
import canUseDom from "@v-c/util/dist/Dom/canUseDom";
|
|
12
12
|
//#region src/layout/Sider.tsx
|
|
13
13
|
const dimensionMaxMap = {
|
|
@@ -116,7 +116,7 @@ const Sider = /* @__PURE__ */ defineComponent((props, { emit, slots, attrs }) =>
|
|
|
116
116
|
[`${prefixCls.value}-has-trigger`]: collapsible && trigger !== null && !zeroWidthTrigger,
|
|
117
117
|
[`${prefixCls.value}-below`]: !!below.value,
|
|
118
118
|
[`${prefixCls.value}-zero-width`]: Number.parseFloat(siderWidth.value) === 0
|
|
119
|
-
}, attrs.class, mergedClassNames.value.root, hashId.value, cssVarCls.value) }, omit(attrs, ["style", "class"]), { "style": [
|
|
119
|
+
}, attrs.class, mergedClassNames.value.root, hashId.value, cssVarCls.value) }, omit$1(attrs, ["style", "class"]), { "style": [
|
|
120
120
|
mergedStyles.value.root,
|
|
121
121
|
attrs.style,
|
|
122
122
|
divStyle
|
package/dist/locale/ar_EG.js
CHANGED
package/dist/locale/az_AZ.js
CHANGED
package/dist/locale/bg_BG.js
CHANGED
package/dist/locale/bn_BD.js
CHANGED
package/dist/locale/by_BY.js
CHANGED
package/dist/locale/ca_ES.js
CHANGED
package/dist/locale/cs_CZ.js
CHANGED
|
@@ -13,7 +13,10 @@ const localeValues = {
|
|
|
13
13
|
global: {
|
|
14
14
|
placeholder: "Prosím vyber",
|
|
15
15
|
close: "Zavřít",
|
|
16
|
-
sortable: "seřadit"
|
|
16
|
+
sortable: "seřadit",
|
|
17
|
+
clear: "Vymazat",
|
|
18
|
+
show: "Zobrazit",
|
|
19
|
+
hide: "Skrýt"
|
|
17
20
|
},
|
|
18
21
|
Table: {
|
|
19
22
|
filterTitle: "Filtr",
|
|
@@ -63,12 +66,12 @@ const localeValues = {
|
|
|
63
66
|
itemUnit: "položka",
|
|
64
67
|
itemsUnit: "položek",
|
|
65
68
|
remove: "Odstranit",
|
|
66
|
-
selectCurrent: "Vybrat aktuální
|
|
67
|
-
removeCurrent: "
|
|
69
|
+
selectCurrent: "Vybrat aktuální stránku",
|
|
70
|
+
removeCurrent: "Odstranit aktuální stránku",
|
|
68
71
|
selectAll: "Označit vše",
|
|
69
|
-
removeAll: "
|
|
72
|
+
removeAll: "Odstranit vše",
|
|
70
73
|
selectInvert: "Opačný výběr",
|
|
71
|
-
deselectAll: "
|
|
74
|
+
deselectAll: "Zrušit výběr všech"
|
|
72
75
|
},
|
|
73
76
|
Upload: {
|
|
74
77
|
uploading: "Nahrávání...",
|
|
@@ -82,9 +85,9 @@ const localeValues = {
|
|
|
82
85
|
Text: {
|
|
83
86
|
edit: "Upravit",
|
|
84
87
|
copy: "Kopírovat",
|
|
85
|
-
copied: "
|
|
86
|
-
expand: "
|
|
87
|
-
collapse: "
|
|
88
|
+
copied: "Zkopírováno",
|
|
89
|
+
expand: "Rozbalit",
|
|
90
|
+
collapse: "Sbalit"
|
|
88
91
|
},
|
|
89
92
|
Carousel: {
|
|
90
93
|
prevSlide: "Předchozí snímek",
|
|
@@ -148,7 +151,8 @@ const localeValues = {
|
|
|
148
151
|
transparent: "Průhledné",
|
|
149
152
|
singleColor: "Jednobarevné",
|
|
150
153
|
gradientColor: "Přechodové"
|
|
151
|
-
}
|
|
154
|
+
},
|
|
155
|
+
Input: { otpCell: "Znak ${index} z ${total}" }
|
|
152
156
|
};
|
|
153
157
|
//#endregion
|
|
154
158
|
export { localeValues as default };
|
package/dist/locale/da_DK.js
CHANGED
package/dist/locale/de_DE.js
CHANGED
|
@@ -13,7 +13,10 @@ const localeValues = {
|
|
|
13
13
|
global: {
|
|
14
14
|
placeholder: "Bitte auswählen",
|
|
15
15
|
close: "Schließen",
|
|
16
|
-
|
|
16
|
+
clear: "Löschen",
|
|
17
|
+
sortable: "sortierbar",
|
|
18
|
+
show: "Anzeigen",
|
|
19
|
+
hide: "Ausblenden"
|
|
17
20
|
},
|
|
18
21
|
Table: {
|
|
19
22
|
filterTitle: "Filter-Menü",
|
|
@@ -144,7 +147,8 @@ const localeValues = {
|
|
|
144
147
|
transparent: "Transparent",
|
|
145
148
|
singleColor: "Einfarbig",
|
|
146
149
|
gradientColor: "Farbverlauf"
|
|
147
|
-
}
|
|
150
|
+
},
|
|
151
|
+
Input: { otpCell: "Zeichen ${index} von ${total}" }
|
|
148
152
|
};
|
|
149
153
|
//#endregion
|
|
150
154
|
export { localeValues as default };
|
package/dist/locale/el_GR.js
CHANGED
package/dist/locale/en_GB.js
CHANGED
package/dist/locale/en_US.js
CHANGED
|
@@ -14,7 +14,9 @@ const localeValues = {
|
|
|
14
14
|
placeholder: "Please select",
|
|
15
15
|
close: "Close",
|
|
16
16
|
sortable: "sortable",
|
|
17
|
-
clear: "Clear"
|
|
17
|
+
clear: "Clear",
|
|
18
|
+
show: "Show",
|
|
19
|
+
hide: "Hide"
|
|
18
20
|
},
|
|
19
21
|
Table: {
|
|
20
22
|
filterTitle: "Filter menu",
|
|
@@ -150,7 +152,8 @@ const localeValues = {
|
|
|
150
152
|
transparent: "Transparent",
|
|
151
153
|
singleColor: "Single",
|
|
152
154
|
gradientColor: "Gradient"
|
|
153
|
-
}
|
|
155
|
+
},
|
|
156
|
+
Input: { otpCell: "Character ${index} of ${total}" }
|
|
154
157
|
};
|
|
155
158
|
//#endregion
|
|
156
159
|
export { localeValues as default };
|
package/dist/locale/es_ES.js
CHANGED
package/dist/locale/et_EE.js
CHANGED
package/dist/locale/eu_ES.js
CHANGED
package/dist/locale/fa_IR.js
CHANGED
package/dist/locale/fi_FI.js
CHANGED
package/dist/locale/fr_BE.js
CHANGED