bkui-vue 0.0.1-beta.12 → 0.0.1-beta.122

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 (524) hide show
  1. package/README.md +31 -19
  2. package/dist/index.cjs.js +57 -0
  3. package/dist/index.esm.js +28538 -0
  4. package/dist/index.umd.js +57 -0
  5. package/dist/style.css +1 -4051
  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 +105 -0
  10. package/lib/affix/index.d.ts +143 -0
  11. package/lib/affix/index.js +1 -0
  12. package/lib/alert/alert.css +5 -3
  13. package/lib/alert/alert.d.ts +24 -15
  14. package/lib/alert/alert.less +7 -3
  15. package/lib/alert/alert.variable.css +22 -4
  16. package/lib/alert/index.d.ts +96 -60
  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 +48 -28
  20. package/lib/animate-number/index.js +1 -1
  21. package/lib/backtop/backtop.d.ts +28 -14
  22. package/lib/backtop/backtop.variable.css +17 -1
  23. package/lib/backtop/index.d.ts +111 -55
  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 +22 -6
  29. package/lib/badge/index.d.ts +202 -84
  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 +35 -2
  36. package/lib/breadcrumb/index.d.ts +118 -46
  37. package/lib/breadcrumb/index.js +1 -1
  38. package/lib/button/button-group.d.ts +3 -5
  39. package/lib/button/button.css +88 -44
  40. package/lib/button/button.d.ts +77 -27
  41. package/lib/button/button.less +81 -45
  42. package/lib/button/button.variable.css +105 -45
  43. package/lib/button/index.d.ts +194 -105
  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 +70 -2
  49. package/lib/card/index.d.ts +225 -69
  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 +232 -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 +32 -3
  66. package/lib/checkbox/common.d.ts +3 -3
  67. package/lib/checkbox/index.d.ts +136 -104
  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 +288 -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 +17 -1
  77. package/lib/collapse/collapse.d.ts +51 -22
  78. package/lib/collapse/collapse.less +24 -2
  79. package/lib/collapse/collapse.variable.css +119 -1
  80. package/lib/collapse/index.d.ts +127 -75
  81. package/lib/collapse/index.js +1 -1
  82. package/lib/collapse/utils.d.ts +11 -0
  83. package/lib/components.d.ts +25 -5
  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 +150 -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 +3 -2
  94. package/lib/date-picker/date-picker.d.ts +92 -137
  95. package/lib/date-picker/date-picker.less +5 -2
  96. package/lib/date-picker/date-picker.variable.css +20 -3
  97. package/lib/date-picker/index.d.ts +504 -276
  98. package/lib/date-picker/index.js +1 -1
  99. package/lib/date-picker/interface.d.ts +1 -1
  100. package/lib/date-picker/props.d.ts +118 -0
  101. package/lib/date-picker/utils.d.ts +1 -1
  102. package/lib/dialog/dialog.css +68 -16
  103. package/lib/dialog/dialog.d.ts +285 -52
  104. package/lib/dialog/dialog.less +43 -17
  105. package/lib/dialog/dialog.variable.css +68 -16
  106. package/lib/dialog/index.d.ts +665 -115
  107. package/lib/dialog/index.js +1 -1
  108. package/lib/directives/clickoutside.d.ts +3 -23
  109. package/lib/directives/index.js +2 -15
  110. package/lib/directives/index.js.LICENSE.txt +14 -0
  111. package/lib/directives/tooltips.d.ts +2 -1
  112. package/lib/dist.index.js +1 -0
  113. package/lib/divider/divider.d.ts +21 -13
  114. package/lib/divider/divider.variable.css +17 -1
  115. package/lib/divider/index.d.ts +84 -52
  116. package/lib/divider/index.js +1 -1
  117. package/lib/divider/props.d.ts +21 -0
  118. package/lib/dropdown/dropdown-item.d.ts +6 -5
  119. package/lib/dropdown/dropdown-menu.d.ts +6 -5
  120. package/lib/dropdown/dropdown.css +4 -0
  121. package/lib/dropdown/dropdown.d.ts +29 -15
  122. package/lib/dropdown/dropdown.less +5 -0
  123. package/lib/dropdown/dropdown.variable.css +21 -1
  124. package/lib/dropdown/index.d.ts +112 -72
  125. package/lib/dropdown/index.js +1 -1
  126. package/lib/exception/exception.d.ts +11 -9
  127. package/lib/exception/exception.variable.css +17 -1
  128. package/lib/exception/index.d.ts +44 -36
  129. package/lib/exception/index.js +1 -1
  130. package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
  131. package/lib/fixed-navbar/fixed-navbar.variable.css +17 -1
  132. package/lib/fixed-navbar/index.d.ts +96 -37
  133. package/lib/fixed-navbar/index.js +1 -1
  134. package/lib/form/compose-form-item.d.ts +16 -0
  135. package/lib/form/form-item.d.ts +61 -45
  136. package/lib/form/form.css +96 -10
  137. package/lib/form/form.d.ts +45 -40
  138. package/lib/form/form.less +136 -34
  139. package/lib/form/form.variable.css +198 -10
  140. package/lib/form/index.d.ts +303 -3
  141. package/lib/form/index.js +1 -1
  142. package/lib/form/type.d.ts +8 -6
  143. package/lib/form/validator.d.ts +1 -0
  144. package/lib/icon/angle-double-down-line.d.ts +4 -0
  145. package/lib/icon/angle-double-down-line.js +1 -0
  146. package/lib/icon/angle-double-left-line.d.ts +4 -0
  147. package/lib/icon/angle-double-left-line.js +1 -0
  148. package/lib/icon/angle-double-left.js +1 -0
  149. package/lib/icon/angle-double-right-line.d.ts +4 -0
  150. package/lib/icon/angle-double-right-line.js +1 -0
  151. package/lib/icon/angle-double-right.js +1 -0
  152. package/lib/icon/angle-double-up-line.d.ts +4 -0
  153. package/lib/icon/angle-double-up-line.js +1 -0
  154. package/lib/icon/angle-down-fill.d.ts +4 -0
  155. package/lib/icon/angle-down-fill.js +1 -0
  156. package/lib/icon/angle-down-line.js +1 -0
  157. package/lib/icon/angle-down.js +1 -0
  158. package/lib/icon/angle-left.js +1 -0
  159. package/lib/icon/angle-right.js +1 -0
  160. package/lib/icon/angle-up-fill.d.ts +4 -0
  161. package/lib/icon/angle-up-fill.js +1 -0
  162. package/lib/icon/angle-up.js +1 -0
  163. package/lib/icon/archive-fill.d.ts +4 -0
  164. package/lib/icon/archive-fill.js +1 -0
  165. package/lib/icon/arrows-left.d.ts +4 -0
  166. package/lib/icon/arrows-left.js +1 -0
  167. package/lib/icon/arrows-right.d.ts +4 -0
  168. package/lib/icon/arrows-right.js +1 -0
  169. package/lib/icon/audio-fill.d.ts +4 -0
  170. package/lib/icon/audio-fill.js +1 -0
  171. package/lib/icon/bk.d.ts +4 -0
  172. package/lib/icon/bk.js +1 -0
  173. package/lib/icon/circle.js +1 -0
  174. package/lib/icon/close-line.d.ts +4 -0
  175. package/lib/icon/close-line.js +1 -0
  176. package/lib/icon/close.js +1 -0
  177. package/lib/icon/code.js +1 -0
  178. package/lib/icon/cog-shape.js +1 -0
  179. package/lib/icon/collapse-left.js +1 -0
  180. package/lib/icon/copy.js +1 -0
  181. package/lib/icon/data-shape.d.ts +4 -0
  182. package/lib/icon/data-shape.js +1 -0
  183. package/lib/icon/del.d.ts +4 -0
  184. package/lib/icon/del.js +1 -0
  185. package/lib/icon/doc-fill.d.ts +4 -0
  186. package/lib/icon/doc-fill.js +1 -0
  187. package/lib/icon/done.js +1 -0
  188. package/lib/icon/down-shape.js +1 -0
  189. package/lib/icon/down-small.js +1 -0
  190. package/lib/icon/edit-line.d.ts +4 -0
  191. package/lib/icon/edit-line.js +1 -0
  192. package/lib/icon/ellipsis.d.ts +4 -0
  193. package/lib/icon/ellipsis.js +1 -0
  194. package/lib/icon/error.js +1 -0
  195. package/lib/icon/excel-fill.d.ts +4 -0
  196. package/lib/icon/excel-fill.js +1 -0
  197. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  198. package/lib/icon/exclamation-circle-shape.js +1 -0
  199. package/lib/icon/eye.js +1 -0
  200. package/lib/icon/folder-open.js +1 -0
  201. package/lib/icon/folder-shape-open.js +1 -0
  202. package/lib/icon/folder-shape.js +1 -0
  203. package/lib/icon/funnel.d.ts +4 -0
  204. package/lib/icon/funnel.js +1 -0
  205. package/lib/icon/help-document-fill.js +1 -0
  206. package/lib/icon/help-fill.js +1 -0
  207. package/lib/icon/help.js +1 -0
  208. package/lib/icon/image-fill.d.ts +4 -0
  209. package/lib/icon/image-fill.js +1 -0
  210. package/lib/icon/index.d.ts +31 -0
  211. package/lib/icon/index.js +1 -15
  212. package/lib/icon/info-line.js +1 -0
  213. package/lib/icon/info.js +1 -0
  214. package/lib/icon/left-shape.d.ts +4 -0
  215. package/lib/icon/left-shape.js +1 -0
  216. package/lib/icon/pdf-fill.d.ts +4 -0
  217. package/lib/icon/pdf-fill.js +1 -0
  218. package/lib/icon/play-shape.js +1 -0
  219. package/lib/icon/plus.js +1 -0
  220. package/lib/icon/ppt-fill.d.ts +4 -0
  221. package/lib/icon/ppt-fill.js +1 -0
  222. package/lib/icon/qq.d.ts +4 -0
  223. package/lib/icon/qq.js +1 -0
  224. package/lib/icon/right-shape.js +1 -0
  225. package/lib/icon/search.js +1 -0
  226. package/lib/icon/share.js +1 -0
  227. package/lib/icon/spinner.d.ts +4 -0
  228. package/lib/icon/spinner.js +1 -0
  229. package/lib/icon/success.js +1 -0
  230. package/lib/icon/switcher-loading.js +1 -0
  231. package/lib/icon/text-file.js +1 -0
  232. package/lib/icon/text-fill.d.ts +4 -0
  233. package/lib/icon/text-fill.js +1 -0
  234. package/lib/icon/tree-application-shape.js +1 -0
  235. package/lib/icon/unvisible.js +1 -0
  236. package/lib/icon/up-shape.d.ts +4 -0
  237. package/lib/icon/up-shape.js +1 -0
  238. package/lib/icon/upload.d.ts +4 -0
  239. package/lib/icon/upload.js +1 -0
  240. package/lib/icon/video-fill.d.ts +4 -0
  241. package/lib/icon/video-fill.js +1 -0
  242. package/lib/icon/warn.js +1 -0
  243. package/lib/icon/weixin.d.ts +4 -0
  244. package/lib/icon/weixin.js +1 -0
  245. package/lib/index.d.ts +1 -1
  246. package/lib/index.js +1 -0
  247. package/lib/input/index.d.ts +462 -196
  248. package/lib/input/index.js +1 -15
  249. package/lib/input/input.css +178 -13
  250. package/lib/input/input.d.ts +182 -52
  251. package/lib/input/input.less +171 -18
  252. package/lib/input/input.variable.css +195 -13
  253. package/lib/link/index.d.ts +102 -54
  254. package/lib/link/index.js +1 -1
  255. package/lib/link/link.d.ts +25 -13
  256. package/lib/link/link.variable.css +17 -1
  257. package/lib/loading/index.d.ts +190 -57
  258. package/lib/loading/index.js +1 -1
  259. package/lib/loading/loading.css +136 -98
  260. package/lib/loading/loading.d.ts +115 -20
  261. package/lib/loading/loading.less +84 -73
  262. package/lib/loading/loading.variable.css +153 -99
  263. package/lib/menu/index.d.ts +82 -71
  264. package/lib/menu/index.js +1 -1
  265. package/lib/menu/menu-group.d.ts +6 -5
  266. package/lib/menu/menu-item.d.ts +6 -5
  267. package/lib/menu/menu.css +8 -0
  268. package/lib/menu/menu.d.ts +16 -21
  269. package/lib/menu/menu.variable.css +25 -1
  270. package/lib/menu/submenu.css +3 -0
  271. package/lib/menu/submenu.d.ts +6 -5
  272. package/lib/menu/submenu.less +1 -1
  273. package/lib/menu/submenu.variable.css +20 -1
  274. package/lib/menu/utils.d.ts +1 -1
  275. package/lib/message/index.js +1 -1
  276. package/lib/message/message.css +16 -2
  277. package/lib/message/message.less +18 -1
  278. package/lib/message/message.variable.css +33 -3
  279. package/lib/message/messageConstructor.d.ts +68 -20
  280. package/lib/modal/index.d.ts +517 -68
  281. package/lib/modal/index.js +1 -1
  282. package/lib/modal/modal.css +25 -1
  283. package/lib/modal/modal.d.ts +191 -24
  284. package/lib/modal/modal.less +33 -1
  285. package/lib/modal/modal.variable.css +25 -1
  286. package/lib/modal/props.mixin.d.ts +77 -10
  287. package/lib/navigation/index.d.ts +310 -1
  288. package/lib/navigation/index.js +1 -1
  289. package/lib/navigation/navigation-title.d.ts +10 -7
  290. package/lib/navigation/navigation.css +1 -1
  291. package/lib/navigation/navigation.d.ts +50 -24
  292. package/lib/navigation/navigation.less +1 -1
  293. package/lib/navigation/navigation.variable.css +18 -2
  294. package/lib/notify/index.js +1 -1
  295. package/lib/notify/notify.css +17 -1
  296. package/lib/notify/notify.less +19 -1
  297. package/lib/notify/notify.variable.css +34 -2
  298. package/lib/notify/notifyConstructor.d.ts +83 -23
  299. package/lib/pagination/index.d.ts +395 -0
  300. package/lib/pagination/index.js +1 -0
  301. package/lib/pagination/pagination.css +179 -0
  302. package/lib/pagination/pagination.d.ts +220 -0
  303. package/lib/pagination/pagination.less +201 -0
  304. package/lib/pagination/pagination.variable.css +281 -0
  305. package/lib/pagination/type.d.ts +6 -0
  306. package/lib/pagination/use-limit.d.ts +8 -0
  307. package/lib/pagination/use-list.d.ts +8 -0
  308. package/lib/pagination/use-small-list.d.ts +5 -0
  309. package/lib/pagination/use-total.d.ts +5 -0
  310. package/lib/popover/index.d.ts +322 -137
  311. package/lib/popover/index.js +1 -1
  312. package/lib/popover/popover.css +26 -13
  313. package/lib/popover/popover.d.ts +122 -45
  314. package/lib/popover/popover.less +59 -45
  315. package/lib/popover/popover.variable.css +43 -14
  316. package/lib/popover/props.d.ts +104 -0
  317. package/lib/popover2/arrow.d.ts +2 -0
  318. package/lib/popover2/const.d.ts +10 -0
  319. package/lib/popover2/content.d.ts +24 -0
  320. package/lib/popover2/index.d.ts +495 -0
  321. package/lib/popover2/index.js +1 -0
  322. package/lib/popover2/popover2.css +25 -0
  323. package/lib/popover2/popover2.d.ts +209 -0
  324. package/lib/popover2/popover2.less +35 -0
  325. package/lib/popover2/popover2.variable.css +127 -0
  326. package/lib/popover2/props.d.ts +108 -0
  327. package/lib/popover2/reference.d.ts +2 -0
  328. package/lib/popover2/root.d.ts +16 -0
  329. package/lib/popover2/use-floating.d.ts +20 -0
  330. package/lib/popover2/use-popper-id.d.ts +7 -0
  331. package/lib/preset.d.ts +2 -3
  332. package/lib/preset.js +1 -0
  333. package/lib/process/index.d.ts +205 -0
  334. package/lib/process/index.js +1 -0
  335. package/lib/process/process.css +138 -0
  336. package/lib/process/process.d.ts +131 -0
  337. package/lib/process/process.less +178 -0
  338. package/lib/process/process.variable.css +240 -0
  339. package/lib/progress/index.d.ts +305 -135
  340. package/lib/progress/index.js +1 -1
  341. package/lib/progress/progress.css +8 -3
  342. package/lib/progress/progress.d.ts +89 -36
  343. package/lib/progress/progress.less +0 -4
  344. package/lib/progress/progress.variable.css +25 -4
  345. package/lib/radio/common.d.ts +5 -5
  346. package/lib/radio/index.d.ts +146 -97
  347. package/lib/radio/index.js +1 -1
  348. package/lib/radio/radio-button.d.ts +28 -20
  349. package/lib/radio/radio-group.d.ts +11 -10
  350. package/lib/radio/radio.css +8 -8
  351. package/lib/radio/radio.d.ts +27 -17
  352. package/lib/radio/radio.less +9 -9
  353. package/lib/radio/radio.variable.css +26 -10
  354. package/lib/radio/type.d.ts +10 -5
  355. package/lib/rate/index.d.ts +52 -40
  356. package/lib/rate/index.js +1 -1
  357. package/lib/rate/rate.d.ts +13 -10
  358. package/lib/rate/star.d.ts +33 -16
  359. package/lib/resize-layout/index.d.ts +336 -0
  360. package/lib/resize-layout/index.js +1 -0
  361. package/lib/resize-layout/resize-layout.css +189 -0
  362. package/lib/resize-layout/resize-layout.d.ts +127 -0
  363. package/lib/resize-layout/resize-layout.less +233 -0
  364. package/lib/resize-layout/resize-layout.variable.css +291 -0
  365. package/lib/select/common.d.ts +20 -22
  366. package/lib/select/index.d.ts +1063 -707
  367. package/lib/select/index.js +1 -15
  368. package/lib/select/option.d.ts +23 -19
  369. package/lib/select/optionGroup.d.ts +36 -97
  370. package/lib/select/select.css +223 -70
  371. package/lib/select/select.d.ts +376 -192
  372. package/lib/select/select.less +257 -127
  373. package/lib/select/select.variable.css +240 -71
  374. package/lib/select/selectTagInput.d.ts +72 -0
  375. package/lib/select/type.d.ts +38 -0
  376. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
  377. package/lib/shared/index.d.ts +26 -4
  378. package/lib/shared/index.js +1 -1
  379. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +33 -3
  380. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +10 -2
  381. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +50 -5
  382. package/lib/shared/token.d.ts +4 -0
  383. package/lib/shared/utils.d.ts +18 -0
  384. package/lib/shared/vue-types.d.ts +11 -7
  385. package/lib/sideslider/index.d.ts +424 -80
  386. package/lib/sideslider/index.js +1 -1
  387. package/lib/sideslider/sideslider.css +48 -3
  388. package/lib/sideslider/sideslider.d.ts +181 -30
  389. package/lib/sideslider/sideslider.less +65 -6
  390. package/lib/sideslider/sideslider.variable.css +65 -4
  391. package/lib/slider/index.d.ts +414 -1
  392. package/lib/slider/index.js +1 -15
  393. package/lib/slider/slider-button.d.ts +15 -7
  394. package/lib/slider/slider.d.ts +84 -42
  395. package/lib/slider/slider.variable.css +17 -1
  396. package/lib/steps/index.d.ts +162 -110
  397. package/lib/steps/index.js +1 -15
  398. package/lib/steps/steps.css +17 -3
  399. package/lib/steps/steps.d.ts +41 -28
  400. package/lib/steps/steps.less +27 -3
  401. package/lib/steps/steps.variable.css +34 -4
  402. package/lib/styles/index.d.ts +14 -0
  403. package/lib/styles/mixins/clearfix.css +8 -0
  404. package/lib/styles/mixins/clearfix.less +10 -0
  405. package/lib/styles/mixins/clearfix.variable.css +8 -0
  406. package/lib/styles/mixins/mixins.css +8 -0
  407. package/lib/styles/mixins/mixins.less +1 -0
  408. package/lib/styles/mixins/mixins.variable.css +8 -0
  409. package/lib/styles/themes/themes.less +25 -1
  410. package/lib/swiper/index.d.ts +181 -0
  411. package/lib/swiper/index.js +1 -0
  412. package/lib/swiper/swiper.css +91 -0
  413. package/lib/swiper/swiper.d.ts +65 -0
  414. package/lib/swiper/swiper.less +107 -0
  415. package/lib/swiper/swiper.variable.css +91 -0
  416. package/lib/switcher/index.d.ts +201 -137
  417. package/lib/switcher/index.js +1 -1
  418. package/lib/switcher/switcher.css +157 -135
  419. package/lib/switcher/switcher.d.ts +52 -36
  420. package/lib/switcher/switcher.less +211 -153
  421. package/lib/switcher/switcher.variable.css +174 -136
  422. package/lib/tab/index.d.ts +306 -282
  423. package/lib/tab/index.js +1 -1
  424. package/lib/tab/props.d.ts +194 -0
  425. package/lib/tab/tab-nav.d.ts +102 -87
  426. package/lib/tab/tab-panel.d.ts +53 -26
  427. package/lib/tab/tab.css +25 -1
  428. package/lib/tab/tab.d.ts +59 -51
  429. package/lib/tab/tab.less +31 -19
  430. package/lib/tab/tab.variable.css +42 -2
  431. package/lib/table/const.d.ts +49 -0
  432. package/lib/table/index.d.ts +498 -70
  433. package/lib/table/index.js +1 -1
  434. package/lib/table/plugins/head-filter.css +68 -0
  435. package/lib/table/plugins/head-filter.less +88 -0
  436. package/lib/table/plugins/head-filter.variable.css +170 -0
  437. package/lib/table/plugins/head-sort.css +22 -0
  438. package/lib/table/plugins/head-sort.less +28 -0
  439. package/lib/table/plugins/head-sort.variable.css +124 -0
  440. package/lib/table/plugins/settings.css +110 -0
  441. package/lib/table/plugins/settings.less +136 -0
  442. package/lib/table/plugins/settings.variable.css +212 -0
  443. package/lib/table/props.d.ts +204 -2
  444. package/lib/table/render.d.ts +76 -5
  445. package/lib/table/table.css +410 -15
  446. package/lib/table/table.d.ts +217 -14
  447. package/lib/table/table.less +246 -24
  448. package/lib/table/table.variable.css +428 -17
  449. package/lib/table/use-common.d.ts +55 -0
  450. package/lib/table/utils.d.ts +83 -1
  451. package/lib/tag/index.d.ts +165 -274
  452. package/lib/tag/index.js +1 -1
  453. package/lib/tag/tag.css +97 -0
  454. package/lib/tag/tag.d.ts +83 -53
  455. package/lib/tag/tag.less +110 -2
  456. package/lib/tag/tag.variable.css +114 -1
  457. package/lib/tag-input/common.d.ts +24 -0
  458. package/lib/tag-input/index.d.ts +894 -0
  459. package/lib/tag-input/index.js +1 -0
  460. package/lib/tag-input/list-tag-render.d.ts +47 -0
  461. package/lib/tag-input/tag-input.css +209 -0
  462. package/lib/tag-input/tag-input.d.ts +374 -0
  463. package/lib/tag-input/tag-input.less +251 -0
  464. package/lib/tag-input/tag-input.variable.css +311 -0
  465. package/lib/tag-input/tag-props.d.ts +131 -0
  466. package/lib/tag-input/tag-render.d.ts +38 -0
  467. package/lib/timeline/index.d.ts +129 -0
  468. package/lib/timeline/index.js +1 -0
  469. package/lib/timeline/timeline.css +235 -0
  470. package/lib/timeline/timeline.d.ts +81 -0
  471. package/lib/timeline/timeline.less +240 -0
  472. package/lib/timeline/timeline.variable.css +337 -0
  473. package/lib/transfer/const.d.ts +5 -0
  474. package/lib/transfer/index.d.ts +365 -0
  475. package/lib/transfer/index.js +1 -0
  476. package/lib/transfer/props.d.ts +54 -0
  477. package/lib/transfer/transfer.css +139 -0
  478. package/lib/transfer/transfer.d.ts +160 -0
  479. package/lib/transfer/transfer.less +144 -0
  480. package/lib/transfer/transfer.variable.css +241 -0
  481. package/lib/tree/constant.d.ts +43 -0
  482. package/lib/tree/index.d.ts +417 -94
  483. package/lib/tree/index.js +1 -1
  484. package/lib/tree/props.d.ts +168 -0
  485. package/lib/tree/tree.css +33 -15
  486. package/lib/tree/tree.d.ts +177 -31
  487. package/lib/tree/tree.less +49 -38
  488. package/lib/tree/tree.variable.css +135 -15
  489. package/lib/tree/use-empty.d.ts +6 -0
  490. package/lib/tree/use-node-action.d.ts +11 -0
  491. package/lib/tree/use-node-async.d.ts +5 -0
  492. package/lib/tree/use-node-attribute.d.ts +31 -0
  493. package/lib/tree/use-node-drag.d.ts +3 -0
  494. package/lib/tree/use-search.d.ts +11 -0
  495. package/lib/tree/use-tree-init.d.ts +15 -0
  496. package/lib/tree/util.d.ts +34 -57
  497. package/lib/upload/index.d.ts +2 -0
  498. package/lib/upload/index.js +1 -0
  499. package/lib/upload/props.d.ts +113 -0
  500. package/lib/upload/upload-list.d.ts +46 -0
  501. package/lib/upload/upload-trigger.d.ts +54 -0
  502. package/lib/upload/upload.css +374 -0
  503. package/lib/upload/upload.d.ts +252 -0
  504. package/lib/upload/upload.less +455 -0
  505. package/lib/upload/upload.type.d.ts +78 -0
  506. package/lib/upload/upload.variable.css +476 -0
  507. package/lib/upload/use-ajax-upload.d.ts +3 -0
  508. package/lib/upload/use-file-handler.d.ts +44 -0
  509. package/lib/virtual-render/index.d.ts +579 -0
  510. package/lib/virtual-render/index.js +1 -0
  511. package/lib/virtual-render/props.d.ts +167 -0
  512. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  513. package/lib/virtual-render/v-virtual-render.d.ts +6 -0
  514. package/lib/virtual-render/virtual-render.css +33 -0
  515. package/lib/virtual-render/virtual-render.d.ts +255 -0
  516. package/lib/virtual-render/virtual-render.less +43 -0
  517. package/lib/virtual-render/virtual-render.variable.css +33 -0
  518. package/lib/volar.components.d.ts +28 -0
  519. package/package.json +107 -84
  520. package/dist/bkui-vue.cjs.js +0 -9995
  521. package/dist/bkui-vue.esm.js +0 -9954
  522. package/dist/bkui-vue.umd.js +0 -9998
  523. package/lib/form/common.d.ts +0 -3
  524. package/lib/styles/index.js +0 -1
