naive-ui 2.43.2 → 2.44.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.
Files changed (580) hide show
  1. package/README.md +2 -1
  2. package/README.zh-CN.md +2 -1
  3. package/dist/index.js +1001 -446
  4. package/dist/index.mjs +1001 -446
  5. package/dist/index.prod.js +1 -1
  6. package/dist/index.prod.mjs +1 -1
  7. package/es/_internal/index.d.ts +1 -1
  8. package/es/_internal/loading/index.d.ts +1 -1
  9. package/es/_internal/loading/src/Loading.d.ts +26 -18
  10. package/es/_internal/loading/src/Loading.mjs +9 -9
  11. package/es/_internal/scrollbar/src/Scrollbar.d.ts +8 -3
  12. package/es/_internal/scrollbar/src/Scrollbar.mjs +6 -2
  13. package/es/_internal/select-menu/src/SelectMenu.d.ts +5 -1
  14. package/es/_internal/select-menu/src/SelectMenu.mjs +19 -9
  15. package/es/_mixins/use-form-item.d.ts +1 -2
  16. package/es/auto-complete/index.d.ts +1 -0
  17. package/es/auto-complete/src/AutoComplete.d.ts +9 -4
  18. package/es/auto-complete/src/AutoComplete.mjs +21 -3
  19. package/es/auto-complete/src/public-types.d.ts +1 -0
  20. package/es/breadcrumb/src/BreadcrumbItem.d.ts +13 -0
  21. package/es/breadcrumb/src/BreadcrumbItem.mjs +5 -1
  22. package/es/button/index.d.ts +1 -0
  23. package/es/button/src/Button.d.ts +11 -8
  24. package/es/button/src/Button.mjs +14 -11
  25. package/es/button/src/public-types.d.ts +4 -0
  26. package/es/button-group/src/ButtonGroup.d.ts +5 -15
  27. package/es/button-group/src/ButtonGroup.mjs +1 -4
  28. package/es/card/index.d.ts +1 -0
  29. package/es/card/src/Card.d.ts +11 -18
  30. package/es/card/src/Card.mjs +25 -17
  31. package/es/card/src/public-types.d.ts +1 -0
  32. package/es/card/src/public-types.mjs +1 -0
  33. package/es/card/src/styles/index.cssr.mjs +44 -21
  34. package/es/carousel/src/Carousel.d.ts +1 -1
  35. package/es/carousel/src/CarouselDots.d.ts +1 -1
  36. package/es/cascader/index.d.ts +1 -0
  37. package/es/cascader/src/Cascader.d.ts +12 -5
  38. package/es/cascader/src/Cascader.mjs +22 -2
  39. package/es/cascader/src/CascaderMenu.d.ts +1 -0
  40. package/es/cascader/src/CascaderMenu.mjs +16 -5
  41. package/es/cascader/src/CascaderOption.d.ts +1 -0
  42. package/es/cascader/src/CascaderOption.mjs +4 -2
  43. package/es/cascader/src/CascaderSelectMenu.d.ts +1 -0
  44. package/es/cascader/src/CascaderSelectMenu.mjs +5 -2
  45. package/es/cascader/src/interface.d.ts +4 -0
  46. package/es/cascader/src/public-types.d.ts +3 -0
  47. package/es/cascader/src/public-types.mjs +1 -0
  48. package/es/checkbox/index.d.ts +1 -0
  49. package/es/checkbox/src/Checkbox.d.ts +4 -3
  50. package/es/checkbox/src/Checkbox.mjs +5 -1
  51. package/es/checkbox/src/public-types.d.ts +1 -0
  52. package/es/checkbox/src/public-types.mjs +1 -0
  53. package/es/color-picker/index.d.ts +1 -0
  54. package/es/color-picker/src/ColorPicker.d.ts +11 -5
  55. package/es/color-picker/src/ColorPicker.mjs +56 -23
  56. package/es/color-picker/src/ColorPickerTrigger.mjs +3 -3
  57. package/es/color-picker/src/public-types.d.ts +1 -0
  58. package/es/color-picker/src/public-types.mjs +1 -0
  59. package/es/color-picker/src/styles/index.cssr.mjs +11 -14
  60. package/es/config-provider/src/internal-interface.d.ts +127 -5
  61. package/es/countdown/src/Countdown.d.ts +1 -1
  62. package/es/data-table/index.d.ts +1 -1
  63. package/es/data-table/index.mjs +1 -2
  64. package/es/data-table/src/DataTable.d.ts +8 -22
  65. package/es/data-table/src/DataTable.mjs +30 -20
  66. package/es/data-table/src/MainTable.d.ts +1 -0
  67. package/es/data-table/src/MainTable.mjs +4 -2
  68. package/es/data-table/src/TableParts/Body.d.ts +4 -3
  69. package/es/data-table/src/TableParts/Body.mjs +46 -54
  70. package/es/data-table/src/interface.d.ts +5 -10
  71. package/es/data-table/src/interface.mjs +2 -8
  72. package/{lib/data-table/src/publicTypes.d.ts → es/data-table/src/public-types.d.ts} +3 -0
  73. package/es/data-table/src/public-types.mjs +1 -0
  74. package/es/data-table/src/use-scroll.d.ts +5 -1
  75. package/es/data-table/src/use-scroll.mjs +16 -4
  76. package/es/data-table/src/utils.d.ts +1 -1
  77. package/es/date-picker/src/DatePicker.d.ts +10 -3
  78. package/es/date-picker/src/DatePicker.mjs +23 -6
  79. package/es/date-picker/src/panel/date.d.ts +10 -0
  80. package/es/date-picker/src/panel/date.mjs +2 -0
  81. package/es/date-picker/src/panel/daterange.d.ts +10 -0
  82. package/es/date-picker/src/panel/daterange.mjs +4 -0
  83. package/es/date-picker/src/panel/datetime.d.ts +10 -0
  84. package/es/date-picker/src/panel/datetime.mjs +2 -0
  85. package/es/date-picker/src/panel/datetimerange.d.ts +10 -0
  86. package/es/date-picker/src/panel/datetimerange.mjs +4 -0
  87. package/es/date-picker/src/panel/month.d.ts +10 -0
  88. package/es/date-picker/src/panel/month.mjs +6 -0
  89. package/es/date-picker/src/panel/monthrange.d.ts +10 -0
  90. package/es/date-picker/src/panel/panelHeader.d.ts +34 -1
  91. package/es/date-picker/src/panel/panelHeader.mjs +21 -2
  92. package/es/date-picker/src/panel/use-calendar.d.ts +4 -0
  93. package/es/date-picker/src/panel/use-dual-calendar.d.ts +4 -0
  94. package/es/date-picker/src/panel/use-panel-common.d.ts +4 -0
  95. package/es/date-picker/src/panel/use-panel-common.mjs +4 -0
  96. package/es/date-picker/src/props.d.ts +4 -1
  97. package/es/date-picker/src/props.mjs +2 -0
  98. package/es/date-picker/src/public-types.d.ts +1 -0
  99. package/es/descriptions/index.d.ts +1 -0
  100. package/es/descriptions/src/Descriptions.d.ts +5 -13
  101. package/es/descriptions/src/Descriptions.mjs +16 -14
  102. package/es/descriptions/src/public-types.d.ts +1 -0
  103. package/es/descriptions/src/public-types.mjs +1 -0
  104. package/es/dialog/src/DialogProvider.d.ts +40 -16
  105. package/es/dialog/src/dialogProps.d.ts +1 -1
  106. package/es/dropdown/index.d.ts +1 -0
  107. package/es/dropdown/src/Dropdown.d.ts +9 -17
  108. package/es/dropdown/src/Dropdown.mjs +11 -8
  109. package/es/dropdown/src/DropdownMenu.d.ts +1 -1
  110. package/es/dropdown/src/DropdownOption.d.ts +1 -1
  111. package/es/dropdown/src/public-types.d.ts +1 -0
  112. package/es/dropdown/src/public-types.mjs +1 -0
  113. package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
  114. package/es/dynamic-tags/index.d.ts +1 -0
  115. package/es/dynamic-tags/src/DynamicTags.d.ts +5 -13
  116. package/es/dynamic-tags/src/DynamicTags.mjs +11 -8
  117. package/es/dynamic-tags/src/public-types.d.ts +1 -0
  118. package/es/dynamic-tags/src/public-types.mjs +1 -0
  119. package/es/float-button/src/FloatButton.d.ts +1 -1
  120. package/es/form/src/Form.d.ts +5 -4
  121. package/es/form/src/Form.mjs +11 -1
  122. package/es/form/src/FormItem.d.ts +5 -4
  123. package/es/form/src/FormItem.mjs +16 -13
  124. package/es/form/src/FormItemCol.d.ts +3 -1
  125. package/es/form/src/FormItemGridItem.d.ts +6 -3
  126. package/es/form/src/FormItemGridItem.mjs +1 -0
  127. package/es/form/src/FormItemRow.d.ts +2 -0
  128. package/es/form/src/interface.d.ts +8 -2
  129. package/es/form/src/public-types.d.ts +2 -0
  130. package/es/form/src/utils.d.ts +3 -2
  131. package/es/form/src/utils.mjs +7 -0
  132. package/es/input/index.d.ts +1 -0
  133. package/es/input/src/Input.d.ts +6 -5
  134. package/es/input/src/Input.mjs +19 -3
  135. package/es/input/src/InputGroupLabel.d.ts +4 -4
  136. package/es/input/src/InputGroupLabel.mjs +16 -10
  137. package/es/input/src/interface.d.ts +0 -1
  138. package/es/input/src/public-types.d.ts +1 -0
  139. package/es/input/src/public-types.mjs +1 -0
  140. package/es/input-number/src/InputNumber.d.ts +1 -1
  141. package/es/input-number/src/InputNumber.mjs +18 -2
  142. package/es/input-number/src/interface.d.ts +2 -1
  143. package/es/input-number/src/public-types.d.ts +1 -0
  144. package/es/input-number/src/public-types.mjs +1 -0
  145. package/es/input-otp/src/InputOtp.mjs +18 -2
  146. package/es/legacy-transfer/src/TransferList.d.ts +1 -0
  147. package/es/legacy-transfer/src/TransferList.mjs +17 -5
  148. package/es/log/index.d.ts +1 -0
  149. package/es/log/src/Log.d.ts +4 -0
  150. package/es/log/src/Log.mjs +3 -1
  151. package/es/log/src/LogLoader.d.ts +4 -0
  152. package/es/log/src/LogLoader.mjs +4 -3
  153. package/es/log/src/public-types.d.ts +2 -0
  154. package/es/log/src/public-types.mjs +1 -0
  155. package/es/marquee/src/Marquee.mjs +5 -3
  156. package/es/mention/index.d.ts +1 -0
  157. package/es/mention/src/Mention.d.ts +9 -5
  158. package/es/mention/src/Mention.mjs +21 -3
  159. package/es/mention/src/public-types.d.ts +1 -0
  160. package/es/mention/src/public-types.mjs +1 -0
  161. package/es/menu/src/MenuOptionContent.d.ts +1 -1
  162. package/es/message/index.d.ts +1 -0
  163. package/es/message/src/Message.d.ts +3 -0
  164. package/es/message/src/Message.mjs +4 -4
  165. package/es/message/src/MessageEnvironment.d.ts +2 -0
  166. package/es/message/src/MessageEnvironment.mjs +1 -0
  167. package/es/message/src/MessageProvider.d.ts +1 -1
  168. package/es/message/src/message-props.d.ts +2 -0
  169. package/es/message/src/message-props.mjs +1 -0
  170. package/es/message/src/public-types.d.ts +2 -0
  171. package/es/message/src/public-types.mjs +1 -0
  172. package/es/message/src/types.d.ts +2 -0
  173. package/es/modal/src/BodyWrapper.d.ts +5 -9
  174. package/es/modal/src/Modal.d.ts +7 -13
  175. package/es/modal/src/ModalEnvironment.d.ts +5 -9
  176. package/es/modal/src/composables.mjs +31 -4
  177. package/es/modal/src/presetProps.d.ts +3 -5
  178. package/es/notification/src/NotificationProvider.d.ts +3 -3
  179. package/es/number-animation/src/NumberAnimation.d.ts +2 -2
  180. package/es/pagination/index.d.ts +1 -0
  181. package/es/pagination/src/Pagination.d.ts +11 -16
  182. package/es/pagination/src/Pagination.mjs +12 -13
  183. package/es/pagination/src/interface.d.ts +0 -1
  184. package/es/pagination/src/public-types.d.ts +1 -0
  185. package/es/pagination/src/public-types.mjs +1 -0
  186. package/es/popconfirm/src/Popconfirm.d.ts +4 -4
  187. package/es/popover/src/Popover.d.ts +4 -4
  188. package/es/popover/src/PopoverBody.d.ts +1 -1
  189. package/es/popselect/index.d.ts +1 -0
  190. package/es/popselect/src/Popselect.d.ts +41 -47
  191. package/es/popselect/src/Popselect.mjs +4 -2
  192. package/es/popselect/src/PopselectPanel.d.ts +8 -16
  193. package/es/popselect/src/PopselectPanel.mjs +12 -7
  194. package/es/popselect/src/interface.d.ts +0 -1
  195. package/es/popselect/src/public-types.d.ts +1 -0
  196. package/es/popselect/src/public-types.mjs +1 -0
  197. package/es/radio/index.d.ts +1 -0
  198. package/es/radio/src/Radio.d.ts +3 -3
  199. package/es/radio/src/RadioButton.d.ts +3 -3
  200. package/es/radio/src/public-types.d.ts +1 -0
  201. package/es/radio/src/public-types.mjs +1 -0
  202. package/es/radio/src/use-radio.d.ts +4 -3
  203. package/es/radio/src/use-radio.mjs +8 -1
  204. package/es/rate/index.d.ts +1 -0
  205. package/es/rate/src/Rate.d.ts +4 -13
  206. package/es/rate/src/Rate.mjs +19 -9
  207. package/es/rate/src/public-types.d.ts +1 -0
  208. package/es/rate/src/public-types.mjs +1 -0
  209. package/es/result/index.d.ts +1 -0
  210. package/es/result/src/Result.d.ts +4 -13
  211. package/es/result/src/Result.mjs +9 -7
  212. package/es/result/src/public-types.d.ts +1 -0
  213. package/es/result/src/public-types.mjs +1 -0
  214. package/es/select/index.d.ts +1 -0
  215. package/es/select/src/Select.d.ts +26 -9
  216. package/es/select/src/Select.mjs +32 -4
  217. package/es/select/src/interface.d.ts +0 -1
  218. package/es/select/src/public-types.d.ts +1 -0
  219. package/es/select/src/public-types.mjs +1 -0
  220. package/es/skeleton/index.d.ts +1 -0
  221. package/es/skeleton/src/Skeleton.d.ts +4 -3
  222. package/es/skeleton/src/Skeleton.mjs +9 -4
  223. package/es/skeleton/src/public-types.d.ts +1 -0
  224. package/es/skeleton/src/public-types.mjs +1 -0
  225. package/es/space/index.d.ts +1 -0
  226. package/es/space/src/Space.d.ts +4 -13
  227. package/es/space/src/Space.mjs +8 -8
  228. package/es/space/src/public-types.d.ts +1 -0
  229. package/es/space/src/public-types.mjs +1 -0
  230. package/es/spin/src/Spin.d.ts +52 -6
  231. package/es/spin/src/Spin.mjs +5 -4
  232. package/es/switch/index.d.ts +1 -0
  233. package/es/switch/src/Switch.d.ts +7 -14
  234. package/es/switch/src/Switch.mjs +18 -8
  235. package/es/switch/src/public-types.d.ts +3 -0
  236. package/es/switch/src/public-types.mjs +1 -0
  237. package/es/table/index.d.ts +1 -0
  238. package/es/table/src/Table.d.ts +4 -13
  239. package/es/table/src/Table.mjs +9 -9
  240. package/es/table/src/public-types.d.ts +1 -0
  241. package/es/table/src/public-types.mjs +1 -0
  242. package/es/tabs/index.d.ts +1 -0
  243. package/es/tabs/src/Tab.d.ts +1 -1
  244. package/es/tabs/src/Tabs.d.ts +9 -18
  245. package/es/tabs/src/Tabs.mjs +13 -8
  246. package/es/tabs/src/public-types.d.ts +1 -0
  247. package/es/tabs/src/public-types.mjs +1 -0
  248. package/es/tag/index.d.ts +1 -0
  249. package/es/tag/src/Tag.d.ts +3 -13
  250. package/es/tag/src/Tag.mjs +8 -4
  251. package/es/tag/src/common-props.d.ts +2 -4
  252. package/es/tag/src/common-props.mjs +1 -4
  253. package/es/tag/src/public-types.d.ts +1 -0
  254. package/es/tag/src/public-types.mjs +1 -0
  255. package/es/time-picker/index.d.ts +1 -0
  256. package/es/time-picker/src/TimePicker.d.ts +6 -5
  257. package/es/time-picker/src/TimePicker.mjs +18 -2
  258. package/es/time-picker/src/interface.d.ts +0 -1
  259. package/es/time-picker/src/public-types.d.ts +1 -0
  260. package/es/time-picker/src/public-types.mjs +1 -0
  261. package/es/tooltip/src/Tooltip.d.ts +4 -4
  262. package/es/transfer/index.d.ts +1 -0
  263. package/es/transfer/src/Transfer.d.ts +5 -4
  264. package/es/transfer/src/Transfer.mjs +18 -2
  265. package/es/transfer/src/TransferList.d.ts +1 -0
  266. package/es/transfer/src/TransferList.mjs +12 -2
  267. package/es/transfer/src/public-types.d.ts +1 -0
  268. package/es/transfer/src/public-types.mjs +1 -0
  269. package/es/tree/index.d.ts +1 -0
  270. package/es/tree/src/Tree.d.ts +5 -0
  271. package/es/tree/src/Tree.mjs +25 -11
  272. package/es/tree/src/TreeNodeSwitcher.mjs +4 -3
  273. package/es/tree/src/interface.d.ts +2 -0
  274. package/es/tree/src/public-types.d.ts +2 -0
  275. package/es/tree/src/public-types.mjs +1 -0
  276. package/es/tree-select/index.d.ts +1 -0
  277. package/es/tree-select/src/TreeSelect.d.ts +10 -4
  278. package/es/tree-select/src/TreeSelect.mjs +32 -6
  279. package/es/tree-select/src/public-types.d.ts +1 -0
  280. package/es/tree-select/src/public-types.mjs +1 -0
  281. package/es/upload/src/Upload.d.ts +4 -1
  282. package/es/upload/src/Upload.mjs +5 -2
  283. package/es/upload/src/UploadFile.mjs +3 -1
  284. package/es/upload/src/interface.d.ts +4 -1
  285. package/es/upload/src/public-types.d.ts +4 -1
  286. package/es/version.d.ts +1 -1
  287. package/es/version.mjs +1 -1
  288. package/es/virtual-list/src/VirtualList.d.ts +1 -1
  289. package/es/watermark/src/Watermark.d.ts +2 -2
  290. package/lib/_internal/index.d.ts +1 -1
  291. package/lib/_internal/loading/index.d.ts +1 -1
  292. package/lib/_internal/loading/src/Loading.d.ts +26 -18
  293. package/lib/_internal/loading/src/Loading.js +11 -8
  294. package/lib/_internal/scrollbar/src/Scrollbar.d.ts +8 -3
  295. package/lib/_internal/scrollbar/src/Scrollbar.js +8 -3
  296. package/lib/_internal/select-menu/src/SelectMenu.d.ts +5 -1
  297. package/lib/_internal/select-menu/src/SelectMenu.js +15 -7
  298. package/lib/_mixins/use-form-item.d.ts +1 -2
  299. package/lib/auto-complete/index.d.ts +1 -0
  300. package/lib/auto-complete/src/AutoComplete.d.ts +9 -4
  301. package/lib/auto-complete/src/AutoComplete.js +18 -4
  302. package/lib/auto-complete/src/public-types.d.ts +1 -0
  303. package/lib/breadcrumb/src/BreadcrumbItem.d.ts +13 -0
  304. package/lib/breadcrumb/src/BreadcrumbItem.js +6 -2
  305. package/lib/button/index.d.ts +1 -0
  306. package/lib/button/src/Button.d.ts +11 -8
  307. package/lib/button/src/Button.js +8 -5
  308. package/lib/button/src/public-types.d.ts +4 -0
  309. package/lib/button-group/src/ButtonGroup.d.ts +5 -15
  310. package/lib/button-group/src/ButtonGroup.js +1 -4
  311. package/lib/card/index.d.ts +1 -0
  312. package/lib/card/src/Card.d.ts +11 -18
  313. package/lib/card/src/Card.js +17 -10
  314. package/lib/card/src/public-types.d.ts +1 -0
  315. package/lib/card/src/public-types.js +2 -0
  316. package/lib/card/src/styles/index.cssr.js +44 -21
  317. package/lib/carousel/src/Carousel.d.ts +1 -1
  318. package/lib/carousel/src/CarouselDots.d.ts +1 -1
  319. package/lib/cascader/index.d.ts +1 -0
  320. package/lib/cascader/src/Cascader.d.ts +12 -5
  321. package/lib/cascader/src/Cascader.js +19 -3
  322. package/lib/cascader/src/CascaderMenu.d.ts +1 -0
  323. package/lib/cascader/src/CascaderMenu.js +12 -4
  324. package/lib/cascader/src/CascaderOption.d.ts +1 -0
  325. package/lib/cascader/src/CascaderOption.js +3 -2
  326. package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -0
  327. package/lib/cascader/src/CascaderSelectMenu.js +3 -3
  328. package/lib/cascader/src/interface.d.ts +4 -0
  329. package/lib/cascader/src/public-types.d.ts +3 -0
  330. package/lib/cascader/src/public-types.js +2 -0
  331. package/lib/checkbox/index.d.ts +1 -0
  332. package/lib/checkbox/src/Checkbox.d.ts +4 -3
  333. package/lib/checkbox/src/Checkbox.js +5 -1
  334. package/lib/checkbox/src/public-types.d.ts +1 -0
  335. package/lib/checkbox/src/public-types.js +2 -0
  336. package/lib/color-picker/index.d.ts +1 -0
  337. package/lib/color-picker/src/ColorPicker.d.ts +11 -5
  338. package/lib/color-picker/src/ColorPicker.js +62 -28
  339. package/lib/color-picker/src/ColorPickerTrigger.js +4 -4
  340. package/lib/color-picker/src/public-types.d.ts +1 -0
  341. package/lib/color-picker/src/public-types.js +2 -0
  342. package/lib/color-picker/src/styles/index.cssr.js +11 -14
  343. package/lib/config-provider/src/internal-interface.d.ts +127 -5
  344. package/lib/countdown/src/Countdown.d.ts +1 -1
  345. package/lib/data-table/index.d.ts +1 -1
  346. package/lib/data-table/index.js +0 -15
  347. package/lib/data-table/src/DataTable.d.ts +8 -22
  348. package/lib/data-table/src/DataTable.js +22 -11
  349. package/lib/data-table/src/MainTable.d.ts +1 -0
  350. package/lib/data-table/src/MainTable.js +2 -2
  351. package/lib/data-table/src/TableParts/Body.d.ts +4 -3
  352. package/lib/data-table/src/TableParts/Body.js +56 -59
  353. package/lib/data-table/src/interface.d.ts +5 -10
  354. package/lib/data-table/src/interface.js +2 -5
  355. package/{es/data-table/src/publicTypes.d.ts → lib/data-table/src/public-types.d.ts} +3 -0
  356. package/lib/data-table/src/public-types.js +2 -0
  357. package/lib/data-table/src/use-scroll.d.ts +5 -1
  358. package/lib/data-table/src/use-scroll.js +16 -5
  359. package/lib/data-table/src/utils.d.ts +1 -1
  360. package/lib/date-picker/src/DatePicker.d.ts +10 -3
  361. package/lib/date-picker/src/DatePicker.js +18 -2
  362. package/lib/date-picker/src/panel/date.d.ts +10 -0
  363. package/lib/date-picker/src/panel/date.js +1 -1
  364. package/lib/date-picker/src/panel/daterange.d.ts +10 -0
  365. package/lib/date-picker/src/panel/daterange.js +2 -2
  366. package/lib/date-picker/src/panel/datetime.d.ts +10 -0
  367. package/lib/date-picker/src/panel/datetime.js +1 -1
  368. package/lib/date-picker/src/panel/datetimerange.d.ts +10 -0
  369. package/lib/date-picker/src/panel/datetimerange.js +2 -2
  370. package/lib/date-picker/src/panel/month.d.ts +10 -0
  371. package/lib/date-picker/src/panel/month.js +7 -0
  372. package/lib/date-picker/src/panel/monthrange.d.ts +10 -0
  373. package/lib/date-picker/src/panel/panelHeader.d.ts +34 -1
  374. package/lib/date-picker/src/panel/panelHeader.js +20 -3
  375. package/lib/date-picker/src/panel/use-calendar.d.ts +4 -0
  376. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +4 -0
  377. package/lib/date-picker/src/panel/use-panel-common.d.ts +4 -0
  378. package/lib/date-picker/src/panel/use-panel-common.js +4 -0
  379. package/lib/date-picker/src/props.d.ts +4 -1
  380. package/lib/date-picker/src/props.js +1 -1
  381. package/lib/date-picker/src/public-types.d.ts +1 -0
  382. package/lib/descriptions/index.d.ts +1 -0
  383. package/lib/descriptions/src/Descriptions.d.ts +5 -13
  384. package/lib/descriptions/src/Descriptions.js +17 -12
  385. package/lib/descriptions/src/public-types.d.ts +1 -0
  386. package/lib/descriptions/src/public-types.js +2 -0
  387. package/lib/dialog/src/DialogProvider.d.ts +40 -16
  388. package/lib/dialog/src/dialogProps.d.ts +1 -1
  389. package/lib/dropdown/index.d.ts +1 -0
  390. package/lib/dropdown/src/Dropdown.d.ts +9 -17
  391. package/lib/dropdown/src/Dropdown.js +16 -8
  392. package/lib/dropdown/src/DropdownMenu.d.ts +1 -1
  393. package/lib/dropdown/src/DropdownOption.d.ts +1 -1
  394. package/lib/dropdown/src/public-types.d.ts +1 -0
  395. package/lib/dropdown/src/public-types.js +2 -0
  396. package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
  397. package/lib/dynamic-tags/index.d.ts +1 -0
  398. package/lib/dynamic-tags/src/DynamicTags.d.ts +5 -13
  399. package/lib/dynamic-tags/src/DynamicTags.js +12 -8
  400. package/lib/dynamic-tags/src/public-types.d.ts +1 -0
  401. package/lib/dynamic-tags/src/public-types.js +2 -0
  402. package/lib/float-button/src/FloatButton.d.ts +1 -1
  403. package/lib/form/src/Form.d.ts +5 -4
  404. package/lib/form/src/Form.js +11 -1
  405. package/lib/form/src/FormItem.d.ts +5 -4
  406. package/lib/form/src/FormItem.js +17 -14
  407. package/lib/form/src/FormItemCol.d.ts +3 -1
  408. package/lib/form/src/FormItemGridItem.d.ts +6 -3
  409. package/lib/form/src/FormItemGridItem.js +1 -0
  410. package/lib/form/src/FormItemRow.d.ts +2 -0
  411. package/lib/form/src/interface.d.ts +8 -2
  412. package/lib/form/src/public-types.d.ts +2 -0
  413. package/lib/form/src/utils.d.ts +3 -2
  414. package/lib/form/src/utils.js +6 -0
  415. package/lib/input/index.d.ts +1 -0
  416. package/lib/input/src/Input.d.ts +6 -5
  417. package/lib/input/src/Input.js +17 -2
  418. package/lib/input/src/InputGroupLabel.d.ts +4 -4
  419. package/lib/input/src/InputGroupLabel.js +16 -7
  420. package/lib/input/src/interface.d.ts +0 -1
  421. package/lib/input/src/public-types.d.ts +1 -0
  422. package/lib/input/src/public-types.js +2 -0
  423. package/lib/input-number/src/InputNumber.d.ts +1 -1
  424. package/lib/input-number/src/InputNumber.js +16 -2
  425. package/lib/input-number/src/interface.d.ts +2 -1
  426. package/lib/input-number/src/public-types.d.ts +1 -0
  427. package/lib/input-number/src/public-types.js +2 -0
  428. package/lib/input-otp/src/InputOtp.js +16 -2
  429. package/lib/legacy-transfer/src/TransferList.d.ts +1 -0
  430. package/lib/legacy-transfer/src/TransferList.js +13 -1
  431. package/lib/log/index.d.ts +1 -0
  432. package/lib/log/src/Log.d.ts +4 -0
  433. package/lib/log/src/Log.js +2 -2
  434. package/lib/log/src/LogLoader.d.ts +4 -0
  435. package/lib/log/src/LogLoader.js +3 -2
  436. package/lib/log/src/public-types.d.ts +2 -0
  437. package/lib/log/src/public-types.js +2 -0
  438. package/lib/marquee/src/Marquee.js +3 -2
  439. package/lib/mention/index.d.ts +1 -0
  440. package/lib/mention/src/Mention.d.ts +9 -5
  441. package/lib/mention/src/Mention.js +18 -4
  442. package/lib/mention/src/public-types.d.ts +1 -0
  443. package/lib/mention/src/public-types.js +2 -0
  444. package/lib/menu/src/MenuOptionContent.d.ts +1 -1
  445. package/lib/message/index.d.ts +1 -0
  446. package/lib/message/src/Message.d.ts +3 -0
  447. package/lib/message/src/Message.js +3 -4
  448. package/lib/message/src/MessageEnvironment.d.ts +2 -0
  449. package/lib/message/src/MessageEnvironment.js +1 -1
  450. package/lib/message/src/MessageProvider.d.ts +1 -1
  451. package/lib/message/src/message-props.d.ts +2 -0
  452. package/lib/message/src/message-props.js +1 -0
  453. package/lib/message/src/public-types.d.ts +2 -0
  454. package/lib/message/src/public-types.js +2 -0
  455. package/lib/message/src/types.d.ts +2 -0
  456. package/lib/modal/src/BodyWrapper.d.ts +5 -9
  457. package/lib/modal/src/Modal.d.ts +7 -13
  458. package/lib/modal/src/ModalEnvironment.d.ts +5 -9
  459. package/lib/modal/src/composables.js +28 -4
  460. package/lib/modal/src/presetProps.d.ts +3 -5
  461. package/lib/notification/src/NotificationProvider.d.ts +3 -3
  462. package/lib/number-animation/src/NumberAnimation.d.ts +2 -2
  463. package/lib/pagination/index.d.ts +1 -0
  464. package/lib/pagination/src/Pagination.d.ts +11 -16
  465. package/lib/pagination/src/Pagination.js +14 -12
  466. package/lib/pagination/src/interface.d.ts +0 -1
  467. package/lib/pagination/src/public-types.d.ts +1 -0
  468. package/lib/pagination/src/public-types.js +2 -0
  469. package/lib/popconfirm/src/Popconfirm.d.ts +4 -4
  470. package/lib/popover/src/Popover.d.ts +4 -4
  471. package/lib/popover/src/PopoverBody.d.ts +1 -1
  472. package/lib/popselect/index.d.ts +1 -0
  473. package/lib/popselect/src/Popselect.d.ts +41 -47
  474. package/lib/popselect/src/Popselect.js +2 -2
  475. package/lib/popselect/src/PopselectPanel.d.ts +8 -16
  476. package/lib/popselect/src/PopselectPanel.js +12 -7
  477. package/lib/popselect/src/interface.d.ts +0 -1
  478. package/lib/popselect/src/public-types.d.ts +1 -0
  479. package/lib/popselect/src/public-types.js +2 -0
  480. package/lib/radio/index.d.ts +1 -0
  481. package/lib/radio/src/Radio.d.ts +3 -3
  482. package/lib/radio/src/RadioButton.d.ts +3 -3
  483. package/lib/radio/src/public-types.d.ts +1 -0
  484. package/lib/radio/src/public-types.js +2 -0
  485. package/lib/radio/src/use-radio.d.ts +4 -3
  486. package/lib/radio/src/use-radio.js +6 -1
  487. package/lib/rate/index.d.ts +1 -0
  488. package/lib/rate/src/Rate.d.ts +4 -13
  489. package/lib/rate/src/Rate.js +18 -7
  490. package/lib/rate/src/public-types.d.ts +1 -0
  491. package/lib/rate/src/public-types.js +2 -0
  492. package/lib/result/index.d.ts +1 -0
  493. package/lib/result/src/Result.d.ts +4 -13
  494. package/lib/result/src/Result.js +10 -7
  495. package/lib/result/src/public-types.d.ts +1 -0
  496. package/lib/result/src/public-types.js +2 -0
  497. package/lib/select/index.d.ts +1 -0
  498. package/lib/select/src/Select.d.ts +26 -9
  499. package/lib/select/src/Select.js +26 -6
  500. package/lib/select/src/interface.d.ts +0 -1
  501. package/lib/select/src/public-types.d.ts +1 -0
  502. package/lib/select/src/public-types.js +2 -0
  503. package/lib/skeleton/index.d.ts +1 -0
  504. package/lib/skeleton/src/Skeleton.d.ts +4 -3
  505. package/lib/skeleton/src/Skeleton.js +9 -4
  506. package/lib/skeleton/src/public-types.d.ts +1 -0
  507. package/lib/skeleton/src/public-types.js +2 -0
  508. package/lib/space/index.d.ts +1 -0
  509. package/lib/space/src/Space.d.ts +4 -13
  510. package/lib/space/src/Space.js +7 -6
  511. package/lib/space/src/public-types.d.ts +1 -0
  512. package/lib/space/src/public-types.js +2 -0
  513. package/lib/spin/src/Spin.d.ts +52 -6
  514. package/lib/spin/src/Spin.js +5 -4
  515. package/lib/switch/index.d.ts +1 -0
  516. package/lib/switch/src/Switch.d.ts +7 -14
  517. package/lib/switch/src/Switch.js +18 -8
  518. package/lib/switch/src/public-types.d.ts +3 -0
  519. package/lib/switch/src/public-types.js +2 -0
  520. package/lib/table/index.d.ts +1 -0
  521. package/lib/table/src/Table.d.ts +4 -13
  522. package/lib/table/src/Table.js +8 -7
  523. package/lib/table/src/public-types.d.ts +1 -0
  524. package/lib/table/src/public-types.js +2 -0
  525. package/lib/tabs/index.d.ts +1 -0
  526. package/lib/tabs/src/Tab.d.ts +1 -1
  527. package/lib/tabs/src/Tabs.d.ts +9 -18
  528. package/lib/tabs/src/Tabs.js +14 -8
  529. package/lib/tabs/src/public-types.d.ts +1 -0
  530. package/lib/tabs/src/public-types.js +2 -0
  531. package/lib/tag/index.d.ts +1 -0
  532. package/lib/tag/src/Tag.d.ts +3 -13
  533. package/lib/tag/src/Tag.js +9 -4
  534. package/lib/tag/src/common-props.d.ts +2 -4
  535. package/lib/tag/src/common-props.js +1 -4
  536. package/lib/tag/src/public-types.d.ts +1 -0
  537. package/lib/tag/src/public-types.js +2 -0
  538. package/lib/time-picker/index.d.ts +1 -0
  539. package/lib/time-picker/src/TimePicker.d.ts +6 -5
  540. package/lib/time-picker/src/TimePicker.js +16 -2
  541. package/lib/time-picker/src/interface.d.ts +0 -1
  542. package/lib/time-picker/src/public-types.d.ts +1 -0
  543. package/lib/time-picker/src/public-types.js +2 -0
  544. package/lib/tooltip/src/Tooltip.d.ts +4 -4
  545. package/lib/transfer/index.d.ts +1 -0
  546. package/lib/transfer/src/Transfer.d.ts +5 -4
  547. package/lib/transfer/src/Transfer.js +16 -2
  548. package/lib/transfer/src/TransferList.d.ts +1 -0
  549. package/lib/transfer/src/TransferList.js +9 -1
  550. package/lib/transfer/src/public-types.d.ts +1 -0
  551. package/lib/transfer/src/public-types.js +2 -0
  552. package/lib/tree/index.d.ts +1 -0
  553. package/lib/tree/src/Tree.d.ts +5 -0
  554. package/lib/tree/src/Tree.js +20 -9
  555. package/lib/tree/src/TreeNodeSwitcher.js +2 -2
  556. package/lib/tree/src/interface.d.ts +2 -0
  557. package/lib/tree/src/public-types.d.ts +2 -0
  558. package/lib/tree/src/public-types.js +2 -0
  559. package/lib/tree-select/index.d.ts +1 -0
  560. package/lib/tree-select/src/TreeSelect.d.ts +10 -4
  561. package/lib/tree-select/src/TreeSelect.js +28 -7
  562. package/lib/tree-select/src/public-types.d.ts +1 -0
  563. package/lib/tree-select/src/public-types.js +2 -0
  564. package/lib/upload/src/Upload.d.ts +4 -1
  565. package/lib/upload/src/Upload.js +2 -2
  566. package/lib/upload/src/UploadFile.js +1 -1
  567. package/lib/upload/src/interface.d.ts +4 -1
  568. package/lib/upload/src/public-types.d.ts +4 -1
  569. package/lib/version.d.ts +1 -1
  570. package/lib/version.js +1 -1
  571. package/lib/virtual-list/src/VirtualList.d.ts +1 -1
  572. package/lib/watermark/src/Watermark.d.ts +2 -2
  573. package/package.json +5 -3
  574. package/web-types.json +249 -61
  575. package/es/button/src/interface.d.ts +0 -2
  576. package/lib/button/src/interface.d.ts +0 -2
  577. /package/es/{button/src/interface.mjs → auto-complete/src/public-types.mjs} +0 -0
  578. /package/es/{data-table/src/publicTypes.mjs → button/src/public-types.mjs} +0 -0
  579. /package/lib/{button/src/interface.js → auto-complete/src/public-types.js} +0 -0
  580. /package/lib/{data-table/src/publicTypes.js → button/src/public-types.js} +0 -0
