naive-ui 2.31.0 → 2.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (398) hide show
  1. package/dist/index.js +3197 -1769
  2. package/dist/index.prod.js +1 -1
  3. package/es/_internal/scrollbar/src/Scrollbar.d.ts +5 -0
  4. package/es/_internal/scrollbar/src/Scrollbar.js +49 -26
  5. package/es/_internal/scrollbar/src/styles/index.cssr.js +1 -1
  6. package/es/_internal/scrollbar/src/styles/rtl.cssr.d.ts +2 -0
  7. package/es/_internal/scrollbar/src/styles/rtl.cssr.js +10 -0
  8. package/es/_internal/scrollbar/styles/index.d.ts +1 -0
  9. package/es/_internal/scrollbar/styles/index.js +1 -0
  10. package/es/_internal/scrollbar/styles/rtl.d.ts +3 -0
  11. package/es/_internal/scrollbar/styles/rtl.js +6 -0
  12. package/es/_internal/selection/src/Selection.js +4 -2
  13. package/es/_internal/selection/src/styles/index.cssr.js +4 -1
  14. package/es/_mixins/index.d.ts +1 -0
  15. package/es/_mixins/index.js +1 -0
  16. package/es/_utils/naive/extract-public-props.d.ts +4 -1
  17. package/es/auto-complete/src/AutoComplete.d.ts +1 -0
  18. package/es/avatar/src/Avatar.d.ts +0 -1
  19. package/es/avatar/src/Avatar.js +12 -10
  20. package/es/button/src/Button.js +3 -0
  21. package/es/carousel/src/Carousel.d.ts +16 -37
  22. package/es/carousel/src/Carousel.js +269 -272
  23. package/es/carousel/src/CarouselArrow.js +3 -5
  24. package/es/carousel/src/CarouselContext.d.ts +21 -0
  25. package/es/carousel/src/CarouselContext.js +11 -0
  26. package/es/carousel/src/CarouselDots.d.ts +1 -1
  27. package/es/carousel/src/CarouselDots.js +23 -31
  28. package/es/carousel/src/CarouselItem.d.ts +4 -4
  29. package/es/carousel/src/CarouselItem.js +17 -36
  30. package/es/carousel/src/interface.d.ts +12 -31
  31. package/es/carousel/src/interface.js +1 -3
  32. package/es/carousel/src/styles/index.cssr.js +8 -3
  33. package/es/carousel/src/{utils.d.ts → utils/duplicatedLogic.d.ts} +3 -8
  34. package/es/carousel/src/utils/duplicatedLogic.js +46 -0
  35. package/es/carousel/src/utils/event.d.ts +1 -0
  36. package/es/carousel/src/utils/event.js +3 -0
  37. package/es/carousel/src/utils/index.d.ts +6 -0
  38. package/es/carousel/src/{utils.js → utils/index.js} +3 -28
  39. package/es/checkbox/src/CheckboxGroup.d.ts +27 -22
  40. package/es/checkbox/src/CheckboxGroup.js +58 -28
  41. package/es/code/src/Code.d.ts +16 -0
  42. package/es/code/src/Code.js +53 -12
  43. package/es/code/src/styles/index.cssr.js +14 -2
  44. package/es/code/styles/dark.js +4 -2
  45. package/es/code/styles/light.d.ts +1 -0
  46. package/es/code/styles/light.js +4 -2
  47. package/es/components.d.ts +1 -0
  48. package/es/components.js +1 -0
  49. package/es/config-provider/src/ConfigProvider.d.ts +24 -3
  50. package/es/config-provider/src/internal-interface.d.ts +4 -0
  51. package/es/date-picker/src/DatePicker.d.ts +1 -0
  52. package/es/date-picker/src/panel/daterange.d.ts +0 -1
  53. package/es/date-picker/src/panel/daterange.js +1 -1
  54. package/es/date-picker/src/panel/datetimerange.d.ts +0 -1
  55. package/es/date-picker/src/panel/datetimerange.js +1 -1
  56. package/es/date-picker/src/panel/monthrange.d.ts +0 -1
  57. package/es/date-picker/src/panel/monthrange.js +1 -1
  58. package/es/date-picker/src/panel/use-dual-calendar.d.ts +0 -1
  59. package/es/date-picker/src/panel/use-dual-calendar.js +0 -11
  60. package/es/dialog/src/DialogEnvironment.d.ts +4 -0
  61. package/es/dialog/src/DialogEnvironment.js +11 -4
  62. package/es/dialog/src/DialogProvider.d.ts +1 -0
  63. package/es/dynamic-tags/src/DynamicTags.d.ts +1 -0
  64. package/es/image/src/utils.d.ts +1 -1
  65. package/es/input/src/Input.d.ts +1 -0
  66. package/es/input/src/Input.js +19 -8
  67. package/es/input/src/interface.d.ts +1 -0
  68. package/es/input/src/styles/input.cssr.js +1 -6
  69. package/es/input-number/src/InputNumber.d.ts +1 -0
  70. package/es/input-number/src/InputNumber.js +4 -0
  71. package/es/legacy-grid/src/Row.d.ts +1 -0
  72. package/es/legacy-grid/src/Row.js +8 -3
  73. package/es/legacy-grid/src/styles/rtl.cssr.d.ts +2 -0
  74. package/es/legacy-grid/src/styles/rtl.cssr.js +21 -0
  75. package/es/legacy-grid/styles/dark.d.ts +4 -0
  76. package/es/legacy-grid/styles/dark.js +6 -0
  77. package/es/legacy-grid/styles/index.d.ts +4 -0
  78. package/es/legacy-grid/styles/index.js +3 -0
  79. package/es/legacy-grid/styles/light.d.ts +4 -0
  80. package/es/legacy-grid/styles/light.js +6 -0
  81. package/es/legacy-grid/styles/rtl.d.ts +2 -0
  82. package/es/legacy-grid/styles/rtl.js +5 -0
  83. package/es/legacy-transfer/index.d.ts +3 -0
  84. package/es/legacy-transfer/index.js +1 -0
  85. package/es/legacy-transfer/src/Transfer.d.ts +3631 -0
  86. package/es/legacy-transfer/src/Transfer.js +214 -0
  87. package/es/legacy-transfer/src/TransferFilter.d.ts +509 -0
  88. package/es/legacy-transfer/src/TransferFilter.js +40 -0
  89. package/es/legacy-transfer/src/TransferHeader.d.ts +25 -0
  90. package/es/legacy-transfer/src/TransferHeader.js +47 -0
  91. package/es/legacy-transfer/src/TransferList.d.ts +556 -0
  92. package/es/legacy-transfer/src/TransferList.js +93 -0
  93. package/es/legacy-transfer/src/TransferListItem.d.ts +513 -0
  94. package/es/legacy-transfer/src/TransferListItem.js +65 -0
  95. package/es/legacy-transfer/src/interface.d.ts +31 -0
  96. package/es/legacy-transfer/src/interface.js +2 -0
  97. package/es/legacy-transfer/src/styles/index.cssr.d.ts +2 -0
  98. package/es/legacy-transfer/src/styles/index.cssr.js +215 -0
  99. package/es/legacy-transfer/src/use-transfer-data.d.ts +41 -0
  100. package/es/legacy-transfer/src/use-transfer-data.js +145 -0
  101. package/es/legacy-transfer/styles/_common.d.ts +5 -0
  102. package/es/legacy-transfer/styles/_common.js +4 -0
  103. package/es/legacy-transfer/styles/dark.d.ts +3 -0
  104. package/es/legacy-transfer/styles/dark.js +27 -0
  105. package/es/legacy-transfer/styles/index.d.ts +3 -0
  106. package/es/legacy-transfer/styles/index.js +2 -0
  107. package/es/legacy-transfer/styles/light.d.ts +363 -0
  108. package/es/legacy-transfer/styles/light.js +31 -0
  109. package/es/locales/common/deDE.js +11 -6
  110. package/es/locales/common/enGB.js +8 -1
  111. package/es/locales/common/enUS.d.ts +8 -1
  112. package/es/locales/common/enUS.js +8 -1
  113. package/es/locales/common/eo.js +10 -2
  114. package/es/locales/common/esAR.js +9 -1
  115. package/es/locales/common/frFR.js +9 -1
  116. package/es/locales/common/idID.js +9 -1
  117. package/es/locales/common/itIT.js +9 -1
  118. package/es/locales/common/jaJP.js +9 -1
  119. package/es/locales/common/koKR.js +9 -1
  120. package/es/locales/common/nbNO.js +9 -1
  121. package/es/locales/common/nlNL.js +9 -1
  122. package/es/locales/common/plPL.js +9 -1
  123. package/es/locales/common/ptBR.js +9 -1
  124. package/es/locales/common/ruRU.js +9 -1
  125. package/es/locales/common/skSK.js +9 -1
  126. package/es/locales/common/thTH.js +9 -1
  127. package/es/locales/common/ukUA.js +9 -1
  128. package/es/locales/common/viVN.js +9 -1
  129. package/es/locales/common/zhCN.js +8 -1
  130. package/es/locales/common/zhTW.js +9 -1
  131. package/es/log/src/Log.d.ts +10 -0
  132. package/es/log/styles/light.d.ts +1 -0
  133. package/es/mention/src/Mention.d.ts +1 -0
  134. package/es/notification/src/Notification.d.ts +11 -1
  135. package/es/notification/src/Notification.js +6 -4
  136. package/es/notification/src/NotificationEnvironment.d.ts +12 -0
  137. package/es/notification/src/NotificationEnvironment.js +27 -2
  138. package/es/notification/src/NotificationProvider.d.ts +7 -0
  139. package/es/notification/src/NotificationProvider.js +4 -2
  140. package/es/pagination/src/Pagination.d.ts +1 -0
  141. package/es/progress/src/Circle.js +3 -1
  142. package/es/select/src/Select.js +3 -0
  143. package/es/statistic/src/Statistic.d.ts +1 -0
  144. package/es/statistic/src/Statistic.js +9 -3
  145. package/es/statistic/src/styles/rtl.cssr.d.ts +2 -0
  146. package/es/statistic/src/styles/rtl.cssr.js +9 -0
  147. package/es/statistic/styles/index.d.ts +1 -0
  148. package/es/statistic/styles/index.js +1 -0
  149. package/es/statistic/styles/rtl.d.ts +2 -0
  150. package/es/statistic/styles/rtl.js +5 -0
  151. package/es/styles.d.ts +6 -3
  152. package/es/styles.js +6 -3
  153. package/es/themes/dark.js +4 -0
  154. package/es/themes/light.js +4 -0
  155. package/es/thing/src/Thing.js +9 -3
  156. package/es/thing/src/styles/rtl.cssr.d.ts +2 -0
  157. package/es/thing/src/styles/rtl.cssr.js +8 -0
  158. package/es/thing/styles/index.d.ts +1 -0
  159. package/es/thing/styles/index.js +1 -0
  160. package/es/thing/styles/rtl.d.ts +2 -0
  161. package/es/thing/styles/rtl.js +8 -0
  162. package/es/time-picker/src/TimePicker.d.ts +1 -0
  163. package/es/transfer/index.d.ts +1 -1
  164. package/es/transfer/src/Transfer.d.ts +210 -90
  165. package/es/transfer/src/Transfer.js +67 -106
  166. package/es/transfer/src/TransferFilter.d.ts +18 -21
  167. package/es/transfer/src/TransferFilter.js +2 -10
  168. package/es/transfer/src/TransferHeader.d.ts +10 -12
  169. package/es/transfer/src/TransferHeader.js +24 -29
  170. package/es/transfer/src/TransferList.d.ts +20 -29
  171. package/es/transfer/src/TransferList.js +15 -32
  172. package/es/transfer/src/TransferListItem.d.ts +32 -19
  173. package/es/transfer/src/TransferListItem.js +33 -29
  174. package/es/transfer/src/interface.d.ts +21 -15
  175. package/es/transfer/src/styles/index.cssr.js +75 -139
  176. package/es/transfer/src/use-transfer-data.d.ts +13 -31
  177. package/es/transfer/src/use-transfer-data.js +45 -121
  178. package/es/transfer/styles/_common.d.ts +11 -2
  179. package/es/transfer/styles/_common.js +11 -2
  180. package/es/transfer/styles/dark.js +8 -4
  181. package/es/transfer/styles/light.d.ts +36 -10
  182. package/es/transfer/styles/light.js +7 -5
  183. package/es/tree/src/Tree.d.ts +1 -0
  184. package/es/tree/src/Tree.js +22 -16
  185. package/es/tree/src/TreeNode.d.ts +1 -0
  186. package/es/tree/src/TreeNode.js +5 -3
  187. package/es/tree/src/styles/rtl.cssr.d.ts +2 -0
  188. package/es/tree/src/styles/rtl.cssr.js +17 -0
  189. package/es/tree/styles/index.d.ts +1 -0
  190. package/es/tree/styles/index.js +1 -0
  191. package/es/tree/styles/rtl.d.ts +2 -0
  192. package/es/tree/styles/rtl.js +5 -0
  193. package/es/upload/src/interface.d.ts +2 -2
  194. package/es/version.d.ts +1 -1
  195. package/es/version.js +1 -1
  196. package/es/watermark/src/Watermark.d.ts +13 -0
  197. package/es/watermark/src/Watermark.js +35 -14
  198. package/es/watermark/src/styles/index.cssr.js +13 -0
  199. package/lib/_internal/scrollbar/src/Scrollbar.d.ts +5 -0
  200. package/lib/_internal/scrollbar/src/Scrollbar.js +47 -24
  201. package/lib/_internal/scrollbar/src/styles/index.cssr.js +1 -1
  202. package/lib/_internal/scrollbar/src/styles/rtl.cssr.d.ts +2 -0
  203. package/lib/_internal/scrollbar/src/styles/rtl.cssr.js +17 -0
  204. package/lib/_internal/scrollbar/styles/index.d.ts +1 -0
  205. package/lib/_internal/scrollbar/styles/index.js +3 -1
  206. package/lib/_internal/scrollbar/styles/rtl.d.ts +3 -0
  207. package/lib/_internal/scrollbar/styles/rtl.js +12 -0
  208. package/lib/_internal/selection/src/Selection.js +4 -2
  209. package/lib/_internal/selection/src/styles/index.cssr.js +4 -1
  210. package/lib/_mixins/index.d.ts +1 -0
  211. package/lib/_mixins/index.js +3 -1
  212. package/lib/_utils/naive/extract-public-props.d.ts +4 -1
  213. package/lib/auto-complete/src/AutoComplete.d.ts +1 -0
  214. package/lib/avatar/src/Avatar.d.ts +0 -1
  215. package/lib/avatar/src/Avatar.js +12 -10
  216. package/lib/button/src/Button.js +3 -0
  217. package/lib/carousel/src/Carousel.d.ts +16 -37
  218. package/lib/carousel/src/Carousel.js +290 -270
  219. package/lib/carousel/src/CarouselArrow.js +2 -4
  220. package/lib/carousel/src/CarouselContext.d.ts +21 -0
  221. package/lib/carousel/src/CarouselContext.js +16 -0
  222. package/lib/carousel/src/CarouselDots.d.ts +1 -1
  223. package/lib/carousel/src/CarouselDots.js +22 -30
  224. package/lib/carousel/src/CarouselItem.d.ts +4 -4
  225. package/lib/carousel/src/CarouselItem.js +18 -35
  226. package/lib/carousel/src/interface.d.ts +12 -31
  227. package/lib/carousel/src/interface.js +0 -5
  228. package/lib/carousel/src/styles/index.cssr.js +8 -3
  229. package/lib/carousel/src/{utils.d.ts → utils/duplicatedLogic.d.ts} +3 -8
  230. package/lib/carousel/src/utils/duplicatedLogic.js +55 -0
  231. package/lib/carousel/src/utils/event.d.ts +1 -0
  232. package/lib/carousel/src/utils/event.js +7 -0
  233. package/lib/carousel/src/utils/index.d.ts +6 -0
  234. package/lib/carousel/src/utils/index.js +53 -0
  235. package/lib/checkbox/src/CheckboxGroup.d.ts +27 -22
  236. package/lib/checkbox/src/CheckboxGroup.js +56 -26
  237. package/lib/code/src/Code.d.ts +16 -0
  238. package/lib/code/src/Code.js +53 -12
  239. package/lib/code/src/styles/index.cssr.js +13 -1
  240. package/lib/code/styles/dark.js +4 -2
  241. package/lib/code/styles/light.d.ts +1 -0
  242. package/lib/code/styles/light.js +4 -2
  243. package/lib/components.d.ts +1 -0
  244. package/lib/components.js +1 -0
  245. package/lib/config-provider/src/ConfigProvider.d.ts +24 -3
  246. package/lib/config-provider/src/internal-interface.d.ts +4 -0
  247. package/lib/date-picker/src/DatePicker.d.ts +1 -0
  248. package/lib/date-picker/src/panel/daterange.d.ts +0 -1
  249. package/lib/date-picker/src/panel/daterange.js +1 -1
  250. package/lib/date-picker/src/panel/datetimerange.d.ts +0 -1
  251. package/lib/date-picker/src/panel/datetimerange.js +1 -1
  252. package/lib/date-picker/src/panel/monthrange.d.ts +0 -1
  253. package/lib/date-picker/src/panel/monthrange.js +1 -1
  254. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +0 -1
  255. package/lib/date-picker/src/panel/use-dual-calendar.js +0 -11
  256. package/lib/dialog/src/DialogEnvironment.d.ts +4 -0
  257. package/lib/dialog/src/DialogEnvironment.js +11 -4
  258. package/lib/dialog/src/DialogProvider.d.ts +1 -0
  259. package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -0
  260. package/lib/image/src/utils.d.ts +1 -1
  261. package/lib/input/src/Input.d.ts +1 -0
  262. package/lib/input/src/Input.js +19 -8
  263. package/lib/input/src/interface.d.ts +1 -0
  264. package/lib/input/src/styles/input.cssr.js +1 -6
  265. package/lib/input-number/src/InputNumber.d.ts +1 -0
  266. package/lib/input-number/src/InputNumber.js +4 -0
  267. package/lib/legacy-grid/src/Row.d.ts +1 -0
  268. package/lib/legacy-grid/src/Row.js +7 -2
  269. package/lib/legacy-grid/src/styles/rtl.cssr.d.ts +2 -0
  270. package/lib/legacy-grid/src/styles/rtl.cssr.js +28 -0
  271. package/lib/legacy-grid/styles/dark.d.ts +4 -0
  272. package/lib/legacy-grid/styles/dark.js +8 -0
  273. package/lib/legacy-grid/styles/index.d.ts +4 -0
  274. package/lib/legacy-grid/styles/index.js +12 -0
  275. package/lib/legacy-grid/styles/light.d.ts +4 -0
  276. package/lib/legacy-grid/styles/light.js +8 -0
  277. package/lib/legacy-grid/styles/rtl.d.ts +2 -0
  278. package/lib/legacy-grid/styles/rtl.js +11 -0
  279. package/lib/legacy-transfer/index.d.ts +3 -0
  280. package/lib/legacy-transfer/index.js +9 -0
  281. package/lib/legacy-transfer/src/Transfer.d.ts +3631 -0
  282. package/lib/legacy-transfer/src/Transfer.js +220 -0
  283. package/lib/legacy-transfer/src/TransferFilter.d.ts +509 -0
  284. package/lib/legacy-transfer/src/TransferFilter.js +42 -0
  285. package/lib/legacy-transfer/src/TransferHeader.d.ts +25 -0
  286. package/lib/legacy-transfer/src/TransferHeader.js +49 -0
  287. package/lib/legacy-transfer/src/TransferList.d.ts +556 -0
  288. package/lib/legacy-transfer/src/TransferList.js +98 -0
  289. package/lib/legacy-transfer/src/TransferListItem.d.ts +513 -0
  290. package/lib/legacy-transfer/src/TransferListItem.js +67 -0
  291. package/lib/legacy-transfer/src/interface.d.ts +31 -0
  292. package/lib/legacy-transfer/src/interface.js +5 -0
  293. package/lib/legacy-transfer/src/styles/index.cssr.d.ts +2 -0
  294. package/lib/legacy-transfer/src/styles/index.cssr.js +223 -0
  295. package/lib/legacy-transfer/src/use-transfer-data.d.ts +41 -0
  296. package/lib/legacy-transfer/src/use-transfer-data.js +149 -0
  297. package/lib/legacy-transfer/styles/_common.d.ts +5 -0
  298. package/lib/legacy-transfer/styles/_common.js +6 -0
  299. package/lib/legacy-transfer/styles/dark.d.ts +3 -0
  300. package/lib/legacy-transfer/styles/dark.js +32 -0
  301. package/lib/legacy-transfer/styles/index.d.ts +3 -0
  302. package/lib/legacy-transfer/styles/index.js +10 -0
  303. package/lib/legacy-transfer/styles/light.d.ts +363 -0
  304. package/lib/legacy-transfer/styles/light.js +36 -0
  305. package/lib/locales/common/deDE.js +11 -6
  306. package/lib/locales/common/enGB.js +8 -1
  307. package/lib/locales/common/enUS.d.ts +8 -1
  308. package/lib/locales/common/enUS.js +8 -1
  309. package/lib/locales/common/eo.js +10 -2
  310. package/lib/locales/common/esAR.js +9 -1
  311. package/lib/locales/common/frFR.js +9 -1
  312. package/lib/locales/common/idID.js +9 -1
  313. package/lib/locales/common/itIT.js +9 -1
  314. package/lib/locales/common/jaJP.js +9 -1
  315. package/lib/locales/common/koKR.js +9 -1
  316. package/lib/locales/common/nbNO.js +9 -1
  317. package/lib/locales/common/nlNL.js +9 -1
  318. package/lib/locales/common/plPL.js +9 -1
  319. package/lib/locales/common/ptBR.js +9 -1
  320. package/lib/locales/common/ruRU.js +9 -1
  321. package/lib/locales/common/skSK.js +9 -1
  322. package/lib/locales/common/thTH.js +9 -1
  323. package/lib/locales/common/ukUA.js +9 -1
  324. package/lib/locales/common/viVN.js +9 -1
  325. package/lib/locales/common/zhCN.js +8 -1
  326. package/lib/locales/common/zhTW.js +9 -1
  327. package/lib/log/src/Log.d.ts +10 -0
  328. package/lib/log/styles/light.d.ts +1 -0
  329. package/lib/mention/src/Mention.d.ts +1 -0
  330. package/lib/notification/src/Notification.d.ts +11 -1
  331. package/lib/notification/src/Notification.js +6 -4
  332. package/lib/notification/src/NotificationEnvironment.d.ts +12 -0
  333. package/lib/notification/src/NotificationEnvironment.js +27 -2
  334. package/lib/notification/src/NotificationProvider.d.ts +7 -0
  335. package/lib/notification/src/NotificationProvider.js +4 -2
  336. package/lib/pagination/src/Pagination.d.ts +1 -0
  337. package/lib/progress/src/Circle.js +3 -1
  338. package/lib/select/src/Select.js +3 -0
  339. package/lib/statistic/src/Statistic.d.ts +1 -0
  340. package/lib/statistic/src/Statistic.js +8 -2
  341. package/lib/statistic/src/styles/rtl.cssr.d.ts +2 -0
  342. package/lib/statistic/src/styles/rtl.cssr.js +16 -0
  343. package/lib/statistic/styles/index.d.ts +1 -0
  344. package/lib/statistic/styles/index.js +3 -1
  345. package/lib/statistic/styles/rtl.d.ts +2 -0
  346. package/lib/statistic/styles/rtl.js +11 -0
  347. package/lib/styles.d.ts +6 -3
  348. package/lib/styles.js +151 -142
  349. package/lib/themes/dark.js +82 -78
  350. package/lib/themes/light.js +82 -78
  351. package/lib/thing/src/Thing.js +8 -2
  352. package/lib/thing/src/styles/rtl.cssr.d.ts +2 -0
  353. package/lib/thing/src/styles/rtl.cssr.js +15 -0
  354. package/lib/thing/styles/index.d.ts +1 -0
  355. package/lib/thing/styles/index.js +3 -1
  356. package/lib/thing/styles/rtl.d.ts +2 -0
  357. package/lib/thing/styles/rtl.js +14 -0
  358. package/lib/time-picker/src/TimePicker.d.ts +1 -0
  359. package/lib/transfer/index.d.ts +1 -1
  360. package/lib/transfer/src/Transfer.d.ts +210 -90
  361. package/lib/transfer/src/Transfer.js +63 -102
  362. package/lib/transfer/src/TransferFilter.d.ts +18 -21
  363. package/lib/transfer/src/TransferFilter.js +2 -10
  364. package/lib/transfer/src/TransferHeader.d.ts +10 -12
  365. package/lib/transfer/src/TransferHeader.js +23 -28
  366. package/lib/transfer/src/TransferList.d.ts +20 -29
  367. package/lib/transfer/src/TransferList.js +14 -31
  368. package/lib/transfer/src/TransferListItem.d.ts +32 -19
  369. package/lib/transfer/src/TransferListItem.js +33 -29
  370. package/lib/transfer/src/interface.d.ts +21 -15
  371. package/lib/transfer/src/styles/index.cssr.js +74 -139
  372. package/lib/transfer/src/use-transfer-data.d.ts +13 -31
  373. package/lib/transfer/src/use-transfer-data.js +44 -120
  374. package/lib/transfer/styles/_common.d.ts +11 -2
  375. package/lib/transfer/styles/_common.js +11 -2
  376. package/lib/transfer/styles/dark.js +8 -4
  377. package/lib/transfer/styles/light.d.ts +36 -10
  378. package/lib/transfer/styles/light.js +7 -5
  379. package/lib/tree/src/Tree.d.ts +1 -0
  380. package/lib/tree/src/Tree.js +21 -15
  381. package/lib/tree/src/TreeNode.d.ts +1 -0
  382. package/lib/tree/src/TreeNode.js +5 -3
  383. package/lib/tree/src/styles/rtl.cssr.d.ts +2 -0
  384. package/lib/tree/src/styles/rtl.cssr.js +24 -0
  385. package/lib/tree/styles/index.d.ts +1 -0
  386. package/lib/tree/styles/index.js +3 -1
  387. package/lib/tree/styles/rtl.d.ts +2 -0
  388. package/lib/tree/styles/rtl.js +11 -0
  389. package/lib/upload/src/interface.d.ts +2 -2
  390. package/lib/version.d.ts +1 -1
  391. package/lib/version.js +1 -1
  392. package/lib/watermark/src/Watermark.d.ts +13 -0
  393. package/lib/watermark/src/Watermark.js +34 -13
  394. package/lib/watermark/src/styles/index.cssr.js +13 -0
  395. package/package.json +4 -3
  396. package/volar.d.ts +1 -0
  397. package/web-types.json +183 -1
  398. package/lib/carousel/src/utils.js +0 -69
