bkui-vue 0.0.1-beta.13 → 0.0.1-beta.130

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 (529) hide show
  1. package/README.md +31 -19
  2. package/dist/index.cjs.js +171 -0
  3. package/dist/index.esm.js +31715 -0
  4. package/dist/index.umd.js +171 -0
  5. package/dist/style.css +1 -4051
  6. package/dist/style.variable.css +1 -0
  7. package/lib/affix/affix.css +3 -0
  8. package/lib/affix/affix.d.ts +47 -0
  9. package/lib/affix/affix.less +5 -0
  10. package/lib/affix/affix.variable.css +105 -0
  11. package/lib/affix/index.d.ts +143 -0
  12. package/lib/affix/index.js +1 -0
  13. package/lib/alert/alert.css +5 -3
  14. package/lib/alert/alert.d.ts +24 -15
  15. package/lib/alert/alert.less +7 -3
  16. package/lib/alert/alert.variable.css +24 -6
  17. package/lib/alert/index.d.ts +96 -60
  18. package/lib/alert/index.js +1 -1
  19. package/lib/animate-number/animate-number.d.ts +12 -7
  20. package/lib/animate-number/index.d.ts +48 -28
  21. package/lib/animate-number/index.js +1 -1
  22. package/lib/backtop/backtop.d.ts +28 -14
  23. package/lib/backtop/backtop.variable.css +19 -3
  24. package/lib/backtop/index.d.ts +111 -55
  25. package/lib/backtop/index.js +1 -1
  26. package/lib/badge/badge.css +5 -5
  27. package/lib/badge/badge.d.ts +64 -22
  28. package/lib/badge/badge.less +5 -6
  29. package/lib/badge/badge.variable.css +24 -8
  30. package/lib/badge/index.d.ts +202 -84
  31. package/lib/badge/index.js +1 -1
  32. package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
  33. package/lib/breadcrumb/breadcrumb.css +61 -1
  34. package/lib/breadcrumb/breadcrumb.d.ts +37 -9
  35. package/lib/breadcrumb/breadcrumb.less +13 -2
  36. package/lib/breadcrumb/breadcrumb.variable.css +80 -4
  37. package/lib/breadcrumb/index.d.ts +118 -46
  38. package/lib/breadcrumb/index.js +1 -1
  39. package/lib/button/button-group.d.ts +3 -5
  40. package/lib/button/button.css +92 -44
  41. package/lib/button/button.d.ts +76 -26
  42. package/lib/button/button.less +89 -47
  43. package/lib/button/button.variable.css +111 -47
  44. package/lib/button/index.d.ts +191 -102
  45. package/lib/button/index.js +1 -1
  46. package/lib/card/card.css +96 -1
  47. package/lib/card/card.d.ts +74 -18
  48. package/lib/card/card.less +50 -2
  49. package/lib/card/card.variable.css +115 -4
  50. package/lib/card/index.d.ts +225 -69
  51. package/lib/card/index.js +1 -1
  52. package/lib/cascader/cascader-panel.d.ts +48 -0
  53. package/lib/cascader/cascader.css +130 -0
  54. package/lib/cascader/cascader.d.ts +271 -0
  55. package/lib/cascader/cascader.less +146 -0
  56. package/lib/cascader/cascader.variable.css +232 -0
  57. package/lib/cascader/index.d.ts +721 -0
  58. package/lib/cascader/index.js +1 -0
  59. package/lib/cascader/interface.d.ts +44 -0
  60. package/lib/cascader/node.d.ts +24 -0
  61. package/lib/cascader/store.d.ts +15 -0
  62. package/lib/checkbox/checkbox-group.d.ts +13 -9
  63. package/lib/checkbox/checkbox.css +33 -6
  64. package/lib/checkbox/checkbox.d.ts +43 -32
  65. package/lib/checkbox/checkbox.less +44 -6
  66. package/lib/checkbox/checkbox.variable.css +52 -9
  67. package/lib/checkbox/common.d.ts +3 -3
  68. package/lib/checkbox/index.d.ts +151 -105
  69. package/lib/checkbox/index.js +1 -1
  70. package/lib/checkbox/type.d.ts +4 -8
  71. package/lib/code-diff/code-diff.css +186 -0
  72. package/lib/code-diff/code-diff.d.ts +80 -0
  73. package/lib/code-diff/code-diff.less +238 -0
  74. package/lib/code-diff/code-diff.variable.css +288 -0
  75. package/lib/code-diff/index.d.ts +154 -0
  76. package/lib/code-diff/index.js +1 -0
  77. package/lib/collapse/collapse.css +17 -1
  78. package/lib/collapse/collapse.d.ts +51 -22
  79. package/lib/collapse/collapse.less +24 -2
  80. package/lib/collapse/collapse.variable.css +119 -1
  81. package/lib/collapse/index.d.ts +127 -75
  82. package/lib/collapse/index.js +1 -1
  83. package/lib/collapse/utils.d.ts +11 -0
  84. package/lib/components.d.ts +26 -5
  85. package/lib/components.js +1 -0
  86. package/lib/container/col.d.ts +51 -0
  87. package/lib/container/container.css +91 -0
  88. package/lib/container/container.d.ts +83 -0
  89. package/lib/container/container.less +20 -0
  90. package/lib/container/container.variable.css +193 -0
  91. package/lib/container/index.d.ts +223 -0
  92. package/lib/container/index.js +1 -0
  93. package/lib/container/row.d.ts +4 -0
  94. package/lib/date-picker/date-picker.css +3 -2
  95. package/lib/date-picker/date-picker.d.ts +92 -137
  96. package/lib/date-picker/date-picker.less +5 -2
  97. package/lib/date-picker/date-picker.variable.css +22 -5
  98. package/lib/date-picker/index.d.ts +504 -276
  99. package/lib/date-picker/index.js +1 -1
  100. package/lib/date-picker/interface.d.ts +1 -1
  101. package/lib/date-picker/props.d.ts +118 -0
  102. package/lib/date-picker/utils.d.ts +1 -1
  103. package/lib/dialog/dialog.css +68 -16
  104. package/lib/dialog/dialog.d.ts +285 -52
  105. package/lib/dialog/dialog.less +43 -17
  106. package/lib/dialog/dialog.variable.css +68 -16
  107. package/lib/dialog/index.d.ts +665 -115
  108. package/lib/dialog/index.js +1 -1
  109. package/lib/directives/clickoutside.d.ts +3 -23
  110. package/lib/directives/index.js +2 -15
  111. package/lib/directives/index.js.LICENSE.txt +14 -0
  112. package/lib/directives/tooltips.d.ts +1 -1
  113. package/lib/dist.index.js +1 -0
  114. package/lib/divider/divider.d.ts +21 -13
  115. package/lib/divider/divider.variable.css +19 -3
  116. package/lib/divider/index.d.ts +84 -52
  117. package/lib/divider/index.js +1 -1
  118. package/lib/divider/props.d.ts +21 -0
  119. package/lib/dropdown/dropdown-item.d.ts +6 -5
  120. package/lib/dropdown/dropdown-menu.d.ts +6 -5
  121. package/lib/dropdown/dropdown.css +4 -0
  122. package/lib/dropdown/dropdown.d.ts +29 -15
  123. package/lib/dropdown/dropdown.less +5 -0
  124. package/lib/dropdown/dropdown.variable.css +23 -3
  125. package/lib/dropdown/index.d.ts +112 -72
  126. package/lib/dropdown/index.js +1 -1
  127. package/lib/exception/exception.d.ts +11 -9
  128. package/lib/exception/exception.variable.css +19 -3
  129. package/lib/exception/index.d.ts +44 -36
  130. package/lib/exception/index.js +1 -1
  131. package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
  132. package/lib/fixed-navbar/fixed-navbar.variable.css +19 -3
  133. package/lib/fixed-navbar/index.d.ts +96 -37
  134. package/lib/fixed-navbar/index.js +1 -1
  135. package/lib/form/compose-form-item.d.ts +16 -0
  136. package/lib/form/form-item.d.ts +61 -45
  137. package/lib/form/form.css +96 -10
  138. package/lib/form/form.d.ts +45 -40
  139. package/lib/form/form.less +136 -34
  140. package/lib/form/form.variable.css +198 -10
  141. package/lib/form/index.d.ts +303 -3
  142. package/lib/form/index.js +1 -1
  143. package/lib/form/type.d.ts +8 -6
  144. package/lib/form/validator.d.ts +1 -0
  145. package/lib/icon/angle-double-down-line.d.ts +4 -0
  146. package/lib/icon/angle-double-down-line.js +1 -0
  147. package/lib/icon/angle-double-left-line.d.ts +4 -0
  148. package/lib/icon/angle-double-left-line.js +1 -0
  149. package/lib/icon/angle-double-left.js +1 -0
  150. package/lib/icon/angle-double-right-line.d.ts +4 -0
  151. package/lib/icon/angle-double-right-line.js +1 -0
  152. package/lib/icon/angle-double-right.js +1 -0
  153. package/lib/icon/angle-double-up-line.d.ts +4 -0
  154. package/lib/icon/angle-double-up-line.js +1 -0
  155. package/lib/icon/angle-down-fill.d.ts +4 -0
  156. package/lib/icon/angle-down-fill.js +1 -0
  157. package/lib/icon/angle-down-line.js +1 -0
  158. package/lib/icon/angle-down.js +1 -0
  159. package/lib/icon/angle-left.js +1 -0
  160. package/lib/icon/angle-right.js +1 -0
  161. package/lib/icon/angle-up-fill.d.ts +4 -0
  162. package/lib/icon/angle-up-fill.js +1 -0
  163. package/lib/icon/angle-up.js +1 -0
  164. package/lib/icon/archive-fill.d.ts +4 -0
  165. package/lib/icon/archive-fill.js +1 -0
  166. package/lib/icon/arrows-left.d.ts +4 -0
  167. package/lib/icon/arrows-left.js +1 -0
  168. package/lib/icon/arrows-right.d.ts +4 -0
  169. package/lib/icon/arrows-right.js +1 -0
  170. package/lib/icon/audio-fill.d.ts +4 -0
  171. package/lib/icon/audio-fill.js +1 -0
  172. package/lib/icon/bk.d.ts +4 -0
  173. package/lib/icon/bk.js +1 -0
  174. package/lib/icon/circle.js +1 -0
  175. package/lib/icon/close-line.d.ts +4 -0
  176. package/lib/icon/close-line.js +1 -0
  177. package/lib/icon/close.js +1 -0
  178. package/lib/icon/code.js +1 -0
  179. package/lib/icon/cog-shape.js +1 -0
  180. package/lib/icon/collapse-left.js +1 -0
  181. package/lib/icon/copy.js +1 -0
  182. package/lib/icon/data-shape.d.ts +4 -0
  183. package/lib/icon/data-shape.js +1 -0
  184. package/lib/icon/del.d.ts +4 -0
  185. package/lib/icon/del.js +1 -0
  186. package/lib/icon/doc-fill.d.ts +4 -0
  187. package/lib/icon/doc-fill.js +1 -0
  188. package/lib/icon/done.js +1 -0
  189. package/lib/icon/down-shape.js +1 -0
  190. package/lib/icon/down-small.js +1 -0
  191. package/lib/icon/edit-line.d.ts +4 -0
  192. package/lib/icon/edit-line.js +1 -0
  193. package/lib/icon/ellipsis.d.ts +4 -0
  194. package/lib/icon/ellipsis.js +1 -0
  195. package/lib/icon/error.js +1 -0
  196. package/lib/icon/excel-fill.d.ts +4 -0
  197. package/lib/icon/excel-fill.js +1 -0
  198. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  199. package/lib/icon/exclamation-circle-shape.js +1 -0
  200. package/lib/icon/eye.js +1 -0
  201. package/lib/icon/folder-open.js +1 -0
  202. package/lib/icon/folder-shape-open.js +1 -0
  203. package/lib/icon/folder-shape.js +1 -0
  204. package/lib/icon/funnel.d.ts +4 -0
  205. package/lib/icon/funnel.js +1 -0
  206. package/lib/icon/help-document-fill.js +1 -0
  207. package/lib/icon/help-fill.js +1 -0
  208. package/lib/icon/help.js +1 -0
  209. package/lib/icon/image-fill.d.ts +4 -0
  210. package/lib/icon/image-fill.js +1 -0
  211. package/lib/icon/index.d.ts +34 -3
  212. package/lib/icon/index.js +1 -15
  213. package/lib/icon/info-line.js +1 -0
  214. package/lib/icon/info.js +1 -0
  215. package/lib/icon/left-shape.d.ts +4 -0
  216. package/lib/icon/left-shape.js +1 -0
  217. package/lib/icon/pdf-fill.d.ts +4 -0
  218. package/lib/icon/pdf-fill.js +1 -0
  219. package/lib/icon/play-shape.js +1 -0
  220. package/lib/icon/plus.js +1 -0
  221. package/lib/icon/ppt-fill.d.ts +4 -0
  222. package/lib/icon/ppt-fill.js +1 -0
  223. package/lib/icon/qq.d.ts +4 -0
  224. package/lib/icon/qq.js +1 -0
  225. package/lib/icon/right-shape.js +1 -0
  226. package/lib/icon/search.js +1 -0
  227. package/lib/icon/share.js +1 -0
  228. package/lib/icon/spinner.d.ts +4 -0
  229. package/lib/icon/spinner.js +1 -0
  230. package/lib/icon/success.js +1 -0
  231. package/lib/icon/switcher-loading.js +1 -0
  232. package/lib/icon/text-file.js +1 -0
  233. package/lib/icon/text-fill.d.ts +4 -0
  234. package/lib/icon/text-fill.js +1 -0
  235. package/lib/icon/tree-application-shape.js +1 -0
  236. package/lib/icon/unvisible.js +1 -0
  237. package/lib/icon/up-shape.d.ts +4 -0
  238. package/lib/icon/up-shape.js +1 -0
  239. package/lib/icon/upload.d.ts +4 -0
  240. package/lib/icon/upload.js +1 -0
  241. package/lib/icon/video-fill.d.ts +4 -0
  242. package/lib/icon/video-fill.js +1 -0
  243. package/lib/icon/warn.js +1 -0
  244. package/lib/icon/weixin.d.ts +4 -0
  245. package/lib/icon/weixin.js +1 -0
  246. package/lib/index.d.ts +1 -1
  247. package/lib/index.js +1 -0
  248. package/lib/input/index.d.ts +462 -196
  249. package/lib/input/index.js +1 -15
  250. package/lib/input/input.css +232 -16
  251. package/lib/input/input.d.ts +182 -52
  252. package/lib/input/input.less +182 -19
  253. package/lib/input/input.variable.css +248 -15
  254. package/lib/link/index.d.ts +102 -54
  255. package/lib/link/index.js +1 -1
  256. package/lib/link/link.d.ts +25 -13
  257. package/lib/link/link.variable.css +19 -3
  258. package/lib/loading/index.d.ts +187 -71
  259. package/lib/loading/index.js +1 -1
  260. package/lib/loading/loading.css +177 -98
  261. package/lib/loading/loading.d.ts +109 -25
  262. package/lib/loading/loading.less +84 -73
  263. package/lib/loading/loading.variable.css +196 -101
  264. package/lib/menu/index.d.ts +82 -71
  265. package/lib/menu/index.js +1 -1
  266. package/lib/menu/menu-group.d.ts +6 -5
  267. package/lib/menu/menu-item.d.ts +6 -5
  268. package/lib/menu/menu.css +51 -0
  269. package/lib/menu/menu.d.ts +16 -21
  270. package/lib/menu/menu.variable.css +70 -3
  271. package/lib/menu/submenu.css +3 -0
  272. package/lib/menu/submenu.d.ts +6 -5
  273. package/lib/menu/submenu.less +1 -1
  274. package/lib/menu/submenu.variable.css +22 -3
  275. package/lib/menu/utils.d.ts +1 -1
  276. package/lib/message/index.js +1 -1
  277. package/lib/message/message.css +16 -2
  278. package/lib/message/message.less +18 -1
  279. package/lib/message/message.variable.css +35 -5
  280. package/lib/message/messageConstructor.d.ts +68 -20
  281. package/lib/modal/index.d.ts +517 -68
  282. package/lib/modal/index.js +1 -1
  283. package/lib/modal/modal.css +25 -1
  284. package/lib/modal/modal.d.ts +191 -24
  285. package/lib/modal/modal.less +33 -1
  286. package/lib/modal/modal.variable.css +25 -1
  287. package/lib/modal/props.mixin.d.ts +77 -10
  288. package/lib/navigation/index.d.ts +310 -1
  289. package/lib/navigation/index.js +1 -1
  290. package/lib/navigation/navigation-title.d.ts +10 -7
  291. package/lib/navigation/navigation.css +1 -1
  292. package/lib/navigation/navigation.d.ts +50 -24
  293. package/lib/navigation/navigation.less +1 -1
  294. package/lib/navigation/navigation.variable.css +20 -4
  295. package/lib/notify/index.js +1 -1
  296. package/lib/notify/notify.css +17 -1
  297. package/lib/notify/notify.less +19 -1
  298. package/lib/notify/notify.variable.css +36 -4
  299. package/lib/notify/notifyConstructor.d.ts +83 -23
  300. package/lib/pagination/index.d.ts +395 -0
  301. package/lib/pagination/index.js +1 -0
  302. package/lib/pagination/pagination.css +179 -0
  303. package/lib/pagination/pagination.d.ts +220 -0
  304. package/lib/pagination/pagination.less +201 -0
  305. package/lib/pagination/pagination.variable.css +281 -0
  306. package/lib/pagination/type.d.ts +6 -0
  307. package/lib/pagination/use-limit.d.ts +8 -0
  308. package/lib/pagination/use-list.d.ts +8 -0
  309. package/lib/pagination/use-small-list.d.ts +5 -0
  310. package/lib/pagination/use-total.d.ts +5 -0
  311. package/lib/popover/index.d.ts +322 -137
  312. package/lib/popover/index.js +1 -1
  313. package/lib/popover/popover.css +26 -13
  314. package/lib/popover/popover.d.ts +122 -45
  315. package/lib/popover/popover.less +59 -45
  316. package/lib/popover/popover.variable.css +45 -16
  317. package/lib/popover/props.d.ts +104 -0
  318. package/lib/popover2/arrow.d.ts +2 -0
  319. package/lib/popover2/const.d.ts +10 -0
  320. package/lib/popover2/content.d.ts +24 -0
  321. package/lib/popover2/index.d.ts +495 -0
  322. package/lib/popover2/index.js +1 -0
  323. package/lib/popover2/popover2.css +25 -0
  324. package/lib/popover2/popover2.d.ts +209 -0
  325. package/lib/popover2/popover2.less +35 -0
  326. package/lib/popover2/popover2.variable.css +127 -0
  327. package/lib/popover2/props.d.ts +108 -0
  328. package/lib/popover2/reference.d.ts +2 -0
  329. package/lib/popover2/root.d.ts +16 -0
  330. package/lib/popover2/use-floating.d.ts +20 -0
  331. package/lib/popover2/use-platform.d.ts +30 -0
  332. package/lib/popover2/use-popper-id.d.ts +7 -0
  333. package/lib/preset.d.ts +2 -3
  334. package/lib/preset.js +1 -0
  335. package/lib/process/index.d.ts +205 -0
  336. package/lib/process/index.js +1 -0
  337. package/lib/process/process.css +138 -0
  338. package/lib/process/process.d.ts +131 -0
  339. package/lib/process/process.less +178 -0
  340. package/lib/process/process.variable.css +240 -0
  341. package/lib/progress/index.d.ts +305 -135
  342. package/lib/progress/index.js +1 -1
  343. package/lib/progress/progress.css +51 -3
  344. package/lib/progress/progress.d.ts +89 -36
  345. package/lib/progress/progress.less +0 -4
  346. package/lib/progress/progress.variable.css +70 -6
  347. package/lib/radio/common.d.ts +5 -5
  348. package/lib/radio/index.d.ts +147 -98
  349. package/lib/radio/index.js +1 -1
  350. package/lib/radio/radio-button.d.ts +30 -23
  351. package/lib/radio/radio-group.d.ts +11 -10
  352. package/lib/radio/radio.css +12 -13
  353. package/lib/radio/radio.d.ts +27 -17
  354. package/lib/radio/radio.less +13 -14
  355. package/lib/radio/radio.variable.css +32 -17
  356. package/lib/radio/type.d.ts +10 -5
  357. package/lib/rate/index.d.ts +52 -40
  358. package/lib/rate/index.js +1 -1
  359. package/lib/rate/rate.d.ts +13 -10
  360. package/lib/rate/star.d.ts +33 -16
  361. package/lib/resize-layout/index.d.ts +336 -0
  362. package/lib/resize-layout/index.js +1 -0
  363. package/lib/resize-layout/resize-layout.css +189 -0
  364. package/lib/resize-layout/resize-layout.d.ts +127 -0
  365. package/lib/resize-layout/resize-layout.less +233 -0
  366. package/lib/resize-layout/resize-layout.variable.css +291 -0
  367. package/lib/select/common.d.ts +20 -22
  368. package/lib/select/index.d.ts +1062 -706
  369. package/lib/select/index.js +1 -15
  370. package/lib/select/option.d.ts +23 -19
  371. package/lib/select/optionGroup.d.ts +36 -97
  372. package/lib/select/select.css +226 -71
  373. package/lib/select/select.d.ts +376 -192
  374. package/lib/select/select.less +270 -130
  375. package/lib/select/select.variable.css +245 -74
  376. package/lib/select/selectTagInput.d.ts +72 -0
  377. package/lib/select/type.d.ts +38 -0
  378. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
  379. package/lib/shared/index.d.ts +26 -4
  380. package/lib/shared/index.js +1 -1
  381. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +33 -3
  382. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +10 -2
  383. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +50 -5
  384. package/lib/shared/token.d.ts +4 -0
  385. package/lib/shared/utils.d.ts +18 -0
  386. package/lib/shared/vue-types.d.ts +11 -7
  387. package/lib/sideslider/index.d.ts +424 -80
  388. package/lib/sideslider/index.js +1 -1
  389. package/lib/sideslider/sideslider.css +48 -3
  390. package/lib/sideslider/sideslider.d.ts +181 -30
  391. package/lib/sideslider/sideslider.less +65 -6
  392. package/lib/sideslider/sideslider.variable.css +67 -6
  393. package/lib/slider/index.d.ts +414 -1
  394. package/lib/slider/index.js +1 -15
  395. package/lib/slider/slider-button.d.ts +15 -7
  396. package/lib/slider/slider.d.ts +84 -42
  397. package/lib/slider/slider.variable.css +19 -3
  398. package/lib/steps/index.d.ts +162 -110
  399. package/lib/steps/index.js +1 -15
  400. package/lib/steps/steps.css +17 -3
  401. package/lib/steps/steps.d.ts +41 -28
  402. package/lib/steps/steps.less +27 -3
  403. package/lib/steps/steps.variable.css +36 -6
  404. package/lib/styles/index.d.ts +14 -0
  405. package/lib/styles/mixins/clearfix.css +8 -0
  406. package/lib/styles/mixins/clearfix.less +10 -0
  407. package/lib/styles/mixins/clearfix.variable.css +8 -0
  408. package/lib/styles/mixins/mixins.css +51 -0
  409. package/lib/styles/mixins/mixins.less +2 -0
  410. package/lib/styles/mixins/mixins.variable.css +51 -0
  411. package/lib/styles/mixins/scroll.css +17 -0
  412. package/lib/styles/mixins/scroll.less +22 -0
  413. package/lib/styles/mixins/scroll.variable.css +119 -0
  414. package/lib/styles/themes/themes.less +27 -3
  415. package/lib/swiper/index.d.ts +181 -0
  416. package/lib/swiper/index.js +1 -0
  417. package/lib/swiper/swiper.css +91 -0
  418. package/lib/swiper/swiper.d.ts +65 -0
  419. package/lib/swiper/swiper.less +107 -0
  420. package/lib/swiper/swiper.variable.css +91 -0
  421. package/lib/switcher/index.d.ts +201 -137
  422. package/lib/switcher/index.js +1 -1
  423. package/lib/switcher/switcher.css +200 -135
  424. package/lib/switcher/switcher.d.ts +52 -36
  425. package/lib/switcher/switcher.less +211 -153
  426. package/lib/switcher/switcher.variable.css +219 -138
  427. package/lib/tab/index.d.ts +306 -282
  428. package/lib/tab/index.js +1 -1
  429. package/lib/tab/props.d.ts +194 -0
  430. package/lib/tab/tab-nav.d.ts +102 -87
  431. package/lib/tab/tab-panel.d.ts +53 -26
  432. package/lib/tab/tab.css +25 -1
  433. package/lib/tab/tab.d.ts +59 -51
  434. package/lib/tab/tab.less +31 -19
  435. package/lib/tab/tab.variable.css +44 -4
  436. package/lib/table/const.d.ts +67 -0
  437. package/lib/table/index.d.ts +498 -70
  438. package/lib/table/index.js +1 -1
  439. package/lib/table/plugins/head-filter.css +68 -0
  440. package/lib/table/plugins/head-filter.less +88 -0
  441. package/lib/table/plugins/head-filter.variable.css +170 -0
  442. package/lib/table/plugins/head-sort.css +22 -0
  443. package/lib/table/plugins/head-sort.less +28 -0
  444. package/lib/table/plugins/head-sort.variable.css +124 -0
  445. package/lib/table/plugins/settings.css +129 -0
  446. package/lib/table/plugins/settings.less +157 -0
  447. package/lib/table/plugins/settings.variable.css +231 -0
  448. package/lib/table/props.d.ts +210 -2
  449. package/lib/table/render.d.ts +76 -5
  450. package/lib/table/table.css +1089 -15
  451. package/lib/table/table.d.ts +221 -14
  452. package/lib/table/table.less +251 -24
  453. package/lib/table/table.variable.css +1109 -19
  454. package/lib/table/use-common.d.ts +72 -0
  455. package/lib/table/utils.d.ts +84 -2
  456. package/lib/tag/index.d.ts +165 -274
  457. package/lib/tag/index.js +1 -1
  458. package/lib/tag/tag.css +97 -0
  459. package/lib/tag/tag.d.ts +83 -53
  460. package/lib/tag/tag.less +110 -2
  461. package/lib/tag/tag.variable.css +116 -3
  462. package/lib/tag-input/common.d.ts +24 -0
  463. package/lib/tag-input/index.d.ts +894 -0
  464. package/lib/tag-input/index.js +1 -0
  465. package/lib/tag-input/list-tag-render.d.ts +47 -0
  466. package/lib/tag-input/tag-input.css +209 -0
  467. package/lib/tag-input/tag-input.d.ts +374 -0
  468. package/lib/tag-input/tag-input.less +251 -0
  469. package/lib/tag-input/tag-input.variable.css +311 -0
  470. package/lib/tag-input/tag-props.d.ts +131 -0
  471. package/lib/tag-input/tag-render.d.ts +38 -0
  472. package/lib/timeline/index.d.ts +129 -0
  473. package/lib/timeline/index.js +1 -0
  474. package/lib/timeline/timeline.css +235 -0
  475. package/lib/timeline/timeline.d.ts +81 -0
  476. package/lib/timeline/timeline.less +240 -0
  477. package/lib/timeline/timeline.variable.css +337 -0
  478. package/lib/transfer/const.d.ts +5 -0
  479. package/lib/transfer/index.d.ts +365 -0
  480. package/lib/transfer/index.js +1 -0
  481. package/lib/transfer/props.d.ts +54 -0
  482. package/lib/transfer/transfer.css +139 -0
  483. package/lib/transfer/transfer.d.ts +160 -0
  484. package/lib/transfer/transfer.less +144 -0
  485. package/lib/transfer/transfer.variable.css +241 -0
  486. package/lib/tree/constant.d.ts +45 -0
  487. package/lib/tree/index.d.ts +469 -94
  488. package/lib/tree/index.js +1 -1
  489. package/lib/tree/props.d.ts +184 -0
  490. package/lib/tree/tree.css +176 -15
  491. package/lib/tree/tree.d.ts +201 -31
  492. package/lib/tree/tree.less +75 -38
  493. package/lib/tree/tree.variable.css +278 -15
  494. package/lib/tree/use-empty.d.ts +6 -0
  495. package/lib/tree/use-node-action.d.ts +12 -0
  496. package/lib/tree/use-node-async.d.ts +5 -0
  497. package/lib/tree/use-node-attribute.d.ts +33 -0
  498. package/lib/tree/use-node-drag.d.ts +3 -0
  499. package/lib/tree/use-search.d.ts +11 -0
  500. package/lib/tree/use-tree-init.d.ts +15 -0
  501. package/lib/tree/util.d.ts +34 -57
  502. package/lib/upload/index.d.ts +2 -0
  503. package/lib/upload/index.js +1 -0
  504. package/lib/upload/props.d.ts +113 -0
  505. package/lib/upload/upload-list.d.ts +46 -0
  506. package/lib/upload/upload-trigger.d.ts +54 -0
  507. package/lib/upload/upload.css +417 -0
  508. package/lib/upload/upload.d.ts +252 -0
  509. package/lib/upload/upload.less +455 -0
  510. package/lib/upload/upload.type.d.ts +78 -0
  511. package/lib/upload/upload.variable.css +519 -0
  512. package/lib/upload/use-ajax-upload.d.ts +3 -0
  513. package/lib/upload/use-file-handler.d.ts +44 -0
  514. package/lib/virtual-render/index.d.ts +579 -0
  515. package/lib/virtual-render/index.js +1 -0
  516. package/lib/virtual-render/props.d.ts +167 -0
  517. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  518. package/lib/virtual-render/v-virtual-render.d.ts +6 -0
  519. package/lib/virtual-render/virtual-render.css +33 -0
  520. package/lib/virtual-render/virtual-render.d.ts +255 -0
  521. package/lib/virtual-render/virtual-render.less +22 -0
  522. package/lib/virtual-render/virtual-render.variable.css +135 -0
  523. package/lib/volar.components.d.ts +29 -0
  524. package/package.json +107 -84
  525. package/dist/bkui-vue.cjs.js +0 -9999
  526. package/dist/bkui-vue.esm.js +0 -9958
  527. package/dist/bkui-vue.umd.js +0 -10002
  528. package/lib/form/common.d.ts +0 -3
  529. 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,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue"),require("../icon")):r(e["../shared"],e.vue,e["../icon"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r,t)=>(()=>{"use strict";var o={6870:e=>{e.exports=t},4212:r=>{r.exports=e},748:e=>{e.exports=r}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var t=n[e]={exports:{}};return o[e](t,t.exports,a),t.exports}a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),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 r(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function t(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,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,r){return{value:e,evt:r}}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=(t(n={},i.UPDATE,c),t(n,i.FOCUS,(function(e){return e})),t(n,i.BLUR,(function(e){return e})),t(n,i.CHANGE,c),t(n,i.CLEAR,(function(){return!0})),t(n,i.INPUT,c),t(n,i.KEYPRESS,c),t(n,i.KEYDOWN,c),t(n,i.KEYUP,c),t(n,i.ENTER,c),t(n,i.PASTE,c),t(n,i.COMPOSITIONSTART,p),t(n,i.COMPOSITIONUPDATE,p),t(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,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]])}return t}(f,["class","style"]),b=(0,o.ref)(),P=(0,o.computed)((function(){var r;return(0,e.classes)((t(r={},"".concat(d.value,"--").concat(n.size),!!n.size),t(r,"is-focused",s.value),t(r,"is-readonly",n.readonly),t(r,"is-disabled",n.disabled),t(r,"is-simplicity","simplicity"===n.behavior),t(r,"".concat(v),!!v),r),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)(t({"show-clear-only-hover":n.showClearOnlyHover},"".concat(d.value,"--clear-icon"),!0),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;if(!n.disabled){var r=h.value?n.min:"";a.emit(i.UPDATE,r),a.emit(i.CHANGE,r),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 r;if(s.value=!1,a.emit(i.BLUR,e),h.value&&(e.target.value>n.max||e.target.value<n.min)){var t=e.target.value>n.max?n.max:n.min;a.emit(i.UPDATE,t),a.emit(i.CHANGE,t)}null===(r=null==l?void 0:l.validate)||void 0===r||r.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(r){var t;e!==i.KEYDOWN||"Enter"!==r.code&&"Enter"!==r.key&&13!==r.keyCode||a.emit(i.ENTER,r.target.value,r),c.value&&[i.INPUT,i.CHANGE].some((function(r){return e===r}))||(e===i.INPUT&&a.emit(i.UPDATE,h.value?+r.target.value:r.target.value),a.emit(e,r.target.value,r),e===i.INPUT&&(null===(t=null==l?void 0:l.validate)||void 0===t||t.call(l,"change")))}})),D=(V=6,function(e){if(Array.isArray(e))return e}(U=j)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,n,a=[],l=!0,i=!1;try{for(t=t.call(e);!(l=(o=t.next()).done)&&(a.push(o.value),!r||a.length!==r);l=!0);}catch(e){i=!0,n=e}finally{try{l||null==t.return||t.return()}finally{if(i)throw n}}return a}}(U,V)||function(e,t){if(e){if("string"==typeof e)return r(e,t);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)?r(e,t):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 r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=parseInt(String(e),10),o=Number.isInteger(n.precision)?n.precision:0,a=parseFloat(n.modelValue.toString()),l=Number.isInteger(t)?t:1,i=a+(r?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,r,t,l,i,s;return(0,o.createVNode)("div",{class:P.value,style:m},[null!==(t=null===(r=null===(e=a.slots)||void 0===e?void 0:e.prefix)||void 0===r?void 0:r.call(e))&&void 0!==t?t: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,246 @@
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-popper {
31
+ display: none;
32
+ padding: 7px 14px;
33
+ font-size: 12px;
34
+ color: #fff;
35
+ background: #333;
36
+ border-radius: 4px;
37
+ }
38
+ .bk-popper.light {
39
+ color: #63656e;
40
+ background: #fff;
41
+ box-shadow: #dcdee5 0px 0px 6px 0px;
42
+ }
43
+ .bk-popper .bk-popper-arrow,
44
+ .bk-popper .bk-popper-arrow::before {
45
+ position: absolute;
46
+ width: 8px;
47
+ height: 8px;
48
+ background: inherit;
49
+ }
50
+ .bk-popper .bk-popper-arrow {
51
+ visibility: hidden;
52
+ }
53
+ .bk-popper .bk-popper-arrow::before {
54
+ content: '';
55
+ visibility: visible;
56
+ transform: rotate(45deg);
57
+ }
58
+ .bk-popper[data-show] {
59
+ display: block;
60
+ }
61
+ .bk-popper[data-popper-placement^='top'] > .bk-popper-arrow {
62
+ bottom: -4px;
63
+ }
64
+ .bk-popper[data-popper-placement^='bottom'] > .bk-popper-arrow {
65
+ top: -4px;
66
+ }
67
+ .bk-popper[data-popper-placement^='left'] > .bk-popper-arrow {
68
+ right: -4px;
69
+ }
70
+ .bk-popper[data-popper-placement^='right'] > .bk-popper-arrow {
71
+ left: -4px;
72
+ }
73
+ .bk-textarea {
74
+ display: inline-flex;
75
+ width: 100%;
76
+ min-height: 70px;
77
+ font-size: 12px;
78
+ line-height: 20px;
79
+ color: #63656e;
80
+ background-color: white;
81
+ border: 1px solid #c4c6cc;
82
+ border-radius: 2px;
83
+ box-sizing: border-box;
84
+ transition: all 0.3s;
85
+ flex-direction: column;
86
+ }
87
+ .bk-textarea ::placeholder {
88
+ color: #c4c6cc;
89
+ }
90
+ .bk-textarea.is-disabled,
91
+ .bk-textarea.is-readonly {
92
+ background-color: #fafbfd;
93
+ border-color: #dcdee5;
94
+ }
95
+ .bk-textarea.is-disabled .bk-input--prefix-area,
96
+ .bk-textarea.is-readonly .bk-input--prefix-area,
97
+ .bk-textarea.is-disabled .bk-input--suffix-area,
98
+ .bk-textarea.is-readonly .bk-input--suffix-area,
99
+ .bk-textarea.is-disabled .bk-input--suffix-icon,
100
+ .bk-textarea.is-readonly .bk-input--suffix-icon {
101
+ cursor: not-allowed;
102
+ background-color: #fafbfd;
103
+ }
104
+ .bk-textarea.is-disabled input,
105
+ .bk-textarea.is-readonly input,
106
+ .bk-textarea.is-disabled textarea,
107
+ .bk-textarea.is-readonly textarea {
108
+ cursor: not-allowed;
109
+ background-color: #fafbfd;
110
+ opacity: 1;
111
+ }
112
+ .bk-textarea.is-readonly input,
113
+ .bk-textarea.is-readonly textarea {
114
+ cursor: auto;
115
+ }
116
+ .bk-textarea > textarea {
117
+ width: 100%;
118
+ flex: 1;
119
+ padding: 5px 10px;
120
+ line-height: 1.5;
121
+ text-align: left;
122
+ border: 0;
123
+ outline: none;
124
+ resize: none;
125
+ }
126
+ .bk-textarea--max-length {
127
+ padding-right: 10px;
128
+ margin: 0;
129
+ margin-left: auto;
130
+ font-size: 12px;
131
+ text-align: right;
132
+ transform: scale(0.8);
133
+ justify-content: flex-end;
134
+ }
135
+ .bk-textarea--max-length span {
136
+ color: #979ba5;
137
+ }
138
+ .bk-textarea.is-focused:not(.is-readonly) {
139
+ border-color: #3a84ff;
140
+ outline: 0;
141
+ box-shadow: 0px 0px 3px 0px #a3c5fd;
142
+ }
22
143
  .bk-input {
23
- display: flex;
144
+ display: inline-flex;
24
145
  align-items: stretch;
146
+ width: 100%;
25
147
  height: 32px;
26
148
  font-size: 12px;
27
149
  border: 1px solid #c4c6cc;
28
150
  border-radius: 2px;
29
151
  transition: all 0.3s;
30
152
  }
