naive-ui 2.32.0 → 2.32.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 (432) hide show
  1. package/README.zh-CN.md +1 -1
  2. package/dist/index.js +46388 -42920
  3. package/dist/index.prod.js +2 -2
  4. package/es/_internal/scrollbar/src/Scrollbar.js +2 -1
  5. package/es/_internal/select-menu/styles/light.js +1 -1
  6. package/es/_internal/selection/src/Selection.js +1 -1
  7. package/es/_utils/cssr/index.js +4 -4
  8. package/es/alert/src/Alert.d.ts +14 -0
  9. package/es/alert/src/Alert.js +11 -2
  10. package/es/alert/src/styles/index.cssr.js +11 -2
  11. package/es/alert/styles/dark.js +5 -1
  12. package/es/anchor/styles/light.js +2 -1
  13. package/es/auto-complete/src/AutoComplete.d.ts +14 -1
  14. package/es/auto-complete/src/AutoComplete.js +22 -16
  15. package/es/auto-complete/styles/light.d.ts +1 -0
  16. package/es/breadcrumb/styles/light.js +1 -1
  17. package/es/button/styles/light.js +5 -1
  18. package/es/card/styles/light.js +1 -1
  19. package/es/carousel/src/Carousel.js +7 -5
  20. package/es/cascader/src/Cascader.d.ts +13 -0
  21. package/es/cascader/src/Cascader.js +12 -4
  22. package/es/checkbox/src/CheckboxGroup.js +2 -2
  23. package/es/checkbox/styles/light.js +1 -1
  24. package/es/collapse/src/Collapse.d.ts +22 -0
  25. package/es/collapse/src/Collapse.js +4 -2
  26. package/es/collapse/src/CollapseItem.d.ts +6 -1
  27. package/es/collapse/src/CollapseItem.js +4 -2
  28. package/es/collapse/src/styles/index.cssr.js +10 -21
  29. package/es/collapse/styles/light.d.ts +2 -0
  30. package/es/collapse/styles/light.js +5 -3
  31. package/es/color-picker/src/ColorInputUnit.d.ts +1 -0
  32. package/es/color-picker/src/ColorPicker.d.ts +9 -0
  33. package/es/color-picker/src/ColorPicker.js +3 -2
  34. package/es/color-picker/styles/light.d.ts +1 -0
  35. package/es/countdown/src/Countdown.js +1 -1
  36. package/es/data-table/src/DataTable.d.ts +18 -0
  37. package/es/data-table/src/DataTable.js +6 -3
  38. package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
  39. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +4 -2
  40. package/es/data-table/src/TableParts/Body.d.ts +6 -0
  41. package/es/data-table/src/TableParts/Body.js +22 -14
  42. package/es/data-table/src/TableParts/Cell.d.ts +4 -0
  43. package/es/data-table/src/TableParts/ExpandTrigger.d.ts +7 -1
  44. package/es/data-table/src/TableParts/ExpandTrigger.js +15 -9
  45. package/es/data-table/src/TableParts/Header.d.ts +3 -1
  46. package/es/data-table/src/interface.d.ts +6 -3
  47. package/es/data-table/src/styles/index.cssr.js +25 -7
  48. package/es/data-table/src/use-expand.d.ts +3 -1
  49. package/es/data-table/src/use-expand.js +15 -8
  50. package/es/data-table/src/use-group-header.js +1 -1
  51. package/es/data-table/src/use-sorter.js +1 -1
  52. package/es/data-table/src/use-table-data.js +1 -1
  53. package/es/data-table/styles/light.d.ts +1 -0
  54. package/es/date-picker/src/DatePicker.d.ts +23 -2
  55. package/es/date-picker/src/DatePicker.js +4 -4
  56. package/es/date-picker/src/panel/date.d.ts +6 -3
  57. package/es/date-picker/src/panel/daterange.d.ts +3 -0
  58. package/es/date-picker/src/panel/datetime.d.ts +3 -0
  59. package/es/date-picker/src/panel/datetimerange.d.ts +3 -0
  60. package/es/date-picker/src/panel/month.d.ts +3 -0
  61. package/es/date-picker/src/panel/monthrange.d.ts +3 -0
  62. package/es/date-picker/src/panel/panelHeader.d.ts +6 -0
  63. package/es/date-picker/src/panel/panelHeader.js +3 -1
  64. package/es/date-picker/src/panel/use-calendar.d.ts +3 -0
  65. package/es/date-picker/src/panel/use-dual-calendar.d.ts +3 -0
  66. package/es/date-picker/src/panel/use-panel-common.d.ts +3 -0
  67. package/es/date-picker/src/styles/index.cssr.js +6 -6
  68. package/es/date-picker/styles/light.d.ts +2 -0
  69. package/es/descriptions/styles/light.js +1 -1
  70. package/es/drawer/src/Drawer.d.ts +8 -8
  71. package/es/drawer/src/Drawer.js +3 -3
  72. package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -0
  73. package/es/drawer/src/DrawerBodyWrapper.js +6 -0
  74. package/es/drawer/src/styles/rtl.cssr.d.ts +2 -0
  75. package/es/drawer/src/styles/rtl.cssr.js +8 -0
  76. package/es/drawer/styles/index.d.ts +1 -0
  77. package/es/drawer/styles/index.js +1 -0
  78. package/es/drawer/styles/rtl.d.ts +3 -0
  79. package/es/drawer/styles/rtl.js +8 -0
  80. package/es/dropdown/src/Dropdown.js +6 -6
  81. package/es/dropdown/src/styles/index.cssr.js +35 -33
  82. package/es/dynamic-input/src/DynamicInput.d.ts +10 -0
  83. package/es/dynamic-input/src/InputPreset.d.ts +1 -0
  84. package/es/dynamic-input/src/PairPreset.d.ts +1 -0
  85. package/es/dynamic-input/styles/light.d.ts +1 -0
  86. package/es/dynamic-tags/src/DynamicTags.d.ts +10 -0
  87. package/es/dynamic-tags/styles/light.d.ts +1 -0
  88. package/es/empty/styles/light.js +1 -1
  89. package/es/grid/src/Grid.d.ts +5 -0
  90. package/es/grid/src/Grid.js +18 -0
  91. package/es/grid/src/GridItem.d.ts +2 -0
  92. package/es/grid/src/GridItem.js +15 -2
  93. package/es/input/src/Input.d.ts +21 -1
  94. package/es/input/src/Input.js +23 -6
  95. package/es/input/src/InputGroupLabel.d.ts +9 -0
  96. package/es/input/src/styles/input.cssr.d.ts +1 -0
  97. package/es/input/src/styles/input.cssr.js +12 -4
  98. package/es/input/styles/dark.js +1 -1
  99. package/es/input/styles/light.d.ts +1 -0
  100. package/es/input/styles/light.js +1 -1
  101. package/es/input-number/src/InputNumber.d.ts +15 -5
  102. package/es/input-number/src/InputNumber.js +6 -8
  103. package/es/input-number/src/interface.d.ts +1 -0
  104. package/es/input-number/styles/light.d.ts +1 -0
  105. package/es/layout/src/Layout.js +3 -1
  106. package/es/legacy-grid/src/Row.js +2 -2
  107. package/es/legacy-transfer/src/Transfer.d.ts +10 -0
  108. package/es/legacy-transfer/src/TransferFilter.d.ts +1 -0
  109. package/es/legacy-transfer/src/TransferList.d.ts +1 -0
  110. package/es/legacy-transfer/src/TransferListItem.d.ts +1 -0
  111. package/es/legacy-transfer/styles/light.d.ts +1 -0
  112. package/es/list/src/List.d.ts +47 -3
  113. package/es/list/src/List.js +17 -7
  114. package/es/list/src/ListItem.d.ts +1 -0
  115. package/es/list/src/ListItem.js +3 -1
  116. package/es/list/src/styles/index.cssr.js +35 -12
  117. package/es/list/src/styles/rtl.cssr.d.ts +2 -0
  118. package/es/list/src/styles/rtl.cssr.js +11 -0
  119. package/es/list/styles/index.d.ts +1 -0
  120. package/es/list/styles/index.js +1 -0
  121. package/es/list/styles/light.d.ts +3 -0
  122. package/es/list/styles/light.js +4 -1
  123. package/es/list/styles/rtl.d.ts +2 -0
  124. package/es/list/styles/rtl.js +5 -0
  125. package/es/locales/common/viVN.js +7 -9
  126. package/es/mention/src/Mention.d.ts +10 -0
  127. package/es/mention/styles/light.d.ts +1 -0
  128. package/es/menu/src/Menu.d.ts +13 -0
  129. package/es/menu/src/Menu.js +4 -1
  130. package/es/menu/src/Submenu.js +1 -1
  131. package/es/menu/src/utils.d.ts +1 -1
  132. package/es/menu/src/utils.js +5 -1
  133. package/es/message/src/Message.d.ts +1 -0
  134. package/es/message/src/Message.js +8 -3
  135. package/es/message/src/styles/rtl.cssr.d.ts +2 -0
  136. package/es/message/src/styles/rtl.cssr.js +8 -0
  137. package/es/message/styles/index.d.ts +1 -0
  138. package/es/message/styles/index.js +1 -0
  139. package/es/message/styles/light.js +4 -1
  140. package/es/message/styles/rtl.d.ts +2 -0
  141. package/es/message/styles/rtl.js +5 -0
  142. package/es/modal/src/Modal.js +2 -1
  143. package/es/notification/styles/light.js +3 -1
  144. package/es/number-animation/src/NumberAnimation.js +1 -1
  145. package/es/pagination/src/Pagination.d.ts +31 -26
  146. package/es/pagination/src/Pagination.js +207 -164
  147. package/es/pagination/src/styles/index.cssr.js +7 -1
  148. package/es/pagination/styles/light.d.ts +1 -0
  149. package/es/popover/src/Popover.js +2 -2
  150. package/es/popover/src/PopoverBody.js +3 -2
  151. package/es/popselect/src/Popselect.d.ts +3 -3
  152. package/es/radio/styles/dark.js +1 -1
  153. package/es/radio/styles/light.js +1 -1
  154. package/es/select/index.d.ts +1 -1
  155. package/es/select/src/Select.d.ts +4 -1
  156. package/es/select/src/Select.js +4 -4
  157. package/es/skeleton/src/Skeleton.js +1 -1
  158. package/es/slider/styles/dark.js +2 -1
  159. package/es/slider/styles/light.js +2 -1
  160. package/es/statistic/src/Statistic.d.ts +10 -0
  161. package/es/statistic/src/Statistic.js +2 -1
  162. package/es/statistic/src/styles/index.cssr.js +4 -3
  163. package/es/statistic/styles/light.d.ts +1 -0
  164. package/es/statistic/styles/light.js +1 -0
  165. package/es/steps/src/Steps.d.ts +1 -0
  166. package/es/steps/src/Steps.js +6 -3
  167. package/es/steps/src/styles/rtl.cssr.d.ts +2 -0
  168. package/es/steps/src/styles/rtl.cssr.js +14 -0
  169. package/es/steps/styles/index.d.ts +1 -0
  170. package/es/steps/styles/index.js +1 -0
  171. package/es/steps/styles/rtl.d.ts +2 -0
  172. package/es/steps/styles/rtl.js +5 -0
  173. package/es/styles.d.ts +4 -3
  174. package/es/styles.js +4 -3
  175. package/es/switch/src/Switch.js +32 -5
  176. package/es/switch/src/styles/index.cssr.js +2 -2
  177. package/es/tag/src/Tag.d.ts +4 -4
  178. package/es/tag/src/Tag.js +3 -3
  179. package/es/tag/src/styles/index.cssr.js +0 -1
  180. package/es/tag/styles/light.js +4 -1
  181. package/es/thing/src/Thing.d.ts +19 -21
  182. package/es/thing/src/Thing.js +4 -7
  183. package/es/time-picker/src/Panel.d.ts +1 -0
  184. package/es/time-picker/src/TimePicker.d.ts +12 -2
  185. package/es/time-picker/src/TimePicker.js +4 -4
  186. package/es/time-picker/src/styles/index.cssr.js +12 -12
  187. package/es/time-picker/styles/light.d.ts +1 -0
  188. package/es/timeline/src/TimelineItem.js +1 -1
  189. package/es/tooltip/styles/dark.js +1 -1
  190. package/es/tooltip/styles/light.js +1 -1
  191. package/es/transfer/src/Transfer.d.ts +37 -6
  192. package/es/transfer/src/Transfer.js +32 -23
  193. package/es/transfer/src/TransferFilter.d.ts +1 -0
  194. package/es/transfer/src/TransferList.d.ts +1 -0
  195. package/es/transfer/src/TransferList.js +1 -1
  196. package/es/transfer/src/TransferListItem.d.ts +1 -0
  197. package/es/transfer/src/interface.d.ts +1 -1
  198. package/es/transfer/src/use-transfer-data.d.ts +11 -4
  199. package/es/transfer/src/use-transfer-data.js +59 -16
  200. package/es/transfer/styles/light.d.ts +1 -0
  201. package/es/tree/index.d.ts +1 -1
  202. package/es/tree/src/Tree.d.ts +34 -1
  203. package/es/tree/src/Tree.js +25 -11
  204. package/es/tree/src/interface.d.ts +5 -0
  205. package/es/tree/src/keyboard.d.ts +4 -1
  206. package/es/tree/src/keyboard.js +3 -1
  207. package/es/tree-select/src/TreeSelect.d.ts +13 -0
  208. package/es/tree-select/src/TreeSelect.js +4 -4
  209. package/es/typography/styles/light.js +1 -1
  210. package/es/upload/src/Upload.d.ts +10 -0
  211. package/es/upload/src/Upload.js +1 -1
  212. package/es/upload/src/UploadFile.js +4 -2
  213. package/es/upload/src/utils.d.ts +1 -0
  214. package/es/upload/src/utils.js +12 -0
  215. package/es/version.d.ts +1 -1
  216. package/es/version.js +1 -1
  217. package/lib/_internal/scrollbar/src/Scrollbar.js +2 -1
  218. package/lib/_internal/select-menu/styles/light.js +1 -1
  219. package/lib/_internal/selection/src/Selection.js +1 -1
  220. package/lib/_utils/cssr/index.js +2 -2
  221. package/lib/alert/src/Alert.d.ts +14 -0
  222. package/lib/alert/src/Alert.js +11 -2
  223. package/lib/alert/src/styles/index.cssr.js +11 -2
  224. package/lib/alert/styles/dark.js +5 -1
  225. package/lib/anchor/styles/light.js +2 -1
  226. package/lib/auto-complete/src/AutoComplete.d.ts +14 -1
  227. package/lib/auto-complete/src/AutoComplete.js +22 -16
  228. package/lib/auto-complete/styles/light.d.ts +1 -0
  229. package/lib/breadcrumb/styles/light.js +1 -1
  230. package/lib/button/styles/light.js +5 -1
  231. package/lib/card/styles/light.js +1 -1
  232. package/lib/carousel/src/Carousel.js +7 -5
  233. package/lib/cascader/src/Cascader.d.ts +13 -0
  234. package/lib/cascader/src/Cascader.js +11 -3
  235. package/lib/checkbox/src/CheckboxGroup.js +2 -2
  236. package/lib/checkbox/styles/light.js +1 -1
  237. package/lib/collapse/src/Collapse.d.ts +22 -0
  238. package/lib/collapse/src/Collapse.js +4 -2
  239. package/lib/collapse/src/CollapseItem.d.ts +6 -1
  240. package/lib/collapse/src/CollapseItem.js +4 -2
  241. package/lib/collapse/src/styles/index.cssr.js +10 -21
  242. package/lib/collapse/styles/light.d.ts +2 -0
  243. package/lib/collapse/styles/light.js +5 -3
  244. package/lib/color-picker/src/ColorInputUnit.d.ts +1 -0
  245. package/lib/color-picker/src/ColorPicker.d.ts +9 -0
  246. package/lib/color-picker/src/ColorPicker.js +2 -1
  247. package/lib/color-picker/styles/light.d.ts +1 -0
  248. package/lib/countdown/src/Countdown.js +1 -1
  249. package/lib/data-table/src/DataTable.d.ts +18 -0
  250. package/lib/data-table/src/DataTable.js +6 -3
  251. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
  252. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +4 -2
  253. package/lib/data-table/src/TableParts/Body.d.ts +6 -0
  254. package/lib/data-table/src/TableParts/Body.js +22 -14
  255. package/lib/data-table/src/TableParts/Cell.d.ts +4 -0
  256. package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +7 -1
  257. package/lib/data-table/src/TableParts/ExpandTrigger.js +15 -9
  258. package/lib/data-table/src/TableParts/Header.d.ts +3 -1
  259. package/lib/data-table/src/interface.d.ts +6 -3
  260. package/lib/data-table/src/styles/index.cssr.js +25 -7
  261. package/lib/data-table/src/use-expand.d.ts +3 -1
  262. package/lib/data-table/src/use-expand.js +15 -8
  263. package/lib/data-table/src/use-group-header.js +1 -1
  264. package/lib/data-table/src/use-sorter.js +1 -1
  265. package/lib/data-table/src/use-table-data.js +1 -1
  266. package/lib/data-table/styles/light.d.ts +1 -0
  267. package/lib/date-picker/src/DatePicker.d.ts +23 -2
  268. package/lib/date-picker/src/DatePicker.js +3 -3
  269. package/lib/date-picker/src/panel/date.d.ts +6 -3
  270. package/lib/date-picker/src/panel/daterange.d.ts +3 -0
  271. package/lib/date-picker/src/panel/datetime.d.ts +3 -0
  272. package/lib/date-picker/src/panel/datetimerange.d.ts +3 -0
  273. package/lib/date-picker/src/panel/month.d.ts +3 -0
  274. package/lib/date-picker/src/panel/monthrange.d.ts +3 -0
  275. package/lib/date-picker/src/panel/panelHeader.d.ts +6 -0
  276. package/lib/date-picker/src/panel/panelHeader.js +3 -1
  277. package/lib/date-picker/src/panel/use-calendar.d.ts +3 -0
  278. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +3 -0
  279. package/lib/date-picker/src/panel/use-panel-common.d.ts +3 -0
  280. package/lib/date-picker/src/styles/index.cssr.js +6 -6
  281. package/lib/date-picker/styles/light.d.ts +2 -0
  282. package/lib/descriptions/styles/light.js +1 -1
  283. package/lib/drawer/src/Drawer.d.ts +8 -8
  284. package/lib/drawer/src/Drawer.js +3 -3
  285. package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -0
  286. package/lib/drawer/src/DrawerBodyWrapper.js +6 -0
  287. package/lib/drawer/src/styles/rtl.cssr.d.ts +2 -0
  288. package/lib/drawer/src/styles/rtl.cssr.js +15 -0
  289. package/lib/drawer/styles/index.d.ts +1 -0
  290. package/lib/drawer/styles/index.js +3 -1
  291. package/lib/drawer/styles/rtl.d.ts +3 -0
  292. package/lib/drawer/styles/rtl.js +14 -0
  293. package/lib/dropdown/src/Dropdown.js +6 -6
  294. package/lib/dropdown/src/styles/index.cssr.js +35 -33
  295. package/lib/dynamic-input/src/DynamicInput.d.ts +10 -0
  296. package/lib/dynamic-input/src/InputPreset.d.ts +1 -0
  297. package/lib/dynamic-input/src/PairPreset.d.ts +1 -0
  298. package/lib/dynamic-input/styles/light.d.ts +1 -0
  299. package/lib/dynamic-tags/src/DynamicTags.d.ts +10 -0
  300. package/lib/dynamic-tags/styles/light.d.ts +1 -0
  301. package/lib/empty/styles/light.js +1 -1
  302. package/lib/grid/src/Grid.d.ts +5 -0
  303. package/lib/grid/src/Grid.js +18 -0
  304. package/lib/grid/src/GridItem.d.ts +2 -0
  305. package/lib/grid/src/GridItem.js +14 -1
  306. package/lib/input/src/Input.d.ts +21 -1
  307. package/lib/input/src/Input.js +45 -5
  308. package/lib/input/src/InputGroupLabel.d.ts +9 -0
  309. package/lib/input/src/styles/input.cssr.d.ts +1 -0
  310. package/lib/input/src/styles/input.cssr.js +13 -4
  311. package/lib/input/styles/dark.js +1 -1
  312. package/lib/input/styles/light.d.ts +1 -0
  313. package/lib/input/styles/light.js +1 -1
  314. package/lib/input-number/src/InputNumber.d.ts +15 -5
  315. package/lib/input-number/src/InputNumber.js +6 -8
  316. package/lib/input-number/src/interface.d.ts +1 -0
  317. package/lib/input-number/styles/light.d.ts +1 -0
  318. package/lib/layout/src/Layout.js +3 -1
  319. package/lib/legacy-grid/src/Row.js +2 -2
  320. package/lib/legacy-transfer/src/Transfer.d.ts +10 -0
  321. package/lib/legacy-transfer/src/TransferFilter.d.ts +1 -0
  322. package/lib/legacy-transfer/src/TransferList.d.ts +1 -0
  323. package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -0
  324. package/lib/legacy-transfer/styles/light.d.ts +1 -0
  325. package/lib/list/src/List.d.ts +47 -3
  326. package/lib/list/src/List.js +15 -5
  327. package/lib/list/src/ListItem.d.ts +1 -0
  328. package/lib/list/src/ListItem.js +3 -1
  329. package/lib/list/src/styles/index.cssr.js +35 -12
  330. package/lib/list/src/styles/rtl.cssr.d.ts +2 -0
  331. package/lib/list/src/styles/rtl.cssr.js +18 -0
  332. package/lib/list/styles/index.d.ts +1 -0
  333. package/lib/list/styles/index.js +3 -1
  334. package/lib/list/styles/light.d.ts +3 -0
  335. package/lib/list/styles/light.js +4 -1
  336. package/lib/list/styles/rtl.d.ts +2 -0
  337. package/lib/list/styles/rtl.js +11 -0
  338. package/lib/locales/common/viVN.js +7 -9
  339. package/lib/mention/src/Mention.d.ts +10 -0
  340. package/lib/mention/styles/light.d.ts +1 -0
  341. package/lib/menu/src/Menu.d.ts +13 -0
  342. package/lib/menu/src/Menu.js +4 -1
  343. package/lib/menu/src/Submenu.js +1 -1
  344. package/lib/menu/src/utils.d.ts +1 -1
  345. package/lib/menu/src/utils.js +5 -1
  346. package/lib/message/src/Message.d.ts +1 -0
  347. package/lib/message/src/Message.js +7 -2
  348. package/lib/message/src/styles/rtl.cssr.d.ts +2 -0
  349. package/lib/message/src/styles/rtl.cssr.js +15 -0
  350. package/lib/message/styles/index.d.ts +1 -0
  351. package/lib/message/styles/index.js +3 -1
  352. package/lib/message/styles/light.js +4 -1
  353. package/lib/message/styles/rtl.d.ts +2 -0
  354. package/lib/message/styles/rtl.js +11 -0
  355. package/lib/modal/src/Modal.js +2 -1
  356. package/lib/notification/styles/light.js +3 -1
  357. package/lib/number-animation/src/NumberAnimation.js +1 -1
  358. package/lib/pagination/src/Pagination.d.ts +31 -26
  359. package/lib/pagination/src/Pagination.js +206 -163
  360. package/lib/pagination/src/styles/index.cssr.js +7 -1
  361. package/lib/pagination/styles/light.d.ts +1 -0
  362. package/lib/popover/src/Popover.js +2 -2
  363. package/lib/popover/src/PopoverBody.js +3 -2
  364. package/lib/popselect/src/Popselect.d.ts +3 -3
  365. package/lib/radio/styles/dark.js +1 -1
  366. package/lib/radio/styles/light.js +1 -1
  367. package/lib/select/index.d.ts +1 -1
  368. package/lib/select/src/Select.d.ts +4 -1
  369. package/lib/select/src/Select.js +3 -3
  370. package/lib/skeleton/src/Skeleton.js +1 -1
  371. package/lib/slider/styles/dark.js +2 -1
  372. package/lib/slider/styles/light.js +2 -1
  373. package/lib/statistic/src/Statistic.d.ts +10 -0
  374. package/lib/statistic/src/Statistic.js +2 -1
  375. package/lib/statistic/src/styles/index.cssr.js +4 -3
  376. package/lib/statistic/styles/light.d.ts +1 -0
  377. package/lib/statistic/styles/light.js +1 -0
  378. package/lib/steps/src/Steps.d.ts +1 -0
  379. package/lib/steps/src/Steps.js +5 -2
  380. package/lib/steps/src/styles/rtl.cssr.d.ts +2 -0
  381. package/lib/steps/src/styles/rtl.cssr.js +21 -0
  382. package/lib/steps/styles/index.d.ts +1 -0
  383. package/lib/steps/styles/index.js +3 -1
  384. package/lib/steps/styles/rtl.d.ts +2 -0
  385. package/lib/steps/styles/rtl.js +11 -0
  386. package/lib/styles.d.ts +4 -3
  387. package/lib/styles.js +154 -149
  388. package/lib/switch/src/Switch.js +32 -5
  389. package/lib/switch/src/styles/index.cssr.js +2 -2
  390. package/lib/tag/src/Tag.d.ts +4 -4
  391. package/lib/tag/src/Tag.js +3 -3
  392. package/lib/tag/src/styles/index.cssr.js +0 -1
  393. package/lib/tag/styles/light.js +4 -1
  394. package/lib/thing/src/Thing.d.ts +19 -21
  395. package/lib/thing/src/Thing.js +4 -7
  396. package/lib/time-picker/src/Panel.d.ts +1 -0
  397. package/lib/time-picker/src/TimePicker.d.ts +12 -2
  398. package/lib/time-picker/src/TimePicker.js +3 -3
  399. package/lib/time-picker/src/styles/index.cssr.js +12 -12
  400. package/lib/time-picker/styles/light.d.ts +1 -0
  401. package/lib/timeline/src/TimelineItem.js +1 -1
  402. package/lib/tooltip/styles/dark.js +1 -1
  403. package/lib/tooltip/styles/light.js +1 -1
  404. package/lib/transfer/src/Transfer.d.ts +37 -6
  405. package/lib/transfer/src/Transfer.js +32 -23
  406. package/lib/transfer/src/TransferFilter.d.ts +1 -0
  407. package/lib/transfer/src/TransferList.d.ts +1 -0
  408. package/lib/transfer/src/TransferList.js +1 -1
  409. package/lib/transfer/src/TransferListItem.d.ts +1 -0
  410. package/lib/transfer/src/interface.d.ts +1 -1
  411. package/lib/transfer/src/use-transfer-data.d.ts +11 -4
  412. package/lib/transfer/src/use-transfer-data.js +59 -16
  413. package/lib/transfer/styles/light.d.ts +1 -0
  414. package/lib/tree/index.d.ts +1 -1
  415. package/lib/tree/src/Tree.d.ts +34 -1
  416. package/lib/tree/src/Tree.js +25 -11
  417. package/lib/tree/src/interface.d.ts +5 -0
  418. package/lib/tree/src/keyboard.d.ts +4 -1
  419. package/lib/tree/src/keyboard.js +3 -1
  420. package/lib/tree-select/src/TreeSelect.d.ts +13 -0
  421. package/lib/tree-select/src/TreeSelect.js +3 -3
  422. package/lib/typography/styles/light.js +1 -1
  423. package/lib/upload/src/Upload.d.ts +10 -0
  424. package/lib/upload/src/Upload.js +1 -1
  425. package/lib/upload/src/UploadFile.js +3 -1
  426. package/lib/upload/src/utils.d.ts +1 -0
  427. package/lib/upload/src/utils.js +14 -1
  428. package/lib/version.d.ts +1 -1
  429. package/lib/version.js +1 -1
  430. package/package.json +25 -19
  431. package/volar.d.ts +1 -1
  432. package/web-types.json +210 -3
