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.
Files changed (218) hide show
  1. package/dist/_util/hooks/useMergeSemantic.js +2 -2
  2. package/dist/_util/vueNode.d.ts +2 -6
  3. package/dist/alert/Alert.js +10 -5
  4. package/dist/antd-with-locales.esm.js +14360 -11910
  5. package/dist/antd-with-locales.js +82 -79
  6. package/dist/antd.css +1 -1
  7. package/dist/antd.esm.js +13203 -10918
  8. package/dist/antd.js +82 -79
  9. package/dist/auto-complete/index.d.ts +2 -0
  10. package/dist/auto-complete/index.js +28 -23
  11. package/dist/button/Button.js +31 -18
  12. package/dist/calendar/Header.js +4 -4
  13. package/dist/card/Card.js +1 -1
  14. package/dist/carousel/index.js +3 -3
  15. package/dist/cascader/index.d.ts +7 -1
  16. package/dist/cascader/index.js +42 -34
  17. package/dist/checkbox/Checkbox.js +5 -2
  18. package/dist/checkbox/Group.js +2 -2
  19. package/dist/collapse/Collapse.js +2 -2
  20. package/dist/color-picker/ColorPicker.js +15 -2
  21. package/dist/color-picker/components/ColorSlider.js +2 -2
  22. package/dist/color-picker/interface.d.ts +3 -0
  23. package/dist/components.d.ts +1 -1
  24. package/dist/config-provider/context.d.ts +13 -9
  25. package/dist/config-provider/define.d.ts +2 -1
  26. package/dist/config-provider/index.js +9 -0
  27. package/dist/date-picker/generatePicker/generateRangePicker.d.ts +2 -0
  28. package/dist/date-picker/generatePicker/generateRangePicker.js +19 -11
  29. package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +2 -0
  30. package/dist/date-picker/generatePicker/generateSinglePicker.js +14 -10
  31. package/dist/date-picker/generatePicker/useComponents.js +2 -2
  32. package/dist/date-picker/generatePicker/useSuffix.d.ts +12 -0
  33. package/dist/date-picker/generatePicker/useSuffix.js +11 -0
  34. package/dist/date-picker/style/panel.js +11 -8
  35. package/dist/date-picker/util.d.ts +2 -6
  36. package/dist/date-picker/util.js +4 -3
  37. package/dist/descriptions/hooks/useItems.d.ts +6 -6
  38. package/dist/descriptions/index.js +2 -2
  39. package/dist/divider/index.js +14 -4
  40. package/dist/drawer/index.js +2 -2
  41. package/dist/dropdown/dropdown.js +6 -6
  42. package/dist/flex/index.js +2 -2
  43. package/dist/float-button/FloatButton.js +2 -2
  44. package/dist/float-button/FloatButtonGroup.js +2 -2
  45. package/dist/float-button/PurePanel.js +5 -5
  46. package/dist/form/Form.js +40 -10
  47. package/dist/form/FormItem/ItemHolder.d.ts +3 -18
  48. package/dist/form/FormItem/StatusProvider.js +2 -1
  49. package/dist/form/FormItem/index.d.ts +1 -0
  50. package/dist/form/FormItem/index.js +13 -2
  51. package/dist/form/FormItemInput.js +3 -4
  52. package/dist/form/FormItemLabel.js +7 -3
  53. package/dist/form/context.d.ts +3 -3
  54. package/dist/form/hooks/useVariant.d.ts +14 -4
  55. package/dist/form/hooks/useVariant.js +24 -13
  56. package/dist/form/interface.d.ts +4 -1
  57. package/dist/form/style/index.js +1 -1
  58. package/dist/image/PreviewGroup.js +2 -2
  59. package/dist/image/hooks/usePreviewConfig.d.ts +7 -7
  60. package/dist/image/index.js +3 -3
  61. package/dist/index.d.ts +1 -1
  62. package/dist/input/Input.js +4 -4
  63. package/dist/input/OTP/OTPInput.js +31 -30
  64. package/dist/input/OTP/index.js +10 -2
  65. package/dist/input/Password.js +7 -3
  66. package/dist/input/Search.js +5 -5
  67. package/dist/input/TextArea.js +4 -4
  68. package/dist/input-number/index.js +3 -3
  69. package/dist/layout/Sider.js +2 -2
  70. package/dist/locale/ar_EG.js +3 -1
  71. package/dist/locale/az_AZ.js +3 -1
  72. package/dist/locale/bg_BG.js +3 -1
  73. package/dist/locale/bn_BD.js +3 -1
  74. package/dist/locale/by_BY.js +3 -1
  75. package/dist/locale/ca_ES.js +3 -1
  76. package/dist/locale/cs_CZ.js +13 -9
  77. package/dist/locale/da_DK.js +3 -1
  78. package/dist/locale/de_DE.js +6 -2
  79. package/dist/locale/el_GR.js +3 -1
  80. package/dist/locale/en_GB.js +3 -1
  81. package/dist/locale/en_US.js +5 -2
  82. package/dist/locale/es_ES.js +3 -1
  83. package/dist/locale/et_EE.js +3 -1
  84. package/dist/locale/eu_ES.js +3 -1
  85. package/dist/locale/fa_IR.js +3 -1
  86. package/dist/locale/fi_FI.js +3 -1
  87. package/dist/locale/fr_BE.js +3 -1
  88. package/dist/locale/fr_CA.js +3 -1
  89. package/dist/locale/fr_FR.js +6 -2
  90. package/dist/locale/ga_IE.js +3 -1
  91. package/dist/locale/gl_ES.js +3 -1
  92. package/dist/locale/he_IL.js +3 -1
  93. package/dist/locale/hi_IN.js +3 -1
  94. package/dist/locale/hr_HR.js +3 -1
  95. package/dist/locale/hu_HU.js +3 -1
  96. package/dist/locale/hy_AM.js +5 -13
  97. package/dist/locale/id_ID.js +3 -1
  98. package/dist/locale/index.d.ts +6 -0
  99. package/dist/locale/is_IS.js +3 -1
  100. package/dist/locale/it_IT.js +6 -2
  101. package/dist/locale/ja_JP.js +3 -1
  102. package/dist/locale/ka_GE.js +3 -1
  103. package/dist/locale/kk_KZ.js +3 -1
  104. package/dist/locale/km_KH.js +3 -1
  105. package/dist/locale/kmr_IQ.js +3 -1
  106. package/dist/locale/kn_IN.js +3 -1
  107. package/dist/locale/ko_KR.js +3 -1
  108. package/dist/locale/ku_IQ.js +3 -1
  109. package/dist/locale/lt_LT.js +3 -1
  110. package/dist/locale/lv_LV.js +3 -1
  111. package/dist/locale/mk_MK.js +3 -1
  112. package/dist/locale/ml_IN.js +3 -1
  113. package/dist/locale/mn_MN.js +3 -1
  114. package/dist/locale/mr_IN.js +3 -1
  115. package/dist/locale/ms_MY.js +3 -1
  116. package/dist/locale/my_MM.js +3 -1
  117. package/dist/locale/nb_NO.js +3 -1
  118. package/dist/locale/ne_NP.js +4 -2
  119. package/dist/locale/nl_BE.js +3 -1
  120. package/dist/locale/nl_NL.js +3 -1
  121. package/dist/locale/pl_PL.js +3 -1
  122. package/dist/locale/pt_BR.js +3 -1
  123. package/dist/locale/pt_PT.js +3 -1
  124. package/dist/locale/ro_RO.js +3 -1
  125. package/dist/locale/ru_RU.js +3 -1
  126. package/dist/locale/si_LK.js +3 -1
  127. package/dist/locale/sk_SK.js +3 -1
  128. package/dist/locale/sl_SI.js +3 -1
  129. package/dist/locale/sq_AL.js +5 -13
  130. package/dist/locale/sr_RS.js +3 -1
  131. package/dist/locale/sv_SE.js +3 -1
  132. package/dist/locale/ta_IN.js +3 -1
  133. package/dist/locale/th_TH.js +3 -1
  134. package/dist/locale/tk_TK.js +3 -1
  135. package/dist/locale/tr_TR.js +3 -1
  136. package/dist/locale/uk_UA.js +3 -1
  137. package/dist/locale/ur_PK.js +3 -1
  138. package/dist/locale/uz_UZ.js +3 -1
  139. package/dist/locale/vi_VN.js +3 -1
  140. package/dist/locale/zh_CN.js +5 -2
  141. package/dist/locale/zh_HK.js +3 -1
  142. package/dist/locale/zh_TW.js +3 -1
  143. package/dist/mentions/index.js +4 -4
  144. package/dist/menu/MenuItem.js +7 -7
  145. package/dist/menu/SubMenu.js +5 -4
  146. package/dist/menu/menu.js +2 -2
  147. package/dist/message/PurePanel.js +2 -2
  148. package/dist/modal/Modal.js +5 -5
  149. package/dist/notification/PurePanel.js +2 -2
  150. package/dist/notification/style/placement.js +3 -6
  151. package/dist/package.js +1 -1
  152. package/dist/pagination/Pagination.js +6 -5
  153. package/dist/pagination/index.d.ts +2 -1
  154. package/dist/pagination/interface.d.ts +2 -2
  155. package/dist/pagination/style/index.js +3 -3
  156. package/dist/popconfirm/index.js +2 -2
  157. package/dist/popover/PurePanel.js +2 -2
  158. package/dist/popover/style/index.js +1 -0
  159. package/dist/progress/Circle.js +3 -3
  160. package/dist/qrcode/index.js +2 -2
  161. package/dist/qrcode/style/index.js +0 -4
  162. package/dist/radio/radio.js +2 -2
  163. package/dist/rate/index.js +2 -2
  164. package/dist/select/index.d.ts +11 -3
  165. package/dist/select/index.js +55 -38
  166. package/dist/select/useIcons.d.ts +23 -12
  167. package/dist/select/useIcons.js +34 -13
  168. package/dist/select/useShowArrow.d.ts +2 -3
  169. package/dist/select/useShowArrow.js +3 -5
  170. package/dist/skeleton/Paragraph.js +2 -2
  171. package/dist/skeleton/Skeleton.js +2 -2
  172. package/dist/skeleton/Title.js +2 -2
  173. package/dist/slider/index.js +2 -2
  174. package/dist/space/Compact.d.ts +1 -1
  175. package/dist/space/index.d.ts +1 -1
  176. package/dist/space/style/index.js +8 -2
  177. package/dist/splitter/SplitBar.js +2 -1
  178. package/dist/splitter/Splitter.js +2 -2
  179. package/dist/statistic/Number.js +7 -1
  180. package/dist/steps/index.js +9 -3
  181. package/dist/switch/index.js +2 -2
  182. package/dist/table/InternalTable.js +2 -2
  183. package/dist/table/hooks/useFilter/index.js +5 -2
  184. package/dist/table/hooks/usePagination.d.ts +2 -1
  185. package/dist/table/hooks/usePagination.js +6 -3
  186. package/dist/table/style/expand.js +4 -1
  187. package/dist/table/util.d.ts +1 -1
  188. package/dist/tabs/index.js +19 -11
  189. package/dist/tag/hooks/useColor.d.ts +1 -1
  190. package/dist/tag/index.d.ts +1 -1
  191. package/dist/tag/index.js +13 -5
  192. package/dist/theme/getDesignToken.js +2 -1
  193. package/dist/time-picker/index.d.ts +6 -0
  194. package/dist/time-picker/index.js +11 -1
  195. package/dist/timeline/Timeline.js +16 -10
  196. package/dist/tooltip/PurePanel.js +2 -2
  197. package/dist/tooltip/index.js +3 -6
  198. package/dist/tooltip/style/index.js +1 -0
  199. package/dist/tour/index.js +2 -3
  200. package/dist/tour/panelRender.js +4 -4
  201. package/dist/transfer/Section.js +2 -2
  202. package/dist/tree/DirectoryTree.js +2 -2
  203. package/dist/tree/Tree.js +2 -2
  204. package/dist/tree/style/index.js +6 -1
  205. package/dist/tree/utils/iconUtil.js +1 -1
  206. package/dist/tree-select/index.d.ts +32 -2
  207. package/dist/tree-select/index.js +75 -75
  208. package/dist/upload/Upload.js +2 -2
  209. package/dist/version/token.json +1 -1
  210. package/dist/watermark/useWatermark.d.ts +1 -7
  211. package/dist/watermark/useWatermark.js +1 -7
  212. package/package.json +6 -6
  213. package/web-tags.json +87 -31
  214. package/web-types.json +246 -161
  215. package/dist/date-picker/generatePicker/SuffixIcon.d.ts +0 -12
  216. package/dist/date-picker/generatePicker/SuffixIcon.js +0 -51
  217. package/dist/form/style/fallbackCmp.d.ts +0 -14
  218. package/dist/form/style/fallbackCmp.js +0 -13
