bkui-vue 0.0.1-beta.39 → 0.0.1-beta.390

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 (718) hide show
  1. package/License.txt +14 -0
  2. package/dist/index.cjs.js +161 -36
  3. package/dist/index.esm.js +32306 -13036
  4. package/dist/index.umd.js +161 -36
  5. package/dist/style.css +1 -1
  6. package/dist/style.variable.css +1 -0
  7. package/lib/affix/affix.css +3 -0
  8. package/lib/affix/affix.d.ts +47 -0
  9. package/lib/affix/affix.less +5 -0
  10. package/lib/affix/affix.variable.css +123 -0
  11. package/lib/affix/index.d.ts +143 -0
  12. package/lib/affix/index.js +285 -0
  13. package/lib/alert/alert.css +81 -0
  14. package/lib/alert/alert.d.ts +62 -0
  15. package/lib/alert/alert.less +119 -0
  16. package/lib/alert/alert.variable.css +201 -0
  17. package/lib/alert/index.d.ts +180 -0
  18. package/lib/alert/index.js +183 -0
  19. package/lib/animate-number/animate-number.d.ts +27 -0
  20. package/lib/animate-number/index.d.ts +97 -0
  21. package/lib/animate-number/index.js +162 -0
  22. package/lib/backtop/backtop.css +50 -0
  23. package/lib/backtop/backtop.d.ts +60 -0
  24. package/lib/backtop/backtop.less +26 -0
  25. package/lib/backtop/backtop.variable.css +170 -0
  26. package/lib/backtop/index.d.ts +166 -0
  27. package/lib/backtop/index.js +188 -0
  28. package/lib/badge/badge.css +120 -0
  29. package/lib/badge/badge.d.ts +112 -0
  30. package/lib/badge/badge.less +135 -0
  31. package/lib/badge/badge.variable.css +240 -0
  32. package/lib/badge/index.d.ts +267 -0
  33. package/lib/badge/index.js +210 -0
  34. package/lib/breadcrumb/breadcrumb-item.d.ts +38 -0
  35. package/lib/breadcrumb/breadcrumb.css +119 -0
  36. package/lib/breadcrumb/breadcrumb.d.ts +54 -0
  37. package/lib/breadcrumb/breadcrumb.less +65 -0
  38. package/lib/breadcrumb/breadcrumb.variable.css +239 -0
  39. package/lib/breadcrumb/index.d.ts +196 -0
  40. package/lib/breadcrumb/index.js +263 -0
  41. package/lib/breadcrumb/props.d.ts +4 -0
  42. package/lib/button/button-group.d.ts +6 -0
  43. package/lib/button/button.css +300 -0
  44. package/lib/button/button.d.ts +163 -0
  45. package/lib/button/button.less +225 -0
  46. package/lib/button/button.variable.css +420 -0
  47. package/lib/button/index.d.ts +256 -0
  48. package/lib/button/index.js +292 -0
  49. package/lib/card/card.css +158 -0
  50. package/lib/card/card.d.ts +110 -0
  51. package/lib/card/card.less +92 -0
  52. package/lib/card/card.variable.css +278 -0
  53. package/lib/card/index.d.ts +283 -0
  54. package/lib/card/index.js +241 -0
  55. package/lib/cascader/cascader-panel.d.ts +100 -0
  56. package/lib/cascader/cascader.css +173 -0
  57. package/lib/cascader/cascader.d.ts +303 -0
  58. package/lib/cascader/cascader.less +196 -0
  59. package/lib/cascader/cascader.variable.css +293 -0
  60. package/lib/cascader/index.d.ts +868 -0
  61. package/lib/cascader/index.js +2094 -0
  62. package/lib/cascader/interface.d.ts +51 -0
  63. package/lib/cascader/node.d.ts +31 -0
  64. package/lib/cascader/store.d.ts +23 -0
  65. package/lib/checkbox/checkbox-group.d.ts +64 -0
  66. package/lib/checkbox/checkbox.css +100 -0
  67. package/lib/checkbox/checkbox.d.ts +126 -0
  68. package/lib/checkbox/checkbox.less +128 -0
  69. package/lib/checkbox/checkbox.variable.css +220 -0
  70. package/lib/checkbox/common.d.ts +14 -0
  71. package/lib/checkbox/index.d.ts +293 -0
  72. package/lib/checkbox/index.js +509 -0
  73. package/lib/checkbox/type.d.ts +15 -0
  74. package/lib/code-diff/code-diff.css +206 -0
  75. package/lib/code-diff/code-diff.d.ts +80 -0
  76. package/lib/code-diff/code-diff.less +273 -0
  77. package/lib/code-diff/code-diff.variable.css +326 -0
  78. package/lib/code-diff/index.d.ts +154 -0
  79. package/lib/code-diff/index.js +5478 -0
  80. package/lib/collapse/collapse-panel.d.ts +67 -0
  81. package/lib/collapse/collapse.css +46 -0
  82. package/lib/collapse/collapse.d.ts +65 -0
  83. package/lib/collapse/collapse.less +62 -0
  84. package/lib/collapse/collapse.variable.css +166 -0
  85. package/lib/collapse/index.d.ts +258 -0
  86. package/lib/collapse/index.js +632 -0
  87. package/lib/collapse/props.d.ts +79 -0
  88. package/lib/collapse/utils.d.ts +11 -0
  89. package/lib/color-picker/color-picker.css +275 -0
  90. package/lib/color-picker/color-picker.d.ts +144 -0
  91. package/lib/color-picker/color-picker.less +325 -0
  92. package/lib/color-picker/color-picker.variable.css +395 -0
  93. package/lib/color-picker/components/color-input.d.ts +42 -0
  94. package/lib/color-picker/components/hue-slider.d.ts +41 -0
  95. package/lib/color-picker/components/input-container.d.ts +42 -0
  96. package/lib/color-picker/components/recommend-colors.d.ts +51 -0
  97. package/lib/color-picker/components/saturation-panel.d.ts +41 -0
  98. package/lib/color-picker/index.d.ts +254 -0
  99. package/lib/color-picker/index.js +2764 -0
  100. package/lib/color-picker/utils.d.ts +37 -0
  101. package/lib/components.d.ts +59 -0
  102. package/lib/components.js +522 -0
  103. package/lib/container/col.d.ts +51 -0
  104. package/lib/container/container.css +91 -0
  105. package/lib/container/container.d.ts +83 -0
  106. package/lib/container/container.less +20 -0
  107. package/lib/container/container.variable.css +211 -0
  108. package/lib/container/index.d.ts +223 -0
  109. package/lib/container/index.js +308 -0
  110. package/lib/container/row.d.ts +4 -0
  111. package/lib/date-picker/base/confirm.d.ts +74 -0
  112. package/lib/date-picker/base/date-table.d.ts +96 -0
  113. package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
  114. package/lib/date-picker/base/time-spinner.d.ts +151 -0
  115. package/lib/date-picker/date-picker.css +434 -0
  116. package/lib/date-picker/date-picker.d.ts +323 -0
  117. package/lib/date-picker/date-picker.less +558 -0
  118. package/lib/date-picker/date-picker.variable.css +554 -0
  119. package/lib/date-picker/fecha.d.ts +6 -0
  120. package/lib/date-picker/index.d.ts +780 -0
  121. package/lib/date-picker/index.js +5500 -0
  122. package/lib/date-picker/interface.d.ts +32 -0
  123. package/lib/date-picker/panel/date-range.d.ts +309 -0
  124. package/lib/date-picker/panel/date.d.ts +206 -0
  125. package/lib/date-picker/panel/time-range.d.ts +489 -0
  126. package/lib/date-picker/panel/time.d.ts +448 -0
  127. package/lib/date-picker/props.d.ts +161 -0
  128. package/lib/date-picker/time-picker.d.ts +381 -0
  129. package/lib/date-picker/utils.d.ts +117 -0
  130. package/lib/dialog/dialog.css +190 -0
  131. package/lib/dialog/dialog.d.ts +311 -0
  132. package/lib/dialog/dialog.less +153 -0
  133. package/lib/dialog/dialog.variable.css +310 -0
  134. package/lib/dialog/index.d.ts +722 -0
  135. package/lib/dialog/index.js +455 -0
  136. package/lib/dialog/props.d.ts +130 -0
  137. package/lib/directives/clickoutside.d.ts +3 -0
  138. package/lib/directives/ellipsis.d.ts +7 -0
  139. package/lib/directives/index.d.ts +4 -0
  140. package/lib/directives/index.js +1374 -0
  141. package/lib/directives/mousewheel.d.ts +3 -0
  142. package/lib/directives/tooltips.d.ts +18 -0
  143. package/lib/dist.index.js +81 -0
  144. package/lib/divider/divider.css +38 -0
  145. package/lib/divider/divider.d.ts +48 -0
  146. package/lib/divider/divider.less +53 -0
  147. package/lib/divider/divider.variable.css +158 -0
  148. package/lib/divider/index.d.ts +142 -0
  149. package/lib/divider/index.js +444 -0
  150. package/lib/divider/props.d.ts +21 -0
  151. package/lib/dropdown/dropdown-item.d.ts +19 -0
  152. package/lib/dropdown/dropdown-menu.d.ts +16 -0
  153. package/lib/dropdown/dropdown.css +49 -0
  154. package/lib/dropdown/dropdown.d.ts +93 -0
  155. package/lib/dropdown/dropdown.less +67 -0
  156. package/lib/dropdown/dropdown.variable.css +169 -0
  157. package/lib/dropdown/index.d.ts +256 -0
  158. package/lib/dropdown/index.js +332 -0
  159. package/lib/exception/exception.css +58 -0
  160. package/lib/exception/exception.d.ts +33 -0
  161. package/lib/exception/exception.less +76 -0
  162. package/lib/exception/exception.variable.css +178 -0
  163. package/lib/exception/index.d.ts +111 -0
  164. package/lib/exception/index.js +357 -0
  165. package/lib/exception/typings/index.d.ts +4 -0
  166. package/lib/fixed-navbar/fixed-navbar.css +42 -0
  167. package/lib/fixed-navbar/fixed-navbar.d.ts +48 -0
  168. package/lib/fixed-navbar/fixed-navbar.less +53 -0
  169. package/lib/fixed-navbar/fixed-navbar.variable.css +162 -0
  170. package/lib/fixed-navbar/index.d.ts +147 -0
  171. package/lib/fixed-navbar/index.js +150 -0
  172. package/lib/form/compose-form-item.d.ts +16 -0
  173. package/lib/form/form-item.d.ts +160 -0
  174. package/lib/form/form.css +137 -0
  175. package/lib/form/form.d.ts +88 -0
  176. package/lib/form/form.less +170 -0
  177. package/lib/form/form.variable.css +257 -0
  178. package/lib/form/index.d.ts +319 -0
  179. package/lib/form/index.js +900 -0
  180. package/lib/form/type.d.ts +22 -0
  181. package/lib/form/utils.d.ts +2 -0
  182. package/lib/form/validator.d.ts +9 -0
  183. package/lib/icon/angle-double-down-line.d.ts +4 -0
  184. package/lib/icon/angle-double-down-line.js +366 -0
  185. package/lib/icon/angle-double-left-line.d.ts +4 -0
  186. package/lib/icon/angle-double-left-line.js +366 -0
  187. package/lib/icon/angle-double-left.d.ts +4 -0
  188. package/lib/icon/angle-double-left.js +366 -0
  189. package/lib/icon/angle-double-right-line.d.ts +4 -0
  190. package/lib/icon/angle-double-right-line.js +366 -0
  191. package/lib/icon/angle-double-right.d.ts +4 -0
  192. package/lib/icon/angle-double-right.js +366 -0
  193. package/lib/icon/angle-double-up-line.d.ts +4 -0
  194. package/lib/icon/angle-double-up-line.js +366 -0
  195. package/lib/icon/angle-down-fill.d.ts +4 -0
  196. package/lib/icon/angle-down-fill.js +366 -0
  197. package/lib/icon/angle-down-line.d.ts +4 -0
  198. package/lib/icon/angle-down-line.js +366 -0
  199. package/lib/icon/angle-down.d.ts +4 -0
  200. package/lib/icon/angle-down.js +366 -0
  201. package/lib/icon/angle-left.d.ts +4 -0
  202. package/lib/icon/angle-left.js +366 -0
  203. package/lib/icon/angle-right.d.ts +4 -0
  204. package/lib/icon/angle-right.js +366 -0
  205. package/lib/icon/angle-up-fill.d.ts +4 -0
  206. package/lib/icon/angle-up-fill.js +366 -0
  207. package/lib/icon/angle-up.d.ts +4 -0
  208. package/lib/icon/angle-up.js +366 -0
  209. package/lib/icon/archive-fill.d.ts +4 -0
  210. package/lib/icon/archive-fill.js +366 -0
  211. package/lib/icon/arrows-left.d.ts +4 -0
  212. package/lib/icon/arrows-left.js +366 -0
  213. package/lib/icon/arrows-right.d.ts +4 -0
  214. package/lib/icon/arrows-right.js +366 -0
  215. package/lib/icon/audio-fill.d.ts +4 -0
  216. package/lib/icon/audio-fill.js +366 -0
  217. package/lib/icon/bk.d.ts +4 -0
  218. package/lib/icon/bk.js +366 -0
  219. package/lib/icon/circle.d.ts +4 -0
  220. package/lib/icon/circle.js +366 -0
  221. package/lib/icon/close-line.d.ts +4 -0
  222. package/lib/icon/close-line.js +366 -0
  223. package/lib/icon/close.d.ts +4 -0
  224. package/lib/icon/close.js +366 -0
  225. package/lib/icon/code.d.ts +4 -0
  226. package/lib/icon/code.js +366 -0
  227. package/lib/icon/cog-shape.d.ts +4 -0
  228. package/lib/icon/cog-shape.js +366 -0
  229. package/lib/icon/collapse-left.d.ts +4 -0
  230. package/lib/icon/collapse-left.js +366 -0
  231. package/lib/icon/copy.d.ts +4 -0
  232. package/lib/icon/copy.js +366 -0
  233. package/lib/icon/data-shape.d.ts +4 -0
  234. package/lib/icon/data-shape.js +366 -0
  235. package/lib/icon/del.d.ts +4 -0
  236. package/lib/icon/del.js +366 -0
  237. package/lib/icon/doc-fill.d.ts +4 -0
  238. package/lib/icon/doc-fill.js +366 -0
  239. package/lib/icon/done.d.ts +4 -0
  240. package/lib/icon/done.js +366 -0
  241. package/lib/icon/down-shape.d.ts +4 -0
  242. package/lib/icon/down-shape.js +366 -0
  243. package/lib/icon/down-small.d.ts +4 -0
  244. package/lib/icon/down-small.js +366 -0
  245. package/lib/icon/edit-line.d.ts +4 -0
  246. package/lib/icon/edit-line.js +366 -0
  247. package/lib/icon/ellipsis.d.ts +4 -0
  248. package/lib/icon/ellipsis.js +366 -0
  249. package/lib/icon/enlarge-line.d.ts +4 -0
  250. package/lib/icon/enlarge-line.js +366 -0
  251. package/lib/icon/error.d.ts +4 -0
  252. package/lib/icon/error.js +366 -0
  253. package/lib/icon/excel-fill.d.ts +4 -0
  254. package/lib/icon/excel-fill.js +366 -0
  255. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  256. package/lib/icon/exclamation-circle-shape.js +366 -0
  257. package/lib/icon/eye.d.ts +4 -0
  258. package/lib/icon/eye.js +366 -0
  259. package/lib/icon/filliscreen-line.d.ts +4 -0
  260. package/lib/icon/filliscreen-line.js +366 -0
  261. package/lib/icon/folder-open.d.ts +4 -0
  262. package/lib/icon/folder-open.js +366 -0
  263. package/lib/icon/folder-shape-open.d.ts +4 -0
  264. package/lib/icon/folder-shape-open.js +366 -0
  265. package/lib/icon/folder-shape.d.ts +4 -0
  266. package/lib/icon/folder-shape.js +366 -0
  267. package/lib/icon/folder.d.ts +4 -0
  268. package/lib/icon/folder.js +366 -0
  269. package/lib/icon/funnel.d.ts +4 -0
  270. package/lib/icon/funnel.js +366 -0
  271. package/lib/icon/help-document-fill.d.ts +4 -0
  272. package/lib/icon/help-document-fill.js +366 -0
  273. package/lib/icon/help-fill.d.ts +4 -0
  274. package/lib/icon/help-fill.js +366 -0
  275. package/lib/icon/help.d.ts +4 -0
  276. package/lib/icon/help.js +366 -0
  277. package/lib/icon/icon.d.ts +12 -0
  278. package/lib/icon/image-fill.d.ts +4 -0
  279. package/lib/icon/image-fill.js +366 -0
  280. package/lib/icon/img-error.d.ts +4 -0
  281. package/lib/icon/img-placehoulder.d.ts +4 -0
  282. package/lib/icon/img-placehoulder.js +412 -0
  283. package/lib/icon/index.d.ts +79 -0
  284. package/lib/icon/index.js +2287 -0
  285. package/lib/icon/info-line.d.ts +4 -0
  286. package/lib/icon/info-line.js +412 -0
  287. package/lib/icon/info.d.ts +4 -0
  288. package/lib/icon/info.js +412 -0
  289. package/lib/icon/left-shape.d.ts +4 -0
  290. package/lib/icon/left-shape.js +412 -0
  291. package/lib/icon/left-turn-line.d.ts +4 -0
  292. package/lib/icon/left-turn-line.js +412 -0
  293. package/lib/icon/narrow-line.d.ts +4 -0
  294. package/lib/icon/narrow-line.js +412 -0
  295. package/lib/icon/original.d.ts +4 -0
  296. package/lib/icon/original.js +412 -0
  297. package/lib/icon/pdf-fill.d.ts +4 -0
  298. package/lib/icon/pdf-fill.js +412 -0
  299. package/lib/icon/play-shape.d.ts +4 -0
  300. package/lib/icon/play-shape.js +412 -0
  301. package/lib/icon/plus.d.ts +4 -0
  302. package/lib/icon/plus.js +412 -0
  303. package/lib/icon/ppt-fill.d.ts +4 -0
  304. package/lib/icon/ppt-fill.js +412 -0
  305. package/lib/icon/qq.d.ts +4 -0
  306. package/lib/icon/qq.js +412 -0
  307. package/lib/icon/right-shape.d.ts +4 -0
  308. package/lib/icon/right-shape.js +412 -0
  309. package/lib/icon/right-turn-line.d.ts +4 -0
  310. package/lib/icon/right-turn-line.js +412 -0
  311. package/lib/icon/search.d.ts +4 -0
  312. package/lib/icon/search.js +412 -0
  313. package/lib/icon/share.d.ts +4 -0
  314. package/lib/icon/share.js +412 -0
  315. package/lib/icon/spinner.d.ts +4 -0
  316. package/lib/icon/spinner.js +412 -0
  317. package/lib/icon/success.d.ts +4 -0
  318. package/lib/icon/success.js +412 -0
  319. package/lib/icon/switcher-loading.d.ts +4 -0
  320. package/lib/icon/switcher-loading.js +412 -0
  321. package/lib/icon/text-file.d.ts +4 -0
  322. package/lib/icon/text-file.js +412 -0
  323. package/lib/icon/text-fill.d.ts +4 -0
  324. package/lib/icon/text-fill.js +412 -0
  325. package/lib/icon/transfer.d.ts +4 -0
  326. package/lib/icon/transfer.js +412 -0
  327. package/lib/icon/tree-application-shape.d.ts +4 -0
  328. package/lib/icon/tree-application-shape.js +412 -0
  329. package/lib/icon/unfull-screen.d.ts +4 -0
  330. package/lib/icon/unfull-screen.js +412 -0
  331. package/lib/icon/unvisible.d.ts +4 -0
  332. package/lib/icon/unvisible.js +412 -0
  333. package/lib/icon/up-shape.d.ts +4 -0
  334. package/lib/icon/up-shape.js +412 -0
  335. package/lib/icon/upload.d.ts +4 -0
  336. package/lib/icon/upload.js +412 -0
  337. package/lib/icon/video-fill.d.ts +4 -0
  338. package/lib/icon/video-fill.js +412 -0
  339. package/lib/icon/warn.d.ts +4 -0
  340. package/lib/icon/warn.js +412 -0
  341. package/lib/icon/weixin.d.ts +4 -0
  342. package/lib/icon/weixin.js +412 -0
  343. package/lib/image/image-viewer.css +142 -0
  344. package/lib/image/image-viewer.d.ts +73 -0
  345. package/lib/image/image-viewer.less +168 -0
  346. package/lib/image/image-viewer.variable.css +142 -0
  347. package/lib/image/image.css +37 -0
  348. package/lib/image/image.d.ts +93 -0
  349. package/lib/image/image.less +44 -0
  350. package/lib/image/image.variable.css +37 -0
  351. package/lib/image/index.d.ts +246 -0
  352. package/lib/image/index.js +824 -0
  353. package/lib/image/props.d.ts +71 -0
  354. package/lib/index.d.ts +4 -0
  355. package/lib/index.js +85 -0
  356. package/lib/info-box/index.d.ts +6 -0
  357. package/lib/info-box/index.js +1730 -0
  358. package/lib/info-box/info-box.css +37 -0
  359. package/lib/info-box/info-box.d.ts +26 -0
  360. package/lib/info-box/info-box.less +51 -0
  361. package/lib/info-box/info-box.variable.css +157 -0
  362. package/lib/input/index.d.ts +528 -0
  363. package/lib/input/index.js +778 -0
  364. package/lib/input/input.css +351 -0
  365. package/lib/input/input.d.ts +337 -0
  366. package/lib/input/input.less +306 -0
  367. package/lib/input/input.variable.css +471 -0
  368. package/lib/link/index.d.ts +172 -0
  369. package/lib/link/index.js +158 -0
  370. package/lib/link/link.css +55 -0
  371. package/lib/link/link.d.ts +60 -0
  372. package/lib/link/link.less +76 -0
  373. package/lib/link/link.variable.css +175 -0
  374. package/lib/loading/index.d.ts +257 -0
  375. package/lib/loading/index.js +249 -0
  376. package/lib/loading/loading.css +305 -0
  377. package/lib/loading/loading.d.ts +160 -0
  378. package/lib/loading/loading.less +193 -0
  379. package/lib/loading/loading.variable.css +425 -0
  380. package/lib/menu/index.d.ts +180 -0
  381. package/lib/menu/index.js +732 -0
  382. package/lib/menu/menu-group.d.ts +14 -0
  383. package/lib/menu/menu-item.d.ts +16 -0
  384. package/lib/menu/menu.css +233 -0
  385. package/lib/menu/menu.d.ts +55 -0
  386. package/lib/menu/menu.less +180 -0
  387. package/lib/menu/menu.variable.css +353 -0
  388. package/lib/menu/submenu.css +3 -0
  389. package/lib/menu/submenu.d.ts +22 -0
  390. package/lib/menu/submenu.less +5 -0
  391. package/lib/menu/submenu.variable.css +123 -0
  392. package/lib/menu/utils.d.ts +41 -0
  393. package/lib/message/index.d.ts +2 -0
  394. package/lib/message/index.js +329 -0
  395. package/lib/message/message.css +74 -0
  396. package/lib/message/message.less +87 -0
  397. package/lib/message/message.variable.css +194 -0
  398. package/lib/message/messageConstructor.d.ts +109 -0
  399. package/lib/modal/index.d.ts +592 -0
  400. package/lib/modal/index.js +329 -0
  401. package/lib/modal/modal.css +73 -0
  402. package/lib/modal/modal.d.ts +209 -0
  403. package/lib/modal/modal.less +48 -0
  404. package/lib/modal/modal.variable.css +193 -0
  405. package/lib/modal/props.mixin.d.ts +87 -0
  406. package/lib/navigation/index.d.ts +311 -0
  407. package/lib/navigation/index.js +363 -0
  408. package/lib/navigation/navigation-title.d.ts +25 -0
  409. package/lib/navigation/navigation.css +184 -0
  410. package/lib/navigation/navigation.d.ts +120 -0
  411. package/lib/navigation/navigation.less +210 -0
  412. package/lib/navigation/navigation.variable.css +304 -0
  413. package/lib/notify/index.d.ts +2 -0
  414. package/lib/notify/index.js +358 -0
  415. package/lib/notify/notify.css +69 -0
  416. package/lib/notify/notify.less +81 -0
  417. package/lib/notify/notify.variable.css +189 -0
  418. package/lib/notify/notifyConstructor.d.ts +132 -0
  419. package/lib/overflow-title/components/OverflowTitle.d.ts +38 -0
  420. package/lib/overflow-title/directive/overflowTitle.d.ts +3 -0
  421. package/lib/overflow-title/index.d.ts +129 -0
  422. package/lib/overflow-title/index.js +476 -0
  423. package/lib/overflow-title/overflow.css +11 -0
  424. package/lib/overflow-title/overflow.less +13 -0
  425. package/lib/overflow-title/overflow.variable.css +11 -0
  426. package/lib/overflow-title/props.d.ts +16 -0
  427. package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
  428. package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
  429. package/lib/pagination/index.d.ts +410 -0
  430. package/lib/pagination/index.js +937 -0
  431. package/lib/pagination/pagination.css +205 -0
  432. package/lib/pagination/pagination.d.ts +230 -0
  433. package/lib/pagination/pagination.less +230 -0
  434. package/lib/pagination/pagination.variable.css +325 -0
  435. package/lib/pagination/type.d.ts +6 -0
  436. package/lib/pagination/use-limit.d.ts +8 -0
  437. package/lib/pagination/use-list.d.ts +8 -0
  438. package/lib/pagination/use-small-list.d.ts +5 -0
  439. package/lib/pagination/use-total.d.ts +5 -0
  440. package/lib/plugin-popover/index.d.ts +27 -0
  441. package/lib/plugin-popover/index.js +2400 -0
  442. package/lib/plugins/index.d.ts +1 -0
  443. package/lib/plugins/index.js +63 -0
  444. package/lib/popover/arrow.d.ts +2 -0
  445. package/lib/popover/const.d.ts +16 -0
  446. package/lib/popover/content.d.ts +32 -0
  447. package/lib/popover/index.d.ts +653 -0
  448. package/lib/popover/index.js +2408 -0
  449. package/lib/popover/plugin-popover.d.ts +12 -0
  450. package/lib/popover/popover.css +25 -0
  451. package/lib/popover/popover.d.ts +277 -0
  452. package/lib/popover/popover.less +35 -0
  453. package/lib/popover/popover.variable.css +145 -0
  454. package/lib/popover/props.d.ts +146 -0
  455. package/lib/popover/reference.d.ts +2 -0
  456. package/lib/popover/root.d.ts +16 -0
  457. package/lib/popover/use-floating.d.ts +34 -0
  458. package/lib/popover/use-platform.d.ts +30 -0
  459. package/lib/popover/use-popover-init.d.ts +23 -0
  460. package/lib/popover/use-popper-id.d.ts +6 -0
  461. package/lib/popover/utils.d.ts +2 -0
  462. package/lib/popover2/index.d.ts +44 -0
  463. package/lib/popover2/index.js +108 -0
  464. package/lib/popover2/popover.d.ts +2 -0
  465. package/lib/preset.d.ts +7 -0
  466. package/lib/preset.js +62 -0
  467. package/lib/process/index.d.ts +205 -0
  468. package/lib/process/index.js +1375 -0
  469. package/lib/process/process.css +151 -0
  470. package/lib/process/process.d.ts +131 -0
  471. package/lib/process/process.less +195 -0
  472. package/lib/process/process.variable.css +271 -0
  473. package/lib/progress/circle.d.ts +6 -0
  474. package/lib/progress/index.d.ts +398 -0
  475. package/lib/progress/index.js +415 -0
  476. package/lib/progress/line.d.ts +6 -0
  477. package/lib/progress/progress.css +145 -0
  478. package/lib/progress/progress.d.ts +171 -0
  479. package/lib/progress/progress.less +90 -0
  480. package/lib/progress/progress.variable.css +265 -0
  481. package/lib/radio/common.d.ts +13 -0
  482. package/lib/radio/index.d.ts +288 -0
  483. package/lib/radio/index.js +588 -0
  484. package/lib/radio/radio-button.d.ts +90 -0
  485. package/lib/radio/radio-group.d.ts +57 -0
  486. package/lib/radio/radio.css +139 -0
  487. package/lib/radio/radio.d.ts +87 -0
  488. package/lib/radio/radio.less +177 -0
  489. package/lib/radio/radio.variable.css +259 -0
  490. package/lib/radio/type.d.ts +14 -0
  491. package/lib/rate/index.d.ts +136 -0
  492. package/lib/rate/index.js +294 -0
  493. package/lib/rate/rate.css +10 -0
  494. package/lib/rate/rate.d.ts +43 -0
  495. package/lib/rate/rate.less +11 -0
  496. package/lib/rate/rate.variable.css +10 -0
  497. package/lib/rate/star.css +24 -0
  498. package/lib/rate/star.d.ts +74 -0
  499. package/lib/rate/star.less +29 -0
  500. package/lib/rate/star.variable.css +24 -0
  501. package/lib/resize-layout/index.d.ts +336 -0
  502. package/lib/resize-layout/index.js +427 -0
  503. package/lib/resize-layout/resize-layout.css +177 -0
  504. package/lib/resize-layout/resize-layout.d.ts +127 -0
  505. package/lib/resize-layout/resize-layout.less +217 -0
  506. package/lib/resize-layout/resize-layout.variable.css +297 -0
  507. package/lib/search-select/index.d.ts +823 -0
  508. package/lib/search-select/index.js +3336 -0
  509. package/lib/search-select/input.d.ts +89 -0
  510. package/lib/search-select/menu.d.ts +83 -0
  511. package/lib/search-select/search-select.css +424 -0
  512. package/lib/search-select/search-select.d.ts +342 -0
  513. package/lib/search-select/search-select.less +380 -0
  514. package/lib/search-select/search-select.variable.css +544 -0
  515. package/lib/search-select/selected.d.ts +143 -0
  516. package/lib/search-select/utils.d.ts +88 -0
  517. package/lib/select/common.d.ts +26 -0
  518. package/lib/select/index.d.ts +2039 -0
  519. package/lib/select/index.js +2740 -0
  520. package/lib/select/option.d.ts +37 -0
  521. package/lib/select/optionGroup.d.ts +54 -0
  522. package/lib/select/select.css +399 -0
  523. package/lib/select/select.d.ts +753 -0
  524. package/lib/select/select.less +443 -0
  525. package/lib/select/select.variable.css +519 -0
  526. package/lib/select/selectTagInput.d.ts +93 -0
  527. package/lib/select/type.d.ts +39 -0
  528. package/lib/shared/dom.d.ts +3 -0
  529. package/lib/shared/helper.d.ts +101 -0
  530. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  531. package/lib/shared/hooks/use-form.d.ts +2 -0
  532. package/lib/shared/index.d.ts +74 -0
  533. package/lib/shared/index.js +2838 -0
  534. package/lib/shared/mask-manager.d.ts +80 -0
  535. package/lib/shared/pop-manager.d.ts +38 -0
  536. package/lib/shared/popover.d.ts +131 -0
  537. package/lib/shared/scrollbar-width.d.ts +1 -0
  538. package/lib/shared/token.d.ts +4 -0
  539. package/lib/shared/utils.d.ts +25 -0
  540. package/lib/shared/vue-types.d.ts +213 -0
  541. package/lib/shared/z-index-manager.d.ts +93 -0
  542. package/lib/sideslider/index.d.ts +477 -0
  543. package/lib/sideslider/index.js +1313 -0
  544. package/lib/sideslider/sideslider.css +114 -0
  545. package/lib/sideslider/sideslider.d.ts +203 -0
  546. package/lib/sideslider/sideslider.less +145 -0
  547. package/lib/sideslider/sideslider.variable.css +234 -0
  548. package/lib/slider/index.d.ts +440 -0
  549. package/lib/slider/index.js +2011 -0
  550. package/lib/slider/slider-button.d.ts +81 -0
  551. package/lib/slider/slider.css +149 -0
  552. package/lib/slider/slider.d.ts +201 -0
  553. package/lib/slider/slider.less +179 -0
  554. package/lib/slider/slider.variable.css +269 -0
  555. package/lib/steps/index.d.ts +250 -0
  556. package/lib/steps/index.js +1457 -0
  557. package/lib/steps/steps.css +300 -0
  558. package/lib/steps/steps.d.ts +161 -0
  559. package/lib/steps/steps.less +345 -0
  560. package/lib/steps/steps.variable.css +420 -0
  561. package/lib/styles/index.d.ts +53 -0
  562. package/lib/styles/mixins/animate.css +21 -0
  563. package/lib/styles/mixins/animate.less +27 -0
  564. package/lib/styles/mixins/animate.variable.css +21 -0
  565. package/lib/styles/mixins/clearfix.css +8 -0
  566. package/lib/styles/mixins/clearfix.less +10 -0
  567. package/lib/styles/mixins/clearfix.variable.css +8 -0
  568. package/lib/styles/mixins/ellipsis.less +8 -0
  569. package/lib/styles/mixins/mixins.css +72 -0
  570. package/lib/styles/mixins/mixins.less +5 -0
  571. package/lib/styles/mixins/mixins.variable.css +72 -0
  572. package/lib/styles/mixins/popper.css +43 -0
  573. package/lib/styles/mixins/popper.less +53 -0
  574. package/lib/styles/mixins/popper.variable.css +163 -0
  575. package/lib/styles/mixins/scroll.css +17 -0
  576. package/lib/styles/mixins/scroll.less +22 -0
  577. package/lib/styles/mixins/scroll.variable.css +137 -0
  578. package/lib/styles/mixins/size.less +13 -0
  579. package/lib/styles/reset.css +309 -0
  580. package/lib/styles/reset.less +337 -0
  581. package/lib/styles/reset.variable.css +309 -0
  582. package/lib/styles/themes/themes.less +162 -0
  583. package/lib/swiper/index.d.ts +181 -0
  584. package/lib/swiper/index.js +310 -0
  585. package/lib/swiper/swiper.css +91 -0
  586. package/lib/swiper/swiper.d.ts +65 -0
  587. package/lib/swiper/swiper.less +107 -0
  588. package/lib/swiper/swiper.variable.css +91 -0
  589. package/lib/switcher/index.d.ts +298 -0
  590. package/lib/switcher/index.js +240 -0
  591. package/lib/switcher/switcher.css +323 -0
  592. package/lib/switcher/switcher.d.ts +119 -0
  593. package/lib/switcher/switcher.less +337 -0
  594. package/lib/switcher/switcher.variable.css +443 -0
  595. package/lib/tab/index.d.ts +435 -0
  596. package/lib/tab/index.js +849 -0
  597. package/lib/tab/props.d.ts +207 -0
  598. package/lib/tab/tab-nav.d.ts +169 -0
  599. package/lib/tab/tab-panel.d.ts +68 -0
  600. package/lib/tab/tab.css +223 -0
  601. package/lib/tab/tab.d.ts +139 -0
  602. package/lib/tab/tab.less +285 -0
  603. package/lib/tab/tab.variable.css +343 -0
  604. package/lib/table/components/index.d.ts +3 -0
  605. package/lib/table/components/table-cell.d.ts +38 -0
  606. package/lib/table/components/table-column.d.ts +137 -0
  607. package/lib/table/components/table-row.d.ts +2 -0
  608. package/lib/table/const.d.ts +122 -0
  609. package/lib/table/index.d.ts +1141 -0
  610. package/lib/table/index.js +6520 -0
  611. package/lib/table/plugins/body-empty.d.ts +40 -0
  612. package/lib/table/plugins/col-group.d.ts +38 -0
  613. package/lib/table/plugins/common.d.ts +6 -0
  614. package/lib/table/plugins/head-filter.css +84 -0
  615. package/lib/table/plugins/head-filter.d.ts +26 -0
  616. package/lib/table/plugins/head-filter.less +110 -0
  617. package/lib/table/plugins/head-filter.variable.css +204 -0
  618. package/lib/table/plugins/head-sort.css +25 -0
  619. package/lib/table/plugins/head-sort.d.ts +22 -0
  620. package/lib/table/plugins/head-sort.less +31 -0
  621. package/lib/table/plugins/head-sort.variable.css +145 -0
  622. package/lib/table/plugins/index.d.ts +5 -0
  623. package/lib/table/plugins/settings.css +145 -0
  624. package/lib/table/plugins/settings.d.ts +37 -0
  625. package/lib/table/plugins/settings.less +179 -0
  626. package/lib/table/plugins/settings.variable.css +265 -0
  627. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  628. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  629. package/lib/table/plugins/use-fixed-column.d.ts +12 -0
  630. package/lib/table/plugins/use-pagination.d.ts +16 -0
  631. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  632. package/lib/table/props.d.ts +434 -0
  633. package/lib/table/render.d.ts +125 -0
  634. package/lib/table/table.css +1272 -0
  635. package/lib/table/table.d.ts +350 -0
  636. package/lib/table/table.less +365 -0
  637. package/lib/table/table.variable.css +1392 -0
  638. package/lib/table/use-column.d.ts +11 -0
  639. package/lib/table/use-common.d.ts +98 -0
  640. package/lib/table/utils.d.ts +129 -0
  641. package/lib/table-column/index.d.ts +325 -0
  642. package/lib/table-column/index.js +669 -0
  643. package/lib/tag/index.d.ts +229 -0
  644. package/lib/tag/index.js +206 -0
  645. package/lib/tag/tag.css +130 -0
  646. package/lib/tag/tag.d.ts +84 -0
  647. package/lib/tag/tag.less +149 -0
  648. package/lib/tag/tag.variable.css +250 -0
  649. package/lib/tag-input/common.d.ts +36 -0
  650. package/lib/tag-input/index.d.ts +1349 -0
  651. package/lib/tag-input/index.js +1795 -0
  652. package/lib/tag-input/list-tag-render.d.ts +44 -0
  653. package/lib/tag-input/tag-input.css +205 -0
  654. package/lib/tag-input/tag-input.d.ts +631 -0
  655. package/lib/tag-input/tag-input.less +248 -0
  656. package/lib/tag-input/tag-input.variable.css +325 -0
  657. package/lib/tag-input/tag-props.d.ts +252 -0
  658. package/lib/tag-input/tag-render.d.ts +64 -0
  659. package/lib/time-picker/index.d.ts +904 -0
  660. package/lib/time-picker/index.js +71 -0
  661. package/lib/time-picker/time-picker.css +215 -0
  662. package/lib/time-picker/time-picker.less +260 -0
  663. package/lib/time-picker/time-picker.variable.css +335 -0
  664. package/lib/timeline/index.d.ts +129 -0
  665. package/lib/timeline/index.js +251 -0
  666. package/lib/timeline/timeline.css +242 -0
  667. package/lib/timeline/timeline.d.ts +81 -0
  668. package/lib/timeline/timeline.less +252 -0
  669. package/lib/timeline/timeline.variable.css +362 -0
  670. package/lib/transfer/const.d.ts +5 -0
  671. package/lib/transfer/index.d.ts +365 -0
  672. package/lib/transfer/index.js +573 -0
  673. package/lib/transfer/props.d.ts +54 -0
  674. package/lib/transfer/transfer.css +161 -0
  675. package/lib/transfer/transfer.d.ts +160 -0
  676. package/lib/transfer/transfer.less +151 -0
  677. package/lib/transfer/transfer.variable.css +281 -0
  678. package/lib/tree/constant.d.ts +62 -0
  679. package/lib/tree/index.d.ts +647 -0
  680. package/lib/tree/index.js +2840 -0
  681. package/lib/tree/props.d.ts +213 -0
  682. package/lib/tree/tree.css +218 -0
  683. package/lib/tree/tree.d.ts +283 -0
  684. package/lib/tree/tree.less +114 -0
  685. package/lib/tree/tree.variable.css +338 -0
  686. package/lib/tree/use-empty.d.ts +6 -0
  687. package/lib/tree/use-node-action.d.ts +12 -0
  688. package/lib/tree/use-node-async.d.ts +5 -0
  689. package/lib/tree/use-node-attribute.d.ts +33 -0
  690. package/lib/tree/use-node-drag.d.ts +3 -0
  691. package/lib/tree/use-search.d.ts +11 -0
  692. package/lib/tree/use-tree-init.d.ts +15 -0
  693. package/lib/tree/util.d.ts +68 -0
  694. package/lib/upload/index.d.ts +566 -0
  695. package/lib/upload/index.js +3681 -0
  696. package/lib/upload/props.d.ts +111 -0
  697. package/lib/upload/upload-list.d.ts +47 -0
  698. package/lib/upload/upload-trigger.d.ts +51 -0
  699. package/lib/upload/upload.css +425 -0
  700. package/lib/upload/upload.d.ts +246 -0
  701. package/lib/upload/upload.less +464 -0
  702. package/lib/upload/upload.type.d.ts +78 -0
  703. package/lib/upload/upload.variable.css +545 -0
  704. package/lib/upload/use-ajax-upload.d.ts +3 -0
  705. package/lib/upload/use-file-handler.d.ts +44 -0
  706. package/lib/use-message.d.ts +2 -0
  707. package/lib/virtual-render/index.d.ts +602 -0
  708. package/lib/virtual-render/index.js +757 -0
  709. package/lib/virtual-render/props.d.ts +172 -0
  710. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  711. package/lib/virtual-render/v-virtual-render.d.ts +6 -0
  712. package/lib/virtual-render/virtual-render.css +33 -0
  713. package/lib/virtual-render/virtual-render.d.ts +266 -0
  714. package/lib/virtual-render/virtual-render.less +22 -0
  715. package/lib/virtual-render/virtual-render.variable.css +153 -0
  716. package/lib/volar.components.d.ts +101 -0
  717. package/package.json +58 -28
  718. package/LICENSE.txt +0 -22
