bkui-vue 0.0.1-beta.45 → 0.0.1-beta.450

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 (655) hide show
  1. package/License.txt +14 -0
  2. package/dist/index.cjs.js +160 -35
  3. package/dist/index.esm.js +35568 -14524
  4. package/dist/index.umd.js +160 -35
  5. package/dist/locale/en.esm.js +2 -0
  6. package/dist/locale/en.esm.js.map +1 -0
  7. package/dist/locale/en.umd.js +2 -0
  8. package/dist/locale/en.umd.js.map +1 -0
  9. package/dist/locale/zh-cn.esm.js +2 -0
  10. package/dist/locale/zh-cn.esm.js.map +1 -0
  11. package/dist/locale/zh-cn.umd.js +2 -0
  12. package/dist/locale/zh-cn.umd.js.map +1 -0
  13. package/dist/style.css +1 -1
  14. package/dist/style.variable.css +1 -0
  15. package/lib/affix/affix.css +3 -0
  16. package/lib/affix/affix.d.ts +47 -0
  17. package/lib/affix/affix.less +5 -0
  18. package/lib/affix/affix.variable.css +125 -0
  19. package/lib/affix/index.d.ts +143 -0
  20. package/lib/affix/index.js +1 -0
  21. package/lib/alert/alert.css +9 -3
  22. package/lib/alert/alert.d.ts +5 -5
  23. package/lib/alert/alert.less +29 -20
  24. package/lib/alert/alert.variable.css +41 -7
  25. package/lib/alert/index.d.ts +11 -11
  26. package/lib/alert/index.js +1 -1
  27. package/lib/animate-number/animate-number.d.ts +1 -1
  28. package/lib/animate-number/index.d.ts +4 -4
  29. package/lib/backtop/backtop.css +8 -0
  30. package/lib/backtop/backtop.d.ts +3 -3
  31. package/lib/backtop/backtop.less +8 -0
  32. package/lib/backtop/backtop.variable.css +40 -4
  33. package/lib/backtop/index.d.ts +10 -10
  34. package/lib/backtop/index.js +1 -1
  35. package/lib/badge/badge.css +7 -10
  36. package/lib/badge/badge.d.ts +28 -7
  37. package/lib/badge/badge.less +9 -11
  38. package/lib/badge/badge.variable.css +39 -14
  39. package/lib/badge/index.d.ts +68 -18
  40. package/lib/badge/index.js +1 -1
  41. package/lib/breadcrumb/breadcrumb-item.d.ts +4 -2
  42. package/lib/breadcrumb/breadcrumb.css +51 -0
  43. package/lib/breadcrumb/breadcrumb.variable.css +88 -9
  44. package/lib/breadcrumb/index.d.ts +4 -2
  45. package/lib/breadcrumb/index.js +1 -1
  46. package/lib/button/button-group.d.ts +2 -2
  47. package/lib/button/button.css +85 -50
  48. package/lib/button/button.d.ts +44 -24
  49. package/lib/button/button.less +72 -42
  50. package/lib/button/button.variable.css +117 -54
  51. package/lib/button/index.d.ts +74 -44
  52. package/lib/button/index.js +1 -1
  53. package/lib/card/card.css +97 -2
  54. package/lib/card/card.d.ts +47 -6
  55. package/lib/card/card.less +50 -2
  56. package/lib/card/card.variable.css +133 -10
  57. package/lib/card/index.d.ts +113 -17
  58. package/lib/card/index.js +1 -1
  59. package/lib/cascader/cascader-panel.d.ts +101 -0
  60. package/lib/cascader/cascader.css +316 -0
  61. package/lib/cascader/cascader.d.ts +342 -0
  62. package/lib/cascader/cascader.less +283 -0
  63. package/lib/cascader/cascader.variable.css +438 -0
  64. package/lib/cascader/index.d.ts +961 -0
  65. package/lib/cascader/index.js +1 -0
  66. package/lib/cascader/interface.d.ts +51 -0
  67. package/lib/cascader/node.d.ts +31 -0
  68. package/lib/cascader/store.d.ts +25 -0
  69. package/lib/checkbox/checkbox-group.d.ts +16 -0
  70. package/lib/checkbox/checkbox.css +51 -11
  71. package/lib/checkbox/checkbox.d.ts +36 -24
  72. package/lib/checkbox/checkbox.less +85 -32
  73. package/lib/checkbox/checkbox.variable.css +83 -15
  74. package/lib/checkbox/common.d.ts +4 -3
  75. package/lib/checkbox/index.d.ts +70 -38
  76. package/lib/checkbox/index.js +1 -1
  77. package/lib/checkbox/type.d.ts +2 -6
  78. package/lib/code-diff/code-diff.css +27 -7
  79. package/lib/code-diff/code-diff.d.ts +1 -1
  80. package/lib/code-diff/code-diff.less +42 -7
  81. package/lib/code-diff/code-diff.variable.css +59 -11
  82. package/lib/code-diff/index.js +1 -1
  83. package/lib/collapse/collapse-panel.d.ts +103 -0
  84. package/lib/collapse/collapse.css +69 -14
  85. package/lib/collapse/collapse.d.ts +66 -52
  86. package/lib/collapse/collapse.less +112 -30
  87. package/lib/collapse/collapse.variable.css +191 -14
  88. package/lib/collapse/index.d.ts +266 -20
  89. package/lib/collapse/index.js +1 -1
  90. package/lib/collapse/props.d.ts +131 -0
  91. package/lib/collapse/utils.d.ts +11 -0
  92. package/lib/collapse-transition/collapse-transition.css +93 -0
  93. package/lib/collapse-transition/collapse-transition.d.ts +15 -0
  94. package/lib/collapse-transition/collapse-transition.less +111 -0
  95. package/lib/collapse-transition/collapse-transition.variable.css +215 -0
  96. package/lib/collapse-transition/index.d.ts +2 -0
  97. package/lib/collapse-transition/index.js +1 -0
  98. package/lib/color-picker/color-picker.css +275 -0
  99. package/lib/color-picker/color-picker.d.ts +144 -0
  100. package/lib/color-picker/color-picker.less +325 -0
  101. package/lib/color-picker/color-picker.variable.css +397 -0
  102. package/lib/color-picker/components/color-input.d.ts +42 -0
  103. package/lib/color-picker/components/hue-slider.d.ts +41 -0
  104. package/lib/color-picker/components/input-container.d.ts +42 -0
  105. package/lib/color-picker/components/recommend-colors.d.ts +51 -0
  106. package/lib/color-picker/components/saturation-panel.d.ts +41 -0
  107. package/lib/color-picker/index.d.ts +254 -0
  108. package/lib/color-picker/index.js +1 -0
  109. package/lib/color-picker/utils.d.ts +37 -0
  110. package/lib/components.d.ts +31 -8
  111. package/lib/components.js +1 -0
  112. package/lib/config-provider/config-provider.css +0 -0
  113. package/lib/config-provider/config-provider.d.ts +384 -0
  114. package/lib/config-provider/config-provider.less +1 -0
  115. package/lib/config-provider/config-provider.variable.css +122 -0
  116. package/lib/config-provider/index.d.ts +585 -0
  117. package/lib/config-provider/index.js +1 -0
  118. package/lib/config-provider/token.d.ts +122 -0
  119. package/lib/config-provider/use-global-config.d.ts +5 -0
  120. package/lib/config-provider/use-locale.d.ts +3 -0
  121. package/lib/config-provider/use-prefix.d.ts +9 -0
  122. package/lib/container/col.d.ts +51 -0
  123. package/lib/container/container.css +91 -0
  124. package/lib/container/container.d.ts +83 -0
  125. package/lib/container/container.less +20 -0
  126. package/lib/container/container.variable.css +213 -0
  127. package/lib/container/index.d.ts +223 -0
  128. package/lib/container/index.js +1 -0
  129. package/lib/container/row.d.ts +4 -0
  130. package/lib/date-picker/base/confirm.d.ts +74 -0
  131. package/lib/date-picker/base/date-table.d.ts +96 -0
  132. package/lib/date-picker/base/month-table.d.ts +117 -0
  133. package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
  134. package/lib/date-picker/base/time-spinner.d.ts +170 -0
  135. package/lib/date-picker/base/year-table.d.ts +117 -0
  136. package/lib/date-picker/date-picker.css +28 -1
  137. package/lib/date-picker/date-picker.d.ts +49 -20
  138. package/lib/date-picker/date-picker.less +106 -74
  139. package/lib/date-picker/date-picker.variable.css +60 -5
  140. package/lib/date-picker/index.d.ts +121 -54
  141. package/lib/date-picker/index.js +1 -1
  142. package/lib/date-picker/interface.d.ts +11 -1
  143. package/lib/date-picker/panel/date-range.d.ts +328 -0
  144. package/lib/date-picker/panel/date.d.ts +206 -0
  145. package/lib/date-picker/panel/time-range.d.ts +489 -0
  146. package/lib/date-picker/panel/time.d.ts +448 -0
  147. package/lib/date-picker/props.d.ts +55 -5
  148. package/lib/date-picker/time-picker.d.ts +381 -0
  149. package/lib/date-picker/utils.d.ts +22 -2
  150. package/lib/dialog/dialog.css +136 -24
  151. package/lib/dialog/dialog.d.ts +245 -58
  152. package/lib/dialog/dialog.less +100 -38
  153. package/lib/dialog/dialog.variable.css +258 -24
  154. package/lib/dialog/index.d.ts +545 -126
  155. package/lib/dialog/index.js +1 -1
  156. package/lib/dialog/props.d.ts +122 -0
  157. package/lib/directives/ellipsis.d.ts +7 -0
  158. package/lib/directives/index.d.ts +2 -0
  159. package/lib/directives/index.js +1 -1
  160. package/lib/directives/tooltips.d.ts +2 -1
  161. package/lib/dist.index.js +1 -0
  162. package/lib/divider/divider.d.ts +15 -15
  163. package/lib/divider/divider.variable.css +32 -4
  164. package/lib/divider/index.d.ts +34 -34
  165. package/lib/divider/index.js +1 -1
  166. package/lib/divider/props.d.ts +6 -6
  167. package/lib/dropdown/dropdown.css +13 -7
  168. package/lib/dropdown/dropdown.d.ts +46 -14
  169. package/lib/dropdown/dropdown.less +47 -34
  170. package/lib/dropdown/dropdown.variable.css +45 -11
  171. package/lib/dropdown/index.d.ts +99 -35
  172. package/lib/dropdown/index.js +1 -1
  173. package/lib/exception/exception.css +40 -14
  174. package/lib/exception/exception.d.ts +31 -11
  175. package/lib/exception/exception.less +59 -22
  176. package/lib/exception/exception.variable.css +72 -18
  177. package/lib/exception/index.d.ts +43 -26
  178. package/lib/exception/index.js +1 -1
  179. package/lib/exception/typings/index.d.ts +4 -0
  180. package/lib/fixed-navbar/fixed-navbar.d.ts +16 -2
  181. package/lib/fixed-navbar/fixed-navbar.variable.css +32 -4
  182. package/lib/fixed-navbar/index.d.ts +40 -5
  183. package/lib/fixed-navbar/index.js +1 -1
  184. package/lib/form/compose-form-item.d.ts +16 -0
  185. package/lib/form/form-item.d.ts +22 -7
  186. package/lib/form/form.css +103 -15
  187. package/lib/form/form.d.ts +48 -14
  188. package/lib/form/form.less +152 -46
  189. package/lib/form/form.variable.css +225 -15
  190. package/lib/form/index.d.ts +121 -35
  191. package/lib/form/index.js +1 -1
  192. package/lib/form/type.d.ts +11 -8
  193. package/lib/form/utils.d.ts +2 -0
  194. package/lib/form/validator.d.ts +1 -0
  195. package/lib/hooks.d.ts +1 -0
  196. package/lib/hooks.js +1 -0
  197. package/lib/icon/angle-double-down-line.js +1 -1
  198. package/lib/icon/angle-double-left-line.js +1 -1
  199. package/lib/icon/angle-double-left.js +1 -1
  200. package/lib/icon/angle-double-right-line.js +1 -1
  201. package/lib/icon/angle-double-right.js +1 -1
  202. package/lib/icon/angle-double-up-line.js +1 -1
  203. package/lib/icon/angle-down-fill.js +1 -1
  204. package/lib/icon/angle-down-line.js +1 -1
  205. package/lib/icon/angle-down.js +1 -1
  206. package/lib/icon/angle-left.js +1 -1
  207. package/lib/icon/angle-right.js +1 -1
  208. package/lib/icon/angle-up-fill.js +1 -1
  209. package/lib/icon/angle-up.js +1 -1
  210. package/lib/icon/archive-fill.d.ts +4 -0
  211. package/lib/icon/archive-fill.js +1 -0
  212. package/lib/icon/arrows-left.js +1 -1
  213. package/lib/icon/arrows-right.js +1 -1
  214. package/lib/icon/audio-fill.d.ts +4 -0
  215. package/lib/icon/audio-fill.js +1 -0
  216. package/lib/icon/bk.js +1 -1
  217. package/lib/icon/circle.js +1 -1
  218. package/lib/icon/close-line.d.ts +4 -0
  219. package/lib/icon/close-line.js +1 -0
  220. package/lib/icon/close.js +1 -1
  221. package/lib/icon/code.js +1 -1
  222. package/lib/icon/cog-shape.js +1 -1
  223. package/lib/icon/collapse-left.js +1 -1
  224. package/lib/icon/copy.js +1 -1
  225. package/lib/icon/data-shape.d.ts +4 -0
  226. package/lib/icon/data-shape.js +1 -0
  227. package/lib/icon/del.d.ts +4 -0
  228. package/lib/icon/del.js +1 -0
  229. package/lib/icon/doc-fill.d.ts +4 -0
  230. package/lib/icon/doc-fill.js +1 -0
  231. package/lib/icon/done.js +1 -1
  232. package/lib/icon/down-shape.js +1 -1
  233. package/lib/icon/down-small.js +1 -1
  234. package/lib/icon/edit-line.d.ts +4 -0
  235. package/lib/icon/edit-line.js +1 -0
  236. package/lib/icon/ellipsis.js +1 -1
  237. package/lib/icon/enlarge-line.d.ts +4 -0
  238. package/lib/icon/enlarge-line.js +1 -0
  239. package/lib/icon/error.js +1 -1
  240. package/lib/icon/excel-fill.d.ts +4 -0
  241. package/lib/icon/excel-fill.js +1 -0
  242. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  243. package/lib/icon/exclamation-circle-shape.js +1 -0
  244. package/lib/icon/eye.js +1 -1
  245. package/lib/icon/filliscreen-line.d.ts +4 -0
  246. package/lib/icon/filliscreen-line.js +1 -0
  247. package/lib/icon/folder-open.js +1 -1
  248. package/lib/icon/folder-shape-open.js +1 -1
  249. package/lib/icon/folder-shape.js +1 -1
  250. package/lib/icon/folder.js +1 -1
  251. package/lib/icon/funnel.d.ts +4 -0
  252. package/lib/icon/funnel.js +1 -0
  253. package/lib/icon/help-document-fill.js +1 -1
  254. package/lib/icon/help-fill.js +1 -1
  255. package/lib/icon/help.js +1 -1
  256. package/lib/icon/image-fill.d.ts +4 -0
  257. package/lib/icon/img-error.d.ts +4 -0
  258. package/lib/icon/img-error.js +1 -0
  259. package/lib/icon/img-placehoulder.d.ts +4 -0
  260. package/lib/icon/img-placehoulder.js +1 -0
  261. package/lib/icon/index.d.ts +79 -53
  262. package/lib/icon/index.js +1 -1
  263. package/lib/icon/info-line.js +1 -1
  264. package/lib/icon/info.js +1 -1
  265. package/lib/icon/left-shape.js +1 -1
  266. package/lib/icon/left-turn-line.d.ts +4 -0
  267. package/lib/icon/left-turn-line.js +1 -0
  268. package/lib/icon/narrow-line.d.ts +4 -0
  269. package/lib/icon/narrow-line.js +1 -0
  270. package/lib/icon/original.d.ts +4 -0
  271. package/lib/icon/original.js +1 -0
  272. package/lib/icon/pdf-fill.d.ts +4 -0
  273. package/lib/icon/pdf-fill.js +1 -0
  274. package/lib/icon/play-shape.js +1 -1
  275. package/lib/icon/plus.js +1 -1
  276. package/lib/icon/ppt-fill.d.ts +4 -0
  277. package/lib/icon/ppt-fill.js +1 -0
  278. package/lib/icon/qq.js +1 -1
  279. package/lib/icon/right-shape.js +1 -1
  280. package/lib/icon/right-turn-line.d.ts +4 -0
  281. package/lib/icon/right-turn-line.js +1 -0
  282. package/lib/icon/search.js +1 -1
  283. package/lib/icon/share.js +1 -1
  284. package/lib/icon/spinner.js +1 -1
  285. package/lib/icon/success.js +1 -1
  286. package/lib/icon/switcher-loading.js +1 -1
  287. package/lib/icon/text-file.js +1 -1
  288. package/lib/icon/text-fill.d.ts +4 -0
  289. package/lib/icon/text-fill.js +1 -0
  290. package/lib/icon/transfer.d.ts +4 -0
  291. package/lib/icon/transfer.js +1 -0
  292. package/lib/icon/tree-application-shape.js +1 -1
  293. package/lib/icon/unfull-screen.d.ts +4 -0
  294. package/lib/icon/unfull-screen.js +1 -0
  295. package/lib/icon/unvisible.js +1 -1
  296. package/lib/icon/up-shape.js +1 -1
  297. package/lib/icon/upload.d.ts +4 -0
  298. package/lib/icon/upload.js +1 -0
  299. package/lib/icon/video-fill.d.ts +4 -0
  300. package/lib/icon/video-fill.js +1 -0
  301. package/lib/icon/warn.js +1 -1
  302. package/lib/icon/weixin.js +1 -1
  303. package/lib/image/image-viewer.css +142 -0
  304. package/lib/image/image-viewer.d.ts +73 -0
  305. package/lib/image/image-viewer.less +168 -0
  306. package/lib/image/image-viewer.variable.css +142 -0
  307. package/lib/image/image.css +37 -0
  308. package/lib/image/image.d.ts +93 -0
  309. package/lib/image/image.less +44 -0
  310. package/lib/image/image.variable.css +37 -0
  311. package/lib/image/index.d.ts +246 -0
  312. package/lib/image/index.js +1 -0
  313. package/lib/image/props.d.ts +71 -0
  314. package/lib/index.d.ts +3 -1
  315. package/lib/index.js +1 -0
  316. package/lib/info-box/index.d.ts +7 -0
  317. package/lib/info-box/index.js +1 -0
  318. package/lib/info-box/info-box.css +37 -0
  319. package/lib/info-box/info-box.d.ts +28 -0
  320. package/lib/info-box/info-box.less +51 -0
  321. package/lib/info-box/info-box.variable.css +159 -0
  322. package/lib/input/index.d.ts +175 -90
  323. package/lib/input/index.js +1 -1
  324. package/lib/input/input.css +183 -19
  325. package/lib/input/input.d.ts +119 -36
  326. package/lib/input/input.less +112 -18
  327. package/lib/input/input.variable.css +246 -55
  328. package/lib/link/index.d.ts +29 -21
  329. package/lib/link/index.js +1 -1
  330. package/lib/link/link.css +12 -12
  331. package/lib/link/link.d.ts +10 -8
  332. package/lib/link/link.less +16 -14
  333. package/lib/link/link.variable.css +44 -16
  334. package/lib/loading/directive.d.ts +14 -0
  335. package/lib/loading/index.d.ts +135 -19
  336. package/lib/loading/index.js +1 -1
  337. package/lib/loading/loading.css +86 -33
  338. package/lib/loading/loading.d.ts +94 -12
  339. package/lib/loading/loading.less +27 -23
  340. package/lib/loading/loading.variable.css +134 -53
  341. package/lib/locale/index.d.ts +3 -0
  342. package/lib/locale/index.js +1 -0
  343. package/lib/locale/lang/en.d.ts +120 -0
  344. package/lib/locale/lang/zh-cn.d.ts +3 -0
  345. package/lib/menu/index.d.ts +16 -24
  346. package/lib/menu/index.js +1 -1
  347. package/lib/menu/menu.css +51 -0
  348. package/lib/menu/menu.d.ts +7 -16
  349. package/lib/menu/menu.variable.css +101 -22
  350. package/lib/menu/submenu.variable.css +32 -4
  351. package/lib/message/index.js +1 -1
  352. package/lib/message/message.css +17 -5
  353. package/lib/message/message.less +21 -6
  354. package/lib/message/message.variable.css +49 -9
  355. package/lib/message/messageConstructor.d.ts +14 -11
  356. package/lib/modal/index.d.ts +470 -78
  357. package/lib/modal/index.js +1 -1
  358. package/lib/modal/modal.css +63 -1
  359. package/lib/modal/modal.d.ts +177 -30
  360. package/lib/modal/modal.less +39 -3
  361. package/lib/modal/modal.variable.css +185 -1
  362. package/lib/modal/props.mixin.d.ts +74 -13
  363. package/lib/navigation/index.d.ts +310 -1
  364. package/lib/navigation/index.js +1 -1
  365. package/lib/navigation/navigation.css +1 -1
  366. package/lib/navigation/navigation.d.ts +11 -2
  367. package/lib/navigation/navigation.less +1 -1
  368. package/lib/navigation/navigation.variable.css +33 -5
  369. package/lib/notify/index.js +1 -1
  370. package/lib/notify/notify.css +25 -5
  371. package/lib/notify/notify.less +29 -6
  372. package/lib/notify/notify.variable.css +57 -9
  373. package/lib/notify/notifyConstructor.d.ts +62 -21
  374. package/lib/overflow-title/components/overflow-title.d.ts +57 -0
  375. package/lib/overflow-title/directive/overflow-title.d.ts +3 -0
  376. package/lib/overflow-title/index.d.ts +170 -0
  377. package/lib/overflow-title/index.js +1 -0
  378. package/lib/overflow-title/overflow.css +11 -0
  379. package/lib/overflow-title/overflow.less +13 -0
  380. package/lib/overflow-title/overflow.variable.css +11 -0
  381. package/lib/overflow-title/props.d.ts +43 -0
  382. package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
  383. package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
  384. package/lib/pagination/index.d.ts +35 -20
  385. package/lib/pagination/index.js +1 -1
  386. package/lib/pagination/pagination.css +54 -28
  387. package/lib/pagination/pagination.d.ts +18 -8
  388. package/lib/pagination/pagination.less +59 -30
  389. package/lib/pagination/pagination.variable.css +86 -32
  390. package/lib/pagination/use-limit.d.ts +3 -1
  391. package/lib/pagination/use-total.d.ts +3 -1
  392. package/lib/plugin-popover/index.d.ts +27 -0
  393. package/lib/plugin-popover/index.js +1 -0
  394. package/lib/plugins/index.d.ts +1 -0
  395. package/lib/plugins/index.js +1 -0
  396. package/lib/pop-confirm/index.d.ts +246 -0
  397. package/lib/pop-confirm/index.js +1 -0
  398. package/lib/pop-confirm/pop-confirm.css +28 -0
  399. package/lib/pop-confirm/pop-confirm.d.ts +95 -0
  400. package/lib/pop-confirm/pop-confirm.less +34 -0
  401. package/lib/pop-confirm/pop-confirm.variable.css +150 -0
  402. package/lib/pop-confirm/props.d.ts +67 -0
  403. package/lib/popover/arrow.d.ts +2 -0
  404. package/lib/popover/const.d.ts +16 -0
  405. package/lib/popover/content.d.ts +43 -0
  406. package/lib/popover/index.d.ts +504 -97
  407. package/lib/popover/index.js +1 -1
  408. package/lib/popover/plugin-popover.d.ts +12 -0
  409. package/lib/popover/popover.css +10 -50
  410. package/lib/popover/popover.d.ts +222 -43
  411. package/lib/popover/popover.less +19 -66
  412. package/lib/popover/popover.variable.css +42 -54
  413. package/lib/popover/props.d.ts +110 -30
  414. package/lib/popover/reference.d.ts +2 -0
  415. package/lib/popover/root.d.ts +16 -0
  416. package/lib/popover/use-floating.d.ts +34 -0
  417. package/lib/popover/use-platform.d.ts +30 -0
  418. package/lib/popover/use-popover-init.d.ts +23 -0
  419. package/lib/popover/use-popper-id.d.ts +6 -0
  420. package/lib/popover/utils.d.ts +8 -0
  421. package/lib/popover2/index.d.ts +44 -0
  422. package/lib/popover2/index.js +1 -0
  423. package/lib/popover2/popover.d.ts +2 -0
  424. package/lib/preset.d.ts +252 -2
  425. package/lib/preset.js +1 -0
  426. package/lib/process/index.d.ts +9 -9
  427. package/lib/process/index.js +1 -1
  428. package/lib/process/process.css +22 -0
  429. package/lib/process/process.d.ts +2 -2
  430. package/lib/process/process.less +30 -2
  431. package/lib/process/process.variable.css +54 -4
  432. package/lib/progress/index.d.ts +31 -31
  433. package/lib/progress/index.js +1 -1
  434. package/lib/progress/progress.css +51 -0
  435. package/lib/progress/progress.d.ts +12 -12
  436. package/lib/progress/progress.variable.css +87 -8
  437. package/lib/radio/common.d.ts +5 -5
  438. package/lib/radio/index.d.ts +36 -18
  439. package/lib/radio/index.js +1 -1
  440. package/lib/radio/radio-button.d.ts +7 -8
  441. package/lib/radio/radio-group.d.ts +26 -0
  442. package/lib/radio/radio.css +137 -66
  443. package/lib/radio/radio.d.ts +4 -4
  444. package/lib/radio/radio.less +262 -173
  445. package/lib/radio/radio.variable.css +172 -73
  446. package/lib/radio/type.d.ts +9 -4
  447. package/lib/rate/index.d.ts +28 -5
  448. package/lib/rate/index.js +1 -1
  449. package/lib/rate/rate.d.ts +13 -2
  450. package/lib/rate/star.d.ts +1 -1
  451. package/lib/resize-layout/index.d.ts +18 -18
  452. package/lib/resize-layout/index.js +1 -1
  453. package/lib/resize-layout/resize-layout.css +6 -15
  454. package/lib/resize-layout/resize-layout.d.ts +7 -7
  455. package/lib/resize-layout/resize-layout.less +10 -19
  456. package/lib/resize-layout/resize-layout.variable.css +38 -19
  457. package/lib/search-select/index.d.ts +891 -0
  458. package/lib/search-select/index.js +1 -0
  459. package/lib/search-select/input.d.ts +101 -0
  460. package/lib/search-select/menu.d.ts +77 -0
  461. package/lib/search-select/search-select.css +427 -0
  462. package/lib/search-select/search-select.d.ts +361 -0
  463. package/lib/search-select/search-select.less +384 -0
  464. package/lib/search-select/search-select.variable.css +549 -0
  465. package/lib/search-select/selected.d.ts +155 -0
  466. package/lib/search-select/utils.d.ts +88 -0
  467. package/lib/select/common.d.ts +5 -12
  468. package/lib/select/index.d.ts +1816 -691
  469. package/lib/select/index.js +1 -1
  470. package/lib/select/option.d.ts +18 -4
  471. package/lib/select/optionGroup.d.ts +1 -1
  472. package/lib/select/select.css +202 -113
  473. package/lib/select/select.d.ts +715 -147
  474. package/lib/select/select.less +335 -197
  475. package/lib/select/select.variable.css +234 -117
  476. package/lib/select/selectTagInput.d.ts +94 -0
  477. package/lib/select/type.d.ts +21 -13
  478. package/lib/shared/dom.d.ts +3 -0
  479. package/lib/shared/helper.d.ts +9 -0
  480. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  481. package/lib/shared/hooks/use-form.d.ts +2 -0
  482. package/lib/shared/index.d.ts +32 -7
  483. package/lib/shared/index.js +1 -1
  484. package/lib/shared/mask-manager.d.ts +13 -5
  485. package/lib/shared/pop-manager.d.ts +19 -5
  486. package/lib/shared/popover.d.ts +6 -2
  487. package/lib/shared/token.d.ts +4 -0
  488. package/lib/shared/utils.d.ts +19 -0
  489. package/lib/shared/vue-types.d.ts +107 -7
  490. package/lib/sideslider/index.d.ts +343 -69
  491. package/lib/sideslider/index.js +1 -1
  492. package/lib/sideslider/sideslider.css +58 -11
  493. package/lib/sideslider/sideslider.d.ts +160 -31
  494. package/lib/sideslider/sideslider.less +75 -14
  495. package/lib/sideslider/sideslider.variable.css +90 -15
  496. package/lib/slider/index.d.ts +414 -1
  497. package/lib/slider/index.js +1 -1
  498. package/lib/slider/slider-button.d.ts +2 -1
  499. package/lib/slider/slider.d.ts +4 -4
  500. package/lib/slider/slider.variable.css +32 -4
  501. package/lib/steps/index.d.ts +52 -52
  502. package/lib/steps/index.js +1 -1
  503. package/lib/steps/steps.css +15 -3
  504. package/lib/steps/steps.d.ts +32 -32
  505. package/lib/steps/steps.less +24 -3
  506. package/lib/steps/steps.variable.css +47 -7
  507. package/lib/styles/index.d.ts +10 -1
  508. package/lib/styles/mixins/clearfix.css +8 -0
  509. package/lib/styles/mixins/clearfix.less +10 -0
  510. package/lib/styles/mixins/clearfix.variable.css +8 -0
  511. package/lib/styles/mixins/mixins.css +51 -0
  512. package/lib/styles/mixins/mixins.less +2 -0
  513. package/lib/styles/mixins/mixins.variable.css +51 -0
  514. package/lib/styles/mixins/popper.css +1 -1
  515. package/lib/styles/mixins/popper.less +12 -11
  516. package/lib/styles/mixins/popper.variable.css +123 -1
  517. package/lib/styles/mixins/scroll.css +17 -0
  518. package/lib/styles/mixins/scroll.less +22 -0
  519. package/lib/styles/mixins/scroll.variable.css +139 -0
  520. package/lib/styles/reset.css +36 -0
  521. package/lib/styles/reset.less +26 -2
  522. package/lib/styles/reset.variable.css +36 -0
  523. package/lib/styles/themes/themes.less +42 -4
  524. package/lib/switcher/index.d.ts +42 -30
  525. package/lib/switcher/index.js +1 -1
  526. package/lib/switcher/switcher.css +57 -6
  527. package/lib/switcher/switcher.d.ts +19 -13
  528. package/lib/switcher/switcher.less +5 -26
  529. package/lib/switcher/switcher.variable.css +106 -27
  530. package/lib/tab/index.d.ts +121 -67
  531. package/lib/tab/index.js +1 -1
  532. package/lib/tab/props.d.ts +93 -41
  533. package/lib/tab/tab-nav.d.ts +50 -14
  534. package/lib/tab/tab-panel.d.ts +14 -7
  535. package/lib/tab/tab.css +151 -55
  536. package/lib/tab/tab.d.ts +42 -21
  537. package/lib/tab/tab.less +179 -86
  538. package/lib/tab/tab.variable.css +183 -59
  539. package/lib/table/cache.d.ts +6 -0
  540. package/lib/table/components/index.d.ts +3 -0
  541. package/lib/table/components/table-cell.d.ts +51 -0
  542. package/lib/table/components/table-column.d.ts +299 -0
  543. package/lib/table/components/table-row.d.ts +2 -0
  544. package/lib/table/const.d.ts +125 -1
  545. package/lib/table/index.d.ts +1375 -48
  546. package/lib/table/index.js +1 -1
  547. package/lib/table/plugins/body-empty.d.ts +36 -0
  548. package/lib/table/plugins/col-group.d.ts +38 -0
  549. package/lib/table/plugins/common.d.ts +6 -0
  550. package/lib/table/plugins/head-filter.css +84 -0
  551. package/lib/table/plugins/head-filter.d.ts +26 -0
  552. package/lib/table/plugins/head-filter.less +110 -0
  553. package/lib/table/plugins/head-filter.variable.css +206 -0
  554. package/lib/table/plugins/head-sort.css +26 -0
  555. package/lib/table/plugins/head-sort.d.ts +29 -0
  556. package/lib/table/plugins/head-sort.less +32 -0
  557. package/lib/table/plugins/head-sort.variable.css +148 -0
  558. package/lib/table/plugins/index.d.ts +5 -0
  559. package/lib/table/plugins/settings.css +147 -0
  560. package/lib/table/plugins/settings.d.ts +37 -0
  561. package/lib/table/plugins/settings.less +181 -0
  562. package/lib/table/plugins/settings.variable.css +269 -0
  563. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  564. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  565. package/lib/table/plugins/use-fixed-column.d.ts +26 -0
  566. package/lib/table/plugins/use-pagination.d.ts +16 -0
  567. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  568. package/lib/table/props.d.ts +358 -11
  569. package/lib/table/render.d.ts +54 -31
  570. package/lib/table/table.css +1250 -38
  571. package/lib/table/table.d.ts +258 -18
  572. package/lib/table/table.less +314 -42
  573. package/lib/table/table.variable.css +1291 -51
  574. package/lib/table/use-column.d.ts +12 -0
  575. package/lib/table/use-common.d.ts +113 -0
  576. package/lib/table/utils.d.ts +60 -13
  577. package/lib/table-column/index.d.ts +790 -0
  578. package/lib/table-column/index.js +1 -0
  579. package/lib/tag/index.d.ts +29 -29
  580. package/lib/tag/index.js +1 -1
  581. package/lib/tag/tag.css +46 -13
  582. package/lib/tag/tag.d.ts +12 -12
  583. package/lib/tag/tag.less +46 -10
  584. package/lib/tag/tag.variable.css +78 -17
  585. package/lib/tag-input/common.d.ts +13 -1
  586. package/lib/tag-input/index.d.ts +1406 -1
  587. package/lib/tag-input/index.js +1 -1
  588. package/lib/tag-input/list-tag-render.d.ts +0 -3
  589. package/lib/tag-input/tag-input.css +23 -26
  590. package/lib/tag-input/tag-input.d.ts +303 -44
  591. package/lib/tag-input/tag-input.less +102 -104
  592. package/lib/tag-input/tag-input.variable.css +55 -30
  593. package/lib/tag-input/tag-props.d.ts +141 -7
  594. package/lib/tag-input/tag-render.d.ts +30 -4
  595. package/lib/time-picker/index.d.ts +904 -0
  596. package/lib/time-picker/index.js +1 -0
  597. package/lib/time-picker/time-picker.css +215 -0
  598. package/lib/time-picker/time-picker.less +260 -0
  599. package/lib/time-picker/time-picker.variable.css +337 -0
  600. package/lib/timeline/index.d.ts +6 -6
  601. package/lib/timeline/index.js +1 -1
  602. package/lib/timeline/timeline.css +16 -9
  603. package/lib/timeline/timeline.d.ts +1 -1
  604. package/lib/timeline/timeline.less +22 -9
  605. package/lib/timeline/timeline.variable.css +48 -13
  606. package/lib/transfer/const.d.ts +5 -0
  607. package/lib/transfer/index.d.ts +247 -150
  608. package/lib/transfer/index.js +1 -1
  609. package/lib/transfer/props.d.ts +59 -0
  610. package/lib/transfer/transfer.css +153 -92
  611. package/lib/transfer/transfer.d.ts +101 -95
  612. package/lib/transfer/transfer.less +142 -112
  613. package/lib/transfer/transfer.variable.css +191 -102
  614. package/lib/tree/constant.d.ts +62 -0
  615. package/lib/tree/index.d.ts +379 -60
  616. package/lib/tree/index.js +1 -1
  617. package/lib/tree/props.d.ts +124 -0
  618. package/lib/tree/tree.css +181 -9
  619. package/lib/tree/tree.d.ts +172 -19
  620. package/lib/tree/tree.less +54 -3
  621. package/lib/tree/tree.variable.css +213 -13
  622. package/lib/tree/use-empty.d.ts +6 -0
  623. package/lib/tree/use-node-action.d.ts +12 -0
  624. package/lib/tree/use-node-async.d.ts +5 -0
  625. package/lib/tree/use-node-attribute.d.ts +33 -0
  626. package/lib/tree/use-node-drag.d.ts +3 -0
  627. package/lib/tree/use-search.d.ts +11 -0
  628. package/lib/tree/use-tree-init.d.ts +15 -0
  629. package/lib/tree/util.d.ts +4 -6
  630. package/lib/upload/index.d.ts +566 -0
  631. package/lib/upload/index.js +1 -0
  632. package/lib/upload/props.d.ts +111 -0
  633. package/lib/upload/upload-list.d.ts +47 -0
  634. package/lib/upload/upload-trigger.d.ts +51 -0
  635. package/lib/upload/upload.css +427 -0
  636. package/lib/upload/upload.d.ts +246 -0
  637. package/lib/upload/upload.less +466 -0
  638. package/lib/upload/upload.type.d.ts +78 -0
  639. package/lib/upload/upload.variable.css +549 -0
  640. package/lib/upload/use-ajax-upload.d.ts +3 -0
  641. package/lib/upload/use-file-handler.d.ts +44 -0
  642. package/lib/virtual-render/index.d.ts +50 -4
  643. package/lib/virtual-render/index.js +1 -1
  644. package/lib/virtual-render/props.d.ts +15 -0
  645. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  646. package/lib/virtual-render/v-virtual-render.d.ts +0 -1
  647. package/lib/virtual-render/virtual-render.css +17 -17
  648. package/lib/virtual-render/virtual-render.d.ts +23 -1
  649. package/lib/virtual-render/virtual-render.less +2 -23
  650. package/lib/virtual-render/virtual-render.variable.css +139 -17
  651. package/lib/volar.components.d.ts +102 -0
  652. package/package.json +59 -26
  653. package/LICENSE.txt +0 -22
  654. package/lib/form/common.d.ts +0 -3
  655. package/lib/use-form.d.ts +0 -3
