antdv-next 1.6.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_util/ContextIsolator.js +12 -3
- package/dist/_util/hooks/useAllowClear.d.ts +22 -6
- package/dist/_util/hooks/useAllowClear.js +24 -6
- package/dist/_util/hooks/useClosable.js +1 -1
- package/dist/_util/tools.d.ts +3 -1
- package/dist/_util/tools.js +6 -1
- package/dist/_util/vueNode.d.ts +17 -3
- package/dist/_util/vueNode.js +17 -1
- package/dist/affix/index.js +12 -9
- package/dist/alert/Alert.js +4 -1
- package/dist/alert/style/index.d.ts +3 -3
- package/dist/alert/style/index.js +3 -3
- package/dist/anchor/Anchor.js +11 -6
- package/dist/anchor/style/index.js +2 -3
- package/dist/antd-with-locales.esm.js +16276 -17343
- package/dist/antd-with-locales.js +81 -88
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +14015 -15728
- package/dist/antd.js +82 -89
- package/dist/auto-complete/index.js +1 -0
- package/dist/avatar/Avatar.js +3 -5
- package/dist/avatar/AvatarGroup.js +3 -5
- package/dist/border-beam/BorderBeam.d.ts +8 -1
- package/dist/border-beam/BorderBeam.js +28 -14
- package/dist/border-beam/index.d.ts +2 -2
- package/dist/breadcrumb/BreadcrumbItem.js +1 -1
- package/dist/breadcrumb/index.d.ts +8 -1
- package/dist/calendar/generateCalendar.d.ts +10 -10
- package/dist/calendar/index.d.ts +1 -1
- package/dist/card/index.d.ts +8 -1
- package/dist/card/style/index.js +5 -9
- package/dist/cascader/Panel.js +3 -3
- package/dist/cascader/hooks/useIcons.js +3 -2
- package/dist/cascader/index.d.ts +2 -0
- package/dist/cascader/index.js +12 -5
- package/dist/checkbox/Checkbox.js +6 -4
- package/dist/checkbox/Group.d.ts +19 -1
- package/dist/checkbox/Group.js +38 -9
- package/dist/checkbox/GroupContext.d.ts +3 -0
- package/dist/checkbox/index.d.ts +2 -2
- package/dist/color-picker/ColorPicker.js +1 -1
- package/dist/color-picker/style/input.js +7 -12
- package/dist/components.d.ts +24 -24
- package/dist/components.js +1 -2
- package/dist/config-provider/context.d.ts +3 -2
- package/dist/date-picker/generatePicker/generateRangePicker.js +24 -6
- package/dist/date-picker/generatePicker/generateSinglePicker.js +24 -6
- package/dist/date-picker/generatePicker/interface.d.ts +21 -5
- package/dist/date-picker/generatePicker/useComponents.d.ts +1 -14
- package/dist/date-picker/style/panel.js +1 -1
- package/dist/date-picker/style/util.js +1 -1
- package/dist/date-picker/util.d.ts +8 -2
- package/dist/descriptions/hooks/useItems.d.ts +6 -6
- package/dist/descriptions/style/index.js +11 -13
- package/dist/divider/style/index.js +1 -1
- package/dist/drawer/DrawerPanel.js +1 -1
- package/dist/dropdown/dropdown.d.ts +2 -0
- package/dist/dropdown/dropdown.js +9 -2
- package/dist/dropdown/style/index.js +1 -7
- package/dist/empty/index.js +2 -1
- package/dist/float-button/BackTop.js +2 -1
- package/dist/form/ErrorList.js +1 -1
- package/dist/form/Form.js +9 -8
- package/dist/form/FormItem/ItemHolder.js +1 -1
- package/dist/form/FormItem/index.js +11 -9
- package/dist/form/FormItemInput.js +1 -1
- package/dist/form/FormItemLabel.js +2 -2
- package/dist/form/context.d.ts +2 -2
- package/dist/form/hooks/useVariant.d.ts +1 -1
- package/dist/form/hooks/useVariant.js +1 -1
- package/dist/grid/hooks/useBreakpoint.js +12 -6
- package/dist/image/PreviewGroup.d.ts +9 -2
- package/dist/image/hooks/useMergedPreviewConfig.d.ts +1 -0
- package/dist/image/hooks/useMergedPreviewConfig.js +2 -1
- package/dist/image/hooks/usePreviewConfig.d.ts +7 -7
- package/dist/image/index.d.ts +3 -3
- package/dist/index.d.ts +26 -24
- package/dist/index.js +1 -2
- package/dist/input/Group.js +1 -1
- package/dist/input/Input.d.ts +2 -1
- package/dist/input/Input.js +8 -5
- package/dist/input/OTP/OTPInput.d.ts +2 -1
- package/dist/input/OTP/OTPInput.js +12 -3
- package/dist/input/OTP/index.d.ts +3 -1
- package/dist/input/OTP/index.js +15 -6
- package/dist/input/Password.js +7 -5
- package/dist/input/Search.js +4 -2
- package/dist/input/TextArea.d.ts +3 -1
- package/dist/input/TextArea.js +13 -8
- package/dist/input/style/index.js +3 -16
- package/dist/input-number/index.d.ts +3 -6
- package/dist/input-number/index.js +8 -3
- package/dist/input-number/style/index.js +1 -5
- package/dist/listy/index.d.ts +1 -1
- package/dist/listy/index.js +9 -7
- package/dist/listy/interface.d.ts +29 -5
- package/dist/listy/style/index.js +5 -2
- package/dist/locale/ar_EG.js +9 -0
- package/dist/locale/az_AZ.js +9 -0
- package/dist/locale/bg_BG.js +9 -0
- package/dist/locale/bn_BD.js +9 -0
- package/dist/locale/by_BY.js +9 -0
- package/dist/locale/ca_ES.js +9 -0
- package/dist/locale/cs_CZ.js +9 -0
- package/dist/locale/da_DK.js +9 -0
- package/dist/locale/de_DE.js +9 -0
- package/dist/locale/el_GR.js +9 -0
- package/dist/locale/en_GB.js +11 -1
- package/dist/locale/en_US.js +11 -1
- package/dist/locale/es_ES.js +9 -0
- package/dist/locale/et_EE.js +9 -0
- package/dist/locale/eu_ES.js +9 -0
- package/dist/locale/fa_IR.js +9 -0
- package/dist/locale/fi_FI.js +10 -1
- package/dist/locale/fr_BE.js +9 -0
- package/dist/locale/fr_CA.js +9 -0
- package/dist/locale/fr_FR.js +9 -0
- package/dist/locale/ga_IE.js +9 -0
- package/dist/locale/gl_ES.js +9 -0
- package/dist/locale/he_IL.js +9 -0
- package/dist/locale/hi_IN.js +9 -0
- package/dist/locale/hr_HR.js +9 -0
- package/dist/locale/hu_HU.js +9 -0
- package/dist/locale/hy_AM.js +9 -0
- package/dist/locale/id_ID.js +9 -0
- package/dist/locale/index.d.ts +3 -0
- package/dist/locale/is_IS.js +9 -0
- package/dist/locale/it_IT.js +9 -0
- package/dist/locale/ja_JP.js +9 -0
- package/dist/locale/ka_GE.js +9 -0
- package/dist/locale/kk_KZ.js +9 -0
- package/dist/locale/km_KH.js +9 -0
- package/dist/locale/kmr_IQ.js +9 -0
- package/dist/locale/kn_IN.js +9 -0
- package/dist/locale/ko_KR.js +9 -0
- package/dist/locale/ku_IQ.js +9 -0
- package/dist/locale/lt_LT.js +9 -0
- package/dist/locale/lv_LV.js +9 -0
- package/dist/locale/mk_MK.js +9 -0
- package/dist/locale/ml_IN.js +9 -0
- package/dist/locale/mn_MN.js +9 -0
- package/dist/locale/mr_IN.js +9 -0
- package/dist/locale/ms_MY.js +9 -0
- package/dist/locale/my_MM.js +9 -0
- package/dist/locale/nb_NO.js +9 -0
- package/dist/locale/ne_NP.js +9 -0
- package/dist/locale/nl_BE.js +9 -0
- package/dist/locale/nl_NL.js +9 -0
- package/dist/locale/pl_PL.js +9 -0
- package/dist/locale/pt_BR.js +9 -0
- package/dist/locale/pt_PT.js +9 -0
- package/dist/locale/ro_RO.js +19 -10
- package/dist/locale/ru_RU.js +9 -0
- package/dist/locale/si_LK.js +9 -0
- package/dist/locale/sk_SK.js +9 -0
- package/dist/locale/sl_SI.js +9 -0
- package/dist/locale/sq_AL.js +9 -0
- package/dist/locale/sr_RS.js +9 -0
- package/dist/locale/sv_SE.js +9 -0
- package/dist/locale/ta_IN.js +10 -1
- package/dist/locale/th_TH.js +9 -0
- package/dist/locale/tk_TK.js +9 -0
- package/dist/locale/tr_TR.js +9 -0
- package/dist/locale/uk_UA.js +9 -0
- package/dist/locale/ur_PK.js +9 -0
- package/dist/locale/useLocale.d.ts +6 -1
- package/dist/locale/useLocale.js +12 -1
- package/dist/locale/uz_UZ.js +9 -0
- package/dist/locale/vi_VN.js +9 -0
- package/dist/locale/zh_CN.js +13 -3
- package/dist/locale/zh_HK.js +11 -1
- package/dist/locale/zh_TW.js +11 -1
- package/dist/masonry/Masonry.js +1 -1
- package/dist/mentions/index.d.ts +2 -3
- package/dist/mentions/index.js +9 -4
- package/dist/mentions/style/index.js +1 -1
- package/dist/menu/MenuContext.d.ts +2 -0
- package/dist/menu/MenuItem.js +23 -6
- package/dist/menu/index.js +5 -0
- package/dist/menu/menu.d.ts +3 -0
- package/dist/menu/menu.js +7 -0
- package/dist/message/style/index.js +2 -1
- package/dist/modal/ConfirmDialog.js +14 -7
- package/dist/modal/PurePanel.js +2 -2
- package/dist/modal/style/confirm.js +1 -1
- package/dist/notification/PurePanel.js +7 -12
- package/dist/notification/interface.d.ts +8 -0
- package/dist/notification/style/index.d.ts +3 -0
- package/dist/notification/style/index.js +4 -5
- package/dist/notification/style/placement.js +10 -7
- package/dist/notification/useNotification.js +5 -15
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.js +2 -2
- package/dist/pagination/style/index.js +12 -4
- package/dist/pagination/useShowSizeChanger.d.ts +3 -0
- package/dist/pagination/useShowSizeChanger.js +1 -1
- package/dist/popconfirm/index.js +6 -5
- package/dist/popconfirm/style/index.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/popover/style/index.js +2 -2
- package/dist/progress/Circle.js +0 -8
- package/dist/progress/Line.js +3 -10
- package/dist/progress/Steps.js +0 -8
- package/dist/progress/progress.js +3 -15
- package/dist/qrcode/QrcodeStatus.js +2 -1
- package/dist/qrcode/index.js +4 -4
- package/dist/radio/group.js +40 -7
- package/dist/radio/index.d.ts +2 -2
- package/dist/radio/interface.d.ts +19 -1
- package/dist/radio/radio.js +5 -3
- package/dist/result/index.js +3 -3
- package/dist/result/noFound.js +120 -140
- package/dist/result/serverError.js +132 -147
- package/dist/result/unauthorized.js +115 -129
- package/dist/segmented/index.js +1 -1
- package/dist/select/index.js +10 -3
- package/dist/select/style/dropdown.js +1 -1
- package/dist/select/style/index.js +2 -2
- package/dist/select/style/select-input-multiple.js +1 -1
- package/dist/select/useIcons.d.ts +6 -2
- package/dist/select/usePopupRender.js +4 -1
- package/dist/slider/index.d.ts +6 -4
- package/dist/slider/index.js +7 -5
- package/dist/space/Compact.d.ts +1 -1
- package/dist/space/Item.d.ts +1 -0
- package/dist/space/Item.js +6 -2
- package/dist/space/index.js +1 -0
- package/dist/spin/Indicator/index.js +5 -1
- package/dist/splitter/SplitBar.js +9 -3
- package/dist/splitter/Splitter.js +8 -2
- package/dist/splitter/interface.d.ts +6 -1
- package/dist/statistic/Statistic.d.ts +3 -0
- package/dist/statistic/Statistic.js +2 -1
- package/dist/steps/index.js +9 -7
- package/dist/steps/style/index.js +1 -1
- package/dist/steps/style/inline.js +1 -1
- package/dist/style/motion/collapse.js +4 -10
- package/dist/switch/index.js +8 -2
- package/dist/table/ExpandIcon.d.ts +9 -4
- package/dist/table/ExpandIcon.js +42 -20
- package/dist/table/InternalTable.js +41 -20
- package/dist/table/hooks/useLazyKVMap.js +1 -1
- package/dist/table/hooks/useSelection.js +54 -9
- package/dist/table/index.d.ts +2 -2
- package/dist/table/interface.d.ts +8 -0
- package/dist/table/style/index.js +1 -1
- package/dist/table/style/sorter.js +2 -2
- package/dist/table/util.d.ts +1 -1
- package/dist/tabs/index.js +9 -2
- package/dist/tabs/style/index.js +3 -7
- package/dist/tag/hooks/useColor.d.ts +1 -1
- package/dist/time-picker/index.d.ts +10 -9
- package/dist/time-picker/index.js +54 -83
- package/dist/timeline/Timeline.js +1 -1
- package/dist/tooltip/style/index.js +1 -2
- package/dist/tour/panelRender.js +3 -2
- package/dist/transfer/Section.js +2 -1
- package/dist/transfer/Transfer.js +1 -1
- package/dist/tree/DirectoryTree.d.ts +19 -7
- package/dist/tree/Tree.d.ts +73 -58
- package/dist/tree/index.d.ts +8 -5
- package/dist/tree/index.js +4 -3
- package/dist/tree/style/index.js +1 -1
- package/dist/tree-select/index.js +14 -8
- package/dist/typography/Base/index.js +23 -2
- package/dist/typography/Link.js +5 -0
- package/dist/typography/Paragraph.js +5 -0
- package/dist/typography/Text.js +5 -0
- package/dist/typography/Title.js +5 -0
- package/dist/typography/hooks/useMergedConfig.js +1 -1
- package/dist/typography/interface.d.ts +8 -1
- package/dist/typography/style/index.js +2 -1
- package/dist/typography/style/mixins.d.ts +2 -1
- package/dist/typography/style/mixins.js +26 -3
- package/dist/upload/Upload.d.ts +1 -0
- package/dist/upload/Upload.js +10 -3
- package/dist/upload/UploadList/ListItem.js +8 -3
- package/dist/upload/interface.d.ts +1 -0
- package/dist/upload/utils.js +8 -3
- package/dist/version/token-meta.json +1 -1
- package/dist/version/token.json +1 -1
- package/dist/watermark/index.js +1 -1
- package/package.json +24 -24
- package/web-tags.json +79 -15
- package/web-types.json +196 -24
- package/dist/_util/getAllowClear.d.ts +0 -6
- package/dist/_util/getAllowClear.js +0 -11
|
@@ -3,7 +3,7 @@ import { useMultipleSelect } from "../../_util/hooks/useMultipleSelect.js";
|
|
|
3
3
|
import Dropdown from "../../dropdown/index.js";
|
|
4
4
|
import radio_default from "../../radio/index.js";
|
|
5
5
|
import checkbox_default from "../../checkbox/index.js";
|
|
6
|
-
import { computed, createVNode, mergeProps, shallowRef, unref, watch } from "vue";
|
|
6
|
+
import { computed, createVNode, defineComponent, mergeProps, shallowRef, unref, watch } from "vue";
|
|
7
7
|
import { clsx } from "@v-c/util";
|
|
8
8
|
import { DownOutlined } from "@antdv-next/icons";
|
|
9
9
|
import { INTERNAL_COL_DEFINE } from "@v-c/table";
|
|
@@ -14,6 +14,48 @@ const SELECTION_ALL = "SELECT_ALL";
|
|
|
14
14
|
const SELECTION_INVERT = "SELECT_INVERT";
|
|
15
15
|
const SELECTION_NONE = "SELECT_NONE";
|
|
16
16
|
const EMPTY_LIST = [];
|
|
17
|
+
const SelectionMenu = /* @__PURE__ */ defineComponent((props, { emit }) => {
|
|
18
|
+
const open = shallowRef(false);
|
|
19
|
+
const onKeydown = (event) => {
|
|
20
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
21
|
+
event.preventDefault();
|
|
22
|
+
event.currentTarget?.click();
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return () => createVNode(Dropdown, {
|
|
26
|
+
"menu": props.menu,
|
|
27
|
+
"getPopupContainer": props.getPopupContainer,
|
|
28
|
+
"trigger": ["click", "hover"],
|
|
29
|
+
"onOpenChange": (nextOpen) => {
|
|
30
|
+
open.value = nextOpen;
|
|
31
|
+
},
|
|
32
|
+
"onMenuClick": (info) => emit("menuClick", info)
|
|
33
|
+
}, { default: () => [createVNode(DownOutlined, mergeProps({
|
|
34
|
+
"role": "button",
|
|
35
|
+
"aria-label": props.label,
|
|
36
|
+
"aria-haspopup": "menu",
|
|
37
|
+
"aria-expanded": open.value,
|
|
38
|
+
"onKeydown": onKeydown
|
|
39
|
+
}, { "tabIndex": 0 }), null)] });
|
|
40
|
+
}, {
|
|
41
|
+
props: {
|
|
42
|
+
menu: {
|
|
43
|
+
type: Object,
|
|
44
|
+
required: true
|
|
45
|
+
},
|
|
46
|
+
getPopupContainer: {
|
|
47
|
+
type: Function,
|
|
48
|
+
required: false
|
|
49
|
+
},
|
|
50
|
+
label: {
|
|
51
|
+
type: String,
|
|
52
|
+
required: true
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
emits: ["menuClick"],
|
|
56
|
+
name: "TableSelectionMenu",
|
|
57
|
+
inheritAttrs: false
|
|
58
|
+
});
|
|
17
59
|
function flattenData(childrenColumnName, data, list = []) {
|
|
18
60
|
(data || []).forEach((record) => {
|
|
19
61
|
list.push(record);
|
|
@@ -160,7 +202,7 @@ function useSelection(config, rowSelection) {
|
|
|
160
202
|
key: "all",
|
|
161
203
|
text: tableLocale.value.selectionAll,
|
|
162
204
|
onSelect() {
|
|
163
|
-
setSelectedKeys(data.value.reduce((keys, record, index) => {
|
|
205
|
+
setSelectedKeys(flattenData(childrenColumnName.value, data.value).reduce((keys, record, index) => {
|
|
164
206
|
const key = getRowKey.value(record, index);
|
|
165
207
|
if (!isCheckboxDisabled(record) || derivedSelectedKeySet.value.has(key)) keys.push(key);
|
|
166
208
|
return keys;
|
|
@@ -172,7 +214,7 @@ function useSelection(config, rowSelection) {
|
|
|
172
214
|
text: tableLocale.value.selectInvert,
|
|
173
215
|
onSelect() {
|
|
174
216
|
const keySet = new Set(derivedSelectedKeySet.value);
|
|
175
|
-
|
|
217
|
+
flattedData.value.forEach((record, index) => {
|
|
176
218
|
const key = getRowKey.value(record, index);
|
|
177
219
|
if (!checkboxPropsMap.value.get(key)?.disabled) if (keySet.has(key)) keySet.delete(key);
|
|
178
220
|
else keySet.add(key);
|
|
@@ -191,7 +233,8 @@ function useSelection(config, rowSelection) {
|
|
|
191
233
|
onSelect() {
|
|
192
234
|
selectionConfig.value.onSelectNone?.();
|
|
193
235
|
setSelectedKeys(Array.from(derivedSelectedKeySet.value).filter((key) => {
|
|
194
|
-
|
|
236
|
+
const record = getSelectedRecord(key);
|
|
237
|
+
return record !== void 0 && isCheckboxDisabled(record);
|
|
195
238
|
}), "none");
|
|
196
239
|
}
|
|
197
240
|
};
|
|
@@ -231,6 +274,7 @@ function useSelection(config, rowSelection) {
|
|
|
231
274
|
setSelectedKeys(keys, "all");
|
|
232
275
|
updatePrevSelectedIndex(null);
|
|
233
276
|
};
|
|
277
|
+
const { selectAll, selectRow = "Select row", selectedRow = "Row selected", selectionMenu: selectionMenuLabel = "Selection menu" } = tableLocale.value;
|
|
234
278
|
let title;
|
|
235
279
|
let columnTitleCheckbox;
|
|
236
280
|
if (selectionType.value !== "radio") {
|
|
@@ -244,16 +288,17 @@ function useSelection(config, rowSelection) {
|
|
|
244
288
|
mergedSelections.value.forEach((selection, index) => {
|
|
245
289
|
selectionMap.set(selection.key ?? index, selection);
|
|
246
290
|
});
|
|
247
|
-
customizeSelections = createVNode("div", { "class": `${prefixCls.value}-selection-extra` }, [createVNode(
|
|
291
|
+
customizeSelections = createVNode("div", { "class": `${prefixCls.value}-selection-extra` }, [createVNode(SelectionMenu, {
|
|
248
292
|
"menu": {
|
|
249
293
|
getPopupContainer: getPopupContainer.value,
|
|
250
294
|
items: menuItems
|
|
251
295
|
},
|
|
252
296
|
"getPopupContainer": getPopupContainer.value,
|
|
297
|
+
"label": selectionMenuLabel,
|
|
253
298
|
"onMenuClick": (info) => {
|
|
254
299
|
selectionMap.get(info?.key)?.onSelect?.(recordKeys);
|
|
255
300
|
}
|
|
256
|
-
},
|
|
301
|
+
}, null)]);
|
|
257
302
|
}
|
|
258
303
|
const allDisabledData = flattedData.value.map((record, index) => {
|
|
259
304
|
const key = getRowKey.value(record, index);
|
|
@@ -268,7 +313,7 @@ function useSelection(config, rowSelection) {
|
|
|
268
313
|
const allDisabledSomeChecked = allDisabled && allDisabledData.some(({ checked }) => checked);
|
|
269
314
|
const customCheckboxProps = selectionConfig.value.getTitleCheckboxProps?.() || {};
|
|
270
315
|
const { onChange, disabled } = customCheckboxProps;
|
|
271
|
-
columnTitleCheckbox = createVNode(checkbox_default, mergeProps({ "aria-label":
|
|
316
|
+
columnTitleCheckbox = createVNode(checkbox_default, mergeProps({ "aria-label": typeof selectAll === "string" && selectAll ? selectAll : "Select all" }, customCheckboxProps, {
|
|
272
317
|
"checked": !allDisabled ? !!flattedData.value.length && checkedCurrentAll : allDisabledAndChecked,
|
|
273
318
|
"indeterminate": !allDisabled ? !checkedCurrentAll && checkedCurrentSome : !allDisabledAndChecked && allDisabledSomeChecked,
|
|
274
319
|
"onChange": (e) => {
|
|
@@ -286,7 +331,7 @@ function useSelection(config, rowSelection) {
|
|
|
286
331
|
const checked = keySet.has(key);
|
|
287
332
|
const checkboxProps = checkboxPropsMap.value.get(key);
|
|
288
333
|
return {
|
|
289
|
-
node: createVNode(radio_default, mergeProps({ "aria-label":
|
|
334
|
+
node: createVNode(radio_default, mergeProps({ "aria-label": selectRow }, checkboxProps, {
|
|
290
335
|
"checked": checked,
|
|
291
336
|
"onClick": (e) => {
|
|
292
337
|
lastClickEvent = e;
|
|
@@ -313,7 +358,7 @@ function useSelection(config, rowSelection) {
|
|
|
313
358
|
warning(typeof checkboxProps?.indeterminate !== "boolean", "usage", "set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.");
|
|
314
359
|
} else mergedIndeterminate = checkboxProps?.indeterminate ?? indeterminate;
|
|
315
360
|
return {
|
|
316
|
-
node: createVNode(checkbox_default, mergeProps({ "aria-label": checked ?
|
|
361
|
+
node: createVNode(checkbox_default, mergeProps({ "aria-label": checked ? selectedRow : selectRow }, checkboxProps, {
|
|
317
362
|
"indeterminate": mergedIndeterminate,
|
|
318
363
|
"checked": checked,
|
|
319
364
|
"skipGroup": true,
|
package/dist/table/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SELECTION_ALL, SELECTION_COLUMN, SELECTION_INVERT, SELECTION_NONE } from "./hooks/useSelection.js";
|
|
2
|
-
import { ColumnType, ColumnsType, ExpandType, FilterValue, SortOrder, SorterResult, TableLocale, TablePaginationConfig, TableRowSelection } from "./interface.js";
|
|
2
|
+
import { ColumnType, ColumnsType, ExpandType, FilterDropdownProps, FilterValue, SortOrder, SorterResult, TableLocale, TablePaginationConfig, TableRowSelection } from "./interface.js";
|
|
3
3
|
import { TableClassNamesType, TableEmits, TableExpose, TableProps, TableSlots, TableStylesType } from "./InternalTable.js";
|
|
4
4
|
import Column from "./Column.js";
|
|
5
5
|
import ColumnGroup from "./ColumnGroup.js";
|
|
@@ -8,4 +8,4 @@ import { DataIndex, EXPAND_COLUMN, Reference, Summary, SummaryCell, SummaryRow }
|
|
|
8
8
|
//#region src/table/index.d.ts
|
|
9
9
|
declare const _default: ForwardTableType;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { Column, ColumnGroup, type ColumnType, type ColumnsType, type DataIndex, EXPAND_COLUMN, type ExpandType, type FilterValue, type Reference, SELECTION_ALL, SELECTION_COLUMN, SELECTION_INVERT, SELECTION_NONE, type SortOrder, type SorterResult, Summary, SummaryCell, SummaryRow, type TableClassNamesType, type ForwardTableType as TableConstructor, type TableEmits, type TableExpose, type TableLocale, type TablePaginationConfig, type TableProps, type TableRowSelection, type TableSlots, type TableStylesType, _default as default };
|
|
11
|
+
export { Column, ColumnGroup, type ColumnType, type ColumnsType, type DataIndex, EXPAND_COLUMN, type ExpandType, type FilterDropdownProps, type FilterValue, type Reference, SELECTION_ALL, SELECTION_COLUMN, SELECTION_INVERT, SELECTION_NONE, type SortOrder, type SorterResult, Summary, SummaryCell, SummaryRow, type TableClassNamesType, type ForwardTableType as TableConstructor, type TableEmits, type TableExpose, type TableLocale, type TablePaginationConfig, type TableProps, type TableRowSelection, type TableSlots, type TableStylesType, _default as default };
|
|
@@ -31,9 +31,17 @@ interface TableLocale {
|
|
|
31
31
|
selectNone?: VueNode;
|
|
32
32
|
selectInvert?: VueNode;
|
|
33
33
|
selectionAll?: VueNode;
|
|
34
|
+
/** Accessible label for a selectable row. */
|
|
35
|
+
selectRow?: string;
|
|
36
|
+
/** Accessible label for a selected row. */
|
|
37
|
+
selectedRow?: string;
|
|
38
|
+
/** Accessible label for the custom selection menu trigger. */
|
|
39
|
+
selectionMenu?: string;
|
|
34
40
|
sortTitle?: string;
|
|
35
41
|
expand?: string;
|
|
36
42
|
collapse?: string;
|
|
43
|
+
expandAll?: string;
|
|
44
|
+
collapseAll?: string;
|
|
37
45
|
triggerDesc?: string;
|
|
38
46
|
triggerAsc?: string;
|
|
39
47
|
cancelSort?: string;
|
|
@@ -25,7 +25,7 @@ const genTableStyle = (token) => {
|
|
|
25
25
|
return { [`${componentCls}-wrapper`]: {
|
|
26
26
|
clear: "both",
|
|
27
27
|
maxWidth: "100%",
|
|
28
|
-
["--
|
|
28
|
+
["--vc-virtual-list-scrollbar-bg"]: token.tableScrollBg,
|
|
29
29
|
...clearFix(),
|
|
30
30
|
[componentCls]: {
|
|
31
31
|
...resetComponent(token),
|
|
@@ -12,8 +12,8 @@ const genSorterStyle = (token) => {
|
|
|
12
12
|
},
|
|
13
13
|
"&:focus-visible": { color: token.colorPrimary },
|
|
14
14
|
[`
|
|
15
|
-
&${componentCls}-cell-fix-
|
|
16
|
-
&${componentCls}-cell-fix-
|
|
15
|
+
&${componentCls}-cell-fix-start:hover,
|
|
16
|
+
&${componentCls}-cell-fix-end:hover
|
|
17
17
|
`]: { background: token.tableFixedHeaderSortActiveBg }
|
|
18
18
|
},
|
|
19
19
|
[`${componentCls}-thead th${componentCls}-column-sort`]: {
|
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): "center" | "
|
|
14
|
+
declare function normalizePlacement(pos: TablePaginationPlacement | TablePaginationPosition): "center" | "start" | "end";
|
|
15
15
|
declare function getPaginationSize(paginationSize: SizeType, mergedSize: SizeType): SizeType;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { getColumnKey, getColumnPos, getPaginationSize, normalizePlacement, renderColumnTitle, safeColumnTitle };
|
package/dist/tabs/index.js
CHANGED
|
@@ -56,6 +56,9 @@ const InternalTabs = /* @__PURE__ */ defineComponent((props, { attrs, slots, emi
|
|
|
56
56
|
warning(!(attrs.onPrevClick || attrs.onNextClick), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead.");
|
|
57
57
|
warning.deprecated(!indicatorSize.value, "indicatorSize", "indicator");
|
|
58
58
|
warning.deprecated(!(props.destroyInactiveTabPane || props.items?.some((item) => "destroyInactiveTabPane" in item)), "destroyInactiveTabPane", "destroyOnHidden");
|
|
59
|
+
if (more.value) [["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach(([deprecatedName, newName]) => {
|
|
60
|
+
warning.deprecated(!(deprecatedName in more.value), `more.${deprecatedName}`, `more.${newName}`);
|
|
61
|
+
});
|
|
59
62
|
}
|
|
60
63
|
const rootCls = useCSSVarCls(prefixCls);
|
|
61
64
|
const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
|
|
@@ -87,14 +90,18 @@ const InternalTabs = /* @__PURE__ */ defineComponent((props, { attrs, slots, emi
|
|
|
87
90
|
};
|
|
88
91
|
const mergedMoreFn = () => {
|
|
89
92
|
const rootPrefixCls = getPrefixCls();
|
|
93
|
+
const { visible: moreVisible, ...restMoreProps } = more.value ?? {};
|
|
94
|
+
const legacyMoreProps = more.value && !("open" in more.value) && "visible" in more.value ? { open: moreVisible } : {};
|
|
90
95
|
if (!rootPrefixCls) return {
|
|
91
96
|
icon: moreIcon,
|
|
92
|
-
...
|
|
97
|
+
...restMoreProps,
|
|
98
|
+
...legacyMoreProps
|
|
93
99
|
};
|
|
94
100
|
return {
|
|
95
101
|
icon: moreIcon,
|
|
96
102
|
transitionName: `${rootPrefixCls}-slide-up`,
|
|
97
|
-
...
|
|
103
|
+
...restMoreProps,
|
|
104
|
+
...legacyMoreProps
|
|
98
105
|
};
|
|
99
106
|
};
|
|
100
107
|
const mergedMore = mergedMoreFn();
|
package/dist/tabs/style/index.js
CHANGED
|
@@ -114,7 +114,7 @@ const genDropdownStyle = (token) => {
|
|
|
114
114
|
margin: 0,
|
|
115
115
|
padding: `${unit(token.paddingXXS)} ${unit(token.paddingSM)}`,
|
|
116
116
|
color: token.colorText,
|
|
117
|
-
fontWeight:
|
|
117
|
+
fontWeight: 400,
|
|
118
118
|
fontSize: token.fontSize,
|
|
119
119
|
lineHeight: token.lineHeight,
|
|
120
120
|
cursor: "pointer",
|
|
@@ -401,7 +401,7 @@ const genTabStyle = (token) => {
|
|
|
401
401
|
color: token.colorTextDisabled,
|
|
402
402
|
cursor: "not-allowed"
|
|
403
403
|
},
|
|
404
|
-
[`&${tabCls}-disabled ${tabCls}-btn
|
|
404
|
+
[`&${tabCls}-disabled ${tabCls}-btn`]: { "&:focus, &:active": { color: token.colorTextDisabled } },
|
|
405
405
|
[`& ${tabCls}-remove ${iconCls}`]: {
|
|
406
406
|
margin: 0,
|
|
407
407
|
verticalAlign: "middle"
|
|
@@ -472,11 +472,7 @@ const genRtlStyle = (token) => {
|
|
|
472
472
|
}
|
|
473
473
|
} } }
|
|
474
474
|
},
|
|
475
|
-
[`${componentCls}-dropdown-rtl`]: { direction: "rtl" }
|
|
476
|
-
[`${componentCls}-menu-item`]: { [`${componentCls}-dropdown-rtl`]: { textAlign: {
|
|
477
|
-
_skip_check_: true,
|
|
478
|
-
value: "right"
|
|
479
|
-
} } }
|
|
475
|
+
[`${componentCls}-dropdown-rtl`]: { direction: "rtl" }
|
|
480
476
|
};
|
|
481
477
|
};
|
|
482
478
|
const genTabsStyle = (token) => {
|
|
@@ -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<"
|
|
12
|
+
}, contextVariant?: Ref<TagProps['variant']>): readonly [import("vue").ComputedRef<"solid" | "filled" | "outlined">, 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 };
|
|
@@ -7,6 +7,7 @@ import { PickerProps as PickerProps$1, RangePickerProps as RangePickerProps$1 }
|
|
|
7
7
|
import { RangePickerSlots } from "../date-picker/generatePicker/generateRangePicker.js";
|
|
8
8
|
import { CSSProperties, SlotsType } from "vue";
|
|
9
9
|
import { PickerMode } from "@v-c/picker";
|
|
10
|
+
import { Dayjs } from "dayjs";
|
|
10
11
|
//#region src/time-picker/index.d.ts
|
|
11
12
|
type TimePickerSemanticName = keyof TimePickerSemanticClassNames & keyof TimePickerSemanticStyles;
|
|
12
13
|
interface TimePickerSemanticClassNames {
|
|
@@ -53,14 +54,14 @@ interface TimePickerLocale {
|
|
|
53
54
|
placeholder?: string;
|
|
54
55
|
rangePlaceholder?: [string, string];
|
|
55
56
|
}
|
|
56
|
-
type BaseTimeRangePickerProps = Omit<RangePickerTimeProps<
|
|
57
|
+
type BaseTimeRangePickerProps = Omit<RangePickerTimeProps<Dayjs>, 'picker' | 'onKeydown'>;
|
|
57
58
|
interface TimeRangePickerProps extends BaseTimeRangePickerProps, Omit<TimeRangePickerEmitsProps, keyof BaseTimeRangePickerProps> {
|
|
58
59
|
/** @deprecated Please use `classes.popup` instead */
|
|
59
60
|
popupClassName?: string;
|
|
60
61
|
/** @deprecated Please use `styles.popup` instead */
|
|
61
62
|
popupStyle?: CSSProperties;
|
|
62
63
|
}
|
|
63
|
-
interface TimeRangePickerEmits<DateType =
|
|
64
|
+
interface TimeRangePickerEmits<DateType = Dayjs> {
|
|
64
65
|
'change': (dates: DateType[] | null, dateStrings: [string, string]) => void;
|
|
65
66
|
'update:value': (dates: DateType[] | null) => void;
|
|
66
67
|
'calendarChange': (dates: DateType[], dateStrings: [string, string], info: any) => void;
|
|
@@ -72,8 +73,8 @@ interface TimeRangePickerEmits<DateType = AnyObject> {
|
|
|
72
73
|
'keydown': (e: KeyboardEvent, preventDefault: VoidFunction) => void;
|
|
73
74
|
}
|
|
74
75
|
interface TimeRangePickerSlots extends RangePickerSlots<number> {}
|
|
75
|
-
declare const RangePicker$1: import("vue").DefineSetupFnComponent<TimeRangePickerProps, TimeRangePickerEmits<
|
|
76
|
-
type BaseTimePickerProps = Omit<PickerTimeProps<
|
|
76
|
+
declare const RangePicker$1: import("vue").DefineSetupFnComponent<TimeRangePickerProps, TimeRangePickerEmits<Dayjs>, SlotsType<TimeRangePickerSlots>, TimeRangePickerProps, import("vue").PublicProps>;
|
|
77
|
+
type BaseTimePickerProps = Omit<PickerTimeProps<Dayjs>, 'picker' | 'classes' | 'styles' | 'onKeydown'>;
|
|
77
78
|
interface TimePickerProps extends BaseTimePickerProps, Omit<TimePickerEmitsProps, keyof BaseTimePickerProps> {
|
|
78
79
|
/** @deprecated Please use `renderExtraFooter` instead */
|
|
79
80
|
addon?: () => VueNode;
|
|
@@ -94,7 +95,7 @@ interface TimePickerSlots {
|
|
|
94
95
|
prefix?: () => any;
|
|
95
96
|
[key: string]: any;
|
|
96
97
|
}
|
|
97
|
-
interface TimePickerEmits<DateType =
|
|
98
|
+
interface TimePickerEmits<DateType = Dayjs> {
|
|
98
99
|
'change': (date: DateType | DateType[] | null, dateString: string | string[]) => void;
|
|
99
100
|
'update:value': (date: DateType | DateType[] | null) => void;
|
|
100
101
|
'calendarChange': (date: DateType | DateType[], dateString: string | string[], info: any) => void;
|
|
@@ -106,7 +107,7 @@ interface TimePickerEmits<DateType = AnyObject> {
|
|
|
106
107
|
'blur': (e: FocusEvent, info: any) => void;
|
|
107
108
|
'keydown': (e: KeyboardEvent, preventDefault: VoidFunction) => void;
|
|
108
109
|
}
|
|
109
|
-
interface TimeRangePickerEmitsProps<DateType =
|
|
110
|
+
interface TimeRangePickerEmitsProps<DateType = Dayjs> {
|
|
110
111
|
onChange?: TimeRangePickerEmits<DateType>['change'];
|
|
111
112
|
'onUpdate:value'?: TimeRangePickerEmits<DateType>['update:value'];
|
|
112
113
|
onCalendarChange?: TimeRangePickerEmits<DateType>['calendarChange'];
|
|
@@ -117,7 +118,7 @@ interface TimeRangePickerEmitsProps<DateType = AnyObject> {
|
|
|
117
118
|
onBlur?: TimeRangePickerEmits<DateType>['blur'];
|
|
118
119
|
onKeydown?: TimeRangePickerEmits<DateType>['keydown'];
|
|
119
120
|
}
|
|
120
|
-
interface TimePickerEmitsProps<DateType =
|
|
121
|
+
interface TimePickerEmitsProps<DateType = Dayjs> {
|
|
121
122
|
onChange?: TimePickerEmits<DateType>['change'];
|
|
122
123
|
'onUpdate:value'?: TimePickerEmits<DateType>['update:value'];
|
|
123
124
|
onCalendarChange?: TimePickerEmits<DateType>['calendarChange'];
|
|
@@ -129,12 +130,12 @@ interface TimePickerEmitsProps<DateType = AnyObject> {
|
|
|
129
130
|
onBlur?: TimePickerEmits<DateType>['blur'];
|
|
130
131
|
onKeydown?: TimePickerEmits<DateType>['keydown'];
|
|
131
132
|
}
|
|
132
|
-
declare const TimePicker: import("vue").DefineSetupFnComponent<TimePickerProps, TimePickerEmits<
|
|
133
|
+
declare const TimePicker: import("vue").DefineSetupFnComponent<TimePickerProps, TimePickerEmits<Dayjs>, SlotsType<TimePickerSlots>, TimePickerProps, import("vue").PublicProps>;
|
|
133
134
|
type MergedTimePicker = typeof TimePicker & {
|
|
134
135
|
RangePicker: typeof RangePicker$1;
|
|
135
136
|
_InternalPanelDoNotUseOrYouWillBeFired: any;
|
|
136
137
|
};
|
|
137
138
|
declare const _default: MergedTimePicker;
|
|
138
|
-
declare const TimeRangePicker: import("vue").DefineSetupFnComponent<TimeRangePickerProps, TimeRangePickerEmits<
|
|
139
|
+
declare const TimeRangePicker: import("vue").DefineSetupFnComponent<TimeRangePickerProps, TimeRangePickerEmits<Dayjs>, SlotsType<TimeRangePickerSlots>, TimeRangePickerProps, import("vue").PublicProps>;
|
|
139
140
|
//#endregion
|
|
140
141
|
export { MergedTimePicker, PickerTimeProps, RangePickerTimeProps, TimePickerClassNames, TimePickerEmits, TimePickerEmitsProps, TimePickerLocale, TimePickerPanelSemanticClassNames, TimePickerPanelSemanticName, TimePickerPanelSemanticStyles, TimePickerProps, TimePickerSemanticClassNames, TimePickerSemanticName, TimePickerSemanticStyles, TimePickerSlots, TimePickerStyles, TimeRangePicker, TimeRangePickerEmits, TimeRangePickerEmitsProps, TimeRangePickerProps, TimeRangePickerSlots, _default as default };
|
|
@@ -64,6 +64,10 @@ const RangePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expos
|
|
|
64
64
|
type: Object,
|
|
65
65
|
required: false
|
|
66
66
|
},
|
|
67
|
+
components: {
|
|
68
|
+
type: Object,
|
|
69
|
+
required: false
|
|
70
|
+
},
|
|
67
71
|
locale: {
|
|
68
72
|
type: Object,
|
|
69
73
|
required: false
|
|
@@ -105,6 +109,10 @@ const RangePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expos
|
|
|
105
109
|
type: [Object, Function],
|
|
106
110
|
required: false
|
|
107
111
|
},
|
|
112
|
+
autocomplete: {
|
|
113
|
+
type: String,
|
|
114
|
+
required: false
|
|
115
|
+
},
|
|
108
116
|
id: {
|
|
109
117
|
type: [String, Object],
|
|
110
118
|
required: false
|
|
@@ -134,24 +142,8 @@ const RangePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expos
|
|
|
134
142
|
type: Array,
|
|
135
143
|
required: false
|
|
136
144
|
},
|
|
137
|
-
defaultPickerValue: {
|
|
138
|
-
|
|
139
|
-
Array,
|
|
140
|
-
Object,
|
|
141
|
-
String,
|
|
142
|
-
null
|
|
143
|
-
],
|
|
144
|
-
required: false
|
|
145
|
-
},
|
|
146
|
-
pickerValue: {
|
|
147
|
-
type: [
|
|
148
|
-
Array,
|
|
149
|
-
Object,
|
|
150
|
-
String,
|
|
151
|
-
null
|
|
152
|
-
],
|
|
153
|
-
required: false
|
|
154
|
-
},
|
|
145
|
+
defaultPickerValue: { required: false },
|
|
146
|
+
pickerValue: { required: false },
|
|
155
147
|
onPickerValueChange: {
|
|
156
148
|
type: Function,
|
|
157
149
|
required: false
|
|
@@ -266,27 +258,31 @@ const RangePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expos
|
|
|
266
258
|
required: false,
|
|
267
259
|
default: void 0
|
|
268
260
|
},
|
|
269
|
-
|
|
261
|
+
name: {
|
|
262
|
+
type: String,
|
|
263
|
+
required: false
|
|
264
|
+
},
|
|
265
|
+
required: {
|
|
270
266
|
type: Boolean,
|
|
271
267
|
required: false,
|
|
272
268
|
default: void 0
|
|
273
269
|
},
|
|
274
|
-
|
|
275
|
-
type:
|
|
276
|
-
required: false
|
|
277
|
-
},
|
|
278
|
-
minDate: {
|
|
279
|
-
type: Object,
|
|
270
|
+
autoComplete: {
|
|
271
|
+
type: String,
|
|
280
272
|
required: false
|
|
281
273
|
},
|
|
282
|
-
|
|
283
|
-
type:
|
|
284
|
-
required: false
|
|
274
|
+
order: {
|
|
275
|
+
type: Boolean,
|
|
276
|
+
required: false,
|
|
277
|
+
default: void 0
|
|
285
278
|
},
|
|
286
|
-
|
|
287
|
-
type:
|
|
279
|
+
disabledDate: {
|
|
280
|
+
type: Function,
|
|
288
281
|
required: false
|
|
289
282
|
},
|
|
283
|
+
minDate: { required: false },
|
|
284
|
+
maxDate: { required: false },
|
|
285
|
+
defaultOpenValue: { required: false },
|
|
290
286
|
defaultOpen: {
|
|
291
287
|
type: Boolean,
|
|
292
288
|
required: false,
|
|
@@ -333,10 +329,6 @@ const RangePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expos
|
|
|
333
329
|
type: String,
|
|
334
330
|
required: false
|
|
335
331
|
},
|
|
336
|
-
components: {
|
|
337
|
-
type: Object,
|
|
338
|
-
required: false
|
|
339
|
-
},
|
|
340
332
|
inputRender: {
|
|
341
333
|
type: Function,
|
|
342
334
|
required: false
|
|
@@ -1475,6 +1467,10 @@ const TimePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expose
|
|
|
1475
1467
|
type: [Object, Function],
|
|
1476
1468
|
required: false
|
|
1477
1469
|
},
|
|
1470
|
+
components: {
|
|
1471
|
+
type: Object,
|
|
1472
|
+
required: false
|
|
1473
|
+
},
|
|
1478
1474
|
locale: {
|
|
1479
1475
|
type: Object,
|
|
1480
1476
|
required: false
|
|
@@ -1500,6 +1496,10 @@ const TimePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expose
|
|
|
1500
1496
|
type: String,
|
|
1501
1497
|
required: false
|
|
1502
1498
|
},
|
|
1499
|
+
autocomplete: {
|
|
1500
|
+
type: String,
|
|
1501
|
+
required: false
|
|
1502
|
+
},
|
|
1503
1503
|
use12Hours: {
|
|
1504
1504
|
type: Boolean,
|
|
1505
1505
|
required: false,
|
|
@@ -1523,43 +1523,14 @@ const TimePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expose
|
|
|
1523
1523
|
type: Function,
|
|
1524
1524
|
required: false
|
|
1525
1525
|
},
|
|
1526
|
-
value: {
|
|
1527
|
-
|
|
1528
|
-
Object,
|
|
1529
|
-
Array,
|
|
1530
|
-
String,
|
|
1531
|
-
null
|
|
1532
|
-
],
|
|
1533
|
-
required: false
|
|
1534
|
-
},
|
|
1535
|
-
defaultValue: {
|
|
1536
|
-
type: [
|
|
1537
|
-
Object,
|
|
1538
|
-
Array,
|
|
1539
|
-
String
|
|
1540
|
-
],
|
|
1541
|
-
required: false
|
|
1542
|
-
},
|
|
1526
|
+
value: { required: false },
|
|
1527
|
+
defaultValue: { required: false },
|
|
1543
1528
|
placeholder: {
|
|
1544
1529
|
type: String,
|
|
1545
1530
|
required: false
|
|
1546
1531
|
},
|
|
1547
|
-
defaultPickerValue: {
|
|
1548
|
-
|
|
1549
|
-
Object,
|
|
1550
|
-
String,
|
|
1551
|
-
null
|
|
1552
|
-
],
|
|
1553
|
-
required: false
|
|
1554
|
-
},
|
|
1555
|
-
pickerValue: {
|
|
1556
|
-
type: [
|
|
1557
|
-
Object,
|
|
1558
|
-
String,
|
|
1559
|
-
null
|
|
1560
|
-
],
|
|
1561
|
-
required: false
|
|
1562
|
-
},
|
|
1532
|
+
defaultPickerValue: { required: false },
|
|
1533
|
+
pickerValue: { required: false },
|
|
1563
1534
|
onPickerValueChange: {
|
|
1564
1535
|
type: Function,
|
|
1565
1536
|
required: false
|
|
@@ -1665,27 +1636,31 @@ const TimePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expose
|
|
|
1665
1636
|
required: false,
|
|
1666
1637
|
default: void 0
|
|
1667
1638
|
},
|
|
1668
|
-
|
|
1639
|
+
name: {
|
|
1640
|
+
type: String,
|
|
1641
|
+
required: false
|
|
1642
|
+
},
|
|
1643
|
+
required: {
|
|
1669
1644
|
type: Boolean,
|
|
1670
1645
|
required: false,
|
|
1671
1646
|
default: void 0
|
|
1672
1647
|
},
|
|
1673
|
-
|
|
1674
|
-
type:
|
|
1675
|
-
required: false
|
|
1676
|
-
},
|
|
1677
|
-
minDate: {
|
|
1678
|
-
type: Object,
|
|
1648
|
+
autoComplete: {
|
|
1649
|
+
type: String,
|
|
1679
1650
|
required: false
|
|
1680
1651
|
},
|
|
1681
|
-
|
|
1682
|
-
type:
|
|
1683
|
-
required: false
|
|
1652
|
+
order: {
|
|
1653
|
+
type: Boolean,
|
|
1654
|
+
required: false,
|
|
1655
|
+
default: void 0
|
|
1684
1656
|
},
|
|
1685
|
-
|
|
1686
|
-
type:
|
|
1657
|
+
disabledDate: {
|
|
1658
|
+
type: Function,
|
|
1687
1659
|
required: false
|
|
1688
1660
|
},
|
|
1661
|
+
minDate: { required: false },
|
|
1662
|
+
maxDate: { required: false },
|
|
1663
|
+
defaultOpenValue: { required: false },
|
|
1689
1664
|
defaultOpen: {
|
|
1690
1665
|
type: Boolean,
|
|
1691
1666
|
required: false,
|
|
@@ -1732,10 +1707,6 @@ const TimePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expose
|
|
|
1732
1707
|
type: String,
|
|
1733
1708
|
required: false
|
|
1734
1709
|
},
|
|
1735
|
-
components: {
|
|
1736
|
-
type: Object,
|
|
1737
|
-
required: false
|
|
1738
|
-
},
|
|
1739
1710
|
inputRender: {
|
|
1740
1711
|
type: Function,
|
|
1741
1712
|
required: false
|
|
@@ -3,8 +3,8 @@ import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
|
3
3
|
import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import { toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
5
5
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
6
|
-
import isNonNullable from "../_util/isNonNullable.js";
|
|
7
6
|
import { resolveSlotsNode } from "../_util/vnode/index.js";
|
|
7
|
+
import isNonNullable from "../_util/isNonNullable.js";
|
|
8
8
|
import { provideInternalContext } from "../steps/context.js";
|
|
9
9
|
import Steps from "../steps/index.js";
|
|
10
10
|
import style_default from "./style/index.js";
|
|
@@ -60,8 +60,7 @@ const genTooltipStyle = (token) => {
|
|
|
60
60
|
`&-placement-right`,
|
|
61
61
|
`&-placement-rightTop`,
|
|
62
62
|
`&-placement-rightBottom`
|
|
63
|
-
].join(",")]: { [`${componentCls}-
|
|
64
|
-
[`${componentCls}-content`]: { position: "relative" },
|
|
63
|
+
].join(",")]: { [`${componentCls}-container`]: { borderRadius: token.min(tooltipBorderRadius, 8) } },
|
|
65
64
|
...genPresetColor(token, (colorKey, { darkColor }) => ({ [`&${componentCls}-${colorKey}`]: {
|
|
66
65
|
[`${componentCls}-container`]: { backgroundColor: darkColor },
|
|
67
66
|
[`${componentCls}-arrow`]: { [varName("arrow-background-color")]: darkColor }
|
package/dist/tour/panelRender.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getSlotPropsFnRun } from "../_util/tools.js";
|
|
2
|
-
import isNonNullable from "../_util/isNonNullable.js";
|
|
3
2
|
import localeValues from "../locale/en_US.js";
|
|
4
3
|
import useLocale from "../locale/useLocale.js";
|
|
5
4
|
import button_default from "../button/index.js";
|
|
5
|
+
import isNonNullable from "../_util/isNonNullable.js";
|
|
6
6
|
import { Fragment, createVNode, defineComponent, mergeProps } from "vue";
|
|
7
7
|
import { clsx } from "@v-c/util";
|
|
8
8
|
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
@@ -17,13 +17,14 @@ const TourPanel = /* @__PURE__ */ defineComponent((props) => {
|
|
|
17
17
|
const { prefixCls, total = 1, title, onClose, onPrev, onNext, onFinish, cover, description, nextButtonProps, prevButtonProps, type: stepType, closable, classes = {}, styles = {} } = stepProps;
|
|
18
18
|
const ariaProps = pickAttrs(closable ?? {}, true);
|
|
19
19
|
const mergedType = stepType ?? type;
|
|
20
|
+
const resolvedCloseIcon = getSlotPropsFnRun({}, { closeIcon: closable?.closeIcon }, "closeIcon");
|
|
20
21
|
const mergedCloseIcon = createVNode("button", mergeProps({
|
|
21
22
|
"type": "button",
|
|
22
23
|
"onClick": onClose,
|
|
23
24
|
"class": clsx(`${prefixCls}-close`, classes.close),
|
|
24
25
|
"style": styles.close,
|
|
25
26
|
"aria-label": contextLocaleGlobal?.value.close
|
|
26
|
-
}, ariaProps), [
|
|
27
|
+
}, ariaProps), [resolvedCloseIcon || createVNode(CloseOutlined, { "class": `${prefixCls}-close-icon` }, null)]);
|
|
27
28
|
const isLastStep = current === total - 1;
|
|
28
29
|
const prevBtnClick = (e) => {
|
|
29
30
|
onPrev?.();
|
package/dist/transfer/Section.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { normalizeStyle as normalizeStyle$1 } from "../_util/styleUtils.js";
|
|
2
|
+
import { isRenderable } from "../_util/is.js";
|
|
2
3
|
import Dropdown from "../dropdown/index.js";
|
|
3
4
|
import checkbox_default from "../checkbox/index.js";
|
|
4
5
|
import Search from "./search.js";
|
|
@@ -130,7 +131,7 @@ const TransferSection = /* @__PURE__ */ defineComponent((props) => {
|
|
|
130
131
|
}, [search, bodyNode]);
|
|
131
132
|
};
|
|
132
133
|
const getSelectAllLabel = (selectedCount, totalCount) => {
|
|
133
|
-
if (props.selectAllLabel) return typeof props.selectAllLabel === "function" ? props.selectAllLabel({
|
|
134
|
+
if (isRenderable(props.selectAllLabel)) return typeof props.selectAllLabel === "function" ? props.selectAllLabel({
|
|
134
135
|
selectedCount,
|
|
135
136
|
totalCount
|
|
136
137
|
}) : props.selectAllLabel;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
2
|
+
import { useFormItemInputContext } from "../form/context.js";
|
|
2
3
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
4
|
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
4
5
|
import { useMultipleSelect } from "../_util/hooks/useMultipleSelect.js";
|
|
@@ -9,7 +10,6 @@ import localeValues from "../locale/en_US.js";
|
|
|
9
10
|
import useLocale from "../locale/useLocale.js";
|
|
10
11
|
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
|
|
11
12
|
import { DefaultRenderEmpty } from "../config-provider/defaultRenderEmpty.js";
|
|
12
|
-
import { useFormItemInputContext } from "../form/context.js";
|
|
13
13
|
import Actions from "./Actions.js";
|
|
14
14
|
import { groupDisabledKeysMap, groupKeysMap } from "../_util/transKeys.js";
|
|
15
15
|
import TransferSection from "./Section.js";
|