@@ -6,6 +6,7 @@ import type { InternalSelectionTheme } from '../../_internal/selection/styles';
6
6
  import type { Hljs } from '../../_mixins';
7
7
  import type { AlertTheme } from '../../alert/styles';
8
8
  import type { AnchorTheme } from '../../anchor/styles';
9
+ import type { AutoCompleteSize } from '../../auto-complete/src/public-types';
9
10
  import type { AutoCompleteTheme } from '../../auto-complete/styles';
10
11
  import type { AvatarGroupTheme } from '../../avatar-group/styles';
11
12
  import type { AvatarTheme } from '../../avatar/styles';
@@ -13,27 +14,36 @@ import type { BackTopTheme } from '../../back-top/styles';
13
14
  import type { BadgeTheme } from '../../badge/styles';
14
15
  import type { BreadcrumbTheme } from '../../breadcrumb/styles';
15
16
  import type { ButtonGroupTheme } from '../../button-group/styles/light';
16
- import type { Size as ButtonSize } from '../../button/src/interface';
17
+ import type { ButtonSize } from '../../button/src/public-types';
17
18
  import type { ButtonTheme } from '../../button/styles';
18
19
  import type { CalendarTheme } from '../../calendar/styles';
20
+ import type { CardSize } from '../../card/src/public-types';
19
21
  import type { CardTheme } from '../../card/styles';
