antdv-next 1.4.0 → 1.4.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.
Files changed (211) 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 +2 -2
  4. package/dist/alert/Alert.d.ts +7 -7
  5. package/dist/antd-with-locales.esm.js +14139 -11606
  6. package/dist/antd-with-locales.js +79 -79
  7. package/dist/antd.css +1 -1
  8. package/dist/antd.esm.js +12465 -10979
  9. package/dist/antd.js +79 -79
  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/breadcrumb/Breadcrumb.d.ts +4 -4
  15. package/dist/breadcrumb/BreadcrumbItem.d.ts +4 -4
  16. package/dist/button/Button.d.ts +2 -2
  17. package/dist/button/style/index.js +13 -0
  18. package/dist/calendar/generateCalendar.d.ts +8 -8
  19. package/dist/card/Card.d.ts +9 -9
  20. package/dist/card/CardMeta.d.ts +4 -4
  21. package/dist/carousel/index.d.ts +3 -3
  22. package/dist/cascader/Panel.js +26 -2
  23. package/dist/cascader/index.d.ts +53 -21
  24. package/dist/cascader/index.js +33 -5
  25. package/dist/checkbox/Checkbox.d.ts +1 -1
  26. package/dist/checkbox/Checkbox.js +4 -4
  27. package/dist/checkbox/Group.d.ts +2 -2
  28. package/dist/collapse/Collapse.d.ts +3 -3
  29. package/dist/collapse/CollapsePanel.d.ts +3 -3
  30. package/dist/color-picker/hooks/useModeColor.d.ts +2 -2
  31. package/dist/color-picker/interface.d.ts +2 -2
  32. package/dist/config-provider/context.d.ts +20 -14
  33. package/dist/config-provider/index.d.ts +1 -1
  34. package/dist/config-provider/index.js +1 -1
  35. package/dist/date-picker/generatePicker/generateRangePicker.d.ts +2 -2
  36. package/dist/date-picker/generatePicker/generateRangePicker.js +112 -10
  37. package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +2 -2
  38. package/dist/date-picker/generatePicker/generateSinglePicker.js +101 -11
  39. package/dist/date-picker/generatePicker/useComponents.d.ts +2 -2
  40. package/dist/date-picker/util.d.ts +10 -1
  41. package/dist/descriptions/Item.d.ts +3 -3
  42. package/dist/descriptions/hooks/useItems.d.ts +11 -11
  43. package/dist/descriptions/index.d.ts +3 -3
  44. package/dist/descriptions/style/index.js +2 -3
  45. package/dist/drawer/DrawerPanel.d.ts +5 -5
  46. package/dist/empty/index.d.ts +3 -3
  47. package/dist/float-button/FloatButton.d.ts +5 -5
  48. package/dist/float-button/FloatButton.js +1 -1
  49. package/dist/float-button/FloatButtonGroup.d.ts +2 -2
  50. package/dist/form/ErrorList.d.ts +2 -2
  51. package/dist/image/hooks/usePreviewConfig.d.ts +2 -2
  52. package/dist/image/index.d.ts +2 -2
  53. package/dist/input/Input.d.ts +5 -5
  54. package/dist/input/OTP/index.d.ts +2 -2
  55. package/dist/input/Password.d.ts +2 -2
  56. package/dist/input/Search.d.ts +3 -3
  57. package/dist/input/TextArea.js +1 -1
  58. package/dist/input/style/search.js +1 -0
  59. package/dist/input-number/index.d.ts +8 -8
  60. package/dist/input-number/index.js +0 -4
  61. package/dist/layout/layout.js +54 -48
  62. package/dist/locale/ar_EG.js +18 -4
  63. package/dist/locale/az_AZ.js +2 -1
  64. package/dist/locale/bg_BG.js +44 -3
  65. package/dist/locale/bn_BD.js +20 -4
  66. package/dist/locale/by_BY.js +17 -3
  67. package/dist/locale/ca_ES.js +22 -4
  68. package/dist/locale/cs_CZ.js +6 -3
  69. package/dist/locale/da_DK.js +34 -3
  70. package/dist/locale/de_DE.js +14 -4
  71. package/dist/locale/el_GR.js +4 -2
  72. package/dist/locale/en_GB.js +6 -3
  73. package/dist/locale/en_US.js +2 -1
  74. package/dist/locale/es_ES.js +17 -3
  75. package/dist/locale/et_EE.js +17 -3
  76. package/dist/locale/eu_ES.js +8 -4
  77. package/dist/locale/fa_IR.js +2 -1
  78. package/dist/locale/fi_FI.js +35 -4
  79. package/dist/locale/fr_BE.js +20 -3
  80. package/dist/locale/fr_CA.js +20 -3
  81. package/dist/locale/fr_FR.js +20 -3
  82. package/dist/locale/ga_IE.js +24 -5
  83. package/dist/locale/gl_ES.js +36 -5
  84. package/dist/locale/he_IL.js +30 -5
  85. package/dist/locale/hi_IN.js +20 -4
  86. package/dist/locale/hr_HR.js +21 -4
  87. package/dist/locale/hu_HU.js +43 -3
  88. package/dist/locale/hy_AM.js +33 -4
  89. package/dist/locale/id_ID.js +2 -1
  90. package/dist/locale/is_IS.js +44 -3
  91. package/dist/locale/it_IT.js +6 -3
  92. package/dist/locale/ja_JP.js +2 -1
  93. package/dist/locale/ka_GE.js +20 -4
  94. package/dist/locale/kk_KZ.js +22 -5
  95. package/dist/locale/km_KH.js +35 -4
  96. package/dist/locale/kmr_IQ.js +45 -4
  97. package/dist/locale/kn_IN.js +18 -3
  98. package/dist/locale/ko_KR.js +8 -4
  99. package/dist/locale/ku_IQ.js +45 -4
  100. package/dist/locale/lt_LT.js +8 -4
  101. package/dist/locale/lv_LV.js +45 -4
  102. package/dist/locale/mk_MK.js +36 -4
  103. package/dist/locale/ml_IN.js +20 -4
  104. package/dist/locale/mn_MN.js +17 -3
  105. package/dist/locale/mr_IN.js +13 -1
  106. package/dist/locale/ms_MY.js +8 -4
  107. package/dist/locale/my_MM.js +18 -5
  108. package/dist/locale/ne_NP.js +2 -1
  109. package/dist/locale/nl_BE.js +20 -4
  110. package/dist/locale/nl_NL.js +20 -4
  111. package/dist/locale/pl_PL.js +17 -3
  112. package/dist/locale/pt_BR.js +6 -3
  113. package/dist/locale/pt_PT.js +2 -1
  114. package/dist/locale/ro_RO.js +20 -4
  115. package/dist/locale/ru_RU.js +4 -2
  116. package/dist/locale/si_LK.js +17 -3
  117. package/dist/locale/sk_SK.js +17 -3
  118. package/dist/locale/sl_SI.js +45 -4
  119. package/dist/locale/sr_RS.js +20 -4
  120. package/dist/locale/sv_SE.js +14 -4
  121. package/dist/locale/ta_IN.js +23 -5
  122. package/dist/locale/th_TH.js +2 -1
  123. package/dist/locale/tk_TK.js +21 -5
  124. package/dist/locale/tr_TR.js +17 -2
  125. package/dist/locale/uk_UA.js +12 -3
  126. package/dist/locale/ur_PK.js +20 -4
  127. package/dist/locale/uz_UZ.js +14 -4
  128. package/dist/locale/vi_VN.js +2 -1
  129. package/dist/locale/zh_CN.js +2 -1
  130. package/dist/locale/zh_HK.js +4 -2
  131. package/dist/locale/zh_TW.js +4 -2
  132. package/dist/masonry/Masonry.d.ts +18 -10
  133. package/dist/masonry/Masonry.js +4 -4
  134. package/dist/masonry/MasonryItem.d.ts +2 -2
  135. package/dist/mentions/index.d.ts +4 -4
  136. package/dist/mentions/index.js +62 -1
  137. package/dist/menu/MenuItem.d.ts +3 -3
  138. package/dist/menu/MenuItem.js +1 -1
  139. package/dist/menu/MenuItemGroup.d.ts +2 -2
  140. package/dist/menu/OverrideContext.d.ts +2 -2
  141. package/dist/menu/SubMenu.d.ts +2 -2
  142. package/dist/message/PureList.d.ts +3 -1
  143. package/dist/message/PureList.js +4 -0
  144. package/dist/message/interface.d.ts +3 -3
  145. package/dist/modal/ConfirmDialog.d.ts +5 -1
  146. package/dist/modal/ConfirmDialog.js +40 -19
  147. package/dist/modal/Modal.d.ts +12 -3
  148. package/dist/modal/Modal.js +24 -7
  149. package/dist/modal/interface.d.ts +14 -14
  150. package/dist/notification/PureList.d.ts +3 -1
  151. package/dist/notification/PureList.js +4 -0
  152. package/dist/notification/interface.d.ts +8 -8
  153. package/dist/notification/util.d.ts +2 -2
  154. package/dist/package.js +1 -1
  155. package/dist/pagination/Pagination.js +1 -1
  156. package/dist/pagination/interface.d.ts +7 -7
  157. package/dist/pagination/style/index.js +1 -1
  158. package/dist/popconfirm/index.d.ts +6 -6
  159. package/dist/popover/index.d.ts +4 -4
  160. package/dist/radio/radio.js +4 -4
  161. package/dist/radio/radioButton.js +4 -4
  162. package/dist/result/index.d.ts +5 -5
  163. package/dist/segmented/index.d.ts +38 -20
  164. package/dist/segmented/index.js +5 -10
  165. package/dist/select/index.d.ts +4 -4
  166. package/dist/select/style/select-input-customize.js +1 -0
  167. package/dist/slider/index.js +1 -1
  168. package/dist/space/Compact.d.ts +1 -1
  169. package/dist/space/index.d.ts +2 -2
  170. package/dist/spin/index.d.ts +5 -5
  171. package/dist/splitter/SplitBar.js +12 -1
  172. package/dist/splitter/interface.d.ts +6 -6
  173. package/dist/statistic/Statistic.d.ts +4 -4
  174. package/dist/steps/index.d.ts +6 -6
  175. package/dist/style/motion/util.js +2 -2
  176. package/dist/switch/index.d.ts +4 -4
  177. package/dist/switch/index.js +7 -7
  178. package/dist/switch/style/index.js +3 -1
  179. package/dist/table/InternalTable.js +8 -25
  180. package/dist/table/Table.d.ts +20 -9
  181. package/dist/table/hooks/useColumnTitleProps.d.ts +8 -0
  182. package/dist/table/hooks/useColumnTitleProps.js +16 -0
  183. package/dist/table/hooks/useFilter/FilterDropdown.js +2 -1
  184. package/dist/table/hooks/useSpinProps.d.ts +7 -0
  185. package/dist/table/hooks/useSpinProps.js +14 -0
  186. package/dist/table/util.d.ts +5 -2
  187. package/dist/table/util.js +10 -1
  188. package/dist/tabs/index.d.ts +5 -5
  189. package/dist/tag/CheckableTag.d.ts +2 -2
  190. package/dist/tag/index.d.ts +3 -3
  191. package/dist/time-picker/index.d.ts +2 -2
  192. package/dist/time-picker/index.js +211 -19
  193. package/dist/timeline/Timeline.d.ts +9 -9
  194. package/dist/tooltip/PurePanel.js +1 -1
  195. package/dist/tooltip/index.d.ts +3 -3
  196. package/dist/tour/interface.d.ts +4 -4
  197. package/dist/transfer/Actions.d.ts +2 -2
  198. package/dist/transfer/Transfer.d.ts +2 -2
  199. package/dist/transfer/index.d.ts +27 -6
  200. package/dist/transfer/interface.d.ts +17 -17
  201. package/dist/transfer/search.d.ts +2 -2
  202. package/dist/tree/Tree.d.ts +6 -6
  203. package/dist/tree-select/index.d.ts +57 -28
  204. package/dist/tree-select/index.js +4 -3
  205. package/dist/typography/Base/Ellipsis.d.ts +2 -2
  206. package/dist/typography/Editable.d.ts +2 -2
  207. package/dist/typography/interface.d.ts +8 -8
  208. package/dist/upload/UploadList/index.js +1 -1
  209. package/package.json +18 -18
  210. package/web-tags.json +1037 -1025
  211. package/web-types.json +3213 -3174
