naive-ui 2.33.2 → 2.33.4

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 (786) hide show
  1. package/README.md +3 -2
  2. package/README.zh-CN.md +3 -2
  3. package/dist/index.js +8272 -3401
  4. package/dist/index.prod.js +2 -2
  5. package/es/_internal/clear/src/Clear.d.ts +1 -1
  6. package/es/_internal/close/src/Close.d.ts +10 -1
  7. package/es/_internal/close/src/Close.js +7 -2
  8. package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +1 -1
  9. package/es/_internal/focus-detector/src/FocusDetector.d.ts +1 -1
  10. package/es/_internal/icon/src/Icon.d.ts +1 -1
  11. package/es/_internal/icon-switch-transition/src/IconSwitchTransition.d.ts +1 -1
  12. package/es/_internal/icons/Add.d.ts +1 -1
  13. package/es/_internal/icons/ArrowBack.d.ts +1 -1
  14. package/es/_internal/icons/ArrowDown.d.ts +1 -1
  15. package/es/_internal/icons/ArrowUp.d.ts +1 -1
  16. package/es/_internal/icons/Attach.d.ts +1 -1
  17. package/es/_internal/icons/Backward.d.ts +1 -1
  18. package/es/_internal/icons/Cancel.d.ts +1 -1
  19. package/es/_internal/icons/Checkmark.d.ts +1 -1
  20. package/es/_internal/icons/ChevronDown.d.ts +1 -1
  21. package/es/_internal/icons/ChevronDownFilled.d.ts +1 -1
  22. package/es/_internal/icons/ChevronLeft.d.ts +1 -1
  23. package/es/_internal/icons/ChevronRight.d.ts +1 -1
  24. package/es/_internal/icons/Clear.d.ts +1 -1
  25. package/es/_internal/icons/Close.d.ts +1 -1
  26. package/es/_internal/icons/Date.d.ts +1 -1
  27. package/es/_internal/icons/Download.d.ts +1 -1
  28. package/es/_internal/icons/Empty.d.ts +1 -1
  29. package/es/_internal/icons/Error.d.ts +1 -1
  30. package/es/_internal/icons/Eye.d.ts +1 -1
  31. package/es/_internal/icons/EyeOff.d.ts +1 -1
  32. package/es/_internal/icons/FastBackward.d.ts +1 -1
  33. package/es/_internal/icons/FastForward.d.ts +1 -1
  34. package/es/_internal/icons/File.d.ts +1 -1
  35. package/es/_internal/icons/Filter.d.ts +1 -1
  36. package/es/_internal/icons/Forward.d.ts +1 -1
  37. package/es/_internal/icons/Info.d.ts +1 -1
  38. package/es/_internal/icons/More.d.ts +1 -1
  39. package/es/_internal/icons/Photo.d.ts +1 -1
  40. package/es/_internal/icons/Remove.d.ts +1 -1
  41. package/es/_internal/icons/ResizeSmall.d.ts +1 -1
  42. package/es/_internal/icons/Retry.d.ts +1 -1
  43. package/es/_internal/icons/RotateClockwise.d.ts +1 -1
  44. package/es/_internal/icons/RotateCounterclockwise.d.ts +1 -1
  45. package/es/_internal/icons/Search.d.ts +1 -1
  46. package/es/_internal/icons/Success.d.ts +1 -1
  47. package/es/_internal/icons/Switcher.d.ts +1 -1
  48. package/es/_internal/icons/Time.d.ts +1 -1
  49. package/es/_internal/icons/To.d.ts +1 -1
  50. package/es/_internal/icons/Trash.d.ts +1 -1
  51. package/es/_internal/icons/Warning.d.ts +1 -1
  52. package/es/_internal/icons/ZoomIn.d.ts +1 -1
  53. package/es/_internal/icons/ZoomOut.d.ts +1 -1
  54. package/es/_internal/icons/replaceable.d.ts +1 -1
  55. package/es/_internal/loading/src/Loading.d.ts +1 -1
  56. package/es/_internal/menu-mask/src/MenuMask.d.ts +1 -1
  57. package/es/_internal/scrollbar/src/Scrollbar.d.ts +1 -1
  58. package/es/_internal/select-menu/src/SelectGroupHeader.d.ts +1 -1
  59. package/es/_internal/select-menu/src/SelectMenu.d.ts +1 -1
  60. package/es/_internal/select-menu/src/SelectOption.d.ts +1 -1
  61. package/es/_internal/selection/src/Selection.d.ts +12 -3
  62. package/es/_internal/selection/src/Selection.js +28 -14
  63. package/es/_internal/slot-machine/src/SlotMachine.d.ts +1 -1
  64. package/es/_internal/slot-machine/src/SlotMachineNumber.d.ts +1 -1
  65. package/es/_internal/suffix/src/Suffix.d.ts +1 -1
  66. package/es/_internal/wave/src/Wave.d.ts +1 -1
  67. package/es/_utils/index.d.ts +1 -1
  68. package/es/_utils/index.js +1 -1
  69. package/es/_utils/vue/call.d.ts +1 -0
  70. package/es/_utils/vue/index.d.ts +1 -1
  71. package/es/_utils/vue/index.js +1 -1
  72. package/es/_utils/vue/keysOf.d.ts +1 -1
  73. package/es/_utils/vue/resolve-slot.d.ts +1 -0
  74. package/es/_utils/vue/resolve-slot.js +7 -0
  75. package/es/_utils/vue/wrapper.d.ts +1 -1
  76. package/es/affix/src/Affix.d.ts +1 -1
  77. package/es/alert/src/Alert.d.ts +1 -1
  78. package/es/anchor/src/AnchorAdapter.d.ts +1 -1
  79. package/es/anchor/src/BaseAnchor.d.ts +1 -1
  80. package/es/anchor/src/Link.d.ts +1 -1
  81. package/es/auto-complete/src/AutoComplete.d.ts +1 -1
  82. package/es/avatar/src/Avatar.d.ts +11 -2
  83. package/es/avatar/src/Avatar.js +12 -4
  84. package/es/avatar-group/src/AvatarGroup.d.ts +34 -11
  85. package/es/avatar-group/src/AvatarGroup.js +7 -2
  86. package/es/avatar-group/src/styles/avatar-group-rtl.cssr.js +3 -2
  87. package/es/avatar-group/src/styles/avatar-group.cssr.js +4 -3
  88. package/es/avatar-group/styles/dark.js +3 -1
  89. package/es/avatar-group/styles/light.d.ts +6 -1
  90. package/es/avatar-group/styles/light.js +7 -1
  91. package/es/back-top/src/BackTop.d.ts +1 -1
  92. package/es/badge/src/Badge.d.ts +1 -1
  93. package/es/breadcrumb/src/Breadcrumb.d.ts +1 -1
  94. package/es/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
  95. package/es/button/src/Button.d.ts +2 -2
  96. package/es/button-group/src/ButtonGroup.d.ts +1 -1
  97. package/es/calendar/src/Calendar.d.ts +1 -1
  98. package/es/card/index.d.ts +1 -1
  99. package/es/card/src/Card.d.ts +7 -7
  100. package/es/carousel/index.d.ts +1 -0
  101. package/es/carousel/src/Carousel.d.ts +1 -1
  102. package/es/carousel/src/CarouselArrow.d.ts +1 -1
  103. package/es/carousel/src/CarouselDots.d.ts +1 -1
  104. package/es/carousel/src/CarouselItem.d.ts +1 -1
  105. package/es/carousel/src/utils/index.js +1 -1
  106. package/es/cascader/src/Cascader.d.ts +2 -2
  107. package/es/cascader/src/CascaderMenu.d.ts +1 -1
  108. package/es/cascader/src/CascaderOption.d.ts +1 -1
  109. package/es/cascader/src/CascaderSelectMenu.d.ts +1 -1
  110. package/es/cascader/src/CascaderSubmenu.d.ts +1 -1
  111. package/es/checkbox/src/Checkbox.d.ts +1 -1
  112. package/es/checkbox/src/CheckboxGroup.d.ts +1 -1
  113. package/es/code/src/Code.d.ts +1 -1
  114. package/es/collapse/src/Collapse.d.ts +12 -1
  115. package/es/collapse/src/Collapse.js +3 -2
  116. package/es/collapse/src/CollapseItem.d.ts +2 -2
  117. package/es/collapse/src/CollapseItem.js +13 -9
  118. package/es/collapse/src/CollapseItemContent.d.ts +1 -1
  119. package/es/collapse/src/styles/index.cssr.js +2 -1
  120. package/es/collapse/styles/light.d.ts +1 -0
  121. package/es/collapse/styles/light.js +2 -1
  122. package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
  123. package/es/color-picker/src/AlphaSlider.d.ts +1 -1
  124. package/es/color-picker/src/ColorInput.d.ts +1 -1
  125. package/es/color-picker/src/ColorInputUnit.d.ts +1 -1
  126. package/es/color-picker/src/ColorPicker.d.ts +1 -1
  127. package/es/color-picker/src/ColorPickerSwatches.d.ts +1 -1
  128. package/es/color-picker/src/ColorPickerTrigger.d.ts +1 -1
  129. package/es/color-picker/src/ColorPreview.d.ts +1 -1
  130. package/es/color-picker/src/HueSlider.d.ts +1 -1
  131. package/es/color-picker/src/Pallete.d.ts +1 -1
  132. package/es/config-provider/src/ConfigProvider.d.ts +1 -1
  133. package/es/countdown/src/Countdown.d.ts +1 -1
  134. package/es/data-table/index.d.ts +3 -3
  135. package/es/data-table/index.js +2 -1
  136. package/es/data-table/src/DataTable.d.ts +627 -2319
  137. package/es/data-table/src/DataTable.js +14 -54
  138. package/es/data-table/src/HeaderButton/FilterButton.d.ts +91 -1
  139. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +92 -2
  140. package/es/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
  141. package/es/data-table/src/HeaderButton/RenderSorter.d.ts +1 -1
  142. package/es/data-table/src/HeaderButton/ResizeButton.d.ts +15 -0
  143. package/es/data-table/src/HeaderButton/ResizeButton.js +58 -0
  144. package/es/data-table/src/HeaderButton/SortButton.d.ts +1 -1
  145. package/es/data-table/src/MainTable.d.ts +1 -1
  146. package/es/data-table/src/TableParts/Body.d.ts +92 -1
  147. package/es/data-table/src/TableParts/Body.js +39 -31
  148. package/es/data-table/src/TableParts/BodyCheckbox.d.ts +1 -1
  149. package/es/data-table/src/TableParts/BodyRadio.d.ts +1 -1
  150. package/es/data-table/src/TableParts/Cell.d.ts +181 -1
  151. package/es/data-table/src/TableParts/ExpandTrigger.d.ts +1 -1
  152. package/es/data-table/src/TableParts/Header.d.ts +97 -4
  153. package/es/data-table/src/TableParts/Header.js +48 -16
  154. package/es/data-table/src/TableParts/SelectionMenu.d.ts +1 -8
  155. package/es/data-table/src/TableParts/SelectionMenu.js +12 -13
  156. package/es/data-table/src/interface.d.ts +2467 -5
  157. package/es/data-table/src/interface.js +54 -0
  158. package/es/data-table/src/styles/index.cssr.js +27 -1
  159. package/es/data-table/src/use-check.d.ts +4 -5
  160. package/es/data-table/src/use-check.js +17 -14
  161. package/es/data-table/src/use-expand.d.ts +1 -2
  162. package/es/data-table/src/use-group-header.d.ts +2 -3
  163. package/es/data-table/src/use-group-header.js +6 -4
  164. package/es/data-table/src/use-resizable.d.ts +6 -0
  165. package/es/data-table/src/use-resizable.js +22 -0
  166. package/es/data-table/src/use-scroll.d.ts +1 -2
  167. package/es/data-table/src/use-sorter.d.ts +1 -2
  168. package/es/data-table/src/use-sorter.js +1 -1
  169. package/es/data-table/src/use-table-data.d.ts +2 -2
  170. package/es/data-table/src/use-table-data.js +6 -1
  171. package/es/data-table/src/utils.d.ts +3 -1
  172. package/es/data-table/src/utils.js +26 -2
  173. package/es/data-table/styles/_common.d.ts +2 -0
  174. package/es/data-table/styles/_common.js +2 -0
  175. package/es/data-table/styles/dark.js +3 -1
  176. package/es/data-table/styles/light.d.ts +74 -0
  177. package/es/data-table/styles/light.js +3 -1
  178. package/es/date-picker/src/DatePicker.d.ts +1 -1
  179. package/es/date-picker/src/DatePicker.js +5 -3
  180. package/es/date-picker/src/panel/date.d.ts +17 -49
  181. package/es/date-picker/src/panel/date.js +6 -10
  182. package/es/date-picker/src/panel/daterange.d.ts +1 -1
  183. package/es/date-picker/src/panel/daterange.js +10 -18
  184. package/es/date-picker/src/panel/datetime.d.ts +7 -7
  185. package/es/date-picker/src/panel/datetime.js +6 -9
  186. package/es/date-picker/src/panel/datetimerange.d.ts +1 -1
  187. package/es/date-picker/src/panel/datetimerange.js +10 -18
  188. package/es/date-picker/src/panel/month.d.ts +7 -7
  189. package/es/date-picker/src/panel/monthrange.d.ts +1 -1
  190. package/es/date-picker/src/panel/monthrange.js +4 -2
  191. package/es/date-picker/src/panel/panelHeader.d.ts +2 -2
  192. package/es/date-picker/src/panel/use-calendar.d.ts +1 -1
  193. package/es/descriptions/src/Descriptions.d.ts +1 -1
  194. package/es/descriptions/src/DescriptionsItem.d.ts +1 -1
  195. package/es/descriptions/src/utils.d.ts +1 -1
  196. package/es/descriptions/src/utils.js +1 -1
  197. package/es/dialog/src/Dialog.d.ts +1 -1
  198. package/es/dialog/src/DialogEnvironment.d.ts +4 -1
  199. package/es/dialog/src/DialogEnvironment.js +6 -2
  200. package/es/dialog/src/DialogProvider.d.ts +4 -3
  201. package/es/discrete/src/InjectionExtractor.d.ts +1 -1
  202. package/es/discrete/src/discreteApp.d.ts +2 -1
  203. package/es/discrete/src/discreteApp.js +10 -5
  204. package/es/discrete/src/interface.d.ts +2 -1
  205. package/es/divider/src/Divider.d.ts +1 -1
  206. package/es/drawer/src/Drawer.d.ts +1 -1
  207. package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -1
  208. package/es/drawer/src/DrawerContent.d.ts +1 -1
  209. package/es/dropdown/src/Dropdown.d.ts +1 -1
  210. package/es/dropdown/src/Dropdown.js +21 -20
  211. package/es/dropdown/src/DropdownDivider.d.ts +1 -1
  212. package/es/dropdown/src/DropdownGroup.d.ts +1 -1
  213. package/es/dropdown/src/DropdownGroup.js +4 -1
  214. package/es/dropdown/src/DropdownGroupHeader.d.ts +1 -1
  215. package/es/dropdown/src/DropdownMenu.d.ts +1 -1
  216. package/es/dropdown/src/DropdownMenu.js +2 -0
  217. package/es/dropdown/src/DropdownOption.d.ts +1 -1
  218. package/es/dropdown/src/DropdownRenderOption.d.ts +1 -1
  219. package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
  220. package/es/dynamic-input/src/InputPreset.d.ts +1 -1
  221. package/es/dynamic-input/src/PairPreset.d.ts +1 -1
  222. package/es/dynamic-tags/index.d.ts +1 -0
  223. package/es/dynamic-tags/src/DynamicTags.d.ts +2 -2
  224. package/es/element/src/Element.d.ts +1 -1
  225. package/es/ellipsis/src/Ellipsis.d.ts +1 -1
  226. package/es/empty/src/Empty.d.ts +1 -1
  227. package/es/form/src/Form.d.ts +1 -1
  228. package/es/form/src/FormItem.d.ts +1 -1
  229. package/es/form/src/FormItemCol.d.ts +1 -1
  230. package/es/form/src/FormItemGridItem.d.ts +1 -1
  231. package/es/form/src/FormItemRow.d.ts +1 -1
  232. package/es/global-style/src/GlobalStyle.d.ts +1 -1
  233. package/es/gradient-text/src/GradientText.d.ts +1 -1
  234. package/es/grid/src/Grid.d.ts +1 -1
  235. package/es/grid/src/Grid.js +1 -1
  236. package/es/grid/src/GridItem.d.ts +1 -1
  237. package/es/icon/src/Icon.d.ts +1 -1
  238. package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
  239. package/es/image/src/Image.d.ts +1 -1
  240. package/es/image/src/ImageGroup.d.ts +1 -1
  241. package/es/image/src/ImagePreview.d.ts +1 -1
  242. package/es/input/src/Input.d.ts +2 -2
  243. package/es/input/src/InputGroup.d.ts +1 -1
  244. package/es/input/src/InputGroupLabel.d.ts +1 -1
  245. package/es/input/src/WordCount.d.ts +1 -1
  246. package/es/input-number/src/InputNumber.d.ts +1 -1
  247. package/es/input-number/src/InputNumber.js +6 -1
  248. package/es/layout/index.d.ts +1 -1
  249. package/es/layout/src/Layout.d.ts +2 -2
  250. package/es/layout/src/LayoutContent.d.ts +1 -1
  251. package/es/layout/src/LayoutFooter.d.ts +1 -1
  252. package/es/layout/src/LayoutHeader.d.ts +1 -1
  253. package/es/layout/src/LayoutSider.d.ts +1 -1
  254. package/es/layout/src/ToggleBar.d.ts +1 -1
  255. package/es/layout/src/ToggleButton.d.ts +1 -1
  256. package/es/legacy-grid/src/Col.d.ts +1 -1
  257. package/es/legacy-grid/src/Row.d.ts +1 -1
  258. package/es/legacy-transfer/src/Transfer.d.ts +1 -1
  259. package/es/legacy-transfer/src/TransferFilter.d.ts +1 -1
  260. package/es/legacy-transfer/src/TransferHeader.d.ts +1 -1
  261. package/es/legacy-transfer/src/TransferList.d.ts +1 -1
  262. package/es/legacy-transfer/src/TransferListItem.d.ts +1 -1
  263. package/es/list/src/List.d.ts +1 -1
  264. package/es/list/src/ListItem.d.ts +1 -1
  265. package/es/loading-bar/src/LoadingBar.d.ts +8 -3
  266. package/es/loading-bar/src/LoadingBar.js +5 -2
  267. package/es/loading-bar/src/LoadingBarProvider.d.ts +8 -5
  268. package/es/loading-bar/src/LoadingBarProvider.js +6 -6
  269. package/es/log/src/Log.d.ts +1 -1
  270. package/es/log/src/LogLine.d.ts +1 -1
  271. package/es/log/src/LogLoader.d.ts +1 -1
  272. package/es/mention/src/Mention.d.ts +1 -1
  273. package/es/menu/src/Menu.d.ts +1 -1
  274. package/es/menu/src/Menu.js +5 -2
  275. package/es/menu/src/MenuDivider.d.ts +1 -1
  276. package/es/menu/src/MenuOption.d.ts +1 -1
  277. package/es/menu/src/MenuOption.js +1 -4
  278. package/es/menu/src/MenuOptionContent.d.ts +1 -1
  279. package/es/menu/src/MenuOptionGroup.d.ts +1 -1
  280. package/es/menu/src/Submenu.d.ts +1 -1
  281. package/es/menu/src/interface.d.ts +1 -0
  282. package/es/menu/src/utils.js +1 -1
  283. package/es/message/src/Message.d.ts +1 -1
  284. package/es/message/src/MessageEnvironment.d.ts +1 -1
  285. package/es/message/src/MessageProvider.d.ts +1 -1
  286. package/es/modal/src/BodyWrapper.d.ts +4 -4
  287. package/es/modal/src/Modal.d.ts +5 -5
  288. package/es/modal/src/presetProps.d.ts +1 -1
  289. package/es/notification/src/Notification.d.ts +1 -1
  290. package/es/notification/src/NotificationContainer.d.ts +1 -1
  291. package/es/notification/src/NotificationEnvironment.d.ts +1 -1
  292. package/es/notification/src/NotificationProvider.d.ts +1 -1
  293. package/es/number-animation/src/NumberAnimation.d.ts +1 -1
  294. package/es/page-header/src/PageHeader.d.ts +1 -1
  295. package/es/pagination/src/Pagination.d.ts +14 -1
  296. package/es/pagination/src/Pagination.js +5 -5
  297. package/es/popconfirm/src/Popconfirm.d.ts +1 -1
  298. package/es/popconfirm/src/PopconfirmPanel.d.ts +1 -1
  299. package/es/popover/src/Popover.d.ts +1 -1
  300. package/es/popover/src/Popover.js +5 -0
  301. package/es/popover/src/PopoverBody.d.ts +1 -1
  302. package/es/popselect/src/Popselect.d.ts +5 -5
  303. package/es/popselect/src/PopselectPanel.d.ts +6 -6
  304. package/es/popselect/src/PopselectPanel.js +2 -2
  305. package/es/progress/src/Circle.d.ts +1 -1
  306. package/es/progress/src/Circle.js +5 -3
  307. package/es/progress/src/Line.d.ts +1 -1
  308. package/es/progress/src/MultipleCircle.d.ts +1 -1
  309. package/es/progress/src/Progress.d.ts +1 -1
  310. package/es/radio/src/Radio.d.ts +1 -1
  311. package/es/radio/src/RadioButton.d.ts +1 -1
  312. package/es/radio/src/RadioGroup.d.ts +1 -1
  313. package/es/rate/src/Rate.d.ts +1 -1
  314. package/es/result/src/Result.d.ts +1 -1
  315. package/es/scrollbar/src/Scrollbar.d.ts +1 -1
  316. package/es/select/src/Select.d.ts +19 -6
  317. package/es/select/src/Select.js +5 -5
  318. package/es/skeleton/src/Skeleton.d.ts +1 -1
  319. package/es/slider/src/Slider.d.ts +11 -1
  320. package/es/slider/src/Slider.js +3 -2
  321. package/es/slider/src/styles/index.cssr.js +2 -0
  322. package/es/slider/styles/dark.js +1 -2
  323. package/es/slider/styles/light.d.ts +1 -0
  324. package/es/slider/styles/light.js +1 -2
  325. package/es/space/src/Space.d.ts +1 -1
  326. package/es/spin/src/Spin.d.ts +1 -1
  327. package/es/statistic/src/Statistic.d.ts +1 -1
  328. package/es/steps/src/Step.d.ts +1 -1
  329. package/es/steps/src/Steps.d.ts +1 -1
  330. package/es/switch/src/Switch.d.ts +1 -1
  331. package/es/table/src/Table.d.ts +1 -1
  332. package/es/table/src/Tbody.d.ts +1 -1
  333. package/es/table/src/Td.d.ts +1 -1
  334. package/es/table/src/Th.d.ts +1 -1
  335. package/es/table/src/Thead.d.ts +1 -1
  336. package/es/table/src/Tr.d.ts +1 -1
  337. package/es/tabs/src/Tab.d.ts +1 -1
  338. package/es/tabs/src/TabPane.d.ts +1 -1
  339. package/es/tabs/src/Tabs.d.ts +2 -2
  340. package/es/tabs/src/Tabs.js +28 -0
  341. package/es/tag/src/Tag.d.ts +14 -14
  342. package/es/tag/src/Tag.js +14 -13
  343. package/es/theme-editor/src/MaximizeIcon.d.ts +1 -1
  344. package/es/theme-editor/src/MinimizeIcon.d.ts +1 -1
  345. package/es/theme-editor/src/ThemeEditor.d.ts +1 -1
  346. package/es/thing/src/Thing.d.ts +1 -1
  347. package/es/time/src/Time.d.ts +1 -1
  348. package/es/time-picker/src/Panel.d.ts +1 -1
  349. package/es/time-picker/src/PanelCol.d.ts +1 -1
  350. package/es/time-picker/src/TimePicker.d.ts +1 -1
  351. package/es/timeline/src/Timeline.d.ts +1 -1
  352. package/es/timeline/src/TimelineItem.d.ts +1 -1
  353. package/es/timeline/src/styles/index.cssr.js +2 -3
  354. package/es/timeline/styles/_common.js +2 -2
  355. package/es/tooltip/src/Tooltip.d.ts +1 -1
  356. package/es/transfer/src/Transfer.d.ts +4 -1
  357. package/es/transfer/src/Transfer.js +9 -4
  358. package/es/transfer/src/TransferFilter.d.ts +1 -1
  359. package/es/transfer/src/TransferHeader.d.ts +1 -1
  360. package/es/transfer/src/TransferList.d.ts +1 -1
  361. package/es/transfer/src/TransferListItem.d.ts +1 -1
  362. package/es/tree/src/MotionWrapper.d.ts +1 -1
  363. package/es/tree/src/Tree.d.ts +1 -1
  364. package/es/tree/src/Tree.js +42 -14
  365. package/es/tree/src/TreeNode.d.ts +1 -1
  366. package/es/tree/src/TreeNode.js +9 -4
  367. package/es/tree/src/TreeNodeCheckbox.d.ts +1 -1
  368. package/es/tree/src/TreeNodeContent.d.ts +1 -1
  369. package/es/tree/src/TreeNodeSwitcher.d.ts +1 -1
  370. package/es/tree/src/interface.d.ts +1 -0
  371. package/es/tree/src/utils.d.ts +2 -1
  372. package/es/tree/src/utils.js +3 -0
  373. package/es/tree-select/src/TreeSelect.d.ts +4 -4
  374. package/es/tree-select/src/TreeSelect.js +8 -10
  375. package/es/typography/src/a.d.ts +1 -1
  376. package/es/typography/src/blockquote.d.ts +1 -1
  377. package/es/typography/src/create-header.d.ts +1 -1
  378. package/es/typography/src/headers.d.ts +6 -6
  379. package/es/typography/src/hr.d.ts +1 -1
  380. package/es/typography/src/li.d.ts +1 -1
  381. package/es/typography/src/ol.d.ts +1 -1
  382. package/es/typography/src/p.d.ts +1 -1
  383. package/es/typography/src/text.d.ts +1 -1
  384. package/es/typography/src/ul.d.ts +1 -1
  385. package/es/upload/src/Upload.d.ts +14 -11
  386. package/es/upload/src/Upload.js +8 -3
  387. package/es/upload/src/UploadDragger.d.ts +1 -1
  388. package/es/upload/src/UploadFile.d.ts +1 -1
  389. package/es/upload/src/UploadFileList.d.ts +1 -1
  390. package/es/upload/src/UploadProgress.d.ts +1 -1
  391. package/es/upload/src/UploadTrigger.d.ts +1 -1
  392. package/es/version.d.ts +1 -1
  393. package/es/version.js +1 -1
  394. package/es/watermark/src/Watermark.d.ts +1 -1
  395. package/lib/_internal/clear/src/Clear.d.ts +1 -1
  396. package/lib/_internal/close/src/Close.d.ts +10 -1
  397. package/lib/_internal/close/src/Close.js +7 -2
  398. package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +1 -1
  399. package/lib/_internal/focus-detector/src/FocusDetector.d.ts +1 -1
  400. package/lib/_internal/icon/src/Icon.d.ts +1 -1
  401. package/lib/_internal/icon-switch-transition/src/IconSwitchTransition.d.ts +1 -1
  402. package/lib/_internal/icons/Add.d.ts +1 -1
  403. package/lib/_internal/icons/ArrowBack.d.ts +1 -1
  404. package/lib/_internal/icons/ArrowDown.d.ts +1 -1
  405. package/lib/_internal/icons/ArrowUp.d.ts +1 -1
  406. package/lib/_internal/icons/Attach.d.ts +1 -1
  407. package/lib/_internal/icons/Backward.d.ts +1 -1
  408. package/lib/_internal/icons/Cancel.d.ts +1 -1
  409. package/lib/_internal/icons/Checkmark.d.ts +1 -1
  410. package/lib/_internal/icons/ChevronDown.d.ts +1 -1
  411. package/lib/_internal/icons/ChevronDownFilled.d.ts +1 -1
  412. package/lib/_internal/icons/ChevronLeft.d.ts +1 -1
  413. package/lib/_internal/icons/ChevronRight.d.ts +1 -1
  414. package/lib/_internal/icons/Clear.d.ts +1 -1
  415. package/lib/_internal/icons/Close.d.ts +1 -1
  416. package/lib/_internal/icons/Date.d.ts +1 -1
  417. package/lib/_internal/icons/Download.d.ts +1 -1
  418. package/lib/_internal/icons/Empty.d.ts +1 -1
  419. package/lib/_internal/icons/Error.d.ts +1 -1
  420. package/lib/_internal/icons/Eye.d.ts +1 -1
  421. package/lib/_internal/icons/EyeOff.d.ts +1 -1
  422. package/lib/_internal/icons/FastBackward.d.ts +1 -1
  423. package/lib/_internal/icons/FastForward.d.ts +1 -1
  424. package/lib/_internal/icons/File.d.ts +1 -1
  425. package/lib/_internal/icons/Filter.d.ts +1 -1
  426. package/lib/_internal/icons/Forward.d.ts +1 -1
  427. package/lib/_internal/icons/Info.d.ts +1 -1
  428. package/lib/_internal/icons/More.d.ts +1 -1
  429. package/lib/_internal/icons/Photo.d.ts +1 -1
  430. package/lib/_internal/icons/Remove.d.ts +1 -1
  431. package/lib/_internal/icons/ResizeSmall.d.ts +1 -1
  432. package/lib/_internal/icons/Retry.d.ts +1 -1
  433. package/lib/_internal/icons/RotateClockwise.d.ts +1 -1
  434. package/lib/_internal/icons/RotateCounterclockwise.d.ts +1 -1
  435. package/lib/_internal/icons/Search.d.ts +1 -1
  436. package/lib/_internal/icons/Success.d.ts +1 -1
  437. package/lib/_internal/icons/Switcher.d.ts +1 -1
  438. package/lib/_internal/icons/Time.d.ts +1 -1
  439. package/lib/_internal/icons/To.d.ts +1 -1
  440. package/lib/_internal/icons/Trash.d.ts +1 -1
  441. package/lib/_internal/icons/Warning.d.ts +1 -1
  442. package/lib/_internal/icons/ZoomIn.d.ts +1 -1
  443. package/lib/_internal/icons/ZoomOut.d.ts +1 -1
  444. package/lib/_internal/icons/replaceable.d.ts +1 -1
  445. package/lib/_internal/loading/src/Loading.d.ts +1 -1
  446. package/lib/_internal/menu-mask/src/MenuMask.d.ts +1 -1
  447. package/lib/_internal/scrollbar/src/Scrollbar.d.ts +1 -1
  448. package/lib/_internal/select-menu/src/SelectGroupHeader.d.ts +1 -1
  449. package/lib/_internal/select-menu/src/SelectMenu.d.ts +1 -1
  450. package/lib/_internal/select-menu/src/SelectOption.d.ts +1 -1
  451. package/lib/_internal/selection/src/Selection.d.ts +12 -3
  452. package/lib/_internal/selection/src/Selection.js +28 -14
  453. package/lib/_internal/slot-machine/src/SlotMachine.d.ts +1 -1
  454. package/lib/_internal/slot-machine/src/SlotMachineNumber.d.ts +1 -1
  455. package/lib/_internal/suffix/src/Suffix.d.ts +1 -1
  456. package/lib/_internal/wave/src/Wave.d.ts +1 -1
  457. package/lib/_utils/index.d.ts +1 -1
  458. package/lib/_utils/index.js +2 -1
  459. package/lib/_utils/vue/call.d.ts +1 -0
  460. package/lib/_utils/vue/index.d.ts +1 -1
  461. package/lib/_utils/vue/index.js +2 -1
  462. package/lib/_utils/vue/keysOf.d.ts +1 -1
  463. package/lib/_utils/vue/resolve-slot.d.ts +1 -0
  464. package/lib/_utils/vue/resolve-slot.js +9 -1
  465. package/lib/_utils/vue/wrapper.d.ts +1 -1
  466. package/lib/affix/src/Affix.d.ts +1 -1
  467. package/lib/alert/src/Alert.d.ts +1 -1
  468. package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
  469. package/lib/anchor/src/BaseAnchor.d.ts +1 -1
  470. package/lib/anchor/src/Link.d.ts +1 -1
  471. package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
  472. package/lib/avatar/src/Avatar.d.ts +11 -2
  473. package/lib/avatar/src/Avatar.js +11 -3
  474. package/lib/avatar-group/src/AvatarGroup.d.ts +34 -11
  475. package/lib/avatar-group/src/AvatarGroup.js +7 -2
  476. package/lib/avatar-group/src/styles/avatar-group-rtl.cssr.js +3 -2
  477. package/lib/avatar-group/src/styles/avatar-group.cssr.js +4 -3
  478. package/lib/avatar-group/styles/dark.js +3 -1
  479. package/lib/avatar-group/styles/light.d.ts +6 -1
  480. package/lib/avatar-group/styles/light.js +9 -1
  481. package/lib/back-top/src/BackTop.d.ts +1 -1
  482. package/lib/badge/src/Badge.d.ts +1 -1
  483. package/lib/breadcrumb/src/Breadcrumb.d.ts +1 -1
  484. package/lib/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
  485. package/lib/button/src/Button.d.ts +2 -2
  486. package/lib/button-group/src/ButtonGroup.d.ts +1 -1
  487. package/lib/calendar/src/Calendar.d.ts +1 -1
  488. package/lib/card/index.d.ts +1 -1
  489. package/lib/card/src/Card.d.ts +7 -7
  490. package/lib/carousel/index.d.ts +1 -0
  491. package/lib/carousel/src/Carousel.d.ts +1 -1
  492. package/lib/carousel/src/CarouselArrow.d.ts +1 -1
  493. package/lib/carousel/src/CarouselDots.d.ts +1 -1
  494. package/lib/carousel/src/CarouselItem.d.ts +1 -1
  495. package/lib/carousel/src/utils/index.js +1 -1
  496. package/lib/cascader/src/Cascader.d.ts +2 -2
  497. package/lib/cascader/src/CascaderMenu.d.ts +1 -1
  498. package/lib/cascader/src/CascaderOption.d.ts +1 -1
  499. package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -1
  500. package/lib/cascader/src/CascaderSubmenu.d.ts +1 -1
  501. package/lib/checkbox/src/Checkbox.d.ts +1 -1
  502. package/lib/checkbox/src/CheckboxGroup.d.ts +1 -1
  503. package/lib/code/src/Code.d.ts +1 -1
  504. package/lib/collapse/src/Collapse.d.ts +12 -1
  505. package/lib/collapse/src/Collapse.js +3 -2
  506. package/lib/collapse/src/CollapseItem.d.ts +2 -2
  507. package/lib/collapse/src/CollapseItem.js +12 -8
  508. package/lib/collapse/src/CollapseItemContent.d.ts +1 -1
  509. package/lib/collapse/src/styles/index.cssr.js +2 -1
  510. package/lib/collapse/styles/light.d.ts +1 -0
  511. package/lib/collapse/styles/light.js +2 -1
  512. package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
  513. package/lib/color-picker/src/AlphaSlider.d.ts +1 -1
  514. package/lib/color-picker/src/ColorInput.d.ts +1 -1
  515. package/lib/color-picker/src/ColorInputUnit.d.ts +1 -1
  516. package/lib/color-picker/src/ColorPicker.d.ts +1 -1
  517. package/lib/color-picker/src/ColorPickerSwatches.d.ts +1 -1
  518. package/lib/color-picker/src/ColorPickerTrigger.d.ts +1 -1
  519. package/lib/color-picker/src/ColorPreview.d.ts +1 -1
  520. package/lib/color-picker/src/HueSlider.d.ts +1 -1
  521. package/lib/color-picker/src/Pallete.d.ts +1 -1
  522. package/lib/config-provider/src/ConfigProvider.d.ts +1 -1
  523. package/lib/countdown/src/Countdown.d.ts +1 -1
  524. package/lib/data-table/index.d.ts +3 -3
  525. package/lib/data-table/index.js +2 -1
  526. package/lib/data-table/src/DataTable.d.ts +627 -2319
  527. package/lib/data-table/src/DataTable.js +14 -55
  528. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +91 -1
  529. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +92 -2
  530. package/lib/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
  531. package/lib/data-table/src/HeaderButton/RenderSorter.d.ts +1 -1
  532. package/lib/data-table/src/HeaderButton/ResizeButton.d.ts +15 -0
  533. package/lib/data-table/src/HeaderButton/ResizeButton.js +60 -0
  534. package/lib/data-table/src/HeaderButton/SortButton.d.ts +1 -1
  535. package/lib/data-table/src/MainTable.d.ts +1 -1
  536. package/lib/data-table/src/TableParts/Body.d.ts +92 -1
  537. package/lib/data-table/src/TableParts/Body.js +39 -31
  538. package/lib/data-table/src/TableParts/BodyCheckbox.d.ts +1 -1
  539. package/lib/data-table/src/TableParts/BodyRadio.d.ts +1 -1
  540. package/lib/data-table/src/TableParts/Cell.d.ts +181 -1
  541. package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +1 -1
  542. package/lib/data-table/src/TableParts/Header.d.ts +97 -4
  543. package/lib/data-table/src/TableParts/Header.js +46 -14
  544. package/lib/data-table/src/TableParts/SelectionMenu.d.ts +1 -8
  545. package/lib/data-table/src/TableParts/SelectionMenu.js +12 -13
  546. package/lib/data-table/src/interface.d.ts +2467 -5
  547. package/lib/data-table/src/interface.js +55 -1
  548. package/lib/data-table/src/styles/index.cssr.js +27 -1
  549. package/lib/data-table/src/use-check.d.ts +4 -5
  550. package/lib/data-table/src/use-check.js +17 -14
  551. package/lib/data-table/src/use-expand.d.ts +1 -2
  552. package/lib/data-table/src/use-group-header.d.ts +2 -3
  553. package/lib/data-table/src/use-group-header.js +6 -4
  554. package/lib/data-table/src/use-resizable.d.ts +6 -0
  555. package/lib/data-table/src/use-resizable.js +26 -0
  556. package/lib/data-table/src/use-scroll.d.ts +1 -2
  557. package/lib/data-table/src/use-sorter.d.ts +1 -2
  558. package/lib/data-table/src/use-sorter.js +1 -1
  559. package/lib/data-table/src/use-table-data.d.ts +2 -2
  560. package/lib/data-table/src/use-table-data.js +6 -1
  561. package/lib/data-table/src/utils.d.ts +3 -1
  562. package/lib/data-table/src/utils.js +29 -3
  563. package/lib/data-table/styles/_common.d.ts +2 -0
  564. package/lib/data-table/styles/_common.js +2 -0
  565. package/lib/data-table/styles/dark.js +3 -1
  566. package/lib/data-table/styles/light.d.ts +74 -0
  567. package/lib/data-table/styles/light.js +3 -1
  568. package/lib/date-picker/src/DatePicker.d.ts +1 -1
  569. package/lib/date-picker/src/DatePicker.js +5 -3
  570. package/lib/date-picker/src/panel/date.d.ts +17 -49
  571. package/lib/date-picker/src/panel/date.js +5 -9
  572. package/lib/date-picker/src/panel/daterange.d.ts +1 -1
  573. package/lib/date-picker/src/panel/daterange.js +9 -17
  574. package/lib/date-picker/src/panel/datetime.d.ts +7 -7
  575. package/lib/date-picker/src/panel/datetime.js +6 -9
  576. package/lib/date-picker/src/panel/datetimerange.d.ts +1 -1
  577. package/lib/date-picker/src/panel/datetimerange.js +9 -17
  578. package/lib/date-picker/src/panel/month.d.ts +7 -7
  579. package/lib/date-picker/src/panel/monthrange.d.ts +1 -1
  580. package/lib/date-picker/src/panel/monthrange.js +4 -2
  581. package/lib/date-picker/src/panel/panelHeader.d.ts +2 -2
  582. package/lib/date-picker/src/panel/use-calendar.d.ts +1 -1
  583. package/lib/descriptions/src/Descriptions.d.ts +1 -1
  584. package/lib/descriptions/src/DescriptionsItem.d.ts +1 -1
  585. package/lib/descriptions/src/utils.d.ts +1 -1
  586. package/lib/descriptions/src/utils.js +1 -1
  587. package/lib/dialog/src/Dialog.d.ts +1 -1
  588. package/lib/dialog/src/DialogEnvironment.d.ts +4 -1
  589. package/lib/dialog/src/DialogEnvironment.js +6 -2
  590. package/lib/dialog/src/DialogProvider.d.ts +4 -3
  591. package/lib/discrete/src/InjectionExtractor.d.ts +1 -1
  592. package/lib/discrete/src/discreteApp.d.ts +2 -1
  593. package/lib/discrete/src/discreteApp.js +9 -4
  594. package/lib/discrete/src/interface.d.ts +2 -1
  595. package/lib/divider/src/Divider.d.ts +1 -1
  596. package/lib/drawer/src/Drawer.d.ts +1 -1
  597. package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -1
  598. package/lib/drawer/src/DrawerContent.d.ts +1 -1
  599. package/lib/dropdown/src/Dropdown.d.ts +1 -1
  600. package/lib/dropdown/src/Dropdown.js +21 -20
  601. package/lib/dropdown/src/DropdownDivider.d.ts +1 -1
  602. package/lib/dropdown/src/DropdownGroup.d.ts +1 -1
  603. package/lib/dropdown/src/DropdownGroup.js +4 -1
  604. package/lib/dropdown/src/DropdownGroupHeader.d.ts +1 -1
  605. package/lib/dropdown/src/DropdownMenu.d.ts +1 -1
  606. package/lib/dropdown/src/DropdownMenu.js +2 -0
  607. package/lib/dropdown/src/DropdownOption.d.ts +1 -1
  608. package/lib/dropdown/src/DropdownRenderOption.d.ts +1 -1
  609. package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
  610. package/lib/dynamic-input/src/InputPreset.d.ts +1 -1
  611. package/lib/dynamic-input/src/PairPreset.d.ts +1 -1
  612. package/lib/dynamic-tags/index.d.ts +1 -0
  613. package/lib/dynamic-tags/src/DynamicTags.d.ts +2 -2
  614. package/lib/element/src/Element.d.ts +1 -1
  615. package/lib/ellipsis/src/Ellipsis.d.ts +1 -1
  616. package/lib/empty/src/Empty.d.ts +1 -1
  617. package/lib/form/src/Form.d.ts +1 -1
  618. package/lib/form/src/FormItem.d.ts +1 -1
  619. package/lib/form/src/FormItemCol.d.ts +1 -1
  620. package/lib/form/src/FormItemGridItem.d.ts +1 -1
  621. package/lib/form/src/FormItemRow.d.ts +1 -1
  622. package/lib/global-style/src/GlobalStyle.d.ts +1 -1
  623. package/lib/gradient-text/src/GradientText.d.ts +1 -1
  624. package/lib/grid/src/Grid.d.ts +1 -1
  625. package/lib/grid/src/Grid.js +1 -1
  626. package/lib/grid/src/GridItem.d.ts +1 -1
  627. package/lib/icon/src/Icon.d.ts +1 -1
  628. package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
  629. package/lib/image/src/Image.d.ts +1 -1
  630. package/lib/image/src/ImageGroup.d.ts +1 -1
  631. package/lib/image/src/ImagePreview.d.ts +1 -1
  632. package/lib/input/src/Input.d.ts +2 -2
  633. package/lib/input/src/InputGroup.d.ts +1 -1
  634. package/lib/input/src/InputGroupLabel.d.ts +1 -1
  635. package/lib/input/src/WordCount.d.ts +1 -1
  636. package/lib/input-number/src/InputNumber.d.ts +1 -1
  637. package/lib/input-number/src/InputNumber.js +5 -0
  638. package/lib/layout/index.d.ts +1 -1
  639. package/lib/layout/src/Layout.d.ts +2 -2
  640. package/lib/layout/src/LayoutContent.d.ts +1 -1
  641. package/lib/layout/src/LayoutFooter.d.ts +1 -1
  642. package/lib/layout/src/LayoutHeader.d.ts +1 -1
  643. package/lib/layout/src/LayoutSider.d.ts +1 -1
  644. package/lib/layout/src/ToggleBar.d.ts +1 -1
  645. package/lib/layout/src/ToggleButton.d.ts +1 -1
  646. package/lib/legacy-grid/src/Col.d.ts +1 -1
  647. package/lib/legacy-grid/src/Row.d.ts +1 -1
  648. package/lib/legacy-transfer/src/Transfer.d.ts +1 -1
  649. package/lib/legacy-transfer/src/TransferFilter.d.ts +1 -1
  650. package/lib/legacy-transfer/src/TransferHeader.d.ts +1 -1
  651. package/lib/legacy-transfer/src/TransferList.d.ts +1 -1
  652. package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -1
  653. package/lib/list/src/List.d.ts +1 -1
  654. package/lib/list/src/ListItem.d.ts +1 -1
  655. package/lib/loading-bar/src/LoadingBar.d.ts +8 -3
  656. package/lib/loading-bar/src/LoadingBar.js +5 -2
  657. package/lib/loading-bar/src/LoadingBarProvider.d.ts +8 -5
  658. package/lib/loading-bar/src/LoadingBarProvider.js +6 -6
  659. package/lib/log/src/Log.d.ts +1 -1
  660. package/lib/log/src/LogLine.d.ts +1 -1
  661. package/lib/log/src/LogLoader.d.ts +1 -1
  662. package/lib/mention/src/Mention.d.ts +1 -1
  663. package/lib/menu/src/Menu.d.ts +1 -1
  664. package/lib/menu/src/Menu.js +4 -1
  665. package/lib/menu/src/MenuDivider.d.ts +1 -1
  666. package/lib/menu/src/MenuOption.d.ts +1 -1
  667. package/lib/menu/src/MenuOption.js +1 -4
  668. package/lib/menu/src/MenuOptionContent.d.ts +1 -1
  669. package/lib/menu/src/MenuOptionGroup.d.ts +1 -1
  670. package/lib/menu/src/Submenu.d.ts +1 -1
  671. package/lib/menu/src/interface.d.ts +1 -0
  672. package/lib/menu/src/utils.js +1 -1
  673. package/lib/message/src/Message.d.ts +1 -1
  674. package/lib/message/src/MessageEnvironment.d.ts +1 -1
  675. package/lib/message/src/MessageProvider.d.ts +1 -1
  676. package/lib/modal/src/BodyWrapper.d.ts +4 -4
  677. package/lib/modal/src/Modal.d.ts +5 -5
  678. package/lib/modal/src/presetProps.d.ts +1 -1
  679. package/lib/notification/src/Notification.d.ts +1 -1
  680. package/lib/notification/src/NotificationContainer.d.ts +1 -1
  681. package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
  682. package/lib/notification/src/NotificationProvider.d.ts +1 -1
  683. package/lib/number-animation/src/NumberAnimation.d.ts +1 -1
  684. package/lib/page-header/src/PageHeader.d.ts +1 -1
  685. package/lib/pagination/src/Pagination.d.ts +14 -1
  686. package/lib/pagination/src/Pagination.js +4 -4
  687. package/lib/popconfirm/src/Popconfirm.d.ts +1 -1
  688. package/lib/popconfirm/src/PopconfirmPanel.d.ts +1 -1
  689. package/lib/popover/src/Popover.d.ts +1 -1
  690. package/lib/popover/src/Popover.js +5 -0
  691. package/lib/popover/src/PopoverBody.d.ts +1 -1
  692. package/lib/popselect/src/Popselect.d.ts +5 -5
  693. package/lib/popselect/src/PopselectPanel.d.ts +6 -6
  694. package/lib/popselect/src/PopselectPanel.js +2 -2
  695. package/lib/progress/src/Circle.d.ts +1 -1
  696. package/lib/progress/src/Circle.js +5 -3
  697. package/lib/progress/src/Line.d.ts +1 -1
  698. package/lib/progress/src/MultipleCircle.d.ts +1 -1
  699. package/lib/progress/src/Progress.d.ts +1 -1
  700. package/lib/radio/src/Radio.d.ts +1 -1
  701. package/lib/radio/src/RadioButton.d.ts +1 -1
  702. package/lib/radio/src/RadioGroup.d.ts +1 -1
  703. package/lib/rate/src/Rate.d.ts +1 -1
  704. package/lib/result/src/Result.d.ts +1 -1
  705. package/lib/scrollbar/src/Scrollbar.d.ts +1 -1
  706. package/lib/select/src/Select.d.ts +19 -6
  707. package/lib/select/src/Select.js +5 -5
  708. package/lib/skeleton/src/Skeleton.d.ts +1 -1
  709. package/lib/slider/src/Slider.d.ts +11 -1
  710. package/lib/slider/src/Slider.js +3 -2
  711. package/lib/slider/src/styles/index.cssr.js +2 -0
  712. package/lib/slider/styles/dark.js +1 -2
  713. package/lib/slider/styles/light.d.ts +1 -0
  714. package/lib/slider/styles/light.js +1 -2
  715. package/lib/space/src/Space.d.ts +1 -1
  716. package/lib/spin/src/Spin.d.ts +1 -1
  717. package/lib/statistic/src/Statistic.d.ts +1 -1
  718. package/lib/steps/src/Step.d.ts +1 -1
  719. package/lib/steps/src/Steps.d.ts +1 -1
  720. package/lib/switch/src/Switch.d.ts +1 -1
  721. package/lib/table/src/Table.d.ts +1 -1
  722. package/lib/table/src/Tbody.d.ts +1 -1
  723. package/lib/table/src/Td.d.ts +1 -1
  724. package/lib/table/src/Th.d.ts +1 -1
  725. package/lib/table/src/Thead.d.ts +1 -1
  726. package/lib/table/src/Tr.d.ts +1 -1
  727. package/lib/tabs/src/Tab.d.ts +1 -1
  728. package/lib/tabs/src/TabPane.d.ts +1 -1
  729. package/lib/tabs/src/Tabs.d.ts +2 -2
  730. package/lib/tabs/src/Tabs.js +28 -0
  731. package/lib/tag/src/Tag.d.ts +14 -14
  732. package/lib/tag/src/Tag.js +12 -11
  733. package/lib/theme-editor/src/MaximizeIcon.d.ts +1 -1
  734. package/lib/theme-editor/src/MinimizeIcon.d.ts +1 -1
  735. package/lib/theme-editor/src/ThemeEditor.d.ts +1 -1
  736. package/lib/thing/src/Thing.d.ts +1 -1
  737. package/lib/time/src/Time.d.ts +1 -1
  738. package/lib/time-picker/src/Panel.d.ts +1 -1
  739. package/lib/time-picker/src/PanelCol.d.ts +1 -1
  740. package/lib/time-picker/src/TimePicker.d.ts +1 -1
  741. package/lib/timeline/src/Timeline.d.ts +1 -1
  742. package/lib/timeline/src/TimelineItem.d.ts +1 -1
  743. package/lib/timeline/src/styles/index.cssr.js +2 -3
  744. package/lib/timeline/styles/_common.js +2 -2
  745. package/lib/tooltip/src/Tooltip.d.ts +1 -1
  746. package/lib/transfer/src/Transfer.d.ts +4 -1
  747. package/lib/transfer/src/Transfer.js +9 -4
  748. package/lib/transfer/src/TransferFilter.d.ts +1 -1
  749. package/lib/transfer/src/TransferHeader.d.ts +1 -1
  750. package/lib/transfer/src/TransferList.d.ts +1 -1
  751. package/lib/transfer/src/TransferListItem.d.ts +1 -1
  752. package/lib/tree/src/MotionWrapper.d.ts +1 -1
  753. package/lib/tree/src/Tree.d.ts +1 -1
  754. package/lib/tree/src/Tree.js +41 -13
  755. package/lib/tree/src/TreeNode.d.ts +1 -1
  756. package/lib/tree/src/TreeNode.js +9 -4
  757. package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -1
  758. package/lib/tree/src/TreeNodeContent.d.ts +1 -1
  759. package/lib/tree/src/TreeNodeSwitcher.d.ts +1 -1
  760. package/lib/tree/src/interface.d.ts +1 -0
  761. package/lib/tree/src/utils.d.ts +2 -1
  762. package/lib/tree/src/utils.js +5 -1
  763. package/lib/tree-select/src/TreeSelect.d.ts +4 -4
  764. package/lib/tree-select/src/TreeSelect.js +8 -10
  765. package/lib/typography/src/a.d.ts +1 -1
  766. package/lib/typography/src/blockquote.d.ts +1 -1
  767. package/lib/typography/src/create-header.d.ts +1 -1
  768. package/lib/typography/src/headers.d.ts +6 -6
  769. package/lib/typography/src/hr.d.ts +1 -1
  770. package/lib/typography/src/li.d.ts +1 -1
  771. package/lib/typography/src/ol.d.ts +1 -1
  772. package/lib/typography/src/p.d.ts +1 -1
  773. package/lib/typography/src/text.d.ts +1 -1
  774. package/lib/typography/src/ul.d.ts +1 -1
  775. package/lib/upload/src/Upload.d.ts +14 -11
  776. package/lib/upload/src/Upload.js +8 -3
  777. package/lib/upload/src/UploadDragger.d.ts +1 -1
  778. package/lib/upload/src/UploadFile.d.ts +1 -1
  779. package/lib/upload/src/UploadFileList.d.ts +1 -1
  780. package/lib/upload/src/UploadProgress.d.ts +1 -1
  781. package/lib/upload/src/UploadTrigger.d.ts +1 -1
  782. package/lib/version.d.ts +1 -1
  783. package/lib/version.js +1 -1
  784. package/lib/watermark/src/Watermark.d.ts +1 -1
  785. package/package.json +26 -33
  786. package/web-types.json +10314 -10309
