naive-ui 2.24.1 → 2.24.5

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 (929) hide show
  1. package/es/_internal/clear/src/Clear.d.ts +8 -10
  2. package/es/_internal/close/src/Close.d.ts +11 -10
  3. package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +10 -20
  4. package/es/_internal/focus-detector/src/FocusDetector.d.ts +4 -7
  5. package/es/_internal/icon/src/Icon.d.ts +19 -20
  6. package/es/_internal/icon-switch-transition/src/IconSwitchTransition.d.ts +1 -1
  7. package/es/_internal/icons/Add.d.ts +1 -1
  8. package/es/_internal/icons/ArrowBack.d.ts +1 -1
  9. package/es/_internal/icons/ArrowDown.d.ts +1 -1
  10. package/es/_internal/icons/Attach.d.ts +1 -1
  11. package/es/_internal/icons/Backward.d.ts +1 -1
  12. package/es/_internal/icons/Cancel.d.ts +1 -1
  13. package/es/_internal/icons/Checkmark.d.ts +1 -1
  14. package/es/_internal/icons/ChevronDown.d.ts +1 -1
  15. package/es/_internal/icons/ChevronDownFilled.d.ts +1 -1
  16. package/es/_internal/icons/ChevronLeft.d.ts +1 -1
  17. package/es/_internal/icons/ChevronRight.d.ts +1 -1
  18. package/es/_internal/icons/Clear.d.ts +1 -1
  19. package/es/_internal/icons/Close.d.ts +1 -1
  20. package/es/_internal/icons/Date.d.ts +1 -1
  21. package/es/_internal/icons/Download.d.ts +1 -1
  22. package/es/_internal/icons/Empty.d.ts +1 -1
  23. package/es/_internal/icons/Error.d.ts +1 -1
  24. package/es/_internal/icons/Eye.d.ts +1 -1
  25. package/es/_internal/icons/EyeOff.d.ts +1 -1
  26. package/es/_internal/icons/FastBackward.d.ts +1 -1
  27. package/es/_internal/icons/FastForward.d.ts +1 -1
  28. package/es/_internal/icons/File.d.ts +1 -1
  29. package/es/_internal/icons/Filter.d.ts +1 -1
  30. package/es/_internal/icons/Forward.d.ts +1 -1
  31. package/es/_internal/icons/Info.d.ts +1 -1
  32. package/es/_internal/icons/More.d.ts +1 -1
  33. package/es/_internal/icons/Photo.d.ts +1 -1
  34. package/es/_internal/icons/Remove.d.ts +1 -1
  35. package/es/_internal/icons/Retry.d.ts +1 -1
  36. package/es/_internal/icons/RotateClockwise.d.ts +1 -1
  37. package/es/_internal/icons/RotateCounterclockwise.d.ts +1 -1
  38. package/es/_internal/icons/Search.d.ts +1 -1
  39. package/es/_internal/icons/Success.d.ts +1 -1
  40. package/es/_internal/icons/Switcher.d.ts +1 -1
  41. package/es/_internal/icons/Time.d.ts +1 -1
  42. package/es/_internal/icons/To.d.ts +1 -1
  43. package/es/_internal/icons/Trash.d.ts +1 -1
  44. package/es/_internal/icons/Warning.d.ts +1 -1
  45. package/es/_internal/icons/ZoomIn.d.ts +1 -1
  46. package/es/_internal/icons/ZoomOut.d.ts +1 -1
  47. package/es/_internal/icons/replaceable.d.ts +1 -1
  48. package/es/_internal/loading/src/Loading.d.ts +26 -16
  49. package/es/_internal/menu-mask/src/MenuMask.d.ts +6 -5
  50. package/es/_internal/scrollbar/src/ScrollBar.d.ts +54 -58
  51. package/es/_internal/scrollbar/src/ScrollBar.js +90 -68
  52. package/es/_internal/select-menu/src/SelectGroupHeader.d.ts +10 -7
  53. package/es/_internal/select-menu/src/SelectMenu.d.ts +67 -63
  54. package/es/_internal/select-menu/src/SelectMenu.js +22 -21
  55. package/es/_internal/select-menu/src/SelectOption.d.ts +10 -7
  56. package/es/_internal/select-menu/src/interface.d.ts +3 -3
  57. package/es/_internal/select-menu/src/interface.js +3 -2
  58. package/es/_internal/selection/src/Selection.d.ts +67 -69
  59. package/es/_internal/selection/src/Selection.js +25 -8
  60. package/es/_internal/selection/src/styles/index.cssr.js +2 -1
  61. package/es/_internal/selection/styles/_common.d.ts +1 -0
  62. package/es/_internal/selection/styles/_common.js +1 -0
  63. package/es/_internal/selection/styles/light.d.ts +2 -0
  64. package/es/_internal/slot-machine/src/SlotMachine.d.ts +18 -12
  65. package/es/_internal/slot-machine/src/SlotMachineNumber.d.ts +18 -12
  66. package/es/_internal/suffix/src/Suffix.d.ts +19 -14
  67. package/es/_internal/suffix/src/Suffix.js +7 -2
  68. package/es/_internal/wave/src/Wave.d.ts +6 -5
  69. package/es/_mixins/use-form-item.d.ts +2 -2
  70. package/es/_mixins/use-form-item.js +2 -1
  71. package/es/_mixins/use-locale.d.ts +1 -1
  72. package/es/_mixins/use-locale.js +1 -1
  73. package/es/_utils/index.d.ts +1 -1
  74. package/es/_utils/index.js +1 -1
  75. package/es/_utils/vue/create-injection-key.d.ts +2 -0
  76. package/es/_utils/vue/create-injection-key.js +3 -0
  77. package/es/_utils/vue/index.d.ts +2 -0
  78. package/es/_utils/vue/index.js +2 -0
  79. package/es/_utils/vue/resolve-slot.d.ts +2 -0
  80. package/es/_utils/vue/resolve-slot.js +20 -0
  81. package/es/affix/src/Affix.d.ts +26 -22
  82. package/es/alert/src/Alert.d.ts +34 -27
  83. package/es/alert/src/Alert.js +2 -4
  84. package/es/anchor/src/AnchorAdapter.d.ts +52 -47
  85. package/es/anchor/src/BaseAnchor.d.ts +25 -20
  86. package/es/anchor/src/Link.d.ts +6 -9
  87. package/es/anchor/src/Link.js +6 -5
  88. package/es/auto-complete/src/AutoComplete.d.ts +52 -59
  89. package/es/avatar/src/Avatar.d.ts +27 -30
  90. package/es/avatar/src/AvatarGroup.d.ts +13 -17
  91. package/es/avatar/src/AvatarGroup.js +5 -2
  92. package/es/back-top/src/BackTop.d.ts +48 -33
  93. package/es/back-top/src/BackTop.js +2 -4
  94. package/es/badge/src/Badge.d.ts +31 -29
  95. package/es/badge/src/Badge.js +6 -5
  96. package/es/breadcrumb/src/Breadcrumb.d.ts +15 -18
  97. package/es/breadcrumb/src/Breadcrumb.js +2 -1
  98. package/es/breadcrumb/src/BreadcrumbItem.d.ts +4 -7
  99. package/es/button/src/Button.d.ts +53 -61
  100. package/es/button/src/Button.js +5 -2
  101. package/es/button/src/ButtonGroup.d.ts +10 -11
  102. package/es/button/src/ButtonGroup.js +2 -1
  103. package/es/calendar/src/Calendar.d.ts +21 -26
  104. package/es/calendar/src/Calendar.js +15 -2
  105. package/es/card/src/Card.d.ts +32 -37
  106. package/es/card/src/Card.js +6 -6
  107. package/es/carousel/src/Carousel.d.ts +74 -64
  108. package/es/carousel/src/Carousel.js +42 -45
  109. package/es/carousel/src/CarouselArrow.d.ts +1 -1
  110. package/es/carousel/src/CarouselDots.d.ts +19 -13
  111. package/es/carousel/src/CarouselItem.d.ts +2 -2
  112. package/es/carousel/src/CarouselItem.js +7 -4
  113. package/es/carousel/src/interface.d.ts +10 -3
  114. package/es/carousel/src/interface.js +2 -1
  115. package/es/carousel/src/styles/index.cssr.js +2 -2
  116. package/es/cascader/index.d.ts +1 -1
  117. package/es/cascader/src/Cascader.d.ts +105 -84
  118. package/es/cascader/src/Cascader.js +14 -26
  119. package/es/cascader/src/CascaderMenu.d.ts +34 -24
  120. package/es/cascader/src/CascaderMenu.js +2 -4
  121. package/es/cascader/src/CascaderOption.d.ts +7 -5
  122. package/es/cascader/src/CascaderSelectMenu.d.ts +26 -20
  123. package/es/cascader/src/CascaderSubmenu.d.ts +16 -9
  124. package/es/cascader/src/interface.d.ts +6 -2
  125. package/es/cascader/src/interface.js +2 -1
  126. package/es/cascader/styles/light.d.ts +1 -0
  127. package/es/checkbox/index.d.ts +1 -0
  128. package/es/checkbox/src/Checkbox.d.ts +43 -43
  129. package/es/checkbox/src/Checkbox.js +17 -5
  130. package/es/checkbox/src/CheckboxGroup.d.ts +23 -24
  131. package/es/checkbox/src/CheckboxGroup.js +2 -2
  132. package/es/checkbox/src/interface.d.ts +4 -0
  133. package/es/code/src/Code.d.ts +24 -32
  134. package/es/code/src/styles/index.cssr.js +4 -1
  135. package/es/collapse/src/Collapse.d.ts +35 -33
  136. package/es/collapse/src/Collapse.js +2 -2
  137. package/es/collapse/src/CollapseItem.d.ts +5 -9
  138. package/es/collapse/src/CollapseItem.js +8 -15
  139. package/es/collapse/src/CollapseItemContent.d.ts +11 -9
  140. package/es/collapse-transition/src/CollapseTransition.d.ts +18 -19
  141. package/es/color-picker/src/AlphaSlider.d.ts +19 -14
  142. package/es/color-picker/src/ColorInput.d.ts +34 -19
  143. package/es/color-picker/src/ColorInputUnit.d.ts +15 -11
  144. package/es/color-picker/src/ColorPicker.d.ts +60 -51
  145. package/es/color-picker/src/ColorPicker.js +10 -8
  146. package/es/color-picker/src/ColorPickerSwatches.d.ts +18 -11
  147. package/es/color-picker/src/ColorPickerTrigger.d.ts +18 -12
  148. package/es/color-picker/src/ColorPickerTrigger.js +6 -2
  149. package/es/color-picker/src/ColorPreview.d.ts +19 -11
  150. package/es/color-picker/src/HueSlider.d.ts +15 -12
  151. package/es/color-picker/src/Pallete.d.ts +23 -16
  152. package/es/color-picker/src/styles/index.cssr.js +1 -1
  153. package/es/composables/use-theme-vars.d.ts +2 -1
  154. package/es/config-provider/src/ConfigProvider.d.ts +30 -37
  155. package/es/config-provider/src/ConfigProvider.js +6 -5
  156. package/es/config-provider/src/interface.d.ts +4 -1
  157. package/es/countdown/src/Countdown.d.ts +18 -17
  158. package/es/data-table/index.d.ts +1 -1
  159. package/es/data-table/src/DataTable.d.ts +104 -104
  160. package/es/data-table/src/HeaderButton/FilterButton.d.ts +12 -7
  161. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +36 -19
  162. package/es/data-table/src/HeaderButton/RenderFilter.d.ts +14 -9
  163. package/es/data-table/src/HeaderButton/RenderSorter.d.ts +10 -7
  164. package/es/data-table/src/HeaderButton/SortButton.d.ts +6 -5
  165. package/es/data-table/src/HeaderButton/SortButton.js +6 -6
  166. package/es/data-table/src/MainTable.d.ts +1 -1
  167. package/es/data-table/src/TableParts/Body.d.ts +13 -14
  168. package/es/data-table/src/TableParts/Body.js +2 -4
  169. package/es/data-table/src/TableParts/BodyCheckbox.d.ts +14 -9
  170. package/es/data-table/src/TableParts/Cell.d.ts +865 -855
  171. package/es/data-table/src/TableParts/ExpandTrigger.d.ts +11 -9
  172. package/es/data-table/src/TableParts/Header.d.ts +8 -5
  173. package/es/data-table/src/TableParts/SelectionMenu.d.ts +6 -5
  174. package/es/data-table/src/interface.d.ts +9 -6
  175. package/es/data-table/src/interface.js +2 -1
  176. package/es/data-table/src/styles/index.cssr.js +7 -7
  177. package/es/data-table/styles/light.d.ts +1 -0
  178. package/es/date-picker/index.d.ts +1 -0
  179. package/es/date-picker/src/DatePicker.d.ts +83 -93
  180. package/es/date-picker/src/DatePicker.js +20 -64
  181. package/es/date-picker/src/interface.d.ts +6 -3
  182. package/es/date-picker/src/interface.js +2 -1
  183. package/es/date-picker/src/panel/date.d.ts +78 -34
  184. package/es/date-picker/src/panel/date.js +6 -7
  185. package/es/date-picker/src/panel/daterange.d.ts +32 -26
  186. package/es/date-picker/src/panel/daterange.js +6 -9
  187. package/es/date-picker/src/panel/datetime.d.ts +42 -30
  188. package/es/date-picker/src/panel/datetime.js +4 -5
  189. package/es/date-picker/src/panel/datetimerange.d.ts +32 -26
  190. package/es/date-picker/src/panel/datetimerange.js +5 -8
  191. package/es/date-picker/src/panel/month.d.ts +49 -32
  192. package/es/date-picker/src/panel/month.js +13 -4
  193. package/es/date-picker/src/panel/panelHeader.d.ts +2437 -0
  194. package/es/date-picker/src/panel/panelHeader.js +76 -0
  195. package/es/date-picker/src/panel/use-calendar.d.ts +17 -4
  196. package/es/date-picker/src/panel/use-calendar.js +42 -3
  197. package/es/date-picker/src/panel/use-dual-calendar.d.ts +7 -0
  198. package/es/date-picker/src/panel/use-dual-calendar.js +10 -1
  199. package/es/date-picker/src/panel/use-panel-common.d.ts +3 -0
  200. package/es/date-picker/src/panel/use-panel-common.js +7 -1
  201. package/es/date-picker/src/styles/index.cssr.js +17 -3
  202. package/es/date-picker/styles/light.d.ts +2 -0
  203. package/es/date-picker/styles/light.js +1 -1
  204. package/es/descriptions/src/Descriptions.d.ts +33 -33
  205. package/es/descriptions/src/DescriptionsItem.d.ts +9 -12
  206. package/es/dialog/src/Dialog.d.ts +32 -43
  207. package/es/dialog/src/Dialog.js +27 -20
  208. package/es/dialog/src/DialogEnvironment.d.ts +41 -46
  209. package/es/dialog/src/DialogProvider.d.ts +7 -10
  210. package/es/dialog/src/DialogProvider.js +3 -3
  211. package/es/divider/src/Divider.d.ts +14 -19
  212. package/es/drawer/src/Drawer.d.ts +89 -52
  213. package/es/drawer/src/Drawer.js +17 -6
  214. package/es/drawer/src/DrawerBodyWrapper.d.ts +40 -16
  215. package/es/drawer/src/DrawerBodyWrapper.js +11 -2
  216. package/es/drawer/src/DrawerContent.d.ts +15 -20
  217. package/es/drawer/src/interface.d.ts +3 -3
  218. package/es/drawer/src/interface.js +3 -2
  219. package/es/dropdown/src/Dropdown.d.ts +110 -101
  220. package/es/dropdown/src/Dropdown.js +2 -2
  221. package/es/dropdown/src/DropdownDivider.d.ts +6 -5
  222. package/es/dropdown/src/DropdownGroup.d.ts +14 -9
  223. package/es/dropdown/src/DropdownGroupHeader.d.ts +10 -7
  224. package/es/dropdown/src/DropdownMenu.d.ts +18 -16
  225. package/es/dropdown/src/DropdownMenu.js +2 -1
  226. package/es/dropdown/src/DropdownOption.d.ts +19 -14
  227. package/es/dropdown/src/DropdownOption.js +2 -2
  228. package/es/dropdown/src/DropdownRenderOption.d.ts +6 -5
  229. package/es/dynamic-input/src/DynamicInput.d.ts +50 -45
  230. package/es/dynamic-input/src/DynamicInput.js +2 -2
  231. package/es/dynamic-input/src/InputPreset.d.ts +16 -14
  232. package/es/dynamic-input/src/PairPreset.d.ts +23 -18
  233. package/es/dynamic-input/src/interface.d.ts +2 -2
  234. package/es/dynamic-input/src/interface.js +2 -1
  235. package/es/dynamic-tags/src/DynamicTags.d.ts +41 -41
  236. package/es/element/src/Element.d.ts +9 -12
  237. package/es/ellipsis/src/Ellipsis.d.ts +14 -19
  238. package/es/empty/src/Empty.d.ts +23 -24
  239. package/es/empty/src/Empty.js +5 -9
  240. package/es/form/src/Feedbacks.d.ts +8 -10
  241. package/es/form/src/Form.d.ts +39 -39
  242. package/es/form/src/FormItem.d.ts +36 -51
  243. package/es/form/src/FormItem.js +7 -3
  244. package/es/form/src/FormItemCol.d.ts +52 -59
  245. package/es/form/src/FormItemGridItem.d.ts +52 -65
  246. package/es/form/src/FormItemRow.d.ts +58 -65
  247. package/es/form/src/interface.d.ts +3 -3
  248. package/es/form/src/interface.js +3 -2
  249. package/es/global-style/src/GlobalStyle.d.ts +1 -1
  250. package/es/gradient-text/src/GradientText.d.ts +16 -23
  251. package/es/grid/src/Grid.d.ts +27 -22
  252. package/es/grid/src/Grid.js +2 -2
  253. package/es/grid/src/GridItem.d.ts +18 -18
  254. package/es/grid/src/GridItem.js +3 -2
  255. package/es/icon/src/Icon.d.ts +11 -18
  256. package/es/image/src/Image.d.ts +28 -41
  257. package/es/image/src/ImageGroup.d.ts +15 -19
  258. package/es/image/src/ImageGroup.js +2 -1
  259. package/es/image/src/ImagePreview.d.ts +20 -23
  260. package/es/image/src/ImagePreview.js +10 -6
  261. package/es/index.d.ts +1 -1
  262. package/es/index.js +1 -1
  263. package/es/input/src/Input.d.ts +108 -110
  264. package/es/input/src/Input.js +75 -34
  265. package/es/input/src/InputGroup.d.ts +5 -9
  266. package/es/input/src/InputGroupLabel.d.ts +16 -17
  267. package/es/input/src/InputGroupLabel.js +4 -3
  268. package/es/input/src/WordCount.d.ts +1 -1
  269. package/es/input/src/interface.d.ts +2 -2
  270. package/es/input/src/interface.js +2 -1
  271. package/es/input/src/styles/input.cssr.js +46 -62
  272. package/es/input-number/src/InputNumber.d.ts +59 -58
  273. package/es/layout/src/Layout.d.ts +90 -65
  274. package/es/layout/src/Layout.js +2 -1
  275. package/es/layout/src/LayoutContent.d.ts +33 -31
  276. package/es/layout/src/LayoutFooter.d.ts +14 -19
  277. package/es/layout/src/LayoutHeader.d.ts +17 -19
  278. package/es/layout/src/LayoutSider.d.ts +64 -61
  279. package/es/layout/src/LayoutSider.js +2 -1
  280. package/es/layout/src/ToggleBar.d.ts +7 -8
  281. package/es/layout/src/ToggleButton.d.ts +7 -8
  282. package/es/layout/src/interface.d.ts +2 -2
  283. package/es/layout/src/interface.js +2 -1
  284. package/es/layout/src/styles/layout-sider.cssr.js +15 -7
  285. package/es/legacy-grid/src/Col.d.ts +18 -11
  286. package/es/legacy-grid/src/Row.d.ts +11 -13
  287. package/es/legacy-grid/src/Row.js +2 -2
  288. package/es/list/src/List.d.ts +19 -20
  289. package/es/list/src/List.js +7 -5
  290. package/es/list/src/ListItem.d.ts +1 -1
  291. package/es/list/src/ListItem.js +3 -3
  292. package/es/loading-bar/src/LoadingBar.d.ts +1 -1
  293. package/es/loading-bar/src/LoadingBarProvider.d.ts +22 -23
  294. package/es/loading-bar/src/LoadingBarProvider.js +7 -6
  295. package/es/locales/common/esAR.d.ts +109 -0
  296. package/es/locales/common/esAR.js +110 -0
  297. package/es/locales/common/itIT.d.ts +3 -0
  298. package/es/locales/common/itIT.js +109 -0
  299. package/es/locales/date/esAR.d.ts +3 -0
  300. package/es/locales/date/esAR.js +6 -0
  301. package/es/locales/date/itIT.d.ts +3 -0
  302. package/es/locales/date/itIT.js +6 -0
  303. package/es/locales/index.d.ts +4 -0
  304. package/es/locales/index.js +4 -0
  305. package/es/log/src/Log.d.ts +48 -46
  306. package/es/log/src/Log.js +2 -2
  307. package/es/log/src/LogLine.d.ts +6 -5
  308. package/es/log/src/LogLoader.d.ts +6 -5
  309. package/es/mention/src/Mention.d.ts +55 -56
  310. package/es/menu/src/Menu.d.ts +87 -88
  311. package/es/menu/src/Menu.js +2 -2
  312. package/es/menu/src/MenuDivider.d.ts +1 -1
  313. package/es/menu/src/MenuOption.d.ts +22 -295
  314. package/es/menu/src/MenuOption.js +2 -1
  315. package/es/menu/src/MenuOptionContent.d.ts +33 -305
  316. package/es/menu/src/MenuOptionGroup.d.ts +20 -20
  317. package/es/menu/src/MenuOptionGroup.js +4 -3
  318. package/es/menu/src/Submenu.d.ts +35 -301
  319. package/es/menu/src/Submenu.js +4 -2
  320. package/es/menu/src/use-menu-child-props.d.ts +2 -1
  321. package/es/menu/src/use-menu-child.d.ts +5 -7
  322. package/es/menu/src/use-menu-child.js +0 -2
  323. package/es/message/src/Message.d.ts +15 -35
  324. package/es/message/src/MessageEnvironment.d.ts +26 -34
  325. package/es/message/src/MessageProvider.d.ts +24 -30
  326. package/es/message/src/MessageProvider.js +8 -8
  327. package/es/modal/src/BodyWrapper.d.ts +96 -72
  328. package/es/modal/src/BodyWrapper.js +12 -9
  329. package/es/modal/src/Modal.d.ts +125 -968
  330. package/es/modal/src/Modal.js +18 -6
  331. package/es/modal/src/interface.d.ts +3 -3
  332. package/es/modal/src/interface.js +3 -2
  333. package/es/notification/src/Notification.d.ts +20 -22
  334. package/es/notification/src/NotificationContainer.d.ts +10 -7
  335. package/es/notification/src/NotificationEnvironment.d.ts +32 -40
  336. package/es/notification/src/NotificationProvider.d.ts +32 -35
  337. package/es/notification/src/NotificationProvider.js +8 -8
  338. package/es/number-animation/src/NumberAnimation.d.ts +27 -15
  339. package/es/number-animation/src/NumberAnimation.js +19 -4
  340. package/es/page-header/src/PageHeader.d.ts +12 -20
  341. package/es/page-header/src/PageHeader.js +4 -5
  342. package/es/pagination/src/Pagination.d.ts +59 -59
  343. package/es/pagination/styles/light.d.ts +1 -0
  344. package/es/popconfirm/src/Popconfirm.d.ts +90 -87
  345. package/es/popconfirm/src/PopconfirmPanel.d.ts +16 -14
  346. package/es/popconfirm/src/PopconfirmPanel.js +4 -5
  347. package/es/popconfirm/src/interface.d.ts +2 -2
  348. package/es/popconfirm/src/interface.js +2 -1
  349. package/es/popover/src/Popover.d.ts +88 -79
  350. package/es/popover/src/PopoverBody.d.ts +32 -53
  351. package/es/popover/src/PopoverBody.js +16 -13
  352. package/es/popover/src/interface.d.ts +2 -2
  353. package/es/popover/src/interface.js +2 -1
  354. package/es/popselect/src/Popselect.d.ts +92 -97
  355. package/es/popselect/src/PopselectPanel.d.ts +24 -30
  356. package/es/popselect/src/interface.d.ts +2 -2
  357. package/es/popselect/src/interface.js +2 -1
  358. package/es/progress/src/Circle.d.ts +35 -28
  359. package/es/progress/src/Line.d.ts +37 -32
  360. package/es/progress/src/MultipleCircle.d.ts +38 -21
  361. package/es/progress/src/Progress.d.ts +54 -51
  362. package/es/radio/src/Radio.d.ts +30 -31
  363. package/es/radio/src/RadioButton.d.ts +24 -22
  364. package/es/radio/src/RadioGroup.d.ts +21 -27
  365. package/es/radio/src/use-radio.d.ts +2 -2
  366. package/es/radio/src/use-radio.js +2 -2
  367. package/es/rate/src/Rate.d.ts +26 -31
  368. package/es/result/src/Result.d.ts +18 -21
  369. package/es/scrollbar/src/ScrollBar.d.ts +10 -17
  370. package/es/select/index.d.ts +1 -1
  371. package/es/select/src/Select.d.ts +127 -95
  372. package/es/select/src/Select.js +25 -40
  373. package/es/select/src/interface.d.ts +4 -0
  374. package/es/select/styles/light.d.ts +1 -0
  375. package/es/skeleton/src/Skeleton.d.ts +26 -31
  376. package/es/slider/src/Slider.d.ts +49 -47
  377. package/es/slider/src/Slider.js +2 -1
  378. package/es/space/src/Space.d.ts +24 -27
  379. package/es/spin/src/Spin.d.ts +28 -27
  380. package/es/statistic/src/Statistic.d.ts +11 -19
  381. package/es/statistic/src/Statistic.js +3 -3
  382. package/es/steps/src/Step.d.ts +9 -12
  383. package/es/steps/src/Step.js +5 -7
  384. package/es/steps/src/Steps.d.ts +20 -23
  385. package/es/steps/src/Steps.js +2 -2
  386. package/es/switch/src/Switch.d.ts +45 -40
  387. package/es/table/src/Table.d.ts +26 -25
  388. package/es/table/src/Tbody.d.ts +1 -1
  389. package/es/table/src/Td.d.ts +1 -1
  390. package/es/table/src/Th.d.ts +1 -1
  391. package/es/table/src/Thead.d.ts +1 -1
  392. package/es/table/src/Tr.d.ts +1 -1
  393. package/es/tabs/src/Tab.d.ts +30 -37
  394. package/es/tabs/src/Tab.js +11 -4
  395. package/es/tabs/src/TabPane.d.ts +32 -38
  396. package/es/tabs/src/TabPane.js +14 -15
  397. package/es/tabs/src/Tabs.d.ts +37 -52
  398. package/es/tabs/src/Tabs.js +3 -3
  399. package/es/tabs/src/interface.d.ts +2 -2
  400. package/es/tabs/src/interface.js +2 -1
  401. package/es/tag/src/Tag.d.ts +42 -47
  402. package/es/tag/src/Tag.js +2 -2
  403. package/es/theme-editor/src/ThemeEditor.d.ts +1 -1
  404. package/es/theme-editor/src/ThemeEditor.js +161 -158
  405. package/es/themes/index.d.ts +1 -0
  406. package/es/themes/index.js +1 -0
  407. package/es/thing/src/Thing.d.ts +16 -23
  408. package/es/thing/src/Thing.js +20 -24
  409. package/es/time/src/Time.d.ts +18 -18
  410. package/es/time-picker/index.d.ts +1 -0
  411. package/es/time-picker/src/Panel.d.ts +75 -72
  412. package/es/time-picker/src/PanelCol.d.ts +15 -12
  413. package/es/time-picker/src/TimePicker.d.ts +99 -86
  414. package/es/time-picker/src/TimePicker.js +17 -41
  415. package/es/time-picker/src/interface.d.ts +6 -2
  416. package/es/time-picker/src/interface.js +2 -1
  417. package/es/timeline/src/Timeline.d.ts +21 -24
  418. package/es/timeline/src/Timeline.js +2 -1
  419. package/es/timeline/src/TimelineItem.d.ts +10 -14
  420. package/es/timeline/src/TimelineItem.js +4 -4
  421. package/es/tooltip/src/Tooltip.d.ts +82 -77
  422. package/es/transfer/src/Transfer.d.ts +39 -43
  423. package/es/transfer/src/TransferFilter.d.ts +17 -16
  424. package/es/transfer/src/TransferHeader.d.ts +11 -10
  425. package/es/transfer/src/TransferList.d.ts +35 -19
  426. package/es/transfer/src/TransferListItem.d.ts +18 -11
  427. package/es/transfer/src/interface.d.ts +2 -2
  428. package/es/transfer/src/interface.js +2 -1
  429. package/es/tree/src/MotionWrapper.d.ts +19 -14
  430. package/es/tree/src/Tree.d.ts +124 -135
  431. package/es/tree/src/TreeNode.d.ts +10 -7
  432. package/es/tree/src/TreeNodeCheckbox.d.ts +11 -16
  433. package/es/tree/src/TreeNodeContent.d.ts +15 -18
  434. package/es/tree/src/TreeNodeSwitcher.d.ts +10 -14
  435. package/es/tree/src/interface.d.ts +2 -2
  436. package/es/tree/src/interface.js +2 -1
  437. package/es/tree-select/src/TreeSelect.d.ts +112 -97
  438. package/es/tree-select/src/TreeSelect.js +2 -4
  439. package/es/tree-select/src/interface.d.ts +2 -2
  440. package/es/tree-select/src/interface.js +2 -1
  441. package/es/tree-select/styles/light.d.ts +1 -0
  442. package/es/typography/src/a.d.ts +8 -12
  443. package/es/typography/src/blockquote.d.ts +9 -15
  444. package/es/typography/src/create-header.d.ts +14 -19
  445. package/es/typography/src/headers.d.ts +84 -114
  446. package/es/typography/src/hr.d.ts +8 -12
  447. package/es/typography/src/li.d.ts +1 -1
  448. package/es/typography/src/ol.d.ts +9 -15
  449. package/es/typography/src/p.d.ts +9 -14
  450. package/es/typography/src/text.d.ts +24 -31
  451. package/es/typography/src/text.js +4 -3
  452. package/es/typography/src/ul.d.ts +9 -15
  453. package/es/upload/src/Upload.d.ts +85 -84
  454. package/es/upload/src/Upload.js +5 -2
  455. package/es/upload/src/UploadDragger.d.ts +1 -1
  456. package/es/upload/src/UploadFile.d.ts +14 -9
  457. package/es/upload/src/UploadFileList.d.ts +1 -1
  458. package/es/upload/src/UploadProgress.d.ts +11 -9
  459. package/es/upload/src/UploadTrigger.d.ts +3 -5
  460. package/es/upload/src/interface.d.ts +3 -2
  461. package/es/upload/src/interface.js +2 -1
  462. package/es/version.d.ts +1 -1
  463. package/es/version.js +1 -1
  464. package/lib/_internal/clear/src/Clear.d.ts +8 -10
  465. package/lib/_internal/close/src/Close.d.ts +11 -10
  466. package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +10 -20
  467. package/lib/_internal/focus-detector/src/FocusDetector.d.ts +4 -7
  468. package/lib/_internal/icon/src/Icon.d.ts +19 -20
  469. package/lib/_internal/icon-switch-transition/src/IconSwitchTransition.d.ts +1 -1
  470. package/lib/_internal/icons/Add.d.ts +1 -1
  471. package/lib/_internal/icons/ArrowBack.d.ts +1 -1
  472. package/lib/_internal/icons/ArrowDown.d.ts +1 -1
  473. package/lib/_internal/icons/Attach.d.ts +1 -1
  474. package/lib/_internal/icons/Backward.d.ts +1 -1
  475. package/lib/_internal/icons/Cancel.d.ts +1 -1
  476. package/lib/_internal/icons/Checkmark.d.ts +1 -1
  477. package/lib/_internal/icons/ChevronDown.d.ts +1 -1
  478. package/lib/_internal/icons/ChevronDownFilled.d.ts +1 -1
  479. package/lib/_internal/icons/ChevronLeft.d.ts +1 -1
  480. package/lib/_internal/icons/ChevronRight.d.ts +1 -1
  481. package/lib/_internal/icons/Clear.d.ts +1 -1
  482. package/lib/_internal/icons/Close.d.ts +1 -1
  483. package/lib/_internal/icons/Date.d.ts +1 -1
  484. package/lib/_internal/icons/Download.d.ts +1 -1
  485. package/lib/_internal/icons/Empty.d.ts +1 -1
  486. package/lib/_internal/icons/Error.d.ts +1 -1
  487. package/lib/_internal/icons/Eye.d.ts +1 -1
  488. package/lib/_internal/icons/EyeOff.d.ts +1 -1
  489. package/lib/_internal/icons/FastBackward.d.ts +1 -1
  490. package/lib/_internal/icons/FastForward.d.ts +1 -1
  491. package/lib/_internal/icons/File.d.ts +1 -1
  492. package/lib/_internal/icons/Filter.d.ts +1 -1
  493. package/lib/_internal/icons/Forward.d.ts +1 -1
  494. package/lib/_internal/icons/Info.d.ts +1 -1
  495. package/lib/_internal/icons/More.d.ts +1 -1
  496. package/lib/_internal/icons/Photo.d.ts +1 -1
  497. package/lib/_internal/icons/Remove.d.ts +1 -1
  498. package/lib/_internal/icons/Retry.d.ts +1 -1
  499. package/lib/_internal/icons/RotateClockwise.d.ts +1 -1
  500. package/lib/_internal/icons/RotateCounterclockwise.d.ts +1 -1
  501. package/lib/_internal/icons/Search.d.ts +1 -1
  502. package/lib/_internal/icons/Success.d.ts +1 -1
  503. package/lib/_internal/icons/Switcher.d.ts +1 -1
  504. package/lib/_internal/icons/Time.d.ts +1 -1
  505. package/lib/_internal/icons/To.d.ts +1 -1
  506. package/lib/_internal/icons/Trash.d.ts +1 -1
  507. package/lib/_internal/icons/Warning.d.ts +1 -1
  508. package/lib/_internal/icons/ZoomIn.d.ts +1 -1
  509. package/lib/_internal/icons/ZoomOut.d.ts +1 -1
  510. package/lib/_internal/icons/replaceable.d.ts +1 -1
  511. package/lib/_internal/loading/src/Loading.d.ts +26 -16
  512. package/lib/_internal/menu-mask/src/MenuMask.d.ts +6 -5
  513. package/lib/_internal/scrollbar/src/ScrollBar.d.ts +54 -58
  514. package/lib/_internal/scrollbar/src/ScrollBar.js +89 -67
  515. package/lib/_internal/select-menu/src/SelectGroupHeader.d.ts +10 -7
  516. package/lib/_internal/select-menu/src/SelectMenu.d.ts +67 -63
  517. package/lib/_internal/select-menu/src/SelectMenu.js +21 -20
  518. package/lib/_internal/select-menu/src/SelectOption.d.ts +10 -7
  519. package/lib/_internal/select-menu/src/interface.d.ts +3 -3
  520. package/lib/_internal/select-menu/src/interface.js +3 -2
  521. package/lib/_internal/selection/src/Selection.d.ts +67 -69
  522. package/lib/_internal/selection/src/Selection.js +25 -8
  523. package/lib/_internal/selection/src/styles/index.cssr.js +2 -1
  524. package/lib/_internal/selection/styles/_common.d.ts +1 -0
  525. package/lib/_internal/selection/styles/_common.js +1 -0
  526. package/lib/_internal/selection/styles/light.d.ts +2 -0
  527. package/lib/_internal/slot-machine/src/SlotMachine.d.ts +18 -12
  528. package/lib/_internal/slot-machine/src/SlotMachineNumber.d.ts +18 -12
  529. package/lib/_internal/suffix/src/Suffix.d.ts +19 -14
  530. package/lib/_internal/suffix/src/Suffix.js +7 -2
  531. package/lib/_internal/wave/src/Wave.d.ts +6 -5
  532. package/lib/_mixins/use-form-item.d.ts +2 -2
  533. package/lib/_mixins/use-form-item.js +2 -1
  534. package/lib/_mixins/use-locale.d.ts +1 -1
  535. package/lib/_mixins/use-locale.js +2 -2
  536. package/lib/_utils/index.d.ts +1 -1
  537. package/lib/_utils/index.js +2 -1
  538. package/lib/_utils/vue/create-injection-key.d.ts +2 -0
  539. package/lib/_utils/vue/create-injection-key.js +7 -0
  540. package/lib/_utils/vue/index.d.ts +2 -0
  541. package/lib/_utils/vue/index.js +5 -1
  542. package/lib/_utils/vue/resolve-slot.d.ts +2 -0
  543. package/lib/_utils/vue/resolve-slot.js +24 -0
  544. package/lib/affix/src/Affix.d.ts +26 -22
  545. package/lib/alert/src/Alert.d.ts +34 -27
  546. package/lib/alert/src/Alert.js +1 -3
  547. package/lib/anchor/src/AnchorAdapter.d.ts +52 -47
  548. package/lib/anchor/src/BaseAnchor.d.ts +25 -20
  549. package/lib/anchor/src/Link.d.ts +6 -9
  550. package/lib/anchor/src/Link.js +4 -3
  551. package/lib/auto-complete/src/AutoComplete.d.ts +52 -59
  552. package/lib/avatar/src/Avatar.d.ts +27 -30
  553. package/lib/avatar/src/AvatarGroup.d.ts +13 -17
  554. package/lib/avatar/src/AvatarGroup.js +5 -2
  555. package/lib/back-top/src/BackTop.d.ts +48 -33
  556. package/lib/back-top/src/BackTop.js +1 -3
  557. package/lib/badge/src/Badge.d.ts +31 -29
  558. package/lib/badge/src/Badge.js +5 -4
  559. package/lib/breadcrumb/src/Breadcrumb.d.ts +15 -18
  560. package/lib/breadcrumb/src/Breadcrumb.js +2 -1
  561. package/lib/breadcrumb/src/BreadcrumbItem.d.ts +4 -7
  562. package/lib/button/src/Button.d.ts +53 -61
  563. package/lib/button/src/Button.js +4 -1
  564. package/lib/button/src/ButtonGroup.d.ts +10 -11
  565. package/lib/button/src/ButtonGroup.js +2 -1
  566. package/lib/calendar/src/Calendar.d.ts +21 -26
  567. package/lib/calendar/src/Calendar.js +15 -2
  568. package/lib/card/src/Card.d.ts +32 -37
  569. package/lib/card/src/Card.js +5 -5
  570. package/lib/carousel/src/Carousel.d.ts +74 -64
  571. package/lib/carousel/src/Carousel.js +42 -45
  572. package/lib/carousel/src/CarouselArrow.d.ts +1 -1
  573. package/lib/carousel/src/CarouselDots.d.ts +19 -13
  574. package/lib/carousel/src/CarouselItem.d.ts +2 -2
  575. package/lib/carousel/src/CarouselItem.js +6 -3
  576. package/lib/carousel/src/interface.d.ts +10 -3
  577. package/lib/carousel/src/interface.js +2 -1
  578. package/lib/carousel/src/styles/index.cssr.js +2 -2
  579. package/lib/cascader/index.d.ts +1 -1
  580. package/lib/cascader/src/Cascader.d.ts +105 -84
  581. package/lib/cascader/src/Cascader.js +14 -26
  582. package/lib/cascader/src/CascaderMenu.d.ts +34 -24
  583. package/lib/cascader/src/CascaderMenu.js +1 -3
  584. package/lib/cascader/src/CascaderOption.d.ts +7 -5
  585. package/lib/cascader/src/CascaderSelectMenu.d.ts +26 -20
  586. package/lib/cascader/src/CascaderSubmenu.d.ts +16 -9
  587. package/lib/cascader/src/interface.d.ts +6 -2
  588. package/lib/cascader/src/interface.js +2 -1
  589. package/lib/cascader/styles/light.d.ts +1 -0
  590. package/lib/checkbox/index.d.ts +1 -0
  591. package/lib/checkbox/src/Checkbox.d.ts +43 -43
  592. package/lib/checkbox/src/Checkbox.js +16 -4
  593. package/lib/checkbox/src/CheckboxGroup.d.ts +23 -24
  594. package/lib/checkbox/src/CheckboxGroup.js +1 -1
  595. package/lib/checkbox/src/interface.d.ts +4 -0
  596. package/lib/code/src/Code.d.ts +24 -32
  597. package/lib/code/src/styles/index.cssr.js +4 -1
  598. package/lib/collapse/src/Collapse.d.ts +35 -33
  599. package/lib/collapse/src/Collapse.js +1 -1
  600. package/lib/collapse/src/CollapseItem.d.ts +5 -9
  601. package/lib/collapse/src/CollapseItem.js +7 -14
  602. package/lib/collapse/src/CollapseItemContent.d.ts +11 -9
  603. package/lib/collapse-transition/src/CollapseTransition.d.ts +18 -19
  604. package/lib/color-picker/src/AlphaSlider.d.ts +19 -14
  605. package/lib/color-picker/src/ColorInput.d.ts +34 -19
  606. package/lib/color-picker/src/ColorInputUnit.d.ts +15 -11
  607. package/lib/color-picker/src/ColorPicker.d.ts +60 -51
  608. package/lib/color-picker/src/ColorPicker.js +8 -6
  609. package/lib/color-picker/src/ColorPickerSwatches.d.ts +18 -11
  610. package/lib/color-picker/src/ColorPickerTrigger.d.ts +18 -12
  611. package/lib/color-picker/src/ColorPickerTrigger.js +6 -2
  612. package/lib/color-picker/src/ColorPreview.d.ts +19 -11
  613. package/lib/color-picker/src/HueSlider.d.ts +15 -12
  614. package/lib/color-picker/src/Pallete.d.ts +23 -16
  615. package/lib/color-picker/src/styles/index.cssr.js +1 -1
  616. package/lib/composables/use-theme-vars.d.ts +2 -1
  617. package/lib/config-provider/src/ConfigProvider.d.ts +30 -37
  618. package/lib/config-provider/src/ConfigProvider.js +4 -3
  619. package/lib/config-provider/src/interface.d.ts +4 -1
  620. package/lib/countdown/src/Countdown.d.ts +18 -17
  621. package/lib/data-table/index.d.ts +1 -1
  622. package/lib/data-table/src/DataTable.d.ts +104 -104
  623. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +12 -7
  624. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +36 -19
  625. package/lib/data-table/src/HeaderButton/RenderFilter.d.ts +14 -9
  626. package/lib/data-table/src/HeaderButton/RenderSorter.d.ts +10 -7
  627. package/lib/data-table/src/HeaderButton/SortButton.d.ts +6 -5
  628. package/lib/data-table/src/HeaderButton/SortButton.js +6 -6
  629. package/lib/data-table/src/MainTable.d.ts +1 -1
  630. package/lib/data-table/src/TableParts/Body.d.ts +13 -14
  631. package/lib/data-table/src/TableParts/Body.js +1 -3
  632. package/lib/data-table/src/TableParts/BodyCheckbox.d.ts +14 -9
  633. package/lib/data-table/src/TableParts/Cell.d.ts +865 -855
  634. package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +11 -9
  635. package/lib/data-table/src/TableParts/Header.d.ts +8 -5
  636. package/lib/data-table/src/TableParts/SelectionMenu.d.ts +6 -5
  637. package/lib/data-table/src/interface.d.ts +9 -6
  638. package/lib/data-table/src/interface.js +2 -1
  639. package/lib/data-table/src/styles/index.cssr.js +7 -7
  640. package/lib/data-table/styles/light.d.ts +1 -0
  641. package/lib/date-picker/index.d.ts +1 -0
  642. package/lib/date-picker/src/DatePicker.d.ts +83 -93
  643. package/lib/date-picker/src/DatePicker.js +18 -62
  644. package/lib/date-picker/src/interface.d.ts +6 -3
  645. package/lib/date-picker/src/interface.js +2 -1
  646. package/lib/date-picker/src/panel/date.d.ts +78 -34
  647. package/lib/date-picker/src/panel/date.js +8 -6
  648. package/lib/date-picker/src/panel/daterange.d.ts +32 -26
  649. package/lib/date-picker/src/panel/daterange.js +8 -8
  650. package/lib/date-picker/src/panel/datetime.d.ts +42 -30
  651. package/lib/date-picker/src/panel/datetime.js +6 -4
  652. package/lib/date-picker/src/panel/datetimerange.d.ts +32 -26
  653. package/lib/date-picker/src/panel/datetimerange.js +7 -7
  654. package/lib/date-picker/src/panel/month.d.ts +49 -32
  655. package/lib/date-picker/src/panel/month.js +12 -3
  656. package/lib/date-picker/src/panel/panelHeader.d.ts +2437 -0
  657. package/lib/date-picker/src/panel/panelHeader.js +81 -0
  658. package/lib/date-picker/src/panel/use-calendar.d.ts +17 -4
  659. package/lib/date-picker/src/panel/use-calendar.js +41 -2
  660. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +7 -0
  661. package/lib/date-picker/src/panel/use-dual-calendar.js +10 -1
  662. package/lib/date-picker/src/panel/use-panel-common.d.ts +3 -0
  663. package/lib/date-picker/src/panel/use-panel-common.js +7 -1
  664. package/lib/date-picker/src/styles/index.cssr.js +17 -3
  665. package/lib/date-picker/styles/light.d.ts +2 -0
  666. package/lib/date-picker/styles/light.js +1 -1
  667. package/lib/descriptions/src/Descriptions.d.ts +33 -33
  668. package/lib/descriptions/src/DescriptionsItem.d.ts +9 -12
  669. package/lib/dialog/src/Dialog.d.ts +32 -43
  670. package/lib/dialog/src/Dialog.js +26 -19
  671. package/lib/dialog/src/DialogEnvironment.d.ts +41 -46
  672. package/lib/dialog/src/DialogProvider.d.ts +7 -10
  673. package/lib/dialog/src/DialogProvider.js +2 -2
  674. package/lib/divider/src/Divider.d.ts +14 -19
  675. package/lib/drawer/src/Drawer.d.ts +89 -52
  676. package/lib/drawer/src/Drawer.js +17 -6
  677. package/lib/drawer/src/DrawerBodyWrapper.d.ts +40 -16
  678. package/lib/drawer/src/DrawerBodyWrapper.js +11 -2
  679. package/lib/drawer/src/DrawerContent.d.ts +15 -20
  680. package/lib/drawer/src/interface.d.ts +3 -3
  681. package/lib/drawer/src/interface.js +3 -2
  682. package/lib/dropdown/src/Dropdown.d.ts +110 -101
  683. package/lib/dropdown/src/Dropdown.js +1 -1
  684. package/lib/dropdown/src/DropdownDivider.d.ts +6 -5
  685. package/lib/dropdown/src/DropdownGroup.d.ts +14 -9
  686. package/lib/dropdown/src/DropdownGroupHeader.d.ts +10 -7
  687. package/lib/dropdown/src/DropdownMenu.d.ts +18 -16
  688. package/lib/dropdown/src/DropdownMenu.js +2 -1
  689. package/lib/dropdown/src/DropdownOption.d.ts +19 -14
  690. package/lib/dropdown/src/DropdownOption.js +1 -1
  691. package/lib/dropdown/src/DropdownRenderOption.d.ts +6 -5
  692. package/lib/dynamic-input/src/DynamicInput.d.ts +50 -45
  693. package/lib/dynamic-input/src/DynamicInput.js +1 -1
  694. package/lib/dynamic-input/src/InputPreset.d.ts +16 -14
  695. package/lib/dynamic-input/src/PairPreset.d.ts +23 -18
  696. package/lib/dynamic-input/src/interface.d.ts +2 -2
  697. package/lib/dynamic-input/src/interface.js +2 -1
  698. package/lib/dynamic-tags/src/DynamicTags.d.ts +41 -41
  699. package/lib/element/src/Element.d.ts +9 -12
  700. package/lib/ellipsis/src/Ellipsis.d.ts +14 -19
  701. package/lib/empty/src/Empty.d.ts +23 -24
  702. package/lib/empty/src/Empty.js +4 -8
  703. package/lib/form/src/Feedbacks.d.ts +8 -10
  704. package/lib/form/src/Form.d.ts +39 -39
  705. package/lib/form/src/FormItem.d.ts +36 -51
  706. package/lib/form/src/FormItem.js +6 -2
  707. package/lib/form/src/FormItemCol.d.ts +52 -59
  708. package/lib/form/src/FormItemGridItem.d.ts +52 -65
  709. package/lib/form/src/FormItemRow.d.ts +58 -65
  710. package/lib/form/src/interface.d.ts +3 -3
  711. package/lib/form/src/interface.js +3 -2
  712. package/lib/global-style/src/GlobalStyle.d.ts +1 -1
  713. package/lib/gradient-text/src/GradientText.d.ts +16 -23
  714. package/lib/grid/src/Grid.d.ts +27 -22
  715. package/lib/grid/src/Grid.js +1 -1
  716. package/lib/grid/src/GridItem.d.ts +18 -18
  717. package/lib/grid/src/GridItem.js +2 -1
  718. package/lib/icon/src/Icon.d.ts +11 -18
  719. package/lib/image/src/Image.d.ts +28 -41
  720. package/lib/image/src/ImageGroup.d.ts +15 -19
  721. package/lib/image/src/ImageGroup.js +2 -1
  722. package/lib/image/src/ImagePreview.d.ts +20 -23
  723. package/lib/image/src/ImagePreview.js +9 -5
  724. package/lib/index.d.ts +1 -1
  725. package/lib/index.js +2 -1
  726. package/lib/input/src/Input.d.ts +108 -110
  727. package/lib/input/src/Input.js +74 -33
  728. package/lib/input/src/InputGroup.d.ts +5 -9
  729. package/lib/input/src/InputGroupLabel.d.ts +16 -17
  730. package/lib/input/src/InputGroupLabel.js +3 -2
  731. package/lib/input/src/WordCount.d.ts +1 -1
  732. package/lib/input/src/interface.d.ts +2 -2
  733. package/lib/input/src/interface.js +2 -1
  734. package/lib/input/src/styles/input.cssr.js +46 -62
  735. package/lib/input-number/src/InputNumber.d.ts +59 -58
  736. package/lib/layout/src/Layout.d.ts +90 -65
  737. package/lib/layout/src/Layout.js +2 -1
  738. package/lib/layout/src/LayoutContent.d.ts +33 -31
  739. package/lib/layout/src/LayoutFooter.d.ts +14 -19
  740. package/lib/layout/src/LayoutHeader.d.ts +17 -19
  741. package/lib/layout/src/LayoutSider.d.ts +64 -61
  742. package/lib/layout/src/LayoutSider.js +2 -1
  743. package/lib/layout/src/ToggleBar.d.ts +7 -8
  744. package/lib/layout/src/ToggleButton.d.ts +7 -8
  745. package/lib/layout/src/interface.d.ts +2 -2
  746. package/lib/layout/src/interface.js +2 -1
  747. package/lib/layout/src/styles/layout-sider.cssr.js +15 -7
  748. package/lib/legacy-grid/src/Col.d.ts +18 -11
  749. package/lib/legacy-grid/src/Row.d.ts +11 -13
  750. package/lib/legacy-grid/src/Row.js +1 -1
  751. package/lib/list/src/List.d.ts +19 -20
  752. package/lib/list/src/List.js +6 -4
  753. package/lib/list/src/ListItem.d.ts +1 -1
  754. package/lib/list/src/ListItem.js +2 -2
  755. package/lib/loading-bar/src/LoadingBar.d.ts +1 -1
  756. package/lib/loading-bar/src/LoadingBarProvider.d.ts +22 -23
  757. package/lib/loading-bar/src/LoadingBarProvider.js +6 -5
  758. package/lib/locales/common/esAR.d.ts +109 -0
  759. package/lib/locales/common/esAR.js +112 -0
  760. package/lib/locales/common/itIT.d.ts +3 -0
  761. package/lib/locales/common/itIT.js +111 -0
  762. package/lib/locales/date/esAR.d.ts +3 -0
  763. package/lib/locales/date/esAR.js +11 -0
  764. package/lib/locales/date/itIT.d.ts +3 -0
  765. package/lib/locales/date/itIT.js +11 -0
  766. package/lib/locales/index.d.ts +4 -0
  767. package/lib/locales/index.js +9 -1
  768. package/lib/log/src/Log.d.ts +48 -46
  769. package/lib/log/src/Log.js +1 -1
  770. package/lib/log/src/LogLine.d.ts +6 -5
  771. package/lib/log/src/LogLoader.d.ts +6 -5
  772. package/lib/mention/src/Mention.d.ts +55 -56
  773. package/lib/menu/src/Menu.d.ts +87 -88
  774. package/lib/menu/src/Menu.js +1 -1
  775. package/lib/menu/src/MenuDivider.d.ts +1 -1
  776. package/lib/menu/src/MenuOption.d.ts +22 -295
  777. package/lib/menu/src/MenuOption.js +2 -1
  778. package/lib/menu/src/MenuOptionContent.d.ts +33 -305
  779. package/lib/menu/src/MenuOptionGroup.d.ts +20 -20
  780. package/lib/menu/src/MenuOptionGroup.js +3 -2
  781. package/lib/menu/src/Submenu.d.ts +35 -301
  782. package/lib/menu/src/Submenu.js +4 -2
  783. package/lib/menu/src/use-menu-child-props.d.ts +2 -1
  784. package/lib/menu/src/use-menu-child.d.ts +5 -7
  785. package/lib/menu/src/use-menu-child.js +1 -3
  786. package/lib/message/src/Message.d.ts +15 -35
  787. package/lib/message/src/MessageEnvironment.d.ts +26 -34
  788. package/lib/message/src/MessageProvider.d.ts +24 -30
  789. package/lib/message/src/MessageProvider.js +6 -6
  790. package/lib/modal/src/BodyWrapper.d.ts +96 -72
  791. package/lib/modal/src/BodyWrapper.js +12 -9
  792. package/lib/modal/src/Modal.d.ts +125 -968
  793. package/lib/modal/src/Modal.js +18 -6
  794. package/lib/modal/src/interface.d.ts +3 -3
  795. package/lib/modal/src/interface.js +3 -2
  796. package/lib/notification/src/Notification.d.ts +20 -22
  797. package/lib/notification/src/NotificationContainer.d.ts +10 -7
  798. package/lib/notification/src/NotificationEnvironment.d.ts +32 -40
  799. package/lib/notification/src/NotificationProvider.d.ts +32 -35
  800. package/lib/notification/src/NotificationProvider.js +6 -6
  801. package/lib/number-animation/src/NumberAnimation.d.ts +27 -15
  802. package/lib/number-animation/src/NumberAnimation.js +19 -4
  803. package/lib/page-header/src/PageHeader.d.ts +12 -20
  804. package/lib/page-header/src/PageHeader.js +4 -5
  805. package/lib/pagination/src/Pagination.d.ts +59 -59
  806. package/lib/pagination/styles/light.d.ts +1 -0
  807. package/lib/popconfirm/src/Popconfirm.d.ts +90 -87
  808. package/lib/popconfirm/src/PopconfirmPanel.d.ts +16 -14
  809. package/lib/popconfirm/src/PopconfirmPanel.js +3 -4
  810. package/lib/popconfirm/src/interface.d.ts +2 -2
  811. package/lib/popconfirm/src/interface.js +2 -1
  812. package/lib/popover/src/Popover.d.ts +88 -79
  813. package/lib/popover/src/PopoverBody.d.ts +32 -53
  814. package/lib/popover/src/PopoverBody.js +15 -12
  815. package/lib/popover/src/interface.d.ts +2 -2
  816. package/lib/popover/src/interface.js +2 -1
  817. package/lib/popselect/src/Popselect.d.ts +92 -97
  818. package/lib/popselect/src/PopselectPanel.d.ts +24 -30
  819. package/lib/popselect/src/interface.d.ts +2 -2
  820. package/lib/popselect/src/interface.js +2 -1
  821. package/lib/progress/src/Circle.d.ts +35 -28
  822. package/lib/progress/src/Line.d.ts +37 -32
  823. package/lib/progress/src/MultipleCircle.d.ts +38 -21
  824. package/lib/progress/src/Progress.d.ts +54 -51
  825. package/lib/radio/src/Radio.d.ts +30 -31
  826. package/lib/radio/src/RadioButton.d.ts +24 -22
  827. package/lib/radio/src/RadioGroup.d.ts +21 -27
  828. package/lib/radio/src/use-radio.d.ts +2 -2
  829. package/lib/radio/src/use-radio.js +1 -1
  830. package/lib/rate/src/Rate.d.ts +26 -31
  831. package/lib/result/src/Result.d.ts +18 -21
  832. package/lib/scrollbar/src/ScrollBar.d.ts +10 -17
  833. package/lib/select/index.d.ts +1 -1
  834. package/lib/select/src/Select.d.ts +127 -95
  835. package/lib/select/src/Select.js +25 -40
  836. package/lib/select/src/interface.d.ts +4 -0
  837. package/lib/select/styles/light.d.ts +1 -0
  838. package/lib/skeleton/src/Skeleton.d.ts +26 -31
  839. package/lib/slider/src/Slider.d.ts +49 -47
  840. package/lib/slider/src/Slider.js +2 -1
  841. package/lib/space/src/Space.d.ts +24 -27
  842. package/lib/spin/src/Spin.d.ts +28 -27
  843. package/lib/statistic/src/Statistic.d.ts +11 -19
  844. package/lib/statistic/src/Statistic.js +2 -2
  845. package/lib/steps/src/Step.d.ts +9 -12
  846. package/lib/steps/src/Step.js +4 -6
  847. package/lib/steps/src/Steps.d.ts +20 -23
  848. package/lib/steps/src/Steps.js +1 -1
  849. package/lib/switch/src/Switch.d.ts +45 -40
  850. package/lib/table/src/Table.d.ts +26 -25
  851. package/lib/table/src/Tbody.d.ts +1 -1
  852. package/lib/table/src/Td.d.ts +1 -1
  853. package/lib/table/src/Th.d.ts +1 -1
  854. package/lib/table/src/Thead.d.ts +1 -1
  855. package/lib/table/src/Tr.d.ts +1 -1
  856. package/lib/tabs/src/Tab.d.ts +30 -37
  857. package/lib/tabs/src/Tab.js +10 -3
  858. package/lib/tabs/src/TabPane.d.ts +32 -38
  859. package/lib/tabs/src/TabPane.js +12 -13
  860. package/lib/tabs/src/Tabs.d.ts +37 -52
  861. package/lib/tabs/src/Tabs.js +3 -3
  862. package/lib/tabs/src/interface.d.ts +2 -2
  863. package/lib/tabs/src/interface.js +2 -1
  864. package/lib/tag/src/Tag.d.ts +42 -47
  865. package/lib/tag/src/Tag.js +1 -1
  866. package/lib/theme-editor/src/ThemeEditor.d.ts +1 -1
  867. package/lib/theme-editor/src/ThemeEditor.js +160 -157
  868. package/lib/themes/index.d.ts +1 -0
  869. package/lib/themes/index.js +3 -1
  870. package/lib/thing/src/Thing.d.ts +16 -23
  871. package/lib/thing/src/Thing.js +19 -23
  872. package/lib/time/src/Time.d.ts +18 -18
  873. package/lib/time-picker/index.d.ts +1 -0
  874. package/lib/time-picker/src/Panel.d.ts +75 -72
  875. package/lib/time-picker/src/PanelCol.d.ts +15 -12
  876. package/lib/time-picker/src/TimePicker.d.ts +99 -86
  877. package/lib/time-picker/src/TimePicker.js +17 -41
  878. package/lib/time-picker/src/interface.d.ts +6 -2
  879. package/lib/time-picker/src/interface.js +2 -1
  880. package/lib/timeline/src/Timeline.d.ts +21 -24
  881. package/lib/timeline/src/Timeline.js +2 -1
  882. package/lib/timeline/src/TimelineItem.d.ts +10 -14
  883. package/lib/timeline/src/TimelineItem.js +3 -3
  884. package/lib/tooltip/src/Tooltip.d.ts +82 -77
  885. package/lib/transfer/src/Transfer.d.ts +39 -43
  886. package/lib/transfer/src/TransferFilter.d.ts +17 -16
  887. package/lib/transfer/src/TransferHeader.d.ts +11 -10
  888. package/lib/transfer/src/TransferList.d.ts +35 -19
  889. package/lib/transfer/src/TransferListItem.d.ts +18 -11
  890. package/lib/transfer/src/interface.d.ts +2 -2
  891. package/lib/transfer/src/interface.js +2 -1
  892. package/lib/tree/src/MotionWrapper.d.ts +19 -14
  893. package/lib/tree/src/Tree.d.ts +124 -135
  894. package/lib/tree/src/TreeNode.d.ts +10 -7
  895. package/lib/tree/src/TreeNodeCheckbox.d.ts +11 -16
  896. package/lib/tree/src/TreeNodeContent.d.ts +15 -18
  897. package/lib/tree/src/TreeNodeSwitcher.d.ts +10 -14
  898. package/lib/tree/src/interface.d.ts +2 -2
  899. package/lib/tree/src/interface.js +2 -1
  900. package/lib/tree-select/src/TreeSelect.d.ts +112 -97
  901. package/lib/tree-select/src/TreeSelect.js +1 -3
  902. package/lib/tree-select/src/interface.d.ts +2 -2
  903. package/lib/tree-select/src/interface.js +2 -1
  904. package/lib/tree-select/styles/light.d.ts +1 -0
  905. package/lib/typography/src/a.d.ts +8 -12
  906. package/lib/typography/src/blockquote.d.ts +9 -15
  907. package/lib/typography/src/create-header.d.ts +14 -19
  908. package/lib/typography/src/headers.d.ts +84 -114
  909. package/lib/typography/src/hr.d.ts +8 -12
  910. package/lib/typography/src/li.d.ts +1 -1
  911. package/lib/typography/src/ol.d.ts +9 -15
  912. package/lib/typography/src/p.d.ts +9 -14
  913. package/lib/typography/src/text.d.ts +24 -31
  914. package/lib/typography/src/text.js +3 -2
  915. package/lib/typography/src/ul.d.ts +9 -15
  916. package/lib/upload/src/Upload.d.ts +85 -84
  917. package/lib/upload/src/Upload.js +5 -2
  918. package/lib/upload/src/UploadDragger.d.ts +1 -1
  919. package/lib/upload/src/UploadFile.d.ts +14 -9
  920. package/lib/upload/src/UploadFileList.d.ts +1 -1
  921. package/lib/upload/src/UploadProgress.d.ts +11 -9
  922. package/lib/upload/src/UploadTrigger.d.ts +3 -5
  923. package/lib/upload/src/interface.d.ts +3 -2
  924. package/lib/upload/src/interface.js +2 -1
  925. package/lib/version.d.ts +1 -1
  926. package/lib/version.js +1 -1
  927. package/package.json +9 -8
  928. package/volar.d.ts +144 -0
  929. package/web-types.json +134 -18
