naive-ui 2.34.4 → 2.36.0

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 (1041) hide show
  1. package/README.md +2 -0
  2. package/README.zh-CN.md +2 -0
  3. package/dist/index.js +47537 -44859
  4. package/dist/index.prod.js +2 -2
  5. package/es/_internal/clear/src/Clear.d.ts +1 -1
  6. package/es/_internal/clear/src/Clear.js +2 -0
  7. package/es/_internal/close/src/Close.d.ts +1 -1
  8. package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +1 -1
  9. package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.js +1 -0
  10. package/es/_internal/focus-detector/src/FocusDetector.d.ts +1 -1
  11. package/es/_internal/icon/src/Icon.d.ts +1 -1
  12. package/es/_internal/icon-switch-transition/src/IconSwitchTransition.d.ts +1 -1
  13. package/es/_internal/icons/Add.d.ts +1 -1
  14. package/es/_internal/icons/ArrowBack.d.ts +1 -1
  15. package/es/_internal/icons/ArrowDown.d.ts +1 -1
  16. package/es/_internal/icons/ArrowUp.d.ts +1 -1
  17. package/es/_internal/icons/Attach.d.ts +1 -1
  18. package/es/_internal/icons/Backward.d.ts +1 -1
  19. package/es/_internal/icons/Cancel.d.ts +1 -1
  20. package/es/_internal/icons/Checkmark.d.ts +1 -1
  21. package/es/_internal/icons/ChevronDown.d.ts +1 -1
  22. package/es/_internal/icons/ChevronDownFilled.d.ts +1 -1
  23. package/es/_internal/icons/ChevronLeft.d.ts +1 -1
  24. package/es/_internal/icons/ChevronRight.d.ts +1 -1
  25. package/es/_internal/icons/Clear.d.ts +1 -1
  26. package/es/_internal/icons/Close.d.ts +1 -1
  27. package/es/_internal/icons/Date.d.ts +1 -1
  28. package/es/_internal/icons/Download.d.ts +1 -1
  29. package/es/_internal/icons/Empty.d.ts +1 -1
  30. package/es/_internal/icons/Error.d.ts +1 -1
  31. package/es/_internal/icons/Eye.d.ts +1 -1
  32. package/es/_internal/icons/EyeOff.d.ts +1 -1
  33. package/es/_internal/icons/FastBackward.d.ts +1 -1
  34. package/es/_internal/icons/FastForward.d.ts +1 -1
  35. package/es/_internal/icons/File.d.ts +1 -1
  36. package/es/_internal/icons/Filter.d.ts +1 -1
  37. package/es/_internal/icons/Forward.d.ts +1 -1
  38. package/es/_internal/icons/Info.d.ts +1 -1
  39. package/es/_internal/icons/More.d.ts +1 -1
  40. package/es/_internal/icons/Photo.d.ts +1 -1
  41. package/es/_internal/icons/Remove.d.ts +1 -1
  42. package/es/_internal/icons/ResizeSmall.d.ts +1 -1
  43. package/es/_internal/icons/Retry.d.ts +1 -1
  44. package/es/_internal/icons/RotateClockwise.d.ts +1 -1
  45. package/es/_internal/icons/RotateCounterclockwise.d.ts +1 -1
  46. package/es/_internal/icons/Search.d.ts +1 -1
  47. package/es/_internal/icons/Success.d.ts +1 -1
  48. package/es/_internal/icons/Switcher.d.ts +1 -1
  49. package/es/_internal/icons/Time.d.ts +1 -1
  50. package/es/_internal/icons/To.d.ts +1 -1
  51. package/es/_internal/icons/Trash.d.ts +1 -1
  52. package/es/_internal/icons/Warning.d.ts +1 -1
  53. package/es/_internal/icons/ZoomIn.d.ts +1 -1
  54. package/es/_internal/icons/ZoomOut.d.ts +1 -1
  55. package/es/_internal/icons/replaceable.d.ts +1 -1
  56. package/es/_internal/loading/src/Loading.d.ts +1 -1
  57. package/es/_internal/menu-mask/src/MenuMask.d.ts +1 -1
  58. package/es/_internal/scrollbar/src/Scrollbar.d.ts +2 -2
  59. package/es/_internal/scrollbar/src/Scrollbar.js +11 -6
  60. package/es/_internal/scrollbar/src/styles/index.cssr.js +1 -0
  61. package/es/_internal/select-menu/src/SelectGroupHeader.d.ts +1 -1
  62. package/es/_internal/select-menu/src/SelectMenu.d.ts +4 -4
  63. package/es/_internal/select-menu/src/SelectMenu.js +2 -1
  64. package/es/_internal/select-menu/src/SelectOption.d.ts +1 -1
  65. package/es/_internal/select-menu/src/styles/index.cssr.js +8 -0
  66. package/es/_internal/selection/src/Selection.d.ts +5 -2
  67. package/es/_internal/selection/src/Selection.js +17 -7
  68. package/es/_internal/slot-machine/src/SlotMachine.d.ts +1 -1
  69. package/es/_internal/slot-machine/src/SlotMachineNumber.d.ts +1 -1
  70. package/es/_internal/suffix/src/Suffix.d.ts +1 -1
  71. package/es/_internal/wave/src/Wave.d.ts +1 -1
  72. package/es/_mixins/use-config.d.ts +2 -1
  73. package/es/_mixins/use-config.js +10 -5
  74. package/es/_mixins/use-form-item.d.ts +1 -1
  75. package/es/_mixins/use-style.d.ts +1 -1
  76. package/es/_mixins/use-style.js +1 -1
  77. package/es/_styles/common/_common.js +1 -1
  78. package/es/_styles/common/light.js +2 -2
  79. package/es/_utils/composable/use-collection.d.ts +1 -1
  80. package/es/_utils/composable/use-collection.js +2 -0
  81. package/es/_utils/css/color-to-class.js +1 -1
  82. package/es/_utils/cssr/index.d.ts +1 -1
  83. package/es/_utils/vue/wrapper.d.ts +1 -1
  84. package/es/affix/src/Affix.d.ts +4 -4
  85. package/es/affix/src/Affix.js +4 -2
  86. package/es/alert/src/Alert.d.ts +2 -2
  87. package/es/alert/src/Alert.js +7 -1
  88. package/es/alert/src/styles/index.cssr.js +4 -0
  89. package/es/anchor/src/AnchorAdapter.d.ts +2 -2
  90. package/es/anchor/src/BaseAnchor.d.ts +1 -1
  91. package/es/anchor/src/BaseAnchor.js +3 -1
  92. package/es/anchor/src/Link.d.ts +1 -1
  93. package/es/auto-complete/src/AutoComplete.d.ts +3 -3
  94. package/es/auto-complete/src/interface.d.ts +2 -1
  95. package/es/avatar/src/Avatar.d.ts +2 -2
  96. package/es/avatar-group/src/AvatarGroup.d.ts +2 -2
  97. package/es/back-top/src/BackTop.d.ts +2 -2
  98. package/es/badge/src/Badge.d.ts +2 -2
  99. package/es/breadcrumb/src/Breadcrumb.d.ts +2 -2
  100. package/es/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
  101. package/es/button/src/Button.d.ts +3 -3
  102. package/es/button/src/Button.js +2 -2
  103. package/es/button-group/src/ButtonGroup.d.ts +2 -2
  104. package/es/calendar/src/Calendar.d.ts +2 -2
  105. package/es/card/src/Card.d.ts +23 -7
  106. package/es/card/src/Card.js +12 -5
  107. package/es/carousel/src/Carousel.d.ts +7 -7
  108. package/es/carousel/src/Carousel.js +8 -3
  109. package/es/carousel/src/CarouselArrow.d.ts +2 -2
  110. package/es/carousel/src/CarouselContext.js +3 -1
  111. package/es/carousel/src/CarouselDots.d.ts +2 -2
  112. package/es/carousel/src/CarouselDots.js +7 -1
  113. package/es/carousel/src/CarouselItem.d.ts +2 -2
  114. package/es/cascader/src/Cascader.d.ts +3 -2
  115. package/es/cascader/src/CascaderMenu.d.ts +1 -1
  116. package/es/cascader/src/CascaderOption.d.ts +1 -1
  117. package/es/cascader/src/CascaderSelectMenu.d.ts +2 -2
  118. package/es/cascader/src/CascaderSubmenu.d.ts +1 -1
  119. package/es/checkbox/src/Checkbox.d.ts +8 -8
  120. package/es/checkbox/src/Checkbox.js +10 -3
  121. package/es/checkbox/src/CheckboxGroup.d.ts +2 -2
  122. package/es/checkbox/src/styles/index.cssr.js +9 -11
  123. package/es/code/src/Code.d.ts +2 -2
  124. package/es/collapse/src/Collapse.d.ts +2 -2
  125. package/es/collapse/src/CollapseItem.d.ts +2 -2
  126. package/es/collapse/src/CollapseItemContent.d.ts +1 -1
  127. package/es/collapse-transition/src/CollapseTransition.d.ts +2 -2
  128. package/es/color-picker/src/AlphaSlider.d.ts +1 -1
  129. package/es/color-picker/src/ColorInput.d.ts +1 -1
  130. package/es/color-picker/src/ColorInputUnit.d.ts +1 -1
  131. package/es/color-picker/src/ColorPicker.d.ts +2 -2
  132. package/es/color-picker/src/ColorPicker.js +6 -2
  133. package/es/color-picker/src/ColorPickerSwatches.d.ts +1 -1
  134. package/es/color-picker/src/ColorPickerSwatches.js +9 -4
  135. package/es/color-picker/src/ColorPickerTrigger.d.ts +1 -1
  136. package/es/color-picker/src/ColorPreview.d.ts +1 -1
  137. package/es/color-picker/src/HueSlider.d.ts +1 -1
  138. package/es/color-picker/src/Pallete.d.ts +1 -1
  139. package/es/components.d.ts +3 -0
  140. package/es/components.js +3 -0
  141. package/es/config-provider/src/ConfigProvider.d.ts +21 -8
  142. package/es/config-provider/src/ConfigProvider.js +4 -2
  143. package/es/config-provider/src/config.js +5 -5
  144. package/es/config-provider/src/internal-interface.d.ts +5 -1
  145. package/es/countdown/src/Countdown.d.ts +1 -1
  146. package/es/data-table/index.d.ts +1 -1
  147. package/es/data-table/src/DataTable.d.ts +5 -5
  148. package/es/data-table/src/DataTable.js +2 -7
  149. package/es/data-table/src/HeaderButton/FilterButton.d.ts +1 -1
  150. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +1 -1
  151. package/es/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
  152. package/es/data-table/src/HeaderButton/RenderSorter.d.ts +1 -1
  153. package/es/data-table/src/HeaderButton/ResizeButton.d.ts +1 -1
  154. package/es/data-table/src/HeaderButton/ResizeButton.js +1 -0
  155. package/es/data-table/src/HeaderButton/SortButton.d.ts +1 -1
  156. package/es/data-table/src/MainTable.d.ts +1 -1
  157. package/es/data-table/src/MainTable.js +1 -0
  158. package/es/data-table/src/TableParts/Body.d.ts +5 -6
  159. package/es/data-table/src/TableParts/Body.js +22 -15
  160. package/es/data-table/src/TableParts/BodyCheckbox.d.ts +1 -1
  161. package/es/data-table/src/TableParts/BodyRadio.d.ts +1 -1
  162. package/es/data-table/src/TableParts/Cell.d.ts +1 -1
  163. package/es/data-table/src/TableParts/Cell.js +5 -1
  164. package/es/data-table/src/TableParts/ExpandTrigger.d.ts +1 -1
  165. package/es/data-table/src/TableParts/ExpandTrigger.js +3 -1
  166. package/es/data-table/src/TableParts/Header.d.ts +1 -3
  167. package/es/data-table/src/TableParts/Header.js +6 -12
  168. package/es/data-table/src/TableParts/SelectionMenu.d.ts +1 -1
  169. package/es/data-table/src/interface.d.ts +3 -5
  170. package/es/data-table/src/styles/index.cssr.js +2 -0
  171. package/es/data-table/src/use-scroll.d.ts +1 -2
  172. package/es/data-table/src/use-scroll.js +21 -13
  173. package/es/date-picker/src/DatePicker.d.ts +2 -2
  174. package/es/date-picker/src/panel/date.d.ts +4 -4
  175. package/es/date-picker/src/panel/date.js +3 -1
  176. package/es/date-picker/src/panel/daterange.d.ts +4 -4
  177. package/es/date-picker/src/panel/daterange.js +10 -2
  178. package/es/date-picker/src/panel/datetime.d.ts +4 -4
  179. package/es/date-picker/src/panel/datetime.js +3 -1
  180. package/es/date-picker/src/panel/datetimerange.d.ts +4 -4
  181. package/es/date-picker/src/panel/datetimerange.js +16 -4
  182. package/es/date-picker/src/panel/month.d.ts +4 -4
  183. package/es/date-picker/src/panel/month.js +4 -1
  184. package/es/date-picker/src/panel/monthrange.d.ts +4 -4
  185. package/es/date-picker/src/panel/panelHeader.d.ts +722 -752
  186. package/es/date-picker/src/panel/use-calendar.d.ts +3 -3
  187. package/es/date-picker/src/panel/use-calendar.js +2 -2
  188. package/es/date-picker/src/panel/use-dual-calendar.d.ts +3 -3
  189. package/es/date-picker/src/panel/use-dual-calendar.js +4 -4
  190. package/es/date-picker/src/styles/index.cssr.js +1 -0
  191. package/es/date-picker/src/utils.js +1 -6
  192. package/es/date-picker/styles/_common.js +1 -1
  193. package/es/descriptions/src/Descriptions.d.ts +8 -2
  194. package/es/descriptions/src/Descriptions.js +28 -8
  195. package/es/descriptions/src/DescriptionsItem.d.ts +7 -1
  196. package/es/descriptions/src/DescriptionsItem.js +2 -0
  197. package/es/dialog/src/Dialog.d.ts +2 -2
  198. package/es/dialog/src/Dialog.js +6 -2
  199. package/es/dialog/src/DialogEnvironment.d.ts +2 -2
  200. package/es/dialog/src/DialogProvider.d.ts +4 -4
  201. package/es/dialog/src/DialogProvider.js +3 -1
  202. package/es/dialog/src/dialogProps.d.ts +1 -1
  203. package/es/discrete/src/InjectionExtractor.d.ts +1 -1
  204. package/es/divider/src/Divider.d.ts +2 -2
  205. package/es/drawer/src/Drawer.d.ts +15 -2
  206. package/es/drawer/src/Drawer.js +2 -2
  207. package/es/drawer/src/DrawerBodyWrapper.d.ts +9 -1
  208. package/es/drawer/src/DrawerBodyWrapper.js +25 -1
  209. package/es/drawer/src/DrawerContent.d.ts +1 -1
  210. package/es/dropdown/src/Dropdown.d.ts +20 -2
  211. package/es/dropdown/src/Dropdown.js +1 -1
  212. package/es/dropdown/src/DropdownDivider.d.ts +1 -1
  213. package/es/dropdown/src/DropdownGroup.d.ts +1 -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 +4 -1
  217. package/es/dropdown/src/DropdownOption.d.ts +6 -5
  218. package/es/dropdown/src/DropdownOption.js +2 -4
  219. package/es/dropdown/src/DropdownRenderOption.d.ts +1 -1
  220. package/es/dynamic-input/src/DynamicInput.d.ts +5 -2
  221. package/es/dynamic-input/src/DynamicInput.js +21 -9
  222. package/es/dynamic-input/src/InputPreset.d.ts +1 -1
  223. package/es/dynamic-input/src/PairPreset.d.ts +1 -1
  224. package/es/dynamic-tags/src/DynamicTags.d.ts +8 -2
  225. package/es/dynamic-tags/src/DynamicTags.js +6 -4
  226. package/es/element/src/Element.d.ts +2 -2
  227. package/es/ellipsis/index.d.ts +1 -0
  228. package/es/ellipsis/index.js +1 -0
  229. package/es/ellipsis/src/Ellipsis.d.ts +3 -1
  230. package/es/ellipsis/src/Ellipsis.js +5 -4
  231. package/es/ellipsis/src/PerformantEllipsis.d.ts +164 -0
  232. package/es/ellipsis/src/PerformantEllipsis.js +52 -0
  233. package/es/empty/src/Empty.d.ts +2 -2
  234. package/es/equation/index.d.ts +1 -0
  235. package/es/equation/src/Equation.d.ts +6 -4
  236. package/es/form/src/Form.d.ts +2 -2
  237. package/es/form/src/Form.js +3 -1
  238. package/es/form/src/FormItem.d.ts +3 -3
  239. package/es/form/src/FormItemCol.d.ts +1 -1
  240. package/es/form/src/FormItemGridItem.d.ts +1 -1
  241. package/es/form/src/FormItemRow.d.ts +1 -1
  242. package/es/form/src/utils.d.ts +1 -1
  243. package/es/global-style/src/GlobalStyle.d.ts +1 -1
  244. package/es/gradient-text/src/GradientText.d.ts +2 -2
  245. package/es/grid/src/Grid.d.ts +2 -2
  246. package/es/grid/src/Grid.js +6 -3
  247. package/es/grid/src/GridItem.d.ts +1 -1
  248. package/es/icon/src/Icon.d.ts +2 -2
  249. package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
  250. package/es/image/src/Image.d.ts +8 -2
  251. package/es/image/src/ImageGroup.d.ts +8 -2
  252. package/es/image/src/ImageGroup.js +8 -2
  253. package/es/image/src/ImagePreview.d.ts +8 -3
  254. package/es/image/src/ImagePreview.js +10 -1
  255. package/es/image/src/icons.d.ts +1 -0
  256. package/es/image/src/icons.js +2 -0
  257. package/es/image/src/interface.d.ts +7 -5
  258. package/es/image/src/interface.js +1 -1
  259. package/es/index.d.ts +1 -0
  260. package/es/index.js +1 -0
  261. package/es/input/src/Input.d.ts +19 -9
  262. package/es/input/src/Input.js +30 -8
  263. package/es/input/src/InputGroup.d.ts +2 -2
  264. package/es/input/src/InputGroupLabel.d.ts +2 -2
  265. package/es/input/src/WordCount.d.ts +1 -1
  266. package/es/input/src/styles/input.cssr.js +2 -1
  267. package/es/input-number/src/InputNumber.d.ts +3 -2
  268. package/es/input-number/src/InputNumber.js +2 -1
  269. package/es/input-number/src/interface.d.ts +1 -0
  270. package/es/layout/src/Layout.d.ts +10 -4
  271. package/es/layout/src/Layout.js +8 -1
  272. package/es/layout/src/LayoutContent.d.ts +4 -2
  273. package/es/layout/src/LayoutFooter.d.ts +2 -2
  274. package/es/layout/src/LayoutHeader.d.ts +2 -2
  275. package/es/layout/src/LayoutSider.d.ts +11 -2
  276. package/es/layout/src/LayoutSider.js +12 -3
  277. package/es/layout/src/ToggleBar.d.ts +1 -1
  278. package/es/layout/src/ToggleButton.d.ts +1 -1
  279. package/es/legacy-grid/src/Col.d.ts +1 -1
  280. package/es/legacy-grid/src/Row.d.ts +2 -2
  281. package/es/legacy-grid/src/styles/index.cssr.js +2 -3
  282. package/es/legacy-grid/src/styles/rtl.cssr.js +2 -3
  283. package/es/legacy-transfer/src/Transfer.d.ts +2 -2
  284. package/es/legacy-transfer/src/TransferFilter.d.ts +1 -1
  285. package/es/legacy-transfer/src/TransferHeader.d.ts +1 -1
  286. package/es/legacy-transfer/src/TransferList.d.ts +1 -1
  287. package/es/legacy-transfer/src/TransferListItem.d.ts +1 -1
  288. package/es/list/src/List.d.ts +2 -2
  289. package/es/list/src/ListItem.d.ts +1 -1
  290. package/es/loading-bar/src/LoadingBar.d.ts +4 -2
  291. package/es/loading-bar/src/LoadingBar.js +21 -12
  292. package/es/loading-bar/src/LoadingBarProvider.d.ts +4 -1
  293. package/es/loading-bar/src/LoadingBarProvider.js +2 -2
  294. package/es/locales/common/arDZ.js +1 -0
  295. package/es/locales/common/deDE.js +1 -0
  296. package/es/locales/common/enGB.js +1 -0
  297. package/es/locales/common/enUS.d.ts +1 -0
  298. package/es/locales/common/enUS.js +1 -0
  299. package/es/locales/common/eo.js +1 -0
  300. package/es/locales/common/esAR.js +1 -0
  301. package/es/locales/common/faIR.js +1 -0
  302. package/es/locales/common/frFR.js +2 -1
  303. package/es/locales/common/idID.js +1 -0
  304. package/es/locales/common/itIT.js +1 -0
  305. package/es/locales/common/jaJP.js +1 -0
  306. package/es/locales/common/koKR.js +1 -0
  307. package/es/locales/common/nbNO.js +1 -0
  308. package/es/locales/common/nlNL.js +1 -0
  309. package/es/locales/common/plPL.js +1 -0
  310. package/es/locales/common/ptBR.js +15 -17
  311. package/es/locales/common/ruRU.js +1 -0
  312. package/es/locales/common/skSK.js +1 -0
  313. package/es/locales/common/svSE.d.ts +3 -0
  314. package/es/locales/common/svSE.js +121 -0
  315. package/es/locales/common/thTH.js +1 -0
  316. package/es/locales/common/trTR.js +1 -0
  317. package/es/locales/common/ukUA.js +1 -0
  318. package/es/locales/common/viVN.js +1 -0
  319. package/es/locales/common/zhCN.js +1 -0
  320. package/es/locales/common/zhTW.js +18 -17
  321. package/es/locales/date/svSE.d.ts +3 -0
  322. package/es/locales/date/svSE.js +6 -0
  323. package/es/locales/index.d.ts +2 -0
  324. package/es/locales/index.js +2 -0
  325. package/es/log/src/Log.d.ts +11 -11
  326. package/es/log/src/Log.js +12 -12
  327. package/es/log/src/LogLine.d.ts +1 -1
  328. package/es/log/src/LogLoader.d.ts +1 -1
  329. package/es/mention/src/Mention.d.ts +4 -4
  330. package/es/mention/src/utils.js +4 -4
  331. package/es/menu/src/Menu.d.ts +32 -15
  332. package/es/menu/src/Menu.js +101 -7
  333. package/es/menu/src/MenuDivider.d.ts +1 -1
  334. package/es/menu/src/MenuOption.d.ts +1 -1
  335. package/es/menu/src/MenuOptionContent.d.ts +4 -1
  336. package/es/menu/src/MenuOptionContent.js +7 -2
  337. package/es/menu/src/MenuOptionGroup.d.ts +1 -1
  338. package/es/menu/src/Submenu.d.ts +24 -13
  339. package/es/menu/src/Submenu.js +9 -8
  340. package/es/menu/src/context.d.ts +2 -2
  341. package/es/menu/src/interface.d.ts +1 -0
  342. package/es/menu/src/styles/index.cssr.js +8 -4
  343. package/es/menu/src/use-menu-child.js +5 -5
  344. package/es/message/src/Message.d.ts +2 -2
  345. package/es/message/src/MessageEnvironment.d.ts +1 -1
  346. package/es/message/src/MessageProvider.d.ts +9 -6
  347. package/es/message/src/MessageProvider.js +3 -2
  348. package/es/modal/src/BodyWrapper.d.ts +12 -4
  349. package/es/modal/src/Modal.d.ts +18 -6
  350. package/es/modal/src/presetProps.d.ts +5 -1
  351. package/es/notification/src/Notification.d.ts +1 -1
  352. package/es/notification/src/NotificationContainer.d.ts +1 -1
  353. package/es/notification/src/NotificationEnvironment.d.ts +1 -1
  354. package/es/notification/src/NotificationEnvironment.js +1 -1
  355. package/es/notification/src/NotificationProvider.d.ts +5 -2
  356. package/es/notification/src/NotificationProvider.js +2 -2
  357. package/es/number-animation/src/NumberAnimation.d.ts +1 -1
  358. package/es/page-header/src/PageHeader.d.ts +2 -2
  359. package/es/pagination/src/Pagination.d.ts +2 -2
  360. package/es/pagination/src/Pagination.js +3 -1
  361. package/es/popconfirm/src/Popconfirm.d.ts +22 -3
  362. package/es/popconfirm/src/Popconfirm.js +13 -5
  363. package/es/popconfirm/src/PopconfirmPanel.d.ts +1 -1
  364. package/es/popover/src/Popover.d.ts +25 -1
  365. package/es/popover/src/Popover.js +10 -4
  366. package/es/popover/src/PopoverBody.d.ts +23 -2
  367. package/es/popover/src/PopoverBody.js +26 -10
  368. package/es/popover/src/interface.d.ts +4 -1
  369. package/es/popselect/src/Popselect.d.ts +19 -1
  370. package/es/popselect/src/Popselect.js +2 -1
  371. package/es/popselect/src/PopselectPanel.d.ts +2 -2
  372. package/es/popselect/src/PopselectPanel.js +1 -0
  373. package/es/progress/src/Circle.d.ts +1 -1
  374. package/es/progress/src/Line.d.ts +1 -1
  375. package/es/progress/src/Line.js +1 -3
  376. package/es/progress/src/MultipleCircle.d.ts +1 -1
  377. package/es/progress/src/Progress.d.ts +3 -3
  378. package/es/qr-code/index.d.ts +2 -0
  379. package/es/qr-code/index.js +1 -0
  380. package/es/qr-code/src/QrCode.d.ts +154 -0
  381. package/es/qr-code/src/QrCode.js +146 -0
  382. package/es/qr-code/src/qrcodegen.d.ts +94 -0
  383. package/es/qr-code/src/qrcodegen.js +948 -0
  384. package/es/qr-code/src/styles/index.cssr.d.ts +2 -0
  385. package/es/qr-code/src/styles/index.cssr.js +8 -0
  386. package/es/qr-code/styles/dark.d.ts +3 -0
  387. package/es/qr-code/styles/dark.js +11 -0
  388. package/es/qr-code/styles/index.d.ts +3 -0
  389. package/es/qr-code/styles/index.js +2 -0
  390. package/es/qr-code/styles/light.d.ts +9 -0
  391. package/es/qr-code/styles/light.js +12 -0
  392. package/es/radio/src/Radio.d.ts +173 -34
  393. package/es/radio/src/Radio.js +3 -3
  394. package/es/radio/src/RadioButton.d.ts +3 -3
  395. package/es/radio/src/RadioButton.js +3 -3
  396. package/es/radio/src/RadioGroup.d.ts +3 -2
  397. package/es/radio/src/RadioGroup.js +2 -1
  398. package/es/radio/src/styles/radio-group.cssr.js +1 -0
  399. package/es/radio/src/use-radio.d.ts +3 -3
  400. package/es/radio/src/use-radio.js +1 -1
  401. package/es/rate/src/Rate.d.ts +2 -2
  402. package/es/result/src/Result.d.ts +3 -3
  403. package/es/scrollbar/src/Scrollbar.d.ts +1 -1
  404. package/es/scrollbar/src/Scrollbar.js +2 -0
  405. package/es/select/src/Select.d.ts +7 -4
  406. package/es/select/src/Select.js +17 -3
  407. package/es/select/src/interface.d.ts +2 -0
  408. package/es/skeleton/src/Skeleton.d.ts +2 -2
  409. package/es/skeleton/src/Skeleton.js +4 -7
  410. package/es/slider/src/Slider.d.ts +8 -2
  411. package/es/slider/src/Slider.js +19 -4
  412. package/es/slider/src/utils.d.ts +2 -2
  413. package/es/slider/src/utils.js +6 -4
  414. package/es/space/src/Space.d.ts +5 -2
  415. package/es/space/src/Space.js +3 -3
  416. package/es/spin/src/Spin.d.ts +13 -4
  417. package/es/spin/src/Spin.js +26 -7
  418. package/es/split/index.d.ts +2 -0
  419. package/es/split/index.js +1 -0
  420. package/es/split/src/Split.d.ts +135 -0
  421. package/es/split/src/Split.js +145 -0
  422. package/es/split/src/styles/index.cssr.d.ts +2 -0
  423. package/es/split/src/styles/index.cssr.js +25 -0
  424. package/es/split/styles/dark.d.ts +3 -0
  425. package/es/split/styles/dark.js +6 -0
  426. package/es/split/styles/index.d.ts +3 -0
  427. package/es/split/styles/index.js +2 -0
  428. package/es/split/styles/light.d.ts +9 -0
  429. package/es/split/styles/light.js +13 -0
  430. package/es/statistic/src/Statistic.d.ts +2 -2
  431. package/es/steps/src/Step.d.ts +2 -2
  432. package/es/steps/src/Steps.d.ts +3 -3
  433. package/es/steps/src/styles/index.cssr.js +1 -0
  434. package/es/switch/src/Switch.d.ts +2 -2
  435. package/es/table/src/Table.d.ts +2 -2
  436. package/es/table/src/Tbody.d.ts +1 -1
  437. package/es/table/src/Td.d.ts +1 -1
  438. package/es/table/src/Th.d.ts +1 -1
  439. package/es/table/src/Thead.d.ts +1 -1
  440. package/es/table/src/Tr.d.ts +1 -1
  441. package/es/tabs/src/Tab.d.ts +1 -1
  442. package/es/tabs/src/Tab.js +3 -1
  443. package/es/tabs/src/TabPane.d.ts +1 -1
  444. package/es/tabs/src/Tabs.d.ts +13 -13
  445. package/es/tabs/src/Tabs.js +15 -2
  446. package/es/tabs/src/styles/index.cssr.js +12 -2
  447. package/es/tag/src/Tag.d.ts +2 -2
  448. package/es/theme-editor/src/MaximizeIcon.d.ts +1 -1
  449. package/es/theme-editor/src/MinimizeIcon.d.ts +1 -1
  450. package/es/theme-editor/src/ThemeEditor.d.ts +3 -3
  451. package/es/themes/dark.js +5 -1
  452. package/es/themes/light.js +5 -1
  453. package/es/thing/src/Thing.d.ts +7 -1
  454. package/es/thing/src/Thing.js +13 -4
  455. package/es/time/src/Time.d.ts +1 -1
  456. package/es/time/src/Time.js +1 -1
  457. package/es/time-picker/src/Panel.d.ts +1 -1
  458. package/es/time-picker/src/PanelCol.d.ts +1 -1
  459. package/es/time-picker/src/PanelCol.js +5 -1
  460. package/es/time-picker/src/TimePicker.d.ts +2 -2
  461. package/es/time-picker/src/TimePicker.js +1 -1
  462. package/es/timeline/src/Timeline.d.ts +1 -1
  463. package/es/timeline/src/TimelineItem.d.ts +1 -1
  464. package/es/tooltip/src/Tooltip.d.ts +19 -1
  465. package/es/transfer/src/Transfer.d.ts +8 -2
  466. package/es/transfer/src/Transfer.js +2 -2
  467. package/es/transfer/src/TransferFilter.d.ts +1 -1
  468. package/es/transfer/src/TransferHeader.d.ts +5 -1
  469. package/es/transfer/src/TransferHeader.js +6 -2
  470. package/es/transfer/src/TransferList.d.ts +1 -1
  471. package/es/transfer/src/TransferListItem.d.ts +1 -1
  472. package/es/tree/index.d.ts +1 -0
  473. package/es/tree/index.js +1 -0
  474. package/es/tree/src/MotionWrapper.d.ts +1 -1
  475. package/es/tree/src/Tree.d.ts +59 -5
  476. package/es/tree/src/Tree.js +32 -19
  477. package/es/tree/src/TreeNode.d.ts +6 -2
  478. package/es/tree/src/TreeNode.js +72 -25
  479. package/es/tree/src/TreeNodeCheckbox.d.ts +13 -1
  480. package/es/tree/src/TreeNodeCheckbox.js +9 -8
  481. package/es/tree/src/TreeNodeContent.d.ts +1 -1
  482. package/es/tree/src/TreeNodeSwitcher.d.ts +19 -2
  483. package/es/tree/src/TreeNodeSwitcher.js +12 -6
  484. package/es/tree/src/interface.d.ts +2 -0
  485. package/es/tree/src/styles/index.cssr.js +47 -51
  486. package/es/tree/src/utils.d.ts +1 -0
  487. package/es/tree/src/utils.js +12 -0
  488. package/es/tree/styles/light.d.ts +8 -0
  489. package/es/tree/styles/light.js +6 -2
  490. package/es/tree-select/src/TreeSelect.d.ts +49 -3
  491. package/es/tree-select/src/TreeSelect.js +5 -3
  492. package/es/tree-select/src/interface.d.ts +2 -0
  493. package/es/tree-select/styles/light.d.ts +4 -0
  494. package/es/typography/src/a.d.ts +2 -2
  495. package/es/typography/src/blockquote.d.ts +2 -2
  496. package/es/typography/src/create-header.d.ts +2 -2
  497. package/es/typography/src/headers.d.ts +12 -12
  498. package/es/typography/src/hr.d.ts +2 -2
  499. package/es/typography/src/li.d.ts +1 -1
  500. package/es/typography/src/ol.d.ts +2 -2
  501. package/es/typography/src/p.d.ts +2 -2
  502. package/es/typography/src/text.d.ts +2 -2
  503. package/es/typography/src/ul.d.ts +2 -2
  504. package/es/upload/src/Upload.d.ts +11 -5
  505. package/es/upload/src/Upload.js +8 -3
  506. package/es/upload/src/UploadDragger.d.ts +1 -1
  507. package/es/upload/src/UploadFile.d.ts +2 -2
  508. package/es/upload/src/UploadFileList.d.ts +1 -1
  509. package/es/upload/src/UploadFileList.js +3 -2
  510. package/es/upload/src/UploadProgress.d.ts +1 -1
  511. package/es/upload/src/UploadTrigger.d.ts +1 -1
  512. package/es/upload/src/UploadTrigger.js +3 -2
  513. package/es/upload/src/interface.d.ts +5 -3
  514. package/es/version.d.ts +1 -1
  515. package/es/version.js +1 -1
  516. package/es/virtual-list/index.d.ts +2 -0
  517. package/es/virtual-list/index.js +1 -0
  518. package/es/virtual-list/src/VirtualList.d.ts +146 -0
  519. package/es/virtual-list/src/VirtualList.js +102 -0
  520. package/es/watermark/src/Watermark.d.ts +1 -1
  521. package/es/watermark/src/Watermark.js +7 -0
  522. package/lib/_internal/clear/src/Clear.d.ts +1 -1
  523. package/lib/_internal/clear/src/Clear.js +2 -0
  524. package/lib/_internal/close/src/Close.d.ts +1 -1
  525. package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +1 -1
  526. package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.js +1 -0
  527. package/lib/_internal/focus-detector/src/FocusDetector.d.ts +1 -1
  528. package/lib/_internal/icon/src/Icon.d.ts +1 -1
  529. package/lib/_internal/icon-switch-transition/src/IconSwitchTransition.d.ts +1 -1
  530. package/lib/_internal/icons/Add.d.ts +1 -1
  531. package/lib/_internal/icons/ArrowBack.d.ts +1 -1
  532. package/lib/_internal/icons/ArrowDown.d.ts +1 -1
  533. package/lib/_internal/icons/ArrowUp.d.ts +1 -1
  534. package/lib/_internal/icons/Attach.d.ts +1 -1
  535. package/lib/_internal/icons/Backward.d.ts +1 -1
  536. package/lib/_internal/icons/Cancel.d.ts +1 -1
  537. package/lib/_internal/icons/Checkmark.d.ts +1 -1
  538. package/lib/_internal/icons/ChevronDown.d.ts +1 -1
  539. package/lib/_internal/icons/ChevronDownFilled.d.ts +1 -1
  540. package/lib/_internal/icons/ChevronLeft.d.ts +1 -1
  541. package/lib/_internal/icons/ChevronRight.d.ts +1 -1
  542. package/lib/_internal/icons/Clear.d.ts +1 -1
  543. package/lib/_internal/icons/Close.d.ts +1 -1
  544. package/lib/_internal/icons/Date.d.ts +1 -1
  545. package/lib/_internal/icons/Download.d.ts +1 -1
  546. package/lib/_internal/icons/Empty.d.ts +1 -1
  547. package/lib/_internal/icons/Error.d.ts +1 -1
  548. package/lib/_internal/icons/Eye.d.ts +1 -1
  549. package/lib/_internal/icons/EyeOff.d.ts +1 -1
  550. package/lib/_internal/icons/FastBackward.d.ts +1 -1
  551. package/lib/_internal/icons/FastForward.d.ts +1 -1
  552. package/lib/_internal/icons/File.d.ts +1 -1
  553. package/lib/_internal/icons/Filter.d.ts +1 -1
  554. package/lib/_internal/icons/Forward.d.ts +1 -1
  555. package/lib/_internal/icons/Info.d.ts +1 -1
  556. package/lib/_internal/icons/More.d.ts +1 -1
  557. package/lib/_internal/icons/Photo.d.ts +1 -1
  558. package/lib/_internal/icons/Remove.d.ts +1 -1
  559. package/lib/_internal/icons/ResizeSmall.d.ts +1 -1
  560. package/lib/_internal/icons/Retry.d.ts +1 -1
  561. package/lib/_internal/icons/RotateClockwise.d.ts +1 -1
  562. package/lib/_internal/icons/RotateCounterclockwise.d.ts +1 -1
  563. package/lib/_internal/icons/Search.d.ts +1 -1
  564. package/lib/_internal/icons/Success.d.ts +1 -1
  565. package/lib/_internal/icons/Switcher.d.ts +1 -1
  566. package/lib/_internal/icons/Time.d.ts +1 -1
  567. package/lib/_internal/icons/To.d.ts +1 -1
  568. package/lib/_internal/icons/Trash.d.ts +1 -1
  569. package/lib/_internal/icons/Warning.d.ts +1 -1
  570. package/lib/_internal/icons/ZoomIn.d.ts +1 -1
  571. package/lib/_internal/icons/ZoomOut.d.ts +1 -1
  572. package/lib/_internal/icons/replaceable.d.ts +1 -1
  573. package/lib/_internal/loading/src/Loading.d.ts +1 -1
  574. package/lib/_internal/menu-mask/src/MenuMask.d.ts +1 -1
  575. package/lib/_internal/scrollbar/src/Scrollbar.d.ts +2 -2
  576. package/lib/_internal/scrollbar/src/Scrollbar.js +11 -6
  577. package/lib/_internal/scrollbar/src/styles/index.cssr.js +1 -0
  578. package/lib/_internal/select-menu/src/SelectGroupHeader.d.ts +1 -1
  579. package/lib/_internal/select-menu/src/SelectMenu.d.ts +4 -4
  580. package/lib/_internal/select-menu/src/SelectMenu.js +2 -1
  581. package/lib/_internal/select-menu/src/SelectOption.d.ts +1 -1
  582. package/lib/_internal/select-menu/src/styles/index.cssr.js +8 -0
  583. package/lib/_internal/selection/src/Selection.d.ts +5 -2
  584. package/lib/_internal/selection/src/Selection.js +17 -7
  585. package/lib/_internal/slot-machine/src/SlotMachine.d.ts +1 -1
  586. package/lib/_internal/slot-machine/src/SlotMachineNumber.d.ts +1 -1
  587. package/lib/_internal/suffix/src/Suffix.d.ts +1 -1
  588. package/lib/_internal/wave/src/Wave.d.ts +1 -1
  589. package/lib/_mixins/use-config.d.ts +2 -1
  590. package/lib/_mixins/use-config.js +11 -5
  591. package/lib/_mixins/use-form-item.d.ts +1 -1
  592. package/lib/_mixins/use-style.d.ts +1 -1
  593. package/lib/_mixins/use-style.js +1 -1
  594. package/lib/_styles/common/_common.js +1 -1
  595. package/lib/_styles/common/light.js +2 -2
  596. package/lib/_utils/composable/use-collection.d.ts +1 -1
  597. package/lib/_utils/composable/use-collection.js +2 -0
  598. package/lib/_utils/css/color-to-class.js +1 -1
  599. package/lib/_utils/cssr/index.d.ts +1 -1
  600. package/lib/_utils/vue/wrapper.d.ts +1 -1
  601. package/lib/affix/src/Affix.d.ts +4 -4
  602. package/lib/affix/src/Affix.js +4 -2
  603. package/lib/alert/src/Alert.d.ts +2 -2
  604. package/lib/alert/src/Alert.js +7 -1
  605. package/lib/alert/src/styles/index.cssr.js +4 -0
  606. package/lib/anchor/src/AnchorAdapter.d.ts +2 -2
  607. package/lib/anchor/src/BaseAnchor.d.ts +1 -1
  608. package/lib/anchor/src/BaseAnchor.js +3 -1
  609. package/lib/anchor/src/Link.d.ts +1 -1
  610. package/lib/auto-complete/src/AutoComplete.d.ts +3 -3
  611. package/lib/auto-complete/src/interface.d.ts +2 -1
  612. package/lib/avatar/src/Avatar.d.ts +2 -2
  613. package/lib/avatar-group/src/AvatarGroup.d.ts +2 -2
  614. package/lib/back-top/src/BackTop.d.ts +2 -2
  615. package/lib/badge/src/Badge.d.ts +2 -2
  616. package/lib/breadcrumb/src/Breadcrumb.d.ts +2 -2
  617. package/lib/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
  618. package/lib/button/src/Button.d.ts +3 -3
  619. package/lib/button/src/Button.js +2 -2
  620. package/lib/button-group/src/ButtonGroup.d.ts +2 -2
  621. package/lib/calendar/src/Calendar.d.ts +2 -2
  622. package/lib/card/src/Card.d.ts +23 -7
  623. package/lib/card/src/Card.js +12 -5
  624. package/lib/carousel/src/Carousel.d.ts +7 -7
  625. package/lib/carousel/src/Carousel.js +8 -3
  626. package/lib/carousel/src/CarouselArrow.d.ts +2 -2
  627. package/lib/carousel/src/CarouselContext.js +3 -1
  628. package/lib/carousel/src/CarouselDots.d.ts +2 -2
  629. package/lib/carousel/src/CarouselDots.js +7 -1
  630. package/lib/carousel/src/CarouselItem.d.ts +2 -2
  631. package/lib/cascader/src/Cascader.d.ts +3 -2
  632. package/lib/cascader/src/CascaderMenu.d.ts +1 -1
  633. package/lib/cascader/src/CascaderOption.d.ts +1 -1
  634. package/lib/cascader/src/CascaderSelectMenu.d.ts +2 -2
  635. package/lib/cascader/src/CascaderSubmenu.d.ts +1 -1
  636. package/lib/checkbox/src/Checkbox.d.ts +8 -8
  637. package/lib/checkbox/src/Checkbox.js +9 -2
  638. package/lib/checkbox/src/CheckboxGroup.d.ts +2 -2
  639. package/lib/checkbox/src/styles/index.cssr.js +9 -11
  640. package/lib/code/src/Code.d.ts +2 -2
  641. package/lib/collapse/src/Collapse.d.ts +2 -2
  642. package/lib/collapse/src/CollapseItem.d.ts +2 -2
  643. package/lib/collapse/src/CollapseItemContent.d.ts +1 -1
  644. package/lib/collapse-transition/src/CollapseTransition.d.ts +2 -2
  645. package/lib/color-picker/src/AlphaSlider.d.ts +1 -1
  646. package/lib/color-picker/src/ColorInput.d.ts +1 -1
  647. package/lib/color-picker/src/ColorInputUnit.d.ts +1 -1
  648. package/lib/color-picker/src/ColorPicker.d.ts +2 -2
  649. package/lib/color-picker/src/ColorPicker.js +6 -2
  650. package/lib/color-picker/src/ColorPickerSwatches.d.ts +1 -1
  651. package/lib/color-picker/src/ColorPickerSwatches.js +9 -4
  652. package/lib/color-picker/src/ColorPickerTrigger.d.ts +1 -1
  653. package/lib/color-picker/src/ColorPreview.d.ts +1 -1
  654. package/lib/color-picker/src/HueSlider.d.ts +1 -1
  655. package/lib/color-picker/src/Pallete.d.ts +1 -1
  656. package/lib/components.d.ts +3 -0
  657. package/lib/components.js +3 -0
  658. package/lib/config-provider/src/ConfigProvider.d.ts +21 -8
  659. package/lib/config-provider/src/ConfigProvider.js +4 -2
  660. package/lib/config-provider/src/config.js +5 -5
  661. package/lib/config-provider/src/internal-interface.d.ts +5 -1
  662. package/lib/countdown/src/Countdown.d.ts +1 -1
  663. package/lib/data-table/index.d.ts +1 -1
  664. package/lib/data-table/src/DataTable.d.ts +5 -5
  665. package/lib/data-table/src/DataTable.js +1 -6
  666. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +1 -1
  667. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +1 -1
  668. package/lib/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
  669. package/lib/data-table/src/HeaderButton/RenderSorter.d.ts +1 -1
  670. package/lib/data-table/src/HeaderButton/ResizeButton.d.ts +1 -1
  671. package/lib/data-table/src/HeaderButton/ResizeButton.js +1 -0
  672. package/lib/data-table/src/HeaderButton/SortButton.d.ts +1 -1
  673. package/lib/data-table/src/MainTable.d.ts +1 -1
  674. package/lib/data-table/src/MainTable.js +1 -0
  675. package/lib/data-table/src/TableParts/Body.d.ts +5 -6
  676. package/lib/data-table/src/TableParts/Body.js +22 -15
  677. package/lib/data-table/src/TableParts/BodyCheckbox.d.ts +1 -1
  678. package/lib/data-table/src/TableParts/BodyRadio.d.ts +1 -1
  679. package/lib/data-table/src/TableParts/Cell.d.ts +1 -1
  680. package/lib/data-table/src/TableParts/Cell.js +9 -2
  681. package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +1 -1
  682. package/lib/data-table/src/TableParts/ExpandTrigger.js +3 -1
  683. package/lib/data-table/src/TableParts/Header.d.ts +1 -3
  684. package/lib/data-table/src/TableParts/Header.js +6 -12
  685. package/lib/data-table/src/TableParts/SelectionMenu.d.ts +1 -1
  686. package/lib/data-table/src/interface.d.ts +3 -5
  687. package/lib/data-table/src/styles/index.cssr.js +2 -0
  688. package/lib/data-table/src/use-scroll.d.ts +1 -2
  689. package/lib/data-table/src/use-scroll.js +21 -13
  690. package/lib/date-picker/src/DatePicker.d.ts +2 -2
  691. package/lib/date-picker/src/panel/date.d.ts +4 -4
  692. package/lib/date-picker/src/panel/date.js +3 -1
  693. package/lib/date-picker/src/panel/daterange.d.ts +4 -4
  694. package/lib/date-picker/src/panel/daterange.js +10 -2
  695. package/lib/date-picker/src/panel/datetime.d.ts +4 -4
  696. package/lib/date-picker/src/panel/datetime.js +3 -1
  697. package/lib/date-picker/src/panel/datetimerange.d.ts +4 -4
  698. package/lib/date-picker/src/panel/datetimerange.js +16 -4
  699. package/lib/date-picker/src/panel/month.d.ts +4 -4
  700. package/lib/date-picker/src/panel/month.js +4 -1
  701. package/lib/date-picker/src/panel/monthrange.d.ts +4 -4
  702. package/lib/date-picker/src/panel/panelHeader.d.ts +722 -752
  703. package/lib/date-picker/src/panel/use-calendar.d.ts +3 -3
  704. package/lib/date-picker/src/panel/use-calendar.js +2 -2
  705. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +3 -3
  706. package/lib/date-picker/src/panel/use-dual-calendar.js +4 -4
  707. package/lib/date-picker/src/styles/index.cssr.js +1 -0
  708. package/lib/date-picker/src/utils.js +1 -6
  709. package/lib/date-picker/styles/_common.js +1 -1
  710. package/lib/descriptions/src/Descriptions.d.ts +8 -2
  711. package/lib/descriptions/src/Descriptions.js +28 -8
  712. package/lib/descriptions/src/DescriptionsItem.d.ts +7 -1
  713. package/lib/descriptions/src/DescriptionsItem.js +2 -0
  714. package/lib/dialog/src/Dialog.d.ts +2 -2
  715. package/lib/dialog/src/Dialog.js +6 -2
  716. package/lib/dialog/src/DialogEnvironment.d.ts +2 -2
  717. package/lib/dialog/src/DialogProvider.d.ts +4 -4
  718. package/lib/dialog/src/DialogProvider.js +3 -1
  719. package/lib/dialog/src/dialogProps.d.ts +1 -1
  720. package/lib/discrete/src/InjectionExtractor.d.ts +1 -1
  721. package/lib/divider/src/Divider.d.ts +2 -2
  722. package/lib/drawer/src/Drawer.d.ts +15 -2
  723. package/lib/drawer/src/Drawer.js +2 -2
  724. package/lib/drawer/src/DrawerBodyWrapper.d.ts +9 -1
  725. package/lib/drawer/src/DrawerBodyWrapper.js +25 -1
  726. package/lib/drawer/src/DrawerContent.d.ts +1 -1
  727. package/lib/dropdown/src/Dropdown.d.ts +20 -2
  728. package/lib/dropdown/src/Dropdown.js +1 -1
  729. package/lib/dropdown/src/DropdownDivider.d.ts +1 -1
  730. package/lib/dropdown/src/DropdownGroup.d.ts +1 -1
  731. package/lib/dropdown/src/DropdownGroupHeader.d.ts +1 -1
  732. package/lib/dropdown/src/DropdownMenu.d.ts +1 -1
  733. package/lib/dropdown/src/DropdownMenu.js +4 -1
  734. package/lib/dropdown/src/DropdownOption.d.ts +6 -5
  735. package/lib/dropdown/src/DropdownOption.js +2 -4
  736. package/lib/dropdown/src/DropdownRenderOption.d.ts +1 -1
  737. package/lib/dynamic-input/src/DynamicInput.d.ts +5 -2
  738. package/lib/dynamic-input/src/DynamicInput.js +21 -9
  739. package/lib/dynamic-input/src/InputPreset.d.ts +1 -1
  740. package/lib/dynamic-input/src/PairPreset.d.ts +1 -1
  741. package/lib/dynamic-tags/src/DynamicTags.d.ts +8 -2
  742. package/lib/dynamic-tags/src/DynamicTags.js +6 -4
  743. package/lib/element/src/Element.d.ts +2 -2
  744. package/lib/ellipsis/index.d.ts +1 -0
  745. package/lib/ellipsis/index.js +3 -1
  746. package/lib/ellipsis/src/Ellipsis.d.ts +3 -1
  747. package/lib/ellipsis/src/Ellipsis.js +5 -2
  748. package/lib/ellipsis/src/PerformantEllipsis.d.ts +164 -0
  749. package/lib/ellipsis/src/PerformantEllipsis.js +81 -0
  750. package/lib/empty/src/Empty.d.ts +2 -2
  751. package/lib/equation/index.d.ts +1 -0
  752. package/lib/equation/src/Equation.d.ts +6 -4
  753. package/lib/form/src/Form.d.ts +2 -2
  754. package/lib/form/src/Form.js +3 -1
  755. package/lib/form/src/FormItem.d.ts +3 -3
  756. package/lib/form/src/FormItemCol.d.ts +1 -1
  757. package/lib/form/src/FormItemGridItem.d.ts +1 -1
  758. package/lib/form/src/FormItemRow.d.ts +1 -1
  759. package/lib/form/src/utils.d.ts +1 -1
  760. package/lib/global-style/src/GlobalStyle.d.ts +1 -1
  761. package/lib/gradient-text/src/GradientText.d.ts +2 -2
  762. package/lib/grid/src/Grid.d.ts +2 -2
  763. package/lib/grid/src/Grid.js +6 -3
  764. package/lib/grid/src/GridItem.d.ts +1 -1
  765. package/lib/icon/src/Icon.d.ts +2 -2
  766. package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
  767. package/lib/image/src/Image.d.ts +8 -2
  768. package/lib/image/src/ImageGroup.d.ts +8 -2
  769. package/lib/image/src/ImageGroup.js +8 -2
  770. package/lib/image/src/ImagePreview.d.ts +8 -3
  771. package/lib/image/src/ImagePreview.js +9 -0
  772. package/lib/image/src/icons.d.ts +1 -0
  773. package/lib/image/src/icons.js +3 -1
  774. package/lib/image/src/interface.d.ts +7 -5
  775. package/lib/image/src/interface.js +1 -1
  776. package/lib/index.d.ts +1 -0
  777. package/lib/index.js +3 -1
  778. package/lib/input/src/Input.d.ts +19 -9
  779. package/lib/input/src/Input.js +30 -8
  780. package/lib/input/src/InputGroup.d.ts +2 -2
  781. package/lib/input/src/InputGroupLabel.d.ts +2 -2
  782. package/lib/input/src/WordCount.d.ts +1 -1
  783. package/lib/input/src/styles/input.cssr.js +2 -1
  784. package/lib/input-number/src/InputNumber.d.ts +3 -2
  785. package/lib/input-number/src/InputNumber.js +2 -1
  786. package/lib/input-number/src/interface.d.ts +1 -0
  787. package/lib/layout/src/Layout.d.ts +10 -4
  788. package/lib/layout/src/Layout.js +8 -1
  789. package/lib/layout/src/LayoutContent.d.ts +4 -2
  790. package/lib/layout/src/LayoutFooter.d.ts +2 -2
  791. package/lib/layout/src/LayoutHeader.d.ts +2 -2
  792. package/lib/layout/src/LayoutSider.d.ts +11 -2
  793. package/lib/layout/src/LayoutSider.js +12 -3
  794. package/lib/layout/src/ToggleBar.d.ts +1 -1
  795. package/lib/layout/src/ToggleButton.d.ts +1 -1
  796. package/lib/legacy-grid/src/Col.d.ts +1 -1
  797. package/lib/legacy-grid/src/Row.d.ts +2 -2
  798. package/lib/legacy-grid/src/styles/index.cssr.js +2 -3
  799. package/lib/legacy-grid/src/styles/rtl.cssr.js +2 -3
  800. package/lib/legacy-transfer/src/Transfer.d.ts +2 -2
  801. package/lib/legacy-transfer/src/TransferFilter.d.ts +1 -1
  802. package/lib/legacy-transfer/src/TransferHeader.d.ts +1 -1
  803. package/lib/legacy-transfer/src/TransferList.d.ts +1 -1
  804. package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -1
  805. package/lib/list/src/List.d.ts +2 -2
  806. package/lib/list/src/ListItem.d.ts +1 -1
  807. package/lib/loading-bar/src/LoadingBar.d.ts +4 -2
  808. package/lib/loading-bar/src/LoadingBar.js +21 -12
  809. package/lib/loading-bar/src/LoadingBarProvider.d.ts +4 -1
  810. package/lib/loading-bar/src/LoadingBarProvider.js +2 -2
  811. package/lib/locales/common/arDZ.js +1 -0
  812. package/lib/locales/common/deDE.js +1 -0
  813. package/lib/locales/common/enGB.js +1 -0
  814. package/lib/locales/common/enUS.d.ts +1 -0
  815. package/lib/locales/common/enUS.js +1 -0
  816. package/lib/locales/common/eo.js +1 -0
  817. package/lib/locales/common/esAR.js +1 -0
  818. package/lib/locales/common/faIR.js +1 -0
  819. package/lib/locales/common/frFR.js +2 -1
  820. package/lib/locales/common/idID.js +1 -0
  821. package/lib/locales/common/itIT.js +1 -0
  822. package/lib/locales/common/jaJP.js +1 -0
  823. package/lib/locales/common/koKR.js +1 -0
  824. package/lib/locales/common/nbNO.js +1 -0
  825. package/lib/locales/common/nlNL.js +1 -0
  826. package/lib/locales/common/plPL.js +1 -0
  827. package/lib/locales/common/ptBR.js +15 -17
  828. package/lib/locales/common/ruRU.js +1 -0
  829. package/lib/locales/common/skSK.js +1 -0
  830. package/lib/locales/common/svSE.d.ts +3 -0
  831. package/lib/locales/common/svSE.js +123 -0
  832. package/lib/locales/common/thTH.js +1 -0
  833. package/lib/locales/common/trTR.js +1 -0
  834. package/lib/locales/common/ukUA.js +1 -0
  835. package/lib/locales/common/viVN.js +1 -0
  836. package/lib/locales/common/zhCN.js +1 -0
  837. package/lib/locales/common/zhTW.js +18 -17
  838. package/lib/locales/date/svSE.d.ts +3 -0
  839. package/lib/locales/date/svSE.js +11 -0
  840. package/lib/locales/index.d.ts +2 -0
  841. package/lib/locales/index.js +6 -1
  842. package/lib/log/src/Log.d.ts +11 -11
  843. package/lib/log/src/Log.js +12 -12
  844. package/lib/log/src/LogLine.d.ts +1 -1
  845. package/lib/log/src/LogLoader.d.ts +1 -1
  846. package/lib/mention/src/Mention.d.ts +4 -4
  847. package/lib/mention/src/utils.js +4 -4
  848. package/lib/menu/src/Menu.d.ts +32 -15
  849. package/lib/menu/src/Menu.js +101 -7
  850. package/lib/menu/src/MenuDivider.d.ts +1 -1
  851. package/lib/menu/src/MenuOption.d.ts +1 -1
  852. package/lib/menu/src/MenuOptionContent.d.ts +4 -1
  853. package/lib/menu/src/MenuOptionContent.js +7 -2
  854. package/lib/menu/src/MenuOptionGroup.d.ts +1 -1
  855. package/lib/menu/src/Submenu.d.ts +24 -13
  856. package/lib/menu/src/Submenu.js +9 -8
  857. package/lib/menu/src/context.d.ts +2 -2
  858. package/lib/menu/src/interface.d.ts +1 -0
  859. package/lib/menu/src/styles/index.cssr.js +8 -4
  860. package/lib/menu/src/use-menu-child.js +5 -5
  861. package/lib/message/src/Message.d.ts +2 -2
  862. package/lib/message/src/MessageEnvironment.d.ts +1 -1
  863. package/lib/message/src/MessageProvider.d.ts +9 -6
  864. package/lib/message/src/MessageProvider.js +3 -2
  865. package/lib/modal/src/BodyWrapper.d.ts +12 -4
  866. package/lib/modal/src/Modal.d.ts +18 -6
  867. package/lib/modal/src/presetProps.d.ts +5 -1
  868. package/lib/notification/src/Notification.d.ts +1 -1
  869. package/lib/notification/src/NotificationContainer.d.ts +1 -1
  870. package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
  871. package/lib/notification/src/NotificationEnvironment.js +1 -1
  872. package/lib/notification/src/NotificationProvider.d.ts +5 -2
  873. package/lib/notification/src/NotificationProvider.js +2 -2
  874. package/lib/number-animation/src/NumberAnimation.d.ts +1 -1
  875. package/lib/page-header/src/PageHeader.d.ts +2 -2
  876. package/lib/pagination/src/Pagination.d.ts +2 -2
  877. package/lib/pagination/src/Pagination.js +3 -1
  878. package/lib/popconfirm/src/Popconfirm.d.ts +22 -3
  879. package/lib/popconfirm/src/Popconfirm.js +13 -5
  880. package/lib/popconfirm/src/PopconfirmPanel.d.ts +1 -1
  881. package/lib/popover/src/Popover.d.ts +25 -1
  882. package/lib/popover/src/Popover.js +10 -4
  883. package/lib/popover/src/PopoverBody.d.ts +23 -2
  884. package/lib/popover/src/PopoverBody.js +26 -10
  885. package/lib/popover/src/interface.d.ts +4 -1
  886. package/lib/popselect/src/Popselect.d.ts +19 -1
  887. package/lib/popselect/src/Popselect.js +2 -1
  888. package/lib/popselect/src/PopselectPanel.d.ts +2 -2
  889. package/lib/popselect/src/PopselectPanel.js +1 -0
  890. package/lib/progress/src/Circle.d.ts +1 -1
  891. package/lib/progress/src/Line.d.ts +1 -1
  892. package/lib/progress/src/Line.js +1 -3
  893. package/lib/progress/src/MultipleCircle.d.ts +1 -1
  894. package/lib/progress/src/Progress.d.ts +3 -3
  895. package/lib/qr-code/index.d.ts +2 -0
  896. package/lib/qr-code/index.js +9 -0
  897. package/lib/qr-code/src/QrCode.d.ts +154 -0
  898. package/lib/qr-code/src/QrCode.js +152 -0
  899. package/lib/qr-code/src/qrcodegen.d.ts +94 -0
  900. package/lib/qr-code/src/qrcodegen.js +949 -0
  901. package/lib/qr-code/src/styles/index.cssr.d.ts +2 -0
  902. package/lib/qr-code/src/styles/index.cssr.js +13 -0
  903. package/lib/qr-code/styles/dark.d.ts +3 -0
  904. package/lib/qr-code/styles/dark.js +13 -0
  905. package/lib/qr-code/styles/index.d.ts +3 -0
  906. package/lib/qr-code/styles/index.js +10 -0
  907. package/lib/qr-code/styles/light.d.ts +9 -0
  908. package/lib/qr-code/styles/light.js +14 -0
  909. package/lib/radio/src/Radio.d.ts +173 -34
  910. package/lib/radio/src/Radio.js +2 -2
  911. package/lib/radio/src/RadioButton.d.ts +3 -3
  912. package/lib/radio/src/RadioButton.js +2 -2
  913. package/lib/radio/src/RadioGroup.d.ts +3 -2
  914. package/lib/radio/src/RadioGroup.js +2 -1
  915. package/lib/radio/src/styles/radio-group.cssr.js +1 -0
  916. package/lib/radio/src/use-radio.d.ts +3 -3
  917. package/lib/radio/src/use-radio.js +2 -2
  918. package/lib/rate/src/Rate.d.ts +2 -2
  919. package/lib/result/src/Result.d.ts +3 -3
  920. package/lib/scrollbar/src/Scrollbar.d.ts +1 -1
  921. package/lib/scrollbar/src/Scrollbar.js +2 -0
  922. package/lib/select/src/Select.d.ts +7 -4
  923. package/lib/select/src/Select.js +17 -3
  924. package/lib/select/src/interface.d.ts +2 -0
  925. package/lib/skeleton/src/Skeleton.d.ts +2 -2
  926. package/lib/skeleton/src/Skeleton.js +3 -6
  927. package/lib/slider/src/Slider.d.ts +8 -2
  928. package/lib/slider/src/Slider.js +19 -4
  929. package/lib/slider/src/utils.d.ts +2 -2
  930. package/lib/slider/src/utils.js +5 -3
  931. package/lib/space/src/Space.d.ts +5 -2
  932. package/lib/space/src/Space.js +3 -3
  933. package/lib/spin/src/Spin.d.ts +13 -4
  934. package/lib/spin/src/Spin.js +25 -6
  935. package/lib/split/index.d.ts +2 -0
  936. package/lib/split/index.js +9 -0
  937. package/lib/split/src/Split.d.ts +135 -0
  938. package/lib/split/src/Split.js +151 -0
  939. package/lib/split/src/styles/index.cssr.d.ts +2 -0
  940. package/lib/split/src/styles/index.cssr.js +30 -0
  941. package/lib/split/styles/dark.d.ts +3 -0
  942. package/lib/split/styles/dark.js +8 -0
  943. package/lib/split/styles/index.d.ts +3 -0
  944. package/lib/split/styles/index.js +10 -0
  945. package/lib/split/styles/light.d.ts +9 -0
  946. package/lib/split/styles/light.js +17 -0
  947. package/lib/statistic/src/Statistic.d.ts +2 -2
  948. package/lib/steps/src/Step.d.ts +2 -2
  949. package/lib/steps/src/Steps.d.ts +3 -3
  950. package/lib/steps/src/styles/index.cssr.js +1 -0
  951. package/lib/switch/src/Switch.d.ts +2 -2
  952. package/lib/table/src/Table.d.ts +2 -2
  953. package/lib/table/src/Tbody.d.ts +1 -1
  954. package/lib/table/src/Td.d.ts +1 -1
  955. package/lib/table/src/Th.d.ts +1 -1
  956. package/lib/table/src/Thead.d.ts +1 -1
  957. package/lib/table/src/Tr.d.ts +1 -1
  958. package/lib/tabs/src/Tab.d.ts +1 -1
  959. package/lib/tabs/src/Tab.js +3 -1
  960. package/lib/tabs/src/TabPane.d.ts +1 -1
  961. package/lib/tabs/src/Tabs.d.ts +13 -13
  962. package/lib/tabs/src/Tabs.js +15 -2
  963. package/lib/tabs/src/styles/index.cssr.js +12 -2
  964. package/lib/tag/src/Tag.d.ts +2 -2
  965. package/lib/theme-editor/src/MaximizeIcon.d.ts +1 -1
  966. package/lib/theme-editor/src/MinimizeIcon.d.ts +1 -1
  967. package/lib/theme-editor/src/ThemeEditor.d.ts +3 -3
  968. package/lib/themes/dark.js +56 -52
  969. package/lib/themes/light.js +56 -52
  970. package/lib/thing/src/Thing.d.ts +7 -1
  971. package/lib/thing/src/Thing.js +13 -4
  972. package/lib/time/src/Time.d.ts +1 -1
  973. package/lib/time/src/Time.js +1 -1
  974. package/lib/time-picker/src/Panel.d.ts +1 -1
  975. package/lib/time-picker/src/PanelCol.d.ts +1 -1
  976. package/lib/time-picker/src/PanelCol.js +5 -1
  977. package/lib/time-picker/src/TimePicker.d.ts +2 -2
  978. package/lib/time-picker/src/TimePicker.js +1 -1
  979. package/lib/timeline/src/Timeline.d.ts +1 -1
  980. package/lib/timeline/src/TimelineItem.d.ts +1 -1
  981. package/lib/tooltip/src/Tooltip.d.ts +19 -1
  982. package/lib/transfer/src/Transfer.d.ts +8 -2
  983. package/lib/transfer/src/Transfer.js +2 -2
  984. package/lib/transfer/src/TransferFilter.d.ts +1 -1
  985. package/lib/transfer/src/TransferHeader.d.ts +5 -1
  986. package/lib/transfer/src/TransferHeader.js +6 -2
  987. package/lib/transfer/src/TransferList.d.ts +1 -1
  988. package/lib/transfer/src/TransferListItem.d.ts +1 -1
  989. package/lib/tree/index.d.ts +1 -0
  990. package/lib/tree/index.js +3 -1
  991. package/lib/tree/src/MotionWrapper.d.ts +1 -1
  992. package/lib/tree/src/Tree.d.ts +59 -5
  993. package/lib/tree/src/Tree.js +31 -18
  994. package/lib/tree/src/TreeNode.d.ts +6 -2
  995. package/lib/tree/src/TreeNode.js +72 -25
  996. package/lib/tree/src/TreeNodeCheckbox.d.ts +13 -1
  997. package/lib/tree/src/TreeNodeCheckbox.js +9 -8
  998. package/lib/tree/src/TreeNodeContent.d.ts +1 -1
  999. package/lib/tree/src/TreeNodeSwitcher.d.ts +19 -2
  1000. package/lib/tree/src/TreeNodeSwitcher.js +12 -6
  1001. package/lib/tree/src/interface.d.ts +2 -0
  1002. package/lib/tree/src/styles/index.cssr.js +47 -51
  1003. package/lib/tree/src/utils.d.ts +1 -0
  1004. package/lib/tree/src/utils.js +15 -1
  1005. package/lib/tree/styles/light.d.ts +8 -0
  1006. package/lib/tree/styles/light.js +6 -2
  1007. package/lib/tree-select/src/TreeSelect.d.ts +49 -3
  1008. package/lib/tree-select/src/TreeSelect.js +5 -3
  1009. package/lib/tree-select/src/interface.d.ts +2 -0
  1010. package/lib/tree-select/styles/light.d.ts +4 -0
  1011. package/lib/typography/src/a.d.ts +2 -2
  1012. package/lib/typography/src/blockquote.d.ts +2 -2
  1013. package/lib/typography/src/create-header.d.ts +2 -2
  1014. package/lib/typography/src/headers.d.ts +12 -12
  1015. package/lib/typography/src/hr.d.ts +2 -2
  1016. package/lib/typography/src/li.d.ts +1 -1
  1017. package/lib/typography/src/ol.d.ts +2 -2
  1018. package/lib/typography/src/p.d.ts +2 -2
  1019. package/lib/typography/src/text.d.ts +2 -2
  1020. package/lib/typography/src/ul.d.ts +2 -2
  1021. package/lib/upload/src/Upload.d.ts +11 -5
  1022. package/lib/upload/src/Upload.js +8 -3
  1023. package/lib/upload/src/UploadDragger.d.ts +1 -1
  1024. package/lib/upload/src/UploadFile.d.ts +2 -2
  1025. package/lib/upload/src/UploadFileList.d.ts +1 -1
  1026. package/lib/upload/src/UploadFileList.js +3 -2
  1027. package/lib/upload/src/UploadProgress.d.ts +1 -1
  1028. package/lib/upload/src/UploadTrigger.d.ts +1 -1
  1029. package/lib/upload/src/UploadTrigger.js +3 -2
  1030. package/lib/upload/src/interface.d.ts +5 -3
  1031. package/lib/version.d.ts +1 -1
  1032. package/lib/version.js +1 -1
  1033. package/lib/virtual-list/index.d.ts +2 -0
  1034. package/lib/virtual-list/index.js +9 -0
  1035. package/lib/virtual-list/src/VirtualList.d.ts +146 -0
  1036. package/lib/virtual-list/src/VirtualList.js +105 -0
  1037. package/lib/watermark/src/Watermark.d.ts +1 -1
  1038. package/lib/watermark/src/Watermark.js +7 -0
  1039. package/package.json +69 -69
  1040. package/volar.d.ts +5 -0
  1041. package/web-types.json +917 -32