@@ -1,4 +1,4 @@
1
- import { VueNode as VueNode$1 } from "../_util/type.js";
1
+ import { VueNode } from "../_util/type.js";
2
2
  import { SlotsType } from "vue";
3
3
 
4
4
  //#region src/transfer/search.d.ts
@@ -17,7 +17,7 @@ interface TransferSearchEmitsProps {
17
17
  onClear?: TransferSearchEmits['clear'];
18
18
  }
19
19
  interface TransferSearchSlots {
20
- prefix?: () => VueNode$1;
20
+ prefix?: () => VueNode;
21
21
  }
22
22
  declare const Search: import("vue").DefineSetupFnComponent<TransferSearchProps, TransferSearchEmits, SlotsType<TransferSearchSlots>, TransferSearchProps, import("vue").PublicProps>;
23
23
  //#endregion
@@ -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 { CSSProperties, SlotsType } from "vue";
4
4
  import { BasicDataNode, DataNode, TreeProps as TreeProps$1, TreeRef } from "@v-c/tree";
@@ -16,8 +16,8 @@ interface AntdTreeNodeAttribute {
16
16
  selected: boolean;
17
17
  checked: boolean;
18
18
  halfChecked: boolean;
19
- title: VueNode$1;
20
- children: VueNode$1;
19
+ title: VueNode;
20
+ children: VueNode;
21
21
  pos: string;
22
22
  dragOver: boolean;
23
23
  dragOverGapTop: boolean;
@@ -42,7 +42,7 @@ interface AntTreeNodeProps {
42
42
  selected?: boolean;
43
43
  selectable?: boolean;
44
44
  icon?: TreeIcon;
45
- children?: VueNode$1;
45
+ children?: VueNode;
46
46
  [customProp: string]: any;
47
47
  }
48
48
  type AntTreeNode = AntTreeNodeProps;
@@ -81,7 +81,7 @@ interface AntTreeNodeDropEvent {
81
81
  type TreeNodeNormal = DataNode;
82
82
  type DraggableFn = (node: DataNode) => boolean;
83
83
  interface DraggableConfig {
84
- icon?: VueNode$1;
84
+ icon?: VueNode;
85
85
  nodeDraggable?: DraggableFn;
86
86
  }
87
87
  type TreeSemanticName = keyof TreeSemanticClassNames & keyof TreeSemanticStyles;
@@ -146,7 +146,7 @@ interface TreeProps<T extends BasicDataNode = DataNode> extends Omit<TreeProps$1
146
146
  showIcon?: boolean;
147
147
  icon?: TreeIcon;
148
148
  switcherIcon?: SwitcherIcon;
149
- switcherLoadingIcon?: VueNode$1;
149
+ switcherLoadingIcon?: VueNode;
150
150
  prefixCls?: string;
151
151
  blockNode?: boolean;
152
152
  tabindex?: number;
@@ -1,11 +1,11 @@
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 { InputStatus } from "../_util/statusUtils.js";
5
5
  import { SelectCommonPlacement } from "../_util/motion.js";
6
6
  import { SwitcherIcon, TreeProps } from "../tree/Tree.js";
7
7
  import { Variant } from "../config-provider/context.js";
8
- import { App, CSSProperties, SlotsType } from "vue";
8
+ import { App, CSSProperties, PublicProps } from "vue";
9
9
  import { DataNode, SHOW_ALL, SHOW_CHILD, SHOW_PARENT, TreeNode, TreeSelectProps as TreeSelectProps$1 } from "@v-c/tree-select";
10
10
 
11
11
  //#region src/tree-select/index.d.ts
@@ -13,7 +13,7 @@ type RawValue = string | number;
13
13
  interface LabeledValue {
14
14
  key?: string;
15
15
  value: RawValue;
16
- label: VueNode$1;
16
+ label: VueNode;
17
17
  }
18
18
  type SelectValue = RawValue | RawValue[] | LabeledValue | LabeledValue[];
19
19
  type TreeSelectSemanticName = keyof TreeSelectSemanticClassNames & keyof TreeSelectSemanticStyles;
@@ -64,10 +64,10 @@ interface BaseTreeSelectProps<ValueType = any, OptionType extends DataNode = Dat
64
64
  status?: InputStatus;
65
65
  variant?: Variant;
66
66
  }
67
- interface TreeSelectProps<ValueType = any, OptionType extends DataNode = DataNode> extends BaseTreeSelectProps<ValueType, OptionType>, TreeSelectEmitsProps {
67
+ interface TreeSelectProps<ValueType = any, OptionType extends DataNode = DataNode> extends BaseTreeSelectProps<ValueType, OptionType>, TreeSelectEmitsProps<ValueType, OptionType> {
68
68
  styles?: TreeSelectStylesType;
69
69
  classes?: TreeSelectClassNamesType;
70
- suffixIcon?: VueNode$1;
70
+ suffixIcon?: VueNode;
71
71
  size?: SizeType;
72
72
  disabled?: boolean;
73
73
  placement?: SelectCommonPlacement;
@@ -100,50 +100,79 @@ interface TreeSelectProps<ValueType = any, OptionType extends DataNode = DataNod
100
100
  */
101
101
  variant?: Variant;
102
102
  }
103
- interface TreeSelectEmits {
103
+ interface TreeSelectEmits<ValueType = any, OptionType extends DataNode = DataNode> {
104
104
  'focus': (e: FocusEvent) => void;
105
105
  'blur': (e: FocusEvent) => void;
106
106
  'openChange': (open: boolean) => void;
107
107
  'dropdownVisibleChange': (open: boolean) => void;
108
- 'select': NonNullable<TreeSelectProps$1['onSelect']>;
109
- 'treeExpand': NonNullable<TreeSelectProps$1['onTreeExpand']>;
110
- 'treeLoad': NonNullable<TreeSelectProps$1['onTreeLoad']>;
111
- 'change': NonNullable<TreeSelectProps$1['onChange']>;
108
+ 'select': NonNullable<TreeSelectProps$1<ValueType, OptionType>['onSelect']>;
109
+ 'treeExpand': NonNullable<TreeSelectProps$1<ValueType, OptionType>['onTreeExpand']>;
110
+ 'treeLoad': NonNullable<TreeSelectProps$1<ValueType, OptionType>['onTreeLoad']>;
111
+ 'change': NonNullable<TreeSelectProps$1<ValueType, OptionType>['onChange']>;
112
112
  'update:value': (value: any) => void;
113
- 'deselect': NonNullable<TreeSelectProps$1['onDeselect']>;
114
- 'popupScroll': NonNullable<TreeSelectProps$1['onPopupScroll']>;
115
- 'search': NonNullable<TreeSelectProps$1['onSearch']>;
113
+ 'deselect': NonNullable<TreeSelectProps$1<ValueType, OptionType>['onDeselect']>;
114
+ 'popupScroll': NonNullable<TreeSelectProps$1<ValueType, OptionType>['onPopupScroll']>;
115
+ 'search': NonNullable<TreeSelectProps$1<ValueType, OptionType>['onSearch']>;
116
116
  }
117
- interface TreeSelectEmitsProps {
117
+ interface TreeSelectEmitsProps<ValueType = any, OptionType extends DataNode = DataNode> {
118
118
  onFocus?: TreeSelectEmits['focus'];
119
119
  onBlur?: TreeSelectEmits['blur'];
120
120
  onOpenChange?: TreeSelectEmits['openChange'];
121
121
  onDropdownVisibleChange?: TreeSelectEmits['dropdownVisibleChange'];
122
- onSelect?: TreeSelectEmits['select'];
123
- onTreeExpand?: TreeSelectEmits['treeExpand'];
124
- onTreeLoad?: TreeSelectEmits['treeLoad'];
125
- onChange?: TreeSelectEmits['change'];
122
+ onSelect?: TreeSelectEmits<ValueType, OptionType>['select'];
123
+ onTreeExpand?: TreeSelectEmits<ValueType, OptionType>['treeExpand'];
124
+ onTreeLoad?: TreeSelectEmits<ValueType, OptionType>['treeLoad'];
125
+ onChange?: TreeSelectEmits<ValueType, OptionType>['change'];
126
126
  'onUpdate:value'?: TreeSelectEmits['update:value'];
127
- onDeselect?: TreeSelectEmits['deselect'];
128
- onPopupScroll?: TreeSelectEmits['popupScroll'];
129
- onSearch?: TreeSelectEmits['search'];
127
+ onDeselect?: TreeSelectEmits<ValueType, OptionType>['deselect'];
128
+ onPopupScroll?: TreeSelectEmits<ValueType, OptionType>['popupScroll'];
129
+ onSearch?: TreeSelectEmits<ValueType, OptionType>['search'];
130
130
  }
131
- interface TreeSelectSlots {
131
+ interface TreeSelectSlots<OptionType extends DataNode = DataNode> {
132
132
  suffixIcon?: () => any;
133
133
  tagRender?: (props: any) => any;
134
134
  notFoundContent?: () => any;
135
135
  switcherIcon?: () => any;
136
- treeTitleRender?: (nodeData: DataNode) => any;
136
+ treeTitleRender?: (nodeData: OptionType) => any;
137
137
  }
138
- declare const InternalTreeSelect: import("vue").DefineSetupFnComponent<TreeSelectProps<any, DataNode>, TreeSelectEmits, SlotsType<TreeSelectSlots>, TreeSelectProps<any, DataNode>, import("vue").PublicProps>;
139
- declare const TreeSelect: typeof InternalTreeSelect & {
138
+ interface TreeSelectInstance<ValueType = any, OptionType extends DataNode = DataNode> {
139
+ $props: TreeSelectProps<ValueType, OptionType> & PublicProps;
140
+ $emit: {
141
+ (event: 'focus', ...args: Parameters<TreeSelectEmits['focus']>): void;
142
+ (event: 'blur', ...args: Parameters<TreeSelectEmits['blur']>): void;
143
+ (event: 'openChange', ...args: Parameters<TreeSelectEmits['openChange']>): void;
144
+ (event: 'dropdownVisibleChange', ...args: Parameters<TreeSelectEmits['dropdownVisibleChange']>): void;
145
+ (event: 'select', ...args: Parameters<TreeSelectEmits<ValueType, OptionType>['select']>): void;
146
+ (event: 'treeExpand', ...args: Parameters<TreeSelectEmits<ValueType, OptionType>['treeExpand']>): void;
147
+ (event: 'treeLoad', ...args: Parameters<TreeSelectEmits<ValueType, OptionType>['treeLoad']>): void;
148
+ (event: 'change', ...args: Parameters<TreeSelectEmits<ValueType, OptionType>['change']>): void;
149
+ (event: 'update:value', ...args: Parameters<TreeSelectEmits['update:value']>): void;
150
+ (event: 'deselect', ...args: Parameters<TreeSelectEmits<ValueType, OptionType>['deselect']>): void;
151
+ (event: 'popupScroll', ...args: Parameters<TreeSelectEmits<ValueType, OptionType>['popupScroll']>): void;
152
+ (event: 'search', ...args: Parameters<TreeSelectEmits<ValueType, OptionType>['search']>): void;
153
+ };
154
+ $slots: TreeSelectSlots<OptionType>;
155
+ focus: () => void;
156
+ blur: () => void;
157
+ scrollTo: (arg: any) => void;
158
+ }
159
+ interface TreeSelectConstructor {
160
+ new <ValueType = any, OptionType extends DataNode = DataNode>(props: TreeSelectProps<ValueType, OptionType>): TreeSelectInstance<ValueType, OptionType>;
161
+ /**
162
+ * Non-generic fallback signature. TypeScript infers from the last overload,
163
+ * so this keeps render-function usage like `h(TreeSelect, props)` resolvable
164
+ * against Vue's `Constructor<P>` overload of `h` (see #634), while the
165
+ * generic signature above still drives template/Volar inference.
166
+ */
167
+ new (props: TreeSelectProps<any, any>): TreeSelectInstance<any, any>;
140
168
  install: (app: App) => void;
141
169
  TreeNode: typeof TreeNode;
142
170
  SHOW_ALL: typeof SHOW_ALL;
143
171
  SHOW_PARENT: typeof SHOW_PARENT;
144
172
  SHOW_CHILD: typeof SHOW_CHILD;
145
173
  _InternalPanelDoNotUseOrYouWillBeFired: any;
146
- };
147
- declare const TreeSelectNode: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any>, import("vue").PublicProps>;
174
+ }
175
+ declare const TreeSelect: TreeSelectConstructor;
176
+ declare const TreeSelectNode: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any>, PublicProps>;
148
177
  //#endregion
149
- export { LabeledValue, SelectValue, TreeSelectClassNamesType, TreeSelectEmits, TreeSelectEmitsProps, TreeSelectNode, TreeSelectPopupSemanticClassNames, TreeSelectPopupSemanticName, TreeSelectPopupSemanticStyles, TreeSelectProps, TreeSelectSemanticClassNames, TreeSelectSemanticName, TreeSelectSemanticStyles, TreeSelectSlots, TreeSelectStylesType, TreeSelect as default };
178
+ export { LabeledValue, SelectValue, TreeSelectClassNamesType, TreeSelectConstructor, TreeSelectEmits, TreeSelectEmitsProps, TreeSelectNode, TreeSelectPopupSemanticClassNames, TreeSelectPopupSemanticName, TreeSelectPopupSemanticStyles, TreeSelectProps, TreeSelectSemanticClassNames, TreeSelectSemanticName, TreeSelectSemanticStyles, TreeSelectSlots, TreeSelectStylesType, TreeSelect as default };
@@ -24,7 +24,7 @@ import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, shal
24
24
  import { clsx } from "@v-c/util";
25
25
  import { getAttrStyleAndClass } from "@v-c/util/dist/props-util";
26
26
  import { getTransitionName } from "@v-c/util/dist/utils/transition";
27
- import { omit } from "es-toolkit";
27
+ import { omit } from "es-toolkit/compat";
28
28
  import VcTreeSelect, { SHOW_ALL, SHOW_CHILD, SHOW_PARENT, TreeNode } from "@v-c/tree-select";
29
29
  //#region src/tree-select/index.tsx
30
30
  const defaults = {
@@ -71,7 +71,7 @@ const omitKeys = [
71
71
  "styles",
72
72
  "classes"
73
73
  ];
74
- const TreeSelect = /* @__PURE__ */ defineComponent((props, { slots, expose, emit, attrs }) => {
74
+ const InternalTreeSelect = /* @__PURE__ */ defineComponent((props, { slots, expose, emit, attrs }) => {
75
75
  const { prefixCls: treeSelectPrefixCls, getPopupContainer: getContextPopupContainer, direction, styles: contextStyles, classes: contextClassNames, switcherIcon, virtual, getPrefixCls, rootPrefixCls } = useComponentBaseConfig("treeSelect", props, ["switcherIcon"], "tree-select");
76
76
  const configCtx = useConfig();
77
77
  const { prefixCls: customizePrefixCls, variant: customVariant, size: customizeSize, disabled: customDisabled, status: customStatus, classes, styles } = toPropsRefs$1(props, "prefixCls", "variant", "size", "disabled", "status", "classes", "styles");
@@ -768,13 +768,14 @@ const TreeSelect = /* @__PURE__ */ defineComponent((props, { slots, expose, emit
768
768
  name: "ATreeSelect",
769
769
  inheritAttrs: false
770
770
  });
771
+ const TreeSelect = InternalTreeSelect;
771
772
  const TreeSelectNode = TreeNode;
772
773
  TreeSelect.TreeNode = TreeNode;
773
774
  TreeSelect.SHOW_ALL = SHOW_ALL;
774
775
  TreeSelect.SHOW_PARENT = SHOW_PARENT;
775
776
  TreeSelect.SHOW_CHILD = SHOW_CHILD;
776
777
  TreeSelect.install = (app) => {
777
- app.component(TreeSelect.name, TreeSelect);
778
+ app.component(InternalTreeSelect.name, TreeSelect);
778
779
  app.component("ATreeSelectOption", TreeSelectNode);
779
780
  return app;
780
781
  };
@@ -1,10 +1,10 @@
1
- import { EmptyEmit, VueNode as VueNode$1 } from "../../_util/type.js";
1
+ import { EmptyEmit, VueNode } from "../../_util/type.js";
2
2
  import { SlotsType } from "vue";
3
3
 
4
4
  //#region src/typography/Base/Ellipsis.d.ts
5
5
  interface EllipsisProps {
6
6
  enableMeasure?: boolean;
7
- text?: VueNode$1;
7
+ text?: VueNode;
8
8
  width: number;
9
9
  rows: number;
10
10
  onEllipsis: (isEllipsis: boolean) => void;
@@ -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 { TypographySemanticClassNames, TypographySemanticStyles } from "./interface.js";
3
3
  import { DirectionType } from "../config-provider/context.js";
4
4
  import { CSSProperties, SlotsType } from "vue";
@@ -16,7 +16,7 @@ interface EditableProps {
16
16
  'direction'?: DirectionType;
17
17
  'maxLength'?: number;
18
18
  'autoSize'?: any;
19
- 'enterIcon'?: VueNode$1;
19
+ 'enterIcon'?: VueNode;
20
20
  'component'?: string;
21
21
  /**
22
22
  * Semantic class names. `root` applies to the wrapper div, `textarea`
@@ -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 { TooltipProps } from "../tooltip/index.js";
4
4
  import { ComponentBaseProps, DirectionType } from "../config-provider/context.js";
@@ -10,16 +10,16 @@ type BaseType = 'secondary' | 'success' | 'warning' | 'danger';
10
10
  interface CopyConfig {
11
11
  text?: string | (() => string | Promise<string>);
12
12
  onCopy?: (event?: MouseEvent) => void;
13
- icon?: VueNode$1 | VueNode$1[];
14
- tooltips?: VueNode$1 | VueNode$1[] | false;
13
+ icon?: VueNode | VueNode[];
14
+ tooltips?: VueNode | VueNode[] | false;
15
15
  format?: 'text/plain' | 'text/html';
16
16
  tabIndex?: number;
17
17
  }
18
18
  interface EditConfig {
19
19
  text?: string;
20
20
  editing?: boolean;
21
- icon?: VueNode$1;
22
- tooltip?: VueNode$1;
21
+ icon?: VueNode;
22
+ tooltip?: VueNode;
23
23
  onStart?: () => void;
24
24
  onChange?: (value: string) => void;
25
25
  onCancel?: () => void;
@@ -27,21 +27,21 @@ interface EditConfig {
27
27
  maxLength?: number;
28
28
  autoSize?: boolean | TextAreaProps['autoSize'];
29
29
  triggerType?: ('icon' | 'text')[];
30
- enterIcon?: VueNode$1;
30
+ enterIcon?: VueNode;
31
31
  tabIndex?: number;
32
32
  }
33
33
  interface EllipsisConfig {
34
34
  rows?: number;
35
35
  expandable?: boolean | 'collapsible';
36
36
  suffix?: string;
37
- symbol?: VueNode$1 | ((expanded: boolean) => VueNode$1);
37
+ symbol?: VueNode | ((expanded: boolean) => VueNode);
38
38
  defaultExpanded?: boolean;
39
39
  expanded?: boolean;
40
40
  onExpand?: (e: MouseEvent, info: {
41
41
  expanded: boolean;
42
42
  }) => void;
43
43
  onEllipsis?: (ellipsis: boolean) => void;
44
- tooltip?: VueNode$1 | TooltipProps;
44
+ tooltip?: VueNode | TooltipProps;
45
45
  }
46
46
  /**
47
47
  * @since 1.3.0 (mirrors ant-design 6.4 ActionsConfig)
@@ -53,7 +53,7 @@ const UploadList = /* @__PURE__ */ defineComponent((props, { slots }) => {
53
53
  const onInternalDownload = (file) => {
54
54
  props?.onDownload?.(file);
55
55
  };
56
- const onInternalClose = (file) => {
56
+ const onInternalClose = (file, _e) => {
57
57
  props.onRemove?.(file);
58
58
  };
59
59
  const internalIconRender = (file) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "antdv-next",
3
3
  "type": "module",
4
- "version": "1.4.0",
4
+ "version": "1.4.2",
5
5
  "description": "Ant Design Vue3 Component Library",
6
6
  "author": {
7
7
  "email": "aibayanyu@gamil.com",
@@ -180,46 +180,46 @@
180
180
  "@ant-design/fast-color": "^3.0.1",
181
181
  "@antdv-next/icons": "^1.1.1",
182
182
  "@v-c/async-validator": "^1.0.1",
183
- "@v-c/cascader": "^1.1.1",
183
+ "@v-c/cascader": "^1.1.2",
184
184
  "@v-c/checkbox": "^1.0.1",
185
- "@v-c/collapse": "^1.0.0",
185
+ "@v-c/collapse": "^1.0.1",
186
186
  "@v-c/color-picker": "^1.0.6",
187
187
  "@v-c/dialog": "^1.2.0",
188
188
  "@v-c/drawer": "^1.0.6",
189
- "@v-c/dropdown": "^1.0.2",
189
+ "@v-c/dropdown": "^1.0.4",
190
190
  "@v-c/image": "^1.0.12",
191
191
  "@v-c/input": "^1.1.0",
192
- "@v-c/input-number": "^1.0.5",
193
- "@v-c/mentions": "^1.1.0",
194
- "@v-c/menu": "^1.2.1",
192
+ "@v-c/input-number": "^1.0.6",
193
+ "@v-c/mentions": "^1.1.3",
194
+ "@v-c/menu": "^1.2.2",
195
195
  "@v-c/mutate-observer": "^1.0.2",
196
- "@v-c/notification": "^2.0.1",
196
+ "@v-c/notification": "^2.0.2",
197
197
  "@v-c/pagination": "^1.0.1",
198
- "@v-c/picker": "^1.2.0",
198
+ "@v-c/picker": "^1.2.2",
199
199
  "@v-c/progress": "^1.0.1",
200
200
  "@v-c/qrcode": "^1.0.1",
201
201
  "@v-c/rate": "^1.0.1",
202
- "@v-c/resize-observer": "^1.1.2",
202
+ "@v-c/resize-observer": "^1.1.3",
203
203
  "@v-c/segmented": "^1.0.3",
204
- "@v-c/select": "^1.1.3",
204
+ "@v-c/select": "^1.1.4",
205
205
  "@v-c/slick": "^1.0.2",
206
206
  "@v-c/slider": "^1.1.0",
207
207
  "@v-c/steps": "^1.0.0",
208
208
  "@v-c/switch": "^1.0.1",
209
- "@v-c/table": "^1.1.6",
209
+ "@v-c/table": "^1.1.8",
210
210
  "@v-c/tabs": "^1.2.1",
211
211
  "@v-c/textarea": "^1.1.0",
212
- "@v-c/tooltip": "^1.0.3",
213
- "@v-c/tour": "^1.1.0",
212
+ "@v-c/tooltip": "^1.0.4",
213
+ "@v-c/tour": "^1.1.1",
214
214
  "@v-c/tree": "^1.1.1",
215
215
  "@v-c/tree-select": "^1.1.1",
216
- "@v-c/trigger": "^1.0.16",
216
+ "@v-c/trigger": "^1.0.18",
217
217
  "@v-c/upload": "^1.0.0",
218
- "@v-c/util": "^1.0.19",
219
- "@v-c/virtual-list": "^1.0.9",
218
+ "@v-c/util": "^1.0.21",
219
+ "@v-c/virtual-list": "^1.1.0",
220
220
  "@vueuse/core": "^14.3.0",
221
221
  "dayjs": "^1.11.21",
222
- "es-toolkit": "1.48.1",
222
+ "es-toolkit": "1.49.0",
223
223
  "scroll-into-view-if-needed": "^3.1.0",
224
224
  "throttle-debounce": "^5.0.2",
225
225
  "@antdv-next/cssinjs": "^1.0.6"