bkui-vue 0.0.1-beta.99 → 0.0.1

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 (665) hide show
  1. package/License.txt +14 -0
  2. package/dist/index.cjs.js +360 -36
  3. package/dist/index.esm.js +30153 -24448
  4. package/dist/index.umd.js +360 -36
  5. package/dist/locale/en.esm.js +2 -0
  6. package/dist/locale/en.esm.js.map +1 -0
  7. package/dist/locale/en.umd.js +2 -0
  8. package/dist/locale/en.umd.js.map +1 -0
  9. package/dist/locale/zh-cn.esm.js +2 -0
  10. package/dist/locale/zh-cn.esm.js.map +1 -0
  11. package/dist/locale/zh-cn.umd.js +2 -0
  12. package/dist/locale/zh-cn.umd.js.map +1 -0
  13. package/dist/style.css +1 -1
  14. package/dist/style.variable.css +1 -0
  15. package/lib/affix/affix.d.ts +2 -2
  16. package/lib/affix/affix.variable.css +29 -6
  17. package/lib/affix/index.d.ts +60 -36
  18. package/lib/alert/alert.css +4 -0
  19. package/lib/alert/alert.d.ts +11 -9
  20. package/lib/alert/alert.less +24 -19
  21. package/lib/alert/alert.variable.css +33 -6
  22. package/lib/alert/index.d.ts +82 -58
  23. package/lib/alert/index.js +1 -1
  24. package/lib/animate-number/animate-number.d.ts +2 -2
  25. package/lib/animate-number/index.d.ts +58 -25
  26. package/lib/backtop/backtop.css +8 -0
  27. package/lib/backtop/backtop.d.ts +4 -4
  28. package/lib/backtop/backtop.less +8 -0
  29. package/lib/backtop/backtop.variable.css +37 -6
  30. package/lib/backtop/index.d.ts +65 -47
  31. package/lib/backtop/index.js +1 -1
  32. package/lib/badge/badge.css +2 -5
  33. package/lib/badge/badge.d.ts +3 -3
  34. package/lib/badge/badge.less +4 -5
  35. package/lib/badge/badge.variable.css +31 -11
  36. package/lib/badge/index.d.ts +67 -64
  37. package/lib/badge/index.js +1 -1
  38. package/lib/breadcrumb/breadcrumb-item.d.ts +5 -3
  39. package/lib/breadcrumb/breadcrumb.css +43 -0
  40. package/lib/breadcrumb/breadcrumb.d.ts +2 -2
  41. package/lib/breadcrumb/breadcrumb.variable.css +77 -11
  42. package/lib/breadcrumb/index.d.ts +65 -41
  43. package/lib/breadcrumb/index.js +1 -1
  44. package/lib/button/button-group.d.ts +4 -4
  45. package/lib/button/button.css +21 -3
  46. package/lib/button/button.d.ts +46 -33
  47. package/lib/button/button.less +25 -5
  48. package/lib/button/button.variable.css +50 -9
  49. package/lib/button/index.d.ts +121 -96
  50. package/lib/button/index.js +1 -1
  51. package/lib/card/card.css +45 -2
  52. package/lib/card/card.d.ts +2 -1
  53. package/lib/card/card.less +2 -2
  54. package/lib/card/card.variable.css +78 -12
  55. package/lib/card/index.d.ts +66 -64
  56. package/lib/card/index.js +1 -1
  57. package/lib/cascader/cascader-panel.d.ts +60 -6
  58. package/lib/cascader/cascader.css +197 -11
  59. package/lib/cascader/cascader.d.ts +108 -25
  60. package/lib/cascader/cascader.less +148 -11
  61. package/lib/cascader/cascader.variable.css +234 -25
  62. package/lib/cascader/index.d.ts +378 -176
  63. package/lib/cascader/index.js +2 -1
  64. package/lib/cascader/index.js.LICENSE.txt +1 -0
  65. package/lib/cascader/interface.d.ts +8 -1
  66. package/lib/cascader/node.d.ts +9 -2
  67. package/lib/cascader/store.d.ts +13 -1
  68. package/lib/checkbox/checkbox-group.d.ts +18 -2
  69. package/lib/checkbox/checkbox.css +38 -11
  70. package/lib/checkbox/checkbox.d.ts +40 -18
  71. package/lib/checkbox/checkbox.less +68 -33
  72. package/lib/checkbox/checkbox.variable.css +67 -17
  73. package/lib/checkbox/common.d.ts +1 -0
  74. package/lib/checkbox/index.d.ts +133 -72
  75. package/lib/checkbox/index.js +1 -1
  76. package/lib/checkbox/type.d.ts +1 -1
  77. package/lib/code-diff/code-diff.css +27 -7
  78. package/lib/code-diff/code-diff.d.ts +7 -7
  79. package/lib/code-diff/code-diff.less +42 -7
  80. package/lib/code-diff/code-diff.variable.css +56 -13
  81. package/lib/code-diff/index.d.ts +30 -43
  82. package/lib/code-diff/index.js +1 -1
  83. package/lib/collapse/collapse-panel.d.ts +104 -0
  84. package/lib/collapse/collapse.css +58 -19
  85. package/lib/collapse/collapse.d.ts +59 -42
  86. package/lib/collapse/collapse.less +106 -46
  87. package/lib/collapse/collapse.variable.css +87 -25
  88. package/lib/collapse/index.d.ts +271 -46
  89. package/lib/collapse/index.js +1 -1
  90. package/lib/collapse/props.d.ts +131 -0
  91. package/lib/collapse-transition/collapse-transition.css +93 -0
  92. package/lib/collapse-transition/collapse-transition.d.ts +15 -0
  93. package/lib/collapse-transition/collapse-transition.less +111 -0
  94. package/lib/collapse-transition/collapse-transition.variable.css +215 -0
  95. package/lib/collapse-transition/index.d.ts +2 -0
  96. package/lib/collapse-transition/index.js +1 -0
  97. package/lib/color-picker/color-picker.css +275 -0
  98. package/lib/color-picker/color-picker.d.ts +144 -0
  99. package/lib/color-picker/color-picker.less +325 -0
  100. package/lib/color-picker/color-picker.variable.css +397 -0
  101. package/lib/color-picker/components/color-input.d.ts +42 -0
  102. package/lib/color-picker/components/hue-slider.d.ts +41 -0
  103. package/lib/color-picker/components/input-container.d.ts +42 -0
  104. package/lib/color-picker/components/recommend-colors.d.ts +51 -0
  105. package/lib/color-picker/components/saturation-panel.d.ts +41 -0
  106. package/lib/color-picker/index.d.ts +255 -0
  107. package/lib/color-picker/index.js +1 -0
  108. package/lib/color-picker/utils.d.ts +37 -0
  109. package/lib/components.d.ts +13 -0
  110. package/lib/components.js +1 -1
  111. package/lib/config-provider/config-provider.css +0 -0
  112. package/lib/config-provider/config-provider.d.ts +402 -0
  113. package/lib/config-provider/config-provider.less +1 -0
  114. package/lib/{popover2/popover2.variable.css → config-provider/config-provider.variable.css} +29 -31
  115. package/lib/config-provider/index.d.ts +646 -0
  116. package/lib/config-provider/index.js +1 -0
  117. package/lib/config-provider/token.d.ts +128 -0
  118. package/lib/config-provider/use-global-config.d.ts +5 -0
  119. package/lib/config-provider/use-locale.d.ts +3 -0
  120. package/lib/config-provider/use-prefix.d.ts +9 -0
  121. package/lib/container/col.d.ts +3 -3
  122. package/lib/container/container.css +43 -0
  123. package/lib/container/container.d.ts +2 -2
  124. package/lib/container/container.less +4 -4
  125. package/lib/container/container.variable.css +72 -6
  126. package/lib/container/index.d.ts +30 -49
  127. package/lib/container/index.js +1 -1
  128. package/lib/container/interface.d.ts +7 -0
  129. package/lib/container/row.d.ts +2 -2
  130. package/lib/date-picker/base/confirm.d.ts +74 -0
  131. package/lib/date-picker/base/date-table.d.ts +96 -0
  132. package/lib/date-picker/base/month-table.d.ts +117 -0
  133. package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
  134. package/lib/date-picker/base/time-spinner.d.ts +170 -0
  135. package/lib/date-picker/base/year-table.d.ts +117 -0
  136. package/lib/date-picker/date-picker.css +30 -1
  137. package/lib/date-picker/date-picker.d.ts +55 -35
  138. package/lib/date-picker/date-picker.less +109 -74
  139. package/lib/date-picker/date-picker.variable.css +59 -7
  140. package/lib/date-picker/index.d.ts +198 -218
  141. package/lib/date-picker/index.js +1 -1
  142. package/lib/date-picker/interface.d.ts +20 -10
  143. package/lib/date-picker/panel/date-range.d.ts +345 -0
  144. package/lib/date-picker/panel/date.d.ts +206 -0
  145. package/lib/date-picker/panel/time-range.d.ts +495 -0
  146. package/lib/date-picker/panel/time.d.ts +451 -0
  147. package/lib/date-picker/props.d.ts +48 -5
  148. package/lib/date-picker/time-picker.d.ts +390 -0
  149. package/lib/date-picker/utils.d.ts +22 -2
  150. package/lib/dialog/dialog.css +94 -34
  151. package/lib/dialog/dialog.d.ts +57 -93
  152. package/lib/dialog/dialog.less +85 -43
  153. package/lib/dialog/dialog.variable.css +216 -34
  154. package/lib/dialog/index.d.ts +194 -334
  155. package/lib/dialog/index.js +2 -1
  156. package/lib/dialog/index.js.LICENSE.txt +1 -0
  157. package/lib/dialog/props.d.ts +122 -0
  158. package/lib/directives/ellipsis.d.ts +7 -0
  159. package/lib/directives/index.d.ts +2 -0
  160. package/lib/directives/index.js +1 -1
  161. package/lib/directives/tooltips.d.ts +2 -1
  162. package/lib/dist.index.js +1 -1
  163. package/lib/divider/divider.d.ts +17 -17
  164. package/lib/divider/divider.variable.css +29 -6
  165. package/lib/divider/index.d.ts +85 -61
  166. package/lib/divider/index.js +1 -1
  167. package/lib/divider/props.d.ts +6 -6
  168. package/lib/dropdown/dropdown-item.d.ts +1 -1
  169. package/lib/dropdown/dropdown-menu.d.ts +2 -2
  170. package/lib/dropdown/dropdown.css +34 -7
  171. package/lib/dropdown/dropdown.d.ts +46 -15
  172. package/lib/dropdown/dropdown.less +42 -36
  173. package/lib/dropdown/dropdown.variable.css +63 -13
  174. package/lib/dropdown/index.d.ts +136 -65
  175. package/lib/dropdown/index.js +1 -1
  176. package/lib/exception/exception.css +40 -14
  177. package/lib/exception/exception.d.ts +33 -13
  178. package/lib/exception/exception.less +59 -22
  179. package/lib/exception/exception.variable.css +69 -20
  180. package/lib/exception/index.d.ts +91 -43
  181. package/lib/exception/index.js +1 -1
  182. package/lib/exception/typings/index.d.ts +4 -0
  183. package/lib/fixed-navbar/fixed-navbar.d.ts +2 -2
  184. package/lib/fixed-navbar/fixed-navbar.variable.css +29 -6
  185. package/lib/fixed-navbar/index.d.ts +60 -36
  186. package/lib/form/compose-form-item.d.ts +4 -2
  187. package/lib/form/form-item.d.ts +15 -9
  188. package/lib/form/form.css +32 -8
  189. package/lib/form/form.d.ts +25 -7
  190. package/lib/form/form.less +85 -53
  191. package/lib/form/form.variable.css +61 -14
  192. package/lib/form/index.d.ts +109 -51
  193. package/lib/form/index.js +1 -1
  194. package/lib/form/type.d.ts +5 -4
  195. package/lib/form/utils.d.ts +2 -0
  196. package/lib/hooks.d.ts +1 -0
  197. package/lib/hooks.js +1 -0
  198. package/lib/icon/angle-double-down-line.js +1 -1
  199. package/lib/icon/angle-double-left-line.js +1 -1
  200. package/lib/icon/angle-double-left.js +1 -1
  201. package/lib/icon/angle-double-right-line.js +1 -1
  202. package/lib/icon/angle-double-right.js +1 -1
  203. package/lib/icon/angle-double-up-line.js +1 -1
  204. package/lib/icon/angle-down-fill.js +1 -1
  205. package/lib/icon/angle-down-line.js +1 -1
  206. package/lib/icon/angle-down.js +1 -1
  207. package/lib/icon/angle-left.js +1 -1
  208. package/lib/icon/angle-right.js +1 -1
  209. package/lib/icon/angle-up-fill.js +1 -1
  210. package/lib/icon/angle-up.js +1 -1
  211. package/lib/icon/archive-fill.js +1 -1
  212. package/lib/icon/arrows-left.js +1 -1
  213. package/lib/icon/arrows-right.js +1 -1
  214. package/lib/icon/audio-fill.js +1 -1
  215. package/lib/icon/bk.js +1 -1
  216. package/lib/icon/circle.js +1 -1
  217. package/lib/icon/close-line.js +1 -1
  218. package/lib/icon/close.js +1 -1
  219. package/lib/icon/code.js +1 -1
  220. package/lib/icon/cog-shape.js +1 -1
  221. package/lib/icon/collapse-left.js +1 -1
  222. package/lib/icon/copy-shape.d.ts +4 -0
  223. package/lib/icon/copy-shape.js +1 -0
  224. package/lib/icon/copy.js +1 -1
  225. package/lib/icon/data-shape.js +1 -1
  226. package/lib/icon/del.js +1 -1
  227. package/lib/icon/doc-fill.js +1 -1
  228. package/lib/icon/done.js +1 -1
  229. package/lib/icon/down-shape.js +1 -1
  230. package/lib/icon/down-small.js +1 -1
  231. package/lib/icon/edit-line.js +1 -1
  232. package/lib/icon/ellipsis.js +1 -1
  233. package/lib/icon/enlarge-line.d.ts +4 -0
  234. package/lib/icon/enlarge-line.js +1 -0
  235. package/lib/icon/error.js +1 -1
  236. package/lib/icon/excel-fill.js +1 -1
  237. package/lib/icon/exclamation-circle-shape.js +1 -1
  238. package/lib/icon/eye.js +1 -1
  239. package/lib/icon/filliscreen-line.d.ts +4 -0
  240. package/lib/icon/filliscreen-line.js +1 -0
  241. package/lib/icon/fix-line.d.ts +4 -0
  242. package/lib/icon/fix-line.js +1 -0
  243. package/lib/icon/fix-shape.d.ts +4 -0
  244. package/lib/icon/fix-shape.js +1 -0
  245. package/lib/icon/folder-open.js +1 -1
  246. package/lib/icon/folder-shape-open.js +1 -1
  247. package/lib/icon/folder-shape.js +1 -1
  248. package/lib/icon/folder.js +1 -1
  249. package/lib/icon/funnel.js +1 -0
  250. package/lib/icon/help-document-fill.js +1 -1
  251. package/lib/icon/help-fill.js +1 -1
  252. package/lib/icon/help.js +1 -1
  253. package/lib/icon/image-fill.js +1 -1
  254. package/lib/icon/img-error.d.ts +4 -0
  255. package/lib/icon/img-error.js +1 -0
  256. package/lib/icon/img-placehoulder.d.ts +4 -0
  257. package/lib/icon/img-placehoulder.js +1 -0
  258. package/lib/icon/index.d.ts +83 -69
  259. package/lib/icon/index.js +1 -1
  260. package/lib/icon/info-line.js +1 -1
  261. package/lib/icon/info.js +1 -1
  262. package/lib/icon/left-shape.js +1 -1
  263. package/lib/icon/left-turn-line.d.ts +4 -0
  264. package/lib/icon/left-turn-line.js +1 -0
  265. package/lib/icon/narrow-line.d.ts +4 -0
  266. package/lib/icon/narrow-line.js +1 -0
  267. package/lib/icon/original.d.ts +4 -0
  268. package/lib/icon/original.js +1 -0
  269. package/lib/icon/pdf-fill.js +1 -1
  270. package/lib/icon/play-shape.js +1 -1
  271. package/lib/icon/plus.js +1 -1
  272. package/lib/icon/ppt-fill.js +1 -1
  273. package/lib/icon/qq.js +1 -1
  274. package/lib/icon/right-shape.js +1 -1
  275. package/lib/icon/right-turn-line.d.ts +4 -0
  276. package/lib/icon/right-turn-line.js +1 -0
  277. package/lib/icon/search.js +1 -1
  278. package/lib/icon/share.js +1 -1
  279. package/lib/icon/spinner.js +1 -1
  280. package/lib/icon/success.js +1 -1
  281. package/lib/icon/switcher-loading.js +1 -1
  282. package/lib/icon/text-file.js +1 -1
  283. package/lib/icon/text-fill.js +1 -1
  284. package/lib/icon/transfer.d.ts +4 -0
  285. package/lib/icon/transfer.js +1 -0
  286. package/lib/icon/tree-application-shape.js +1 -1
  287. package/lib/icon/unfull-screen.d.ts +4 -0
  288. package/lib/icon/unfull-screen.js +1 -0
  289. package/lib/icon/unvisible.js +1 -1
  290. package/lib/icon/up-shape.js +1 -1
  291. package/lib/icon/upload.js +1 -1
  292. package/lib/icon/video-fill.js +1 -1
  293. package/lib/icon/warn.js +1 -1
  294. package/lib/icon/weixin-pro.d.ts +4 -0
  295. package/lib/icon/weixin-pro.js +1 -0
  296. package/lib/icon/weixin.js +1 -1
  297. package/lib/image/image-viewer.css +142 -0
  298. package/lib/image/image-viewer.d.ts +73 -0
  299. package/lib/image/image-viewer.less +168 -0
  300. package/lib/image/image-viewer.variable.css +142 -0
  301. package/lib/image/image.css +37 -0
  302. package/lib/image/image.d.ts +93 -0
  303. package/lib/image/image.less +44 -0
  304. package/lib/image/image.variable.css +37 -0
  305. package/lib/image/index.d.ts +252 -0
  306. package/lib/image/index.js +1 -0
  307. package/lib/image/props.d.ts +71 -0
  308. package/lib/index.d.ts +3 -0
  309. package/lib/index.js +1 -1
  310. package/lib/info-box/index.d.ts +7 -0
  311. package/lib/info-box/index.js +2 -0
  312. package/lib/info-box/index.js.LICENSE.txt +1 -0
  313. package/lib/info-box/info-box.css +37 -0
  314. package/lib/info-box/info-box.d.ts +29 -0
  315. package/lib/info-box/info-box.less +51 -0
  316. package/lib/info-box/info-box.variable.css +159 -0
  317. package/lib/input/index.d.ts +178 -228
  318. package/lib/input/index.js +1 -1
  319. package/lib/input/input.css +168 -23
  320. package/lib/input/input.d.ts +59 -37
  321. package/lib/input/input.less +104 -22
  322. package/lib/input/input.variable.css +228 -61
  323. package/lib/link/index.d.ts +80 -53
  324. package/lib/link/index.js +1 -1
  325. package/lib/link/link.css +12 -12
  326. package/lib/link/link.d.ts +10 -8
  327. package/lib/link/link.less +16 -14
  328. package/lib/link/link.variable.css +41 -18
  329. package/lib/loading/directive.d.ts +14 -0
  330. package/lib/loading/index.d.ts +160 -56
  331. package/lib/loading/index.js +1 -1
  332. package/lib/loading/loading.css +72 -29
  333. package/lib/loading/loading.d.ts +91 -15
  334. package/lib/loading/loading.less +21 -19
  335. package/lib/loading/loading.variable.css +117 -51
  336. package/lib/locale/index.d.ts +3 -0
  337. package/lib/locale/index.js +1 -0
  338. package/lib/locale/lang/en.d.ts +126 -0
  339. package/lib/locale/lang/zh-cn.d.ts +3 -0
  340. package/lib/menu/index.d.ts +75 -34
  341. package/lib/menu/index.js +1 -1
  342. package/lib/menu/menu-group.d.ts +2 -2
  343. package/lib/menu/menu-item.d.ts +5 -1
  344. package/lib/menu/menu.css +43 -0
  345. package/lib/menu/menu.d.ts +2 -2
  346. package/lib/menu/menu.variable.css +90 -24
  347. package/lib/menu/submenu.d.ts +5 -1
  348. package/lib/menu/submenu.variable.css +29 -6
  349. package/lib/menu/utils.d.ts +1 -1
  350. package/lib/message/index.js +2 -1
  351. package/lib/message/index.js.LICENSE.txt +6 -0
  352. package/lib/message/message.css +166 -2
  353. package/lib/message/message.less +222 -7
  354. package/lib/message/message.variable.css +195 -8
  355. package/lib/message/messageConstructor.d.ts +136 -27
  356. package/lib/modal/index.d.ts +201 -246
  357. package/lib/modal/index.js +1 -1
  358. package/lib/modal/modal.css +39 -6
  359. package/lib/modal/modal.d.ts +54 -61
  360. package/lib/modal/modal.less +8 -10
  361. package/lib/modal/modal.variable.css +161 -6
  362. package/lib/modal/props.mixin.d.ts +16 -23
  363. package/lib/navigation/index.d.ts +90 -68
  364. package/lib/navigation/index.js +1 -1
  365. package/lib/navigation/navigation-title.d.ts +6 -3
  366. package/lib/navigation/navigation.d.ts +12 -4
  367. package/lib/navigation/navigation.variable.css +29 -6
  368. package/lib/notify/index.js +1 -1
  369. package/lib/notify/notify.css +8 -4
  370. package/lib/notify/notify.less +18 -13
  371. package/lib/notify/notify.variable.css +37 -10
  372. package/lib/notify/notifyConstructor.d.ts +19 -21
  373. package/lib/overflow-title/components/overflow-title.d.ts +57 -0
  374. package/lib/overflow-title/directive/overflow-title.d.ts +3 -0
  375. package/lib/overflow-title/index.d.ts +195 -0
  376. package/lib/overflow-title/index.js +1 -0
  377. package/lib/overflow-title/overflow.css +11 -0
  378. package/lib/overflow-title/overflow.less +13 -0
  379. package/lib/overflow-title/overflow.variable.css +11 -0
  380. package/lib/overflow-title/props.d.ts +43 -0
  381. package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
  382. package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
  383. package/lib/pagination/index.d.ts +89 -90
  384. package/lib/pagination/index.js +1 -1
  385. package/lib/pagination/pagination.css +54 -28
  386. package/lib/pagination/pagination.d.ts +17 -6
  387. package/lib/pagination/pagination.less +59 -30
  388. package/lib/pagination/pagination.variable.css +83 -34
  389. package/lib/pagination/type.d.ts +1 -1
  390. package/lib/pagination/use-limit.d.ts +3 -1
  391. package/lib/pagination/use-total.d.ts +3 -1
  392. package/lib/plugin-popover/index.d.ts +27 -0
  393. package/lib/plugin-popover/index.js +1 -0
  394. package/lib/plugins/index.d.ts +1 -0
  395. package/lib/plugins/index.js +1 -0
  396. package/lib/pop-confirm/index.d.ts +249 -0
  397. package/lib/pop-confirm/index.js +1 -0
  398. package/lib/pop-confirm/pop-confirm.css +28 -0
  399. package/lib/pop-confirm/pop-confirm.d.ts +95 -0
  400. package/lib/pop-confirm/pop-confirm.less +34 -0
  401. package/lib/pop-confirm/pop-confirm.variable.css +150 -0
  402. package/lib/pop-confirm/props.d.ts +67 -0
  403. package/lib/popover/arrow.d.ts +2 -0
  404. package/lib/popover/const.d.ts +16 -0
  405. package/lib/popover/content.d.ts +43 -0
  406. package/lib/popover/index.d.ts +409 -173
  407. package/lib/popover/index.js +1 -1
  408. package/lib/popover/plugin-popover.d.ts +12 -0
  409. package/lib/popover/popover.css +10 -53
  410. package/lib/popover/popover.d.ts +189 -58
  411. package/lib/popover/popover.less +19 -68
  412. package/lib/popover/popover.variable.css +40 -60
  413. package/lib/popover/props.d.ts +90 -37
  414. package/lib/popover/reference.d.ts +2 -0
  415. package/lib/popover/root.d.ts +27 -0
  416. package/lib/popover/use-floating.d.ts +34 -0
  417. package/lib/popover/use-platform.d.ts +30 -0
  418. package/lib/popover/use-popover-init.d.ts +23 -0
  419. package/lib/popover/use-popper-id.d.ts +6 -0
  420. package/lib/popover/utils.d.ts +8 -0
  421. package/lib/popover2/index.d.ts +54 -393
  422. package/lib/popover2/index.js +1 -1
  423. package/lib/popover2/popover.d.ts +2 -0
  424. package/lib/preset.d.ts +264 -2
  425. package/lib/preset.js +1 -1
  426. package/lib/process/index.d.ts +69 -52
  427. package/lib/process/index.js +2 -1
  428. package/lib/process/index.js.LICENSE.txt +1 -0
  429. package/lib/process/process.css +22 -0
  430. package/lib/process/process.d.ts +5 -4
  431. package/lib/process/process.less +36 -8
  432. package/lib/process/process.variable.css +51 -6
  433. package/lib/progress/index.d.ts +100 -121
  434. package/lib/progress/index.js +1 -1
  435. package/lib/progress/progress.css +43 -0
  436. package/lib/progress/progress.d.ts +17 -15
  437. package/lib/progress/progress.less +8 -8
  438. package/lib/progress/progress.variable.css +76 -10
  439. package/lib/radio/index.d.ts +116 -58
  440. package/lib/radio/index.js +1 -1
  441. package/lib/radio/radio-button.d.ts +12 -9
  442. package/lib/radio/radio-group.d.ts +36 -5
  443. package/lib/radio/radio.css +133 -62
  444. package/lib/radio/radio.d.ts +9 -5
  445. package/lib/radio/radio.less +262 -173
  446. package/lib/radio/radio.variable.css +166 -72
  447. package/lib/radio/type.d.ts +1 -1
  448. package/lib/rate/index.d.ts +78 -28
  449. package/lib/rate/index.js +1 -1
  450. package/lib/rate/rate.d.ts +14 -3
  451. package/lib/rate/star.d.ts +1 -1
  452. package/lib/resize-layout/index.d.ts +82 -80
  453. package/lib/resize-layout/index.js +1 -1
  454. package/lib/resize-layout/resize-layout.css +6 -15
  455. package/lib/resize-layout/resize-layout.d.ts +10 -9
  456. package/lib/resize-layout/resize-layout.less +32 -41
  457. package/lib/resize-layout/resize-layout.variable.css +35 -21
  458. package/lib/search-select/index.d.ts +892 -0
  459. package/lib/search-select/index.js +2 -0
  460. package/lib/search-select/index.js.LICENSE.txt +1 -0
  461. package/lib/search-select/input.d.ts +101 -0
  462. package/lib/search-select/menu.d.ts +77 -0
  463. package/lib/search-select/search-select.css +427 -0
  464. package/lib/search-select/search-select.d.ts +361 -0
  465. package/lib/search-select/search-select.less +384 -0
  466. package/lib/search-select/search-select.variable.css +549 -0
  467. package/lib/search-select/selected.d.ts +155 -0
  468. package/lib/search-select/utils.d.ts +88 -0
  469. package/lib/select/common.d.ts +4 -11
  470. package/lib/select/index.d.ts +1471 -918
  471. package/lib/select/index.js +2 -1
  472. package/lib/select/index.js.LICENSE.txt +1 -0
  473. package/lib/select/option.d.ts +17 -6
  474. package/lib/select/optionGroup.d.ts +2 -2
  475. package/lib/select/select.css +211 -140
  476. package/lib/select/select.d.ts +654 -205
  477. package/lib/select/select.less +331 -189
  478. package/lib/select/select.variable.css +240 -146
  479. package/lib/select/selectTagInput.d.ts +38 -15
  480. package/lib/select/type.d.ts +20 -14
  481. package/lib/shared/dom.d.ts +3 -0
  482. package/lib/shared/helper.d.ts +9 -0
  483. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  484. package/lib/shared/hooks/use-form.d.ts +2 -0
  485. package/lib/shared/index.d.ts +16 -12
  486. package/lib/shared/index.js +1 -1
  487. package/lib/shared/mask-manager.d.ts +18 -5
  488. package/lib/shared/pop-manager.d.ts +13 -3
  489. package/lib/shared/popover.d.ts +1 -1
  490. package/lib/shared/token.d.ts +1 -1
  491. package/lib/shared/utils.d.ts +19 -0
  492. package/lib/shared/vue-types.d.ts +116 -13
  493. package/lib/sideslider/index.d.ts +158 -252
  494. package/lib/sideslider/index.js +2 -1
  495. package/lib/sideslider/index.js.LICENSE.txt +1 -0
  496. package/lib/sideslider/sideslider.css +10 -8
  497. package/lib/sideslider/sideslider.d.ts +46 -71
  498. package/lib/sideslider/sideslider.less +19 -17
  499. package/lib/sideslider/sideslider.variable.css +39 -14
  500. package/lib/slider/index.d.ts +82 -112
  501. package/lib/slider/index.js +2 -1
  502. package/lib/slider/index.js.LICENSE.txt +1 -0
  503. package/lib/slider/slider-button.d.ts +3 -2
  504. package/lib/slider/slider.d.ts +6 -6
  505. package/lib/slider/slider.variable.css +29 -6
  506. package/lib/steps/index.d.ts +105 -96
  507. package/lib/steps/index.js +2 -1
  508. package/lib/steps/index.js.LICENSE.txt +1 -0
  509. package/lib/steps/steps.css +1 -0
  510. package/lib/steps/steps.d.ts +35 -34
  511. package/lib/steps/steps.less +63 -62
  512. package/lib/steps/steps.variable.css +30 -6
  513. package/lib/styles/index.d.ts +6 -2
  514. package/lib/styles/mixins/mixins.css +43 -0
  515. package/lib/styles/mixins/mixins.less +1 -0
  516. package/lib/styles/mixins/mixins.variable.css +43 -0
  517. package/lib/styles/mixins/popper.css +1 -1
  518. package/lib/styles/mixins/popper.less +12 -11
  519. package/lib/styles/mixins/popper.variable.css +123 -1
  520. package/lib/styles/mixins/scroll.css +17 -0
  521. package/lib/styles/mixins/scroll.less +22 -0
  522. package/lib/styles/mixins/scroll.variable.css +139 -0
  523. package/lib/styles/reset.css +36 -0
  524. package/lib/styles/reset.less +26 -2
  525. package/lib/styles/reset.variable.css +36 -0
  526. package/lib/styles/themes/themes.less +37 -6
  527. package/lib/swiper/index.d.ts +60 -44
  528. package/lib/swiper/index.js +1 -1
  529. package/lib/swiper/swiper.d.ts +1 -1
  530. package/lib/swiper/swiper.less +15 -13
  531. package/lib/swiper/swiper.variable.css +122 -0
  532. package/lib/switcher/index.d.ts +94 -87
  533. package/lib/switcher/index.js +1 -1
  534. package/lib/switcher/switcher.css +44 -1
  535. package/lib/switcher/switcher.d.ts +17 -11
  536. package/lib/switcher/switcher.less +29 -52
  537. package/lib/switcher/switcher.variable.css +90 -24
  538. package/lib/tab/index.d.ts +163 -124
  539. package/lib/tab/index.js +1 -1
  540. package/lib/tab/props.d.ts +92 -43
  541. package/lib/tab/tab-nav.d.ts +46 -14
  542. package/lib/tab/tab-panel.d.ts +16 -9
  543. package/lib/tab/tab.css +135 -58
  544. package/lib/tab/tab.d.ts +42 -20
  545. package/lib/tab/tab.less +164 -77
  546. package/lib/tab/tab.variable.css +164 -64
  547. package/lib/table/cache.d.ts +6 -0
  548. package/lib/table/components/index.d.ts +3 -0
  549. package/lib/table/components/table-cell.d.ts +51 -0
  550. package/lib/table/components/table-column.d.ts +305 -0
  551. package/lib/table/components/table-row.d.ts +2 -0
  552. package/lib/table/const.d.ts +94 -6
  553. package/lib/table/index.d.ts +697 -169
  554. package/lib/table/index.js +1 -1
  555. package/lib/table/plugins/body-empty.d.ts +36 -0
  556. package/lib/table/plugins/col-group.d.ts +38 -0
  557. package/lib/table/plugins/common.d.ts +6 -0
  558. package/lib/table/plugins/head-filter.css +30 -14
  559. package/lib/table/plugins/head-filter.d.ts +26 -0
  560. package/lib/table/plugins/head-filter.less +79 -52
  561. package/lib/table/plugins/head-filter.variable.css +59 -20
  562. package/lib/table/plugins/head-sort.css +7 -3
  563. package/lib/table/plugins/head-sort.d.ts +29 -0
  564. package/lib/table/plugins/head-sort.less +8 -4
  565. package/lib/table/plugins/head-sort.variable.css +36 -9
  566. package/lib/table/plugins/index.d.ts +5 -0
  567. package/lib/table/plugins/settings.css +43 -6
  568. package/lib/table/plugins/settings.d.ts +37 -0
  569. package/lib/table/plugins/settings.less +52 -7
  570. package/lib/table/plugins/settings.variable.css +72 -12
  571. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  572. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  573. package/lib/table/plugins/use-fixed-column.d.ts +26 -0
  574. package/lib/table/plugins/use-pagination.d.ts +16 -0
  575. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  576. package/lib/table/props.d.ts +271 -23
  577. package/lib/table/render.d.ts +32 -12
  578. package/lib/table/table.css +961 -69
  579. package/lib/table/table.d.ts +170 -27
  580. package/lib/table/table.less +195 -69
  581. package/lib/table/table.variable.css +990 -75
  582. package/lib/table/use-column.d.ts +12 -0
  583. package/lib/table/use-common.d.ts +71 -11
  584. package/lib/table/utils.d.ts +33 -7
  585. package/lib/table-column/index.d.ts +797 -0
  586. package/lib/table-column/index.js +1 -0
  587. package/lib/tag/index.d.ts +89 -68
  588. package/lib/tag/index.js +1 -1
  589. package/lib/tag/tag.css +46 -13
  590. package/lib/tag/tag.d.ts +17 -12
  591. package/lib/tag/tag.less +58 -21
  592. package/lib/tag/tag.variable.css +75 -19
  593. package/lib/tag-input/common.d.ts +13 -1
  594. package/lib/tag-input/index.d.ts +570 -269
  595. package/lib/tag-input/index.js +1 -1
  596. package/lib/tag-input/list-tag-render.d.ts +2 -5
  597. package/lib/tag-input/tag-input.css +23 -27
  598. package/lib/tag-input/tag-input.d.ts +304 -45
  599. package/lib/tag-input/tag-input.less +103 -106
  600. package/lib/tag-input/tag-input.variable.css +52 -33
  601. package/lib/tag-input/tag-props.d.ts +142 -8
  602. package/lib/tag-input/tag-render.d.ts +31 -5
  603. package/lib/time-picker/index.d.ts +833 -0
  604. package/lib/time-picker/index.js +1 -0
  605. package/lib/time-picker/time-picker.css +215 -0
  606. package/lib/time-picker/time-picker.less +260 -0
  607. package/lib/time-picker/time-picker.variable.css +337 -0
  608. package/lib/timeline/index.d.ts +64 -32
  609. package/lib/timeline/index.js +1 -1
  610. package/lib/timeline/timeline.css +11 -4
  611. package/lib/timeline/timeline.d.ts +4 -3
  612. package/lib/timeline/timeline.less +48 -36
  613. package/lib/timeline/timeline.variable.css +40 -10
  614. package/lib/transfer/index.d.ts +152 -81
  615. package/lib/transfer/index.js +1 -1
  616. package/lib/transfer/props.d.ts +5 -0
  617. package/lib/transfer/transfer.css +121 -41
  618. package/lib/transfer/transfer.d.ts +35 -3
  619. package/lib/transfer/transfer.less +103 -46
  620. package/lib/transfer/transfer.variable.css +155 -52
  621. package/lib/tree/constant.d.ts +22 -2
  622. package/lib/tree/index.d.ts +236 -141
  623. package/lib/tree/index.js +1 -1
  624. package/lib/tree/props.d.ts +68 -12
  625. package/lib/tree/tree.css +176 -7
  626. package/lib/tree/tree.d.ts +91 -20
  627. package/lib/tree/tree.less +49 -1
  628. package/lib/tree/tree.variable.css +205 -13
  629. package/lib/tree/use-empty.d.ts +1 -1
  630. package/lib/tree/use-node-action.d.ts +3 -2
  631. package/lib/tree/use-node-attribute.d.ts +11 -0
  632. package/lib/tree/use-node-drag.d.ts +1 -1
  633. package/lib/tree/use-search.d.ts +1 -1
  634. package/lib/tree/util.d.ts +2 -0
  635. package/lib/upload/index.d.ts +508 -1
  636. package/lib/upload/index.js +2 -1
  637. package/lib/upload/index.js.LICENSE.txt +1 -0
  638. package/lib/upload/props.d.ts +0 -2
  639. package/lib/upload/upload-list.d.ts +3 -2
  640. package/lib/upload/upload-trigger.d.ts +1 -4
  641. package/lib/upload/upload.css +58 -5
  642. package/lib/upload/upload.d.ts +10 -16
  643. package/lib/upload/upload.less +19 -8
  644. package/lib/upload/upload.type.d.ts +12 -12
  645. package/lib/upload/upload.variable.css +113 -37
  646. package/lib/upload/use-file-handler.d.ts +2 -25
  647. package/lib/virtual-render/index.d.ts +100 -150
  648. package/lib/virtual-render/index.js +1 -1
  649. package/lib/virtual-render/props.d.ts +15 -1
  650. package/lib/virtual-render/virtual-render.css +17 -17
  651. package/lib/virtual-render/virtual-render.d.ts +39 -4
  652. package/lib/virtual-render/virtual-render.less +2 -23
  653. package/lib/virtual-render/virtual-render.variable.css +139 -17
  654. package/lib/volar.components.d.ts +102 -0
  655. package/package.json +47 -41
  656. package/LICENSE.txt +0 -22
  657. package/lib/popover2/arrow.d.ts +0 -2
  658. package/lib/popover2/content.d.ts +0 -24
  659. package/lib/popover2/popover2.css +0 -25
  660. package/lib/popover2/popover2.d.ts +0 -180
  661. package/lib/popover2/popover2.less +0 -35
  662. package/lib/popover2/props.d.ts +0 -92
  663. package/lib/popover2/reference.d.ts +0 -2
  664. package/lib/popover2/use-floating.d.ts +0 -15
  665. package/lib/popover2/use-popper-id.d.ts +0 -5