@@ -38,13 +38,13 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
38
38
  handleDateInput: (value: string) => void;
39
39
  handleTimePickerChange: (value: number | null) => void;
40
40
  clearSelectedDateTime: () => void;
41
- virtualListContainer: () => HTMLElement;
42
- virtualListContent: () => HTMLElement;
41
+ virtualListContainer: () => HTMLElement | null;
42
+ virtualListContent: () => HTMLElement | null;
43
43
  handleVirtualListScroll: (e: Event) => void;
44
44
  timePickerSize: import("vue").Ref<"small" | "medium" | "large">;
45
45
  dateInputValue: import("vue").Ref<string>;
46
46
  datePickerSlots: Readonly<{
47
- [name: string]: import("vue").Slot | undefined;
47
+ [name: string]: import("vue").Slot<any> | undefined;
48
48
  }>;
49
49
  handleQuickMonthClick: (dateItem: MonthItem | YearItem | QuarterItem, updatePanelValue: (value: number) => void) => void;
50
50
  justifyColumnsScrollState: (value?: number) => void;
@@ -254,12 +254,12 @@ function useCalendar(props, type) {
254
254
  // For month type
255
255
  function virtualListContainer() {
256
256
  const { value } = yearVlRef;
257
- return value === null || value === void 0 ? void 0 : value.listElRef;
257
+ return (value === null || value === void 0 ? void 0 : value.listElRef) || null;
258
258
  }
259
259
  // For month type
260
260
  function virtualListContent() {
261
261
  const { value } = yearVlRef;
262
- return value === null || value === void 0 ? void 0 : value.itemsElRef;
262
+ return (value === null || value === void 0 ? void 0 : value.itemsElRef) || null;
263
263
  }
264
264
  // For month type
265
265
  function handleVirtualListScroll(e) {
@@ -42,7 +42,7 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
42
42
  startTimeValue: import("vue").ComputedRef<number | null>;
43
43
  endTimeValue: import("vue").ComputedRef<number | null>;
44
44
  datePickerSlots: Readonly<{
45
- [name: string]: import("vue").Slot | undefined;
45
+ [name: string]: import("vue").Slot<any> | undefined;
46
46
  }>;
47
47
  shortcuts: import("vue").ComputedRef<Shortcuts | undefined>;
48
48
  startCalendarDateTime: import("vue").Ref<number>;
@@ -60,8 +60,8 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
60
60
  handleEndDateInputBlur: () => void;
61
61
  handleStartYearVlScroll: () => void;
62
62
  handleEndYearVlScroll: () => void;
63
- virtualListContainer: (type: 'start' | 'end') => HTMLElement;
64
- virtualListContent: (type: 'start' | 'end') => HTMLElement;
63
+ virtualListContainer: (type: 'start' | 'end') => HTMLElement | null;
64
+ virtualListContent: (type: 'start' | 'end') => HTMLElement | null;
65
65
  onUpdateStartCalendarValue: (value: number) => void;
66
66
  onUpdateEndCalendarValue: (value: number) => void;
67
67
  startYearScrollbarRef: import("vue").Ref<ScrollbarInst | null>;
@@ -611,19 +611,19 @@ function useDualCalendar(props, type) {
611
611
  function virtualListContainer(type) {
612
612
  var _a, _b;
613
613
  if (type === 'start') {
614
- return (_a = startYearVlRef.value) === null || _a === void 0 ? void 0 : _a.listElRef;
614
+ return ((_a = startYearVlRef.value) === null || _a === void 0 ? void 0 : _a.listElRef) || null;
615
615
  }
616
616
  else {
617
- return (_b = endYearVlRef.value) === null || _b === void 0 ? void 0 : _b.listElRef;
617
+ return ((_b = endYearVlRef.value) === null || _b === void 0 ? void 0 : _b.listElRef) || null;
618
618
  }
619
619
  }
620
620
  function virtualListContent(type) {
621
621
  var _a, _b;
622
622
  if (type === 'start') {
623
- return (_a = startYearVlRef.value) === null || _a === void 0 ? void 0 : _a.itemsElRef;
623
+ return ((_a = startYearVlRef.value) === null || _a === void 0 ? void 0 : _a.itemsElRef) || null;
624
624
  }
625
625
  else {
626
- return (_b = endYearVlRef.value) === null || _b === void 0 ? void 0 : _b.itemsElRef;
626
+ return ((_b = endYearVlRef.value) === null || _b === void 0 ? void 0 : _b.itemsElRef) || null;
627
627
  }
628
628
  }
629
629
  const childComponentRefs = {
@@ -76,6 +76,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('date-picker', `
76
76
  border-radius: var(--n-panel-border-radius);
77
77
  background-color: var(--n-panel-color);
78
78
  color: var(--n-panel-text-color);
79
+ user-select: none;
79
80
  `, [(0, fade_in_scale_up_cssr_1.fadeInScaleUpTransition)(), (0, cssr_1.cM)('shadow', `
80
81
  box-shadow: var(--n-panel-box-shadow);
81
82
  `), (0, cssr_1.cB)('date-panel-calendar', {
@@ -28,12 +28,7 @@ const matcherMap = {
28
28
  };
29
29
  function matchDate(sourceTime, patternTime, type) {
30
30
  const matcher = matcherMap[type];
31
- if (Array.isArray(sourceTime)) {
32
- return sourceTime.some((time) => matcher(time, patternTime));
33
- }
34
- else {
35
- return matcher(sourceTime, patternTime);
36
- }
31
+ return matcher(sourceTime, patternTime);
37
32
  }
38
33
  // date item's valueTs can be a tuple since two date may show in one panel, so
39
34
  // any matched value would make it shown as selected
@@ -19,7 +19,7 @@ exports.default = {
19
19
  calendarLeftPaddingDatetime: '4px 12px',
20
20
  calendarLeftPaddingDaterange: '6px 12px 4px 12px',
21
21
  calendarLeftPaddingDatetimerange: '4px 12px',
22
- calendarLeftPaddingMonth: '0',
22
+ calendarLeftPaddingMonth: '0', // TODO: make it actually effective
23
23
  calendarLeftPaddingYear: '0',
24
24
  calendarLeftPaddingQuarter: '0',
25
25
  calendarLeftPaddingMonthrange: '0',
@@ -24,7 +24,9 @@ export declare const descriptionsProps: {
24
24
  readonly default: "medium";
25
25
  };
26
26
  readonly bordered: BooleanConstructor;
27
+ readonly labelClass: StringConstructor;
27
28
  readonly labelStyle: PropType<string | CSSProperties>;
29
+ readonly contentClass: StringConstructor;
28
30
  readonly contentStyle: PropType<string | CSSProperties>;
29
31
  readonly theme: PropType<import("../../_mixins").Theme<"Descriptions", {
30
32
  lineHeight: string;
@@ -150,7 +152,9 @@ declare const _default: import("vue").DefineComponent<{
150
152
  readonly default: "medium";
151
153
  };
152
154
  readonly bordered: BooleanConstructor;
155
+ readonly labelClass: StringConstructor;
153
156
  readonly labelStyle: PropType<string | CSSProperties>;
157
+ readonly contentClass: StringConstructor;
154
158
  readonly contentStyle: PropType<string | CSSProperties>;
155
159
  readonly theme: PropType<import("../../_mixins").Theme<"Descriptions", {
156
160
  lineHeight: string;
@@ -249,7 +253,7 @@ declare const _default: import("vue").DefineComponent<{
249
253
  tdPaddingLarge: string;
250
254
  }, any>>>;
251
255
  }, {
252
- mergedClsPrefix: import("vue").ComputedRef<string>;
256
+ mergedClsPrefix: import("vue").Ref<string>;
253
257
  cssVars: import("vue").ComputedRef<{
254
258
  '--n-title-text-color': string;
255
259
  '--n-th-padding': string;
@@ -299,7 +303,9 @@ declare const _default: import("vue").DefineComponent<{
299
303
  readonly default: "medium";
300
304
  };
301
305
  readonly bordered: BooleanConstructor;
306
+ readonly labelClass: StringConstructor;
302
307
  readonly labelStyle: PropType<string | CSSProperties>;
308
+ readonly contentClass: StringConstructor;
303
309
  readonly contentStyle: PropType<string | CSSProperties>;
304
310
  readonly theme: PropType<import("../../_mixins").Theme<"Descriptions", {
305
311
  lineHeight: string;
@@ -404,5 +410,5 @@ declare const _default: import("vue").DefineComponent<{
404
410
  readonly bordered: boolean;
405
411
  readonly labelAlign: "left" | "right" | "center";
406
412
  readonly labelPlacement: "left" | "top";
407
- }>;
413
+ }, {}>;
408
414
  export default _default;
@@ -11,6 +11,7 @@ const _utils_1 = require("../../_utils");
11
11
  const styles_1 = require("../styles");
12
12
  const utils_1 = require("./utils");
13
13
  const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
14
+ const seemly_1 = require("seemly");
14
15
  exports.descriptionsProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { title: String, column: {
15
16
  type: Number,
16
17
  default: 3
@@ -26,7 +27,7 @@ exports.descriptionsProps = Object.assign(Object.assign({}, _mixins_1.useTheme.p
26
27
  }, size: {
27
28
  type: String,
28
29
  default: 'medium'
29
- }, bordered: Boolean, labelStyle: [Object, String], contentStyle: [Object, String] });
30
+ }, bordered: Boolean, labelClass: String, labelStyle: [Object, String], contentClass: String, contentStyle: [Object, String] });
30
31
  exports.default = (0, vue_1.defineComponent)({
31
32
  name: 'Descriptions',
32
33
  props: exports.descriptionsProps,
@@ -81,7 +82,7 @@ exports.default = (0, vue_1.defineComponent)({
81
82
  const defaultSlots = this.$slots.default;
82
83
  const children = defaultSlots ? (0, _utils_1.flatten)(defaultSlots()) : [];
83
84
  const memorizedLength = children.length;
84
- const { compitableColumn, labelPlacement, labelAlign, size, bordered, title, cssVars, mergedClsPrefix, separator, onRender } = this;
85
+ const { contentClass, labelClass, compitableColumn, labelPlacement, labelAlign, size, bordered, title, cssVars, mergedClsPrefix, separator, onRender } = this;
85
86
  onRender === null || onRender === void 0 ? void 0 : onRender();
86
87
  const filteredChildren = children.filter((child) => (0, utils_1.isDescriptionsItem)(child));
87
88
  if (process.env.NODE_ENV !== 'production' && memorizedLength !== filteredChildren.length) {
@@ -107,7 +108,13 @@ exports.default = (0, vue_1.defineComponent)({
107
108
  const contentStyle = props.contentStyle || props['content-style'] || this.contentStyle;
108
109
  if (labelPlacement === 'left') {
109
110
  if (bordered) {
110
- state.row.push((0, vue_1.h)("th", { class: `${mergedClsPrefix}-descriptions-table-header`, colspan: 1, style: labelStyle }, itemLabel), (0, vue_1.h)("td", { class: `${mergedClsPrefix}-descriptions-table-content`, colspan: isLastIteration
111
+ state.row.push((0, vue_1.h)("th", { class: [
112
+ `${mergedClsPrefix}-descriptions-table-header`,
113
+ labelClass
114
+ ], colspan: 1, style: labelStyle }, itemLabel), (0, vue_1.h)("td", { class: [
115
+ `${mergedClsPrefix}-descriptions-table-content`,
116
+ contentClass
117
+ ], colspan: isLastIteration
111
118
  ? (compitableColumn - memorizedSpan) * 2 + 1
112
119
  : itemSpan * 2 - 1, style: contentStyle }, itemChildren));
113
120
  }
@@ -115,19 +122,28 @@ exports.default = (0, vue_1.defineComponent)({
115
122
  state.row.push((0, vue_1.h)("td", { class: `${mergedClsPrefix}-descriptions-table-content`, colspan: isLastIteration
116
123
  ? (compitableColumn - memorizedSpan) * 2
117
124
  : itemSpan * 2 },
118
- (0, vue_1.h)("span", { class: `${mergedClsPrefix}-descriptions-table-content__label`, style: labelStyle }, [
125
+ (0, vue_1.h)("span", { class: [
126
+ `${mergedClsPrefix}-descriptions-table-content__label`,
127
+ labelClass
128
+ ], style: labelStyle }, [
119
129
  ...itemLabel,
120
130
  separator && ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-descriptions-separator` }, separator))
121
131
  ]),
122
- (0, vue_1.h)("span", { class: `${mergedClsPrefix}-descriptions-table-content__content`, style: contentStyle }, itemChildren)));
132
+ (0, vue_1.h)("span", { class: [
133
+ `${mergedClsPrefix}-descriptions-table-content__content`,
134
+ contentClass
135
+ ], style: contentStyle }, itemChildren)));
123
136
  }
124
137
  }
125
138
  else {
126
139
  const colspan = isLastIteration
127
140
  ? (compitableColumn - memorizedSpan) * 2
128
141
  : itemSpan * 2;
129
- state.row.push((0, vue_1.h)("th", { class: `${mergedClsPrefix}-descriptions-table-header`, colspan: colspan, style: labelStyle }, itemLabel));
130
- state.secondRow.push((0, vue_1.h)("td", { class: `${mergedClsPrefix}-descriptions-table-content`, colspan: colspan, style: contentStyle }, itemChildren));
142
+ state.row.push((0, vue_1.h)("th", { class: [`${mergedClsPrefix}-descriptions-table-header`, labelClass], colspan: colspan, style: labelStyle }, itemLabel));
143
+ state.secondRow.push((0, vue_1.h)("td", { class: [
144
+ `${mergedClsPrefix}-descriptions-table-content`,
145
+ contentClass
146
+ ], colspan: colspan, style: contentStyle }, itemChildren));
131
147
  }
132
148
  if (state.span >= compitableColumn || isLastIteration) {
133
149
  state.span = 0;
@@ -156,6 +172,10 @@ exports.default = (0, vue_1.defineComponent)({
156
172
  title || this.$slots.header ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-descriptions-header` }, title || (0, _utils_1.getSlot)(this, 'header'))) : null,
157
173
  (0, vue_1.h)("div", { class: `${mergedClsPrefix}-descriptions-table-wrapper` },
158
174
  (0, vue_1.h)("table", { class: `${mergedClsPrefix}-descriptions-table` },
159
- (0, vue_1.h)("tbody", null, rows)))));
175
+ (0, vue_1.h)("tbody", null,
176
+ labelPlacement === 'top' && ((0, vue_1.h)("tr", { class: `${mergedClsPrefix}-descriptions-table-row`, style: {
177
+ visibility: 'collapse'
178
+ } }, (0, seemly_1.repeat)(compitableColumn * 2, (0, vue_1.h)("td", null)))),
179
+ rows)))));
160
180
  }
161
181
  });
@@ -6,7 +6,9 @@ export declare const descriptionsItemProps: {
6
6
  readonly type: NumberConstructor;
7
7
  readonly default: 1;
8
8
  };
9
+ readonly labelClass: StringConstructor;
9
10
  readonly labelStyle: PropType<string | CSSProperties>;
11
+ readonly contentClass: StringConstructor;
10
12
  readonly contentStyle: PropType<string | CSSProperties>;
11
13
  };
12
14
  export type DescriptionItemProps = ExtractPublicPropTypes<typeof descriptionsItemProps>;
@@ -16,7 +18,9 @@ declare const _default: import("vue").DefineComponent<{
16
18
  readonly type: NumberConstructor;
17
19
  readonly default: 1;
18
20
  };
21
+ readonly labelClass: StringConstructor;
19
22
  readonly labelStyle: PropType<string | CSSProperties>;
23
+ readonly contentClass: StringConstructor;
20
24
  readonly contentStyle: PropType<string | CSSProperties>;
21
25
  }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
26
  readonly label: StringConstructor;
@@ -24,9 +28,11 @@ declare const _default: import("vue").DefineComponent<{
24
28
  readonly type: NumberConstructor;
25
29
  readonly default: 1;
26
30
  };
31
+ readonly labelClass: StringConstructor;
27
32
  readonly labelStyle: PropType<string | CSSProperties>;
33
+ readonly contentClass: StringConstructor;
28
34
  readonly contentStyle: PropType<string | CSSProperties>;
29
35
  }>>, {
30
36
  readonly span: number;
31
- }>;
37
+ }, {}>;
32
38
  export default _default;
@@ -9,7 +9,9 @@ exports.descriptionsItemProps = {
9
9
  type: Number,
10
10
  default: 1
11
11
  },
12
+ labelClass: String,
12
13
  labelStyle: [Object, String],
14
+ contentClass: String,
13
15
  contentStyle: [Object, String]
14
16
  };
15
17
  exports.default = (0, vue_1.defineComponent)({
@@ -737,7 +737,7 @@ export declare const NDialog: import("vue").DefineComponent<{
737
737
  }, any>;
738
738
  }>>>;
739
739
  }, {
740
- mergedClsPrefix: import("vue").ComputedRef<string>;
740
+ mergedClsPrefix: import("vue").Ref<string>;
741
741
  mergedIconPlacement: import("vue").ComputedRef<import("./interface").IconPlacement>;
742
742
  mergedTheme: import("vue").ComputedRef<{
743
743
  common: {
@@ -1867,4 +1867,4 @@ export declare const NDialog: import("vue").DefineComponent<{
1867
1867
  bordered: boolean;
1868
1868
  showIcon: boolean;
1869
1869
  closable: boolean;
1870
- }>;
1870
+ }, {}>;
@@ -23,7 +23,7 @@ const iconRenderMap = {
23
23
  exports.NDialog = (0, vue_1.defineComponent)({
24
24
  name: 'Dialog',
25
25
  alias: [
26
- 'NimbusConfirmCard',
26
+ 'NimbusConfirmCard', // deprecated
27
27
  'Confirm' // deprecated
28
28
  ],
29
29
  props: Object.assign(Object.assign({}, _mixins_1.useTheme.props), dialogProps_1.dialogProps),
@@ -125,7 +125,11 @@ exports.NDialog = (0, vue_1.defineComponent)({
125
125
  `${mergedClsPrefix}-dialog--icon-${mergedIconPlacement}`,
126
126
  bordered && `${mergedClsPrefix}-dialog--bordered`
127
127
  ], style: cssVars, role: "dialog" },
128
- closable ? ((0, vue_1.h)(_internal_1.NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-dialog__close`, onClick: this.handleCloseClick })) : null,
128
+ closable
129
+ ? (0, _utils_1.resolveWrappedSlot)(this.$slots.close, (node) => {
130
+ return node ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog__close` }, node)) : ((0, vue_1.h)(_internal_1.NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-dialog__close`, onClick: this.handleCloseClick }));
131
+ })
132
+ : null,
129
133
  showIcon && mergedIconPlacement === 'top' ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog-icon-container` }, icon)) : null,
130
134
  (0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog__title` },
131
135
  showIcon && mergedIconPlacement === 'left' ? icon : null,
@@ -177,12 +177,12 @@ export declare const NDialogEnvironment: import("vue").DefineComponent<{
177
177
  iconPlacement: PropType<import("./interface").IconPlacement>;
178
178
  }>>, {
179
179
  type: "default" | "error" | "info" | "success" | "warning";
180
- autoFocus: boolean;
181
180
  loading: boolean;
181
+ autoFocus: boolean;
182
182
  bordered: boolean;
183
183
  showIcon: boolean;
184
184
  closable: boolean;
185
185
  blockScroll: boolean;
186
186
  maskClosable: boolean;
187
187
  closeOnEsc: boolean;
188
- }>;
188
+ }, {}>;
@@ -49,10 +49,10 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
49
49
  onAfterLeave?: (() => void) | undefined;
50
50
  title?: string | (() => import("vue").VNodeChild) | undefined;
51
51
  action?: (() => import("vue").VNodeChild) | undefined;
52
+ loading?: boolean | undefined;
52
53
  autoFocus?: boolean | undefined;
53
54
  positiveText?: string | undefined;
54
55
  negativeText?: string | undefined;
55
- loading?: boolean | undefined;
56
56
  bordered?: boolean | undefined;
57
57
  showIcon?: boolean | undefined;
58
58
  closable?: boolean | undefined;
@@ -71,6 +71,7 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
71
71
  circle?: boolean | undefined;
72
72
  disabled?: boolean | undefined;
73
73
  onClick?: import("../../_utils").MaybeArray<(e: MouseEvent) => void> | undefined;
74
+ loading?: boolean | undefined;
74
75
  focusable?: boolean | undefined;
75
76
  strong?: boolean | undefined;
76
77
  themeOverrides?: {
@@ -385,7 +386,6 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
385
386
  name: "common";
386
387
  } | undefined;
387
388
  } | undefined;
388
- loading?: boolean | undefined;
389
389
  bordered?: boolean | undefined;
390
390
  textColor?: string | undefined;
391
391
  renderIcon?: (() => import("vue").VNodeChild) | undefined;
@@ -410,6 +410,7 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
410
410
  circle?: boolean | undefined;
411
411
  disabled?: boolean | undefined;
412
412
  onClick?: import("../../_utils").MaybeArray<(e: MouseEvent) => void> | undefined;
413
+ loading?: boolean | undefined;
413
414
  focusable?: boolean | undefined;
414
415
  strong?: boolean | undefined;
415
416
  themeOverrides?: {
@@ -724,7 +725,6 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
724
725
  name: "common";
725
726
  } | undefined;
726
727
  } | undefined;
727
- loading?: boolean | undefined;
728
728
  bordered?: boolean | undefined;
729
729
  textColor?: string | undefined;
730
730
  renderIcon?: (() => import("vue").VNodeChild) | undefined;
@@ -757,5 +757,5 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
757
757
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
758
758
  injectionKey: StringConstructor;
759
759
  to: PropType<string | HTMLElement>;
760
- }>>, {}>;
760
+ }>>, {}, {}>;
761
761
  export {};
@@ -33,7 +33,9 @@ exports.NDialogProvider = (0, vue_1.defineComponent)({
33
33
  dialogList.splice(dialogList.findIndex((dialog) => dialog.key === key), 1);
34
34
  }
35
35
  function destroyAll() {
36
- Object.values(dialogInstRefs).forEach((dialogInstRef) => { dialogInstRef.hide(); });
36
+ Object.values(dialogInstRefs).forEach((dialogInstRef) => {
37
+ dialogInstRef.hide();
38
+ });
37
39
  }
38
40
  const api = {
39
41
  create,
@@ -32,4 +32,4 @@ declare const dialogProps: {
32
32
  };
33
33
  export type DialogProps = ExtractPublicPropTypes<typeof dialogProps>;
34
34
  export { dialogProps };
35
- export declare const dialogPropKeys: ("type" | "content" | "icon" | "title" | "action" | "positiveText" | "negativeText" | "loading" | "bordered" | "showIcon" | "closable" | "onClose" | "iconPlacement" | "positiveButtonProps" | "negativeButtonProps" | "onPositiveClick" | "onNegativeClick")[];
35
+ export declare const dialogPropKeys: ("type" | "content" | "icon" | "title" | "action" | "loading" | "positiveText" | "negativeText" | "bordered" | "showIcon" | "closable" | "onClose" | "iconPlacement" | "positiveButtonProps" | "negativeButtonProps" | "onPositiveClick" | "onNegativeClick")[];
@@ -5,4 +5,4 @@ export declare const NInjectionExtractor: import("vue").DefineComponent<{
5
5
  [key: string]: any;
6
6
  }>[] | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
7
  onSetup: PropType<() => void>;
8
- }>>, {}>;
8
+ }>>, {}, {}>;
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
47
47
  fontWeight: string;
48
48
  }, any>>>;
49
49
  }, {
50
- mergedClsPrefix: import("vue").ComputedRef<string>;
50
+ mergedClsPrefix: import("vue").Ref<string>;
51
51
  cssVars: import("vue").ComputedRef<{
52
52
  '--n-bezier': string;
53
53
  '--n-color': string;
@@ -82,5 +82,5 @@ declare const _default: import("vue").DefineComponent<{
82
82
  readonly dashed: boolean;
83
83
  readonly vertical: boolean;
84
84
  readonly titlePlacement: "left" | "right" | "center";
85
- }>;
85
+ }, {}>;
86
86
  export default _default;
@@ -48,6 +48,10 @@ export declare const drawerProps: {
48
48
  readonly type: BooleanConstructor;
49
49
  readonly default: true;
50
50
  };
51
+ readonly maxWidth: NumberConstructor;
52
+ readonly maxHeight: NumberConstructor;
53
+ readonly minWidth: NumberConstructor;
54
+ readonly minHeight: NumberConstructor;
51
55
  readonly resizable: BooleanConstructor;
52
56
  readonly defaultWidth: {
53
57
  readonly type: PropType<string | number>;
@@ -203,6 +207,10 @@ declare const _default: import("vue").DefineComponent<{
203
207
  readonly type: BooleanConstructor;
204
208
  readonly default: true;
205
209
  };
210
+ readonly maxWidth: NumberConstructor;
211
+ readonly maxHeight: NumberConstructor;
212
+ readonly minWidth: NumberConstructor;
213
+ readonly minHeight: NumberConstructor;
206
214
  readonly resizable: BooleanConstructor;
207
215
  readonly defaultWidth: {
208
216
  readonly type: PropType<string | number>;
@@ -311,7 +319,7 @@ declare const _default: import("vue").DefineComponent<{
311
319
  }, any>;
312
320
  }>>>;
313
321
  }, {
314
- mergedClsPrefix: import("vue").ComputedRef<string>;
322
+ mergedClsPrefix: import("vue").Ref<string>;
315
323
  namespace: import("vue").ComputedRef<string | undefined>;
316
324
  mergedBodyStyle: import("vue").ComputedRef<(string | CSSProperties)[]>;
317
325
  handleMaskClick: (e: MouseEvent) => void;
@@ -340,6 +348,7 @@ declare const _default: import("vue").DefineComponent<{
340
348
  errorColorPressed: string;
341
349
  errorColorSuppl: string;
342
350
  textColorBase: string;
351
+ /** @deprecated */
343
352
  textColor1: string;
344
353
  textColor2: string;
345
354
  textColor3: string;
@@ -534,6 +543,10 @@ declare const _default: import("vue").DefineComponent<{
534
543
  readonly type: BooleanConstructor;
535
544
  readonly default: true;
536
545
  };
546
+ readonly maxWidth: NumberConstructor;
547
+ readonly maxHeight: NumberConstructor;
548
+ readonly minWidth: NumberConstructor;
549
+ readonly minHeight: NumberConstructor;
537
550
  readonly resizable: BooleanConstructor;
538
551
  readonly defaultWidth: {
539
552
  readonly type: PropType<string | number>;
@@ -655,5 +668,5 @@ declare const _default: import("vue").DefineComponent<{
655
668
  readonly showMask: boolean | "transparent";
656
669
  readonly defaultWidth: string | number;
657
670
  readonly defaultHeight: string | number;
658
- }>;
671
+ }, {}>;
659
672
  export default _default;
@@ -41,7 +41,7 @@ exports.drawerProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
41
41
  }, blockScroll: {
42
42
  type: Boolean,
43
43
  default: true
44
- }, resizable: Boolean, defaultWidth: {
44
+ }, maxWidth: Number, maxHeight: Number, minWidth: Number, minHeight: Number, resizable: Boolean, defaultWidth: {
45
45
  type: [Number, String],
46
46
  default: 251
47
47
  }, defaultHeight: {
@@ -215,7 +215,7 @@ exports.default = (0, vue_1.defineComponent)({
215
215
  `${mergedClsPrefix}-drawer-mask--invisible`
216
216
  ], onClick: this.handleMaskClick })) : null
217
217
  })) : null,
218
- (0, vue_1.h)(DrawerBodyWrapper_1.default, Object.assign({}, this.$attrs, { class: [this.drawerClass, this.$attrs.class], style: [this.mergedBodyStyle, this.$attrs.style], blockScroll: this.blockScroll, contentStyle: this.contentStyle, placement: this.placement, scrollbarProps: this.scrollbarProps, show: this.show, displayDirective: this.displayDirective, nativeScrollbar: this.nativeScrollbar, onAfterEnter: this.onAfterEnter, onAfterLeave: this.onAfterLeave, trapFocus: this.trapFocus, autoFocus: this.autoFocus, resizable: this.resizable, showMask: this.showMask, onEsc: this.handleEsc, onClickoutside: this.handleMaskClick }), this.$slots)), [[vdirs_1.zindexable, { zIndex: this.zIndex, enabled: this.show }]]);
218
+ (0, vue_1.h)(DrawerBodyWrapper_1.default, Object.assign({}, this.$attrs, { class: [this.drawerClass, this.$attrs.class], style: [this.mergedBodyStyle, this.$attrs.style], blockScroll: this.blockScroll, contentStyle: this.contentStyle, placement: this.placement, scrollbarProps: this.scrollbarProps, show: this.show, displayDirective: this.displayDirective, nativeScrollbar: this.nativeScrollbar, onAfterEnter: this.onAfterEnter, onAfterLeave: this.onAfterLeave, trapFocus: this.trapFocus, autoFocus: this.autoFocus, resizable: this.resizable, maxHeight: this.maxHeight, minHeight: this.minHeight, maxWidth: this.maxWidth, minWidth: this.minWidth, showMask: this.showMask, onEsc: this.handleEsc, onClickoutside: this.handleMaskClick }), this.$slots)), [[vdirs_1.zindexable, { zIndex: this.zIndex, enabled: this.show }]]);
219
219
  }
220
220
  }));
221
221
  }
@@ -33,6 +33,10 @@ declare const _default: import("vue").DefineComponent<{
33
33
  type: PropType<boolean | "transparent">;
34
34
  required: true;
35
35
  };
36
+ maxWidth: NumberConstructor;
37
+ maxHeight: NumberConstructor;
38
+ minWidth: NumberConstructor;
39
+ minHeight: NumberConstructor;
36
40
  resizable: BooleanConstructor;
37
41
  onClickoutside: PropType<(e: MouseEvent) => void>;
38
42
  onAfterLeave: PropType<() => void>;
@@ -227,6 +231,10 @@ declare const _default: import("vue").DefineComponent<{
227
231
  type: PropType<boolean | "transparent">;
228
232
  required: true;
229
233
  };
234
+ maxWidth: NumberConstructor;
235
+ maxHeight: NumberConstructor;
236
+ minWidth: NumberConstructor;
237
+ minHeight: NumberConstructor;
230
238
  resizable: BooleanConstructor;
231
239
  onClickoutside: PropType<(e: MouseEvent) => void>;
232
240
  onAfterLeave: PropType<() => void>;
@@ -238,5 +246,5 @@ declare const _default: import("vue").DefineComponent<{
238
246
  resizable: boolean;
239
247
  trapFocus: boolean;
240
248
  blockScroll: boolean;
241
- }>;
249
+ }, {}>;
242
250
  export default _default;
@@ -44,6 +44,10 @@ exports.default = (0, vue_1.defineComponent)({
44
44
  type: [Boolean, String],
45
45
  required: true
46
46
  },
47
+ maxWidth: Number,
48
+ maxHeight: Number,
49
+ minWidth: Number,
50
+ minHeight: Number,
47
51
  resizable: Boolean,
48
52
  onClickoutside: Function,
49
53
  onAfterLeave: Function,
@@ -96,6 +100,24 @@ exports.default = (0, vue_1.defineComponent)({
96
100
  isHoverOnResizeTriggerRef.value = false;
97
101
  };
98
102
  const { doUpdateHeight, doUpdateWidth } = NDrawer;
103
+ const regulateWidth = (size) => {
104
+ const { maxWidth } = props;
105
+ if (maxWidth && size > maxWidth)
106
+ return maxWidth;
107
+ const { minWidth } = props;
108
+ if (minWidth && size < minWidth)
109
+ return minWidth;
110
+ return size;
111
+ };
112
+ const regulateHeight = (size) => {
113
+ const { maxHeight } = props;
114
+ if (maxHeight && size > maxHeight)
115
+ return maxHeight;
116
+ const { minHeight } = props;
117
+ if (minHeight && size < minHeight)
118
+ return minHeight;
119
+ return size;
120
+ };
99
121
  const handleBodyMousemove = (e) => {
100
122
  var _a, _b;
101
123
  if (isDraggingRef.value) {
@@ -103,6 +125,7 @@ exports.default = (0, vue_1.defineComponent)({
103
125
  let height = ((_a = bodyRef.value) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0;
104
126
  const increment = startPosition - e.clientY;
105
127
  height += props.placement === 'bottom' ? increment : -increment;
128
+ height = regulateHeight(height);
106
129
  doUpdateHeight(height);
107
130
  startPosition = e.clientY;
108
131
  }
@@ -110,6 +133,7 @@ exports.default = (0, vue_1.defineComponent)({
110
133
  let width = ((_b = bodyRef.value) === null || _b === void 0 ? void 0 : _b.offsetWidth) || 0;
111
134
  const increment = startPosition - e.clientX;
112
135
  width += props.placement === 'right' ? increment : -increment;
136
+ width = regulateWidth(width);
113
137
  doUpdateWidth(width);
114
138
  startPosition = e.clientX;
115
139
  }
@@ -189,7 +213,7 @@ exports.default = (0, vue_1.defineComponent)({
189
213
  return this.displayDirective === 'show' || this.displayed || this.show
190
214
  ? (0, vue_1.withDirectives)(
191
215
  /* Keep the wrapper dom. Make sure the drawer has a host.
192
- Nor the detached content will disappear without transition */
216
+ Nor the detached content will disappear without transition */
193
217
  (0, vue_1.h)("div", { role: "none" },
194
218
  (0, vue_1.h)(vueuc_1.VFocusTrap, { disabled: !this.showMask || !this.trapFocus, active: this.show, autoFocus: this.autoFocus, onEsc: this.onEsc }, {
195
219
  default: () => ((0, vue_1.h)(vue_1.Transition, { name: this.transitionName, appear: this.isMounted, onAfterEnter: this.onAfterEnter, onAfterLeave: this.handleAfterLeave }, {
@@ -194,5 +194,5 @@ declare const _default: import("vue").DefineComponent<{
194
194
  }>>, {
195
195
  closable: boolean;
196
196
  nativeScrollbar: boolean;
197
- }>;
197
+ }, {}>;
198
198
  export default _default;