bkui-vue 0.0.1-beta.2 → 0.0.1-beta.22

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 (428) hide show
  1. package/README.md +31 -19
  2. package/README_EN.md +93 -0
  3. package/dist/bkui-vue.cjs.js +10044 -1374
  4. package/dist/bkui-vue.esm.js +10003 -1380
  5. package/dist/bkui-vue.umd.js +10044 -1374
  6. package/dist/style.css +3322 -241
  7. package/lib/alert/alert.d.ts +24 -15
  8. package/lib/alert/alert.variable.css +32 -0
  9. package/lib/alert/index.d.ts +180 -3
  10. package/lib/alert/index.js +1 -1
  11. package/lib/animate-number/animate-number.d.ts +12 -7
  12. package/lib/animate-number/index.d.ts +97 -2
  13. package/lib/animate-number/index.js +1 -1
  14. package/lib/backtop/backtop.d.ts +27 -13
  15. package/lib/backtop/backtop.variable.css +32 -0
  16. package/lib/backtop/index.d.ts +166 -2
  17. package/lib/backtop/index.js +1 -1
  18. package/lib/badge/badge.d.ts +40 -19
  19. package/lib/badge/badge.variable.css +32 -0
  20. package/lib/badge/index.d.ts +217 -2
  21. package/lib/badge/index.js +1 -1
  22. package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
  23. package/lib/breadcrumb/breadcrumb.css +10 -1
  24. package/lib/breadcrumb/breadcrumb.d.ts +37 -9
  25. package/lib/breadcrumb/breadcrumb.less +13 -2
  26. package/lib/breadcrumb/breadcrumb.variable.css +42 -1
  27. package/lib/breadcrumb/index.d.ts +144 -43
  28. package/lib/breadcrumb/index.js +1 -1
  29. package/lib/button/button-group.d.ts +3 -5
  30. package/lib/button/button.css +9 -0
  31. package/lib/button/button.d.ts +57 -28
  32. package/lib/button/button.less +23 -15
  33. package/lib/button/button.variable.css +41 -0
  34. package/lib/button/index.d.ts +225 -3
  35. package/lib/button/index.js +1 -1
  36. package/lib/card/card.d.ts +30 -15
  37. package/lib/card/card.variable.css +32 -0
  38. package/lib/card/index.d.ts +187 -2
  39. package/lib/card/index.js +1 -1
  40. package/lib/checkbox/checkbox-group.d.ts +13 -9
  41. package/lib/checkbox/checkbox.d.ts +31 -22
  42. package/lib/checkbox/checkbox.variable.css +32 -0
  43. package/lib/checkbox/index.d.ts +261 -2
  44. package/lib/checkbox/index.js +1 -1
  45. package/lib/checkbox/type.d.ts +6 -5
  46. package/lib/code-diff/code-diff.css +114 -0
  47. package/lib/code-diff/code-diff.d.ts +71 -0
  48. package/lib/code-diff/code-diff.less +144 -0
  49. package/lib/code-diff/code-diff.variable.css +207 -0
  50. package/lib/code-diff/index.d.ts +6 -0
  51. package/lib/collapse/collapse.css +8 -0
  52. package/lib/collapse/collapse.d.ts +50 -18
  53. package/lib/collapse/collapse.less +10 -0
  54. package/lib/collapse/collapse.variable.css +8 -0
  55. package/lib/collapse/index.d.ts +166 -2
  56. package/lib/collapse/index.js +1 -1
  57. package/lib/components.d.ts +37 -0
  58. package/lib/date-picker/date-picker.css +407 -0
  59. package/lib/date-picker/date-picker.d.ts +294 -0
  60. package/lib/date-picker/date-picker.less +526 -0
  61. package/lib/date-picker/date-picker.variable.css +500 -0
  62. package/lib/date-picker/fecha.d.ts +6 -0
  63. package/lib/date-picker/index.d.ts +713 -0
  64. package/lib/date-picker/index.js +1 -0
  65. package/lib/date-picker/interface.d.ts +22 -0
  66. package/lib/date-picker/props.d.ts +111 -0
  67. package/lib/date-picker/utils.d.ts +97 -0
  68. package/lib/dialog/dialog.d.ts +57 -27
  69. package/lib/dialog/index.d.ts +286 -2
  70. package/lib/dialog/index.js +1 -1
  71. package/lib/directives/clickoutside.d.ts +3 -0
  72. package/lib/directives/index.d.ts +2 -0
  73. package/lib/directives/index.js +14 -14
  74. package/lib/directives/tooltips.d.ts +17 -0
  75. package/lib/divider/divider.css +38 -0
  76. package/lib/divider/divider.d.ts +48 -0
  77. package/lib/divider/divider.less +53 -0
  78. package/lib/divider/divider.variable.css +131 -0
  79. package/lib/divider/index.d.ts +142 -0
  80. package/lib/divider/index.js +1 -0
  81. package/lib/dropdown/dropdown-item.d.ts +19 -0
  82. package/lib/dropdown/dropdown-menu.d.ts +16 -0
  83. package/lib/dropdown/dropdown.css +43 -0
  84. package/lib/dropdown/dropdown.d.ts +61 -0
  85. package/lib/dropdown/dropdown.less +54 -0
  86. package/lib/dropdown/dropdown.variable.css +136 -0
  87. package/lib/dropdown/index.d.ts +192 -0
  88. package/lib/dropdown/index.js +1 -0
  89. package/lib/exception/exception.d.ts +11 -9
  90. package/lib/exception/exception.variable.css +32 -0
  91. package/lib/exception/index.d.ts +95 -1
  92. package/lib/exception/index.js +1 -1
  93. package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
  94. package/lib/fixed-navbar/fixed-navbar.variable.css +32 -0
  95. package/lib/fixed-navbar/index.d.ts +112 -2
  96. package/lib/fixed-navbar/index.js +1 -1
  97. package/lib/form/common.d.ts +3 -0
  98. package/lib/form/form-item.d.ts +159 -0
  99. package/lib/form/form.css +39 -0
  100. package/lib/form/form.d.ts +84 -0
  101. package/lib/form/form.less +50 -0
  102. package/lib/form/form.variable.css +39 -0
  103. package/lib/form/index.d.ts +286 -0
  104. package/lib/form/index.js +1 -0
  105. package/lib/form/type.d.ts +21 -0
  106. package/lib/form/validator.d.ts +8 -0
  107. package/lib/icon/angle-double-down-line.d.ts +4 -0
  108. package/lib/icon/angle-double-down-line.js +15 -0
  109. package/lib/icon/angle-double-left-line.d.ts +4 -0
  110. package/lib/icon/angle-double-left-line.js +15 -0
  111. package/lib/icon/angle-double-left.d.ts +4 -0
  112. package/lib/icon/angle-double-left.js +15 -0
  113. package/lib/icon/angle-double-right-line.d.ts +4 -0
  114. package/lib/icon/angle-double-right-line.js +15 -0
  115. package/lib/icon/angle-double-right.d.ts +4 -0
  116. package/lib/icon/angle-double-right.js +15 -0
  117. package/lib/icon/angle-double-up-line.d.ts +4 -0
  118. package/lib/icon/angle-double-up-line.js +15 -0
  119. package/lib/icon/angle-down-fill.d.ts +4 -0
  120. package/lib/icon/angle-down-fill.js +15 -0
  121. package/lib/icon/angle-down-line.d.ts +4 -0
  122. package/lib/icon/angle-down-line.js +15 -0
  123. package/lib/icon/angle-down.d.ts +4 -0
  124. package/lib/icon/angle-down.js +15 -0
  125. package/lib/icon/angle-left.d.ts +4 -0
  126. package/lib/icon/angle-left.js +15 -0
  127. package/lib/icon/angle-right.d.ts +4 -0
  128. package/lib/icon/angle-right.js +15 -0
  129. package/lib/icon/angle-up-fill.d.ts +4 -0
  130. package/lib/icon/angle-up-fill.js +15 -0
  131. package/lib/icon/angle-up.d.ts +4 -0
  132. package/lib/icon/angle-up.js +15 -0
  133. package/lib/icon/arrows-left.d.ts +4 -0
  134. package/lib/icon/arrows-left.js +15 -0
  135. package/lib/icon/arrows-right.d.ts +4 -0
  136. package/lib/icon/arrows-right.js +15 -0
  137. package/lib/icon/bk.d.ts +4 -0
  138. package/lib/icon/bk.js +15 -0
  139. package/lib/icon/circle.d.ts +4 -0
  140. package/lib/icon/circle.js +15 -0
  141. package/lib/icon/close.d.ts +4 -0
  142. package/lib/icon/close.js +15 -0
  143. package/lib/icon/code.d.ts +4 -0
  144. package/lib/icon/code.js +15 -0
  145. package/lib/icon/cog-shape.d.ts +4 -0
  146. package/lib/icon/cog-shape.js +15 -0
  147. package/lib/icon/collapse-left.d.ts +4 -0
  148. package/lib/icon/collapse-left.js +15 -0
  149. package/lib/icon/copy.d.ts +4 -0
  150. package/lib/icon/copy.js +15 -0
  151. package/lib/icon/done.d.ts +4 -0
  152. package/lib/icon/done.js +15 -0
  153. package/lib/icon/down-shape.d.ts +4 -0
  154. package/lib/icon/down-shape.js +15 -0
  155. package/lib/icon/down-small.d.ts +4 -0
  156. package/lib/icon/down-small.js +15 -0
  157. package/lib/icon/ellipsis.d.ts +4 -0
  158. package/lib/icon/ellipsis.js +15 -0
  159. package/lib/icon/error.d.ts +4 -0
  160. package/lib/icon/error.js +15 -0
  161. package/lib/icon/eye.d.ts +4 -0
  162. package/lib/icon/eye.js +15 -0
  163. package/lib/icon/folder-open.d.ts +4 -0
  164. package/lib/icon/folder-open.js +15 -0
  165. package/lib/icon/folder-shape-open.d.ts +4 -0
  166. package/lib/icon/folder-shape-open.js +15 -0
  167. package/lib/icon/folder-shape.d.ts +4 -0
  168. package/lib/icon/folder-shape.js +15 -0
  169. package/lib/icon/folder.d.ts +4 -0
  170. package/lib/icon/folder.js +15 -0
  171. package/lib/icon/help-document-fill.d.ts +4 -0
  172. package/lib/icon/help-document-fill.js +15 -0
  173. package/lib/icon/help-fill.d.ts +4 -0
  174. package/lib/icon/help-fill.js +15 -0
  175. package/lib/icon/help.d.ts +4 -0
  176. package/lib/icon/help.js +15 -0
  177. package/lib/icon/icon.d.ts +12 -0
  178. package/lib/icon/icon.js +15 -0
  179. package/lib/icon/index.d.ts +42 -0
  180. package/lib/icon/index.js +1 -1
  181. package/lib/icon/info-line.d.ts +4 -0
  182. package/lib/icon/info-line.js +15 -0
  183. package/lib/icon/info.d.ts +4 -0
  184. package/lib/icon/info.js +15 -0
  185. package/lib/icon/left-shape.d.ts +4 -0
  186. package/lib/icon/left-shape.js +15 -0
  187. package/lib/icon/play-shape.d.ts +4 -0
  188. package/lib/icon/play-shape.js +15 -0
  189. package/lib/icon/plus.d.ts +4 -0
  190. package/lib/icon/plus.js +15 -0
  191. package/lib/icon/qq.d.ts +4 -0
  192. package/lib/icon/qq.js +15 -0
  193. package/lib/icon/right-shape.d.ts +4 -0
  194. package/lib/icon/right-shape.js +15 -0
  195. package/lib/icon/search.d.ts +4 -0
  196. package/lib/icon/search.js +15 -0
  197. package/lib/icon/share.d.ts +4 -0
  198. package/lib/icon/share.js +15 -0
  199. package/lib/icon/spinner.d.ts +4 -0
  200. package/lib/icon/spinner.js +15 -0
  201. package/lib/icon/success.d.ts +4 -0
  202. package/lib/icon/success.js +15 -0
  203. package/lib/icon/switcher-loading.d.ts +4 -0
  204. package/lib/icon/switcher-loading.js +15 -0
  205. package/lib/icon/text-file.d.ts +4 -0
  206. package/lib/icon/text-file.js +15 -0
  207. package/lib/icon/tree-application-shape.d.ts +4 -0
  208. package/lib/icon/tree-application-shape.js +15 -0
  209. package/lib/icon/unvisible.d.ts +4 -0
  210. package/lib/icon/unvisible.js +15 -0
  211. package/lib/icon/up-shape.d.ts +4 -0
  212. package/lib/icon/up-shape.js +15 -0
  213. package/lib/icon/warn.d.ts +4 -0
  214. package/lib/icon/warn.js +15 -0
  215. package/lib/icon/weixin.d.ts +4 -0
  216. package/lib/icon/weixin.js +15 -0
  217. package/lib/index.d.ts +4 -0
  218. package/lib/input/index.d.ts +417 -2
  219. package/lib/input/index.js +2 -2
  220. package/lib/input/input.css +20 -2
  221. package/lib/input/input.d.ts +98 -46
  222. package/lib/input/input.less +28 -5
  223. package/lib/input/input.variable.css +52 -2
  224. package/lib/link/index.d.ts +164 -2
  225. package/lib/link/index.js +1 -1
  226. package/lib/link/link.d.ts +25 -13
  227. package/lib/link/link.variable.css +32 -0
  228. package/lib/loading/index.d.ts +146 -2
  229. package/lib/loading/index.js +1 -1
  230. package/lib/loading/loading.css +98 -71
  231. package/lib/loading/loading.d.ts +47 -21
  232. package/lib/loading/loading.less +62 -49
  233. package/lib/loading/loading.variable.css +130 -71
  234. package/lib/menu/index.d.ts +188 -0
  235. package/lib/menu/index.js +1 -0
  236. package/lib/menu/menu-group.d.ts +14 -0
  237. package/lib/menu/menu-item.d.ts +16 -0
  238. package/lib/menu/menu.css +182 -0
  239. package/lib/menu/menu.d.ts +64 -0
  240. package/lib/menu/menu.less +180 -0
  241. package/lib/menu/menu.variable.css +275 -0
  242. package/lib/menu/submenu.css +3 -0
  243. package/lib/menu/submenu.d.ts +22 -0
  244. package/lib/menu/submenu.less +5 -0
  245. package/lib/menu/submenu.variable.css +96 -0
  246. package/lib/menu/utils.d.ts +41 -0
  247. package/lib/message/index.d.ts +2 -0
  248. package/lib/message/index.js +1 -0
  249. package/lib/message/message.css +53 -0
  250. package/lib/message/message.less +61 -0
  251. package/lib/message/message.variable.css +146 -0
  252. package/lib/message/messageConstructor.d.ts +73 -0
  253. package/lib/modal/index.d.ts +214 -3
  254. package/lib/modal/index.js +1 -1
  255. package/lib/modal/modal.d.ts +33 -15
  256. package/lib/modal/props.mixin.d.ts +5 -1
  257. package/lib/navigation/index.d.ts +2 -0
  258. package/lib/navigation/index.js +1 -0
  259. package/lib/navigation/navigation-title.d.ts +25 -0
  260. package/lib/navigation/navigation.css +184 -0
  261. package/lib/navigation/navigation.d.ts +111 -0
  262. package/lib/navigation/navigation.less +210 -0
  263. package/lib/navigation/navigation.variable.css +277 -0
  264. package/lib/notify/index.d.ts +2 -0
  265. package/lib/notify/index.js +1 -0
  266. package/lib/notify/notify.css +49 -0
  267. package/lib/notify/notify.less +58 -0
  268. package/lib/notify/notify.variable.css +142 -0
  269. package/lib/notify/notifyConstructor.d.ts +91 -0
  270. package/lib/pagination/index.d.ts +395 -0
  271. package/lib/pagination/index.js +1 -0
  272. package/lib/pagination/pagination.css +179 -0
  273. package/lib/pagination/pagination.d.ts +220 -0
  274. package/lib/pagination/pagination.less +201 -0
  275. package/lib/pagination/pagination.variable.css +272 -0
  276. package/lib/pagination/type.d.ts +6 -0
  277. package/lib/pagination/use-limit.d.ts +8 -0
  278. package/lib/pagination/use-list.d.ts +8 -0
  279. package/lib/pagination/use-small-list.d.ts +5 -0
  280. package/lib/pagination/use-total.d.ts +5 -0
  281. package/lib/popover/index.d.ts +287 -27
  282. package/lib/popover/index.js +1 -1
  283. package/lib/popover/popover.css +23 -14
  284. package/lib/popover/popover.d.ts +74 -45
  285. package/lib/popover/popover.less +57 -46
  286. package/lib/popover/popover.variable.css +55 -14
  287. package/lib/popover/props.d.ts +77 -0
  288. package/lib/preset.d.ts +7 -0
  289. package/lib/process/index.d.ts +205 -0
  290. package/lib/process/index.js +15 -0
  291. package/lib/process/process.css +138 -0
  292. package/lib/process/process.d.ts +131 -0
  293. package/lib/process/process.less +178 -0
  294. package/lib/process/process.variable.css +231 -0
  295. package/lib/progress/index.d.ts +398 -2
  296. package/lib/progress/index.js +1 -1
  297. package/lib/progress/progress.css +0 -3
  298. package/lib/progress/progress.d.ts +88 -35
  299. package/lib/progress/progress.less +0 -4
  300. package/lib/progress/progress.variable.css +32 -3
  301. package/lib/radio/index.d.ts +277 -2
  302. package/lib/radio/index.js +1 -1
  303. package/lib/radio/radio-button.d.ts +24 -16
  304. package/lib/radio/radio-group.d.ts +11 -10
  305. package/lib/radio/radio.css +6 -0
  306. package/lib/radio/radio.d.ts +23 -13
  307. package/lib/radio/radio.less +7 -0
  308. package/lib/radio/radio.variable.css +38 -0
  309. package/lib/rate/index.d.ts +113 -2
  310. package/lib/rate/index.js +1 -1
  311. package/lib/rate/rate.d.ts +13 -10
  312. package/lib/rate/star.d.ts +33 -16
  313. package/lib/select/common.d.ts +13 -3
  314. package/lib/select/index.d.ts +962 -2
  315. package/lib/select/index.js +15 -1
  316. package/lib/select/option.d.ts +12 -19
  317. package/lib/select/optionGroup.d.ts +130 -0
  318. package/lib/select/select.css +130 -14
  319. package/lib/select/select.d.ts +152 -150
  320. package/lib/select/select.less +164 -26
  321. package/lib/select/select.variable.css +162 -14
  322. package/lib/shared/bk-helper-core.d.ts +6 -0
  323. package/lib/shared/bk-mask-manager.d.ts +32 -3
  324. package/lib/shared/bk-pop-manager.d.ts +8 -1
  325. package/lib/shared/bk-popover.d.ts +56 -5
  326. package/lib/shared/index.d.ts +24 -0
  327. package/lib/shared/index.js +1 -1
  328. package/lib/shared/utils.d.ts +6 -0
  329. package/lib/shared/vue-types.d.ts +7 -6
  330. package/lib/shared/z-index-manager.d.ts +6 -1
  331. package/lib/sideslider/index.d.ts +206 -2
  332. package/lib/sideslider/index.js +1 -1
  333. package/lib/sideslider/sideslider.d.ts +39 -18
  334. package/lib/sideslider/sideslider.variable.css +32 -0
  335. package/{index.d.ts → lib/slider/index.d.ts} +4 -5
  336. package/lib/slider/index.js +15 -0
  337. package/{commitlint.config.js → lib/slider/slider-button.d.ts} +50 -42
  338. package/lib/slider/slider.css +149 -0
  339. package/lib/slider/slider.d.ts +189 -0
  340. package/lib/slider/slider.less +179 -0
  341. package/lib/slider/slider.variable.css +242 -0
  342. package/lib/steps/index.d.ts +250 -0
  343. package/lib/steps/index.js +15 -0
  344. package/lib/steps/steps.css +288 -0
  345. package/lib/steps/steps.d.ts +161 -0
  346. package/lib/steps/steps.less +324 -0
  347. package/lib/steps/steps.variable.css +381 -0
  348. package/lib/styles/index.d.ts +43 -25
  349. package/lib/styles/index.js +1 -1
  350. package/lib/styles/mixins/popper.css +43 -0
  351. package/lib/styles/mixins/popper.less +52 -0
  352. package/lib/styles/mixins/popper.variable.css +43 -0
  353. package/lib/styles/mixins/size.less +9 -0
  354. package/lib/styles/reset.css +273 -0
  355. package/lib/styles/reset.less +313 -0
  356. package/lib/styles/reset.variable.css +273 -0
  357. package/lib/styles/themes/themes.less +52 -2
  358. package/lib/switcher/index.d.ts +286 -2
  359. package/lib/switcher/index.js +1 -1
  360. package/lib/switcher/switcher.css +149 -135
  361. package/lib/switcher/switcher.d.ts +48 -32
  362. package/lib/switcher/switcher.less +210 -154
  363. package/lib/switcher/switcher.variable.css +181 -135
  364. package/lib/tab/index.d.ts +552 -0
  365. package/lib/tab/index.js +1 -0
  366. package/lib/tab/tab-nav.d.ts +190 -0
  367. package/lib/tab/tab-panel.d.ts +48 -0
  368. package/lib/tab/tab.css +147 -0
  369. package/lib/tab/tab.d.ts +163 -0
  370. package/lib/tab/tab.less +221 -0
  371. package/lib/tab/tab.variable.css +240 -0
  372. package/lib/table/const.d.ts +4 -0
  373. package/lib/table/index.d.ts +282 -2
  374. package/lib/table/index.js +1 -1
  375. package/lib/table/props.d.ts +118 -0
  376. package/lib/table/render.d.ts +74 -0
  377. package/lib/table/table.css +90 -0
  378. package/lib/table/table.d.ts +85 -37
  379. package/lib/table/table.less +116 -1
  380. package/lib/table/table.variable.css +122 -0
  381. package/lib/table/utils.d.ts +69 -0
  382. package/lib/tag/index.d.ts +229 -2
  383. package/lib/tag/index.js +1 -1
  384. package/lib/tag/tag.css +91 -0
  385. package/lib/tag/tag.d.ts +83 -53
  386. package/lib/tag/tag.less +103 -2
  387. package/lib/tag/tag.variable.css +123 -0
  388. package/lib/timeline/index.d.ts +129 -0
  389. package/lib/timeline/index.js +1 -0
  390. package/lib/timeline/timeline.css +235 -0
  391. package/lib/timeline/timeline.d.ts +81 -0
  392. package/lib/timeline/timeline.less +239 -0
  393. package/lib/timeline/timeline.variable.css +328 -0
  394. package/{changelog.config.js → lib/transfer/index.d.ts} +2 -8
  395. package/lib/transfer/index.js +1 -0
  396. package/lib/transfer/transfer.css +158 -0
  397. package/lib/transfer/transfer.d.ts +185 -0
  398. package/lib/transfer/transfer.less +171 -0
  399. package/lib/transfer/transfer.variable.css +251 -0
  400. package/lib/tree/index.d.ts +276 -0
  401. package/lib/tree/index.js +1 -0
  402. package/lib/tree/props.d.ts +89 -0
  403. package/lib/tree/tree.css +42 -0
  404. package/lib/tree/tree.d.ts +112 -0
  405. package/lib/tree/tree.less +52 -0
  406. package/lib/tree/tree.variable.css +42 -0
  407. package/lib/tree/util.d.ts +70 -0
  408. package/lib/use-form.d.ts +3 -0
  409. package/lib/use-message.d.ts +2 -0
  410. package/lib/virtual-render/index.d.ts +556 -0
  411. package/lib/virtual-render/index.js +1 -0
  412. package/lib/virtual-render/props.d.ts +157 -0
  413. package/lib/virtual-render/v-virtual-render.d.ts +7 -0
  414. package/lib/virtual-render/virtual-render.css +40 -0
  415. package/lib/virtual-render/virtual-render.d.ts +244 -0
  416. package/lib/virtual-render/virtual-render.less +51 -0
  417. package/lib/virtual-render/virtual-render.variable.css +40 -0
  418. package/package.json +63 -48
  419. package/index.html +0 -40
  420. package/lib/checkbox-group/index.d.ts +0 -2
  421. package/lib/checkbox-group/index.js +0 -1
  422. package/lib/radio-button/index.d.ts +0 -2
  423. package/lib/radio-button/index.js +0 -1
  424. package/lib/radio-group/index.d.ts +0 -2
  425. package/lib/radio-group/index.js +0 -1
  426. package/lib/table/common.d.ts +0 -3
  427. package/lib/table/table-layout.d.ts +0 -14
  428. package/lib/table/type.d.ts +0 -12