@@ -0,0 +1,509 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ value: StringConstructor;
4
+ placeholder: StringConstructor;
5
+ disabled: BooleanConstructor;
6
+ onFocus: {
7
+ type: PropType<() => void>;
8
+ required: true;
9
+ };
10
+ onBlur: {
11
+ type: PropType<() => void>;
12
+ required: true;
13
+ };
14
+ onUpdateValue: {
15
+ type: PropType<(value: string | null) => void>;
16
+ required: true;
17
+ };
18
+ }, {
19
+ mergedClsPrefix: import("vue").Ref<string>;
20
+ mergedTheme: import("vue").Ref<{
21
+ common: {
22
+ baseColor: string;
23
+ primaryColor: string;
24
+ primaryColorHover: string;
25
+ primaryColorPressed: string;
26
+ primaryColorSuppl: string;
27
+ infoColor: string;
28
+ infoColorHover: string;
29
+ infoColorPressed: string;
30
+ infoColorSuppl: string;
31
+ successColor: string;
32
+ successColorHover: string;
33
+ successColorPressed: string;
34
+ successColorSuppl: string;
35
+ warningColor: string;
36
+ warningColorHover: string;
37
+ warningColorPressed: string;
38
+ warningColorSuppl: string;
39
+ errorColor: string;
40
+ errorColorHover: string;
41
+ errorColorPressed: string;
42
+ errorColorSuppl: string;
43
+ textColorBase: string;
44
+ textColor1: string;
45
+ textColor2: string;
46
+ textColor3: string;
47
+ textColorDisabled: string;
48
+ placeholderColor: string;
49
+ placeholderColorDisabled: string;
50
+ iconColor: string;
51
+ iconColorHover: string;
52
+ iconColorPressed: string;
53
+ iconColorDisabled: string;
54
+ opacity1: string;
55
+ opacity2: string;
56
+ opacity3: string;
57
+ opacity4: string;
58
+ opacity5: string;
59
+ dividerColor: string;
60
+ borderColor: string;
61
+ closeIconColor: string;
62
+ closeIconColorHover: string;
63
+ closeIconColorPressed: string;
64
+ closeColorHover: string;
65
+ closeColorPressed: string;
66
+ clearColor: string;
67
+ clearColorHover: string;
68
+ clearColorPressed: string;
69
+ scrollbarColor: string;
70
+ scrollbarColorHover: string;
71
+ scrollbarWidth: string;
72
+ scrollbarHeight: string;
73
+ scrollbarBorderRadius: string;
74
+ progressRailColor: string;
75
+ railColor: string;
76
+ popoverColor: string;
77
+ tableColor: string;
78
+ cardColor: string;
79
+ modalColor: string;
80
+ bodyColor: string;
81
+ tagColor: string;
82
+ avatarColor: string;
83
+ invertedColor: string;
84
+ inputColor: string;
85
+ codeColor: string;
86
+ tabColor: string;
87
+ actionColor: string;
88
+ tableHeaderColor: string;
89
+ hoverColor: string;
90
+ tableColorHover: string;
91
+ tableColorStriped: string;
92
+ pressedColor: string;
93
+ opacityDisabled: string;
94
+ inputColorDisabled: string;
95
+ buttonColor2: string;
96
+ buttonColor2Hover: string;
97
+ buttonColor2Pressed: string;
98
+ boxShadow1: string;
99
+ boxShadow2: string;
100
+ boxShadow3: string;
101
+ fontFamily: string;
102
+ fontFamilyMono: string;
103
+ fontWeight: string;
104
+ fontWeightStrong: string;
105
+ cubicBezierEaseInOut: string;
106
+ cubicBezierEaseOut: string;
107
+ cubicBezierEaseIn: string;
108
+ borderRadius: string;
109
+ borderRadiusSmall: string;
110
+ fontSize: string;
111
+ fontSizeMini: string;
112
+ fontSizeTiny: string;
113
+ fontSizeSmall: string;
114
+ fontSizeMedium: string;
115
+ fontSizeLarge: string;
116
+ fontSizeHuge: string;
117
+ lineHeight: string;
118
+ heightMini: string;
119
+ heightTiny: string;
120
+ heightSmall: string;
121
+ heightMedium: string;
122
+ heightLarge: string;
123
+ heightHuge: string;
124
+ name: "common";
125
+ };
126
+ self: {
127
+ itemHeightSmall: string;
128
+ itemHeightMedium: string;
129
+ itemHeightLarge: string;
130
+ fontSizeSmall: string;
131
+ fontSizeMedium: string;
132
+ fontSizeLarge: string;
133
+ borderRadius: string;
134
+ borderColor: string;
135
+ listColor: string;
136
+ headerColor: string;
137
+ titleTextColor: string;
138
+ titleTextColorDisabled: string;
139
+ extraTextColor: string;
140
+ filterDividerColor: string;
141
+ itemTextColor: string;
142
+ itemTextColorDisabled: string;
143
+ itemColorPending: string;
144
+ titleFontWeight: string;
145
+ iconColor: string;
146
+ iconColorDisabled: string;
147
+ extraFontSize: string;
148
+ width: string;
149
+ };
150
+ peers: {
151
+ Checkbox: import("../../_mixins").Theme<"Checkbox", {
152
+ labelLineHeight: string;
153
+ fontSizeSmall: string;
154
+ fontSizeMedium: string;
155
+ fontSizeLarge: string;
156
+ borderRadius: string;
157
+ color: string;
158
+ colorChecked: string;
159
+ colorDisabled: string;
160
+ colorDisabledChecked: string;
161
+ colorTableHeader: string;
162
+ colorTableHeaderModal: string;
163
+ colorTableHeaderPopover: string;
164
+ checkMarkColor: string;
165
+ checkMarkColorDisabled: string;
166
+ checkMarkColorDisabledChecked: string;
167
+ border: string;
168
+ borderDisabled: string;
169
+ borderDisabledChecked: string;
170
+ borderChecked: string;
171
+ borderFocus: string;
172
+ boxShadowFocus: string;
173
+ textColor: string;
174
+ textColorDisabled: string;
175
+ sizeSmall: string;
176
+ sizeMedium: string;
177
+ sizeLarge: string;
178
+ labelPadding: string;
179
+ }, any>;
180
+ Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
181
+ color: string;
182
+ colorHover: string;
183
+ }, any>;
184
+ Input: import("../../_mixins").Theme<"Input", {
185
+ countTextColor: string;
186
+ heightTiny: string;
187
+ heightSmall: string;
188
+ heightMedium: string;
189
+ heightLarge: string;
190
+ fontSizeTiny: string;
191
+ fontSizeSmall: string;
192
+ fontSizeMedium: string;
193
+ fontSizeLarge: string;
194
+ lineHeight: string;
195
+ lineHeightTextarea: string;
196
+ borderRadius: string;
197
+ iconSize: string;
198
+ groupLabelColor: string;
199
+ groupLabelTextColor: string;
200
+ textColor: string;
201
+ textColorDisabled: string;
202
+ textDecorationColor: string;
203
+ caretColor: string;
204
+ placeholderColor: string;
205
+ placeholderColorDisabled: string;
206
+ color: string;
207
+ colorDisabled: string;
208
+ colorFocus: string;
209
+ groupLabelBorder: string;
210
+ border: string;
211
+ borderHover: string;
212
+ borderDisabled: string;
213
+ borderFocus: string;
214
+ boxShadowFocus: string;
215
+ loadingColor: string;
216
+ loadingColorWarning: string;
217
+ borderWarning: string;
218
+ borderHoverWarning: string;
219
+ colorFocusWarning: string;
220
+ borderFocusWarning: string;
221
+ boxShadowFocusWarning: string;
222
+ caretColorWarning: string;
223
+ loadingColorError: string;
224
+ borderError: string;
225
+ borderHoverError: string;
226
+ colorFocusError: string;
227
+ borderFocusError: string;
228
+ boxShadowFocusError: string;
229
+ caretColorError: string;
230
+ clearColor: string;
231
+ clearColorHover: string;
232
+ clearColorPressed: string;
233
+ iconColor: string;
234
+ iconColorDisabled: string;
235
+ iconColorHover: string;
236
+ iconColorPressed: string;
237
+ suffixTextColor: string;
238
+ paddingTiny: string;
239
+ paddingSmall: string;
240
+ paddingMedium: string;
241
+ paddingLarge: string;
242
+ clearSize: string;
243
+ }, any>;
244
+ Empty: import("../../_mixins").Theme<"Empty", {
245
+ fontSizeSmall: string;
246
+ fontSizeMedium: string;
247
+ fontSizeLarge: string;
248
+ fontSizeHuge: string;
249
+ textColor: string;
250
+ iconColor: string;
251
+ extraTextColor: string;
252
+ iconSizeSmall: string;
253
+ iconSizeMedium: string;
254
+ iconSizeLarge: string;
255
+ iconSizeHuge: string;
256
+ }, any>;
257
+ Button: import("../../_mixins").Theme<"Button", {
258
+ heightTiny: string;
259
+ heightSmall: string;
260
+ heightMedium: string;
261
+ heightLarge: string;
262
+ borderRadiusTiny: string;
263
+ borderRadiusSmall: string;
264
+ borderRadiusMedium: string;
265
+ borderRadiusLarge: string;
266
+ fontSizeTiny: string;
267
+ fontSizeSmall: string;
268
+ fontSizeMedium: string;
269
+ fontSizeLarge: string;
270
+ opacityDisabled: string;
271
+ colorOpacitySecondary: string;
272
+ colorOpacitySecondaryHover: string;
273
+ colorOpacitySecondaryPressed: string;
274
+ colorSecondary: string;
275
+ colorSecondaryHover: string;
276
+ colorSecondaryPressed: string;
277
+ colorTertiary: string;
278
+ colorTertiaryHover: string;
279
+ colorTertiaryPressed: string;
280
+ colorQuaternary: string;
281
+ colorQuaternaryHover: string;
282
+ colorQuaternaryPressed: string;
283
+ color: string;
284
+ colorHover: string;
285
+ colorPressed: string;
286
+ colorFocus: string;
287
+ colorDisabled: string;
288
+ textColor: string;
289
+ textColorTertiary: string;
290
+ textColorHover: string;
291
+ textColorPressed: string;
292
+ textColorFocus: string;
293
+ textColorDisabled: string;
294
+ textColorText: string;
295
+ textColorTextHover: string;
296
+ textColorTextPressed: string;
297
+ textColorTextFocus: string;
298
+ textColorTextDisabled: string;
299
+ textColorGhost: string;
300
+ textColorGhostHover: string;
301
+ textColorGhostPressed: string;
302
+ textColorGhostFocus: string;
303
+ textColorGhostDisabled: string;
304
+ border: string;
305
+ borderHover: string;
306
+ borderPressed: string;
307
+ borderFocus: string;
308
+ borderDisabled: string;
309
+ rippleColor: string;
310
+ colorPrimary: string;
311
+ colorHoverPrimary: string;
312
+ colorPressedPrimary: string;
313
+ colorFocusPrimary: string;
314
+ colorDisabledPrimary: string;
315
+ textColorPrimary: string;
316
+ textColorHoverPrimary: string;
317
+ textColorPressedPrimary: string;
318
+ textColorFocusPrimary: string;
319
+ textColorDisabledPrimary: string;
320
+ textColorTextPrimary: string;
321
+ textColorTextHoverPrimary: string;
322
+ textColorTextPressedPrimary: string;
323
+ textColorTextFocusPrimary: string;
324
+ textColorTextDisabledPrimary: string;
325
+ textColorGhostPrimary: string;
326
+ textColorGhostHoverPrimary: string;
327
+ textColorGhostPressedPrimary: string;
328
+ textColorGhostFocusPrimary: string;
329
+ textColorGhostDisabledPrimary: string;
330
+ borderPrimary: string;
331
+ borderHoverPrimary: string;
332
+ borderPressedPrimary: string;
333
+ borderFocusPrimary: string;
334
+ borderDisabledPrimary: string;
335
+ rippleColorPrimary: string;
336
+ colorInfo: string;
337
+ colorHoverInfo: string;
338
+ colorPressedInfo: string;
339
+ colorFocusInfo: string;
340
+ colorDisabledInfo: string;
341
+ textColorInfo: string;
342
+ textColorHoverInfo: string;
343
+ textColorPressedInfo: string;
344
+ textColorFocusInfo: string;
345
+ textColorDisabledInfo: string;
346
+ textColorTextInfo: string;
347
+ textColorTextHoverInfo: string;
348
+ textColorTextPressedInfo: string;
349
+ textColorTextFocusInfo: string;
350
+ textColorTextDisabledInfo: string;
351
+ textColorGhostInfo: string;
352
+ textColorGhostHoverInfo: string;
353
+ textColorGhostPressedInfo: string;
354
+ textColorGhostFocusInfo: string;
355
+ textColorGhostDisabledInfo: string;
356
+ borderInfo: string;
357
+ borderHoverInfo: string;
358
+ borderPressedInfo: string;
359
+ borderFocusInfo: string;
360
+ borderDisabledInfo: string;
361
+ rippleColorInfo: string;
362
+ colorSuccess: string;
363
+ colorHoverSuccess: string;
364
+ colorPressedSuccess: string;
365
+ colorFocusSuccess: string;
366
+ colorDisabledSuccess: string;
367
+ textColorSuccess: string;
368
+ textColorHoverSuccess: string;
369
+ textColorPressedSuccess: string;
370
+ textColorFocusSuccess: string;
371
+ textColorDisabledSuccess: string;
372
+ textColorTextSuccess: string;
373
+ textColorTextHoverSuccess: string;
374
+ textColorTextPressedSuccess: string;
375
+ textColorTextFocusSuccess: string;
376
+ textColorTextDisabledSuccess: string;
377
+ textColorGhostSuccess: string;
378
+ textColorGhostHoverSuccess: string;
379
+ textColorGhostPressedSuccess: string;
380
+ textColorGhostFocusSuccess: string;
381
+ textColorGhostDisabledSuccess: string;
382
+ borderSuccess: string;
383
+ borderHoverSuccess: string;
384
+ borderPressedSuccess: string;
385
+ borderFocusSuccess: string;
386
+ borderDisabledSuccess: string;
387
+ rippleColorSuccess: string;
388
+ colorWarning: string;
389
+ colorHoverWarning: string;
390
+ colorPressedWarning: string;
391
+ colorFocusWarning: string;
392
+ colorDisabledWarning: string;
393
+ textColorWarning: string;
394
+ textColorHoverWarning: string;
395
+ textColorPressedWarning: string;
396
+ textColorFocusWarning: string;
397
+ textColorDisabledWarning: string;
398
+ textColorTextWarning: string;
399
+ textColorTextHoverWarning: string;
400
+ textColorTextPressedWarning: string;
401
+ textColorTextFocusWarning: string;
402
+ textColorTextDisabledWarning: string;
403
+ textColorGhostWarning: string;
404
+ textColorGhostHoverWarning: string;
405
+ textColorGhostPressedWarning: string;
406
+ textColorGhostFocusWarning: string;
407
+ textColorGhostDisabledWarning: string;
408
+ borderWarning: string;
409
+ borderHoverWarning: string;
410
+ borderPressedWarning: string;
411
+ borderFocusWarning: string;
412
+ borderDisabledWarning: string;
413
+ rippleColorWarning: string;
414
+ colorError: string;
415
+ colorHoverError: string;
416
+ colorPressedError: string;
417
+ colorFocusError: string;
418
+ colorDisabledError: string;
419
+ textColorError: string;
420
+ textColorHoverError: string;
421
+ textColorPressedError: string;
422
+ textColorFocusError: string;
423
+ textColorDisabledError: string;
424
+ textColorTextError: string;
425
+ textColorTextHoverError: string;
426
+ textColorTextPressedError: string;
427
+ textColorTextFocusError: string;
428
+ textColorTextDisabledError: string;
429
+ textColorGhostError: string;
430
+ textColorGhostHoverError: string;
431
+ textColorGhostPressedError: string;
432
+ textColorGhostFocusError: string;
433
+ textColorGhostDisabledError: string;
434
+ borderError: string;
435
+ borderHoverError: string;
436
+ borderPressedError: string;
437
+ borderFocusError: string;
438
+ borderDisabledError: string;
439
+ rippleColorError: string;
440
+ waveOpacity: string;
441
+ fontWeight: string;
442
+ fontWeightStrong: string;
443
+ paddingTiny: string;
444
+ paddingSmall: string;
445
+ paddingMedium: string;
446
+ paddingLarge: string;
447
+ paddingRoundTiny: string;
448
+ paddingRoundSmall: string;
449
+ paddingRoundMedium: string;
450
+ paddingRoundLarge: string;
451
+ iconMarginTiny: string;
452
+ iconMarginSmall: string;
453
+ iconMarginMedium: string;
454
+ iconMarginLarge: string;
455
+ iconSizeTiny: string;
456
+ iconSizeSmall: string;
457
+ iconSizeMedium: string;
458
+ iconSizeLarge: string;
459
+ rippleDuration: string;
460
+ }, any>;
461
+ };
462
+ peerOverrides: {
463
+ Checkbox?: {
464
+ peers?: {
465
+ [x: string]: any;
466
+ } | undefined;
467
+ } | undefined;
468
+ Scrollbar?: {
469
+ peers?: {
470
+ [x: string]: any;
471
+ } | undefined;
472
+ } | undefined;
473
+ Input?: {
474
+ peers?: {
475
+ [x: string]: any;
476
+ } | undefined;
477
+ } | undefined;
478
+ Empty?: {
479
+ peers?: {
480
+ [x: string]: any;
481
+ } | undefined;
482
+ } | undefined;
483
+ Button?: {
484
+ peers?: {
485
+ [x: string]: any;
486
+ } | undefined;
487
+ } | undefined;
488
+ };
489
+ }>;
490
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
491
+ value: StringConstructor;
492
+ placeholder: StringConstructor;
493
+ disabled: BooleanConstructor;
494
+ onFocus: {
495
+ type: PropType<() => void>;
496
+ required: true;
497
+ };
498
+ onBlur: {
499
+ type: PropType<() => void>;
500
+ required: true;
501
+ };
502
+ onUpdateValue: {
503
+ type: PropType<(value: string | null) => void>;
504
+ required: true;
505
+ };
506
+ }>>, {
507
+ disabled: boolean;
508
+ }>;
509
+ export default _default;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const vue_1 = require("vue");
4
+ const icons_1 = require("../../_internal/icons");
5
+ const _internal_1 = require("../../_internal");
6
+ const input_1 = require("../../input");
7
+ const interface_1 = require("./interface");
8
+ exports.default = (0, vue_1.defineComponent)({
9
+ name: 'TransferFilter',
10
+ props: {
11
+ value: String,
12
+ placeholder: String,
13
+ disabled: Boolean,
14
+ onFocus: {
15
+ type: Function,
16
+ required: true
17
+ },
18
+ onBlur: {
19
+ type: Function,
20
+ required: true
21
+ },
22
+ onUpdateValue: {
23
+ type: Function,
24
+ required: true
25
+ }
26
+ },
27
+ setup() {
28
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
29
+ const { mergedThemeRef, mergedClsPrefixRef } = (0, vue_1.inject)(interface_1.transferInjectionKey);
30
+ return {
31
+ mergedClsPrefix: mergedClsPrefixRef,
32
+ mergedTheme: mergedThemeRef
33
+ };
34
+ },
35
+ render() {
36
+ const { mergedTheme, mergedClsPrefix } = this;
37
+ return ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-legacy-transfer-filter` },
38
+ (0, vue_1.h)(input_1.NInput, { value: this.value, onUpdateValue: this.onUpdateValue, disabled: this.disabled, theme: mergedTheme.peers.Input, themeOverrides: mergedTheme.peerOverrides.Input, clearable: true, size: "small", placeholder: this.placeholder, onFocus: this.onFocus, onBlur: this.onBlur }, {
39
+ 'clear-icon-placeholder': () => ((0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-legacy-transfer-icon` }, { default: () => (0, vue_1.h)(icons_1.SearchIcon, null) }))
40
+ })));
41
+ }
42
+ });
@@ -0,0 +1,25 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ source: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ onChange: {
8
+ type: PropType<(value: boolean) => void>;
9
+ required: true;
10
+ };
11
+ title: StringConstructor;
12
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
+ source: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ onChange: {
18
+ type: PropType<(value: boolean) => void>;
19
+ required: true;
20
+ };
21
+ title: StringConstructor;
22
+ }>>, {
23
+ source: boolean;
24
+ }>;
25
+ export default _default;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const vue_1 = require("vue");
4
+ const checkbox_1 = require("../../checkbox");
5
+ const interface_1 = require("./interface");
6
+ exports.default = (0, vue_1.defineComponent)({
7
+ name: 'TransferHeader',
8
+ props: {
9
+ source: {
10
+ type: Boolean,
11
+ default: false
12
+ },
13
+ onChange: {
14
+ type: Function,
15
+ required: true
16
+ },
17
+ title: String
18
+ },
19
+ setup(props) {
20
+ const { srcOptsRef, tgtOptsRef, srcCheckedStatusRef, tgtCheckedStatusRef, srcCheckedValuesRef, tgtCheckedValuesRef, mergedThemeRef, disabledRef, mergedClsPrefixRef
21
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
22
+ } = (0, vue_1.inject)(interface_1.transferInjectionKey);
23
+ const checkboxPropsRef = (0, vue_1.computed)(() => {
24
+ const { source } = props;
25
+ if (source) {
26
+ return srcCheckedStatusRef.value;
27
+ }
28
+ else {
29
+ return tgtCheckedStatusRef.value;
30
+ }
31
+ });
32
+ return () => {
33
+ const { source } = props;
34
+ const { value: checkboxProps } = checkboxPropsRef;
35
+ const { value: mergedTheme } = mergedThemeRef;
36
+ const { value: mergedClsPrefix } = mergedClsPrefixRef;
37
+ return ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-legacy-transfer-list-header` },
38
+ (0, vue_1.h)("div", { class: `${mergedClsPrefix}-legacy-transfer-list-header__checkbox` },
39
+ (0, vue_1.h)(checkbox_1.NCheckbox, { theme: mergedTheme.peers.Checkbox, themeOverrides: mergedTheme.peerOverrides.Checkbox, checked: checkboxProps.checked, indeterminate: checkboxProps.indeterminate, disabled: checkboxProps.disabled || disabledRef.value, onUpdateChecked: props.onChange })),
40
+ (0, vue_1.h)("div", { class: `${mergedClsPrefix}-legacy-transfer-list-header__header` }, props.title),
41
+ (0, vue_1.h)("div", { class: `${mergedClsPrefix}-legacy-transfer-list-header__extra` },
42
+ source
43
+ ? srcCheckedValuesRef.value.length
44
+ : tgtCheckedValuesRef.value.length,
45
+ "/",
46
+ source ? srcOptsRef.value.length : tgtOptsRef.value.length)));
47
+ };
48
+ }
49
+ });