20
22
  import type { CarouselTheme } from '../../carousel/styles';
23
+ import type { CascaderSize } from '../../cascader/src/public-types';
21
24
  import type { CascaderTheme } from '../../cascader/styles';
25
+ import type { CheckboxSize } from '../../checkbox/src/public-types';
22
26
  import type { CheckboxTheme } from '../../checkbox/styles';
23
27
  import type { CodeTheme } from '../../code/styles';
24
28
  import type { CollapseTransitionTheme } from '../../collapse-transition/styles';
25
29
  import type { CollapseTheme } from '../../collapse/styles';
30
+ import type { ColorPickerSize } from '../../color-picker/src/public-types';
26
31
  import type { ColorPickerTheme } from '../../color-picker/styles';
27
32
  import type { DataTableRenderFilter, DataTableRenderSorter } from '../../data-table';
33
+ import type { DataTableSize } from '../../data-table/src/public-types';
28
34
  import type { DataTableTheme } from '../../data-table/styles';
35
+ import type { DatePickerSize } from '../../date-picker/src/public-types';
29
36
  import type { DatePickerTheme } from '../../date-picker/styles';
37
+ import type { DescriptionsSize } from '../../descriptions/src/public-types';
30
38
  import type { DescriptionsTheme } from '../../descriptions/styles';