package/package.json CHANGED
@@ -1,104 +1,113 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.1-beta.2",
3
+ "version": "0.0.1-beta.22",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*"
7
7
  ]
8
8
  },
9
9
  "scripts": {
10
- "prepare1": "node ./scripts/references-config.js",
11
10
  "lint": "eslint ./packages ./site --ext .js,.ts,.tsx",
12
11
  "lint:style": "stylelint --fix ./packages/**/*.{css,less} --custom-syntax",
13
12
  "lint:fix": "eslint --fix ./packages ./site ./scripts --ext .js,.ts,.tsx",
14
13
  "test:unit": "jest --passWithNoTests",
15
14
  "dev": "vite serve site",
16
15
  "build": "yarn build:library && yarn build:component",
17
- "build:site": "vite build site",
16
+ "build:site": "vite build site --mode development",
18
17
  "build:library": "rimraf dist && cross-env NODE_ENV=production ts-node --project=scripts/tsconfig.scripts.json scripts/build-library.ts",
19
18
  "build:component": "rimraf lib && npm run generate:declation && cross-env NODE_ENV=production ts-node --project=scripts/tsconfig.scripts.json scripts/build-component/index.ts",
20
19
  "compile:dev": "node --inspect-brk ./node_modules/.bin/ts-node --project=./scripts/tsconfig.scripts.json ./scripts/build-component/index.ts",
21
20
  "cz": "git-cz",
22
21
  "generate:icon": "lerna run --scope @bkui-vue/icon build",
23
22
  "release": "yarn build && rimraf package.json.bak && cross-env NODE_ENV=production ts-node --project=scripts/tsconfig.scripts.json scripts/release.ts",
24
- "changelog": "conventional-changelog -c changelog.config.js -p angular -i CHANGELOG.md -s -l",
23
+ "changelog": "conventional-changelog -c .changelog.config.js -p angular -i CHANGELOG.md -s -l",
25
24
  "prepare": "husky install",
26
25
  "generate:declation": "rimraf lib && tsc -p ./scripts/tsconfig.declaration.json"
27
26
  },
