naive-ui 2.25.0 → 2.25.3

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 (567) hide show
  1. package/es/_internal/clear/src/Clear.d.ts +0 -1
  2. package/es/_internal/clear/src/Clear.js +1 -3
  3. package/es/_internal/icons/replaceable.d.ts +1 -1
  4. package/es/_internal/icons/replaceable.js +5 -4
  5. package/es/_internal/scrollbar/src/ScrollBar.d.ts +13 -1
  6. package/es/_internal/scrollbar/src/ScrollBar.js +35 -16
  7. package/es/_internal/select-menu/src/SelectMenu.d.ts +22 -18
  8. package/es/_internal/select-menu/src/SelectMenu.js +13 -10
  9. package/es/_internal/selection/src/Selection.d.ts +31 -26
  10. package/es/_internal/selection/src/Selection.js +79 -68
  11. package/es/_internal/selection/styles/dark.js +3 -3
  12. package/es/_internal/selection/styles/light.d.ts +6 -6
  13. package/es/_internal/selection/styles/light.js +3 -3
  14. package/es/_mixins/index.d.ts +1 -1
  15. package/es/_mixins/index.js +1 -1
  16. package/es/_mixins/use-config.d.ts +6 -3
  17. package/es/_mixins/use-config.js +5 -1
  18. package/es/_mixins/use-css-vars-class.d.ts +6 -2
  19. package/es/_mixins/use-css-vars-class.js +31 -15
  20. package/es/_mixins/use-form-item.d.ts +1 -1
  21. package/es/_utils/css/color-to-class.d.ts +1 -0
  22. package/es/_utils/css/color-to-class.js +3 -0
  23. package/es/_utils/css/format-length.d.ts +2 -2
  24. package/es/_utils/css/format-length.js +1 -2
  25. package/es/_utils/css/index.d.ts +2 -1
  26. package/es/_utils/css/index.js +2 -1
  27. package/es/_utils/index.d.ts +1 -1
  28. package/es/_utils/index.js +1 -1
  29. package/es/_utils/vue/resolve-slot.d.ts +5 -2
  30. package/es/_utils/vue/resolve-slot.js +4 -4
  31. package/es/alert/src/Alert.d.ts +7 -5
  32. package/es/alert/src/Alert.js +36 -21
  33. package/es/anchor/src/AnchorAdapter.js +9 -3
  34. package/es/auto-complete/src/AutoComplete.d.ts +4 -2
  35. package/es/auto-complete/src/AutoComplete.js +28 -15
  36. package/es/avatar/src/Avatar.d.ts +3 -1
  37. package/es/avatar/src/Avatar.js +70 -35
  38. package/es/back-top/src/BackTop.d.ts +12 -49
  39. package/es/back-top/src/BackTop.js +60 -58
  40. package/es/badge/src/Badge.d.ts +16 -41
  41. package/es/badge/src/Badge.js +41 -31
  42. package/es/breadcrumb/src/Breadcrumb.d.ts +3 -1
  43. package/es/breadcrumb/src/Breadcrumb.js +24 -16
  44. package/es/button/src/Button.d.ts +8 -6
  45. package/es/button/src/Button.js +20 -21
  46. package/es/button/styles/index.d.ts +1 -1
  47. package/es/button/styles/index.js +1 -1
  48. package/es/button/styles/rtl.d.ts +2 -5
  49. package/es/button/styles/rtl.js +1 -1
  50. package/es/calendar/src/Calendar.d.ts +3 -1
  51. package/es/calendar/src/Calendar.js +37 -30
  52. package/es/card/src/Card.d.ts +3 -1
  53. package/es/card/src/Card.js +57 -43
  54. package/es/card/styles/index.d.ts +1 -1
  55. package/es/card/styles/index.js +1 -1
  56. package/es/card/styles/rtl.d.ts +2 -5
  57. package/es/card/styles/rtl.js +1 -1
  58. package/es/carousel/src/Carousel.d.ts +3 -1
  59. package/es/carousel/src/Carousel.js +29 -20
  60. package/es/cascader/src/Cascader.d.ts +46 -31
  61. package/es/cascader/src/Cascader.js +53 -31
  62. package/es/cascader/src/CascaderMenu.d.ts +3 -3
  63. package/es/cascader/src/CascaderMenu.js +7 -6
  64. package/es/cascader/src/CascaderOption.d.ts +3 -3
  65. package/es/cascader/src/CascaderSelectMenu.d.ts +3 -3
  66. package/es/cascader/src/CascaderSelectMenu.js +2 -1
  67. package/es/cascader/src/CascaderSubmenu.d.ts +4 -3
  68. package/es/cascader/src/interface.d.ts +1 -0
  69. package/es/cascader/styles/light.d.ts +3 -3
  70. package/es/checkbox/src/Checkbox.d.ts +6 -4
  71. package/es/checkbox/src/Checkbox.js +41 -32
  72. package/es/checkbox/src/styles/index.cssr.js +17 -17
  73. package/es/code/src/Code.d.ts +3 -1
  74. package/es/code/src/Code.js +33 -27
  75. package/es/collapse/src/Collapse.d.ts +3 -1
  76. package/es/collapse/src/Collapse.js +24 -16
  77. package/es/color-picker/src/ColorPicker.d.ts +3 -1
  78. package/es/color-picker/src/ColorPicker.js +20 -7
  79. package/es/components.d.ts +1 -0
  80. package/es/components.js +1 -0
  81. package/es/config-provider/src/ConfigProvider.d.ts +4 -4
  82. package/es/config-provider/src/ConfigProvider.js +3 -3
  83. package/es/config-provider/src/internal-interface.d.ts +3 -1
  84. package/es/countdown/src/Countdown.d.ts +0 -3
  85. package/es/countdown/src/Countdown.js +0 -1
  86. package/es/data-table/src/DataTable.d.ts +77 -75
  87. package/es/data-table/src/DataTable.js +54 -48
  88. package/es/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
  89. package/es/data-table/src/HeaderButton/FilterButton.js +3 -2
  90. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
  91. package/es/data-table/src/HeaderButton/SortButton.js +3 -2
  92. package/es/data-table/src/TableParts/Body.d.ts +7 -6
  93. package/es/data-table/src/TableParts/Body.js +4 -2
  94. package/es/data-table/src/TableParts/Cell.d.ts +12 -12
  95. package/es/data-table/src/TableParts/Header.d.ts +6 -6
  96. package/es/data-table/src/interface.d.ts +1 -1
  97. package/es/data-table/src/use-table-data.js +19 -7
  98. package/es/data-table/styles/light.d.ts +3 -3
  99. package/es/date-picker/src/DatePicker.d.ts +1 -0
  100. package/es/date-picker/src/DatePicker.js +2 -2
  101. package/es/date-picker/src/panel/date.d.ts +2 -0
  102. package/es/date-picker/src/panel/datetime.d.ts +2 -0
  103. package/es/date-picker/src/panel/month.d.ts +2 -0
  104. package/es/date-picker/src/panel/panelHeader.d.ts +4 -0
  105. package/es/date-picker/src/panel/use-calendar.d.ts +2 -0
  106. package/es/descriptions/src/Descriptions.d.ts +15 -2
  107. package/es/descriptions/src/Descriptions.js +45 -28
  108. package/es/descriptions/src/styles/index.cssr.js +2 -1
  109. package/es/descriptions/styles/light.d.ts +1 -0
  110. package/es/descriptions/styles/light.js +2 -2
  111. package/es/dialog/src/Dialog.d.ts +7 -5
  112. package/es/dialog/src/Dialog.js +57 -56
  113. package/es/dialog/src/DialogEnvironment.d.ts +5 -5
  114. package/es/dialog/src/DialogEnvironment.js +1 -1
  115. package/es/dialog/src/DialogProvider.d.ts +2 -2
  116. package/es/dialog/src/dialogProps.d.ts +2 -2
  117. package/es/divider/src/Divider.d.ts +3 -1
  118. package/es/divider/src/Divider.js +20 -11
  119. package/es/dynamic-input/src/DynamicInput.js +2 -2
  120. package/es/dynamic-tags/src/DynamicTags.d.ts +7 -5
  121. package/es/dynamic-tags/src/DynamicTags.js +17 -10
  122. package/es/element/src/Element.d.ts +3 -1
  123. package/es/element/src/Element.js +18 -11
  124. package/es/empty/src/Empty.d.ts +3 -1
  125. package/es/empty/src/Empty.js +28 -16
  126. package/es/form/src/FormItem.d.ts +4 -4
  127. package/es/form/src/FormItem.js +1 -2
  128. package/es/form/src/FormItemCol.d.ts +3 -3
  129. package/es/form/src/FormItemGridItem.d.ts +5 -5
  130. package/es/form/src/FormItemRow.d.ts +3 -3
  131. package/es/form/src/utils.d.ts +1 -1
  132. package/es/gradient-text/src/GradientText.d.ts +5 -5
  133. package/es/grid/src/Grid.js +2 -2
  134. package/es/icon-wrapper/src/IconWrapper.js +6 -6
  135. package/es/image/src/Image.d.ts +1 -1
  136. package/es/input/src/Input.d.ts +7 -4
  137. package/es/input/src/Input.js +96 -84
  138. package/es/input/src/styles/input.cssr.js +2 -2
  139. package/es/input-number/src/InputNumber.d.ts +7 -18
  140. package/es/input-number/src/InputNumber.js +79 -20
  141. package/es/layout/src/Layout.d.ts +8 -2
  142. package/es/layout/src/Layout.js +17 -10
  143. package/es/layout/src/LayoutContent.d.ts +4 -1
  144. package/es/layout/src/LayoutFooter.d.ts +3 -1
  145. package/es/layout/src/LayoutFooter.js +28 -19
  146. package/es/layout/src/LayoutHeader.d.ts +3 -1
  147. package/es/layout/src/LayoutHeader.js +28 -19
  148. package/es/layout/src/LayoutSider.d.ts +4 -0
  149. package/es/layout/src/LayoutSider.js +37 -29
  150. package/es/locales/common/deDE.js +13 -15
  151. package/es/locales/common/enGB.d.ts +109 -0
  152. package/es/locales/common/enGB.js +109 -0
  153. package/es/locales/common/eo.d.ts +109 -0
  154. package/es/locales/common/eo.js +109 -0
  155. package/es/locales/common/esAR.js +2 -2
  156. package/es/locales/common/frFR.js +8 -9
  157. package/es/locales/common/plPL.d.ts +3 -0
  158. package/es/locales/common/plPL.js +109 -0
  159. package/es/locales/common/skSK.d.ts +3 -0
  160. package/es/locales/common/skSK.js +110 -0
  161. package/es/locales/date/enGB.d.ts +3 -0
  162. package/es/locales/date/enGB.js +6 -0
  163. package/es/locales/date/eo.d.ts +3 -0
  164. package/es/locales/date/eo.js +6 -0
  165. package/es/locales/date/plPL.d.ts +3 -0
  166. package/es/locales/date/plPL.js +6 -0
  167. package/es/locales/date/skSK.d.ts +3 -0
  168. package/es/locales/date/skSK.js +6 -0
  169. package/es/locales/index.d.ts +8 -0
  170. package/es/locales/index.js +8 -0
  171. package/es/log/src/Log.d.ts +4 -1
  172. package/es/log/src/Log.js +20 -15
  173. package/es/mention/index.d.ts +1 -1
  174. package/es/mention/src/Mention.d.ts +1 -1
  175. package/es/mention/src/interface.d.ts +4 -0
  176. package/es/menu/src/Menu.d.ts +4 -2
  177. package/es/menu/src/Menu.js +68 -63
  178. package/es/modal/src/BodyWrapper.d.ts +7 -6
  179. package/es/modal/src/Modal.d.ts +19 -22
  180. package/es/modal/src/Modal.js +41 -32
  181. package/es/modal/src/presetProps.d.ts +2 -2
  182. package/es/notification/src/Notification.d.ts +4 -4
  183. package/es/notification/src/NotificationEnvironment.d.ts +4 -4
  184. package/es/notification/src/NotificationProvider.d.ts +1 -1
  185. package/es/notification/src/styles/index.cssr.js +6 -5
  186. package/es/page-header/src/PageHeader.d.ts +3 -1
  187. package/es/page-header/src/PageHeader.js +27 -18
  188. package/es/pagination/src/Pagination.d.ts +46 -34
  189. package/es/pagination/src/Pagination.js +59 -52
  190. package/es/pagination/styles/light.d.ts +3 -3
  191. package/es/popover/src/PopoverBody.js +10 -4
  192. package/es/progress/src/Circle.d.ts +19 -3
  193. package/es/progress/src/Circle.js +41 -22
  194. package/es/progress/src/Progress.d.ts +14 -5
  195. package/es/progress/src/Progress.js +45 -25
  196. package/es/progress/src/styles/index.cssr.js +1 -1
  197. package/es/radio/src/Radio.d.ts +3 -1
  198. package/es/radio/src/Radio.js +32 -23
  199. package/es/radio/src/RadioGroup.d.ts +3 -1
  200. package/es/radio/src/RadioGroup.js +31 -22
  201. package/es/rate/src/Rate.d.ts +3 -1
  202. package/es/rate/src/Rate.js +44 -23
  203. package/es/result/src/Result.d.ts +8 -6
  204. package/es/result/src/Result.js +36 -19
  205. package/es/scrollbar/src/ScrollBar.d.ts +12 -1
  206. package/es/scrollbar/src/ScrollBar.js +4 -0
  207. package/es/select/src/Select.d.ts +45 -31
  208. package/es/select/src/Select.js +14 -8
  209. package/es/select/styles/light.d.ts +3 -3
  210. package/es/spin/src/Spin.d.ts +3 -1
  211. package/es/spin/src/Spin.js +31 -21
  212. package/es/statistic/src/Statistic.d.ts +3 -1
  213. package/es/statistic/src/Statistic.js +29 -21
  214. package/es/styles.d.ts +1 -0
  215. package/es/styles.js +1 -0
  216. package/es/switch/src/Switch.d.ts +13 -1
  217. package/es/switch/src/Switch.js +85 -60
  218. package/es/switch/src/styles/index.cssr.js +21 -8
  219. package/es/switch/styles/dark.js +2 -2
  220. package/es/switch/styles/light.d.ts +1 -0
  221. package/es/switch/styles/light.js +2 -2
  222. package/es/table/src/Table.d.ts +3 -1
  223. package/es/table/src/Table.js +40 -29
  224. package/es/table/src/styles/index.cssr.js +1 -1
  225. package/es/tabs/src/Tabs.d.ts +25 -23
  226. package/es/tabs/src/Tabs.js +50 -44
  227. package/es/tabs/src/styles/index.cssr.js +77 -77
  228. package/es/tag/src/Tag.d.ts +7 -5
  229. package/es/tag/src/Tag.js +59 -42
  230. package/es/tag/src/common-props.d.ts +1 -1
  231. package/es/tag/src/styles/index.cssr.js +1 -1
  232. package/es/tag/styles/index.d.ts +1 -1
  233. package/es/tag/styles/index.js +1 -1
  234. package/es/tag/styles/rtl.d.ts +2 -5
  235. package/es/tag/styles/rtl.js +1 -1
  236. package/es/theme-editor/src/ThemeEditor.js +4 -3
  237. package/es/themes/dark.js +3 -1
  238. package/es/themes/light.js +3 -1
  239. package/es/thing/src/Thing.js +10 -3
  240. package/es/time-picker/src/TimePicker.d.ts +4 -0
  241. package/es/timeline/src/TimelineItem.d.ts +4 -4
  242. package/es/transfer/src/TransferList.d.ts +1 -0
  243. package/es/tree/src/Tree.d.ts +1 -0
  244. package/es/tree/src/Tree.js +8 -4
  245. package/es/tree/src/utils.js +1 -1
  246. package/es/tree-select/src/TreeSelect.d.ts +43 -30
  247. package/es/tree-select/src/TreeSelect.js +6 -2
  248. package/es/tree-select/styles/light.d.ts +3 -3
  249. package/es/typography/src/a.d.ts +3 -1
  250. package/es/typography/src/a.js +18 -10
  251. package/es/typography/src/blockquote.d.ts +3 -1
  252. package/es/typography/src/blockquote.js +21 -12
  253. package/es/typography/src/create-header.d.ts +7 -5
  254. package/es/typography/src/create-header.js +25 -16
  255. package/es/typography/src/headers.d.ts +36 -24
  256. package/es/typography/src/hr.d.ts +3 -1
  257. package/es/typography/src/hr.js +18 -10
  258. package/es/typography/src/ol.d.ts +3 -1
  259. package/es/typography/src/ol.js +23 -14
  260. package/es/typography/src/p.d.ts +3 -1
  261. package/es/typography/src/p.js +23 -15
  262. package/es/typography/src/text.d.ts +3 -1
  263. package/es/typography/src/text.js +31 -23
  264. package/es/typography/src/ul.d.ts +3 -1
  265. package/es/typography/src/ul.js +23 -14
  266. package/es/upload/src/UploadFile.d.ts +1 -1
  267. package/es/upload/src/UploadProgress.d.ts +2 -2
  268. package/es/upload/src/interface.d.ts +1 -1
  269. package/es/version.d.ts +1 -1
  270. package/es/version.js +1 -1
  271. package/es/watermark/index.d.ts +2 -0
  272. package/es/watermark/index.js +1 -0
  273. package/es/watermark/src/Watermark.d.ts +285 -0
  274. package/es/watermark/src/Watermark.js +159 -0
  275. package/es/watermark/src/styles/index.cssr.d.ts +2 -0
  276. package/es/watermark/src/styles/index.cssr.js +14 -0
  277. package/es/watermark/styles/dark.d.ts +3 -0
  278. package/es/watermark/styles/dark.js +12 -0
  279. package/es/watermark/styles/index.d.ts +3 -0
  280. package/es/watermark/styles/index.js +2 -0
  281. package/es/watermark/styles/light.d.ts +5 -0
  282. package/es/watermark/styles/light.js +13 -0
  283. package/lib/_internal/clear/src/Clear.d.ts +0 -1
  284. package/lib/_internal/clear/src/Clear.js +0 -2
  285. package/lib/_internal/icons/replaceable.d.ts +1 -1
  286. package/lib/_internal/icons/replaceable.js +4 -3
  287. package/lib/_internal/scrollbar/src/ScrollBar.d.ts +13 -1
  288. package/lib/_internal/scrollbar/src/ScrollBar.js +34 -15
  289. package/lib/_internal/select-menu/src/SelectMenu.d.ts +22 -18
  290. package/lib/_internal/select-menu/src/SelectMenu.js +12 -9
  291. package/lib/_internal/selection/src/Selection.d.ts +31 -26
  292. package/lib/_internal/selection/src/Selection.js +78 -67
  293. package/lib/_internal/selection/styles/dark.js +3 -3
  294. package/lib/_internal/selection/styles/light.d.ts +6 -6
  295. package/lib/_internal/selection/styles/light.js +3 -3
  296. package/lib/_mixins/index.d.ts +1 -1
  297. package/lib/_mixins/index.js +2 -2
  298. package/lib/_mixins/use-config.d.ts +6 -3
  299. package/lib/_mixins/use-config.js +5 -1
  300. package/lib/_mixins/use-css-vars-class.d.ts +6 -2
  301. package/lib/_mixins/use-css-vars-class.js +33 -17
  302. package/lib/_mixins/use-form-item.d.ts +1 -1
  303. package/lib/_utils/css/color-to-class.d.ts +1 -0
  304. package/lib/_utils/css/color-to-class.js +7 -0
  305. package/lib/_utils/css/format-length.d.ts +2 -2
  306. package/lib/_utils/css/format-length.js +2 -1
  307. package/lib/_utils/css/index.d.ts +2 -1
  308. package/lib/_utils/css/index.js +4 -5
  309. package/lib/_utils/index.d.ts +1 -1
  310. package/lib/_utils/index.js +2 -1
  311. package/lib/_utils/vue/resolve-slot.d.ts +5 -2
  312. package/lib/_utils/vue/resolve-slot.js +4 -4
  313. package/lib/alert/src/Alert.d.ts +7 -5
  314. package/lib/alert/src/Alert.js +34 -19
  315. package/lib/anchor/src/AnchorAdapter.js +8 -2
  316. package/lib/auto-complete/src/AutoComplete.d.ts +4 -2
  317. package/lib/auto-complete/src/AutoComplete.js +27 -14
  318. package/lib/avatar/src/Avatar.d.ts +3 -1
  319. package/lib/avatar/src/Avatar.js +68 -33
  320. package/lib/back-top/src/BackTop.d.ts +12 -49
  321. package/lib/back-top/src/BackTop.js +57 -55
  322. package/lib/badge/src/Badge.d.ts +16 -41
  323. package/lib/badge/src/Badge.js +39 -29
  324. package/lib/breadcrumb/src/Breadcrumb.d.ts +3 -1
  325. package/lib/breadcrumb/src/Breadcrumb.js +23 -15
  326. package/lib/button/src/Button.d.ts +8 -6
  327. package/lib/button/src/Button.js +18 -19
  328. package/lib/button/styles/index.d.ts +1 -1
  329. package/lib/button/styles/index.js +1 -1
  330. package/lib/button/styles/rtl.d.ts +2 -5
  331. package/lib/button/styles/rtl.js +2 -1
  332. package/lib/calendar/src/Calendar.d.ts +3 -1
  333. package/lib/calendar/src/Calendar.js +36 -29
  334. package/lib/card/src/Card.d.ts +3 -1
  335. package/lib/card/src/Card.js +55 -41
  336. package/lib/card/styles/index.d.ts +1 -1
  337. package/lib/card/styles/index.js +1 -1
  338. package/lib/card/styles/rtl.d.ts +2 -5
  339. package/lib/card/styles/rtl.js +2 -1
  340. package/lib/carousel/src/Carousel.d.ts +3 -1
  341. package/lib/carousel/src/Carousel.js +27 -18
  342. package/lib/cascader/src/Cascader.d.ts +46 -31
  343. package/lib/cascader/src/Cascader.js +52 -30
  344. package/lib/cascader/src/CascaderMenu.d.ts +3 -3
  345. package/lib/cascader/src/CascaderMenu.js +7 -6
  346. package/lib/cascader/src/CascaderOption.d.ts +3 -3
  347. package/lib/cascader/src/CascaderSelectMenu.d.ts +3 -3
  348. package/lib/cascader/src/CascaderSelectMenu.js +2 -1
  349. package/lib/cascader/src/CascaderSubmenu.d.ts +4 -3
  350. package/lib/cascader/src/interface.d.ts +1 -0
  351. package/lib/cascader/styles/light.d.ts +3 -3
  352. package/lib/checkbox/src/Checkbox.d.ts +6 -4
  353. package/lib/checkbox/src/Checkbox.js +40 -31
  354. package/lib/checkbox/src/styles/index.cssr.js +17 -17
  355. package/lib/code/src/Code.d.ts +3 -1
  356. package/lib/code/src/Code.js +32 -26
  357. package/lib/collapse/src/Collapse.d.ts +3 -1
  358. package/lib/collapse/src/Collapse.js +23 -15
  359. package/lib/color-picker/src/ColorPicker.d.ts +3 -1
  360. package/lib/color-picker/src/ColorPicker.js +19 -6
  361. package/lib/components.d.ts +1 -0
  362. package/lib/components.js +1 -0
  363. package/lib/config-provider/src/ConfigProvider.d.ts +4 -4
  364. package/lib/config-provider/src/ConfigProvider.js +3 -3
  365. package/lib/config-provider/src/internal-interface.d.ts +3 -1
  366. package/lib/countdown/src/Countdown.d.ts +0 -3
  367. package/lib/countdown/src/Countdown.js +0 -1
  368. package/lib/data-table/src/DataTable.d.ts +77 -75
  369. package/lib/data-table/src/DataTable.js +53 -47
  370. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
  371. package/lib/data-table/src/HeaderButton/FilterButton.js +3 -2
  372. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
  373. package/lib/data-table/src/HeaderButton/SortButton.js +3 -2
  374. package/lib/data-table/src/TableParts/Body.d.ts +7 -6
  375. package/lib/data-table/src/TableParts/Body.js +3 -1
  376. package/lib/data-table/src/TableParts/Cell.d.ts +12 -12
  377. package/lib/data-table/src/TableParts/Header.d.ts +6 -6
  378. package/lib/data-table/src/interface.d.ts +1 -1
  379. package/lib/data-table/src/use-table-data.js +19 -7
  380. package/lib/data-table/styles/light.d.ts +3 -3
  381. package/lib/date-picker/src/DatePicker.d.ts +1 -0
  382. package/lib/date-picker/src/DatePicker.js +2 -2
  383. package/lib/date-picker/src/panel/date.d.ts +2 -0
  384. package/lib/date-picker/src/panel/datetime.d.ts +2 -0
  385. package/lib/date-picker/src/panel/month.d.ts +2 -0
  386. package/lib/date-picker/src/panel/panelHeader.d.ts +4 -0
  387. package/lib/date-picker/src/panel/use-calendar.d.ts +2 -0
  388. package/lib/descriptions/src/Descriptions.d.ts +15 -2
  389. package/lib/descriptions/src/Descriptions.js +44 -27
  390. package/lib/descriptions/src/styles/index.cssr.js +2 -1
  391. package/lib/descriptions/styles/light.d.ts +1 -0
  392. package/lib/descriptions/styles/light.js +2 -2
  393. package/lib/dialog/src/Dialog.d.ts +7 -5
  394. package/lib/dialog/src/Dialog.js +55 -54
  395. package/lib/dialog/src/DialogEnvironment.d.ts +5 -5
  396. package/lib/dialog/src/DialogEnvironment.js +1 -1
  397. package/lib/dialog/src/DialogProvider.d.ts +2 -2
  398. package/lib/dialog/src/dialogProps.d.ts +2 -2
  399. package/lib/divider/src/Divider.d.ts +3 -1
  400. package/lib/divider/src/Divider.js +19 -10
  401. package/lib/dynamic-input/src/DynamicInput.js +2 -2
  402. package/lib/dynamic-tags/src/DynamicTags.d.ts +7 -5
  403. package/lib/dynamic-tags/src/DynamicTags.js +16 -9
  404. package/lib/element/src/Element.d.ts +3 -1
  405. package/lib/element/src/Element.js +17 -10
  406. package/lib/empty/src/Empty.d.ts +3 -1
  407. package/lib/empty/src/Empty.js +27 -15
  408. package/lib/form/src/FormItem.d.ts +4 -4
  409. package/lib/form/src/FormItem.js +1 -2
  410. package/lib/form/src/FormItemCol.d.ts +3 -3
  411. package/lib/form/src/FormItemGridItem.d.ts +5 -5
  412. package/lib/form/src/FormItemRow.d.ts +3 -3
  413. package/lib/form/src/utils.d.ts +1 -1
  414. package/lib/gradient-text/src/GradientText.d.ts +5 -5
  415. package/lib/grid/src/Grid.js +2 -2
  416. package/lib/icon-wrapper/src/IconWrapper.js +5 -5
  417. package/lib/image/src/Image.d.ts +1 -1
  418. package/lib/input/src/Input.d.ts +7 -4
  419. package/lib/input/src/Input.js +95 -83
  420. package/lib/input/src/styles/input.cssr.js +2 -2
  421. package/lib/input-number/src/InputNumber.d.ts +7 -18
  422. package/lib/input-number/src/InputNumber.js +76 -17
  423. package/lib/layout/src/Layout.d.ts +8 -2
  424. package/lib/layout/src/Layout.js +16 -9
  425. package/lib/layout/src/LayoutContent.d.ts +4 -1
  426. package/lib/layout/src/LayoutFooter.d.ts +3 -1
  427. package/lib/layout/src/LayoutFooter.js +27 -18
  428. package/lib/layout/src/LayoutHeader.d.ts +3 -1
  429. package/lib/layout/src/LayoutHeader.js +27 -18
  430. package/lib/layout/src/LayoutSider.d.ts +4 -0
  431. package/lib/layout/src/LayoutSider.js +36 -28
  432. package/lib/locales/common/deDE.js +13 -15
  433. package/lib/locales/common/enGB.d.ts +109 -0
  434. package/lib/locales/common/enGB.js +111 -0
  435. package/lib/locales/common/eo.d.ts +109 -0
  436. package/lib/locales/common/eo.js +111 -0
  437. package/lib/locales/common/esAR.js +2 -2
  438. package/lib/locales/common/frFR.js +8 -9
  439. package/lib/locales/common/plPL.d.ts +3 -0
  440. package/lib/locales/common/plPL.js +111 -0
  441. package/lib/locales/common/skSK.d.ts +3 -0
  442. package/lib/locales/common/skSK.js +112 -0
  443. package/lib/locales/date/enGB.d.ts +3 -0
  444. package/lib/locales/date/enGB.js +11 -0
  445. package/lib/locales/date/eo.d.ts +3 -0
  446. package/lib/locales/date/eo.js +11 -0
  447. package/lib/locales/date/plPL.d.ts +3 -0
  448. package/lib/locales/date/plPL.js +11 -0
  449. package/lib/locales/date/skSK.d.ts +3 -0
  450. package/lib/locales/date/skSK.js +11 -0
  451. package/lib/locales/index.d.ts +8 -0
  452. package/lib/locales/index.js +17 -1
  453. package/lib/log/src/Log.d.ts +4 -1
  454. package/lib/log/src/Log.js +19 -14
  455. package/lib/mention/index.d.ts +1 -1
  456. package/lib/mention/src/Mention.d.ts +1 -1
  457. package/lib/mention/src/interface.d.ts +4 -0
  458. package/lib/menu/src/Menu.d.ts +4 -2
  459. package/lib/menu/src/Menu.js +67 -62
  460. package/lib/modal/src/BodyWrapper.d.ts +7 -6
  461. package/lib/modal/src/Modal.d.ts +19 -22
  462. package/lib/modal/src/Modal.js +40 -31
  463. package/lib/modal/src/presetProps.d.ts +2 -2
  464. package/lib/notification/src/Notification.d.ts +4 -4
  465. package/lib/notification/src/NotificationEnvironment.d.ts +4 -4
  466. package/lib/notification/src/NotificationProvider.d.ts +1 -1
  467. package/lib/notification/src/styles/index.cssr.js +6 -5
  468. package/lib/page-header/src/PageHeader.d.ts +3 -1
  469. package/lib/page-header/src/PageHeader.js +26 -17
  470. package/lib/pagination/src/Pagination.d.ts +46 -34
  471. package/lib/pagination/src/Pagination.js +58 -51
  472. package/lib/pagination/styles/light.d.ts +3 -3
  473. package/lib/popover/src/PopoverBody.js +9 -3
  474. package/lib/progress/src/Circle.d.ts +19 -3
  475. package/lib/progress/src/Circle.js +40 -21
  476. package/lib/progress/src/Progress.d.ts +14 -5
  477. package/lib/progress/src/Progress.js +44 -24
  478. package/lib/progress/src/styles/index.cssr.js +1 -1
  479. package/lib/radio/src/Radio.d.ts +3 -1
  480. package/lib/radio/src/Radio.js +31 -22
  481. package/lib/radio/src/RadioGroup.d.ts +3 -1
  482. package/lib/radio/src/RadioGroup.js +30 -21
  483. package/lib/rate/src/Rate.d.ts +3 -1
  484. package/lib/rate/src/Rate.js +42 -21
  485. package/lib/result/src/Result.d.ts +8 -6
  486. package/lib/result/src/Result.js +35 -18
  487. package/lib/scrollbar/src/ScrollBar.d.ts +12 -1
  488. package/lib/scrollbar/src/ScrollBar.js +4 -0
  489. package/lib/select/src/Select.d.ts +45 -31
  490. package/lib/select/src/Select.js +14 -8
  491. package/lib/select/styles/light.d.ts +3 -3
  492. package/lib/spin/src/Spin.d.ts +3 -1
  493. package/lib/spin/src/Spin.js +30 -20
  494. package/lib/statistic/src/Statistic.d.ts +3 -1
  495. package/lib/statistic/src/Statistic.js +28 -20
  496. package/lib/styles.d.ts +1 -0
  497. package/lib/styles.js +9 -7
  498. package/lib/switch/src/Switch.d.ts +13 -1
  499. package/lib/switch/src/Switch.js +81 -56
  500. package/lib/switch/src/styles/index.cssr.js +21 -8
  501. package/lib/switch/styles/dark.js +2 -2
  502. package/lib/switch/styles/light.d.ts +1 -0
  503. package/lib/switch/styles/light.js +2 -2
  504. package/lib/table/src/Table.d.ts +3 -1
  505. package/lib/table/src/Table.js +39 -28
  506. package/lib/table/src/styles/index.cssr.js +1 -1
  507. package/lib/tabs/src/Tabs.d.ts +25 -23
  508. package/lib/tabs/src/Tabs.js +48 -42
  509. package/lib/tabs/src/styles/index.cssr.js +77 -77
  510. package/lib/tag/src/Tag.d.ts +7 -5
  511. package/lib/tag/src/Tag.js +57 -40
  512. package/lib/tag/src/common-props.d.ts +1 -1
  513. package/lib/tag/src/styles/index.cssr.js +1 -1
  514. package/lib/tag/styles/index.d.ts +1 -1
  515. package/lib/tag/styles/index.js +1 -1
  516. package/lib/tag/styles/rtl.d.ts +2 -5
  517. package/lib/tag/styles/rtl.js +2 -1
  518. package/lib/theme-editor/src/ThemeEditor.js +2 -1
  519. package/lib/themes/dark.js +3 -1
  520. package/lib/themes/light.js +3 -1
  521. package/lib/thing/src/Thing.js +9 -2
  522. package/lib/time-picker/src/TimePicker.d.ts +4 -0
  523. package/lib/timeline/src/TimelineItem.d.ts +4 -4
  524. package/lib/transfer/src/TransferList.d.ts +1 -0
  525. package/lib/tree/src/Tree.d.ts +1 -0
  526. package/lib/tree/src/Tree.js +8 -4
  527. package/lib/tree/src/utils.js +1 -1
  528. package/lib/tree-select/src/TreeSelect.d.ts +43 -30
  529. package/lib/tree-select/src/TreeSelect.js +6 -2
  530. package/lib/tree-select/styles/light.d.ts +3 -3
  531. package/lib/typography/src/a.d.ts +3 -1
  532. package/lib/typography/src/a.js +17 -9
  533. package/lib/typography/src/blockquote.d.ts +3 -1
  534. package/lib/typography/src/blockquote.js +20 -11
  535. package/lib/typography/src/create-header.d.ts +7 -5
  536. package/lib/typography/src/create-header.js +24 -15
  537. package/lib/typography/src/headers.d.ts +36 -24
  538. package/lib/typography/src/hr.d.ts +3 -1
  539. package/lib/typography/src/hr.js +17 -9
  540. package/lib/typography/src/ol.d.ts +3 -1
  541. package/lib/typography/src/ol.js +22 -13
  542. package/lib/typography/src/p.d.ts +3 -1
  543. package/lib/typography/src/p.js +22 -14
  544. package/lib/typography/src/text.d.ts +3 -1
  545. package/lib/typography/src/text.js +30 -22
  546. package/lib/typography/src/ul.d.ts +3 -1
  547. package/lib/typography/src/ul.js +22 -13
  548. package/lib/upload/src/UploadFile.d.ts +1 -1
  549. package/lib/upload/src/UploadProgress.d.ts +2 -2
  550. package/lib/upload/src/interface.d.ts +1 -1
  551. package/lib/version.d.ts +1 -1
  552. package/lib/version.js +1 -1
  553. package/lib/watermark/index.d.ts +2 -0
  554. package/lib/watermark/index.js +8 -0
  555. package/lib/watermark/src/Watermark.d.ts +285 -0
  556. package/lib/watermark/src/Watermark.js +164 -0
  557. package/lib/watermark/src/styles/index.cssr.d.ts +2 -0
  558. package/lib/watermark/src/styles/index.cssr.js +21 -0
  559. package/lib/watermark/styles/dark.d.ts +3 -0
  560. package/lib/watermark/styles/dark.js +14 -0
  561. package/lib/watermark/styles/index.d.ts +3 -0
  562. package/lib/watermark/styles/index.js +10 -0
  563. package/lib/watermark/styles/light.d.ts +5 -0
  564. package/lib/watermark/styles/light.js +15 -0
  565. package/package.json +9 -10
  566. package/volar.d.ts +1 -0
  567. package/web-types.json +279 -29