@@ -30,68 +30,79 @@ declare const Transfer: {
30
30
  $props: Partial<{
31
31
  title: string[];
32
32
  extCls: string;
33
+ multiple: boolean;
33
34
  displayKey: string;
35
+ searchPlaceholder: string;
34
36
  sortable: boolean;
35
37
  settingKey: string;
36
- searchPlaceholder: string;
38
+ sortKey: string;
37
39
  showOverflowTips: boolean;
38
40
  searchable: boolean;
39
- sortKey: string;
40
- sourceList: unknown[];
41
- targetList: unknown[];
41
+ sourceList: any[];
42
+ targetList: any[];
42
43
  emptyContent: string[];
43
44
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
44
- title: {
45
- type: import("vue").PropType<string[]>;
46
- default: () => any[];
45
+ title: import("vue-types").VueTypeDef<string[]> & {
46
+ default: () => string[];
47
47
  };
48
- extCls: {
49
- type: StringConstructor;
48
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
49
+ default: string;
50
+ } & {
50
51
  default: string;
51
52
  };
52
- searchPlaceholder: {
53
- type: StringConstructor;
53
+ searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
54
+ default: string;
55
+ } & {
54
56
  default: string;
55
57
  };
56
- settingKey: {
57
- type: StringConstructor;
58
+ settingKey: import("vue-types").VueTypeValidableDef<string> & {
59
+ default: string;
60
+ } & {
58
61
  default: string;
59
62
  };
60
- displayKey: {
61
- type: StringConstructor;
63
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
64
+ default: string;
65
+ } & {
62
66
  default: string;
63
67
  };
64
- sortKey: {
65
- type: StringConstructor;
68
+ sortKey: import("vue-types").VueTypeValidableDef<string> & {
69
+ default: string;
70
+ } & {
66
71
  default: string;
67
72
  };
68
- showOverflowTips: {
69
- type: BooleanConstructor;
73
+ showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
74
+ default: boolean;
75
+ } & {
70
76
  default: boolean;
71
77
  };
72
- searchable: {
73
- type: BooleanConstructor;
78
+ searchable: import("vue-types").VueTypeValidableDef<boolean> & {
79
+ default: boolean;
80
+ } & {
74
81
  default: boolean;
75
82
  };
76
- sortable: {
77
- type: BooleanConstructor;
83
+ sortable: import("vue-types").VueTypeValidableDef<boolean> & {
84
+ default: boolean;
85
+ } & {
78
86
  default: boolean;
79
87
  };
80
- sourceList: {
81
- type: ArrayConstructor;
88
+ sourceList: import("vue-types").VueTypeDef<any[]> & {
82
89
  default: () => any[];
83
90
  };
84
- targetList: {
85
- type: ArrayConstructor;
91
+ targetList: import("vue-types").VueTypeDef<any[]> & {
86
92
  default: () => any[];
87
93
  };
88
- emptyContent: {
89
- type: import("vue").PropType<string[]>;
90
- default: () => any[];
94
+ emptyContent: import("vue-types").VueTypeDef<string[]> & {
95
+ default: () => string[];
96
+ };
97
+ multiple: import("vue-types").VueTypeValidableDef<boolean> & {
98
+ default: boolean;
99
+ } & {
100
+ default: boolean;
91
101
  };
92
102
  }>> & {
93
103
  onChange?: (...args: any[]) => any;
94
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "extCls" | "displayKey" | "sortable" | "settingKey" | "searchPlaceholder" | "showOverflowTips" | "searchable" | "sortKey" | "sourceList" | "targetList" | "emptyContent">;
104
+ "onUpdate:targetList"?: (...args: any[]) => any;
105
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "extCls" | "multiple" | "displayKey" | "searchPlaceholder" | "sortable" | "settingKey" | "sortKey" | "showOverflowTips" | "searchable" | "sourceList" | "targetList" | "emptyContent">;
95
106
  $attrs: {
96
107
  [x: string]: unknown;
97
108
  };
@@ -103,84 +114,113 @@ declare const Transfer: {
103
114
  }>;
104
115
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
105
116
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
106
- $emit: (event: "change", ...args: any[]) => void;
117
+ $emit: (event: "change" | "update:targetList", ...args: any[]) => void;
107
118
  $el: any;
108
119
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
109
- title: {
110
- type: import("vue").PropType<string[]>;
111
- default: () => any[];
120
+ title: import("vue-types").VueTypeDef<string[]> & {
121
+ default: () => string[];
112
122
  };
113
- extCls: {
114
- type: StringConstructor;
123
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
124
+ default: string;
125
+ } & {
115
126
  default: string;
116
127
  };
117
- searchPlaceholder: {
118
- type: StringConstructor;
128
+ searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
129
+ default: string;
130
+ } & {
119
131
  default: string;
120
132
  };
121
- settingKey: {
122
- type: StringConstructor;
133
+ settingKey: import("vue-types").VueTypeValidableDef<string> & {
134
+ default: string;
135
+ } & {
123
136
  default: string;
124
137
  };
125
- displayKey: {
126
- type: StringConstructor;
138
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
139
+ default: string;
140
+ } & {
127
141
  default: string;
128
142
  };
129
- sortKey: {
130
- type: StringConstructor;
143
+ sortKey: import("vue-types").VueTypeValidableDef<string> & {
144
+ default: string;
145
+ } & {
131
146
  default: string;
132
147
  };
133
- showOverflowTips: {
134
- type: BooleanConstructor;
148
+ showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
149
+ default: boolean;
150
+ } & {
135
151
  default: boolean;
136
152
  };
137
- searchable: {
138
- type: BooleanConstructor;
153
+ searchable: import("vue-types").VueTypeValidableDef<boolean> & {
154
+ default: boolean;
155
+ } & {
139
156
  default: boolean;
140
157
  };
141
- sortable: {
142
- type: BooleanConstructor;
158
+ sortable: import("vue-types").VueTypeValidableDef<boolean> & {
159
+ default: boolean;
160
+ } & {
143
161
  default: boolean;
144
162
  };
145
- sourceList: {
146
- type: ArrayConstructor;
163
+ sourceList: import("vue-types").VueTypeDef<any[]> & {
147
164
  default: () => any[];
148
165
  };
149
- targetList: {
150
- type: ArrayConstructor;
166
+ targetList: import("vue-types").VueTypeDef<any[]> & {
151
167
  default: () => any[];
152
168
  };
153
- emptyContent: {
154
- type: import("vue").PropType<string[]>;
155
- default: () => any[];
169
+ emptyContent: import("vue-types").VueTypeDef<string[]> & {
170
+ default: () => string[];
171
+ };
172
+ multiple: import("vue-types").VueTypeValidableDef<boolean> & {
173
+ default: boolean;
174
+ } & {
175
+ default: boolean;
156
176
  };
157
177
  }>> & {
158
178
  onChange?: (...args: any[]) => any;
179
+ "onUpdate:targetList"?: (...args: any[]) => any;
159
180
  }, {
160
- keyword: import("vue").Ref<string>;
161
- transferRef: any;
162
- dataList: import("vue").Ref<any[]>;
181
+ selectSearchQuery: import("vue").Ref<string>;
182
+ selectListSearch: import("vue").ComputedRef<any>;
183
+ selectedList: import("vue").Ref<any[]>;
184
+ selectListSort: import("vue").ComputedRef<any[]>;
185
+ selectedListSort: import("vue").ComputedRef<any[]>;
186
+ settingCode: import("vue").ComputedRef<string>;
187
+ displayCode: import("vue").ComputedRef<string>;
163
188
  allToRight: () => void;
164
189
  allToLeft: () => void;
165
- displayDataList: import("vue").ComputedRef<any[]>;
166
- displayCode: import("vue").ComputedRef<string>;
167
- leftHoverIndex: import("vue").Ref<number>;
168
- rightHoverIndex: import("vue").Ref<number>;
169
- handleItemMouseEvent: (type: any, event: any, isLeft: any, index: any) => void;
170
- handleItemClick: (event: any, index: any, isLeft: any) => void;
171
- hasSelectedList: import("vue").Ref<any[]>;
172
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], string, {
190
+ handleItemClick: (item: any, isLeft: any) => void;
191
+ t: import("vue").ComputedRef<{
192
+ sourceList: string;
193
+ targetList: string;
194
+ removeAll: string;
195
+ selectAll: string;
196
+ noData: string;
197
+ noSelected: string;
198
+ search: string;
199
+ }>;
200
+ handleAllChecked: (value: any, dirct: any) => void;
201
+ multipleSelectAllValue: import("vue").Ref<{
202
+ source: boolean;
203
+ target: boolean;
204
+ }>;
205
+ multipleSelectList: import("vue").Ref<{
206
+ source: any[];
207
+ target: any[];
208
+ }>;
209
+ handleMultipleChange: (dirct: any) => void;
210
+ handleItemChecked: (dirct: any) => void;
211
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:targetList")[], string, {
173
212
  title: string[];
174
213
  extCls: string;
214
+ multiple: boolean;
175
215
  displayKey: string;
216
+ searchPlaceholder: string;
176
217
  sortable: boolean;
177
218
  settingKey: string;
178
- searchPlaceholder: string;
219
+ sortKey: string;
179
220
  showOverflowTips: boolean;
180
221
  searchable: boolean;
181
- sortKey: string;
182
- sourceList: unknown[];
183
- targetList: unknown[];
222
+ sourceList: any[];
223
+ targetList: any[];
184
224
  emptyContent: string[];
185
225
  }> & {
186
226
  beforeCreate?: (() => void) | (() => void)[];
@@ -203,149 +243,206 @@ declare const Transfer: {
203
243
  $nextTick: typeof import("vue").nextTick;
204
244
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
205
245
  } & Readonly<import("vue").ExtractPropTypes<{
206
- title: {
207
- type: import("vue").PropType<string[]>;
208
- default: () => any[];
246
+ title: import("vue-types").VueTypeDef<string[]> & {
247
+ default: () => string[];
209
248
  };
210
- extCls: {
211
- type: StringConstructor;
249
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
250
+ default: string;
251
+ } & {
212
252
  default: string;
213
253
  };
214
- searchPlaceholder: {
215
- type: StringConstructor;
254
+ searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
255
+ default: string;
256
+ } & {
216
257
  default: string;
217
258
  };
218
- settingKey: {
219
- type: StringConstructor;
259
+ settingKey: import("vue-types").VueTypeValidableDef<string> & {
260
+ default: string;
261
+ } & {
220
262
  default: string;
221
263
  };
222
- displayKey: {
223
- type: StringConstructor;
264
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
265
+ default: string;
266
+ } & {
224
267
  default: string;
225
268
  };
226
- sortKey: {
227
- type: StringConstructor;
269
+ sortKey: import("vue-types").VueTypeValidableDef<string> & {
270
+ default: string;
271
+ } & {
228
272
  default: string;
229
273
  };
230
- showOverflowTips: {
231
- type: BooleanConstructor;
274
+ showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
275
+ default: boolean;
276
+ } & {
232
277
  default: boolean;
233
278
  };
234
- searchable: {
235
- type: BooleanConstructor;
279
+ searchable: import("vue-types").VueTypeValidableDef<boolean> & {
280
+ default: boolean;
281
+ } & {
236
282
  default: boolean;
237
283
  };
238
- sortable: {
239
- type: BooleanConstructor;
284
+ sortable: import("vue-types").VueTypeValidableDef<boolean> & {
285
+ default: boolean;
286
+ } & {
240
287
  default: boolean;
241
288
  };
242
- sourceList: {
243
- type: ArrayConstructor;
289
+ sourceList: import("vue-types").VueTypeDef<any[]> & {
244
290
  default: () => any[];
245
291
  };
246
- targetList: {
247
- type: ArrayConstructor;
292
+ targetList: import("vue-types").VueTypeDef<any[]> & {
248
293
  default: () => any[];
249
294
  };
250
- emptyContent: {
251
- type: import("vue").PropType<string[]>;
252
- default: () => any[];
295
+ emptyContent: import("vue-types").VueTypeDef<string[]> & {
296
+ default: () => string[];
297
+ };
298
+ multiple: import("vue-types").VueTypeValidableDef<boolean> & {
299
+ default: boolean;
300
+ } & {
301
+ default: boolean;
253
302
  };
254
303
  }>> & {
255
304
  onChange?: (...args: any[]) => any;
305
+ "onUpdate:targetList"?: (...args: any[]) => any;
256
306
  } & import("vue").ShallowUnwrapRef<{
257
- keyword: import("vue").Ref<string>;
258
- transferRef: any;
259
- dataList: import("vue").Ref<any[]>;
307
+ selectSearchQuery: import("vue").Ref<string>;
308
+ selectListSearch: import("vue").ComputedRef<any>;
309
+ selectedList: import("vue").Ref<any[]>;
310
+ selectListSort: import("vue").ComputedRef<any[]>;
311
+ selectedListSort: import("vue").ComputedRef<any[]>;
312
+ settingCode: import("vue").ComputedRef<string>;
313
+ displayCode: import("vue").ComputedRef<string>;
260
314
  allToRight: () => void;
261
315
  allToLeft: () => void;
262
- displayDataList: import("vue").ComputedRef<any[]>;
263
- displayCode: import("vue").ComputedRef<string>;
264
- leftHoverIndex: import("vue").Ref<number>;
265
- rightHoverIndex: import("vue").Ref<number>;
266
- handleItemMouseEvent: (type: any, event: any, isLeft: any, index: any) => void;
267
- handleItemClick: (event: any, index: any, isLeft: any) => void;
268
- hasSelectedList: import("vue").Ref<any[]>;
316
+ handleItemClick: (item: any, isLeft: any) => void;
317
+ t: import("vue").ComputedRef<{
318
+ sourceList: string;
319
+ targetList: string;
320
+ removeAll: string;
321
+ selectAll: string;
322
+ noData: string;
323
+ noSelected: string;
324
+ search: string;
325
+ }>;
326
+ handleAllChecked: (value: any, dirct: any) => void;
327
+ multipleSelectAllValue: import("vue").Ref<{
328
+ source: boolean;
329
+ target: boolean;
330
+ }>;
331
+ multipleSelectList: import("vue").Ref<{
332
+ source: any[];
333
+ target: any[];
334
+ }>;
335
+ handleMultipleChange: (dirct: any) => void;
336
+ handleItemChecked: (dirct: any) => void;
269
337
  }> & {} & {} & import("vue").ComponentCustomProperties;
270
338
  __isFragment?: never;
271
339
  __isTeleport?: never;
272
340
  __isSuspense?: never;
273
341
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
274
- title: {
275
- type: import("vue").PropType<string[]>;
276
- default: () => any[];
342
+ title: import("vue-types").VueTypeDef<string[]> & {
343
+ default: () => string[];
277
344
  };
278
- extCls: {
279
- type: StringConstructor;
345
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
346
+ default: string;
347
+ } & {
280
348
  default: string;
281
349
  };
282
- searchPlaceholder: {
283
- type: StringConstructor;
350
+ searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
351
+ default: string;
352
+ } & {
284
353
  default: string;
285
354
  };
286
- settingKey: {
287
- type: StringConstructor;
355
+ settingKey: import("vue-types").VueTypeValidableDef<string> & {
356
+ default: string;
357
+ } & {
288
358
  default: string;
289
359
  };
290
- displayKey: {
291
- type: StringConstructor;
360
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
361
+ default: string;
362
+ } & {
292
363
  default: string;
293
364
  };
294
- sortKey: {
295
- type: StringConstructor;
365
+ sortKey: import("vue-types").VueTypeValidableDef<string> & {
366
+ default: string;
367
+ } & {
296
368
  default: string;
297
369
  };
298
- showOverflowTips: {
299
- type: BooleanConstructor;
370
+ showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
371
+ default: boolean;
372
+ } & {
300
373
  default: boolean;
301
374
  };
302
- searchable: {
303
- type: BooleanConstructor;
375
+ searchable: import("vue-types").VueTypeValidableDef<boolean> & {
376
+ default: boolean;
377
+ } & {
304
378
  default: boolean;
305
379
  };
306
- sortable: {
307
- type: BooleanConstructor;
380
+ sortable: import("vue-types").VueTypeValidableDef<boolean> & {
381
+ default: boolean;
382
+ } & {
308
383
  default: boolean;
309
384
  };
310
- sourceList: {
311
- type: ArrayConstructor;
385
+ sourceList: import("vue-types").VueTypeDef<any[]> & {
312
386
  default: () => any[];
313
387
  };
314
- targetList: {
315
- type: ArrayConstructor;
388
+ targetList: import("vue-types").VueTypeDef<any[]> & {
316
389
  default: () => any[];
317
390
  };
318
- emptyContent: {
319
- type: import("vue").PropType<string[]>;
320
- default: () => any[];
391
+ emptyContent: import("vue-types").VueTypeDef<string[]> & {
392
+ default: () => string[];
393
+ };
394
+ multiple: import("vue-types").VueTypeValidableDef<boolean> & {
395
+ default: boolean;
396
+ } & {
397
+ default: boolean;
321
398
  };
322
399
  }>> & {
323
400
  onChange?: (...args: any[]) => any;
401
+ "onUpdate:targetList"?: (...args: any[]) => any;
324
402
  }, {
325
- keyword: import("vue").Ref<string>;
326
- transferRef: any;
327
- dataList: import("vue").Ref<any[]>;
403
+ selectSearchQuery: import("vue").Ref<string>;
404
+ selectListSearch: import("vue").ComputedRef<any>;
405
+ selectedList: import("vue").Ref<any[]>;
406
+ selectListSort: import("vue").ComputedRef<any[]>;
407
+ selectedListSort: import("vue").ComputedRef<any[]>;
408
+ settingCode: import("vue").ComputedRef<string>;
409
+ displayCode: import("vue").ComputedRef<string>;
328
410
  allToRight: () => void;
329
411
  allToLeft: () => void;
330
- displayDataList: import("vue").ComputedRef<any[]>;
331
- displayCode: import("vue").ComputedRef<string>;
332
- leftHoverIndex: import("vue").Ref<number>;
333
- rightHoverIndex: import("vue").Ref<number>;
334
- handleItemMouseEvent: (type: any, event: any, isLeft: any, index: any) => void;
335
- handleItemClick: (event: any, index: any, isLeft: any) => void;
336
- hasSelectedList: import("vue").Ref<any[]>;
337
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", {
412
+ handleItemClick: (item: any, isLeft: any) => void;
413
+ t: import("vue").ComputedRef<{
414
+ sourceList: string;
415
+ targetList: string;
416
+ removeAll: string;
417
+ selectAll: string;
418
+ noData: string;
419
+ noSelected: string;
420
+ search: string;
421
+ }>;
422
+ handleAllChecked: (value: any, dirct: any) => void;
423
+ multipleSelectAllValue: import("vue").Ref<{
424
+ source: boolean;
425
+ target: boolean;
426
+ }>;
427
+ multipleSelectList: import("vue").Ref<{
428
+ source: any[];
429
+ target: any[];
430
+ }>;
431
+ handleMultipleChange: (dirct: any) => void;
432
+ handleItemChecked: (dirct: any) => void;
433
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:targetList")[], "change" | "update:targetList", {
338
434
  title: string[];
339
435
  extCls: string;
436
+ multiple: boolean;
340
437
  displayKey: string;
438
+ searchPlaceholder: string;
341
439
  sortable: boolean;
342
440
  settingKey: string;
343
- searchPlaceholder: string;
441
+ sortKey: string;
344
442
  showOverflowTips: boolean;
345
443
  searchable: boolean;
346
- sortKey: string;
347
- sourceList: unknown[];
348
- targetList: unknown[];
444
+ sourceList: any[];
445
+ targetList: any[];
349
446
  emptyContent: string[];
350
447
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
351
448
  export default Transfer;
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon/"),require("../input"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon/","../input"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon/"),require("../input")):t(e["../shared"],e.vue,e["../icon/"],e["../input"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n)=>(()=>{"use strict";var a={7685:e=>{e.exports=r},8133:e=>{e.exports=n},4212:t=>{t.exports=e},748:e=>{e.exports=t}},o={};function l(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return a[e](r,r.exports,l),r.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{l.r(u),l.d(u,{default:()=>v});var e=l(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],l=!0,u=!1;try{for(r=r.call(e);!(l=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{l||null==r.return||r.return()}finally{if(u)throw a}}return o}}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=l(748),i=l(7685),s=l(8133),c=l.n(s);e.PropTypes.string,e.PropTypes.string,e.PropTypes.string,e.PropTypes.string,e.PropTypes.bool,e.PropTypes.bool,e.PropTypes.string,e.PropTypes.bool;const f=(0,o.defineComponent)({name:"Transfer",props:{title:{type:Array,default:function(){return[]}},extCls:{type:String,default:""},searchPlaceholder:{type:String,default:""},settingKey:{type:String,default:"id"},displayKey:{type:String,default:"value"},sortKey:{type:String,default:""},showOverflowTips:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},sortable:{type:Boolean,default:!1},sourceList:{type:Array,default:function(){return[]}},targetList:{type:Array,default:function(){return[]}},emptyContent:{type:Array,default:function(){return[]}}},emits:["change"],slots:["left-header","right-header","source-option","target-option","left-empty-content","right-empty-content"],setup:function(t,r){var l=r.emit,u=[],i=t.sortKey,s=t.sortable,c=(0,o.ref)(""),f=(0,o.ref)(null),v=(0,o.ref)([]),d=(0,o.ref)([]),p=(0,o.ref)(-1),h=(0,o.ref)(-1),y=(0,o.computed)((function(){return t.sourceList&&Array.isArray(t.sourceList)?-1!==t.sourceList.toString().indexOf("[object Object]"):"empty"})),g=(0,o.computed)((function(){return y.value?t.settingKey:"index"})),m=(0,o.computed)((function(){return y.value?t.displayKey:"value"})),b=(0,o.computed)((function(){return c.value?v.value.filter((function(t){return!(0,e.isEmpty)(t[m.value])&&String(t[m.value]).indexOf(c.value)>-1})):v.value}));(0,o.watch)((function(){return t.sourceList}),(function(){"empty"!==y.value&&(L(),w())}),{deep:!0}),(0,o.watch)((function(){return t.targetList}),(function(){L(),w()}),{deep:!0}),(0,o.watch)((function(){return[m.value,g.value]}),(function(){L()})),(0,o.watch)((function(){return t.sortKey}),(function(e){i=e,w()})),(0,o.watch)((function(){return t.sortable}),(function(e){s=e,w()}));var L=function(){"empty"!==y.value&&(y.value?S():x())},x=function(){if(!t.targetList.length||t.targetList.length>t.sourceList.length){for(var e,r=[],n=0;n<t.sourceList.length;n++)r.push({index:n,value:t.sourceList[n]});v.value=[].concat(r),(e=d.value).splice.apply(e,[0,d.value.length].concat([])),l("change",v.value,[],[])}else{for(var o=[],u=[],i=0;i<t.sourceList.length;i++)o.push({index:i,value:t.sourceList[i]});t.targetList.forEach((function(e){var t=o.find((function(t){return t.value===e}));t&&u.push(t)})),d.value=[].concat(u);var s=o.filter((function(e){return u.every((function(t){return t.index!==e.index}))}));v.value=a(s),l("change",v.value,a(N(d.value,!1)),[])}},S=function(){if(!t.targetList.length||t.targetList.length>t.sourceList.length){var e;(e=v.value).splice.apply(e,[0,v.value.length].concat(a(t.sourceList))),d.value=[],l("change",v.value,[],[])}else{var r=t.sourceList.filter((function(e){return t.targetList.every((function(t){return t!==e[g.value]}))})),n=[];t.sourceList.forEach((function(e){t.targetList.forEach((function(t){e[g.value]===t&&n.push(e)}))})),d.value=[].concat(n),v.value=a(r);var o=a(N(d.value));l("change",v.value,d.value,o)}},w=function(){var e=[];if(y.value)s||(i=""),e=a(t.sourceList);else{i=s?"index":"";for(var r=0;r<t.sourceList.length;r++)e.push({index:r,value:t.sourceList[r]})}if(i){var n=[];if(e.forEach((function(e){n.push(e[i])})),(u=[].concat(n)).length===t.sourceList.length){var o=a(v.value);v.value=a(T(o,i,u))}}},V=function(){var e=v.value,t=y.value?d.value:a(N(d.value,!1)),r=y.value?a(N(d.value)):[];l("change",e,t,r)},N=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=[];if(!e.length)return[];var o=a(e);return o.forEach((function(e){if(t)for(var a=0,o=Object.entries(e);a<o.length;a++){var l=n(o[a],2),u=l[0],i=l[1];u===g.value&&r.push(i)}else r.push(e.value)})),r},T=function(e,t,r){var n=r;return e.sort((function(e,r){return n.indexOf(e[t])-n.indexOf(r[t])>=0}))},A=function(e){v.value=v.value.filter((function(t){return t[g.value]!==e[g.value]}))};return"empty"!==y.value&&(y.value?S():x(),w()),{keyword:c,transferRef:f,dataList:v,allToRight:function(){p.value=-1;var e=b.value,r=d.value;e.forEach((function(e){r.push(e),A(e)})),u.length===t.sourceList.length?d.value=a(T(r,i,u)):d.value=a(r),V()},allToLeft:function(){h.value=-1;for(var e=d.value,r=v.value;e.length;){var n=e.shift();r.push(n),u.length===t.sourceList.length?v.value=a(T(r,i,u)):v.value=a(r)}V()},displayDataList:b,displayCode:m,leftHoverIndex:p,rightHoverIndex:h,handleItemMouseEvent:function(e,t,r,n){t.preventDefault(),t.stopPropagation();var a="over"===e?n:-1;r?p.value=a:h.value=a},handleItemClick:function(e,r,n){e.preventDefault(),e.stopPropagation(),n?p.value=-1:h.value=-1;var o=n?b.value[r]:d.value.splice(r,1)[0],l=n?d.value:v.value;l.push(o),n&&A(o);var s=u.length===t.sourceList.length?a(T(l,i,u)):a(l);n?d.value=a(s):v.value=a(s),V()},hasSelectedList:d}},render:function(){var e=this,t=this.$props,r=t.extCls,n=t.title,a=t.emptyContent,l=t.searchable,u=t.searchPlaceholder,s=function(t){var r,a,l="left-header"===t,u="".concat(l?null!==(r=n[0])&&void 0!==r?r:"左侧列表":null!==(a=n[1])&&void 0!==a?a:"右侧列表"),i=l?!e.dataList.length:!e.hasSelectedList.length;return e.$slots[t]?(0,o.createVNode)("div",{class:"slot-header"},[(0,o.createVNode)("div",{class:"slot-content"},[e.$slots[t]()])]):(0,o.createVNode)("div",{class:"header"},["".concat(u,"(共").concat(e.dataList.length,"条)"),(0,o.createVNode)("span",{class:{disabled:i},onClick:function(){return l&&e.dataList.length&&e.allToRight(),void(!l&&e.hasSelectedList.length&&e.allToLeft())}},[l?"全部添加":"清空"])])},f=function(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=n?e.leftHoverIndex:e.rightHoverIndex;return(0,o.createVNode)("div",{class:"item-content"},[(0,o.createVNode)("span",{class:"content-text",title:t[e.displayCode]},[t[e.displayCode]]),(0,o.createVNode)("span",{class:["icon-wrapper",r===a?"hover":""]},[n?(0,o.createVNode)(i.ArrowsRight,{class:"bk-icon"},null):(0,o.createVNode)(i.Error,{class:"bk-icon"},null)])])},v=function(t){var r="left"===t,n=r?e.displayDataList:e.hasSelectedList,u=r?"source-option":"target-option",i=r?"left-empty-content":"right-empty-content";return n.length?(0,o.createVNode)("ul",{class:["content",l&&r?"is-search":""]},[n.map((function(t,n){var a,l,i;return(0,o.createVNode)("li",{key:n,class:[e.$slots[u]?"custom-item":""],onClick:function(t){return e.handleItemClick(t,n,r)},onMouseover:function(t){return e.handleItemMouseEvent("over",t,r,n)},onMouseleave:function(t){return e.handleItemMouseEvent("leave",t,r,n)}},[null!==(i=null===(l=(a=e.$slots)[u])||void 0===l?void 0:l.call(a,t))&&void 0!==i?i:f(t,n,r)])}))]):function(t){var r,n="left-empty-content"===t,l=null!==(r=n?a[0]:a[1])&&void 0!==r?r:n?"无数据":"未选择任何项";return e.$slots[t]?(0,o.createVNode)("div",null,[e.$slots[t]()]):(0,o.createVNode)("div",{class:"empty"},[l])}(i)};return(0,o.createVNode)("div",{class:["bk-transfer",r],ref:"transferRef"},[(0,o.createVNode)("div",{class:"source-list"},[s("left-header"),l&&(0,o.createVNode)(c(),{modelValue:e.keyword,"onUpdate:modelValue":function(t){return e.keyword=t},class:"transfer-search-input",clearable:!0,placeholder:u||"请输入搜索关键字",type:"search","left-icon":"bk-icon icon-search"},null),v("left")]),(0,o.createVNode)("div",{class:"transfer"},null),(0,o.createVNode)("div",{class:"target-list"},[s("right-header"),v("right")])])}}),v=(0,e.withInstall)(f)})(),u})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../checkbox"),require("../config-provider"),require("../icon/"),require("../input"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../checkbox","../config-provider","../icon/","../input"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../checkbox"),require("../config-provider"),require("../icon/"),require("../input")):t(e["../shared"],e.vue,e["../checkbox"],e["../config-provider"],e["../icon/"],e["../input"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n,l,o)=>(()=>{"use strict";var a={5800:e=>{e.exports=r},2717:e=>{e.exports=n},7685:e=>{e.exports=l},8133:e=>{e.exports=o},4212:t=>{t.exports=e},748:e=>{e.exports=t}},u={};function c(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={exports:{}};return a[e](r,r.exports,c),r.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{c.r(i),c.d(i,{default:()=>h});var e=c(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var n,l=c(748),o=c(5800),a=c.n(o),u=c(2717),s=c(7685),d=c(8133),f=c.n(d);!function(e){e.OBJECT_ARRAY="objectArray",e.BASE_ARRAY="baseArray",e.NOT_ARRAY="notArray"}(n||(n={}));var p={title:e.PropTypes.arrayOf(e.PropTypes.string).def([]),extCls:e.PropTypes.string.def(""),searchPlaceholder:e.PropTypes.string.def(""),settingKey:e.PropTypes.string.def("id"),displayKey:e.PropTypes.string.def("value"),sortKey:e.PropTypes.string.def("value"),showOverflowTips:e.PropTypes.bool.def(!1),searchable:e.PropTypes.bool.def(!1),sortable:e.PropTypes.bool.def(!1),sourceList:e.PropTypes.arrayOf(e.PropTypes.any).def([]),targetList:e.PropTypes.arrayOf(e.PropTypes.any).def([]),emptyContent:e.PropTypes.arrayOf(e.PropTypes.string).def([]),multiple:e.PropTypes.bool.def(!1)};const v=(0,l.defineComponent)({name:"Transfer",props:p,emits:["change","update:targetList"],setup:function(e,t){var o=t.emit,a=(0,u.useLocale)("transfer"),c=(0,l.ref)({source:!1,target:!1}),i=(0,l.ref)({source:[],target:[]}),s=(0,l.computed)((function(){return Array.isArray(e.sourceList)?e.sourceList.every((function(e){return e.toString().includes("[object Object]")}))?n.OBJECT_ARRAY:n.BASE_ARRAY:n.NOT_ARRAY})),d=(0,l.computed)((function(){return s.value===n.BASE_ARRAY?"value":e.settingKey})),f=(0,l.computed)((function(){return s.value===n.BASE_ARRAY?"value":e.displayKey})),p=(0,l.computed)((function(){return e.sortKey||f.value})),v=(0,l.computed)((function(){switch(s.value){case n.BASE_ARRAY:return r(new Set(e.sourceList)).map((function(e){return{value:e}}));case n.OBJECT_ARRAY:return r(e.sourceList);default:return[]}})),h=(0,l.toRefs)(e).targetList,y=function(e,t,r){var n=(0,l.ref)([]),o=(0,l.ref)([]),a=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(n.value=[],o.value=[]),e.value.forEach((function(e){var l=e[r.value];t.value.includes(l)?o.value.push(e):n.value.push(e)}))};return a(),(0,l.watch)((function(){return[e,t,r]}),(function(){a(!0)}),{deep:!0}),{selectList:n,selectedList:o}}(v,h,d),m=y.selectList,g=y.selectedList,b=function(e,t){var r=(0,l.ref)(""),n=(0,l.computed)((function(){return e.value.filter((function(e){var n=e[t.value];return!(n instanceof Object)&&n.toString().includes(r.value)}))}));return{selectSearchQuery:r,selectListSearch:n}}(m,f),A=b.selectSearchQuery,S=b.selectListSearch,V=(0,l.computed)((function(){return r(S.value).sort((function(e,t){return e[p.value]>t[p.value]?1:-1}))})),L=(0,l.computed)((function(){return r(g.value).sort((function(e,t){return e[p.value]>t[p.value]?1:-1}))}));(0,l.watch)((function(){return[m,g]}),(function(){e.multiple||T()}),{deep:!0});var N=function(e,t){var r=d.value;return e.some((function(e){return e[r]===t[r]}))&&t.disabled},T=function(){var e=m.value.map((function(e){return e[d.value]})),t=g.value.map((function(e){return e[d.value]}));o("update:targetList",t),o("change",s.value===n.BASE_ARRAY?e:m.value.map((function(e){return(0,l.toRaw)(e)})),s.value===n.BASE_ARRAY?t:g.value.map((function(e){return(0,l.toRaw)(e)})),t)};return{selectSearchQuery:A,selectListSearch:S,selectedList:g,selectListSort:V,selectedListSort:L,settingCode:d,displayCode:f,allToRight:function(){m.value=r(v.value.filter((function(e){return N(m.value,e)}))),g.value=r(v.value.filter((function(e){return!N(m.value,e)}))),T()},allToLeft:function(){m.value=r(v.value.filter((function(e){return!N(g.value,e)}))),g.value=r(v.value.filter((function(e){return N(g.value,e)}))),T()},handleItemClick:function(e,t){var n;if(!e.disabled){var l=e[d.value],o=t?m:g,a=t?g:m,u=o.value.findIndex((function(e){return e[d.value]===l}));(n=a.value).push.apply(n,r(o.value.splice(u,1))),T()}},t:a,handleAllChecked:function(e,t){var r="source"===t?m:g;i.value[t]=e?r.value.map((function(e){return e[d.value]})):[]},multipleSelectAllValue:c,multipleSelectList:i,handleMultipleChange:function(e){var t,n="left"===e,l=n?m:g,o=n?g:m,a=i.value[n?"source":"target"],u=l.value.filter((function(e){return a.includes(e[d.value])}));l.value=l.value.filter((function(e){return!a.includes(e[d.value])})),(t=o.value).push.apply(t,r(u)),i.value[n?"source":"target"]=[],T()},handleItemChecked:function(e){var t="source"===e?m:g;c.value[e]=i.value[e].length===t.value.length}}},render:function(){var e=this,t=this.$props.multiple,r=this.sortable?this.selectListSort:this.selectListSearch,n=this.sortable?this.selectedListSort:this.selectedList,u=function(t){var o,u,c="left-header"===t,i=c?"source":"target",s="".concat(c?null!==(o=e.title[0])&&void 0!==o?o:e.t.sourceList:null!==(u=e.title[1])&&void 0!==u?u:e.t.targetList),d=c?!r.length:!n.length,f=!!e.multipleSelectList[i].length&&!e.multipleSelectAllValue[i],p=e.multipleSelectList[i].length;return e.$slots[t]?(0,l.createVNode)("div",{class:"slot-header"},[e.$slots[t]()]):(0,l.createVNode)("div",{class:"header"},[e.multiple?(0,l.createVNode)(a(),{class:"header-checkbox",label:s,modelValue:e.multipleSelectAllValue[i],"onUpdate:modelValue":function(t){return e.multipleSelectAllValue[i]=t},indeterminate:f,onChange:function(t){return e.handleAllChecked(t,i)}},null):(0,l.createVNode)(l.Fragment,null,["".concat(s,"(").concat(c?r.length:n.length,")")]),e.multiple?(0,l.createVNode)("div",{class:"select-total-count"},[(0,l.createVNode)("span",{class:"select-count"},[p]),(0,l.createVNode)("span",{class:"count-delimiter"},[(0,l.createTextVNode)("/")]),(0,l.createVNode)("span",{class:"total-count"},[c?r.length:n.length])]):(0,l.createVNode)("span",{class:{"select-all":!0,disabled:d},onClick:function(){d||(c?e.allToRight():e.allToLeft())}},[c?e.t.selectAll:e.t.removeAll])])},c=function(r){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,l.createVNode)("div",{class:["item-content",{"is-disabled":r.disabled}]},[(0,l.createVNode)("span",{class:"content-text",title:r[e.displayCode]},[r[e.displayCode]]),!t&&(0,l.createVNode)("span",{class:"icon-wrapper"},[n?(0,l.createVNode)(s.ArrowsRight,{class:"bk-icon icon-move"},null):(0,l.createVNode)(s.Error,{class:"bk-icon icon-delete"},null)])])},i=function(u){var i,s,d="left"===u,f="left"===u?"source":"target",p=d?r:n,v=d?"source-option":"target-option",h=d?"left-empty-content":"right-empty-content",y=t?(0,l.createVNode)(o.BkCheckboxGroup,{class:"content is-flex",modelValue:e.multipleSelectList[f],"onUpdate:modelValue":function(t){return e.multipleSelectList[f]=t},onChange:function(){return e.handleItemChecked(f)}},"function"==typeof(s=i=p.map((function(t){var r,n,o;return(0,l.createVNode)("div",null,[(0,l.createVNode)(a(),{class:"checkbox-item",label:t[e.settingCode]},{default:function(){return[null!==(o=null===(n=(r=e.$slots)[v])||void 0===n?void 0:n.call(r,t))&&void 0!==o?o:c(t,d)]}})])})))||"[object Object]"===Object.prototype.toString.call(s)&&!(0,l.isVNode)(s)?i:{default:function(){return[i]}}):(0,l.createVNode)("ul",{class:["content",e.searchable&&d?"is-search":""]},[p.map((function(t){var r,n,o;return(0,l.createVNode)("li",{key:t[e.settingCode],class:[e.$slots[v]?"custom-item":""],onClick:function(){return e.handleItemClick(t,d)}},[null!==(o=null===(n=(r=e.$slots)[v])||void 0===n?void 0:n.call(r,t))&&void 0!==o?o:c(t,d)])}))]);return p.length?y:function(t){var r,n="left-empty-content"===t,o=null!==(r=n?e.emptyContent[0]:e.emptyContent[1])&&void 0!==r?r:n?e.t.noData:e.t.noSelected;return e.$slots[t]?(0,l.createVNode)("div",null,[e.$slots[t]()]):(0,l.createVNode)("div",{class:"empty"},[o])}(h)};return(0,l.createVNode)("div",{class:["bk-transfer",this.extCls]},[(0,l.createVNode)("div",{class:"source-list"},[u("left-header"),this.searchable&&(0,l.createVNode)(f(),{modelValue:e.selectSearchQuery,"onUpdate:modelValue":function(t){return e.selectSearchQuery=t},class:"transfer-search-input",clearable:!0,placeholder:this.searchPlaceholder||this.t.search},{prefix:function(){return(0,l.createVNode)(s.Search,{class:"icon-search"},null)}}),i("left")]),t?(0,l.createVNode)("div",{class:"transfer-button-group"},[(0,l.createVNode)("div",{class:["transfer-button",{disabled:!this.multipleSelectList.source.length}],onClick:function(){return e.handleMultipleChange("left")}},[(0,l.createVNode)(s.AngleRight,null,null)]),(0,l.createVNode)("div",{class:["transfer-button",{disabled:!this.multipleSelectList.target.length}],onClick:function(){return e.handleMultipleChange("right")}},[(0,l.createVNode)(s.AngleLeft,null,null)])]):(0,l.createVNode)(s.Transfer,{class:"transfer"},null),(0,l.createVNode)("div",{class:"target-list"},[u("right-header"),i("right")])])}}),h=(0,e.withInstall)(v)})(),i})()));