28
27
  "devDependencies": {
29
- "@babel/core": "~7.14.8",
30
- "@babel/eslint-parser": "~7.14.9",
31
- "@babel/plugin-transform-runtime": "~7.14.5",
32
- "@babel/plugin-transform-typescript": "~7.14.6",
33
- "@babel/preset-env": "~7.14.9",
34
- "@babel/preset-typescript": "~7.14.5",
35
- "@commitlint/cli": "~13.1.0",
36
- "@commitlint/config-conventional": "~13.1.0",
28
+ "@babel/core": "~7.17.9",
29
+ "@babel/eslint-parser": "~7.17.0",
30
+ "@babel/plugin-transform-runtime": "~7.17.0",
31
+ "@babel/plugin-transform-typescript": "~7.16.8",
32
+ "@babel/preset-env": "~7.16.11",
33
+ "@babel/preset-typescript": "~7.16.7",
34
+ "@commitlint/cli": "~16.2.3",
35
+ "@commitlint/config-conventional": "~16.2.1",
37
36
  "@rollup/plugin-babel": "~5.3.0",
38
- "@rollup/plugin-commonjs": "~20.0.0",
37
+ "@rollup/plugin-commonjs": "~21.0.3",
39
38
  "@rollup/plugin-json": "~4.1.0",
40
- "@rollup/plugin-node-resolve": "~13.0.4",
41
- "@types/jest": "~26.0.23",
42
- "@typescript-eslint/eslint-plugin": "~4.29.0",
43
- "@typescript-eslint/parser": "~4.29.0",
44
- "@vitejs/plugin-vue": "~1.3.0",
45
- "@vitejs/plugin-vue-jsx": "~1.1.7",
46
- "@vue/babel-plugin-jsx": "~1.0.5",
39
+ "@rollup/plugin-node-resolve": "~13.1.3",
40
+ "@types/jest": "~27.4.1",
41
+ "@types/node": "~17.0.23",
42
+ "@typescript-eslint/eslint-plugin": "~5.18.0",
43
+ "@typescript-eslint/parser": "~5.18.0",
44
+ "@vitejs/plugin-vue": "~2.3.1",
45
+ "@vitejs/plugin-vue-jsx": "~1.3.9",
46
+ "@vue/babel-plugin-jsx": "~1.1.1",
47
47
  "@vue/babel-preset-jsx": "~1.2.4",
48
- "@vue/compiler-sfc": "~3.1.5",
49
- "@vue/component-compiler-utils": "~3.2.0",
48
+ "@vue/compiler-sfc": "~3.2.31",
49
+ "@vue/component-compiler-utils": "~3.3.0",
50
50
  "@vue/eslint-config-standard": "~6.1.0",
51
- "@vue/eslint-config-typescript": "~7.0.0",
51
+ "@vue/eslint-config-typescript": "~9.1.0",
52
52
  "@vue/test-utils": "~2.0.0-rc.12",
53
+ "@vue/vue3-jest": "~27.0.0-alpha.4",
54
+ "acorn": "~8.7.0",
53
55
  "acorn-jsx": "~5.3.1",
54
- "babel-jest": "~27.0.6",
56
+ "babel-jest": "~27.5.1",
55
57
  "chalk": "~4.1.2",
58
+ "clipboard": "~2.0.8",
56
59
  "commitizen": "~4.2.4",
57
- "conventional-changelog-cli": "~2.1.1",
60
+ "conventional-changelog-cli": "~2.2.2",
58
61
  "cross-env": "~7.0.3",
59
62
  "cz-lerna-changelog": "~2.0.3",
60
63
  "eslint": "~7.32.0",
61
- "eslint-config-tencent": "~1.0.2",
64
+ "eslint-config-tencent": "~1.0.4",
62
65
  "eslint-plugin-codecc": "~0.0.4",
63
- "eslint-plugin-import": "~2.23.4",
66
+ "eslint-plugin-import": "~2.26.0",
64
67
  "eslint-plugin-node": "~11.1.0",
68
+ "eslint-plugin-prettier": "~4.0.0",
65
69
  "eslint-plugin-promise": "~5.1.0",
66
- "eslint-plugin-vue": "~7.15.1",
70
+ "eslint-plugin-vue": "~7.20.0",
71
+ "highlight.js": "~11.5.0",
67
72
  "husky": "~7.0.1",
68
- "jest": "~27.0.6",
73
+ "jest": "~27.5.1",
69
74
  "jest-transform-stub": "~2.0.0",
70
75
  "lerna": "~4.0.0",
71
76
  "less": "~4.1.1",
72
- "lint-staged": "~11.1.1",
77
+ "lint-staged": "~12.3.7",
78
+ "markdown-it-container": "~3.0.0",
73
79
  "normalize-wheel": "~1.0.1",
74
80
  "ora": "~5.4.1",
75
- "plop": "~2.7.4",
76
- "postcss": "~8.3.6",
77
- "postcss-less": "~5.0.0",
81
+ "plop": "~3.0.5",
82
+ "postcss": "~8.4.12",
83
+ "postcss-less": "~6.0.0",
84
+ "prettier": "~2.6.2",
85
+ "prismjs": "~1.27.0",
78
86
  "rimraf": "~3.0.2",
79
- "rollup": "~2.55.1",
87
+ "rollup": "~2.70.1",
80
88
  "rollup-plugin-progress": "~1.1.2",
81
89
  "rollup-plugin-svg": "~2.0.0",
82
90
  "rollup-plugin-terser": "~7.0.2",
83
- "rollup-plugin-typescript2": "~0.30.0",
84
- "stylelint": "~13.13.1",
85
- "stylelint-order": "~4.1.0",
86
- "stylelint-scss": "~3.20.1",
87
- "ts-jest": "~27.0.4",
88
- "ts-node": "~10.1.0",
89
- "typescript": "~4.3.5",
90
- "vite": "~2.4.4",
91
- "vue": "3.2.2",
92
- "vue-jest": "~5.0.0-alpha.8",
93
- "vue-router": "~4.0.10",
94
- "vue-types": "~4.0.1"
91
+ "rollup-plugin-typescript2": "~0.31.2",
92
+ "stylelint": "~14.6.1",
93
+ "stylelint-order": "~5.0.0",
94
+ "stylelint-scss": "~4.2.0",
95
+ "ts-jest": "~27.1.4",
96
+ "ts-node": "~10.7.0",
97
+ "ttypescript": "~1.5.12",
98
+ "typescript": "~4.6.3",
99
+ "vite": "~2.9.1",
100
+ "vite-plugin-md": "~0.12.4",
101
+ "vue": "^3.2.0",
102
+ "vue-router": "~4.0.14",
103
+ "vue-types": "~4.1.1"
95
104
  },