@@ -2,99 +2,52 @@ declare const BkPopover2: {
2
2
  new (...args: any[]): {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
- $props: Partial<{
6
- placement: string;
7
- offset: number;
8
- zIndex: number;
9
- content: string | number;
10
- trigger: string;
11
- disabled: boolean;
12
- arrow: boolean;
13
- theme: string;
14
- width: string | number;
15
- height: string | number;
16
- always: boolean;
17
- padding: number;
18
- isShow: boolean;
19
- boundary: string;
20
- disableTeleport: boolean;
21
- autoPlacement: boolean;
22
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
23
- onAfterHidden: FunctionConstructor;
24
- onAfterShow: FunctionConstructor;
25
- isShow: import("vue-types").VueTypeValidableDef<boolean> & {
26
- default: boolean;
27
- } & {
28
- default: boolean;
29
- };
30
- always: import("vue-types").VueTypeValidableDef<boolean> & {
31
- default: boolean;
32
- } & {
33
- default: boolean;
34
- };
35
- disabled: import("vue-types").VueTypeValidableDef<boolean> & {
36
- default: boolean;
37
- } & {
38
- default: boolean;
39
- };
40
- width: import("vue-types").VueTypeDef<string | number> & {
41
- default: string | number;
42
- };
43
- height: import("vue-types").VueTypeDef<string | number> & {
44
- default: string | number;
45
- };
46
- content: import("vue-types").VueTypeDef<string | number> & {
47
- default: string | number;
48
- };
49
- placement: import("vue-types").VueTypeDef<string> & {
50
- default: string;
51
- };
52
- theme: import("vue-types").VueTypeValidableDef<string> & {
53
- default: string;
54
- } & {
55
- default: string;
56
- };
57
- trigger: import("vue-types").VueTypeValidableDef<string> & {
58
- default: string;
59
- } & {
60
- default: string;
61
- };
62
- arrow: import("vue-types").VueTypeValidableDef<boolean> & {
63
- default: boolean;
64
- } & {
65
- default: boolean;
66
- };
67
- padding: import("vue-types").VueTypeValidableDef<number> & {
68
- default: number;
69
- } & {
70
- default: number;
71
- };
72
- offset: import("vue-types").VueTypeValidableDef<number> & {
73
- default: number;
74
- } & {
75
- default: number;
76
- };
77
- boundary: import("vue-types").VueTypeValidableDef<string> & {
78
- default: string;
79
- } & {
80
- default: string;
81
- };
82
- zIndex: import("vue-types").VueTypeValidableDef<number> & {
83
- default: number;
84
- } & {
85
- default: number;
86
- };
87
- disableTeleport: import("vue-types").VueTypeValidableDef<boolean> & {
88
- default: boolean;
89
- } & {
90
- default: boolean;
91
- };
92
- autoPlacement: import("vue-types").VueTypeValidableDef<boolean> & {
93
- default: boolean;
94
- } & {
95
- default: boolean;
96
- };
97
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "offset" | "zIndex" | "content" | "trigger" | "disabled" | "arrow" | "theme" | "width" | "height" | "always" | "padding" | "isShow" | "boundary" | "disableTeleport" | "autoPlacement">;
5
+ $props: {
6
+ class?: unknown;
7
+ style?: unknown;
8
+ key?: string | number | symbol;
9
+ ref?: import("vue").VNodeRef;
10
+ ref_for?: boolean;
11
+ ref_key?: string;
12
+ onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
13
+ [key: string]: any;
14
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
15
+ [key: string]: any;
16
+ }>) => void)[];
17
+ onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
18
+ [key: string]: any;
19
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
20
+ [key: string]: any;
21
+ }>) => void)[];
22
+ onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
23
+ [key: string]: any;
24
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
25
+ [key: string]: any;
26
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
27
+ [key: string]: any;
28
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
29
+ [key: string]: any;
30
+ }>) => void)[];
31
+ onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
32
+ [key: string]: any;
33
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
34
+ [key: string]: any;
35
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
36
+ [key: string]: any;
37
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
38
+ [key: string]: any;
39
+ }>) => void)[];
40
+ onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
41
+ [key: string]: any;
42
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
+ [key: string]: any;
44
+ }>) => void)[];
45
+ onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
+ [key: string]: any;
47
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
+ [key: string]: any;
49
+ }>) => void)[];
50
+ };
98
51
  $attrs: {
99
52
  [x: string]: unknown;
100
53
  };