@@ -85,7 +85,7 @@ exports.default = (0, vue_1.defineComponent)({
85
85
  bodyStyle: Object
86
86
  },
87
87
  setup(props) {
88
- const { slots: dataTableSlots, bodyWidthRef, mergedExpandedRowKeysRef, mergedClsPrefixRef, mergedThemeRef, scrollXRef, colsRef, paginatedDataRef, rawPaginatedDataRef, fixedColumnLeftMapRef, fixedColumnRightMapRef, mergedCurrentPageRef, rowClassNameRef, leftActiveFixedColKeyRef, leftActiveFixedChildrenColKeysRef, rightActiveFixedColKeyRef, rightActiveFixedChildrenColKeysRef, renderExpandRef, hoverKeyRef, summaryRef, mergedSortStateRef, virtualScrollRef, componentId, scrollPartRef, mergedTableLayoutRef, childTriggerColIndexRef, indentRef, rowPropsRef, maxHeightRef, stripedRef, loadingRef, onLoadRef, loadingKeySetRef, expandableRef, stickyExpandedRowsRef, renderExpandIconRef, setHeaderScrollLeft, doUpdateExpandedRowKeys, handleTableBodyScroll, doCheck, doUncheck, renderCell
88
+ const { slots: dataTableSlots, bodyWidthRef, mergedExpandedRowKeysRef, mergedClsPrefixRef, mergedThemeRef, scrollXRef, colsRef, paginatedDataRef, rawPaginatedDataRef, fixedColumnLeftMapRef, fixedColumnRightMapRef, mergedCurrentPageRef, rowClassNameRef, leftActiveFixedColKeyRef, leftActiveFixedChildrenColKeysRef, rightActiveFixedColKeyRef, rightActiveFixedChildrenColKeysRef, renderExpandRef, hoverKeyRef, summaryRef, mergedSortStateRef, virtualScrollRef, componentId, scrollPartRef, mergedTableLayoutRef, childTriggerColIndexRef, indentRef, rowPropsRef, maxHeightRef, stripedRef, loadingRef, onLoadRef, loadingKeySetRef, expandableRef, stickyExpandedRowsRef, renderExpandIconRef, summaryPlacementRef, setHeaderScrollLeft, doUpdateExpandedRowKeys, handleTableBodyScroll, doCheck, doUncheck, renderCell
89
89
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
90
90
  } = (0, vue_1.inject)(interface_1.dataTableInjectionKey);
91
91
  const scrollbarInstRef = (0, vue_1.ref)(null);
@@ -103,7 +103,12 @@ exports.default = (0, vue_1.defineComponent)({
103
103
  const mergedExpandedRowKeySetRef = (0, vue_1.computed)(() => {
104
104
  return new Set(mergedExpandedRowKeysRef.value);
105
105
  });
106
+ function getRowInfo(key) {
107
+ const currentIndex = paginatedDataRef.value.findIndex((item) => item.key === key);
108
+ return paginatedDataRef.value[currentIndex].rawNode;
109
+ }
106
110
  function handleCheckboxUpdateChecked(tmNode, checked, shiftKey) {
111
+ const rowInfo = getRowInfo(tmNode.key);
107
112
  if (shiftKey) {
108
113
  const lastIndex = paginatedDataRef.value.findIndex((item) => item.key === lastSelectedKey);
109
114
  if (lastIndex !== -1) {
@@ -117,25 +122,26 @@ exports.default = (0, vue_1.defineComponent)({
117
122
  }
118
123
  });
119
124
  if (checked) {
120
- doCheck(rowKeysToCheck, false);
125
+ doCheck(rowKeysToCheck, false, rowInfo);
121
126
  }
122
127
  else {
123
- doUncheck(rowKeysToCheck);
128
+ doUncheck(rowKeysToCheck, rowInfo);
124
129
  }
125
130
  lastSelectedKey = tmNode.key;
126
131
  return;
127
132
  }
128
133
  }
129
134
  if (checked) {
130
- doCheck(tmNode.key, false);
135
+ doCheck(tmNode.key, false, rowInfo);
131
136
  }
132
137
  else {
133
- doUncheck(tmNode.key);
138
+ doUncheck(tmNode.key, rowInfo);
134
139
  }
135
140
  lastSelectedKey = tmNode.key;
136
141
  }
137
142
  function handleRadioUpdateChecked(tmNode) {
138
- doCheck(tmNode.key, true);
143
+ const rowInfo = getRowInfo(tmNode.key);
144
+ doCheck(tmNode.key, true, rowInfo);
139
145
  }
140
146
  function getScrollContainer() {
141
147
  if (!shouldDisplaySomeTablePartRef.value) {
@@ -280,7 +286,7 @@ exports.default = (0, vue_1.defineComponent)({
280
286
  id: `n-${componentId}`
281
287
  });
282
288
  });
283
- return Object.assign({ bodyWidth: bodyWidthRef, dataTableSlots,
289
+ return Object.assign({ bodyWidth: bodyWidthRef, summaryPlacement: summaryPlacementRef, dataTableSlots,
284
290
  componentId,
285
291
  scrollbarInstRef,
286
292
  virtualListRef,
@@ -356,32 +362,34 @@ exports.default = (0, vue_1.defineComponent)({
356
362
  if (summary) {
357
363
  const summaryRows = summary(this.rawPaginatedData);
358
364
  if (Array.isArray(summaryRows)) {
359
- mergedData = [
360
- ...mergedPaginationData,
361
- ...summaryRows.map((row, i) => ({
362
- isSummaryRow: true,
363
- key: `__n_summary__${i}`,
364
- tmNode: {
365
- rawNode: row,
366
- disabled: true
367
- },
368
- index: -1
369
- }))
370
- ];
365
+ const summaryRowData = summaryRows.map((row, i) => ({
366
+ isSummaryRow: true,
367
+ key: `__n_summary__${i}`,
368
+ tmNode: {
369
+ rawNode: row,
370
+ disabled: true
371
+ },
372
+ index: -1
373
+ }));
374
+ mergedData =
375
+ this.summaryPlacement === 'top'
376
+ ? [...summaryRowData, ...mergedPaginationData]
377
+ : [...mergedPaginationData, ...summaryRowData];
371
378
  }
372
379
  else {
373
- mergedData = [
374
- ...mergedPaginationData,
375
- {
376
- isSummaryRow: true,
377
- key: '__n_summary__',
378
- tmNode: {
379
- rawNode: summaryRows,
380
- disabled: true
381
- },
382
- index: -1
383
- }
384
- ];
380
+ const summaryRowData = {
381
+ isSummaryRow: true,
382
+ key: '__n_summary__',
383
+ tmNode: {
384
+ rawNode: summaryRows,
385
+ disabled: true
386
+ },
387
+ index: -1
388
+ };
389
+ mergedData =
390
+ this.summaryPlacement === 'top'
391
+ ? [summaryRowData, ...mergedPaginationData]
392
+ : [...mergedPaginationData, summaryRowData];
385
393
  }
386
394
  }
387
395
  else {
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
13
13
  type: PropType<(checked: boolean, e: MouseEvent | KeyboardEvent) => void>;
14
14
  required: true;
15
15
  };
16
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
17
  rowKey: {
18
18
  type: PropType<RowKey>;
19
19
  required: true;
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
13
13
  type: PropType<(checked: boolean) => void>;
14
14
  required: true;
15
15
  };
16
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
17
  rowKey: {
18
18
  type: PropType<RowKey>;
19
19
  required: true;
@@ -168,6 +168,8 @@ declare const _default: import("vue").DefineComponent<{
168
168
  tdPaddingMedium: string;
169
169
  tdPaddingLarge: string;
170
170
  sorterSize: string;
171
+ resizableContainerSize: string;
172
+ resizableSize: string;
171
173
  filterSize: string;
172
174
  paginationMargin: string;
173
175
  emptyPadding: string;
@@ -832,6 +834,76 @@ declare const _default: import("vue").DefineComponent<{
832
834
  }, any>;
833
835
  }>;
834
836
  }>;
837
+ Dropdown: import("../../../_mixins").Theme<"Dropdown", {
838
+ optionHeightSmall: string;
839
+ optionHeightMedium: string;
840
+ optionHeightLarge: string;
841
+ optionHeightHuge: string;
842
+ borderRadius: string;
843
+ fontSizeSmall: string;
844
+ fontSizeMedium: string;
845
+ fontSizeLarge: string;
846
+ fontSizeHuge: string;
847
+ optionTextColor: string;
848
+ optionTextColorHover: string;
849
+ optionTextColorActive: string;
850
+ optionTextColorChildActive: string;
851
+ color: string;
852
+ dividerColor: string;
853
+ suffixColor: string;
854
+ prefixColor: string;
855
+ optionColorHover: string;
856
+ optionColorActive: string;
857
+ groupHeaderTextColor: string;
858
+ optionTextColorInverted: string;
859
+ optionTextColorHoverInverted: string;
860
+ optionTextColorActiveInverted: string;
861
+ optionTextColorChildActiveInverted: string;
862
+ colorInverted: string;
863
+ dividerColorInverted: string;
864
+ suffixColorInverted: string;
865
+ prefixColorInverted: string;
866
+ optionColorHoverInverted: string;
867
+ optionColorActiveInverted: string;
868
+ groupHeaderTextColorInverted: string;
869
+ optionOpacityDisabled: string;
870
+ padding: string;
871
+ optionIconSizeSmall: string;
872
+ optionIconSizeMedium: string;
873
+ optionIconSizeLarge: string;
874
+ optionIconSizeHuge: string;
875
+ optionSuffixWidthSmall: string;
876
+ optionSuffixWidthMedium: string;
877
+ optionSuffixWidthLarge: string;
878
+ optionSuffixWidthHuge: string;
879
+ optionIconSuffixWidthSmall: string;
880
+ optionIconSuffixWidthMedium: string;
881
+ optionIconSuffixWidthLarge: string;
882
+ optionIconSuffixWidthHuge: string;
883
+ optionPrefixWidthSmall: string;
884
+ optionPrefixWidthMedium: string;
885
+ optionPrefixWidthLarge: string;
886
+ optionPrefixWidthHuge: string;
887
+ optionIconPrefixWidthSmall: string;
888
+ optionIconPrefixWidthMedium: string;
889
+ optionIconPrefixWidthLarge: string;
890
+ optionIconPrefixWidthHuge: string;
891
+ }, {
892
+ Popover: import("../../../_mixins").Theme<"Popover", {
893
+ fontSize: string;
894
+ borderRadius: string;
895
+ color: string;
896
+ dividerColor: string;
897
+ textColor: string;
898
+ boxShadow: string;
899
+ space: string;
900
+ spaceArrow: string;
901
+ arrowOffset: string;
902
+ arrowOffsetVertical: string;
903
+ arrowHeight: string;
904
+ padding: string;
905
+ }, any>;
906
+ }>;
835
907
  };
836
908
  peerOverrides: {
837
909
  Button?: {
@@ -1152,12 +1224,30 @@ declare const _default: import("vue").DefineComponent<{
1152
1224
  }>> | undefined;
1153
1225
  } | undefined;
1154
1226
  } | undefined;
1227
+ Dropdown?: {
1228
+ peers?: {
1229
+ Popover?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Popover", {
1230
+ fontSize: string;
1231
+ borderRadius: string;
1232
+ color: string;
1233
+ dividerColor: string;
1234
+ textColor: string;
1235
+ boxShadow: string;
1236
+ space: string;
1237
+ spaceArrow: string;
1238
+ arrowOffset: string;
1239
+ arrowOffsetVertical: string;
1240
+ arrowHeight: string;
1241
+ padding: string;
1242
+ }, any>> | undefined;
1243
+ } | undefined;
1244
+ } | undefined;
1155
1245
  };
1156
1246
  }>;
1157
1247
  required: true;
1158
1248
  };
1159
1249
  renderCell: PropType<(value: any, rowData: object, column: any) => VNodeChild>;
1160
- }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1250
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1161
1251
  clsPrefix: {
1162
1252
  type: StringConstructor;
1163
1253
  required: true;
@@ -1325,6 +1415,8 @@ declare const _default: import("vue").DefineComponent<{
1325
1415
  tdPaddingMedium: string;
1326
1416
  tdPaddingLarge: string;
1327
1417
  sorterSize: string;
1418
+ resizableContainerSize: string;
1419
+ resizableSize: string;
1328
1420
  filterSize: string;
1329
1421
  paginationMargin: string;
1330
1422
  emptyPadding: string;
@@ -1989,6 +2081,76 @@ declare const _default: import("vue").DefineComponent<{
1989
2081
  }, any>;
1990
2082
  }>;
1991
2083
  }>;
2084
+ Dropdown: import("../../../_mixins").Theme<"Dropdown", {
2085
+ optionHeightSmall: string;
2086
+ optionHeightMedium: string;
2087
+ optionHeightLarge: string;
2088
+ optionHeightHuge: string;
2089
+ borderRadius: string;
2090
+ fontSizeSmall: string;
2091
+ fontSizeMedium: string;
2092
+ fontSizeLarge: string;
2093
+ fontSizeHuge: string;
2094
+ optionTextColor: string;
2095
+ optionTextColorHover: string;
2096
+ optionTextColorActive: string;
2097
+ optionTextColorChildActive: string;
2098
+ color: string;
2099
+ dividerColor: string;
2100
+ suffixColor: string;
2101
+ prefixColor: string;
2102
+ optionColorHover: string;
2103
+ optionColorActive: string;
2104
+ groupHeaderTextColor: string;
2105
+ optionTextColorInverted: string;
2106
+ optionTextColorHoverInverted: string;
2107
+ optionTextColorActiveInverted: string;
2108
+ optionTextColorChildActiveInverted: string;
2109
+ colorInverted: string;
2110
+ dividerColorInverted: string;
2111
+ suffixColorInverted: string;
2112
+ prefixColorInverted: string;
2113
+ optionColorHoverInverted: string;
2114
+ optionColorActiveInverted: string;
2115
+ groupHeaderTextColorInverted: string;
2116
+ optionOpacityDisabled: string;
2117
+ padding: string;
2118
+ optionIconSizeSmall: string;
2119
+ optionIconSizeMedium: string;
2120
+ optionIconSizeLarge: string;
2121
+ optionIconSizeHuge: string;
2122
+ optionSuffixWidthSmall: string;
2123
+ optionSuffixWidthMedium: string;
2124
+ optionSuffixWidthLarge: string;
2125
+ optionSuffixWidthHuge: string;
2126
+ optionIconSuffixWidthSmall: string;
2127
+ optionIconSuffixWidthMedium: string;
2128
+ optionIconSuffixWidthLarge: string;
2129
+ optionIconSuffixWidthHuge: string;
2130
+ optionPrefixWidthSmall: string;
2131
+ optionPrefixWidthMedium: string;
2132
+ optionPrefixWidthLarge: string;
2133
+ optionPrefixWidthHuge: string;
2134
+ optionIconPrefixWidthSmall: string;
2135
+ optionIconPrefixWidthMedium: string;
2136
+ optionIconPrefixWidthLarge: string;
2137
+ optionIconPrefixWidthHuge: string;
2138
+ }, {
2139
+ Popover: import("../../../_mixins").Theme<"Popover", {
2140
+ fontSize: string;
2141
+ borderRadius: string;
2142
+ color: string;
2143
+ dividerColor: string;
2144
+ textColor: string;
2145
+ boxShadow: string;
2146
+ space: string;
2147
+ spaceArrow: string;
2148
+ arrowOffset: string;
2149
+ arrowOffsetVertical: string;
2150
+ arrowHeight: string;
2151
+ padding: string;
2152
+ }, any>;
2153
+ }>;
1992
2154
  };
1993
2155
  peerOverrides: {
1994
2156
  Button?: {
@@ -2309,6 +2471,24 @@ declare const _default: import("vue").DefineComponent<{
2309
2471
  }>> | undefined;
2310
2472
  } | undefined;
2311
2473
  } | undefined;
2474
+ Dropdown?: {
2475
+ peers?: {
2476
+ Popover?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Popover", {
2477
+ fontSize: string;
2478
+ borderRadius: string;
2479
+ color: string;
2480
+ dividerColor: string;
2481
+ textColor: string;
2482
+ boxShadow: string;
2483
+ space: string;
2484
+ spaceArrow: string;
2485
+ arrowOffset: string;
2486
+ arrowOffsetVertical: string;
2487
+ arrowHeight: string;
2488
+ padding: string;
2489
+ }, any>> | undefined;
2490
+ } | undefined;
2491
+ } | undefined;
2312
2492
  };
2313
2493
  }>;
