naive-ui 2.18.1 → 2.19.2

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 (394) hide show
  1. package/es/_internal/clear/src/Clear.d.ts +1 -4
  2. package/es/_internal/clear/src/Clear.js +1 -4
  3. package/es/_internal/icons/Checkmark.js +3 -2
  4. package/es/_internal/select-menu/src/SelectMenu.d.ts +173 -0
  5. package/es/_internal/select-menu/src/SelectMenu.js +9 -6
  6. package/es/_internal/select-menu/src/SelectOption.js +2 -1
  7. package/es/_internal/select-menu/src/styles/index.cssr.js +32 -28
  8. package/es/_internal/select-menu/styles/light.d.ts +2 -0
  9. package/es/_internal/select-menu/styles/light.js +1 -1
  10. package/es/_internal/selection/src/Selection.d.ts +64 -56
  11. package/es/_internal/selection/src/Selection.js +34 -14
  12. package/es/_internal/selection/src/styles/index.cssr.js +16 -14
  13. package/es/_internal/selection/styles/_common.d.ts +1 -8
  14. package/es/_internal/selection/styles/_common.js +2 -9
  15. package/es/_internal/selection/styles/dark.js +10 -2
  16. package/es/_internal/selection/styles/light.d.ts +18 -16
  17. package/es/_internal/selection/styles/light.js +10 -2
  18. package/es/_mixins/use-rtl.js +1 -1
  19. package/es/_styles/common/light.js +1 -1
  20. package/es/_utils/naive/mutable.d.ts +2 -2
  21. package/es/alert/src/Alert.js +15 -16
  22. package/es/anchor/src/AnchorAdapter.d.ts +13 -8
  23. package/es/anchor/src/AnchorAdapter.js +3 -5
  24. package/es/anchor/src/BaseAnchor.d.ts +14 -1
  25. package/es/anchor/src/BaseAnchor.js +20 -7
  26. package/es/anchor/src/Link.js +5 -5
  27. package/es/anchor/src/styles/index.cssr.js +25 -16
  28. package/es/auto-complete/index.d.ts +1 -0
  29. package/es/auto-complete/src/AutoComplete.d.ts +10 -0
  30. package/es/auto-complete/src/interface.d.ts +1 -1
  31. package/es/auto-complete/styles/light.d.ts +1 -0
  32. package/es/badge/src/styles/index.cssr.js +1 -0
  33. package/es/card/src/Card.d.ts +17 -1
  34. package/es/card/src/Card.js +3 -2
  35. package/es/card/styles/dark.js +6 -1
  36. package/es/card/styles/light.d.ts +1 -0
  37. package/es/card/styles/light.js +2 -2
  38. package/es/cascader/src/Cascader.d.ts +100 -80
  39. package/es/cascader/src/Cascader.js +28 -19
  40. package/es/cascader/src/CascaderMenu.js +17 -15
  41. package/es/cascader/src/CascaderOption.d.ts +10 -8
  42. package/es/cascader/src/CascaderSelectMenu.d.ts +10 -8
  43. package/es/cascader/src/CascaderSubmenu.d.ts +10 -8
  44. package/es/cascader/src/interface.d.ts +2 -2
  45. package/es/cascader/src/styles/index.cssr.js +6 -1
  46. package/es/cascader/styles/light.d.ts +10 -8
  47. package/es/checkbox/src/Checkbox.d.ts +1 -0
  48. package/es/checkbox/src/Checkbox.js +5 -3
  49. package/es/checkbox/src/CheckboxGroup.js +1 -1
  50. package/es/composables/use-theme-vars.js +5 -5
  51. package/es/config-provider/src/internal-interface.d.ts +2 -0
  52. package/es/data-table/src/DataTable.d.ts +110 -88
  53. package/es/data-table/src/HeaderButton/FilterButton.d.ts +20 -16
  54. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +20 -16
  55. package/es/data-table/src/TableParts/Body.d.ts +20 -16
  56. package/es/data-table/src/TableParts/Cell.d.ts +40 -32
  57. package/es/data-table/src/TableParts/Header.d.ts +20 -16
  58. package/es/data-table/styles/light.d.ts +10 -8
  59. package/es/date-picker/src/DatePicker.d.ts +8 -3
  60. package/es/date-picker/src/DatePicker.js +2 -2
  61. package/es/date-picker/src/panel/date.d.ts +3 -3
  62. package/es/date-picker/src/panel/date.js +10 -1
  63. package/es/date-picker/src/panel/daterange.js +10 -1
  64. package/es/date-picker/src/panel/datetimerange.js +10 -1
  65. package/es/descriptions/src/Descriptions.d.ts +4 -17
  66. package/es/descriptions/src/Descriptions.js +2 -8
  67. package/es/dialog/src/DialogProvider.d.ts +20 -20
  68. package/es/drawer/src/styles/index.cssr.js +2 -0
  69. package/es/dropdown/src/Dropdown.d.ts +9 -23
  70. package/es/dynamic-tags/src/DynamicTags.js +2 -1
  71. package/es/empty/src/Empty.d.ts +6 -1
  72. package/es/empty/src/Empty.js +16 -4
  73. package/es/form/src/FormItemGridItem.d.ts +1 -1
  74. package/es/form/src/FormItemGridItem.js +2 -2
  75. package/es/global-style/src/GlobalStyle.js +13 -3
  76. package/es/grid/src/GridItem.d.ts +2 -2
  77. package/es/grid/src/GridItem.js +1 -1
  78. package/es/input-number/src/InputNumber.d.ts +8 -3
  79. package/es/input-number/src/InputNumber.js +4 -4
  80. package/es/jest-setup.js +3 -1
  81. package/es/layout/src/Layout.d.ts +18 -4
  82. package/es/layout/src/LayoutContent.d.ts +9 -2
  83. package/es/layout/src/LayoutFooter.d.ts +9 -0
  84. package/es/layout/src/LayoutHeader.d.ts +6 -0
  85. package/es/layout/src/LayoutSider.d.ts +11 -0
  86. package/es/layout/src/LayoutSider.js +4 -2
  87. package/es/layout/src/ToggleButton.js +7 -3
  88. package/es/layout/src/styles/layout-sider.cssr.js +31 -15
  89. package/es/layout/styles/dark.js +3 -2
  90. package/es/layout/styles/light.d.ts +2 -0
  91. package/es/layout/styles/light.js +3 -2
  92. package/es/locales/common/enUS.js +1 -1
  93. package/es/locales/common/ruRU.js +1 -1
  94. package/es/locales/common/ukUA.d.ts +3 -0
  95. package/es/locales/common/ukUA.js +92 -0
  96. package/es/locales/common/zhCN.js +1 -1
  97. package/es/locales/date/ukUA.d.ts +3 -0
  98. package/es/locales/date/ukUA.js +6 -0
  99. package/es/locales/index.d.ts +2 -0
  100. package/es/locales/index.js +2 -0
  101. package/es/mention/src/Mention.d.ts +10 -0
  102. package/es/mention/styles/light.d.ts +1 -0
  103. package/es/menu/src/Menu.d.ts +6 -1
  104. package/es/menu/src/Menu.js +10 -1
  105. package/es/menu/src/MenuOption.d.ts +3 -1
  106. package/es/menu/src/MenuOptionContent.d.ts +3 -1
  107. package/es/menu/src/Submenu.d.ts +3 -1
  108. package/es/modal/src/BodyWrapper.d.ts +5 -0
  109. package/es/modal/src/Modal.d.ts +36 -55
  110. package/es/modal/src/Modal.js +18 -39
  111. package/es/modal/src/presetProps.d.ts +2 -1
  112. package/es/modal/styles/light.d.ts +1 -0
  113. package/es/notification/src/Notification.d.ts +1 -1
  114. package/es/notification/src/NotificationEnvironment.d.ts +1 -1
  115. package/es/notification/src/NotificationProvider.d.ts +16 -16
  116. package/es/page-header/src/PageHeader.d.ts +1 -0
  117. package/es/page-header/src/PageHeader.js +8 -2
  118. package/es/page-header/src/styles/rtl.cssr.d.ts +2 -0
  119. package/es/page-header/src/styles/rtl.cssr.js +19 -0
  120. package/es/page-header/styles/index.d.ts +1 -0
  121. package/es/page-header/styles/index.js +1 -0
  122. package/es/page-header/styles/rtl.d.ts +5 -0
  123. package/es/page-header/styles/rtl.js +5 -0
  124. package/es/pagination/src/Pagination.d.ts +111 -100
  125. package/es/pagination/styles/light.d.ts +10 -8
  126. package/es/popconfirm/src/Popconfirm.d.ts +8 -22
  127. package/es/popover/src/Popover.d.ts +12 -32
  128. package/es/popover/src/Popover.js +25 -18
  129. package/es/popover/src/PopoverBody.d.ts +2 -2
  130. package/es/popover/src/PopoverBody.js +4 -2
  131. package/es/popselect/src/Popselect.d.ts +18 -22
  132. package/es/popselect/src/PopselectPanel.d.ts +1 -0
  133. package/es/popselect/src/PopselectPanel.js +38 -19
  134. package/es/popselect/styles/light.d.ts +1 -0
  135. package/es/select/src/Select.d.ts +111 -83
  136. package/es/select/src/Select.js +55 -56
  137. package/es/select/src/interface.d.ts +2 -2
  138. package/es/select/styles/light.d.ts +10 -8
  139. package/es/spin/src/Spin.d.ts +34 -25
  140. package/es/spin/src/Spin.js +27 -20
  141. package/es/spin/src/styles/index.cssr.js +23 -9
  142. package/es/spin/styles/light.d.ts +2 -0
  143. package/es/spin/styles/light.js +3 -1
  144. package/es/styles.d.ts +1 -0
  145. package/es/styles.js +1 -0
  146. package/es/tabs/src/Tab.d.ts +1 -1
  147. package/es/tabs/src/Tab.js +4 -6
  148. package/es/tabs/src/Tabs.d.ts +133 -42
  149. package/es/tabs/src/Tabs.js +37 -38
  150. package/es/tabs/src/interface.d.ts +2 -1
  151. package/es/tabs/src/styles/index.cssr.js +34 -10
  152. package/es/tabs/styles/_common.d.ts +6 -0
  153. package/es/tabs/styles/_common.js +6 -0
  154. package/es/tabs/styles/dark.js +7 -1
  155. package/es/tabs/styles/light.d.ts +13 -0
  156. package/es/tabs/styles/light.js +3 -3
  157. package/es/tag/src/styles/index.cssr.js +1 -1
  158. package/es/time/src/Time.d.ts +14 -22
  159. package/es/time/src/Time.js +32 -18
  160. package/es/time-picker/src/TimePicker.d.ts +5 -0
  161. package/es/time-picker/src/TimePicker.js +2 -2
  162. package/es/tooltip/src/Tooltip.d.ts +8 -22
  163. package/es/transfer/src/TransferList.d.ts +1 -1
  164. package/es/tree/src/Tree.d.ts +25 -10
  165. package/es/tree/src/Tree.js +34 -11
  166. package/es/tree/src/TreeNode.js +5 -2
  167. package/es/tree/src/interface.d.ts +2 -2
  168. package/es/tree-select/src/TreeSelect.d.ts +103 -81
  169. package/es/tree-select/src/TreeSelect.js +36 -40
  170. package/es/tree-select/src/interface.d.ts +2 -2
  171. package/es/tree-select/styles/light.d.ts +9 -8
  172. package/es/typography/src/blockquote.d.ts +2 -8
  173. package/es/typography/src/blockquote.js +1 -4
  174. package/es/typography/src/ol.d.ts +2 -8
  175. package/es/typography/src/ol.js +1 -4
  176. package/es/typography/src/p.d.ts +2 -2
  177. package/es/typography/src/p.js +1 -1
  178. package/es/typography/src/text.d.ts +14 -58
  179. package/es/typography/src/text.js +2 -23
  180. package/es/typography/src/ul.d.ts +2 -8
  181. package/es/typography/src/ul.js +1 -4
  182. package/es/upload/index.d.ts +2 -0
  183. package/es/upload/index.js +2 -0
  184. package/es/upload/src/Upload.d.ts +16 -68
  185. package/es/upload/src/Upload.js +71 -98
  186. package/es/upload/src/UploadDragger.js +7 -1
  187. package/es/upload/src/UploadFileList.d.ts +2 -0
  188. package/es/upload/src/UploadFileList.js +34 -0
  189. package/es/upload/src/UploadProgress.d.ts +0 -7
  190. package/es/upload/src/UploadProgress.js +1 -5
  191. package/es/upload/src/UploadTrigger.d.ts +12 -0
  192. package/es/upload/src/UploadTrigger.js +63 -0
  193. package/es/upload/src/interface.d.ts +13 -2
  194. package/es/upload/src/styles/index.cssr.js +40 -32
  195. package/es/version.d.ts +1 -1
  196. package/es/version.js +1 -1
  197. package/lib/_internal/clear/src/Clear.d.ts +1 -4
  198. package/lib/_internal/clear/src/Clear.js +1 -4
  199. package/lib/_internal/icons/Checkmark.js +3 -2
  200. package/lib/_internal/select-menu/src/SelectMenu.d.ts +173 -0
  201. package/lib/_internal/select-menu/src/SelectMenu.js +9 -6
  202. package/lib/_internal/select-menu/src/SelectOption.js +2 -1
  203. package/lib/_internal/select-menu/src/styles/index.cssr.js +32 -28
  204. package/lib/_internal/select-menu/styles/light.d.ts +2 -0
  205. package/lib/_internal/select-menu/styles/light.js +1 -1
  206. package/lib/_internal/selection/src/Selection.d.ts +64 -56
  207. package/lib/_internal/selection/src/Selection.js +34 -14
  208. package/lib/_internal/selection/src/styles/index.cssr.js +16 -14
  209. package/lib/_internal/selection/styles/_common.d.ts +1 -8
  210. package/lib/_internal/selection/styles/_common.js +2 -9
  211. package/lib/_internal/selection/styles/dark.js +10 -2
  212. package/lib/_internal/selection/styles/light.d.ts +18 -16
  213. package/lib/_internal/selection/styles/light.js +10 -2
  214. package/lib/_mixins/use-rtl.js +1 -1
  215. package/lib/_styles/common/light.js +1 -1
  216. package/lib/_utils/naive/mutable.d.ts +2 -2
  217. package/lib/alert/src/Alert.js +15 -16
  218. package/lib/anchor/src/AnchorAdapter.d.ts +13 -8
  219. package/lib/anchor/src/AnchorAdapter.js +3 -5
  220. package/lib/anchor/src/BaseAnchor.d.ts +14 -1
  221. package/lib/anchor/src/BaseAnchor.js +19 -6
  222. package/lib/anchor/src/Link.js +5 -5
  223. package/lib/anchor/src/styles/index.cssr.js +25 -16
  224. package/lib/auto-complete/index.d.ts +1 -0
  225. package/lib/auto-complete/src/AutoComplete.d.ts +10 -0
  226. package/lib/auto-complete/src/interface.d.ts +1 -1
  227. package/lib/auto-complete/styles/light.d.ts +1 -0
  228. package/lib/badge/src/styles/index.cssr.js +1 -0
  229. package/lib/card/src/Card.d.ts +17 -1
  230. package/lib/card/src/Card.js +3 -2
  231. package/lib/card/styles/dark.js +6 -1
  232. package/lib/card/styles/light.d.ts +1 -0
  233. package/lib/card/styles/light.js +2 -2
  234. package/lib/cascader/src/Cascader.d.ts +100 -80
  235. package/lib/cascader/src/Cascader.js +28 -19
  236. package/lib/cascader/src/CascaderMenu.js +16 -14
  237. package/lib/cascader/src/CascaderOption.d.ts +10 -8
  238. package/lib/cascader/src/CascaderSelectMenu.d.ts +10 -8
  239. package/lib/cascader/src/CascaderSubmenu.d.ts +10 -8
  240. package/lib/cascader/src/interface.d.ts +2 -2
  241. package/lib/cascader/src/styles/index.cssr.js +6 -1
  242. package/lib/cascader/styles/light.d.ts +10 -8
  243. package/lib/checkbox/src/Checkbox.d.ts +1 -0
  244. package/lib/checkbox/src/Checkbox.js +5 -3
  245. package/lib/checkbox/src/CheckboxGroup.js +1 -1
  246. package/lib/composables/use-theme-vars.js +5 -5
  247. package/lib/config-provider/src/internal-interface.d.ts +2 -0
  248. package/lib/data-table/src/DataTable.d.ts +110 -88
  249. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +20 -16
  250. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +20 -16
  251. package/lib/data-table/src/TableParts/Body.d.ts +20 -16
  252. package/lib/data-table/src/TableParts/Cell.d.ts +40 -32
  253. package/lib/data-table/src/TableParts/Header.d.ts +20 -16
  254. package/lib/data-table/styles/light.d.ts +10 -8
  255. package/lib/date-picker/src/DatePicker.d.ts +8 -3
  256. package/lib/date-picker/src/DatePicker.js +2 -2
  257. package/lib/date-picker/src/panel/date.d.ts +3 -3
  258. package/lib/date-picker/src/panel/date.js +9 -0
  259. package/lib/date-picker/src/panel/daterange.js +9 -0
  260. package/lib/date-picker/src/panel/datetimerange.js +9 -0
  261. package/lib/descriptions/src/Descriptions.d.ts +4 -17
  262. package/lib/descriptions/src/Descriptions.js +2 -8
  263. package/lib/dialog/src/DialogProvider.d.ts +20 -20
  264. package/lib/drawer/src/styles/index.cssr.js +2 -0
  265. package/lib/dropdown/src/Dropdown.d.ts +9 -23
  266. package/lib/dynamic-tags/src/DynamicTags.js +2 -1
  267. package/lib/empty/src/Empty.d.ts +6 -1
  268. package/lib/empty/src/Empty.js +15 -3
  269. package/lib/form/src/FormItemGridItem.d.ts +1 -1
  270. package/lib/form/src/FormItemGridItem.js +2 -2
  271. package/lib/global-style/src/GlobalStyle.js +13 -3
  272. package/lib/grid/src/GridItem.d.ts +2 -2
  273. package/lib/grid/src/GridItem.js +1 -1
  274. package/lib/input-number/src/InputNumber.d.ts +8 -3
  275. package/lib/input-number/src/InputNumber.js +4 -4
  276. package/lib/jest-setup.js +3 -1
  277. package/lib/layout/src/Layout.d.ts +18 -4
  278. package/lib/layout/src/LayoutContent.d.ts +9 -2
  279. package/lib/layout/src/LayoutFooter.d.ts +9 -0
  280. package/lib/layout/src/LayoutHeader.d.ts +6 -0
  281. package/lib/layout/src/LayoutSider.d.ts +11 -0
  282. package/lib/layout/src/LayoutSider.js +4 -2
  283. package/lib/layout/src/ToggleButton.js +7 -3
  284. package/lib/layout/src/styles/layout-sider.cssr.js +31 -15
  285. package/lib/layout/styles/dark.js +3 -2
  286. package/lib/layout/styles/light.d.ts +2 -0
  287. package/lib/layout/styles/light.js +3 -2
  288. package/lib/locales/common/enUS.js +1 -1
  289. package/lib/locales/common/ruRU.js +1 -1
  290. package/lib/locales/common/ukUA.d.ts +3 -0
  291. package/lib/locales/common/ukUA.js +94 -0
  292. package/lib/locales/common/zhCN.js +1 -1
  293. package/lib/locales/date/ukUA.d.ts +3 -0
  294. package/lib/locales/date/ukUA.js +8 -0
  295. package/lib/locales/index.d.ts +2 -0
  296. package/lib/locales/index.js +5 -1
  297. package/lib/mention/src/Mention.d.ts +10 -0
  298. package/lib/mention/styles/light.d.ts +1 -0
  299. package/lib/menu/src/Menu.d.ts +6 -1
  300. package/lib/menu/src/Menu.js +10 -1
  301. package/lib/menu/src/MenuOption.d.ts +3 -1
  302. package/lib/menu/src/MenuOptionContent.d.ts +3 -1
  303. package/lib/menu/src/Submenu.d.ts +3 -1
  304. package/lib/modal/src/BodyWrapper.d.ts +5 -0
  305. package/lib/modal/src/Modal.d.ts +36 -55
  306. package/lib/modal/src/Modal.js +17 -38
  307. package/lib/modal/src/presetProps.d.ts +2 -1
  308. package/lib/modal/styles/light.d.ts +1 -0
  309. package/lib/notification/src/Notification.d.ts +1 -1
  310. package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
  311. package/lib/notification/src/NotificationProvider.d.ts +16 -16
  312. package/lib/page-header/src/PageHeader.d.ts +1 -0
  313. package/lib/page-header/src/PageHeader.js +8 -2
  314. package/lib/page-header/src/styles/rtl.cssr.d.ts +2 -0
  315. package/lib/page-header/src/styles/rtl.cssr.js +26 -0
  316. package/lib/page-header/styles/index.d.ts +1 -0
  317. package/lib/page-header/styles/index.js +3 -1
  318. package/lib/page-header/styles/rtl.d.ts +5 -0
  319. package/lib/page-header/styles/rtl.js +7 -0
  320. package/lib/pagination/src/Pagination.d.ts +111 -100
  321. package/lib/pagination/styles/light.d.ts +10 -8
  322. package/lib/popconfirm/src/Popconfirm.d.ts +8 -22
  323. package/lib/popover/src/Popover.d.ts +12 -32
  324. package/lib/popover/src/Popover.js +23 -16
  325. package/lib/popover/src/PopoverBody.d.ts +2 -2
  326. package/lib/popover/src/PopoverBody.js +4 -2
  327. package/lib/popselect/src/Popselect.d.ts +18 -22
  328. package/lib/popselect/src/PopselectPanel.d.ts +1 -0
  329. package/lib/popselect/src/PopselectPanel.js +38 -19
  330. package/lib/popselect/styles/light.d.ts +1 -0
  331. package/lib/select/src/Select.d.ts +111 -83
  332. package/lib/select/src/Select.js +55 -56
  333. package/lib/select/src/interface.d.ts +2 -2
  334. package/lib/select/styles/light.d.ts +10 -8
  335. package/lib/spin/src/Spin.d.ts +34 -25
  336. package/lib/spin/src/Spin.js +25 -18
  337. package/lib/spin/src/styles/index.cssr.js +23 -9
  338. package/lib/spin/styles/light.d.ts +2 -0
  339. package/lib/spin/styles/light.js +3 -1
  340. package/lib/styles.d.ts +1 -0
  341. package/lib/styles.js +63 -61
  342. package/lib/tabs/src/Tab.d.ts +1 -1
  343. package/lib/tabs/src/Tab.js +4 -6
  344. package/lib/tabs/src/Tabs.d.ts +133 -42
  345. package/lib/tabs/src/Tabs.js +36 -37
  346. package/lib/tabs/src/interface.d.ts +2 -1
  347. package/lib/tabs/src/styles/index.cssr.js +34 -10
  348. package/lib/tabs/styles/_common.d.ts +6 -0
  349. package/lib/tabs/styles/_common.js +6 -0
  350. package/lib/tabs/styles/dark.js +7 -1
  351. package/lib/tabs/styles/light.d.ts +13 -0
  352. package/lib/tabs/styles/light.js +3 -3
  353. package/lib/tag/src/styles/index.cssr.js +1 -1
  354. package/lib/time/src/Time.d.ts +14 -22
  355. package/lib/time/src/Time.js +31 -17
  356. package/lib/time-picker/src/TimePicker.d.ts +5 -0
  357. package/lib/time-picker/src/TimePicker.js +2 -2
  358. package/lib/tooltip/src/Tooltip.d.ts +8 -22
  359. package/lib/transfer/src/TransferList.d.ts +1 -1
  360. package/lib/tree/src/Tree.d.ts +25 -10
  361. package/lib/tree/src/Tree.js +34 -11
  362. package/lib/tree/src/TreeNode.js +5 -2
  363. package/lib/tree/src/interface.d.ts +2 -2
  364. package/lib/tree-select/src/TreeSelect.d.ts +103 -81
  365. package/lib/tree-select/src/TreeSelect.js +36 -40
  366. package/lib/tree-select/src/interface.d.ts +2 -2
  367. package/lib/tree-select/styles/light.d.ts +9 -8
  368. package/lib/typography/src/blockquote.d.ts +2 -8
  369. package/lib/typography/src/blockquote.js +1 -4
  370. package/lib/typography/src/ol.d.ts +2 -8
  371. package/lib/typography/src/ol.js +1 -4
  372. package/lib/typography/src/p.d.ts +2 -2
  373. package/lib/typography/src/p.js +1 -1
  374. package/lib/typography/src/text.d.ts +14 -58
  375. package/lib/typography/src/text.js +2 -23
  376. package/lib/typography/src/ul.d.ts +2 -8
  377. package/lib/typography/src/ul.js +1 -4
  378. package/lib/upload/index.d.ts +2 -0
  379. package/lib/upload/index.js +5 -1
  380. package/lib/upload/src/Upload.d.ts +16 -68
  381. package/lib/upload/src/Upload.js +68 -95
  382. package/lib/upload/src/UploadDragger.js +7 -1
  383. package/lib/upload/src/UploadFileList.d.ts +2 -0
  384. package/lib/upload/src/UploadFileList.js +36 -0
  385. package/lib/upload/src/UploadProgress.d.ts +0 -7
  386. package/lib/upload/src/UploadProgress.js +1 -5
  387. package/lib/upload/src/UploadTrigger.d.ts +12 -0
  388. package/lib/upload/src/UploadTrigger.js +65 -0
  389. package/lib/upload/src/interface.d.ts +13 -2
  390. package/lib/upload/src/styles/index.cssr.js +40 -32
  391. package/lib/version.d.ts +1 -1
  392. package/lib/version.js +1 -1
  393. package/package.json +9 -7
  394. package/web-types.json +239 -13