153
+ .bk-input ::placeholder {
154
+ color: #c4c6cc;
155
+ }
156
+ .bk-input.is-disabled,
157
+ .bk-input.is-readonly {
158
+ background-color: #fafbfd;
159
+ border-color: #dcdee5;
160
+ }
161
+ .bk-input.is-disabled .bk-input--prefix-area,
162
+ .bk-input.is-readonly .bk-input--prefix-area,
163
+ .bk-input.is-disabled .bk-input--suffix-area,
164
+ .bk-input.is-readonly .bk-input--suffix-area,
165
+ .bk-input.is-disabled .bk-input--suffix-icon,
166
+ .bk-input.is-readonly .bk-input--suffix-icon {
167
+ cursor: not-allowed;
168
+ background-color: #fafbfd;
169
+ }
170
+ .bk-input.is-disabled input,
171
+ .bk-input.is-readonly input,
172
+ .bk-input.is-disabled textarea,
173
+ .bk-input.is-readonly textarea {
174
+ cursor: not-allowed;
175
+ background-color: #fafbfd;
176
+ opacity: 1;
177
+ }
178
+ .bk-input.is-readonly input,
179
+ .bk-input.is-readonly textarea {
180
+ cursor: auto;
181
+ }
182
+ .bk-input:hover:not(.is-disabled) {
183
+ border-color: #979ba5;
184
+ }
185
+ .bk-input:hover:not(.is-disabled) .show-clear-only-hover {
186
+ display: block;
187
+ }
188
+ .bk-input.is-simplicity {
189
+ background-color: transparent;
190
+ border-color: transparent;
191
+ border-bottom-color: #c4c6cc;
192
+ }
193
+ .bk-input.is-simplicity:hover:not(.is-disabled) {
194
+ border-color: transparent;
195
+ border-bottom-color: #c4c6cc;
196
+ box-shadow: none;
197
+ }
198
+ .bk-input.is-simplicity:hover:not(.is-disabled) .bk-input--text {
199
+ background-color: #f5f7fa;
200
+ }
31
201
  .bk-input--suffix-icon {
202
+ display: flex;
203
+ height: 100%;
32
204
  padding-right: 10px;
33
- font-size: 16px;
205
+ font-size: 14px;
34
206
  color: #c4c6cc;
207
+ background-color: white;
208
+ align-items: center;
35
209
  align-self: center;
36
210
  }