2314
2494
  required: true;
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
13
13
  renderExpandIcon: {
14
14
  type: PropType<() => VNodeChild>;
15
15
  };
16
- }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
17
  clsPrefix: {
18
18
  type: StringConstructor;
19
19
  required: true;
@@ -1,19 +1,20 @@
1
- import { TableBaseColumn } from '../interface';
1
+ import { TableBaseColumn, ColumnKey } from '../interface';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  discrete: {
4
4
  type: BooleanConstructor;
5
5
  default: boolean;
6
6
  };
7
7
  }, {
8
+ cellElsRef: import("vue").Ref<Record<ColumnKey, HTMLTableCellElement>>;
8
9
  componentId: string;
9
10
  mergedSortState: import("vue").Ref<import("../interface").SortState[]>;
10
11
  mergedClsPrefix: import("vue").Ref<string>;
11
12
  scrollX: import("vue").Ref<string | number | undefined>;
12
- fixedColumnLeftMap: import("vue").Ref<Record<import("../interface").ColumnKey, {
13
+ fixedColumnLeftMap: import("vue").Ref<Record<ColumnKey, {
13
14
  start: number;
14
15
  end: number;
15
16
  } | undefined>>;
16
- fixedColumnRightMap: import("vue").Ref<Record<import("../interface").ColumnKey, {
17
+ fixedColumnRightMap: import("vue").Ref<Record<ColumnKey, {
17
18
  start: number;
18
19
  end: number;
19
20
  } | undefined>>;
@@ -171,6 +172,8 @@ declare const _default: import("vue").DefineComponent<{
171
172
  tdPaddingMedium: string;
172
173
  tdPaddingLarge: string;
173
174
  sorterSize: string;
175
+ resizableContainerSize: string;
176
+ resizableSize: string;
174
177
  filterSize: string;
175
178
  paginationMargin: string;
176
179
  emptyPadding: string;
@@ -835,6 +838,76 @@ declare const _default: import("vue").DefineComponent<{
835
838
  }, any>;
836
839
  }>;
837
840
  }>;
841
+ Dropdown: import("../../../_mixins").Theme<"Dropdown", {
842
+ optionHeightSmall: string;
843
+ optionHeightMedium: string;
844
+ optionHeightLarge: string;
845
+ optionHeightHuge: string;
846
+ borderRadius: string;
847
+ fontSizeSmall: string;
848
+ fontSizeMedium: string;
849
+ fontSizeLarge: string;
850
+ fontSizeHuge: string;
851
+ optionTextColor: string;
852
+ optionTextColorHover: string;
853
+ optionTextColorActive: string;
854
+ optionTextColorChildActive: string;
855
+ color: string;
856
+ dividerColor: string;
857
+ suffixColor: string;
858
+ prefixColor: string;
859
+ optionColorHover: string;
860
+ optionColorActive: string;
861
+ groupHeaderTextColor: string;
862
+ optionTextColorInverted: string;
863
+ optionTextColorHoverInverted: string;
864
+ optionTextColorActiveInverted: string;
865
+ optionTextColorChildActiveInverted: string;
866
+ colorInverted: string;
867
+ dividerColorInverted: string;
868
+ suffixColorInverted: string;
869
+ prefixColorInverted: string;
870
+ optionColorHoverInverted: string;
871
+ optionColorActiveInverted: string;
872
+ groupHeaderTextColorInverted: string;
873
+ optionOpacityDisabled: string;
874
+ padding: string;
875
+ optionIconSizeSmall: string;
876
+ optionIconSizeMedium: string;
877
+ optionIconSizeLarge: string;
878
+ optionIconSizeHuge: string;
879
+ optionSuffixWidthSmall: string;
880
+ optionSuffixWidthMedium: string;
881
+ optionSuffixWidthLarge: string;
882
+ optionSuffixWidthHuge: string;
883
+ optionIconSuffixWidthSmall: string;
884
+ optionIconSuffixWidthMedium: string;
885
+ optionIconSuffixWidthLarge: string;
886
+ optionIconSuffixWidthHuge: string;
887
+ optionPrefixWidthSmall: string;
888
+ optionPrefixWidthMedium: string;
889
+ optionPrefixWidthLarge: string;
890
+ optionPrefixWidthHuge: string;
891
+ optionIconPrefixWidthSmall: string;
892
+ optionIconPrefixWidthMedium: string;
893
+ optionIconPrefixWidthLarge: string;
894
+ optionIconPrefixWidthHuge: string;
895
+ }, {
896
+ Popover: import("../../../_mixins").Theme<"Popover", {
897
+ fontSize: string;
898
+ borderRadius: string;
899
+ color: string;
900
+ dividerColor: string;
901
+ textColor: string;
902
+ boxShadow: string;
903
+ space: string;
904
+ spaceArrow: string;
905
+ arrowOffset: string;
906
+ arrowOffsetVertical: string;
907
+ arrowHeight: string;
908
+ padding: string;
909
+ }, any>;
910
+ }>;
838
911
  };
839
912
  peerOverrides: {
840
913
  Button?: {
@@ -1155,6 +1228,24 @@ declare const _default: import("vue").DefineComponent<{
1155
1228
  }>> | undefined;
1156
1229
  } | undefined;
1157
1230
  } | undefined;
1231
+ Dropdown?: {
1232
+ peers?: {
1233
+ Popover?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Popover", {
1234
+ fontSize: string;
1235
+ borderRadius: string;
1236
+ color: string;
1237
+ dividerColor: string;
1238
+ textColor: string;
1239
+ boxShadow: string;
1240
+ space: string;
1241
+ spaceArrow: string;
1242
+ arrowOffset: string;
1243
+ arrowOffsetVertical: string;
1244
+ arrowHeight: string;
1245
+ padding: string;
1246
+ }, any>> | undefined;
1247
+ } | undefined;
1248
+ } | undefined;
1158
1249
  };