@@ -113,6 +113,7 @@ declare const _default: import("vue").DefineComponent<{
113
113
  show: import("vue").Ref<boolean>;
114
114
  appear: Readonly<import("vue").Ref<boolean>>;
115
115
  displayed: import("vue").Ref<boolean>;
116
+ handleWheel(e: WheelEvent): void;
116
117
  handlePreviewMousedown: (e: MouseEvent) => void;
117
118
  handlePreviewDblclick: () => void;
118
119
  syncTransformOrigin: () => void;
@@ -132,21 +133,19 @@ declare const _default: import("vue").DefineComponent<{
132
133
  '--n-toolbar-border-radius': string;
133
134
  '--n-toolbar-box-shadow': string;
134
135
  }>;
135
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
136
- onNext?: unknown;
137
- onPrev?: unknown;
138
- clsPrefix?: unknown;
139
- showToolbar?: unknown;
140
- showToolbarTooltip?: unknown;
141
- theme?: unknown;
142
- themeOverrides?: unknown;
143
- builtinThemeOverrides?: unknown;
144
- } & {
145
- clsPrefix: string;
146
- showToolbar: boolean;
147
- showToolbarTooltip: boolean;
148
- } & {
149
- theme?: import("../../_mixins").Theme<"Image", {
136
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
137
+ onNext: PropType<() => void>;
138
+ onPrev: PropType<() => void>;
139
+ clsPrefix: {
140
+ type: StringConstructor;
141
+ required: true;
142
+ };
143
+ showToolbar: {
144
+ type: BooleanConstructor;
145
+ default: boolean;
146
+ };
147
+ showToolbarTooltip: BooleanConstructor;
148
+ theme: PropType<import("../../_mixins").Theme<"Image", {
150
149
  toolbarIconColor: string;
151
150
  toolbarColor: string;
152
151
  toolbarBoxShadow: string;
@@ -174,8 +173,8 @@ declare const _default: import("vue").DefineComponent<{
174
173
  padding: string;
175
174
  }, any>;
176
175
  }>;
177
- }> | undefined;
178
- themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
176
+ }>>;
177
+ themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
179
178
  toolbarIconColor: string;