@@ -122,6 +122,7 @@ declare const cascaderProps: {
122
122
  optionOpacityDisabled: string;
123
123
  optionCheckColor: string;
124
124
  optionColorPending: string;
125
+ optionColorActive: string;
125
126
  actionTextColor: string;
126
127
  loadingColor: string;
127
128
  height: string;
@@ -154,6 +155,14 @@ declare const cascaderProps: {
154
155
  }, any>;
155
156
  }>;
156
157
  InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
158
+ fontSizeTiny: string;
159
+ fontSizeSmall: string;
160
+ fontSizeMedium: string;
161
+ fontSizeLarge: string;
162
+ heightTiny: string;
163
+ heightSmall: string;
164
+ heightMedium: string;
165
+ heightLarge: string;
157
166
  borderRadius: string;
158
167
  textColor: string;
159
168
  textColorDisabled: string;
@@ -194,16 +203,9 @@ declare const cascaderProps: {
194
203
  clearColor: string;
195
204
  clearColorHover: string;
196
205
  clearColorPressed: string;
197
- heightTiny: string;
198
- heightSmall: string;
199
- heightMedium: string;
200
- heightLarge: string;
201
- fontSizeTiny: string;
202
- fontSizeSmall: string;
203
- fontSizeMedium: string;
204
- fontSizeLarge: string;
205
206
  paddingSingle: string;
206
207
  clearSize: string;
208
+ arrowSize: string;
207
209
  }, {
208
210
  Popover: import("../../_mixins").Theme<"Popover", {
209
211
  fontSize: string;
@@ -290,6 +292,7 @@ declare const cascaderProps: {
290
292
  optionOpacityDisabled: string;
291
293
  optionCheckColor: string;
292
294
  optionColorPending: string;
295
+ optionColorActive: string;
293
296
  actionTextColor: string;
294
297
  loadingColor: string;
295
298
  height: string;
@@ -322,6 +325,14 @@ declare const cascaderProps: {
322
325
  }, any>;
323
326
  }>;
324
327
  InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
328
+ fontSizeTiny: string;
329
+ fontSizeSmall: string;
330
+ fontSizeMedium: string;
331
+ fontSizeLarge: string;
332
+ heightTiny: string;
333
+ heightSmall: string;
334
+ heightMedium: string;
335
+ heightLarge: string;
325
336
  borderRadius: string;
326
337
  textColor: string;
327
338
  textColorDisabled: string;
@@ -362,16 +373,9 @@ declare const cascaderProps: {
362
373
  clearColor: string;
363
374
  clearColorHover: string;
364
375
  clearColorPressed: string;
365
- heightTiny: string;
366
- heightSmall: string;
367
- heightMedium: string;
368
- heightLarge: string;
369
- fontSizeTiny: string;
370
- fontSizeSmall: string;
371
- fontSizeMedium: string;
372
- fontSizeLarge: string;
373
376
  paddingSingle: string;
374
377
  clearSize: string;
378
+ arrowSize: string;
375
379
  }, {
376
380
  Popover: import("../../_mixins").Theme<"Popover", {
377
381
  fontSize: string;
@@ -458,6 +462,7 @@ declare const cascaderProps: {
458
462
  optionOpacityDisabled: string;
459
463
  optionCheckColor: string;
460
464
  optionColorPending: string;
465
+ optionColorActive: string;
461
466
  actionTextColor: string;
462
467
  loadingColor: string;
463
468
  height: string;
@@ -490,6 +495,14 @@ declare const cascaderProps: {
490
495
  }, any>;
491
496
  }>;
492
497
  InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
498
+ fontSizeTiny: string;
499
+ fontSizeSmall: string;
500
+ fontSizeMedium: string;
501
+ fontSizeLarge: string;
502
+ heightTiny: string;
503
+ heightSmall: string;
504
+ heightMedium: string;
505
+ heightLarge: string;
493
506
  borderRadius: string;
494
507
  textColor: string;
495
508
  textColorDisabled: string;
@@ -530,16 +543,9 @@ declare const cascaderProps: {
530
543
  clearColor: string;
531
544
  clearColorHover: string;
532
545
  clearColorPressed: string;
533
- heightTiny: string;
534
- heightSmall: string;
535
- heightMedium: string;
536
- heightLarge: string;
537
- fontSizeTiny: string;
538
- fontSizeSmall: string;
539
- fontSizeMedium: string;
540
- fontSizeLarge: string;
541
546
  paddingSingle: string;
542
547
  clearSize: string;
548
+ arrowSize: string;
543
549
  }, {
544
550
  Popover: import("../../_mixins").Theme<"Popover", {
545
551
  fontSize: string;
@@ -709,6 +715,7 @@ declare const _default: import("vue").DefineComponent<{
709
715
  optionOpacityDisabled: string;
710
716
  optionCheckColor: string;
711
717
  optionColorPending: string;
718
+ optionColorActive: string;
712
719
  actionTextColor: string;
713
720
  loadingColor: string;
714
721
  height: string;
@@ -741,6 +748,14 @@ declare const _default: import("vue").DefineComponent<{
741
748
  }, any>;
742
749
  }>;
743
750
  InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
751
+ fontSizeTiny: string;
752
+ fontSizeSmall: string;
753
+ fontSizeMedium: string;
754
+ fontSizeLarge: string;
755
+ heightTiny: string;
756
+ heightSmall: string;
757
+ heightMedium: string;
758
+ heightLarge: string;
744
759
  borderRadius: string;
745
760
  textColor: string;
746
761
  textColorDisabled: string;
@@ -781,16 +796,9 @@ declare const _default: import("vue").DefineComponent<{
781
796
  clearColor: string;
782
797
  clearColorHover: string;
783
798
  clearColorPressed: string;
784
- heightTiny: string;
785
- heightSmall: string;
786
- heightMedium: string;
787
- heightLarge: string;
788
- fontSizeTiny: string;
789
- fontSizeSmall: string;
790
- fontSizeMedium: string;
791
- fontSizeLarge: string;
792
799
  paddingSingle: string;
793
800
  clearSize: string;
801
+ arrowSize: string;
794
802
  }, {
795
803
  Popover: import("../../_mixins").Theme<"Popover", {
796
804
  fontSize: string;
@@ -877,6 +885,7 @@ declare const _default: import("vue").DefineComponent<{
877
885
  optionOpacityDisabled: string;
878
886
  optionCheckColor: string;
879
887
  optionColorPending: string;
888
+ optionColorActive: string;
880
889
  actionTextColor: string;
881
890
  loadingColor: string;
882
891
  height: string;
@@ -909,6 +918,14 @@ declare const _default: import("vue").DefineComponent<{
909
918
  }, any>;
910
919
  }>;
911
920
  InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
921
+ fontSizeTiny: string;
922
+ fontSizeSmall: string;
923
+ fontSizeMedium: string;
924
+ fontSizeLarge: string;
925
+ heightTiny: string;
926
+ heightSmall: string;
927
+ heightMedium: string;
928
+ heightLarge: string;
912
929
  borderRadius: string;
913
930
  textColor: string;
914
931
  textColorDisabled: string;
@@ -949,16 +966,9 @@ declare const _default: import("vue").DefineComponent<{
949
966
  clearColor: string;
950
967
  clearColorHover: string;
951
968
  clearColorPressed: string;
952
- heightTiny: string;
953
- heightSmall: string;
954
- heightMedium: string;
955
- heightLarge: string;
956
- fontSizeTiny: string;
957
- fontSizeSmall: string;
958
- fontSizeMedium: string;
959
- fontSizeLarge: string;
960
969
  paddingSingle: string;
961
970
  clearSize: string;
971
+ arrowSize: string;
962
972
  }, {
963
973
  Popover: import("../../_mixins").Theme<"Popover", {
964
974
  fontSize: string;
@@ -1045,6 +1055,7 @@ declare const _default: import("vue").DefineComponent<{
1045
1055
  optionOpacityDisabled: string;
1046
1056
  optionCheckColor: string;
1047
1057
  optionColorPending: string;
1058
+ optionColorActive: string;
1048
1059
  actionTextColor: string;
1049
1060
  loadingColor: string;
1050
1061
  height: string;
@@ -1077,6 +1088,14 @@ declare const _default: import("vue").DefineComponent<{
1077
1088
  }, any>;
1078
1089
  }>;
1079
1090
  InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
1091
+ fontSizeTiny: string;
1092
+ fontSizeSmall: string;
1093
+ fontSizeMedium: string;
1094
+ fontSizeLarge: string;
1095
+ heightTiny: string;
1096
+ heightSmall: string;
1097
+ heightMedium: string;
1098
+ heightLarge: string;
1080
1099
  borderRadius: string;
1081
1100
  textColor: string;
1082
1101
  textColorDisabled: string;
@@ -1117,16 +1136,9 @@ declare const _default: import("vue").DefineComponent<{
1117
1136
  clearColor: string;
1118
1137
  clearColorHover: string;
1119
1138
  clearColorPressed: string;
1120
- heightTiny: string;
1121
- heightSmall: string;
1122
- heightMedium: string;
1123
- heightLarge: string;
1124
- fontSizeTiny: string;
1125
- fontSizeSmall: string;
1126
- fontSizeMedium: string;
1127
- fontSizeLarge: string;
1128
1139
  paddingSingle: string;
1129
1140
  clearSize: string;
1141
+ arrowSize: string;
1130
1142
  }, {
1131
1143
  Popover: import("../../_mixins").Theme<"Popover", {
1132
1144
  fontSize: string;
@@ -1372,6 +1384,7 @@ declare const _default: import("vue").DefineComponent<{
1372
1384
  optionOpacityDisabled: string;
1373
1385
  optionCheckColor: string;
1374
1386
  optionColorPending: string;
1387
+ optionColorActive: string;
1375
1388
  actionTextColor: string;
1376
1389
  loadingColor: string;
1377
1390
  height: string;
@@ -1404,6 +1417,14 @@ declare const _default: import("vue").DefineComponent<{
1404
1417
  }, any>;
1405
1418
  }>;
1406
1419
  InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
1420
+ fontSizeTiny: string;
1421
+ fontSizeSmall: string;
1422
+ fontSizeMedium: string;
1423
+ fontSizeLarge: string;
1424
+ heightTiny: string;
1425
+ heightSmall: string;
1426
+ heightMedium: string;
1427
+ heightLarge: string;
1407
1428
  borderRadius: string;
1408
1429
  textColor: string;
1409
1430
  textColorDisabled: string;
@@ -1444,16 +1465,9 @@ declare const _default: import("vue").DefineComponent<{
1444
1465
  clearColor: string;
1445
1466
  clearColorHover: string;
1446
1467
  clearColorPressed: string;
1447
- heightTiny: string;
1448
- heightSmall: string;
1449
- heightMedium: string;
1450
- heightLarge: string;
1451
- fontSizeTiny: string;
1452
- fontSizeSmall: string;
1453
- fontSizeMedium: string;
1454
- fontSizeLarge: string;
1455
1468
  paddingSingle: string;
1456
1469
  clearSize: string;
1470
+ arrowSize: string;
1457
1471
  }, {
1458
1472
  Popover: import("../../_mixins").Theme<"Popover", {
1459
1473
  fontSize: string;
@@ -1677,6 +1691,7 @@ declare const _default: import("vue").DefineComponent<{
1677
1691
  optionOpacityDisabled: string;
1678
1692
  optionCheckColor: string;
1679
1693
  optionColorPending: string;
1694
+ optionColorActive: string;
1680
1695
  actionTextColor: string;
1681
1696
  loadingColor: string;
1682
1697
  height: string;
@@ -1709,6 +1724,14 @@ declare const _default: import("vue").DefineComponent<{
1709
1724
  }, any>;
1710
1725
  }>;
1711
1726
  InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
1727
+ fontSizeTiny: string;
1728
+ fontSizeSmall: string;
1729
+ fontSizeMedium: string;
1730
+ fontSizeLarge: string;
1731
+ heightTiny: string;
1732
+ heightSmall: string;
1733
+ heightMedium: string;
1734
+ heightLarge: string;
1712
1735
  borderRadius: string;
1713
1736
  textColor: string;
1714
1737
  textColorDisabled: string;
@@ -1749,16 +1772,9 @@ declare const _default: import("vue").DefineComponent<{
1749
1772
  clearColor: string;
1750
1773
  clearColorHover: string;
1751
1774
  clearColorPressed: string;
1752
- heightTiny: string;
1753
- heightSmall: string;
1754
- heightMedium: string;
1755
- heightLarge: string;
1756
- fontSizeTiny: string;
1757
- fontSizeSmall: string;
1758
- fontSizeMedium: string;
1759
- fontSizeLarge: string;
1760
1775
  paddingSingle: string;
1761
1776
  clearSize: string;
1777
+ arrowSize: string;
1762
1778
  }, {
1763
1779
  Popover: import("../../_mixins").Theme<"Popover", {
1764
1780
  fontSize: string;
@@ -1845,6 +1861,7 @@ declare const _default: import("vue").DefineComponent<{
1845
1861
  optionOpacityDisabled: string;
1846
1862
  optionCheckColor: string;
1847
1863
  optionColorPending: string;
1864
+ optionColorActive: string;
1848
1865
  actionTextColor: string;
1849
1866
  loadingColor: string;
1850
1867
  height: string;
@@ -1877,6 +1894,14 @@ declare const _default: import("vue").DefineComponent<{
1877
1894
  }, any>;
1878
1895
  }>;
1879
1896
  InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
1897
+ fontSizeTiny: string;
1898
+ fontSizeSmall: string;
1899
+ fontSizeMedium: string;
1900
+ fontSizeLarge: string;
1901
+ heightTiny: string;
1902
+ heightSmall: string;
1903
+ heightMedium: string;
1904
+ heightLarge: string;
1880
1905
  borderRadius: string;
1881
1906
  textColor: string;
1882
1907
  textColorDisabled: string;
@@ -1917,16 +1942,9 @@ declare const _default: import("vue").DefineComponent<{
1917
1942
  clearColor: string;
1918
1943
  clearColorHover: string;
1919
1944
  clearColorPressed: string;
1920
- heightTiny: string;
1921
- heightSmall: string;
1922
- heightMedium: string;
1923
- heightLarge: string;
1924
- fontSizeTiny: string;
1925
- fontSizeSmall: string;
1926
- fontSizeMedium: string;
1927
- fontSizeLarge: string;
1928
1945
  paddingSingle: string;
1929
1946
  clearSize: string;
1947
+ arrowSize: string;
1930
1948
  }, {
1931
1949
  Popover: import("../../_mixins").Theme<"Popover", {
1932
1950
  fontSize: string;
@@ -2013,6 +2031,7 @@ declare const _default: import("vue").DefineComponent<{
2013
2031
  optionOpacityDisabled: string;
2014
2032
  optionCheckColor: string;
2015
2033
  optionColorPending: string;
2034
+ optionColorActive: string;
2016
2035
  actionTextColor: string;
2017
2036
  loadingColor: string;
2018
2037
  height: string;
@@ -2045,6 +2064,14 @@ declare const _default: import("vue").DefineComponent<{
2045
2064
  }, any>;
2046
2065
  }>;
2047
2066
  InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
2067
+ fontSizeTiny: string;
2068
+ fontSizeSmall: string;
2069
+ fontSizeMedium: string;
2070
+ fontSizeLarge: string;
2071
+ heightTiny: string;
2072
+ heightSmall: string;
2073
+ heightMedium: string;
2074
+ heightLarge: string;
2048
2075
  borderRadius: string;
2049
2076
  textColor: string;
2050
2077
  textColorDisabled: string;
@@ -2085,16 +2112,9 @@ declare const _default: import("vue").DefineComponent<{
2085
2112
  clearColor: string;
2086
2113
  clearColorHover: string;
2087
2114
  clearColorPressed: string;
2088
- heightTiny: string;
2089
- heightSmall: string;
2090
- heightMedium: string;
2091
- heightLarge: string;
2092
- fontSizeTiny: string;
2093
- fontSizeSmall: string;
2094
- fontSizeMedium: string;
2095
- fontSizeLarge: string;
2096
2115
  paddingSingle: string;
2097
2116
  clearSize: string;
2117
+ arrowSize: string;
2098
2118
  }, {
2099
2119
  Popover: import("../../_mixins").Theme<"Popover", {
2100
2120
  fontSize: string;
@@ -161,15 +161,16 @@ export default defineComponent({
161
161
  }
162
162
  });
163
163
  }
164
- function doUpdateValue(value) {
164
+ function doUpdateValue(value, option) {
165
165
  const { onUpdateValue, 'onUpdate:value': _onUpdateValue, onChange } = props;
166
166
  const { nTriggerFormInput, nTriggerFormChange } = formItem;
167
167
  if (onUpdateValue)
168
- call(onUpdateValue, value);
169
- if (_onUpdateValue)
170
- call(_onUpdateValue, value);
168
+ call(onUpdateValue, value, option);
169
+ if (_onUpdateValue) {
170
+ call(_onUpdateValue, value, option);
171
+ }
171
172
  if (onChange)
172
- call(onChange, value);
173
+ call(onChange, value, option);
173
174
  uncontrolledValueRef.value = value;
174
175
  nTriggerFormInput();
175
176
  nTriggerFormChange();
@@ -182,22 +183,23 @@ export default defineComponent({
182
183
  }
183
184
  function doCheck(key) {
184
185
  const { cascade, multiple, filterable } = props;
186
+ const { value: { check, getNode } } = treeMateRef;
185
187
  if (multiple) {
186
188
  try {
187
- const { checkedKeys } = treeMateRef.value.check(key, mergedKeysRef.value.checkedKeys, {
189
+ const { checkedKeys } = check(key, mergedKeysRef.value.checkedKeys, {
188
190
  cascade,
189
191
  checkStrategy: mergedCheckStrategyRef.value
190
192
  });
191
- doUpdateValue(checkedKeys);
193
+ doUpdateValue(checkedKeys, checkedKeys.map((checkedKey) => { var _a; return ((_a = getNode(checkedKey)) === null || _a === void 0 ? void 0 : _a.rawNode) || null; }));
192
194
  if (filterable)
193
195
  focusSelectionInput();
194
196
  }
195
197
  catch (err) {
196
198
  if (err instanceof SubtreeNotLoadedError) {
197
199
  if (cascaderMenuInstRef.value) {
198
- const node = treeMateRef.value.getNode(key);
199
- if (node !== null) {
200
- cascaderMenuInstRef.value.showErrorMessage(node.rawNode[props.labelField]);
200
+ const tmNode = getNode(key);
201
+ if (tmNode !== null) {
202
+ cascaderMenuInstRef.value.showErrorMessage(tmNode.rawNode[props.labelField]);
201
203
  }
202
204
  }
203
205
  }
@@ -208,16 +210,17 @@ export default defineComponent({
208
210
  }
209
211
  else {
210
212
  if (mergedCheckStrategyRef.value === 'child') {
211
- const node = treeMateRef.value.getNode(key);
212
- if (node === null || node === void 0 ? void 0 : node.isLeaf) {
213
- doUpdateValue(key);
213
+ const tmNode = getNode(key);
214
+ if (tmNode === null || tmNode === void 0 ? void 0 : tmNode.isLeaf) {
215
+ doUpdateValue(key, tmNode.rawNode);
214
216
  }
215
217
  else {
216
218
  return false;
217
219
  }
218
220
  }
219
221
  else {
220
- doUpdateValue(key);
222
+ const tmNode = getNode(key);
223
+ doUpdateValue(key, (tmNode === null || tmNode === void 0 ? void 0 : tmNode.rawNode) || null);
221
224
  }
222
225
  }
223
226
  return true;
@@ -225,11 +228,12 @@ export default defineComponent({
225
228
  function doUncheck(key) {
226
229
  const { cascade, multiple } = props;
227
230
  if (multiple) {
228
- const { checkedKeys } = treeMateRef.value.uncheck(key, mergedKeysRef.value.checkedKeys, {
231
+ const { value: { uncheck, getNode } } = treeMateRef;
232
+ const { checkedKeys } = uncheck(key, mergedKeysRef.value.checkedKeys, {
229
233
  cascade,
230
234
  checkStrategy: mergedCheckStrategyRef.value
231
235
  });
232
- doUpdateValue(checkedKeys);
236
+ doUpdateValue(checkedKeys, checkedKeys.map((checkedKey) => { var _a; return ((_a = getNode(checkedKey)) === null || _a === void 0 ? void 0 : _a.rawNode) || null; }));
233
237
  }
234
238
  }
235
239
  const selectedOptionsRef = computed(() => {
@@ -521,7 +525,12 @@ export default defineComponent({
521
525
  // --- search
522
526
  function handleClear(e) {
523
527
  e.stopPropagation();
524
- doUpdateValue(null);
528
+ if (props.multiple) {
529
+ doUpdateValue([], []);
530
+ }
531
+ else {
532
+ doUpdateValue(null, null);
533
+ }
525
534
  }
526
535
  function handleTriggerFocus(e) {
527
536
  var _a;
@@ -586,7 +595,7 @@ export default defineComponent({
586
595
  doUncheck(option[valueField]);
587
596
  }
588
597
  else {
589
- doUpdateValue(null);
598
+ doUpdateValue(null, null);
590
599
  }
591
600
  }
592
601
  function handleKeyDown(e) {
@@ -712,7 +721,7 @@ export default defineComponent({
712
721
  h(VTarget, null, {
713
722
  default: () => (h(NInternalSelection, { ref: "triggerInstRef", 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 }))
714
723
  }),
715
- h(VFollower, { key: "cascaderMenu", ref: "cascaderMenuFollowerRef", show: this.mergedShow && !this.showSelectMenu, containerClass: this.namespace, placement: "bottom-start", teleportDisabled: this.adjustedTo === useAdjustedTo.tdkey, to: this.adjustedTo }, {
724
+ h(VFollower, { key: "cascaderMenu", ref: "cascaderMenuFollowerRef", show: this.mergedShow && !this.showSelectMenu, containerClass: this.namespace, placement: "bottom-start", width: !this.options.length ? 'target' : undefined, teleportDisabled: this.adjustedTo === useAdjustedTo.tdkey, to: this.adjustedTo }, {
716
725
  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 }, this.$slots.action && {
717
726
  action: this.$slots.action
718
727
  }))
@@ -1,5 +1,6 @@
1
- import { h, ref, defineComponent, watch, toRef, inject, nextTick, Transition, withDirectives } from 'vue';
1
+ import { h, ref, defineComponent, watch, toRef, inject, nextTick, Transition, withDirectives, renderSlot } from 'vue';
2
2
  import { clickoutside } from 'vdirs';
3
+ import { NEmpty } from '../../empty';
3
4
  import { NBaseMenuMask } from '../../_internal';
4
5
  import NCascaderSubmenu from './CascaderSubmenu';
5
6
  import { cascaderInjectionKey } from './interface';
@@ -99,23 +100,24 @@ export default defineComponent({
99
100
  render() {
100
101
  const { submenuInstRefs, mergedClsPrefix, $slots } = this;
101
102
  return (h(Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted }, {
102
- default: () => this.show
103
- ? withDirectives(h("div", { tabindex: "0", ref: "selfElRef", class: `${mergedClsPrefix}-cascader-menu`, onMousedown: this.onMousedown, onFocusin: this.handleFocusin, onFocusout: this.handleFocusout, onKeyup: this.onKeyup, style: {
103
+ default: () => {
104
+ if (!this.show)
105
+ return null;
106
+ return withDirectives(h("div", { tabindex: "0", ref: "selfElRef", class: `${mergedClsPrefix}-cascader-menu`, onMousedown: this.onMousedown, onFocusin: this.handleFocusin, onFocusout: this.handleFocusout, onKeyup: this.onKeyup, style: {
104
107
  '--col-count': this.menuModel.length
105
108
  } },
106
- h("div", { class: `${mergedClsPrefix}-cascader-submenu-wrapper` },
107
- this.menuModel.map((submenuOptions, index) => {
108
- return (h(NCascaderSubmenu, { ref: ((instance) => {
109
- if (instance)
110
- submenuInstRefs[index] = instance;
111
- }), key: index, tmNodes: submenuOptions, depth: index + 1 }));
112
- }),
113
- h(NBaseMenuMask, { clsPrefix: mergedClsPrefix, ref: "maskInstRef" })),
114
- $slots.action ? (h("div", { class: `${mergedClsPrefix}-cascader-menu-action`, "data-action": true }, {
109
+ this.menuModel[0].length ? (h("div", { class: `${mergedClsPrefix}-cascader-submenu-wrapper` },
110
+ this.menuModel.map((submenuOptions, index) => (h(NCascaderSubmenu, { ref: ((instance) => {
111
+ if (instance) {
112
+ submenuInstRefs[index] = instance;
113
+ }
114
+ }), key: index, tmNodes: submenuOptions, depth: index + 1 }))),
115
+ h(NBaseMenuMask, { clsPrefix: mergedClsPrefix, ref: "maskInstRef" }))) : (h("div", { class: `${mergedClsPrefix}-cascader-menu__empty` }, renderSlot($slots, 'empty', undefined, () => [h(NEmpty, null)]))),
116
+ $slots.action && (h("div", { class: `${mergedClsPrefix}-cascader-menu-action`, "data-action": true }, {
115
117
  default: $slots.action
116
- })) : null,
117
- h(FocusDetector, { onFocus: this.onTabout })), [[clickoutside, this.handleClickOutside]])
118
- : null
118
+ })),
119
+ h(FocusDetector, { onFocus: this.onTabout })), [[clickoutside, this.handleClickOutside]]);
120
+ }
119
121
  }));
120
122
  }
121
123
  });
@@ -157,6 +157,7 @@ declare const _default: import("vue").DefineComponent<{
157
157
  optionOpacityDisabled: string;
158
158
  optionCheckColor: string;
159
159
  optionColorPending: string;
160
+ optionColorActive: string;
160
161
  actionTextColor: string;
161
162
  loadingColor: string;
162
163
  height: string;
@@ -189,6 +190,14 @@ declare const _default: import("vue").DefineComponent<{
189
190
  }, any>;
190
191
  }>;
191
192
  InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
193
+ fontSizeTiny: string;
194
+ fontSizeSmall: string;
195
+ fontSizeMedium: string;
196
+ fontSizeLarge: string;
197
+ heightTiny: string;
198
+ heightSmall: string;
199
+ heightMedium: string;
200
+ heightLarge: string;
192
201
  borderRadius: string;
193
202
  textColor: string;
194
203
  textColorDisabled: string;
@@ -229,16 +238,9 @@ declare const _default: import("vue").DefineComponent<{
229
238
  clearColor: string;
230
239
  clearColorHover: string;
231
240
  clearColorPressed: string;
232
- heightTiny: string;
233
- heightSmall: string;
234
- heightMedium: string;
235
- heightLarge: string;
236
- fontSizeTiny: string;
237
- fontSizeSmall: string;
238
- fontSizeMedium: string;
239
- fontSizeLarge: string;
240
241
  paddingSingle: string;
241
242
  clearSize: string;
243
+ arrowSize: string;
242
244
  }, {
243
245
  Popover: import("../../_mixins").Theme<"Popover", {
244
246
  fontSize: string;
@@ -164,6 +164,7 @@ declare const _default: import("vue").DefineComponent<{
164
164
  optionOpacityDisabled: string;
165
165
  optionCheckColor: string;
166
166
  optionColorPending: string;
167
+ optionColorActive: string;
167
168
  actionTextColor: string;
168
169
  loadingColor: string;
169
170
  height: string;
@@ -196,6 +197,14 @@ declare const _default: import("vue").DefineComponent<{
196
197
  }, any>;
197
198
  }>;
198
199
  InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
200
+ fontSizeTiny: string;
201
+ fontSizeSmall: string;
202
+ fontSizeMedium: string;
203
+ fontSizeLarge: string;
204
+ heightTiny: string;
205
+ heightSmall: string;
206
+ heightMedium: string;
207
+ heightLarge: string;
199
208
  borderRadius: string;
200
209
  textColor: string;
201
210
  textColorDisabled: string;
@@ -236,16 +245,9 @@ declare const _default: import("vue").DefineComponent<{
236
245
  clearColor: string;
237
246
  clearColorHover: string;
238
247
  clearColorPressed: string;
239
- heightTiny: string;
240
- heightSmall: string;
241
- heightMedium: string;
242
- heightLarge: string;
243
- fontSizeTiny: string;
244
- fontSizeSmall: string;
245
- fontSizeMedium: string;
246
- fontSizeLarge: string;
247
248
  paddingSingle: string;
248
249
  clearSize: string;
250
+ arrowSize: string;
249
251
  }, {
250
252
  Popover: import("../../_mixins").Theme<"Popover", {
251
253
  fontSize: string;