@@ -1,15 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("@bkui-vue/icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","@bkui-vue/icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e["@bkui-vue/icon/icons"])}(this,(function(e,t,o,n){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l={exports:{}};!function(e){e.exports=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.default=e.exports,e.exports.__esModule=!0}(l);var a=r(l.exports);
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var i={type:o.PropTypes.string.def("text"),clearable:o.PropTypes.bool,disabled:o.PropTypes.bool,readonly:o.PropTypes.bool,placeholder:o.PropTypes.string,prefixIcon:o.PropTypes.string,suffixIcon:o.PropTypes.string,suffix:o.PropTypes.string,prefix:o.PropTypes.string,step:o.PropTypes.integer,max:o.PropTypes.integer,min:o.PropTypes.integer,maxlength:o.PropTypes.integer,showWordLimit:o.PropTypes.bool,showControl:o.PropTypes.bool.def(!0),precision:o.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]),size:o.PropTypes.size()},u=t.defineComponent({name:"BkInput",inheritAttrs:!1,emits:["update:modelValue","focus","blur","change","input"],props:i,setup:function(e,r){var l=t.ref(!1),i="bk-input",u=r.attrs,s=u.class,p=u.style,c=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o}(u,["class","style"]),d=t.computed((function(){var t;return o.classes((a(t={},"".concat(i,"--").concat(e.size),!!e.size),a(t,"is-focused",l.value),a(t,"is-readonly",e.readonly),a(t,"is-disabled",e.disabled),a(t,"".concat(s),!!s),t),i)})),f={search:function(){return t.createVNode(n.Search,null,null)},password:function(){return t.createVNode(n.Eye,{onClick:k},null)}},m=I("suffix-icon"),v=t.computed((function(){var o=f[e.type];return x.value?t.createVNode(n.Unvisible,{onClick:k,class:m},null):o?t.createVNode(o,{class:m},null):null})),y=t.computed((function(){return"number"===e.type})),b=t.computed((function(){return Math.floor(e.maxlength)})),x=t.ref(!1);function g(){r.emit("update:modelValue",""),r.emit("change","")}function h(e){l.value=!0,r.emit("focus",e)}function V(e){l.value=!1,r.emit("blur",e)}function P(e){r.emit("update:modelValue",y.value?+e.target.value:e.target.value),r.emit("input",e.target.value)}function T(e){r.emit("change",e.target.value,e)}function N(t){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Number.isInteger(e.precision)?e.precision:0,r=parseFloat(e.modelValue.toString()),l=Number.isInteger(t)?t:1,a=r+(o?l:-1*l);return Number.isInteger(e.max)&&(a=Math.min(a,e.max)),Number.isInteger(e.min)&&(a=Math.max(a,e.min)),+a.toFixed(n)}function w(){var t=N(parseInt(String(e.step),10));r.emit("update:modelValue",t)}function O(){var t=N(parseInt(String(e.step),10),!1);r.emit("update:modelValue",t)}function I(e){return"".concat(i,"--").concat(e)}function k(){x.value=!x.value}return function(){var o,l,a,u,s,f;return t.createVNode("div",{class:d.value,style:p},[null!==(a=null===(l=null===(o=r.slots)||void 0===o?void 0:o.prefix)||void 0===l?void 0:l.call(o))&&void 0!==a?a:e.prefix&&t.createVNode("div",{class:I("prefix-area")},[t.createVNode("span",{class:I("prefix-area--text")},[e.prefix])]),t.createVNode("input",t.mergeProps(c,{class:"".concat(i,"--text"),value:e.modelValue,type:x.value&&"password"===e.type?"text":e.type,maxlength:e.maxlength,step:e.step,max:e.max,min:e.min,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled,onInput:P,onFocus:h,onBlur:V,onChange:T}),null),e.clearable&&!!e.modelValue&&t.createVNode(n.Close,{onClick:g,class:m},null),v.value,"number"==typeof e.maxlength&&e.showWordLimit&&t.createVNode("p",{class:I("max-length")},[e.modelValue.toString().length,t.createTextVNode("/"),t.createVNode("span",null,[b.value])]),y.value&&e.showControl&&t.createVNode("div",{class:I("number-control")},[t.createVNode(n.DownSmall,{onClick:w},null),t.createVNode(n.DownSmall,{onClick:O},null)]),null!==(f=null===(s=null===(u=r.slots)||void 0===u?void 0:u.suffix)||void 0===s?void 0:s.call(u))&&void 0!==f?f:e.suffix&&t.createVNode("div",{class:I("suffix-area")},[t.createVNode("span",{class:I("suffix-area--text")},[e.suffix])])])}}}),s=o.withInstall(u);e.default=s,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon")):t(e["../shared"],e.vue,e["../icon"]);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,((e,t,r)=>(()=>{"use strict";var o={6870:e=>{e.exports=r},4212:t=>{t.exports=e},748:e=>{e.exports=t}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return o[e](r,r.exports,a),r.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{a.r(l),a.d(l,{default:()=>v});var e=a(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=a(748);Object.create,Object.create;var n,i,u=a(6870),s={type:e.PropTypes.string.def("text"),clearable:e.PropTypes.bool,disabled:e.PropTypes.bool,readonly:e.PropTypes.bool,placeholder:e.PropTypes.string.def("Enter"),prefixIcon:e.PropTypes.string,suffixIcon:e.PropTypes.string,suffix:e.PropTypes.string,prefix:e.PropTypes.string,step:e.PropTypes.integer,max:e.PropTypes.integer,min:e.PropTypes.integer,maxlength:e.PropTypes.integer,behavior:e.PropTypes.commonType(["simplicity","normal"]).def("normal"),showWordLimit:e.PropTypes.bool,showControl:e.PropTypes.bool.def(!0),showClearOnlyHover:e.PropTypes.bool.def(!1),precision:e.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),size:e.PropTypes.size(),rows:e.PropTypes.number};function c(e,t){return{value:e,evt:t}}function p(e){return e}!function(e){e.UPDATE="update:modelValue",e.FOCUS="focus",e.BLUR="blur",e.CHANGE="change",e.CLEAR="clear",e.INPUT="input",e.KEYPRESS="keypress",e.KEYDOWN="keydown",e.KEYUP="keyup",e.ENTER="enter",e.PASTE="paste",e.COMPOSITIONSTART="compositionstart",e.COMPOSITIONUPDATE="compositionupdate",e.COMPOSITIONEND="compositionend"}(i||(i={}));var d=(r(n={},i.UPDATE,c),r(n,i.FOCUS,(function(e){return e})),r(n,i.BLUR,(function(e){return e})),r(n,i.CHANGE,c),r(n,i.CLEAR,(function(){return!0})),r(n,i.INPUT,c),r(n,i.KEYPRESS,c),r(n,i.KEYDOWN,c),r(n,i.KEYUP,c),r(n,i.ENTER,c),r(n,i.PASTE,c),r(n,i.COMPOSITIONSTART,p),r(n,i.COMPOSITIONUPDATE,p),r(n,i.COMPOSITIONEND,p),n);const f=(0,o.defineComponent)({name:"Input",inheritAttrs:!1,props:s,emits:d,setup:function(n,a){var l=(0,e.useFormItem)(),s=(0,o.ref)(!1),c=(0,o.ref)(!1),p=(0,o.computed)((function(){return"textarea"===n.type})),d=(0,o.computed)((function(){return p.value?"bk-textarea":"bk-input"})),f=a.attrs,v=f.class,m=f.style,y=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(f,["class","style"]),b=(0,o.ref)(),P=(0,o.computed)((function(){var t;return(0,e.classes)((r(t={},"".concat(d.value,"--").concat(n.size),!!n.size),r(t,"is-focused",s.value),r(t,"is-readonly",n.readonly),r(t,"is-disabled",n.disabled),r(t,"is-simplicity","simplicity"===n.behavior),r(t,"".concat(v),!!v),t),d.value)})),T={search:function(){return(0,o.createVNode)(u.Search,null,null)},password:function(){return(0,o.createVNode)(u.Eye,{onClick:B},null)}},x=z("suffix-icon"),g=(0,o.computed)((function(){var e=T[n.type];return E.value?(0,o.createVNode)(u.Unvisible,{onClick:B,class:x},null):e?(0,o.createVNode)(e,{class:x},null):null})),h=(0,o.computed)((function(){return"number"===n.type})),N=(0,o.computed)((function(){return Math.floor(n.maxlength)})),E=(0,o.ref)(!1),O=(0,o.computed)((function(){return(0,e.classes)({"show-clear-only-hover":n.showClearOnlyHover},x)})),S=(0,o.computed)((function(){return(0,e.classes)({"is-disabled":n.disabled||n.modelValue>=n.max})})),C=(0,o.computed)((function(){return(0,e.classes)({"is-disabled":n.disabled||n.modelValue<=n.min})}));function I(){var e,t=h.value?n.min:"";a.emit(i.UPDATE,t),a.emit(i.CHANGE,t),a.emit(i.CLEAR),null===(e=null==l?void 0:l.validate)||void 0===e||e.call(l,"change")}function A(e){s.value=!0,a.emit(i.FOCUS,e)}function w(e){var t;if(s.value=!1,a.emit(i.BLUR,e),h.value&&(e.target.value>n.max||e.target.value<n.min)){var r=e.target.value>n.max?n.max:n.min;a.emit(i.UPDATE,r),a.emit(i.CHANGE,r)}null===(t=null==l?void 0:l.validate)||void 0===t||t.call(l,"blur")}a.expose({focus:function(){b.value.focus()},clear:I});var U,V,j=[i.KEYUP,i.KEYDOWN,i.KEYPRESS,i.PASTE,i.CHANGE,i.INPUT].map((function(e){return function(t){var r;e!==i.KEYDOWN||"Enter"!==t.code&&"Enter"!==t.key&&13!==t.keyCode||a.emit(i.ENTER,t.target.value,t),c.value&&[i.INPUT,i.CHANGE].some((function(t){return e===t}))||(e===i.INPUT&&a.emit(i.UPDATE,h.value?+t.target.value:t.target.value),a.emit(e,t.target.value,t),e===i.INPUT&&(null===(r=null==l?void 0:l.validate)||void 0===r||r.call(l,"change")))}})),D=(V=6,function(e){if(Array.isArray(e))return e}(U=j)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a=[],l=!0,i=!1;try{for(r=r.call(e);!(l=(o=r.next()).done)&&(a.push(o.value),!t||a.length!==t);l=!0);}catch(e){i=!0,n=e}finally{try{l||null==r.return||r.return()}finally{if(i)throw n}}return a}}(U,V)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,r):void 0}}(U,V)||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.")}()),k=D[0],R=D[1],K=D[2],M=D[3],Y=D[4],H=D[5];function L(){c.value=!0}function F(e){c.value=!1,H(e)}function q(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=parseInt(String(e),10),o=Number.isInteger(n.precision)?n.precision:0,a=parseFloat(n.modelValue.toString()),l=Number.isInteger(r)?r:1,i=a+(t?l:-1*l);return Number.isInteger(n.max)&&(i=Math.min(i,n.max)),Number.isInteger(n.min)&&(i=Math.max(i,n.min)),+i.toFixed(o)}function G(){if(!n.disabled){var e=q(n.step);a.emit(i.UPDATE,e)}}function W(){if(!n.disabled){var e=q(n.step,!1);a.emit(i.UPDATE,e)}}function z(e){return"".concat(d.value,"--").concat(e)}function B(){E.value=!E.value}var _=(0,o.computed)((function(){return{value:n.modelValue,maxlength:n.maxlength,placeholder:n.placeholder,readonly:n.readonly,disabled:n.disabled,onInput:H,onFocus:A,onBlur:w,onPaste:M,onChange:Y,onKeypress:K,onKeydown:R,onKeyup:k,onCompositionstart:L,onCompositionend:F}}));return function(){var e,t,r,l,i,s;return(0,o.createVNode)("div",{class:P.value,style:m},[null!==(r=null===(t=null===(e=a.slots)||void 0===e?void 0:e.prefix)||void 0===t?void 0:t.call(e))&&void 0!==r?r:n.prefix&&(0,o.createVNode)("div",{class:z("prefix-area")},[(0,o.createVNode)("span",{class:z("prefix-area--text")},[n.prefix])]),p.value?(0,o.createVNode)("textarea",(0,o.mergeProps)({ref:b,spellcheck:!1},y,_.value,{rows:n.rows}),null):(0,o.createVNode)("input",(0,o.mergeProps)({spellcheck:!1},y,{ref:b,class:"".concat(d.value,"--text"),type:E.value&&"password"===n.type?"text":n.type,step:n.step,max:n.max,min:n.min},_.value),null),!p.value&&n.clearable&&!!n.modelValue&&(0,o.createVNode)(u.Close,{onClick:I,class:O.value},null),g.value,"number"==typeof n.maxlength&&(n.showWordLimit||p.value)&&(0,o.createVNode)("p",{class:z("max-length")},[n.modelValue.toString().length,(0,o.createTextVNode)("/"),(0,o.createVNode)("span",null,[N.value])]),h.value&&n.showControl&&(0,o.createVNode)("div",{class:z("number-control")},[(0,o.createVNode)(u.DownSmall,{class:S.value,onClick:G},null),(0,o.createVNode)(u.DownSmall,{class:C.value,onClick:W},null)]),null!==(s=null===(i=null===(l=a.slots)||void 0===l?void 0:l.suffix)||void 0===i?void 0:i.call(l))&&void 0!==s?s:n.suffix&&(0,o.createVNode)("div",{class:z("suffix-area")},[(0,o.createVNode)("span",{class:z("suffix-area--text")},[n.suffix])])])}}}),v=(0,e.withInstall)(f)})(),l})()));
@@ -19,45 +19,196 @@
19
19
  .bk-fade-transtion .bk-fade-leave-to {
20
20
  opacity: 0;
21
21
  }