@@ -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";
@@ -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
- const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
38
- const restInputProps = omit(props, [
39
- "prefixCls",
40
- "index",
41
- "onChange",
42
- "onActiveChange",
43
- "onFocus",
44
- "mask"
45
- ]);
46
- return () => createVNode("span", {
47
- "class": `${props.prefixCls}-input-wrapper`,
48
- "role": "presentation"
49
- }, [props.mask && props.value !== "" && props.value !== void 0 && createVNode("span", {
50
- "class": `${props.prefixCls}-mask-icon`,
51
- "aria-hidden": "true"
52
- }, [typeof props.mask === "string" ? props.mask : DEFAULT_MASK_VALUE]), createVNode(InternalInput, mergeProps(restAttrs, restInputProps, {
53
- "ref": inputRef,
54
- "value": props.value,
55
- "type": props.type ?? (props.mask ? "password" : "text"),
56
- "class": clsx(className, { [`${props.prefixCls}-mask-input`]: props.mask }),
57
- "style": style,
58
- "onChange": handleChange,
59
- "htmlSize": 1,
60
- "onKeydown": handleKeyDown,
61
- "onFocus": handleInternalFocus,
62
- "onMousedown": () => syncSelection(),
63
- "onMouseup": () => syncSelection(),
64
- "aria-label": `OTP Input ${props.index + 1}`
65
- }), slots)]);
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: {
@@ -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,
@@ -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: {
@@ -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
@@ -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");
@@ -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
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "يرجى التحديد",
15
15
  close: "إغلاق",
16
- sortable: "قابل للفرز"
16
+ sortable: "قابل للفرز",
17
+ show: "إظهار",
18
+ hide: "إخفاء"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "الفلاتر",
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "Zəhmət olmasa seçin",
15
15
  close: "Bağla",
16
- sortable: "çeşidlənən"
16
+ sortable: "çeşidlənən",
17
+ show: "Göstər",
18
+ hide: "Gizlət"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "Filter menyu",
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  close: "Затвори",
15
15
  placeholder: "Моля изберете",
16
- sortable: "сортируеми"
16
+ sortable: "сортируеми",
17
+ show: "Покажи",
18
+ hide: "Скрий"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "Филтриране",
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "অনুগ্রহ করে নির্বাচন করুন",
15
15
  close: "বন্ধ",
16
- sortable: "বাছাইযোগ্য"
16
+ sortable: "বাছাইযোগ্য",
17
+ show: "দেখান",
18
+ hide: "লুকান"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "ফিল্টার মেনু",
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "Калі ласка, выберыце",
15
15
  close: "Закрыць",
16
- sortable: "сартавальны"
16
+ sortable: "сартавальны",
17
+ show: "Паказаць",
18
+ hide: "Схаваць"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "Фільтр",
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "Seleccionar",
15
15
  close: "Tancar",
16
- sortable: "ordenable"
16
+ sortable: "ordenable",
17
+ show: "Mostra",
18
+ hide: "Amaga"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "Filtrar el menú",
@@ -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í stranu",
67
- removeCurrent: "Smazat aktuální stranu",
69
+ selectCurrent: "Vybrat aktuální stránku",
70
+ removeCurrent: "Odstranit aktuální stránku",
68
71
  selectAll: "Označit vše",
69
- removeAll: "Odznačit vše",
72
+ removeAll: "Odstranit vše",
70
73
  selectInvert: "Opačný výběr",
71
- deselectAll: "Zrušte výběr všech dat"
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: "Zkopírované",
86
- expand: "Zvětšit",
87
- collapse: "kolaps"
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 };
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  close: "Luk",
15
15
  placeholder: "Vælg venligst",
16
- sortable: "sorterbar"
16
+ sortable: "sorterbar",
17
+ show: "Vis",
18
+ hide: "Skjul"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "Filtermenu",
@@ -13,7 +13,10 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "Bitte auswählen",
15
15
  close: "Schließen",
16
- sortable: "sortierbar"
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 };
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "Παρακαλώ επιλέξτε",
15
15
  close: "Κλείσιμο",
