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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (529) hide show
  1. package/README.md +31 -19
  2. package/dist/index.cjs.js +171 -0
  3. package/dist/index.esm.js +31713 -0
  4. package/dist/index.umd.js +171 -0
  5. package/dist/style.css +1 -4051
  6. package/dist/style.variable.css +1 -0
  7. package/lib/affix/affix.css +3 -0
  8. package/lib/affix/affix.d.ts +47 -0
  9. package/lib/affix/affix.less +5 -0
  10. package/lib/affix/affix.variable.css +105 -0
  11. package/lib/affix/index.d.ts +190 -0
  12. package/lib/affix/index.js +1 -0
  13. package/lib/alert/alert.css +5 -3
  14. package/lib/alert/alert.d.ts +24 -15
  15. package/lib/alert/alert.less +7 -3
  16. package/lib/alert/alert.variable.css +24 -6
  17. package/lib/alert/index.d.ts +159 -61
  18. package/lib/alert/index.js +1 -1
  19. package/lib/animate-number/animate-number.d.ts +12 -7
  20. package/lib/animate-number/index.d.ts +76 -29
  21. package/lib/animate-number/index.js +1 -1
  22. package/lib/backtop/backtop.d.ts +28 -14
  23. package/lib/backtop/backtop.variable.css +19 -3
  24. package/lib/backtop/index.d.ts +172 -56
  25. package/lib/backtop/index.js +1 -1
  26. package/lib/badge/badge.css +5 -5
  27. package/lib/badge/badge.d.ts +64 -22
  28. package/lib/badge/badge.less +5 -6
  29. package/lib/badge/badge.variable.css +24 -8
  30. package/lib/badge/index.d.ts +305 -85
  31. package/lib/badge/index.js +1 -1
  32. package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
  33. package/lib/breadcrumb/breadcrumb.css +61 -1
  34. package/lib/breadcrumb/breadcrumb.d.ts +37 -9
  35. package/lib/breadcrumb/breadcrumb.less +13 -2
  36. package/lib/breadcrumb/breadcrumb.variable.css +80 -4
  37. package/lib/breadcrumb/index.d.ts +172 -46
  38. package/lib/breadcrumb/index.js +1 -1
  39. package/lib/button/button-group.d.ts +3 -5
  40. package/lib/button/button.css +92 -44
  41. package/lib/button/button.d.ts +76 -26
  42. package/lib/button/button.less +89 -47
  43. package/lib/button/button.variable.css +111 -47
  44. package/lib/button/index.d.ts +288 -103
  45. package/lib/button/index.js +1 -1
  46. package/lib/card/card.css +96 -1
  47. package/lib/card/card.d.ts +74 -18
  48. package/lib/card/card.less +50 -2
  49. package/lib/card/card.variable.css +115 -4
  50. package/lib/card/index.d.ts +336 -70
  51. package/lib/card/index.js +1 -1
  52. package/lib/cascader/cascader-panel.d.ts +48 -0
  53. package/lib/cascader/cascader.css +130 -0
  54. package/lib/cascader/cascader.d.ts +271 -0
  55. package/lib/cascader/cascader.less +146 -0
  56. package/lib/cascader/cascader.variable.css +232 -0
  57. package/lib/cascader/index.d.ts +991 -0
  58. package/lib/cascader/index.js +1 -0
  59. package/lib/cascader/interface.d.ts +44 -0
  60. package/lib/cascader/node.d.ts +24 -0
  61. package/lib/cascader/store.d.ts +15 -0
  62. package/lib/checkbox/checkbox-group.d.ts +13 -9
  63. package/lib/checkbox/checkbox.css +33 -6
  64. package/lib/checkbox/checkbox.d.ts +43 -32
  65. package/lib/checkbox/checkbox.less +44 -6
  66. package/lib/checkbox/checkbox.variable.css +52 -9
  67. package/lib/checkbox/common.d.ts +3 -3
  68. package/lib/checkbox/index.d.ts +234 -105
  69. package/lib/checkbox/index.js +1 -1
  70. package/lib/checkbox/type.d.ts +4 -8
  71. package/lib/code-diff/code-diff.css +186 -0
  72. package/lib/code-diff/code-diff.d.ts +80 -0
  73. package/lib/code-diff/code-diff.less +238 -0
  74. package/lib/code-diff/code-diff.variable.css +288 -0
  75. package/lib/code-diff/index.d.ts +204 -0
  76. package/lib/code-diff/index.js +1 -0
  77. package/lib/collapse/collapse.css +17 -1
  78. package/lib/collapse/collapse.d.ts +51 -22
  79. package/lib/collapse/collapse.less +24 -2
  80. package/lib/collapse/collapse.variable.css +119 -1
  81. package/lib/collapse/index.d.ts +191 -76
  82. package/lib/collapse/index.js +1 -1
  83. package/lib/collapse/utils.d.ts +11 -0
  84. package/lib/components.d.ts +26 -5
  85. package/lib/components.js +1 -0
  86. package/lib/container/col.d.ts +51 -0
  87. package/lib/container/container.css +91 -0
  88. package/lib/container/container.d.ts +83 -0
  89. package/lib/container/container.less +20 -0
  90. package/lib/container/container.variable.css +193 -0
  91. package/lib/container/index.d.ts +281 -0
  92. package/lib/container/index.js +1 -0
  93. package/lib/container/row.d.ts +4 -0
  94. package/lib/date-picker/date-picker.css +3 -2
  95. package/lib/date-picker/date-picker.d.ts +92 -137
  96. package/lib/date-picker/date-picker.less +5 -2
  97. package/lib/date-picker/date-picker.variable.css +22 -5
  98. package/lib/date-picker/index.d.ts +816 -277
  99. package/lib/date-picker/index.js +1 -1
  100. package/lib/date-picker/interface.d.ts +1 -1
  101. package/lib/date-picker/props.d.ts +118 -0
  102. package/lib/date-picker/utils.d.ts +1 -1
  103. package/lib/dialog/dialog.css +68 -16
  104. package/lib/dialog/dialog.d.ts +285 -52
  105. package/lib/dialog/dialog.less +43 -17
  106. package/lib/dialog/dialog.variable.css +68 -16
  107. package/lib/dialog/index.d.ts +982 -116
  108. package/lib/dialog/index.js +1 -1
  109. package/lib/directives/clickoutside.d.ts +3 -23
  110. package/lib/directives/index.js +2 -15
  111. package/lib/directives/index.js.LICENSE.txt +14 -0
  112. package/lib/directives/tooltips.d.ts +1 -1
  113. package/lib/dist.index.js +1 -0
  114. package/lib/divider/divider.d.ts +21 -13
  115. package/lib/divider/divider.variable.css +19 -3
  116. package/lib/divider/index.d.ts +133 -53
  117. package/lib/divider/index.js +1 -1
  118. package/lib/divider/props.d.ts +21 -0
  119. package/lib/dropdown/dropdown-item.d.ts +6 -5
  120. package/lib/dropdown/dropdown-menu.d.ts +6 -5
  121. package/lib/dropdown/dropdown.css +4 -0
  122. package/lib/dropdown/dropdown.d.ts +29 -15
  123. package/lib/dropdown/dropdown.less +5 -0
  124. package/lib/dropdown/dropdown.variable.css +23 -3
  125. package/lib/dropdown/index.d.ts +168 -73
  126. package/lib/dropdown/index.js +1 -1
  127. package/lib/exception/exception.d.ts +11 -9
  128. package/lib/exception/exception.variable.css +19 -3
  129. package/lib/exception/index.d.ts +71 -37
  130. package/lib/exception/index.js +1 -1
  131. package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
  132. package/lib/fixed-navbar/fixed-navbar.variable.css +19 -3
  133. package/lib/fixed-navbar/index.d.ts +145 -38
  134. package/lib/fixed-navbar/index.js +1 -1
  135. package/lib/form/compose-form-item.d.ts +16 -0
  136. package/lib/form/form-item.d.ts +61 -45
  137. package/lib/form/form.css +96 -10
  138. package/lib/form/form.d.ts +45 -40
  139. package/lib/form/form.less +136 -34
  140. package/lib/form/form.variable.css +198 -10
  141. package/lib/form/index.d.ts +361 -3
  142. package/lib/form/index.js +1 -1
  143. package/lib/form/type.d.ts +8 -6
  144. package/lib/form/validator.d.ts +1 -0
  145. package/lib/icon/angle-double-down-line.d.ts +4 -0
  146. package/lib/icon/angle-double-down-line.js +1 -0
  147. package/lib/icon/angle-double-left-line.d.ts +4 -0
  148. package/lib/icon/angle-double-left-line.js +1 -0
  149. package/lib/icon/angle-double-left.js +1 -0
  150. package/lib/icon/angle-double-right-line.d.ts +4 -0
  151. package/lib/icon/angle-double-right-line.js +1 -0
  152. package/lib/icon/angle-double-right.js +1 -0
  153. package/lib/icon/angle-double-up-line.d.ts +4 -0
  154. package/lib/icon/angle-double-up-line.js +1 -0
  155. package/lib/icon/angle-down-fill.d.ts +4 -0
  156. package/lib/icon/angle-down-fill.js +1 -0
  157. package/lib/icon/angle-down-line.js +1 -0
  158. package/lib/icon/angle-down.js +1 -0
  159. package/lib/icon/angle-left.js +1 -0
  160. package/lib/icon/angle-right.js +1 -0
  161. package/lib/icon/angle-up-fill.d.ts +4 -0
  162. package/lib/icon/angle-up-fill.js +1 -0
  163. package/lib/icon/angle-up.js +1 -0
  164. package/lib/icon/archive-fill.d.ts +4 -0
  165. package/lib/icon/archive-fill.js +1 -0
  166. package/lib/icon/arrows-left.d.ts +4 -0
  167. package/lib/icon/arrows-left.js +1 -0
  168. package/lib/icon/arrows-right.d.ts +4 -0
  169. package/lib/icon/arrows-right.js +1 -0
  170. package/lib/icon/audio-fill.d.ts +4 -0
  171. package/lib/icon/audio-fill.js +1 -0
  172. package/lib/icon/bk.d.ts +4 -0
  173. package/lib/icon/bk.js +1 -0
  174. package/lib/icon/circle.js +1 -0
  175. package/lib/icon/close-line.d.ts +4 -0
  176. package/lib/icon/close-line.js +1 -0
  177. package/lib/icon/close.js +1 -0
  178. package/lib/icon/code.js +1 -0
  179. package/lib/icon/cog-shape.js +1 -0
  180. package/lib/icon/collapse-left.js +1 -0
  181. package/lib/icon/copy.js +1 -0
  182. package/lib/icon/data-shape.d.ts +4 -0
  183. package/lib/icon/data-shape.js +1 -0
  184. package/lib/icon/del.d.ts +4 -0
  185. package/lib/icon/del.js +1 -0
  186. package/lib/icon/doc-fill.d.ts +4 -0
  187. package/lib/icon/doc-fill.js +1 -0
  188. package/lib/icon/done.js +1 -0
  189. package/lib/icon/down-shape.js +1 -0
  190. package/lib/icon/down-small.js +1 -0
  191. package/lib/icon/edit-line.d.ts +4 -0
  192. package/lib/icon/edit-line.js +1 -0
  193. package/lib/icon/ellipsis.d.ts +4 -0
  194. package/lib/icon/ellipsis.js +1 -0
  195. package/lib/icon/error.js +1 -0
  196. package/lib/icon/excel-fill.d.ts +4 -0
  197. package/lib/icon/excel-fill.js +1 -0
  198. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  199. package/lib/icon/exclamation-circle-shape.js +1 -0
  200. package/lib/icon/eye.js +1 -0
  201. package/lib/icon/folder-open.js +1 -0
  202. package/lib/icon/folder-shape-open.js +1 -0
  203. package/lib/icon/folder-shape.js +1 -0
  204. package/lib/icon/funnel.d.ts +4 -0
  205. package/lib/icon/funnel.js +1 -0
  206. package/lib/icon/help-document-fill.js +1 -0
  207. package/lib/icon/help-fill.js +1 -0
  208. package/lib/icon/help.js +1 -0
  209. package/lib/icon/image-fill.d.ts +4 -0
  210. package/lib/icon/image-fill.js +1 -0
  211. package/lib/icon/index.d.ts +34 -3
  212. package/lib/icon/index.js +1 -15
  213. package/lib/icon/info-line.js +1 -0
  214. package/lib/icon/info.js +1 -0
  215. package/lib/icon/left-shape.d.ts +4 -0
  216. package/lib/icon/left-shape.js +1 -0
  217. package/lib/icon/pdf-fill.d.ts +4 -0
  218. package/lib/icon/pdf-fill.js +1 -0
  219. package/lib/icon/play-shape.js +1 -0
  220. package/lib/icon/plus.js +1 -0
  221. package/lib/icon/ppt-fill.d.ts +4 -0
  222. package/lib/icon/ppt-fill.js +1 -0
  223. package/lib/icon/qq.d.ts +4 -0
  224. package/lib/icon/qq.js +1 -0
  225. package/lib/icon/right-shape.js +1 -0
  226. package/lib/icon/search.js +1 -0
  227. package/lib/icon/share.js +1 -0
  228. package/lib/icon/spinner.d.ts +4 -0
  229. package/lib/icon/spinner.js +1 -0
  230. package/lib/icon/success.js +1 -0
  231. package/lib/icon/switcher-loading.js +1 -0
  232. package/lib/icon/text-file.js +1 -0
  233. package/lib/icon/text-fill.d.ts +4 -0
  234. package/lib/icon/text-fill.js +1 -0
  235. package/lib/icon/tree-application-shape.js +1 -0
  236. package/lib/icon/unvisible.js +1 -0
  237. package/lib/icon/up-shape.d.ts +4 -0
  238. package/lib/icon/up-shape.js +1 -0
  239. package/lib/icon/upload.d.ts +4 -0
  240. package/lib/icon/upload.js +1 -0
  241. package/lib/icon/video-fill.d.ts +4 -0
  242. package/lib/icon/video-fill.js +1 -0
  243. package/lib/icon/warn.js +1 -0
  244. package/lib/icon/weixin.d.ts +4 -0
  245. package/lib/icon/weixin.js +1 -0
  246. package/lib/index.d.ts +1 -1
  247. package/lib/index.js +1 -0
  248. package/lib/input/index.d.ts +688 -197
  249. package/lib/input/index.js +1 -15
  250. package/lib/input/input.css +232 -16
  251. package/lib/input/input.d.ts +182 -52
  252. package/lib/input/input.less +182 -19
  253. package/lib/input/input.variable.css +248 -15
  254. package/lib/link/index.d.ts +161 -55
  255. package/lib/link/index.js +1 -1
  256. package/lib/link/link.d.ts +25 -13
  257. package/lib/link/link.variable.css +19 -3
  258. package/lib/loading/index.d.ts +281 -72
  259. package/lib/loading/index.js +1 -1
  260. package/lib/loading/loading.css +177 -98
  261. package/lib/loading/loading.d.ts +109 -25
  262. package/lib/loading/loading.less +84 -73
  263. package/lib/loading/loading.variable.css +196 -101
  264. package/lib/menu/index.d.ts +122 -72
  265. package/lib/menu/index.js +1 -1
  266. package/lib/menu/menu-group.d.ts +6 -5
  267. package/lib/menu/menu-item.d.ts +6 -5
  268. package/lib/menu/menu.css +51 -0
  269. package/lib/menu/menu.d.ts +16 -21
  270. package/lib/menu/menu.variable.css +70 -3
  271. package/lib/menu/submenu.css +3 -0
  272. package/lib/menu/submenu.d.ts +6 -5
  273. package/lib/menu/submenu.less +1 -1
  274. package/lib/menu/submenu.variable.css +22 -3
  275. package/lib/menu/utils.d.ts +1 -1
  276. package/lib/message/index.js +1 -1
  277. package/lib/message/message.css +16 -2
  278. package/lib/message/message.less +18 -1
  279. package/lib/message/message.variable.css +35 -5
  280. package/lib/message/messageConstructor.d.ts +68 -20
  281. package/lib/modal/index.d.ts +732 -69
  282. package/lib/modal/index.js +1 -1
  283. package/lib/modal/modal.css +25 -1
  284. package/lib/modal/modal.d.ts +191 -24
  285. package/lib/modal/modal.less +33 -1
  286. package/lib/modal/modal.variable.css +25 -1
  287. package/lib/modal/props.mixin.d.ts +77 -10
  288. package/lib/navigation/index.d.ts +428 -1
  289. package/lib/navigation/index.js +1 -1
  290. package/lib/navigation/navigation-title.d.ts +10 -7
  291. package/lib/navigation/navigation.css +1 -1
  292. package/lib/navigation/navigation.d.ts +50 -24
  293. package/lib/navigation/navigation.less +1 -1
  294. package/lib/navigation/navigation.variable.css +20 -4
  295. package/lib/notify/index.js +1 -1
  296. package/lib/notify/notify.css +17 -1
  297. package/lib/notify/notify.less +19 -1
  298. package/lib/notify/notify.variable.css +36 -4
  299. package/lib/notify/notifyConstructor.d.ts +83 -23
  300. package/lib/pagination/index.d.ts +552 -0
  301. package/lib/pagination/index.js +1 -0
  302. package/lib/pagination/pagination.css +179 -0
  303. package/lib/pagination/pagination.d.ts +220 -0
  304. package/lib/pagination/pagination.less +201 -0
  305. package/lib/pagination/pagination.variable.css +281 -0
  306. package/lib/pagination/type.d.ts +6 -0
  307. package/lib/pagination/use-limit.d.ts +8 -0
  308. package/lib/pagination/use-list.d.ts +8 -0
  309. package/lib/pagination/use-small-list.d.ts +5 -0
  310. package/lib/pagination/use-total.d.ts +5 -0
  311. package/lib/popover/index.d.ts +488 -138
  312. package/lib/popover/index.js +1 -1
  313. package/lib/popover/popover.css +26 -13
  314. package/lib/popover/popover.d.ts +122 -45
  315. package/lib/popover/popover.less +59 -45
  316. package/lib/popover/popover.variable.css +45 -16
  317. package/lib/popover/props.d.ts +104 -0
  318. package/lib/popover2/arrow.d.ts +2 -0
  319. package/lib/popover2/const.d.ts +10 -0
  320. package/lib/popover2/content.d.ts +24 -0
  321. package/lib/popover2/index.d.ts +704 -0
  322. package/lib/popover2/index.js +1 -0
  323. package/lib/popover2/popover2.css +25 -0
  324. package/lib/popover2/popover2.d.ts +209 -0
  325. package/lib/popover2/popover2.less +35 -0
  326. package/lib/popover2/popover2.variable.css +127 -0
  327. package/lib/popover2/props.d.ts +108 -0
  328. package/lib/popover2/reference.d.ts +2 -0
  329. package/lib/popover2/root.d.ts +16 -0
  330. package/lib/popover2/use-floating.d.ts +20 -0
  331. package/lib/popover2/use-platform.d.ts +30 -0
  332. package/lib/popover2/use-popper-id.d.ts +7 -0
  333. package/lib/preset.d.ts +2 -3
  334. package/lib/preset.js +1 -0
  335. package/lib/process/index.d.ts +279 -0
  336. package/lib/process/index.js +1 -0
  337. package/lib/process/process.css +138 -0
  338. package/lib/process/process.d.ts +131 -0
  339. package/lib/process/process.less +178 -0
  340. package/lib/process/process.variable.css +240 -0
  341. package/lib/progress/index.d.ts +474 -136
  342. package/lib/progress/index.js +1 -1
  343. package/lib/progress/progress.css +51 -3
  344. package/lib/progress/progress.d.ts +89 -36
  345. package/lib/progress/progress.less +0 -4
  346. package/lib/progress/progress.variable.css +70 -6
  347. package/lib/radio/common.d.ts +5 -5
  348. package/lib/radio/index.d.ts +206 -95
  349. package/lib/radio/index.js +1 -1
  350. package/lib/radio/radio-button.d.ts +30 -23
  351. package/lib/radio/radio-group.d.ts +11 -10
  352. package/lib/radio/radio.css +12 -13
  353. package/lib/radio/radio.d.ts +27 -17
  354. package/lib/radio/radio.less +13 -14
  355. package/lib/radio/radio.variable.css +32 -17
  356. package/lib/radio/type.d.ts +10 -5
  357. package/lib/rate/index.d.ts +85 -41
  358. package/lib/rate/index.js +1 -1
  359. package/lib/rate/rate.d.ts +13 -10
  360. package/lib/rate/star.d.ts +33 -16
  361. package/lib/resize-layout/index.d.ts +463 -0
  362. package/lib/resize-layout/index.js +1 -0
  363. package/lib/resize-layout/resize-layout.css +189 -0
  364. package/lib/resize-layout/resize-layout.d.ts +127 -0
  365. package/lib/resize-layout/resize-layout.less +233 -0
  366. package/lib/resize-layout/resize-layout.variable.css +291 -0
  367. package/lib/select/common.d.ts +20 -22
  368. package/lib/select/index.d.ts +1522 -698
  369. package/lib/select/index.js +1 -15
  370. package/lib/select/option.d.ts +23 -19
  371. package/lib/select/optionGroup.d.ts +36 -97
  372. package/lib/select/select.css +226 -71
  373. package/lib/select/select.d.ts +376 -192
  374. package/lib/select/select.less +270 -130
  375. package/lib/select/select.variable.css +245 -74
  376. package/lib/select/selectTagInput.d.ts +72 -0
  377. package/lib/select/type.d.ts +38 -0
  378. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
  379. package/lib/shared/index.d.ts +32 -6
  380. package/lib/shared/index.js +1 -1
  381. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +33 -3
  382. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +10 -2
  383. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +50 -5
  384. package/lib/shared/token.d.ts +4 -0
  385. package/lib/shared/utils.d.ts +18 -0
  386. package/lib/shared/vue-types.d.ts +11 -7
  387. package/lib/sideslider/index.d.ts +630 -81
  388. package/lib/sideslider/index.js +1 -1
  389. package/lib/sideslider/sideslider.css +48 -3
  390. package/lib/sideslider/sideslider.d.ts +181 -30
  391. package/lib/sideslider/sideslider.less +65 -6
  392. package/lib/sideslider/sideslider.variable.css +67 -6
  393. package/lib/slider/index.d.ts +588 -1
  394. package/lib/slider/index.js +1 -15
  395. package/lib/slider/slider-button.d.ts +15 -7
  396. package/lib/slider/slider.d.ts +84 -42
  397. package/lib/slider/slider.variable.css +19 -3
  398. package/lib/steps/index.d.ts +258 -111
  399. package/lib/steps/index.js +1 -15
  400. package/lib/steps/steps.css +17 -3
  401. package/lib/steps/steps.d.ts +41 -28
  402. package/lib/steps/steps.less +27 -3
  403. package/lib/steps/steps.variable.css +36 -6
  404. package/lib/styles/index.d.ts +14 -0
  405. package/lib/styles/mixins/clearfix.css +8 -0
  406. package/lib/styles/mixins/clearfix.less +10 -0
  407. package/lib/styles/mixins/clearfix.variable.css +8 -0
  408. package/lib/styles/mixins/mixins.css +51 -0
  409. package/lib/styles/mixins/mixins.less +2 -0
  410. package/lib/styles/mixins/mixins.variable.css +51 -0
  411. package/lib/styles/mixins/scroll.css +17 -0
  412. package/lib/styles/mixins/scroll.less +22 -0
  413. package/lib/styles/mixins/scroll.variable.css +119 -0
  414. package/lib/styles/themes/themes.less +27 -3
  415. package/lib/swiper/index.d.ts +246 -0
  416. package/lib/swiper/index.js +1 -0
  417. package/lib/swiper/swiper.css +91 -0
  418. package/lib/swiper/swiper.d.ts +65 -0
  419. package/lib/swiper/swiper.less +107 -0
  420. package/lib/swiper/swiper.variable.css +91 -0
  421. package/lib/switcher/index.d.ts +315 -138
  422. package/lib/switcher/index.js +1 -1
  423. package/lib/switcher/switcher.css +200 -135
  424. package/lib/switcher/switcher.d.ts +52 -36
  425. package/lib/switcher/switcher.less +211 -153
  426. package/lib/switcher/switcher.variable.css +219 -138
  427. package/lib/tab/index.d.ts +445 -282
  428. package/lib/tab/index.js +1 -1
  429. package/lib/tab/props.d.ts +194 -0
  430. package/lib/tab/tab-nav.d.ts +102 -87
  431. package/lib/tab/tab-panel.d.ts +53 -26
  432. package/lib/tab/tab.css +25 -1
  433. package/lib/tab/tab.d.ts +59 -51
  434. package/lib/tab/tab.less +31 -19
  435. package/lib/tab/tab.variable.css +44 -4
  436. package/lib/table/const.d.ts +67 -0
  437. package/lib/table/index.d.ts +728 -71
  438. package/lib/table/index.js +1 -1
  439. package/lib/table/plugins/head-filter.css +68 -0
  440. package/lib/table/plugins/head-filter.less +88 -0
  441. package/lib/table/plugins/head-filter.variable.css +170 -0
  442. package/lib/table/plugins/head-sort.css +22 -0
  443. package/lib/table/plugins/head-sort.less +28 -0
  444. package/lib/table/plugins/head-sort.variable.css +124 -0
  445. package/lib/table/plugins/settings.css +129 -0
  446. package/lib/table/plugins/settings.less +157 -0
  447. package/lib/table/plugins/settings.variable.css +231 -0
  448. package/lib/table/props.d.ts +210 -2
  449. package/lib/table/render.d.ts +76 -5
  450. package/lib/table/table.css +1089 -15
  451. package/lib/table/table.d.ts +221 -14
  452. package/lib/table/table.less +251 -24
  453. package/lib/table/table.variable.css +1109 -19
  454. package/lib/table/use-common.d.ts +72 -0
  455. package/lib/table/utils.d.ts +84 -2
  456. package/lib/tag/index.d.ts +249 -274
  457. package/lib/tag/index.js +1 -1
  458. package/lib/tag/tag.css +97 -0
  459. package/lib/tag/tag.d.ts +83 -53
  460. package/lib/tag/tag.less +110 -2
  461. package/lib/tag/tag.variable.css +116 -3
  462. package/lib/tag-input/common.d.ts +24 -0
  463. package/lib/tag-input/index.d.ts +1267 -0
  464. package/lib/tag-input/index.js +1 -0
  465. package/lib/tag-input/list-tag-render.d.ts +47 -0
  466. package/lib/tag-input/tag-input.css +209 -0
  467. package/lib/tag-input/tag-input.d.ts +374 -0
  468. package/lib/tag-input/tag-input.less +251 -0
  469. package/lib/tag-input/tag-input.variable.css +311 -0
  470. package/lib/tag-input/tag-props.d.ts +131 -0
  471. package/lib/tag-input/tag-render.d.ts +38 -0
  472. package/lib/timeline/index.d.ts +168 -0
  473. package/lib/timeline/index.js +1 -0
  474. package/lib/timeline/timeline.css +235 -0
  475. package/lib/timeline/timeline.d.ts +81 -0
  476. package/lib/timeline/timeline.less +240 -0
  477. package/lib/timeline/timeline.variable.css +337 -0
  478. package/lib/transfer/const.d.ts +5 -0
  479. package/lib/transfer/index.d.ts +500 -0
  480. package/lib/transfer/index.js +1 -0
  481. package/lib/transfer/props.d.ts +54 -0
  482. package/lib/transfer/transfer.css +139 -0
  483. package/lib/transfer/transfer.d.ts +160 -0
  484. package/lib/transfer/transfer.less +144 -0
  485. package/lib/transfer/transfer.variable.css +241 -0
  486. package/lib/tree/constant.d.ts +45 -0
  487. package/lib/tree/index.d.ts +695 -94
  488. package/lib/tree/index.js +1 -1
  489. package/lib/tree/props.d.ts +184 -0
  490. package/lib/tree/tree.css +176 -15
  491. package/lib/tree/tree.d.ts +201 -31
  492. package/lib/tree/tree.less +75 -38
  493. package/lib/tree/tree.variable.css +278 -15
  494. package/lib/tree/use-empty.d.ts +6 -0
  495. package/lib/tree/use-node-action.d.ts +12 -0
  496. package/lib/tree/use-node-async.d.ts +5 -0
  497. package/lib/tree/use-node-attribute.d.ts +33 -0
  498. package/lib/tree/use-node-drag.d.ts +3 -0
  499. package/lib/tree/use-search.d.ts +11 -0
  500. package/lib/tree/use-tree-init.d.ts +15 -0
  501. package/lib/tree/util.d.ts +34 -57
  502. package/lib/upload/index.d.ts +831 -0
  503. package/lib/upload/index.js +1 -0
  504. package/lib/upload/props.d.ts +113 -0
  505. package/lib/upload/upload-list.d.ts +46 -0
  506. package/lib/upload/upload-trigger.d.ts +54 -0
  507. package/lib/upload/upload.css +417 -0
  508. package/lib/upload/upload.d.ts +252 -0
  509. package/lib/upload/upload.less +455 -0
  510. package/lib/upload/upload.type.d.ts +78 -0
  511. package/lib/upload/upload.variable.css +519 -0
  512. package/lib/upload/use-ajax-upload.d.ts +3 -0
  513. package/lib/upload/use-file-handler.d.ts +44 -0
  514. package/lib/virtual-render/index.d.ts +834 -0
  515. package/lib/virtual-render/index.js +1 -0
  516. package/lib/virtual-render/props.d.ts +167 -0
  517. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  518. package/lib/virtual-render/v-virtual-render.d.ts +6 -0
  519. package/lib/virtual-render/virtual-render.css +33 -0
  520. package/lib/virtual-render/virtual-render.d.ts +255 -0
  521. package/lib/virtual-render/virtual-render.less +22 -0
  522. package/lib/virtual-render/virtual-render.variable.css +135 -0
  523. package/lib/volar.components.d.ts +31 -0
  524. package/package.json +107 -84
  525. package/dist/bkui-vue.cjs.js +0 -9999
  526. package/dist/bkui-vue.esm.js +0 -9958
  527. package/dist/bkui-vue.umd.js +0 -10002
  528. package/lib/form/common.d.ts +0 -3
  529. package/lib/styles/index.js +0 -1