22
+ .clearfix-style::after {
23
+ display: block;
24
+ height: 0;
25
+ clear: both;
26
+ font-size: 0;
27
+ content: '';
28
+ visibility: hidden;
29
+ }
30
+ .bk-textarea {
31
+ display: inline-flex;
32
+ width: 100%;
33
+ min-height: 70px;
34
+ font-size: 12px;
35
+ line-height: 20px;
36
+ color: #63656e;
37
+ background-color: white;
38
+ border: 1px solid #c4c6cc;
39
+ border-radius: 2px;
40
+ box-sizing: border-box;
41
+ transition: all 0.3s;
42
+ flex-direction: column;
43
+ }
44
+ .bk-textarea ::placeholder {
45
+ color: #c4c6cc;
46
+ }
47
+ .bk-textarea.is-disabled,
48
+ .bk-textarea.is-readonly {
49
+ background-color: #fafbfd;
50
+ border-color: #dcdee5;
51
+ }
52
+ .bk-textarea.is-disabled .bk-input--prefix-area,
53
+ .bk-textarea.is-readonly .bk-input--prefix-area,
54
+ .bk-textarea.is-disabled .bk-input--suffix-area,
55
+ .bk-textarea.is-readonly .bk-input--suffix-area,
56
+ .bk-textarea.is-disabled .bk-input--suffix-icon,
57
+ .bk-textarea.is-readonly .bk-input--suffix-icon {
58
+ background-color: #fafbfd;
59
+ }
60
+ .bk-textarea.is-disabled input,
61
+ .bk-textarea.is-readonly input,
62
+ .bk-textarea.is-disabled textarea,
63
+ .bk-textarea.is-readonly textarea {
64
+ cursor: not-allowed;
65
+ background-color: #fafbfd;
66
+ opacity: 1;
67
+ }
68
+ .bk-textarea.is-readonly input,
69
+ .bk-textarea.is-readonly textarea {
70
+ cursor: auto;
71
+ }
72
+ .bk-textarea > textarea {
73
+ width: 100%;
74
+ flex: 1;
75
+ padding: 5px 10px;
76
+ line-height: 1.5;
77
+ text-align: left;
78
+ vertical-align: middle;
79
+ border: 0;
80
+ outline: none;
81
+ resize: none;
82
+ }
83
+ .bk-textarea--max-length {
84
+ padding-right: 10px;
85
+ margin: 0;
86
+ margin-left: auto;
87
+ font-size: 12px;
88
+ text-align: right;
89
+ transform: scale(0.8);
90
+ justify-content: flex-end;
91
+ }
92
+ .bk-textarea--max-length span {
93
+ color: #979ba5;
94
+ }
95
+ .bk-textarea.is-focused:not(.is-readonly) {
96
+ border-color: #3a84ff;
97
+ outline: 0;
98
+ box-shadow: 0px 0px 3px 0px #a3c5fd;
99
+ }
22
100
  .bk-input {
23
- display: flex;
101
+ display: inline-flex;
24
102
  align-items: stretch;
103
+ width: 100%;
25
104
  height: 32px;
26
105
  font-size: 12px;
27
106
  border: 1px solid #c4c6cc;
28
107
  border-radius: 2px;
29
108
  transition: all 0.3s;
30
109
  }