@@ -102,116 +55,13 @@ declare const BkPopover2: {
102
55
  [x: string]: unknown;
103
56
  };
104
57
  $slots: Readonly<{
105
- [name: string]: import("vue").Slot;
58
+ [name: string]: import("vue").Slot<any>;
106
59
  }>;
107
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
108
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
60
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
61
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
109
62
  $emit: (event: string, ...args: any[]) => void;
110
63
  $el: any;
111
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
112
- onAfterHidden: FunctionConstructor;
113
- onAfterShow: FunctionConstructor;
114
- isShow: import("vue-types").VueTypeValidableDef<boolean> & {
115
- default: boolean;
116
- } & {
117
- default: boolean;
118
- };
119
- always: import("vue-types").VueTypeValidableDef<boolean> & {
120
- default: boolean;
121
- } & {
122
- default: boolean;
123
- };
124
- disabled: import("vue-types").VueTypeValidableDef<boolean> & {
125
- default: boolean;
126
- } & {
127
- default: boolean;
128
- };
129
- width: import("vue-types").VueTypeDef<string | number> & {
130
- default: string | number;
131
- };
132
- height: import("vue-types").VueTypeDef<string | number> & {
133
- default: string | number;
134
- };
135
- content: import("vue-types").VueTypeDef<string | number> & {
136
- default: string | number;
137
- };
138
- placement: import("vue-types").VueTypeDef<string> & {
139
- default: string;
140
- };
141
- theme: import("vue-types").VueTypeValidableDef<string> & {
142
- default: string;
143
- } & {
144
- default: string;
145
- };
146
- trigger: import("vue-types").VueTypeValidableDef<string> & {
147
- default: string;
148
- } & {
149
- default: string;
150
- };
151
- arrow: import("vue-types").VueTypeValidableDef<boolean> & {
152
- default: boolean;
153
- } & {
154
- default: boolean;
155
- };
156
- padding: import("vue-types").VueTypeValidableDef<number> & {
157
- default: number;
158
- } & {
159
- default: number;
160
- };
161
- offset: import("vue-types").VueTypeValidableDef<number> & {
162
- default: number;
163
- } & {
164
- default: number;
165
- };
166
- boundary: import("vue-types").VueTypeValidableDef<string> & {
167
- default: string;
168
- } & {
169
- default: string;
170
- };
171
- zIndex: import("vue-types").VueTypeValidableDef<number> & {
172
- default: number;
173
- } & {
174
- default: number;
175
- };
176
- disableTeleport: import("vue-types").VueTypeValidableDef<boolean> & {
177
- default: boolean;
178
- } & {
179
- default: boolean;
180
- };
181
- autoPlacement: import("vue-types").VueTypeValidableDef<boolean> & {
182
- default: boolean;
183
- } & {
184
- default: boolean;
185
- };
186
- }>>, {
187
- boundary: string;
188
- arrow: boolean;
189
- refReference: import("vue").Ref<any>;
190
- refContent: import("vue").Ref<any>;
191
- refArrow: import("vue").Ref<any>;
192
- content: string | number;
193
- theme: string;
194
- disableTeleport: boolean;
195
- width: string | number;
196
- height: string | number;
197
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
198
- placement: string;
199
- offset: number;
200
- zIndex: number;
201
- content: string | number;
202
- trigger: string;
203
- disabled: boolean;
204
- arrow: boolean;
205
- theme: string;
206
- width: string | number;
207
- height: string | number;
208
- always: boolean;
209
- padding: number;
210
- isShow: boolean;
211
- boundary: string;
212
- disableTeleport: boolean;
213
- autoPlacement: boolean;
214
- }> & {
64
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & {
215
65
  beforeCreate?: (() => void) | (() => void)[];
216
66
  created?: (() => void) | (() => void)[];
217
67
  beforeMount?: (() => void) | (() => void)[];
@@ -226,203 +76,14 @@ declare const BkPopover2: {
226
76
  unmounted?: (() => void) | (() => void)[];
227
77
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
228
78
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
229
- 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)[];
79
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
230
80
  };
231
81
  $forceUpdate: () => void;
232
82
  $nextTick: typeof import("vue").nextTick;
233
- $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
234
- } & Readonly<import("vue").ExtractPropTypes<{
235
- onAfterHidden: FunctionConstructor;
236
- onAfterShow: FunctionConstructor;
237
- isShow: import("vue-types").VueTypeValidableDef<boolean> & {
238
- default: boolean;
239
- } & {
240
- default: boolean;
241
- };
242
- always: import("vue-types").VueTypeValidableDef<boolean> & {
243
- default: boolean;
244
- } & {
245
- default: boolean;
246
- };
247
- disabled: import("vue-types").VueTypeValidableDef<boolean> & {
248
- default: boolean;
249
- } & {
250
- default: boolean;
251
- };
252
- width: import("vue-types").VueTypeDef<string | number> & {
253
- default: string | number;
254
- };
255
- height: import("vue-types").VueTypeDef<string | number> & {
256
- default: string | number;
257
- };
258
- content: import("vue-types").VueTypeDef<string | number> & {
259
- default: string | number;
260
- };
261
- placement: import("vue-types").VueTypeDef<string> & {
262
- default: string;
263
- };
264
- theme: import("vue-types").VueTypeValidableDef<string> & {
265
- default: string;
266
- } & {
267
- default: string;
268
- };
269
- trigger: import("vue-types").VueTypeValidableDef<string> & {
270
- default: string;
271
- } & {
272
- default: string;
273
- };
274
- arrow: import("vue-types").VueTypeValidableDef<boolean> & {
275
- default: boolean;
276
- } & {
277
- default: boolean;
278
- };
279
- padding: import("vue-types").VueTypeValidableDef<number> & {
280
- default: number;
281
- } & {
282
- default: number;
283
- };
284
- offset: import("vue-types").VueTypeValidableDef<number> & {
285
- default: number;
286
- } & {
287
- default: number;
288
- };
289
- boundary: import("vue-types").VueTypeValidableDef<string> & {
290
- default: string;
291
- } & {
292
- default: string;
293
- };
294
- zIndex: import("vue-types").VueTypeValidableDef<number> & {
295
- default: number;
296
- } & {
297
- default: number;
298
- };
299
- disableTeleport: import("vue-types").VueTypeValidableDef<boolean> & {
300
- default: boolean;
301
- } & {
302
- default: boolean;
303
- };
304
- autoPlacement: import("vue-types").VueTypeValidableDef<boolean> & {
305
- default: boolean;
306
- } & {
307
- default: boolean;
308
- };
309
- }>> & import("vue").ShallowUnwrapRef<{
310
- boundary: string;
311
- arrow: boolean;
312
- refReference: import("vue").Ref<any>;
313
- refContent: import("vue").Ref<any>;
314
- refArrow: import("vue").Ref<any>;
315
- content: string | number;
316
- theme: string;
317
- disableTeleport: boolean;
318
- width: string | number;
319
- height: string | number;
320
- }> & {} & {} & import("vue").ComponentCustomProperties;
83
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
84
+ } & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
321
85
  __isFragment?: never;
