bkui-vue 0.0.1-beta.47 → 0.0.1-beta.470

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 (686) hide show
  1. package/License.txt +14 -0
  2. package/dist/index.cjs.js +360 -36
  3. package/dist/index.esm.js +31133 -19791
  4. package/dist/index.umd.js +360 -36
  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 +167 -0
  20. package/lib/affix/index.js +1 -0
  21. package/lib/alert/alert.css +9 -3
  22. package/lib/alert/alert.d.ts +6 -6
  23. package/lib/alert/alert.less +29 -20
  24. package/lib/alert/alert.variable.css +41 -7
  25. package/lib/alert/index.d.ts +68 -48
  26. package/lib/alert/index.js +1 -1
  27. package/lib/animate-number/animate-number.d.ts +2 -2
  28. package/lib/animate-number/index.d.ts +58 -25
  29. package/lib/backtop/backtop.css +8 -0
  30. package/lib/backtop/backtop.d.ts +5 -5
  31. package/lib/backtop/backtop.less +8 -0
  32. package/lib/backtop/backtop.variable.css +40 -4
  33. package/lib/backtop/index.d.ts +67 -49
  34. package/lib/backtop/index.js +1 -1
  35. package/lib/badge/badge.css +7 -10
  36. package/lib/badge/badge.d.ts +29 -8
  37. package/lib/badge/badge.less +9 -11
  38. package/lib/badge/badge.variable.css +39 -14
  39. package/lib/badge/index.d.ts +120 -67
  40. package/lib/badge/index.js +1 -1
  41. package/lib/breadcrumb/breadcrumb-item.d.ts +5 -3
  42. package/lib/breadcrumb/breadcrumb.css +51 -0
  43. package/lib/breadcrumb/breadcrumb.d.ts +2 -2
  44. package/lib/breadcrumb/breadcrumb.variable.css +88 -9
  45. package/lib/breadcrumb/index.d.ts +65 -41
  46. package/lib/breadcrumb/index.js +1 -1
  47. package/lib/button/button-group.d.ts +4 -4
  48. package/lib/button/button.css +85 -50
  49. package/lib/button/button.d.ts +47 -27
  50. package/lib/button/button.less +72 -42
  51. package/lib/button/button.variable.css +117 -54
  52. package/lib/button/index.d.ts +123 -87
  53. package/lib/button/index.js +1 -1
  54. package/lib/card/card.css +97 -2
  55. package/lib/card/card.d.ts +48 -7
  56. package/lib/card/card.less +50 -2
  57. package/lib/card/card.variable.css +133 -10
  58. package/lib/card/index.d.ts +153 -58
  59. package/lib/card/index.js +1 -1
  60. package/lib/cascader/cascader-panel.d.ts +102 -0
  61. package/lib/cascader/cascader.css +316 -0
  62. package/lib/cascader/cascader.d.ts +354 -0
  63. package/lib/cascader/cascader.less +283 -0
  64. package/lib/cascader/cascader.variable.css +438 -0
  65. package/lib/cascader/index.d.ts +923 -0
  66. package/lib/cascader/index.js +2 -0
  67. package/lib/cascader/index.js.LICENSE.txt +1 -0
  68. package/lib/cascader/interface.d.ts +51 -0
  69. package/lib/cascader/node.d.ts +31 -0
  70. package/lib/cascader/store.d.ts +27 -0
  71. package/lib/checkbox/checkbox-group.d.ts +18 -2
  72. package/lib/checkbox/checkbox.css +40 -12
  73. package/lib/checkbox/checkbox.d.ts +33 -15
  74. package/lib/checkbox/checkbox.less +70 -34
  75. package/lib/checkbox/checkbox.variable.css +72 -16
  76. package/lib/checkbox/common.d.ts +1 -0
  77. package/lib/checkbox/index.d.ts +113 -61
  78. package/lib/checkbox/index.js +1 -1
  79. package/lib/checkbox/type.d.ts +1 -1
  80. package/lib/code-diff/code-diff.css +27 -7
  81. package/lib/code-diff/code-diff.d.ts +7 -7
  82. package/lib/code-diff/code-diff.less +42 -7
  83. package/lib/code-diff/code-diff.variable.css +59 -11
  84. package/lib/code-diff/index.d.ts +30 -43
  85. package/lib/code-diff/index.js +1 -1
  86. package/lib/collapse/collapse-panel.d.ts +103 -0
  87. package/lib/collapse/collapse.css +69 -14
  88. package/lib/collapse/collapse.d.ts +67 -53
  89. package/lib/collapse/collapse.less +112 -30
  90. package/lib/collapse/collapse.variable.css +191 -14
  91. package/lib/collapse/index.d.ts +292 -52
  92. package/lib/collapse/index.js +1 -1
  93. package/lib/collapse/props.d.ts +131 -0
  94. package/lib/collapse/utils.d.ts +11 -0
  95. package/lib/collapse-transition/collapse-transition.css +93 -0
  96. package/lib/collapse-transition/collapse-transition.d.ts +15 -0
  97. package/lib/collapse-transition/collapse-transition.less +111 -0
  98. package/lib/collapse-transition/collapse-transition.variable.css +215 -0
  99. package/lib/collapse-transition/index.d.ts +2 -0
  100. package/lib/collapse-transition/index.js +1 -0
  101. package/lib/color-picker/color-picker.css +275 -0
  102. package/lib/color-picker/color-picker.d.ts +144 -0
  103. package/lib/color-picker/color-picker.less +325 -0
  104. package/lib/color-picker/color-picker.variable.css +397 -0
  105. package/lib/color-picker/components/color-input.d.ts +42 -0
  106. package/lib/color-picker/components/hue-slider.d.ts +41 -0
  107. package/lib/color-picker/components/input-container.d.ts +42 -0
  108. package/lib/color-picker/components/recommend-colors.d.ts +51 -0
  109. package/lib/color-picker/components/saturation-panel.d.ts +41 -0
  110. package/lib/color-picker/index.d.ts +255 -0
  111. package/lib/color-picker/index.js +1 -0
  112. package/lib/color-picker/utils.d.ts +37 -0
  113. package/lib/components.d.ts +31 -8
  114. package/lib/components.js +1 -0
  115. package/lib/config-provider/config-provider.css +0 -0
  116. package/lib/config-provider/config-provider.d.ts +402 -0
  117. package/lib/config-provider/config-provider.less +1 -0
  118. package/lib/config-provider/config-provider.variable.css +122 -0
  119. package/lib/config-provider/index.d.ts +646 -0
  120. package/lib/config-provider/index.js +1 -0
  121. package/lib/config-provider/token.d.ts +128 -0
  122. package/lib/config-provider/use-global-config.d.ts +5 -0
  123. package/lib/config-provider/use-locale.d.ts +3 -0
  124. package/lib/config-provider/use-prefix.d.ts +9 -0
  125. package/lib/container/col.d.ts +51 -0
  126. package/lib/container/container.css +91 -0
  127. package/lib/container/container.d.ts +83 -0
  128. package/lib/container/container.less +20 -0
  129. package/lib/container/container.variable.css +213 -0
  130. package/lib/container/index.d.ts +204 -0
  131. package/lib/container/index.js +1 -0
  132. package/lib/container/interface.d.ts +7 -0
  133. package/lib/container/row.d.ts +4 -0
  134. package/lib/date-picker/base/confirm.d.ts +74 -0
  135. package/lib/date-picker/base/date-table.d.ts +96 -0
  136. package/lib/date-picker/base/month-table.d.ts +117 -0
  137. package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
  138. package/lib/date-picker/base/time-spinner.d.ts +170 -0
  139. package/lib/date-picker/base/year-table.d.ts +117 -0
  140. package/lib/date-picker/date-picker.css +31 -1
  141. package/lib/date-picker/date-picker.d.ts +73 -35
  142. package/lib/date-picker/date-picker.less +110 -74
  143. package/lib/date-picker/date-picker.variable.css +63 -5
  144. package/lib/date-picker/index.d.ts +231 -211
  145. package/lib/date-picker/index.js +1 -1
  146. package/lib/date-picker/interface.d.ts +20 -10
  147. package/lib/date-picker/panel/date-range.d.ts +345 -0
  148. package/lib/date-picker/panel/date.d.ts +206 -0
  149. package/lib/date-picker/panel/time-range.d.ts +495 -0
  150. package/lib/date-picker/panel/time.d.ts +451 -0
  151. package/lib/date-picker/props.d.ts +55 -5
  152. package/lib/date-picker/time-picker.d.ts +390 -0
  153. package/lib/date-picker/utils.d.ts +22 -2
  154. package/lib/dialog/dialog.css +135 -26
  155. package/lib/dialog/dialog.d.ts +219 -104
  156. package/lib/dialog/dialog.less +99 -41
  157. package/lib/dialog/dialog.variable.css +257 -26
  158. package/lib/dialog/index.d.ts +467 -276
  159. package/lib/dialog/index.js +2 -1
  160. package/lib/dialog/index.js.LICENSE.txt +1 -0
  161. package/lib/dialog/props.d.ts +122 -0
  162. package/lib/directives/ellipsis.d.ts +7 -0
  163. package/lib/directives/index.d.ts +2 -0
  164. package/lib/directives/index.js +1 -1
  165. package/lib/directives/tooltips.d.ts +2 -1
  166. package/lib/dist.index.js +1 -0
  167. package/lib/divider/divider.d.ts +17 -17
  168. package/lib/divider/divider.variable.css +32 -4
  169. package/lib/divider/index.d.ts +85 -61
  170. package/lib/divider/index.js +1 -1
  171. package/lib/divider/props.d.ts +6 -6
  172. package/lib/dropdown/dropdown-item.d.ts +1 -1
  173. package/lib/dropdown/dropdown-menu.d.ts +2 -2
  174. package/lib/dropdown/dropdown.css +38 -7
  175. package/lib/dropdown/dropdown.d.ts +47 -15
  176. package/lib/dropdown/dropdown.less +48 -34
  177. package/lib/dropdown/dropdown.variable.css +70 -11
  178. package/lib/dropdown/index.d.ts +141 -65
  179. package/lib/dropdown/index.js +1 -1
  180. package/lib/exception/exception.css +40 -14
  181. package/lib/exception/exception.d.ts +33 -13
  182. package/lib/exception/exception.less +59 -22
  183. package/lib/exception/exception.variable.css +72 -18
  184. package/lib/exception/index.d.ts +91 -43
  185. package/lib/exception/index.js +1 -1
  186. package/lib/exception/typings/index.d.ts +4 -0
  187. package/lib/fixed-navbar/fixed-navbar.d.ts +17 -3
  188. package/lib/fixed-navbar/fixed-navbar.variable.css +32 -4
  189. package/lib/fixed-navbar/index.d.ts +89 -30
  190. package/lib/fixed-navbar/index.js +1 -1
  191. package/lib/form/compose-form-item.d.ts +2 -2
  192. package/lib/form/form-item.d.ts +25 -10
  193. package/lib/form/form.css +34 -7
  194. package/lib/form/form.d.ts +50 -16
  195. package/lib/form/form.less +83 -51
  196. package/lib/form/form.variable.css +66 -11
  197. package/lib/form/index.d.ts +154 -61
  198. package/lib/form/index.js +1 -1
  199. package/lib/form/type.d.ts +11 -8
  200. package/lib/form/utils.d.ts +2 -0
  201. package/lib/form/validator.d.ts +1 -0
  202. package/lib/hooks.d.ts +1 -0
  203. package/lib/hooks.js +1 -0
  204. package/lib/icon/angle-double-down-line.js +1 -1
  205. package/lib/icon/angle-double-left-line.js +1 -1
  206. package/lib/icon/angle-double-left.js +1 -1
  207. package/lib/icon/angle-double-right-line.js +1 -1
  208. package/lib/icon/angle-double-right.js +1 -1
  209. package/lib/icon/angle-double-up-line.js +1 -1
  210. package/lib/icon/angle-down-fill.js +1 -1
  211. package/lib/icon/angle-down-line.js +1 -1
  212. package/lib/icon/angle-down.js +1 -1
  213. package/lib/icon/angle-left.js +1 -1
  214. package/lib/icon/angle-right.js +1 -1
  215. package/lib/icon/angle-up-fill.js +1 -1
  216. package/lib/icon/angle-up.js +1 -1
  217. package/lib/icon/archive-fill.d.ts +4 -0
  218. package/lib/icon/archive-fill.js +1 -0
  219. package/lib/icon/arrows-left.js +1 -1
  220. package/lib/icon/arrows-right.js +1 -1
  221. package/lib/icon/audio-fill.d.ts +4 -0
  222. package/lib/icon/audio-fill.js +1 -0
  223. package/lib/icon/bk.js +1 -1
  224. package/lib/icon/circle.js +1 -1
  225. package/lib/icon/close-line.d.ts +4 -0
  226. package/lib/icon/close-line.js +1 -0
  227. package/lib/icon/close.js +1 -1
  228. package/lib/icon/code.js +1 -1
  229. package/lib/icon/cog-shape.js +1 -1
  230. package/lib/icon/collapse-left.js +1 -1
  231. package/lib/icon/copy-shape.d.ts +4 -0
  232. package/lib/icon/copy-shape.js +1 -0
  233. package/lib/icon/copy.js +1 -1
  234. package/lib/icon/data-shape.d.ts +4 -0
  235. package/lib/icon/data-shape.js +1 -0
  236. package/lib/icon/del.d.ts +4 -0
  237. package/lib/icon/del.js +1 -0
  238. package/lib/icon/doc-fill.d.ts +4 -0
  239. package/lib/icon/doc-fill.js +1 -0
  240. package/lib/icon/done.js +1 -1
  241. package/lib/icon/down-shape.js +1 -1
  242. package/lib/icon/down-small.js +1 -1
  243. package/lib/icon/edit-line.d.ts +4 -0
  244. package/lib/icon/edit-line.js +1 -0
  245. package/lib/icon/ellipsis.js +1 -1
  246. package/lib/icon/enlarge-line.d.ts +4 -0
  247. package/lib/icon/enlarge-line.js +1 -0
  248. package/lib/icon/error.js +1 -1
  249. package/lib/icon/excel-fill.d.ts +4 -0
  250. package/lib/icon/excel-fill.js +1 -0
  251. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  252. package/lib/icon/exclamation-circle-shape.js +1 -0
  253. package/lib/icon/eye.js +1 -1
  254. package/lib/icon/filliscreen-line.d.ts +4 -0
  255. package/lib/icon/filliscreen-line.js +1 -0
  256. package/lib/icon/fix-line.d.ts +4 -0
  257. package/lib/icon/fix-line.js +1 -0
  258. package/lib/icon/fix-shape.d.ts +4 -0
  259. package/lib/icon/fix-shape.js +1 -0
  260. package/lib/icon/folder-open.js +1 -1
  261. package/lib/icon/folder-shape-open.js +1 -1
  262. package/lib/icon/folder-shape.js +1 -1
  263. package/lib/icon/folder.js +1 -1
  264. package/lib/icon/funnel.js +1 -1
  265. package/lib/icon/help-document-fill.js +1 -1
  266. package/lib/icon/help-fill.js +1 -1
  267. package/lib/icon/help.js +1 -1
  268. package/lib/icon/image-fill.d.ts +4 -0
  269. package/lib/icon/image-fill.js +1 -0
  270. package/lib/icon/img-error.d.ts +4 -0
  271. package/lib/icon/img-error.js +1 -0
  272. package/lib/icon/img-placehoulder.d.ts +4 -0
  273. package/lib/icon/img-placehoulder.js +1 -0
  274. package/lib/icon/index.d.ts +83 -54
  275. package/lib/icon/index.js +1 -1
  276. package/lib/icon/info-line.js +1 -1
  277. package/lib/icon/info.js +1 -1
  278. package/lib/icon/left-shape.js +1 -1
  279. package/lib/icon/left-turn-line.d.ts +4 -0
  280. package/lib/icon/left-turn-line.js +1 -0
  281. package/lib/icon/narrow-line.d.ts +4 -0
  282. package/lib/icon/narrow-line.js +1 -0
  283. package/lib/icon/original.d.ts +4 -0
  284. package/lib/icon/original.js +1 -0
  285. package/lib/icon/pdf-fill.d.ts +4 -0
  286. package/lib/icon/pdf-fill.js +1 -0
  287. package/lib/icon/play-shape.js +1 -1
  288. package/lib/icon/plus.js +1 -1
  289. package/lib/icon/ppt-fill.d.ts +4 -0
  290. package/lib/icon/ppt-fill.js +1 -0
  291. package/lib/icon/qq.js +1 -1
  292. package/lib/icon/right-shape.js +1 -1
  293. package/lib/icon/right-turn-line.d.ts +4 -0
  294. package/lib/icon/right-turn-line.js +1 -0
  295. package/lib/icon/search.js +1 -1
  296. package/lib/icon/share.js +1 -1
  297. package/lib/icon/spinner.js +1 -1
  298. package/lib/icon/success.js +1 -1
  299. package/lib/icon/switcher-loading.js +1 -1
  300. package/lib/icon/text-file.js +1 -1
  301. package/lib/icon/text-fill.d.ts +4 -0
  302. package/lib/icon/text-fill.js +1 -0
  303. package/lib/icon/transfer.d.ts +4 -0
  304. package/lib/icon/transfer.js +1 -0
  305. package/lib/icon/tree-application-shape.js +1 -1
  306. package/lib/icon/unfull-screen.d.ts +4 -0
  307. package/lib/icon/unfull-screen.js +1 -0
  308. package/lib/icon/unvisible.js +1 -1
  309. package/lib/icon/up-shape.js +1 -1
  310. package/lib/icon/upload.d.ts +4 -0
  311. package/lib/icon/upload.js +1 -0
  312. package/lib/icon/video-fill.d.ts +4 -0
  313. package/lib/icon/video-fill.js +1 -0
  314. package/lib/icon/warn.js +1 -1
  315. package/lib/icon/weixin-pro.d.ts +4 -0
  316. package/lib/icon/weixin-pro.js +1 -0
  317. package/lib/icon/weixin.js +1 -1
  318. package/lib/image/image-viewer.css +142 -0
  319. package/lib/image/image-viewer.d.ts +73 -0
  320. package/lib/image/image-viewer.less +168 -0
  321. package/lib/image/image-viewer.variable.css +142 -0
  322. package/lib/image/image.css +37 -0
  323. package/lib/image/image.d.ts +93 -0
  324. package/lib/image/image.less +44 -0
  325. package/lib/image/image.variable.css +37 -0
  326. package/lib/image/index.d.ts +252 -0
  327. package/lib/image/index.js +1 -0
  328. package/lib/image/props.d.ts +71 -0
  329. package/lib/index.d.ts +3 -1
  330. package/lib/index.js +1 -0
  331. package/lib/info-box/index.d.ts +7 -0
  332. package/lib/info-box/index.js +2 -0
  333. package/lib/info-box/index.js.LICENSE.txt +1 -0
  334. package/lib/info-box/info-box.css +37 -0
  335. package/lib/info-box/info-box.d.ts +29 -0
  336. package/lib/info-box/info-box.less +51 -0
  337. package/lib/info-box/info-box.variable.css +159 -0
  338. package/lib/input/index.d.ts +228 -180
  339. package/lib/input/index.js +1 -1
  340. package/lib/input/input.css +183 -19
  341. package/lib/input/input.d.ts +121 -38
  342. package/lib/input/input.less +112 -18
  343. package/lib/input/input.variable.css +246 -55
  344. package/lib/link/index.d.ts +82 -55
  345. package/lib/link/index.js +1 -1
  346. package/lib/link/link.css +12 -12
  347. package/lib/link/link.d.ts +11 -9
  348. package/lib/link/link.less +16 -14
  349. package/lib/link/link.variable.css +44 -16
  350. package/lib/loading/directive.d.ts +14 -0
  351. package/lib/loading/index.d.ts +166 -54
  352. package/lib/loading/index.js +1 -1
  353. package/lib/loading/loading.css +86 -33
  354. package/lib/loading/loading.d.ts +97 -15
  355. package/lib/loading/loading.less +27 -23
  356. package/lib/loading/loading.variable.css +134 -53
  357. package/lib/locale/index.d.ts +3 -0
  358. package/lib/locale/index.js +1 -0
  359. package/lib/locale/lang/en.d.ts +126 -0
  360. package/lib/locale/lang/zh-cn.d.ts +3 -0
  361. package/lib/menu/index.d.ts +81 -52
  362. package/lib/menu/index.js +1 -1
  363. package/lib/menu/menu-group.d.ts +2 -2
  364. package/lib/menu/menu-item.d.ts +5 -1
  365. package/lib/menu/menu.css +51 -0
  366. package/lib/menu/menu.d.ts +8 -17
  367. package/lib/menu/menu.variable.css +101 -22
  368. package/lib/menu/submenu.d.ts +5 -1
  369. package/lib/menu/submenu.variable.css +32 -4
  370. package/lib/menu/utils.d.ts +1 -1
  371. package/lib/message/index.js +2 -1
  372. package/lib/message/index.js.LICENSE.txt +6 -0
  373. package/lib/message/message.css +170 -6
  374. package/lib/message/message.less +222 -7
  375. package/lib/message/message.variable.css +202 -10
  376. package/lib/message/messageConstructor.d.ts +136 -27
  377. package/lib/modal/index.d.ts +399 -201
  378. package/lib/modal/index.js +1 -1
  379. package/lib/modal/modal.css +52 -10
  380. package/lib/modal/modal.d.ts +152 -64
  381. package/lib/modal/modal.less +36 -25
  382. package/lib/modal/modal.variable.css +174 -10
  383. package/lib/modal/props.mixin.d.ts +63 -28
  384. package/lib/navigation/index.d.ts +329 -1
  385. package/lib/navigation/index.js +1 -1
  386. package/lib/navigation/navigation-title.d.ts +6 -3
  387. package/lib/navigation/navigation.css +1 -1
  388. package/lib/navigation/navigation.d.ts +21 -5
  389. package/lib/navigation/navigation.less +1 -1
  390. package/lib/navigation/navigation.variable.css +33 -5
  391. package/lib/notify/index.js +1 -1
  392. package/lib/notify/notify.css +25 -5
  393. package/lib/notify/notify.less +29 -6
  394. package/lib/notify/notify.variable.css +57 -9
  395. package/lib/notify/notifyConstructor.d.ts +63 -22
  396. package/lib/overflow-title/components/overflow-title.d.ts +57 -0
  397. package/lib/overflow-title/directive/overflow-title.d.ts +3 -0
  398. package/lib/overflow-title/index.d.ts +195 -0
  399. package/lib/overflow-title/index.js +1 -0
  400. package/lib/overflow-title/overflow.css +11 -0
  401. package/lib/overflow-title/overflow.less +13 -0
  402. package/lib/overflow-title/overflow.variable.css +11 -0
  403. package/lib/overflow-title/props.d.ts +43 -0
  404. package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
  405. package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
  406. package/lib/pagination/index.d.ts +92 -96
  407. package/lib/pagination/index.js +1 -1
  408. package/lib/pagination/pagination.css +54 -28
  409. package/lib/pagination/pagination.d.ts +19 -9
  410. package/lib/pagination/pagination.less +59 -30
  411. package/lib/pagination/pagination.variable.css +86 -32
  412. package/lib/pagination/type.d.ts +1 -1
  413. package/lib/pagination/use-limit.d.ts +3 -1
  414. package/lib/pagination/use-total.d.ts +3 -1
  415. package/lib/plugin-popover/index.d.ts +27 -0
  416. package/lib/plugin-popover/index.js +1 -0
  417. package/lib/plugins/index.d.ts +1 -0
  418. package/lib/plugins/index.js +1 -0
  419. package/lib/pop-confirm/index.d.ts +249 -0
  420. package/lib/pop-confirm/index.js +1 -0
  421. package/lib/pop-confirm/pop-confirm.css +28 -0
  422. package/lib/pop-confirm/pop-confirm.d.ts +95 -0
  423. package/lib/pop-confirm/pop-confirm.less +34 -0
  424. package/lib/pop-confirm/pop-confirm.variable.css +150 -0
  425. package/lib/pop-confirm/props.d.ts +67 -0
  426. package/lib/popover/arrow.d.ts +2 -0
  427. package/lib/popover/const.d.ts +16 -0
  428. package/lib/popover/content.d.ts +43 -0
  429. package/lib/popover/index.d.ts +453 -148
  430. package/lib/popover/index.js +1 -1
  431. package/lib/popover/plugin-popover.d.ts +12 -0
  432. package/lib/popover/popover.css +10 -50
  433. package/lib/popover/popover.d.ts +212 -48
  434. package/lib/popover/popover.less +19 -66
  435. package/lib/popover/popover.variable.css +42 -54
  436. package/lib/popover/props.d.ts +103 -35
  437. package/lib/popover/reference.d.ts +2 -0
  438. package/lib/popover/root.d.ts +27 -0
  439. package/lib/popover/use-floating.d.ts +34 -0
  440. package/lib/popover/use-platform.d.ts +30 -0
  441. package/lib/popover/use-popover-init.d.ts +23 -0
  442. package/lib/popover/use-popper-id.d.ts +6 -0
  443. package/lib/popover/utils.d.ts +8 -0
  444. package/lib/popover2/index.d.ts +89 -0
  445. package/lib/popover2/index.js +1 -0
  446. package/lib/popover2/popover.d.ts +2 -0
  447. package/lib/preset.d.ts +264 -2
  448. package/lib/preset.js +1 -0
  449. package/lib/process/index.d.ts +66 -52
  450. package/lib/process/index.js +2 -1
  451. package/lib/process/index.js.LICENSE.txt +1 -0
  452. package/lib/process/process.css +22 -0
  453. package/lib/process/process.d.ts +4 -4
  454. package/lib/process/process.less +30 -2
  455. package/lib/process/process.variable.css +54 -4
  456. package/lib/progress/index.d.ts +92 -119
  457. package/lib/progress/index.js +1 -1
  458. package/lib/progress/progress.css +51 -0
  459. package/lib/progress/progress.d.ts +14 -14
  460. package/lib/progress/progress.variable.css +87 -8
  461. package/lib/radio/index.d.ts +81 -42
  462. package/lib/radio/index.js +1 -1
  463. package/lib/radio/radio-button.d.ts +5 -7
  464. package/lib/radio/radio-group.d.ts +28 -2
  465. package/lib/radio/radio.css +136 -65
  466. package/lib/radio/radio.d.ts +2 -2
  467. package/lib/radio/radio.less +262 -173
  468. package/lib/radio/radio.variable.css +171 -72
  469. package/lib/radio/type.d.ts +1 -1
  470. package/lib/rate/index.d.ts +78 -28
  471. package/lib/rate/index.js +1 -1
  472. package/lib/rate/rate.d.ts +14 -3
  473. package/lib/rate/star.d.ts +2 -2
  474. package/lib/resize-layout/index.d.ts +77 -78
  475. package/lib/resize-layout/index.js +1 -1
  476. package/lib/resize-layout/resize-layout.css +6 -15
  477. package/lib/resize-layout/resize-layout.d.ts +8 -8
  478. package/lib/resize-layout/resize-layout.less +10 -19
  479. package/lib/resize-layout/resize-layout.variable.css +38 -19
  480. package/lib/search-select/index.d.ts +892 -0
  481. package/lib/search-select/index.js +2 -0
  482. package/lib/search-select/index.js.LICENSE.txt +1 -0
  483. package/lib/search-select/input.d.ts +101 -0
  484. package/lib/search-select/menu.d.ts +77 -0
  485. package/lib/search-select/search-select.css +427 -0
  486. package/lib/search-select/search-select.d.ts +361 -0
  487. package/lib/search-select/search-select.less +384 -0
  488. package/lib/search-select/search-select.variable.css +549 -0
  489. package/lib/search-select/selected.d.ts +155 -0
  490. package/lib/search-select/utils.d.ts +88 -0
  491. package/lib/select/common.d.ts +5 -12
  492. package/lib/select/index.d.ts +1697 -760
  493. package/lib/select/index.js +2 -1
  494. package/lib/select/index.js.LICENSE.txt +1 -0
  495. package/lib/select/option.d.ts +22 -6
  496. package/lib/select/optionGroup.d.ts +3 -3
  497. package/lib/select/select.css +209 -113
  498. package/lib/select/select.d.ts +747 -162
  499. package/lib/select/select.less +342 -197
  500. package/lib/select/select.variable.css +241 -117
  501. package/lib/select/selectTagInput.d.ts +94 -0
  502. package/lib/select/type.d.ts +25 -15
  503. package/lib/shared/dom.d.ts +3 -0
  504. package/lib/shared/helper.d.ts +9 -0
  505. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  506. package/lib/shared/hooks/use-form.d.ts +2 -0
  507. package/lib/shared/index.d.ts +33 -8
  508. package/lib/shared/index.js +1 -1
  509. package/lib/shared/mask-manager.d.ts +21 -7
  510. package/lib/shared/pop-manager.d.ts +16 -5
  511. package/lib/shared/popover.d.ts +7 -3
  512. package/lib/shared/token.d.ts +4 -0
  513. package/lib/shared/utils.d.ts +19 -0
  514. package/lib/shared/vue-types.d.ts +116 -9
  515. package/lib/sideslider/index.d.ts +294 -183
  516. package/lib/sideslider/index.js +2 -1
  517. package/lib/sideslider/index.js.LICENSE.txt +1 -0
  518. package/lib/sideslider/sideslider.css +58 -11
  519. package/lib/sideslider/sideslider.d.ts +136 -65
  520. package/lib/sideslider/sideslider.less +75 -14
  521. package/lib/sideslider/sideslider.variable.css +90 -15
  522. package/lib/slider/index.d.ts +384 -1
  523. package/lib/slider/index.js +2 -1
  524. package/lib/slider/index.js.LICENSE.txt +1 -0
  525. package/lib/slider/slider-button.d.ts +3 -2
  526. package/lib/slider/slider.d.ts +7 -7
  527. package/lib/slider/slider.variable.css +32 -4
  528. package/lib/steps/index.d.ts +102 -96
  529. package/lib/steps/index.js +2 -1
  530. package/lib/steps/index.js.LICENSE.txt +1 -0
  531. package/lib/steps/steps.css +15 -3
  532. package/lib/steps/steps.d.ts +34 -34
  533. package/lib/steps/steps.less +24 -3
  534. package/lib/steps/steps.variable.css +47 -7
  535. package/lib/styles/index.d.ts +10 -1
  536. package/lib/styles/mixins/clearfix.css +8 -0
  537. package/lib/styles/mixins/clearfix.less +10 -0
  538. package/lib/styles/mixins/clearfix.variable.css +8 -0
  539. package/lib/styles/mixins/mixins.css +51 -0
  540. package/lib/styles/mixins/mixins.less +2 -0
  541. package/lib/styles/mixins/mixins.variable.css +51 -0
  542. package/lib/styles/mixins/popper.css +1 -1
  543. package/lib/styles/mixins/popper.less +12 -11
  544. package/lib/styles/mixins/popper.variable.css +123 -1
  545. package/lib/styles/mixins/scroll.css +17 -0
  546. package/lib/styles/mixins/scroll.less +22 -0
  547. package/lib/styles/mixins/scroll.variable.css +139 -0
  548. package/lib/styles/reset.css +36 -0
  549. package/lib/styles/reset.less +26 -2
  550. package/lib/styles/reset.variable.css +36 -0
  551. package/lib/styles/themes/themes.less +42 -4
  552. package/lib/swiper/index.d.ts +60 -44
  553. package/lib/swiper/swiper.d.ts +1 -1
  554. package/lib/switcher/index.d.ts +99 -92
  555. package/lib/switcher/index.js +1 -1
  556. package/lib/switcher/switcher.css +57 -6
  557. package/lib/switcher/switcher.d.ts +20 -14
  558. package/lib/switcher/switcher.less +3 -26
  559. package/lib/switcher/switcher.variable.css +106 -27
  560. package/lib/tab/index.d.ts +170 -134
  561. package/lib/tab/index.js +1 -1
  562. package/lib/tab/props.d.ts +93 -41
  563. package/lib/tab/tab-nav.d.ts +51 -15
  564. package/lib/tab/tab-panel.d.ts +16 -9
  565. package/lib/tab/tab.css +151 -55
  566. package/lib/tab/tab.d.ts +44 -23
  567. package/lib/tab/tab.less +179 -86
  568. package/lib/tab/tab.variable.css +183 -59
  569. package/lib/table/cache.d.ts +6 -0
  570. package/lib/table/components/index.d.ts +3 -0
  571. package/lib/table/components/table-cell.d.ts +51 -0
  572. package/lib/table/components/table-column.d.ts +305 -0
  573. package/lib/table/components/table-row.d.ts +2 -0
  574. package/lib/table/const.d.ts +128 -1
  575. package/lib/table/index.d.ts +1364 -99
  576. package/lib/table/index.js +1 -1
  577. package/lib/table/plugins/body-empty.d.ts +36 -0
  578. package/lib/table/plugins/col-group.d.ts +38 -0
  579. package/lib/table/plugins/common.d.ts +6 -0
  580. package/lib/table/plugins/head-filter.css +30 -14
  581. package/lib/table/plugins/head-filter.d.ts +26 -0
  582. package/lib/table/plugins/head-filter.less +79 -52
  583. package/lib/table/plugins/head-filter.variable.css +62 -18
  584. package/lib/table/plugins/head-sort.css +7 -3
  585. package/lib/table/plugins/head-sort.d.ts +29 -0
  586. package/lib/table/plugins/head-sort.less +8 -4
  587. package/lib/table/plugins/head-sort.variable.css +39 -7
  588. package/lib/table/plugins/index.d.ts +5 -0
  589. package/lib/table/plugins/settings.css +147 -0
  590. package/lib/table/plugins/settings.d.ts +37 -0
  591. package/lib/table/plugins/settings.less +181 -0
  592. package/lib/table/plugins/settings.variable.css +269 -0
  593. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  594. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  595. package/lib/table/plugins/use-fixed-column.d.ts +26 -0
  596. package/lib/table/plugins/use-pagination.d.ts +16 -0
  597. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  598. package/lib/table/props.d.ts +367 -19
  599. package/lib/table/render.d.ts +46 -18
  600. package/lib/table/table.css +1181 -33
  601. package/lib/table/table.d.ts +270 -19
  602. package/lib/table/table.less +314 -18
  603. package/lib/table/table.variable.css +1213 -37
  604. package/lib/table/use-column.d.ts +12 -0
  605. package/lib/table/use-common.d.ts +113 -0
  606. package/lib/table/utils.d.ts +52 -12
  607. package/lib/table-column/index.d.ts +797 -0
  608. package/lib/table-column/index.js +1 -0
  609. package/lib/tag/index.d.ts +89 -71
  610. package/lib/tag/index.js +1 -1
  611. package/lib/tag/tag.css +46 -13
  612. package/lib/tag/tag.d.ts +17 -13
  613. package/lib/tag/tag.less +46 -10
  614. package/lib/tag/tag.variable.css +78 -17
  615. package/lib/tag-input/common.d.ts +13 -1
  616. package/lib/tag-input/index.d.ts +1194 -1
  617. package/lib/tag-input/index.js +1 -1
  618. package/lib/tag-input/list-tag-render.d.ts +2 -5
  619. package/lib/tag-input/tag-input.css +23 -26
  620. package/lib/tag-input/tag-input.d.ts +303 -44
  621. package/lib/tag-input/tag-input.less +103 -105
  622. package/lib/tag-input/tag-input.variable.css +55 -30
  623. package/lib/tag-input/tag-props.d.ts +142 -8
  624. package/lib/tag-input/tag-render.d.ts +31 -5
  625. package/lib/time-picker/index.d.ts +833 -0
  626. package/lib/time-picker/index.js +1 -0
  627. package/lib/time-picker/time-picker.css +215 -0
  628. package/lib/time-picker/time-picker.less +260 -0
  629. package/lib/time-picker/time-picker.variable.css +337 -0
  630. package/lib/timeline/index.d.ts +61 -32
  631. package/lib/timeline/index.js +1 -1
  632. package/lib/timeline/timeline.css +16 -9
  633. package/lib/timeline/timeline.d.ts +3 -3
  634. package/lib/timeline/timeline.less +22 -9
  635. package/lib/timeline/timeline.variable.css +48 -13
  636. package/lib/transfer/const.d.ts +5 -0
  637. package/lib/transfer/index.d.ts +273 -191
  638. package/lib/transfer/index.js +1 -1
  639. package/lib/transfer/props.d.ts +59 -0
  640. package/lib/transfer/transfer.css +153 -92
  641. package/lib/transfer/transfer.d.ts +102 -96
  642. package/lib/transfer/transfer.less +142 -112
  643. package/lib/transfer/transfer.variable.css +191 -102
  644. package/lib/tree/constant.d.ts +63 -0
  645. package/lib/tree/index.d.ts +387 -107
  646. package/lib/tree/index.js +1 -1
  647. package/lib/tree/props.d.ts +138 -3
  648. package/lib/tree/tree.css +181 -9
  649. package/lib/tree/tree.d.ts +185 -21
  650. package/lib/tree/tree.less +54 -3
  651. package/lib/tree/tree.variable.css +213 -13
  652. package/lib/tree/use-empty.d.ts +6 -0
  653. package/lib/tree/use-node-action.d.ts +12 -0
  654. package/lib/tree/use-node-async.d.ts +5 -0
  655. package/lib/tree/use-node-attribute.d.ts +42 -0
  656. package/lib/tree/use-node-drag.d.ts +3 -0
  657. package/lib/tree/use-search.d.ts +11 -0
  658. package/lib/tree/use-tree-init.d.ts +15 -0
  659. package/lib/tree/util.d.ts +4 -6
  660. package/lib/upload/index.d.ts +509 -0
  661. package/lib/upload/index.js +2 -0
  662. package/lib/upload/index.js.LICENSE.txt +1 -0
  663. package/lib/upload/props.d.ts +111 -0
  664. package/lib/upload/upload-list.d.ts +47 -0
  665. package/lib/upload/upload-trigger.d.ts +51 -0
  666. package/lib/upload/upload.css +427 -0
  667. package/lib/upload/upload.d.ts +246 -0
  668. package/lib/upload/upload.less +466 -0
  669. package/lib/upload/upload.type.d.ts +78 -0
  670. package/lib/upload/upload.variable.css +549 -0
  671. package/lib/upload/use-ajax-upload.d.ts +3 -0
  672. package/lib/upload/use-file-handler.d.ts +21 -0
  673. package/lib/virtual-render/index.d.ts +117 -144
  674. package/lib/virtual-render/index.js +1 -1
  675. package/lib/virtual-render/props.d.ts +25 -1
  676. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  677. package/lib/virtual-render/v-virtual-render.d.ts +0 -1
  678. package/lib/virtual-render/virtual-render.css +17 -17
  679. package/lib/virtual-render/virtual-render.d.ts +50 -4
  680. package/lib/virtual-render/virtual-render.less +2 -23
  681. package/lib/virtual-render/virtual-render.variable.css +139 -17
  682. package/lib/volar.components.d.ts +102 -0
  683. package/package.json +64 -43
  684. package/LICENSE.txt +0 -22
  685. package/lib/form/common.d.ts +0 -3
  686. package/lib/use-form.d.ts +0 -3