110
+ .bk-input ::placeholder {
111
+ color: #c4c6cc;
112
+ }
113
+ .bk-input.is-disabled,
114
+ .bk-input.is-readonly {
115
+ background-color: #fafbfd;
116
+ border-color: #dcdee5;
117
+ }
118
+ .bk-input.is-disabled .bk-input--prefix-area,
119
+ .bk-input.is-readonly .bk-input--prefix-area,
120
+ .bk-input.is-disabled .bk-input--suffix-area,
121
+ .bk-input.is-readonly .bk-input--suffix-area,
122
+ .bk-input.is-disabled .bk-input--suffix-icon,
123
+ .bk-input.is-readonly .bk-input--suffix-icon {
124
+ background-color: #fafbfd;
125
+ }
126
+ .bk-input.is-disabled input,
127
+ .bk-input.is-readonly input,
128
+ .bk-input.is-disabled textarea,
129
+ .bk-input.is-readonly textarea {
130
+ cursor: not-allowed;
131
+ background-color: #fafbfd;
132
+ opacity: 1;
133
+ }
134
+ .bk-input.is-readonly input,
135
+ .bk-input.is-readonly textarea {
136
+ cursor: auto;
137
+ }
138
+ .bk-input:hover:not(.is-disabled) {
139
+ border-color: #979ba5;
140
+ }
141
+ .bk-input:hover:not(.is-disabled) .show-clear-only-hover {
142
+ display: block;
143
+ }
144
+ .bk-input.is-simplicity {
145
+ background-color: transparent;
146
+ border-color: transparent;
147
+ border-bottom-color: #c4c6cc;
148
+ }
149
+ .bk-input.is-simplicity:hover:not(.is-disabled) {
150
+ border-color: transparent;
151
+ border-bottom-color: #c4c6cc;
152
+ box-shadow: none;
153
+ }
154
+ .bk-input.is-simplicity:hover:not(.is-disabled) .bk-input--text {
155
+ background-color: #f5f7fa;
156
+ }
31
157
  .bk-input--suffix-icon {
158
+ display: flex;
159
+ height: 100%;
32
160
  padding-right: 10px;
33
161
  font-size: 16px;
34
162
  color: #c4c6cc;
163
+ background-color: white;
164
+ align-items: center;
35
165
  align-self: center;
36
166
  }