@@ -35,6 +35,10 @@ declare const cascaderProps: {
35
35
  readonly default: "click";
36
36
  };
37
37
  readonly clearable: BooleanConstructor;
38
+ readonly clearFilterAfterSelect: {
39
+ readonly type: BooleanConstructor;
40
+ readonly default: true;
41
+ };
38
42
  readonly remote: BooleanConstructor;
39
43
  readonly onLoad: PropType<OnLoad>;
40
44
  readonly separator: {
@@ -178,7 +182,7 @@ declare const cascaderProps: {
178
182
  borderHover: string;
179
183
  borderActive: string;
180
184
  borderFocus: string;
181
- boxShadowHover: null;
185
+ boxShadowHover: string;
182
186
  boxShadowActive: string;
183
187
  boxShadowFocus: string;
184
188
  caretColor: string;
@@ -189,7 +193,7 @@ declare const cascaderProps: {
189
193
  borderHoverWarning: string;
190
194
  borderActiveWarning: string;
191
195
  borderFocusWarning: string;
192
- boxShadowHoverWarning: null;
196
+ boxShadowHoverWarning: string;
193
197
  boxShadowActiveWarning: string;
194
198
  boxShadowFocusWarning: string;
195
199
  colorActiveWarning: string;
@@ -198,7 +202,7 @@ declare const cascaderProps: {
198
202
  borderHoverError: string;
199
203
  borderActiveError: string;
200
204
  borderFocusError: string;
201
- boxShadowHoverError: null;
205
+ boxShadowHoverError: string;
202
206
  boxShadowActiveError: string;
203
207
  boxShadowFocusError: string;
204
208
  colorActiveError: string;
@@ -362,7 +366,7 @@ declare const cascaderProps: {
362
366
  borderHover: string;
363
367
  borderActive: string;
364
368
  borderFocus: string;
365
- boxShadowHover: null;
369
+ boxShadowHover: string;
366
370
  boxShadowActive: string;
367
371
  boxShadowFocus: string;
368
372
  caretColor: string;
@@ -373,7 +377,7 @@ declare const cascaderProps: {
373
377
  borderHoverWarning: string;
374
378
  borderActiveWarning: string;
375
379
  borderFocusWarning: string;
376
- boxShadowHoverWarning: null;
380
+ boxShadowHoverWarning: string;
377
381
  boxShadowActiveWarning: string;
378
382
  boxShadowFocusWarning: string;
379
383
  colorActiveWarning: string;
@@ -382,7 +386,7 @@ declare const cascaderProps: {
382
386
  borderHoverError: string;
383
387
  borderActiveError: string;
384
388
  borderFocusError: string;
385
- boxShadowHoverError: null;
389
+ boxShadowHoverError: string;
386
390
  boxShadowActiveError: string;
387
391
  boxShadowFocusError: string;
388
392
  colorActiveError: string;
@@ -546,7 +550,7 @@ declare const cascaderProps: {
546
550
  borderHover: string;
547
551
  borderActive: string;
548
552
  borderFocus: string;
549
- boxShadowHover: null;
553
+ boxShadowHover: string;
550
554
  boxShadowActive: string;
551
555
  boxShadowFocus: string;
552
556
  caretColor: string;
@@ -557,7 +561,7 @@ declare const cascaderProps: {
557
561
  borderHoverWarning: string;
558
562
  borderActiveWarning: string;
559
563
  borderFocusWarning: string;
560
- boxShadowHoverWarning: null;
564
+ boxShadowHoverWarning: string;
561
565
  boxShadowActiveWarning: string;
562
566
  boxShadowFocusWarning: string;
563
567
  colorActiveWarning: string;
@@ -566,7 +570,7 @@ declare const cascaderProps: {
566
570
  borderHoverError: string;
567
571
  borderActiveError: string;
568
572
  borderFocusError: string;
569
- boxShadowHoverError: null;
573
+ boxShadowHoverError: string;
570
574
  boxShadowActiveError: string;
571
575
  boxShadowFocusError: string;
572
576
  colorActiveError: string;
@@ -673,6 +677,10 @@ declare const _default: import("vue").DefineComponent<{
673
677
  readonly default: "click";
674
678
  };
675
679
  readonly clearable: BooleanConstructor;
680
+ readonly clearFilterAfterSelect: {
681
+ readonly type: BooleanConstructor;
682
+ readonly default: true;
683
+ };
676
684
  readonly remote: BooleanConstructor;
677
685
  readonly onLoad: PropType<OnLoad>;
678
686
  readonly separator: {
@@ -816,7 +824,7 @@ declare const _default: import("vue").DefineComponent<{
816
824
  borderHover: string;
817
825
  borderActive: string;
818
826
  borderFocus: string;
819
- boxShadowHover: null;
827
+ boxShadowHover: string;
820
828
  boxShadowActive: string;
821
829
  boxShadowFocus: string;
822
830
  caretColor: string;
@@ -827,7 +835,7 @@ declare const _default: import("vue").DefineComponent<{
827
835
  borderHoverWarning: string;
828
836
  borderActiveWarning: string;
829
837
  borderFocusWarning: string;
830
- boxShadowHoverWarning: null;
838
+ boxShadowHoverWarning: string;
831
839
  boxShadowActiveWarning: string;
832
840
  boxShadowFocusWarning: string;
833
841
  colorActiveWarning: string;
@@ -836,7 +844,7 @@ declare const _default: import("vue").DefineComponent<{
836
844
  borderHoverError: string;
837
845
  borderActiveError: string;
838
846
  borderFocusError: string;
839
- boxShadowHoverError: null;
847
+ boxShadowHoverError: string;
840
848
  boxShadowActiveError: string;
841
849
  boxShadowFocusError: string;
842
850
  colorActiveError: string;
@@ -1000,7 +1008,7 @@ declare const _default: import("vue").DefineComponent<{
1000
1008
  borderHover: string;
1001
1009
  borderActive: string;
1002
1010
  borderFocus: string;
1003
- boxShadowHover: null;
1011
+ boxShadowHover: string;
1004
1012
  boxShadowActive: string;
1005
1013
  boxShadowFocus: string;
1006
1014
  caretColor: string;
@@ -1011,7 +1019,7 @@ declare const _default: import("vue").DefineComponent<{
1011
1019
  borderHoverWarning: string;
1012
1020
  borderActiveWarning: string;
1013
1021
  borderFocusWarning: string;
1014
- boxShadowHoverWarning: null;
1022
+ boxShadowHoverWarning: string;
1015
1023
  boxShadowActiveWarning: string;
1016
1024
  boxShadowFocusWarning: string;
1017
1025
  colorActiveWarning: string;
@@ -1020,7 +1028,7 @@ declare const _default: import("vue").DefineComponent<{
1020
1028
  borderHoverError: string;
1021
1029
  borderActiveError: string;
1022
1030
  borderFocusError: string;
1023
- boxShadowHoverError: null;
1031
+ boxShadowHoverError: string;
1024
1032
  boxShadowActiveError: string;
1025
1033
  boxShadowFocusError: string;
1026
1034
  colorActiveError: string;
@@ -1184,7 +1192,7 @@ declare const _default: import("vue").DefineComponent<{
1184
1192
  borderHover: string;
1185
1193
  borderActive: string;
1186
1194
  borderFocus: string;
1187
- boxShadowHover: null;
1195
+ boxShadowHover: string;
1188
1196
  boxShadowActive: string;
1189
1197
  boxShadowFocus: string;
1190
1198
  caretColor: string;
@@ -1195,7 +1203,7 @@ declare const _default: import("vue").DefineComponent<{
1195
1203
  borderHoverWarning: string;
1196
1204
  borderActiveWarning: string;
1197
1205
  borderFocusWarning: string;
1198
- boxShadowHoverWarning: null;
1206
+ boxShadowHoverWarning: string;
1199
1207
  boxShadowActiveWarning: string;
1200
1208
  boxShadowFocusWarning: string;
1201
1209
  colorActiveWarning: string;
@@ -1204,7 +1212,7 @@ declare const _default: import("vue").DefineComponent<{
1204
1212
  borderHoverError: string;
1205
1213
  borderActiveError: string;
1206
1214
  borderFocusError: string;
1207
- boxShadowHoverError: null;
1215
+ boxShadowHoverError: string;
1208
1216
  boxShadowActiveError: string;
1209
1217
  boxShadowFocusError: string;
1210
1218
  colorActiveError: string;
@@ -1534,7 +1542,7 @@ declare const _default: import("vue").DefineComponent<{
1534
1542
  borderHover: string;
1535
1543
  borderActive: string;
1536
1544
  borderFocus: string;
1537
- boxShadowHover: null;
1545
+ boxShadowHover: string;
1538
1546
  boxShadowActive: string;
1539
1547
  boxShadowFocus: string;
1540
1548
  caretColor: string;
@@ -1545,7 +1553,7 @@ declare const _default: import("vue").DefineComponent<{
1545
1553
  borderHoverWarning: string;
1546
1554
  borderActiveWarning: string;
1547
1555
  borderFocusWarning: string;
1548
- boxShadowHoverWarning: null;
1556
+ boxShadowHoverWarning: string;
1549
1557
  boxShadowActiveWarning: string;
1550
1558
  boxShadowFocusWarning: string;
1551
1559
  colorActiveWarning: string;
@@ -1554,7 +1562,7 @@ declare const _default: import("vue").DefineComponent<{
1554
1562
  borderHoverError: string;
1555
1563
  borderActiveError: string;
1556
1564
  borderFocusError: string;
1557
- boxShadowHoverError: null;
1565
+ boxShadowHoverError: string;
1558
1566
  boxShadowActiveError: string;
1559
1567
  boxShadowFocusError: string;
1560
1568
  colorActiveError: string;
@@ -1703,7 +1711,9 @@ declare const _default: import("vue").DefineComponent<{
1703
1711
  '--n-option-arrow-color': string;
1704
1712
  '--n-menu-mask-color': string;
1705
1713
  '--n-loading-color': string;
1706
- }>;
1714
+ }> | undefined;
1715
+ themeClass: import("vue").Ref<string> | undefined;
1716
+ onRender: (() => void) | undefined;
1707
1717
  focus: () => void;
1708
1718
  blur: () => void;
1709
1719
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -1737,6 +1747,10 @@ declare const _default: import("vue").DefineComponent<{
1737
1747
  readonly default: "click";
1738
1748
  };
1739
1749
  readonly clearable: BooleanConstructor;
1750
+ readonly clearFilterAfterSelect: {
1751
+ readonly type: BooleanConstructor;
1752
+ readonly default: true;
1753
+ };
1740
1754
  readonly remote: BooleanConstructor;
1741
1755
  readonly onLoad: PropType<OnLoad>;
1742
1756
  readonly separator: {
@@ -1880,7 +1894,7 @@ declare const _default: import("vue").DefineComponent<{
1880
1894
  borderHover: string;
1881
1895
  borderActive: string;
1882
1896
  borderFocus: string;
1883
- boxShadowHover: null;
1897
+ boxShadowHover: string;
1884
1898
  boxShadowActive: string;
1885
1899
  boxShadowFocus: string;
1886
1900
  caretColor: string;
@@ -1891,7 +1905,7 @@ declare const _default: import("vue").DefineComponent<{
1891
1905
  borderHoverWarning: string;
1892
1906
  borderActiveWarning: string;
1893
1907
  borderFocusWarning: string;
1894
- boxShadowHoverWarning: null;
1908
+ boxShadowHoverWarning: string;
1895
1909
  boxShadowActiveWarning: string;
1896
1910
  boxShadowFocusWarning: string;
1897
1911
  colorActiveWarning: string;
@@ -1900,7 +1914,7 @@ declare const _default: import("vue").DefineComponent<{
1900
1914
  borderHoverError: string;
1901
1915
  borderActiveError: string;
1902
1916
  borderFocusError: string;
1903
- boxShadowHoverError: null;
1917
+ boxShadowHoverError: string;
1904
1918
  boxShadowActiveError: string;
1905
1919
  boxShadowFocusError: string;
1906
1920
  colorActiveError: string;
@@ -2064,7 +2078,7 @@ declare const _default: import("vue").DefineComponent<{
2064
2078
  borderHover: string;
2065
2079
  borderActive: string;
2066
2080
  borderFocus: string;
2067
- boxShadowHover: null;
2081
+ boxShadowHover: string;
2068
2082
  boxShadowActive: string;
2069
2083
  boxShadowFocus: string;
2070
2084
  caretColor: string;
@@ -2075,7 +2089,7 @@ declare const _default: import("vue").DefineComponent<{
2075
2089
  borderHoverWarning: string;
2076
2090
  borderActiveWarning: string;
2077
2091
  borderFocusWarning: string;
2078
- boxShadowHoverWarning: null;
2092
+ boxShadowHoverWarning: string;
2079
2093
  boxShadowActiveWarning: string;
2080
2094
  boxShadowFocusWarning: string;
2081
2095
  colorActiveWarning: string;
@@ -2084,7 +2098,7 @@ declare const _default: import("vue").DefineComponent<{
2084
2098
  borderHoverError: string;
2085
2099
  borderActiveError: string;
2086
2100
  borderFocusError: string;
2087
- boxShadowHoverError: null;
2101
+ boxShadowHoverError: string;
2088
2102
  boxShadowActiveError: string;
2089
2103
  boxShadowFocusError: string;
2090
2104
  colorActiveError: string;
@@ -2248,7 +2262,7 @@ declare const _default: import("vue").DefineComponent<{
2248
2262
  borderHover: string;
2249
2263
  borderActive: string;
2250
2264
  borderFocus: string;
2251
- boxShadowHover: null;
2265
+ boxShadowHover: string;
2252
2266
  boxShadowActive: string;
2253
2267
  boxShadowFocus: string;
2254
2268
  caretColor: string;
@@ -2259,7 +2273,7 @@ declare const _default: import("vue").DefineComponent<{
2259
2273
  borderHoverWarning: string;
2260
2274
  borderActiveWarning: string;
2261
2275
  borderFocusWarning: string;
2262
- boxShadowHoverWarning: null;
2276
+ boxShadowHoverWarning: string;
2263
2277
  boxShadowActiveWarning: string;
2264
2278
  boxShadowFocusWarning: string;
2265
2279
  colorActiveWarning: string;
@@ -2268,7 +2282,7 @@ declare const _default: import("vue").DefineComponent<{
2268
2282
  borderHoverError: string;
2269
2283
  borderActiveError: string;
2270
2284
  borderFocusError: string;
2271
- boxShadowHoverError: null;
2285
+ boxShadowHoverError: string;
2272
2286
  boxShadowActiveError: string;
2273
2287
  boxShadowFocusError: string;
2274
2288
  colorActiveError: string;
@@ -2354,6 +2368,7 @@ declare const _default: import("vue").DefineComponent<{
2354
2368
  virtualScroll: boolean;
2355
2369
  filterable: boolean;
2356
2370
  clearable: boolean;
2371
+ clearFilterAfterSelect: boolean;
2357
2372
  defaultValue: Value | null;
2358
2373
  remote: boolean;
2359
2374
  expandTrigger: ExpandTrigger;
@@ -4,7 +4,7 @@ import { VBinder, VTarget, VFollower } from 'vueuc';
4
4
  import { depx, changeColor, happensIn } from 'seemly';
5
5
  import { useIsMounted, useMergedState } from 'vooks';
6
6
  import { NInternalSelection } from '../../_internal';
7
- import { useLocale, useTheme, useConfig, useFormItem } from '../../_mixins';
7
+ import { useLocale, useTheme, useConfig, useFormItem, useThemeClass } from '../../_mixins';
8
8
  import { call, useAdjustedTo, warnOnce } from '../../_utils';
9
9
  import { cascaderLight } from '../styles';
10
10
  import { getPathLabel, getRawNodePath } from './utils';
@@ -27,7 +27,10 @@ const cascaderProps = Object.assign(Object.assign({}, useTheme.props), { to: use
27
27
  }, expandTrigger: {
28
28
  type: String,
29
29
  default: 'click'
30
- }, clearable: Boolean, remote: Boolean, onLoad: Function, separator: {
30
+ }, clearable: Boolean, clearFilterAfterSelect: {
31
+ type: Boolean,
32
+ default: true
33
+ }, remote: Boolean, onLoad: Function, separator: {
31
34
  type: String,
32
35
  default: ' / '
33
36
  }, filter: Function, placement: {
@@ -60,7 +63,6 @@ const cascaderProps = Object.assign(Object.assign({}, useTheme.props), { to: use
60
63
  }, renderLabel: Function, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array], 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array], onBlur: Function, onFocus: Function,
61
64
  // deprecated
62
65
  onChange: [Function, Array] });
63
- // TODO refactor cascader menu keyboard scroll (use virtual list)
64
66
  export default defineComponent({
65
67
  name: 'Cascader',
66
68
  props: cascaderProps,
@@ -75,7 +77,7 @@ export default defineComponent({
75
77
  }
76
78
  });
77
79
  }
78
- const { mergedBorderedRef, mergedClsPrefixRef, namespaceRef } = useConfig(props);
80
+ const { mergedBorderedRef, mergedClsPrefixRef, namespaceRef, inlineThemeDisabled } = useConfig(props);
79
81
  const themeRef = useTheme('Cascader', '-cascader', style, cascaderLight, props, mergedClsPrefixRef);
80
82
  const { localeRef } = useLocale('Cascader');
81
83
  const uncontrolledValueRef = ref(props.defaultValue);
@@ -372,6 +374,10 @@ export default defineComponent({
372
374
  return;
373
375
  handleCascaderMenuClickOutside(e);
374
376
  }
377
+ function clearPattern() {
378
+ if (props.clearFilterAfterSelect)
379
+ patternRef.value = '';
380
+ }
375
381
  // --- keyboard
376
382
  function move(direction) {
377
383
  var _a, _b, _c;
@@ -486,7 +492,7 @@ export default defineComponent({
486
492
  if (selectMenuInstRef.value) {
487
493
  const hasCorrespondingOption = selectMenuInstRef.value.enter();
488
494
  if (hasCorrespondingOption)
489
- patternRef.value = '';
495
+ clearPattern();
490
496
  }
491
497
  }
492
498
  }
@@ -664,7 +670,8 @@ export default defineComponent({
664
670
  doUncheck,
665
671
  closeMenu,
666
672
  handleSelectMenuClickOutside,
667
- handleCascaderMenuClickOutside
673
+ handleCascaderMenuClickOutside,
674
+ clearPattern
668
675
  });
669
676
  const exposedMethods = {
670
677
  focus: () => {
@@ -676,6 +683,31 @@ export default defineComponent({
676
683
  (_a = triggerInstRef.value) === null || _a === void 0 ? void 0 : _a.blur();
677
684
  }
678
685
  };
686
+ const cssVarsRef = computed(() => {
687
+ const { self: { optionArrowColor, optionTextColor, optionTextColorActive, optionTextColorDisabled, optionCheckMarkColor, menuColor, menuBoxShadow, menuDividerColor, menuBorderRadius, menuHeight, optionColorHover, optionHeight, optionFontSize, loadingColor, columnWidth }, common: { cubicBezierEaseInOut } } = themeRef.value;
688
+ return {
689
+ '--n-bezier': cubicBezierEaseInOut,
690
+ '--n-menu-border-radius': menuBorderRadius,
691
+ '--n-menu-box-shadow': menuBoxShadow,
692
+ '--n-menu-height': menuHeight,
693
+ '--n-column-width': columnWidth,
694
+ '--n-menu-color': menuColor,
695
+ '--n-menu-divider-color': menuDividerColor,
696
+ '--n-option-height': optionHeight,
697
+ '--n-option-font-size': optionFontSize,
698
+ '--n-option-text-color': optionTextColor,
699
+ '--n-option-text-color-disabled': optionTextColorDisabled,
700
+ '--n-option-text-color-active': optionTextColorActive,
701
+ '--n-option-color-hover': optionColorHover,
702
+ '--n-option-check-mark-color': optionCheckMarkColor,
703
+ '--n-option-arrow-color': optionArrowColor,
704
+ '--n-menu-mask-color': changeColor(menuColor, { alpha: 0.75 }),
705
+ '--n-loading-color': loadingColor
706
+ };
707
+ });
708
+ const themeClassHandle = inlineThemeDisabled
709
+ ? useThemeClass('cascader', undefined, cssVarsRef, props)
710
+ : undefined;
679
711
  return Object.assign(Object.assign({}, exposedMethods), { mergedStatus: mergedStatusRef, selectMenuFollowerRef,
680
712
  cascaderMenuFollowerRef,
681
713
  triggerInstRef,
@@ -692,31 +724,10 @@ export default defineComponent({
692
724
  handleDeleteOption,
693
725
  handlePatternInput,
694
726
  handleKeyDown,
695
- handleKeyUp, focused: focusedRef, optionHeight: optionHeightRef, mergedTheme: themeRef, cssVars: computed(() => {
696
- const { self: { optionArrowColor, optionTextColor, optionTextColorActive, optionTextColorDisabled, optionCheckMarkColor, menuColor, menuBoxShadow, menuDividerColor, menuBorderRadius, menuHeight, optionColorHover, optionHeight, optionFontSize, loadingColor, columnWidth }, common: { cubicBezierEaseInOut } } = themeRef.value;
697
- return {
698
- '--n-bezier': cubicBezierEaseInOut,
699
- '--n-menu-border-radius': menuBorderRadius,
700
- '--n-menu-box-shadow': menuBoxShadow,
701
- '--n-menu-height': menuHeight,
702
- '--n-column-width': columnWidth,
703
- '--n-menu-color': menuColor,
704
- '--n-menu-divider-color': menuDividerColor,
705
- '--n-option-height': optionHeight,
706
- '--n-option-font-size': optionFontSize,
707
- '--n-option-text-color': optionTextColor,
708
- '--n-option-text-color-disabled': optionTextColorDisabled,
709
- '--n-option-text-color-active': optionTextColorActive,
710
- '--n-option-color-hover': optionColorHover,
711
- '--n-option-check-mark-color': optionCheckMarkColor,
712
- '--n-option-arrow-color': optionArrowColor,
713
- '--n-menu-mask-color': changeColor(menuColor, { alpha: 0.75 }),
714
- '--n-loading-color': loadingColor
715
- };
716
- }) });
727
+ handleKeyUp, focused: focusedRef, optionHeight: optionHeightRef, mergedTheme: themeRef, cssVars: inlineThemeDisabled ? undefined : cssVarsRef, themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass, onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender });
717
728
  },
718
729
  render() {
719
- const { mergedClsPrefix, $slots } = this;
730
+ const { mergedClsPrefix } = this;
720
731
  return (h("div", { class: `${mergedClsPrefix}-cascader` },
721
732
  h(VBinder, null, {
722
733
  default: () => [
@@ -724,10 +735,21 @@ export default defineComponent({
724
735
  default: () => (h(NInternalSelection, { ref: "triggerInstRef", status: this.mergedStatus, clsPrefix: mergedClsPrefix, maxTagCount: this.maxTagCount, bordered: this.mergedBordered, size: this.mergedSize, theme: this.mergedTheme.peers.InternalSelection, themeOverrides: this.mergedTheme.peerOverrides.InternalSelection, active: this.mergedShow, pattern: this.pattern, placeholder: this.localizedPlaceholder, selectedOption: this.selectedOption, selectedOptions: this.selectedOptions, multiple: this.multiple, filterable: this.filterable, clearable: this.clearable, disabled: this.mergedDisabled, focused: this.focused, onFocus: this.handleTriggerFocus, onBlur: this.handleTriggerBlur, onClick: this.handleTriggerClick, onClear: this.handleClear, onDeleteOption: this.handleDeleteOption, onPatternInput: this.handlePatternInput, onKeydown: this.handleKeyDown, onKeyup: this.handleKeyUp }))
725
736
  }),
726
737
  h(VFollower, { key: "cascaderMenu", ref: "cascaderMenuFollowerRef", show: this.mergedShow && !this.showSelectMenu, containerClass: this.namespace, placement: this.placement, width: !this.options.length ? 'target' : undefined, teleportDisabled: this.adjustedTo === useAdjustedTo.tdkey, to: this.adjustedTo }, {
727
- default: () => (h(CascaderMenu, { ref: "cascaderMenuInstRef", value: this.mergedValue, show: this.mergedShow && !this.showSelectMenu, menuModel: this.menuModel, style: this.cssVars, onFocus: this.handleMenuFocus, onBlur: this.handleMenuBlur, onKeyup: this.handleMenuKeyUp, onMousedown: this.handleMenuMousedown, onTabout: this.handleMenuTabout }, $slots))
738
+ default: () => {
739
+ var _a;
740
+ (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
741
+ return (h(CascaderMenu, { ref: "cascaderMenuInstRef", class: this.themeClass, value: this.mergedValue, show: this.mergedShow && !this.showSelectMenu, menuModel: this.menuModel, style: this.cssVars, onFocus: this.handleMenuFocus, onBlur: this.handleMenuBlur, onKeyup: this.handleMenuKeyUp, onMousedown: this.handleMenuMousedown, onTabout: this.handleMenuTabout }, {
742
+ action: () => { var _a, _b; return (_b = (_a = this.$slots).action) === null || _b === void 0 ? void 0 : _b.call(_a); },
743
+ empty: () => { var _a, _b; return (_b = (_a = this.$slots).empty) === null || _b === void 0 ? void 0 : _b.call(_a); }
744
+ }));
745
+ }
728
746
  }),
729
747
  h(VFollower, { key: "selectMenu", ref: "selectMenuFollowerRef", show: this.mergedShow && this.showSelectMenu, containerClass: this.namespace, width: "target", placement: this.placement, to: this.adjustedTo, teleportDisabled: this.adjustedTo === useAdjustedTo.tdkey }, {
730
- default: () => (h(CascaderSelectMenu, { ref: "selectMenuInstRef", value: this.mergedValue, show: this.mergedShow && this.showSelectMenu, pattern: this.pattern, multiple: this.multiple, tmNodes: this.treeMate.treeNodes, filter: this.filter, labelField: this.labelField, separator: this.separator, style: this.cssVars }))
748
+ default: () => {
749
+ var _a;
750
+ (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
751
+ return (h(CascaderSelectMenu, { ref: "selectMenuInstRef", class: this.themeClass, value: this.mergedValue, show: this.mergedShow && this.showSelectMenu, pattern: this.pattern, multiple: this.multiple, tmNodes: this.treeMate.treeNodes, filter: this.filter, labelField: this.labelField, separator: this.separator, style: this.cssVars }));
752
+ }
731
753
  })
732
754
  ]
733
755
  })));
@@ -238,7 +238,7 @@ declare const _default: import("vue").DefineComponent<{
238
238
  borderHover: string;
239
239
  borderActive: string;
240
240
  borderFocus: string;
241
- boxShadowHover: null;
241
+ boxShadowHover: string;
242
242
  boxShadowActive: string;
243
243
  boxShadowFocus: string;
244
244
  caretColor: string;
@@ -249,7 +249,7 @@ declare const _default: import("vue").DefineComponent<{
249
249
  borderHoverWarning: string;
250
250
  borderActiveWarning: string;
251
251
  borderFocusWarning: string;
252
- boxShadowHoverWarning: null;
252
+ boxShadowHoverWarning: string;
253
253
  boxShadowActiveWarning: string;
254
254
  boxShadowFocusWarning: string;
255
255
  colorActiveWarning: string;
@@ -258,7 +258,7 @@ declare const _default: import("vue").DefineComponent<{
258
258
  borderHoverError: string;
259
259
  borderActiveError: string;
260
260
  borderFocusError: string;
261
- boxShadowHoverError: null;
261
+ boxShadowHoverError: string;
262
262
  boxShadowActiveError: string;
263
263
  boxShadowFocusError: string;
264
264
  colorActiveError: string;
@@ -1,10 +1,11 @@
1
1
  import { h, ref, defineComponent, watch, toRef, inject, nextTick, Transition, withDirectives } from 'vue';
2
2
  import { clickoutside } from 'vdirs';
3
+ import FocusDetector from '../../_internal/focus-detector';
4
+ import { resolveSlot, resolveWrappedSlot } from '../../_utils';
3
5
  import { NEmpty } from '../../empty';
4
6
  import { NBaseMenuMask } from '../../_internal';
5
7
  import NCascaderSubmenu from './CascaderSubmenu';
6
8
  import { cascaderInjectionKey } from './interface';
7
- import FocusDetector from '../../_internal/focus-detector';
8
9
  export default defineComponent({
9
10
  name: 'NCascaderMenu',
10
11
  props: {
@@ -97,7 +98,7 @@ export default defineComponent({
97
98
  handleClickOutside }, exposedRef);
98
99
  },
99
100
  render() {
100
- const { submenuInstRefs, mergedClsPrefix, $slots, mergedTheme } = this;
101
+ const { submenuInstRefs, mergedClsPrefix, mergedTheme } = this;
101
102
  return (h(Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted }, {
102
103
  default: () => {
103
104
  if (!this.show)
@@ -111,10 +112,10 @@ export default defineComponent({
111
112
  submenuInstRefs[index] = instance;
112
113
  }
113
114
  }), key: index, tmNodes: submenuOptions, depth: index + 1 }))),
114
- h(NBaseMenuMask, { clsPrefix: mergedClsPrefix, ref: "maskInstRef" }))) : (h("div", { class: `${mergedClsPrefix}-cascader-menu__empty` }, $slots.empty ? ($slots.empty()) : (h(NEmpty, { theme: mergedTheme.peers.Empty, themeOverrides: mergedTheme.peerOverrides.Empty })))),
115
- $slots.action && (h("div", { class: `${mergedClsPrefix}-cascader-menu-action`, "data-action": true }, {
116
- default: $slots.action
117
- })),
115
+ h(NBaseMenuMask, { clsPrefix: mergedClsPrefix, ref: "maskInstRef" }))) : (h("div", { class: `${mergedClsPrefix}-cascader-menu__empty` }, resolveSlot(this.$slots.empty, () => [
116
+ h(NEmpty, { theme: mergedTheme.peers.Empty, themeOverrides: mergedTheme.peerOverrides.Empty })
117
+ ]))),
118
+ resolveWrappedSlot(this.$slots.action, (children) => children && (h("div", { class: `${mergedClsPrefix}-cascader-menu-action`, "data-action": true }, children))),
118
119
  h(FocusDetector, { onFocus: this.onTabout })), [[clickoutside, this.handleClickOutside]]);
119
120
  }
120
121
  }));
@@ -214,7 +214,7 @@ declare const _default: import("vue").DefineComponent<{
214
214
  borderHover: string;
215
215
  borderActive: string;
216
216
  borderFocus: string;
217
- boxShadowHover: null;
217
+ boxShadowHover: string;
218
218
  boxShadowActive: string;
219
219
  boxShadowFocus: string;
220
220
  caretColor: string;
@@ -225,7 +225,7 @@ declare const _default: import("vue").DefineComponent<{
225
225
  borderHoverWarning: string;
226
226
  borderActiveWarning: string;
227
227
  borderFocusWarning: string;
228
- boxShadowHoverWarning: null;
228
+ boxShadowHoverWarning: string;
229
229
  boxShadowActiveWarning: string;
230
230
  boxShadowFocusWarning: string;
231
231
  colorActiveWarning: string;
@@ -234,7 +234,7 @@ declare const _default: import("vue").DefineComponent<{
234
234
  borderHoverError: string;
235
235
  borderActiveError: string;
236
236
  borderFocusError: string;
237
- boxShadowHoverError: null;
237
+ boxShadowHoverError: string;
238
238
  boxShadowActiveError: string;
239
239
  boxShadowFocusError: string;
240
240
  colorActiveError: string;
@@ -226,7 +226,7 @@ declare const _default: import("vue").DefineComponent<{
226
226
  borderHover: string;
227
227
  borderActive: string;
228
228
  borderFocus: string;
229
- boxShadowHover: null;
229
+ boxShadowHover: string;
230
230
  boxShadowActive: string;
231
231
  boxShadowFocus: string;
232
232
  caretColor: string;
@@ -237,7 +237,7 @@ declare const _default: import("vue").DefineComponent<{
237
237
  borderHoverWarning: string;
238
238
  borderActiveWarning: string;
239
239
  borderFocusWarning: string;
240
- boxShadowHoverWarning: null;
240
+ boxShadowHoverWarning: string;
241
241
  boxShadowActiveWarning: string;
242
242
  boxShadowFocusWarning: string;
243
243
  colorActiveWarning: string;
@@ -246,7 +246,7 @@ declare const _default: import("vue").DefineComponent<{
246
246
  borderHoverError: string;
247
247
  borderActiveError: string;
248
248
  borderFocusError: string;
249
- boxShadowHoverError: null;
249
+ boxShadowHoverError: string;
250
250
  boxShadowActiveError: string;
251
251
  boxShadowFocusError: string;
252
252
  colorActiveError: string;
@@ -33,7 +33,7 @@ export default defineComponent({
33
33
  }
34
34
  },
35
35
  setup(props) {
36
- const { isMountedRef, mergedValueRef, mergedClsPrefixRef, mergedThemeRef, mergedCheckStrategyRef, syncSelectMenuPosition, closeMenu, handleSelectMenuClickOutside, doUncheck: cascaderDoUncheck, doCheck: cascaderDoCheck
36
+ const { isMountedRef, mergedValueRef, mergedClsPrefixRef, mergedThemeRef, mergedCheckStrategyRef, syncSelectMenuPosition, closeMenu, handleSelectMenuClickOutside, doUncheck: cascaderDoUncheck, doCheck: cascaderDoCheck, clearPattern
37
37
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
38
38
  } = inject(cascaderInjectionKey);
39
39
  const menuInstRef = ref(null);
@@ -90,6 +90,7 @@ export default defineComponent({
90
90
  else if (mergedValue === null) {
91
91
  cascaderDoCheck(tmNode.key);
92
92
  }
93
+ clearPattern();
93
94
  }
94
95
  else {
95
96
  cascaderDoCheck(tmNode.key);
@@ -207,7 +207,7 @@ declare const _default: import("vue").DefineComponent<{
207
207
  borderHover: string;
208
208
  borderActive: string;
209
209
  borderFocus: string;
210
- boxShadowHover: null;
210
+ boxShadowHover: string;
211
211
  boxShadowActive: string;
212
212
  boxShadowFocus: string;
213
213
  caretColor: string;
@@ -218,7 +218,7 @@ declare const _default: import("vue").DefineComponent<{
218
218
  borderHoverWarning: string;
219
219
  borderActiveWarning: string;
220
220
  borderFocusWarning: string;
221
- boxShadowHoverWarning: null;
221
+ boxShadowHoverWarning: string;
222
222
  boxShadowActiveWarning: string;
223
223
  boxShadowFocusWarning: string;
224
224
  colorActiveWarning: string;
@@ -227,7 +227,7 @@ declare const _default: import("vue").DefineComponent<{
227
227
  borderHoverError: string;
228
228
  borderActiveError: string;
229
229
  borderFocusError: string;
230
- boxShadowHoverError: null;
230
+ boxShadowHoverError: string;
231
231
  boxShadowActiveError: string;
232
232
  boxShadowFocusError: string;
233
233
  colorActiveError: string;
@@ -364,6 +364,7 @@ declare const _default: import("vue").DefineComponent<{
364
364
  containerScrollTop: number;
365
365
  syncUnifiedContainer: () => void;
366
366
  scrollTo: import("../../_internal/scrollbar/src/ScrollBar").ScrollTo;
367
+ scrollBy: import("../../_internal/scrollbar/src/ScrollBar").ScrollBy;
367
368
  sync: () => void;
368
369
  handleMouseEnterWrapper: () => void;
369
370
  handleMouseLeaveWrapper: () => void;
@@ -53,6 +53,7 @@ export interface CascaderInjection {
53
53
  handleSelectMenuClickOutside: (e: MouseEvent) => void;
54
54
  handleCascaderMenuClickOutside: (e: MouseEvent) => void;
55
55
  renderLabelRef: Ref<((option: CascaderOption, checked: boolean) => VNodeChild) | undefined>;
56
+ clearPattern: () => void;
56
57
  }
57
58
  export interface CascaderSubmenuInstance {
58
59
  scroll: (index: number, elSize: number) => void;