@@ -0,0 +1 @@
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../directives"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../directives"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../directives")):t(e["../shared"],e.vue,e["../directives"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{var o={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,c=0;e.exports=function(e,t,n){var s=t&&n||0,u=t||[],f=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==f||null==d){var p=i();null==f&&(f=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=r=16383&(p[6]<<8|p[7]))}var m=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:c+1,h=m-a+(v-c)/1e4;if(h<0&&void 0===e.clockseq&&(d=d+1&16383),(h<0||m>a)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=m,c=v,r=d;var g=(1e4*(268435455&(m+=122192928e5))+v)%4294967296;u[s++]=g>>>24&255,u[s++]=g>>>16&255,u[s++]=g>>>8&255,u[s++]=255&g;var y=m/4294967296*1e4&268435455;u[s++]=y>>>8&255,u[s++]=255&y,u[s++]=y>>>24&15|16,u[s++]=y>>>16&255,u[s++]=d>>>8|128,u[s++]=255&d;for(var w=0;w<6;++w)u[s+w]=f[w];return t||l(u)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4061:e=>{"use strict";e.exports=n},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";i.r(l),i.d(l,{default:()=>xe});var e=i(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);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,n):void 0}}(e,n)||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.")}()}var o=i(748),r=i(4061);const a=(0,o.defineComponent)({name:"PopArrow",render:function(){var t=(0,e.resolveClassName)("pop2-arrow");return(0,o.createVNode)("div",{class:t},null)}});function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s,u,f=function(){return!0};!function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside"}(u||(u={}));var d=(c(s={},u.SHOW,f),c(s,u.HIDE,f),c(s,u.CLICK_OUTSIDE,f),s);const p=(0,o.defineComponent)({name:"PopContent",props:{width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto")},setup:function(e){var t=function(e){return/^\d+\.?\d*$/.test("".concat(e))?"".concat(e,"px"):e};return{style:(0,o.computed)((function(){return{width:t(e.width),height:t(e.height)}}))}},render:function(){var t,n,r,i,l,a,c=[(0,e.resolveClassName)("popover2"),(0,e.resolveClassName)("pop2-content")];return(0,o.createVNode)("div",{class:c,tabindex:"-1",style:this.style},[null!==(r=null===(n=(t=this.$slots).default)||void 0===n?void 0:n.call(t))&&void 0!==r?r:"",null!==(a=null===(l=(i=this.$slots).arrow)||void 0===l?void 0:l.call(i))&&void 0!==a?a:""])}});var m={onAfterHidden:Function,onAfterShow:Function},v=Object.assign({isShow:e.PropTypes.bool.def(!1),always:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),content:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),placement:e.PropTypes.placement(["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"]).def("top"),theme:e.PropTypes.string.def("dark"),trigger:e.PropTypes.string.def("hover"),arrow:e.PropTypes.bool.def(!0),padding:e.PropTypes.number.def(5),offset:e.PropTypes.number.def(6),boundary:e.PropTypes.string.def(void 0),zIndex:e.PropTypes.number.def(void 0),disableTeleport:e.PropTypes.bool.def(!1),autoPlacement:e.PropTypes.bool.def(!1),autoVisibility:e.PropTypes.bool.def(!0),disableOutsideClick:e.PropTypes.bool.def(!1)},m);const h=(0,o.defineComponent)({name:"PopReference",render:function(){var e,t,n;return null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""}}),g=(0,o.defineComponent)({props:{class:e.PropTypes.string.def("")},render:function(){var e,t;return(0,o.createVNode)(o.Fragment,null,[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}});function y(e){return e.split("-")[0]}function w(e){return e.split("-")[1]}function b(e){return["top","bottom"].includes(y(e))?"x":"y"}function x(e){return"y"===e?"height":"width"}function T(e,t,n){let{reference:o,floating:r}=e;const i=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,a=b(t),c=x(a),s=o[c]/2-r[c]/2,u="x"===a;let f;switch(y(t)){case"top":f={x:i,y:o.y-r.height};break;case"bottom":f={x:i,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:l};break;case"left":f={x:o.x-r.width,y:l};break;default:f={x:o.x,y:o.y}}switch(w(t)){case"start":f[a]-=s*(n&&u?-1:1);break;case"end":f[a]+=s*(n&&u?-1:1)}return f}function P(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function R(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function C(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,m=P(p),v=a[d?"floating"===f?"reference":"floating":f],h=R(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:u,strategy:c})),g=R(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...l.floating,x:o,y:r}:l.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:c}):l[f]);return{top:h.top-g.top+m.top,bottom:g.bottom-h.bottom+m.bottom,left:h.left-g.left+m.left,right:g.right-h.right+m.right}}const E=Math.min,O=Math.max;function A(e,t,n){return O(e,E(t,n))}const S={left:"right",right:"left",bottom:"top",top:"bottom"};function L(e){return e.replace(/left|right|bottom|top/g,(e=>S[e]))}function H(e,t,n){void 0===n&&(n=!1);const o=w(e),r=b(e),i=x(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=L(l)),{main:l,cross:L(l)}}const D={start:"end",end:"start"};function N(e){return e.replace(/start|end/g,(e=>D[e]))}const k=["top","right","bottom","left"],I=k.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function V(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function j(e){return k.some((t=>e[t]>=0))}const $=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=y(n),a=w(n),c="x"===b(n),s=["left","top"].includes(l)?-1:1,u=i&&c?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),c?{x:p*u,y:d*s}:{x:d*s,y:p*u}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};const M=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=e,s={x:n,y:o},u=await C(t,c),f=b(y(r)),d=function(e){return"x"===e?"y":"x"}(f);let p=s[f],m=s[d];if(i){const e="y"===f?"bottom":"right";p=A(p+u["y"===f?"top":"left"],p,p-u[e])}if(l){const e="y"===d?"bottom":"right";m=A(m+u["y"===d?"top":"left"],m,m-u[e])}const v=a.fn({...t,[f]:p,[d]:m});return{...v,data:{x:v.x-n,y:v.y-o}}}}};function W(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function B(e){if(null==e)return window;if(!W(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function q(e){return B(e).getComputedStyle(e)}function F(e){return W(e)?"":e?(e.nodeName||"").toLowerCase():""}function z(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function _(e){return e instanceof B(e).HTMLElement}function U(e){return e instanceof B(e).Element}function K(e){return"undefined"!=typeof ShadowRoot&&(e instanceof B(e).ShadowRoot||e instanceof ShadowRoot)}function X(e){const{overflow:t,overflowX:n,overflowY:o}=q(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function Y(e){return["table","td","th"].includes(F(e))}function Z(e){const t=/firefox/i.test(z()),n=q(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function G(){return!/^((?!chrome|android).)*safari/i.test(z())}const J=Math.min,Q=Math.max,ee=Math.round;function te(e,t,n){var o,r,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let c=1,s=1;t&&_(e)&&(c=e.offsetWidth>0&&ee(a.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ee(a.height)/e.offsetHeight||1);const u=U(e)?B(e):window,f=!G()&&n,d=(a.left+(f&&null!=(o=null==(r=u.visualViewport)?void 0:r.offsetLeft)?o:0))/c,p=(a.top+(f&&null!=(i=null==(l=u.visualViewport)?void 0:l.offsetTop)?i:0))/s,m=a.width/c,v=a.height/s;return{width:m,height:v,top:p,right:d+m,bottom:p+v,left:d,x:d,y:p}}function ne(e){return(t=e,(t instanceof B(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function oe(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function re(e){return te(ne(e)).left+oe(e).scrollLeft}function ie(e,t,n){const o=_(t),r=ne(t),i=te(e,o&&function(e){const t=te(e);return ee(t.width)!==e.offsetWidth||ee(t.height)!==e.offsetHeight}(t),"fixed"===n);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==F(t)||X(r))&&(l=oe(t)),_(t)){const e=te(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=re(r));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function le(e){return"html"===F(e)?e:e.assignedSlot||e.parentNode||(K(e)?e.host:null)||ne(e)}function ae(e){return _(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function ce(e){const t=B(e);let n=ae(e);for(;n&&Y(n)&&"static"===getComputedStyle(n).position;)n=ae(n);return n&&("html"===F(n)||"body"===F(n)&&"static"===getComputedStyle(n).position&&!Z(n))?t:n||function(e){let t=le(e);for(K(t)&&(t=t.host);_(t)&&!["html","body"].includes(F(t));){if(Z(t))return t;t=t.parentNode}return null}(e)||t}function se(e){if(_(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=te(e);return{width:t.width,height:t.height}}function ue(e){const t=le(e);return["html","body","#document"].includes(F(t))?e.ownerDocument.body:_(t)&&X(t)?t:ue(t)}function fe(e,t){var n;void 0===t&&(t=[]);const o=ue(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=B(o),l=r?[i].concat(i.visualViewport||[],X(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(fe(l))}function de(e,t,n){return"viewport"===t?R(function(e,t){const n=B(e),o=ne(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,c=0;if(r){i=r.width,l=r.height;const e=G();(e||!e&&"fixed"===t)&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:l,x:a,y:c}}(e,n)):U(t)?function(e,t){const n=te(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):R(function(e){var t;const n=ne(e),o=oe(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=Q(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=Q(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+re(e);const c=-o.scrollTop;return"rtl"===q(r||n).direction&&(a+=Q(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}(ne(e)))}function pe(e){const t=fe(e),n=["absolute","fixed"].includes(q(e).position)&&_(e)?ce(e):e;return U(n)?t.filter((e=>U(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&K(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==F(e))):[]}const me={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?pe(t):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=de(t,n,r);return e.top=Q(o.top,e.top),e.right=J(o.right,e.right),e.bottom=J(o.bottom,e.bottom),e.left=Q(o.left,e.left),e}),de(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=_(n),i=ne(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==F(n)||X(i))&&(l=oe(n)),_(n))){const e=te(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}},isElement:U,getDimensions:se,getOffsetParent:ce,getDocumentElement:ne,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:ie(t,ce(n),o),floating:{...se(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===q(e).direction},ve=function(t,n,r,i,l,a){var s=(0,o.ref)(!1),u=function(){var e,t,n=h(null===(e=r.value)||void 0===e?void 0:e.$el);return null===(t=document.fullscreenElement)||void 0===t?void 0:t.contains(n)},f=["dark","light"],d=(0,o.computed)((function(){var e=t.theme.split(/\s+/);return e.sort((function(e,t){return Number(f.includes(t))-Number(f.includes(e))})),{systemThemes:e,customThemes:e.filter((function(e){return!f.includes(e)}))}})),p=function(){return!u()&&t.autoVisibility},m=function(){var e,n,o,c;return{elReference:h(null===(e=r.value)||void 0===e?void 0:e.$el),elContent:h(null===(n=i.value)||void 0===n?void 0:n.$el),elArrow:t.arrow?h(null===(o=l.value)||void 0===o?void 0:o.$el):null,root:h(null===(c=a.value)||void 0===c?void 0:c.$el)}},v=function(e){var n=[$(t.offset),M({padding:t.padding})],o={placement:t.placement,middleware:n};if(t.arrow&&n.push((e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:l,rects:a,platform:c}=t;if(null==n)return{};const s=P(o),u={x:r,y:i},f=b(l),d=w(l),p=x(f),m=await c.getDimensions(n),v="y"===f?"top":"left",h="y"===f?"bottom":"right",g=a.reference[p]+a.reference[f]-u[f]-a.floating[p],y=u[f]-a.reference[f],T=await(null==c.getOffsetParent?void 0:c.getOffsetParent(n));let R=T?"y"===f?T.clientHeight||0:T.clientWidth||0:0;0===R&&(R=a.floating[p]);const C=g/2-y/2,E=s[v],O=R-m[p]-s[h],S=R/2-m[p]/2+C,L=A(E,S,O),H=("start"===d?s[v]:s[h])>0&&S!==L&&a.reference[p]<=a.floating[p];return{[f]:u[f]-(H?S<E?E-S:O-S:0),data:{[f]:L,centerOffset:S-L}}}}))({element:e})),u()||t.autoPlacement?n.push(function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,l;const{x:a,y:c,rects:s,middlewareData:u,placement:f,platform:d,elements:p}=t,{alignment:m=null,allowedPlacements:v=I,autoAlignment:h=!0,...g}=e,b=function(e,t,n){return(e?[...n.filter((t=>w(t)===e)),...n.filter((t=>w(t)!==e))]:n.filter((e=>y(e)===e))).filter((n=>!e||w(n)===e||!!t&&N(n)!==n))}(m,h,v),x=await C(t,g),T=null!=(n=null==(o=u.autoPlacement)?void 0:o.index)?n:0,P=b[T];if(null==P)return{};const{main:R,cross:E}=H(P,s,await(null==d.isRTL?void 0:d.isRTL(p.floating)));if(f!==P)return{x:a,y:c,reset:{placement:b[0]}};const O=[x[y(P)],x[R],x[E]],A=[...null!=(r=null==(i=u.autoPlacement)?void 0:i.overflows)?r:[],{placement:P,overflows:O}],S=b[T+1];if(S)return{data:{index:T+1,overflows:A},reset:{placement:S}};const L=A.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),D=null==(l=L.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:l.placement,k=null!=D?D:L[0].placement;return k!==f?{data:{index:T+1,overflows:A},reset:{placement:k}}:{}}}}()):(n.unshift(function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:o,elements:r,rects:i,platform:l,strategy:a}=t,{padding:c=2,x:s,y:u}=e,f=R(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(r.floating)),strategy:a}):i.reference),d=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(r.reference)))?n:[],p=P(c),m=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===d.length&&d[0].left>d[1].right&&null!=s&&null!=u)return null!=(e=d.find((e=>s>e.left-p.left&&s<e.right+p.right&&u>e.top-p.top&&u<e.bottom+p.bottom)))?e:f;if(d.length>=2){if("x"===b(o)){const e=d[0],t=d[d.length-1],n="top"===y(o),r=e.top,i=t.bottom,l=n?e.left:t.left,a=n?e.right:t.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const e="left"===y(o),t=O(...d.map((e=>e.right))),n=E(...d.map((e=>e.left))),r=d.filter((o=>e?o.left===n:o.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:n,right:t,width:t-n,height:l-i,x:n,y:i}}return f}},floating:r.floating,strategy:a});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}}()),n.push(function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:s=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...m}=e,v=y(o),h=f||(v!==l&&p?function(e){const t=L(e);return[N(e),t,N(t)]}(l):[L(l)]),g=[l,...h],w=await C(t,m),b=[];let x=(null==(n=r.flip)?void 0:n.overflows)||[];if(s&&b.push(w[v]),u){const{main:e,cross:t}=H(o,i,await(null==a.isRTL?void 0:a.isRTL(c.floating)));b.push(w[e],w[t])}if(x=[...x,{placement:o,overflows:b}],!b.every((e=>e<=0))){var T,P;const e=(null!=(T=null==(P=r.flip)?void 0:P.index)?T:0)+1,t=g[e];if(t)return{data:{index:e,overflows:x},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var R;const e=null==(R=x.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:R[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}}())),p()&&o.middleware.push(function(e){let{strategy:t="referenceHidden",...n}={};return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=V(await C(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:j(t)}}}case"escaped":{const t=V(await C(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:j(t)}}}default:return{}}}}}()),u()){var r={getElementRects:function(e){var t=e.reference,n=e.floating,o=t.getBoundingClientRect(),r=n.getBoundingClientRect();return{reference:{width:o.width,height:o.height,x:o.x,y:o.y},floating:{width:r.width,height:r.height,x:r.x,y:r.y}}},getDimensions:function(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height}},getClippingRect:function(e){!function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}(e);var t=document.fullscreenElement.getBoundingClientRect();return{width:t.width,height:t.height,x:0,y:0}}},i=r.getElementRects,l=r.getDimensions,a=r.getClippingRect;Object.assign(o,{platform:{getElementRects:i,getDimensions:l,getClippingRect:a}})}return o},h=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):null},g=d.value.customThemes.join(" "),S=d.value.customThemes.reduce((function(e,t){return Object.assign(c({},"data-".concat(t,"-theme"),!0),e)}),{}),D="".concat(g),k=null,W=function(e){var t=window.devicePixelRatio||1;return Math.round(e*t)/t||0},B=function(){var e=m(),n=e.elReference,o=e.elContent,r=e.elArrow;if(n){var i=v(r);((e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:s,y:u}=T(c,o,a),f=o,d={};for(let n=0;n<i.length;n++){const{name:p,fn:m}=i[n],{x:v,y:h,data:g,reset:y}=await m({x:s,y:u,initialPlacement:o,placement:f,strategy:r,middlewareData:d,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=v?v:s,u=null!=h?h:u,d={...d,[p]:{...d[p],...g}},y&&("object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):y.rects),({x:s,y:u}=T(c,f,a))),n=-1)}return{x:s,y:u,placement:f,strategy:r,middlewareData:d}})(e,t,{platform:me,...n}))(n,o,i).then((function(e){var n=e.x,i=e.y,l=e.placement,a=e.middlewareData,s=o.className;o.className="".concat(s.replace(D,"")," ").concat(D).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(S).forEach((function(e){o.setAttribute(e,S[e])}));var u=l.split("-")[0],f=u;["left","right","top","bottom"].includes(u)||(f="top"),function(e,t,n,o){var r;Object.assign(e.style,{left:"0",top:"0",transform:"translate3d(".concat(W(t),"px,").concat(W(n),"px,0)")});var i=!!p()&&(null===(r=o.hide)||void 0===r?void 0:r.referenceHidden);Object.assign(e.style,{visibility:i?"hidden":"visible"})}(o,n,i,a),function(e,n,o){if(t.arrow){var r=o.arrow,i=r.x,l=r.y;e.setAttribute("data-arrow",n),Object.assign(e.style,{left:"",top:"",bottom:"",right:""});var a={top:"bottom",right:"left",bottom:"top",left:"right"}[n];Object.assign(e.style,c({left:null!==i?"".concat(i,"px"):"",top:null!==l?"".concat(l,"px"):""},a,"-4px"))}}(r,f,a)}))}},q=function(){s.value=!0},F=function(){s.value=!1},z=function(){s.value?F():q()},_=function(){z()};return(0,o.watch)(s,(function(o){var r,l;o?((l=h(null===(r=i.value)||void 0===r?void 0:r.$el)).style.setProperty("display","block"),l.style.setProperty("z-index","".concat(t.zIndex?t.zIndex:e.bkZIndexManager.getModalNextIndex())),B(),n.emit("afterShow",{isSHow:!0})):function(){var e;h(null===(e=i.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),n.emit("afterHidden",{isSHow:!1})}()})),{showPopover:q,hidePopover:F,resolveTriggerEvents:function(){var e;return null!==(e={hover:[["mouseenter",q],["mouseleave",F],["focus",q],["blur",F]],click:[["click",_]],manual:[[]]}[t.trigger])&&void 0!==e?e:[]},updatePopover:B,triggerPopover:z,resolvePopElements:m,isElementFullScreen:u,resolveTargetElement:h,createPopInstance:function(){var e=m(),t=e.elReference,n=e.elContent;k=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,c=r&&!a,s=i&&!a,u=c||s?[...U(e)?fe(e):[],...fe(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));let f,d=null;l&&(d=new ResizeObserver(n),U(e)&&!a&&d.observe(e),d.observe(t));let p=a?te(e):null;return a&&function t(){const o=te(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,f=requestAnimationFrame(t)}(),l||n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(f)}}(t,n,(function(){B()}))},localIsShow:s,cleanup:k}};var he=i(8022),ge=null,ye=null,we=null;const be=(0,o.defineComponent)({name:"Popover2",components:{Content:p,Arrow:a,Root:g},directives:{clickoutside:r.clickoutside},props:v,emits:d,setup:function(e,t){var r=e.content,i=e.theme,l=e.disableTeleport,a=(0,o.ref)(),c=(0,o.ref)(),s=(0,o.ref)(),f=(0,o.ref)(),d=(0,o.ref)(!1),p=null,m=ve(e,t,a,c,s,f),v=m.localIsShow,h=m.showPopover,g=m.hidePopover,y=m.resolveTriggerEvents,w=m.updatePopover,b=m.resolvePopElements,x=m.isElementFullScreen,T=m.cleanup,P=m.createPopInstance,R=function(){g()},C=function(){P(),e.always?h():E()};e.always||e.disabled||(0,o.watch)((function(){return e.isShow}),(function(){e.isShow?h():g()}),{immediate:!0}),(0,o.watch)((function(){return[e.disabled]}),(function(e){e[0]?C():D()}));var E=function(){var e=b().elReference;(p=y()).forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.addEventListener(r,i)}))},O=function(){var e=b(),t=e.elReference,n=e.root;H.value=S(d.value,n||t)},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0,i=null,l=function(e){null===i&&e()},a=function(){n&&(i="[data-fllsrn-id=".concat(ye,"]"))},c=function(){/^body$/i.test(e.boundary)||"string"!=typeof e.boundary||(o(e.boundary)||console.error("props.boundary is not available selector"),i=e.boundary)};return l((function(){if(/^parent$/i.test(e.boundary)){i="".concat(t).concat(ge);var n=(r||{}).parentNode;(null==n?void 0:n.parentNode)&&(n.parentNode.setAttribute("data-pnode-id",we),i="[data-pnode-id=".concat(we,"]"))}})),l(c),l(a),l((function(){i="string"==typeof e.boundary?e.boundary:"".concat(t).concat(ge)})),i},o=function(e){return document.querySelector(e)instanceof HTMLElement};if(null===ge||!o("#".concat(ge))){ge="id_".concat((0,he.v4)());var r=document.createElement("div");r.setAttribute("id",ge),r.setAttribute("data-popper-id",ge),document.body.append(r)}null===ye&&(ye="id_".concat((0,he.v4)())),null===we&&(we="id_".concat((0,he.v4)()));var i=function(){var e;if(null===document.fullscreenElement){var t="[data-fllsrn-id=".concat(ye,"]");(null!==(e=document.querySelectorAll(t))&&void 0!==e?e:[]).forEach((function(e){e.removeAttribute("data-fllsrn-id")}))}else document.fullscreenElement.setAttribute("data-fllsrn-id",ye)};return{popContainerId:ge,prefixId:n(),getPrefixId:n,resetFullscreenElementTag:i}}(e,"#"),S=A.getPrefixId,L=A.resetFullscreenElementTag,H=(0,o.ref)();O();var D=function(){"function"==typeof T&&T(),function(){if(null==p?void 0:p.length){var e=b().elReference;e&&p.forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.removeEventListener(r,i)})),p=null}}()},N=function(){d.value=x(),L(),O(),w()};(0,o.onMounted)((function(){e.disabled||(C(),O(),document.body.addEventListener("fullscreenchange",N))})),(0,o.onUnmounted)((function(){D(),document.body.removeEventListener("fullscreenchange",N)})),t.expose({show:function(){h()},hide:R});var k=(0,o.computed)((function(){return(d.value||!l)&&"string"==typeof H.value}));return{boundary:H,arrow:e.arrow,refReference:a,refContent:c,refArrow:s,content:r,theme:i,transBoundary:k,handleClickOutside:function(n){t.emit(u.CLICK_OUTSIDE,{isShow:v.value,event:n}),e.disableOutsideClick||e.always||e.disabled||"manual"===e.trigger||v.value&&R()}}},render:function(){var e,t,n,r,i,l,c=this;return(0,o.createVNode)(g,{ref:"refRoot"},{default:function(){return[(0,o.createVNode)(h,{ref:"refReference"},{default:function(){return[null!==(n=null===(t=(e=c.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:(0,o.createVNode)("span",null,null)]}}),(0,o.createVNode)(o.Teleport,{to:c.boundary,disabled:!c.transBoundary},{default:function(){return[(0,o.withDirectives)((0,o.createVNode)(p,{ref:"refContent","data-theme":c.theme,width:c.width,height:c.height},{default:function(){return[null!==(l=null===(i=(r=c.$slots).content)||void 0===i?void 0:i.call(r))&&void 0!==l?l:c.content]},arrow:function(){var e,t;return c.arrow?(0,o.createVNode)(a,{ref:"refArrow"},{default:function(){return[null===(t=(e=c.$slots).arrow)||void 0===t?void 0:t.call(e)]}}):""}}),[[(0,o.resolveDirective)("clickoutside"),c.handleClickOutside]])]}})]}})}}),xe=(0,e.withInstall)(be)})(),l})()));
@@ -0,0 +1,25 @@
1
+ .bk-popover2.bk-pop2-content {
2
+ position: absolute;
3
+ display: none;
4
+ padding: 7px 14px;
5
+ font-size: 12px;
6
+ color: #fff;
7
+ background: #26323d;
8
+ border-radius: 4px;
9
+ box-sizing: border-box;
10
+ }
11
+ .bk-popover2.bk-pop2-content .bk-pop2-arrow {
12
+ position: absolute;
13
+ width: 8px;
14
+ height: 8px;
15
+ background: #333;
16
+ transform: rotate(45deg);
17
+ }
18
+ .bk-popover2.bk-pop2-content[data-theme^='light'] {
19
+ color: #26323d;
20
+ background-color: #fff;
21
+ box-shadow: 0 0 6px 0 #dcdee5;
22
+ }
23
+ .bk-popover2.bk-pop2-content[data-theme^='light'] .bk-pop2-arrow {
24
+ background-color: #fff;
25
+ }
@@ -0,0 +1,209 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ onAfterHidden: FunctionConstructor;
3
+ onAfterShow: FunctionConstructor;
4
+ isShow: import("vue-types").VueTypeValidableDef<boolean> & {
5
+ default: boolean;
6
+ } & {
7
+ default: boolean;
8
+ };
9
+ always: import("vue-types").VueTypeValidableDef<boolean> & {
10
+ default: boolean;
11
+ } & {
12
+ default: boolean;
13
+ };
14
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
15
+ default: boolean;
16
+ } & {
17
+ default: boolean;
18
+ };
19
+ width: import("vue-types").VueTypeDef<string | number> & {
20
+ default: string | number;
21
+ };
22
+ height: import("vue-types").VueTypeDef<string | number> & {
23
+ default: string | number;
24
+ };
25
+ content: import("vue-types").VueTypeDef<string | number> & {
26
+ default: string | number;
27
+ };
28
+ placement: import("vue-types").VueTypeDef<string> & {
29
+ default: string;
30
+ };
31
+ theme: import("vue-types").VueTypeValidableDef<string> & {
32
+ default: string;
33
+ } & {
34
+ default: string;
35
+ };
36
+ trigger: import("vue-types").VueTypeValidableDef<string> & {
37
+ default: string;
38
+ } & {
39
+ default: string;
40
+ };
41
+ arrow: import("vue-types").VueTypeValidableDef<boolean> & {
42
+ default: boolean;
43
+ } & {
44
+ default: boolean;
45
+ };
46
+ padding: import("vue-types").VueTypeValidableDef<number> & {
47
+ default: number;
48
+ } & {
49
+ default: number;
50
+ };
51
+ offset: import("vue-types").VueTypeValidableDef<number> & {
52
+ default: number;
53
+ } & {
54
+ default: number;
55
+ };
56
+ boundary: import("vue-types").VueTypeValidableDef<string> & {
57
+ default: string;
58
+ } & {
59
+ default: string;
60
+ };
61
+ zIndex: import("vue-types").VueTypeValidableDef<number> & {
62
+ default: number;
63
+ } & {
64
+ default: number;
65
+ };
66
+ disableTeleport: import("vue-types").VueTypeValidableDef<boolean> & {
67
+ default: boolean;
68
+ } & {
69
+ default: boolean;
70
+ };
71
+ autoPlacement: import("vue-types").VueTypeValidableDef<boolean> & {
72
+ default: boolean;
73
+ } & {
74
+ default: boolean;
75
+ };
76
+ autoVisibility: import("vue-types").VueTypeValidableDef<boolean> & {
77
+ default: boolean;
78
+ } & {
79
+ default: boolean;
80
+ };
81
+ disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
82
+ default: boolean;
83
+ } & {
84
+ default: boolean;
85
+ };
86
+ }, {
87
+ boundary: import("vue").Ref<any>;
88
+ arrow: boolean;
89
+ refReference: import("vue").Ref<any>;
90
+ refContent: import("vue").Ref<any>;
91
+ refArrow: import("vue").Ref<any>;
92
+ content: string | number;
93
+ theme: string;
94
+ transBoundary: import("vue").ComputedRef<boolean>;
95
+ handleClickOutside: (_e: MouseEvent) => void;
96
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
97
+ show: (..._args: any[]) => boolean;
98
+ hide: (..._args: any[]) => boolean;
99
+ clickoutside: (..._args: any[]) => boolean;
100
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
101
+ onAfterHidden: FunctionConstructor;
102
+ onAfterShow: FunctionConstructor;
103
+ isShow: import("vue-types").VueTypeValidableDef<boolean> & {
104
+ default: boolean;
105
+ } & {
106
+ default: boolean;
107
+ };
108
+ always: import("vue-types").VueTypeValidableDef<boolean> & {
109
+ default: boolean;
110
+ } & {
111
+ default: boolean;
112
+ };
113
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
114
+ default: boolean;
115
+ } & {
116
+ default: boolean;
117
+ };
118
+ width: import("vue-types").VueTypeDef<string | number> & {
119
+ default: string | number;
120
+ };
121
+ height: import("vue-types").VueTypeDef<string | number> & {
122
+ default: string | number;
123
+ };
124
+ content: import("vue-types").VueTypeDef<string | number> & {
125
+ default: string | number;
126
+ };
127
+ placement: import("vue-types").VueTypeDef<string> & {
128
+ default: string;
129
+ };
130
+ theme: import("vue-types").VueTypeValidableDef<string> & {
131
+ default: string;
132
+ } & {
133
+ default: string;
134
+ };
135
+ trigger: import("vue-types").VueTypeValidableDef<string> & {
136
+ default: string;
137
+ } & {
138
+ default: string;
139
+ };
140
+ arrow: import("vue-types").VueTypeValidableDef<boolean> & {
141
+ default: boolean;
142
+ } & {
143
+ default: boolean;
144
+ };
145
+ padding: import("vue-types").VueTypeValidableDef<number> & {
146
+ default: number;
147
+ } & {
148
+ default: number;
149
+ };
150
+ offset: import("vue-types").VueTypeValidableDef<number> & {
151
+ default: number;
152
+ } & {
153
+ default: number;
154
+ };
155
+ boundary: import("vue-types").VueTypeValidableDef<string> & {
156
+ default: string;
157
+ } & {
158
+ default: string;
159
+ };
160
+ zIndex: import("vue-types").VueTypeValidableDef<number> & {
161
+ default: number;
162
+ } & {
163
+ default: number;
164
+ };
165
+ disableTeleport: import("vue-types").VueTypeValidableDef<boolean> & {
166
+ default: boolean;
167
+ } & {
168
+ default: boolean;
169
+ };
170
+ autoPlacement: import("vue-types").VueTypeValidableDef<boolean> & {
171
+ default: boolean;
172
+ } & {
173
+ default: boolean;
174
+ };
175
+ autoVisibility: import("vue-types").VueTypeValidableDef<boolean> & {
176
+ default: boolean;
177
+ } & {
178
+ default: boolean;
179
+ };
180
+ disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
181
+ default: boolean;
182
+ } & {
183
+ default: boolean;
184
+ };
185
+ }>> & {
186
+ onShow?: (...args: any[]) => any;
187
+ onHide?: (...args: any[]) => any;
188
+ onClickoutside?: (...args: any[]) => any;
189
+ }, {
190
+ placement: string;
191
+ offset: number;
192
+ zIndex: number;
193
+ content: string | number;
194
+ trigger: string;
195
+ disabled: boolean;
196
+ arrow: boolean;
197
+ theme: string;
198
+ width: string | number;
199
+ height: string | number;
200
+ always: boolean;
201
+ padding: number;
202
+ isShow: boolean;
203
+ boundary: string;
204
+ disableTeleport: boolean;
205
+ autoPlacement: boolean;
206
+ autoVisibility: boolean;
207
+ disableOutsideClick: boolean;
208
+ }>;
209
+ export default _default;
@@ -0,0 +1,35 @@
1
+ @import '../styles/themes/themes.less';
2
+
3
+
4
+ .@{bk-prefix}-popover2 {
5
+ &.@{bk-prefix}-pop2-content {
6
+ position: absolute;
7
+ display: none;
8
+
9
+ padding: 7px 14px;
10
+
11
+ font-size: 12px;
12
+ color: #fff;
13
+ background: #26323d;
14
+ border-radius: 4px;
15
+ box-sizing: border-box;
16
+
17
+ .@{bk-prefix}-pop2-arrow {
18
+ position: absolute;
19
+ width: 8px;
20
+ height: 8px;
21
+ background: #333;
22
+ transform: rotate(45deg);
23
+ }
24
+
25
+ &[data-theme^='light'] {
26
+ color: #26323d;
27
+ background-color: #fff;
28
+ box-shadow: 0 0 6px 0 #dcdee5;
29
+
30
+ .@{bk-prefix}-pop2-arrow {
31
+ background-color: #fff;
32
+ }
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,127 @@
1
+ :root {
2
+ --bk-prefix: bk;
3
+ --popover-max-height: 216px;
4
+ --primary-color: #3a84ff;
5
+ --success-color: #2dcb56;
6
+ --warning-color: #ff9c01;
7
+ --danger-color: #ea3636;
8
+ --default-color: #63656e;
9
+ --gray-color: #979ba5;
10
+ --light-gray: #c4c6cc;
11
+ --white-color: white;
12
+ --whitesmoke-color: #fafbfd;
13
+ --disable-color: #dcdee5;
14
+ --font-size-base: 12px;
15
+ --font-size-medium: 14px;
16
+ --font-size-large: 16px;
17
+ --line-height-base: 16px;
18
+ --line-height-medium: 16px;
19
+ --line-height-large: 18px;
20
+ --component-size-small: 26px;
21
+ --component-size-base: 32px;
22
+ --component-size-large: 40px;
23
+ --border-width-base: 1px;
24
+ --border-style-base: solid;
25
+ --border-radius-base: 2px;
26
+ --input-disabled-bg: #fafbfd;
27
+ --input-disabled-border: var(--disable-color);
28
+ --input-height-base: var(--component-size-base);
29
+ --input-color: var(--default-color);
30
+ --input-bg: white;
31
+ --input-border-color: var(--light-gray);
32
+ --input-broder-radius: 3px;
33
+ --input-shadow-color: #a3c5fd;
34
+ --input-horizontal-padding: 10px;
35
+ --input-block-color: #f5f7fa;
36
+ --input-block-hover-color: #eaebf0;
37
+ --input-icon-size: var(--font-size-medium);
38
+ --input-maxlength-color: #979ba5;
39
+ --button-primary-hover-color: #5594fa;
40
+ --button-danger-hover-color: #ff5656;
41
+ --button-success-hover-color: #45e35f;
42
+ --button-warning-hover-color: #ffb848;
43
+ --button-default-hover-border-color: #979ba5;
44
+ --button-primary-active-color: #2c77f4;
45
+ --button-danger-active-color: #db2626;
46
+ --button-success-active-color: #1ab943;
47
+ --button-warning-active-color: #eb9000;
48
+ --button-selected-bg-color: #e1ecff;
49
+ --button-disabled-selected-bg-color: #f0f1f5;
50
+ --fixed-navbar-background: #fff;
51
+ --fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
52
+ --switch-default-color: #fff;
53
+ --switch-grey-color: #c4c6cc;
54
+ --breadcrumb-black-color: #979ba5;
55
+ --breadcrumb-primary-hover-color: #0082ff;
56
+ --breadcrumb-fn-main-color: #63656e;
57
+ --link-default-hover-color: #979ba5;
58
+ --link-primary-hover-color: #699df4;
59
+ --link-success-hover-color: #45e35f;
60
+ --link-warning-hover-color: #ffb848;
61
+ --link-danger-hover-color: #ff5656;
62
+ --link-default-disabled-color: #dcdee5;
63
+ --link-primary-disabled-color: #a3c5fd;
64
+ --link-success-disabled-color: #94f5a4;
65
+ --link-warning-disabled-color: #ffd695;
66
+ --link-danger-disabled-color: #fd9c9c;
67
+ --message-color: var(--default-color);
68
+ --message-primary-bg-color: #f0f8ff;
69
+ --message-primary-border-color: #e1ecff;
70
+ --message-warning-bg-color: #fff4e2;
71
+ --message-warning-border-color: #ffe8c3;
72
+ --message-success-bg-color: #f2fff4;
73
+ --message-success-border-color: #dcffe2;
74
+ --message-danger-bg-color: #ffeded;
75
+ --message-danger-border-color: #ffdddd;
76
+ --slider-default-bg: #dcdee5;
77
+ --slider-disable-bar-bg: #979ba5;
78
+ --menu-bg-color: #182132;
79
+ --submenu-bg-color: #151d2c;
80
+ --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
81
+ --menu-color: #96a2b9;
82
+ --menu-group-color: var(--default-color);
83
+ --menu-width: 260px;
84
+ --menu-collapse-width: 60px;
85
+ --menu-active-color: white;
86
+ --nav-header-bg-color: #182132;
87
+ --nav-bg-color: #182132;
88
+ --date-picker-disabled-bg: #fafbfd;
89
+ --date-picker-dropdown-mb: 4px;
90
+ --date-picker-dropdown-bg: #fff;
91
+ --table-bg-color: var(--white-color);
92
+ --table-border-color: #dcdee5;
93
+ --table-head-bg-color: #fafbfd;
94
+ --table-head-font-color: #313238;
95
+ --table-body-font-color: #575961;
96
+ --table-row-hover-bg-color: #f5f7fa;
97
+ --table-row-active-bg-color: #f0f1f5;
98
+ --cascader-panel-border-color: #dcdee5;
99
+ --cascader-panel-hover: #eaf3ff;
100
+ --cascader-panel-active: #f4f6fa;
101
+ --cascader-panel-disabled-bg: #fff;
102
+ }
103
+ .bk-popover2.bk-pop2-content {
104
+ position: absolute;
105
+ display: none;
106
+ padding: 7px 14px;
107
+ font-size: 12px;
108
+ color: #fff;
109
+ background: #26323d;
110
+ border-radius: 4px;
111
+ box-sizing: border-box;
112
+ }
113
+ .bk-popover2.bk-pop2-content .bk-pop2-arrow {
114
+ position: absolute;
115
+ width: 8px;
116
+ height: 8px;
117
+ background: #333;
118
+ transform: rotate(45deg);
119
+ }
120
+ .bk-popover2.bk-pop2-content[data-theme^='light'] {
121
+ color: #26323d;
122
+ background-color: #fff;
123
+ box-shadow: 0 0 6px 0 #dcdee5;
124
+ }
125
+ .bk-popover2.bk-pop2-content[data-theme^='light'] .bk-pop2-arrow {
126
+ background-color: #fff;
127
+ }
@@ -0,0 +1,108 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare const PopoverProps: {
3
+ onAfterHidden: FunctionConstructor;
4
+ onAfterShow: FunctionConstructor;
5
+ isShow: import("vue-types").VueTypeValidableDef<boolean> & {
6
+ default: boolean;
7
+ } & {
8
+ default: boolean;
9
+ };
10
+ always: import("vue-types").VueTypeValidableDef<boolean> & {
11
+ default: boolean;
12
+ } & {
13
+ default: boolean;
14
+ };
15
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
16
+ default: boolean;
17
+ } & {
18
+ default: boolean;
19
+ };
20
+ width: import("vue-types").VueTypeDef<string | number> & {
21
+ default: string | number;
22
+ };
23
+ height: import("vue-types").VueTypeDef<string | number> & {
24
+ default: string | number;
25
+ };
26
+ content: import("vue-types").VueTypeDef<string | number> & {
27
+ default: string | number;
28
+ };
29
+ /**
30
+ * 组件显示位置
31
+ */
32
+ placement: import("vue-types").VueTypeDef<string> & {
33
+ default: string;
34
+ };
35
+ theme: import("vue-types").VueTypeValidableDef<string> & {
36
+ default: string;
37
+ } & {
38
+ default: string;
39
+ };
40
+ /**
41
+ * 触发方式
42
+ * 支持 click hover manual
43
+ * manual: 通过isShow控制显示、隐藏
44
+ */
45
+ trigger: import("vue-types").VueTypeValidableDef<string> & {
46
+ default: string;
47
+ } & {
48
+ default: string;
49
+ };
50
+ arrow: import("vue-types").VueTypeValidableDef<boolean> & {
51
+ default: boolean;
52
+ } & {
53
+ default: boolean;
54
+ };
55
+ padding: import("vue-types").VueTypeValidableDef<number> & {
56
+ default: number;
57
+ } & {
58
+ default: number;
59
+ };
60
+ offset: import("vue-types").VueTypeValidableDef<number> & {
61
+ default: number;
62
+ } & {
63
+ default: number;
64
+ };
65
+ /**
66
+ * 弹出内容绑定元素
67
+ */
68
+ boundary: import("vue-types").VueTypeValidableDef<string> & {
69
+ default: string;
70
+ } & {
71
+ default: string;
72
+ };
73
+ zIndex: import("vue-types").VueTypeValidableDef<number> & {
74
+ default: number;
75
+ } & {
76
+ default: number;
77
+ };
78
+ disableTeleport: import("vue-types").VueTypeValidableDef<boolean> & {
79
+ default: boolean;
80
+ } & {
81
+ default: boolean;
82
+ };
83
+ /**
84
+ * chooses the placement that has the most space available automatically
85
+ */
86
+ autoPlacement: import("vue-types").VueTypeValidableDef<boolean> & {
87
+ default: boolean;
88
+ } & {
89
+ default: boolean;
90
+ };
91
+ /**
92
+ * 当有滚动条,滚动出可是范围时自动隐藏pop
93
+ */
94
+ autoVisibility: import("vue-types").VueTypeValidableDef<boolean> & {
95
+ default: boolean;
96
+ } & {
97
+ default: boolean;
98
+ };
99
+ /**
100
+ * 是否禁用clickoutside
101
+ */
102
+ disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
103
+ default: boolean;
104
+ } & {
105
+ default: boolean;
106
+ };
107
+ };
108
+ export declare type PopoverPropTypes = Readonly<ExtractPropTypes<typeof PopoverProps>>;
@@ -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,20 @@
1
+ import { PopoverPropTypes } from './props';
2
+ declare const _default: (props: PopoverPropTypes, ctx: any, refReference: any, refContent: any, refArrow: any, refRoot: any) => {
3
+ showPopover: () => void;
4
+ hidePopover: () => void;
5
+ resolveTriggerEvents: () => any;
6
+ updatePopover: () => void;
7
+ triggerPopover: () => void;
8
+ resolvePopElements: () => {
9
+ elReference: any;
10
+ elContent: any;
11
+ elArrow: any;
12
+ root: any;
13
+ };
14
+ isElementFullScreen: () => boolean;
15
+ resolveTargetElement: (target: any) => any;
16
+ createPopInstance: () => void;
17
+ localIsShow: import("vue").Ref<boolean>;
18
+ cleanup: any;
19
+ };
20
+ export default _default;
@@ -0,0 +1,30 @@
1
+ declare const _default: () => {
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,7 @@
1
+ declare const _default: (props: any, prefix?: string) => {
2
+ popContainerId: any;
3
+ prefixId: any;
4
+ getPrefixId: (isfullscreen?: boolean, root?: any) => any;
5
+ resetFullscreenElementTag: () => void;
6
+ };
7
+ export default _default;
package/lib/preset.d.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  import { App } from 'vue';
2
2
  declare const _default: {
3
- createInstall: (prefix?: string) => (app: App<any>) => App<any>[];
4
- componentPrefix: string;
5
- install: (app: App<any>) => App<any>[];
3
+ createInstall: (prefix?: string) => (app: App<any>) => void;
4
+ install: (app: App<any>) => void;
6
5
  version: string;
7
6
  };
8
7
  export default _default;