bkui-vue 0.0.2-beta.8 → 0.0.2-beta.80

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 (395) hide show
  1. package/dist/index.cjs.js +70 -62
  2. package/dist/index.esm.js +15668 -15161
  3. package/dist/index.umd.js +73 -65
  4. package/dist/locale/en.esm.js +1 -1
  5. package/dist/locale/en.esm.js.map +1 -1
  6. package/dist/locale/en.umd.js +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/zh-cn.esm.js +1 -1
  9. package/dist/locale/zh-cn.esm.js.map +1 -1
  10. package/dist/locale/zh-cn.umd.js +1 -1
  11. package/dist/locale/zh-cn.umd.js.map +1 -1
  12. package/dist/style.css +1 -1
  13. package/dist/style.variable.css +1 -1
  14. package/lib/affix/affix.d.ts +1 -1
  15. package/lib/affix/index.d.ts +4 -4
  16. package/lib/affix/index.js +1 -1
  17. package/lib/alert/alert.css +7 -0
  18. package/lib/alert/alert.d.ts +5 -5
  19. package/lib/alert/alert.less +16 -6
  20. package/lib/alert/alert.variable.css +7 -0
  21. package/lib/alert/index.d.ts +10 -10
  22. package/lib/alert/index.js +1 -1
  23. package/lib/animate-number/index.d.ts +1 -1
  24. package/lib/animate-number/index.js +1 -1
  25. package/lib/backtop/backtop.css +8 -8
  26. package/lib/backtop/backtop.less +3 -1
  27. package/lib/backtop/backtop.variable.css +11 -11
  28. package/lib/backtop/index.d.ts +1 -1
  29. package/lib/backtop/index.js +1 -1
  30. package/lib/badge/badge.d.ts +2 -2
  31. package/lib/badge/index.d.ts +7 -7
  32. package/lib/badge/index.js +1 -1
  33. package/lib/breadcrumb/breadcrumb.css +4 -4
  34. package/lib/breadcrumb/breadcrumb.variable.css +4 -4
  35. package/lib/breadcrumb/index.d.ts +2 -2
  36. package/lib/breadcrumb/index.js +1 -1
  37. package/lib/button/button.css +20 -0
  38. package/lib/button/button.less +105 -94
  39. package/lib/button/button.variable.css +20 -0
  40. package/lib/button/index.d.ts +2 -2
  41. package/lib/button/index.js +1 -1
  42. package/lib/card/card.css +4 -4
  43. package/lib/card/card.d.ts +1 -1
  44. package/lib/card/card.variable.css +4 -4
  45. package/lib/card/index.d.ts +4 -4
  46. package/lib/card/index.js +1 -1
  47. package/lib/cascader/cascader.css +4 -4
  48. package/lib/cascader/cascader.d.ts +1 -0
  49. package/lib/cascader/cascader.variable.css +4 -4
  50. package/lib/cascader/index.d.ts +5 -2
  51. package/lib/cascader/index.js +1 -1
  52. package/lib/cascader/interface.d.ts +1 -1
  53. package/lib/checkbox/checkbox-group.d.ts +6 -3
  54. package/lib/checkbox/checkbox.d.ts +4 -4
  55. package/lib/checkbox/index.d.ts +22 -19
  56. package/lib/checkbox/index.js +1 -1
  57. package/lib/code-diff/index.d.ts +1 -1
  58. package/lib/code-diff/index.js +1 -1
  59. package/lib/collapse/index.d.ts +2 -2
  60. package/lib/collapse/index.js +1 -1
  61. package/lib/collapse-transition/index.d.ts +128 -2
  62. package/lib/collapse-transition/index.js +1 -1
  63. package/lib/color-picker/color-picker.d.ts +16 -0
  64. package/lib/color-picker/components/recommend-colors.d.ts +16 -0
  65. package/lib/color-picker/index.d.ts +19 -1
  66. package/lib/color-picker/index.js +1 -1
  67. package/lib/components.d.ts +1 -1
  68. package/lib/components.js +1 -1
  69. package/lib/config-provider/config-provider.d.ts +3 -0
  70. package/lib/config-provider/index.d.ts +5 -1
  71. package/lib/config-provider/index.js +1 -1
  72. package/lib/config-provider/token.d.ts +1 -0
  73. package/lib/config-provider/use-global-config.d.ts +2 -0
  74. package/lib/config-provider/use-prefix.d.ts +2 -0
  75. package/lib/container/container.css +4 -4
  76. package/lib/container/container.variable.css +4 -4
  77. package/lib/container/index.d.ts +2 -2
  78. package/lib/container/index.js +1 -1
  79. package/lib/date-picker/date-picker.d.ts +4 -2
  80. package/lib/date-picker/index.d.ts +15 -8
  81. package/lib/date-picker/index.js +1 -1
  82. package/lib/date-picker/panel/date-range.d.ts +2 -1
  83. package/lib/date-picker/time-picker.d.ts +1 -1
  84. package/lib/dialog/dialog.css +2 -0
  85. package/lib/dialog/dialog.variable.css +2 -0
  86. package/lib/dialog/index.d.ts +1 -1
  87. package/lib/dialog/index.js +1 -1
  88. package/lib/directives/index.js +1 -1
  89. package/lib/directives/tooltips.d.ts +3 -2
  90. package/lib/dist.index.js +1 -1
  91. package/lib/divider/index.d.ts +1 -1
  92. package/lib/divider/index.js +1 -1
  93. package/lib/dropdown/dropdown.css +1 -0
  94. package/lib/dropdown/dropdown.d.ts +1 -1
  95. package/lib/dropdown/dropdown.variable.css +1 -0
  96. package/lib/dropdown/index.d.ts +7 -7
  97. package/lib/dropdown/index.js +1 -1
  98. package/lib/exception/index.d.ts +2 -2
  99. package/lib/exception/index.js +1 -1
  100. package/lib/fixed-navbar/index.d.ts +1 -1
  101. package/lib/fixed-navbar/index.js +1 -1
  102. package/lib/form/index.d.ts +3 -3
  103. package/lib/form/index.js +1 -1
  104. package/lib/hooks.d.ts +1 -1
  105. package/lib/hooks.js +1 -1
  106. package/lib/icon/angle-double-down-line.js +1 -1
  107. package/lib/icon/angle-double-left-line.js +1 -1
  108. package/lib/icon/angle-double-left.js +1 -1
  109. package/lib/icon/angle-double-right-line.js +1 -1
  110. package/lib/icon/angle-double-right.js +1 -1
  111. package/lib/icon/angle-double-up-line.js +1 -1
  112. package/lib/icon/angle-down-fill.js +1 -1
  113. package/lib/icon/angle-down-line.js +1 -1
  114. package/lib/icon/angle-down.js +1 -1
  115. package/lib/icon/angle-left.js +1 -1
  116. package/lib/icon/angle-right.js +1 -1
  117. package/lib/icon/angle-up-fill.js +1 -1
  118. package/lib/icon/angle-up.js +1 -1
  119. package/lib/icon/archive-fill.js +1 -1
  120. package/lib/icon/arrows-left.js +1 -1
  121. package/lib/icon/arrows-right.js +1 -1
  122. package/lib/icon/assistant.d.ts +4 -0
  123. package/lib/icon/assistant.js +1 -0
  124. package/lib/icon/audio-fill.js +1 -1
  125. package/lib/icon/bk.js +1 -1
  126. package/lib/icon/circle.js +1 -1
  127. package/lib/icon/close-line.js +1 -1
  128. package/lib/icon/close.js +1 -1
  129. package/lib/icon/code.js +1 -1
  130. package/lib/icon/cog-shape.js +1 -1
  131. package/lib/icon/collapse-left.js +1 -1
  132. package/lib/icon/copy-shape.js +1 -1
  133. package/lib/icon/copy.js +1 -1
  134. package/lib/icon/data-shape.js +1 -1
  135. package/lib/icon/del.js +1 -1
  136. package/lib/icon/doc-fill.js +1 -1
  137. package/lib/icon/done.js +1 -1
  138. package/lib/icon/down-shape.js +1 -1
  139. package/lib/icon/down-small.js +1 -1
  140. package/lib/icon/edit-line.js +1 -1
  141. package/lib/icon/ellipsis.js +1 -1
  142. package/lib/icon/enlarge-line.js +1 -1
  143. package/lib/icon/error.js +1 -1
  144. package/lib/icon/excel-fill.js +1 -1
  145. package/lib/icon/exclamation-circle-shape.js +1 -1
  146. package/lib/icon/eye.js +1 -1
  147. package/lib/icon/filliscreen-line.js +1 -1
  148. package/lib/icon/fix-line.js +1 -1
  149. package/lib/icon/fix-shape.js +1 -1
  150. package/lib/icon/folder-open.js +1 -1
  151. package/lib/icon/folder-shape-open.js +1 -1
  152. package/lib/icon/folder-shape.js +1 -1
  153. package/lib/icon/folder.js +1 -1
  154. package/lib/icon/funnel.js +1 -1
  155. package/lib/icon/help-document-fill.js +1 -1
  156. package/lib/icon/help-fill.js +1 -1
  157. package/lib/icon/help.js +1 -1
  158. package/lib/icon/image-fill.js +1 -1
  159. package/lib/icon/img-error.js +1 -1
  160. package/lib/icon/img-placehoulder.js +1 -1
  161. package/lib/icon/index.d.ts +1 -0
  162. package/lib/icon/index.js +1 -1
  163. package/lib/icon/info-line.js +1 -1
  164. package/lib/icon/info.js +1 -1
  165. package/lib/icon/left-shape.js +1 -1
  166. package/lib/icon/left-turn-line.js +1 -1
  167. package/lib/icon/narrow-line.js +1 -1
  168. package/lib/icon/original.js +1 -1
  169. package/lib/icon/pdf-fill.js +1 -1
  170. package/lib/icon/play-shape.js +1 -1
  171. package/lib/icon/plus.js +1 -1
  172. package/lib/icon/ppt-fill.js +1 -1
  173. package/lib/icon/qq.js +1 -1
  174. package/lib/icon/right-shape.js +1 -1
  175. package/lib/icon/right-turn-line.js +1 -1
  176. package/lib/icon/search.js +1 -1
  177. package/lib/icon/share.js +1 -1
  178. package/lib/icon/spinner.js +1 -1
  179. package/lib/icon/success.js +1 -1
  180. package/lib/icon/switcher-loading.js +1 -1
  181. package/lib/icon/text-file.js +1 -1
  182. package/lib/icon/text-fill.js +1 -1
  183. package/lib/icon/transfer.js +1 -1
  184. package/lib/icon/tree-application-shape.js +1 -1
  185. package/lib/icon/unfull-screen.js +1 -1
  186. package/lib/icon/unvisible.js +1 -1
  187. package/lib/icon/up-shape.js +1 -1
  188. package/lib/icon/upload.js +1 -1
  189. package/lib/icon/video-fill.js +1 -1
  190. package/lib/icon/warn.js +1 -1
  191. package/lib/icon/weixin-pro.js +1 -1
  192. package/lib/icon/weixin.js +1 -1
  193. package/lib/image/index.d.ts +1 -1
  194. package/lib/image/index.js +1 -1
  195. package/lib/index.js +1 -1
  196. package/lib/info-box/index.js +1 -1
  197. package/lib/info-box/info-box.css +2 -0
  198. package/lib/info-box/info-box.less +2 -1
  199. package/lib/info-box/info-box.variable.css +2 -0
  200. package/lib/input/index.d.ts +146 -50
  201. package/lib/input/index.js +2 -1
  202. package/lib/input/index.js.LICENSE.txt +1 -0
  203. package/lib/input/input.css +38 -10
  204. package/lib/input/input.d.ts +100 -11
  205. package/lib/input/input.less +53 -14
  206. package/lib/input/input.variable.css +38 -10
  207. package/lib/input/util.d.ts +6 -0
  208. package/lib/link/index.d.ts +4 -4
  209. package/lib/link/index.js +1 -1
  210. package/lib/link/link.d.ts +1 -1
  211. package/lib/loading/index.d.ts +2 -2
  212. package/lib/loading/index.js +1 -1
  213. package/lib/loading/loading.css +4 -4
  214. package/lib/loading/loading.variable.css +4 -4
  215. package/lib/locale/index.js +1 -1
  216. package/lib/locale/lang/en.d.ts +1 -0
  217. package/lib/menu/index.d.ts +2 -2
  218. package/lib/menu/index.js +1 -1
  219. package/lib/menu/menu.css +4 -4
  220. package/lib/menu/menu.variable.css +4 -4
  221. package/lib/message/index.js +1 -1
  222. package/lib/message/message.css +33 -9
  223. package/lib/message/message.less +78 -54
  224. package/lib/message/message.variable.css +33 -9
  225. package/lib/message/messageConstructor.d.ts +30 -8
  226. package/lib/modal/index.d.ts +2 -2
  227. package/lib/modal/index.js +1 -1
  228. package/lib/modal/modal.css +2 -0
  229. package/lib/modal/modal.variable.css +2 -0
  230. package/lib/navigation/index.d.ts +4 -1
  231. package/lib/navigation/index.js +1 -1
  232. package/lib/navigation/navigation.d.ts +1 -0
  233. package/lib/notify/index.js +1 -1
  234. package/lib/notify/notifyConstructor.d.ts +1 -1
  235. package/lib/overflow-title/components/overflow-title.d.ts +257 -1
  236. package/lib/overflow-title/index.d.ts +387 -2
  237. package/lib/overflow-title/index.js +1 -1
  238. package/lib/overflow-title/props.d.ts +129 -0
  239. package/lib/pagination/index.d.ts +2 -2
  240. package/lib/pagination/index.js +1 -1
  241. package/lib/plugin-popover/index.js +1 -1
  242. package/lib/plugins/index.js +1 -1
  243. package/lib/pop-confirm/index.d.ts +1 -1
  244. package/lib/pop-confirm/index.js +1 -1
  245. package/lib/popover/const.d.ts +22 -9
  246. package/lib/popover/content.d.ts +33 -0
  247. package/lib/popover/index.d.ts +154 -61
  248. package/lib/popover/index.js +1 -1
  249. package/lib/popover/popover.css +1 -0
  250. package/lib/popover/popover.d.ts +64 -23
  251. package/lib/popover/popover.less +3 -2
  252. package/lib/popover/popover.variable.css +1 -0
  253. package/lib/popover/props.d.ts +29 -4
  254. package/lib/popover/use-floating.d.ts +2 -2
  255. package/lib/popover/use-popover-init.d.ts +2 -1
  256. package/lib/popover2/index.d.ts +1 -1
  257. package/lib/popover2/index.js +1 -1
  258. package/lib/preset.d.ts +2 -0
  259. package/lib/preset.js +1 -1
  260. package/lib/process/index.d.ts +1 -1
  261. package/lib/process/index.js +1 -1
  262. package/lib/progress/index.d.ts +1 -1
  263. package/lib/progress/index.js +1 -1
  264. package/lib/progress/progress.css +4 -4
  265. package/lib/progress/progress.variable.css +4 -4
  266. package/lib/radio/index.d.ts +23 -23
  267. package/lib/radio/index.js +1 -1
  268. package/lib/radio/radio-button.d.ts +4 -4
  269. package/lib/radio/radio-group.d.ts +4 -4
  270. package/lib/radio/radio.d.ts +4 -4
  271. package/lib/rate/index.d.ts +8 -4
  272. package/lib/rate/index.js +1 -1
  273. package/lib/rate/rate.d.ts +2 -1
  274. package/lib/resize-layout/index.d.ts +4 -4
  275. package/lib/resize-layout/index.js +1 -1
  276. package/lib/resize-layout/resize-layout.css +12 -0
  277. package/lib/resize-layout/resize-layout.d.ts +1 -1
  278. package/lib/resize-layout/resize-layout.less +12 -0
  279. package/lib/resize-layout/resize-layout.variable.css +12 -0
  280. package/lib/search-select/index.d.ts +62 -29
  281. package/lib/search-select/index.js +1 -1
  282. package/lib/search-select/input.d.ts +5 -1
  283. package/lib/search-select/menu.d.ts +33 -2
  284. package/lib/search-select/search-select.css +37 -17
  285. package/lib/search-select/search-select.d.ts +23 -20
  286. package/lib/search-select/search-select.less +34 -11
  287. package/lib/search-select/search-select.variable.css +37 -17
  288. package/lib/search-select/selected.d.ts +5 -1
  289. package/lib/search-select/utils.d.ts +13 -5
  290. package/lib/select/common.d.ts +1 -0
  291. package/lib/select/index.d.ts +203 -84
  292. package/lib/select/index.js +1 -1
  293. package/lib/select/option.d.ts +11 -0
  294. package/lib/select/select.css +13 -5
  295. package/lib/select/select.d.ts +86 -37
  296. package/lib/select/select.less +11 -1
  297. package/lib/select/select.variable.css +37 -29
  298. package/lib/select/selectTagInput.d.ts +8 -5
  299. package/lib/shared/helper.d.ts +1 -1
  300. package/lib/shared/index.js +1 -1
  301. package/lib/shared/mask-manager.d.ts +3 -4
  302. package/lib/shared/pop-manager.d.ts +6 -2
  303. package/lib/shared/popover.d.ts +2 -2
  304. package/lib/shared/vue-types.d.ts +3 -2
  305. package/lib/sideslider/index.d.ts +1 -1
  306. package/lib/sideslider/index.js +1 -1
  307. package/lib/slider/index.d.ts +1 -1
  308. package/lib/slider/index.js +1 -1
  309. package/lib/steps/index.d.ts +1 -1
  310. package/lib/steps/index.js +1 -1
  311. package/lib/styles/mixins/animate.css +4 -4
  312. package/lib/styles/mixins/animate.less +10 -6
  313. package/lib/styles/mixins/animate.variable.css +126 -4
  314. package/lib/styles/mixins/mixins.css +4 -4
  315. package/lib/styles/mixins/mixins.variable.css +4 -4
  316. package/lib/styles/mixins/popper.less +6 -5
  317. package/lib/swiper/index.d.ts +1 -1
  318. package/lib/swiper/index.js +1 -1
  319. package/lib/swiper/swiper.css +0 -6
  320. package/lib/swiper/swiper.less +0 -8
  321. package/lib/swiper/swiper.variable.css +0 -6
  322. package/lib/switcher/index.d.ts +30 -16
  323. package/lib/switcher/index.js +1 -1
  324. package/lib/switcher/switcher.css +4 -4
  325. package/lib/switcher/switcher.d.ts +74 -5
  326. package/lib/switcher/switcher.variable.css +4 -4
  327. package/lib/tab/index.d.ts +3 -3
  328. package/lib/tab/index.js +1 -1
  329. package/lib/tab/tab-nav.d.ts +12 -2
  330. package/lib/tab/tab-panel.d.ts +1 -1
  331. package/lib/table/components/table-cell.d.ts +22 -15
  332. package/lib/table/components/table-column.d.ts +155 -219
  333. package/lib/table/const.d.ts +40 -56
  334. package/lib/table/events.d.ts +180 -0
  335. package/lib/table/index.d.ts +747 -440
  336. package/lib/table/index.js +1 -1
  337. package/lib/table/plugins/head-filter.css +3 -0
  338. package/lib/table/plugins/head-filter.d.ts +3 -7
  339. package/lib/table/plugins/head-filter.less +3 -0
  340. package/lib/table/plugins/head-filter.variable.css +3 -0
  341. package/lib/table/plugins/head-sort.d.ts +3 -7
  342. package/lib/table/plugins/settings.d.ts +12 -26
  343. package/lib/table/plugins/use-column-resize.d.ts +30 -10
  344. package/lib/table/plugins/use-fixed-column.d.ts +10 -9
  345. package/lib/table/plugins/use-pagination.d.ts +7 -4
  346. package/lib/table/props.d.ts +220 -181
  347. package/lib/table/render.d.ts +12 -20
  348. package/lib/table/table.css +89 -6
  349. package/lib/table/table.d.ts +227 -104
  350. package/lib/table/table.less +79 -9
  351. package/lib/table/table.variable.css +89 -6
  352. package/lib/table/use-attributes.d.ts +55 -0
  353. package/lib/table/use-column.d.ts +177 -3
  354. package/lib/table/use-common.d.ts +1609 -76
  355. package/lib/table/use-render.d.ts +11 -0
  356. package/lib/table/utils.d.ts +30 -28
  357. package/lib/table-column/index.d.ts +240 -527
  358. package/lib/table-column/index.js +1 -1
  359. package/lib/tag/index.d.ts +10 -10
  360. package/lib/tag/index.js +1 -1
  361. package/lib/tag/tag.d.ts +5 -5
  362. package/lib/tag-input/index.d.ts +49 -13
  363. package/lib/tag-input/index.js +1 -1
  364. package/lib/tag-input/tag-input.css +9 -1
  365. package/lib/tag-input/tag-input.d.ts +46 -10
  366. package/lib/tag-input/tag-input.less +13 -4
  367. package/lib/tag-input/tag-input.variable.css +9 -1
  368. package/lib/tag-input/tag-props.d.ts +16 -4
  369. package/lib/time-picker/index.d.ts +4 -4
  370. package/lib/time-picker/index.js +1 -1
  371. package/lib/timeline/index.d.ts +1 -1
  372. package/lib/timeline/index.js +1 -1
  373. package/lib/transfer/index.d.ts +1 -1
  374. package/lib/transfer/index.js +1 -1
  375. package/lib/tree/constant.d.ts +2 -2
  376. package/lib/tree/index.d.ts +49 -7
  377. package/lib/tree/index.js +1 -1
  378. package/lib/tree/props.d.ts +16 -2
  379. package/lib/tree/tree.d.ts +27 -2
  380. package/lib/tree/use-node-action.d.ts +5 -3
  381. package/lib/tree/use-node-attribute.d.ts +17 -8
  382. package/lib/tree/use-search.d.ts +2 -2
  383. package/lib/tree/use-tree-init.d.ts +1 -2
  384. package/lib/tree/util.d.ts +8 -3
  385. package/lib/upload/index.d.ts +1 -1
  386. package/lib/upload/index.js +1 -1
  387. package/lib/upload/upload.css +4 -4
  388. package/lib/upload/upload.variable.css +4 -4
  389. package/lib/virtual-render/index.d.ts +43 -1
  390. package/lib/virtual-render/index.js +1 -1
  391. package/lib/virtual-render/props.d.ts +15 -0
  392. package/lib/virtual-render/v-virtual-render.d.ts +19 -1
  393. package/lib/virtual-render/virtual-render.d.ts +25 -0
  394. package/lib/volar.components.d.ts +24 -24
  395. package/package.json +17 -16
