antdv-next 1.4.1 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/dist/_util/hooks/useClosable.d.ts +5 -5
  2. package/dist/_util/statusUtils.d.ts +1 -1
  3. package/dist/_util/vueNode.d.ts +8 -4
  4. package/dist/alert/Alert.d.ts +7 -7
  5. package/dist/antd-with-locales.esm.js +13344 -11050
  6. package/dist/antd-with-locales.js +80 -80
  7. package/dist/antd.css +1 -1
  8. package/dist/antd.esm.js +10337 -9090
  9. package/dist/antd.js +74 -74
  10. package/dist/auto-complete/index.d.ts +4 -4
  11. package/dist/avatar/Avatar.d.ts +3 -3
  12. package/dist/badge/Ribbon.d.ts +2 -2
  13. package/dist/badge/index.d.ts +3 -3
  14. package/dist/border-beam/style/index.js +2 -2
  15. package/dist/breadcrumb/Breadcrumb.d.ts +4 -4
  16. package/dist/breadcrumb/BreadcrumbItem.d.ts +4 -4
  17. package/dist/button/Button.d.ts +2 -2
  18. package/dist/button/buttonHelper.d.ts +1 -1
  19. package/dist/button/style/index.js +13 -0
  20. package/dist/calendar/generateCalendar.d.ts +8 -8
  21. package/dist/card/Card.d.ts +9 -9
  22. package/dist/card/CardMeta.d.ts +4 -4
  23. package/dist/carousel/index.d.ts +3 -3
  24. package/dist/cascader/Panel.js +26 -2
  25. package/dist/cascader/index.d.ts +53 -21
  26. package/dist/cascader/index.js +33 -5
  27. package/dist/checkbox/Checkbox.d.ts +1 -1
  28. package/dist/checkbox/Checkbox.js +4 -4
  29. package/dist/checkbox/Group.d.ts +2 -2
  30. package/dist/checkbox/style/index.js +3 -3
  31. package/dist/collapse/Collapse.d.ts +3 -3
  32. package/dist/collapse/CollapsePanel.d.ts +3 -3
  33. package/dist/color-picker/hooks/useModeColor.d.ts +2 -2
  34. package/dist/color-picker/interface.d.ts +2 -2
  35. package/dist/config-provider/context.d.ts +20 -14
  36. package/dist/config-provider/index.js +1 -1
  37. package/dist/date-picker/generatePicker/generateRangePicker.d.ts +2 -2
  38. package/dist/date-picker/generatePicker/generateRangePicker.js +112 -10
  39. package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +2 -2
  40. package/dist/date-picker/generatePicker/generateSinglePicker.js +101 -11
  41. package/dist/date-picker/util.d.ts +10 -1
  42. package/dist/descriptions/Item.d.ts +3 -3
  43. package/dist/descriptions/hooks/useItems.d.ts +11 -11
  44. package/dist/descriptions/index.d.ts +3 -3
  45. package/dist/descriptions/style/index.js +2 -3
  46. package/dist/drawer/DrawerPanel.d.ts +5 -5
  47. package/dist/empty/index.d.ts +3 -3
  48. package/dist/float-button/FloatButton.d.ts +5 -5
  49. package/dist/float-button/FloatButton.js +1 -1
  50. package/dist/float-button/FloatButtonGroup.d.ts +2 -2
  51. package/dist/form/ErrorList.d.ts +2 -2
  52. package/dist/form/context.d.ts +1 -1
  53. package/dist/form/hooks/useVariant.d.ts +1 -1
  54. package/dist/image/index.d.ts +2 -2
  55. package/dist/input/Input.d.ts +5 -5
  56. package/dist/input/OTP/index.d.ts +2 -2
  57. package/dist/input/Password.d.ts +2 -2
  58. package/dist/input/Search.d.ts +3 -3
  59. package/dist/input/TextArea.js +1 -1
  60. package/dist/input/style/search.js +1 -0
  61. package/dist/input-number/index.d.ts +8 -8
  62. package/dist/input-number/index.js +0 -4
  63. package/dist/layout/layout.js +54 -48
  64. package/dist/locale/ar_EG.js +18 -4
  65. package/dist/locale/az_AZ.js +2 -1
  66. package/dist/locale/bg_BG.js +44 -3
  67. package/dist/locale/bn_BD.js +20 -4
  68. package/dist/locale/by_BY.js +17 -3
  69. package/dist/locale/ca_ES.js +22 -4
  70. package/dist/locale/cs_CZ.js +6 -3
  71. package/dist/locale/da_DK.js +34 -3
  72. package/dist/locale/de_DE.js +14 -4
  73. package/dist/locale/el_GR.js +4 -2
  74. package/dist/locale/en_GB.js +6 -3
  75. package/dist/locale/en_US.js +2 -1
  76. package/dist/locale/es_ES.js +17 -3
  77. package/dist/locale/et_EE.js +17 -3
  78. package/dist/locale/eu_ES.js +8 -4
  79. package/dist/locale/fa_IR.js +2 -1
  80. package/dist/locale/fi_FI.js +35 -4
  81. package/dist/locale/fr_BE.js +20 -3
  82. package/dist/locale/fr_CA.js +20 -3
  83. package/dist/locale/fr_FR.js +20 -3
  84. package/dist/locale/ga_IE.js +24 -5
  85. package/dist/locale/gl_ES.js +36 -5
  86. package/dist/locale/he_IL.js +30 -5
  87. package/dist/locale/hi_IN.js +20 -4
  88. package/dist/locale/hr_HR.js +21 -4
  89. package/dist/locale/hu_HU.js +43 -3
  90. package/dist/locale/hy_AM.js +33 -4
  91. package/dist/locale/id_ID.js +2 -1
  92. package/dist/locale/is_IS.js +44 -3
  93. package/dist/locale/it_IT.js +6 -3
  94. package/dist/locale/ja_JP.js +2 -1
  95. package/dist/locale/ka_GE.js +20 -4
  96. package/dist/locale/kk_KZ.js +22 -5
  97. package/dist/locale/km_KH.js +35 -4
  98. package/dist/locale/kmr_IQ.js +45 -4
  99. package/dist/locale/kn_IN.js +18 -3
  100. package/dist/locale/ko_KR.js +8 -4
  101. package/dist/locale/ku_IQ.js +45 -4
  102. package/dist/locale/lt_LT.js +8 -4
  103. package/dist/locale/lv_LV.js +45 -4
  104. package/dist/locale/mk_MK.js +36 -4
  105. package/dist/locale/ml_IN.js +20 -4
  106. package/dist/locale/mn_MN.js +17 -3
  107. package/dist/locale/mr_IN.js +13 -1
  108. package/dist/locale/ms_MY.js +8 -4
  109. package/dist/locale/my_MM.js +18 -5
  110. package/dist/locale/ne_NP.js +2 -1
  111. package/dist/locale/nl_BE.js +20 -4
  112. package/dist/locale/nl_NL.js +20 -4
  113. package/dist/locale/pl_PL.js +17 -3
  114. package/dist/locale/pt_BR.js +6 -3
  115. package/dist/locale/pt_PT.js +2 -1
  116. package/dist/locale/ro_RO.js +20 -4
  117. package/dist/locale/ru_RU.js +4 -2
  118. package/dist/locale/si_LK.js +17 -3
  119. package/dist/locale/sk_SK.js +17 -3
  120. package/dist/locale/sl_SI.js +45 -4
  121. package/dist/locale/sr_RS.js +20 -4
  122. package/dist/locale/sv_SE.js +14 -4
  123. package/dist/locale/ta_IN.js +23 -5
  124. package/dist/locale/th_TH.js +2 -1
  125. package/dist/locale/tk_TK.js +21 -5
  126. package/dist/locale/tr_TR.js +17 -2
  127. package/dist/locale/uk_UA.js +12 -3
  128. package/dist/locale/ur_PK.js +20 -4
  129. package/dist/locale/uz_UZ.js +14 -4
  130. package/dist/locale/vi_VN.js +2 -1
  131. package/dist/locale/zh_CN.js +2 -1
  132. package/dist/locale/zh_HK.js +4 -2
  133. package/dist/locale/zh_TW.js +4 -2
  134. package/dist/masonry/Masonry.d.ts +18 -10
  135. package/dist/masonry/MasonryItem.d.ts +2 -2
  136. package/dist/mentions/index.d.ts +4 -4
  137. package/dist/mentions/index.js +62 -1
  138. package/dist/menu/MenuItem.d.ts +3 -3
  139. package/dist/menu/MenuItem.js +1 -1
  140. package/dist/menu/MenuItemGroup.d.ts +2 -2
  141. package/dist/menu/OverrideContext.d.ts +2 -2
  142. package/dist/menu/SubMenu.d.ts +2 -2
  143. package/dist/message/PureList.d.ts +3 -1
  144. package/dist/message/PureList.js +4 -0
  145. package/dist/message/interface.d.ts +3 -3
  146. package/dist/modal/ConfirmDialog.d.ts +5 -1
  147. package/dist/modal/ConfirmDialog.js +40 -19
  148. package/dist/modal/Modal.d.ts +12 -3
  149. package/dist/modal/Modal.js +24 -7
  150. package/dist/modal/interface.d.ts +14 -14
  151. package/dist/notification/PureList.d.ts +3 -1
  152. package/dist/notification/PureList.js +4 -0
  153. package/dist/notification/interface.d.ts +8 -8
  154. package/dist/notification/util.d.ts +2 -2
  155. package/dist/package.js +1 -1
  156. package/dist/pagination/Pagination.js +1 -1
  157. package/dist/pagination/interface.d.ts +7 -7
  158. package/dist/pagination/style/index.js +1 -1
  159. package/dist/popconfirm/index.d.ts +6 -6
  160. package/dist/popover/index.d.ts +4 -4
  161. package/dist/radio/radio.js +4 -4
  162. package/dist/radio/radioButton.js +4 -4
  163. package/dist/radio/style/index.js +2 -2
  164. package/dist/result/index.d.ts +5 -5
  165. package/dist/segmented/index.d.ts +38 -20
  166. package/dist/segmented/index.js +5 -10
  167. package/dist/segmented/style/index.js +2 -2
  168. package/dist/select/index.d.ts +4 -4
  169. package/dist/select/style/select-input-customize.js +1 -0
  170. package/dist/slider/index.js +1 -1
  171. package/dist/space/Compact.d.ts +1 -1
  172. package/dist/space/index.d.ts +2 -2
  173. package/dist/spin/index.d.ts +5 -5
  174. package/dist/splitter/interface.d.ts +6 -6
  175. package/dist/statistic/Statistic.d.ts +4 -4
  176. package/dist/steps/index.d.ts +6 -6
  177. package/dist/style/motion/index.d.ts +2 -2
  178. package/dist/style/motion/index.js +2 -2
  179. package/dist/style/motion/util.d.ts +8 -1
  180. package/dist/style/motion/util.js +13 -1
  181. package/dist/switch/index.d.ts +4 -4
  182. package/dist/switch/index.js +7 -7
  183. package/dist/switch/style/index.js +5 -3
  184. package/dist/table/InternalTable.js +8 -25
  185. package/dist/table/Table.d.ts +20 -9
  186. package/dist/table/hooks/useColumnTitleProps.d.ts +8 -0
  187. package/dist/table/hooks/useColumnTitleProps.js +16 -0
  188. package/dist/table/hooks/useFilter/FilterDropdown.js +2 -1
  189. package/dist/table/hooks/useSpinProps.d.ts +7 -0
  190. package/dist/table/hooks/useSpinProps.js +14 -0
  191. package/dist/table/util.d.ts +5 -2
  192. package/dist/table/util.js +10 -1
  193. package/dist/tabs/index.d.ts +5 -5
  194. package/dist/tag/CheckableTag.d.ts +2 -2
  195. package/dist/tag/hooks/useColor.d.ts +1 -1
  196. package/dist/tag/index.d.ts +3 -3
  197. package/dist/time-picker/index.d.ts +2 -2
  198. package/dist/time-picker/index.js +211 -19
  199. package/dist/timeline/Timeline.d.ts +9 -9
  200. package/dist/tooltip/PurePanel.js +1 -1
  201. package/dist/tooltip/index.d.ts +3 -3
  202. package/dist/tour/interface.d.ts +4 -4
  203. package/dist/transfer/Actions.d.ts +2 -2
  204. package/dist/transfer/Transfer.d.ts +2 -2
  205. package/dist/transfer/index.d.ts +27 -6
  206. package/dist/transfer/interface.d.ts +17 -17
  207. package/dist/transfer/search.d.ts +2 -2
  208. package/dist/tree/Tree.d.ts +6 -6
  209. package/dist/tree-select/index.d.ts +57 -28
  210. package/dist/tree-select/index.js +4 -3
  211. package/dist/typography/Base/Ellipsis.d.ts +2 -2
  212. package/dist/typography/Editable.d.ts +2 -2
  213. package/dist/typography/interface.d.ts +8 -8
  214. package/dist/upload/UploadList/index.js +1 -1
  215. package/package.json +10 -10
  216. package/web-tags.json +1301 -1285
  217. package/web-types.json +3864 -3812