16
- sortable: "διαλογήσιμος"
16
+ sortable: "διαλογήσιμος",
17
+ show: "Εμφάνιση",
18
+ hide: "Απόκρυψη"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "Μενού φίλτρων",
@@ -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",
@@ -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 };
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "Seleccione",
15
15
  close: "Cerrar",
16
- sortable: "ordenable"
16
+ sortable: "ordenable",
17
+ show: "Mostrar",
18
+ hide: "Ocultar"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "Filtrar menú",
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "Palun vali",
15
15
  close: "Sulge",
16
- sortable: "sorteeritav"
16
+ sortable: "sorteeritav",
17
+ show: "Näita",
18
+ hide: "Peida"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "Filtri menüü",
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "Aukeratu",
15
15
  close: "Itxi",
16
- sortable: "ordenagarria"
16
+ sortable: "ordenagarria",
17
+ show: "Erakutsi",
18
+ hide: "Ezkutatu"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "Iragazi menua",
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "لطفاً انتخاب کنید",
15
15
  close: "بستن",
16
- sortable: "قابل مرتب سازی"
16
+ sortable: "قابل مرتب سازی",
17
+ show: "نمایش",
18
+ hide: "مخفی کردن"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "منوی فیلتر",
@@ -12,7 +12,9 @@ const localeValues = {
12
12
  global: {
13
13
  close: "Sulje",
14
14
  placeholder: "Ole hyvä ja valitse",
15
- sortable: "lajiteltava"
15
+ sortable: "lajiteltava",
16
+ show: "Näytä",
17
+ hide: "Piilota"
16
18
  },
17
19
  Table: {
18
20
  filterTitle: "Suodatus valikko",
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  close: "Fermer",
15
15
  placeholder: "Veuillez sélectionner",
16
- sortable: "triable"
16
+ sortable: "triable",
17
+ show: "Afficher",
18
+ hide: "Masquer"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "Filtrer",