211
+ .bk-input--suffix-icon.show-clear-only-hover {
212
+ display: none;
213
+ }
214
+ .bk-input--clear-icon {
215
+ cursor: pointer;
216
+ }
217
+ .bk-input--clear-icon:hover {
218
+ color: #979ba5;
219
+ }
37
220
  .bk-input--large {
38
- height: 38px;
221
+ height: 40px;
222
+ font-size: 14px;
223
+ }
224
+ .bk-input--large .bk-input--max-length {
39
225
  font-size: 16px;
40
226
  }
227
+ .bk-input--large .bk-input--number-control span:first-child {
228
+ margin-bottom: 4px;
229
+ }
41
230
  .bk-input--small {
42
231
  height: 26px;
43
232
  font-size: 12px;
44
233
  }
234
+ .bk-input--small .bk-input--max-length {
235
+ font-size: 12px;
236
+ }
237
+ .bk-input--default {
238
+ font-size: 12px;
239
+ }
240
+ .bk-input--default .bk-input--max-length {
241
+ font-size: 12px;
242
+ }
45
243
  .bk-input.is-focused:not(.is-readonly) {
46
244
  border-color: #3a84ff;
47
245
  outline: 0;
48
246
  box-shadow: 0px 0px 3px 0px #a3c5fd;
49
247
  }