322
86
  __isTeleport?: never;
323
87
  __isSuspense?: never;
324
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
325
- onAfterHidden: FunctionConstructor;
326
- onAfterShow: FunctionConstructor;
327
- isShow: import("vue-types").VueTypeValidableDef<boolean> & {
328
- default: boolean;
329
- } & {
330
- default: boolean;
331
- };
332
- always: import("vue-types").VueTypeValidableDef<boolean> & {
333
- default: boolean;
334
- } & {
335
- default: boolean;
336
- };
337
- disabled: import("vue-types").VueTypeValidableDef<boolean> & {
338
- default: boolean;
339
- } & {
340
- default: boolean;
341
- };
342
- width: import("vue-types").VueTypeDef<string | number> & {
343
- default: string | number;
344
- };
345
- height: import("vue-types").VueTypeDef<string | number> & {
346
- default: string | number;
347
- };
348
- content: import("vue-types").VueTypeDef<string | number> & {
349
- default: string | number;
350
- };
351
- placement: import("vue-types").VueTypeDef<string> & {
352
- default: string;
353
- };
354
- theme: import("vue-types").VueTypeValidableDef<string> & {
355
- default: string;
356
- } & {
357
- default: string;
358
- };
359
- trigger: import("vue-types").VueTypeValidableDef<string> & {
360
- default: string;
361
- } & {
362
- default: string;
363
- };
364
- arrow: import("vue-types").VueTypeValidableDef<boolean> & {
365
- default: boolean;
366
- } & {
367
- default: boolean;
368
- };
369
- padding: import("vue-types").VueTypeValidableDef<number> & {
370
- default: number;
371
- } & {
372
- default: number;
373
- };
374
- offset: import("vue-types").VueTypeValidableDef<number> & {
375
- default: number;
376
- } & {
377
- default: number;
378
- };
379
- boundary: import("vue-types").VueTypeValidableDef<string> & {
380
- default: string;
381
- } & {
382
- default: string;
383
- };
384
- zIndex: import("vue-types").VueTypeValidableDef<number> & {
385
- default: number;
386
- } & {
387
- default: number;
388
- };
389
- disableTeleport: import("vue-types").VueTypeValidableDef<boolean> & {
390
- default: boolean;
391
- } & {
392
- default: boolean;
393
- };
394
- autoPlacement: import("vue-types").VueTypeValidableDef<boolean> & {
395
- default: boolean;
396
- } & {
397
- default: boolean;
398
- };
399
- }>>, {
400
- boundary: string;
401
- arrow: boolean;
402
- refReference: import("vue").Ref<any>;
403
- refContent: import("vue").Ref<any>;
404
- refArrow: import("vue").Ref<any>;
405
- content: string | number;
406
- theme: string;
407
- disableTeleport: boolean;
408
- width: string | number;
409
- height: string | number;
410
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
411
- placement: string;
412
- offset: number;
413
- zIndex: number;
414
- content: string | number;
415
- trigger: string;
416
- disabled: boolean;
417
- arrow: boolean;
418
- theme: string;
419
- width: string | number;
420
- height: string | number;
421
- always: boolean;
422
- padding: number;
423
- isShow: boolean;
424
- boundary: string;
425
- disableTeleport: boolean;
426
- autoPlacement: boolean;
427
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
88
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
428
89
  export default BkPopover2;
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue")):t(e["../shared"],e.vue);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t)=>(()=>{var n={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,s=0;e.exports=function(e,t,n){var c=t&&n||0,f=t||[],u=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==u||null==d){var p=i();null==u&&(u=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(),h=void 0!==e.nsecs?e.nsecs:s+1,v=m-a+(h-s)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||m>a)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=m,s=h,r=d;var g=(1e4*(268435455&(m+=122192928e5))+h)%4294967296;f[c++]=g>>>24&255,f[c++]=g>>>16&255,f[c++]=g>>>8&255,f[c++]=255&g;var y=m/4294967296*1e4&268435455;f[c++]=y>>>8&255,f[c++]=255&y,f[c++]=y>>>24&15|16,f[c++]=y>>>16&255,f[c++]=d>>>8|128,f[c++]=255&d;for(var w=0;w<6;++w)f[c+w]=u[w];return t||l(f)}},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)}},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return n[e](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.r(i),r.d(i,{default:()=>ye});var e=r(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=r(748);const l=(0,o.defineComponent)({name:"PopArrow",render:function(){var t=(0,e.resolveClassName)("pop2-arrow");return(0,o.createVNode)("div",{class:t},null)}}),a=(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,s=[(0,e.resolveClassName)("popover2"),(0,e.resolveClassName)("pop2-content")];return(0,o.createVNode)("div",{class:s,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 s={onAfterHidden:Function,onAfterShow:Function},c=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)},s);const f=(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:""}});function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return["top","bottom"].includes(d(e))?"x":"y"}function h(e){return"y"===e?"height":"width"}function v(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=m(t),s=h(a),c=o[s]/2-r[s]/2,f="x"===a;let u;switch(d(t)){case"top":u={x:i,y:o.y-r.height};break;case"bottom":u={x:i,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:l};break;case"left":u={x:o.x-r.width,y:l};break;default:u={x:o.x,y:o.y}}switch(p(t)){case"start":u[a]-=c*(n&&f?-1:1);break;case"end":u[a]+=c*(n&&f?-1:1)}return u}function g(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 y(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function w(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:d=!1,padding:p=0}=t,m=g(p),h=a[d?"floating"===u?"reference":"floating":u],v=y(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:s})),w=y(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===u?{...l.floating,x:o,y:r}:l.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:s}):l[u]);return{top:v.top-w.top+m.top,bottom:w.bottom-v.bottom+m.bottom,left:v.left-w.left+m.left,right:w.right-v.right+m.right}}const b=Math.min,x=Math.max;function T(e,t,n){return x(e,b(t,n))}const P=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:s}=t;if(null==n)return{};const c=g(o),f={x:r,y:i},u=m(l),d=p(l),v=h(u),y=await s.getDimensions(n),w="y"===u?"top":"left",b="y"===u?"bottom":"right",x=a.reference[v]+a.reference[u]-f[u]-a.floating[v],P=f[u]-a.reference[u],R=await(null==s.getOffsetParent?void 0:s.getOffsetParent(n));let A=R?"y"===u?R.clientHeight||0:R.clientWidth||0:0;0===A&&(A=a.floating[v]);const C=x/2-P/2,O=c[w],E=A-y[v]-c[b],L=A/2-y[v]/2+C,S=T(O,L,E),N=("start"===d?c[w]:c[b])>0&&L!==S&&a.reference[v]<=a.floating[v];return{[u]:f[u]-(N?L<O?O-L:E-L:0),data:{[u]:S,centerOffset:L-S}}}}),R={left:"right",right:"left",bottom:"top",top:"bottom"};function A(e){return e.replace(/left|right|bottom|top/g,(e=>R[e]))}function C(e,t,n){void 0===n&&(n=!1);const o=p(e),r=m(e),i=h(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=A(l)),{main:l,cross:A(l)}}const O={start:"end",end:"start"};function E(e){return e.replace(/start|end/g,(e=>O[e]))}const L=["top","right","bottom","left"],S=L.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),N=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,l;const{x:a,y:s,rects:c,middlewareData:f,placement:u,platform:m,elements:h}=t,{alignment:v=null,allowedPlacements:g=S,autoAlignment:y=!0,...b}=e,x=function(e,t,n){return(e?[...n.filter((t=>p(t)===e)),...n.filter((t=>p(t)!==e))]:n.filter((e=>d(e)===e))).filter((n=>!e||p(n)===e||!!t&&E(n)!==n))}(v,y,g),T=await w(t,b),P=null!=(n=null==(o=f.autoPlacement)?void 0:o.index)?n:0,R=x[P];if(null==R)return{};const{main:A,cross:O}=C(R,c,await(null==m.isRTL?void 0:m.isRTL(h.floating)));if(u!==R)return{x:a,y:s,reset:{placement:x[0]}};const L=[T[d(R)],T[A],T[O]],N=[...null!=(r=null==(i=f.autoPlacement)?void 0:i.overflows)?r:[],{placement:R,overflows:L}],H=x[P+1];if(H)return{data:{index:P+1,overflows:N},reset:{placement:H}};const V=N.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),j=null==(l=V.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:l.placement,k=null!=j?j:V[0].placement;return k!==u?{data:{index:P+1,overflows:N},reset:{placement:k}}:{}}}},H=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:s}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:p="bestFit",flipAlignment:m=!0,...h}=e,v=d(o),g=u||(v!==l&&m?function(e){const t=A(e);return[E(e),t,E(t)]}(l):[A(l)]),y=[l,...g],b=await w(t,h),x=[];let T=(null==(n=r.flip)?void 0:n.overflows)||[];if(c&&x.push(b[v]),f){const{main:e,cross:t}=C(o,i,await(null==a.isRTL?void 0:a.isRTL(s.floating)));x.push(b[e],b[t])}if(T=[...T,{placement:o,overflows:x}],!x.every((e=>e<=0))){var P,R;const e=(null!=(P=null==(R=r.flip)?void 0:R.index)?P:0)+1,t=y[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n="bottom";switch(p){case"bestFit":{var O;const e=null==(O=T.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:O[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}};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 L.some((t=>e[t]>=0))}const k=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=V(await w(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:j(t)}}}case"escaped":{const t=V(await w(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:j(t)}}}default:return{}}}}},D=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=d(n),a=p(n),s="x"===m(n),c=["left","top"].includes(l)?-1:1,f=i&&s?-1:1,u="function"==typeof t?t(e):t;let{mainAxis:h,crossAxis:v,alignmentAxis:g}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&"number"==typeof g&&(v="end"===a?-1*g:g),s?{x:v*f,y:h*c}:{x:h*c,y:v*f}}(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}}},...s}=e,c={x:n,y:o},f=await w(t,s),u=m(d(r)),p=function(e){return"x"===e?"y":"x"}(u);let h=c[u],v=c[p];if(i){const e="y"===u?"bottom":"right";h=T(h+f["y"===u?"top":"left"],h,h-f[e])}if(l){const e="y"===p?"bottom":"right";v=T(v+f["y"===p?"top":"left"],v,v-f[e])}const g=a.fn({...t,[u]:h,[p]:v});return{...g,data:{x:g.x-n,y:g.y-o}}}}},I=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:s=2,x:c,y:f}=e,u=y(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(r.floating)),strategy:a}):i.reference),p=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(r.reference)))?n:[],h=g(s),v=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===p.length&&p[0].left>p[1].right&&null!=c&&null!=f)return null!=(e=p.find((e=>c>e.left-h.left&&c<e.right+h.right&&f>e.top-h.top&&f<e.bottom+h.bottom)))?e:u;if(p.length>=2){if("x"===m(o)){const e=p[0],t=p[p.length-1],n="top"===d(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"===d(o),t=x(...p.map((e=>e.right))),n=b(...p.map((e=>e.left))),r=p.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 u}},floating:r.floating,strategy:a});return i.reference.x!==v.reference.x||i.reference.y!==v.reference.y||i.reference.width!==v.reference.width||i.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}};function $(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function W(e){if(null==e)return window;if(!$(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function q(e){return W(e).getComputedStyle(e)}function z(e){return $(e)?"":e?(e.nodeName||"").toLowerCase():""}function F(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function B(e){return e instanceof W(e).HTMLElement}function U(e){return e instanceof W(e).Element}function _(e){return"undefined"!=typeof ShadowRoot&&(e instanceof W(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(z(e))}function Z(e){const t=/firefox/i.test(F()),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(F())}const J=Math.min,K=Math.max,Q=Math.round;function ee(e,t,n){var o,r,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let s=1,c=1;t&&B(e)&&(s=e.offsetWidth>0&&Q(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&Q(a.height)/e.offsetHeight||1);const f=U(e)?W(e):window,u=!G()&&n,d=(a.left+(u&&null!=(o=null==(r=f.visualViewport)?void 0:r.offsetLeft)?o:0))/s,p=(a.top+(u&&null!=(i=null==(l=f.visualViewport)?void 0:l.offsetTop)?i:0))/c,m=a.width/s,h=a.height/c;return{width:m,height:h,top:p,right:d+m,bottom:p+h,left:d,x:d,y:p}}function te(e){return(t=e,(t instanceof W(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function ne(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function oe(e){return ee(te(e)).left+ne(e).scrollLeft}function re(e,t,n){const o=B(t),r=te(t),i=ee(e,o&&function(e){const t=ee(e);return Q(t.width)!==e.offsetWidth||Q(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"!==z(t)||X(r))&&(l=ne(t)),B(t)){const e=ee(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=oe(r));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function ie(e){return"html"===z(e)?e:e.assignedSlot||e.parentNode||(_(e)?e.host:null)||te(e)}function le(e){return B(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function ae(e){const t=W(e);let n=le(e);for(;n&&Y(n)&&"static"===getComputedStyle(n).position;)n=le(n);return n&&("html"===z(n)||"body"===z(n)&&"static"===getComputedStyle(n).position&&!Z(n))?t:n||function(e){let t=ie(e);for(_(t)&&(t=t.host);B(t)&&!["html","body"].includes(z(t));){if(Z(t))return t;t=t.parentNode}return null}(e)||t}function se(e){if(B(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=ee(e);return{width:t.width,height:t.height}}function ce(e){const t=ie(e);return["html","body","#document"].includes(z(t))?e.ownerDocument.body:B(t)&&X(t)?t:ce(t)}function fe(e,t){var n;void 0===t&&(t=[]);const o=ce(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=W(o),l=r?[i].concat(i.visualViewport||[],X(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(fe(l))}function ue(e,t,n){return"viewport"===t?y(function(e,t){const n=W(e),o=te(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,s=0;if(r){i=r.width,l=r.height;const e=G();(e||!e&&"fixed"===t)&&(a=r.offsetLeft,s=r.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,n)):U(t)?function(e,t){const n=ee(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):y(function(e){var t;const n=te(e),o=ne(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=K(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=K(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+oe(e);const s=-o.scrollTop;return"rtl"===q(r||n).direction&&(a+=K(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}(te(e)))}function de(e){const t=fe(e),n=["absolute","fixed"].includes(q(e).position)&&B(e)?ae(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&&_(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==z(e))):[]}const pe={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?de(t):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=ue(t,n,r);return e.top=K(o.top,e.top),e.right=J(o.right,e.right),e.bottom=J(o.bottom,e.bottom),e.left=K(o.left,e.left),e}),ue(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=B(n),i=te(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==z(n)||X(i))&&(l=ne(n)),B(n))){const e=ee(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:ae,getDocumentElement:te,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:re(t,ae(n),o),floating:{...se(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===q(e).direction},me=function(t,n,r,i,l){var a=(0,o.ref)(t.isShow),s=["dark","light"],c=(0,o.computed)((function(){var e=t.theme.split(/\s+/);return e.sort((function(e,t){return Number(s.includes(t))-Number(s.includes(e))})),{systemThemes:e,customThemes:e.filter((function(e){return!s.includes(e)}))}})),f=function(){var e,n,o;return{elReference:d(null===(e=r.value)||void 0===e?void 0:e.$el),elContent:d(null===(n=i.value)||void 0===n?void 0:n.$el),elArrow:t.arrow?d(null===(o=l.value)||void 0===o?void 0:o.$el):null}},d=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):null},p=c.value.customThemes.join(" "),m=c.value.customThemes.reduce((function(e,t){return Object.assign(u({},"data-".concat(t,"-theme"),!0),e)}),{}),h="".concat(p),g=null,y=function(){var e=f(),n=e.elReference,o=e.elContent,r=e.elArrow,i=function(e){return{placement:t.placement,middleware:[I(),D(t.offset),t.autoPlacement?N():H(),M({padding:t.padding}),P({element:e}),k()]}}(r);g=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,s=r&&!a,c=i&&!a,f=s||c?[...U(e)?fe(e):[],...fe(t)]:[];f.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let u,d=null;l&&(d=new ResizeObserver(n),U(e)&&!a&&d.observe(e),d.observe(t));let p=a?ee(e):null;return a&&function t(){const o=ee(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,u=requestAnimationFrame(t)}(),l||n(),()=>{var e;f.forEach((e=>{s&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(u)}}(n,o,(function(){((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 s=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:f}=v(s,o,a),u=o,d={};for(let n=0;n<i.length;n++){const{name:p,fn:m}=i[n],{x:h,y:g,data:y,reset:w}=await m({x:c,y:f,initialPlacement:o,placement:u,strategy:r,middlewareData:d,rects:s,platform:l,elements:{reference:e,floating:t}});c=null!=h?h:c,f=null!=g?g:f,d={...d,[p]:{...d[p],...y}},w&&("object"==typeof w&&(w.placement&&(u=w.placement),w.rects&&(s=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):w.rects),({x:c,y:f}=v(s,u,a))),n=-1)}return{x:c,y:f,placement:u,strategy:r,middlewareData:d}})(e,t,{platform:pe,...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(h,"")," ").concat(h).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(m).forEach((function(e){o.setAttribute(e,m[e])}));var c=a.hide.referenceHidden;if(Object.assign(o.style,{left:"".concat(n,"px"),top:"".concat(i,"px"),visibility:c?"hidden":"visible"}),t.arrow){var f=a.arrow,d=f.x,p=f.y,v=l.split("-")[0],g={top:"bottom",right:"left",bottom:"top",left:"right"}[v];r.setAttribute("data-arrow",v),Object.assign(r.style,u({left:w(d)?"".concat(d,"px"):"",top:w(p)?"".concat(p,"px"):"",right:"",bottom:""},g,"-4px"))}}))}))},w=function(e){return/^-?\d+\.?\d*$/.test("".concat(e))},b=function(){var o,r=d(null===(o=i.value)||void 0===o?void 0:o.$el);r.style.setProperty("display","block"),r.style.setProperty("z-index","".concat(t.zIndex?t.zIndex:e.bkZIndexManager.getModalNextIndex())),y(),n.emit("update:isShow",!0),n.emit("afterShow",!1)},x=function(){var e;d(null===(e=i.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),n.emit("update:isShow",!1),n.emit("afterHidden",!1)},T=function(){a.value?x():b(),a.value=!a.value};return{showPopover:b,hidePopover:x,resolveTriggerEvents:function(){var e;return null!==(e={hover:[["mouseenter",b],["mouseleave",x],["focus",b],["blur",x]],click:[["click",T]],manual:[[]]}[t.trigger])&&void 0!==e?e:[]},updatePopover:y,triggerPopover:T,resolvePopElements:f,localIsShow:a,cleanup:g}};var he=r(8022),ve=null;const ge=(0,o.defineComponent)({name:"Popover2",components:{Content:a,Arrow:l},props:c,setup:function(e,t){var r=e.content,i=e.theme,l=e.disableTeleport,a=e.width,s=e.height,c=(0,o.toRef)(e,"isShow"),f=(0,o.ref)(),u=(0,o.ref)(),d=(0,o.ref)(),p=null,m=me(e,t,f,u,d),h=m.localIsShow,v=m.showPopover,g=m.triggerPopover,y=m.resolveTriggerEvents,w=m.updatePopover,b=m.resolvePopElements,x=m.cleanup,T=function(){w(),e.always?v():P()};e.always||e.disabled||(0,o.watch)([c],(function(){h.value=e.isShow,g()})),(0,o.watch)((function(){return[e.disabled]}),(function(e){e[0]?T():R()}));var P=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)}))},R=function(){"function"==typeof x&&x(),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}}()};(0,o.onMounted)((function(){e.disabled||T()})),(0,o.onUnmounted)((function(){R()})),t.expose({show:function(){h.value=!0,g()},hide:function(){h.value=!1,g()}});var A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#",t=function(){return"".concat(e).concat(ve)},n=function(){return document.querySelector(t())instanceof HTMLElement};if(null===ve||!n()){ve="id_".concat((0,he.v4)());var o=document.createElement("div");o.setAttribute("id",ve),o.setAttribute("data-popper-id",ve),document.body.append(o)}return{popContainerId:ve,prefixId:t()}}(),C=A.prefixId;return{boundary:"string"==typeof e.boundary?e.boundary:C,arrow:e.arrow,refReference:f,refContent:u,refArrow:d,content:r,theme:i,disableTeleport:l,width:a,height:s}},render:function(){var e,t,n,r,i,s,c=this;return(0,o.createVNode)(o.Fragment,null,[(0,o.createVNode)(f,{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:this.boundary,disabled:this.disableTeleport},{default:function(){return[(0,o.createVNode)(a,{ref:"refContent","data-theme":c.theme,width:c.width,height:c.height},{default:function(){return[null!==(s=null===(i=(r=c.$slots).content)||void 0===i?void 0:i.call(r))&&void 0!==s?s:c.content]},arrow:function(){var e,t;return c.arrow?(0,o.createVNode)(l,{ref:"refArrow"},{default:function(){return[null===(t=(e=c.$slots).arrow)||void 0===t?void 0:t.call(e)]}}):""}})]}})])}}),ye=(0,e.withInstall)(ge)})(),i})()));
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, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;