96
105
  "peerDependencies": {
97
- "vue": "3.2.x",
98
- "vue-types": "~4.0.1"
106
+ "vue": "^3.2.0"
99
107
  },
100
108
  "main": "dist/bkui-vue.umd.js",
101
109
  "module": "dist/bkui-vue.esm.js",
110
+ "typings": "./lib/index.d.ts",
102
111
  "lint-staged": {
103
112
  "*.css": "stylelint",
104
113
  "*.less": "stylelint --fix --syntax=less",
@@ -111,5 +120,11 @@
111
120
  "commitizen": {
112
121
  "path": "./node_modules/cz-lerna-changelog"
113
122
  }
123
+ },
124
+ "dependencies": {
125
+ "@popperjs/core": "~2.11.5",
126
+ "date-fns": "~2.28.0",
127
+ "js-calendar": "~1.2.3",
128
+ "vue-types": "~4.1.1"
114
129
  }
115
130
  }
package/index.html DELETED
@@ -1,40 +0,0 @@
1
- <!--
2
- * Tencent is pleased to support the open source community by making
3
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
4
- *
5
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
6
- *
7
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
8
- *
9
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
10
- *
11
- *
12
- * Terms of the MIT License:
13
- * ---------------------------------------------------
14
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
15
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
16
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
17
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
18
- *
19
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
20
- * the Software.
21
- *
22
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
23
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
25
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
26
- * IN THE SOFTWARE.
27
- -->
28
-
29
- <!DOCTYPE html>
30
- <html lang="en">
31
- <head>
32
- <meta charset="UTF-8" />
33
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
34
- <title>BK UI</title>
35
- </head>
36
- <body>
37
- <div id="app"></div>
38
- <script type="module" src="/src/main.ts"></script>
39
- </body>
40
- </html>
@@ -1,2 +0,0 @@
1
- import CheckboxGroup from '../../checkbox/src/checkbox-group';
2
- export default CheckboxGroup;
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,o){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={exports:{}},u={exports:{}},a={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r},e.exports.default=e.exports,e.exports.__esModule=!0}(a),function(e){var t=a.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(u);var l={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(l);var s={exports:{}};!function(e){var t=a.exports;e.exports=function(e,o){if(e){if("string"==typeof e)return t(e,o);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,o):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0}(s);var p={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}(p),function(e){var t=u.exports,o=l.exports,r=s.exports,n=p.exports;e.exports=function(e){return t(e)||o(e)||r(e)||n()},e.exports.default=e.exports,e.exports.__esModule=!0}(n);var i=r(n.exports),c=Symbol("CheckboxGroup"),d={name:o.PropTypes.string.def(""),modelValue:o.PropTypes.array,disabled:o.PropTypes.bool},f=t.defineComponent({name:"BkCheckboxGroup",props:d,emits:["change","update:modelValue"],setup:function(e,o){var r=t.reactive({localValue:e.modelValue?i(e.modelValue):[]});t.watch((function(){return e.modelValue}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];r.localValue=i(e)}));var n=[];return t.provide(c,{name:"BkCheckboxGroup",props:e,state:r,register:function(e){n.push(e)},unregister:function(e){var t=n.indexOf(e);t>-1&&n.splice(t,1)},handleChange:function(t,n){var u=i(r.localValue);u=t?[].concat(i(r.localValue),[n]):r.localValue.reduce((function(e,t){return t!==n&&e.push(t),e}),[]),e.modelValue||(r.localValue=u),o.emit("update:modelValue",u),o.emit("change",u)}}),t.onMounted((function(){n.forEach((function(e){(e.isChecked||e.checked)&&r.localValue.push(e.label)}))})),{}},render:function(){return t.createVNode("div",{class:"bk-checkbox-group"},[this.$slots.default()])}});f.install=function(e){e.component(f.name,f)},e.default=f,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,2 +0,0 @@
1
- import RadioButton from '../../radio/src/radio-button';
2
- export default RadioButton;
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,r){"use strict";function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={exports:{}},s={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0}(s);var a={exports:{}};!function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,s=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(s.push(o.value),!t||s.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw n}}return s}},e.exports.default=e.exports,e.exports.__esModule=!0}(a);var l={exports:{}},u={exports:{}};!function(e){e.exports=function(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},e.exports.default=e.exports,e.exports.__esModule=!0}(u),function(e){var t=u.exports;e.exports=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}},e.exports.default=e.exports,e.exports.__esModule=!0}(l);var i={exports:{}};!function(e){e.exports=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.")},e.exports.default=e.exports,e.exports.__esModule=!0}(i),function(e){var t=s.exports,r=a.exports,o=l.exports,n=i.exports;e.exports=function(e,s){return t(e)||r(e,s)||o(e,s)||n()},e.exports.default=e.exports,e.exports.__esModule=!0}(n);var d=o(n.exports),p=Symbol("RadioGroup");var c={name:r.PropTypes.string.def(""),label:r.PropTypes.oneOfType([String,Number,Boolean]).isRequired,modelValue:r.PropTypes.oneOfType([String,Number,Boolean]).def(""),checked:r.PropTypes.bool.def(!1),disabled:r.PropTypes.bool.def(!1),size:r.PropTypes.size},f=t.defineComponent({name:"BkRadioButton",props:c,emits:["change","update:modelValue"],setup:function(){var e=function(){var e=t.ref(!1);return[e,{blur:function(){e.value=!1},focus:function(){e.value=!0}}]}(),o=d(e,2),n=o[0],s=o[1],a=s.blur,l=s.focus,u=function(){var e=t.getCurrentInstance(),o=e.props,n=e.emit,s=t.inject(p,r.EMPTY_OBJ),a=!r.isEmptyObj(s),l=t.reactive({isLocalChecked:o.checked}),u=t.computed((function(){return a?s.state.localValue===o.label:""!==o.modelValue?o.modelValue===o.label:l.isLocalChecked}));l.isLocalChecked=u.value;var i=t.computed((function(){return!(!a||!s.props.disabled)||o.disabled}));return{name:t.computed((function(){return a&&s.props.name?s.props.name:o.name})),isCheck:u,isDisabled:i,handlerChange:function(){i.value||(n("change",o.label),n("update:modelValue",o.label),a&&s.handleChange(o.label))}}}();return{isFocus:n,realName:u.name,isCheck:u.isCheck,isDisabled:u.isDisabled,handleBlur:a,handleFocus:l,handlerChange:u.handlerChange}},render:function(){var e=r.classes({"bk-radio-button":!0,"is-focus":this.isFocus,"is-disabled":this.isDisabled,"is-checked":this.isCheck});return t.createVNode("label",{class:e,tabindex:"0"},[t.createVNode("input",{class:"bk-radio-button-input",type:"radio",tabindex:"0",name:this.realName,value:this.label,checked:this.isCheck,disabled:this.isDisabled,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handlerChange},null),t.createVNode("div",{class:"bk-radio-button-text"},[this.$slots.default?this.$slots.default():this.label])])}});f.install=function(e){e.component(f.name,f)},e.default=f,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,2 +0,0 @@
1
- import RadioGroup from '../../radio/src/radio-group';
2
- export default RadioGroup;
@@ -1 +0,0 @@
1
- !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,o,n){"use strict";var t=Symbol("RadioGroup"),u={name:n.PropTypes.string.def(""),modelValue:n.PropTypes.oneOfType([String,Number,Boolean]),disabled:n.PropTypes.bool},a=o.defineComponent({name:"BkRadioGroup",props:u,emits:["change","update:modelValue"],setup:function(e,n){var u=o.reactive({localValue:e.modelValue});o.watch((function(){return e.modelValue}),(function(){u.localValue=e.modelValue}));return o.provide(t,{props:e,state:u,handleChange:function(e){n.emit("update:modelValue",e),n.emit("change",e)}}),{}},render:function(){return o.createVNode("div",{class:"bk-radio-group"},[this.$slots.default()])}});a.install=function(e){e.component(a.name,a)},e.default=a,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,3 +0,0 @@
1
- export declare const useTable: () => {
2
- handleHeaderFooterMousewheel: (_event: any, data: any) => void;
3
- };
@@ -1,14 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { IAnyObject, ITable } from './type';
3
- export default class TableLayout {
4
- table: ITable;
5
- showHeader: boolean;
6
- headerHeight: Ref<null | number>;
7
- bodyWidth: Ref<null | number>;
8
- bodyHeight: Ref<null | number>;
9
- scrollY: Ref<boolean>;
10
- gutterWidth: number;
11
- footerHeight: Ref<null | number>;
12
- paginationHeight: Ref<null | number>;
13
- constructor(opts: IAnyObject);
14
- }
@@ -1,12 +0,0 @@
1
- import type { ComponentInternalInstance } from 'vue';
2
- export interface IAnyObject {
3
- [key: string]: any;
4
- }
5
- export interface ITableRefs {
6
- headerWrapper: HTMLElement;
7
- [key: string]: unknown;
8
- }
9
- export interface ITable extends ComponentInternalInstance {
10
- $ready: boolean;
11
- refs: ITableRefs;
12
- }