167
+ .bk-input--suffix-icon.show-clear-only-hover {
168
+ display: none;
169
+ }
37
170
  .bk-input--large {
38
171
  height: 38px;
172
+ font-size: 14px;
173
+ }
174
+ .bk-input--large .bk-input--max-length {
39
175
  font-size: 16px;
40
176
  }
177
+ .bk-input--large .bk-input--number-control span:first-child {
178
+ margin-bottom: 4px;
179
+ }
41
180
  .bk-input--small {
42
181
  height: 26px;
43
182
  font-size: 12px;
44
183
  }
184
+ .bk-input--small .bk-input--max-length {
185
+ font-size: 12px;
186
+ }
187
+ .bk-input--default {
188
+ font-size: 12px;
189
+ }
190
+ .bk-input--default .bk-input--max-length {
191
+ font-size: 12px;
192
+ }
45
193
  .bk-input.is-focused:not(.is-readonly) {
46
194
  border-color: #3a84ff;
47
195
  outline: 0;
48
196
  box-shadow: 0px 0px 3px 0px #a3c5fd;
49
197
  }
50
- .bk-input.is-disabled {
51
- cursor: not-allowed;
52
- background-color: #fafbfd;
53
- opacity: 1;
198
+ .bk-input.is-focused:not(.is-readonly).is-simplicity {
199
+ border-color: transparent;
200
+ border-bottom-color: #3a84ff;
201
+ box-shadow: none;
202
+ }
203
+ .bk-input.is-focused:not(.is-readonly).is-simplicity .bk-input--text {
204
+ background-color: #f5f7fa;
54
205
  }
55
206
  .bk-input--prefix-area,
56
207
  .bk-input--suffix-area {
57
208
  display: flex;
58
209
  padding: 0 10px;
59
210
  color: #63656e;
60
- background-color: #f4f6fa;
211
+ background-color: #f5f7fa;
61
212
  border-right: 1px solid #c4c6cc;
62
213
  align-items: center;
63
214
  }
@@ -68,13 +219,15 @@
68
219
  .bk-input--max-length {
69
220
  align-self: center;
70
221
  padding-right: 10px;
222
+ font-size: 12px;
223
+ transform: scale(0.8);
71
224
  }
72
225
  .bk-input--max-length span {
73
226
  color: #979ba5;
74
227
  }
75
228
  .bk-input--text {
229
+ width: 100%;
76
230
  padding: 0 10px;
77
- font-size: 12px;
78
231
  line-height: 1;
79
232
  color: #63656e;
80
233
  background-color: white;
@@ -91,12 +244,12 @@
91
244
  .bk-input--text[type='search']::-webkit-search-results-decoration {
92
245
  appearance: none;
93
246
  }
94
- .bk-input--text [type=search]::-ms-clear {
247
+ .bk-input--text [type='search']::-ms-clear {
95
248
  display: none;
96
249
  width: 0;
97
250
  height: 0;
98
251
  }
99
- .bk-input--text [type=search]::-ms-reveal {
252
+ .bk-input--text [type='search']::-ms-reveal {
100
253
  display: none;
101
254
  width: 0;
102
255
  height: 0;
@@ -110,16 +263,28 @@
110
263
  color: #c4c6cc;
111
264
  }
112
265
  .bk-input--number-control {
266
+ display: flex;
113
267
  width: 26px;
114
268
  height: 100%;
269
+ padding: 4px 0;
115
270
  font-size: 0;
271
+ user-select: none;
116
272
  flex-direction: column;
273
+ align-items: center;
117
274
  }
118
275
  .bk-input--number-control span {
119
- display: block;
120
- height: 50%;
276
+ display: flex;
121
277
  overflow: hidden;
122
- color: #c4c6cc;
278
+ line-height: 1;
279
+ color: #979ba5;
280
+ text-align: center;
281
+ cursor: pointer;
282
+ background-color: #f5f7fa;
283
+ flex: 1;
284
+ align-items: center;
285
+ }
286
+ .bk-input--number-control span.is-disabled {
287
+ cursor: not-allowed;
123
288
  }
124
289
  .bk-input--number-control svg {
125
290
  font-size: 16px;
@@ -128,5 +293,5 @@
128
293
  transform: rotate(180deg);
129
294
  }
130
295
  .bk-input--number-control span:hover {
131
- background-color: #f4f6fa;
296
+ background-color: #eaebf0;
132
297
  }
@@ -16,6 +16,8 @@ export declare const inputType: {
16
16
  };
17
17
  placeholder: import("vue-types").VueTypeValidableDef<string> & {
18
18
  default: string;
19
+ } & {
20
+ default: string;
19
21
  };
20
22
  prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
21
23
  default: string;
@@ -41,6 +43,9 @@ export declare const inputType: {
41
43
  maxlength: import("vue-types").VueTypeDef<number> & {
42
44
  default: number;
43
45
  };
46
+ behavior: import("vue-types").VueTypeDef<string> & {
47
+ default: string;
48
+ };
44
49
  showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
45
50
  default: boolean;
46
51
  };
@@ -49,6 +54,11 @@ export declare const inputType: {
49
54
  } & {
50
55
  default: boolean;
51
56
  };
57
+ showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
58
+ default: boolean;
59
+ } & {
60
+ default: boolean;
61
+ };
52
62
  precision: import("vue-types").VueTypeValidableDef<number> & {
53
63
  default: number;
54
64
  } & {
@@ -56,8 +66,50 @@ export declare const inputType: {
56
66
  } & {
57
67
  validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
58
68
  };
59
- modelValue: import("vue-types").VueTypeDef<string | number>;
69
+ modelValue: import("vue-types").VueTypeDef<string | number> & {
70
+ default: string | number;
71
+ };
60
72
  size: import("vue-types").VueTypeDef<string>;
73
+ rows: import("vue-types").VueTypeValidableDef<number> & {
74
+ default: number;
75
+ };
76
+ };
77
+ export declare enum EVENTS {
78
+ UPDATE = "update:modelValue",
79
+ FOCUS = "focus",
80
+ BLUR = "blur",
81
+ CHANGE = "change",
82
+ CLEAR = "clear",
83
+ INPUT = "input",
84
+ KEYPRESS = "keypress",
85
+ KEYDOWN = "keydown",
86
+ KEYUP = "keyup",
87
+ ENTER = "enter",
88
+ PASTE = "paste",
89
+ COMPOSITIONSTART = "compositionstart",
90
+ COMPOSITIONUPDATE = "compositionupdate",
91
+ COMPOSITIONEND = "compositionend"
92
+ }
93
+ declare function EventFunction(value: string | number, evt?: KeyboardEvent | Event): {
94
+ value: string | number;
95
+ evt: Event | KeyboardEvent;
96
+ };
97
+ declare function CompositionEventFunction(evt: CompositionEvent): CompositionEvent;
98
+ export declare const inputEmitEventsType: {
99
+ "update:modelValue": typeof EventFunction;
100
+ focus: (evt: FocusEvent) => FocusEvent;
101
+ blur: (evt: FocusEvent) => FocusEvent;
102
+ change: typeof EventFunction;
103
+ clear: () => boolean;
104
+ input: typeof EventFunction;
105
+ keypress: typeof EventFunction;
106
+ keydown: typeof EventFunction;
107
+ keyup: typeof EventFunction;
108
+ enter: typeof EventFunction;
109
+ paste: typeof EventFunction;
110
+ compositionstart: typeof CompositionEventFunction;
111
+ compositionupdate: typeof CompositionEventFunction;
112
+ compositionend: typeof CompositionEventFunction;
61
113
  };
62
114
  export declare type InputType = ExtractPropTypes<typeof inputType>;
63
115
  declare const _default: import("vue").DefineComponent<{
@@ -77,6 +129,8 @@ declare const _default: import("vue").DefineComponent<{
77
129
  };
78
130
  placeholder: import("vue-types").VueTypeValidableDef<string> & {
79
131
  default: string;
132
+ } & {
133
+ default: string;
80
134
  };
81
135
  prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
82
136
  default: string;
@@ -102,6 +156,9 @@ declare const _default: import("vue").DefineComponent<{
102
156
  maxlength: import("vue-types").VueTypeDef<number> & {
103
157
  default: number;
104
158
  };
159
+ behavior: import("vue-types").VueTypeDef<string> & {
160
+ default: string;
161
+ };
105
162
  showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
106
163
  default: boolean;
107
164
  };
@@ -110,6 +167,11 @@ declare const _default: import("vue").DefineComponent<{
110
167
  } & {
111
168
  default: boolean;
112
169
  };
170
+ showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
171
+ default: boolean;
172
+ } & {
173
+ default: boolean;
174
+ };
113
175
  precision: import("vue-types").VueTypeValidableDef<number> & {
114
176
  default: number;
115
177
  } & {
@@ -117,69 +179,137 @@ declare const _default: import("vue").DefineComponent<{
117
179
  } & {
118
180
  validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
119
181
  };
120
- modelValue: import("vue-types").VueTypeDef<string | number>;
182
+ modelValue: import("vue-types").VueTypeDef<string | number> & {
183
+ default: string | number;
184
+ };
121
185
  size: import("vue-types").VueTypeDef<string>;
122
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "change" | "update:modelValue")[], "input" | "focus" | "blur" | "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
123
- type?: unknown;
124
- clearable?: unknown;
125
- disabled?: unknown;
126
- readonly?: unknown;
127
- placeholder?: unknown;
128
- prefixIcon?: unknown;
129
- suffixIcon?: unknown;
130
- suffix?: unknown;
131
- prefix?: unknown;
132
- step?: unknown;
133
- max?: unknown;
134
- min?: unknown;
135
- maxlength?: unknown;
136
- showWordLimit?: unknown;
137
- showControl?: unknown;
138
- precision?: unknown;
139
- modelValue?: unknown;
140
- size?: unknown;
141
- } & {
142
- placeholder: string;
143
- prefix: string;
144
- step: number;
145
- disabled: boolean;
146
- type: string;
147
- readonly: boolean;
148
- clearable: boolean;
149
- max: number;
150
- min: number;
151
- maxlength: number;
152
- prefixIcon: string;
153
- suffixIcon: string;
154
- suffix: string;
155
- showWordLimit: boolean;
156
- showControl: boolean;
157
- precision: number;
158
- } & {
159
- size?: string;
160
- modelValue?: string | number;
161
- }> & {
162
- onFocus?: (...args: any[]) => any;
163
- onBlur?: (...args: any[]) => any;
164
- onChange?: (...args: any[]) => any;
165
- onInput?: (...args: any[]) => any;
166
- "onUpdate:modelValue"?: (...args: any[]) => any;
186
+ rows: import("vue-types").VueTypeValidableDef<number> & {
187
+ default: number;
188
+ };
189
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
190
+ "update:modelValue": typeof EventFunction;
191
+ focus: (evt: FocusEvent) => FocusEvent;
192
+ blur: (evt: FocusEvent) => FocusEvent;
193
+ change: typeof EventFunction;
194
+ clear: () => boolean;
195
+ input: typeof EventFunction;
196
+ keypress: typeof EventFunction;
197
+ keydown: typeof EventFunction;
198
+ keyup: typeof EventFunction;
199
+ enter: typeof EventFunction;
200
+ paste: typeof EventFunction;
201
+ compositionstart: typeof CompositionEventFunction;
202
+ compositionupdate: typeof CompositionEventFunction;
203
+ compositionend: typeof CompositionEventFunction;
204
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
205
+ type: import("vue-types").VueTypeValidableDef<string> & {
206
+ default: string;
207
+ } & {
208
+ default: string;
209
+ };
210
+ clearable: import("vue-types").VueTypeValidableDef<boolean> & {
211
+ default: boolean;
212
+ };
213
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
214
+ default: boolean;
215
+ };
216
+ readonly: import("vue-types").VueTypeValidableDef<boolean> & {
217
+ default: boolean;
218
+ };
219
+ placeholder: import("vue-types").VueTypeValidableDef<string> & {
220
+ default: string;
221
+ } & {
222
+ default: string;
223
+ };
224
+ prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
225
+ default: string;
226
+ };
227
+ suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
228
+ default: string;
229
+ };
230
+ suffix: import("vue-types").VueTypeValidableDef<string> & {
231
+ default: string;
232
+ };
233
+ prefix: import("vue-types").VueTypeValidableDef<string> & {
234
+ default: string;
235
+ };
236
+ step: import("vue-types").VueTypeDef<number> & {
237
+ default: number;
238
+ };
239
+ max: import("vue-types").VueTypeDef<number> & {
240
+ default: number;
241
+ };
242
+ min: import("vue-types").VueTypeDef<number> & {
243
+ default: number;
244
+ };
245
+ maxlength: import("vue-types").VueTypeDef<number> & {
246
+ default: number;
247
+ };
248
+ behavior: import("vue-types").VueTypeDef<string> & {
249
+ default: string;
250
+ };
251
+ showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
252
+ default: boolean;
253
+ };
254
+ showControl: import("vue-types").VueTypeValidableDef<boolean> & {
255
+ default: boolean;
256
+ } & {
257
+ default: boolean;
258
+ };
259
+ showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
260
+ default: boolean;
261
+ } & {
262
+ default: boolean;
263
+ };
264
+ precision: import("vue-types").VueTypeValidableDef<number> & {
265
+ default: number;
266
+ } & {
267
+ default: number;
268
+ } & {
269
+ validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
270
+ };
271
+ modelValue: import("vue-types").VueTypeDef<string | number> & {
272
+ default: string | number;
273
+ };
274
+ size: import("vue-types").VueTypeDef<string>;
275
+ rows: import("vue-types").VueTypeValidableDef<number> & {
276
+ default: number;
277
+ };
278
+ }>> & {
279
+ onPaste?: (value: string | number, evt?: Event | KeyboardEvent) => any;
280
+ onCompositionend?: (evt: CompositionEvent) => any;
281
+ onCompositionstart?: (evt: CompositionEvent) => any;
282
+ onCompositionupdate?: (evt: CompositionEvent) => any;
283
+ onFocus?: (evt: FocusEvent) => any;
284
+ onBlur?: (evt: FocusEvent) => any;
285
+ onChange?: (value: string | number, evt?: Event | KeyboardEvent) => any;
286
+ onInput?: (value: string | number, evt?: Event | KeyboardEvent) => any;
287
+ onKeydown?: (value: string | number, evt?: Event | KeyboardEvent) => any;
288
+ onKeypress?: (value: string | number, evt?: Event | KeyboardEvent) => any;
289
+ onKeyup?: (value: string | number, evt?: Event | KeyboardEvent) => any;
290
+ onEnter?: (value: string | number, evt?: Event | KeyboardEvent) => any;
291
+ "onUpdate:modelValue"?: (value: string | number, evt?: Event | KeyboardEvent) => any;
292
+ onClear?: () => any;
167
293
  }, {
294
+ type: string;
295
+ disabled: boolean;
168
296
  placeholder: string;
169
297
  prefix: string;
170
298
  step: number;
171
- disabled: boolean;
172
- type: string;
173
- readonly: boolean;
174
- clearable: boolean;
175
- max: number;
176
299
  min: number;
300
+ max: number;
177
301
  maxlength: number;
302
+ clearable: boolean;
303
+ readonly: boolean;
178
304
  prefixIcon: string;
179
305
  suffixIcon: string;
180
306
  suffix: string;
307
+ behavior: string;
181
308
  showWordLimit: boolean;
182
309
  showControl: boolean;
310
+ showClearOnlyHover: boolean;
183
311
  precision: number;
312
+ modelValue: string | number;
313
+ rows: number;
184
314
  }>;
185
315
  export default _default;