antdv-next 1.7.0 → 1.8.0
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/statusUtils.d.ts +1 -1
- package/dist/_util/vueNode.d.ts +11 -1
- package/dist/_util/vueNode.js +17 -1
- package/dist/affix/index.js +12 -9
- package/dist/alert/Alert.js +10 -5
- package/dist/anchor/Anchor.js +11 -6
- package/dist/anchor/style/index.js +2 -3
- package/dist/antd-with-locales.esm.js +16938 -18716
- package/dist/antd-with-locales.js +79 -86
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +15197 -17143
- package/dist/antd.js +80 -87
- package/dist/auto-complete/index.d.ts +2 -0
- package/dist/auto-complete/index.js +28 -23
- package/dist/avatar/Avatar.js +1 -1
- package/dist/avatar/AvatarContext.d.ts +2 -2
- package/dist/avatar/AvatarGroup.js +3 -5
- package/dist/badge/style/ribbon.d.ts +1 -0
- package/dist/border-beam/style/index.d.ts +1 -0
- package/dist/breadcrumb/index.d.ts +8 -1
- package/dist/button/Button.js +31 -18
- package/dist/button/style/index.d.ts +1 -0
- package/dist/calendar/Header.js +4 -4
- package/dist/calendar/generateCalendar.d.ts +10 -10
- package/dist/calendar/index.d.ts +1 -1
- package/dist/card/Card.js +1 -1
- package/dist/card/index.d.ts +8 -1
- package/dist/card/style/index.js +3 -7
- package/dist/carousel/index.js +3 -3
- package/dist/cascader/hooks/useIcons.js +3 -2
- package/dist/cascader/index.d.ts +9 -1
- package/dist/cascader/index.js +42 -34
- package/dist/cascader/style/panel.d.ts +1 -0
- package/dist/checkbox/Checkbox.js +5 -2
- package/dist/checkbox/Group.js +6 -6
- 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/color-picker/style/input.js +6 -11
- package/dist/components.d.ts +24 -24
- package/dist/components.js +1 -2
- package/dist/config-provider/context.d.ts +16 -11
- 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 +23 -15
- package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +2 -0
- package/dist/date-picker/generatePicker/generateSinglePicker.js +18 -14
- package/dist/date-picker/generatePicker/interface.d.ts +17 -5
- package/dist/date-picker/generatePicker/useComponents.d.ts +1 -14
- package/dist/date-picker/generatePicker/useSuffix.d.ts +12 -0
- package/dist/date-picker/generatePicker/useSuffix.js +11 -0
- package/dist/date-picker/style/index.d.ts +1 -0
- package/dist/date-picker/util.d.ts +1 -1
- 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/dropdown/style/index.js +0 -6
- package/dist/empty/index.js +2 -1
- package/dist/empty/style/index.d.ts +1 -0
- package/dist/flex/index.js +2 -2
- package/dist/float-button/BackTop.js +2 -1
- 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 +47 -16
- 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 +22 -9
- package/dist/form/FormItemInput.js +3 -4
- package/dist/form/FormItemLabel.js +8 -4
- 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/grid/hooks/useBreakpoint.js +12 -6
- package/dist/image/PreviewGroup.d.ts +9 -2
- package/dist/image/PreviewGroup.js +2 -2
- package/dist/image/hooks/usePreviewConfig.d.ts +2 -2
- package/dist/image/index.d.ts +3 -3
- package/dist/image/index.js +3 -3
- package/dist/index.d.ts +26 -24
- package/dist/index.js +1 -2
- 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/style/index.js +2 -15
- package/dist/input/style/otp.d.ts +1 -0
- package/dist/input/style/search.d.ts +1 -0
- package/dist/input/style/textarea.d.ts +1 -0
- package/dist/input-number/index.js +3 -3
- package/dist/input-number/style/index.d.ts +1 -0
- package/dist/layout/Sider.js +2 -2
- package/dist/layout/style/sider.d.ts +1 -0
- package/dist/listy/interface.d.ts +23 -4
- package/dist/listy/style/index.js +1 -0
- 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/message/style/index.d.ts +1 -0
- package/dist/message/style/index.js +2 -1
- package/dist/modal/Modal.js +5 -5
- package/dist/modal/PurePanel.js +2 -2
- package/dist/modal/style/confirm.js +1 -1
- package/dist/notification/PurePanel.js +2 -2
- package/dist/notification/style/index.d.ts +3 -0
- package/dist/notification/style/index.js +4 -5
- 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 +15 -7
- package/dist/popconfirm/index.js +4 -3
- package/dist/popover/PurePanel.js +2 -2
- package/dist/popover/style/index.js +1 -0
- package/dist/progress/Circle.js +3 -3
- package/dist/progress/Line.js +2 -1
- package/dist/progress/progress.js +1 -1
- package/dist/qrcode/QrcodeStatus.js +2 -1
- 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/style/index.d.ts +1 -0
- package/dist/select/useIcons.d.ts +23 -8
- 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.d.ts +6 -1
- package/dist/slider/index.js +7 -5
- package/dist/space/Item.d.ts +1 -0
- package/dist/space/Item.js +6 -2
- package/dist/space/index.d.ts +1 -1
- package/dist/space/index.js +1 -0
- package/dist/space/style/addon.d.ts +1 -0
- package/dist/space/style/compact.d.ts +1 -0
- package/dist/space/style/index.js +8 -2
- package/dist/spin/Indicator/index.js +5 -1
- package/dist/splitter/SplitBar.js +2 -1
- package/dist/splitter/Splitter.js +10 -4
- package/dist/splitter/interface.d.ts +1 -0
- package/dist/statistic/Number.js +7 -1
- package/dist/statistic/Statistic.d.ts +3 -0
- package/dist/statistic/Statistic.js +2 -1
- package/dist/steps/index.js +16 -8
- package/dist/switch/index.js +10 -4
- package/dist/table/InternalTable.js +22 -7
- 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/index.d.ts +2 -2
- package/dist/table/util.d.ts +1 -1
- package/dist/tabs/index.js +19 -11
- package/dist/tabs/style/index.js +2 -6
- package/dist/tag/index.d.ts +1 -1
- package/dist/tag/index.js +13 -5
- package/dist/theme/getDesignToken.js +2 -1
- package/dist/theme/index.d.ts +1 -0
- package/dist/time-picker/index.d.ts +16 -9
- package/dist/time-picker/index.js +31 -84
- 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 -1
- 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.d.ts +19 -7
- package/dist/tree/DirectoryTree.js +2 -2
- package/dist/tree/Tree.d.ts +73 -58
- package/dist/tree/Tree.js +2 -2
- package/dist/tree/index.d.ts +8 -5
- package/dist/tree/index.js +4 -3
- 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/upload/utils.js +8 -3
- 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 +20 -20
- package/web-tags.json +85 -29
- package/web-types.json +242 -157
- 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/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,
|
|
@@ -106,15 +106,6 @@ const genInputGroupStyle = (token) => {
|
|
|
106
106
|
border: `${unit(token.lineWidth)} ${token.lineType} transparent`,
|
|
107
107
|
boxShadow: "none"
|
|
108
108
|
}
|
|
109
|
-
},
|
|
110
|
-
[`${antCls}-cascader-picker`]: {
|
|
111
|
-
margin: `-9px ${unit(token.calc(token.paddingInline).mul(-1).equal())}`,
|
|
112
|
-
backgroundColor: "transparent",
|
|
113
|
-
[`${antCls}-cascader-input`]: {
|
|
114
|
-
textAlign: "start",
|
|
115
|
-
border: 0,
|
|
116
|
-
boxShadow: "none"
|
|
117
|
-
}
|
|
118
109
|
}
|
|
119
110
|
}
|
|
120
111
|
},
|
|
@@ -192,7 +183,6 @@ const genInputGroupStyle = (token) => {
|
|
|
192
183
|
[componentCls]: { float: "none" },
|
|
193
184
|
[`& > ${antCls}-select,
|
|
194
185
|
& > ${antCls}-select-auto-complete ${componentCls},
|
|
195
|
-
& > ${antCls}-cascader-picker ${componentCls},
|
|
196
186
|
& > ${componentCls}-group-wrapper ${componentCls}`]: {
|
|
197
187
|
borderInlineEndWidth: token.lineWidth,
|
|
198
188
|
borderRadius: 0,
|
|
@@ -202,15 +192,12 @@ const genInputGroupStyle = (token) => {
|
|
|
202
192
|
[`& > ${antCls}-select > ${antCls}-select-arrow`]: { zIndex: 1 },
|
|
203
193
|
[`& > *:first-child,
|
|
204
194
|
& > ${antCls}-select:first-child,
|
|
205
|
-
& > ${antCls}-select-auto-complete:first-child ${componentCls}
|
|
206
|
-
& > ${antCls}-cascader-picker:first-child ${componentCls}`]: {
|
|
195
|
+
& > ${antCls}-select-auto-complete:first-child ${componentCls}`]: {
|
|
207
196
|
borderStartStartRadius: token.borderRadius,
|
|
208
197
|
borderEndStartRadius: token.borderRadius
|
|
209
198
|
},
|
|
210
199
|
[`& > *:last-child,
|
|
211
|
-
& > ${antCls}-select:last-child
|
|
212
|
-
& > ${antCls}-cascader-picker:last-child ${componentCls},
|
|
213
|
-
& > ${antCls}-cascader-picker-focused:last-child ${componentCls}`]: {
|
|
200
|
+
& > ${antCls}-select:last-child`]: {
|
|
214
201
|
borderInlineEndWidth: token.lineWidth,
|
|
215
202
|
borderStartEndRadius: token.borderRadius,
|
|
216
203
|
borderEndEndRadius: token.borderRadius
|
|
@@ -2,6 +2,7 @@ import { SeedToken } from "../../theme/interface/seeds.js";
|
|
|
2
2
|
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
3
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
4
4
|
import "../../theme/interface/index.js";
|
|
5
|
+
import "../../theme/internal.js";
|
|
5
6
|
//#region src/input/style/otp.d.ts
|
|
6
7
|
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
7
8
|
//#endregion
|
|
@@ -2,6 +2,7 @@ import { SeedToken } from "../../theme/interface/seeds.js";
|
|
|
2
2
|
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
3
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
4
4
|
import "../../theme/interface/index.js";
|
|
5
|
+
import "../../theme/internal.js";
|
|
5
6
|
//#region src/input/style/search.d.ts
|
|
6
7
|
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
7
8
|
//#endregion
|
|
@@ -3,6 +3,7 @@ import { AliasToken } from "../../theme/interface/alias.js";
|
|
|
3
3
|
import { ComponentToken, initComponentToken, initInputToken } from "./token.js";
|
|
4
4
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
5
5
|
import "../../theme/interface/index.js";
|
|
6
|
+
import "../../theme/internal.js";
|
|
6
7
|
//#region src/input/style/textarea.d.ts
|
|
7
8
|
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
8
9
|
//#endregion
|
|
@@ -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");
|
|
@@ -3,6 +3,7 @@ import { AliasToken } from "../../theme/interface/alias.js";
|
|
|
3
3
|
import { ComponentToken } from "./token.js";
|
|
4
4
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
5
5
|
import "../../theme/interface/index.js";
|
|
6
|
+
import "../../theme/internal.js";
|
|
6
7
|
//#region src/input-number/style/index.d.ts
|
|
7
8
|
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
8
9
|
//#endregion
|
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
|
|
@@ -2,6 +2,7 @@ import { SeedToken } from "../../theme/interface/seeds.js";
|
|
|
2
2
|
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
3
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
4
4
|
import "../../theme/interface/index.js";
|
|
5
|
+
import "../../theme/internal.js";
|
|
5
6
|
//#region src/layout/style/sider.d.ts
|
|
6
7
|
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
7
8
|
//#endregion
|
|
@@ -1,14 +1,33 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { StyleValue } from "vue";
|
|
4
|
-
import { ListyClassNames, ListyProps as ListyProps$1,
|
|
4
|
+
import { ListyClassNames, ListyProps as ListyProps$1, ListyStyles, ScrollAlign } from "@v-c/listy";
|
|
5
|
+
import { Key } from "@v-c/util/dist/type";
|
|
5
6
|
//#region src/listy/interface.d.ts
|
|
7
|
+
interface ListyKeyScrollToConfig {
|
|
8
|
+
key: Key;
|
|
9
|
+
align?: ScrollAlign;
|
|
10
|
+
offset?: number;
|
|
11
|
+
}
|
|
12
|
+
interface ListyGroupScrollToConfig {
|
|
13
|
+
groupKey: Key;
|
|
14
|
+
align?: ScrollAlign;
|
|
15
|
+
offset?: number;
|
|
16
|
+
}
|
|
17
|
+
interface ListyPositionScrollToConfig {
|
|
18
|
+
left?: number;
|
|
19
|
+
top?: number;
|
|
20
|
+
}
|
|
21
|
+
type ListyScrollToConfig = number | null | ListyKeyScrollToConfig | ListyPositionScrollToConfig | ListyGroupScrollToConfig;
|
|
22
|
+
interface ListyRef {
|
|
23
|
+
scrollTo: (config?: ListyScrollToConfig) => void;
|
|
24
|
+
}
|
|
6
25
|
interface ListySemanticType {
|
|
7
26
|
classes?: ListyClassNames;
|
|
8
27
|
styles?: ListyStyles;
|
|
9
28
|
}
|
|
10
|
-
type ListyClassNamesType = SemanticType<
|
|
11
|
-
type ListyStylesType = SemanticType<
|
|
29
|
+
type ListyClassNamesType = SemanticType<ListyProps, ListyClassNames>;
|
|
30
|
+
type ListyStylesType = SemanticType<ListyProps, ListyStyles>;
|
|
12
31
|
interface ListyProps extends Omit<ListyProps$1, 'itemHeight' | 'direction' | 'classNames' | 'styles' | 'itemRender' | 'onScroll'> {
|
|
13
32
|
rootClass?: string;
|
|
14
33
|
class?: string;
|
|
@@ -23,4 +42,4 @@ interface ListyProps extends Omit<ListyProps$1, 'itemHeight' | 'direction' | 'cl
|
|
|
23
42
|
rowHoverable?: boolean;
|
|
24
43
|
}
|
|
25
44
|
//#endregion
|
|
26
|
-
export { type ListyClassNames, ListyProps,
|
|
45
|
+
export { type ListyClassNames, ListyGroupScrollToConfig, ListyKeyScrollToConfig, ListyPositionScrollToConfig, ListyProps, ListyRef, ListyScrollToConfig, ListySemanticType, type ListyStyles, type ScrollAlign };
|
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
package/dist/locale/fr_CA.js
CHANGED
package/dist/locale/fr_FR.js
CHANGED
|
@@ -12,8 +12,11 @@ const localeValues = {
|
|
|
12
12
|
Calendar: fr_FR_default,
|
|
13
13
|
global: {
|
|
14
14
|
close: "Fermer",
|
|
15
|
+
clear: "Effacer",
|
|
15
16
|
placeholder: "Veuillez sélectionner",
|
|
16
|
-
sortable: "triable"
|
|
17
|
+
sortable: "triable",
|
|
18
|
+
show: "Afficher",
|
|
19
|
+
hide: "Masquer"
|
|
17
20
|
},
|
|
18
21
|
Table: {
|
|
19
22
|
filterTitle: "Filtrer",
|
|
@@ -148,7 +151,8 @@ const localeValues = {
|
|
|
148
151
|
transparent: "Transparente",
|
|
149
152
|
singleColor: "Couleur unique",
|
|
150
153
|
gradientColor: "Couleur dégradée"
|
|
151
|
-
}
|
|
154
|
+
},
|
|
155
|
+
Input: { otpCell: "Caractère ${index} sur ${total}" }
|
|
152
156
|
};
|
|
153
157
|
//#endregion
|
|
154
158
|
export { localeValues as default };
|
package/dist/locale/ga_IE.js
CHANGED
package/dist/locale/gl_ES.js
CHANGED