180
179
  toolbarColor: string;
181
180
  toolbarBoxShadow: string;
@@ -203,8 +202,8 @@ declare const _default: import("vue").DefineComponent<{
203
202
  padding: string;
204
203
  }, any>;
205
204
  }>;
206
- }>> | undefined;
207
- builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
205
+ }>>>;
206
+ builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
208
207
  toolbarIconColor: string;
209
208
  toolbarColor: string;
210
209
  toolbarBoxShadow: string;
@@ -232,10 +231,8 @@ declare const _default: import("vue").DefineComponent<{
232
231
  padding: string;
233
232
  }, any>;
234
233
  }>;
235
- }>> | undefined;
236
- onNext?: (() => void) | undefined;
237
- onPrev?: (() => void) | undefined;
238
- }>, {
234
+ }>>>;
235
+ }>>, {
239
236
  showToolbar: boolean;
240
237
  showToolbarTooltip: boolean;
241
238
  }>;
@@ -12,11 +12,11 @@ const seemly_1 = require("seemly");
12
12
  const icons_1 = require("../../_internal/icons");
13
13
  const _mixins_1 = require("../../_mixins");
14
14
  const _internal_1 = require("../../_internal");
15
+ const tooltip_1 = require("../../tooltip");
15
16
  const styles_1 = require("../styles");
