bkui-vue 0.0.1-beta.7 → 0.0.1-beta.70

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 (567) hide show
  1. package/README.md +31 -19
  2. package/dist/index.cjs.js +57 -0
  3. package/dist/index.esm.js +23796 -0
  4. package/dist/index.umd.js +57 -0
  5. package/dist/style.css +1 -2312
  6. package/lib/affix/affix.css +3 -0
  7. package/lib/affix/affix.d.ts +47 -0
  8. package/lib/affix/affix.less +5 -0
  9. package/lib/affix/affix.variable.css +102 -0
  10. package/lib/affix/index.d.ts +143 -0
  11. package/lib/affix/index.js +1 -0
  12. package/lib/alert/alert.css +2 -0
  13. package/lib/alert/alert.d.ts +24 -15
  14. package/lib/alert/alert.less +2 -0
  15. package/lib/alert/alert.variable.css +40 -0
  16. package/lib/alert/index.d.ts +180 -0
  17. package/lib/alert/index.js +1 -1
  18. package/lib/animate-number/animate-number.d.ts +12 -7
  19. package/lib/animate-number/index.d.ts +97 -0
  20. package/lib/animate-number/index.js +1 -1
  21. package/lib/backtop/backtop.d.ts +27 -13
  22. package/lib/backtop/backtop.variable.css +38 -0
  23. package/lib/backtop/index.d.ts +166 -0
  24. package/lib/backtop/index.js +1 -1
  25. package/lib/badge/badge.css +5 -5
  26. package/lib/badge/badge.d.ts +64 -22
  27. package/lib/badge/badge.less +5 -6
  28. package/lib/badge/badge.variable.css +43 -5
  29. package/lib/badge/index.d.ts +267 -0
  30. package/lib/badge/index.js +1 -1
  31. package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
  32. package/lib/breadcrumb/breadcrumb.css +18 -1
  33. package/lib/breadcrumb/breadcrumb.d.ts +37 -9
  34. package/lib/breadcrumb/breadcrumb.less +13 -2
  35. package/lib/breadcrumb/breadcrumb.variable.css +56 -1
  36. package/lib/breadcrumb/index.d.ts +194 -0
  37. package/lib/breadcrumb/index.js +1 -1
  38. package/lib/button/button-group.d.ts +3 -5
  39. package/lib/button/button.css +64 -31
  40. package/lib/button/button.d.ts +66 -30
  41. package/lib/button/button.less +53 -33
  42. package/lib/button/button.variable.css +102 -31
  43. package/lib/button/index.d.ts +237 -0
  44. package/lib/button/index.js +1 -1
  45. package/lib/card/card.css +53 -1
  46. package/lib/card/card.d.ts +74 -18
  47. package/lib/card/card.less +50 -2
  48. package/lib/card/card.variable.css +91 -1
  49. package/lib/card/index.d.ts +283 -0
  50. package/lib/card/index.js +1 -1
  51. package/lib/cascader/cascader-panel.d.ts +48 -0
  52. package/lib/cascader/cascader.css +130 -0
  53. package/lib/cascader/cascader.d.ts +271 -0
  54. package/lib/cascader/cascader.less +146 -0
  55. package/lib/cascader/cascader.variable.css +229 -0
  56. package/lib/cascader/index.d.ts +721 -0
  57. package/lib/cascader/index.js +1 -0
  58. package/lib/cascader/interface.d.ts +44 -0
  59. package/lib/cascader/node.d.ts +24 -0
  60. package/lib/cascader/store.d.ts +15 -0
  61. package/lib/checkbox/checkbox-group.d.ts +13 -9
  62. package/lib/checkbox/checkbox.css +15 -2
  63. package/lib/checkbox/checkbox.d.ts +33 -30
  64. package/lib/checkbox/checkbox.less +20 -2
  65. package/lib/checkbox/checkbox.variable.css +53 -2
  66. package/lib/checkbox/common.d.ts +3 -3
  67. package/lib/checkbox/index.d.ts +253 -0
  68. package/lib/checkbox/index.js +1 -1
  69. package/lib/checkbox/type.d.ts +4 -8
  70. package/lib/code-diff/code-diff.css +186 -0
  71. package/lib/code-diff/code-diff.d.ts +80 -0
  72. package/lib/code-diff/code-diff.less +238 -0
  73. package/lib/code-diff/code-diff.variable.css +285 -0
  74. package/lib/code-diff/index.d.ts +154 -0
  75. package/lib/code-diff/index.js +1 -0
  76. package/lib/collapse/collapse.css +25 -1
  77. package/lib/collapse/collapse.d.ts +51 -22
  78. package/lib/collapse/collapse.less +34 -2
  79. package/lib/collapse/collapse.variable.css +124 -1
  80. package/lib/collapse/index.d.ts +182 -0
  81. package/lib/collapse/index.js +1 -1
  82. package/lib/collapse/utils.d.ts +11 -0
  83. package/lib/components.d.ts +46 -0
  84. package/lib/components.js +1 -0
  85. package/lib/container/col.d.ts +51 -0
  86. package/lib/container/container.css +48 -0
  87. package/lib/container/container.d.ts +83 -0
  88. package/lib/container/container.less +20 -0
  89. package/lib/container/container.variable.css +147 -0
  90. package/lib/container/index.d.ts +223 -0
  91. package/lib/container/index.js +1 -0
  92. package/lib/container/row.d.ts +4 -0
  93. package/lib/date-picker/date-picker.css +408 -0
  94. package/lib/date-picker/date-picker.d.ts +311 -0
  95. package/lib/date-picker/date-picker.less +527 -0
  96. package/lib/date-picker/date-picker.variable.css +507 -0
  97. package/lib/date-picker/fecha.d.ts +6 -0
  98. package/lib/date-picker/index.d.ts +750 -0
  99. package/lib/date-picker/index.js +1 -0
  100. package/lib/date-picker/interface.d.ts +22 -0
  101. package/lib/date-picker/props.d.ts +118 -0
  102. package/lib/date-picker/utils.d.ts +97 -0
  103. package/lib/dialog/dialog.css +49 -0
  104. package/lib/dialog/dialog.d.ts +294 -52
  105. package/lib/dialog/dialog.less +16 -0
  106. package/lib/dialog/dialog.variable.css +49 -0
  107. package/lib/dialog/index.d.ts +749 -0
  108. package/lib/dialog/index.js +1 -1
  109. package/lib/directives/clickoutside.d.ts +3 -23
  110. package/lib/directives/index.d.ts +3 -0
  111. package/lib/directives/index.js +2 -15
  112. package/lib/directives/index.js.LICENSE.txt +14 -0
  113. package/lib/directives/tooltips.d.ts +17 -0
  114. package/lib/dist.index.js +1 -0
  115. package/lib/divider/divider.css +38 -0
  116. package/lib/divider/divider.d.ts +48 -0
  117. package/lib/divider/divider.less +53 -0
  118. package/lib/divider/divider.variable.css +137 -0
  119. package/lib/divider/index.d.ts +142 -0
  120. package/lib/divider/index.js +1 -0
  121. package/lib/divider/props.d.ts +21 -0
  122. package/lib/dropdown/dropdown-item.d.ts +19 -0
  123. package/lib/dropdown/dropdown-menu.d.ts +16 -0
  124. package/lib/dropdown/dropdown.css +47 -0
  125. package/lib/dropdown/dropdown.d.ts +63 -0
  126. package/lib/dropdown/dropdown.less +59 -0
  127. package/lib/dropdown/dropdown.variable.css +146 -0
  128. package/lib/dropdown/index.d.ts +200 -0
  129. package/lib/dropdown/index.js +1 -0
  130. package/lib/exception/exception.d.ts +11 -9
  131. package/lib/exception/exception.variable.css +38 -0
  132. package/lib/exception/index.d.ts +96 -0
  133. package/lib/exception/index.js +1 -1
  134. package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
  135. package/lib/fixed-navbar/fixed-navbar.variable.css +38 -0
  136. package/lib/fixed-navbar/index.d.ts +147 -0
  137. package/lib/fixed-navbar/index.js +1 -1
  138. package/lib/form/common.d.ts +3 -0
  139. package/lib/form/compose-form-item.d.ts +16 -0
  140. package/lib/form/form-item.d.ts +155 -0
  141. package/lib/form/form.css +125 -0
  142. package/lib/form/form.d.ts +67 -0
  143. package/lib/form/form.less +152 -0
  144. package/lib/form/form.variable.css +224 -0
  145. package/lib/form/index.d.ts +280 -0
  146. package/lib/form/index.js +1 -0
  147. package/lib/form/type.d.ts +22 -0
  148. package/lib/form/validator.d.ts +8 -0
  149. package/lib/icon/angle-double-down-line.d.ts +4 -0
  150. package/lib/icon/angle-double-down-line.js +1 -0
  151. package/lib/icon/angle-double-left-line.d.ts +4 -0
  152. package/lib/icon/angle-double-left-line.js +1 -0
  153. package/lib/icon/angle-double-left.d.ts +4 -0
  154. package/lib/icon/angle-double-left.js +1 -0
  155. package/lib/icon/angle-double-right-line.d.ts +4 -0
  156. package/lib/icon/angle-double-right-line.js +1 -0
  157. package/lib/icon/angle-double-right.d.ts +4 -0
  158. package/lib/icon/angle-double-right.js +1 -0
  159. package/lib/icon/angle-double-up-line.d.ts +4 -0
  160. package/lib/icon/angle-double-up-line.js +1 -0
  161. package/lib/icon/angle-down-fill.d.ts +4 -0
  162. package/lib/icon/angle-down-fill.js +1 -0
  163. package/lib/icon/angle-down-line.d.ts +4 -0
  164. package/lib/icon/angle-down-line.js +1 -0
  165. package/lib/icon/angle-down.d.ts +4 -0
  166. package/lib/icon/angle-down.js +1 -0
  167. package/lib/icon/angle-left.d.ts +4 -0
  168. package/lib/icon/angle-left.js +1 -0
  169. package/lib/icon/angle-right.d.ts +4 -0
  170. package/lib/icon/angle-right.js +1 -0
  171. package/lib/icon/angle-up-fill.d.ts +4 -0
  172. package/lib/icon/angle-up-fill.js +1 -0
  173. package/lib/icon/angle-up.d.ts +4 -0
  174. package/lib/icon/angle-up.js +1 -0
  175. package/lib/icon/archive-fill.d.ts +4 -0
  176. package/lib/icon/archive-fill.js +1 -0
  177. package/lib/icon/arrows-left.d.ts +4 -0
  178. package/lib/icon/arrows-left.js +1 -0
  179. package/lib/icon/arrows-right.d.ts +4 -0
  180. package/lib/icon/arrows-right.js +1 -0
  181. package/lib/icon/audio-fill.d.ts +4 -0
  182. package/lib/icon/audio-fill.js +1 -0
  183. package/lib/icon/bk.d.ts +4 -0
  184. package/lib/icon/bk.js +1 -0
  185. package/lib/icon/circle.d.ts +4 -0
  186. package/lib/icon/circle.js +1 -0
  187. package/lib/icon/close-line.d.ts +4 -0
  188. package/lib/icon/close-line.js +1 -0
  189. package/lib/icon/close.d.ts +4 -0
  190. package/lib/icon/close.js +1 -0
  191. package/lib/icon/code.d.ts +4 -0
  192. package/lib/icon/code.js +1 -0
  193. package/lib/icon/cog-shape.d.ts +4 -0
  194. package/lib/icon/cog-shape.js +1 -0
  195. package/lib/icon/collapse-left.d.ts +4 -0
  196. package/lib/icon/collapse-left.js +1 -0
  197. package/lib/icon/copy.d.ts +4 -0
  198. package/lib/icon/copy.js +1 -0
  199. package/lib/icon/data-shape.d.ts +4 -0
  200. package/lib/icon/data-shape.js +1 -0
  201. package/lib/icon/del.d.ts +4 -0
  202. package/lib/icon/del.js +1 -0
  203. package/lib/icon/doc-fill.d.ts +4 -0
  204. package/lib/icon/doc-fill.js +1 -0
  205. package/lib/icon/done.d.ts +4 -0
  206. package/lib/icon/done.js +1 -0
  207. package/lib/icon/down-shape.d.ts +4 -0
  208. package/lib/icon/down-shape.js +1 -0
  209. package/lib/icon/down-small.d.ts +4 -0
  210. package/lib/icon/down-small.js +1 -0
  211. package/lib/icon/edit-line.d.ts +4 -0
  212. package/lib/icon/edit-line.js +1 -0
  213. package/lib/icon/ellipsis.d.ts +4 -0
  214. package/lib/icon/ellipsis.js +1 -0
  215. package/lib/icon/error.d.ts +4 -0
  216. package/lib/icon/error.js +1 -0
  217. package/lib/icon/excel-fill.d.ts +4 -0
  218. package/lib/icon/excel-fill.js +1 -0
  219. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  220. package/lib/icon/exclamation-circle-shape.js +1 -0
  221. package/lib/icon/eye.d.ts +4 -0
  222. package/lib/icon/eye.js +1 -0
  223. package/lib/icon/folder-open.d.ts +4 -0
  224. package/lib/icon/folder-open.js +1 -0
  225. package/lib/icon/folder-shape-open.d.ts +4 -0
  226. package/lib/icon/folder-shape-open.js +1 -0
  227. package/lib/icon/folder-shape.d.ts +4 -0
  228. package/lib/icon/folder-shape.js +1 -0
  229. package/lib/icon/folder.d.ts +4 -0
  230. package/lib/icon/funnel.d.ts +4 -0
  231. package/lib/icon/funnel.js +1 -0
  232. package/lib/icon/help-document-fill.d.ts +4 -0
  233. package/lib/icon/help-document-fill.js +1 -0
  234. package/lib/icon/help-fill.d.ts +4 -0
  235. package/lib/icon/help-fill.js +1 -0
  236. package/lib/icon/help.d.ts +4 -0
  237. package/lib/icon/help.js +1 -0
  238. package/lib/icon/icon.d.ts +12 -0
  239. package/lib/icon/image-fill.d.ts +4 -0
  240. package/lib/icon/image-fill.js +1 -0
  241. package/lib/icon/index.d.ts +69 -0
  242. package/lib/icon/index.js +1 -15
  243. package/lib/icon/info-line.d.ts +4 -0
  244. package/lib/icon/info-line.js +1 -0
  245. package/lib/icon/info.d.ts +4 -0
  246. package/lib/icon/info.js +1 -0
  247. package/lib/icon/left-shape.d.ts +4 -0
  248. package/lib/icon/left-shape.js +1 -0
  249. package/lib/icon/pdf-fill.d.ts +4 -0
  250. package/lib/icon/pdf-fill.js +1 -0
  251. package/lib/icon/play-shape.d.ts +4 -0
  252. package/lib/icon/play-shape.js +1 -0
  253. package/lib/icon/plus.d.ts +4 -0
  254. package/lib/icon/plus.js +1 -0
  255. package/lib/icon/ppt-fill.d.ts +4 -0
  256. package/lib/icon/ppt-fill.js +1 -0
  257. package/lib/icon/qq.d.ts +4 -0
  258. package/lib/icon/qq.js +1 -0
  259. package/lib/icon/right-shape.d.ts +4 -0
  260. package/lib/icon/right-shape.js +1 -0
  261. package/lib/icon/search.d.ts +4 -0
  262. package/lib/icon/search.js +1 -0
  263. package/lib/icon/share.d.ts +4 -0
  264. package/lib/icon/share.js +1 -0
  265. package/lib/icon/spinner.d.ts +4 -0
  266. package/lib/icon/spinner.js +1 -0
  267. package/lib/icon/success.d.ts +4 -0
  268. package/lib/icon/success.js +1 -0
  269. package/lib/icon/switcher-loading.d.ts +4 -0
  270. package/lib/icon/switcher-loading.js +1 -0
  271. package/lib/icon/text-file.d.ts +4 -0
  272. package/lib/icon/text-file.js +1 -0
  273. package/lib/icon/text-fill.d.ts +4 -0
  274. package/lib/icon/text-fill.js +1 -0
  275. package/lib/icon/tree-application-shape.d.ts +4 -0
  276. package/lib/icon/tree-application-shape.js +1 -0
  277. package/lib/icon/unvisible.d.ts +4 -0
  278. package/lib/icon/unvisible.js +1 -0
  279. package/lib/icon/up-shape.d.ts +4 -0
  280. package/lib/icon/up-shape.js +1 -0
  281. package/lib/icon/upload.d.ts +4 -0
  282. package/lib/icon/upload.js +1 -0
  283. package/lib/icon/video-fill.d.ts +4 -0
  284. package/lib/icon/video-fill.js +1 -0
  285. package/lib/icon/warn.d.ts +4 -0
  286. package/lib/icon/warn.js +1 -0
  287. package/lib/icon/weixin.d.ts +4 -0
  288. package/lib/icon/weixin.js +1 -0
  289. package/lib/index.d.ts +3 -0
  290. package/lib/index.js +1 -0
  291. package/lib/input/index.d.ts +541 -0
  292. package/lib/input/index.js +1 -15
  293. package/lib/input/input.css +78 -4
  294. package/lib/input/input.d.ts +178 -48
  295. package/lib/input/input.less +89 -8
  296. package/lib/input/input.variable.css +117 -4
  297. package/lib/link/index.d.ts +164 -0
  298. package/lib/link/index.js +1 -1
  299. package/lib/link/link.d.ts +25 -13
  300. package/lib/link/link.variable.css +38 -0
  301. package/lib/loading/index.d.ts +172 -0
  302. package/lib/loading/index.js +1 -1
  303. package/lib/loading/loading.css +121 -75
  304. package/lib/loading/loading.d.ts +67 -20
  305. package/lib/loading/loading.less +78 -60
  306. package/lib/loading/loading.variable.css +159 -75
  307. package/lib/menu/index.d.ts +188 -0
  308. package/lib/menu/index.js +1 -0
  309. package/lib/menu/menu-group.d.ts +14 -0
  310. package/lib/menu/menu-item.d.ts +16 -0
  311. package/lib/menu/menu.css +190 -0
  312. package/lib/menu/menu.d.ts +64 -0
  313. package/lib/menu/menu.less +180 -0
  314. package/lib/menu/menu.variable.css +289 -0
  315. package/lib/menu/submenu.css +3 -0
  316. package/lib/menu/submenu.d.ts +22 -0
  317. package/lib/menu/submenu.less +5 -0
  318. package/lib/menu/submenu.variable.css +102 -0
  319. package/lib/menu/utils.d.ts +41 -0
  320. package/lib/message/index.d.ts +2 -0
  321. package/lib/message/index.js +1 -0
  322. package/lib/message/message.css +62 -0
  323. package/lib/message/message.less +72 -0
  324. package/lib/message/message.variable.css +161 -0
  325. package/lib/message/messageConstructor.d.ts +106 -0
  326. package/lib/modal/index.d.ts +627 -0
  327. package/lib/modal/index.js +1 -1
  328. package/lib/modal/modal.css +30 -1
  329. package/lib/modal/modal.d.ts +204 -24
  330. package/lib/modal/modal.less +39 -1
  331. package/lib/modal/modal.variable.css +30 -1
  332. package/lib/modal/props.mixin.d.ts +87 -10
  333. package/lib/navigation/index.d.ts +292 -0
  334. package/lib/navigation/index.js +1 -0
  335. package/lib/navigation/navigation-title.d.ts +25 -0
  336. package/lib/navigation/navigation.css +184 -0
  337. package/lib/navigation/navigation.d.ts +111 -0
  338. package/lib/navigation/navigation.less +210 -0
  339. package/lib/navigation/navigation.variable.css +283 -0
  340. package/lib/notify/index.d.ts +2 -0
  341. package/lib/notify/index.js +1 -0
  342. package/lib/notify/notify.css +65 -0
  343. package/lib/notify/notify.less +76 -0
  344. package/lib/notify/notify.variable.css +164 -0
  345. package/lib/notify/notifyConstructor.d.ts +135 -0
  346. package/lib/pagination/index.d.ts +395 -0
  347. package/lib/pagination/index.js +1 -0
  348. package/lib/pagination/pagination.css +179 -0
  349. package/lib/pagination/pagination.d.ts +220 -0
  350. package/lib/pagination/pagination.less +201 -0
  351. package/lib/pagination/pagination.variable.css +278 -0
  352. package/lib/pagination/type.d.ts +6 -0
  353. package/lib/pagination/use-limit.d.ts +8 -0
  354. package/lib/pagination/use-list.d.ts +8 -0
  355. package/lib/pagination/use-small-list.d.ts +5 -0
  356. package/lib/pagination/use-total.d.ts +5 -0
  357. package/lib/popover/index.d.ts +364 -0
  358. package/lib/popover/index.js +1 -1
  359. package/lib/popover/popover.css +26 -14
  360. package/lib/popover/popover.d.ts +111 -45
  361. package/lib/popover/popover.less +59 -46
  362. package/lib/popover/popover.variable.css +64 -14
  363. package/lib/popover/props.d.ts +99 -0
  364. package/lib/preset.d.ts +7 -0
  365. package/lib/preset.js +1 -0
  366. package/lib/process/index.d.ts +205 -0
  367. package/lib/process/index.js +1 -0
  368. package/lib/process/process.css +138 -0
  369. package/lib/process/process.d.ts +131 -0
  370. package/lib/process/process.less +178 -0
  371. package/lib/process/process.variable.css +237 -0
  372. package/lib/progress/index.d.ts +398 -0
  373. package/lib/progress/index.js +1 -1
  374. package/lib/progress/progress.css +8 -3
  375. package/lib/progress/progress.d.ts +88 -35
  376. package/lib/progress/progress.less +0 -4
  377. package/lib/progress/progress.variable.css +46 -3
  378. package/lib/radio/common.d.ts +5 -5
  379. package/lib/radio/index.d.ts +278 -0
  380. package/lib/radio/index.js +1 -1
  381. package/lib/radio/radio-button.d.ts +29 -20
  382. package/lib/radio/radio-group.d.ts +11 -10
  383. package/lib/radio/radio.css +14 -8
  384. package/lib/radio/radio.d.ts +27 -17
  385. package/lib/radio/radio.less +16 -9
  386. package/lib/radio/radio.variable.css +53 -9
  387. package/lib/radio/type.d.ts +10 -5
  388. package/lib/rate/index.d.ts +113 -0
  389. package/lib/rate/index.js +1 -1
  390. package/lib/rate/rate.d.ts +13 -10
  391. package/lib/rate/star.d.ts +33 -16
  392. package/lib/resize-layout/index.d.ts +336 -0
  393. package/lib/resize-layout/index.js +1 -0
  394. package/lib/resize-layout/resize-layout.css +189 -0
  395. package/lib/resize-layout/resize-layout.d.ts +127 -0
  396. package/lib/resize-layout/resize-layout.less +233 -0
  397. package/lib/resize-layout/resize-layout.variable.css +288 -0
  398. package/lib/select/common.d.ts +23 -17
  399. package/lib/select/index.d.ts +1377 -0
  400. package/lib/select/index.js +1 -1
  401. package/lib/select/option.d.ts +12 -19
  402. package/lib/select/optionGroup.d.ts +54 -0
  403. package/lib/select/select.css +245 -29
  404. package/lib/select/select.d.ts +282 -156
  405. package/lib/select/select.less +237 -40
  406. package/lib/select/select.variable.css +283 -29
  407. package/lib/select/type.d.ts +31 -0
  408. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
  409. package/lib/shared/index.d.ts +71 -0
  410. package/lib/shared/index.js +1 -1
  411. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +33 -3
  412. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +10 -2
  413. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +60 -6
  414. package/lib/shared/token.d.ts +2 -0
  415. package/lib/shared/utils.d.ts +6 -0
  416. package/lib/shared/vue-types.d.ts +12 -7
  417. package/lib/shared/z-index-manager.d.ts +6 -1
  418. package/lib/sideslider/index.d.ts +531 -0
  419. package/lib/sideslider/index.js +1 -1
  420. package/lib/sideslider/sideslider.css +48 -3
  421. package/lib/sideslider/sideslider.d.ts +205 -30
  422. package/lib/sideslider/sideslider.less +65 -6
  423. package/lib/sideslider/sideslider.variable.css +86 -3
  424. package/lib/slider/index.d.ts +440 -0
  425. package/lib/slider/index.js +1 -0
  426. package/lib/slider/slider-button.d.ts +80 -0
  427. package/lib/slider/slider.css +149 -0
  428. package/lib/slider/slider.d.ts +201 -0
  429. package/lib/slider/slider.less +179 -0
  430. package/lib/slider/slider.variable.css +248 -0
  431. package/lib/steps/index.d.ts +250 -0
  432. package/lib/steps/index.js +1 -15
  433. package/lib/steps/steps.css +4 -1
  434. package/lib/steps/steps.d.ts +42 -29
  435. package/lib/steps/steps.less +5 -1
  436. package/lib/steps/steps.variable.css +42 -1
  437. package/lib/styles/index.d.ts +51 -0
  438. package/lib/styles/mixins/clearfix.css +8 -0
  439. package/lib/styles/mixins/clearfix.less +10 -0
  440. package/lib/styles/mixins/clearfix.variable.css +8 -0
  441. package/lib/styles/mixins/mixins.css +8 -0
  442. package/lib/styles/mixins/mixins.less +1 -0
  443. package/lib/styles/mixins/mixins.variable.css +8 -0
  444. package/lib/styles/mixins/popper.css +43 -0
  445. package/lib/styles/mixins/popper.less +52 -0
  446. package/lib/styles/mixins/popper.variable.css +43 -0
  447. package/lib/styles/mixins/size.less +9 -0
  448. package/lib/styles/reset.css +273 -0
  449. package/lib/styles/reset.less +313 -0
  450. package/lib/styles/reset.variable.css +273 -0
  451. package/lib/styles/themes/themes.less +60 -2
  452. package/lib/swiper/index.d.ts +181 -0
  453. package/lib/swiper/index.js +1 -0
  454. package/lib/swiper/swiper.css +91 -0
  455. package/lib/swiper/swiper.d.ts +65 -0
  456. package/lib/swiper/swiper.less +107 -0
  457. package/lib/swiper/swiper.variable.css +91 -0
  458. package/lib/switcher/index.d.ts +286 -0
  459. package/lib/switcher/index.js +1 -1
  460. package/lib/switcher/switcher.css +157 -135
  461. package/lib/switcher/switcher.d.ts +48 -32
  462. package/lib/switcher/switcher.less +211 -153
  463. package/lib/switcher/switcher.variable.css +195 -135
  464. package/lib/tab/index.d.ts +440 -0
  465. package/lib/tab/index.js +1 -0
  466. package/lib/tab/props.d.ts +194 -0
  467. package/lib/tab/tab-nav.d.ts +169 -0
  468. package/lib/tab/tab-panel.d.ts +73 -0
  469. package/lib/tab/tab.css +167 -0
  470. package/lib/tab/tab.d.ts +139 -0
  471. package/lib/tab/tab.less +228 -0
  472. package/lib/tab/tab.variable.css +266 -0
  473. package/lib/table/const.d.ts +4 -0
  474. package/lib/table/index.d.ts +359 -0
  475. package/lib/table/index.js +1 -1
  476. package/lib/table/plugins/head-filter.css +68 -0
  477. package/lib/table/plugins/head-filter.less +83 -0
  478. package/lib/table/plugins/head-filter.variable.css +167 -0
  479. package/lib/table/plugins/head-sort.css +22 -0
  480. package/lib/table/plugins/head-sort.less +28 -0
  481. package/lib/table/plugins/head-sort.variable.css +121 -0
  482. package/lib/table/plugins/settings.css +110 -0
  483. package/lib/table/plugins/settings.less +136 -0
  484. package/lib/table/plugins/settings.variable.css +209 -0
  485. package/lib/table/props.d.ts +189 -0
  486. package/lib/table/render.d.ts +121 -0
  487. package/lib/table/table.css +387 -0
  488. package/lib/table/table.d.ts +114 -36
  489. package/lib/table/table.less +229 -1
  490. package/lib/table/table.variable.css +425 -0
  491. package/lib/table/use-common.d.ts +19 -0
  492. package/lib/table/utils.d.ts +93 -0
  493. package/lib/tag/index.d.ts +229 -0
  494. package/lib/tag/index.js +1 -1
  495. package/lib/tag/tag.css +97 -0
  496. package/lib/tag/tag.d.ts +83 -53
  497. package/lib/tag/tag.less +110 -2
  498. package/lib/tag/tag.variable.css +135 -0
  499. package/lib/tag-input/common.d.ts +24 -0
  500. package/lib/tag-input/index.d.ts +894 -0
  501. package/lib/tag-input/index.js +1 -0
  502. package/lib/tag-input/list-tag-render.d.ts +47 -0
  503. package/lib/tag-input/tag-input.css +209 -0
  504. package/lib/tag-input/tag-input.d.ts +374 -0
  505. package/lib/tag-input/tag-input.less +251 -0
  506. package/lib/tag-input/tag-input.variable.css +308 -0
  507. package/lib/tag-input/tag-props.d.ts +131 -0
  508. package/lib/tag-input/tag-render.d.ts +38 -0
  509. package/lib/timeline/index.d.ts +129 -0
  510. package/lib/timeline/index.js +1 -0
  511. package/lib/timeline/timeline.css +235 -0
  512. package/lib/timeline/timeline.d.ts +81 -0
  513. package/lib/timeline/timeline.less +239 -0
  514. package/lib/timeline/timeline.variable.css +334 -0
  515. package/lib/transfer/index.d.ts +351 -0
  516. package/lib/transfer/index.js +1 -0
  517. package/lib/transfer/transfer.css +158 -0
  518. package/lib/transfer/transfer.d.ts +185 -0
  519. package/lib/transfer/transfer.less +171 -0
  520. package/lib/transfer/transfer.variable.css +257 -0
  521. package/lib/tree/constant.d.ts +29 -0
  522. package/lib/tree/index.d.ts +404 -0
  523. package/lib/tree/index.js +1 -0
  524. package/lib/tree/props.d.ts +145 -0
  525. package/lib/tree/tree.css +53 -0
  526. package/lib/tree/tree.d.ts +172 -0
  527. package/lib/tree/tree.less +66 -0
  528. package/lib/tree/tree.variable.css +152 -0
  529. package/lib/tree/use-empty.d.ts +6 -0
  530. package/lib/tree/use-node-action.d.ts +10 -0
  531. package/lib/tree/use-node-async.d.ts +5 -0
  532. package/lib/tree/use-node-attribute.d.ts +22 -0
  533. package/lib/tree/use-node-drag.d.ts +3 -0
  534. package/lib/tree/use-search.d.ts +11 -0
  535. package/lib/tree/use-tree-init.d.ts +12 -0
  536. package/lib/tree/util.d.ts +66 -0
  537. package/lib/upload/index.d.ts +2 -0
  538. package/lib/upload/index.js +1 -0
  539. package/lib/upload/props.d.ts +113 -0
  540. package/lib/upload/upload-list.d.ts +46 -0
  541. package/lib/upload/upload-trigger.d.ts +54 -0
  542. package/lib/upload/upload.css +374 -0
  543. package/lib/upload/upload.d.ts +252 -0
  544. package/lib/upload/upload.less +455 -0
  545. package/lib/upload/upload.type.d.ts +78 -0
  546. package/lib/upload/upload.variable.css +473 -0
  547. package/lib/upload/use-ajax-upload.d.ts +3 -0
  548. package/lib/upload/use-file-handler.d.ts +44 -0
  549. package/lib/use-form.d.ts +3 -0
  550. package/lib/use-message.d.ts +2 -0
  551. package/lib/virtual-render/index.d.ts +579 -0
  552. package/lib/virtual-render/index.js +1 -0
  553. package/lib/virtual-render/props.d.ts +167 -0
  554. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  555. package/lib/virtual-render/v-virtual-render.d.ts +6 -0
  556. package/lib/virtual-render/virtual-render.css +33 -0
  557. package/lib/virtual-render/virtual-render.d.ts +255 -0
  558. package/lib/virtual-render/virtual-render.less +43 -0
  559. package/lib/virtual-render/virtual-render.variable.css +33 -0
  560. package/package.json +107 -78
  561. package/dist/bkui-vue.cjs.js +0 -4978
  562. package/dist/bkui-vue.esm.js +0 -4974
  563. package/dist/bkui-vue.umd.js +0 -4981
  564. package/lib/styles/index.js +0 -1
  565. package/lib/table/common.d.ts +0 -3
  566. package/lib/table/table-layout.d.ts +0 -14
  567. package/lib/table/type.d.ts +0 -12
@@ -0,0 +1 @@
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("lodash"),require("../directives"),require("../icon"),require("../loading"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","lodash","../directives","../icon","../loading","../popover"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("lodash"),require("../directives"),require("../icon"),require("../loading"),require("../popover")):t(e["../shared"],e.vue,e.lodash,e["../directives"],e["../icon"],e["../loading"],e["../popover"]);for(var a in r)("object"==typeof exports?exports:e)[a]=r[a]}}(self,((e,t,r,a,n,o,l)=>(()=>{"use strict";var i={4061:e=>{e.exports=a},6870:e=>{e.exports=n},4870:e=>{e.exports=o},5537:e=>{e.exports=l},4212:t=>{t.exports=e},467:e=>{e.exports=r},748:e=>{e.exports=t}},s={};function u(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}};return i[e](r,r.exports,u),r.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{u.r(c),u.d(c,{default:()=>L});var e=u(4212);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function a(e,t){if(e){if("string"==typeof e)return r(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?r(e,t):void 0}}function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(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 l=u(748),i=u(467),s=u(4061),d=u(6870),p=u(4870),f=u.n(p),g=u(5537),v=u.n(g),h=12,y=function(e){for(var t=e.length,r=0,a=0;a<t;a++)0!=(65280&e.charCodeAt(a))&&(r+=1),r+=1;return r};const m=(0,l.defineComponent)({name:"ListTagRender",props:{node:e.PropTypes.object,searchKey:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.arrayOf(e.PropTypes.string)]),displayKey:e.PropTypes.string,searchKeyword:e.PropTypes.string,tpl:{type:Function,default:null}},render:function(){var e=this,t=function(t){if(e.searchKeyword){var r=new RegExp("(".concat(e.searchKeyword,")"),"i");return t.replace(r,'<strong class="highlight-text">$1</strong>')}return t};if(this.tpl)return this.tpl(this.node,t,l.h,this);var r=this.node[this.displayKey];return(0,l.createVNode)("div",{class:"bk-selector-node"},[(0,l.createVNode)("span",{class:"text",innerHTML:t(r)},[r])])}}),b=(0,l.defineComponent)({name:"TagRender",props:{node:e.PropTypes.object,displayKey:e.PropTypes.string,tpl:{type:Function,default:null}},render:function(){return this.tpl?this.tpl(this.node,l.h,this):(0,l.createVNode)("div",{class:"tag"},[(0,l.createVNode)("span",{class:"text"},[this.node[this.displayKey]])])}}),T=(0,l.defineComponent)({name:"TagInput",directives:{bkTooltips:s.bkTooltips},props:{modelValue:e.PropTypes.arrayOf(e.PropTypes.string).def([]),placeholder:e.PropTypes.string.def("请输入并按 Enter 结束"),list:e.PropTypes.arrayOf(e.PropTypes.object).def([]),disabled:e.PropTypes.bool.def(!1),tooltipKey:e.PropTypes.string.def(""),saveKey:e.PropTypes.string.def("id"),displayKey:e.PropTypes.string.def("name"),hasDeleteIcon:e.PropTypes.bool.def(!1),clearable:e.PropTypes.bool.def(!0),trigger:e.PropTypes.commonType(["focus","search"]).def("search"),searchKey:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.arrayOf(e.PropTypes.string)]).def("name"),useGroup:e.PropTypes.bool.def(!1),allowCreate:e.PropTypes.bool.def(!1),maxData:e.PropTypes.number.def(-1),maxResult:e.PropTypes.number.def(10),contentMaxHeight:e.PropTypes.number.def(300),contentWidth:e.PropTypes.number.def(190),separator:e.PropTypes.string.def(""),allowNextFocus:e.PropTypes.bool.def(!0),allowAutoMatch:e.PropTypes.bool.def(!1),showClearOnlyHover:e.PropTypes.bool.def(!1),leftSpace:e.PropTypes.number.def(0),createTagValidator:{type:Function,default:null},filterCallback:{type:Function,default:null},tagTpl:{type:Function,default:null},tpl:{type:Function,default:null},pasteFn:{type:Function,default:null}},emits:["update:modelValue","change","select","blur","remove","removeAll"],setup:function(e,r){var s=r.emit,u=(0,l.reactive)({isEdit:!1,isHover:!1,focusItemIndex:e.allowCreate?-1:0}),c=(0,l.reactive)({isShow:!1,width:190,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),d=function(e){var t=(0,l.reactive)({curPage:1,totalSize:0,totalPage:0,pageSize:e,isPageLoading:!1,curPageList:[],renderListPaged:[]});return{pageState:t,initPage:function(){var e,r,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.curPage=1,t.totalSize=a.length,t.totalPage=Math.ceil(t.totalSize/t.pageSize)||1;var n=[];if(t.pageSize>0)for(var l=0;l<t.totalSize;l+=t.pageSize)n.push(a.slice(l,l+t.pageSize));(e=t.renderListPaged).splice.apply(e,[0,t.renderListPaged.length].concat(n)),(r=t.curPageList).splice.apply(r,[0,t.curPageList.length].concat(o(t.renderListPaged[t.curPage-1]||[])))},pageChange:function(e){var r;t.curPage=e,(r=t.curPageList).splice.apply(r,[t.curPageList.length,0].concat(o(t.renderListPaged[t.curPage-1]||[]))),t.isPageLoading=!1}}}((0,l.toRefs)(e).maxResult),p=d.pageState,f=d.initPage,g=d.pageChange,v=(0,l.ref)(""),m=(0,l.ref)(null),b=(0,l.ref)(null),T=(0,l.ref)(null),L=(0,l.ref)(null),w=(0,l.ref)(null),P=(0,l.ref)(null),x=(0,l.ref)(null),I=(0,l.computed)((function(){return!e.disabled&&e.hasDeleteIcon})),S=(0,l.computed)((function(){return 1===e.maxData})),C=(0,l.computed)((function(){return 0===R.selectedTagList.length&&""===v.value&&!u.isEdit})),K=(0,l.computed)((function(){return e.clearable&&!e.disabled&&0!==R.selectedTagList.length&&(!e.showClearOnlyHover||u.isHover)})),V=(0,l.computed)((function(){return{"bk-tag-input-trigger":!0,active:u.isEdit,disabled:e.disabled}}));(0,l.watch)([function(){return o(e.modelValue)},function(){return o(e.list)}],(function(){F()})),(0,l.watch)(v,(0,i.debounce)((function(){var t=0!==p.curPageList.length,r=v.value;""!==r&&t||""===r&&"focus"===e.trigger&&t?c.isShow=!0:"focus"===e.trigger&&t||(c.isShow=!1)}),150)),(0,l.watch)((function(){return c.isShow}),(function(e){k(),e&&w.value&&((0,l.nextTick)((function(){w.value.scrollTop=0})),w.value.removeEventListener("scroll",N),w.value.addEventListener("scroll",N))}));var k=function(){var e,t,r=S.value?0:null===(e=L.value)||void 0===e?void 0:e.offsetLeft;c.modifiers=[{name:"offset",options:{offset:[r,4]}}],null===(t=P.value)||void 0===t||t.update()},N=function(){if(!p.isPageLoading&&0!==w.value.scrollTop){var e=w.value;if(e.scrollTop+e.offsetHeight>=e.scrollHeight){var t=p.curPage+1;t<=p.totalPage&&(p.isPageLoading=!0,setTimeout((function(){g(t)}),500))}}},A=function(){var e;return Array.from((null===(e=T.value)||void 0===e?void 0:e.childNodes)||[]).filter((function(e){return e.nodeType!==Node.TEXT_NODE}))},O=function(t){if(!e.disabled){if(null==t?void 0:t.target){var r=t.target.className;(r.indexOf("bk-tag-input-trigger")>-1||r.indexOf("tag-list")>-1)&&T.value.appendChild(L.value)}clearTimeout(x.value),S.value&&j.value.length&&(R.tagListCache=o(j.value),R.selectedTagListCache=o(R.selectedTagList),v.value=R.selectedTagListCache[0][e.saveKey],$(R.selectedTagList[0],0),H()),u.isEdit=!0,(0,l.nextTick)((function(){var t;null===(t=m.value)||void 0===t||t.focus(),"focus"===e.trigger&&0!==R.localList.length&&(q(),c.isShow?k():c.isShow=!0)}))}},R=(0,l.reactive)({localList:[],tagListCache:[],selectedTagList:[],selectedTagListCache:[]}),j=(0,l.computed)((function(){return R.selectedTagList.map((function(t){return t[e.saveKey]}))})),E=function(e){var t=(0,l.toRefs)(e),r=t.useGroup,a=t.saveKey,n=t.displayKey,i=t.list,s=(0,l.reactive)([]);return(0,l.watch)([r,a,n,i],(function(){var e=i.value;r.value&&(e=i.value.reduce((function(e,t){var r=[];return t.children&&(r=t.children.map((function(e){return Object.assign({group:{groupId:t[a.value],groupName:t[n.value]}},e)}))),e.concat(r)}),[])),s.splice.apply(s,[0,s.length].concat(o(e)))}),{immediate:!0,deep:!0}),s}(e),D=(0,l.computed)((function(){if(e.useGroup){var t={};return p.curPageList.forEach((function(e,r){e.__index__=r,t[e.group.groupId]||(t[e.group.groupId]={id:e.group.groupId,name:e.group.groupName,children:[]}),t[e.group.groupId].children.push(e)})),Object.keys(t).map((function(e){return t[e]}))}return p.curPageList})),F=function(){var t=e.saveKey,r=e.modelValue,a=e.displayKey,l=e.allowCreate,i=e.trigger;R.selectedTagList=[],R.localList=o(E),r.length&&(r.forEach((function(e){var r=R.localList.find((function(r){return e===r[t]}));if(void 0!==r)R.selectedTagList.push(r);else if(l&&!j.value.includes(e)){var o;R.selectedTagList.push((n(o={},t,e),n(o,a,e),o))}})),S.value||(R.localList=R.localList.filter((function(e){return!r.includes(e[t])})))),"focus"===i&&q()},q=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=e.searchKey,a=e.filterCallback,n=t.toLowerCase(),o=[];if("function"==typeof a)o=a(n,r,R.localList)||[];else if(Array.isArray(r)){var l=r.map((function(e){return R.localList.filter((function(t){return-1!==t[e].toLowerCase().indexOf(n)}))}));o=Array.from(new Set(l.flat()))}else o=R.localList.filter((function(e){return-1!==e[r].toLowerCase().indexOf(n)}));f(o)};(0,l.onMounted)((function(){F()}));var z=function(){v.value=""},_=function(){if(S.value)return 0;var e=A().findIndex((function(e){return"tagInputItem"===e.id}));return e>=0?e:0},M=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&e){var a=t;r&&(a=t.nextElementSibling||null),t.parentNode.insertBefore(e,a)}},H=function(t){var r=e.maxData,a=e.trigger,n=e.allowCreate;if(-1===r||r>j.value.length){var o=((null==t?void 0:t.target)?t.target:v).value,l=y(o);l?(q(o),m.value.style.width="".concat(l*h,"px")):"focus"===a&&q()}else B(),v.value="",c.isShow=!1;u.isEdit=!0,u.focusItemIndex=n?-1:0},B=function(){x.value=setTimeout((function(){var t,r,n=v.value;if(z(),u.isEdit=!1,S.value){var o=(t=R.tagListCache,r=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,o=[],l=!0,i=!1;try{for(r=r.call(e);!(l=(a=r.next()).done)&&(o.push(a.value),!t||o.length!==t);l=!0);}catch(e){i=!0,n=e}finally{try{l||null==r.return||r.return()}finally{if(i)throw n}}return o}}(t,r)||a(t,r)||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.")}())[0];n&&n===o&&R.selectedTagListCache.length?W(R.selectedTagListCache[0],"select"):Z("remove")}else if(e.allowAutoMatch&&n){var l=p.curPageList.find((function(t){return Array.isArray(e.searchKey)?e.searchKey.map((function(e){return t[e]})).includes(n):t[e.searchKey]===n}));l?G(l,"select"):e.allowCreate&&G(n,"custom")}c.isShow=!1,s("blur",n,j.value)}),50)},G=function(e,t,r){null==r||r.stopPropagation(),e&&!e.disabled&&(S.value&&(R.tagListCache=[],R.selectedTagListCache=[],R.selectedTagList=[]),W(e,t),Z("select"),z(),c.isShow=!1)},Z=function(e){s("change",j.value),s(e),s("update:modelValue",j.value)},U=function(){var e=w.value.clientHeight,t=w.value.getBoundingClientRect().y;(0,l.nextTick)((function(){var r=w.value.querySelector(".bk-selector-actived");if(r){var a=r.clientHeight,n=r.getBoundingClientRect().y;n<t&&(w.value.scrollTop=w.value.scrollTop-(t-n));var o=n+a-t;o>e&&(w.value.scrollTop=w.value.scrollTop+o-e)}}))},W=function(r,a){if(!(R.selectedTagList.length>=e.maxData&&-1!==e.maxData)){var i,s=e.separator,u=e.saveKey,c=e.displayKey,d=e.createTagValidator,p=_(),f=1,g=!1,v=function(e){return"function"!=typeof d||d(e)},y=function(e){return R.localList.find((function(t){return t[u]===e}))};if("custom"===a)if(s){var b,T=r.split(s),w=(T=T.filter((function(e){return(null==e?void 0:e.trim())&&!j.value.includes(e)&&v(e)}))).map((function(e){var t;return y(e)||(n(t={},u,e),n(t,c,e),t)}));T.length&&((b=R.selectedTagList).splice.apply(b,[p,0].concat(o(w))),f=w.length,g=!0)}else{var P="object"===t(r);if(void 0!==(i=(i=P?r[u]:r.trim()).replace(/\s+/g,""))&&!j.value.includes(i)&&v(i)){var x,I=y(i)||(P?r:(n(x={},u,i),n(x,c,i),x));R.selectedTagList.splice(p,0,I),g=!0}}else r&&(void 0===(i=r[u])||j.value.includes(i)||(R.selectedTagList.splice(p,0,r),g=!0));g&&(0,l.nextTick)((function(){for(var t=1;t<=f;t++){var r=A()[p+t];M(r,L.value)}m.value.style.width="".concat(h,"px"),S.value||(e.allowNextFocus&&O(),R.localList=R.localList.filter((function(e){return!j.value.includes(e[u])})))}))}},$=function(t,r){R.selectedTagList.splice(r,1);var a=E.some((function(r){return r===t[e.saveKey]}));(e.allowCreate&&a||!e.allowCreate)&&!S.value&&R.localList.push(t)};return Object.assign(Object.assign(Object.assign(Object.assign({popoverProps:c},(0,l.toRefs)(u)),(0,l.toRefs)(R)),(0,l.toRefs)(p)),{isShowPlaceholder:C,isShowClear:K,curInputValue:v,formatList:E,renderList:D,showTagClose:I,tagInputRef:m,bkTagSelectorRef:b,tagListRef:T,tagInputItemRef:L,selectorListRef:w,popoverRef:P,triggerClass:V,focusInputTrigger:O,activeClass:function(t,r){var a={"bk-selector-actived":!1,"bk-selector-selected":j.value.includes(t[e.saveKey])};return e.useGroup?a["bk-selector-actived"]=t.__index__===u.focusItemIndex:a["bk-selector-actived"]=r===u.focusItemIndex,a},handleInput:H,handleFocus:function(){var t;c.width=S.value?null===(t=b.value)||void 0===t?void 0:t.clientWidth:e.contentWidth},handleBlur:B,handleTagSelected:G,handleTagRemove:function(e,t,r){null==r||r.stopPropagation(),$(e,t),z(),Z("remove"),m.value.style.width="".concat(h,"px")},handleClear:function(t){t.stopPropagation();var r=R.selectedTagList;R.selectedTagList=[];var a,n=E.filter((function(t){return r.some((function(r){return r[e.saveKey]===t[e.saveKey]}))}));(!e.allowCreate||0===n.length)&&e.allowCreate||S.value||(a=R.localList).push.apply(a,o(n)),Z("removeAll")},tagFocus:function(t){e.disabled||(M(L.value,t.currentTarget,!0),m.value.style.width="".concat(h,"px"),c.isShow&&k())},handleKeydown:function(t){if(!p.isPageLoading){var r=t.target.value,a=y(r),n=_(),o=A();switch(t.code){case"ArrowUp":if(t.preventDefault(),!c.isShow)return;u.focusItemIndex=u.focusItemIndex-1,u.focusItemIndex=u.focusItemIndex<0?-1:u.focusItemIndex,-1===u.focusItemIndex&&(u.focusItemIndex=p.curPageList.length-1),U();break;case"ArrowDown":if(t.preventDefault(),!c.isShow)return;u.focusItemIndex=u.focusItemIndex+1,u.focusItemIndex=u.focusItemIndex>p.curPageList.length-1?p.curPageList.length:u.focusItemIndex,u.focusItemIndex===p.curPageList.length&&(u.focusItemIndex=0),U();break;case"ArrowLeft":if(u.isEdit=!0,!a){if(n<1)return;M(L.value,o[n-1]),O()}break;case"ArrowRight":if(u.isEdit=!0,!a){if(n===o.length-1)return;M(o[n+1],L.value),O()}break;case"Enter":case"NumpadEnter":!e.allowCreate&&c.isShow||e.allowCreate&&u.focusItemIndex>=0&&c.isShow?G(p.curPageList[u.focusItemIndex],"select",t):e.allowCreate&&G(v.value,"custom",t),t.preventDefault();break;case"Backspace":0===n||v.value||function(t,r){var a=A();M(L.value,a[t-1]),R.selectedTagList.splice(t-1,1),O();var n=E.some((function(t){return t===r[e.saveKey]}));(e.allowCreate&&n||!e.allowCreate)&&!S.value&&R.localList.push(r),m.value="".concat(h,"px"),Z("remove")}(n,R.selectedTagList[n-1])}}},handlePaste:function(t){if(t.preventDefault(),S.value)return!1;var r=e.maxData,a=e.saveKey,l=e.pasteFn,i=t.clipboardData.getData("text"),s=l?l(i):function(t){var r=[];return t.split(";").forEach((function(t){if(t.match(/^[a-zA-Z][a-zA-Z_]+/g)){var a,o=t.match(/^[a-zA-Z][a-zA-Z_]+/g).join("");r.push((n(a={},e.saveKey,o),n(a,e.displayKey,o),a))}})),r}(i),u=s.map((function(e){return e[a]}));if(u.length){var c=A(),d=_(),p=R.localList.map((function(e){return e[a]}));if(u=u.filter((function(e){return(null==e?void 0:e.trim())&&!j.value.includes(e)&&p.includes(e)})),-1!==r){var f=R.selectedTagList.length;if(f<r){var g=r-f;u.length>g&&(u=o(u.slice(0,g)))}else u=[]}var v,y=R.localList.filter((function(e){return u.includes(e[a])}));u.length&&((v=R.selectedTagList).splice.apply(v,[d,0].concat(o(y))),M(L.value,c[d]),m.value.style.width="".concat(h,"px"),R.localList=R.localList.filter((function(e){return!u.includes(e[a])})),Z("select"),O())}}})},render:function(){var e=this;return(0,l.createVNode)("div",{class:"bk-tag-input",ref:"bkTagSelectorRef",onClick:this.focusInputTrigger,onMouseenter:function(){return e.isHover=!0},onMouseleave:function(){return e.isHover=!1}},[(0,l.createVNode)(v(),{ref:"popoverRef",theme:"light",trigger:"manual",placement:"bottom-start",arrow:!1,width:this.popoverProps.width,isShow:this.popoverProps.isShow,modifiers:this.popoverProps.modifiers},{default:function(){return(0,l.createVNode)("div",{class:e.triggerClass},[(0,l.createVNode)("ul",{class:"tag-list",ref:"tagListRef",style:{marginLeft:"".concat(e.leftSpace,"px")}},[e.selectedTagList.map((function(t,r){var a={boundary:"window",theme:"light",distance:12,content:t[e.tooltipKey],disabled:!e.tooltipKey};return(0,l.withDirectives)((0,l.createVNode)("li",{class:"tag-item",onClick:e.tagFocus},[(0,l.createVNode)(b,{node:t,tpl:e.tagTpl,displayKey:e.displayKey},null),e.showTagClose?(0,l.createVNode)(d.Error,{class:"remove-tag",onClick:e.handleTagRemove.bind(e,t,r)},null):null]),[[(0,l.resolveDirective)("bk-tooltips"),a]])})),(0,l.withDirectives)((0,l.createVNode)("li",{ref:"tagInputItemRef",id:"tagInputItem",class:"tag-input-item",role:"input"},[(0,l.withDirectives)((0,l.createVNode)("input",{type:"text",class:"tag-input",ref:"tagInputRef","onUpdate:modelValue":function(t){return e.curInputValue=t},onInput:e.handleInput,onFocus:e.handleFocus,onBlur:e.handleBlur,onKeydown:e.handleKeydown,onPaste:e.handlePaste},null),[[l.vModelText,e.curInputValue]])]),[[l.vShow,e.isEdit]])]),(0,l.withDirectives)((0,l.createVNode)("p",{class:"placeholder"},[e.placeholder]),[[l.vShow,e.isShowPlaceholder]]),e.isShowClear?(0,l.createVNode)(d.Close,{class:"clear-icon",onClick:e.handleClear},null):null])},content:function(){return(0,l.createVNode)("div",{class:"bk-selector-list"},[(0,l.createVNode)("ul",{ref:"selectorListRef",style:{"max-height":"".concat(e.contentMaxHeight,"px")},class:"outside-ul"},[e.useGroup?e.renderList.map((function(t){return(0,l.createVNode)("li",{class:"bk-selector-group-item"},[(0,l.createVNode)("span",{class:"group-name"},[t.name,(0,l.createTextVNode)(" ("),t.children.length,(0,l.createTextVNode)(")")]),(0,l.createVNode)("ul",{class:"bk-selector-group-list-item"},[t.children.map((function(t,r){return(0,l.createVNode)("li",{class:["bk-selector-list-item",{disabled:t.disabled},e.activeClass(t,r)],onClick:e.handleTagSelected.bind(e,t,"select")},[(0,l.createVNode)(m,{node:t,displayKey:e.displayKey,tpl:e.tpl,searchKey:e.searchKey,searchKeyword:e.curInputValue},null)])}))])])})):e.renderList.map((function(t,r){return(0,l.createVNode)("li",{class:["bk-selector-list-item",{disabled:t.disabled},e.activeClass(t,r)],onClick:e.handleTagSelected.bind(e,t,"select")},[(0,l.createVNode)(m,{node:t,displayKey:e.displayKey,tpl:e.tpl,searchKey:e.searchKey,searchKeyword:e.curInputValue},null)])})),e.isPageLoading?(0,l.createVNode)("li",{class:"bk-selector-list-item loading"},[(0,l.createVNode)(f(),{theme:"primary",size:p.BkLoadingSize.Small},null)]):null])])}})])}}),L=(0,e.withInstall)(T)})(),c})()));
@@ -0,0 +1,47 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ node: import("vue-types").VueTypeValidableDef<{
3
+ [key: string]: any;
4
+ }> & {
5
+ default: () => {
6
+ [key: string]: any;
7
+ };
8
+ };
9
+ searchKey: import("vue-types").VueTypeDef<string | string[]>;
10
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
11
+ default: string;
12
+ };
13
+ searchKeyword: import("vue-types").VueTypeValidableDef<string> & {
14
+ default: string;
15
+ };
16
+ tpl: {
17
+ type: FunctionConstructor;
18
+ default: any;
19
+ };
20
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
+ node: import("vue-types").VueTypeValidableDef<{
22
+ [key: string]: any;
23
+ }> & {
24
+ default: () => {
25
+ [key: string]: any;
26
+ };
27
+ };
28
+ searchKey: import("vue-types").VueTypeDef<string | string[]>;
29
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
30
+ default: string;
31
+ };
32
+ searchKeyword: import("vue-types").VueTypeValidableDef<string> & {
33
+ default: string;
34
+ };
35
+ tpl: {
36
+ type: FunctionConstructor;
37
+ default: any;
38
+ };
39
+ }>>, {
40
+ displayKey: string;
41
+ tpl: Function;
42
+ node: {
43
+ [key: string]: any;
44
+ };
45
+ searchKeyword: string;
46
+ }>;
47
+ export default _default;
@@ -0,0 +1,209 @@
1
+ .bk-tag-input {
2
+ position: relative;
3
+ min-height: 32px;
4
+ }
5
+ .bk-tag-input .bk-popover,
6
+ .bk-tag-input .bk-popover-reference {
7
+ display: block;
8
+ }
9
+ .bk-tag-input .bk-tag-input-trigger {
10
+ position: relative;
11
+ display: flex;
12
+ min-height: 32px;
13
+ padding: 0 0 0 5px;
14
+ overflow: hidden;
15
+ font-size: 12px;
16
+ cursor: pointer;
17
+ background: white;
18
+ border: 1px solid #c4c6cc;
19
+ border-radius: 2px;
20
+ align-items: center;
21
+ justify-content: space-between;
22
+ }
23
+ .bk-tag-input .bk-tag-input-trigger.active {
24
+ border-color: #3a84ff;
25
+ }
26
+ .bk-tag-input .bk-tag-input-trigger.disabled {
27
+ cursor: not-allowed;
28
+ background: #fafbfd;
29
+ border-color: #dcdee5;
30
+ }
31
+ .bk-tag-input .bk-tag-input-trigger .tag-list {
32
+ display: inline-flex;
33
+ max-height: 135px;
34
+ padding: 0;
35
+ margin: 0;
36
+ overflow: auto;
37
+ align-items: center;
38
+ flex-wrap: wrap;
39
+ }
40
+ .bk-tag-input .bk-tag-input-trigger .tag-list > li {
41
+ display: inline-flex;
42
+ height: 22px;
43
+ margin: 4px 5px 4px 0;
44
+ overflow: hidden;
45
+ font-size: 12px;
46
+ border: solid 1px transparent;
47
+ border-radius: 2px;
48
+ align-items: center;
49
+ }
50
+ .bk-tag-input .bk-tag-input-trigger .tag-list > li.tag-item {
51
+ background: #f0f1f5;
52
+ border-color: #f0f1f5;
53
+ }
54
+ .bk-tag-input .bk-tag-input-trigger .tag-list .remove-tag {
55
+ flex-shrink: 0;
56
+ margin-right: 5px;
57
+ font-size: 14px;
58
+ line-height: 0;
59
+ }
60
+ .bk-tag-input .bk-tag-input-trigger .tag-list .tag {
61
+ max-width: 190px;
62
+ overflow: hidden;
63
+ text-overflow: ellipsis;
64
+ word-break: break-all;
65
+ white-space: nowrap;
66
+ flex: 1;
67
+ }
68
+ .bk-tag-input .bk-tag-input-trigger .tag-list .text {
69
+ padding: 0 5px;
70
+ line-height: 20px;
71
+ color: #63656e;
72
+ background-color: #f0f1f5;
73
+ border-radius: 2px;
74
+ box-sizing: border-box;
75
+ }
76
+ .bk-tag-input .bk-tag-input-trigger .tag-list .tag-input {
77
+ width: 10px;
78
+ height: 22px;
79
+ max-width: 295px;
80
+ padding: 0;
81
+ border: 0;
82
+ outline: none;
83
+ box-sizing: border-box;
84
+ }
85
+ .bk-tag-input .bk-tag-input-trigger .placeholder {
86
+ position: absolute;
87
+ top: 0;
88
+ left: 8px;
89
+ padding: 0;
90
+ margin: 0;
91
+ line-height: 30px;
92
+ color: #c4c6cc;
93
+ }
94
+ .bk-tag-input .bk-tag-input-trigger .clear-icon {
95
+ margin-right: 5px;
96
+ font-size: 14px;
97
+ line-height: 0;
98
+ color: #c4c6cc;
99
+ cursor: pointer;
100
+ }
101
+ .bk-tag-input .bk-tag-input-trigger .clear-icon:hover {
102
+ color: #979ba5;
103
+ }
104
+ .bk-tag-input .bk-popover-content {
105
+ padding: 0;
106
+ }
107
+ .bk-selector-list {
108
+ min-width: 150px;
109
+ }
110
+ .bk-selector-list .outside-ul {
111
+ max-height: 160px;
112
+ padding: 0;
113
+ padding: 6px 0;
114
+ margin: 0;
115
+ overflow-y: auto;
116
+ list-style: none;
117
+ background-color: white;
118
+ border: 1px solid #dcdee5;
119
+ border-radius: 2px;
120
+ }
121
+ .bk-selector-list .outside-ul::-webkit-scrollbar {
122
+ width: 6px;
123
+ height: 6px;
124
+ }
125
+ .bk-selector-list .outside-ul::-webkit-scrollbar-thumb {
126
+ min-height: 24px;
127
+ background-color: #dcdee5;
128
+ border-radius: 3px;
129
+ }
130
+ .bk-selector-list .bk-selector-group-item {
131
+ list-style: none;
132
+ }
133
+ .bk-selector-list .bk-selector-group-item .group-name {
134
+ padding-left: 11px;
135
+ font-size: 12px;
136
+ line-height: 32px;
137
+ color: #979ba5;
138
+ }
139
+ .bk-selector-list .bk-selector-group-list-item {
140
+ padding: 0;
141
+ margin: 0;
142
+ list-style: none;
143
+ }
144
+ .bk-selector-list .bk-selector-list-item {
145
+ position: relative;
146
+ width: 100%;
147
+ cursor: pointer;
148
+ background-color: white;
149
+ border-right: #c4c6cc;
150
+ border-left: #c4c6cc;
151
+ }
152
+ .bk-selector-list .bk-selector-list-item:first-child {
153
+ border-top: #c4c6cc;
154
+ }
155
+ .bk-selector-list .bk-selector-list-item:last-child {
156
+ border-bottom: #c4c6cc;
157
+ }
158
+ .bk-selector-list .bk-selector-list-item.bk-selector-selected {
159
+ background-color: #f4f6fa;
160
+ }
161
+ .bk-selector-list .bk-selector-list-item.bk-selector-selected .selected-icon {
162
+ display: inline-block;
163
+ }
164
+ .bk-selector-list .bk-selector-list-item.bk-selector-actived {
165
+ background-color: #f4f6fa;
166
+ }
167
+ .bk-selector-list .bk-selector-list-item:hover {
168
+ background-color: #eaf3ff;
169
+ }
170
+ .bk-selector-list .bk-selector-list-item.disabled {
171
+ cursor: not-allowed;
172
+ background: white;
173
+ }
174
+ .bk-selector-list .bk-selector-list-item.disabled .text {
175
+ color: #c4c6cc;
176
+ }
177
+ .bk-selector-list .bk-selector-list-item.loading {
178
+ padding: 5px 0 3px;
179
+ text-align: center;
180
+ }
181
+ .bk-selector-list .bk-selector-list-item .loading {
182
+ position: relative;
183
+ width: 100%;
184
+ height: 40px;
185
+ font-size: 14px;
186
+ cursor: default;
187
+ }
188
+ .bk-selector-list .bk-selector-list-item .text {
189
+ padding: 0 10px;
190
+ overflow: hidden;
191
+ font-size: 12px;
192
+ line-height: 32px;
193
+ color: #63656e;
194
+ text-overflow: ellipsis;
195
+ white-space: nowrap;
196
+ }
197
+ .bk-selector-list .bk-selector-list-item .bk-selector-tools {
198
+ position: absolute;
199
+ top: 10px;
200
+ right: 0;
201
+ display: none;
202
+ font-size: 12px;
203
+ }
204
+ .bk-selector-list .bk-selector-list-item .bk-selector-tools .bk-selector-list-icon {
205
+ margin-right: 14px;
206
+ }
207
+ .bk-selector-list .bk-selector-list-item .highlight-text {
208
+ color: #3a84ff;
209
+ }
@@ -0,0 +1,374 @@
1
+ import { Ref } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ modelValue: import("vue-types").VueTypeDef<string[]> & {
4
+ default: () => string[];
5
+ };
6
+ placeholder: import("vue-types").VueTypeValidableDef<string> & {
7
+ default: string;
8
+ } & {
9
+ default: string;
10
+ };
11
+ list: import("vue-types").VueTypeDef<{
12
+ [key: string]: any;
13
+ }[]> & {
14
+ default: () => {
15
+ [key: string]: any;
16
+ }[];
17
+ };
18
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
19
+ default: boolean;
20
+ } & {
21
+ default: boolean;
22
+ };
23
+ tooltipKey: import("vue-types").VueTypeValidableDef<string> & {
24
+ default: string;
25
+ } & {
26
+ default: string;
27
+ };
28
+ saveKey: import("vue-types").VueTypeValidableDef<string> & {
29
+ default: string;
30
+ } & {
31
+ default: string;
32
+ };
33
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
34
+ default: string;
35
+ } & {
36
+ default: string;
37
+ };
38
+ hasDeleteIcon: import("vue-types").VueTypeValidableDef<boolean> & {
39
+ default: boolean;
40
+ } & {
41
+ default: boolean;
42
+ };
43
+ clearable: import("vue-types").VueTypeValidableDef<boolean> & {
44
+ default: boolean;
45
+ } & {
46
+ default: boolean;
47
+ };
48
+ trigger: import("vue-types").VueTypeDef<string> & {
49
+ default: string;
50
+ };
51
+ searchKey: import("vue-types").VueTypeDef<string | string[]> & {
52
+ default: string | (() => string[]);
53
+ };
54
+ useGroup: import("vue-types").VueTypeValidableDef<boolean> & {
55
+ default: boolean;
56
+ } & {
57
+ default: boolean;
58
+ };
59
+ allowCreate: import("vue-types").VueTypeValidableDef<boolean> & {
60
+ default: boolean;
61
+ } & {
62
+ default: boolean;
63
+ };
64
+ maxData: import("vue-types").VueTypeValidableDef<number> & {
65
+ default: number;
66
+ } & {
67
+ default: number;
68
+ };
69
+ maxResult: import("vue-types").VueTypeValidableDef<number> & {
70
+ default: number;
71
+ } & {
72
+ default: number;
73
+ };
74
+ contentMaxHeight: import("vue-types").VueTypeValidableDef<number> & {
75
+ default: number;
76
+ } & {
77
+ default: number;
78
+ };
79
+ contentWidth: import("vue-types").VueTypeValidableDef<number> & {
80
+ default: number;
81
+ } & {
82
+ default: number;
83
+ };
84
+ separator: import("vue-types").VueTypeValidableDef<string> & {
85
+ default: string;
86
+ } & {
87
+ default: string;
88
+ };
89
+ allowNextFocus: import("vue-types").VueTypeValidableDef<boolean> & {
90
+ default: boolean;
91
+ } & {
92
+ default: boolean;
93
+ };
94
+ allowAutoMatch: import("vue-types").VueTypeValidableDef<boolean> & {
95
+ default: boolean;
96
+ } & {
97
+ default: boolean;
98
+ };
99
+ showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
100
+ default: boolean;
101
+ } & {
102
+ default: boolean;
103
+ };
104
+ leftSpace: import("vue-types").VueTypeValidableDef<number> & {
105
+ default: number;
106
+ } & {
107
+ default: number;
108
+ };
109
+ createTagValidator: {
110
+ type: import("vue").PropType<(tag: any) => boolean>;
111
+ default: any;
112
+ };
113
+ filterCallback: {
114
+ type: import("vue").PropType<(value: string, searchKey: string | string[], list: any[]) => any[]>;
115
+ default: any;
116
+ };
117
+ tagTpl: {
118
+ type: import("vue").PropType<(node: any, highlightKeyword: Function, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
119
+ [key: string]: any;
120
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
121
+ [key: string]: any;
122
+ }>>;
123
+ default: any;
124
+ };
125
+ tpl: {
126
+ type: import("vue").PropType<(node: any, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
127
+ [key: string]: any;
128
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
129
+ [key: string]: any;
130
+ }>>;
131
+ default: any;
132
+ };
133
+ pasteFn: {
134
+ type: import("vue").PropType<(value: string) => any[]>;
135
+ default: any;
136
+ };
137
+ }, {
138
+ isShowPlaceholder: import("vue").ComputedRef<boolean>;
139
+ isShowClear: import("vue").ComputedRef<boolean>;
140
+ curInputValue: Ref<string>;
141
+ formatList: any[];
142
+ renderList: import("vue").ComputedRef<any[]>;
143
+ showTagClose: import("vue").ComputedRef<boolean>;
144
+ tagInputRef: any;
145
+ bkTagSelectorRef: any;
146
+ tagListRef: any;
147
+ tagInputItemRef: any;
148
+ selectorListRef: any;
149
+ popoverRef: any;
150
+ triggerClass: import("vue").ComputedRef<{
151
+ 'bk-tag-input-trigger': boolean;
152
+ active: boolean;
153
+ disabled: boolean;
154
+ }>;
155
+ focusInputTrigger: (e?: MouseEvent) => void;
156
+ activeClass: (data: any, index: number) => {
157
+ 'bk-selector-actived': boolean;
158
+ 'bk-selector-selected': boolean;
159
+ };
160
+ handleInput: (e?: Event) => void;
161
+ handleFocus: () => void;
162
+ handleBlur: () => void;
163
+ handleTagSelected: (item: any, type: string, e?: Event) => void;
164
+ handleTagRemove: (data: any, index: number, e?: MouseEvent) => void;
165
+ handleClear: (e: MouseEvent) => void;
166
+ tagFocus: (e: MouseEvent) => void;
167
+ handleKeydown: (e: KeyboardEvent) => void;
168
+ handlePaste: (e: ClipboardEvent) => boolean;
169
+ curPage: Ref<number>;
170
+ totalSize: Ref<number>;
171
+ totalPage: Ref<number>;
172
+ pageSize: Ref<number>;
173
+ isPageLoading: Ref<boolean>;
174
+ curPageList: Ref<any[]>;
175
+ renderListPaged: Ref<any[]>;
176
+ localList: Ref<any[]>;
177
+ tagListCache: Ref<any[]>;
178
+ selectedTagList: Ref<any[]>;
179
+ selectedTagListCache: Ref<any[]>;
180
+ isEdit: Ref<boolean>;
181
+ isHover: Ref<boolean>;
182
+ focusItemIndex: Ref<number>;
183
+ popoverProps: {
184
+ isShow: boolean;
185
+ width: number;
186
+ modifiers: {
187
+ name: string;
188
+ options: {
189
+ offset: number[];
190
+ };
191
+ }[];
192
+ };
193
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "blur" | "change" | "update:modelValue" | "remove" | "removeAll")[], "select" | "blur" | "change" | "update:modelValue" | "remove" | "removeAll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
194
+ modelValue: import("vue-types").VueTypeDef<string[]> & {
195
+ default: () => string[];
196
+ };
197
+ placeholder: import("vue-types").VueTypeValidableDef<string> & {
198
+ default: string;
199
+ } & {
200
+ default: string;
201
+ };
202
+ list: import("vue-types").VueTypeDef<{
203
+ [key: string]: any;
204
+ }[]> & {
205
+ default: () => {
206
+ [key: string]: any;
207
+ }[];
208
+ };
209
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
210
+ default: boolean;
211
+ } & {
212
+ default: boolean;
213
+ };
214
+ tooltipKey: import("vue-types").VueTypeValidableDef<string> & {
215
+ default: string;
216
+ } & {
217
+ default: string;
218
+ };
219
+ saveKey: import("vue-types").VueTypeValidableDef<string> & {
220
+ default: string;
221
+ } & {
222
+ default: string;
223
+ };
224
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
225
+ default: string;
226
+ } & {
227
+ default: string;
228
+ };
229
+ hasDeleteIcon: import("vue-types").VueTypeValidableDef<boolean> & {
230
+ default: boolean;
231
+ } & {
232
+ default: boolean;
233
+ };
234
+ clearable: import("vue-types").VueTypeValidableDef<boolean> & {
235
+ default: boolean;
236
+ } & {
237
+ default: boolean;
238
+ };
239
+ trigger: import("vue-types").VueTypeDef<string> & {
240
+ default: string;
241
+ };
242
+ searchKey: import("vue-types").VueTypeDef<string | string[]> & {
243
+ default: string | (() => string[]);
244
+ };
245
+ useGroup: import("vue-types").VueTypeValidableDef<boolean> & {
246
+ default: boolean;
247
+ } & {
248
+ default: boolean;
249
+ };
250
+ allowCreate: import("vue-types").VueTypeValidableDef<boolean> & {
251
+ default: boolean;
252
+ } & {
253
+ default: boolean;
254
+ };
255
+ maxData: import("vue-types").VueTypeValidableDef<number> & {
256
+ default: number;
257
+ } & {
258
+ default: number;
259
+ };
260
+ maxResult: import("vue-types").VueTypeValidableDef<number> & {
261
+ default: number;
262
+ } & {
263
+ default: number;
264
+ };
265
+ contentMaxHeight: import("vue-types").VueTypeValidableDef<number> & {
266
+ default: number;
267
+ } & {
268
+ default: number;
269
+ };
270
+ contentWidth: import("vue-types").VueTypeValidableDef<number> & {
271
+ default: number;
272
+ } & {
273
+ default: number;
274
+ };
275
+ separator: import("vue-types").VueTypeValidableDef<string> & {
276
+ default: string;
277
+ } & {
278
+ default: string;
279
+ };
280
+ allowNextFocus: import("vue-types").VueTypeValidableDef<boolean> & {
281
+ default: boolean;
282
+ } & {
283
+ default: boolean;
284
+ };
285
+ allowAutoMatch: import("vue-types").VueTypeValidableDef<boolean> & {
286
+ default: boolean;
287
+ } & {
288
+ default: boolean;
289
+ };
290
+ showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
291
+ default: boolean;
292
+ } & {
293
+ default: boolean;
294
+ };
295
+ leftSpace: import("vue-types").VueTypeValidableDef<number> & {
296
+ default: number;
297
+ } & {
298
+ default: number;
299
+ };
300
+ createTagValidator: {
301
+ type: import("vue").PropType<(tag: any) => boolean>;
302
+ default: any;
303
+ };
304
+ filterCallback: {
305
+ type: import("vue").PropType<(value: string, searchKey: string | string[], list: any[]) => any[]>;
306
+ default: any;
307
+ };
308
+ tagTpl: {
309
+ type: import("vue").PropType<(node: any, highlightKeyword: Function, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
310
+ [key: string]: any;
311
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
312
+ [key: string]: any;
313
+ }>>;
314
+ default: any;
315
+ };
316
+ tpl: {
317
+ type: import("vue").PropType<(node: any, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
318
+ [key: string]: any;
319
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
320
+ [key: string]: any;
321
+ }>>;
322
+ default: any;
323
+ };
324
+ pasteFn: {
325
+ type: import("vue").PropType<(value: string) => any[]>;
326
+ default: any;
327
+ };
328
+ }>> & {
329
+ onChange?: (...args: any[]) => any;
330
+ onBlur?: (...args: any[]) => any;
331
+ onSelect?: (...args: any[]) => any;
332
+ "onUpdate:modelValue"?: (...args: any[]) => any;
333
+ onRemove?: (...args: any[]) => any;
334
+ onRemoveAll?: (...args: any[]) => any;
335
+ }, {
336
+ placeholder: string;
337
+ list: {
338
+ [key: string]: any;
339
+ }[];
340
+ separator: string;
341
+ disabled: boolean;
342
+ clearable: boolean;
343
+ showClearOnlyHover: boolean;
344
+ modelValue: string[];
345
+ trigger: string;
346
+ searchKey: string | string[];
347
+ displayKey: string;
348
+ tooltipKey: string;
349
+ saveKey: string;
350
+ hasDeleteIcon: boolean;
351
+ useGroup: boolean;
352
+ allowCreate: boolean;
353
+ maxData: number;
354
+ maxResult: number;
355
+ contentMaxHeight: number;
356
+ contentWidth: number;
357
+ allowNextFocus: boolean;
358
+ allowAutoMatch: boolean;
359
+ leftSpace: number;
360
+ createTagValidator: (tag: any) => boolean;
361
+ filterCallback: (value: string, searchKey: string | string[], list: any[]) => any[];
362
+ tagTpl: (node: any, highlightKeyword: Function, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
363
+ [key: string]: any;
364
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
365
+ [key: string]: any;
366
+ }>;
367
+ tpl: (node: any, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
368
+ [key: string]: any;
369
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
370
+ [key: string]: any;
371
+ }>;
372
+ pasteFn: (value: string) => any[];
373
+ }>;
374
+ export default _default;