antdv-next 1.5.3 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_util/hooks/useMergedMask.js +1 -1
- package/dist/_util/vueNode.d.ts +6 -2
- package/dist/alert/Alert.js +7 -7
- package/dist/anchor/AnchorLink.d.ts +4 -3
- package/dist/antd-with-locales.esm.js +14779 -13866
- package/dist/antd-with-locales.js +81 -81
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +11089 -10516
- package/dist/antd.js +81 -81
- package/dist/auto-complete/index.d.ts +3 -3
- package/dist/auto-complete/index.js +4 -0
- package/dist/breadcrumb/Breadcrumb.js +4 -3
- package/dist/breadcrumb/BreadcrumbItem.js +1 -1
- package/dist/card/Card.d.ts +5 -1
- package/dist/card/Card.js +5 -2
- package/dist/cascader/index.d.ts +6 -6
- package/dist/cascader/index.js +9 -0
- package/dist/color-picker/ColorPicker.js +7 -7
- package/dist/config-provider/SizeContext.d.ts +1 -1
- package/dist/config-provider/SizeContext.js +1 -1
- package/dist/config-provider/hooks/useTheme.js +2 -1
- package/dist/date-picker/generatePicker/generateRangePicker.js +15 -2
- package/dist/date-picker/generatePicker/generateSinglePicker.js +14 -1
- package/dist/date-picker/generatePicker/useComponents.d.ts +2 -2
- package/dist/date-picker/locale/ar_EG.js +8 -0
- package/dist/date-picker/locale/bg_BG.js +8 -0
- package/dist/date-picker/locale/ca_ES.js +8 -0
- package/dist/date-picker/locale/cs_CZ.js +8 -0
- package/dist/date-picker/locale/da_DK.js +8 -0
- package/dist/date-picker/locale/de_DE.js +11 -1
- package/dist/date-picker/locale/es_ES.js +8 -0
- package/dist/date-picker/locale/fi_FI.js +8 -0
- package/dist/date-picker/locale/fr_BE.js +1 -0
- package/dist/date-picker/locale/fr_CA.js +1 -0
- package/dist/date-picker/locale/fr_FR.js +1 -0
- package/dist/date-picker/locale/gl_ES.js +8 -0
- package/dist/date-picker/locale/he_IL.js +8 -0
- package/dist/date-picker/locale/hi_IN.js +1 -0
- package/dist/date-picker/locale/hr_HR.js +1 -0
- package/dist/date-picker/locale/hu_HU.js +8 -0
- package/dist/date-picker/locale/it_IT.js +8 -0
- package/dist/date-picker/locale/ms_MY.js +8 -0
- package/dist/date-picker/locale/nb_NO.js +1 -0
- package/dist/date-picker/locale/nl_BE.js +1 -0
- package/dist/date-picker/locale/nl_NL.js +1 -0
- package/dist/date-picker/locale/pl_PL.js +8 -0
- package/dist/date-picker/locale/pt_BR.js +8 -0
- package/dist/date-picker/locale/pt_PT.js +8 -0
- package/dist/date-picker/locale/ro_RO.js +8 -0
- package/dist/date-picker/locale/ru_RU.js +1 -0
- package/dist/date-picker/locale/sk_SK.js +8 -0
- package/dist/date-picker/locale/sr_RS.js +1 -0
- package/dist/date-picker/locale/sv_SE.js +1 -0
- package/dist/date-picker/locale/th_TH.js +1 -0
- package/dist/date-picker/locale/tr_TR.js +1 -0
- package/dist/date-picker/locale/uk_UA.js +1 -0
- package/dist/date-picker/locale/zh_TW.js +1 -1
- package/dist/date-picker/util.d.ts +4 -4
- package/dist/descriptions/Row.js +4 -3
- package/dist/descriptions/hooks/useItems.d.ts +4 -4
- package/dist/drawer/DrawerPanel.js +7 -4
- package/dist/drawer/index.js +2 -1
- package/dist/dropdown/dropdown.d.ts +3 -6
- package/dist/dropdown/dropdown.js +8 -4
- package/dist/empty/index.js +2 -1
- package/dist/float-button/FloatButton.js +1 -1
- package/dist/float-button/style/group.js +31 -5
- package/dist/form/FormItemLabel.js +1 -1
- package/dist/form/style/index.js +4 -1
- package/dist/image/hooks/usePreviewConfig.d.ts +3 -3
- package/dist/input/Password.js +2 -2
- package/dist/input/Search.js +1 -4
- package/dist/input-number/index.d.ts +11 -0
- package/dist/input-number/index.js +21 -0
- package/dist/input-number/style/index.js +25 -2
- package/dist/listy/index.js +4 -0
- package/dist/locale/ar_EG.js +4 -0
- package/dist/locale/bg_BG.js +4 -0
- package/dist/locale/ca_ES.js +4 -0
- package/dist/locale/cs_CZ.js +4 -0
- package/dist/locale/da_DK.js +4 -0
- package/dist/locale/de_DE.js +4 -0
- package/dist/locale/el_GR.js +4 -0
- package/dist/locale/en_GB.js +4 -0
- package/dist/locale/es_ES.js +4 -0
- package/dist/locale/et_EE.js +4 -0
- package/dist/locale/fa_IR.js +4 -0
- package/dist/locale/fi_FI.js +4 -0
- package/dist/locale/fr_BE.js +4 -0
- package/dist/locale/fr_CA.js +4 -0
- package/dist/locale/fr_FR.js +4 -0
- package/dist/locale/gl_ES.js +4 -0
- package/dist/locale/he_IL.js +4 -0
- package/dist/locale/hi_IN.js +4 -0
- package/dist/locale/hr_HR.js +4 -0
- package/dist/locale/hu_HU.js +4 -0
- package/dist/locale/id_ID.js +4 -0
- package/dist/locale/it_IT.js +4 -0
- package/dist/locale/ja_JP.js +4 -0
- package/dist/locale/ko_KR.js +4 -0
- package/dist/locale/lt_LT.js +4 -0
- package/dist/locale/lv_LV.js +4 -0
- package/dist/locale/ms_MY.js +4 -0
- package/dist/locale/nb_NO.js +4 -0
- package/dist/locale/nl_BE.js +4 -0
- package/dist/locale/nl_NL.js +4 -0
- package/dist/locale/pl_PL.js +4 -0
- package/dist/locale/pt_BR.js +4 -0
- package/dist/locale/pt_PT.js +4 -0
- package/dist/locale/ro_RO.js +4 -0
- package/dist/locale/ru_RU.js +4 -0
- package/dist/locale/sk_SK.js +4 -0
- package/dist/locale/sl_SI.js +4 -0
- package/dist/locale/sr_RS.js +4 -0
- package/dist/locale/sv_SE.js +4 -0
- package/dist/locale/th_TH.js +4 -0
- package/dist/locale/tr_TR.js +4 -0
- package/dist/locale/uk_UA.js +4 -0
- package/dist/locale/vi_VN.js +4 -0
- package/dist/locale/zh_HK.js +4 -0
- package/dist/locale/zh_TW.js +5 -1
- package/dist/menu/style/theme.js +1 -0
- package/dist/modal/components/NormalCancelBtn.js +6 -1
- package/dist/modal/interface.d.ts +1 -0
- package/dist/notification/useNotification.js +1 -1
- package/dist/package.js +1 -1
- package/dist/popconfirm/PurePanel.js +1 -1
- package/dist/popconfirm/index.js +6 -6
- package/dist/popover/index.js +6 -6
- package/dist/radio/radio.js +2 -1
- package/dist/segmented/index.js +1 -4
- package/dist/segmented/style/index.js +5 -1
- package/dist/select/index.d.ts +3 -2
- package/dist/select/index.js +8 -4
- package/dist/skeleton/Image.js +3 -1
- package/dist/slider/index.d.ts +1 -0
- package/dist/slider/index.js +4 -0
- package/dist/space/Compact.d.ts +1 -1
- package/dist/statistic/Statistic.js +4 -3
- package/dist/steps/ProgressIcon.js +7 -10
- package/dist/table/hooks/useFilter/FilterDropdown.js +14 -14
- package/dist/table/interface.d.ts +1 -1
- package/dist/table/style/virtual.js +2 -1
- package/dist/tabs/index.js +4 -1
- package/dist/tag/CheckableTag.js +5 -3
- package/dist/tag/CheckableTagGroup.js +1 -1
- package/dist/tag/index.js +2 -2
- package/dist/time-picker/index.js +26 -0
- package/dist/tooltip/index.js +4 -4
- package/dist/tree/DirectoryTree.js +1 -0
- package/dist/tree-select/index.d.ts +4 -4
- package/dist/tree-select/index.js +4 -0
- package/dist/version/token.json +1 -1
- package/dist/watermark/useClips.js +1 -0
- package/package.json +30 -30
- package/web-tags.json +1436 -1408
- package/web-types.json +5187 -5102
|
@@ -2,7 +2,7 @@ import { computed, unref } from "vue";
|
|
|
2
2
|
//#region src/_util/hooks/useMergedMask.ts
|
|
3
3
|
function normalizeMaskConfig(mask, maskClosable) {
|
|
4
4
|
let maskConfig = {};
|
|
5
|
-
if (mask && typeof mask === "object") maskConfig = mask;
|
|
5
|
+
if (mask && typeof mask === "object") maskConfig = { ...mask };
|
|
6
6
|
if (typeof mask === "boolean") maskConfig = { enabled: mask };
|
|
7
7
|
if (maskConfig.closable === void 0 && maskClosable !== void 0) maskConfig.closable = maskClosable;
|
|
8
8
|
return maskConfig;
|
package/dist/_util/vueNode.d.ts
CHANGED
|
@@ -3,8 +3,12 @@ import { VNodeChild } from "vue";
|
|
|
3
3
|
import { isFragment } from "@v-c/util/dist/Children/isFragment";
|
|
4
4
|
//#region src/_util/vueNode.d.ts
|
|
5
5
|
type RenderProps = AnyObject | ((originProps: AnyObject) => AnyObject | undefined);
|
|
6
|
-
declare function replaceElement(element: VNodeChild, replacement: VNodeChild, props?: RenderProps):
|
|
7
|
-
|
|
6
|
+
declare function replaceElement(element: VNodeChild, replacement: VNodeChild, props?: RenderProps): string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}> | import("vue").VNodeArrayChildren | null;
|
|
9
|
+
declare function cloneElement(element: VNodeChild, props?: RenderProps): string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}> | import("vue").VNodeArrayChildren | null;
|
|
8
12
|
declare function getVNode(node: VueNode): VNodeChild;
|
|
9
13
|
declare function checkRenderNode(node: any): any;
|
|
10
14
|
declare function getTextByNode(node: any): any;
|
package/dist/alert/Alert.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
2
|
import { pureAttrs, useMergeSemanticNoRef } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { getSlotPropFn, getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
4
|
+
import { isRenderable } from "../_util/is.js";
|
|
4
5
|
import style_default from "./style/index.js";
|
|
5
6
|
import { Transition, computed, createVNode, defineComponent, mergeDefaults, mergeProps, shallowRef } from "vue";
|
|
6
7
|
import { classNames, clsx } from "@v-c/util";
|
|
@@ -194,9 +195,8 @@ const Alert = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) =>
|
|
|
194
195
|
return !!contextClosable.value;
|
|
195
196
|
};
|
|
196
197
|
const isClosable = isClosableFn();
|
|
197
|
-
|
|
198
|
-
const
|
|
199
|
-
if (title) message = title;
|
|
198
|
+
const message = getSlotPropsFnRun(slots, props, "message");
|
|
199
|
+
const mergedTitle = getSlotPropsFnRun(slots, props, "title") ?? message;
|
|
200
200
|
const description = getSlotPropsFnRun(slots, props, "description");
|
|
201
201
|
const action = getSlotPropsFnRun(slots, props, "action");
|
|
202
202
|
const isShowIcon = banner && showIcon === void 0 ? true : showIcon;
|
|
@@ -215,7 +215,7 @@ const Alert = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) =>
|
|
|
215
215
|
], { props: mergedProps });
|
|
216
216
|
const mergedVariant = props.variant ?? contextVariant?.value ?? "outlined";
|
|
217
217
|
const alertCls = classNames(prefixCls.value, `${prefixCls.value}-${type.value}`, `${prefixCls.value}-${mergedVariant}`, {
|
|
218
|
-
[`${prefixCls.value}-with-description`]:
|
|
218
|
+
[`${prefixCls.value}-with-description`]: isRenderable(description),
|
|
219
219
|
[`${prefixCls.value}-no-icon`]: !isShowIcon,
|
|
220
220
|
[`${prefixCls.value}-banner`]: !!banner,
|
|
221
221
|
[`${prefixCls.value}-rtl`]: direction.value === "rtl"
|
|
@@ -268,14 +268,14 @@ const Alert = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) =>
|
|
|
268
268
|
createVNode("div", {
|
|
269
269
|
"class": [`${prefixCls.value}-section`, mergedClassNames.section],
|
|
270
270
|
"style": mergedStyles.section
|
|
271
|
-
}, [
|
|
271
|
+
}, [isRenderable(mergedTitle) ? createVNode("div", {
|
|
272
272
|
"class": [`${prefixCls.value}-title`, mergedClassNames.title],
|
|
273
273
|
"style": mergedStyles.title
|
|
274
|
-
}, [
|
|
274
|
+
}, [mergedTitle]) : null, isRenderable(description) ? createVNode("div", {
|
|
275
275
|
"class": [`${prefixCls.value}-description`, mergedClassNames.description],
|
|
276
276
|
"style": mergedStyles.description
|
|
277
277
|
}, [description]) : null]),
|
|
278
|
-
action ? createVNode("div", {
|
|
278
|
+
isRenderable(action) ? createVNode("div", {
|
|
279
279
|
"class": [`${prefixCls.value}-actions`, mergedClassNames.actions],
|
|
280
280
|
"style": mergedStyles.actions
|
|
281
281
|
}, [action]) : null,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
3
|
+
import { VNodeChild } from "vue";
|
|
3
4
|
//#region src/anchor/AnchorLink.d.ts
|
|
4
5
|
interface AnchorLinkBaseProps extends ComponentBaseProps {
|
|
5
6
|
href: string;
|
|
@@ -13,9 +14,9 @@ interface AnchorLinkBaseProps extends ComponentBaseProps {
|
|
|
13
14
|
targetOffset?: number;
|
|
14
15
|
}
|
|
15
16
|
interface AnchorLinkEmits {
|
|
16
|
-
click: (e: MouseEvent,
|
|
17
|
-
title:
|
|
18
|
-
href:
|
|
17
|
+
click: (e: MouseEvent, link: {
|
|
18
|
+
title: VNodeChild;
|
|
19
|
+
href: string;
|
|
19
20
|
}) => any;
|
|
20
21
|
}
|
|
21
22
|
interface AnchorLinkEmitsProps {
|