16
17
  const icons_2 = require("./icons");
17
18
  const interface_1 = require("./interface");
18
19
  const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
19
- const tooltip_1 = require("../../tooltip");
20
20
  exports.default = (0, vue_1.defineComponent)({
21
21
  name: 'ImagePreview',
22
22
  props: Object.assign(Object.assign({}, interface_1.imagePreviewSharedProps), { onNext: Function, onPrev: Function, clsPrefix: {
@@ -258,7 +258,10 @@ exports.default = (0, vue_1.defineComponent)({
258
258
  }
259
259
  }
260
260
  return Object.assign({ previewRef,
261
- previewWrapperRef, previewSrc: previewSrcRef, show: showRef, appear: (0, vooks_1.useIsMounted)(), displayed: displayedRef, handlePreviewMousedown,
261
+ previewWrapperRef, previewSrc: previewSrcRef, show: showRef, appear: (0, vooks_1.useIsMounted)(), displayed: displayedRef, handleWheel(e) {
262
+ e.preventDefault();
263
+ },
264
+ handlePreviewMousedown,
262
265
  handlePreviewDblclick,
263
266
  syncTransformOrigin, handleAfterLeave: () => {
264
267
  rotate = 0;
@@ -284,12 +287,13 @@ exports.default = (0, vue_1.defineComponent)({
284
287
  }) }, exposedMethods);
285
288
  },
286
289
  render() {
290
+ var _a, _b;
287
291
  const { clsPrefix } = this;
288
- return ((0, vue_1.h)(vue_1.Fragment, null,
289
- (0, vue_1.renderSlot)(this.$slots, 'default'),
292
+ return ((0, vue_1.h)(vue_1.Fragment, null, (_b = (_a = this.$slots).default) === null || _b === void 0 ? void 0 :
293
+ _b.call(_a),
290
294
  (0, vue_1.h)(vueuc_1.LazyTeleport, { show: this.show }, {
291
295
  default: () => this.show || this.displayed
292
- ? (0, vue_1.withDirectives)((0, vue_1.h)("div", { class: `${clsPrefix}-image-preview-container`, style: this.cssVars },
296
+ ? (0, vue_1.withDirectives)((0, vue_1.h)("div", { class: `${clsPrefix}-image-preview-container`, style: this.cssVars, onWheel: this.handleWheel },
293
297
  (0, vue_1.h)(vue_1.Transition, { name: "fade-in-transition", appear: this.appear }, {
294
298
  default: () => this.show ? ((0, vue_1.h)("div", { class: `${clsPrefix}-image-preview-overlay`, onClick: this.toggleShow })) : null
295
299
  }),
package/lib/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export * from './locales';
5
5
  export * from './components';
6
6
  export * from './composables';
7
7
  export * from './styles';
8
- export { darkTheme, createTheme } from './themes';
8
+ export { darkTheme, lightTheme, createTheme } from './themes';
9
9
  export { c, cE, cM, cB, cNotM } from './_utils/cssr';
10
10
  export { default as version } from './version';
11
11
  export { NThemeEditor } from './theme-editor';
package/lib/index.js CHANGED
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  return (mod && mod.__esModule) ? mod : { "default": mod };
14
14
  };
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.NThemeEditor = exports.version = exports.cNotM = exports.cB = exports.cM = exports.cE = exports.c = exports.createTheme = exports.darkTheme = exports.create = exports.useOsTheme = exports.default = void 0;
16
+ exports.NThemeEditor = exports.version = exports.cNotM = exports.cB = exports.cM = exports.cE = exports.c = exports.createTheme = exports.lightTheme = exports.darkTheme = exports.create = exports.useOsTheme = exports.default = void 0;
17
17
  var preset_1 = require("./preset");
18
18
  Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(preset_1).default; } });
19
19
  var vooks_1 = require("vooks");
@@ -28,6 +28,7 @@ __exportStar(require("./styles"), exports);
28
28
  // composed global theme, createTheme from component themes util
29
29
  var themes_1 = require("./themes");
30
30
  Object.defineProperty(exports, "darkTheme", { enumerable: true, get: function () { return themes_1.darkTheme; } });
31
+ Object.defineProperty(exports, "lightTheme", { enumerable: true, get: function () { return themes_1.lightTheme; } });
31
32
  Object.defineProperty(exports, "createTheme", { enumerable: true, get: function () { return themes_1.createTheme; } });
32
33
  var cssr_1 = require("./_utils/cssr");
33
34
  Object.defineProperty(exports, "c", { enumerable: true, get: function () { return cssr_1.c; } });
@@ -1,7 +1,7 @@
1
1
  import { PropType, InputHTMLAttributes, TextareaHTMLAttributes } from 'vue';
2
2
  import { ExtractPublicPropTypes } from '../../_utils';
3
3
  import type { MaybeArray } from '../../_utils';
4
- import { OnUpdateValue, Size } from './interface';
4
+ import type { OnUpdateValue, Size } from './interface';
5
5
  declare const inputProps: {
6
6
  bordered: {
7
7
  type: PropType<boolean | undefined>;
@@ -543,6 +543,16 @@ declare const _default: import("vue").DefineComponent<{
543
543
  inputEl2Ref: import("vue").Ref<HTMLInputElement | null>;
544
544
  textareaElRef: import("vue").Ref<HTMLTextAreaElement | null>;
545
545
  textareaMirrorElRef: import("vue").Ref<HTMLElement | null>;
546
+ textareaScrollbarInstRef: import("vue").Ref<{
547
+ containerRef: HTMLElement | null;
548
+ contentRef: HTMLElement | null;
549
+ containerScrollTop: number;
550
+ syncUnifiedContainer: () => void;
551
+ scrollTo: import("../../_internal/scrollbar/src/ScrollBar").ScrollTo;
552
+ sync: () => void;
553
+ handleMouseEnterWrapper: () => void;
554
+ handleMouseLeaveWrapper: () => void;
555
+ } | null>;
546
556
  uncontrolledValue: import("vue").Ref<string | [string, string] | null>;
547
557
  mergedValue: import("vue").ComputedRef<string | [string, string] | null>;
548
558
  passwordVisible: import("vue").Ref<boolean>;
@@ -561,6 +571,10 @@ declare const _default: import("vue").DefineComponent<{
561
571
  mergedClsPrefix: import("vue").ComputedRef<string>;
562
572
  mergedBordered: import("vue").ComputedRef<boolean>;
563
573
  mergedShowPasswordOn: import("vue").ComputedRef<"click" | "mousedown" | undefined>;
574
+ placeholderStyle: import("vue").Ref<{
575
+ top: string;
576
+ }>;
577
+ handleTextAreaScroll: (e: Event) => void;
564
578
  handleCompositionStart: () => void;
565
579
  handleCompositionEnd: (e: CompositionEvent) => void;
566
580
  handleInput: (e: InputEvent | CompositionEvent | Event, index?: 0 | 1, event?: string) => void;
@@ -578,6 +592,7 @@ declare const _default: import("vue").DefineComponent<{
578
592
  handlePasswordToggleMousedown: (e: MouseEvent) => void;
579
593
  handleWrapperKeyDown: (e: KeyboardEvent) => void;
580
594
  handleTextAreaMirrorResize: () => void;
595
+ getTextareaScrollContainer: () => HTMLTextAreaElement | null;
581
596
  mergedTheme: import("vue").ComputedRef<{
582
597
  common: {
583
598
  baseColor: string;
@@ -802,97 +817,93 @@ declare const _default: import("vue").DefineComponent<{
802
817
  select: () => void;
803
818
  activate: () => void;
804
819
  deactivate: () => void;
805
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
806
- bordered?: unknown;
807
- type?: unknown;
808
- placeholder?: unknown;
809
- defaultValue?: unknown;
810
- value?: unknown;
811
- disabled?: unknown;
812
- size?: unknown;
813
- rows?: unknown;
814
- round?: unknown;
815
- minlength?: unknown;
816
- maxlength?: unknown;
817
- clearable?: unknown;
818
- autosize?: unknown;
819
- pair?: unknown;
820
- separator?: unknown;
821
- readonly?: unknown;
822
- passivelyActivated?: unknown;
823
- showPasswordOn?: unknown;
824
- stateful?: unknown;
825
- autofocus?: unknown;
826
- inputProps?: unknown;
827
- resizable?: unknown;
828
- showCount?: unknown;
829
- loading?: unknown;
830
- onMousedown?: unknown;
831
- onKeydown?: unknown;
832
- onKeyup?: unknown;
833
- onInput?: unknown;
834
- onFocus?: unknown;
835
- onBlur?: unknown;
836
- onClick?: unknown;
837
- onChange?: unknown;
838
- onClear?: unknown;
839
- 'onUpdate:value'?: unknown;
840
- onUpdateValue?: unknown;
841
- textDecoration?: unknown;
842
- attrSize?: unknown;
843
- onInputBlur?: unknown;
844
- onInputFocus?: unknown;
845
- onDeactivate?: unknown;
846
- onActivate?: unknown;
847
- onWrapperFocus?: unknown;
848
- onWrapperBlur?: unknown;
849
- internalDeactivateOnEnter?: unknown;
850
- internalForceFocus?: unknown;
851
- internalLoadingBeforeSuffix?: unknown;
852
- showPasswordToggle?: unknown;
853
- theme?: unknown;
854
- themeOverrides?: unknown;
855
- builtinThemeOverrides?: unknown;
856
- } & {
857
- type: "textarea" | "text" | "password";
858
- readonly: string | boolean;
859
- round: boolean;
860
- autofocus: boolean;
861
- autosize: boolean | {
862
- minRows?: number | undefined;
863
- maxRows?: number | undefined;
820
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
821
+ bordered: {
822
+ type: PropType<boolean | undefined>;
823
+ default: undefined;
864
824
  };
865
- clearable: boolean;
866
- defaultValue: string | [string, string] | null;
867
- resizable: boolean;
868
- pair: boolean;
869
- rows: string | number;
870
- passivelyActivated: boolean;
871
- stateful: boolean;
872
- showCount: boolean;
873
- attrSize: number;
874
- internalDeactivateOnEnter: boolean;
875
- internalForceFocus: boolean;
876
- internalLoadingBeforeSuffix: boolean;
877
- showPasswordToggle: boolean;
878
- } & {
879
- value?: string | [string, string] | null | undefined;
880
- size?: Size | undefined;
881
- separator?: string | undefined;
882
- disabled?: boolean | undefined;
883
- textDecoration?: string | [string, string] | undefined;
884
- onFocus?: MaybeArray<(e: FocusEvent) => void> | undefined;
885
- onBlur?: MaybeArray<(e: FocusEvent) => void> | undefined;
886
- onChange?: OnUpdateValue | undefined;
887
- onInput?: OnUpdateValue | undefined;
888
- onKeydown?: ((e: KeyboardEvent) => void) | undefined;
889
- onKeyup?: ((e: KeyboardEvent) => void) | undefined;
890
- onClick?: MaybeArray<(e: MouseEvent) => void> | undefined;
891
- onMousedown?: ((e: MouseEvent) => void) | undefined;
892
- placeholder?: string | [string, string] | undefined;
893
- maxlength?: string | number | undefined;
894
- minlength?: string | number | undefined;
895
- theme?: import("../../_mixins").Theme<"Input", {
825
+ type: {
826
+ type: PropType<"textarea" | "text" | "password">;
827
+ default: string;
828
+ };
829
+ placeholder: PropType<string | [string, string]>;
830
+ defaultValue: {
831
+ type: PropType<string | [string, string] | null>;
832
+ default: null;
833
+ };
834
+ value: PropType<string | [string, string] | null>;
835
+ disabled: {
836
+ type: PropType<boolean | undefined>;
837
+ default: undefined;
838
+ };
839
+ size: PropType<Size>;
840
+ rows: {
841
+ type: PropType<string | number>;
842
+ default: number;
843
+ };
844
+ round: BooleanConstructor;
845
+ minlength: PropType<string | number>;
846
+ maxlength: PropType<string | number>;
847
+ clearable: BooleanConstructor;
848
+ autosize: {
849
+ type: PropType<boolean | {
850
+ minRows?: number | undefined;
851
+ maxRows?: number | undefined;
852
+ }>;
853
+ default: boolean;
854
+ };
855
+ pair: BooleanConstructor;
856
+ separator: StringConstructor;
857
+ readonly: {
858
+ type: (BooleanConstructor | StringConstructor)[];
859
+ default: boolean;
860
+ };
861
+ passivelyActivated: BooleanConstructor;
862
+ showPasswordOn: PropType<"click" | "mousedown">;
863
+ stateful: {
864
+ type: BooleanConstructor;
865
+ default: boolean;
866
+ };
867
+ autofocus: BooleanConstructor;
868
+ inputProps: PropType<InputHTMLAttributes | TextareaHTMLAttributes>;
869
+ resizable: {
870
+ type: BooleanConstructor;
871
+ default: boolean;
872
+ };
873
+ showCount: BooleanConstructor;
874
+ loading: {
875
+ type: BooleanConstructor;
876
+ default: undefined;
877
+ };
878
+ onMousedown: PropType<(e: MouseEvent) => void>;
879
+ onKeydown: PropType<(e: KeyboardEvent) => void>;
880
+ onKeyup: PropType<(e: KeyboardEvent) => void>;
881
+ onInput: PropType<OnUpdateValue>;
882
+ onFocus: PropType<MaybeArray<(e: FocusEvent) => void>>;
883
+ onBlur: PropType<MaybeArray<(e: FocusEvent) => void>>;
884
+ onClick: PropType<MaybeArray<(e: MouseEvent) => void>>;
885
+ onChange: PropType<OnUpdateValue>;
886
+ onClear: PropType<MaybeArray<(e: MouseEvent) => void>>;
887
+ 'onUpdate:value': PropType<MaybeArray<OnUpdateValue>>;
888
+ onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
889
+ /** private */
890
+ textDecoration: PropType<string | [string, string]>;
891
+ attrSize: {
892
+ type: NumberConstructor;
893
+ default: number;
894
+ };
895
+ onInputBlur: PropType<MaybeArray<(e: FocusEvent) => void>>;
896
+ onInputFocus: PropType<MaybeArray<(e: FocusEvent) => void>>;
897
+ onDeactivate: PropType<MaybeArray<() => void>>;
898
+ onActivate: PropType<MaybeArray<() => void>>;
899
+ onWrapperFocus: PropType<MaybeArray<(e: FocusEvent) => void>>;
900
+ onWrapperBlur: PropType<MaybeArray<(e: FocusEvent) => void>>;
901
+ internalDeactivateOnEnter: BooleanConstructor;
902
+ internalForceFocus: BooleanConstructor;
903
+ internalLoadingBeforeSuffix: BooleanConstructor;
904
+ /** deprecated */
905
+ showPasswordToggle: BooleanConstructor;
906
+ theme: PropType<import("../../_mixins").Theme<"Input", {
896
907
  countTextColor: string;
897
908
  heightTiny: string;
898
909
  heightSmall: string;
@@ -951,8 +962,8 @@ declare const _default: import("vue").DefineComponent<{
951
962
  paddingMedium: string;
952
963
  paddingLarge: string;
953
964
  clearSize: string;
954
- }, any> | undefined;
955
- themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Input", {
965
+ }, any>>;
966
+ themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Input", {
956
967
  countTextColor: string;
957
968
  heightTiny: string;
958
969
  heightSmall: string;
@@ -1011,8 +1022,8 @@ declare const _default: import("vue").DefineComponent<{
1011
1022
  paddingMedium: string;
1012
1023
  paddingLarge: string;
1013
1024
  clearSize: string;
1014
- }, any>> | undefined;
1015
- builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Input", {
1025
+ }, any>>>;
1026
+ builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Input", {
1016
1027
  countTextColor: string;
1017
1028
  heightTiny: string;
1018
1029
  heightSmall: string;
@@ -1071,21 +1082,8 @@ declare const _default: import("vue").DefineComponent<{
1071
1082
  paddingMedium: string;
1072
1083
  paddingLarge: string;
1073
1084
  clearSize: string;
1074
- }, any>> | undefined;
1075
- loading?: boolean | undefined;
1076
- bordered?: boolean | undefined;
1077
- onClear?: MaybeArray<(e: MouseEvent) => void> | undefined;
1078
- inputProps?: InputHTMLAttributes | TextareaHTMLAttributes | undefined;
1079
- "onUpdate:value"?: MaybeArray<OnUpdateValue> | undefined;
1080
- onUpdateValue?: MaybeArray<OnUpdateValue> | undefined;
1081
- showPasswordOn?: "click" | "mousedown" | undefined;
1082
- onInputBlur?: MaybeArray<(e: FocusEvent) => void> | undefined;
1083
- onInputFocus?: MaybeArray<(e: FocusEvent) => void> | undefined;
1084
- onDeactivate?: MaybeArray<() => void> | undefined;
1085
- onActivate?: MaybeArray<() => void> | undefined;
1086
- onWrapperFocus?: MaybeArray<(e: FocusEvent) => void> | undefined;
1087
- onWrapperBlur?: MaybeArray<(e: FocusEvent) => void> | undefined;
1088
- }>, {
1085
+ }, any>>>;
1086
+ }>>, {
1089
1087
  type: "textarea" | "text" | "password";
1090
1088
  readonly: string | boolean;
1091
1089
  round: boolean;
@@ -7,8 +7,9 @@ const vue_1 = require("vue");
7
7
  const vooks_1 = require("vooks");
8
8
  const seemly_1 = require("seemly");
9
9
  const vueuc_1 = require("vueuc");
10
- const _internal_1 = require("../../_internal");
10
+ const evtd_1 = require("evtd");
11
11
  const icons_1 = require("../../_internal/icons");
12
+ const _internal_1 = require("../../_internal");
12
13
  const _mixins_1 = require("../../_mixins");
13
14
  const _utils_1 = require("../../_utils");
14
15
  const styles_1 = require("../styles");
@@ -16,7 +17,6 @@ const interface_1 = require("./interface");
16
17
  const utils_1 = require("./utils");
17
18
  const WordCount_1 = __importDefault(require("./WordCount"));
18
19
  const input_cssr_1 = __importDefault(require("./styles/input.cssr"));
19
- const evtd_1 = require("evtd");
20
20
  const inputProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { bordered: {
21
21
  type: Boolean,
22
22
  default: undefined
@@ -75,6 +75,7 @@ exports.default = (0, vue_1.defineComponent)({
75
75
  const inputMirrorElRef = (0, vue_1.ref)(null);
76
76
  const inputElRef = (0, vue_1.ref)(null);
77
77
  const inputEl2Ref = (0, vue_1.ref)(null);
78
+ const textareaScrollbarInstRef = (0, vue_1.ref)(null);
78
79
  // local
79
80
  const { localeRef } = (0, _mixins_1.useLocale)('Input');
80
81
  // value
@@ -308,6 +309,12 @@ exports.default = (0, vue_1.defineComponent)({
308
309
  function handleInput(e, index = 0, event = 'input') {
309
310
  const targetValue = e.target.value;
310
311
  syncMirror(targetValue);
312
+ if (props.type === 'textarea') {
313
+ const { value: textareaScrollbarInst } = textareaScrollbarInstRef;
314
+ if (textareaScrollbarInst) {
315
+ textareaScrollbarInst.syncUnifiedContainer();
316
+ }
317
+ }
311
318
  syncSource = targetValue;
312
319
  if (isComposingRef.value)
313
320
  return;
@@ -431,10 +438,18 @@ exports.default = (0, vue_1.defineComponent)({
431
438
  }
432
439
  }
433
440
  function handleMouseEnter() {
441
+ var _a;
434
442
  hoverRef.value = true;
443
+ if (props.type === 'textarea') {
444
+ (_a = textareaScrollbarInstRef.value) === null || _a === void 0 ? void 0 : _a.handleMouseEnterWrapper();
445
+ }
435
446
  }
436
447
  function handleMouseLeave() {
448
+ var _a;
437
449
  hoverRef.value = false;
450
+ if (props.type === 'textarea') {
451
+ (_a = textareaScrollbarInstRef.value) === null || _a === void 0 ? void 0 : _a.handleMouseLeaveWrapper();
452
+ }
438
453
  }
439
454
  function handlePasswordToggleClick() {
440
455
  if (mergedDisabledRef.value)
@@ -566,18 +581,41 @@ exports.default = (0, vue_1.defineComponent)({
566
581
  function handleTextAreaMirrorResize() {
567
582
  updateTextAreaStyle();
568
583
  }
569
- let stopWatchMergedValue = null;
584
+ const placeholderStyleRef = (0, vue_1.ref)({
585
+ top: '0'
586
+ });
587
+ function handleTextAreaScroll(e) {
588
+ var _a;
589
+ const { scrollTop } = e.target;
590
+ placeholderStyleRef.value.top = `${-scrollTop}px`;
591
+ (_a = textareaScrollbarInstRef.value) === null || _a === void 0 ? void 0 : _a.syncUnifiedContainer();
592
+ }
593
+ let stopWatchMergedValue1 = null;
570
594
  (0, vue_1.watchEffect)(() => {
571
595
  const { autosize, type } = props;
572
596
  if (autosize && type === 'textarea') {
573
- stopWatchMergedValue = (0, vue_1.watch)(mergedValueRef, (value) => {
597
+ stopWatchMergedValue1 = (0, vue_1.watch)(mergedValueRef, (value) => {
574
598
  if (!Array.isArray(value) && value !== syncSource) {
575
599
  syncMirror(value);
576
600
  }
577
601
  });
578
602
  }
579
603
  else {
580
- stopWatchMergedValue === null || stopWatchMergedValue === void 0 ? void 0 : stopWatchMergedValue();
604
+ stopWatchMergedValue1 === null || stopWatchMergedValue1 === void 0 ? void 0 : stopWatchMergedValue1();
605
+ }
606
+ });
607
+ let stopWatchMergedValue2 = null;
608
+ (0, vue_1.watchEffect)(() => {
609
+ if (props.type === 'textarea') {
610
+ stopWatchMergedValue2 = (0, vue_1.watch)(mergedValueRef, (value) => {
611
+ var _a;
612
+ if (!Array.isArray(value) && value !== syncSource) {
613
+ (_a = textareaScrollbarInstRef.value) === null || _a === void 0 ? void 0 : _a.syncUnifiedContainer();
614
+ }
615
+ });
616
+ }
617
+ else {
618
+ stopWatchMergedValue2 === null || stopWatchMergedValue2 === void 0 ? void 0 : stopWatchMergedValue2();
581
619
  }
582
620
  });
583
621
  (0, vue_1.provide)(interface_1.inputInjectionKey, {
@@ -603,10 +641,12 @@ exports.default = (0, vue_1.defineComponent)({
603
641
  inputMirrorElRef,
604
642
  inputEl2Ref,
605
643
  textareaElRef,
606
- textareaMirrorElRef,
644
+ textareaMirrorElRef,
645
+ textareaScrollbarInstRef,
607
646
  // value
608
- uncontrolledValue: uncontrolledValueRef, mergedValue: mergedValueRef, passwordVisible: passwordVisibleRef, mergedPlaceholder: mergedPlaceholderRef, showPlaceholder1: showPlaceholder1Ref, showPlaceholder2: showPlaceholder2Ref, mergedFocus: mergedFocusRef, isComposing: isComposingRef, activated: activatedRef, showClearButton, mergedSize: mergedSizeRef, mergedDisabled: mergedDisabledRef, textDecorationStyle: textDecorationStyleRef, mergedClsPrefix: mergedClsPrefixRef, mergedBordered: mergedBorderedRef, mergedShowPasswordOn: mergedShowPasswordOnRef,
647
+ uncontrolledValue: uncontrolledValueRef, mergedValue: mergedValueRef, passwordVisible: passwordVisibleRef, mergedPlaceholder: mergedPlaceholderRef, showPlaceholder1: showPlaceholder1Ref, showPlaceholder2: showPlaceholder2Ref, mergedFocus: mergedFocusRef, isComposing: isComposingRef, activated: activatedRef, showClearButton, mergedSize: mergedSizeRef, mergedDisabled: mergedDisabledRef, textDecorationStyle: textDecorationStyleRef, mergedClsPrefix: mergedClsPrefixRef, mergedBordered: mergedBorderedRef, mergedShowPasswordOn: mergedShowPasswordOnRef, placeholderStyle: placeholderStyleRef,
609
648
  // methods
649
+ handleTextAreaScroll,
610
650
  handleCompositionStart,
611
651
  handleCompositionEnd,
612
652
  handleInput,
@@ -623,7 +663,9 @@ exports.default = (0, vue_1.defineComponent)({
623
663
  handlePasswordToggleClick,
624
664
  handlePasswordToggleMousedown,
625
665
  handleWrapperKeyDown,
626
- handleTextAreaMirrorResize, mergedTheme: themeRef, cssVars: (0, vue_1.computed)(() => {
666
+ handleTextAreaMirrorResize, getTextareaScrollContainer: () => {
667
+ return textareaElRef.value;
668
+ }, mergedTheme: themeRef, cssVars: (0, vue_1.computed)(() => {
627
669
  const { value: size } = mergedSizeRef;
628
670
  const { common: { cubicBezierEaseInOut }, self: { color, borderRadius, textColor, caretColor, caretColorError, caretColorWarning, textDecorationColor, border, borderDisabled, borderHover, borderFocus, placeholderColor, placeholderColorDisabled, lineHeightTextarea, colorDisabled, colorFocus, textColorDisabled, boxShadowFocus, iconSize, colorFocusWarning, boxShadowFocusWarning, borderWarning, borderFocusWarning, borderHoverWarning, colorFocusError, boxShadowFocusError, borderError, borderFocusError, borderHoverError, clearSize, clearColor, clearColorHover, clearColorPressed, iconColor, iconColorDisabled, suffixTextColor, countTextColor, iconColorHover, iconColorPressed, loadingColor, loadingColorError, loadingColorWarning, [(0, _utils_1.createKey)('padding', size)]: padding, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('height', size)]: height } } = themeRef.value;
629
671
  const { left: paddingLeft, right: paddingRight } = (0, seemly_1.getPadding)(padding);
@@ -682,7 +724,8 @@ exports.default = (0, vue_1.defineComponent)({
682
724
  }) });
683
725
  },
684
726
  render() {
685
- const { mergedClsPrefix } = this;
727
+ var _a, _b, _c, _d;
728
+ const { mergedClsPrefix, $slots } = this;
686
729
  return ((0, vue_1.h)("div", { ref: "wrapperElRef", class: [
687
730
  `${mergedClsPrefix}-input`,
688
731
  {
@@ -699,15 +742,19 @@ exports.default = (0, vue_1.defineComponent)({
699
742
  ? 0
700
743
  : undefined, onFocus: this.handleWrapperFocus, onBlur: this.handleWrapperBlur, onClick: this.handleClick, onMousedown: this.handleMouseDown, onMouseenter: this.handleMouseEnter, onMouseleave: this.handleMouseLeave, onCompositionstart: this.handleCompositionStart, onCompositionend: this.handleCompositionEnd, onKeyup: this.onKeyup, onKeydown: this.handleWrapperKeyDown },
701
744
  (0, vue_1.h)("div", { class: `${mergedClsPrefix}-input-wrapper` },
702
- this.$slots.affix || this.$slots.prefix ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__prefix` }, (0, vue_1.renderSlot)(this.$slots, 'affix', undefined, () => {
703
- return [(0, vue_1.renderSlot)(this.$slots, 'prefix')];
704
- }))) : null,
705
- this.type === 'textarea' ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__textarea` },
706
- (0, vue_1.h)("textarea", Object.assign({}, this.inputProps, { ref: "textareaElRef", class: `${mergedClsPrefix}-input__textarea-el`, autofocus: this.autofocus, rows: Number(this.rows), placeholder: this.placeholder, value: this.mergedValue, disabled: this.mergedDisabled, maxlength: this.maxlength, minlength: this.minlength, readonly: this.readonly, tabindex: this.passivelyActivated && !this.activated ? -1 : undefined, style: this.textDecorationStyle[0], onBlur: this.handleInputBlur, onFocus: this.handleInputFocus, onInput: this.handleInput, onChange: this.handleChange })),
707
- this.showPlaceholder1 ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__placeholder`, key: "placeholder" }, this.mergedPlaceholder[0])) : null,
708
- this.autosize ? ((0, vue_1.h)(vueuc_1.VResizeObserver, { onResize: this.handleTextAreaMirrorResize }, {
709
- default: () => ((0, vue_1.h)("div", { ref: "textareaMirrorElRef", class: `${mergedClsPrefix}-input__textarea-mirror`, key: "mirror" }))
710
- })) : null)) : ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__input` },
745
+ $slots.affix || $slots.prefix ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__prefix` }, (_a = ($slots.affix || $slots.prefix)) === null || _a === void 0 ? void 0 : _a())) : null,
746
+ this.type === 'textarea' ? ((0, vue_1.h)(_internal_1.NScrollbar, { ref: "textareaScrollbarInstRef", class: `${mergedClsPrefix}-input__textarea`, container: this.getTextareaScrollContainer, triggerDisplayManually: true, useUnifiedContainer: true }, {
747
+ default: () => {
748
+ return ((0, vue_1.h)(vue_1.Fragment, null,
749
+ (0, vue_1.h)("textarea", Object.assign({}, this.inputProps, { ref: "textareaElRef", class: `${mergedClsPrefix}-input__textarea-el`, autofocus: this.autofocus, rows: Number(this.rows), placeholder: this.placeholder, value: this.mergedValue, disabled: this.mergedDisabled, maxlength: this.maxlength, minlength: this.minlength, readonly: this.readonly, tabindex: this.passivelyActivated && !this.activated
750
+ ? -1
751
+ : undefined, style: this.textDecorationStyle[0], onBlur: this.handleInputBlur, onFocus: this.handleInputFocus, onInput: this.handleInput, onChange: this.handleChange, onScroll: this.handleTextAreaScroll })),
752
+ this.showPlaceholder1 ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__placeholder`, style: this.placeholderStyle, key: "placeholder" }, this.mergedPlaceholder[0])) : null,
753
+ this.autosize ? ((0, vue_1.h)(vueuc_1.VResizeObserver, { onResize: this.handleTextAreaMirrorResize }, {
754
+ default: () => ((0, vue_1.h)("div", { ref: "textareaMirrorElRef", class: `${mergedClsPrefix}-input__textarea-mirror`, key: "mirror" }))
755
+ })) : null));
756
+ }
757
+ })) : ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__input` },
711
758
  (0, vue_1.h)("input", Object.assign({ type: this.type === 'password' &&
712
759
  this.mergedShowPasswordOn &&
713
760
  this.passwordVisible
@@ -719,27 +766,21 @@ exports.default = (0, vue_1.defineComponent)({
719
766
  (0, vue_1.h)("span", null, this.mergedPlaceholder[0]))) : null,
720
767
  this.autosize ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__input-mirror`, key: "mirror", ref: "inputMirrorElRef" }, "\u00A0")) : null)),
721
768
  !this.pair &&
722
- (this.$slots.suffix ||
769
+ ($slots.suffix ||
723
770
  this.clearable ||
724
771
  this.showCount ||
725
772
  this.mergedShowPasswordOn ||
726
773
  this.loading !== undefined) ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__suffix` }, [
727
- this.clearable || this.$slots.clear ? ((0, vue_1.h)(_internal_1.NBaseClear, { clsPrefix: mergedClsPrefix, show: this.showClearButton, onClear: this.handleClear }, { default: () => (0, vue_1.renderSlot)(this.$slots, 'clear') })) : null,
728
- !this.internalLoadingBeforeSuffix
729
- ? (0, vue_1.renderSlot)(this.$slots, 'suffix')
730
- : null,
774
+ this.clearable || $slots.clear ? ((0, vue_1.h)(_internal_1.NBaseClear, { clsPrefix: mergedClsPrefix, show: this.showClearButton, onClear: this.handleClear }, { default: $slots.clear })) : null,
775
+ !this.internalLoadingBeforeSuffix ? (_b = $slots.suffix) === null || _b === void 0 ? void 0 : _b.call($slots) : null,
731
776
  this.loading !== undefined ? ((0, vue_1.h)(_internal_1.NBaseSuffix, { clsPrefix: mergedClsPrefix, loading: this.loading, showArrow: false, showClear: false, style: this.cssVars })) : null,
732
- this.internalLoadingBeforeSuffix
733
- ? (0, vue_1.renderSlot)(this.$slots, 'suffix')
734
- : null,
735
- this.showCount && this.type !== 'textarea' ? ((0, vue_1.h)(WordCount_1.default, null, { default: this.$slots.count })) : null,
777
+ this.internalLoadingBeforeSuffix ? (_c = $slots.suffix) === null || _c === void 0 ? void 0 : _c.call($slots) : null,
778
+ this.showCount && this.type !== 'textarea' ? ((0, vue_1.h)(WordCount_1.default, null, { default: $slots.count })) : null,
736
779
  this.mergedShowPasswordOn && this.type === 'password' ? ((0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-input__eye`, onMousedown: this.handlePasswordToggleMousedown, onClick: this.handlePasswordToggleClick }, {
737
780
  default: () => this.passwordVisible ? (0, vue_1.h)(icons_1.EyeIcon, null) : (0, vue_1.h)(icons_1.EyeOffIcon, null)
738
781
  })) : null
739
782
  ])) : null),
740
- this.pair ? ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-input__separator` }, (0, vue_1.renderSlot)(this.$slots, 'separator', undefined, () => [
741
- this.separator
742
- ]))) : null,
783
+ this.pair ? ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-input__separator` }, $slots.separator ? $slots.separator() : this.separator)) : null,
743
784
  this.pair ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input-wrapper` },
744
785
  (0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__input` },
745
786
  (0, vue_1.h)("input", { ref: "inputEl2Ref", type: this.type, class: `${mergedClsPrefix}-input__input-el`, tabindex: this.passivelyActivated && !this.activated ? -1 : undefined, placeholder: this.mergedPlaceholder[1], disabled: this.mergedDisabled, maxlength: this.maxlength, minlength: this.minlength, value: Array.isArray(this.mergedValue)
@@ -748,11 +789,11 @@ exports.default = (0, vue_1.defineComponent)({
748
789
  this.showPlaceholder2 ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__placeholder` },
749
790
  (0, vue_1.h)("span", null, this.mergedPlaceholder[1]))) : null),
750
791
  (0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__suffix` }, [
751
- this.clearable || this.$slots.clear ? ((0, vue_1.h)(_internal_1.NBaseClear, { clsPrefix: mergedClsPrefix, show: this.showClearButton, onClear: this.handleClear }, { default: () => (0, vue_1.renderSlot)(this.$slots, 'clear') })) : null,
752
- (0, vue_1.renderSlot)(this.$slots, 'suffix')
792
+ this.clearable || $slots.clear ? ((0, vue_1.h)(_internal_1.NBaseClear, { clsPrefix: mergedClsPrefix, show: this.showClearButton, onClear: this.handleClear }, { default: $slots.clear })) : null,
793
+ (_d = $slots.suffix) === null || _d === void 0 ? void 0 : _d.call($slots)
753
794
  ]))) : null,
754
795
  this.mergedBordered ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__border` })) : null,
755
796
  this.mergedBordered ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__state-border` })) : null,
756
- this.showCount && this.type === 'textarea' ? ((0, vue_1.h)(WordCount_1.default, null, { default: this.$slots.count })) : null));
797
+ this.showCount && this.type === 'textarea' ? ((0, vue_1.h)(WordCount_1.default, null, { default: $slots.count })) : null));
757
798
  }
758
799
  });