@@ -133,12 +133,12 @@
133
133
  background-color: transparent;
134
134
  }
135
135
  }
136
- .bk-fade-transtion .bk-fade-enter-active,
137
- .bk-fade-transtion .bk-fade-leave-active {
136
+ .bk-transition .bk-fade-enter-active,
137
+ .bk-transition .bk-fade-leave-active {
138
138
  transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
139
139
  }
140
- .bk-fade-transtion .bk-fade-enter,
141
- .bk-fade-transtion .bk-fade-leave-to {
140
+ .bk-transition .bk-fade-enter,
141
+ .bk-transition .bk-fade-leave-to {
142
142
  opacity: 0;
143
143
  }
144
144
  .bk-select .mr5 {
@@ -157,21 +157,21 @@
157
157
  font-size: 14px;
158
158
  }
159
159
  .bk-select.is-focus.normal .bk-select-trigger .bk-select-tag.bk-select-tag--default {
160
- border-color: var(--primary-color);
160
+ border-color: #3a84ff;
161
161
  box-shadow: 0px 0px 3px 0px #a3c5fd;
162
162
  }
163
163
  .bk-select.is-focus .bk-input--default {
164
- border-color: var(--primary-color);
164
+ border-color: #3a84ff;
165
165
  outline: 0;
166
- box-shadow: 0px 0px 3px 0px var(--input-shadow-color);
166
+ box-shadow: 0px 0px 3px 0px #a3c5fd;
167
167
  }
168
168
  .bk-select.is-focus .bk-input--default.is-simplicity {
169
169
  border-color: transparent;
170
- border-bottom-color: var(--primary-color);
170
+ border-bottom-color: #3a84ff;
171
171
  box-shadow: none;
172
172
  }
173
173
  .bk-select.is-focus .bk-input--default.is-simplicity .bk-input--text {
174
- background-color: var(--input-block-color);
174
+ background-color: #f5f7fa;
175
175
  }
176
176
  .bk-select.popover-show .bk-select-trigger .angle-up {
177
177
  transform: rotate(0);
@@ -181,13 +181,13 @@
181
181
  background-color: #fafbfd;
182
182
  }
183
183
  .bk-select .bk-input.is-focused {
184
- border-color: var(--primary-color);
184
+ border-color: #3a84ff;
185
185
  outline: 0;
186
- box-shadow: 0 0 3px 0 var(--input-shadow-color);
186
+ box-shadow: 0 0 3px 0 #a3c5fd;
187
187
  }
188
188
  .bk-select .bk-input.is-focused.is-simplicity {
189
189
  border-color: transparent;
190
- border-bottom-color: var(--primary-color);
190
+ border-bottom-color: #3a84ff;
191
191
  box-shadow: none;
192
192
  }
193
193
  .bk-select .bk-input--text {
@@ -196,7 +196,7 @@
196
196
  white-space: nowrap;
197
197
  padding-right: 24px;
198
198
  cursor: pointer;
199
- background-color: var(--white-color);
199
+ background-color: white;
200
200
  }
201
201
  .bk-select .bk-select-trigger {
202
202
  position: relative;
@@ -209,12 +209,12 @@
209
209
  height: 32px;
210
210
  padding: 0 28px 0 10px;
211
211
  line-height: normal;
212
- color: var(--default-color);
212
+ color: #63656e;
213
213
  text-align: left;
214
214
  vertical-align: middle;
215
215
  cursor: pointer;
216
- background-color: var(--white-color);
217
- border: 1px solid var(--light-gray);
216
+ background-color: white;
217
+ border: 1px solid #c4c6cc;
218
218
  border-radius: 2px;
219
219
  outline: none;
220
220
  box-sizing: border-box;
@@ -228,7 +228,7 @@
228
228
  align-items: center;
229
229
  }
230
230
  .bk-select .bk-select-trigger .bk-select-tag::placeholder {
231
- color: var(--light-gray);
231
+ color: #c4c6cc;
232
232
  }
233
233
  .bk-select .bk-select-trigger .bk-select-tag.has-prefix {
234
234
  padding-left: 0;
@@ -247,7 +247,6 @@
247
247
  display: flex;
248
248
  align-items: center;
249
249
  flex-wrap: wrap;
250
- padding: 2px 0;
251
250
  overflow: hidden;
252
251
  }
253
252
  .bk-select .bk-select-trigger .bk-select-tag:not(.is-disabled):hover {
@@ -278,12 +277,12 @@
278
277
  height: 32px;
279
278
  padding: 0 28px 0 10px;
280
279
  line-height: normal;
281
- color: var(--default-color);
280
+ color: #63656e;
282
281
  text-align: left;
283
282
  vertical-align: middle;
284
283
  cursor: pointer;
285
- background-color: var(--white-color);
286
- border: 1px solid var(--light-gray);
284
+ background-color: white;
285
+ border: 1px solid #c4c6cc;
287
286
  border-radius: 2px;
288
287
  outline: none;
289
288
  box-sizing: border-box;
@@ -301,7 +300,7 @@
301
300
  flex-grow: 1;
302
301
  }
303
302
  .bk-select .bk-select-trigger .bk-select-tag-input::placeholder {
304
- color: var(--light-gray);
303
+ color: #c4c6cc;
305
304
  }
306
305
  .bk-select .bk-select-trigger .bk-select-tag .bk-tag {
307
306
  max-width: 190px;
@@ -363,7 +362,7 @@
363
362
  }
364
363
  .bk-popover.bk-pop2-content.bk-select-popover {
365
364
  padding: 0;
366
- border: 1px solid var(--disable-color);
365
+ border: 1px solid #dcdee5;
367
366
  border-radius: 2px;
368
367
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
369
368
  }
@@ -391,6 +390,15 @@
391
390
  .bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-dropdown {
392
391
  overflow: auto;
393
392
  }
393
+ .bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-dropdown::-webkit-scrollbar {
394
+ width: 4px;
395
+ height: 4px;
396
+ }
397
+ .bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-dropdown::-webkit-scrollbar-thumb {
398
+ background: #dde4eb;
399
+ border-radius: 20px;
400
+ box-shadow: inset 0 0 6px hsla(0, 0%, 80%, 0.3);
401
+ }
394
402
  .bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-extension {
395
403
  display: flex;
396
404
  height: 40px;
@@ -508,24 +516,24 @@
508
516
  .bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-search-wrapper {
509
517
  display: flex;
510
518
  margin: 4px 8px 0 8px;
511
- border-bottom: 1px solid var(--input-block-hover-color);
519
+ border-bottom: 1px solid #eaebf0;
512
520
  align-items: center;
513
521
  }
514
522
  .bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-search-wrapper .icon-search {
515
523
  margin-left: 2px;
516
- color: var(--gray-color);
524
+ color: #979ba5;
517
525
  }
518
526
  .bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-search-wrapper .bk-select-search-input {
519
527
  width: 100%;
520
528
  height: 32px;
521
529
  padding: 0 28px 0 10px;
522
530
  line-height: normal;
523
- color: var(--default-color);
531
+ color: #63656e;
524
532
  text-align: left;
525
533
  vertical-align: middle;
526
534
  cursor: pointer;
527
- background-color: var(--white-color);
528
- border: 1px solid var(--light-gray);
535
+ background-color: white;
536
+ border: 1px solid #c4c6cc;
529
537
  border-radius: 2px;
530
538
  outline: none;
531
539
  box-sizing: border-box;
@@ -539,5 +547,5 @@
539
547
  border: none;
540
548
  }
541
549
  .bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-search-wrapper .bk-select-search-input::placeholder {
542
- color: var(--light-gray);
550
+ color: #c4c6cc;
543
551
  }
@@ -5,8 +5,8 @@ declare const _default: import("vue").DefineComponent<{
5
5
  type: PropType<ISelected[]>;
6
6
  default: () => any[];
7
7
  };
8
- tagTheme: import("vue-types/dist/types").VueTypeDef<"info" | "success" | "warning" | "danger"> & {
9
- default: "info" | "success" | "warning" | "danger";
8
+ tagTheme: import("vue-types/dist/types").VueTypeDef<"" | "info" | "success" | "warning" | "danger"> & {
9
+ default: "" | "info" | "success" | "warning" | "danger";
10
10
  };
11
11
  placeholder: import("vue-types/dist/types").VueTypeValidableDef<string> & {
12
12
  default: string;
@@ -35,6 +35,9 @@ declare const _default: import("vue").DefineComponent<{
35
35
  default: boolean;
36
36
  };
37
37
  }, {
38
+ collapseTagRef: import("vue").Ref<any>;
39
+ tagWrapperRef: import("vue").Ref<any>;
40
+ tagsRefs: import("vue").Ref<any[]>;
38
41
  select: import("./type").ISelectContext;
39
42
  overflowTagIndex: import("vue").Ref<number>;
40
43
  value: any;
@@ -49,8 +52,8 @@ declare const _default: import("vue").DefineComponent<{
49
52
  type: PropType<ISelected[]>;
50
53
  default: () => any[];
51
54
  };
52
- tagTheme: import("vue-types/dist/types").VueTypeDef<"info" | "success" | "warning" | "danger"> & {
53
- default: "info" | "success" | "warning" | "danger";
55
+ tagTheme: import("vue-types/dist/types").VueTypeDef<"" | "info" | "success" | "warning" | "danger"> & {
56
+ default: "" | "info" | "success" | "warning" | "danger";
54
57
  };
55
58
  placeholder: import("vue-types/dist/types").VueTypeValidableDef<string> & {
56
59
  default: string;
@@ -86,7 +89,7 @@ declare const _default: import("vue").DefineComponent<{
86
89
  }, {
87
90
  disabled: boolean;
88
91
  placeholder: string;
89
- tagTheme: "info" | "success" | "warning" | "danger";
92
+ tagTheme: "" | "info" | "success" | "warning" | "danger";
90
93
  selected: ISelected[];
91
94
  filterable: boolean;
92
95
  allowCreate: boolean;
@@ -26,7 +26,7 @@ export declare function isObject(value: any): boolean;
26
26
  * @returns {boolean}
27
27
  */
28
28
  declare const isNumberFinite: (value: any) => boolean;
29
- export { isNumberFinite as isFinite, };
29
+ export { isNumberFinite as isFinite };
30
30
  /**
31
31
  * Returns `value` if finite, else returns `defaultValue`.
32
32
  * @param {*} value - The value to return if defined.
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"),require("lodash"),require("@popperjs/core"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["vue","lodash","@popperjs/core","vue-types"],t);else{var n="object"==typeof exports?t(require("vue"),require("lodash"),require("@popperjs/core"),require("vue-types")):t(e.vue,e.lodash,e["@popperjs/core"],e["vue-types"]);for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,((e,t,n,i)=>(()=>{var r={8022:(e,t,n)=>{var i=n(4481),r=n(6426),o=r;o.v1=i,o.v4=r,e.exports=o},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var i=n||0,r=t;return[r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]]].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 i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},4481:(e,t,n)=>{var i,r,o=n(9157),s=n(8725),a=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],p=(e=e||{}).node||i,f=void 0!==e.clockseq?e.clockseq:r;if(null==p||null==f){var d=o();null==p&&(p=i=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==f&&(f=r=16383&(d[6]<<8|d[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,y=h-a+(v-u)/1e4;if(y<0&&void 0===e.clockseq&&(f=f+1&16383),(y<0||h>a)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=h,u=v,r=f;var g=(1e4*(268435455&(h+=122192928e5))+v)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var m=h/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=f>>>8|128,l[c++]=255&f;for(var k=0;k<6;++k)l[c+k]=p[k];return t||s(l)}},6426:(e,t,n)=>{var i=n(9157),r=n(8725);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||i)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||r(s)}},5798:e=>{"use strict";e.exports=n},467:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e},210:e=>{"use strict";e.exports=i}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,s),n.exports}s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";s.r(a),s.d(a,{AlignEnum:()=>ce,BKLAYERD_INDEX_EFAULT_VALUE:()=>H,BKLAYERTYPE:()=>j,BKPopIndexManager:()=>K,BKPopover:()=>$,BkMaskManager:()=>q,DialogTypeEnum:()=>he,DirectionEnum:()=>ve,EMPTY_OBJ:()=>Be,InputBehaviorEnum:()=>me,InputBehaviorType:()=>Ue,LineStyleEnum:()=>ye,PlacementEnum:()=>pe,Placements:()=>ae,ProgressEnum:()=>be,ProgressStrokeLineCapEnum:()=>ke,ProgressStrokeLineCapType:()=>Ne,ProgressType:()=>Pe,PropTypes:()=>_e,RenderDirectiveEnum:()=>ue,RenderType:()=>de,SelectedType:()=>Fe,SelectedTypeEnum:()=>De,SizeEnum:()=>se,SwitcherThemeEnum:()=>Te,SwitcherThemeType:()=>je,TagThemeEnum:()=>ge,TagThemeType:()=>Le,ThemeEnum:()=>le,TriggerEnum:()=>fe,alignType:()=>Se,arrayEqual:()=>Je,bKMaskManager:()=>z,bkPopIndexManager:()=>W,bkZIndexManager:()=>B,capitalize:()=>D,checkOverflow:()=>_,classes:()=>He,clone:()=>h,debounce:()=>Ye,dialogTypeUnion:()=>Ae,directionType:()=>Re,elementsEqual:()=>d,filterProperty:()=>Ze,finiteOrDefault:()=>p,formItemKey:()=>S,formKey:()=>E,getPopContainerId:()=>ee,hasOverflowEllipsis:()=>T,isArray:()=>u,isElement:()=>b,isEmpty:()=>o,isEmptyObj:()=>ze,isFinite:()=>l,isNullOrUndef:()=>r,isObject:()=>c,lineStyleType:()=>Ce,maybeShowTooltip:()=>I,merge:()=>g,mergeIf:()=>m,mergerFn:()=>y,mergerIfFn:()=>k,noop:()=>Ve,observerResize:()=>U,off:()=>t,on:()=>e,placementType:()=>Me,random:()=>P,renderDirectiveType:()=>Ee,renderEmptyVNode:()=>qe,renderType:()=>xe,resolveClassName:()=>Ge,scrollTop:()=>n,scrollbarWidth:()=>te,stringEnum:()=>Oe,triggerType:()=>we,useForm:()=>M,useFormItem:()=>w,valueOrDefault:()=>f,withInstall:()=>Ke,withInstallProps:()=>We});var e=document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!0)}:function(e,t,n){e&&t&&n&&e.attachEvent("on".concat(t),n)},t=document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!0)}:function(e,t,n){e&&t&&e.detachEvent("on".concat(t),n)};function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,r=arguments.length>4?arguments[4]:void 0,o=Math.abs(t-n);!function t(n,i,o){if(n!==i){var s=n+o>i?i:n+o;n>i&&(s=n-o<i?i:n-o),e===window?window.scrollTo(s,s):e.scrollTop=s,window.requestAnimationFrame((function(){return t(s,i,o)}))}else null==r||r()}(t,n,Math.ceil(o/i*50))}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function r(e){return null==e}function o(e){return""===e||!(arguments.length>1&&void 0!==arguments[1]&&!arguments[1])&&r(e)}function u(e){if(Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function c(e){return null!==e&&/^\[object (Object|Module)\]/.test(Object.prototype.toString.call(e))}var l=function(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)};function p(e,t){return l(e)?e:t}function f(e,t){return void 0===e?t:e}function d(e,t){var n,i,r,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],o=t[n],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function h(e){if(u(e))return e.map(h);if(c(e)){for(var t=Object.create(null),n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=h(e[n[r]]);return t}return e}function v(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function y(e,t,n,i){if(v(e)){var r=t[e],o=n[e];c(r)&&c(o)?g(r,o,i):t[e]=h(o)}}function g(e,t,n){var i=u(t)?t:[t],r=i.length;if(!c(e))return e;for(var o=(n=n||{}).merger||y,s=0;s<r;++s)if(c(t=i[s]))for(var a=Object.keys(t),l=0,p=a.length;l<p;++l)o(a[l],e,t,n);return e}function m(e,t){return g(e,t,{merger:k})}function k(e,t,n){if(v(e)){var i=t[e],r=n[e];c(i)&&c(r)?m(i,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=h(r))}}function b(e){try{return e instanceof HTMLElement}catch(t){return"object"===i(e)&&1===e.nodeType&&"object"===i(e.style)&&"object"===i(e.ownerDocument)}}function T(e){return e.offsetWidth<e.scrollWidth||e.offsetHeight<e.scrollHeight}function I(e,t){T(e)?e.setAttribute("title",t):e.removeAttribute("title")}var O=s(748),E=Symbol("form"),S=Symbol("formItem"),M=function(){return(0,O.inject)(E)},w=function(){return(0,O.inject)(S,void 0)};function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}function R(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,A(i.key),i)}}function C(e,t,n){return t&&R(e.prototype,t),n&&R(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var L,j,N=s(467),P=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"abcdefghijklmnopqrstuvwxyz0123456789",n="",i=0;i<e;i++)n+=t[parseInt((Math.random()*t.length).toString(),10)];return n},U=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=(0,N.throttle)((function(){"function"==typeof t&&t()}),n),o=new ResizeObserver((function(){r()}));return i&&"function"==typeof t&&t(),{start:function(){o.observe(e)},stop:function(){o.disconnect(),o.unobserve(e)}}},D=function(e){return e[0].toUpperCase()+e.slice(1)};function _(e){if(!e)return!1;var t=!1;try{var n=window.getComputedStyle(e,null);if("none"!==n.webkitLineClamp){var i=parseFloat(n.height),r=function(e,t){var n=document.createElement("div"),i=parseFloat(t.width)?"".concat(Math.ceil(parseFloat(t.width)),"px"):t.width;return n.style.cssText="\n width: ".concat(i,";\n line-height: ").concat(t["line-height"],";\n font-size: ").concat(t["font-size"],";\n word-break: ").concat(t["word-break"],";\n padding: ").concat(t.padding,";\n "),n.textContent=e.textContent,n}(e,n);document.body.appendChild(r);var o=window.getComputedStyle(r,null).height;document.body.removeChild(r),t=i<parseFloat(o)}else t=e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight}catch(e){console.warn("There is an error when check element overflow state: ",e)}return t}function F(e,t,n){return(t=A(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.BOTTOM="bottom",e.CONTENT="content",e.NAVI="navi",e.FULLSCREEN="fullScreen",e.PLUGINS="plugins",e.MODAL="modal",e.MESSAGE="message",e.POPPER="popper"}(j||(j={}));var H=(F(L={},j.BOTTOM,0),F(L,j.CONTENT,1),F(L,j.NAVI,100),F(L,j.FULLSCREEN,1e3),F(L,j.MODAL,3e3),F(L,j.PLUGINS,8e3),F(L,j.MESSAGE,1e4),F(L,j.POPPER,99999),L),B=new(function(){function e(){x(this,e),this.storageLayerIndexValue={},this.copyDefaultValue()}return C(e,[{key:"getNextIndex",value:function(e){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,e)?(this.storageLayerIndexValue[e]=this.storageLayerIndexValue[e]+1,this.storageLayerIndexValue[e]):(this.storageLayerIndexValue[j.MODAL]=this.storageLayerIndexValue[j.MODAL]+1,this.storageLayerIndexValue[j.MODAL])}},{key:"getModalNextIndex",value:function(){return this.getNextIndex(j.MODAL)}},{key:"getMessageNextIndex",value:function(){return this.getNextIndex(j.MESSAGE)}},{key:"getFullScreenNextIndex",value:function(){return this.getNextIndex(j.FULLSCREEN)}},{key:"getNaviNextIndex",value:function(){return this.getNextIndex(j.NAVI)}},{key:"getPopperIndex",value:function(){return H.popper}},{key:"setDefaultZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue.__proto__,n)&&Object.assign(t.storageLayerIndexValue.__proto__,F({},n,e[n]))})),this.copyDefaultValue()}},{key:"resetZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue,n)&&Object.assign(t.storageLayerIndexValue,F({},n,e[n]))}))}},{key:"copyDefaultValue",value:function(){var e=Object.keys(H).reduce((function(e,t){return Object.assign(e,F({},t,{value:H[t],writable:!0,configurable:!0}))}),{});this.storageLayerIndexValue=Object.create(H,e)}}]),e}());"__bk_mask_".concat(P(16));var V=new(function(){function e(){x(this,e),this.timer=null,this.store=[],this.maskMap=new WeakMap}return C(e,[{key:"appendMaker",value:function(e){this.store.push(e),this.executeMaker()}},{key:"pushMaskStyle",value:function(e,t){var n=this.getMaskMap(e);(null==n?void 0:n.styles)?n.styles.push(t):this.setMaskMap(e,Object.assign({styles:[t]},n||{}))}},{key:"getMaskStyles",value:function(e){var t;return(null===(t=this.getMaskMap(e))||void 0===t?void 0:t.styles)||[]}},{key:"setMaskId",value:function(e,t){var n=this.getMaskMap(e);n?(Object.assign(n,{id:t}),this.setMaskMap(e,n)):this.setMaskMap(e,Object.assign({id:t},n||{}))}},{key:"getMaskId",value:function(e){var t;return null===(t=this.getMaskMap(e))||void 0===t?void 0:t.id}},{key:"setMaskMap",value:function(e,t){this.maskMap.set(e,t)}},{key:"getMaskMap",value:function(e){return this.maskMap.get(e)}},{key:"executeMaker",value:function(){var e=this;this.timer&&cancelAnimationFrame(this.timer),this.timer=requestAnimationFrame((function(){var t=e.store.pop();"function"==typeof t&&(Reflect.apply(t,e,[]),e.executeMaker())}))}}]),e}()),q=function(){function e(t){var n=this;x(this,e),this.multiInstance=!1,this.uniqueMaskAttrTag="",this.parentNode=document.body,this.activeInstance=void 0,this.zIndexStore=new Map,this.lastUUID=null,this.maskStyle={position:"fixed",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"},this.isInit=!1,this.maskAttrTag="auto";var i=t||{},r=i.multiInstance,o=void 0!==r&&r,s=i.maskAttrTag,a=void 0===s?"auto":s,u=i.parentNode,c=void 0===u?document.body:u,l=i.maskStyle,p=void 0===l?{}:l,f=i.onClick,d=void 0===f?null:f,h=i.popInstance,v=void 0===h?null:h;this.parentNode=c||document,this.maskAttrTag=a,this.onClick=d,this.activeInstance=void 0,this.multiInstance=o,this.popInstance=v,this.uniqueMaskAttrTag=this.getMaskAttrTag(a),V.appendMaker((function(){n.initInstance(p)}))}return C(e,[{key:"setOption",value:function(e){var t=e||{},n=t.parentNode,i=void 0===n?document.body:n,r=t.maskStyle,o=void 0===r?{}:r,s=t.onClick,a=void 0===s?null:s,u=t.maskAttrTag,c=void 0===u?this.maskAttrTag:u;this.onClick=a,this.parentNode=i||document,this.setMaskStyle(Object.assign({},this.maskStyle,o)),this.uniqueMaskAttrTag=this.getMaskAttrTag(c)}},{key:"show",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=null!=r?r:P(16),a=/-?\d+/.test("".concat(t))?t:B.getModalNextIndex(),u=Object.assign({},this.maskStyle,i||{});if(!n&&this.lastUUID){var c=this.zIndexStore.get(this.lastUUID);c&&(u=null==c?void 0:c.style)}this.storeMaskInsCfg({zIndex:a,style:Object.assign({},u),uuid:s,preUID:this.lastUUID}),Object.assign(u,{display:"block","z-index":"".concat(a),"pointer-events":"all"}),this.initInstance(u),this.catchClickEvent(),this.setMaskStyle(u),V.pushMaskStyle(this.parentNode,Object.assign({},u)),this.backupMask.style.setProperty("z-index","".concat(a-1)),n||(this.mask.style.setProperty("pointer-events","none"),null==e||e.style.setProperty("pointer-events","all")),e&&(o&&e.style.setProperty("z-index","".concat(a+1)),this.activeInstance=e,this.appendContentToMask(e))}},{key:"hide",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=null!=i?i:this.lastUUID;t||(null==n||n.remove(),null===(e=this.activeInstance)||void 0===e||e.remove()),this.removeClickEvent(),this.activeInstance=void 0,this.popIndexStore(r);var o=V.getMaskStyles(this.parentNode);if(null==o||o.pop(),null==o?void 0:o.length){var s=o.slice(-1)[0];this.setMaskStyle(s)}else this.mask.style.setProperty("display","none")}},{key:"storeMaskInsCfg",value:function(e){return this.zIndexStore.set(e.uuid,e),this.lastUUID=e.uuid,this.zIndexStore.get(e.uuid)}},{key:"popIndexStore",value:function(e){if(this.zIndexStore.has(e)){var t=this.zIndexStore.get(e);return this.lastUUID=t.preUID,this.zIndexStore.delete(e)}return this.lastUUID=null,!1}},{key:"backupActiveInstance",value:function(){this.activeInstance&&this.backupMask.append(this.activeInstance)}},{key:"backupContentElement",value:function(e){e&&this.backupMask.append(e)}},{key:"getActiveContentInstance",value:function(){return this.activeInstance}},{key:"initInstance",value:function(e){if(!this.isInit){this.isInit=!0;var t=this.getMask(),n=t.instance,i=t.isExist;this.mask=n,this.backupMask=this.getBackupMask(),!i&&this.setMaskStyle(Object.assign({},this.maskStyle,e))}}},{key:"getMask",value:function(){if(this.multiInstance)return{instance:this.createMask(),isExist:!1};var e=!0,t=this.parentNode.querySelector("[data-bk-mask-uid='".concat(this.uniqueMaskAttrTag,"']"));return t||(e=!1,t=this.createMask()),{instance:t,isExist:e}}},{key:"catchClickEvent",value:function(){var e=this;this.mask&&this.mask.addEventListener("click",(function(t){return e.handleMaskClick(t)}),!0)}},{key:"removeClickEvent",value:function(){this.mask&&this.mask.removeEventListener("click",this.handleMaskClick)}},{key:"handleMaskClick",value:function(e){e.target===this.mask&&"function"==typeof this.onClick&&Reflect.apply(this.onClick,this.popInstance||this,[e])}},{key:"getBackupMask",value:function(){var e="data-bk-backup-uid",t=this.parentNode.querySelector("[".concat(e,"]"));return t||(t=this.createMask(e)),t}},{key:"createMask",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-bk-mask-uid",t=document.createElement("div");return t.setAttribute(e,this.uniqueMaskAttrTag),this.parentNode.append(t),t}},{key:"setMaskStyle",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.mask&&Object.entries(t).forEach((function(t){return e.mask.style.setProperty(t[0],t[1])}))}},{key:"getMaskAttrTag",value:function(e){return/^(auto|\s+)$/i.test(e)||null==e||""===e?(V.getMaskId(this.parentNode)||V.setMaskId(this.parentNode,"__bk_mask_".concat(P(16))),V.getMaskId(this.parentNode)):e}},{key:"appendContentToMask",value:function(e){this.mask.append(e)}}]),e}(),z=new q({}),K=function(){function e(t){x(this,e),this.popInstanceList=[],this.clickFn=void 0,this.uuidAttrName="data-bk-pop-uuid",this.bKMaskManagerInstance=new q({parentNode:this.getParentNode(null==t?void 0:t.transfer),popInstance:this,onClick:this.onMaskClickFn})}return C(e,[{key:"getParentNode",value:function(e){if("string"==typeof e){var t=document.querySelector(e);if(t)return t}return b(e)?e:document.body}},{key:"onMaskClick",value:function(e,t){this.clickFn={fn:e,target:t}}},{key:"show",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;if(e){var o="number"==typeof r?r:B.getModalNextIndex(),s=P(16);e.setAttribute(this.uuidAttrName,s),this.popInstanceList.push({uuid:s,zIndex:o,content:e,showMask:t,appendStyle:n}),t&&this.bKMaskManagerInstance.backupActiveInstance(),this.bKMaskManagerInstance.show(e,o,t,n,s,i)}else console.warn("pop show error: content is null or undefined")}},{key:"destroy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.clickFn=void 0,this.hide(e,t)}},{key:"popHide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.popInstanceList.length){if(e){var t=this.popInstanceList.pop();this.bKMaskManagerInstance.popIndexStore(t.uuid),t.remove()}if(this.popInstanceList.length){var n=this.popInstanceList.slice(-1)[0],i=n.zIndex,r=n.content,o=n.showMask,s=n.appendStyle,a=n.uuid;this.bKMaskManagerInstance.show(r,i,o,s,a)}else this.bKMaskManagerInstance.hide()}}},{key:"hide",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null==e?void 0:e.getAttribute(this.uuidAttrName);if(n){var i=this.popInstanceList.findIndex((function(e){return e.uuid===n}));i>=0&&(t||this.popInstanceList[i].content.remove(),this.popInstanceList.splice(i,1),this.bKMaskManagerInstance.popIndexStore(n),this.popInstanceList.length?this.popHide(!1):this.bKMaskManagerInstance.hide(t))}else null==e||e.remove()}},{key:"onMaskClickFn",value:function(e){if(this.clickFn){var t=this.clickFn.fn;t&&Reflect.apply(t,this,[e])}}}]),e}(),W=new K;function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Y(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Z,J=s(8022),X=s(5798),$=function(){function e(t,n,i){var r,o;x(this,e),this.isShow=!1,this.trigger=void 0,this.instance=void 0,this.always=!1,this.reference=void 0,this.referenceTarget=void 0,this.popperRefer=void 0,this.delay=50,this.isInnerPopper=!1,this.disabled=!1,this.afterShow=null,this.afterHidden=null,this.appendTo="parent",this.container=null,this.fixOnBoundary=!1,this.instanceOptions=this.initDefaultOptions(i),this.reference=this.resolveInputSelectorToHtmlElement(t),this.popperRefer=this.resolveInputSelectorToHtmlElement(n),this.referenceTarget=this.getTargetReferenceElement(),this.container=null===(r=this.popperRefer)||void 0===r?void 0:r.parentElement,this.isShow=!!(null===(o=this.instanceOptions)||void 0===o?void 0:o.isShow),this.always=this.instanceOptions.always,this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden="function"==typeof i.afterHidden?i.afterHidden:function(){},this.afterShow="function"==typeof i.afterShow?i.afterShow:function(){},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),(this.isShow||this.always)&&this.show(null)}return C(e,[{key:"forceUpdate",value:function(){var e;null===(e=this.instance)||void 0===e||e.forceUpdate()}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.update()}},{key:"updateOptions",value:function(e){var t;this.instanceOptions=this.initDefaultOptions(e),this.isShow=!!(null===(t=this.instanceOptions)||void 0===t?void 0:t.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}},{key:"setOptions",value:function(e){var t;null===(t=this.instance)||void 0===t||t.setOptions(e)}},{key:"destroy",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy()}},{key:"updateDisabled",value:function(e){this.disabled=null!=e?e:!this.disabled,this.disabled&&this.hide()}},{key:"show",value:function(e){var t;this.disabled||(null===(t=this.popperRefer)||void 0===t||t.setAttribute("data-show",""),this.setOptions({modifiers:[].concat(Y(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!0}])}),this.update(),this.isShow=!0,this.afterShow(),this.fixOnBoundary||this.appendToTarget())}},{key:"hide",value:function(){var e;this.always||(null===(e=this.popperRefer)||void 0===e||e.removeAttribute("data-show"),this.setOptions({modifiers:[].concat(Y(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!1}])}),this.isShow=!1,this.isInnerPopper=!1,this.afterHidden(),this.fixOnBoundary||this.restorePopContent())}},{key:"restorePopContent",value:function(){var e=this.getAppendToTarget();b(e)&&e.contains(this.popperRefer)&&this.container&&!this.container.contains(this.popperRefer)&&this.container.append(this.popperRefer)}},{key:"appendToTarget",value:function(){var e=this.getAppendToTarget();b(e)&&e.contains(this.popperRefer)&&e.append(this.popperRefer)}},{key:"getAppendToTarget",value:function(){var e=this.appendTo,t=e;return"parent"!==e&&"string"==typeof e&&(t=document.querySelector(e)),t}},{key:"initDefaultOptions",value:function(e){var t=this,n=g({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},e||{}),i=n.onFirstUpdate;return n.onFirstUpdate=function(e){"function"==typeof i&&(i.call(t,e),t.handleFirstUpdate())},n}},{key:"handleFirstUpdate",value:function(){this.fixOnBoundary&&this.appendToTarget()}},{key:"getTargetReferenceElement",value:function(){return this.isElement(this.reference)&&1===this.reference.childElementCount?this.reference.firstElementChild:this.reference}},{key:"initInstance",value:function(){var e,t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=(0,X.createPopper)(this.referenceTarget,this.popperRefer,this.instanceOptions),null===(e=this.popperRefer)||void 0===e||e.setAttribute("data-theme",null!==(t=this.instanceOptions.theme)&&void 0!==t?t:"dark")):console.error("reference or popperRefer is null, please check html element."))}},{key:"resolveInputSelectorToHtmlElement",value:function(e){if(this.isElement(e))return e;if("string"==typeof e)return document.querySelector(e);if("object"===i(e)){if(Object.prototype.hasOwnProperty.call(e,"getBoundingClientRect"))return e}else console.error("'getBoundingClientRect' is needed when use virtual elements");return null}},{key:"isElement",value:function(e){return b(e)}},{key:"registerEvents",value:function(){var e=this;this.isElement(this.referenceTarget)&&"hover"===this.trigger&&(["mouseenter","focus"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(n){"mouseenter"===t&&(e.isInnerPopper=!0),e.show(n)}))})),["mouseleave","blur"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(){e.isInnerPopper=!1,setTimeout((function(){!e.isInnerPopper&&e.hide()}),e.delay)}))})),this.isElement(this.popperRefer)&&["mouseenter","mouseleave"].forEach((function(t){e.popperRefer.addEventListener(t,(function(){"mouseenter"===t&&(e.isInnerPopper=!0),"mouseleave"===t&&e.hide()}))}))),"click"===this.trigger&&["click"].forEach((function(t){document.body.addEventListener(t,(function(t){e.isSameElement(t.target,e.reference)||e.reference.contains(t.target)?e.show(t):!e.isShow||e.isSameElement(t.target,e.popperRefer)||e.popperRefer.contains(t.target)||e.hide()}))}))}},{key:"isSameElement",value:function(e,t){return e&&(e===t||e===t.firstElementChild)}}]),e}(),Q=null,ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#";if(null===Q){Q="id_".concat((0,J.v4)());var t=document.createElement("div");t.setAttribute("id",Q),t.setAttribute("data-popper-id",Q),document.body.append(t)}return"".concat(e).concat(Q)};function te(){if(void 0!==Z)return Z;var e=document.createElement("div");e.className="bk-scrollbar-wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var i=n.offsetWidth;return e.parentNode.removeChild(e),Z=t-i}function ne(e,t){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ne(e,t)}function ie(e){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ie(e)}var re=s(210);function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ie(e);if(t){var o=ie(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}var se,ae,ue,ce,le,pe,fe,de,he,ve,ye,ge,me,ke,be,Te,Ie=(0,re.createTypes)({});function Oe(e){return e.reduce((function(e,t){return e[t]=t,e}),Object.create(null))}function Ee(){return(0,re.string)().def(ue.SHOW)}function Se(){return(0,re.string)().def(ce.LEFT)}function Me(){return(0,re.string)().def(pe.BOTTOM)}function we(){return(0,re.string)().def(fe.HOVER)}function xe(){return(0,re.toType)("popRenderType",{}).def(de.SHOWN)}function Ae(){return(0,re.toType)("dialogType",{default:he.OPERATION})}function Re(){return(0,re.toType)("direction",{}).def(ve.HORIZONTAL)}function Ce(){return(0,re.toType)("lineType",{}).def(ye.DASHED)}function Le(){return(0,re.toType)("tagTheme",{}).def()}function je(){return(0,re.toType)("switcherTheme",{}).def(Te.SUCCESS)}function Ne(){return(0,re.toType)("progressStrokeLineCap",{}).def(ke.ROUNDE)}function Pe(){return(0,re.toType)("progress",{}).def(be.LINE)}function Ue(){return(0,re.toType)("behavior",{}).def(me.NORMAL)}!function(e){e.SMALL="small",e.LARGE="large",e.DEFAULT="default"}(se||(se={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(ae||(ae={})),function(e){e.IF="if",e.SHOW="show"}(ue||(ue={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(ce||(ce={})),function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.DANGER="danger"}(le||(le={})),function(e){e.AUTO="auto",e.AUTO_START="auto-start",e.AUTO_END="auto-end",e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end",e.RIGHT_START="right-start",e.RIGHT_END="right-end",e.LEFT_START="left-start",e.LEFT_END="left-end"}(pe||(pe={})),function(e){e.HOVER="hover",e.CLICK="click",e.MANUAL="manual"}(fe||(fe={})),function(e){e.AUTO="auto",e.SHOWN="shown"}(de||(de={})),function(e){e.SHOW="show",e.OPERATION="operation",e.CONFIRM="confirm",e.PROCESS="process"}(he||(he={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(ve||(ve={})),function(e){e.DASHED="dashed",e.SOLID="solid"}(ye||(ye={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.DANGER="danger"}(ge||(ge={})),function(e){e.SIMPLICITY="simplicity",e.NORMAL="normal"}(me||(me={})),function(e){e.BUTT="butt",e.SQUARE="square",e.ROUNDE="round"}(ke||(ke={})),function(e){e.LINE="line",e.CIRCLE="circle",e.DASHBOARD="dashboard"}(be||(be={})),function(e){e.SUCCESS="success",e.PRIMARY="primary"}(Te||(Te={}));var De,_e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ne(e,t)}(n,e);var t=oe(n);function n(){return x(this,n),t.apply(this,arguments)}return C(n,null,[{key:"size",value:function(){var e=["small","default","large"];return(0,re.toType)("Size",{validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))},default:"default"})}},{key:"theme",value:function(){var e=["primary","warning","success","danger"];return(0,re.toType)("Theme",{validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))}})}},{key:"placement",value:function(){var e=["top","left","right","bottom"];return(0,re.toType)("Placements",{validator:function(t){return!(t&&!e.includes(t))},default:"top"})}},{key:"style",value:function(){return(0,re.toType)("Style",{type:[String,Object]})}},{key:"position",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["top-left","top-right","bottom-left","bottom-right"];return(0,re.toType)("positions",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid positions, ".concat(t,", the position must be one of 【").concat(e.join(" | "),"】")),1))},default:"top-center"})}}]),n}(Ie);function Fe(){return(0,re.toType)("selectedStyle",{}).def(De.CHECK)}function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(e).filter((function(e){return e[1]})).map((function(e){return e[0]})).join(" ").concat(t?" ".concat(t):"")}!function(e){e.CHECKBOX="checkbox",e.CHECK="check"}(De||(De={}));var Be=Object.create({}),Ve=function(){},qe=function(){return null},ze=function(e){return Object.keys(e).length<1},Ke=function(e){return e.install=function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).prefix,i=t.config.globalProperties.bkUIPrefix||n||"Bk";t.component(i+e.name,e)},e},We=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;return e.install=function(r){var o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).prefix,s=r.config.globalProperties.bkUIPrefix||o||"Bk";i&&r.directive(s+i.name,i.directive),r.component(s+e.name,e),!n&&Object.values(t).forEach((function(e){r.component(s+e.name,e)}))},Object.keys(t).forEach((function(n){e[n]=t[n]})),e};function Ge(e){return"".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bk","-").concat(e)}function Ye(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,i=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=function(){var o=this,s=arguments;if(e&&clearTimeout(e),r){var a=!e;e=setTimeout((function(){e=null}),n),a&&(t=i.apply(o,s))}else e=setTimeout((function(){i.apply(o,s)}),n);return t};return o.cancel=function(){clearTimeout(e),e=null},o}function Ze(e,t){return JSON.parse(JSON.stringify(e,(function(e,n){if(!t.includes(e))return n})))}function Je(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){if(Array.isArray(e[n]))return Je(e[n],t[n]);if(e[n]!==t[n])return!1}return!0}})(),a})()));
1
+ import*as e from"vue";import*as t from"lodash";import*as n from"@popperjs/core";import*as i from"vue-types";var r={8022:(e,t,n)=>{var i=n(4481),r=n(6426),o=r;o.v1=i,o.v4=r,e.exports=o},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var i=n||0,r=t;return[r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]]].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 i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},4481:(e,t,n)=>{var i,r,o=n(9157),a=n(8725),s=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],f=(e=e||{}).node||i,p=void 0!==e.clockseq?e.clockseq:r;if(null==f||null==p){var h=o();null==f&&(f=i=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=r=16383&(h[6]<<8|h[7]))}var d=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,y=d-s+(v-u)/1e4;if(y<0&&void 0===e.clockseq&&(p=p+1&16383),(y<0||d>s)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=d,u=v,r=p;var g=(1e4*(268435455&(d+=122192928e5))+v)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var m=d/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var k=0;k<6;++k)l[c+k]=f[k];return t||a(l)}},6426:(e,t,n)=>{var i=n(9157),r=n(8725);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||i)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||r(a)}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var s={};(()=>{a.d(s,{oY:()=>me,p3:()=>K,Ql:()=>B,Eo:()=>ee,mZ:()=>se,Wg:()=>J,_D:()=>Oe,dq:()=>Ee,kT:()=>Xe,WF:()=>we,Gl:()=>We,VS:()=>Se,Um:()=>be,_h:()=>ye,rU:()=>Ae,_q:()=>xe,Hl:()=>ze,Mc:()=>qe,ng:()=>Ge,Pi:()=>ge,y2:()=>Ie,qt:()=>Ze,aL:()=>Ke,mO:()=>ve,BZ:()=>Le,p:()=>Ve,XR:()=>Me,gg:()=>He,bY:()=>ke,os:()=>Te,WW:()=>Pe,h6:()=>ot,Lx:()=>$,aR:()=>te,ue:()=>G,kC:()=>z,ao:()=>q,Sh:()=>Ye,d9:()=>m,Ds:()=>it,ou:()=>_e,zo:()=>Fe,cA:()=>g,w$:()=>rt,b_:()=>v,xE:()=>R,vh:()=>L,ks:()=>ce,Hv:()=>S,kJ:()=>p,kK:()=>E,xb:()=>f,SI:()=>Qe,xV:()=>d,sS:()=>l,Kn:()=>h,zW:()=>Be,oq:()=>M,TS:()=>T,NG:()=>I,WC:()=>b,Zd:()=>O,ZT:()=>Je,z3:()=>V,S1:()=>o,on:()=>r,Tf:()=>je,MX:()=>H,OB:()=>Ce,Ay:()=>$e,wB:()=>De,h5:()=>nt,SM:()=>u,LF:()=>le,b:()=>Ne,_7:()=>Ue,cI:()=>N,A9:()=>C,Be:()=>y,nz:()=>et,B:()=>tt});var r=document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!0)}:function(e,t,n){e&&t&&n&&e.attachEvent("on".concat(t),n)},o=document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!0)}:function(e,t,n){e&&t&&e.detachEvent("on".concat(t),n)};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,r=arguments.length>4?arguments[4]:void 0,o=Math.abs(t-n);!function t(n,i,o){if(n!==i){var a=n+o>i?i:n+o;n>i&&(a=n-o<i?i:n-o),e===window?window.scrollTo(a,a):e.scrollTop=a,window.requestAnimationFrame((function(){return t(a,i,o)}))}else null==r||r()}(t,n,Math.ceil(o/i*50))}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e){return null==e}function f(e){return""===e||!(arguments.length>1&&void 0!==arguments[1]&&!arguments[1])&&l(e)}function p(e){if(Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function h(e){return null!==e&&/^\[object (Object|Module)\]/.test(Object.prototype.toString.call(e))}var d=function(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)};function v(e,t){return d(e)?e:t}function y(e,t){return void 0===e?t:e}function g(e,t){var n,i,r,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],o=t[n],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function m(e){if(p(e))return e.map(m);if(h(e)){for(var t=Object.create(null),n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=m(e[n[r]]);return t}return e}function k(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function b(e,t,n,i){if(k(e)){var r=t[e],o=n[e];h(r)&&h(o)?T(r,o,i):t[e]=m(o)}}function T(e,t,n){var i=p(t)?t:[t],r=i.length;if(!h(e))return e;for(var o=(n=n||{}).merger||b,a=0;a<r;++a)if(h(t=i[a]))for(var s=Object.keys(t),u=0,c=s.length;u<c;++u)o(s[u],e,t,n);return e}function I(e,t){return T(e,t,{merger:O})}function O(e,t,n){if(k(e)){var i=t[e],r=n[e];h(i)&&h(r)?I(i,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=m(r))}}function E(e){try{return e instanceof HTMLElement}catch(t){return"object"===c(e)&&1===e.nodeType&&"object"===c(e.style)&&"object"===c(e.ownerDocument)}}function S(e){return e.offsetWidth<e.scrollWidth||e.offsetHeight<e.scrollHeight}function M(e,t){S(e)?e.setAttribute("title",t):e.removeAttribute("title")}const w=(x={inject:()=>e.inject},A={},a.d(A,x),A);var x,A,L=Symbol("form"),R=Symbol("formItem"),N=function(){return(0,w.inject)(L)},C=function(){return(0,w.inject)(R,void 0)};function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(t)?t:String(t)}function U(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,j(i.key),i)}}function D(e,t,n){return t&&U(e.prototype,t),n&&U(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}const _=(e=>{var t={};return a.d(t,e),t})({throttle:()=>t.throttle});var F,B,H=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"abcdefghijklmnopqrstuvwxyz0123456789",n="",i=0;i<e;i++)n+=t[parseInt((Math.random()*t.length).toString(),10)];return n},V=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=(0,_.throttle)((function(){"function"==typeof t&&t()}),n),o=new ResizeObserver((function(){r()}));return i&&"function"==typeof t&&t(),{start:function(){o.observe(e)},stop:function(){o.disconnect(),o.unobserve(e)}}},z=function(e){return e[0].toUpperCase()+e.slice(1)};function q(e){if(!e)return!1;var t=!1;try{var n=window.getComputedStyle(e,null);if("none"!==n.webkitLineClamp){var i=parseFloat(n.height),r=function(e,t){var n=document.createElement("div"),i=parseFloat(t.width)?"".concat(Math.ceil(parseFloat(t.width)),"px"):t.width;return n.style.cssText="\n width: ".concat(i,";\n line-height: ").concat(t["line-height"],";\n font-size: ").concat(t["font-size"],";\n word-break: ").concat(t["word-break"],";\n padding: ").concat(t.padding,";\n "),n.textContent=e.textContent,n}(e,n);document.body.appendChild(r);var o=window.getComputedStyle(r,null).height;document.body.removeChild(r),t=i<parseFloat(o)}else t=e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight}catch(e){console.warn("There is an error when check element overflow state: ",e)}return t}function W(e,t,n){return(t=j(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.BOTTOM="bottom",e.CONTENT="content",e.NAVI="navi",e.FULLSCREEN="fullScreen",e.PLUGINS="plugins",e.MODAL="modal",e.MESSAGE="message",e.POPPER="popper"}(B||(B={}));var K=(W(F={},B.BOTTOM,0),W(F,B.CONTENT,1),W(F,B.NAVI,100),W(F,B.FULLSCREEN,1e3),W(F,B.MODAL,3e3),W(F,B.PLUGINS,8e3),W(F,B.MESSAGE,1e4),W(F,B.POPPER,99999),F),G=new(function(){function e(){P(this,e),this.storageLayerIndexValue={},this.copyDefaultValue()}return D(e,[{key:"getNextIndex",value:function(e){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,e)?(this.storageLayerIndexValue[e]=this.storageLayerIndexValue[e]+1,this.storageLayerIndexValue[e]):(this.storageLayerIndexValue[B.MODAL]=this.storageLayerIndexValue[B.MODAL]+1,this.storageLayerIndexValue[B.MODAL])}},{key:"getModalNextIndex",value:function(){return this.getNextIndex(B.MODAL)}},{key:"getMessageNextIndex",value:function(){return this.getNextIndex(B.MESSAGE)}},{key:"getFullScreenNextIndex",value:function(){return this.getNextIndex(B.FULLSCREEN)}},{key:"getNaviNextIndex",value:function(){return this.getNextIndex(B.NAVI)}},{key:"getPopperIndex",value:function(){return K.popper}},{key:"setDefaultZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue.__proto__,n)&&Object.assign(t.storageLayerIndexValue.__proto__,W({},n,e[n]))})),this.copyDefaultValue()}},{key:"resetZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue,n)&&Object.assign(t.storageLayerIndexValue,W({},n,e[n]))}))}},{key:"copyDefaultValue",value:function(){var e=Object.keys(K).reduce((function(e,t){return Object.assign(e,W({},t,{value:K[t],writable:!0,configurable:!0}))}),{});this.storageLayerIndexValue=Object.create(K,e)}}]),e}());"__bk_mask_".concat(H(16));var Z=new WeakMap,Y=function(e){return Z.has(e)?Z.get(e):[]},X=new(function(){function e(){P(this,e),this.timer=null,this.store=[],this.maskMap=new WeakMap}return D(e,[{key:"appendMaker",value:function(e){this.store.push(e),this.executeMaker()}},{key:"pushMaskStyle",value:function(e,t){var n=this.getMaskMap(e);this.setMaskMap(e,Object.assign({styles:[t]},n||{}))}},{key:"getMaskStyles",value:function(e){var t;return(null===(t=this.getMaskMap(e))||void 0===t?void 0:t.styles)||[]}},{key:"setMaskId",value:function(e,t){var n=this.getMaskMap(e);n?(Object.assign(n,{id:t}),this.setMaskMap(e,n)):this.setMaskMap(e,Object.assign({id:t},n||{}))}},{key:"getMaskId",value:function(e){var t;return null===(t=this.getMaskMap(e))||void 0===t?void 0:t.id}},{key:"setMaskMap",value:function(e,t){this.maskMap.set(e,t)}},{key:"getMaskMap",value:function(e){return this.maskMap.get(e)}},{key:"executeMaker",value:function(){var e=this;this.timer&&cancelAnimationFrame(this.timer),this.timer=requestAnimationFrame((function(){var t=e.store.pop();"function"==typeof t&&(Reflect.apply(t,e,[]),e.executeMaker())}))}}]),e}()),J=function(){function e(t){var n=this;P(this,e),this.multiInstance=!1,this.uniqueMaskAttrTag="",this.parentNode=document.body,this.activeInstance=void 0,this.zIndexStore=new Map,this.lastUUID=null,this.maskStyle={position:"fixed",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"},this.isInit=!1,this.maskAttrTag="auto";var i=t||{},r=i.multiInstance,o=void 0!==r&&r,a=i.maskAttrTag,s=void 0===a?"auto":a,u=i.parentNode,c=void 0===u?document.body:u,l=i.maskStyle,f=void 0===l?{}:l;this.parentNode=c||document,this.maskAttrTag=s,this.activeInstance=void 0,this.multiInstance=o,this.uniqueMaskAttrTag=this.getMaskAttrTag(s),X.appendMaker((function(){n.initInstance(f)}))}return D(e,[{key:"setOption",value:function(e){var t=e||{},n=t.parentNode,i=void 0===n?document.body:n,r=t.maskStyle,o=void 0===r?{}:r,a=t.maskAttrTag,s=void 0===a?this.maskAttrTag:a;this.parentNode=i||document,this.setMaskStyle(Object.assign({},this.maskStyle,o)),this.uniqueMaskAttrTag=this.getMaskAttrTag(s)}},{key:"destroyEvent",value:function(e){if(this.mask){var t=Y(this.mask)||[],n=t.findIndex((function(t){return t.instanceId===e}));n>=0&&(t.splice(n,1),i=this.mask,r=t,Z.set(i,r))}var i,r}},{key:"show",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=null!=r?r:H(16),c=/-?\d+/.test("".concat(t))?t:G.getModalNextIndex(),l=Object.assign({},this.maskStyle,i||{});if(!n&&this.lastUUID){var f=this.zIndexStore.get(this.lastUUID);f&&(l=null==f?void 0:f.style)}this.storeMaskInsCfg({zIndex:c,style:Object.assign({},l),uuid:u,preUID:this.lastUUID}),Object.assign(l,{display:"block","z-index":"".concat(c),"pointer-events":"all"}),this.initInstance(l),a&&this.catchClickEvent(e,a,s),this.setMaskStyle(l),X.pushMaskStyle(this.parentNode,Object.assign({},l)),this.backupMask.style.setProperty("z-index","".concat(c-1)),n||(this.mask.style.setProperty("pointer-events","none"),null==e||e.style.setProperty("pointer-events","all")),e&&(o&&e.style.setProperty("z-index","".concat(c+1)),this.activeInstance=e,this.appendContentToMask(e))}},{key:"hide",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=null!=i?i:this.lastUUID;t||(null==n||n.remove(),null===(e=this.activeInstance)||void 0===e||e.remove()),this.removeClickEvent(),this.activeInstance=void 0,this.popIndexStore(r);var o=X.getMaskStyles(this.parentNode);if(null==o||o.pop(),null==o?void 0:o.length){var a=o.slice(-1)[0];this.setMaskStyle(a)}else this.mask.style.setProperty("display","none")}},{key:"storeMaskInsCfg",value:function(e){return this.zIndexStore.set(e.uuid,e),this.lastUUID=e.uuid,this.zIndexStore.get(e.uuid)}},{key:"popIndexStore",value:function(e){if(this.zIndexStore.has(e)){var t=this.zIndexStore.get(e);return this.lastUUID=t.preUID,this.zIndexStore.delete(e)}return this.lastUUID=null,!1}},{key:"backupActiveInstance",value:function(){this.activeInstance&&this.backupMask.append(this.activeInstance)}},{key:"backupContentElement",value:function(e){var t;e&&(null===(t=this.backupMask)||void 0===t||t.append(e))}},{key:"getActiveContentInstance",value:function(){return this.activeInstance}},{key:"removeClickEvent",value:function(){}},{key:"initInstance",value:function(e){if(!this.isInit){this.isInit=!0,this.backupMask=this.getBackupMask();var t=this.getMask(),n=t.instance,i=t.isExist;this.mask=n,!i&&this.setMaskStyle(Object.assign({},this.maskStyle,e))}}},{key:"getMask",value:function(){var e=this;if(this.multiInstance)return{instance:this.createMask(),isExist:!1};var t=!0,n=this.parentNode.querySelector("[data-bk-mask-uid='".concat(this.uniqueMaskAttrTag,"']"));return n||(t=!1,(n=this.createMask()).addEventListener("click",(function(t){return e.handleMaskClick(t)}),!0)),{instance:n,isExist:t}}},{key:"catchClickEvent",value:function(e,t,n){this.mask&&function(e,t,n,i,r){var o=Y(e);o.some((function(e){return e.instanceId===r}))||(o.push({event:t,args:[],content:i,instanceId:r}),Z.set(e,o))}(this.mask,t,0,e,n)}},{key:"handleMaskClick",value:function(e){if(e.target===this.mask){var t=Y(this.mask);if(t.length){var n=t.slice(-1)[0].event;"function"==typeof n&&n(e)}}}},{key:"getBackupMask",value:function(){var e="data-bk-backup-uid",t=this.parentNode.querySelector("[".concat(e,"]"));return t||(t=this.createMask(e)),t}},{key:"createMask",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-bk-mask-uid",t=document.createElement("div");return t.setAttribute(e,this.uniqueMaskAttrTag),this.parentNode.append(t),t}},{key:"setMaskStyle",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.mask&&Object.entries(t).forEach((function(t){return e.mask.style.setProperty(t[0],t[1])}))}},{key:"getMaskAttrTag",value:function(e){return/^(auto|\s+)$/i.test(e)||null==e||""===e?(X.getMaskId(this.parentNode)||X.setMaskId(this.parentNode,"__bk_mask_".concat(H(16))),X.getMaskId(this.parentNode)):e}},{key:"appendContentToMask",value:function(e){this.mask.append(e)}}]),e}(),$=new J({}),Q=new WeakMap,ee=function(){function e(t){P(this,e),this.clickFn=void 0,this.uuidAttrName="data-bk-pop-uuid",this.uniqId=H(16),this.transfer=this.getParentNode(null==t?void 0:t.transfer),this.bKMaskManagerInstance=new J({parentNode:this.getParentNode(null==t?void 0:t.transfer),popInstance:this,onClick:this.onMaskClickFn})}return D(e,[{key:"popInstanceList",get:function(){return Q.has(this.transfer)||Q.set(this.transfer,[]),Q.get(this.transfer)},set:function(e){Q.set(this.transfer,e)}},{key:"getParentNode",value:function(e){if("string"==typeof e){var t=document.querySelector(e);if(t)return t}return E(e)?e:document.body}},{key:"onMaskClick",value:function(e,t){this.clickFn={fn:e,target:t}}},{key:"show",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;if(e){var a="number"==typeof r?r:G.getModalNextIndex(),s=H(16);e.setAttribute(this.uuidAttrName,s),this.popInstanceList.length>0&&t&&this.bKMaskManagerInstance.backupContentElement(this.popInstanceList.slice(-1)[0].content),this.popInstanceList.push({uuid:s,zIndex:a,content:e,showMask:t,appendStyle:n}),this.bKMaskManagerInstance.show(e,a,t,n,s,i,o,this.uniqId)}else console.warn("pop show error: content is null or undefined")}},{key:"destroy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.clickFn=void 0,this.hide(e,t)}},{key:"popHide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.popInstanceList.length){if(e){var t=this.popInstanceList.pop();this.bKMaskManagerInstance.popIndexStore(t.uuid),t.remove()}if(this.popInstanceList.length){var n=this.popInstanceList.slice(-1)[0],i=n.zIndex,r=n.content,o=n.showMask,a=n.appendStyle,s=n.uuid;this.bKMaskManagerInstance.show(r,i,o,a,s)}else this.bKMaskManagerInstance.hide()}}},{key:"hide",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null==e?void 0:e.getAttribute(this.uuidAttrName);if(n){var i=this.popInstanceList.findIndex((function(e){return e.uuid===n}));i>=0&&(t||this.popInstanceList[i].content.remove(),this.popInstanceList.splice(i,1),this.bKMaskManagerInstance.popIndexStore(n),this.popInstanceList.length?this.popHide(!1):this.bKMaskManagerInstance.hide(t))}else null==e||e.remove();this.bKMaskManagerInstance.removeClickEvent()}},{key:"removeLastEvent",value:function(){this.bKMaskManagerInstance.destroyEvent(this.uniqId)}},{key:"onMaskClickFn",value:function(e){if(this.clickFn){var t=this.clickFn.fn;t&&Reflect.apply(t,this,[e])}}}]),e}(),te=new ee;function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ie(e){return function(e){if(Array.isArray(e))return ne(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var re=a(8022);const oe=(e=>{var t={};return a.d(t,e),t})({createPopper:()=>n.createPopper});var ae,se=function(){function e(t,n,i){var r,o;P(this,e),this.isShow=!1,this.trigger=void 0,this.instance=void 0,this.always=!1,this.reference=void 0,this.referenceTarget=void 0,this.popperRefer=void 0,this.delay=50,this.isInnerPopper=!1,this.disabled=!1,this.afterShow=null,this.afterHidden=null,this.appendTo="parent",this.container=null,this.fixOnBoundary=!1,this.instanceOptions=this.initDefaultOptions(i),this.reference=this.resolveInputSelectorToHtmlElement(t),this.popperRefer=this.resolveInputSelectorToHtmlElement(n),this.referenceTarget=this.getTargetReferenceElement(),this.container=null===(r=this.popperRefer)||void 0===r?void 0:r.parentElement,this.isShow=!!(null===(o=this.instanceOptions)||void 0===o?void 0:o.isShow),this.always=this.instanceOptions.always,this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden="function"==typeof i.afterHidden?i.afterHidden:function(){},this.afterShow="function"==typeof i.afterShow?i.afterShow:function(){},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),(this.isShow||this.always)&&this.show(null)}return D(e,[{key:"forceUpdate",value:function(){var e;null===(e=this.instance)||void 0===e||e.forceUpdate()}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.update()}},{key:"updateOptions",value:function(e){var t;this.instanceOptions=this.initDefaultOptions(e),this.isShow=!!(null===(t=this.instanceOptions)||void 0===t?void 0:t.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}},{key:"setOptions",value:function(e){var t;null===(t=this.instance)||void 0===t||t.setOptions(e)}},{key:"destroy",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy()}},{key:"updateDisabled",value:function(e){this.disabled=null!=e?e:!this.disabled,this.disabled&&this.hide()}},{key:"show",value:function(e){var t;this.disabled||(null===(t=this.popperRefer)||void 0===t||t.setAttribute("data-show",""),this.setOptions({modifiers:[].concat(ie(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!0}])}),this.update(),this.isShow=!0,this.afterShow(),this.fixOnBoundary||this.appendToTarget())}},{key:"hide",value:function(){var e;this.always||(null===(e=this.popperRefer)||void 0===e||e.removeAttribute("data-show"),this.setOptions({modifiers:[].concat(ie(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!1}])}),this.isShow=!1,this.isInnerPopper=!1,this.afterHidden(),this.fixOnBoundary||this.restorePopContent())}},{key:"restorePopContent",value:function(){var e=this.getAppendToTarget();E(e)&&e.contains(this.popperRefer)&&this.container&&!this.container.contains(this.popperRefer)&&this.container.append(this.popperRefer)}},{key:"appendToTarget",value:function(){var e=this.getAppendToTarget();E(e)&&e.contains(this.popperRefer)&&e.append(this.popperRefer)}},{key:"getAppendToTarget",value:function(){var e=this.appendTo,t=e;return"parent"!==e&&"string"==typeof e&&(t=document.querySelector(e)),t}},{key:"initDefaultOptions",value:function(e){var t=this,n=T({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},e||{}),i=n.onFirstUpdate;return n.onFirstUpdate=function(e){"function"==typeof i&&(i.call(t,e),t.handleFirstUpdate())},n}},{key:"handleFirstUpdate",value:function(){this.fixOnBoundary&&this.appendToTarget()}},{key:"getTargetReferenceElement",value:function(){return this.isElement(this.reference)&&1===this.reference.childElementCount?this.reference.firstElementChild:this.reference}},{key:"initInstance",value:function(){var e,t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=(0,oe.createPopper)(this.referenceTarget,this.popperRefer,this.instanceOptions),null===(e=this.popperRefer)||void 0===e||e.setAttribute("data-theme",null!==(t=this.instanceOptions.theme)&&void 0!==t?t:"dark")):console.error("reference or popperRefer is null, please check html element."))}},{key:"resolveInputSelectorToHtmlElement",value:function(e){if(this.isElement(e))return e;if("string"==typeof e)return document.querySelector(e);if("object"===c(e)){if(Object.prototype.hasOwnProperty.call(e,"getBoundingClientRect"))return e}else console.error("'getBoundingClientRect' is needed when use virtual elements");return null}},{key:"isElement",value:function(e){return E(e)}},{key:"registerEvents",value:function(){var e=this;this.isElement(this.referenceTarget)&&"hover"===this.trigger&&(["mouseenter","focus"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(n){"mouseenter"===t&&(e.isInnerPopper=!0),e.show(n)}))})),["mouseleave","blur"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(){e.isInnerPopper=!1,setTimeout((function(){!e.isInnerPopper&&e.hide()}),e.delay)}))})),this.isElement(this.popperRefer)&&["mouseenter","mouseleave"].forEach((function(t){e.popperRefer.addEventListener(t,(function(){"mouseenter"===t&&(e.isInnerPopper=!0),"mouseleave"===t&&e.hide()}))}))),"click"===this.trigger&&["click"].forEach((function(t){document.body.addEventListener(t,(function(t){e.isSameElement(t.target,e.reference)||e.reference.contains(t.target)?e.show(t):!e.isShow||e.isSameElement(t.target,e.popperRefer)||e.popperRefer.contains(t.target)||e.hide()}))}))}},{key:"isSameElement",value:function(e,t){return e&&(e===t||e===t.firstElementChild)}}]),e}(),ue=null,ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#";if(null===ue){ue="id_".concat((0,re.v4)());var t=document.createElement("div");t.setAttribute("id",ue),t.setAttribute("data-popper-id",ue),document.body.append(t)}return"".concat(e).concat(ue)};function le(){if(void 0!==ae)return ae;var e=document.createElement("div");e.className="bk-scrollbar-wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var i=n.offsetWidth;return e.parentNode.removeChild(e),ae=t-i}function fe(e,t){return fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fe(e,t)}function pe(e){return pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pe(e)}const he=(e=>{var t={};return a.d(t,e),t})({createTypes:()=>i.createTypes,string:()=>i.string,toType:()=>i.toType});function de(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=pe(e);if(t){var r=pe(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}var ve,ye,ge,me,ke,be,Te,Ie,Oe,Ee,Se,Me,we,xe,Ae,Le,Re=(0,he.createTypes)({});function Ne(e){return e.reduce((function(e,t){return e[t]=t,e}),Object.create(null))}function Ce(){return(0,he.string)().def(ge.SHOW)}function Pe(){return(0,he.string)().def(me.LEFT)}function je(){return(0,he.string)().def(be.BOTTOM)}function Ue(){return(0,he.string)().def(Te.HOVER)}function De(){return(0,he.toType)("popRenderType",{}).def(Ie.SHOWN)}function _e(){return(0,he.toType)("dialogType",{default:Oe.OPERATION})}function Fe(){return(0,he.toType)("direction",{}).def(Ee.HORIZONTAL)}function Be(){return(0,he.toType)("lineType",{}).def(Se.DASHED)}function He(){return(0,he.toType)("tagTheme",{}).def()}function Ve(){return(0,he.toType)("switcherTheme",{}).def(Le.SUCCESS)}function ze(){return(0,he.toType)("progressStrokeLineCap",{}).def(xe.ROUNDE)}function qe(){return(0,he.toType)("progress",{}).def(Ae.LINE)}function We(){return(0,he.toType)("behavior",{}).def(we.NORMAL)}!function(e){e.SMALL="small",e.LARGE="large",e.DEFAULT="default"}(ve||(ve={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(ye||(ye={})),function(e){e.IF="if",e.SHOW="show"}(ge||(ge={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(me||(me={})),function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.DANGER="danger"}(ke||(ke={})),function(e){e.AUTO="auto",e.AUTO_START="auto-start",e.AUTO_END="auto-end",e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end",e.RIGHT_START="right-start",e.RIGHT_END="right-end",e.LEFT_START="left-start",e.LEFT_END="left-end"}(be||(be={})),function(e){e.HOVER="hover",e.CLICK="click",e.MANUAL="manual"}(Te||(Te={})),function(e){e.AUTO="auto",e.SHOWN="shown"}(Ie||(Ie={})),function(e){e.SHOW="show",e.OPERATION="operation",e.CONFIRM="confirm",e.PROCESS="process"}(Oe||(Oe={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(Ee||(Ee={})),function(e){e.DASHED="dashed",e.SOLID="solid"}(Se||(Se={})),function(e){e.UNKNOWN="",e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.DANGER="danger"}(Me||(Me={})),function(e){e.SIMPLICITY="simplicity",e.NORMAL="normal"}(we||(we={})),function(e){e.BUTT="butt",e.SQUARE="square",e.ROUNDE="round"}(xe||(xe={})),function(e){e.LINE="line",e.CIRCLE="circle",e.DASHBOARD="dashboard"}(Ae||(Ae={})),function(e){e.SUCCESS="success",e.PRIMARY="primary"}(Le||(Le={}));var Ke,Ge=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fe(e,t)}(n,e);var t=de(n);function n(){return P(this,n),t.apply(this,arguments)}return D(n,null,[{key:"size",value:function(){var e=["small","default","large"];return(0,he.toType)("Size",{validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))},default:"default"})}},{key:"theme",value:function(){var e=["primary","warning","success","danger"];return(0,he.toType)("Theme",{validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))}})}},{key:"placement",value:function(){var e=["top","left","right","bottom"];return(0,he.toType)("Placements",{validator:function(t){return!(t&&!e.includes(t))},default:"top"})}},{key:"style",value:function(){return(0,he.toType)("Style",{type:[String,Object]})}},{key:"position",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["top-left","top-right","bottom-left","bottom-right"];return(0,he.toType)("positions",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid positions, ".concat(t,", the position must be one of 【").concat(e.join(" | "),"】")),1))},default:"top-center"})}}]),n}(Re);function Ze(){return(0,he.toType)("selectedStyle",{}).def(Ke.CHECK)}function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(e).filter((function(e){return e[1]})).map((function(e){return e[0]})).join(" ").concat(t?" ".concat(t):"")}!function(e){e.CHECKBOX="checkbox",e.CHECK="check"}(Ke||(Ke={}));var Xe=Object.create({}),Je=function(){},$e=function(){return null},Qe=function(e){return Object.keys(e).length<1},et=function(e){return e.install=function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).prefix,i=t.config.globalProperties.bkUIPrefix||n||"Bk";t.component(i+e.name,e)},e},tt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;return e.install=function(r){var o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).prefix,a=r.config.globalProperties.bkUIPrefix||o||"Bk";i&&r.directive(a+i.name,i.directive),r.component(a+e.name,e),!n&&Object.values(t).forEach((function(e){r.component(a+e.name,e)}))},Object.keys(t).forEach((function(n){e[n]=t[n]})),e};function nt(e){return"".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bk","-").concat(e)}function it(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,i=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=function(){var o=this,a=arguments;if(e&&clearTimeout(e),r){var s=!e;e=setTimeout((function(){e=null}),n),s&&(t=i.apply(o,a))}else e=setTimeout((function(){i.apply(o,a)}),n);return t};return o.cancel=function(){clearTimeout(e),e=null},o}function rt(e,t){return JSON.parse(JSON.stringify(e,(function(e,n){if(!t.includes(e))return n})))}function ot(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){if(Array.isArray(e[n]))return ot(e[n],t[n]);if(e[n]!==t[n])return!1}return!0}})();var u=s.oY,c=s.p3,l=s.Ql,f=s.Eo,p=s.mZ,h=s.Wg,d=s._D,v=s.dq,y=s.kT,g=s.WF,m=s.Gl,k=s.VS,b=s.Um,T=s._h,I=s.rU,O=s._q,E=s.Hl,S=s.Mc,M=s.ng,w=s.Pi,x=s.y2,A=s.qt,L=s.aL,R=s.mO,N=s.BZ,C=s.p,P=s.XR,j=s.gg,U=s.bY,D=s.os,_=s.WW,F=s.h6,B=s.Lx,H=s.aR,V=s.ue,z=s.kC,q=s.ao,W=s.Sh,K=s.d9,G=s.Ds,Z=s.ou,Y=s.zo,X=s.cA,J=s.w$,$=s.b_,Q=s.xE,ee=s.vh,te=s.ks,ne=s.Hv,ie=s.kJ,re=s.kK,oe=s.xb,ae=s.SI,se=s.xV,ue=s.sS,ce=s.Kn,le=s.zW,fe=s.oq,pe=s.TS,he=s.NG,de=s.WC,ve=s.Zd,ye=s.ZT,ge=s.z3,me=s.S1,ke=s.on,be=s.Tf,Te=s.MX,Ie=s.OB,Oe=s.Ay,Ee=s.wB,Se=s.h5,Me=s.SM,we=s.LF,xe=s.b,Ae=s._7,Le=s.cI,Re=s.A9,Ne=s.Be,Ce=s.nz,Pe=s.B;export{u as AlignEnum,c as BKLAYERD_INDEX_EFAULT_VALUE,l as BKLAYERTYPE,f as BKPopIndexManager,p as BKPopover,h as BkMaskManager,d as DialogTypeEnum,v as DirectionEnum,y as EMPTY_OBJ,g as InputBehaviorEnum,m as InputBehaviorType,k as LineStyleEnum,b as PlacementEnum,T as Placements,I as ProgressEnum,O as ProgressStrokeLineCapEnum,E as ProgressStrokeLineCapType,S as ProgressType,M as PropTypes,w as RenderDirectiveEnum,x as RenderType,A as SelectedType,L as SelectedTypeEnum,R as SizeEnum,N as SwitcherThemeEnum,C as SwitcherThemeType,P as TagThemeEnum,j as TagThemeType,U as ThemeEnum,D as TriggerEnum,_ as alignType,F as arrayEqual,B as bKMaskManager,H as bkPopIndexManager,V as bkZIndexManager,z as capitalize,q as checkOverflow,W as classes,K as clone,G as debounce,Z as dialogTypeUnion,Y as directionType,X as elementsEqual,J as filterProperty,$ as finiteOrDefault,Q as formItemKey,ee as formKey,te as getPopContainerId,ne as hasOverflowEllipsis,ie as isArray,re as isElement,oe as isEmpty,ae as isEmptyObj,se as isFinite,ue as isNullOrUndef,ce as isObject,le as lineStyleType,fe as maybeShowTooltip,pe as merge,he as mergeIf,de as mergerFn,ve as mergerIfFn,ye as noop,ge as observerResize,me as off,ke as on,be as placementType,Te as random,Ie as renderDirectiveType,Oe as renderEmptyVNode,Ee as renderType,Se as resolveClassName,Me as scrollTop,we as scrollbarWidth,xe as stringEnum,Ae as triggerType,Le as useForm,Re as useFormItem,Ne as valueOrDefault,Ce as withInstall,Pe as withInstallProps};
@@ -32,10 +32,8 @@ export declare class BkMaskManager {
32
32
  private lastUUID;
33
33
  /** 遮罩样式 **/
34
34
  private readonly maskStyle;
35
- private onClick;
36
35
  private isInit;
37
36
  private maskAttrTag;
38
- private popInstance?;
39
37
  /**
40
38
  * 遮罩管理器
41
39
  *
@@ -44,6 +42,7 @@ export declare class BkMaskManager {
44
42
  */
45
43
  constructor(config?: BkMaskManagerConfig);
46
44
  setOption(option: BkMaskManagerConfig): void;
45
+ destroyEvent(id: any): void;
47
46
  /**
48
47
  * 显示遮罩
49
48
  * @param content 遮罩内容
@@ -52,7 +51,7 @@ export declare class BkMaskManager {
52
51
  * @param appendStyle 追加样式
53
52
  * @param transfer 是否显示将内容加入遮罩下
54
53
  */
55
- show(content?: HTMLElement, zIndex?: number, showMask?: boolean, appendStyle?: {}, uuid?: string | null, transfer?: boolean): void;
54
+ show(content?: HTMLElement, zIndex?: number, showMask?: boolean, appendStyle?: {}, uuid?: string | null, transfer?: boolean, onMaskClick?: any, instanceId?: any): void;
56
55
  hide(transfer?: boolean, content?: HTMLElement, uuid?: string): void;
57
56
  storeMaskInsCfg(config: MaskConfigStore): MaskConfigStore;
58
57
  /**
@@ -62,6 +61,7 @@ export declare class BkMaskManager {
62
61
  backupActiveInstance(): void;
63
62
  backupContentElement(content?: HTMLElement): void;
64
63
  getActiveContentInstance(): HTMLElement;
64
+ removeClickEvent(): void;
65
65
  private initInstance;
66
66
  /**
67
67
  * 初始化当前遮罩管理器
@@ -69,7 +69,6 @@ export declare class BkMaskManager {
69
69
  */
70
70
  private getMask;
71
71
  private catchClickEvent;
72
- private removeClickEvent;
73
72
  private handleMaskClick;
74
73
  private getBackupMask;
75
74
  /**
@@ -1,10 +1,13 @@
1
1
  export declare class BKPopIndexManager {
2
2
  /** 用来缓存弹出层实例 */
3
- private popInstanceList;
4
3
  private readonly uuidAttrName;
5
4
  private clickFn?;
6
5
  private bKMaskManagerInstance;
6
+ private transfer;
7
+ private uniqId;
7
8
  constructor(options?: any);
9
+ get popInstanceList(): any[];
10
+ set popInstanceList(val: any[]);
8
11
  getParentNode(transfer: any): any;
9
12
  onMaskClick(callFn: (e: MouseEvent) => void, target: HTMLElement): void;
10
13
  /**
@@ -15,7 +18,7 @@ export declare class BKPopIndexManager {
15
18
  * @param transfer 是否显示在body内(即是否显示在div#app内,默认为false)
16
19
  * @returns
17
20
  */
18
- show(content?: HTMLElement, showMask?: boolean, appendStyle?: {}, transfer?: boolean, zindex?: any): void;
21
+ show(content?: HTMLElement, showMask?: boolean, appendStyle?: {}, transfer?: boolean, zindex?: any, onMaskClick?: any): void;
19
22
  /**
20
23
  * 销毁指定实例
21
24
  * @param content 指定实例内容
@@ -32,6 +35,7 @@ export declare class BKPopIndexManager {
32
35
  * @param content { HTMLElement } 关闭弹窗内容
33
36
  * **/
34
37
  hide(content?: HTMLElement, transfer?: boolean): void;
38
+ removeLastEvent(): void;
35
39
  private onMaskClickFn;
36
40
  }
37
41
  export declare const bkPopIndexManager: BKPopIndexManager;
@@ -100,8 +100,8 @@ export declare class BKPopover {
100
100
  */
101
101
  private initDefaultOptions;
102
102
  /**
103
- * 判定是否需要将PopContent挂载到目标元素
104
- */
103
+ * 判定是否需要将PopContent挂载到目标元素
104
+ */
105
105
  private handleFirstUpdate;
106
106
  /**
107
107
  * 剔除 Pop 外层容器,获取目标元素
@@ -190,13 +190,14 @@ export declare function lineStyleType(): VueTypeDef<"dashed" | "solid"> & {
190
190
  default: "dashed" | "solid";
191
191
  };
192
192
  export declare enum TagThemeEnum {
193
+ UNKNOWN = "",
193
194
  SUCCESS = "success",
194
195
  INFO = "info",
195
196
  WARNING = "warning",
196
197
  DANGER = "danger"
197
198
  }
198
- export declare function TagThemeType(): VueTypeDef<"info" | "success" | "warning" | "danger"> & {
199
- default: "info" | "success" | "warning" | "danger";
199
+ export declare function TagThemeType(): VueTypeDef<"" | "info" | "success" | "warning" | "danger"> & {
200
+ default: "" | "info" | "success" | "warning" | "danger";
200
201
  };
201
202
  export declare enum InputBehaviorEnum {
202
203
  SIMPLICITY = "simplicity",
@@ -24,8 +24,8 @@ declare const BkSideslider: {
24
24
  animateType?: string;
25
25
  class?: unknown;
26
26
  style?: unknown;
27
- key?: string | number | symbol;
28
27
  ref?: import("vue").VNodeRef;
28
+ key?: string | number | symbol;
29
29
  ref_for?: boolean;
30
30
  ref_key?: string;
31
31
  onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("../shared"),require("vue"),require("../button"),require("../config-provider"),require("../modal"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../button","../config-provider","../modal"],e);else{var r="object"==typeof exports?e(require("../shared"),require("vue"),require("../button"),require("../config-provider"),require("../modal")):e(t["../shared"],t.vue,t["../button"],t["../config-provider"],t["../modal"]);for(var o in r)("object"==typeof exports?exports:t)[o]=r[o]}}(self,((t,e,r,o,n)=>(()=>{var i={4976:t=>{"use strict";t.exports=r},2717:t=>{"use strict";t.exports=o},8014:t=>{"use strict";t.exports=n},4212:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e},7609:(t,e,r)=>{var o=r(7425).default;function n(){"use strict";t.exports=n=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function d(t,e,r,o){var n=e&&e.prototype instanceof v?e:v,i=Object.create(n.prototype),c=new N(o||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var h={};function v(){}function y(){}function g(){}var m={};f(m,u,(function(){return this}));var x=Object.getPrototypeOf,b=x&&x(x(P([])));b&&b!==r&&i.call(b,u)&&(m=b);var w=g.prototype=v.prototype=Object.create(m);function j(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(n,a,c,u){var s=p(t[n],t,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==o(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var n;a(this,"_invoke",{value:function(t,o){function i(){return new e((function(e,n){r(t,o,e,n)}))}return n=n?n.then(i,i):i()}})}function O(t,e,r){var o="suspendedStart";return function(n,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===n)throw i;return{value:void 0,done:!0}}for(r.method=n,r.arg=i;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var u=p(t,e,r);if("normal"===u.type){if(o=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o="completed",r.method="throw",r.arg=u.arg)}}}function _(t,e){var r=e.method,o=t.iterator[r];if(void 0===o)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var n=p(o,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return y.prototype=g,a(w,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:y,configurable:!0}),y.displayName=f(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,f(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},j(L.prototype),f(L.prototype,s,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,o,n,i){void 0===i&&(i=Promise);var a=new L(d(t,r,o,n),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(w),f(w,l,"Generator"),f(w,u,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var o in e)r.push(o);return r.reverse(),function t(){for(;r.length;){var o=r.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},e.values=P,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return a.type="throw",a.arg=t,e.next=r,o&&(e.method="next",e.arg=void 0),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o],a=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var c=i.call(n,"catchLoc"),u=i.call(n,"finallyLoc");if(c&&u){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(c){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var n=o;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=t,a.arg=e,n?(this.method="next",this.next=n.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;E(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},7425:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},2841:(t,e,r)=>{var o=r(7609)();t.exports=o;try{regeneratorRuntime=o}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}}},a={};function c(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={exports:{}};return i[t](r,r.exports,c),r.exports}c.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return c.d(e,{a:e}),e},c.d=(t,e)=>{for(var r in e)c.o(e,r)&&!c.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},c.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),c.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var u={};return(()=>{"use strict";c.r(u),c.d(u,{default:()=>h});var t=c(4212),e=c(748),r=c(2841),o=c.n(r);Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var n=c(4976),i=c.n(n),a=c(2717),s=c(8014),l=c.n(s),f=l().propsMixin,d=Object.assign({},f);d.width.default="400",d.height.default="100%";const p=(0,e.defineComponent)({name:"Sideslider",components:{BkModal:l(),BkButton:i()},props:Object.assign(Object.assign({},d),{direction:{type:String,default:"right",validator:function(t){var e=["left","right"];return!(e.indexOf(t)<0&&(console.error("direction property is not valid: '".concat(t,"',【").concat(e.join(" | "),"】")),1))}}}),emits:["closed","update:isShow","shown","hidden","animation-end"],setup:function(t,r){var n=this,i=r.slots,c=r.emit,u=function(){return e=n,r=void 0,i=void 0,a=o().mark((function e(){var r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=!0,"function"!=typeof t.beforeClose){e.next=5;break}return e.next=4,t.beforeClose();case 4:r=e.sent;case 5:r&&(c("update:isShow",!1),c("closed"),setTimeout((function(){c("animation-end")}),250));case 6:case"end":return e.stop()}}),e)})),new(i||(i=Promise))((function(t,o){function n(t){try{u(a.next(t))}catch(t){o(t)}}function c(t){try{u(a.throw(t))}catch(t){o(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i((function(t){t(r)}))).then(n,c)}u((a=a.apply(e,r||[])).next())}));var e,r,i,a},s=function(){setTimeout((function(){c("shown")}),200)},f=function(){setTimeout((function(){c("hidden")}),200)},d=(0,a.usePrefix)().resolveClassName;return function(){var r,o={header:function(){var r,o;return(0,e.createVNode)(e.Fragment,null,[(0,e.createVNode)("div",{class:"".concat(d("sideslider-header"))},[(0,e.createVNode)("div",{class:"".concat(d("sideslider-close")," ").concat(t.direction),onClick:function(){u()}},null),(0,e.createVNode)("div",{class:"".concat(d("sideslider-title")," ").concat(t.direction)},[null!==(o=null===(r=i.header)||void 0===r?void 0:r.call(i))&&void 0!==o?o:t.title])])])},default:function(){var t,e;return null!==(e=null===(t=i.default)||void 0===t?void 0:t.call(i))&&void 0!==e?e:"Content"},footer:function(){return i.footer?(0,e.createVNode)("div",{class:"".concat(d("sideslider-footer"))},[i.footer()]):null}},n="".concat(d("sideslider-wrapper")," ").concat(t.scrollable?"scroll-able":""," ").concat(t.extCls),a=i.footer?"calc(100vh - 106px)":"calc(100vh - 52px)";return(0,e.createVNode)(l(),(0,e.mergeProps)(t,{maxHeight:a,class:n,style:"".concat(t.direction,": 0;"),onHidden:f,onShown:s,onClose:u}),"function"==typeof(r=o)||"[object Object]"===Object.prototype.toString.call(r)&&!(0,e.isVNode)(r)?o:{default:function(){return[o]}})}}}),h=(0,t.withInstall)(p)})(),u})()));
2
+ import*as t from"../shared";import*as e from"vue";import*as r from"../button";import*as n from"../config-provider";import*as o from"../modal";var i={7609:(t,e,r)=>{var n=r(7425).default;function o(){t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),c=new S(n||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var p={};function v(){}function y(){}function m(){}var g={};f(g,u,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(P([])));w&&w!==r&&i.call(w,u)&&(g=w);var b=m.prototype=v.prototype=Object.create(g);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,c,u){var s=h(t[o],t,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===p)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function _(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:k}}function k(){return{value:void 0,done:!0}}return y.prototype=m,a(b,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:y,configurable:!0}),y.displayName=f(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,f(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},L(j.prototype),f(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new j(d(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(b),f(b,l,"Generator"),f(b,u,(function(){return this})),f(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(N),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},7425:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},2841:(t,e,r)=>{var n=r(7609)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},a={};function c(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={exports:{}};return i[t](r,r.exports,c),r.exports}c.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return c.d(e,{a:e}),e},c.d=(t,e)=>{for(var r in e)c.o(e,r)&&!c.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},c.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var u={};(()=>{c.d(u,{Z:()=>x});const i=(a={withInstall:()=>t.withInstall},s={},c.d(s,a),s);var a,s;const l=(t=>{var e={};return c.d(e,t),e})({Fragment:()=>e.Fragment,createVNode:()=>e.createVNode,defineComponent:()=>e.defineComponent,isVNode:()=>e.isVNode,mergeProps:()=>e.mergeProps});var f=c(2841),d=c.n(f);Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const h=(t=>{var e={};return c.d(e,t),e})({default:()=>r.default}),p=(t=>{var e={};return c.d(e,t),e})({usePrefix:()=>n.usePrefix}),v=(t=>{var e={};return c.d(e,t),e})({default:()=>o.default});var y=v.default.propsMixin,m=Object.assign({},y);m.width.default="400",m.height.default="100%";const g=(0,l.defineComponent)({name:"Sideslider",components:{BkModal:v.default,BkButton:h.default},props:Object.assign(Object.assign({},m),{direction:{type:String,default:"right",validator:function(t){var e=["left","right"];return!(e.indexOf(t)<0&&(console.error("direction property is not valid: '".concat(t,"',【").concat(e.join(" | "),"】")),1))}}}),emits:["closed","update:isShow","shown","hidden","animation-end"],setup:function(t,e){var r=this,n=e.slots,o=e.emit,i=function(){return e=r,n=void 0,i=void 0,a=d().mark((function e(){var r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=!0,"function"!=typeof t.beforeClose){e.next=5;break}return e.next=4,t.beforeClose();case 4:r=e.sent;case 5:r&&(o("update:isShow",!1),o("closed"),setTimeout((function(){o("animation-end")}),250));case 6:case"end":return e.stop()}}),e)})),new(i||(i=Promise))((function(t,r){function o(t){try{u(a.next(t))}catch(t){r(t)}}function c(t){try{u(a.throw(t))}catch(t){r(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i((function(t){t(r)}))).then(o,c)}u((a=a.apply(e,n||[])).next())}));var e,n,i,a},a=function(){setTimeout((function(){o("shown")}),200)},c=function(){setTimeout((function(){o("hidden")}),200)},u=(0,p.usePrefix)().resolveClassName;return function(){var e,r={header:function(){var e,r;return(0,l.createVNode)(l.Fragment,null,[(0,l.createVNode)("div",{class:"".concat(u("sideslider-header"))},[(0,l.createVNode)("div",{class:"".concat(u("sideslider-close")," ").concat(t.direction),onClick:function(){i()}},null),(0,l.createVNode)("div",{class:"".concat(u("sideslider-title")," ").concat(t.direction)},[null!==(r=null===(e=n.header)||void 0===e?void 0:e.call(n))&&void 0!==r?r:t.title])])])},default:function(){var t,e;return null!==(e=null===(t=n.default)||void 0===t?void 0:t.call(n))&&void 0!==e?e:"Content"},footer:function(){return n.footer?(0,l.createVNode)("div",{class:"".concat(u("sideslider-footer"))},[n.footer()]):null}},o="".concat(u("sideslider-wrapper")," ").concat(t.scrollable?"scroll-able":""," ").concat(t.extCls),s=n.footer?"calc(100vh - 106px)":"calc(100vh - 52px)";return(0,l.createVNode)(v.default,(0,l.mergeProps)(t,{maxHeight:s,class:o,style:"".concat(t.direction,": 0;"),onHidden:c,onShown:a,onClose:i}),"function"==typeof(e=r)||"[object Object]"===Object.prototype.toString.call(e)&&!(0,l.isVNode)(e)?r:{default:function(){return[r]}})}}}),x=(0,i.withInstall)(g)})();var s=u.Z;export{s as default};
@@ -49,8 +49,8 @@ declare const Slider: {
49
49
  class?: unknown;
50
50
  style?: unknown;
51
51
  onChange?: (...args: any[]) => any;
52
- key?: string | number | symbol;
53
52
  ref?: import("vue").VNodeRef;
53
+ key?: string | number | symbol;
54
54
  ref_for?: boolean;
55
55
  ref_key?: string;
56
56
  onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {