bkui-vue 0.0.1-beta.35 → 0.0.1-beta.38

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