31
39
  import type { IconPlacement } from '../../dialog/src/interface';
32
40
  import type { DialogTheme } from '../../dialog/styles';
33
41
  import type { DividerTheme } from '../../divider/styles';
34
42
  import type { DrawerTheme } from '../../drawer/styles';
43
+ import type { DropdownSize } from '../../dropdown/src/public-types';
35
44
  import type { DropdownTheme } from '../../dropdown/styles';
36
45
  import type { DynamicInputTheme } from '../../dynamic-input/styles';
46
+ import type { DynamicTagsSize } from '../../dynamic-tags/src/public-types';
37
47
  import type { DynamicTagsTheme } from '../../dynamic-tags/styles';
38
48
  import type { ElementTheme } from '../../element/styles';
39
49
  import type { EllipsisTheme } from '../../ellipsis/styles';
@@ -43,15 +53,18 @@ import type { EquationTheme } from '../../equation/styles';
43
53
  import type { FlexTheme } from '../../flex/styles';
44
54
  import type { FloatButtonGroupTheme } from '../../float-button-group/styles';
45
55
  import type { FloatButtonTheme } from '../../float-button/styles';
56
+ import type { FormSize } from '../../form/src/public-types';
46
57
  import type { FormTheme } from '../../form/styles';
47
58
  import type { GradientTextTheme } from '../../gradient-text/styles';
