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

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 (652) hide show
  1. package/dist/index.cjs.js +179 -0
  2. package/dist/index.esm.js +38650 -0
  3. package/dist/index.umd.js +179 -0
  4. package/dist/style.css +1 -5865
  5. package/dist/style.variable.css +1 -0
  6. package/lib/affix/affix.css +360 -0
  7. package/lib/affix/affix.d.ts +47 -0
  8. package/lib/affix/affix.less +5 -0
  9. package/lib/affix/affix.variable.css +836 -0
  10. package/lib/affix/index.d.ts +143 -0
  11. package/lib/affix/index.js +1 -0
  12. package/lib/alert/alert.css +369 -6
  13. package/lib/alert/alert.d.ts +5 -5
  14. package/lib/alert/alert.less +29 -20
  15. package/lib/alert/alert.variable.css +753 -7
  16. package/lib/alert/index.d.ts +11 -11
  17. package/lib/alert/index.js +1 -0
  18. package/lib/animate-number/animate-number.d.ts +1 -1
  19. package/lib/animate-number/index.d.ts +4 -4
  20. package/lib/animate-number/{animate-number.js → index.js} +1 -1
  21. package/lib/backtop/backtop.css +367 -2
  22. package/lib/backtop/backtop.d.ts +1 -1
  23. package/lib/backtop/backtop.less +8 -0
  24. package/lib/backtop/backtop.variable.css +752 -4
  25. package/lib/backtop/index.d.ts +4 -4
  26. package/lib/backtop/index.js +1 -0
  27. package/lib/badge/badge.css +388 -31
  28. package/lib/badge/badge.d.ts +28 -7
  29. package/lib/badge/badge.less +5 -6
  30. package/lib/badge/badge.variable.css +749 -9
  31. package/lib/badge/index.d.ts +68 -18
  32. package/lib/badge/index.js +1 -0
  33. package/lib/breadcrumb/breadcrumb.css +413 -5
  34. package/lib/breadcrumb/breadcrumb.variable.css +795 -4
  35. package/lib/breadcrumb/index.js +1 -0
  36. package/lib/button/button-group.d.ts +2 -2
  37. package/lib/button/button.css +534 -139
  38. package/lib/button/button.d.ts +44 -24
  39. package/lib/button/button.less +74 -41
  40. package/lib/button/button.variable.css +831 -53
  41. package/lib/button/index.d.ts +70 -40
  42. package/lib/button/index.js +1 -0
  43. package/lib/card/card.css +457 -5
  44. package/lib/card/card.d.ts +47 -6
  45. package/lib/card/card.less +50 -2
  46. package/lib/card/card.variable.css +840 -5
  47. package/lib/card/index.d.ts +113 -17
  48. package/lib/card/index.js +1 -0
  49. package/lib/cascader/cascader-panel.d.ts +100 -0
  50. package/lib/cascader/cascader.css +530 -0
  51. package/lib/cascader/cascader.d.ts +303 -0
  52. package/lib/cascader/cascader.less +196 -0
  53. package/lib/cascader/cascader.variable.css +1006 -0
  54. package/lib/cascader/index.d.ts +868 -0
  55. package/lib/cascader/index.js +1 -0
  56. package/lib/cascader/interface.d.ts +51 -0
  57. package/lib/cascader/node.d.ts +31 -0
  58. package/lib/cascader/store.d.ts +23 -0
  59. package/lib/checkbox/checkbox-group.d.ts +16 -0
  60. package/lib/checkbox/checkbox.css +408 -15
  61. package/lib/checkbox/checkbox.d.ts +20 -24
  62. package/lib/checkbox/checkbox.less +79 -31
  63. package/lib/checkbox/checkbox.variable.css +790 -14
  64. package/lib/checkbox/common.d.ts +4 -3
  65. package/lib/checkbox/index.d.ts +47 -38
  66. package/lib/checkbox/index.js +1 -0
  67. package/lib/checkbox/type.d.ts +2 -6
  68. package/lib/code-diff/code-diff.css +384 -7
  69. package/lib/code-diff/code-diff.d.ts +1 -1
  70. package/lib/code-diff/code-diff.less +42 -7
  71. package/lib/code-diff/code-diff.variable.css +771 -11
  72. package/lib/code-diff/index.js +1 -0
  73. package/lib/collapse/collapse-panel.d.ts +67 -0
  74. package/lib/collapse/collapse.css +385 -12
  75. package/lib/collapse/collapse.d.ts +11 -52
  76. package/lib/collapse/collapse.less +54 -29
  77. package/lib/collapse/collapse.variable.css +861 -12
  78. package/lib/collapse/index.d.ts +108 -16
  79. package/lib/collapse/index.js +1 -0
  80. package/lib/collapse/props.d.ts +79 -0
  81. package/lib/collapse/utils.d.ts +11 -0
  82. package/lib/color-picker/color-picker.css +632 -0
  83. package/lib/color-picker/color-picker.d.ts +144 -0
  84. package/lib/color-picker/color-picker.less +325 -0
  85. package/lib/color-picker/color-picker.variable.css +1108 -0
  86. package/lib/color-picker/components/color-input.d.ts +42 -0
  87. package/lib/color-picker/components/hue-slider.d.ts +41 -0
  88. package/lib/color-picker/components/input-container.d.ts +42 -0
  89. package/lib/color-picker/components/recommend-colors.d.ts +51 -0
  90. package/lib/color-picker/components/saturation-panel.d.ts +41 -0
  91. package/lib/color-picker/index.d.ts +254 -0
  92. package/lib/color-picker/index.js +1 -0
  93. package/lib/color-picker/utils.d.ts +37 -0
  94. package/lib/components.d.ts +25 -8
  95. package/lib/components.js +1 -0
  96. package/lib/container/col.d.ts +51 -0
  97. package/lib/container/container.css +448 -0
  98. package/lib/container/container.d.ts +83 -0
  99. package/lib/container/container.less +20 -0
  100. package/lib/container/container.variable.css +924 -0
  101. package/lib/container/index.d.ts +223 -0
  102. package/lib/container/index.js +1 -0
  103. package/lib/container/row.d.ts +4 -0
  104. package/lib/date-picker/base/confirm.d.ts +74 -0
  105. package/lib/date-picker/base/date-table.d.ts +102 -0
  106. package/lib/date-picker/base/picker-dropdown.d.ts +73 -0
  107. package/lib/date-picker/base/time-spinner.d.ts +153 -0
  108. package/lib/date-picker/date-picker.css +402 -18
  109. package/lib/date-picker/date-picker.d.ts +49 -20
  110. package/lib/date-picker/date-picker.less +33 -1
  111. package/lib/date-picker/date-picker.variable.css +772 -5
  112. package/lib/date-picker/index.d.ts +121 -54
  113. package/lib/date-picker/index.js +1 -0
  114. package/lib/date-picker/interface.d.ts +11 -1
  115. package/lib/date-picker/panel/date-range.d.ts +309 -0
  116. package/lib/date-picker/panel/date.d.ts +206 -0
  117. package/lib/date-picker/panel/time-range.d.ts +489 -0
  118. package/lib/date-picker/panel/time.d.ts +448 -0
  119. package/lib/date-picker/props.d.ts +55 -5
  120. package/lib/date-picker/time-picker.d.ts +381 -0
  121. package/lib/date-picker/utils.d.ts +22 -2
  122. package/lib/dialog/dialog.css +144 -22
  123. package/lib/dialog/dialog.d.ts +256 -58
  124. package/lib/dialog/dialog.less +97 -23
  125. package/lib/dialog/dialog.variable.css +144 -22
  126. package/lib/dialog/index.d.ts +562 -126
  127. package/lib/dialog/index.js +1 -0
  128. package/lib/dialog/props.d.ts +130 -0
  129. package/lib/directives/ellipsis.d.ts +7 -0
  130. package/lib/directives/index.d.ts +1 -0
  131. package/lib/directives/index.js +2 -0
  132. package/lib/directives/{directives.js.LICENSE.txt → index.js.LICENSE.txt} +0 -0
  133. package/lib/directives/tooltips.d.ts +1 -1
  134. package/lib/dist.index.js +1 -0
  135. package/lib/divider/divider.css +360 -3
  136. package/lib/divider/divider.d.ts +15 -15
  137. package/lib/divider/divider.variable.css +744 -4
  138. package/lib/divider/index.d.ts +34 -34
  139. package/lib/divider/index.js +1 -0
  140. package/lib/divider/props.d.ts +6 -6
  141. package/lib/dropdown/dropdown.css +370 -7
  142. package/lib/dropdown/dropdown.d.ts +44 -13
  143. package/lib/dropdown/dropdown.less +47 -34
  144. package/lib/dropdown/dropdown.variable.css +757 -11
  145. package/lib/dropdown/index.d.ts +93 -32
  146. package/lib/dropdown/index.js +1 -0
  147. package/lib/exception/exception.css +397 -14
  148. package/lib/exception/exception.d.ts +18 -11
  149. package/lib/exception/exception.less +59 -22
  150. package/lib/exception/exception.variable.css +784 -18
  151. package/lib/exception/index.d.ts +41 -26
  152. package/lib/exception/index.js +1 -0
  153. package/lib/exception/typings/index.d.ts +4 -0
  154. package/lib/fixed-navbar/fixed-navbar.css +361 -4
  155. package/lib/fixed-navbar/fixed-navbar.d.ts +16 -2
  156. package/lib/fixed-navbar/fixed-navbar.variable.css +744 -4
  157. package/lib/fixed-navbar/index.d.ts +40 -5
  158. package/lib/fixed-navbar/{fixed-navbar.js → index.js} +1 -1
  159. package/lib/form/compose-form-item.d.ts +16 -0
  160. package/lib/form/form-item.d.ts +30 -8
  161. package/lib/form/form.css +461 -15
  162. package/lib/form/form.d.ts +28 -11
  163. package/lib/form/form.less +152 -45
  164. package/lib/form/form.variable.css +937 -15
  165. package/lib/form/index.d.ts +99 -32
  166. package/lib/form/index.js +1 -0
  167. package/lib/form/type.d.ts +8 -7
  168. package/lib/form/utils.d.ts +2 -0
  169. package/lib/form/validator.d.ts +1 -0
  170. package/lib/icon/angle-double-down-line.js +1 -1
  171. package/lib/icon/angle-double-left-line.js +1 -1
  172. package/lib/icon/angle-double-left.js +1 -1
  173. package/lib/icon/angle-double-right-line.js +1 -1
  174. package/lib/icon/angle-double-right.js +1 -1
  175. package/lib/icon/angle-double-up-line.js +1 -1
  176. package/lib/icon/angle-down-fill.js +1 -1
  177. package/lib/icon/angle-down-line.js +1 -1
  178. package/lib/icon/angle-down.js +1 -1
  179. package/lib/icon/angle-left.js +1 -1
  180. package/lib/icon/angle-right.js +1 -1
  181. package/lib/icon/angle-up-fill.js +1 -1
  182. package/lib/icon/angle-up.js +1 -1
  183. package/lib/icon/archive-fill.d.ts +4 -0
  184. package/lib/icon/archive-fill.js +1 -0
  185. package/lib/icon/arrows-left.js +1 -1
  186. package/lib/icon/arrows-right.js +1 -1
  187. package/lib/icon/audio-fill.d.ts +4 -0
  188. package/lib/icon/audio-fill.js +1 -0
  189. package/lib/icon/bk.js +1 -1
  190. package/lib/icon/circle.js +1 -1
  191. package/lib/icon/close-line.d.ts +4 -0
  192. package/lib/icon/close-line.js +1 -0
  193. package/lib/icon/close.js +1 -1
  194. package/lib/icon/code.js +1 -1
  195. package/lib/icon/cog-shape.js +1 -1
  196. package/lib/icon/collapse-left.js +1 -1
  197. package/lib/icon/copy.js +1 -1
  198. package/lib/icon/data-shape.d.ts +4 -0
  199. package/lib/icon/data-shape.js +1 -0
  200. package/lib/icon/del.d.ts +4 -0
  201. package/lib/icon/del.js +1 -0
  202. package/lib/icon/doc-fill.d.ts +4 -0
  203. package/lib/icon/doc-fill.js +1 -0
  204. package/lib/icon/done.js +1 -1
  205. package/lib/icon/down-shape.js +1 -1
  206. package/lib/icon/down-small.js +1 -1
  207. package/lib/icon/edit-line.d.ts +4 -0
  208. package/lib/icon/edit-line.js +1 -0
  209. package/lib/icon/ellipsis.js +1 -1
  210. package/lib/icon/enlarge-line.d.ts +4 -0
  211. package/lib/icon/enlarge-line.js +1 -0
  212. package/lib/icon/error.js +1 -1
  213. package/lib/icon/excel-fill.d.ts +4 -0
  214. package/lib/icon/excel-fill.js +1 -0
  215. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  216. package/lib/icon/exclamation-circle-shape.js +1 -0
  217. package/lib/icon/eye.js +1 -1
  218. package/lib/icon/filliscreen-line.d.ts +4 -0
  219. package/lib/icon/filliscreen-line.js +1 -0
  220. package/lib/icon/folder-open.js +1 -1
  221. package/lib/icon/folder-shape-open.js +1 -1
  222. package/lib/icon/folder-shape.js +1 -1
  223. package/lib/icon/folder.js +1 -1
  224. package/lib/icon/funnel.d.ts +4 -0
  225. package/lib/icon/funnel.js +1 -0
  226. package/lib/icon/help-document-fill.js +1 -1
  227. package/lib/icon/help-fill.js +1 -1
  228. package/lib/icon/help.js +1 -1
  229. package/lib/icon/image-fill.d.ts +4 -0
  230. package/lib/icon/img-error.d.ts +4 -0
  231. package/lib/icon/img-error.js +1 -0
  232. package/lib/icon/img-placehoulder.d.ts +4 -0
  233. package/lib/icon/img-placehoulder.js +1 -0
  234. package/lib/icon/index.d.ts +27 -1
  235. package/lib/icon/index.js +1 -0
  236. package/lib/icon/info-line.js +1 -1
  237. package/lib/icon/info.js +1 -1
  238. package/lib/icon/left-shape.js +1 -1
  239. package/lib/icon/left-turn-line.d.ts +4 -0
  240. package/lib/icon/left-turn-line.js +1 -0
  241. package/lib/icon/narrow-line.d.ts +4 -0
  242. package/lib/icon/narrow-line.js +1 -0
  243. package/lib/icon/original.d.ts +4 -0
  244. package/lib/icon/original.js +1 -0
  245. package/lib/icon/pdf-fill.d.ts +4 -0
  246. package/lib/icon/pdf-fill.js +1 -0
  247. package/lib/icon/play-shape.js +1 -1
  248. package/lib/icon/plus.js +1 -1
  249. package/lib/icon/ppt-fill.d.ts +4 -0
  250. package/lib/icon/ppt-fill.js +1 -0
  251. package/lib/icon/qq.js +1 -1
  252. package/lib/icon/right-shape.js +1 -1
  253. package/lib/icon/right-turn-line.d.ts +4 -0
  254. package/lib/icon/right-turn-line.js +1 -0
  255. package/lib/icon/search.js +1 -1
  256. package/lib/icon/share.js +1 -1
  257. package/lib/icon/spinner.js +1 -1
  258. package/lib/icon/success.js +1 -1
  259. package/lib/icon/switcher-loading.js +1 -1
  260. package/lib/icon/text-file.js +1 -1
  261. package/lib/icon/text-fill.d.ts +4 -0
  262. package/lib/icon/text-fill.js +1 -0
  263. package/lib/icon/transfer.d.ts +4 -0
  264. package/lib/icon/transfer.js +1 -0
  265. package/lib/icon/tree-application-shape.js +1 -1
  266. package/lib/icon/unfull-screen.d.ts +4 -0
  267. package/lib/icon/unfull-screen.js +1 -0
  268. package/lib/icon/unvisible.js +1 -1
  269. package/lib/icon/up-shape.js +1 -1
  270. package/lib/icon/upload.d.ts +4 -0
  271. package/lib/icon/upload.js +1 -0
  272. package/lib/icon/video-fill.d.ts +4 -0
  273. package/lib/icon/video-fill.js +1 -0
  274. package/lib/icon/warn.js +1 -1
  275. package/lib/icon/weixin.js +1 -1
  276. package/lib/image/image-viewer.css +142 -0
  277. package/lib/image/image-viewer.d.ts +73 -0
  278. package/lib/image/image-viewer.less +168 -0
  279. package/lib/image/image-viewer.variable.css +142 -0
  280. package/lib/image/image.css +37 -0
  281. package/lib/image/image.d.ts +93 -0
  282. package/lib/image/image.less +44 -0
  283. package/lib/image/image.variable.css +37 -0
  284. package/lib/image/index.d.ts +246 -0
  285. package/lib/image/index.js +1 -0
  286. package/lib/image/props.d.ts +71 -0
  287. package/lib/index.d.ts +1 -1
  288. package/lib/index.js +1 -0
  289. package/lib/info-box/index.d.ts +6 -0
  290. package/lib/info-box/index.js +1 -0
  291. package/lib/info-box/info-box.css +37 -0
  292. package/lib/info-box/info-box.d.ts +26 -0
  293. package/lib/info-box/info-box.less +50 -0
  294. package/lib/info-box/info-box.variable.css +37 -0
  295. package/lib/input/index.d.ts +183 -72
  296. package/lib/input/index.js +1 -0
  297. package/lib/input/input.css +600 -41
  298. package/lib/input/input.d.ts +125 -25
  299. package/lib/input/input.less +158 -17
  300. package/lib/input/input.variable.css +960 -18
  301. package/lib/link/index.d.ts +15 -15
  302. package/lib/link/index.js +1 -0
  303. package/lib/link/link.css +381 -24
  304. package/lib/link/link.d.ts +6 -6
  305. package/lib/link/link.less +16 -14
  306. package/lib/link/link.variable.css +756 -16
  307. package/lib/loading/index.d.ts +112 -19
  308. package/lib/loading/index.js +1 -0
  309. package/lib/loading/loading.css +450 -50
  310. package/lib/loading/loading.d.ts +78 -12
  311. package/lib/loading/loading.less +17 -22
  312. package/lib/loading/loading.variable.css +821 -38
  313. package/lib/menu/index.d.ts +16 -24
  314. package/lib/menu/index.js +1 -0
  315. package/lib/menu/menu.css +426 -18
  316. package/lib/menu/menu.d.ts +7 -16
  317. package/lib/menu/menu.variable.css +795 -4
  318. package/lib/menu/submenu.css +357 -0
  319. package/lib/menu/submenu.variable.css +744 -4
  320. package/lib/message/index.js +1 -0
  321. package/lib/message/message.css +397 -19
  322. package/lib/message/message.less +28 -3
  323. package/lib/message/message.variable.css +769 -8
  324. package/lib/message/messageConstructor.d.ts +47 -11
  325. package/lib/modal/index.d.ts +456 -78
  326. package/lib/modal/index.js +1 -0
  327. package/lib/modal/modal.css +63 -1
  328. package/lib/modal/modal.d.ts +174 -30
  329. package/lib/modal/modal.less +36 -1
  330. package/lib/modal/modal.variable.css +63 -1
  331. package/lib/modal/props.mixin.d.ts +74 -13
  332. package/lib/navigation/index.d.ts +310 -1
  333. package/lib/navigation/index.js +1 -0
  334. package/lib/navigation/navigation.css +360 -3
  335. package/lib/navigation/navigation.d.ts +10 -1
  336. package/lib/navigation/navigation.less +1 -1
  337. package/lib/navigation/navigation.variable.css +745 -5
  338. package/lib/notify/index.js +1 -0
  339. package/lib/notify/notify.css +386 -9
  340. package/lib/notify/notify.less +27 -4
  341. package/lib/notify/notify.variable.css +768 -8
  342. package/lib/notify/notifyConstructor.d.ts +56 -12
  343. package/lib/pagination/index.d.ts +35 -20
  344. package/lib/pagination/index.js +1 -0
  345. package/lib/pagination/pagination.css +412 -29
  346. package/lib/pagination/pagination.d.ts +18 -8
  347. package/lib/pagination/pagination.less +59 -30
  348. package/lib/pagination/pagination.variable.css +798 -32
  349. package/lib/plugin-popover/index.d.ts +27 -0
  350. package/lib/plugin-popover/index.js +1 -0
  351. package/lib/plugins/index.d.ts +1 -0
  352. package/lib/plugins/index.js +1 -0
  353. package/lib/popover/arrow.d.ts +2 -0
  354. package/lib/popover/const.d.ts +16 -0
  355. package/lib/popover/content.d.ts +24 -0
  356. package/lib/popover/index.d.ts +430 -97
  357. package/lib/popover/index.js +1 -0
  358. package/lib/popover/plugin-popover.d.ts +12 -0
  359. package/lib/popover/popover.css +364 -47
  360. package/lib/popover/popover.d.ts +188 -43
  361. package/lib/popover/popover.less +19 -66
  362. package/lib/popover/popover.variable.css +751 -51
  363. package/lib/popover/props.d.ts +91 -31
  364. package/lib/popover/reference.d.ts +2 -0
  365. package/lib/popover/root.d.ts +16 -0
  366. package/lib/popover/use-floating.d.ts +34 -0
  367. package/lib/popover/use-platform.d.ts +30 -0
  368. package/lib/popover/use-popover-init.d.ts +22 -0
  369. package/lib/popover/use-popper-id.d.ts +6 -0
  370. package/lib/popover/utils.d.ts +2 -0
  371. package/lib/popover2/index.d.ts +44 -0
  372. package/lib/popover2/index.js +1 -0
  373. package/lib/popover2/popover.d.ts +2 -0
  374. package/lib/preset.js +1 -0
  375. package/lib/process/index.d.ts +9 -9
  376. package/lib/process/index.js +1 -0
  377. package/lib/process/process.css +381 -11
  378. package/lib/process/process.d.ts +2 -2
  379. package/lib/process/process.less +17 -0
  380. package/lib/process/process.variable.css +757 -4
  381. package/lib/progress/index.d.ts +25 -25
  382. package/lib/progress/index.js +1 -0
  383. package/lib/progress/progress.css +412 -4
  384. package/lib/progress/progress.d.ts +10 -10
  385. package/lib/progress/progress.variable.css +795 -4
  386. package/lib/radio/common.d.ts +5 -5
  387. package/lib/radio/index.d.ts +29 -18
  388. package/lib/radio/index.js +1 -0
  389. package/lib/radio/radio-button.d.ts +7 -8
  390. package/lib/radio/radio-group.d.ts +16 -0
  391. package/lib/radio/radio.css +418 -60
  392. package/lib/radio/radio.d.ts +4 -4
  393. package/lib/radio/radio.less +177 -173
  394. package/lib/radio/radio.variable.css +795 -54
  395. package/lib/radio/type.d.ts +9 -4
  396. package/lib/rate/index.d.ts +28 -5
  397. package/lib/rate/index.js +1 -0
  398. package/lib/rate/rate.d.ts +13 -2
  399. package/lib/rate/star.d.ts +1 -1
  400. package/lib/resize-layout/index.d.ts +18 -18
  401. package/lib/resize-layout/index.js +1 -0
  402. package/lib/resize-layout/resize-layout.css +360 -15
  403. package/lib/resize-layout/resize-layout.d.ts +7 -7
  404. package/lib/resize-layout/resize-layout.less +3 -19
  405. package/lib/resize-layout/resize-layout.variable.css +747 -19
  406. package/lib/search-select/index.d.ts +794 -0
  407. package/lib/search-select/index.js +1 -0
  408. package/lib/search-select/input.d.ts +87 -0
  409. package/lib/search-select/menu.d.ts +83 -0
  410. package/lib/search-select/search-select.css +781 -0
  411. package/lib/search-select/search-select.d.ts +324 -0
  412. package/lib/search-select/search-select.less +380 -0
  413. package/lib/search-select/search-select.variable.css +1257 -0
  414. package/lib/search-select/selected.d.ts +139 -0
  415. package/lib/search-select/utils.d.ts +84 -0
  416. package/lib/select/common.d.ts +5 -12
  417. package/lib/select/index.d.ts +1243 -592
  418. package/lib/select/index.js +1 -0
  419. package/lib/select/option.d.ts +16 -4
  420. package/lib/select/optionGroup.d.ts +1 -1
  421. package/lib/select/select.css +553 -121
  422. package/lib/select/select.d.ts +470 -129
  423. package/lib/select/select.less +317 -197
  424. package/lib/select/select.variable.css +931 -116
  425. package/lib/select/selectTagInput.d.ts +93 -0
  426. package/lib/select/type.d.ts +21 -13
  427. package/lib/shared/dom.d.ts +3 -0
  428. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  429. package/lib/shared/hooks/use-form.d.ts +2 -0
  430. package/lib/shared/index.d.ts +23 -0
  431. package/lib/shared/index.js +1 -0
  432. package/lib/shared/mask-manager.d.ts +6 -2
  433. package/lib/shared/pop-manager.d.ts +16 -4
  434. package/lib/shared/popover.d.ts +6 -2
  435. package/lib/shared/token.d.ts +4 -0
  436. package/lib/shared/utils.d.ts +19 -0
  437. package/lib/shared/vue-types.d.ts +98 -8
  438. package/lib/sideslider/index.d.ts +343 -72
  439. package/lib/sideslider/index.js +1 -0
  440. package/lib/sideslider/sideslider.css +413 -11
  441. package/lib/sideslider/sideslider.d.ts +160 -32
  442. package/lib/sideslider/sideslider.less +72 -13
  443. package/lib/sideslider/sideslider.variable.css +799 -14
  444. package/lib/slider/index.d.ts +414 -1
  445. package/lib/slider/index.js +1 -0
  446. package/lib/slider/slider-button.d.ts +2 -1
  447. package/lib/slider/slider.css +361 -4
  448. package/lib/slider/slider.d.ts +4 -4
  449. package/lib/slider/slider.variable.css +744 -4
  450. package/lib/steps/index.d.ts +52 -52
  451. package/lib/steps/index.js +1 -0
  452. package/lib/steps/steps.css +405 -36
  453. package/lib/steps/steps.d.ts +32 -32
  454. package/lib/steps/steps.less +24 -3
  455. package/lib/steps/steps.variable.css +759 -7
  456. package/lib/styles/index.d.ts +7 -1
  457. package/lib/styles/mixins/clearfix.less +10 -0
  458. package/lib/styles/mixins/clearfix.variable.css +8 -0
  459. package/lib/styles/mixins/mixins.css +51 -0
  460. package/lib/styles/mixins/mixins.less +2 -0
  461. package/lib/styles/mixins/mixins.variable.css +51 -0
  462. package/lib/styles/mixins/scroll.css +374 -0
  463. package/lib/styles/mixins/scroll.less +22 -0
  464. package/lib/styles/mixins/scroll.variable.css +850 -0
  465. package/lib/styles/reset.css +36 -0
  466. package/lib/styles/reset.less +26 -0
  467. package/lib/styles/reset.variable.css +36 -0
  468. package/lib/styles/themes/themes.css +357 -0
  469. package/lib/styles/themes/themes.less +622 -90
  470. package/lib/styles/themes/themes.variable.css +357 -0
  471. package/lib/swiper/index.js +1 -0
  472. package/lib/switcher/index.d.ts +42 -30
  473. package/lib/switcher/index.js +1 -0
  474. package/lib/switcher/switcher.css +431 -23
  475. package/lib/switcher/switcher.d.ts +19 -13
  476. package/lib/switcher/switcher.less +5 -26
  477. package/lib/switcher/switcher.variable.css +801 -10
  478. package/lib/tab/index.d.ts +53 -61
  479. package/lib/tab/index.js +1 -0
  480. package/lib/tab/props.d.ts +12 -11
  481. package/lib/tab/tab-nav.d.ts +17 -13
  482. package/lib/tab/tab-panel.d.ts +5 -10
  483. package/lib/tab/tab.css +401 -21
  484. package/lib/tab/tab.d.ts +19 -20
  485. package/lib/tab/tab.less +55 -46
  486. package/lib/tab/tab.variable.css +768 -5
  487. package/lib/table/components/index.d.ts +3 -0
  488. package/lib/table/components/table-cell.d.ts +38 -0
  489. package/lib/table/components/table-column.d.ts +137 -0
  490. package/lib/table/components/table-row.d.ts +2 -0
  491. package/lib/table/const.d.ts +109 -1
  492. package/lib/table/index.d.ts +841 -41
  493. package/lib/table/index.js +1 -0
  494. package/lib/table/plugins/body-empty.d.ts +40 -0
  495. package/lib/table/plugins/col-group.d.ts +38 -0
  496. package/lib/table/plugins/common.d.ts +6 -0
  497. package/lib/table/plugins/head-filter.css +429 -0
  498. package/lib/table/plugins/head-filter.d.ts +26 -0
  499. package/lib/table/plugins/head-filter.less +93 -0
  500. package/lib/table/plugins/head-filter.variable.css +905 -0
  501. package/lib/table/plugins/head-sort.css +382 -0
  502. package/lib/table/plugins/head-sort.d.ts +22 -0
  503. package/lib/table/plugins/head-sort.less +31 -0
  504. package/lib/table/plugins/head-sort.variable.css +858 -0
  505. package/lib/table/plugins/index.d.ts +5 -0
  506. package/lib/table/plugins/settings.css +502 -0
  507. package/lib/table/plugins/settings.d.ts +37 -0
  508. package/lib/table/plugins/settings.less +179 -0
  509. package/lib/table/plugins/settings.variable.css +978 -0
  510. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  511. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  512. package/lib/table/plugins/use-fixed-column.d.ts +12 -0
  513. package/lib/table/plugins/use-pagination.d.ts +16 -0
  514. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  515. package/lib/table/props.d.ts +308 -8
  516. package/lib/table/render.d.ts +43 -3
  517. package/lib/table/table.css +1547 -29
  518. package/lib/table/table.d.ts +231 -17
  519. package/lib/table/table.less +259 -25
  520. package/lib/table/table.variable.css +2348 -90
  521. package/lib/table/use-column.d.ts +11 -0
  522. package/lib/table/use-common.d.ts +97 -0
  523. package/lib/table/utils.d.ts +65 -9
  524. package/lib/table-column/index.d.ts +325 -0
  525. package/lib/table-column/index.js +1 -0
  526. package/lib/tag/index.d.ts +29 -29
  527. package/lib/tag/index.js +1 -0
  528. package/lib/tag/tag.css +408 -18
  529. package/lib/tag/tag.d.ts +12 -12
  530. package/lib/tag/tag.less +46 -10
  531. package/lib/tag/tag.variable.css +790 -17
  532. package/lib/tag-input/common.d.ts +13 -1
  533. package/lib/tag-input/index.d.ts +1320 -1
  534. package/lib/tag-input/index.js +1 -0
  535. package/lib/tag-input/list-tag-render.d.ts +0 -3
  536. package/lib/tag-input/tag-input.css +398 -44
  537. package/lib/tag-input/tag-input.d.ts +259 -41
  538. package/lib/tag-input/tag-input.less +102 -104
  539. package/lib/tag-input/tag-input.variable.css +767 -30
  540. package/lib/tag-input/tag-props.d.ts +122 -7
  541. package/lib/tag-input/tag-render.d.ts +30 -4
  542. package/lib/time-picker/index.d.ts +904 -0
  543. package/lib/time-picker/index.js +1 -0
  544. package/lib/time-picker/time-picker.css +572 -0
  545. package/lib/time-picker/time-picker.less +260 -0
  546. package/lib/time-picker/time-picker.variable.css +1048 -0
  547. package/lib/timeline/index.d.ts +6 -6
  548. package/lib/timeline/index.js +1 -0
  549. package/lib/timeline/timeline.css +392 -28
  550. package/lib/timeline/timeline.d.ts +1 -1
  551. package/lib/timeline/timeline.less +22 -9
  552. package/lib/timeline/timeline.variable.css +760 -13
  553. package/lib/transfer/const.d.ts +5 -0
  554. package/lib/transfer/index.d.ts +164 -150
  555. package/lib/transfer/index.js +1 -0
  556. package/lib/transfer/props.d.ts +54 -0
  557. package/lib/transfer/transfer.css +451 -91
  558. package/lib/transfer/transfer.d.ts +70 -95
  559. package/lib/transfer/transfer.less +93 -113
  560. package/lib/transfer/transfer.variable.css +838 -95
  561. package/lib/tree/constant.d.ts +62 -0
  562. package/lib/tree/index.d.ts +417 -57
  563. package/lib/tree/index.js +1 -0
  564. package/lib/tree/props.d.ts +124 -0
  565. package/lib/tree/tree.css +534 -9
  566. package/lib/tree/tree.d.ts +190 -18
  567. package/lib/tree/tree.less +54 -3
  568. package/lib/tree/tree.variable.css +1278 -13
  569. package/lib/tree/use-empty.d.ts +6 -0
  570. package/lib/tree/use-node-action.d.ts +12 -0
  571. package/lib/tree/use-node-async.d.ts +5 -0
  572. package/lib/tree/use-node-attribute.d.ts +33 -0
  573. package/lib/tree/use-node-drag.d.ts +3 -0
  574. package/lib/tree/use-search.d.ts +11 -0
  575. package/lib/tree/use-tree-init.d.ts +15 -0
  576. package/lib/tree/util.d.ts +4 -6
  577. package/lib/upload/index.d.ts +566 -0
  578. package/lib/upload/index.js +1 -0
  579. package/lib/upload/props.d.ts +111 -0
  580. package/lib/upload/upload-list.d.ts +47 -0
  581. package/lib/upload/upload-trigger.d.ts +51 -0
  582. package/lib/upload/upload.css +782 -0
  583. package/lib/upload/upload.d.ts +246 -0
  584. package/lib/upload/upload.less +464 -0
  585. package/lib/upload/upload.type.d.ts +78 -0
  586. package/lib/upload/upload.variable.css +1258 -0
  587. package/lib/upload/use-ajax-upload.d.ts +3 -0
  588. package/lib/upload/use-file-handler.d.ts +44 -0
  589. package/lib/virtual-render/index.d.ts +27 -4
  590. package/lib/virtual-render/index.js +1 -0
  591. package/lib/virtual-render/props.d.ts +10 -0
  592. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  593. package/lib/virtual-render/v-virtual-render.d.ts +0 -1
  594. package/lib/virtual-render/virtual-render.css +374 -24
  595. package/lib/virtual-render/virtual-render.d.ts +12 -1
  596. package/lib/virtual-render/virtual-render.less +2 -31
  597. package/lib/virtual-render/virtual-render.variable.css +1207 -24
  598. package/lib/volar.components.d.ts +101 -0
  599. package/package.json +61 -42
  600. package/README_EN.md +0 -93
  601. package/dist/bkui-vue.cjs.js +0 -20339
  602. package/dist/bkui-vue.esm.js +0 -20282
  603. package/dist/bkui-vue.umd.js +0 -20342
  604. package/lib/alert/alert.js +0 -1
  605. package/lib/backtop/backtop.js +0 -1
  606. package/lib/badge/badge.js +0 -1
  607. package/lib/breadcrumb/breadcrumb.js +0 -1
  608. package/lib/button/button.js +0 -1
  609. package/lib/card/card.js +0 -1
  610. package/lib/checkbox/checkbox.js +0 -1
  611. package/lib/code-diff/code-diff.js +0 -1
  612. package/lib/collapse/collapse.js +0 -1
  613. package/lib/date-picker/date-picker.js +0 -1
  614. package/lib/dialog/dialog.js +0 -1
  615. package/lib/directives/directives.js +0 -2
  616. package/lib/divider/divider.js +0 -1
  617. package/lib/dropdown/dropdown.js +0 -1
  618. package/lib/exception/exception.js +0 -1
  619. package/lib/form/common.d.ts +0 -3
  620. package/lib/form/form.js +0 -1
  621. package/lib/icon/icon.js +0 -1
  622. package/lib/input/input.js +0 -1
  623. package/lib/link/link.js +0 -1
  624. package/lib/loading/loading.js +0 -1
  625. package/lib/menu/menu.js +0 -1
  626. package/lib/message/message.js +0 -1
  627. package/lib/modal/modal.js +0 -1
  628. package/lib/navigation/navigation.js +0 -1
  629. package/lib/notify/notify.js +0 -1
  630. package/lib/pagination/pagination.js +0 -1
  631. package/lib/popover/popover.js +0 -1
  632. package/lib/process/process.js +0 -1
  633. package/lib/progress/progress.js +0 -1
  634. package/lib/radio/radio.js +0 -1
  635. package/lib/rate/rate.js +0 -1
  636. package/lib/resize-layout/resize-layout.js +0 -1
  637. package/lib/select/select.js +0 -1
  638. package/lib/shared/shared.js +0 -1
  639. package/lib/sideslider/sideslider.js +0 -1
  640. package/lib/slider/slider.js +0 -1
  641. package/lib/steps/steps.js +0 -1
  642. package/lib/swiper/swiper.js +0 -1
  643. package/lib/switcher/switcher.js +0 -1
  644. package/lib/tab/tab.js +0 -1
  645. package/lib/table/table.js +0 -1
  646. package/lib/tag/tag.js +0 -1
  647. package/lib/tag-input/tag-input.js +0 -1
  648. package/lib/timeline/timeline.js +0 -1
  649. package/lib/transfer/transfer.js +0 -1
  650. package/lib/tree/tree.js +0 -1
  651. package/lib/use-form.d.ts +0 -3
  652. package/lib/virtual-render/virtual-render.js +0 -1