50
- .bk-input.is-disabled {
51
- cursor: not-allowed;
52
- background-color: #fafbfd;
53
- opacity: 1;
248
+ .bk-input.is-focused:not(.is-readonly).is-simplicity {
249
+ border-color: transparent;
250
+ border-bottom-color: #3a84ff;
251
+ box-shadow: none;
252
+ }
253
+ .bk-input.is-focused:not(.is-readonly).is-simplicity .bk-input--text {
254
+ background-color: #f5f7fa;
54
255
  }
55
256
  .bk-input--prefix-area,
56
257
  .bk-input--suffix-area {
57
258
  display: flex;
58
259
  padding: 0 10px;
59
260
  color: #63656e;
60
- background-color: #f4f6fa;
261
+ background-color: #f5f7fa;
61
262
  border-right: 1px solid #c4c6cc;
62
263
  align-items: center;
63
264
  }
@@ -68,13 +269,15 @@
68
269
  .bk-input--max-length {
69
270
  align-self: center;
70
271
  padding-right: 10px;
272
+ font-size: 12px;
273
+ transform: scale(0.8);
71
274
  }
72
275
  .bk-input--max-length span {
73
276
  color: #979ba5;
74
277
  }
75
278
  .bk-input--text {
279
+ width: 100%;
76
280
  padding: 0 10px;
77
- font-size: 12px;
78
281
  line-height: 1;
79
282
  color: #63656e;
80
283
  background-color: white;
@@ -91,12 +294,12 @@
91
294
  .bk-input--text[type='search']::-webkit-search-results-decoration {
92
295
  appearance: none;
93
296
  }
94
- .bk-input--text [type=search]::-ms-clear {
297
+ .bk-input--text [type='search']::-ms-clear {
95
298
  display: none;
96
299
  width: 0;
97
300
  height: 0;
98
301
  }
99
- .bk-input--text [type=search]::-ms-reveal {
302
+ .bk-input--text [type='search']::-ms-reveal {
100
303
  display: none;
101
304
  width: 0;
102
305
  height: 0;
@@ -110,23 +313,36 @@
110
313
  color: #c4c6cc;
111
314
  }
112
315
  .bk-input--number-control {
316
+ display: flex;
113
317
  width: 26px;
114
318
  height: 100%;
319
+ padding: 4px 0;
115
320
  font-size: 0;
321
+ user-select: none;
116
322
  flex-direction: column;
323
+ align-items: center;
117
324
  }
118
325
  .bk-input--number-control span {
119
- display: block;
120
- height: 50%;
326
+ display: flex;
121
327
  overflow: hidden;
328
+ line-height: 1;
329
+ color: #979ba5;
330
+ text-align: center;
331
+ cursor: pointer;
332
+ background-color: #f5f7fa;
333
+ flex: 1;
334
+ align-items: center;
335
+ }
336
+ .bk-input--number-control span.is-disabled {
122
337
  color: #c4c6cc;
338
+ cursor: not-allowed;
123
339
  }
124
340
  .bk-input--number-control svg {
125
- font-size: 16px;
341
+ font-size: 14px;
126
342
  }
127
343
  .bk-input--number-control span:first-child {
128
344
  transform: rotate(180deg);
129
345
  }
130
- .bk-input--number-control span:hover {
131
- background-color: #f4f6fa;
346
+ .bk-input--number-control span:not(.is-disabled):hover {
347
+ background-color: #eaebf0;
132
348
  }
@@ -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;