@@ -27,71 +27,67 @@ declare const Transfer: {
27
27
  new (...args: any[]): {
28
28
  $: import("vue").ComponentInternalInstance;
29
29
  $data: {};
30
- $props: Partial<{
31
- title: string[];
32
- extCls: string;
33
- displayKey: string;
34
- sortable: boolean;
35
- settingKey: string;
36
- searchPlaceholder: string;
37
- showOverflowTips: boolean;
38
- searchable: boolean;
39
- sortKey: string;
40
- sourceList: unknown[];
41
- targetList: unknown[];
42
- emptyContent: string[];
43
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
44
- title: {
45
- type: import("vue").PropType<string[]>;
46
- default: () => any[];
47
- };
48
- extCls: {
49
- type: StringConstructor;
50
- default: string;
51
- };
52
- searchPlaceholder: {
53
- type: StringConstructor;
54
- default: string;
55
- };
56
- settingKey: {
57
- type: StringConstructor;
58
- default: string;
59
- };
60
- displayKey: {
61
- type: StringConstructor;
62
- default: string;
63
- };
64
- sortKey: {
65
- type: StringConstructor;
66
- default: string;
67
- };
68
- showOverflowTips: {
69
- type: BooleanConstructor;
70
- default: boolean;
71
- };
72
- searchable: {
73
- type: BooleanConstructor;
74
- default: boolean;
75
- };
76
- sortable: {
77
- type: BooleanConstructor;
78
- default: boolean;
79
- };
80
- sourceList: {
81
- type: ArrayConstructor;
82
- default: () => any[];
83
- };
84
- targetList: {
85
- type: ArrayConstructor;
86
- default: () => any[];
87
- };
88
- emptyContent: {
89
- type: import("vue").PropType<string[]>;
90
- default: () => any[];
91
- };
92
- }>> & {
30
+ $props: {
31
+ title?: string[];
32
+ extCls?: string;
33
+ multiple?: boolean;
34
+ displayKey?: string;
35
+ searchPlaceholder?: string;
36
+ sortable?: boolean;
37
+ settingKey?: string;
38
+ sortKey?: string;
39
+ showOverflowTips?: boolean;
40
+ searchable?: boolean;
41
+ sourceList?: any[];
42
+ targetList?: any[];
43
+ emptyContent?: string[];
44
+ class?: unknown;
45
+ style?: unknown;
93
46
  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">;
47
+ key?: string | number | symbol;
48
+ ref?: import("vue").VNodeRef;
49
+ ref_for?: boolean;
50
+ ref_key?: string;
51
+ onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
52
+ [key: string]: any;
53
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
54
+ [key: string]: any;
55
+ }>) => void)[];
56
+ onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
57
+ [key: string]: any;
58
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
59
+ [key: string]: any;
60
+ }>) => void)[];
61
+ onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
62
+ [key: string]: any;
63
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
64
+ [key: string]: any;
65
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
66
+ [key: string]: any;
67
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
68
+ [key: string]: any;
69
+ }>) => void)[];
70
+ onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
71
+ [key: string]: any;
72
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
73
+ [key: string]: any;
74
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
75
+ [key: string]: any;
76
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
77
+ [key: string]: any;
78
+ }>) => void)[];
79
+ onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
80
+ [key: string]: any;
81
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
82
+ [key: string]: any;
83
+ }>) => void)[];
84
+ onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
85
+ [key: string]: any;
86
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
87
+ [key: string]: any;
88
+ }>) => void)[];
89
+ "onUpdate:targetList"?: (...args: any[]) => any;
90
+ };
95
91
  $attrs: {
96
92
  [x: string]: unknown;
97
93
  };