@@ -1,8 +1,26 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import { OnFirstUpdateFnType } from '@bkui-vue/shared';
1
+ import { ExtractPropTypes } from 'vue';
2
+ declare type IAxesOffsets = {
3
+ mainAxis?: number;
4
+ crossAxis?: number;
5
+ alignmentAxis?: number | null;
6
+ };
3
7
  export declare const PopoverProps: {
8
+ onAfterHidden: FunctionConstructor;
9
+ onAfterShow: FunctionConstructor;
4
10
  isShow: import("vue-types").VueTypeValidableDef<boolean> & {
5
11
  default: boolean;
12
+ } & {
13
+ default: boolean;
14
+ };
15
+ always: import("vue-types").VueTypeValidableDef<boolean> & {
16
+ default: boolean;
17
+ } & {
18
+ default: boolean;
19
+ };
20
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
21
+ default: boolean;
22
+ } & {
23
+ default: boolean;
6
24
  };
7
25
  width: import("vue-types").VueTypeDef<string | number> & {
8
26
  default: string | number;
@@ -14,64 +32,106 @@ export declare const PopoverProps: {
14
32
  default: string | number;
15
33
  };
16
34
  /**
17
- * 动画展示方式
35
+ * 组件显示位置
18
36
  */
19
- transition: import("vue-types").VueTypeValidableDef<string> & {
20
- default: string;
21
- } & {
22
- default: string;
23
- };
24
- /**
25
- * 展示位置
26
- */
27
- placement: import("vue-types").VueTypeDef<string> & {
28
- default: string;
37
+ placement: import("vue-types").VueTypeDef<"auto" | "auto-start" | "auto-end" | "top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end"> & {
38
+ default: "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
29
39
  };
30
40
  theme: import("vue-types").VueTypeValidableDef<string> & {
31
41
  default: string;
32
42
  } & {
33
43
  default: string;
34
44
  };
35
- /**
36
- * handleFirstUpdate
37
- */
38
- handleFirstUpdate: {
39
- type: PropType<OnFirstUpdateFnType>;
40
- default: () => void;
41
- };
42
45
  /**
43
46
  * 触发方式
44
47
  * 支持 click hover manual
45
48
  * manual: 通过isShow控制显示、隐藏
46
49
  */
47
- trigger: import("vue-types").VueTypeValidableDef<string> & {
48
- default: string;
49
- } & {
50
- default: string;
50
+ trigger: import("vue-types").VueTypeDef<"hover" | "click" | "manual"> & {
51
+ default: "hover" | "click" | "manual";
51
52
  };
52
53
  arrow: import("vue-types").VueTypeValidableDef<boolean> & {
53
54
  default: boolean;
54
55
  } & {
55
56
  default: boolean;
56
57
  };
57
- modifiers: import("vue-types").VueTypeValidableDef<unknown[]> & {
58
- default: () => unknown[];
58
+ padding: import("vue-types").VueTypeValidableDef<number> & {
59
+ default: number;
59
60
  } & {
60
- default: () => unknown[];
61
+ default: number;
62
+ };
63
+ offset: import("vue-types").VueTypeDef<number | IAxesOffsets> & {
64
+ default: number | (() => IAxesOffsets);
61
65
  };
62
66
  /**
63
67
  * 弹出内容绑定元素
64
68
  */
65
69
  boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
70
+ zIndex: import("vue-types").VueTypeValidableDef<number> & {
71
+ default: number;
72
+ } & {
73
+ default: number;
74
+ };
75
+ disableTeleport: import("vue-types").VueTypeValidableDef<boolean> & {
76
+ default: boolean;
77
+ } & {
78
+ default: boolean;
79
+ };
66
80
  /**
67
- * 如果设置了boundary为指定DOM,此配置项生效
68
- * 是否将弹出内容固定到目标元素位置
69
- * 例如:boundary = document.body, fixOnBoundary = true,则弹出内容会一直固定到body
81
+ * chooses the placement that has the most space available automatically
70
82
  */
71
- fixOnBoundary: import("vue-types").VueTypeValidableDef<boolean> & {
83
+ autoPlacement: import("vue-types").VueTypeValidableDef<boolean> & {
72
84
  default: boolean;
73
85
  } & {
74
86
  default: boolean;
75
87
  };
88
+ /**
89
+ * 当有滚动条,滚动出可是范围时自动隐藏pop
90
+ */
91
+ autoVisibility: import("vue-types").VueTypeValidableDef<boolean> & {
92
+ default: boolean;
93
+ } & {
94
+ default: boolean;
95
+ };
96
+ /**
97
+ * 是否禁用clickoutside
98
+ */
99
+ disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
100
+ default: boolean;
101
+ } & {
102
+ default: boolean;
103
+ };
104
+ /**
105
+ * 是否禁用样式的transform更新位移
106
+ */
107
+ disableTransform: import("vue-types").VueTypeValidableDef<boolean> & {
108
+ default: boolean;
109
+ } & {
110
+ default: boolean;
111
+ };
112
+ /**
113
+ * 自定义 reference
114
+ */
115
+ reference: import("vue-types").VueTypeValidableDef<any> & {
116
+ default: any;
117
+ };
118
+ /**
119
+ * 兼容v1版本遗留配置
120
+ * 不建议使用
121
+ */
122
+ modifiers: import("vue-types").VueTypeValidableDef<unknown[]> & {
123
+ default: () => unknown[];
124
+ } & {
125
+ default: () => unknown[];
126
+ };
127
+ /**
128
+ * popover显示和隐藏的延时时间
129
+ */
130
+ popoverDelay: import("vue-types").VueTypeValidableDef<number> & {
131
+ default: number;
132
+ } & {
133
+ default: number;
134
+ };
76
135
  };
77
136
  export declare type PopoverPropTypes = Readonly<ExtractPropTypes<typeof PopoverProps>>;
137
+ export {};
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,16 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ class: import("vue-types").VueTypeValidableDef<string> & {
3
+ default: string;
4
+ } & {
5
+ default: string;
6
+ };
7
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
+ class: import("vue-types").VueTypeValidableDef<string> & {
9
+ default: string;
10
+ } & {
11
+ default: string;
12
+ };
13
+ }>>, {
14
+ class: string;
15
+ }>;
16
+ export default _default;
@@ -0,0 +1,34 @@
1
+ import { PopoverPropTypes } from './props';
2
+ declare const _default: (props: PopoverPropTypes, ctx: any, { refReference, refContent, refArrow, refRoot }: {
3
+ refReference: any;
4
+ refContent: any;
5
+ refArrow: any;
6
+ refRoot: any;
7
+ }) => {
8
+ showPopover: () => void;
9
+ hidePopover: () => void;
10
+ resolveTriggerEvents: () => (string | (() => void))[][] | {
11
+ content: (string | (() => void))[][];
12
+ reference: any[][];
13
+ };
14
+ updatePopover: (virtualEl?: any, props?: {}) => void;
15
+ triggerPopover: () => void;
16
+ resolvePopElements: () => {
17
+ elReference: any;
18
+ elContent: any;
19
+ elArrow: any;
20
+ root: any;
21
+ };
22
+ isElementFullScreen: () => boolean;
23
+ resolveTargetElement: (target: any) => any;
24
+ createPopInstance: () => void;
25
+ updateFullscreenTarget: (val?: HTMLElement) => void;
26
+ getFullscreenRoot: (selector: any) => any;
27
+ stopHide: () => void;
28
+ localIsShow: import("vue").Ref<boolean>;
29
+ cleanup: any;
30
+ };
31
+ /**
32
+ * 解析popover相关配置
33
+ */
34
+ export default _default;
@@ -0,0 +1,30 @@
1
+ declare const _default: (fullscreenTarget?: HTMLElement) => {
2
+ getElementRects: ({ reference, floating }: {
3
+ reference: any;
4
+ floating: any;
5
+ }) => {
6
+ reference: {
7
+ width: number;
8
+ height: number;
9
+ x: number;
10
+ y: number;
11
+ };
12
+ floating: {
13
+ width: number;
14
+ height: number;
15
+ x: number;
16
+ y: number;
17
+ };
18
+ };
19
+ getDimensions: (element: HTMLElement) => {
20
+ width: number;
21
+ height: number;
22
+ };
23
+ getClippingRect: ({}: {}) => {
24
+ width: number;
25
+ height: number;
26
+ x: number;
27
+ y: number;
28
+ };
29
+ };
30
+ export default _default;
@@ -0,0 +1,22 @@
1
+ declare const _default: (props: any, ctx: any, { refReference, refContent, refArrow, refRoot }: {
2
+ refReference: any;
3
+ refContent: any;
4
+ refArrow: any;
5
+ refRoot: any;
6
+ }) => {
7
+ onMountedFn: () => void;
8
+ onUnmountedFn: () => void;
9
+ handleClickOutside: (_e: MouseEvent) => void;
10
+ beforeInstanceUnmount: () => void;
11
+ updateBoundary: () => void;
12
+ initPopInstance: () => void;
13
+ updatePopover: (virtualEl?: any, props?: {}) => void;
14
+ showPopover: () => void;
15
+ hidePopover: () => void;
16
+ showFn: () => void;
17
+ hideFn: () => void;
18
+ stopHide: () => void;
19
+ isFullscreen: import("vue").Ref<boolean>;
20
+ boundary: import("vue").Ref<any>;
21
+ };
22
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: (props: any, prefix?: string) => {
2
+ popContainerId: any;
3
+ prefixId: any;
4
+ getPrefixId: (root?: any) => any;
5
+ };
6
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export declare const isAvailableId: (query: string) => boolean;
2
+ export declare const getFullscreenUid: () => any;
@@ -0,0 +1,44 @@
1
+ declare const BkPopover2: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
6
+ $attrs: {
7
+ [x: string]: unknown;
8
+ };
9
+ $refs: {
10
+ [x: string]: unknown;
11
+ };
12
+ $slots: Readonly<{
13
+ [name: string]: import("vue").Slot;
14
+ }>;
15
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
16
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
17
+ $emit: ((event: string, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
18
+ $el: any;
19
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {}> & {
20
+ beforeCreate?: (() => void) | (() => void)[];
21
+ created?: (() => void) | (() => void)[];
22
+ beforeMount?: (() => void) | (() => void)[];
23
+ mounted?: (() => void) | (() => void)[];
24
+ beforeUpdate?: (() => void) | (() => void)[];
25
+ updated?: (() => void) | (() => void)[];
26
+ activated?: (() => void) | (() => void)[];
27
+ deactivated?: (() => void) | (() => void)[];
28
+ beforeDestroy?: (() => void) | (() => void)[];
29
+ beforeUnmount?: (() => void) | (() => void)[];
30
+ destroyed?: (() => void) | (() => void)[];
31
+ unmounted?: (() => void) | (() => void)[];
32
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
33
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
34
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
35
+ };
36
+ $forceUpdate: () => void;
37
+ $nextTick: typeof import("vue").nextTick;
38
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
39
+ } & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
40
+ __isFragment?: never;
41
+ __isTeleport?: never;
42
+ __isSuspense?: never;
43
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
44
+ export default BkPopover2;
@@ -0,0 +1 @@
1
+ !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var r="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var t in r)("object"==typeof exports?exports:e)[t]=r[t]}}(self,((e,o)=>(()=>{"use strict";var r={4212:o=>{o.exports=e},748:e=>{e.exports=o}},t={};function p(e){var o=t[e];if(void 0!==o)return o.exports;var n=t[e]={exports:{}};return r[e](n,n.exports,p),n.exports}p.d=(e,o)=>{for(var r in o)p.o(o,r)&&!p.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},p.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{p.r(n),p.d(n,{default:()=>t});var e=p(4212),o=p(748);const r=(0,o.defineComponent)({name:"Popover2",setup:function(){return function(){return(0,o.createVNode)("code",null,["<bk-popover2></bk-popover2>已经合并为<bk-popover></bk-popover>,请替换为<bk-popover></bk-popover>"])}}}),t=(0,e.withInstall)(r)})(),n})()));
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
package/lib/preset.js ADDED
@@ -0,0 +1 @@
1
+ !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("./components"));else if("function"==typeof define&&define.amd)define(["./components"],o);else{var t="object"==typeof exports?o(require("./components")):o(e["./components"]);for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(self,(e=>(()=>{"use strict";var o={4689:o=>{o.exports=e}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return o[e](i,i.exports,r),i.exports}r.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return r.d(o,{a:o}),o},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{r.r(n),r.d(n,{default:()=>t});var e=r(4689),o=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Bk";return function(t){var r=t.config.globalProperties.bkUIPrefix||o;Object.keys(e).forEach((function(o){var n=e[o];"install"in n?t.use(n,{prefix:r}):t.component(r+o,e[o])}))}};const t={createInstall:o,install:o(),version:"0.0.1"}})(),n})()));
@@ -1,14 +1,14 @@
1
- declare const BkSteps: {
1
+ declare const BkProcess: {
2
2
  new (...args: any[]): {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: Partial<{
6
- list: unknown[];
7
6
  extCls: string;
7
+ list: unknown[];
8
+ displayKey: string;
8
9
  controllable: boolean;
9
10
  showSteps: boolean;
10
11
  curProcess: number;
11
- displayKey: string;
12
12
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
13
13
  list: import("vue-types").VueTypeValidableDef<unknown[]> & {
14
14
  default: () => unknown[];
@@ -41,7 +41,7 @@ declare const BkSteps: {
41
41
  }>> & {
42
42
  onClick?: (...args: any[]) => any;
43
43
  "onUpdate:curProcess"?: (...args: any[]) => any;
44
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "list" | "extCls" | "controllable" | "showSteps" | "curProcess" | "displayKey">;
44
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "extCls" | "list" | "displayKey" | "controllable" | "showSteps" | "curProcess">;
45
45
  $attrs: {
46
46
  [x: string]: unknown;
47
47
  };
@@ -92,12 +92,12 @@ declare const BkSteps: {
92
92
  paddingBottom: import("vue").Ref<number>;
93
93
  jumpTo: (index: any) => Promise<void>;
94
94
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curProcess")[], string, {
95
- list: unknown[];
96
95
  extCls: string;
96
+ list: unknown[];
97
+ displayKey: string;
97
98
  controllable: boolean;
98
99
  showSteps: boolean;
99
100
  curProcess: number;
100
- displayKey: string;
101
101
  }> & {
102
102
  beforeCreate?: (() => void) | (() => void)[];
103
103
  created?: (() => void) | (() => void)[];
@@ -195,11 +195,11 @@ declare const BkSteps: {
195
195
  paddingBottom: import("vue").Ref<number>;
196
196
  jumpTo: (index: any) => Promise<void>;
197
197
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curProcess")[], "click" | "update:curProcess", {
198
- list: unknown[];
199
198
  extCls: string;
199
+ list: unknown[];
200
+ displayKey: string;
200
201
  controllable: boolean;
201
202
  showSteps: boolean;
202
203
  curProcess: number;
203
- displayKey: string;
204
204
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
205
- export default BkSteps;
205
+ export default BkProcess;
@@ -0,0 +1 @@
1
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],e);else{var r="object"==typeof exports?e(require("../shared"),require("vue"),require("../icon")):e(t["../shared"],t.vue,t["../icon"]);for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(self,((t,e,r)=>(()=>{var n={7162:(t,e,r)=>{t.exports=r(5047)},5047:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=l(t,e,r);if("normal"===u.type){if(n=r.done?d:p,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",y={};function v(){}function g(){}function m(){}var b={};u(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(T([])));x&&x!==r&&n.call(x,i)&&(b=x);var P=m.prototype=v.prototype=Object.create(b);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:S}}function S(){return{value:e,done:!0}}return g.prototype=m,u(P,"constructor",m),u(m,"constructor",g),g.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(P),t},t.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,a,(function(){return this})),t.AsyncIterator=j,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new j(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(P),u(P,c,"Generator"),u(P,i,(function(){return this})),u(P,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=T,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},6870:t=>{"use strict";t.exports=r},4212:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}};return n[t](r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return(()=>{"use strict";i.r(a),i.d(a,{default:()=>l});var t=i(4212);function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var r=i(748),n=i(7162),o=i.n(n);Object.create,Object.create;var c=i(6870),u={list:t.PropTypes.array.def([]),controllable:t.PropTypes.bool.def(!1),showSteps:t.PropTypes.bool.def(!1),curProcess:t.PropTypes.number.def(0),displayKey:t.PropTypes.string.def("content"),extCls:t.PropTypes.string};const s=(0,r.defineComponent)({name:"Process",props:u,emits:["update:curProcess","click"],setup:function(t,n){var i=this,a=n.emit,c=(0,r.ref)([]),u=(0,r.ref)(0);return(0,r.onMounted)((function(){var r,n,o,i;(r=c.value).splice.apply(r,[0,c.value.length].concat([{content:"步骤1"},{content:"步骤2"},{content:"步骤3"},{content:"步骤4"}])),(null===(n=t.list)||void 0===n?void 0:n.length)&&(o=c.value).splice.apply(o,[0,c.value.length].concat(function(t){if(Array.isArray(t))return e(t)}(i=t.list)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,r){if(t){if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}(i)||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.")}()))})),{defaultProcessList:c,paddingBottom:u,jumpTo:function(e){return r=i,n=void 0,c=void 0,u=o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:try{t.controllable&&e!==t.curProcess&&(a("update:curProcess",e),a("click",e))}catch(t){console.warn(t)}case 1:case"end":return r.stop()}}),r)})),new(c||(c=Promise))((function(t,e){function o(t){try{a(u.next(t))}catch(t){e(t)}}function i(t){try{a(u.throw(t))}catch(t){e(t)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof c?r:new c((function(t){t(r)}))).then(o,i)}a((u=u.apply(r,n||[])).next())}));var r,n,c,u}}},render:function(){var e,n,o,i=this,a=(0,t.classes)((e={},n="".concat(this.extCls),o=!!this.extCls,n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e),"".concat("bk-process")),u=function(t){return"loading"===t.status},s=function(t){return"error"===t.status},l=function(t,e){return t===i.curProcess-1&&u(e)?(0,r.createVNode)(c.Circle,{class:"bk-icon bk-process-icon icon-loading"},null):t===i.curProcess-1&&s(e)?(0,r.createVNode)(c.Error,{class:"bk-process-icon"},null):t===i.curProcess-1&&function(t){return t.icon?t.icon:""}(e)?(0,r.createVNode)("span",{class:"bk-process-icon-custom"},[(0,r.createVNode)(e.icon,null,null)]):function(t){return i.curProcess>=t+1||"done"===i.defaultProcessList[t].status}(t)?(0,r.createVNode)(c.Done,{class:"bk-process-icon-done"},null):void 0};return(0,r.createVNode)("div",{class:a},[(0,r.createVNode)("ul",{style:{paddingBottom:"".concat(this.paddingBottom,"px")}},[this.defaultProcessList.map((function(t,e){return(0,r.createVNode)("li",{onClick:function(){i.jumpTo(e+1)},style:{cursor:i.controllable?"pointer":""},class:{success:i.curProcess>=e+1,current:u(t)&&e===i.curProcess-1,error:s(t)&&e===i.curProcess-1}},[t[i.displayKey],l(e,t)])}))])])}}),l=(0,t.withInstall)(s)})(),a})()));