@@ -0,0 +1,2838 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
4
+ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
5
+ /******/ var __webpack_modules__ = ({
6
+
7
+ /***/ 8022:
8
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9
+
10
+ var v1 = __webpack_require__(4481);
11
+ var v4 = __webpack_require__(6426);
12
+
13
+ var uuid = v4;
14
+ uuid.v1 = v1;
15
+ uuid.v4 = v4;
16
+
17
+ module.exports = uuid;
18
+
19
+
20
+ /***/ }),
21
+
22
+ /***/ 8725:
23
+ /***/ ((module) => {
24
+
25
+ /**
26
+ * Convert array of 16 byte values to UUID string format of the form:
27
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
28
+ */
29
+ var byteToHex = [];
30
+ for (var i = 0; i < 256; ++i) {
31
+ byteToHex[i] = (i + 0x100).toString(16).substr(1);
32
+ }
33
+
34
+ function bytesToUuid(buf, offset) {
35
+ var i = offset || 0;
36
+ var bth = byteToHex;
37
+ // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
38
+ return ([
39
+ bth[buf[i++]], bth[buf[i++]],
40
+ bth[buf[i++]], bth[buf[i++]], '-',
41
+ bth[buf[i++]], bth[buf[i++]], '-',
42
+ bth[buf[i++]], bth[buf[i++]], '-',
43
+ bth[buf[i++]], bth[buf[i++]], '-',
44
+ bth[buf[i++]], bth[buf[i++]],
45
+ bth[buf[i++]], bth[buf[i++]],
46
+ bth[buf[i++]], bth[buf[i++]]
47
+ ]).join('');
48
+ }
49
+
50
+ module.exports = bytesToUuid;
51
+
52
+
53
+ /***/ }),
54
+
55
+ /***/ 9157:
56
+ /***/ ((module) => {
57
+
58
+ // Unique ID creation requires a high quality random # generator. In the
59
+ // browser this is a little complicated due to unknown quality of Math.random()
60
+ // and inconsistent support for the `crypto` API. We do the best we can via
61
+ // feature-detection
62
+
63
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto
64
+ // implementation. Also, find the complete implementation of crypto on IE11.
65
+ var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
66
+ (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));
67
+
68
+ if (getRandomValues) {
69
+ // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
70
+ var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
71
+
72
+ module.exports = function whatwgRNG() {
73
+ getRandomValues(rnds8);
74
+ return rnds8;
75
+ };
76
+ } else {
77
+ // Math.random()-based (RNG)
78
+ //
79
+ // If all else fails, use Math.random(). It's fast, but is of unspecified
80
+ // quality.
81
+ var rnds = new Array(16);
82
+
83
+ module.exports = function mathRNG() {
84
+ for (var i = 0, r; i < 16; i++) {
85
+ if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
86
+ rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
87
+ }
88
+
89
+ return rnds;
90
+ };
91
+ }
92
+
93
+
94
+ /***/ }),
95
+
96
+ /***/ 4481:
97
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
98
+
99
+ var rng = __webpack_require__(9157);
100
+ var bytesToUuid = __webpack_require__(8725);
101
+
102
+ // **`v1()` - Generate time-based UUID**
103
+ //
104
+ // Inspired by https://github.com/LiosK/UUID.js
105
+ // and http://docs.python.org/library/uuid.html
106
+
107
+ var _nodeId;
108
+ var _clockseq;
109
+
110
+ // Previous uuid creation time
111
+ var _lastMSecs = 0;
112
+ var _lastNSecs = 0;
113
+
114
+ // See https://github.com/uuidjs/uuid for API details
115
+ function v1(options, buf, offset) {
116
+ var i = buf && offset || 0;
117
+ var b = buf || [];
118
+
119
+ options = options || {};
120
+ var node = options.node || _nodeId;
121
+ var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
122
+
123
+ // node and clockseq need to be initialized to random values if they're not
124
+ // specified. We do this lazily to minimize issues related to insufficient
125
+ // system entropy. See #189
126
+ if (node == null || clockseq == null) {
127
+ var seedBytes = rng();
128
+ if (node == null) {
129
+ // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
130
+ node = _nodeId = [
131
+ seedBytes[0] | 0x01,
132
+ seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
133
+ ];
134
+ }
135
+ if (clockseq == null) {
136
+ // Per 4.2.2, randomize (14 bit) clockseq
137
+ clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
138
+ }
139
+ }
140
+
141
+ // UUID timestamps are 100 nano-second units since the Gregorian epoch,
142
+ // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
143
+ // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
144
+ // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
145
+ var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
146
+
147
+ // Per 4.2.1.2, use count of uuid's generated during the current clock
148
+ // cycle to simulate higher resolution clock
149
+ var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
150
+
151
+ // Time since last uuid creation (in msecs)
152
+ var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
153
+
154
+ // Per 4.2.1.2, Bump clockseq on clock regression
155
+ if (dt < 0 && options.clockseq === undefined) {
156
+ clockseq = clockseq + 1 & 0x3fff;
157
+ }
158
+
159
+ // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
160
+ // time interval
161
+ if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
162
+ nsecs = 0;
163
+ }
164
+
165
+ // Per 4.2.1.2 Throw error if too many uuids are requested
166
+ if (nsecs >= 10000) {
167
+ throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
168
+ }
169
+
170
+ _lastMSecs = msecs;
171
+ _lastNSecs = nsecs;
172
+ _clockseq = clockseq;
173
+
174
+ // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
175
+ msecs += 12219292800000;
176
+
177
+ // `time_low`
178
+ var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
179
+ b[i++] = tl >>> 24 & 0xff;
180
+ b[i++] = tl >>> 16 & 0xff;
181
+ b[i++] = tl >>> 8 & 0xff;
182
+ b[i++] = tl & 0xff;
183
+
184
+ // `time_mid`
185
+ var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
186
+ b[i++] = tmh >>> 8 & 0xff;
187
+ b[i++] = tmh & 0xff;
188
+
189
+ // `time_high_and_version`
190
+ b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
191
+ b[i++] = tmh >>> 16 & 0xff;
192
+
193
+ // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
194
+ b[i++] = clockseq >>> 8 | 0x80;
195
+
196
+ // `clock_seq_low`
197
+ b[i++] = clockseq & 0xff;
198
+
199
+ // `node`
200
+ for (var n = 0; n < 6; ++n) {
201
+ b[i + n] = node[n];
202
+ }
203
+
204
+ return buf ? buf : bytesToUuid(b);
205
+ }
206
+
207
+ module.exports = v1;
208
+
209
+
210
+ /***/ }),
211
+
212
+ /***/ 6426:
213
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
214
+
215
+ var rng = __webpack_require__(9157);
216
+ var bytesToUuid = __webpack_require__(8725);
217
+
218
+ function v4(options, buf, offset) {
219
+ var i = buf && offset || 0;
220
+
221
+ if (typeof(options) == 'string') {
222
+ buf = options === 'binary' ? new Array(16) : null;
223
+ options = null;
224
+ }
225
+ options = options || {};
226
+
227
+ var rnds = options.random || (options.rng || rng)();
228
+
229
+ // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
230
+ rnds[6] = (rnds[6] & 0x0f) | 0x40;
231
+ rnds[8] = (rnds[8] & 0x3f) | 0x80;
232
+
233
+ // Copy bytes to buffer, if provided
234
+ if (buf) {
235
+ for (var ii = 0; ii < 16; ++ii) {
236
+ buf[i + ii] = rnds[ii];
237
+ }
238
+ }
239
+
240
+ return buf || bytesToUuid(rnds);
241
+ }
242
+
243
+ module.exports = v4;
244
+
245
+
246
+ /***/ })
247
+
248
+ /******/ });
249
+ /************************************************************************/
250
+ /******/ // The module cache
251
+ /******/ var __webpack_module_cache__ = {};
252
+ /******/
253
+ /******/ // The require function
254
+ /******/ function __webpack_require__(moduleId) {
255
+ /******/ // Check if module is in cache
256
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
257
+ /******/ if (cachedModule !== undefined) {
258
+ /******/ return cachedModule.exports;
259
+ /******/ }
260
+ /******/ // Create a new module (and put it into the cache)
261
+ /******/ var module = __webpack_module_cache__[moduleId] = {
262
+ /******/ // no module.id needed
263
+ /******/ // no module.loaded needed
264
+ /******/ exports: {}
265
+ /******/ };
266
+ /******/
267
+ /******/ // Execute the module function
268
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
269
+ /******/
270
+ /******/ // Return the exports of the module
271
+ /******/ return module.exports;
272
+ /******/ }
273
+ /******/
274
+ /************************************************************************/
275
+ /******/ /* webpack/runtime/define property getters */
276
+ /******/ (() => {
277
+ /******/ // define getter functions for harmony exports
278
+ /******/ __webpack_require__.d = (exports, definition) => {
279
+ /******/ for(var key in definition) {
280
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
281
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
282
+ /******/ }
283
+ /******/ }
284
+ /******/ };
285
+ /******/ })();
286
+ /******/
287
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
288
+ /******/ (() => {
289
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
290
+ /******/ })();
291
+ /******/
292
+ /************************************************************************/
293
+ var __webpack_exports__ = {};
294
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
295
+ (() => {
296
+
297
+ // EXPORTS
298
+ __webpack_require__.d(__webpack_exports__, {
299
+ "oY": () => (/* reexport */ AlignEnum),
300
+ "p3": () => (/* reexport */ BKLAYERD_INDEX_EFAULT_VALUE),
301
+ "Ql": () => (/* reexport */ BKLAYERTYPE),
302
+ "Eo": () => (/* reexport */ BKPopIndexManager),
303
+ "mZ": () => (/* reexport */ BKPopover),
304
+ "Wg": () => (/* reexport */ BkMaskManager),
305
+ "_D": () => (/* reexport */ DialogTypeEnum),
306
+ "dq": () => (/* reexport */ DirectionEnum),
307
+ "kT": () => (/* binding */ EMPTY_OBJ),
308
+ "WF": () => (/* reexport */ InputBehaviorEnum),
309
+ "Gl": () => (/* reexport */ InputBehaviorType),
310
+ "VS": () => (/* reexport */ LineStyleEnum),
311
+ "Um": () => (/* reexport */ PlacementEnum),
312
+ "_h": () => (/* reexport */ Placements),
313
+ "ng": () => (/* reexport */ PropTypes),
314
+ "Pi": () => (/* reexport */ RenderDirectiveEnum),
315
+ "y2": () => (/* reexport */ RenderType),
316
+ "mO": () => (/* reexport */ SizeEnum),
317
+ "XR": () => (/* reexport */ TagThemeEnum),
318
+ "gg": () => (/* reexport */ TagThemeType),
319
+ "bY": () => (/* reexport */ ThemeEnum),
320
+ "os": () => (/* reexport */ TriggerEnum),
321
+ "WW": () => (/* reexport */ alignType),
322
+ "h6": () => (/* binding */ arrayEqual),
323
+ "Lx": () => (/* reexport */ bKMaskManager),
324
+ "aR": () => (/* reexport */ bkPopIndexManager),
325
+ "ue": () => (/* reexport */ bkZIndexManager),
326
+ "kC": () => (/* reexport */ capitalize),
327
+ "ao": () => (/* reexport */ checkOverflow),
328
+ "Sh": () => (/* binding */ classes),
329
+ "d9": () => (/* reexport */ clone),
330
+ "Ds": () => (/* binding */ debounce),
331
+ "ou": () => (/* reexport */ dialogTypeUnion),
332
+ "zo": () => (/* reexport */ directionType),
333
+ "cA": () => (/* reexport */ elementsEqual),
334
+ "w$": () => (/* binding */ filterProperty),
335
+ "b_": () => (/* reexport */ finiteOrDefault),
336
+ "xE": () => (/* reexport */ formItemKey),
337
+ "vh": () => (/* reexport */ formKey),
338
+ "ks": () => (/* reexport */ getPopContainerId),
339
+ "Hv": () => (/* reexport */ hasOverflowEllipsis),
340
+ "kJ": () => (/* reexport */ isArray),
341
+ "kK": () => (/* reexport */ helper_isElement),
342
+ "xb": () => (/* reexport */ isEmpty),
343
+ "SI": () => (/* binding */ isEmptyObj),
344
+ "xV": () => (/* reexport */ isNumberFinite),
345
+ "sS": () => (/* reexport */ isNullOrUndef),
346
+ "Kn": () => (/* reexport */ isObject),
347
+ "zW": () => (/* reexport */ lineStyleType),
348
+ "oq": () => (/* reexport */ maybeShowTooltip),
349
+ "TS": () => (/* reexport */ merge),
350
+ "NG": () => (/* reexport */ mergeIf),
351
+ "WC": () => (/* reexport */ mergerFn),
352
+ "Zd": () => (/* reexport */ mergerIfFn),
353
+ "ZT": () => (/* binding */ noop),
354
+ "z3": () => (/* reexport */ observerResize),
355
+ "S1": () => (/* reexport */ off),
356
+ "on": () => (/* reexport */ on),
357
+ "Tf": () => (/* reexport */ placementType),
358
+ "MX": () => (/* reexport */ random),
359
+ "OB": () => (/* reexport */ renderDirectiveType),
360
+ "Ay": () => (/* binding */ renderEmptyVNode),
361
+ "wB": () => (/* reexport */ renderType),
362
+ "h5": () => (/* binding */ resolveClassName),
363
+ "SM": () => (/* reexport */ scrollTop),
364
+ "LF": () => (/* reexport */ scrollbarWidth),
365
+ "b": () => (/* reexport */ stringEnum),
366
+ "_7": () => (/* reexport */ triggerType),
367
+ "cI": () => (/* reexport */ useForm),
368
+ "A9": () => (/* reexport */ useFormItem),
369
+ "Be": () => (/* reexport */ valueOrDefault),
370
+ "nz": () => (/* binding */ withInstall),
371
+ "B": () => (/* binding */ withInstallProps)
372
+ });
373
+
374
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
375
+ function _classCallCheck(instance, Constructor) {
376
+ if (!(instance instanceof Constructor)) {
377
+ throw new TypeError("Cannot call a class as a function");
378
+ }
379
+ }
380
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/createClass.js
381
+ function _defineProperties(target, props) {
382
+ for (var i = 0; i < props.length; i++) {
383
+ var descriptor = props[i];
384
+ descriptor.enumerable = descriptor.enumerable || false;
385
+ descriptor.configurable = true;
386
+ if ("value" in descriptor) descriptor.writable = true;
387
+ Object.defineProperty(target, descriptor.key, descriptor);
388
+ }
389
+ }
390
+
391
+ function _createClass(Constructor, protoProps, staticProps) {
392
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
393
+ if (staticProps) _defineProperties(Constructor, staticProps);
394
+ Object.defineProperty(Constructor, "prototype", {
395
+ writable: false
396
+ });
397
+ return Constructor;
398
+ }
399
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
400
+ function _defineProperty(obj, key, value) {
401
+ if (key in obj) {
402
+ Object.defineProperty(obj, key, {
403
+ value: value,
404
+ enumerable: true,
405
+ configurable: true,
406
+ writable: true
407
+ });
408
+ } else {
409
+ obj[key] = value;
410
+ }
411
+
412
+ return obj;
413
+ }
414
+ ;// CONCATENATED MODULE: ../../packages/shared/src/z-index-manager.ts
415
+
416
+
417
+
418
+
419
+ var _BKLAYERD_INDEX_EFAUL;
420
+
421
+ /**
422
+ * Tencent is pleased to support the open source community by making
423
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
424
+ *
425
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
426
+ *
427
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
428
+ *
429
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
430
+ *
431
+ * ---------------------------------------------------
432
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
433
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
434
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
435
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
436
+ *
437
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
438
+ * the Software.
439
+ *
440
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
441
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
442
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
443
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
444
+ * IN THE SOFTWARE.
445
+ */
446
+
447
+ /**
448
+ * 页面框架层级
449
+ */
450
+ var BKLAYERTYPE;
451
+
452
+ (function (BKLAYERTYPE) {
453
+ /** 网站内容的背景、拓扑的画布等 */
454
+ BKLAYERTYPE["BOTTOM"] = "bottom";
455
+ /** 页面呈现的各类内容 */
456
+
457
+ BKLAYERTYPE["CONTENT"] = "content";
458
+ /** 顶部导航、侧边导航以及用户信息等 */
459
+
460
+ BKLAYERTYPE["NAVI"] = "navi";
461
+ /** 页面需全屏操作的部分功能或编辑器的全屏模式 */
462
+
463
+ BKLAYERTYPE["FULLSCREEN"] = "fullScreen";
464
+ /** 各类功能插件 */
465
+
466
+ BKLAYERTYPE["PLUGINS"] = "plugins";
467
+ /** 各类弹窗或抽屉(非模态弹窗不考虑) */
468
+
469
+ BKLAYERTYPE["MODAL"] = "modal";
470
+ /** 各类消息提示 */
471
+
472
+ BKLAYERTYPE["MESSAGE"] = "message";
473
+ /** 各类popper提示 */
474
+
475
+ BKLAYERTYPE["POPPER"] = "popper";
476
+ })(BKLAYERTYPE || (BKLAYERTYPE = {}));
477
+ /** 定义不同分层默认值 */
478
+
479
+
480
+ var BKLAYERD_INDEX_EFAULT_VALUE = (_BKLAYERD_INDEX_EFAUL = {}, _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.BOTTOM, 0), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.CONTENT, 1), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.NAVI, 100), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.FULLSCREEN, 1000), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.MODAL, 3000), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.PLUGINS, 8000), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.MESSAGE, 10000), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.POPPER, 99999), _BKLAYERD_INDEX_EFAUL);
481
+
482
+ var BKZIndexManager = /*#__PURE__*/function () {
483
+ function BKZIndexManager() {
484
+ _classCallCheck(this, BKZIndexManager);
485
+
486
+ this.storageLayerIndexValue = {};
487
+ this.copyDefaultValue();
488
+ }
489
+ /**
490
+ *
491
+ * @param type
492
+ * @returns
493
+ */
494
+
495
+
496
+ _createClass(BKZIndexManager, [{
497
+ key: "getNextIndex",
498
+ value: function getNextIndex(type) {
499
+ if (Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue, type)) {
500
+ this.storageLayerIndexValue[type] = this.storageLayerIndexValue[type] + 1;
501
+ return this.storageLayerIndexValue[type];
502
+ }
503
+
504
+ this.storageLayerIndexValue[BKLAYERTYPE.MODAL] = this.storageLayerIndexValue[BKLAYERTYPE.MODAL] + 1;
505
+ return this.storageLayerIndexValue[BKLAYERTYPE.MODAL];
506
+ }
507
+ /** 获取弹窗类型最新zIndex的值 */
508
+
509
+ }, {
510
+ key: "getModalNextIndex",
511
+ value: function getModalNextIndex() {
512
+ return this.getNextIndex(BKLAYERTYPE.MODAL);
513
+ }
514
+ /** 获取Message类型最新zIndex的值 */
515
+
516
+ }, {
517
+ key: "getMessageNextIndex",
518
+ value: function getMessageNextIndex() {
519
+ return this.getNextIndex(BKLAYERTYPE.MESSAGE);
520
+ }
521
+ /** 获取全屏类型最新zIndex的值 */
522
+
523
+ }, {
524
+ key: "getFullScreenNextIndex",
525
+ value: function getFullScreenNextIndex() {
526
+ return this.getNextIndex(BKLAYERTYPE.FULLSCREEN);
527
+ }
528
+ /** 获取导航类型最新zIndex的值 */
529
+
530
+ }, {
531
+ key: "getNaviNextIndex",
532
+ value: function getNaviNextIndex() {
533
+ return this.getNextIndex(BKLAYERTYPE.NAVI);
534
+ }
535
+ /** 获取导航类型最新zIndex的值 */
536
+
537
+ }, {
538
+ key: "getPopperIndex",
539
+ value: function getPopperIndex() {
540
+ return BKLAYERD_INDEX_EFAULT_VALUE.popper;
541
+ }
542
+ /**
543
+ * 更新自定义默认zIndex配置
544
+ * @param config 配置项
545
+ */
546
+
547
+ }, {
548
+ key: "setDefaultZIndex",
549
+ value: function setDefaultZIndex(config) {
550
+ var _this = this;
551
+
552
+ Object.keys(config || {}).forEach(function (key) {
553
+ if (Object.prototype.hasOwnProperty.call(_this.storageLayerIndexValue.__proto__, key)) {
554
+ Object.assign(_this.storageLayerIndexValue.__proto__, _defineProperty({}, key, config[key]));
555
+ }
556
+ });
557
+ this.copyDefaultValue();
558
+ }
559
+ /**
560
+ * 重置zIndex
561
+ * @param config 配置项
562
+ */
563
+
564
+ }, {
565
+ key: "resetZIndex",
566
+ value: function resetZIndex(config) {
567
+ var _this2 = this;
568
+
569
+ Object.keys(config || {}).forEach(function (key) {
570
+ if (Object.prototype.hasOwnProperty.call(_this2.storageLayerIndexValue, key)) {
571
+ Object.assign(_this2.storageLayerIndexValue, _defineProperty({}, key, config[key]));
572
+ }
573
+ });
574
+ }
575
+ /**
576
+ * 根据默认设置创建副本
577
+ */
578
+
579
+ }, {
580
+ key: "copyDefaultValue",
581
+ value: function copyDefaultValue() {
582
+ var properties = Object.keys(BKLAYERD_INDEX_EFAULT_VALUE).reduce(function (props, key) {
583
+ return Object.assign(props, _defineProperty({}, key, {
584
+ value: BKLAYERD_INDEX_EFAULT_VALUE[key],
585
+ writable: true,
586
+ configurable: true
587
+ }));
588
+ }, {});
589
+ this.storageLayerIndexValue = Object.create(BKLAYERD_INDEX_EFAULT_VALUE, properties);
590
+ }
591
+ }]);
592
+
593
+ return BKZIndexManager;
594
+ }();
595
+
596
+ var bkZIndexManager = new BKZIndexManager();
597
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
598
+ function _typeof(obj) {
599
+ "@babel/helpers - typeof";
600
+
601
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
602
+ return typeof obj;
603
+ } : function (obj) {
604
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
605
+ }, _typeof(obj);
606
+ }
607
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
608
+ function _arrayLikeToArray(arr, len) {
609
+ if (len == null || len > arr.length) len = arr.length;
610
+
611
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
612
+ arr2[i] = arr[i];
613
+ }
614
+
615
+ return arr2;
616
+ }
617
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
618
+
619
+ function _arrayWithoutHoles(arr) {
620
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
621
+ }
622
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
623
+ function _iterableToArray(iter) {
624
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
625
+ }
626
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
627
+
628
+ function _unsupportedIterableToArray(o, minLen) {
629
+ if (!o) return;
630
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
631
+ var n = Object.prototype.toString.call(o).slice(8, -1);
632
+ if (n === "Object" && o.constructor) n = o.constructor.name;
633
+ if (n === "Map" || n === "Set") return Array.from(o);
634
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
635
+ }
636
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
637
+ function _nonIterableSpread() {
638
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
639
+ }
640
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
641
+
642
+
643
+
644
+
645
+ function _toConsumableArray(arr) {
646
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
647
+ }
648
+ // EXTERNAL MODULE: ../../node_modules/uuid/index.js
649
+ var uuid = __webpack_require__(8022);
650
+ ;// CONCATENATED MODULE: external "@popperjs/core"
651
+ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
652
+ var y = x => () => x
653
+ const core_namespaceObject = x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
654
+ ;// CONCATENATED MODULE: ../../packages/shared/src/helper.ts
655
+
656
+
657
+ /*
658
+ * Tencent is pleased to support the open source community by making
659
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
660
+ *
661
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
662
+ *
663
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
664
+ *
665
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
666
+ *
667
+ * ---------------------------------------------------
668
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
669
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
670
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
671
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
672
+ *
673
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
674
+ * the Software.
675
+ *
676
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
677
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
678
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
679
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
680
+ * IN THE SOFTWARE.
681
+ */
682
+
683
+ /* eslint-disable no-underscore-dangle */
684
+
685
+ /**
686
+ * Returns true if `value` is neither null nor undefined, else returns false.
687
+ * @param {*} value - The value to test.
688
+ * @returns {boolean}
689
+ * @since 2.7.0
690
+ */
691
+ function isNullOrUndef(value) {
692
+ return value === null || typeof value === 'undefined';
693
+ }
694
+ function isEmpty(value) {
695
+ var IncludeNullUndefined = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
696
+ return value === '' || (IncludeNullUndefined ? isNullOrUndef(value) : false);
697
+ }
698
+ /**
699
+ * Returns true if `value` is an array (including typed arrays), else returns false.
700
+ * @param {*} value - The value to test.
701
+ * @returns {boolean}
702
+ * @function
703
+ */
704
+
705
+ function isArray(value) {
706
+ if (Array.isArray(value)) {
707
+ return true;
708
+ }
709
+
710
+ var type = Object.prototype.toString.call(value);
711
+
712
+ if (type.substr(0, 7) === '[object' && type.substr(-6) === 'Array]') {
713
+ return true;
714
+ }
715
+
716
+ return false;
717
+ }
718
+ /**
719
+ * Returns true if `value` is an object (excluding null), else returns false.
720
+ * @param {*} value - The value to test.
721
+ * @returns {boolean}
722
+ * @since 2.7.0
723
+ */
724
+
725
+ function isObject(value) {
726
+ return value !== null && /^\[object (Object|Module)\]/.test(Object.prototype.toString.call(value));
727
+ }
728
+ /**
729
+ * Returns true if `value` is a finite number, else returns false
730
+ * @param {*} value - The value to test.
731
+ * @returns {boolean}
732
+ */
733
+
734
+ var isNumberFinite = function isNumberFinite(value) {
735
+ return (typeof value === 'number' || value instanceof Number) && isFinite(+value);
736
+ };
737
+
738
+
739
+ /**
740
+ * Returns `value` if finite, else returns `defaultValue`.
741
+ * @param {*} value - The value to return if defined.
742
+ * @param {*} defaultValue - The value to return if `value` is not finite.
743
+ * @returns {*}
744
+ */
745
+
746
+ function finiteOrDefault(value, defaultValue) {
747
+ return isNumberFinite(value) ? value : defaultValue;
748
+ }
749
+ /**
750
+ * Returns `value` if defined, else returns `defaultValue`.
751
+ * @param {*} value - The value to return if defined.
752
+ * @param {*} defaultValue - The value to return if `value` is undefined.
753
+ * @returns {*}
754
+ */
755
+
756
+ function valueOrDefault(value, defaultValue) {
757
+ return typeof value === 'undefined' ? defaultValue : value;
758
+ }
759
+ /**
760
+ * Returns true if the `a0` and `a1` arrays have the same content, else returns false.
761
+ * @param {Array} a0 - The array to compare
762
+ * @param {Array} a1 - The array to compare
763
+ * @returns {boolean}
764
+ * @private
765
+ */
766
+
767
+ function elementsEqual(a0, a1) {
768
+ var i;
769
+ var ilen;
770
+ var v0;
771
+ var v1;
772
+
773
+ if (!a0 || !a1 || a0.length !== a1.length) {
774
+ return false;
775
+ }
776
+
777
+ for (i = 0, ilen = a0.length; i < ilen; ++i) {
778
+ v0 = a0[i];
779
+ v1 = a1[i];
780
+
781
+ if (v0.datasetIndex !== v1.datasetIndex || v0.index !== v1.index) {
782
+ return false;
783
+ }
784
+ }
785
+
786
+ return true;
787
+ }
788
+ /**
789
+ * Returns a deep copy of `source` without keeping references on objects and arrays.
790
+ * @param {*} source - The value to clone.
791
+ * @returns {*}
792
+ */
793
+
794
+ function clone(source) {
795
+ if (isArray(source)) {
796
+ return source.map(clone);
797
+ }
798
+
799
+ if (isObject(source)) {
800
+ var target = Object.create(null);
801
+ var keys = Object.keys(source);
802
+ var klen = keys.length;
803
+ var k = 0;
804
+
805
+ for (; k < klen; ++k) {
806
+ target[keys[k]] = clone(source[keys[k]]);
807
+ }
808
+
809
+ return target;
810
+ }
811
+
812
+ return source;
813
+ }
814
+
815
+ function isValidKey(key) {
816
+ return ['__proto__', 'prototype', 'constructor'].indexOf(key) === -1;
817
+ }
818
+ /**
819
+ * The default merger when Chart.helpers.merge is called without merger option.
820
+ * Note(SB): also used by mergeConfig and mergeScaleConfig as fallback.
821
+ * @private
822
+ */
823
+
824
+
825
+ function mergerFn(key, target, source, options) {
826
+ if (!isValidKey(key)) {
827
+ return;
828
+ }
829
+
830
+ var tval = target[key];
831
+ var sval = source[key];
832
+
833
+ if (isObject(tval) && isObject(sval)) {
834
+ // eslint-disable-next-line no-use-before-define
835
+ merge(tval, sval, options);
836
+ } else {
837
+ // eslint-disable-next-line no-param-reassign
838
+ target[key] = clone(sval);
839
+ }
840
+ }
841
+ /**
842
+ * Recursively deep copies `source` properties into `target` with the given `options`.
843
+ * IMPORTANT: `target` is not cloned and will be updated with `source` properties.
844
+ * @param {object} target - The target object in which all sources are merged into.
845
+ * @param {object|object[]} source - Object(s) to merge into `target`.
846
+ * @param {object} [options] - Merging options:
847
+ * @param {function} [options.merger] - The merge method (key, target, source, options)
848
+ * @returns {object} The `target` object.
849
+ */
850
+
851
+ function merge(target, source, options) {
852
+ var sources = isArray(source) ? source : [source];
853
+ var ilen = sources.length;
854
+
855
+ if (!isObject(target)) {
856
+ return target;
857
+ } // eslint-disable-next-line no-param-reassign
858
+
859
+
860
+ options = options || {};
861
+ var merger = options.merger || mergerFn;
862
+
863
+ for (var i = 0; i < ilen; ++i) {
864
+ // eslint-disable-next-line no-param-reassign
865
+ source = sources[i];
866
+
867
+ if (!isObject(source)) {
868
+ continue;
869
+ }
870
+
871
+ var keys = Object.keys(source);
872
+
873
+ for (var k = 0, klen = keys.length; k < klen; ++k) {
874
+ merger(keys[k], target, source, options);
875
+ }
876
+ }
877
+
878
+ return target;
879
+ }
880
+ /**
881
+ * Recursively deep copies `source` properties into `target` *only* if not defined in target.
882
+ * IMPORTANT: `target` is not cloned and will be updated with `source` properties.
883
+ * @param {object} target - The target object in which all sources are merged into.
884
+ * @param {object|object[]} source - Object(s) to merge into `target`.
885
+ * @returns {object} The `target` object.
886
+ */
887
+
888
+ function mergeIf(target, source) {
889
+ // eslint-disable-next-line no-use-before-define
890
+ return merge(target, source, {
891
+ merger: mergerIfFn
892
+ });
893
+ }
894
+ /**
895
+ * Merges source[key] in target[key] only if target[key] is undefined.
896
+ * @private
897
+ */
898
+
899
+ function mergerIfFn(key, target, source) {
900
+ if (!isValidKey(key)) {
901
+ return;
902
+ }
903
+
904
+ var tval = target[key];
905
+ var sval = source[key];
906
+
907
+ if (isObject(tval) && isObject(sval)) {
908
+ mergeIf(tval, sval);
909
+ } else if (!Object.prototype.hasOwnProperty.call(target, key)) {
910
+ // eslint-disable-next-line no-param-reassign
911
+ target[key] = clone(sval);
912
+ }
913
+ }
914
+ /**
915
+ * 检查当前元素是否为Html元素
916
+ * @param obj
917
+ * @returns
918
+ */
919
+
920
+ function helper_isElement(obj) {
921
+ try {
922
+ return obj instanceof HTMLElement;
923
+ } catch (e) {
924
+ return _typeof(obj) === 'object' && obj.nodeType === 1 && _typeof(obj.style) === 'object' && _typeof(obj.ownerDocument) === 'object';
925
+ }
926
+ }
927
+ /**
928
+ * Whether the text content is clipped due to CSS overflow, as in showing `...`.
929
+ */
930
+
931
+ function hasOverflowEllipsis(element) {
932
+ return element.offsetWidth < element.scrollWidth || element.offsetHeight < element.scrollHeight;
933
+ }
934
+ /**
935
+ * Sets the `title` attribute in the event's element target, when the text
936
+ * content is clipped due to CSS overflow, as in showing `...`.
937
+ */
938
+
939
+ function maybeShowTooltip(target, title) {
940
+ if (hasOverflowEllipsis(target)) {
941
+ target.setAttribute('title', title);
942
+ } else {
943
+ target.removeAttribute('title');
944
+ }
945
+ }
946
+ ;// CONCATENATED MODULE: ../../packages/shared/src/popover.ts
947
+
948
+
949
+
950
+
951
+
952
+ /*
953
+ * Tencent is pleased to support the open source community by making
954
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
955
+ *
956
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
957
+ *
958
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
959
+ *
960
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
961
+ *
962
+ * ---------------------------------------------------
963
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
964
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
965
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
966
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
967
+ *
968
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
969
+ * the Software.
970
+ *
971
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
972
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
973
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
974
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
975
+ * IN THE SOFTWARE.
976
+ */
977
+
978
+
979
+
980
+ var BKPopover = /*#__PURE__*/function () {
981
+ function BKPopover(reference, popperRefer, options) {
982
+ _classCallCheck(this, BKPopover);
983
+
984
+ var _a, _b;
985
+ /** 当前提内容是否弹出 */
986
+
987
+
988
+ this.isShow = false;
989
+ /** 触发条件 */
990
+
991
+ this.trigger = undefined;
992
+ /** 当前popperjs实例 */
993
+
994
+ this.instance = undefined;
995
+ /** 是否总是可见 */
996
+
997
+ this.always = false;
998
+ /** Popover 外层容器,触发Pop的元素 */
999
+
1000
+ this.reference = undefined;
1001
+ /** Popover 弹出内容外层占位容器 */
1002
+
1003
+ this.referenceTarget = undefined;
1004
+ /** Popover Content 外层容器,目标元素:实际弹出内容 */
1005
+
1006
+ this.popperRefer = undefined;
1007
+ /** hide延时 */
1008
+
1009
+ this.delay = 50;
1010
+ /** 是否进入popperRefer */
1011
+
1012
+ this.isInnerPopper = false;
1013
+ /** 是否为禁用状态 */
1014
+
1015
+ this.disabled = false;
1016
+ /** 执行显示函数 */
1017
+
1018
+ this.afterShow = null;
1019
+ /** 执行隐藏函数 */
1020
+
1021
+ this.afterHidden = null;
1022
+ /** 弹出内容AppendTo */
1023
+
1024
+ this.appendTo = 'parent';
1025
+ /** 父级容器 */
1026
+
1027
+ this.container = null;
1028
+ /**
1029
+ * 如果设置了appendTo为指定DOM,此配置项生效
1030
+ * 是否将弹出内容固定到目标元素位置
1031
+ * 例如:appendTo = document.body, fixOnBoundary = true,则弹出内容会一直固定到body
1032
+ */
1033
+
1034
+ this.fixOnBoundary = false;
1035
+ this.instanceOptions = this.initDefaultOptions(options);
1036
+ this.reference = this.resolveInputSelectorToHtmlElement(reference);
1037
+ this.popperRefer = this.resolveInputSelectorToHtmlElement(popperRefer);
1038
+ this.referenceTarget = this.getTargetReferenceElement();
1039
+ this.container = (_a = this.popperRefer) === null || _a === void 0 ? void 0 : _a.parentElement;
1040
+ this.isShow = !!((_b = this.instanceOptions) === null || _b === void 0 ? void 0 : _b.isShow);
1041
+ this.always = this.instanceOptions.always;
1042
+ this.trigger = this.instanceOptions.trigger;
1043
+ this.disabled = this.instanceOptions.disabled;
1044
+ this.appendTo = this.instanceOptions.appendTo;
1045
+ this.afterHidden = typeof options.afterHidden === 'function' ? options.afterHidden : function () {};
1046
+ this.afterShow = typeof options.afterShow === 'function' ? options.afterShow : function () {};
1047
+ this.fixOnBoundary = this.instanceOptions.fixOnBoundary;
1048
+ this.initInstance();
1049
+ this.registerEvents();
1050
+ /** 默认弹出 */
1051
+
1052
+ if (this.isShow || this.always) {
1053
+ this.show(null);
1054
+ }
1055
+ } // Synchronously updates the popper instance. Use this for low-frequency
1056
+ // updates.
1057
+
1058
+
1059
+ _createClass(BKPopover, [{
1060
+ key: "forceUpdate",
1061
+ value: function forceUpdate() {
1062
+ var _a;
1063
+
1064
+ (_a = this.instance) === null || _a === void 0 ? void 0 : _a.forceUpdate();
1065
+ } // Asynchronously updates the popper instance, and returns a promise. Use this
1066
+ // for high-frequency updates.
1067
+
1068
+ }, {
1069
+ key: "update",
1070
+ value: function update() {
1071
+ var _a;
1072
+
1073
+ (_a = this.instance) === null || _a === void 0 ? void 0 : _a.update();
1074
+ }
1075
+ }, {
1076
+ key: "updateOptions",
1077
+ value: function updateOptions(options) {
1078
+ var _a;
1079
+
1080
+ this.instanceOptions = this.initDefaultOptions(options);
1081
+ this.isShow = !!((_a = this.instanceOptions) === null || _a === void 0 ? void 0 : _a.isShow);
1082
+ this.trigger = this.instanceOptions.trigger;
1083
+ this.disabled = this.instanceOptions.disabled;
1084
+ this.setOptions(this.instanceOptions);
1085
+ } // Updates the options of the instance.
1086
+
1087
+ }, {
1088
+ key: "setOptions",
1089
+ value: function setOptions(options) {
1090
+ var _a;
1091
+
1092
+ (_a = this.instance) === null || _a === void 0 ? void 0 : _a.setOptions(options);
1093
+ } // Cleans up the instance.
1094
+
1095
+ }, {
1096
+ key: "destroy",
1097
+ value: function destroy() {
1098
+ var _a;
1099
+
1100
+ (_a = this.instance) === null || _a === void 0 ? void 0 : _a.destroy();
1101
+ } // 更新禁用状态
1102
+
1103
+ }, {
1104
+ key: "updateDisabled",
1105
+ value: function updateDisabled(disabled) {
1106
+ this.disabled = disabled !== null && disabled !== void 0 ? disabled : !this.disabled;
1107
+ this.disabled && this.hide();
1108
+ }
1109
+ /**
1110
+ * 展示Pop
1111
+ * @param _event 触发事件
1112
+ */
1113
+
1114
+ }, {
1115
+ key: "show",
1116
+ value: function show(_event) {
1117
+ var _a;
1118
+
1119
+ if (!this.disabled) {
1120
+ // Make the tooltip visible
1121
+ (_a = this.popperRefer) === null || _a === void 0 ? void 0 : _a.setAttribute('data-show', ''); // Enable the event listeners
1122
+
1123
+ this.setOptions({
1124
+ modifiers: [].concat(_toConsumableArray(this.instanceOptions.modifiers || []), [{
1125
+ name: 'eventListeners',
1126
+ enabled: true
1127
+ }])
1128
+ }); // Update its position
1129
+
1130
+ this.update();
1131
+ this.isShow = true;
1132
+ this.afterShow();
1133
+
1134
+ if (!this.fixOnBoundary) {
1135
+ this.appendToTarget();
1136
+ }
1137
+ }
1138
+ }
1139
+ /**
1140
+ * 隐藏
1141
+ * @param event 触发事件
1142
+ */
1143
+
1144
+ }, {
1145
+ key: "hide",
1146
+ value: function hide() {
1147
+ var _a;
1148
+
1149
+ if (this.always) return; // Hide the tooltip
1150
+
1151
+ (_a = this.popperRefer) === null || _a === void 0 ? void 0 : _a.removeAttribute('data-show'); // Disable the event listeners
1152
+
1153
+ this.setOptions({
1154
+ modifiers: [].concat(_toConsumableArray(this.instanceOptions.modifiers || []), [{
1155
+ name: 'eventListeners',
1156
+ enabled: false
1157
+ }])
1158
+ });
1159
+ this.isShow = false;
1160
+ this.isInnerPopper = false;
1161
+ this.afterHidden();
1162
+
1163
+ if (!this.fixOnBoundary) {
1164
+ this.restorePopContent();
1165
+ }
1166
+ }
1167
+ /**
1168
+ * 还原PopContent到初试位置
1169
+ */
1170
+
1171
+ }, {
1172
+ key: "restorePopContent",
1173
+ value: function restorePopContent() {
1174
+ var target = this.getAppendToTarget();
1175
+
1176
+ if (helper_isElement(target) && target.contains(this.popperRefer) && this.container && !this.container.contains(this.popperRefer)) {
1177
+ this.container.append(this.popperRefer);
1178
+ }
1179
+ }
1180
+ /**
1181
+ * 挂载PopContent到目标位置
1182
+ */
1183
+
1184
+ }, {
1185
+ key: "appendToTarget",
1186
+ value: function appendToTarget() {
1187
+ var target = this.getAppendToTarget();
1188
+
1189
+ if (helper_isElement(target) && target.contains(this.popperRefer)) {
1190
+ target.append(this.popperRefer);
1191
+ }
1192
+ }
1193
+ /**
1194
+ * 获取目标位置元素
1195
+ * @returns
1196
+ */
1197
+
1198
+ }, {
1199
+ key: "getAppendToTarget",
1200
+ value: function getAppendToTarget() {
1201
+ var appendTo = this.appendTo;
1202
+ var target = appendTo;
1203
+
1204
+ if (appendTo !== 'parent') {
1205
+ if (typeof appendTo === 'string') {
1206
+ target = document.querySelector(appendTo);
1207
+ }
1208
+ }
1209
+
1210
+ return target;
1211
+ }
1212
+ /**
1213
+ * 初始化默认配置
1214
+ * @param opts
1215
+ * @returns
1216
+ */
1217
+
1218
+ }, {
1219
+ key: "initDefaultOptions",
1220
+ value: function initDefaultOptions(opts) {
1221
+ var _this = this;
1222
+
1223
+ var defaultCfg = {
1224
+ placement: 'top',
1225
+ modifiers: [{
1226
+ name: 'offset',
1227
+ options: {
1228
+ offset: [0, 8]
1229
+ }
1230
+ }],
1231
+ strategy: 'absolute',
1232
+ onFirstUpdate: undefined,
1233
+ isShow: false,
1234
+ theme: 'dark',
1235
+ trigger: 'hover',
1236
+ disabled: false
1237
+ };
1238
+ var targetOptions = merge(defaultCfg, opts || {});
1239
+ var sourceOnFirstUpdate = targetOptions.onFirstUpdate;
1240
+
1241
+ targetOptions.onFirstUpdate = function (state) {
1242
+ if (typeof sourceOnFirstUpdate === 'function') {
1243
+ sourceOnFirstUpdate.call(_this, state);
1244
+
1245
+ _this.handleFirstUpdate();
1246
+ }
1247
+ };
1248
+
1249
+ return targetOptions;
1250
+ }
1251
+ /**
1252
+ * 判定是否需要将PopContent挂载到目标元素
1253
+ */
1254
+
1255
+ }, {
1256
+ key: "handleFirstUpdate",
1257
+ value: function handleFirstUpdate() {
1258
+ if (this.fixOnBoundary) {
1259
+ this.appendToTarget();
1260
+ }
1261
+ }
1262
+ /**
1263
+ * 剔除 Pop 外层容器,获取目标元素
1264
+ * @returns
1265
+ */
1266
+
1267
+ }, {
1268
+ key: "getTargetReferenceElement",
1269
+ value: function getTargetReferenceElement() {
1270
+ if (this.isElement(this.reference)) {
1271
+ return this.reference.childElementCount === 1 ? this.reference.firstElementChild : this.reference;
1272
+ }
1273
+
1274
+ return this.reference;
1275
+ }
1276
+ /**
1277
+ * 初始化Pop Instance
1278
+ */
1279
+
1280
+ }, {
1281
+ key: "initInstance",
1282
+ value: function initInstance() {
1283
+ var _a, _b;
1284
+
1285
+ if (this.referenceTarget) {
1286
+ if (this.referenceTarget && this.popperRefer) {
1287
+ this.instance = (0,core_namespaceObject.createPopper)(this.referenceTarget, this.popperRefer, this.instanceOptions);
1288
+ (_a = this.popperRefer) === null || _a === void 0 ? void 0 : _a.setAttribute('data-theme', (_b = this.instanceOptions.theme) !== null && _b !== void 0 ? _b : 'dark');
1289
+ } else {
1290
+ console.error('reference or popperRefer is null, please check html element.');
1291
+ }
1292
+ }
1293
+ }
1294
+ /**
1295
+ * 解析当前参数为对应的Html Element
1296
+ * @param refer Html Element Selector Or Html Element
1297
+ * @param checkVirtualDom 是否检查虚拟DOM
1298
+ * @returns Html Element Or Null
1299
+ */
1300
+
1301
+ }, {
1302
+ key: "resolveInputSelectorToHtmlElement",
1303
+ value: function resolveInputSelectorToHtmlElement(refer) {
1304
+ if (this.isElement(refer)) {
1305
+ return refer;
1306
+ }
1307
+
1308
+ if (typeof refer === 'string') {
1309
+ return document.querySelector(refer);
1310
+ }
1311
+
1312
+ if (_typeof(refer) === 'object') {
1313
+ if (Object.prototype.hasOwnProperty.call(refer, 'getBoundingClientRect')) {
1314
+ return refer;
1315
+ }
1316
+ } else {
1317
+ console.error('\'getBoundingClientRect\' is needed when use virtual elements');
1318
+ }
1319
+
1320
+ return null;
1321
+ }
1322
+ /**
1323
+ * 检查当前元素是否为Html元素
1324
+ * @param obj
1325
+ * @returns
1326
+ */
1327
+
1328
+ }, {
1329
+ key: "isElement",
1330
+ value: function isElement(obj) {
1331
+ return helper_isElement(obj);
1332
+ }
1333
+ }, {
1334
+ key: "registerEvents",
1335
+ value: function registerEvents() {
1336
+ var _this2 = this;
1337
+
1338
+ if (this.isElement(this.referenceTarget)) {
1339
+ if (this.trigger === 'hover') {
1340
+ var showEvents = ['mouseenter', 'focus'];
1341
+ var hideEvents = ['mouseleave', 'blur'];
1342
+ var contentEvents = ['mouseenter', 'mouseleave'];
1343
+ showEvents.forEach(function (event) {
1344
+ _this2.referenceTarget.addEventListener(event, function (evt) {
1345
+ if (event === 'mouseenter') _this2.isInnerPopper = true;
1346
+
1347
+ _this2.show(evt);
1348
+ });
1349
+ });
1350
+ hideEvents.forEach(function (event) {
1351
+ _this2.referenceTarget.addEventListener(event, function () {
1352
+ _this2.isInnerPopper = false;
1353
+ setTimeout(function () {
1354
+ !_this2.isInnerPopper && _this2.hide();
1355
+ }, _this2.delay);
1356
+ });
1357
+ });
1358
+
1359
+ if (this.isElement(this.popperRefer)) {
1360
+ contentEvents.forEach(function (event) {
1361
+ _this2.popperRefer.addEventListener(event, function () {
1362
+ if (event === 'mouseenter') _this2.isInnerPopper = true;
1363
+ if (event === 'mouseleave') _this2.hide();
1364
+ });
1365
+ });
1366
+ }
1367
+ }
1368
+ }
1369
+
1370
+ if (this.trigger === 'click') {
1371
+ var _showEvents = ['click'];
1372
+
1373
+ _showEvents.forEach(function (event) {
1374
+ document.body.addEventListener(event, function (event) {
1375
+ if (_this2.isSameElement(event.target, _this2.reference) || _this2.reference.contains(event.target)) {
1376
+ _this2.show(event);
1377
+ } else {
1378
+ if (_this2.isShow && !_this2.isSameElement(event.target, _this2.popperRefer) && !_this2.popperRefer.contains(event.target)) {
1379
+ _this2.hide();
1380
+ }
1381
+ }
1382
+ });
1383
+ });
1384
+ }
1385
+ }
1386
+ }, {
1387
+ key: "isSameElement",
1388
+ value: function isSameElement(source, target) {
1389
+ return source && (source === target || source === target.firstElementChild);
1390
+ }
1391
+ }]);
1392
+
1393
+ return BKPopover;
1394
+ }();
1395
+ var popContainerId = null;
1396
+ var getPopContainerId = function getPopContainerId() {
1397
+ var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '#';
1398
+
1399
+ if (popContainerId === null) {
1400
+ popContainerId = "id_".concat((0,uuid.v4)());
1401
+ var popContainer = document.createElement('div');
1402
+ popContainer.setAttribute('id', popContainerId);
1403
+ popContainer.setAttribute('data-popper-id', popContainerId);
1404
+ document.body.append(popContainer);
1405
+ }
1406
+
1407
+ return "".concat(prefix).concat(popContainerId);
1408
+ };
1409
+ ;// CONCATENATED MODULE: external "lodash"
1410
+ var external_lodash_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1411
+ var external_lodash_y = x => () => x
1412
+ const external_lodash_namespaceObject = external_lodash_x({ ["throttle"]: () => __WEBPACK_EXTERNAL_MODULE_lodash__.throttle });
1413
+ ;// CONCATENATED MODULE: ../../packages/shared/src/utils.ts
1414
+ /*
1415
+ * Tencent is pleased to support the open source community by making
1416
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1417
+ *
1418
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1419
+ *
1420
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1421
+ *
1422
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1423
+ *
1424
+ * ---------------------------------------------------
1425
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1426
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1427
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1428
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1429
+ *
1430
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1431
+ * the Software.
1432
+ *
1433
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1434
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1435
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1436
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1437
+ * IN THE SOFTWARE.
1438
+ */
1439
+
1440
+ var lowerStr = 'abcdefghijklmnopqrstuvwxyz0123456789';
1441
+ /**
1442
+ * 生成n位长度的字符串
1443
+ * @param {Number} n
1444
+ * @param str,默认26位字母及数字
1445
+ */
1446
+
1447
+ var random = function random(n) {
1448
+ var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : lowerStr;
1449
+ var result = '';
1450
+
1451
+ for (var i = 0; i < n; i++) {
1452
+ result += str[parseInt((Math.random() * str.length).toString(), 10)];
1453
+ }
1454
+
1455
+ return result;
1456
+ };
1457
+ /**
1458
+ * 监听目标元素的Resize事件
1459
+ * @param root 目标元素
1460
+ * @param callbackFn 执行函数
1461
+ * @param delay 延迟执行时间,默认 60
1462
+ * @param immediate 是否立即执行回调函数
1463
+ * @returns "{ start: () => void, stop: () => void }"
1464
+ */
1465
+
1466
+ var observerResize = function observerResize(root, callbackFn) {
1467
+ var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 60;
1468
+ var immediate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
1469
+ var callFn = (0,external_lodash_namespaceObject.throttle)(function () {
1470
+ if (typeof callbackFn === 'function') {
1471
+ callbackFn();
1472
+ }
1473
+ }, delay);
1474
+ var resizeObserver = new ResizeObserver(function () {
1475
+ callFn();
1476
+ });
1477
+
1478
+ if (immediate) {
1479
+ if (typeof callbackFn === 'function') {
1480
+ callbackFn();
1481
+ }
1482
+ }
1483
+
1484
+ return {
1485
+ start: function start() {
1486
+ resizeObserver.observe(root);
1487
+ },
1488
+ stop: function stop() {
1489
+ resizeObserver.disconnect();
1490
+ resizeObserver.unobserve(root);
1491
+ }
1492
+ };
1493
+ };
1494
+ var capitalize = function capitalize(str) {
1495
+ return str[0].toUpperCase() + str.slice(1);
1496
+ };
1497
+ /**
1498
+ * 判断元素是否溢出容器
1499
+ * @param {*} el
1500
+ * @returns
1501
+ */
1502
+
1503
+ function checkOverflow(el) {
1504
+ if (!el) return false;
1505
+
1506
+ var createDom = function createDom(el, css) {
1507
+ var dom = document.createElement('div');
1508
+ var width = parseFloat(css.width) ? "".concat(Math.ceil(parseFloat(css.width)), "px") : css.width;
1509
+ dom.style.cssText = "\n width: ".concat(width, ";\n line-height: ").concat(css['line-height'], ";\n font-size: ").concat(css['font-size'], ";\n word-break: ").concat(css['word-break'], ";\n padding: ").concat(css.padding, ";\n ");
1510
+ dom.textContent = el.textContent;
1511
+ return dom;
1512
+ };
1513
+
1514
+ var isOverflow = false;
1515
+
1516
+ try {
1517
+ var css = window.getComputedStyle(el, null);
1518
+ var lineClamp = css.webkitLineClamp;
1519
+
1520
+ if (lineClamp !== 'none') {
1521
+ var targetHeight = parseFloat(css.height);
1522
+ var dom = createDom(el, css);
1523
+ document.body.appendChild(dom);
1524
+ var domHeight = window.getComputedStyle(dom, null).height;
1525
+ document.body.removeChild(dom);
1526
+ isOverflow = targetHeight < parseFloat(domHeight);
1527
+ } else {
1528
+ isOverflow = el.clientWidth < el.scrollWidth || el.clientHeight < el.scrollHeight;
1529
+ }
1530
+ } catch (e) {
1531
+ console.warn('There is an error when check element overflow state: ', e);
1532
+ }
1533
+
1534
+ return isOverflow;
1535
+ }
1536
+ ;// CONCATENATED MODULE: ../../packages/shared/src/mask-manager.ts
1537
+
1538
+
1539
+
1540
+ /*
1541
+ * Tencent is pleased to support the open source community by making
1542
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1543
+ *
1544
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1545
+ *
1546
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1547
+ *
1548
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1549
+ *
1550
+ * ---------------------------------------------------
1551
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1552
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1553
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1554
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1555
+ *
1556
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1557
+ * the Software.
1558
+ *
1559
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1560
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1561
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1562
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1563
+ * IN THE SOFTWARE.
1564
+ */
1565
+
1566
+
1567
+ var BkMaskManager = /*#__PURE__*/function () {
1568
+ /**
1569
+ * 遮罩管理器
1570
+ *
1571
+ * @param multiInstance 是否允许多实例
1572
+ * @param maskAttrTag 遮罩DOM唯一标志,支持自定义和 auto
1573
+ */
1574
+ function BkMaskManager(config) {
1575
+ _classCallCheck(this, BkMaskManager);
1576
+
1577
+ /** 是否允许多个遮罩实例 */
1578
+ this.multiInstance = false;
1579
+ /** 遮罩控制器唯一标识 */
1580
+
1581
+ this.uniqueMaskAttrTag = '';
1582
+ /** 设置弹出层父级组件,默认是body */
1583
+
1584
+ this.parentNode = document.body;
1585
+ /** 遮罩当前显示组件实例 **/
1586
+
1587
+ this.activeInstance = undefined;
1588
+ /** 记录已在使用的z-index */
1589
+
1590
+ this.zIndexStore = new Map();
1591
+ /** 记录最后一个UUID */
1592
+
1593
+ this.lastUUID = null;
1594
+ /** 遮罩样式 **/
1595
+
1596
+ this.maskStyle = {
1597
+ position: 'absolute',
1598
+ left: 0,
1599
+ top: 0,
1600
+ bottom: 0,
1601
+ right: 0,
1602
+ display: 'none',
1603
+ 'background-color': 'rgba(0,0,0,.6)'
1604
+ };
1605
+
1606
+ var _ref = config || {},
1607
+ _ref$multiInstance = _ref.multiInstance,
1608
+ multiInstance = _ref$multiInstance === void 0 ? false : _ref$multiInstance,
1609
+ _ref$maskAttrTag = _ref.maskAttrTag,
1610
+ maskAttrTag = _ref$maskAttrTag === void 0 ? 'auto' : _ref$maskAttrTag,
1611
+ _ref$parentNode = _ref.parentNode,
1612
+ parentNode = _ref$parentNode === void 0 ? document.body : _ref$parentNode,
1613
+ _ref$maskStyle = _ref.maskStyle,
1614
+ maskStyle = _ref$maskStyle === void 0 ? {} : _ref$maskStyle,
1615
+ _ref$onClick = _ref.onClick,
1616
+ onClick = _ref$onClick === void 0 ? null : _ref$onClick;
1617
+
1618
+ this.onClick = onClick;
1619
+ this.activeInstance = undefined;
1620
+ this.multiInstance = multiInstance;
1621
+ this.uniqueMaskAttrTag = this.getMaskAttrTag(maskAttrTag);
1622
+ this.parentNode = parentNode || document;
1623
+ this.mask = this.getMask();
1624
+ this.backupMask = this.createMask('data-bk-backup-uid');
1625
+ this.setMaskStyle(Object.assign({}, this.maskStyle, maskStyle));
1626
+ }
1627
+
1628
+ _createClass(BkMaskManager, [{
1629
+ key: "setOption",
1630
+ value: function setOption(option) {
1631
+ var _ref2 = option || {},
1632
+ _ref2$parentNode = _ref2.parentNode,
1633
+ parentNode = _ref2$parentNode === void 0 ? document.body : _ref2$parentNode,
1634
+ _ref2$maskStyle = _ref2.maskStyle,
1635
+ maskStyle = _ref2$maskStyle === void 0 ? {} : _ref2$maskStyle,
1636
+ _ref2$onClick = _ref2.onClick,
1637
+ onClick = _ref2$onClick === void 0 ? null : _ref2$onClick;
1638
+
1639
+ this.onClick = onClick;
1640
+ this.parentNode = parentNode || document;
1641
+ this.setMaskStyle(Object.assign({}, this.maskStyle, maskStyle));
1642
+ }
1643
+ /**
1644
+ * 显示遮罩
1645
+ * @param content 遮罩内容
1646
+ * @param zIndex z-index
1647
+ * @param showMask 是否显示遮罩
1648
+ * @param appendStyle 追加样式
1649
+ * @param transfer 是否显示将内容加入遮罩下
1650
+ */
1651
+
1652
+ }, {
1653
+ key: "show",
1654
+ value: function show(content, zIndex) {
1655
+ var showMask = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
1656
+ var appendStyle = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1657
+ var uuid = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
1658
+ var transfer = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
1659
+ var uid = uuid !== null && uuid !== void 0 ? uuid : random(16); // @ts-ignore
1660
+
1661
+ var localZIndex = /-?\d+/.test("".concat(zIndex)) ? zIndex : bkZIndexManager.getModalNextIndex();
1662
+ var style = Object.assign({}, this.maskStyle, appendStyle || {});
1663
+ /**
1664
+ * 如果不显示遮罩,此处遮罩继承父级
1665
+ * 同时,如果父级弹出层有遮罩,此处不能覆盖
1666
+ */
1667
+
1668
+ if (!showMask) {
1669
+ if (this.lastUUID) {
1670
+ var preStore = this.zIndexStore.get(this.lastUUID);
1671
+ style = preStore.style;
1672
+ }
1673
+ }
1674
+ /** 缓存当前z-index */
1675
+
1676
+
1677
+ this.storeMaskInsCfg({
1678
+ zIndex: localZIndex,
1679
+ style: Object.assign({}, style),
1680
+ uuid: uid,
1681
+ preUID: this.lastUUID
1682
+ });
1683
+ this.setMaskStyle(style);
1684
+ this.mask.style.setProperty('display', 'block');
1685
+ this.mask.style.setProperty('z-index', "".concat(localZIndex));
1686
+ this.backupMask.style.setProperty('z-index', "".concat(localZIndex - 1));
1687
+
1688
+ if (content) {
1689
+ if (transfer) content.style.setProperty('z-index', "".concat(localZIndex + 1)); // 表明内容不在遮罩下,内容区z-index + 1
1690
+
1691
+ this.activeInstance = content;
1692
+ if (!transfer) this.appendContentToMask(content); // 表明内容在body下,即在遮罩下
1693
+ }
1694
+ }
1695
+ }, {
1696
+ key: "hide",
1697
+ value: function hide() {
1698
+ var transfer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
1699
+ var content = arguments.length > 1 ? arguments[1] : undefined;
1700
+ var uuid = arguments.length > 2 ? arguments[2] : undefined;
1701
+
1702
+ var _a;
1703
+
1704
+ var uid = uuid !== null && uuid !== void 0 ? uuid : this.lastUUID;
1705
+ this.mask.style.setProperty('display', 'none');
1706
+
1707
+ if (!transfer) {
1708
+ content === null || content === void 0 ? void 0 : content.remove();
1709
+ (_a = this.activeInstance) === null || _a === void 0 ? void 0 : _a.remove();
1710
+ }
1711
+
1712
+ this.activeInstance = undefined;
1713
+ this.popIndexStore(uid);
1714
+ }
1715
+ }, {
1716
+ key: "storeMaskInsCfg",
1717
+ value: function storeMaskInsCfg(config) {
1718
+ this.zIndexStore.set(config.uuid, config);
1719
+ this.lastUUID = config.uuid;
1720
+ return this.zIndexStore.get(config.uuid);
1721
+ }
1722
+ /**
1723
+ * 移除最后一次缓存数据
1724
+ */
1725
+
1726
+ }, {
1727
+ key: "popIndexStore",
1728
+ value: function popIndexStore(uuid) {
1729
+ if (this.zIndexStore.has(uuid)) {
1730
+ var rmIns = this.zIndexStore.get(uuid);
1731
+ this.lastUUID = rmIns.preUID;
1732
+ return this.zIndexStore["delete"](uuid);
1733
+ ;
1734
+ }
1735
+
1736
+ this.lastUUID = null;
1737
+ return false;
1738
+ }
1739
+ }, {
1740
+ key: "backupActiveInstance",
1741
+ value: function backupActiveInstance() {
1742
+ if (this.activeInstance) {
1743
+ this.backupMask.append(this.activeInstance);
1744
+ }
1745
+ }
1746
+ }, {
1747
+ key: "backupContentElement",
1748
+ value: function backupContentElement(content) {
1749
+ content && this.backupMask.append(content);
1750
+ }
1751
+ }, {
1752
+ key: "getActiveContentInstance",
1753
+ value: function getActiveContentInstance() {
1754
+ return this.activeInstance;
1755
+ }
1756
+ /**
1757
+ * 初始化当前遮罩管理器
1758
+ * @returns 当前遮罩容器
1759
+ */
1760
+
1761
+ }, {
1762
+ key: "getMask",
1763
+ value: function getMask() {
1764
+ var _this = this;
1765
+
1766
+ if (this.multiInstance) {
1767
+ return this.createMask();
1768
+ }
1769
+
1770
+ var div = this.parentNode.querySelector("[data-bkmask-uid='".concat(this.uniqueMaskAttrTag, "']"));
1771
+
1772
+ if (!div) {
1773
+ div = this.createMask();
1774
+ div.addEventListener('click', function (e) {
1775
+ if (e.target === div) {
1776
+ if (typeof _this.onClick === 'function') {
1777
+ Reflect.apply(_this.onClick, _this, [e]);
1778
+ }
1779
+ }
1780
+ }, true);
1781
+ }
1782
+
1783
+ return div;
1784
+ }
1785
+ /**
1786
+ * 创建遮罩层DOM
1787
+ * @returns 返回DOM
1788
+ */
1789
+
1790
+ }, {
1791
+ key: "createMask",
1792
+ value: function createMask() {
1793
+ var attrName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'data-bk-mask-uid';
1794
+ var div = document.createElement('div');
1795
+ div.setAttribute(attrName, this.uniqueMaskAttrTag);
1796
+ this.parentNode.append(div);
1797
+ return div;
1798
+ }
1799
+ }, {
1800
+ key: "setMaskStyle",
1801
+ value: function setMaskStyle() {
1802
+ var _this2 = this;
1803
+
1804
+ var maskStyle = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1805
+
1806
+ if (this.mask) {
1807
+ Object.entries(maskStyle).forEach(function (cfg) {
1808
+ return _this2.mask.style.setProperty(cfg[0], cfg[1]);
1809
+ });
1810
+ }
1811
+ }
1812
+ /**
1813
+ * 根据输入生成唯一遮罩标识
1814
+ * @param tag 输入标识
1815
+ * @returns string 返回唯一标识
1816
+ */
1817
+
1818
+ }, {
1819
+ key: "getMaskAttrTag",
1820
+ value: function getMaskAttrTag(tag) {
1821
+ if (/^(auto|\s+)$/i.test(tag) || tag === null || tag === undefined || tag === '') {
1822
+ return "__bk_mask_".concat(random(16));
1823
+ }
1824
+
1825
+ return tag;
1826
+ }
1827
+ }, {
1828
+ key: "appendContentToMask",
1829
+ value: function appendContentToMask(content) {
1830
+ this.mask.append(content);
1831
+ }
1832
+ }]);
1833
+
1834
+ return BkMaskManager;
1835
+ }();
1836
+ var bKMaskManager = new BkMaskManager({});
1837
+ ;// CONCATENATED MODULE: ../../packages/shared/src/pop-manager.ts
1838
+
1839
+
1840
+
1841
+ /*
1842
+ * Tencent is pleased to support the open source community by making
1843
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1844
+ *
1845
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1846
+ *
1847
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1848
+ *
1849
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1850
+ *
1851
+ * ---------------------------------------------------
1852
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1853
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1854
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1855
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1856
+ *
1857
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1858
+ * the Software.
1859
+ *
1860
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1861
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1862
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1863
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1864
+ * IN THE SOFTWARE.
1865
+ */
1866
+
1867
+
1868
+
1869
+ var BKPopIndexManager = /*#__PURE__*/function () {
1870
+ function BKPopIndexManager() {
1871
+ var _this = this;
1872
+
1873
+ _classCallCheck(this, BKPopIndexManager);
1874
+
1875
+ this.getActiveClickFnIndex = function (match) {
1876
+ var filterFn = function filterFn(target) {
1877
+ return typeof match === 'string' ? target.getAttribute(_this.uuidAttrName) === match : target === match;
1878
+ };
1879
+
1880
+ return _this.clickFn.findIndex(function (_ref) {
1881
+ var target = _ref.target;
1882
+ return filterFn(target);
1883
+ });
1884
+ };
1885
+
1886
+ this.getActiveClickFn = function (match) {
1887
+ var _a;
1888
+
1889
+ return (_a = _this.clickFn[_this.getActiveClickFnIndex(match)]) === null || _a === void 0 ? void 0 : _a.fn;
1890
+ };
1891
+
1892
+ this.popInstanceList = [];
1893
+ this.clickFn = [];
1894
+ this.uuidAttrName = 'data-bk-pop-uuid';
1895
+ this.activePopId = null;
1896
+ bKMaskManager.setOption({
1897
+ onClick: this.onMaskClickFn.bind(this)
1898
+ });
1899
+ }
1900
+
1901
+ _createClass(BKPopIndexManager, [{
1902
+ key: "onMaskClick",
1903
+ value: function onMaskClick(callFn, target) {
1904
+ this.clickFn.push({
1905
+ fn: callFn,
1906
+ target: target
1907
+ });
1908
+ }
1909
+ /**
1910
+ * 展示弹窗
1911
+ * @param content 弹窗内容
1912
+ * @param showMask 是否显示遮罩
1913
+ * @param appendStyle 追加样式
1914
+ * @param transfer 是否显示在body内(即是否显示在div#app内,默认为false)
1915
+ * @returns
1916
+ */
1917
+
1918
+ }, {
1919
+ key: "show",
1920
+ value: function show(content) {
1921
+ var showMask = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
1922
+ var appendStyle = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1923
+ var transfer = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
1924
+ var zindex = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined;
1925
+
1926
+ if (!content) {
1927
+ console.warn('pop show error: content is null or undefined');
1928
+ return;
1929
+ }
1930
+
1931
+ var zIndex = typeof zindex === 'number' ? zindex : bkZIndexManager.getModalNextIndex();
1932
+ var uuid = random(16);
1933
+ content.setAttribute(this.uuidAttrName, uuid);
1934
+ this.popInstanceList.push({
1935
+ uuid: uuid,
1936
+ zIndex: zIndex,
1937
+ content: content,
1938
+ showMask: showMask,
1939
+ appendStyle: appendStyle
1940
+ });
1941
+ showMask && bKMaskManager.backupActiveInstance();
1942
+ bKMaskManager.show(content, zIndex, showMask, appendStyle, uuid, transfer);
1943
+ this.activePopId = uuid;
1944
+ }
1945
+ /**
1946
+ * 销毁指定实例
1947
+ * @param content 指定实例内容
1948
+ * @param transfer
1949
+ */
1950
+
1951
+ }, {
1952
+ key: "destroy",
1953
+ value: function destroy(content) {
1954
+ var transfer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1955
+
1956
+ var _a;
1957
+
1958
+ var index = this.getActiveClickFnIndex(content);
1959
+
1960
+ if (index >= 0) {
1961
+ (_a = this.clickFn) === null || _a === void 0 ? void 0 : _a.splice(index, 1);
1962
+ }
1963
+
1964
+ this.hide(content, transfer);
1965
+ }
1966
+ /**
1967
+ * 关闭最后一个弹窗 如果当前还有父级弹窗,则激活父级弹窗
1968
+ * @param removeLastContent 默认:true 是否自动关闭最后一个弹窗实例 某些场景下,已经主动关闭最后一个弹窗,此处只需要处理其他逻辑
1969
+ */
1970
+
1971
+ }, {
1972
+ key: "popHide",
1973
+ value: function popHide() {
1974
+ var removeLastContent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
1975
+
1976
+ if (this.popInstanceList.length) {
1977
+ if (removeLastContent) {
1978
+ var lastItem = this.popInstanceList.pop();
1979
+ bKMaskManager.popIndexStore(lastItem.uuid);
1980
+ lastItem.remove();
1981
+ this.activePopId = null;
1982
+ }
1983
+
1984
+ if (this.popInstanceList.length) {
1985
+ var activeItem = this.popInstanceList.slice(-1)[0];
1986
+ var zIndex = activeItem.zIndex,
1987
+ content = activeItem.content,
1988
+ showMask = activeItem.showMask,
1989
+ appendStyle = activeItem.appendStyle,
1990
+ uuid = activeItem.uuid;
1991
+ bKMaskManager.show(content, zIndex, showMask, appendStyle, uuid);
1992
+ this.activePopId = uuid;
1993
+ } else {
1994
+ bKMaskManager.hide();
1995
+ this.activePopId = null;
1996
+ this.clickFn.length = 0;
1997
+ }
1998
+ }
1999
+ }
2000
+ /**
2001
+ * 关闭指定弹窗
2002
+ * @param content { HTMLElement } 关闭弹窗内容
2003
+ * **/
2004
+
2005
+ }, {
2006
+ key: "hide",
2007
+ value: function hide(content) {
2008
+ var transfer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
2009
+
2010
+ /** 检查当前实例是否存在于已缓存列表 */
2011
+ var uuid = content === null || content === void 0 ? void 0 : content.getAttribute(this.uuidAttrName);
2012
+
2013
+ if (uuid) {
2014
+ var itemIndex = this.popInstanceList.findIndex(function (item) {
2015
+ return item.uuid === uuid;
2016
+ });
2017
+
2018
+ if (itemIndex >= 0) {
2019
+ if (!transfer) this.popInstanceList[itemIndex].content.remove();
2020
+ this.popInstanceList.splice(itemIndex, 1);
2021
+ bKMaskManager.popIndexStore(uuid);
2022
+
2023
+ if (!this.popInstanceList.length) {
2024
+ bKMaskManager.hide(transfer);
2025
+ this.activePopId = null;
2026
+ this.clickFn.length = 0;
2027
+ } else {
2028
+ this.popHide(false);
2029
+ }
2030
+ }
2031
+ } else {
2032
+ content === null || content === void 0 ? void 0 : content.remove();
2033
+ }
2034
+ }
2035
+ }, {
2036
+ key: "onMaskClickFn",
2037
+ value: function onMaskClickFn(e) {
2038
+ var fn = this.getActiveClickFn(this.activePopId);
2039
+
2040
+ if (fn) {
2041
+ Reflect.apply(fn, this, [e]);
2042
+ }
2043
+ }
2044
+ }]);
2045
+
2046
+ return BKPopIndexManager;
2047
+ }();
2048
+ var bkPopIndexManager = new BKPopIndexManager();
2049
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
2050
+ function _setPrototypeOf(o, p) {
2051
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
2052
+ o.__proto__ = p;
2053
+ return o;
2054
+ };
2055
+
2056
+ return _setPrototypeOf(o, p);
2057
+ }
2058
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/inherits.js
2059
+
2060
+ function _inherits(subClass, superClass) {
2061
+ if (typeof superClass !== "function" && superClass !== null) {
2062
+ throw new TypeError("Super expression must either be null or a function");
2063
+ }
2064
+
2065
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
2066
+ constructor: {
2067
+ value: subClass,
2068
+ writable: true,
2069
+ configurable: true
2070
+ }
2071
+ });
2072
+ Object.defineProperty(subClass, "prototype", {
2073
+ writable: false
2074
+ });
2075
+ if (superClass) _setPrototypeOf(subClass, superClass);
2076
+ }
2077
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
2078
+ function _assertThisInitialized(self) {
2079
+ if (self === void 0) {
2080
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2081
+ }
2082
+
2083
+ return self;
2084
+ }
2085
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
2086
+
2087
+
2088
+ function _possibleConstructorReturn(self, call) {
2089
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
2090
+ return call;
2091
+ } else if (call !== void 0) {
2092
+ throw new TypeError("Derived constructors may only return object or undefined");
2093
+ }
2094
+
2095
+ return _assertThisInitialized(self);
2096
+ }
2097
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
2098
+ function _getPrototypeOf(o) {
2099
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
2100
+ return o.__proto__ || Object.getPrototypeOf(o);
2101
+ };
2102
+ return _getPrototypeOf(o);
2103
+ }
2104
+ ;// CONCATENATED MODULE: external "vue-types"
2105
+ var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2106
+ var external_vue_types_y = x => () => x
2107
+ const external_vue_types_namespaceObject = external_vue_types_x({ ["createTypes"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.createTypes, ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
2108
+ ;// CONCATENATED MODULE: ../../packages/shared/src/vue-types.ts
2109
+
2110
+
2111
+
2112
+
2113
+
2114
+
2115
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
2116
+
2117
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2118
+
2119
+
2120
+ var propTypesNS = (0,external_vue_types_namespaceObject.createTypes)({}); // 用于创建字符串列表映射至 `K: V` 的函数
2121
+
2122
+ function stringEnum(o) {
2123
+ return o.reduce(function (res, key) {
2124
+ res[key] = key;
2125
+ return res;
2126
+ }, Object.create(null));
2127
+ }
2128
+ var SizeEnum;
2129
+
2130
+ (function (SizeEnum) {
2131
+ SizeEnum["SMALL"] = "small";
2132
+ SizeEnum["LARGE"] = "large";
2133
+ SizeEnum["DEFAULT"] = "default";
2134
+ })(SizeEnum || (SizeEnum = {}));
2135
+
2136
+ var Placements;
2137
+
2138
+ (function (Placements) {
2139
+ Placements["Top"] = "top";
2140
+ Placements["Left"] = "left";
2141
+ Placements["Right"] = "right";
2142
+ Placements["Bottom"] = "bottom";
2143
+ })(Placements || (Placements = {}));
2144
+
2145
+ var RenderDirectiveEnum;
2146
+
2147
+ (function (RenderDirectiveEnum) {
2148
+ RenderDirectiveEnum["IF"] = "if";
2149
+ RenderDirectiveEnum["SHOW"] = "show";
2150
+ })(RenderDirectiveEnum || (RenderDirectiveEnum = {}));
2151
+
2152
+ function renderDirectiveType() {
2153
+ return (0,external_vue_types_namespaceObject.toType)('renderDirective', {
2154
+ "default": RenderDirectiveEnum.SHOW
2155
+ });
2156
+ }
2157
+ ;
2158
+ var AlignEnum;
2159
+
2160
+ (function (AlignEnum) {
2161
+ AlignEnum["LEFT"] = "left";
2162
+ AlignEnum["CENTER"] = "center";
2163
+ AlignEnum["RIGHT"] = "right";
2164
+ })(AlignEnum || (AlignEnum = {}));
2165
+
2166
+ function alignType() {
2167
+ return (0,external_vue_types_namespaceObject.toType)('align', {
2168
+ "default": AlignEnum.LEFT
2169
+ }).def(AlignEnum.LEFT);
2170
+ }
2171
+ ;
2172
+ var ThemeEnum;
2173
+
2174
+ (function (ThemeEnum) {
2175
+ ThemeEnum["PRIMARY"] = "primary";
2176
+ ThemeEnum["WARNING"] = "warning";
2177
+ ThemeEnum["SUCCESS"] = "success";
2178
+ ThemeEnum["DANGER"] = "danger";
2179
+ })(ThemeEnum || (ThemeEnum = {}));
2180
+ /** 弹层出现位置选项 */
2181
+
2182
+
2183
+ var PlacementEnum;
2184
+
2185
+ (function (PlacementEnum) {
2186
+ PlacementEnum["AUTO"] = "auto";
2187
+ PlacementEnum["AUTO_START"] = "auto-start";
2188
+ PlacementEnum["AUTO_END"] = "auto-end";
2189
+ PlacementEnum["TOP"] = "top";
2190
+ PlacementEnum["RIGHT"] = "right";
2191
+ PlacementEnum["BOTTOM"] = "bottom";
2192
+ PlacementEnum["LEFT"] = "left";
2193
+ PlacementEnum["TOP_START"] = "top-start";
2194
+ PlacementEnum["TOP_END"] = "top-end";
2195
+ PlacementEnum["BOTTOM_START"] = "bottom-start";
2196
+ PlacementEnum["BOTTOM_END"] = "bottom-end";
2197
+ PlacementEnum["RIGHT_START"] = "right-start";
2198
+ PlacementEnum["RIGHT_END"] = "right-end";
2199
+ PlacementEnum["LEFT_START"] = "left-start";
2200
+ PlacementEnum["LEFT_END"] = "left-end";
2201
+ })(PlacementEnum || (PlacementEnum = {}));
2202
+
2203
+ function placementType() {
2204
+ return (0,external_vue_types_namespaceObject.toType)('placement', {}).def(PlacementEnum.BOTTOM);
2205
+ }
2206
+ ;
2207
+ /** 弹层触发选项 */
2208
+
2209
+ var TriggerEnum;
2210
+
2211
+ (function (TriggerEnum) {
2212
+ TriggerEnum["HOVER"] = "hover";
2213
+ TriggerEnum["CLICK"] = "click";
2214
+ TriggerEnum["MANUAL"] = "manual";
2215
+ })(TriggerEnum || (TriggerEnum = {}));
2216
+
2217
+ function triggerType() {
2218
+ return (0,external_vue_types_namespaceObject.toType)('trigger', {}).def(TriggerEnum.HOVER);
2219
+ }
2220
+ ;
2221
+ /** 内容渲染类型:目前是在popover内容渲染时使用 */
2222
+
2223
+ var RenderType;
2224
+
2225
+ (function (RenderType) {
2226
+ RenderType["AUTO"] = "auto";
2227
+ RenderType["SHOWN"] = "shown"; // 默认不渲染,只有在popover弹出之后才会渲染
2228
+ })(RenderType || (RenderType = {}));
2229
+
2230
+ function renderType() {
2231
+ return (0,external_vue_types_namespaceObject.toType)('trigger', {}).def(RenderType.AUTO);
2232
+ }
2233
+ ;
2234
+ var DialogTypeEnum;
2235
+
2236
+ (function (DialogTypeEnum) {
2237
+ DialogTypeEnum["SHOW"] = "show";
2238
+ DialogTypeEnum["OPERATION"] = "operation";
2239
+ DialogTypeEnum["CONFIRM"] = "confirm";
2240
+ DialogTypeEnum["PROCESS"] = "process";
2241
+ })(DialogTypeEnum || (DialogTypeEnum = {}));
2242
+
2243
+ function dialogTypeUnion() {
2244
+ return (0,external_vue_types_namespaceObject.toType)('dialogType', {
2245
+ "default": DialogTypeEnum.OPERATION
2246
+ });
2247
+ }
2248
+ var DirectionEnum;
2249
+
2250
+ (function (DirectionEnum) {
2251
+ DirectionEnum["HORIZONTAL"] = "horizontal";
2252
+ DirectionEnum["VERTICAL"] = "vertical";
2253
+ })(DirectionEnum || (DirectionEnum = {}));
2254
+
2255
+ function directionType() {
2256
+ return (0,external_vue_types_namespaceObject.toType)('direction', {}).def(DirectionEnum.HORIZONTAL);
2257
+ }
2258
+ var LineStyleEnum;
2259
+
2260
+ (function (LineStyleEnum) {
2261
+ LineStyleEnum["DASHED"] = "dashed";
2262
+ LineStyleEnum["SOLID"] = "solid";
2263
+ })(LineStyleEnum || (LineStyleEnum = {}));
2264
+
2265
+ function lineStyleType() {
2266
+ return (0,external_vue_types_namespaceObject.toType)('lineType', {}).def(LineStyleEnum.DASHED);
2267
+ }
2268
+ ;
2269
+ var TagThemeEnum;
2270
+
2271
+ (function (TagThemeEnum) {
2272
+ TagThemeEnum["SUCCESS"] = "success";
2273
+ TagThemeEnum["INFO"] = "info";
2274
+ TagThemeEnum["WARNING"] = "warning";
2275
+ TagThemeEnum["DANGER"] = "danger";
2276
+ })(TagThemeEnum || (TagThemeEnum = {}));
2277
+
2278
+ function TagThemeType() {
2279
+ return (0,external_vue_types_namespaceObject.toType)('tagTheme', {}).def();
2280
+ }
2281
+ var InputBehaviorEnum;
2282
+
2283
+ (function (InputBehaviorEnum) {
2284
+ InputBehaviorEnum["SIMPLICITY"] = "simplicity";
2285
+ InputBehaviorEnum["NORMAL"] = "normal";
2286
+ })(InputBehaviorEnum || (InputBehaviorEnum = {}));
2287
+
2288
+ function InputBehaviorType() {
2289
+ return (0,external_vue_types_namespaceObject.toType)('behavior', {}).def(InputBehaviorEnum.NORMAL);
2290
+ }
2291
+ ;
2292
+ var PropTypes = /*#__PURE__*/function (_propTypesNS) {
2293
+ _inherits(PropTypes, _propTypesNS);
2294
+
2295
+ var _super = _createSuper(PropTypes);
2296
+
2297
+ function PropTypes() {
2298
+ _classCallCheck(this, PropTypes);
2299
+
2300
+ return _super.apply(this, arguments);
2301
+ }
2302
+
2303
+ _createClass(PropTypes, null, [{
2304
+ key: "size",
2305
+ value: function size() {
2306
+ var defaultList = ['small', 'default', 'large'];
2307
+ return (0,external_vue_types_namespaceObject.toType)('Size', {
2308
+ validator: function validator(val) {
2309
+ if (!val || defaultList.includes(val)) {
2310
+ return true;
2311
+ }
2312
+
2313
+ console.error("invalid theme, ".concat(val, ", the theme must be one of \u3010").concat(defaultList.join(' | '), "\u3011"));
2314
+ return false;
2315
+ },
2316
+ "default": 'default'
2317
+ });
2318
+ }
2319
+ }, {
2320
+ key: "theme",
2321
+ value: function theme() {
2322
+ var themes = ['primary', 'warning', 'success', 'danger'];
2323
+ return (0,external_vue_types_namespaceObject.toType)('Theme', {
2324
+ validator: function validator(val) {
2325
+ if (!val || themes.includes(val)) {
2326
+ return true;
2327
+ }
2328
+
2329
+ console.error("invalid theme, ".concat(val, ", the theme must be one of \u3010").concat(themes.join(' | '), "\u3011"));
2330
+ return false;
2331
+ }
2332
+ });
2333
+ }
2334
+ }, {
2335
+ key: "placement",
2336
+ value: function placement() {
2337
+ var placements = ['top', 'left', 'right', 'bottom'];
2338
+ return (0,external_vue_types_namespaceObject.toType)('Placements', {
2339
+ validator: function validator(val) {
2340
+ if (!val || placements.includes(val)) {
2341
+ return true;
2342
+ }
2343
+
2344
+ console.error("invalid placements, ".concat(val, ", the placement must be one of \u3010").concat(placements.join(' | '), "\u3011"));
2345
+ return false;
2346
+ },
2347
+ "default": 'top'
2348
+ });
2349
+ }
2350
+ }, {
2351
+ key: "style",
2352
+ value: function style() {
2353
+ return (0,external_vue_types_namespaceObject.toType)('Style', {
2354
+ type: [String, Object]
2355
+ });
2356
+ }
2357
+ }, {
2358
+ key: "position",
2359
+ value: function position() {
2360
+ var positions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['top-left', 'top-right', 'bottom-left', 'bottom-right'];
2361
+ return (0,external_vue_types_namespaceObject.toType)('positions', {
2362
+ type: String,
2363
+ validator: function validator(val) {
2364
+ if (!val || positions.includes(val)) {
2365
+ return true;
2366
+ }
2367
+
2368
+ console.error("invalid positions, ".concat(val, ", the position must be one of \u3010").concat(positions.join(' | '), "\u3011"));
2369
+ return false;
2370
+ },
2371
+ "default": 'top-center'
2372
+ });
2373
+ }
2374
+ }]);
2375
+
2376
+ return PropTypes;
2377
+ }(propTypesNS);
2378
+ ;// CONCATENATED MODULE: ../../packages/shared/src/scrollbar-width.ts
2379
+ /*
2380
+ * Tencent is pleased to support the open source community by making
2381
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2382
+ *
2383
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2384
+ *
2385
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2386
+ *
2387
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2388
+ *
2389
+ * ---------------------------------------------------
2390
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2391
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2392
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2393
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2394
+ *
2395
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2396
+ * the Software.
2397
+ *
2398
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2399
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2400
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2401
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2402
+ * IN THE SOFTWARE.
2403
+ */
2404
+ var scrollBarWidth;
2405
+ function scrollbarWidth() {
2406
+ if (scrollBarWidth !== undefined) return scrollBarWidth;
2407
+ var outer = document.createElement('div');
2408
+ outer.className = 'bk-scrollbar-wrap';
2409
+ outer.style.visibility = 'hidden';
2410
+ outer.style.width = '100px';
2411
+ outer.style.position = 'absolute';
2412
+ outer.style.top = '-9999px';
2413
+ document.body.appendChild(outer);
2414
+ var widthNoScroll = outer.offsetWidth;
2415
+ outer.style.overflow = 'scroll';
2416
+ var inner = document.createElement('div');
2417
+ inner.style.width = '100%';
2418
+ outer.appendChild(inner);
2419
+ var widthWithScroll = inner.offsetWidth;
2420
+ outer.parentNode.removeChild(outer);
2421
+ scrollBarWidth = widthNoScroll - widthWithScroll;
2422
+ return scrollBarWidth;
2423
+ }
2424
+ ;// CONCATENATED MODULE: ../../packages/shared/src/token.ts
2425
+ /*
2426
+ * Tencent is pleased to support the open source community by making
2427
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2428
+ *
2429
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2430
+ *
2431
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2432
+ *
2433
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2434
+ *
2435
+ * ---------------------------------------------------
2436
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2437
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2438
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2439
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2440
+ *
2441
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2442
+ * the Software.
2443
+ *
2444
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2445
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2446
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2447
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2448
+ * IN THE SOFTWARE.
2449
+ */
2450
+ var formKey = Symbol('form');
2451
+ var formItemKey = Symbol('formItem');
2452
+ ;// CONCATENATED MODULE: external "vue"
2453
+ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2454
+ var external_vue_y = x => () => x
2455
+ const external_vue_namespaceObject = external_vue_x({ ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject });
2456
+ ;// CONCATENATED MODULE: ../../packages/shared/src/hooks/use-form.ts
2457
+ /*
2458
+ * Tencent is pleased to support the open source community by making
2459
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2460
+ *
2461
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2462
+ *
2463
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2464
+ *
2465
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2466
+ *
2467
+ * ---------------------------------------------------
2468
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2469
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2470
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2471
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2472
+ *
2473
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2474
+ * the Software.
2475
+ *
2476
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2477
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2478
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2479
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2480
+ * IN THE SOFTWARE.
2481
+ */
2482
+
2483
+
2484
+ var useForm = function useForm() {
2485
+ return (0,external_vue_namespaceObject.inject)(formKey);
2486
+ };
2487
+ ;// CONCATENATED MODULE: ../../packages/shared/src/hooks/use-form-item.ts
2488
+ /*
2489
+ * Tencent is pleased to support the open source community by making
2490
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2491
+ *
2492
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2493
+ *
2494
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2495
+ *
2496
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2497
+ *
2498
+ * ---------------------------------------------------
2499
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2500
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2501
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2502
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2503
+ *
2504
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2505
+ * the Software.
2506
+ *
2507
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2508
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2509
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2510
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2511
+ * IN THE SOFTWARE.
2512
+ */
2513
+
2514
+
2515
+ var useFormItem = function useFormItem() {
2516
+ return (0,external_vue_namespaceObject.inject)(formItemKey, undefined);
2517
+ };
2518
+ ;// CONCATENATED MODULE: ../../packages/shared/src/dom.ts
2519
+ /*
2520
+ * Tencent is pleased to support the open source community by making
2521
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2522
+ *
2523
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2524
+ *
2525
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2526
+ *
2527
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2528
+ *
2529
+ * ---------------------------------------------------
2530
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2531
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2532
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2533
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2534
+ *
2535
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2536
+ * the Software.
2537
+ *
2538
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2539
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2540
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2541
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2542
+ * IN THE SOFTWARE.
2543
+ */
2544
+ var on = function () {
2545
+ if (document.addEventListener) {
2546
+ return function (element, event, handler) {
2547
+ if (element && event && handler) {
2548
+ element.addEventListener(event, handler, true);
2549
+ }
2550
+ };
2551
+ }
2552
+
2553
+ return function (element, event, handler) {
2554
+ if (element && event && handler) {
2555
+ element.attachEvent("on".concat(event), handler);
2556
+ }
2557
+ };
2558
+ }(); // 兼容浏览器,移除事件监听器
2559
+
2560
+ var off = function () {
2561
+ if (document.removeEventListener) {
2562
+ return function (element, event, handler) {
2563
+ if (element && event) {
2564
+ element.removeEventListener(event, handler, true);
2565
+ }
2566
+ };
2567
+ }
2568
+
2569
+ return function (element, event, handler) {
2570
+ if (element && event) {
2571
+ element.detachEvent("on".concat(event), handler);
2572
+ }
2573
+ };
2574
+ }(); // scrollTop animation
2575
+
2576
+ function scrollTop(el) {
2577
+ var from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
2578
+ var to = arguments.length > 2 ? arguments[2] : undefined;
2579
+ var duration = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 500;
2580
+ var endCallback = arguments.length > 4 ? arguments[4] : undefined;
2581
+ var difference = Math.abs(from - to);
2582
+ var step = Math.ceil(difference / duration * 50);
2583
+
2584
+ function scroll(start, end, step) {
2585
+ if (start === end) {
2586
+ endCallback === null || endCallback === void 0 ? void 0 : endCallback();
2587
+ return;
2588
+ }
2589
+
2590
+ var d = start + step > end ? end : start + step;
2591
+
2592
+ if (start > end) {
2593
+ d = start - step < end ? end : start - step;
2594
+ }
2595
+
2596
+ if (el === window) {
2597
+ window.scrollTo(d, d);
2598
+ } else {
2599
+ el.scrollTop = d;
2600
+ }
2601
+
2602
+ window.requestAnimationFrame(function () {
2603
+ return scroll(d, end, step);
2604
+ });
2605
+ }
2606
+
2607
+ scroll(from, to, step);
2608
+ }
2609
+ ;// CONCATENATED MODULE: ../../packages/shared/src/index.ts
2610
+
2611
+
2612
+
2613
+
2614
+
2615
+
2616
+
2617
+
2618
+
2619
+
2620
+
2621
+
2622
+ function classes(dynamicCls) {
2623
+ var constCls = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
2624
+ return Object.entries(dynamicCls).filter(function (entry) {
2625
+ return entry[1];
2626
+ }).map(function (entry) {
2627
+ return entry[0];
2628
+ }).join(' ').concat(constCls ? " ".concat(constCls) : '');
2629
+ }
2630
+ var EMPTY_OBJ = Object.create({});
2631
+ var noop = function noop() {};
2632
+ var renderEmptyVNode = function renderEmptyVNode() {
2633
+ return null;
2634
+ };
2635
+ var isEmptyObj = function isEmptyObj(target) {
2636
+ return Object.keys(target).length < 1;
2637
+ };
2638
+ var withInstall = function withInstall(component) {
2639
+ component.install = function (app) {
2640
+ var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
2641
+ prefix = _ref.prefix;
2642
+
2643
+ var pre = app.config.globalProperties.bkUIPrefix || prefix || 'Bk';
2644
+ app.component(pre + component.name, component);
2645
+ };
2646
+
2647
+ return component;
2648
+ };
2649
+ var withInstallProps = function withInstallProps(component, childComponents) {
2650
+ var isProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
2651
+
2652
+ component.install = function (app) {
2653
+ var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
2654
+ prefix = _ref2.prefix;
2655
+
2656
+ var pre = app.config.globalProperties.bkUIPrefix || prefix || 'Bk';
2657
+ app.component(pre + component.name, component);
2658
+ !isProps && Object.values(childComponents).forEach(function (child) {
2659
+ app.component(pre + child.name, child);
2660
+ });
2661
+ };
2662
+
2663
+ Object.keys(childComponents).forEach(function (key) {
2664
+ component[key] = childComponents[key];
2665
+ });
2666
+ return component;
2667
+ };
2668
+ /**
2669
+ * 解析当前组件ClassName,自动添加前缀
2670
+ * @param clsName 当前ClassName
2671
+ * @param prefix 前缀,默认为bk
2672
+ * @returns prefix-clsName
2673
+ */
2674
+
2675
+ function resolveClassName(clsName) {
2676
+ var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'bk';
2677
+ return "".concat(prefix, "-").concat(clsName);
2678
+ }
2679
+ /**
2680
+ * 函数防抖
2681
+ * @param {*} fn 执行的函数
2682
+ * @param {*} delay 延时时间
2683
+ * @param {*} immediate 是否立即执行
2684
+ */
2685
+
2686
+ function debounce() {
2687
+ var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 300;
2688
+ var fn = arguments.length > 1 ? arguments[1] : undefined;
2689
+ var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
2690
+ var timeout;
2691
+ var result;
2692
+
2693
+ var debounced = function debounced() {
2694
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
2695
+ var ctx = this; // 当前上下文
2696
+ // eslint-disable-next-line prefer-rest-params
2697
+
2698
+ var args = arguments; // fn的参数
2699
+ // 取消之前的延时调用
2700
+
2701
+ if (timeout) clearTimeout(timeout);
2702
+
2703
+ if (immediate) {
2704
+ var applyImmediate = !timeout; // 是否执行过
2705
+
2706
+ timeout = setTimeout(function () {
2707
+ timeout = null; // 标志是否执行过,与clearTimeout有区别,clearTimeout之后timeout不为null而是一个系统分配的队列ID
2708
+ }, delay);
2709
+ if (applyImmediate) result = fn.apply(ctx, args); // 立即调用
2710
+ } else {
2711
+ timeout = setTimeout(function () {
2712
+ fn.apply(ctx, args);
2713
+ }, delay);
2714
+ }
2715
+
2716
+ return result;
2717
+ };
2718
+
2719
+ debounced.cancel = function () {
2720
+ clearTimeout(timeout);
2721
+ timeout = null;
2722
+ };
2723
+
2724
+ return debounced;
2725
+ }
2726
+ /**
2727
+ * 过滤(去除)对象中的某个属性
2728
+ * @param data 需要处理的对象
2729
+ * @param filter 过滤关键字
2730
+ * @returns object 去除属性之后的对象
2731
+ */
2732
+
2733
+ function filterProperty(data, filter) {
2734
+ return JSON.parse(JSON.stringify(data, function (key, value) {
2735
+ if (filter.includes(key)) {
2736
+ return undefined;
2737
+ }
2738
+
2739
+ return value;
2740
+ }));
2741
+ }
2742
+ ;
2743
+ function arrayEqual() {
2744
+ var arr1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
2745
+ var arr2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
2746
+
2747
+ if (arr1.length !== arr2.length) {
2748
+ return false;
2749
+ }
2750
+
2751
+ for (var i = 0; i < arr1.length; i++) {
2752
+ if (Array.isArray(arr1[i])) {
2753
+ return arrayEqual(arr1[i], arr2[i]);
2754
+ }
2755
+
2756
+ if (arr1[i] !== arr2[i]) {
2757
+ return false;
2758
+ }
2759
+ }
2760
+
2761
+ return true;
2762
+ }
2763
+ })();
2764
+
2765
+ var __webpack_exports__AlignEnum = __webpack_exports__.oY;
2766
+ var __webpack_exports__BKLAYERD_INDEX_EFAULT_VALUE = __webpack_exports__.p3;
2767
+ var __webpack_exports__BKLAYERTYPE = __webpack_exports__.Ql;
2768
+ var __webpack_exports__BKPopIndexManager = __webpack_exports__.Eo;
2769
+ var __webpack_exports__BKPopover = __webpack_exports__.mZ;
2770
+ var __webpack_exports__BkMaskManager = __webpack_exports__.Wg;
2771
+ var __webpack_exports__DialogTypeEnum = __webpack_exports__._D;
2772
+ var __webpack_exports__DirectionEnum = __webpack_exports__.dq;
2773
+ var __webpack_exports__EMPTY_OBJ = __webpack_exports__.kT;
2774
+ var __webpack_exports__InputBehaviorEnum = __webpack_exports__.WF;
2775
+ var __webpack_exports__InputBehaviorType = __webpack_exports__.Gl;
2776
+ var __webpack_exports__LineStyleEnum = __webpack_exports__.VS;
2777
+ var __webpack_exports__PlacementEnum = __webpack_exports__.Um;
2778
+ var __webpack_exports__Placements = __webpack_exports__._h;
2779
+ var __webpack_exports__PropTypes = __webpack_exports__.ng;
2780
+ var __webpack_exports__RenderDirectiveEnum = __webpack_exports__.Pi;
2781
+ var __webpack_exports__RenderType = __webpack_exports__.y2;
2782
+ var __webpack_exports__SizeEnum = __webpack_exports__.mO;
2783
+ var __webpack_exports__TagThemeEnum = __webpack_exports__.XR;
2784
+ var __webpack_exports__TagThemeType = __webpack_exports__.gg;
2785
+ var __webpack_exports__ThemeEnum = __webpack_exports__.bY;
2786
+ var __webpack_exports__TriggerEnum = __webpack_exports__.os;
2787
+ var __webpack_exports__alignType = __webpack_exports__.WW;
2788
+ var __webpack_exports__arrayEqual = __webpack_exports__.h6;
2789
+ var __webpack_exports__bKMaskManager = __webpack_exports__.Lx;
2790
+ var __webpack_exports__bkPopIndexManager = __webpack_exports__.aR;
2791
+ var __webpack_exports__bkZIndexManager = __webpack_exports__.ue;
2792
+ var __webpack_exports__capitalize = __webpack_exports__.kC;
2793
+ var __webpack_exports__checkOverflow = __webpack_exports__.ao;
2794
+ var __webpack_exports__classes = __webpack_exports__.Sh;
2795
+ var __webpack_exports__clone = __webpack_exports__.d9;
2796
+ var __webpack_exports__debounce = __webpack_exports__.Ds;
2797
+ var __webpack_exports__dialogTypeUnion = __webpack_exports__.ou;
2798
+ var __webpack_exports__directionType = __webpack_exports__.zo;
2799
+ var __webpack_exports__elementsEqual = __webpack_exports__.cA;
2800
+ var __webpack_exports__filterProperty = __webpack_exports__.w$;
2801
+ var __webpack_exports__finiteOrDefault = __webpack_exports__.b_;
2802
+ var __webpack_exports__formItemKey = __webpack_exports__.xE;
2803
+ var __webpack_exports__formKey = __webpack_exports__.vh;
2804
+ var __webpack_exports__getPopContainerId = __webpack_exports__.ks;
2805
+ var __webpack_exports__hasOverflowEllipsis = __webpack_exports__.Hv;
2806
+ var __webpack_exports__isArray = __webpack_exports__.kJ;
2807
+ var __webpack_exports__isElement = __webpack_exports__.kK;
2808
+ var __webpack_exports__isEmpty = __webpack_exports__.xb;
2809
+ var __webpack_exports__isEmptyObj = __webpack_exports__.SI;
2810
+ var __webpack_exports__isFinite = __webpack_exports__.xV;
2811
+ var __webpack_exports__isNullOrUndef = __webpack_exports__.sS;
2812
+ var __webpack_exports__isObject = __webpack_exports__.Kn;
2813
+ var __webpack_exports__lineStyleType = __webpack_exports__.zW;
2814
+ var __webpack_exports__maybeShowTooltip = __webpack_exports__.oq;
2815
+ var __webpack_exports__merge = __webpack_exports__.TS;
2816
+ var __webpack_exports__mergeIf = __webpack_exports__.NG;
2817
+ var __webpack_exports__mergerFn = __webpack_exports__.WC;
2818
+ var __webpack_exports__mergerIfFn = __webpack_exports__.Zd;
2819
+ var __webpack_exports__noop = __webpack_exports__.ZT;
2820
+ var __webpack_exports__observerResize = __webpack_exports__.z3;
2821
+ var __webpack_exports__off = __webpack_exports__.S1;
2822
+ var __webpack_exports__on = __webpack_exports__.on;
2823
+ var __webpack_exports__placementType = __webpack_exports__.Tf;
2824
+ var __webpack_exports__random = __webpack_exports__.MX;
2825
+ var __webpack_exports__renderDirectiveType = __webpack_exports__.OB;
2826
+ var __webpack_exports__renderEmptyVNode = __webpack_exports__.Ay;
2827
+ var __webpack_exports__renderType = __webpack_exports__.wB;
2828
+ var __webpack_exports__resolveClassName = __webpack_exports__.h5;
2829
+ var __webpack_exports__scrollTop = __webpack_exports__.SM;
2830
+ var __webpack_exports__scrollbarWidth = __webpack_exports__.LF;
2831
+ var __webpack_exports__stringEnum = __webpack_exports__.b;
2832
+ var __webpack_exports__triggerType = __webpack_exports__._7;
2833
+ var __webpack_exports__useForm = __webpack_exports__.cI;
2834
+ var __webpack_exports__useFormItem = __webpack_exports__.A9;
2835
+ var __webpack_exports__valueOrDefault = __webpack_exports__.Be;
2836
+ var __webpack_exports__withInstall = __webpack_exports__.nz;
2837
+ var __webpack_exports__withInstallProps = __webpack_exports__.B;
2838
+ export { __webpack_exports__AlignEnum as AlignEnum, __webpack_exports__BKLAYERD_INDEX_EFAULT_VALUE as BKLAYERD_INDEX_EFAULT_VALUE, __webpack_exports__BKLAYERTYPE as BKLAYERTYPE, __webpack_exports__BKPopIndexManager as BKPopIndexManager, __webpack_exports__BKPopover as BKPopover, __webpack_exports__BkMaskManager as BkMaskManager, __webpack_exports__DialogTypeEnum as DialogTypeEnum, __webpack_exports__DirectionEnum as DirectionEnum, __webpack_exports__EMPTY_OBJ as EMPTY_OBJ, __webpack_exports__InputBehaviorEnum as InputBehaviorEnum, __webpack_exports__InputBehaviorType as InputBehaviorType, __webpack_exports__LineStyleEnum as LineStyleEnum, __webpack_exports__PlacementEnum as PlacementEnum, __webpack_exports__Placements as Placements, __webpack_exports__PropTypes as PropTypes, __webpack_exports__RenderDirectiveEnum as RenderDirectiveEnum, __webpack_exports__RenderType as RenderType, __webpack_exports__SizeEnum as SizeEnum, __webpack_exports__TagThemeEnum as TagThemeEnum, __webpack_exports__TagThemeType as TagThemeType, __webpack_exports__ThemeEnum as ThemeEnum, __webpack_exports__TriggerEnum as TriggerEnum, __webpack_exports__alignType as alignType, __webpack_exports__arrayEqual as arrayEqual, __webpack_exports__bKMaskManager as bKMaskManager, __webpack_exports__bkPopIndexManager as bkPopIndexManager, __webpack_exports__bkZIndexManager as bkZIndexManager, __webpack_exports__capitalize as capitalize, __webpack_exports__checkOverflow as checkOverflow, __webpack_exports__classes as classes, __webpack_exports__clone as clone, __webpack_exports__debounce as debounce, __webpack_exports__dialogTypeUnion as dialogTypeUnion, __webpack_exports__directionType as directionType, __webpack_exports__elementsEqual as elementsEqual, __webpack_exports__filterProperty as filterProperty, __webpack_exports__finiteOrDefault as finiteOrDefault, __webpack_exports__formItemKey as formItemKey, __webpack_exports__formKey as formKey, __webpack_exports__getPopContainerId as getPopContainerId, __webpack_exports__hasOverflowEllipsis as hasOverflowEllipsis, __webpack_exports__isArray as isArray, __webpack_exports__isElement as isElement, __webpack_exports__isEmpty as isEmpty, __webpack_exports__isEmptyObj as isEmptyObj, __webpack_exports__isFinite as isFinite, __webpack_exports__isNullOrUndef as isNullOrUndef, __webpack_exports__isObject as isObject, __webpack_exports__lineStyleType as lineStyleType, __webpack_exports__maybeShowTooltip as maybeShowTooltip, __webpack_exports__merge as merge, __webpack_exports__mergeIf as mergeIf, __webpack_exports__mergerFn as mergerFn, __webpack_exports__mergerIfFn as mergerIfFn, __webpack_exports__noop as noop, __webpack_exports__observerResize as observerResize, __webpack_exports__off as off, __webpack_exports__on as on, __webpack_exports__placementType as placementType, __webpack_exports__random as random, __webpack_exports__renderDirectiveType as renderDirectiveType, __webpack_exports__renderEmptyVNode as renderEmptyVNode, __webpack_exports__renderType as renderType, __webpack_exports__resolveClassName as resolveClassName, __webpack_exports__scrollTop as scrollTop, __webpack_exports__scrollbarWidth as scrollbarWidth, __webpack_exports__stringEnum as stringEnum, __webpack_exports__triggerType as triggerType, __webpack_exports__useForm as useForm, __webpack_exports__useFormItem as useFormItem, __webpack_exports__valueOrDefault as valueOrDefault, __webpack_exports__withInstall as withInstall, __webpack_exports__withInstallProps as withInstallProps };