@@ -0,0 +1,8 @@
1
+ import { AnyObject } from "../../_util/type.js";
2
+ import { ColumnTitleProps, FilterValue } from "../interface.js";
3
+ import { ComputedRef, Ref } from "vue";
4
+
5
+ //#region src/table/hooks/useColumnTitleProps.d.ts
6
+ declare function useColumnTitleProps<RecordType extends AnyObject = AnyObject>(sorterTitleProps: Ref<ColumnTitleProps<RecordType>>, filters: Ref<Record<string, FilterValue | null>>): ComputedRef<ColumnTitleProps<RecordType>>;
7
+ //#endregion
8
+ export { useColumnTitleProps as default };
@@ -0,0 +1,16 @@
1
+ import isNonNullable from "../../_util/isNonNullable.js";
2
+ import { computed } from "vue";
3
+ //#region src/table/hooks/useColumnTitleProps.ts
4
+ function getMergedFilters(filters) {
5
+ const mergedFilters = {};
6
+ for (const [key, value] of Object.entries(filters)) if (isNonNullable(value)) mergedFilters[key] = value;
7
+ return mergedFilters;
8
+ }
9
+ function useColumnTitleProps(sorterTitleProps, filters) {
10
+ return computed(() => ({
11
+ ...sorterTitleProps.value,
12
+ filters: getMergedFilters(filters.value)
13
+ }));
14
+ }
15
+ //#endregion
16
+ export { useColumnTitleProps as default };
@@ -108,7 +108,8 @@ const FilterDropdown = /* @__PURE__ */ defineComponent((props, { slots }) => {
108
108
  const onSelectKeys = ({ selectedKeys }) => {
109
109
  setFilteredKeysSync(selectedKeys);
110
110
  };
111
- const onCheck = (keys, { node, checked }) => {
111
+ const onCheck = (keys, info) => {
112
+ const { node, checked } = info;
112
113
  if (!props.filterMultiple) onSelectKeys({ selectedKeys: checked && node.key ? [node.key] : [] });
113
114
  else onSelectKeys({ selectedKeys: keys });
114
115
  };
@@ -0,0 +1,7 @@
1
+ import { SpinProps } from "../../spin/index.js";
2
+ import { ComputedRef, Ref } from "vue";
3
+
4
+ //#region src/table/hooks/useSpinProps.d.ts
5
+ declare function useSpinProps(loading: Ref<boolean | SpinProps | undefined>): ComputedRef<SpinProps>;
6
+ //#endregion
7
+ export { useSpinProps as default };
@@ -0,0 +1,14 @@
1
+ import { computed } from "vue";
2
+ //#region src/table/hooks/useSpinProps.ts
3
+ function useSpinProps(loading) {
4
+ return computed(() => {
5
+ if (typeof loading.value === "boolean") return { spinning: loading.value };
6
+ if (typeof loading.value === "object" && loading.value !== null) return {
7
+ spinning: true,
8
+ ...loading.value
9
+ };
10
+ return {};
11
+ });
12
+ }
13
+ //#endregion
14
+ export { useSpinProps as default };
@@ -1,5 +1,6 @@
1
1
  import { AnyObject } from "../_util/type.js";
2
- import { ColumnTitle, ColumnTitleProps, ColumnType, Key } from "./interface.js";
2
+ import { SizeType } from "../config-provider/SizeContext.js";
3
+ import { ColumnTitle, ColumnTitleProps, ColumnType, Key, TablePaginationPlacement, TablePaginationPosition } from "./interface.js";
3
4
 
4
5
  //#region src/table/util.d.ts
5
6
  declare function getColumnKey<RecordType extends AnyObject = AnyObject>(column: ColumnType<RecordType>, defaultKey: string): Key;
@@ -11,5 +12,7 @@ declare function renderColumnTitle<RecordType extends AnyObject = AnyObject>(tit
11
12
  * Should filter [object Object]
12
13
  */
13
14
  declare function safeColumnTitle<RecordType extends AnyObject = AnyObject>(title: ColumnTitle<RecordType>, props: ColumnTitleProps<RecordType>): any;
15
+ declare function normalizePlacement(pos: TablePaginationPlacement | TablePaginationPosition): "center" | "end" | "start";
16
+ declare function getPaginationSize(paginationSize: SizeType, mergedSize: SizeType): SizeType;
14
17
  //#endregion
15
- export { getColumnKey, getColumnPos, renderColumnTitle, safeColumnTitle };
18
+ export { getColumnKey, getColumnPos, getPaginationSize, normalizePlacement, renderColumnTitle, safeColumnTitle };
@@ -21,5 +21,14 @@ function safeColumnTitle(title, props) {
21
21
  if (Object.prototype.toString.call(res) === "[object Object]") return "";
22
22
  return res;
23
23
  }
24
+ function normalizePlacement(pos) {
25
+ const lowerPos = pos.toLowerCase();
26
+ if (lowerPos.includes("center")) return "center";
27
+ return lowerPos.includes("left") || lowerPos.includes("start") ? "start" : "end";
28
+ }
29
+ function getPaginationSize(paginationSize, mergedSize) {
30
+ if (paginationSize) return paginationSize;
31
+ if (mergedSize === "small" || mergedSize === "middle" || mergedSize === "medium") return "small";
32
+ }
24
33
  //#endregion
25
- export { getColumnKey, getColumnPos, renderColumnTitle, safeColumnTitle };
34
+ export { getColumnKey, getColumnPos, getPaginationSize, normalizePlacement, renderColumnTitle, safeColumnTitle };
@@ -1,4 +1,4 @@
1
- import { VueNode as VueNode$1 } from "../_util/type.js";
1
+ import { VueNode } from "../_util/type.js";
2
2
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
3
3
  import { SizeType } from "../config-provider/SizeContext.js";
4
4
  import TabPane, { TabPaneProps } from "./TabPane.js";
@@ -44,7 +44,7 @@ interface CompatibilityProps {
44
44
  destroyInactiveTabPane?: boolean;
45
45
  }
46
46
  interface Tab extends Omit<Tab$1, 'children' | 'className'> {
47
- content?: VueNode$1;
47
+ content?: VueNode;
48
48
  class?: string;
49
49
  }
50
50
  interface TabsRef {
@@ -79,10 +79,10 @@ interface TabsEmitsProps {
79
79
  'onUpdate:activeKey'?: TabsEmits['update:activeKey'];
80
80
  }
81
81
  interface TabsProps extends BaseTabsProps, CompatibilityProps, Omit<TabsProps$1, 'editable' | 'items' | 'classNames' | 'className' | 'popupClassName' | 'styles' | 'style' | 'onChange' | 'onTabScroll' | 'onTabClick' | 'renderTabBar'>, TabsEmitsProps {
82
- addIcon?: VueNode$1;
83
- moreIcon?: VueNode$1;
82
+ addIcon?: VueNode;
83
+ moreIcon?: VueNode;
84
84
  more?: MoreProps;
85
- removeIcon?: VueNode$1;
85
+ removeIcon?: VueNode;
86
86
  styles?: TabsStylesType;
87
87
  classes?: TabsClassNamesType;
88
88
  /** @deprecated Please use `classes.popup` instead */
@@ -1,4 +1,4 @@
1
- import { VueNode as VueNode$1 } from "../_util/type.js";
1
+ import { VueNode } from "../_util/type.js";
2
2
  import { ComponentBaseProps } from "../config-provider/context.js";
3
3
  import { SlotsType } from "vue";
4
4
 
@@ -13,7 +13,7 @@ interface CheckableTagProps extends ComponentBaseProps, CheckableTagEmitsProps {
13
13
  /**
14
14
  * @since 5.27.0
15
15
  */
16
- icon?: VueNode$1;
16
+ icon?: VueNode;
17
17
  disabled?: boolean;
18
18
  }
19
19
  interface CheckableTagEmits {
@@ -10,6 +10,6 @@ declare function useColor(props: {
10
10
  color: Ref<TagProps['color']>;
11
11
  variant: Ref<TagProps['variant']>;
12
12
  bordered: Ref<TagProps['bordered']>;
13
- }, contextVariant?: Ref<TagProps['variant']>): readonly [import("vue").ComputedRef<"outlined" | "solid" | "filled">, import("vue").ComputedRef<string | undefined>, import("vue").ComputedRef<boolean>, import("vue").ComputedRef<boolean>, import("vue").ComputedRef<CSSProperties>];
13
+ }, 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>];
14
14
  //#endregion
15
15
  export { useColor as default };
@@ -1,4 +1,4 @@
1
- import { VueNode as VueNode$1 } from "../_util/type.js";
1
+ import { VueNode } from "../_util/type.js";
2
2
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
3
3
  import { PresetColorType, PresetStatusColorType } from "../_util/colors.js";
4
4
  import { ClosableType } from "../_util/hooks/useClosable.js";
@@ -28,8 +28,8 @@ interface TagProps extends ComponentBaseProps, TagEmitsProps {
28
28
  color?: LiteralUnion<PresetColorType | PresetStatusColorType>;
29
29
  /** Advised to use closeIcon instead. */
30
30
  closable?: ClosableType;
31
- closeIcon?: VueNode$1;
32
- icon?: VueNode$1;
31
+ closeIcon?: VueNode;
32
+ icon?: VueNode;
33
33
  onClick?: (e: MouseEvent) => void;
34
34
  href?: string;
35
35
  target?: string;
@@ -1,4 +1,4 @@
1
- import { AnyObject, VueNode as VueNode$1 } from "../_util/type.js";
1
+ import { AnyObject, VueNode } from "../_util/type.js";
2
2
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
3
3
  import { InputStatus } from "../_util/statusUtils.js";
4
4
  import { PickerProps as PickerProps$1, RangePickerProps as RangePickerProps$1 } from "../date-picker/generatePicker/interface.js";
@@ -72,7 +72,7 @@ interface TimeRangePickerEmits<DateType = AnyObject> {
72
72
  declare const RangePicker$1: import("vue").DefineSetupFnComponent<TimeRangePickerProps, TimeRangePickerEmits<AnyObject>, {}, TimeRangePickerProps, import("vue").PublicProps>;
73
73
  type BaseTimePickerProps = Omit<PickerTimeProps<AnyObject>, 'picker' | 'classes' | 'styles' | 'onKeydown'>;
74
74
  interface TimePickerProps extends BaseTimePickerProps, Omit<TimePickerEmitsProps, keyof BaseTimePickerProps> {
75
- addon?: () => VueNode$1;
75
+ addon?: () => VueNode;
76
76
  status?: InputStatus;
77
77
  /** @deprecated Please use `classes.popup` instead */
78
78
  popupClassName?: string;
@@ -109,7 +109,19 @@ const RangePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expos
109
109
  type: [String, Object],
110
110
  required: false
111
111
  },
112
- separator: { required: false },
112
+ separator: {
113
+ type: [
114
+ Object,
115
+ Function,
116
+ String,
117
+ Number,
118
+ null,
119
+ Boolean,
120
+ Array
121
+ ],
122
+ required: false,
123
+ default: void 0
124
+ },
113
125
  value: {
114
126
  type: [Array, null],
115
127
  required: false
@@ -192,14 +204,50 @@ const RangePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expos
192
204
  type: String,
193
205
  required: false
194
206
  },
195
- prefix: { required: false },
196
- suffixIcon: { required: false },
207
+ prefix: {
208
+ type: [
209
+ Object,
210
+ Function,
211
+ String,
212
+ Number,
213
+ null,
214
+ Boolean,
215
+ Array
216
+ ],
217
+ required: false,
218
+ default: void 0
219
+ },
220
+ suffixIcon: {
221
+ type: [
222
+ Object,
223
+ Function,
224
+ String,
225
+ Number,
226
+ null,
227
+ Boolean,
228
+ Array
229
+ ],
230
+ required: false,
231
+ default: void 0
232
+ },
197
233
  allowClear: {
198
234
  type: [Boolean, Object],
199
235
  required: false,
200
236
  default: void 0
201
237
  },
202
- clearIcon: { required: false },
238
+ clearIcon: {
239
+ type: [
240
+ Object,
241
+ Function,
242
+ String,
243
+ Number,
244
+ null,
245
+ Boolean,
246
+ Array
247
+ ],
248
+ required: false,
249
+ default: void 0
250
+ },
203
251
  inputReadOnly: {
204
252
  type: Boolean,
205
253
  required: false,
@@ -236,12 +284,18 @@ const RangePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expos
236
284
  required: false,
237
285
  default: void 0
238
286
  },
239
- popupAlign: { required: false },
287
+ popupAlign: {
288
+ type: Object,
289
+ required: false
290
+ },
240
291
  getPopupContainer: {
241
292
  type: Function,
242
293
  required: false
243
294
  },
244
- builtinPlacements: { required: false },
295
+ builtinPlacements: {
296
+ type: Object,
297
+ required: false
298
+ },
245
299
  needConfirm: {
246
300
  type: Boolean,
247
301
  required: false,
@@ -1183,10 +1237,58 @@ const RangePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expos
1183
1237
  type: Function,
1184
1238
  required: false
1185
1239
  },
1186
- prevIcon: { required: false },
1187
- nextIcon: { required: false },
1188
- superPrevIcon: { required: false },
1189
- superNextIcon: { required: false },
1240
+ prevIcon: {
1241
+ type: [
1242
+ Object,
1243
+ Function,
1244
+ String,
1245
+ Number,
1246
+ null,
1247
+ Boolean,
1248
+ Array
1249
+ ],
1250
+ required: false,
1251
+ default: void 0
1252
+ },
1253
+ nextIcon: {
1254
+ type: [
1255
+ Object,
1256
+ Function,
1257
+ String,
1258
+ Number,
1259
+ null,
1260
+ Boolean,
1261
+ Array
1262
+ ],
1263
+ required: false,
1264
+ default: void 0
1265
+ },
1266
+ superPrevIcon: {
1267
+ type: [
1268
+ Object,
1269
+ Function,
1270
+ String,
1271
+ Number,
1272
+ null,
1273
+ Boolean,
1274
+ Array
1275
+ ],
1276
+ required: false,
1277
+ default: void 0
1278
+ },
1279
+ superNextIcon: {
1280
+ type: [
1281
+ Object,
1282
+ Function,
1283
+ String,
1284
+ Number,
1285
+ null,
1286
+ Boolean,
1287
+ Array
1288
+ ],
1289
+ required: false,
1290
+ default: void 0
1291
+ },
1190
1292
  showHour: {
1191
1293
  type: Boolean,
1192
1294
  required: false,
@@ -1459,14 +1561,50 @@ const TimePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expose
1459
1561
  type: String,
1460
1562
  required: false
1461
1563
  },
1462
- prefix: { required: false },
1463
- suffixIcon: { required: false },
1564
+ prefix: {
1565
+ type: [
1566
+ Object,
1567
+ Function,
1568
+ String,
1569
+ Number,
1570
+ null,
1571
+ Boolean,
1572
+ Array
1573
+ ],
1574
+ required: false,
1575
+ default: void 0
1576
+ },
1577
+ suffixIcon: {
1578
+ type: [
1579
+ Object,
1580
+ Function,
1581
+ String,
1582
+ Number,
1583
+ null,
1584
+ Boolean,
1585
+ Array
1586
+ ],
1587
+ required: false,
1588
+ default: void 0
1589
+ },
1464
1590
  allowClear: {
1465
1591
  type: [Boolean, Object],
1466
1592
  required: false,
1467
1593
  default: void 0
1468
1594
  },
1469
- clearIcon: { required: false },
1595
+ clearIcon: {
1596
+ type: [
1597
+ Object,
1598
+ Function,
1599
+ String,
1600
+ Number,
1601
+ null,
1602
+ Boolean,
1603
+ Array
1604
+ ],
1605
+ required: false,
1606
+ default: void 0
1607
+ },
1470
1608
  inputReadOnly: {
1471
1609
  type: Boolean,
1472
1610
  required: false,
@@ -1494,12 +1632,18 @@ const TimePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expose
1494
1632
  required: false,
1495
1633
  default: void 0
1496
1634
  },
1497
- popupAlign: { required: false },
1635
+ popupAlign: {
1636
+ type: Object,
1637
+ required: false
1638
+ },
1498
1639
  getPopupContainer: {
1499
1640
  type: Function,
1500
1641
  required: false
1501
1642
  },
1502
- builtinPlacements: { required: false },
1643
+ builtinPlacements: {
1644
+ type: Object,
1645
+ required: false
1646
+ },
1503
1647
  needConfirm: {
1504
1648
  type: Boolean,
1505
1649
  required: false,
@@ -2441,10 +2585,58 @@ const TimePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expose
2441
2585
  type: Function,
2442
2586
  required: false
2443
2587
  },
2444
- prevIcon: { required: false },
2445
- nextIcon: { required: false },
2446
- superPrevIcon: { required: false },
2447
- superNextIcon: { required: false },
2588
+ prevIcon: {
2589
+ type: [
2590
+ Object,
2591
+ Function,
2592
+ String,
2593
+ Number,
2594
+ null,
2595
+ Boolean,
2596
+ Array
2597
+ ],
2598
+ required: false,
2599
+ default: void 0
2600
+ },
2601
+ nextIcon: {
2602
+ type: [
2603
+ Object,
2604
+ Function,
2605
+ String,
2606
+ Number,
2607
+ null,
2608
+ Boolean,
2609
+ Array
2610
+ ],
2611
+ required: false,
2612
+ default: void 0
2613
+ },
2614
+ superPrevIcon: {
2615
+ type: [
2616
+ Object,
2617
+ Function,
2618
+ String,
2619
+ Number,
2620
+ null,
2621
+ Boolean,
2622
+ Array
2623
+ ],
2624
+ required: false,
2625
+ default: void 0
2626
+ },
2627
+ superNextIcon: {
2628
+ type: [
2629
+ Object,
2630
+ Function,
2631
+ String,
2632
+ Number,
2633
+ null,
2634
+ Boolean,
2635
+ Array
2636
+ ],
2637
+ required: false,
2638
+ default: void 0
2639
+ },
2448
2640
  showHour: {
2449
2641
  type: Boolean,
2450
2642
  required: false,
@@ -1,4 +1,4 @@
1
- import { EmptyEmit, VueNode as VueNode$1 } from "../_util/type.js";
1
+ import { EmptyEmit, VueNode } from "../_util/type.js";
2
2
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
3
3
  import { StepItem, StepsProps, StepsSemanticClassNames, StepsSemanticName, StepsSemanticStyles } from "../steps/index.js";
4
4
  import { ComponentBaseProps } from "../config-provider/context.js";
@@ -21,15 +21,15 @@ interface TimelineItemType {
21
21
  position?: ItemPosition;
22
22
  loading?: boolean;
23
23
  key?: string | number;
24
- title?: VueNode$1;
25
- content?: VueNode$1;
24
+ title?: VueNode;
25
+ content?: VueNode;
26
26
  /** @deprecated Please use `title` instead */
27
- label?: VueNode$1;
27
+ label?: VueNode;
28
28
  /** @deprecated Please use `content` instead */
29
- children?: VueNode$1;
30
- icon?: VueNode$1;
29
+ children?: VueNode;
30
+ icon?: VueNode;
31
31
  /** @deprecated Please use `icon` instead */
32
- dot?: VueNode$1;
32
+ dot?: VueNode;
33
33
  }
34
34
  type TimelineSemanticName = StepsSemanticName;
35
35
  type TimelineSemanticClassNames = StepsSemanticClassNames;
@@ -37,8 +37,8 @@ type TimelineSemanticStyles = StepsSemanticStyles;
37
37
  type TimelineClassNamesType = SemanticClassNamesType<TimelineProps, TimelineSemanticClassNames>;
38
38
  type TimelineMode = ItemPosition | 'alternate';
39
39
  interface TimelineProps extends ComponentBaseProps {
40
- pending?: VueNode$1;
41
- pendingDot?: VueNode$1;
40
+ pending?: VueNode;
41
+ pendingDot?: VueNode;
42
42
  reverse?: boolean;
43
43
  mode?: 'left' | 'alternate' | 'right' | 'start' | 'end';
44
44
  items?: TimelineItemType[];
@@ -7,7 +7,7 @@ import { parseColor } from "./util.js";
7
7
  import { computed, createVNode, defineComponent, isVNode, mergeDefaults, mergeProps } from "vue";
8
8
  import { clsx } from "@v-c/util";
9
9
  import { Popup } from "@v-c/tooltip";
10
- import { omit } from "es-toolkit";
10
+ import { omit } from "es-toolkit/compat";
11
11
  //#region src/tooltip/PurePanel.tsx
12
12
  function _isSlot(s) {
13
13
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
@@ -1,4 +1,4 @@
1
- import { VueNode as VueNode$1 } from "../_util/type.js";
1
+ import { VueNode } from "../_util/type.js";
2
2
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
3
3
  import { PresetColorType } from "../_util/colors.js";
4
4
  import { AdjustOverflow } from "../_util/placements.js";
@@ -71,8 +71,8 @@ interface TriggerCommonApi extends ComponentBaseProps {
71
71
  interface TooltipProps extends TriggerCommonApi, TooltipEmitsProps {
72
72
  afterOpenChange?: (open: boolean) => void;
73
73
  builtinPlacements?: typeof placements;
74
- title?: VueNode$1;
75
- overlay?: VueNode$1;
74
+ title?: VueNode;
75
+ overlay?: VueNode;
76
76
  openClass?: string;
77
77
  unique?: boolean;
78
78
  }
@@ -1,4 +1,4 @@
1
- import { VueNode as VueNode$1 } from "../_util/type.js";
1
+ import { VueNode } from "../_util/type.js";
2
2
  import { SemanticClassNames, SemanticClassNamesType, SemanticStyles, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
3
3
  import { ComponentBaseProps } from "../config-provider/context.js";
4
4
  import { CSSProperties } from "vue";
@@ -84,15 +84,15 @@ interface TourSlots {
84
84
  }) => any;
85
85
  }
86
86
  interface TourStepProps extends Omit<TourStepProps$1, 'className'> {
87
- cover?: VueNode$1;
87
+ cover?: VueNode;
88
88
  nextButtonProps?: {
89
- children?: VueNode$1;
89
+ children?: VueNode;
90
90
  onClick?: () => void;
91
91
  class?: string;
92
92
  style?: CSSProperties;
93
93
  };
94
94
  prevButtonProps?: {
95
- children?: VueNode$1;
95
+ children?: VueNode;
96
96
  onClick?: () => void;
97
97
  class?: string;
98
98
  style?: CSSProperties;
@@ -1,11 +1,11 @@
1
- import { VueNode as VueNode$1 } from "../_util/type.js";
1
+ import { VueNode } from "../_util/type.js";
2
2
  import { DirectionType } from "../config-provider/context.js";
3
3
  import { CSSProperties } from "vue";
4
4
 
5
5
  //#region src/transfer/Actions.d.ts
6
6
  interface TransferOperationProps {
7
7
  class?: string;
8
- actions: VueNode$1[];
8
+ actions: VueNode[];
9
9
  moveToLeft?: (event: MouseEvent) => void;
10
10
  moveToRight?: (event: MouseEvent) => void;
11
11
  leftActive?: boolean;
@@ -2,7 +2,7 @@ import { TransferEmits, TransferProps, TransferSlots } from "./interface.js";
2
2
  import { SlotsType } from "vue";
3
3
 
4
4
  //#region src/transfer/Transfer.d.ts
5
- interface InternalTransferProps extends TransferProps, TransferEmitsProps {}
5
+ interface InternalTransferProps<RecordType = any> extends TransferProps<RecordType>, TransferEmitsProps {}
6
6
  interface TransferEmitsProps {
7
7
  onChange?: TransferEmits['change'];
8
8
  onSelectChange?: TransferEmits['selectChange'];
@@ -11,6 +11,6 @@ interface TransferEmitsProps {
11
11
  'onUpdate:targetKeys'?: TransferEmits['update:targetKeys'];
12
12
  'onUpdate:selectedKeys'?: TransferEmits['update:selectedKeys'];
13
13
  }
14
- declare const Transfer: import("vue").DefineSetupFnComponent<InternalTransferProps, TransferEmits, SlotsType<TransferSlots<any>>, InternalTransferProps, import("vue").PublicProps>;
14
+ declare const Transfer: import("vue").DefineSetupFnComponent<InternalTransferProps<any>, TransferEmits, SlotsType<TransferSlots<any>>, InternalTransferProps<any>, import("vue").PublicProps>;
15
15
  //#endregion
16
16
  export { InternalTransferProps, TransferEmitsProps, Transfer as default };
@@ -1,17 +1,38 @@
1
1
  import { KeyWise, KeyWiseTransferItem, ListStyle, PaginationType, RenderResult, RenderResultObject, SelectAllLabel, TransferClassNamesType, TransferCustomListBodyProps, TransferDirection, TransferEmits, TransferItem, TransferKey, TransferListBodyProps, TransferListProps, TransferLocale, TransferRender, TransferSearchOption, TransferSlots, TransferStylesType } from "./interface.js";
2
- import Transfer, { InternalTransferProps } from "./Transfer.js";
2
+ import { InternalTransferProps } from "./Transfer.js";
3
3
  import Actions, { TransferOperationProps } from "./Actions.js";
4
4
  import Search, { TransferSearchEmits, TransferSearchProps, TransferSearchSlots } from "./search.js";
5
5
  import TransferSection from "./Section.js";
6
- import { App } from "vue";
6
+ import { App, PublicProps } from "vue";
7
7
 
8
8
  //#region src/transfer/index.d.ts
9
- type TransferProps = InternalTransferProps;
10
- declare const InternalTransfer: typeof Transfer & {
9
+ type TransferProps<RecordType = any> = InternalTransferProps<RecordType>;
10
+ interface TransferInstance<RecordType = any> {
11
+ $props: InternalTransferProps<RecordType> & PublicProps;
12
+ $emit: {
13
+ (event: 'change', ...args: Parameters<TransferEmits['change']>): void;
14
+ (event: 'selectChange', ...args: Parameters<TransferEmits['selectChange']>): void;
15
+ (event: 'search', ...args: Parameters<TransferEmits['search']>): void;
16
+ (event: 'scroll', ...args: Parameters<TransferEmits['scroll']>): void;
17
+ (event: 'update:targetKeys', ...args: Parameters<TransferEmits['update:targetKeys']>): void;
18
+ (event: 'update:selectedKeys', ...args: Parameters<TransferEmits['update:selectedKeys']>): void;
19
+ };
20
+ $slots: TransferSlots<RecordType>;
21
+ }
22
+ interface TransferConstructor {
23
+ new <RecordType = any>(props: InternalTransferProps<RecordType>): TransferInstance<RecordType>;
24
+ /**
25
+ * Non-generic fallback signature. TypeScript infers from the last overload,
26
+ * so this keeps render-function usage like `h(Transfer, props)` resolvable
27
+ * against Vue's `Constructor<P>` overload of `h` (see #634), while the
28
+ * generic signature above still drives template/Volar inference.
29
+ */
30
+ new (props: InternalTransferProps<any>): TransferInstance<any>;
11
31
  install: (app: App) => void;
12
32
  List: typeof TransferSection;
13
33
  Search: typeof Search;
14
34
  Operation: typeof Actions;
15
- };
35
+ }
36
+ declare const InternalTransfer: TransferConstructor;
16
37
  //#endregion
17
- export { type KeyWise, type KeyWiseTransferItem, type ListStyle, type PaginationType, type RenderResult, type RenderResultObject, type SelectAllLabel, type TransferClassNamesType, type TransferCustomListBodyProps, type TransferDirection, type TransferEmits, type TransferItem, type TransferKey, type TransferListBodyProps, type TransferListProps, type TransferLocale, type TransferOperationProps, TransferProps, type TransferRender, type TransferSearchEmits, type TransferSearchOption, type TransferSearchProps, type TransferSearchSlots, type TransferSlots, type TransferStylesType, InternalTransfer as default };
38
+ export { type KeyWise, type KeyWiseTransferItem, type ListStyle, type PaginationType, type RenderResult, type RenderResultObject, type SelectAllLabel, type TransferClassNamesType, TransferConstructor, type TransferCustomListBodyProps, type TransferDirection, type TransferEmits, type TransferItem, type TransferKey, type TransferListBodyProps, type TransferListProps, type TransferLocale, type TransferOperationProps, TransferProps, type TransferRender, type TransferSearchEmits, type TransferSearchOption, type TransferSearchProps, type TransferSearchSlots, type TransferSlots, type TransferStylesType, InternalTransfer as default };