48
59
  import type { HeatmapTheme } from '../../heatmap/styles';
49
60
  import type { IconWrapperTheme } from '../../icon-wrapper/styles';
50
61
  import type { IconTheme } from '../../icon/styles';
51
62
  import type { ImageTheme } from '../../image/styles';
63
+ import type { InputNumberSize } from '../../input-number/src/public-types';
52
64
  import type { InputNumberTheme } from '../../input-number/styles';
65
+ import type { InputOtpSize } from '../../input-otp/src/public-types';
53
66
  import type { InputOtpTheme } from '../../input-otp/styles';
54
- import type { Size as InputSize } from '../../input/src/interface';
67
+ import type { InputSize } from '../../input/src/public-types';
55
68
  import type { InputTheme } from '../../input/styles';
56
69
  import type { LayoutTheme } from '../../layout/styles';
57
70
  import type { RowTheme } from '../../legacy-grid/styles';
@@ -61,40 +74,54 @@ import type { LoadingBarTheme } from '../../loading-bar/styles';
61
74
  import type { NDateLocale, NLocale } from '../../locales';
62
75
  import type { LogTheme } from '../../log/styles';
63
76
  import type { MarqueeTheme } from '../../marquee/styles';
77
+ import type { MentionSize } from '../../mention/src/public-types';
64
78
  import type { MentionTheme } from '../../mention/styles';