@@ -99,90 +95,119 @@ declare const Transfer: {
99
95
  [x: string]: unknown;
100
96
  };
101
97
  $slots: Readonly<{
102
- [name: string]: import("vue").Slot;
98
+ [name: string]: import("vue").Slot<any>;
103
99
  }>;
104
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
105
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
106
- $emit: (event: "change", ...args: any[]) => void;
100
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
101
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
102
+ $emit: (event: "change" | "update:targetList", ...args: any[]) => void;
107
103
  $el: any;
108
104
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
109
- title: {
110
- type: import("vue").PropType<string[]>;
111
- default: () => any[];
105
+ title: import("vue-types").VueTypeDef<string[]> & {
106
+ default: () => string[];
112
107
  };
113
- extCls: {
114
- type: StringConstructor;
108
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
109
+ default: string;
110
+ } & {
115
111
  default: string;
116
112
  };
117
- searchPlaceholder: {
118
- type: StringConstructor;
113
+ searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
114
+ default: string;
115
+ } & {
119
116
  default: string;
120
117
  };
121
- settingKey: {
122
- type: StringConstructor;
118
+ settingKey: import("vue-types").VueTypeValidableDef<string> & {
119
+ default: string;
120
+ } & {
123
121
  default: string;
124
122
  };
125
- displayKey: {
126
- type: StringConstructor;
123
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
124
+ default: string;
125
+ } & {
127
126
  default: string;
128
127
  };
129
- sortKey: {
130
- type: StringConstructor;
128
+ sortKey: import("vue-types").VueTypeValidableDef<string> & {
129
+ default: string;
130
+ } & {
131
131
  default: string;
132
132
  };
133
- showOverflowTips: {
134
- type: BooleanConstructor;
133
+ showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
134
+ default: boolean;
135
+ } & {
135
136
  default: boolean;
136
137
  };
137
- searchable: {
138
- type: BooleanConstructor;
138
+ searchable: import("vue-types").VueTypeValidableDef<boolean> & {
139
+ default: boolean;
140
+ } & {
139
141
  default: boolean;
140
142
  };
141
- sortable: {
142
- type: BooleanConstructor;
143
+ sortable: import("vue-types").VueTypeValidableDef<boolean> & {
144
+ default: boolean;
145
+ } & {
143
146
  default: boolean;
144
147
  };
145
- sourceList: {
146
- type: ArrayConstructor;
148
+ sourceList: import("vue-types").VueTypeDef<any[]> & {
147
149
  default: () => any[];
148
150
  };
149
- targetList: {
150
- type: ArrayConstructor;
151
+ targetList: import("vue-types").VueTypeDef<any[]> & {
151
152
  default: () => any[];
152
153
  };
153
- emptyContent: {
154
- type: import("vue").PropType<string[]>;
155
- default: () => any[];
154
+ emptyContent: import("vue-types").VueTypeDef<string[]> & {
155
+ default: () => string[];
156
+ };
157
+ multiple: import("vue-types").VueTypeValidableDef<boolean> & {
158
+ default: boolean;
159
+ } & {
160
+ default: boolean;
156
161
  };
157
162
  }>> & {
158
163
  onChange?: (...args: any[]) => any;
164
+ "onUpdate:targetList"?: (...args: any[]) => any;
159
165
  }, {
160
- keyword: import("vue").Ref<string>;
161
- transferRef: any;
162
- dataList: import("vue").Ref<any[]>;
166
+ selectSearchQuery: import("vue").Ref<string>;
167
+ selectListSearch: import("vue").ComputedRef<any>;
168
+ selectedList: import("vue").Ref<any[]>;
169
+ selectListSort: import("vue").ComputedRef<any[]>;
170
+ selectedListSort: import("vue").ComputedRef<any[]>;
171
+ settingCode: import("vue").ComputedRef<string>;
172
+ displayCode: import("vue").ComputedRef<string>;
163
173
  allToRight: () => void;
164
174
  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, {
175
+ handleItemClick: (item: any, isLeft: any) => void;
176
+ t: import("vue").ComputedRef<{
177
+ sourceList: string;
178
+ targetList: string;
179
+ removeAll: string;
180
+ selectAll: string;
181
+ noData: string;
182
+ noSelected: string;
183
+ search: string;
184
+ }>;
185
+ handleAllChecked: (value: any, dirct: any) => void;
186
+ multipleSelectAllValue: import("vue").Ref<{
187
+ source: boolean;
188
+ target: boolean;
189
+ }>;
190
+ multipleSelectList: import("vue").Ref<{
191
+ source: any[];
192
+ target: any[];
193
+ }>;
194
+ handleMultipleChange: (dirct: any) => void;
195
+ handleItemChecked: (dirct: any) => void;
196
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:targetList")[], string, {
173
197
  title: string[];
174
198
  extCls: string;
199
+ multiple: boolean;
175
200
  displayKey: string;
201
+ searchPlaceholder: string;
176
202
  sortable: boolean;
177
203
  settingKey: string;
178
- searchPlaceholder: string;
204
+ sortKey: string;
179
205
  showOverflowTips: boolean;
180
206
  searchable: boolean;
181
- sortKey: string;
182
- sourceList: unknown[];
183
- targetList: unknown[];
207
+ sourceList: any[];
208
+ targetList: any[];
184
209
  emptyContent: string[];
185
- }> & {
210
+ }, {}, string, {}> & {
186
211
  beforeCreate?: (() => void) | (() => void)[];
187
212
  created?: (() => void) | (() => void)[];
188
213
  beforeMount?: (() => void) | (() => void)[];
@@ -197,155 +222,212 @@ declare const Transfer: {
197
222
  unmounted?: (() => void) | (() => void)[];
198
223
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
199
224
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
200
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
225
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
201
226
  };
202
227
  $forceUpdate: () => void;
203
228
  $nextTick: typeof import("vue").nextTick;
204
- $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
229
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
205
230
  } & Readonly<import("vue").ExtractPropTypes<{
206
- title: {
207
- type: import("vue").PropType<string[]>;
208
- default: () => any[];
231
+ title: import("vue-types").VueTypeDef<string[]> & {
232
+ default: () => string[];
209
233
  };
210
- extCls: {
211
- type: StringConstructor;
234
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
235
+ default: string;
236
+ } & {
212
237
  default: string;
213
238
  };
214
- searchPlaceholder: {
215
- type: StringConstructor;
239
+ searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
240
+ default: string;
241
+ } & {
216
242
  default: string;
217
243
  };
218
- settingKey: {
219
- type: StringConstructor;
244
+ settingKey: import("vue-types").VueTypeValidableDef<string> & {
245
+ default: string;
246
+ } & {
220
247
  default: string;
221
248
  };
222
- displayKey: {
223
- type: StringConstructor;
249
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
250
+ default: string;
251
+ } & {
224
252
  default: string;
225
253
  };
226
- sortKey: {
227
- type: StringConstructor;
254
+ sortKey: import("vue-types").VueTypeValidableDef<string> & {
255
+ default: string;
256
+ } & {
228
257
  default: string;
229
258
  };
230
- showOverflowTips: {
231
- type: BooleanConstructor;
259
+ showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
260
+ default: boolean;
261
+ } & {
232
262
  default: boolean;
233
263
  };
234
- searchable: {
235
- type: BooleanConstructor;
264
+ searchable: import("vue-types").VueTypeValidableDef<boolean> & {
265
+ default: boolean;
266
+ } & {
236
267
  default: boolean;
237
268
  };
238
- sortable: {
239
- type: BooleanConstructor;
269
+ sortable: import("vue-types").VueTypeValidableDef<boolean> & {
270
+ default: boolean;
271
+ } & {
240
272
  default: boolean;
241
273
  };
242
- sourceList: {
243
- type: ArrayConstructor;
274
+ sourceList: import("vue-types").VueTypeDef<any[]> & {
244
275
  default: () => any[];
245
276
  };
246
- targetList: {
247
- type: ArrayConstructor;
277
+ targetList: import("vue-types").VueTypeDef<any[]> & {
248
278
  default: () => any[];
249
279
  };
250
- emptyContent: {
251
- type: import("vue").PropType<string[]>;
252
- default: () => any[];
280
+ emptyContent: import("vue-types").VueTypeDef<string[]> & {
281
+ default: () => string[];
282
+ };
283
+ multiple: import("vue-types").VueTypeValidableDef<boolean> & {
284
+ default: boolean;
285
+ } & {
286
+ default: boolean;
253
287
  };
254
288
  }>> & {
255
289
  onChange?: (...args: any[]) => any;
290
+ "onUpdate:targetList"?: (...args: any[]) => any;
256
291
  } & import("vue").ShallowUnwrapRef<{
257
- keyword: import("vue").Ref<string>;
258
- transferRef: any;
259
- dataList: import("vue").Ref<any[]>;
292
+ selectSearchQuery: import("vue").Ref<string>;
293
+ selectListSearch: import("vue").ComputedRef<any>;
294
+ selectedList: import("vue").Ref<any[]>;
295
+ selectListSort: import("vue").ComputedRef<any[]>;
296
+ selectedListSort: import("vue").ComputedRef<any[]>;
297
+ settingCode: import("vue").ComputedRef<string>;
298
+ displayCode: import("vue").ComputedRef<string>;
260
299
  allToRight: () => void;
261
300
  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[]>;
269
- }> & {} & {} & import("vue").ComponentCustomProperties;
301
+ handleItemClick: (item: any, isLeft: any) => void;
302
+ t: import("vue").ComputedRef<{
303
+ sourceList: string;
304
+ targetList: string;
305
+ removeAll: string;
306
+ selectAll: string;
307
+ noData: string;
308
+ noSelected: string;
309
+ search: string;
310
+ }>;
311
+ handleAllChecked: (value: any, dirct: any) => void;
312
+ multipleSelectAllValue: import("vue").Ref<{
313
+ source: boolean;
314
+ target: boolean;
315
+ }>;
316
+ multipleSelectList: import("vue").Ref<{
317
+ source: any[];
318
+ target: any[];
319
+ }>;
320
+ handleMultipleChange: (dirct: any) => void;
321
+ handleItemChecked: (dirct: any) => void;
322
+ }> & {} & import("vue").ComponentCustomProperties & {};
270
323
  __isFragment?: never;
271
324
  __isTeleport?: never;
272
325
  __isSuspense?: never;
273
326
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
274
- title: {
275
- type: import("vue").PropType<string[]>;
276
- default: () => any[];
327
+ title: import("vue-types").VueTypeDef<string[]> & {
328
+ default: () => string[];
277
329
  };
278
- extCls: {
279
- type: StringConstructor;
330
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
331
+ default: string;
332
+ } & {
280
333
  default: string;
281
334
  };
282
- searchPlaceholder: {
283
- type: StringConstructor;
335
+ searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
336
+ default: string;
337
+ } & {
284
338
  default: string;
285
339
  };
286
- settingKey: {
287
- type: StringConstructor;
340
+ settingKey: import("vue-types").VueTypeValidableDef<string> & {
341
+ default: string;
342
+ } & {
288
343
  default: string;
289
344
  };
290
- displayKey: {
291
- type: StringConstructor;
345
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
346
+ default: string;
347
+ } & {
292
348
  default: string;
293
349
  };
294
- sortKey: {
295
- type: StringConstructor;
350
+ sortKey: import("vue-types").VueTypeValidableDef<string> & {
351
+ default: string;
352
+ } & {
296
353
  default: string;
297
354
  };
298
- showOverflowTips: {
299
- type: BooleanConstructor;
355
+ showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
356
+ default: boolean;
357
+ } & {
300
358
  default: boolean;
301
359
  };
302
- searchable: {
303
- type: BooleanConstructor;
360
+ searchable: import("vue-types").VueTypeValidableDef<boolean> & {
361
+ default: boolean;
362
+ } & {
304
363
  default: boolean;
305
364
  };
306
- sortable: {
307
- type: BooleanConstructor;
365
+ sortable: import("vue-types").VueTypeValidableDef<boolean> & {
366
+ default: boolean;
367
+ } & {
308
368
  default: boolean;
309
369
  };
310
- sourceList: {
311
- type: ArrayConstructor;
370
+ sourceList: import("vue-types").VueTypeDef<any[]> & {
312
371
  default: () => any[];
313
372
  };
314
- targetList: {
315
- type: ArrayConstructor;
373
+ targetList: import("vue-types").VueTypeDef<any[]> & {
316
374
  default: () => any[];
317
375
  };
318
- emptyContent: {
319
- type: import("vue").PropType<string[]>;
320
- default: () => any[];
376
+ emptyContent: import("vue-types").VueTypeDef<string[]> & {
377
+ default: () => string[];
378
+ };
379
+ multiple: import("vue-types").VueTypeValidableDef<boolean> & {
380
+ default: boolean;
381
+ } & {
382
+ default: boolean;
321
383
  };
322
384
  }>> & {
323
385
  onChange?: (...args: any[]) => any;
386
+ "onUpdate:targetList"?: (...args: any[]) => any;
324
387
  }, {
325
- keyword: import("vue").Ref<string>;
326
- transferRef: any;
327
- dataList: import("vue").Ref<any[]>;
388
+ selectSearchQuery: import("vue").Ref<string>;
389
+ selectListSearch: import("vue").ComputedRef<any>;
390
+ selectedList: import("vue").Ref<any[]>;
391
+ selectListSort: import("vue").ComputedRef<any[]>;
392
+ selectedListSort: import("vue").ComputedRef<any[]>;
393
+ settingCode: import("vue").ComputedRef<string>;
394
+ displayCode: import("vue").ComputedRef<string>;
328
395
  allToRight: () => void;
329
396
  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", {
397
+ handleItemClick: (item: any, isLeft: any) => void;
398
+ t: import("vue").ComputedRef<{
399
+ sourceList: string;
400
+ targetList: string;
401
+ removeAll: string;
402
+ selectAll: string;
403
+ noData: string;
404
+ noSelected: string;
405
+ search: string;
406
+ }>;
407
+ handleAllChecked: (value: any, dirct: any) => void;
408
+ multipleSelectAllValue: import("vue").Ref<{
409
+ source: boolean;
410
+ target: boolean;
411
+ }>;
412
+ multipleSelectList: import("vue").Ref<{
413
+ source: any[];
414
+ target: any[];
415
+ }>;
416
+ handleMultipleChange: (dirct: any) => void;
417
+ handleItemChecked: (dirct: any) => void;
418
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:targetList")[], "change" | "update:targetList", {
338
419
  title: string[];
339
420
  extCls: string;
421
+ multiple: boolean;
340
422
  displayKey: string;
423
+ searchPlaceholder: string;
341
424
  sortable: boolean;
342
425
  settingKey: string;
343
- searchPlaceholder: string;
426
+ sortKey: string;
344
427
  showOverflowTips: boolean;
345
428
  searchable: boolean;
346
- sortKey: string;
347
- sourceList: unknown[];
348
- targetList: unknown[];
429
+ sourceList: any[];
430
+ targetList: any[];
349
431
  emptyContent: string[];
350
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
432
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
351
433
  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})()));