1159
1250
  }>;
1160
1251
  checkOptions: import("vue").Ref<import("../interface").DataTableSelectionOptions<import("../interface").InternalRowData> | undefined>;
@@ -1165,7 +1256,9 @@ declare const _default: import("vue").DefineComponent<{
1165
1256
  handleCheckboxUpdateChecked: () => void;
1166
1257
  handleColHeaderClick: (e: MouseEvent, column: TableBaseColumn) => void;
1167
1258
  handleTableHeaderScroll: (e: Event) => void;
1168
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1259
+ handleColumnResizeStart: (column: TableBaseColumn) => void;
1260
+ handleColumnResize: (column: TableBaseColumn, displacementX: number) => void;
1261
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1169
1262
  discrete: {
1170
1263
  type: BooleanConstructor;
1171
1264
  default: boolean;
@@ -10,6 +10,7 @@ const checkbox_1 = require("../../../checkbox");
10
10
  const ellipsis_1 = require("../../../ellipsis");
11
11
  const SortButton_1 = __importDefault(require("../HeaderButton/SortButton"));
12
12
  const FilterButton_1 = __importDefault(require("../HeaderButton/FilterButton"));
13
+ const ResizeButton_1 = __importDefault(require("../HeaderButton/ResizeButton"));
13
14
  const utils_1 = require("../utils");
14
15
  const interface_1 = require("../interface");
15
16
  const SelectionMenu_1 = __importDefault(require("./SelectionMenu"));
@@ -27,9 +28,14 @@ exports.default = (0, vue_1.defineComponent)({
27
28
  }
28
29
  },
29
30
  setup() {
30
- const { mergedClsPrefixRef, scrollXRef, fixedColumnLeftMapRef, fixedColumnRightMapRef, mergedCurrentPageRef, allRowsCheckedRef, someRowsCheckedRef, rowsRef, colsRef, mergedThemeRef, checkOptionsRef, mergedSortStateRef, componentId, scrollPartRef, mergedTableLayoutRef, headerCheckboxDisabledRef, handleTableHeaderScroll, deriveNextSorter, doUncheckAll, doCheckAll
31
+ const { mergedClsPrefixRef, scrollXRef, fixedColumnLeftMapRef, fixedColumnRightMapRef, mergedCurrentPageRef, allRowsCheckedRef, someRowsCheckedRef, rowsRef, colsRef, mergedThemeRef, checkOptionsRef, mergedSortStateRef, componentId, scrollPartRef, mergedTableLayoutRef, headerCheckboxDisabledRef, onUnstableColumnResize, doUpdateResizableWidth, handleTableHeaderScroll, deriveNextSorter, doUncheckAll, doCheckAll
31
32
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
32
33
  } = (0, vue_1.inject)(interface_1.dataTableInjectionKey);
34
+ const cellElsRef = (0, vue_1.ref)({});
35
+ function getCellActualWidth(key) {
36
+ const element = cellElsRef.value[key];
37
+ return element === null || element === void 0 ? void 0 : element.getBoundingClientRect().width;
38
+ }
33
39
  function handleCheckboxUpdateChecked() {
34
40
  if (allRowsCheckedRef.value) {
35
41
  doUncheckAll();
@@ -39,8 +45,10 @@ exports.default = (0, vue_1.defineComponent)({
39
45
  }
40
46
  }
41
47
  function handleColHeaderClick(e, column) {
42
- if ((0, seemly_1.happensIn)(e, 'dataTableFilter'))
48
+ if ((0, seemly_1.happensIn)(e, 'dataTableFilter') ||
49
+ (0, seemly_1.happensIn)(e, 'dataTableResizable')) {
43
50
  return;
51
+ }
44
52
  if (!(0, utils_1.isColumnSortable)(column))
45
53
  return;
46
54
  const activeSorter = mergedSortStateRef.value.find((state) => state.columnKey === column.key) || null;
@@ -53,7 +61,22 @@ exports.default = (0, vue_1.defineComponent)({
53
61
  function handleMouseleave() {
54
62
  scrollPartRef.value = 'body';
55
63
  }
64
+ const resizeStartWidthMap = new Map();
65
+ function handleColumnResizeStart(column) {
66
+ resizeStartWidthMap.set(column.key, getCellActualWidth(column.key));
67
+ }
68
+ function handleColumnResize(column, displacementX) {
69
+ const startWidth = resizeStartWidthMap.get(column.key);
70
+ if (startWidth === undefined) {
71
+ return;
72
+ }
73
+ const widthAfterResize = startWidth + displacementX;
74
+ const limitWidth = (0, utils_1.clampValueFollowCSSRules)(widthAfterResize, column.minWidth, column.maxWidth);
75
+ onUnstableColumnResize(widthAfterResize, limitWidth, column, getCellActualWidth);
76
+ doUpdateResizableWidth(column, limitWidth);
77
+ }
56
78
  return {
79
+ cellElsRef,
57
80
  componentId,
58
81
  mergedSortState: mergedSortStateRef,
59
82
  mergedClsPrefix: mergedClsPrefixRef,
@@ -73,11 +96,13 @@ exports.default = (0, vue_1.defineComponent)({
73
96
  handleMouseleave,
74
97
  handleCheckboxUpdateChecked,
75
98
  handleColHeaderClick,
76
- handleTableHeaderScroll
99
+ handleTableHeaderScroll,
100
+ handleColumnResizeStart,
101
+ handleColumnResize
77
102
  };
78
103
  },
79
104
  render() {
80
- const { mergedClsPrefix, fixedColumnLeftMap, fixedColumnRightMap, currentPage, allRowsChecked, someRowsChecked, rows, cols, mergedTheme, checkOptions, componentId, discrete, mergedTableLayout, headerCheckboxDisabled, mergedSortState, handleColHeaderClick, handleCheckboxUpdateChecked } = this;
105
+ const { cellElsRef, mergedClsPrefix, fixedColumnLeftMap, fixedColumnRightMap, currentPage, allRowsChecked, someRowsChecked, rows, cols, mergedTheme, checkOptions, componentId, discrete, mergedTableLayout, headerCheckboxDisabled, mergedSortState, handleColHeaderClick, handleCheckboxUpdateChecked, handleColumnResizeStart, handleColumnResize } = this;
81
106
  let hasEllipsis = false;
82
107
  const theadVNode = ((0, vue_1.h)("thead", { class: `${mergedClsPrefix}-data-table-thead`, "data-n-id": componentId }, rows.map((row) => {
83
108
  return ((0, vue_1.h)("tr", { class: `${mergedClsPrefix}-data-table-tr` }, row.map(({ column, colSpan, rowSpan, isLast }) => {
@@ -86,9 +111,24 @@ exports.default = (0, vue_1.defineComponent)({
86
111
  const { ellipsis } = column;
87
112
  if (!hasEllipsis && ellipsis)
88
113
  hasEllipsis = true;
114
+ const createColumnVNode = () => {
115
+ if (column.type === 'selection') {
116
+ return column.multiple !== false ? ((0, vue_1.h)(vue_1.Fragment, null,
117
+ (0, vue_1.h)(checkbox_1.NCheckbox, { key: currentPage, privateInsideTable: true, checked: allRowsChecked, indeterminate: someRowsChecked, disabled: headerCheckboxDisabled, onUpdateChecked: handleCheckboxUpdateChecked }),
118
+ checkOptions ? ((0, vue_1.h)(SelectionMenu_1.default, { clsPrefix: mergedClsPrefix })) : null)) : null;
119
+ }
120
+ return ((0, vue_1.h)(vue_1.Fragment, null,
121
+ ellipsis === true || (ellipsis && !ellipsis.tooltip) ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-data-table-th__ellipsis` }, renderTitle(column))) // eslint-disable-next-line @typescript-eslint/prefer-optional-chain
122
+ : ellipsis && typeof ellipsis === 'object' ? ((0, vue_1.h)(ellipsis_1.NEllipsis, Object.assign({}, ellipsis, { theme: mergedTheme.peers.Ellipsis, themeOverrides: mergedTheme.peerOverrides.Ellipsis }), {
123
+ default: () => renderTitle(column)
124
+ })) : (renderTitle(column)),
125
+ (0, utils_1.isColumnSortable)(column) ? ((0, vue_1.h)(SortButton_1.default, { column: column })) : null,
126
+ (0, utils_1.isColumnFilterable)(column) ? ((0, vue_1.h)(FilterButton_1.default, { column: column, options: column.filterOptions })) : null,
127
+ (0, utils_1.isColumnResizable)(column) ? ((0, vue_1.h)(ResizeButton_1.default, { onResizeStart: () => handleColumnResizeStart(column), onResize: (displacementX) => handleColumnResize(column, displacementX) })) : null));
128
+ };
89
129
  const leftFixed = key in fixedColumnLeftMap;
90
130
  const rightFixed = key in fixedColumnRightMap;
91
- return ((0, vue_1.h)("th", { key: key, style: {
131
+ return ((0, vue_1.h)("th", { ref: (el) => (cellElsRef[key] = el), key: key, style: {
92
132
  textAlign: column.align,
93
133
  left: (0, seemly_1.pxfy)((_a = fixedColumnLeftMap[key]) === null || _a === void 0 ? void 0 : _a.start),
94
134
  right: (0, seemly_1.pxfy)((_b = fixedColumnRightMap[key]) === null || _b === void 0 ? void 0 : _b.start)
@@ -110,15 +150,7 @@ exports.default = (0, vue_1.defineComponent)({
110
150
  ? (e) => {
111
151
  handleColHeaderClick(e, column);
112
152
  }
113
- : undefined },
114
- column.type === 'selection' ? (column.multiple !== false ? ((0, vue_1.h)(vue_1.Fragment, null,
115
- (0, vue_1.h)(checkbox_1.NCheckbox, { key: currentPage, privateInsideTable: true, checked: allRowsChecked, indeterminate: someRowsChecked, disabled: headerCheckboxDisabled, onUpdateChecked: handleCheckboxUpdateChecked }),
116
- checkOptions ? ((0, vue_1.h)(SelectionMenu_1.default, { clsPrefix: mergedClsPrefix })) : null)) : null) : ellipsis === true || (ellipsis && !ellipsis.tooltip) ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-data-table-th__ellipsis` }, renderTitle(column))) // eslint-disable-next-line @typescript-eslint/prefer-optional-chain
117
- : ellipsis && typeof ellipsis === 'object' ? ((0, vue_1.h)(ellipsis_1.NEllipsis, Object.assign({}, ellipsis, { theme: mergedTheme.peers.Ellipsis, themeOverrides: mergedTheme.peerOverrides.Ellipsis }), {
118
- default: () => renderTitle(column)
119
- })) : (renderTitle(column)),
120
- (0, utils_1.isColumnSortable)(column) ? ((0, vue_1.h)(SortButton_1.default, { column: column })) : null,
121
- (0, utils_1.isColumnFilterable)(column) ? ((0, vue_1.h)(FilterButton_1.default, { column: column, options: column.filterOptions })) : null));
153
+ : undefined }, createColumnVNode()));
122
154
  })));
123
155
  })));
124
156
  if (!discrete) {