65
79
  import type { MenuTheme } from '../../menu/styles';
66
80
  import type { MessageTheme } from '../../message/styles';
67
81
  import type { ModalTheme } from '../../modal/styles';
68
82
  import type { NotificationTheme } from '../../notification/styles';
69
83
  import type { PageHeaderTheme } from '../../page-header/styles';
84
+ import type { PaginationSize } from '../../pagination/src/public-types';
70
85
  import type { PaginationTheme } from '../../pagination/styles';
71
86
  import type { PopconfirmTheme } from '../../popconfirm/styles';
72
87
  import type { PopoverTheme } from '../../popover/styles';
88
+ import type { PopselectSize } from '../../popselect/src/public-types';
73
89
  import type { PopselectTheme } from '../../popselect/styles';
74
90
  import type { ProgressTheme } from '../../progress/styles';
75
91
  import type { QrCodeTheme } from '../../qr-code/styles';
92
+ import type { RadioSize } from '../../radio/src/public-types';
76
93
  import type { RadioTheme } from '../../radio/styles';
94
+ import type { RateSize } from '../../rate/src/public-types';
77
95
  import type { RateTheme } from '../../rate/styles';
96
+ import type { ResultSize } from '../../result/src/public-types';
78
97
  import type { ResultTheme } from '../../result/styles';
79
- import type { Size as SelectSize } from '../../select/src/interface';
98
+ import type { SelectSize } from '../../select/src/public-types';
80
99
  import type { SelectTheme } from '../../select/styles';
100
+ import type { SkeletonSize } from '../../skeleton/src/public-types';
81
101
  import type { SkeletonTheme } from '../../skeleton/styles';
82
102
  import type { SliderTheme } from '../../slider/styles';
103
+ import type { SpaceSize } from '../../space/src/public-types';
83
104
  import type { SpaceTheme } from '../../space/styles';
84
105
  import type { SpinTheme } from '../../spin/styles';
85
106
  import type { SplitTheme } from '../../split/styles';
86
107
  import type { StatisticTheme } from '../../statistic/styles';
87
108
  import type { StepsTheme } from '../../steps/styles';
109
+ import type { SwitchSize } from '../../switch/src/public-types';
88
110
  import type { SwitchTheme } from '../../switch/styles';
111
+ import type { TableSize } from '../../table/src/public-types';
89
112
  import type { TableTheme } from '../../table/styles';
113
+ import type { TabsSize } from '../../tabs/src/public-types';
90
114
  import type { TabsTheme } from '../../tabs/styles';
115
+ import type { TagSize } from '../../tag/src/public-types';
91
116
  import type { TagTheme } from '../../tag/styles';
92
117
  import type { ThingTheme } from '../../thing/styles';
93
- import type { Size as TimePickerSize } from '../../time-picker/src/interface';
118
+ import type { TimePickerSize } from '../../time-picker/src/public-types';
94
119
  import type { TimePickerTheme } from '../../time-picker/styles';
95
120
  import type { TimelineTheme } from '../../timeline/styles';
96
121
  import type { TooltipTheme } from '../../tooltip/styles';
122
+ import type { TransferSize } from '../../transfer/src/public-types';
97
123
  import type { TransferTheme } from '../../transfer/styles';
124
+ import type { TreeSelectSize } from '../../tree-select/src/public-types';
98
125
  import type { TreeSelectTheme } from '../../tree-select/styles';
99
126
  import type { TreeTheme } from '../../tree/styles';
100
127
  import type { TypographyTheme } from '../../typography/styles';