@@ -2,6 +2,7 @@ import { h, ref, defineComponent, computed, onMounted, onBeforeUnmount, mergePro
2
2
  import { on, off } from 'evtd';
3
3
  import { VResizeObserver } from 'vueuc';
4
4
  import { useIsIos } from 'vooks';
5
+ import { getPreciseEventTarget } from 'seemly';
5
6
  import { useConfig, useTheme, useThemeClass, useRtl } from '../../../_mixins';
6
7
  import { useReactivated, Wrapper } from '../../../_utils';
7
8
  import { scrollbarLight } from '../styles';
@@ -361,7 +362,7 @@ const Scrollbar = defineComponent({
361
362
  }
362
363
  function isMouseUpAway(e) {
363
364
  var _a;
364
- return !((_a = wrapperRef.value) === null || _a === void 0 ? void 0 : _a.contains(e.target));
365
+ return !((_a = wrapperRef.value) === null || _a === void 0 ? void 0 : _a.contains(getPreciseEventTarget(e)));
365
366
  }
366
367
  function handleXScrollMouseDown(e) {
367
368
  e.preventDefault();
@@ -5,7 +5,7 @@ import commonVariables from './_common';
5
5
  import { createTheme } from '../../../_mixins';
6
6
  export const self = (vars) => {
7
7
  const { borderRadius, popoverColor, textColor3, dividerColor, textColor2, primaryColorPressed, textColorDisabled, primaryColor, opacityDisabled, hoverColor, fontSizeSmall, fontSizeMedium, fontSizeLarge, fontSizeHuge, heightSmall, heightMedium, heightLarge, heightHuge } = vars;
8
- return Object.assign(Object.assign({}, commonVariables), { optionFontSizeSmall: fontSizeSmall, optionFontSizeMedium: fontSizeMedium, optionFontSizeLarge: fontSizeLarge, optionFontSizeHuge: fontSizeHuge, optionHeightSmall: heightSmall, optionHeightMedium: heightMedium, optionHeightLarge: heightLarge, optionHeightHuge: heightHuge, borderRadius: borderRadius, color: popoverColor, groupHeaderTextColor: textColor3, actionDividerColor: dividerColor, optionTextColor: textColor2, optionTextColorPressed: primaryColorPressed, optionTextColorDisabled: textColorDisabled, optionTextColorActive: primaryColor, optionOpacityDisabled: opacityDisabled, optionCheckColor: primaryColor, optionColorPending: hoverColor, optionColorActive: 'rgba(0, 0, 0, 0)', optionColorActivePending: hoverColor, actionTextColor: textColor2, loadingColor: primaryColor });
8
+ return Object.assign(Object.assign({}, commonVariables), { optionFontSizeSmall: fontSizeSmall, optionFontSizeMedium: fontSizeMedium, optionFontSizeLarge: fontSizeLarge, optionFontSizeHuge: fontSizeHuge, optionHeightSmall: heightSmall, optionHeightMedium: heightMedium, optionHeightLarge: heightLarge, optionHeightHuge: heightHuge, borderRadius, color: popoverColor, groupHeaderTextColor: textColor3, actionDividerColor: dividerColor, optionTextColor: textColor2, optionTextColorPressed: primaryColorPressed, optionTextColorDisabled: textColorDisabled, optionTextColorActive: primaryColor, optionOpacityDisabled: opacityDisabled, optionCheckColor: primaryColor, optionColorPending: hoverColor, optionColorActive: 'rgba(0, 0, 0, 0)', optionColorActivePending: hoverColor, actionTextColor: textColor2, loadingColor: primaryColor });
9
9
  };
10
10
  const internalSelectMenuLight = createTheme({
11
11
  name: 'InternalSelectMenu',
@@ -437,7 +437,7 @@ export default defineComponent({
437
437
  const createTag = (option) => (h("div", { class: `${clsPrefix}-base-selection-tag-wrapper`, key: option.value }, renderTag ? (renderTag({
438
438
  option,
439
439
  handleClose: () => this.handleDeleteOption(option)
440
- })) : (h(NTag, { size: size, closable: !option.disabled, disabled: disabled, onClose: () => this.handleDeleteOption(option), internalCloseFocusable: false, internalStopClickPropagation: true }, {
440
+ })) : (h(NTag, { size: size, closable: !option.disabled, disabled: disabled, onClose: () => this.handleDeleteOption(option), internalCloseFocusable: false }, {
441
441
  default: () => renderLabel
442
442
  ? renderLabel(option, true)
443
443
  : render(option[labelField], option, true)
@@ -1,12 +1,12 @@
1
1
  /* eslint-disable @typescript-eslint/restrict-template-expressions */
2
- import CSSRender from 'css-render';
3
- import BEMPlugin from '@css-render/plugin-bem';
2
+ import { CssRender } from 'css-render';
3
+ import BemPlugin from '@css-render/plugin-bem';
4
4
  const namespace = 'n';
5
5
  const prefix = `.${namespace}-`;
6
6
  const elementPrefix = '__';
7
7
  const modifierPrefix = '--';
8
- const cssr = CSSRender();
9
- const plugin = BEMPlugin({
8
+ const cssr = CssRender();
9
+ const plugin = BemPlugin({
10
10
  blockPrefix: prefix,
11
11
  elementPrefix,
12
12
  modifierPrefix
@@ -10,6 +10,10 @@ export declare const alertProps: {
10
10
  type: PropType<"default" | "error" | "info" | "success" | "warning">;
11
11
  default: string;
12
12
  };
13
+ bordered: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
13
17
  closable: BooleanConstructor;
14
18
  onClose: FunctionConstructor;
15
19
  onAfterLeave: FunctionConstructor;
@@ -222,6 +226,10 @@ declare const _default: import("vue").DefineComponent<{
222
226
  type: PropType<"default" | "error" | "info" | "success" | "warning">;
223
227
  default: string;
224
228
  };
229
+ bordered: {
230
+ type: BooleanConstructor;
231
+ default: boolean;
232
+ };
225
233
  closable: BooleanConstructor;
226
234
  onClose: FunctionConstructor;
227
235
  onAfterLeave: FunctionConstructor;
@@ -425,6 +433,7 @@ declare const _default: import("vue").DefineComponent<{
425
433
  }, {
426
434
  rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
427
435
  mergedClsPrefix: import("vue").ComputedRef<string>;
436
+ mergedBordered: import("vue").ComputedRef<boolean>;
428
437
  visible: import("vue").Ref<boolean>;
429
438
  handleCloseClick: () => void;
430
439
  handleAfterLeave: () => void;
@@ -644,6 +653,10 @@ declare const _default: import("vue").DefineComponent<{
644
653
  type: PropType<"default" | "error" | "info" | "success" | "warning">;
645
654
  default: string;
646
655
  };
656
+ bordered: {
657
+ type: BooleanConstructor;
658
+ default: boolean;
659
+ };
647
660
  closable: BooleanConstructor;
648
661
  onClose: FunctionConstructor;
649
662
  onAfterLeave: FunctionConstructor;
@@ -846,6 +859,7 @@ declare const _default: import("vue").DefineComponent<{
846
859
  }, any>>>;
847
860
  }>>, {
848
861
  type: "default" | "error" | "info" | "success" | "warning";
862
+ bordered: boolean;
849
863
  showIcon: boolean;
850
864
  closable: boolean;
851
865
  }>;
@@ -13,6 +13,9 @@ export const alertProps = Object.assign(Object.assign({}, useTheme.props), { tit
13
13
  }, type: {
14
14
  type: String,
15
15
  default: 'default'
16
+ }, bordered: {
17
+ type: Boolean,
18
+ default: true
16
19
  }, closable: Boolean, onClose: Function, onAfterLeave: Function,
17
20
  /** @deprecated */
18
21
  onAfterHide: Function });
@@ -28,7 +31,7 @@ export default defineComponent({
28
31
  }
29
32
  });
30
33
  }
31
- const { mergedClsPrefixRef, inlineThemeDisabled, mergedRtlRef } = useConfig(props);
34
+ const { mergedClsPrefixRef, mergedBorderedRef, inlineThemeDisabled, mergedRtlRef } = useConfig(props);
32
35
  const themeRef = useTheme('Alert', '-alert', style, alertLight, props, mergedClsPrefixRef);
33
36
  const rtlEnabledRef = useRtl('Alert', mergedRtlRef, mergedClsPrefixRef);
34
37
  const cssVarsRef = computed(() => {
@@ -93,6 +96,7 @@ export default defineComponent({
93
96
  return {
94
97
  rtlEnabled: rtlEnabledRef,
95
98
  mergedClsPrefix: mergedClsPrefixRef,
99
+ mergedBordered: mergedBorderedRef,
96
100
  visible: visibleRef,
97
101
  handleCloseClick,
98
102
  handleAfterLeave,
@@ -121,6 +125,7 @@ export default defineComponent({
121
125
  };
122
126
  return this.visible ? (h("div", Object.assign({}, mergeProps(this.$attrs, attrs)),
123
127
  this.closable && (h(NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-alert__close`, onClick: this.handleCloseClick })),
128
+ this.bordered && (h("div", { class: `${mergedClsPrefix}-alert__border` })),
124
129
  this.showIcon && (h("div", { class: `${mergedClsPrefix}-alert__icon`, "aria-hidden": "true" }, resolveSlot($slots.icon, () => [
125
130
  h(NBaseIcon, { clsPrefix: mergedClsPrefix }, {
126
131
  default: () => {
@@ -139,7 +144,11 @@ export default defineComponent({
139
144
  }
140
145
  })
141
146
  ]))),
142
- h("div", { class: `${mergedClsPrefix}-alert-body` },
147
+ h("div", { class: [
148
+ `${mergedClsPrefix}-alert-body`,
149
+ this.mergedBordered &&
150
+ `${mergedClsPrefix}-alert-body--bordered`
151
+ ] },
143
152
  resolveWrappedSlot($slots.header, (children) => {
144
153
  const mergedChildren = children || this.title;
145
154
  return mergedChildren ? (h("div", { class: `${mergedClsPrefix}-alert-body__title` }, mergedChildren)) : null;
@@ -32,12 +32,21 @@ export default cB('alert', `
32
32
  background-color: var(--n-color);
33
33
  text-align: start;
34
34
  word-break: break-word;
35
- `, [cM('closable', [cB('alert-body', [cE('title', `
35
+ `, [cE('border', `
36
+ border-radius: inherit;
37
+ position: absolute;
38
+ left: 0;
39
+ right: 0;
40
+ top: 0;
41
+ bottom: 0;
42
+ transition: border-color .3s var(--n-bezier);
43
+ border: var(--n-border);
44
+ pointer-events: none;
45
+ `), cM('closable', [cB('alert-body', [cE('title', `
36
46
  padding-right: 24px;
37
47
  `)])]), cE('icon', {
38
48
  color: 'var(--n-icon-color)'
39
49
  }), cB('alert-body', {
40
- border: 'var(--n-border)',
41
50
  padding: 'var(--n-padding)'
42
51
  }, [cE('title', {
43
52
  color: 'var(--n-title-text-color)'
@@ -7,7 +7,11 @@ const alertDark = {
7
7
  self(vars) {
8
8
  const { lineHeight, borderRadius, fontWeightStrong, dividerColor, inputColor, textColor1, textColor2, closeColorHover, closeColorPressed, closeIconColor, closeIconColorHover, closeIconColorPressed, infoColorSuppl, successColorSuppl, warningColorSuppl, errorColorSuppl, fontSize } = vars;
9
9
  return Object.assign(Object.assign({}, commonVars), { fontSize,
10
- lineHeight, titleFontWeight: fontWeightStrong, borderRadius, border: `1px solid ${dividerColor}`, color: inputColor, titleTextColor: textColor1, iconColor: textColor2, contentTextColor: textColor2, closeBorderRadius: borderRadius, closeColorHover: closeColorHover, closeColorPressed: closeColorPressed, closeIconColor: closeIconColor, closeIconColorHover: closeIconColorHover, closeIconColorPressed: closeIconColorPressed, borderInfo: `1px solid ${changeColor(infoColorSuppl, { alpha: 0.35 })}`, colorInfo: changeColor(infoColorSuppl, { alpha: 0.25 }), titleTextColorInfo: textColor1, iconColorInfo: infoColorSuppl, contentTextColorInfo: textColor2, closeColorHoverInfo: closeColorHover, closeColorPressedInfo: closeColorPressed, closeIconColorInfo: closeIconColor, closeIconColorHoverInfo: closeIconColorHover, closeIconColorPressedInfo: closeIconColorPressed, borderSuccess: `1px solid ${changeColor(successColorSuppl, {
10
+ lineHeight, titleFontWeight: fontWeightStrong, borderRadius, border: `1px solid ${dividerColor}`, color: inputColor, titleTextColor: textColor1, iconColor: textColor2, contentTextColor: textColor2, closeBorderRadius: borderRadius, closeColorHover,
11
+ closeColorPressed,
12
+ closeIconColor,
13
+ closeIconColorHover,
14
+ closeIconColorPressed, borderInfo: `1px solid ${changeColor(infoColorSuppl, { alpha: 0.35 })}`, colorInfo: changeColor(infoColorSuppl, { alpha: 0.25 }), titleTextColorInfo: textColor1, iconColorInfo: infoColorSuppl, contentTextColorInfo: textColor2, closeColorHoverInfo: closeColorHover, closeColorPressedInfo: closeColorPressed, closeIconColorInfo: closeIconColor, closeIconColorHoverInfo: closeIconColorHover, closeIconColorPressedInfo: closeIconColorPressed, borderSuccess: `1px solid ${changeColor(successColorSuppl, {
11
15
  alpha: 0.35
12
16
  })}`, colorSuccess: changeColor(successColorSuppl, { alpha: 0.25 }), titleTextColorSuccess: textColor1, iconColorSuccess: successColorSuppl, contentTextColorSuccess: textColor2, closeColorHoverSuccess: closeColorHover, closeColorPressedSuccess: closeColorPressed, closeIconColorSuccess: closeIconColor, closeIconColorHoverSuccess: closeIconColorHover, closeIconColorPressedSuccess: closeIconColorPressed, borderWarning: `1px solid ${changeColor(warningColorSuppl, {
13
17
  alpha: 0.35
@@ -3,7 +3,8 @@ import { commonLight } from '../../_styles/common';
3
3
  import commonVars from './_common';
4
4
  export const self = (vars) => {
5
5
  const { borderRadius, railColor, primaryColor, primaryColorHover, primaryColorPressed, textColor2 } = vars;
6
- return Object.assign(Object.assign({}, commonVars), { borderRadius, railColor: railColor, railColorActive: primaryColor, linkColor: changeColor(primaryColor, { alpha: 0.15 }), linkTextColor: textColor2, linkTextColorHover: primaryColorHover, linkTextColorPressed: primaryColorPressed, linkTextColorActive: primaryColor });
6
+ return Object.assign(Object.assign({}, commonVars), { borderRadius,
7
+ railColor, railColorActive: primaryColor, linkColor: changeColor(primaryColor, { alpha: 0.15 }), linkTextColor: textColor2, linkTextColorHover: primaryColorHover, linkTextColorPressed: primaryColorPressed, linkTextColorActive: primaryColor });
7
8
  };
8
9
  const anchorLight = {
9
10
  name: 'Anchor',
@@ -1,4 +1,4 @@
1
- import { PropType, InputHTMLAttributes } from 'vue';
1
+ import { PropType, InputHTMLAttributes, HTMLAttributes } from 'vue';
2
2
  import { TreeNode } from 'treemate';
3
3
  import { FollowerPlacement } from 'vueuc';
4
4
  import { RenderOption, RenderLabel } from '../../_internal/select-menu/src/interface';
@@ -12,6 +12,7 @@ export declare const autoCompleteProps: {
12
12
  type: PropType<string | boolean | HTMLElement>;
13
13
  default: undefined;
14
14
  };
15
+ readonly menuProps: PropType<HTMLAttributes>;
15
16
  readonly bordered: {
16
17
  readonly type: PropType<boolean | undefined>;
17
18
  readonly default: undefined;
@@ -114,6 +115,7 @@ export declare const autoCompleteProps: {
114
115
  }, any>;
115
116
  }>;
116
117
  Input: import("../../_mixins").Theme<"Input", {
118
+ countTextColorDisabled: string;
117
119
  countTextColor: string;
118
120
  heightTiny: string;
119
121
  heightSmall: string;
@@ -231,6 +233,7 @@ export declare const autoCompleteProps: {
231
233
  }, any>;
232
234
  }>;
233
235
  Input: import("../../_mixins").Theme<"Input", {
236
+ countTextColorDisabled: string;
234
237
  countTextColor: string;
235
238
  heightTiny: string;
236
239
  heightSmall: string;
@@ -348,6 +351,7 @@ export declare const autoCompleteProps: {
348
351
  }, any>;
349
352
  }>;
350
353
  Input: import("../../_mixins").Theme<"Input", {
354
+ countTextColorDisabled: string;
351
355
  countTextColor: string;
352
356
  heightTiny: string;
353
357
  heightSmall: string;
@@ -415,6 +419,7 @@ declare const _default: import("vue").DefineComponent<{
415
419
  type: PropType<string | boolean | HTMLElement>;
416
420
  default: undefined;
417
421
  };
422
+ readonly menuProps: PropType<HTMLAttributes>;
418
423
  readonly bordered: {
419
424
  readonly type: PropType<boolean | undefined>;
420
425
  readonly default: undefined;
@@ -517,6 +522,7 @@ declare const _default: import("vue").DefineComponent<{
517
522
  }, any>;
518
523
  }>;
519
524
  Input: import("../../_mixins").Theme<"Input", {
525
+ countTextColorDisabled: string;
520
526
  countTextColor: string;
521
527
  heightTiny: string;
522
528
  heightSmall: string;
@@ -634,6 +640,7 @@ declare const _default: import("vue").DefineComponent<{
634
640
  }, any>;
635
641
  }>;
636
642
  Input: import("../../_mixins").Theme<"Input", {
643
+ countTextColorDisabled: string;
637
644
  countTextColor: string;
638
645
  heightTiny: string;
639
646
  heightSmall: string;
@@ -751,6 +758,7 @@ declare const _default: import("vue").DefineComponent<{
751
758
  }, any>;
752
759
  }>;
753
760
  Input: import("../../_mixins").Theme<"Input", {
761
+ countTextColorDisabled: string;
754
762
  countTextColor: string;
755
763
  heightTiny: string;
756
764
  heightSmall: string;
@@ -1015,6 +1023,7 @@ declare const _default: import("vue").DefineComponent<{
1015
1023
  }, any>;
1016
1024
  }>;
1017
1025
  Input: import("../../_mixins").Theme<"Input", {
1026
+ countTextColorDisabled: string;
1018
1027
  countTextColor: string;
1019
1028
  heightTiny: string;
1020
1029
  heightSmall: string;
@@ -1118,6 +1127,7 @@ declare const _default: import("vue").DefineComponent<{
1118
1127
  type: PropType<string | boolean | HTMLElement>;
1119
1128
  default: undefined;
1120
1129
  };
1130
+ readonly menuProps: PropType<HTMLAttributes>;
1121
1131
  readonly bordered: {
1122
1132
  readonly type: PropType<boolean | undefined>;
1123
1133
  readonly default: undefined;
@@ -1220,6 +1230,7 @@ declare const _default: import("vue").DefineComponent<{
1220
1230
  }, any>;
1221
1231
  }>;
1222
1232
  Input: import("../../_mixins").Theme<"Input", {
1233
+ countTextColorDisabled: string;
1223
1234
  countTextColor: string;
1224
1235
  heightTiny: string;
1225
1236
  heightSmall: string;
@@ -1337,6 +1348,7 @@ declare const _default: import("vue").DefineComponent<{
1337
1348
  }, any>;
1338
1349
  }>;
1339
1350
  Input: import("../../_mixins").Theme<"Input", {
1351
+ countTextColorDisabled: string;
1340
1352
  countTextColor: string;
1341
1353
  heightTiny: string;
1342
1354
  heightSmall: string;
@@ -1454,6 +1466,7 @@ declare const _default: import("vue").DefineComponent<{
1454
1466
  }, any>;
1455
1467
  }>;
1456
1468
  Input: import("../../_mixins").Theme<"Input", {
1469
+ countTextColorDisabled: string;
1457
1470
  countTextColor: string;
1458
1471
  heightTiny: string;
1459
1472
  heightSmall: string;
@@ -3,6 +3,7 @@ import { createTreeMate } from 'treemate';
3
3
  import { VBinder, VTarget, VFollower } from 'vueuc';
4
4
  import { clickoutside } from 'vdirs';
5
5
  import { useIsMounted, useMergedState } from 'vooks';
6
+ import { getPreciseEventTarget } from 'seemly';
6
7
  import { createTmOptions } from '../../select/src/utils';
7
8
  import { useFormItem, useTheme, useConfig, useThemeClass } from '../../_mixins';
8
9
  import { call, useAdjustedTo, getFirstSlotVNode, warnOnce } from '../../_utils';
@@ -11,7 +12,7 @@ import { NInput } from '../../input';
11
12
  import { autoCompleteLight } from '../styles';
12
13
  import { mapAutoCompleteOptionsToSelectOptions } from './utils';
13
14
  import style from './styles/index.cssr';
14
- export const autoCompleteProps = Object.assign(Object.assign({}, useTheme.props), { to: useAdjustedTo.propTo, bordered: {
15
+ export const autoCompleteProps = Object.assign(Object.assign({}, useTheme.props), { to: useAdjustedTo.propTo, menuProps: Object, bordered: {
15
16
  type: Boolean,
16
17
  default: undefined
17
18
  }, clearable: {
@@ -171,7 +172,7 @@ export default defineComponent({
171
172
  }
172
173
  function handleClickOutsideMenu(e) {
173
174
  var _a;
174
- if (!((_a = triggerElRef.value) === null || _a === void 0 ? void 0 : _a.contains(e.target))) {
175
+ if (!((_a = triggerElRef.value) === null || _a === void 0 ? void 0 : _a.contains(getPreciseEventTarget(e)))) {
175
176
  canBeActivatedRef.value = false;
176
177
  }
177
178
  }
@@ -264,20 +265,25 @@ export default defineComponent({
264
265
  default: () => {
265
266
  var _a;
266
267
  (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
267
- return this.active
268
- ? withDirectives(h(NInternalSelectMenu, { clsPrefix: mergedClsPrefix, ref: "menuInstRef", theme: this.mergedTheme.peers.InternalSelectMenu, themeOverrides: this.mergedTheme.peerOverrides
269
- .InternalSelectMenu, "auto-pending": true, class: [
270
- `${mergedClsPrefix}-auto-complete-menu`,
271
- this.themeClass
272
- ], style: this.cssVars, treeMate: this.treeMate, multiple: false, renderLabel: this.renderLabel, renderOption: this.renderOption, size: "medium", onToggle: this.handleToggle }), [
273
- [
274
- clickoutside,
275
- this.handleClickOutsideMenu,
276
- undefined,
277
- { capture: true }
278
- ]
279
- ])
280
- : null;
268
+ if (!this.active)
269
+ return null;
270
+ const { menuProps } = this;
271
+ return withDirectives(h(NInternalSelectMenu, Object.assign({}, menuProps, { clsPrefix: mergedClsPrefix, ref: "menuInstRef", theme: this.mergedTheme.peers.InternalSelectMenu, themeOverrides: this.mergedTheme.peerOverrides
272
+ .InternalSelectMenu, "auto-pending": true, class: [
273
+ `${mergedClsPrefix}-auto-complete-menu`,
274
+ this.themeClass,
275
+ menuProps === null || menuProps === void 0 ? void 0 : menuProps.class
276
+ ], style: [
277
+ menuProps === null || menuProps === void 0 ? void 0 : menuProps.style,
278
+ this.cssVars
279
+ ], treeMate: this.treeMate, multiple: false, renderLabel: this.renderLabel, renderOption: this.renderOption, size: "medium", onToggle: this.handleToggle })), [
280
+ [
281
+ clickoutside,
282
+ this.handleClickOutsideMenu,
283
+ undefined,
284
+ { capture: true }
285
+ ]
286
+ ]);
281
287
  }
282
288
  }))
283
289
  })
@@ -59,6 +59,7 @@ declare const autoCompleteLight: import("../../_mixins").Theme<"AutoComplete", {
59
59
  }, any>;
60
60
  }>;
61
61
  Input: import("../../_mixins").Theme<"Input", {
62
+ countTextColorDisabled: string;
62
63
  countTextColor: string;
63
64
  heightTiny: string;
64
65
  heightSmall: string;
@@ -2,7 +2,7 @@ import commonVariables from './_common';
2
2
  import { commonLight } from '../../_styles/common';
3
3
  export const self = (vars) => {
4
4
  const { fontSize, textColor3, textColor2, borderRadius, buttonColor2Hover, buttonColor2Pressed } = vars;
5
- return Object.assign(Object.assign({}, commonVariables), { fontSize: fontSize, itemLineHeight: '1.25', itemTextColor: textColor3, itemTextColorHover: textColor2, itemTextColorPressed: textColor2, itemTextColorActive: textColor2, itemBorderRadius: borderRadius, itemColorHover: buttonColor2Hover, itemColorPressed: buttonColor2Pressed, separatorColor: textColor3 });
5
+ return Object.assign(Object.assign({}, commonVariables), { fontSize, itemLineHeight: '1.25', itemTextColor: textColor3, itemTextColorHover: textColor2, itemTextColorPressed: textColor2, itemTextColorActive: textColor2, itemBorderRadius: borderRadius, itemColorHover: buttonColor2Hover, itemColorPressed: buttonColor2Pressed, separatorColor: textColor3 });
6
6
  };
7
7
  const breadcrumbLight = {
8
8
  name: 'Breadcrumb',
@@ -5,7 +5,11 @@ export const self = (vars) => {
5
5
  return Object.assign(Object.assign({}, commonVariables), { heightTiny,
6
6
  heightSmall,
7
7
  heightMedium,
8
- heightLarge, borderRadiusTiny: borderRadius, borderRadiusSmall: borderRadius, borderRadiusMedium: borderRadius, borderRadiusLarge: borderRadius, fontSizeTiny: fontSizeTiny, fontSizeSmall: fontSizeSmall, fontSizeMedium: fontSizeMedium, fontSizeLarge: fontSizeLarge, opacityDisabled: opacityDisabled,
8
+ heightLarge, borderRadiusTiny: borderRadius, borderRadiusSmall: borderRadius, borderRadiusMedium: borderRadius, borderRadiusLarge: borderRadius, fontSizeTiny,
9
+ fontSizeSmall,
10
+ fontSizeMedium,
11
+ fontSizeLarge,
12
+ opacityDisabled,
9
13
  // secondary
10
14
  colorOpacitySecondary: '0.16', colorOpacitySecondaryHover: '0.22', colorOpacitySecondaryPressed: '0.28', colorSecondary: buttonColor2, colorSecondaryHover: buttonColor2Hover, colorSecondaryPressed: buttonColor2Pressed,
11
15
  // tertiary
@@ -2,7 +2,7 @@ import { commonLight } from '../../_styles/common';
2
2
  import commonVariables from './_common';
3
3
  export const self = (vars) => {
4
4
  const { primaryColor, borderRadius, lineHeight, fontSize, cardColor, textColor2, textColor1, dividerColor, fontWeightStrong, closeIconColor, closeIconColorHover, closeIconColorPressed, closeColorHover, closeColorPressed, modalColor, boxShadow1, popoverColor, actionColor } = vars;
5
- return Object.assign(Object.assign({}, commonVariables), { lineHeight, color: cardColor, colorModal: modalColor, colorPopover: popoverColor, colorTarget: primaryColor, colorEmbedded: actionColor, textColor: textColor2, titleTextColor: textColor1, borderColor: dividerColor, actionColor: actionColor, titleFontWeight: fontWeightStrong, closeColorHover,
5
+ return Object.assign(Object.assign({}, commonVariables), { lineHeight, color: cardColor, colorModal: modalColor, colorPopover: popoverColor, colorTarget: primaryColor, colorEmbedded: actionColor, textColor: textColor2, titleTextColor: textColor1, borderColor: dividerColor, actionColor, titleFontWeight: fontWeightStrong, closeColorHover,
6
6
  closeColorPressed, closeBorderRadius: borderRadius, closeIconColor,
7
7
  closeIconColorHover,
8
8
  closeIconColorPressed, fontSizeSmall: fontSize, fontSizeMedium: fontSize, fontSizeLarge: fontSize, fontSizeHuge: fontSize, boxShadow: boxShadow1, borderRadius });
@@ -2,6 +2,7 @@ import { h, defineComponent, ref, cloneVNode, computed, onBeforeUnmount, watch,
2
2
  import { VResizeObserver } from 'vueuc';
3
3
  import { useMergedState } from 'vooks';
4
4
  import { on, off } from 'evtd';
5
+ import { getPreciseEventTarget } from 'seemly';
5
6
  import { useConfig, useTheme, useThemeClass } from '../../_mixins';
6
7
  import { flatten, keep, resolveSlotWithProps } from '../../_utils';
7
8
  import { carouselLight } from '../styles';
@@ -421,8 +422,9 @@ export default defineComponent({
421
422
  var _a;
422
423
  if (globalDragging)
423
424
  return;
424
- if (!((_a = slidesElRef.value) === null || _a === void 0 ? void 0 : _a.contains(event.target)))
425
+ if (!((_a = slidesElRef.value) === null || _a === void 0 ? void 0 : _a.contains(getPreciseEventTarget(event)))) {
425
426
  return;
427
+ }
426
428
  globalDragging = true;
427
429
  dragging = true;
428
430
  isEffectiveDrag = false;
@@ -624,7 +626,7 @@ export default defineComponent({
624
626
  return;
625
627
  resetAutoplay();
626
628
  if (sequenceLayoutRef.value) {
627
- if (duplicatedableRef.value) {
629
+ if (duplicatedableRef.value && displayTotalViewRef.value > 2) {
628
630
  const { value: length } = totalViewRef;
629
631
  if (realIndex === length - 2 && lastRealIndex === 1) {
630
632
  realIndex = 0;
@@ -674,9 +676,9 @@ export default defineComponent({
674
676
  }));
675
677
  const caroulseExposedMethod = {
676
678
  getCurrentIndex: () => mergedDisplayIndexRef.value,
677
- to: to,
678
- prev: prev,
679
- next: next
679
+ to,
680
+ prev,
681
+ next
680
682
  };
681
683
  const themeRef = useTheme('Carousel', '-carousel', style, carouselLight, props, mergedClsPrefixRef);
682
684
  const cssVarsRef = computed(() => {
@@ -32,6 +32,10 @@ export declare const cascaderProps: {
32
32
  readonly type: PropType<boolean | undefined>;
33
33
  readonly default: undefined;
34
34
  };
35
+ readonly disabledField: {
36
+ readonly type: StringConstructor;
37
+ readonly default: "disabled";
38
+ };
35
39
  readonly expandTrigger: {
36
40
  readonly type: PropType<ExpandTrigger>;
37
41
  readonly default: "click";
@@ -684,6 +688,10 @@ declare const _default: import("vue").DefineComponent<{
684
688
  readonly type: PropType<boolean | undefined>;
685
689
  readonly default: undefined;
686
690
  };
691
+ readonly disabledField: {
692
+ readonly type: StringConstructor;
693
+ readonly default: "disabled";
694
+ };
687
695
  readonly expandTrigger: {
688
696
  readonly type: PropType<ExpandTrigger>;
689
697
  readonly default: "click";
@@ -1768,6 +1776,10 @@ declare const _default: import("vue").DefineComponent<{
1768
1776
  readonly type: PropType<boolean | undefined>;
1769
1777
  readonly default: undefined;
1770
1778
  };
1779
+ readonly disabledField: {
1780
+ readonly type: StringConstructor;
1781
+ readonly default: "disabled";
1782
+ };
1771
1783
  readonly expandTrigger: {
1772
1784
  readonly type: PropType<ExpandTrigger>;
1773
1785
  readonly default: "click";
@@ -2413,6 +2425,7 @@ declare const _default: import("vue").DefineComponent<{
2413
2425
  readonly allowCheckingNotLoaded: boolean;
2414
2426
  readonly cascade: boolean;
2415
2427
  readonly checkStrategy: CheckStrategy;
2428
+ readonly disabledField: string;
2416
2429
  readonly leafOnly: boolean;
2417
2430
  readonly showPath: boolean;
2418
2431
  }>;
@@ -1,7 +1,7 @@
1
1
  import { h, defineComponent, computed, provide, ref, watch, toRef, isReactive, watchEffect, nextTick } from 'vue';
2
2
  import { createTreeMate, SubtreeNotLoadedError } from 'treemate';
3
3
  import { VBinder, VTarget, VFollower } from 'vueuc';
4
- import { depx, changeColor, happensIn } from 'seemly';
4
+ import { depx, changeColor, happensIn, getPreciseEventTarget } from 'seemly';
5
5
  import { useIsMounted, useMergedState } from 'vooks';
6
6
  import { NInternalSelection } from '../../_internal';
7
7
  import { useLocale, useTheme, useConfig, useFormItem, useThemeClass } from '../../_mixins';
@@ -24,6 +24,9 @@ export const cascaderProps = Object.assign(Object.assign({}, useTheme.props), {
24
24
  }, placeholder: String, multiple: Boolean, size: String, filterable: Boolean, disabled: {
25
25
  type: Boolean,
26
26
  default: undefined
27
+ }, disabledField: {
28
+ type: String,
29
+ default: 'disabled'
27
30
  }, expandTrigger: {
28
31
  type: String,
29
32
  default: 'click'
@@ -106,8 +109,11 @@ export default defineComponent({
106
109
  loadingKeySetRef.value.delete(key);
107
110
  };
108
111
  const treeMateRef = computed(() => {
109
- const { valueField, childrenField } = props;
112
+ const { valueField, childrenField, disabledField } = props;
110
113
  return createTreeMate(props.options, {
114
+ getDisabled(node) {
115
+ return node[disabledField];
116
+ },
111
117
  getKey(node) {
112
118
  return node[valueField];
113
119
  },
@@ -402,7 +408,7 @@ export default defineComponent({
402
408
  if (showSelectMenuRef.value)
403
409
  return;
404
410
  if (mergedShowRef.value) {
405
- if (!((_a = triggerInstRef.value) === null || _a === void 0 ? void 0 : _a.$el.contains(e.target))) {
411
+ if (!((_a = triggerInstRef.value) === null || _a === void 0 ? void 0 : _a.$el.contains(getPreciseEventTarget(e)))) {
406
412
  closeMenu();
407
413
  }
408
414
  }
@@ -781,7 +787,9 @@ export default defineComponent({
781
787
  h(VBinder, null, {
782
788
  default: () => [
783
789
  h(VTarget, null, {
784
- default: () => (h(NInternalSelection, { onResize: this.handleTriggerResize, 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 }))
790
+ default: () => (h(NInternalSelection, { onResize: this.handleTriggerResize, 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 }, {
791
+ arrow: () => { var _a, _b; return (_b = (_a = this.$slots).arrow) === null || _b === void 0 ? void 0 : _b.call(_a); }
792
+ }))
785
793
  }),
786
794
  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 }, {
787
795
  default: () => {
@@ -145,9 +145,9 @@ export default defineComponent({
145
145
  checkedCountRef: checkedCount,
146
146
  maxRef: toRef(props, 'max'),
147
147
  minRef: toRef(props, 'min'),
148
- valueSetRef: valueSetRef,
148
+ valueSetRef,
149
149
  disabledRef: mergedDisabledRef,
150
- mergedSizeRef: mergedSizeRef,
150
+ mergedSizeRef,
151
151
  toggleCheckbox
152
152
  });
153
153
  return {
@@ -5,7 +5,7 @@ export const self = (vars) => {
5
5
  const { baseColor, inputColorDisabled, cardColor, modalColor, popoverColor, textColorDisabled, borderColor, primaryColor, textColor2, fontSizeSmall, fontSizeMedium, fontSizeLarge, borderRadiusSmall, lineHeight } = vars;
6
6
  return Object.assign(Object.assign({}, commonVariables), { labelLineHeight: lineHeight, fontSizeSmall,
7
7
  fontSizeMedium,
8
- fontSizeLarge, borderRadius: borderRadiusSmall, color: baseColor, colorChecked: primaryColor, colorDisabled: inputColorDisabled, colorDisabledChecked: inputColorDisabled, colorTableHeader: cardColor, colorTableHeaderModal: modalColor, colorTableHeaderPopover: popoverColor, checkMarkColor: baseColor, checkMarkColorDisabled: textColorDisabled, checkMarkColorDisabledChecked: textColorDisabled, border: `1px solid ${borderColor}`, borderDisabled: `1px solid ${borderColor}`, borderDisabledChecked: `1px solid ${borderColor}`, borderChecked: `1px solid ${primaryColor}`, borderFocus: `1px solid ${primaryColor}`, boxShadowFocus: `0 0 0 2px ${changeColor(primaryColor, { alpha: 0.3 })}`, textColor: textColor2, textColorDisabled: textColorDisabled });
8
+ fontSizeLarge, borderRadius: borderRadiusSmall, color: baseColor, colorChecked: primaryColor, colorDisabled: inputColorDisabled, colorDisabledChecked: inputColorDisabled, colorTableHeader: cardColor, colorTableHeaderModal: modalColor, colorTableHeaderPopover: popoverColor, checkMarkColor: baseColor, checkMarkColorDisabled: textColorDisabled, checkMarkColorDisabledChecked: textColorDisabled, border: `1px solid ${borderColor}`, borderDisabled: `1px solid ${borderColor}`, borderDisabledChecked: `1px solid ${borderColor}`, borderChecked: `1px solid ${primaryColor}`, borderFocus: `1px solid ${primaryColor}`, boxShadowFocus: `0 0 0 2px ${changeColor(primaryColor, { alpha: 0.3 })}`, textColor: textColor2, textColorDisabled });
9
9
  };
10
10
  const checkboxLight = {
11
11
  name: 'Checkbox',