antdv-next 1.5.1 → 1.5.2
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/useClosable.d.ts +4 -2
- package/dist/_util/hooks/useClosable.js +9 -3
- package/dist/_util/statusUtils.d.ts +1 -1
- package/dist/_util/vueNode.d.ts +2 -6
- package/dist/anchor/Anchor.js +12 -6
- package/dist/antd-with-locales.esm.js +10739 -10434
- package/dist/antd-with-locales.js +82 -82
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +7777 -7476
- package/dist/antd.js +36 -36
- package/dist/carousel/index.js +5 -2
- package/dist/collapse/Collapse.js +2 -4
- package/dist/color-picker/components/ColorTrigger.js +1 -1
- package/dist/color-picker/style/index.js +1 -0
- package/dist/date-picker/generatePicker/generateRangePicker.js +4 -2
- package/dist/date-picker/generatePicker/useComponents.d.ts +2 -2
- package/dist/descriptions/hooks/useItems.d.ts +4 -4
- package/dist/float-button/style/button.js +16 -10
- package/dist/form/FormItem/ItemHolder.js +1 -1
- package/dist/form/FormItem/index.js +4 -5
- package/dist/form/context.d.ts +1 -1
- package/dist/form/hooks/useVariant.d.ts +1 -1
- package/dist/form/style/index.js +25 -12
- package/dist/image/hooks/usePreviewConfig.d.ts +4 -4
- package/dist/listy/style/index.js +5 -1
- package/dist/locale/en_US.js +4 -0
- package/dist/locale/index.d.ts +4 -0
- package/dist/locale/is_IS.js +1 -1
- package/dist/locale/mn_MN.js +1 -1
- package/dist/locale/zh_CN.js +4 -0
- package/dist/menu/MenuItem.js +12 -2
- package/dist/menu/SubMenu.d.ts +1 -1
- package/dist/menu/style/vertical.js +2 -6
- package/dist/notification/index.js +2 -1
- package/dist/notification/useNotification.js +8 -4
- package/dist/package.js +1 -1
- package/dist/package.json.d.ts +4 -0
- package/dist/radio/group.js +2 -2
- package/dist/select/index.js +1 -1
- package/dist/select/style/index.js +1 -1
- package/dist/space/Compact.d.ts +1 -1
- package/dist/table/InternalTable.js +5 -4
- package/dist/table/hooks/useFilter/FilterDropdown.js +2 -2
- package/dist/table/style/radius.js +4 -0
- package/dist/table/util.d.ts +1 -1
- package/dist/tag/hooks/useColor.d.ts +1 -1
- package/dist/tour/panelRender.js +2 -8
- package/dist/transfer/ListBody.js +2 -1
- package/dist/transfer/ListItem.d.ts +1 -0
- package/dist/transfer/ListItem.js +6 -2
- package/dist/transfer/search.js +2 -2
- package/dist/tree/utils/dictUtil.js +3 -2
- package/dist/upload/UploadList/ListItem.js +2 -1
- package/dist/upload/UploadList/index.js +8 -2
- package/dist/version/token-meta.json +1 -0
- package/dist/version/token.json +1 -0
- package/package.json +8 -4
- package/web-tags.json +1609 -1605
- package/web-types.json +4395 -4382
|
@@ -374,15 +374,16 @@ const InternalTable = /* @__PURE__ */ defineComponent((props, { slots, emit, att
|
|
|
374
374
|
...mergedStyles.value.root,
|
|
375
375
|
...style
|
|
376
376
|
};
|
|
377
|
+
const title = resolvePanelRender(slots, props, "title");
|
|
378
|
+
const footer = resolvePanelRender(slots, props, "footer");
|
|
379
|
+
const summary = resolvePanelRender(slots, props, "summary");
|
|
377
380
|
const tableClassName = clsx({
|
|
378
381
|
[`${prefixCls.value}-medium`]: mergedSize.value === "middle" || mergedSize.value === "medium",
|
|
379
382
|
[`${prefixCls.value}-small`]: mergedSize.value === "small",
|
|
380
383
|
[`${prefixCls.value}-bordered`]: props.bordered,
|
|
381
|
-
[`${prefixCls.value}-empty`]: rawData.value.length === 0
|
|
384
|
+
[`${prefixCls.value}-empty`]: rawData.value.length === 0,
|
|
385
|
+
[`${prefixCls.value}-no-header`]: !title && props.showHeader === false
|
|
382
386
|
}, cssVarCls.value, rootCls.value, hashId.value);
|
|
383
|
-
const title = resolvePanelRender(slots, props, "title");
|
|
384
|
-
const footer = resolvePanelRender(slots, props, "footer");
|
|
385
|
-
const summary = resolvePanelRender(slots, props, "summary");
|
|
386
387
|
const TableComp = TableComponent.value;
|
|
387
388
|
const virtualProps = mergedVirtual.value ? { listItemHeight: listItemHeight.value } : {};
|
|
388
389
|
const mergedScroll = props.scroll ?? contextScroll.value;
|
|
@@ -163,8 +163,8 @@ const FilterDropdown = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
163
163
|
const onVisibleChange = (newVisible, info) => {
|
|
164
164
|
if (info?.source === "trigger") {
|
|
165
165
|
if (newVisible && propFilteredKeys.value !== void 0) setFilteredKeysSync(wrapStringListType(propFilteredKeys.value));
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
if (!newVisible && !hasPropDropdownRender && !column.value.filterDropdown && props.filterOnClose) onConfirm();
|
|
167
|
+
else triggerVisible(newVisible);
|
|
168
168
|
}
|
|
169
169
|
};
|
|
170
170
|
const dropdownMenuClass = computed(() => clsx({ [`${props.dropdownPrefixCls}-menu-without-submenu`]: !hasSubMenu(column?.value?.filters || []) }));
|
|
@@ -10,6 +10,10 @@ const genRadiusStyle = (token) => {
|
|
|
10
10
|
[`${componentCls}-header, table`]: { borderRadius: 0 },
|
|
11
11
|
"table > thead > tr:first-child": { "th:first-child, th:last-child, td:first-child, td:last-child": { borderRadius: 0 } }
|
|
12
12
|
},
|
|
13
|
+
[`&${componentCls}-bordered${componentCls}-no-header`]: { [`> ${componentCls}-container`]: { [`> ${componentCls}-content, > ${componentCls}-body`]: { "> table > tbody > tr:first-child": {
|
|
14
|
+
"> *:first-child": { borderStartStartRadius: tableRadius },
|
|
15
|
+
"> *:last-child": { borderStartEndRadius: tableRadius }
|
|
16
|
+
} } } },
|
|
13
17
|
"&-container": {
|
|
14
18
|
borderStartStartRadius: tableRadius,
|
|
15
19
|
borderStartEndRadius: tableRadius,
|
package/dist/table/util.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ declare function renderColumnTitle<RecordType extends AnyObject = AnyObject>(tit
|
|
|
11
11
|
* Should filter [object Object]
|
|
12
12
|
*/
|
|
13
13
|
declare function safeColumnTitle<RecordType extends AnyObject = AnyObject>(title: ColumnTitle<RecordType>, props: ColumnTitleProps<RecordType>): any;
|
|
14
|
-
declare function normalizePlacement(pos: TablePaginationPlacement | TablePaginationPosition): "
|
|
14
|
+
declare function normalizePlacement(pos: TablePaginationPlacement | TablePaginationPosition): "center" | "end" | "start";
|
|
15
15
|
declare function getPaginationSize(paginationSize: SizeType, mergedSize: SizeType): SizeType;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { getColumnKey, getColumnPos, getPaginationSize, normalizePlacement, renderColumnTitle, safeColumnTitle };
|
|
@@ -9,6 +9,6 @@ declare function useColor(props: {
|
|
|
9
9
|
color: Ref<TagProps['color']>;
|
|
10
10
|
variant: Ref<TagProps['variant']>;
|
|
11
11
|
bordered: Ref<TagProps['bordered']>;
|
|
12
|
-
}, contextVariant?: Ref<TagProps['variant']>): readonly [import("vue").ComputedRef<"outlined" | "
|
|
12
|
+
}, contextVariant?: Ref<TagProps['variant']>): readonly [import("vue").ComputedRef<"outlined" | "filled" | "solid">, import("vue").ComputedRef<string | undefined>, import("vue").ComputedRef<boolean>, import("vue").ComputedRef<boolean>, import("vue").ComputedRef<CSSProperties>];
|
|
13
13
|
//#endregion
|
|
14
14
|
export { useColor as default };
|
package/dist/tour/panelRender.js
CHANGED
|
@@ -135,14 +135,8 @@ const TourPanel = /* @__PURE__ */ defineComponent((props) => {
|
|
|
135
135
|
type: Function,
|
|
136
136
|
required: false
|
|
137
137
|
},
|
|
138
|
-
classes: {
|
|
139
|
-
|
|
140
|
-
required: false
|
|
141
|
-
},
|
|
142
|
-
styles: {
|
|
143
|
-
type: [Object, Function],
|
|
144
|
-
required: false
|
|
145
|
-
},
|
|
138
|
+
classes: { required: false },
|
|
139
|
+
styles: { required: false },
|
|
146
140
|
actionsRender: {
|
|
147
141
|
type: Function,
|
|
148
142
|
required: false
|
|
@@ -54,7 +54,7 @@ const TransferListBody = /* @__PURE__ */ defineComponent((props, { expose }) =>
|
|
|
54
54
|
pageSize.value = size;
|
|
55
55
|
};
|
|
56
56
|
return () => {
|
|
57
|
-
const { classes = {}, styles = {}, prefixCls, showRemove, filteredRenderItems, disabled, onScroll, selectedKeys } = props;
|
|
57
|
+
const { classes = {}, styles = {}, prefixCls, showRemove, filteredRenderItems, disabled, onScroll, selectedKeys, remove } = props;
|
|
58
58
|
const paginationNode = mergedPagination.value ? createVNode(pagination_default, {
|
|
59
59
|
"size": "small",
|
|
60
60
|
"disabled": disabled,
|
|
@@ -83,6 +83,7 @@ const TransferListBody = /* @__PURE__ */ defineComponent((props, { expose }) =>
|
|
|
83
83
|
"showRemove": showRemove,
|
|
84
84
|
"onClick": onInternalClick,
|
|
85
85
|
"onRemove": onRemove,
|
|
86
|
+
"removeLabel": remove,
|
|
86
87
|
"checked": selectedKeys.includes(item.key),
|
|
87
88
|
"disabled": disabled
|
|
88
89
|
}, null))]), paginationNode]);
|
|
@@ -13,6 +13,7 @@ interface ListItemProps<RecordType> {
|
|
|
13
13
|
onRemove?: (item: RecordType) => void;
|
|
14
14
|
item: RecordType;
|
|
15
15
|
showRemove?: boolean;
|
|
16
|
+
removeLabel?: string;
|
|
16
17
|
}
|
|
17
18
|
declare const ListItem: import("vue").DefineSetupFnComponent<ListItemProps<KeyWiseTransferItem>, {}, {}, ListItemProps<KeyWiseTransferItem> & {}, import("vue").PublicProps>;
|
|
18
19
|
//#endregion
|
|
@@ -8,7 +8,7 @@ import { DeleteOutlined } from "@antdv-next/icons";
|
|
|
8
8
|
const ListItem = /* @__PURE__ */ defineComponent((props) => {
|
|
9
9
|
const [contextLocale] = useLocale("Transfer", localeValues.Transfer);
|
|
10
10
|
return () => {
|
|
11
|
-
const { prefixCls, classes: classNames, styles, renderedText, renderedEl, item, checked, disabled, onClick, onRemove, showRemove } = props;
|
|
11
|
+
const { prefixCls, classes: classNames, styles, renderedText, renderedEl, item, checked, disabled, onClick, onRemove, showRemove, removeLabel } = props;
|
|
12
12
|
const mergedDisabled = disabled || item?.disabled;
|
|
13
13
|
const classes = clsx(`${prefixCls}-content-item`, classNames.item, {
|
|
14
14
|
[`${prefixCls}-content-item-disabled`]: mergedDisabled,
|
|
@@ -28,7 +28,7 @@ const ListItem = /* @__PURE__ */ defineComponent((props) => {
|
|
|
28
28
|
"type": "button",
|
|
29
29
|
"disabled": mergedDisabled,
|
|
30
30
|
"class": `${prefixCls}-content-item-remove`,
|
|
31
|
-
"aria-label": contextLocale?.value?.remove,
|
|
31
|
+
"aria-label": removeLabel ?? contextLocale?.value?.remove,
|
|
32
32
|
"onClick": () => onRemove?.(item)
|
|
33
33
|
}, [createVNode(DeleteOutlined, null, null)])]);
|
|
34
34
|
return createVNode("li", {
|
|
@@ -98,6 +98,10 @@ const ListItem = /* @__PURE__ */ defineComponent((props) => {
|
|
|
98
98
|
type: Boolean,
|
|
99
99
|
required: false,
|
|
100
100
|
default: void 0
|
|
101
|
+
},
|
|
102
|
+
removeLabel: {
|
|
103
|
+
type: String,
|
|
104
|
+
required: false
|
|
101
105
|
}
|
|
102
106
|
},
|
|
103
107
|
name: "ATransferListItem",
|
package/dist/transfer/search.js
CHANGED
|
@@ -4,8 +4,8 @@ import { SearchOutlined } from "@antdv-next/icons";
|
|
|
4
4
|
//#region src/transfer/search.tsx
|
|
5
5
|
const Search = /* @__PURE__ */ defineComponent((props, { emit, slots }) => {
|
|
6
6
|
const handleChange = (e) => {
|
|
7
|
-
emit("
|
|
8
|
-
|
|
7
|
+
if (e.type === "click") emit("clear");
|
|
8
|
+
else emit("change", e);
|
|
9
9
|
};
|
|
10
10
|
return () => createVNode(InternalInput, {
|
|
11
11
|
"placeholder": props.placeholder || "",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isNonNullable } from "../../_util/is.js";
|
|
1
2
|
import { fillFieldNames } from "@v-c/tree";
|
|
2
3
|
//#region src/tree/utils/dictUtil.ts
|
|
3
4
|
const RECORD_NONE = 0;
|
|
@@ -16,8 +17,8 @@ function traverseNodesKey(treeData, callback, fieldNames) {
|
|
|
16
17
|
function calcRangeKeys({ treeData, expandedKeys, startKey, endKey, fieldNames }) {
|
|
17
18
|
const keys = [];
|
|
18
19
|
let record = RECORD_NONE;
|
|
19
|
-
if (startKey
|
|
20
|
-
if (
|
|
20
|
+
if (!isNonNullable(startKey) || !isNonNullable(endKey)) return [];
|
|
21
|
+
if (startKey === endKey) return [startKey];
|
|
21
22
|
function matchKey(key) {
|
|
22
23
|
return key === startKey || key === endKey;
|
|
23
24
|
}
|
|
@@ -88,7 +88,8 @@ const ListItem = /* @__PURE__ */ defineComponent((props, { attrs }) => {
|
|
|
88
88
|
"target": "_blank",
|
|
89
89
|
"rel": "noopener noreferrer",
|
|
90
90
|
"onClick": (e) => onPreview(file, e),
|
|
91
|
-
"title": locale.previewFile
|
|
91
|
+
"title": locale.previewFile,
|
|
92
|
+
"aria-label": locale.previewFile || void 0
|
|
92
93
|
}, [typeof customPreviewIcon === "function" ? customPreviewIcon(file) : customPreviewIcon || createVNode(EyeOutlined, null, null)]) : null;
|
|
93
94
|
const pictureCardActions = (listType.value === "picture-card" || listType.value === "picture-circle") && mergedStatus.value !== "uploading" && createVNode("span", { "class": `${prefixCls}-list-item-actions` }, [
|
|
94
95
|
previewIcon,
|
|
@@ -79,7 +79,10 @@ const UploadList = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
79
79
|
if (isVNode(customIcon)) return createVNode(button_default, mergeProps({
|
|
80
80
|
"type": "text",
|
|
81
81
|
"size": "small"
|
|
82
|
-
}, {
|
|
82
|
+
}, {
|
|
83
|
+
"title": title,
|
|
84
|
+
"aria-label": title || void 0
|
|
85
|
+
}, {
|
|
83
86
|
"class": `${actionPrefixCls}-list-item-action`,
|
|
84
87
|
"disabled": mergedDisabled,
|
|
85
88
|
"onClick": handleClick,
|
|
@@ -88,7 +91,10 @@ const UploadList = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
88
91
|
return createVNode(button_default, mergeProps({
|
|
89
92
|
"type": "text",
|
|
90
93
|
"size": "small"
|
|
91
|
-
}, {
|
|
94
|
+
}, {
|
|
95
|
+
"title": title,
|
|
96
|
+
"aria-label": title || void 0
|
|
97
|
+
}, {
|
|
92
98
|
"class": `${actionPrefixCls}-list-item-action`,
|
|
93
99
|
"disabled": mergedDisabled,
|
|
94
100
|
"onClick": handleClick
|