@@ -145,6 +172,7 @@ export interface GlobalThemeWithoutCommon {
145
172
  Image?: ImageTheme;
146
173
  Input?: InputTheme;
147
174
  InputNumber?: InputNumberTheme;
175
+ InputOtp?: InputOtpTheme;
148
176
  Layout?: LayoutTheme;
149
177
  LegacyTransfer?: LegacyTransferTheme;
150
178
  List?: ListTheme;
@@ -193,27 +221,121 @@ export interface GlobalThemeWithoutCommon {
193
221
  Heatmap?: HeatmapTheme;
194
222
  InternalSelectMenu?: InternalSelectMenuTheme;
195
223
  InternalSelection?: InternalSelectionTheme;
196
- InputOtp?: InputOtpTheme;
197
224
  }
198
225
  export interface GlobalComponentConfig {
226
+ AutoComplete?: {
227
+ size?: AutoCompleteSize;
228
+ };
229
+ Cascader?: {
230
+ size?: CascaderSize;
231
+ renderEmpty?: () => VNodeChild;
232
+ };
233
+ Button?: {
234
+ size?: ButtonSize;
235
+ };
236
+ Card?: {
237
+ size?: CardSize;
238
+ };
239
+ Checkbox?: {
240
+ size?: CheckboxSize;
241
+ };
199
242
  Pagination?: {
243
+ size?: PaginationSize;
200
244
  inputSize?: InputSize;
201
245
  selectSize?: SelectSize;
202
246
  };
247
+ ColorPicker?: {
248
+ size?: ColorPickerSize;
249
+ };
203
250
  DatePicker?: {
251
+ size?: DatePickerSize;
204
252
  timePickerSize?: TimePickerSize;
205
253
  };
206
254
  Dialog?: {
207
255
  iconPlacement?: IconPlacement;
208
256
  };
209
257
  DataTable?: {
258
+ size?: DataTableSize;
210
259
  renderFilter?: DataTableRenderFilter;
211
260
  renderSorter?: DataTableRenderSorter;
261
+ renderEmpty?: () => VNodeChild;
262
+ };
263
+ Descriptions?: {
264
+ size?: DescriptionsSize;
265
+ };
266
+ Dropdown?: {
267
+ size?: DropdownSize;
212
268
  };
213
269
  DynamicInput?: {
214
270
  buttonSize?: ButtonSize;
215
271
  };
272
+ DynamicTags?: {
273
+ size?: DynamicTagsSize;
274
+ };
216
275
  Empty?: Pick<EmptyProps, 'description' | 'renderIcon'>;
276
+ Form?: {
277
+ size?: FormSize;
278
+ };
279
+ Input?: {
280
+ size?: InputSize;
281
+ };
282
+ InputNumber?: {
283
+ size?: InputNumberSize;
284
+ };
285
+ InputOtp?: {
286
+ size?: InputOtpSize;
287
+ };
288
+ Mention?: {
289
+ size?: MentionSize;
290
+ };
291
+ Select?: {
292
+ size?: SelectSize;
293
+ renderEmpty?: () => VNodeChild;
294
+ };
295
+ Popselect?: {
296
+ size?: PopselectSize;
297
+ };
298
+ Radio?: {
299
+ size?: RadioSize;
300
+ };
301
+ Rate?: {
302
+ size?: RateSize;
303
+ };
304
+ Result?: {
305
+ size?: ResultSize;
306
+ };
307
+ Skeleton?: {
308
+ size?: SkeletonSize;
309
+ };
310
+ Space?: {
311
+ size?: SpaceSize;
312
+ };
313
+ Switch?: {
314
+ size?: SwitchSize;
315
+ };
316
+ Table?: {
317
+ size?: TableSize;
318
+ };
319
+ Tabs?: {
320
+ size?: TabsSize;
321
+ };
322
+ Tag?: {
323
+ size?: TagSize;
324
+ };
325
+ TimePicker?: {
326
+ size?: TimePickerSize;
327
+ };
328
+ Transfer?: {
329
+ size?: TransferSize;
330
+ renderEmpty?: () => VNodeChild;
331
+ };
332
+ Tree?: {
333
+ renderEmpty?: () => VNodeChild;
334
+ };
335
+ TreeSelect?: {
336
+ size?: TreeSelectSize;
337
+ renderEmpty?: () => VNodeChild;
338
+ };
217
339
  }
218
340
  export interface GlobalIconConfig {
219
341
  attach?: () => VNodeChild;
@@ -61,8 +61,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
61
61
  render: PropType<(props: CountdownTimeInfo) => VNodeChild>;
62
62
  onFinish: PropType<() => void>;
63
63
  }>> & Readonly<{}>, {
64
- active: boolean;
65
64
  duration: number;
65
+ active: boolean;
66
66
  precision: 0 | 1 | 3 | 2;
67
67
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
68
68
  export default _default;
@@ -1,4 +1,4 @@
1
1
  export { default as NDataTable } from './src/DataTable';
2
2
  export { dataTableProps } from './src/interface';
3
3
  export type { TableBaseColumn as DataTableBaseColumn, TableColumn as DataTableColumn, TableColumnGroup as DataTableColumnGroup, ColumnKey as DataTableColumnKey, TableColumns as DataTableColumns, CreateRowClassName as DataTableCreateRowClassName, CreateRowKey as DataTableCreateRowKey, CreateRowProps as DataTableCreateRowProps, CreateSummary as DataTableCreateSummary, TableExpandColumn as DataTableExpandColumn, FilterState as DataTableFilterState, DataTableInst, DataTableProps, RenderFilter as DataTableRenderFilter, RenderFilterIcon as DataTableRenderFilterIcon, RenderSorter as DataTableRenderSorter, RenderSorterIcon as DataTableRenderSorterIcon, RowData as DataTableRowData, RowKey as DataTableRowKey, TableSelectionColumn as DataTableSelectionColumn, DataTableSlots, SortOrder as DataTableSortOrder, SortState as DataTableSortState } from './src/interface';
4
- export * from './src/publicTypes';
4
+ export type * from './src/public-types';
@@ -1,3 +1,2 @@
1
1
  export { default as NDataTable } from "./src/DataTable.mjs";
2
- export { dataTableProps } from "./src/interface.mjs";
3
- export * from "./src/publicTypes.mjs";
2
+ export { dataTableProps } from "./src/interface.mjs";
@@ -45,10 +45,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
45
45
  readonly default: true;
46
46
  };
47
47
  readonly singleColumn: BooleanConstructor;
48
- readonly size: {
49
- readonly type: import("vue").PropType<"small" | "medium" | "large">;
50
- readonly default: "medium";
51
- };
48
+ readonly size: import("vue").PropType<import("./public-types").DataTableSize>;
52
49
  readonly remote: BooleanConstructor;
53
50
  readonly defaultExpandedRowKeys: {
54
51
  readonly type: import("vue").PropType<RowKey[]>;
@@ -99,12 +96,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
99
96
  readonly scrollbarProps: import("vue").PropType<import("../..").ScrollbarProps>;
100
97
  readonly renderCell: import("vue").PropType<(value: any, rowData: object, column: import("./interface").TableBaseColumn) => import("vue").VNodeChild>;
101
98
  readonly renderExpandIcon: import("vue").PropType<import("./interface").RenderExpandIcon>;
102
- readonly spinProps: {
103
- readonly type: import("vue").PropType<import("../../_internal").BaseLoadingExposedProps>;
104
- readonly default: {};
105
- };
106
- readonly getCsvCell: import("vue").PropType<import("./publicTypes").DataTableGetCsvCell>;
107
- readonly getCsvHeader: import("vue").PropType<import("./publicTypes").DataTableGetCsvHeader>;
99
+ readonly spinProps: import("vue").PropType<import("./public-types").DataTableSpinProps>;
100
+ readonly getCsvCell: import("vue").PropType<import("./public-types").DataTableGetCsvCell>;
101
+ readonly getCsvHeader: import("vue").PropType<import("./public-types").DataTableGetCsvHeader>;
108
102
  readonly onLoad: import("vue").PropType<import("./interface").DataTableOnLoad>;
109
103
  readonly 'onUpdate:page': import("vue").PropType<import("../..").PaginationProps["onUpdate:page"]>;
110
104
  readonly onUpdatePage: import("vue").PropType<import("../..").PaginationProps["onUpdate:page"]>;
@@ -4314,10 +4308,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4314
4308
  readonly default: true;
4315
4309
  };
4316
4310
  readonly singleColumn: BooleanConstructor;
4317
- readonly size: {
4318
- readonly type: import("vue").PropType<"small" | "medium" | "large">;
4319
- readonly default: "medium";
4320
- };
4311
+ readonly size: import("vue").PropType<import("./public-types").DataTableSize>;
4321
4312
  readonly remote: BooleanConstructor;
4322
4313
  readonly defaultExpandedRowKeys: {
4323
4314
  readonly type: import("vue").PropType<RowKey[]>;
@@ -4368,12 +4359,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4368
4359
  readonly scrollbarProps: import("vue").PropType<import("../..").ScrollbarProps>;
4369
4360
  readonly renderCell: import("vue").PropType<(value: any, rowData: object, column: import("./interface").TableBaseColumn) => import("vue").VNodeChild>;
4370
4361
  readonly renderExpandIcon: import("vue").PropType<import("./interface").RenderExpandIcon>;
4371
- readonly spinProps: {
4372
- readonly type: import("vue").PropType<import("../../_internal").BaseLoadingExposedProps>;
4373
- readonly default: {};
4374
- };
4375
- readonly getCsvCell: import("vue").PropType<import("./publicTypes").DataTableGetCsvCell>;
4376
- readonly getCsvHeader: import("vue").PropType<import("./publicTypes").DataTableGetCsvHeader>;
4362
+ readonly spinProps: import("vue").PropType<import("./public-types").DataTableSpinProps>;
4363
+ readonly getCsvCell: import("vue").PropType<import("./public-types").DataTableGetCsvCell>;
4364
+ readonly getCsvHeader: import("vue").PropType<import("./public-types").DataTableGetCsvHeader>;
4377
4365
  readonly onLoad: import("vue").PropType<import("./interface").DataTableOnLoad>;
4378
4366
  readonly 'onUpdate:page': import("vue").PropType<import("../..").PaginationProps["onUpdate:page"]>;
4379
4367
  readonly onUpdatePage: import("vue").PropType<import("../..").PaginationProps["onUpdate:page"]>;
@@ -7109,9 +7097,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
7109
7097
  }>;
7110
7098
  }>>>;
7111
7099
  }>> & Readonly<{}>, {
7112
- readonly size: "small" | "medium" | "large";
7113
7100
  readonly data: import("./interface").RowData[];
7114
- readonly spinProps: import("../../_internal").BaseLoadingExposedProps;
7115
7101
  readonly bordered: boolean | undefined;
7116
7102
  readonly loading: boolean;
7117
7103
  readonly allowCheckingNotLoaded: boolean;
@@ -46,9 +46,14 @@ export default defineComponent({
46
46
  mergedBorderedRef,
47
47
  mergedClsPrefixRef,
48
48
  inlineThemeDisabled,
49
- mergedRtlRef
49
+ mergedRtlRef,
50
+ mergedComponentPropsRef
50
51
  } = useConfig(props);
51
52
  const rtlEnabledRef = useRtl('DataTable', mergedRtlRef, mergedClsPrefixRef);
53
+ const mergedSizeRef = computed(() => {
54
+ var _a, _b;
55
+ return props.size || ((_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.DataTable) === null || _b === void 0 ? void 0 : _b.size) || 'medium';
56
+ });
52
57
  const mergedBottomBorderedRef = computed(() => {
53
58
  const {
54
59
  bottomBordered
@@ -134,6 +139,16 @@ export default defineComponent({
134
139
  expandableRef,
135
140
  doUpdateExpandedRowKeys
136
141
  } = useExpand(props, treeMateRef);
142
+ const maxHeightRef = toRef(props, 'maxHeight');
143
+ const mergedTableLayoutRef = computed(() => {
144
+ // Layout
145
+ // virtual |descrete header | ellpisis => fixed
146
+ // = virtual | maxHeight | ellpisis => fixed
147
+ if (props.virtualScroll || props.flexHeight || props.maxHeight !== undefined || hasEllipsisRef.value) {
148
+ return 'fixed';
149
+ }
150
+ return props.tableLayout;
151
+ });
137
152
  const {
138
153
  handleTableBodyScroll,
139
154
  handleTableHeaderScroll,
@@ -146,25 +161,22 @@ export default defineComponent({
146
161
  leftFixedColumnsRef,
147
162
  rightFixedColumnsRef,
148
163
  fixedColumnLeftMapRef,
149
- fixedColumnRightMapRef
164
+ fixedColumnRightMapRef,
165
+ xScrollableRef,
166
+ explicitlyScrollableRef
150
167
  } = useScroll(props, {
151
168
  bodyWidthRef,
152
169
  mainTableInstRef,
153
- mergedCurrentPageRef
170
+ mergedCurrentPageRef,
171
+ maxHeightRef,
172
+ mergedTableLayoutRef
154
173
  });
155
174
  const {
156
175
  localeRef
157
176
  } = useLocale('DataTable');
158
- const mergedTableLayoutRef = computed(() => {
159
- // Layout
160
- // virtual |descrete header | ellpisis => fixed
161
- // = virtual | maxHeight | ellpisis => fixed
162
- if (props.virtualScroll || props.flexHeight || props.maxHeight !== undefined || hasEllipsisRef.value) {
163
- return 'fixed';
164
- }
165
- return props.tableLayout;
166
- });
167
177
  provide(dataTableInjectionKey, {
178
+ xScrollableRef,
179
+ explicitlyScrollableRef,
168
180
  props,
169
181
  treeMateRef,
170
182
  renderExpandIconRef: toRef(props, 'renderExpandIcon'),
@@ -236,7 +248,7 @@ export default defineComponent({
236
248
  }),
237
249
  onLoadRef: toRef(props, 'onLoad'),
238
250
  mergedTableLayoutRef,
239
- maxHeightRef: toRef(props, 'maxHeight'),
251
+ maxHeightRef,
240
252
  minHeightRef: toRef(props, 'minHeight'),
241
253
  flexHeightRef: toRef(props, 'flexHeight'),
242
254
  headerCheckboxDisabledRef,
@@ -277,9 +289,7 @@ export default defineComponent({
277
289
  }
278
290
  };
279
291
  const cssVarsRef = computed(() => {
280
- const {
281
- size
282
- } = props;
292
+ const mergedSize = mergedSizeRef.value;
283
293
  const {
284
294
  common: {
285
295
  cubicBezierEaseInOut
@@ -328,9 +338,9 @@ export default defineComponent({
328
338
  tdColorStriped,
329
339
  tdColorStripedModal,
330
340
  tdColorStripedPopover,
331
- [createKey('fontSize', size)]: fontSize,
332
- [createKey('thPadding', size)]: thPadding,
333
- [createKey('tdPadding', size)]: tdPadding
341
+ [createKey('fontSize', mergedSize)]: fontSize,
342
+ [createKey('thPadding', mergedSize)]: thPadding,
343
+ [createKey('tdPadding', mergedSize)]: tdPadding
334
344
  }
335
345
  } = themeRef.value;
336
346
  return {
@@ -383,7 +393,7 @@ export default defineComponent({
383
393
  '--n-th-color-sorting-popover': thColorSortingPopover
384
394
  };
385
395
  });
386
- const themeClassHandle = inlineThemeDisabled ? useThemeClass('data-table', computed(() => props.size[0]), cssVarsRef, props) : undefined;
396
+ const themeClassHandle = inlineThemeDisabled ? useThemeClass('data-table', computed(() => mergedSizeRef.value[0]), cssVarsRef, props) : undefined;
387
397
  const mergedShowPaginationRef = computed(() => {
388
398
  if (!props.pagination) return false;
389
399
  if (props.paginateSinglePage) return true;
@@ -26,5 +26,6 @@ declare const _default: import("vue").DefineComponent<{}, {
26
26
  }>;
27
27
  flexHeight: import("vue").Ref<boolean, boolean>;
28
28
  handleBodyResize: (entry: ResizeObserverEntry) => void;
29
+ scrollX: import("vue").Ref<string | number | undefined, string | number | undefined>;
29
30
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
30
31
  export default _default;
@@ -15,7 +15,8 @@ export default defineComponent({
15
15
  minHeightRef,
16
16
  flexHeightRef,
17
17
  virtualScrollHeaderRef,
18
- syncScrollState
18
+ syncScrollState,
19
+ scrollXRef
19
20
  } = inject(dataTableInjectionKey);
20
21
  const headerInstRef = ref(null);
21
22
  const bodyInstRef = ref(null);
@@ -87,7 +88,8 @@ export default defineComponent({
87
88
  bodyInstRef,
88
89
  bodyStyle: bodyStyleRef,
89
90
  flexHeight: flexHeightRef,
90
- handleBodyResize
91
+ handleBodyResize,
92
+ scrollX: scrollXRef
91
93
  }, exposedMethods);
92
94
  },
93
95
  render() {
@@ -2755,11 +2755,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2755
2755
  } | undefined;
2756
2756
  };
2757
2757
  }>;
2758
+ mergedRenderEmpty: import("vue").ComputedRef<(() => VNodeChild) | undefined>;
2758
2759
  scrollX: import("vue").Ref<string | number | undefined, string | number | undefined>;
2759
2760
  cols: import("vue").Ref<ColItem[], ColItem[]>;
2760
2761
  loading: import("vue").Ref<boolean, boolean>;
2761
- bodyShowHeaderOnly: import("vue").ComputedRef<boolean>;
2762
- shouldDisplaySomeTablePart: import("vue").ComputedRef<boolean>;
2762
+ shouldDisplayVirtualList: import("vue").ComputedRef<boolean>;
2763
2763
  empty: import("vue").ComputedRef<boolean>;
2764
2764
  paginatedDataAndInfo: import("vue").ComputedRef<{
2765
2765
  data: {
@@ -2799,7 +2799,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2799
2799
  childTriggerColIndex: import("vue").Ref<number, number>;
2800
2800
  indent: import("vue").Ref<number, number>;
2801
2801
  rowProps: import("vue").Ref<import("../interface").CreateRowProps<import("../interface").InternalRowData> | undefined, import("../interface").CreateRowProps<import("../interface").InternalRowData> | undefined>;
2802
- maxHeight: import("vue").Ref<string | number | undefined, string | number | undefined>;
2803
2802
  loadingKeySet: import("vue").Ref<Set<RowKey>, Set<RowKey>>;
2804
2803
  expandable: import("vue").Ref<import("../interface").Expandable<any> | undefined, import("../interface").Expandable<any> | undefined>;
2805
2804
  stickyExpandedRows: import("vue").Ref<boolean, boolean>;
@@ -2820,6 +2819,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2820
2819
  }) => void;
2821
2820
  handleUpdateExpanded: (key: RowKey, tmNode: TmNode | null) => void;
2822
2821
  renderCell: import("vue").Ref<((value: any, rowData: object, column: import("../interface").TableBaseColumn) => VNodeChild) | undefined, ((value: any, rowData: object, column: import("../interface").TableBaseColumn) => VNodeChild) | undefined>;
2822
+ explicitlyScrollable: import("vue").Ref<boolean, boolean>;
2823
+ xScrollable: import("vue").Ref<boolean, boolean>;
2823
2824
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
2824
2825
  onResize: PropType<(e: ResizeObserverEntry) => void>;
2825
2826
  showHeader: BooleanConstructor;