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

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 +32305 -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 +5 -0
  140. package/lib/directives/index.js +1381 -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,2408 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
3
+ import * as __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__ from "../directives";
4
+ import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
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
+ "kB": () => (/* reexport */ createPopoverComponent),
300
+ "uE": () => (/* reexport */ PopoverProps),
301
+ "ZP": () => (/* binding */ src)
302
+ });
303
+
304
+ ;// CONCATENATED MODULE: external "../shared"
305
+ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
306
+ var y = x => () => x
307
+ const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.RenderType, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.bkZIndexManager, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.placementType, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.resolveClassName, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
308
+ ;// CONCATENATED MODULE: external "vue"
309
+ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
310
+ var external_vue_y = x => () => x
311
+ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
312
+ ;// CONCATENATED MODULE: external "../directives"
313
+ var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
314
+ var external_directives_y = x => () => x
315
+ const external_directives_namespaceObject = external_directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__.clickoutside });
316
+ ;// CONCATENATED MODULE: ../../packages/popover/src/arrow.tsx
317
+
318
+
319
+ /*
320
+ * Tencent is pleased to support the open source community by making
321
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
322
+ *
323
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
324
+ *
325
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
326
+ *
327
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
328
+ *
329
+ * ---------------------------------------------------
330
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
331
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
332
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
333
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
334
+ *
335
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
336
+ * the Software.
337
+ *
338
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
339
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
340
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
341
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
342
+ * IN THE SOFTWARE.
343
+ */
344
+
345
+
346
+ /* harmony default export */ const src_arrow = ((0,external_vue_namespaceObject.defineComponent)({
347
+ name: 'PopArrow',
348
+ render: function render() {
349
+ var arrowClassName = (0,external_shared_namespaceObject.resolveClassName)('pop2-arrow');
350
+ return (0,external_vue_namespaceObject.createVNode)("div", {
351
+ "class": arrowClassName
352
+ }, null);
353
+ }
354
+ }));
355
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
356
+ function _defineProperty(obj, key, value) {
357
+ if (key in obj) {
358
+ Object.defineProperty(obj, key, {
359
+ value: value,
360
+ enumerable: true,
361
+ configurable: true,
362
+ writable: true
363
+ });
364
+ } else {
365
+ obj[key] = value;
366
+ }
367
+
368
+ return obj;
369
+ }
370
+ ;// CONCATENATED MODULE: ../../packages/popover/src/const.tsx
371
+
372
+
373
+ var _EMIT_EVENT_TYPES;
374
+
375
+ /*
376
+ * Tencent is pleased to support the open source community by making
377
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
378
+ *
379
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
380
+ *
381
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
382
+ *
383
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
384
+ *
385
+ * ---------------------------------------------------
386
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
387
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
388
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
389
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
390
+ *
391
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
392
+ * the Software.
393
+ *
394
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
395
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
396
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
397
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
398
+ * IN THE SOFTWARE.
399
+ */
400
+ var EMPTY = function EMPTY() {
401
+ return true;
402
+ }; // eslint-disable-next-line @typescript-eslint/naming-convention
403
+
404
+
405
+ var EMIT_EVENTS;
406
+
407
+ (function (EMIT_EVENTS) {
408
+ EMIT_EVENTS["SHOW"] = "show";
409
+ EMIT_EVENTS["HIDE"] = "hide";
410
+ EMIT_EVENTS["CLICK_OUTSIDE"] = "clickoutside";
411
+ EMIT_EVENTS["CONTENT_MOUSEENTER"] = "contentMouseenter";
412
+ EMIT_EVENTS["CONTENT_MOUSELEAVE"] = "contentMouseleave";
413
+ EMIT_EVENTS["STOP_HIDE"] = "stopHide";
414
+ })(EMIT_EVENTS || (EMIT_EVENTS = {}));
415
+
416
+ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.SHOW, EMPTY), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.HIDE, EMPTY), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CLICK_OUTSIDE, EMPTY), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_MOUSEENTER, EMPTY), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_MOUSELEAVE, EMPTY), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.STOP_HIDE, EMPTY), _EMIT_EVENT_TYPES);
417
+ ;// CONCATENATED MODULE: ../../packages/popover/src/content.tsx
418
+
419
+
420
+ /*
421
+ * Tencent is pleased to support the open source community by making
422
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
423
+ *
424
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
425
+ *
426
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
427
+ *
428
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
429
+ *
430
+ * ---------------------------------------------------
431
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
432
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
433
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
434
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
435
+ *
436
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
437
+ * the Software.
438
+ *
439
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
440
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
441
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
442
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
443
+ * IN THE SOFTWARE.
444
+ */
445
+
446
+
447
+ /* harmony default export */ const content = ((0,external_vue_namespaceObject.defineComponent)({
448
+ name: 'PopContent',
449
+ props: {
450
+ width: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def('auto'),
451
+ height: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def('auto'),
452
+ maxHeight: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def('auto')
453
+ },
454
+ setup: function setup(props) {
455
+ var resolveValToPix = function resolveValToPix(val) {
456
+ if (/^\d+\.?\d*$/.test("".concat(val))) {
457
+ return "".concat(val, "px");
458
+ }
459
+
460
+ return val;
461
+ };
462
+
463
+ var style = (0,external_vue_namespaceObject.computed)(function () {
464
+ return {
465
+ width: resolveValToPix(props.width),
466
+ height: resolveValToPix(props.height),
467
+ maxHeight: resolveValToPix(props.maxHeight)
468
+ };
469
+ });
470
+ return {
471
+ style: style
472
+ };
473
+ },
474
+ render: function render() {
475
+ var _a, _b, _c, _d, _e, _f;
476
+
477
+ var className = [(0,external_shared_namespaceObject.resolveClassName)('popover'), (0,external_shared_namespaceObject.resolveClassName)('pop2-content')];
478
+ return (0,external_vue_namespaceObject.createVNode)("div", {
479
+ "class": className,
480
+ "tabindex": "-1",
481
+ "style": this.style
482
+ }, [(_c = (_b = (_a = this.$slots).arrow) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : '', (_f = (_e = (_d = this.$slots)["default"]) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : '']);
483
+ }
484
+ }));
485
+ ;// CONCATENATED MODULE: external "vue-types"
486
+ var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
487
+ var external_vue_types_y = x => () => x
488
+ 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 });
489
+ ;// CONCATENATED MODULE: ../../packages/shared/src/vue-types.ts
490
+
491
+
492
+
493
+
494
+
495
+
496
+ 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); }; }
497
+
498
+ 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; } }
499
+
500
+
501
+ var propTypesNS = (0,external_vue_types_namespaceObject.createTypes)({}); // 用于创建字符串列表映射至 `K: V` 的函数
502
+
503
+ function stringEnum(o) {
504
+ return o.reduce(function (res, key) {
505
+ res[key] = key;
506
+ return res;
507
+ }, Object.create(null));
508
+ }
509
+ var SizeEnum;
510
+
511
+ (function (SizeEnum) {
512
+ SizeEnum["SMALL"] = "small";
513
+ SizeEnum["LARGE"] = "large";
514
+ SizeEnum["DEFAULT"] = "default";
515
+ })(SizeEnum || (SizeEnum = {}));
516
+
517
+ var Placements;
518
+
519
+ (function (Placements) {
520
+ Placements["Top"] = "top";
521
+ Placements["Left"] = "left";
522
+ Placements["Right"] = "right";
523
+ Placements["Bottom"] = "bottom";
524
+ })(Placements || (Placements = {}));
525
+
526
+ var RenderDirectiveEnum;
527
+
528
+ (function (RenderDirectiveEnum) {
529
+ RenderDirectiveEnum["IF"] = "if";
530
+ RenderDirectiveEnum["SHOW"] = "show";
531
+ })(RenderDirectiveEnum || (RenderDirectiveEnum = {}));
532
+
533
+ function renderDirectiveType() {
534
+ return toType('renderDirective', {
535
+ "default": RenderDirectiveEnum.SHOW
536
+ });
537
+ }
538
+ ;
539
+ var AlignEnum;
540
+
541
+ (function (AlignEnum) {
542
+ AlignEnum["LEFT"] = "left";
543
+ AlignEnum["CENTER"] = "center";
544
+ AlignEnum["RIGHT"] = "right";
545
+ })(AlignEnum || (AlignEnum = {}));
546
+
547
+ function alignType() {
548
+ return toType('align', {
549
+ "default": AlignEnum.LEFT
550
+ }).def(AlignEnum.LEFT);
551
+ }
552
+ ;
553
+ var ThemeEnum;
554
+
555
+ (function (ThemeEnum) {
556
+ ThemeEnum["PRIMARY"] = "primary";
557
+ ThemeEnum["WARNING"] = "warning";
558
+ ThemeEnum["SUCCESS"] = "success";
559
+ ThemeEnum["DANGER"] = "danger";
560
+ })(ThemeEnum || (ThemeEnum = {}));
561
+ /** 弹层出现位置选项 */
562
+
563
+
564
+ var PlacementEnum;
565
+
566
+ (function (PlacementEnum) {
567
+ PlacementEnum["AUTO"] = "auto";
568
+ PlacementEnum["AUTO_START"] = "auto-start";
569
+ PlacementEnum["AUTO_END"] = "auto-end";
570
+ PlacementEnum["TOP"] = "top";
571
+ PlacementEnum["RIGHT"] = "right";
572
+ PlacementEnum["BOTTOM"] = "bottom";
573
+ PlacementEnum["LEFT"] = "left";
574
+ PlacementEnum["TOP_START"] = "top-start";
575
+ PlacementEnum["TOP_END"] = "top-end";
576
+ PlacementEnum["BOTTOM_START"] = "bottom-start";
577
+ PlacementEnum["BOTTOM_END"] = "bottom-end";
578
+ PlacementEnum["RIGHT_START"] = "right-start";
579
+ PlacementEnum["RIGHT_END"] = "right-end";
580
+ PlacementEnum["LEFT_START"] = "left-start";
581
+ PlacementEnum["LEFT_END"] = "left-end";
582
+ })(PlacementEnum || (PlacementEnum = {}));
583
+
584
+ function placementType() {
585
+ return toType('placement', {}).def(PlacementEnum.BOTTOM);
586
+ }
587
+ ;
588
+ /** 弹层触发选项 */
589
+
590
+ var TriggerEnum;
591
+
592
+ (function (TriggerEnum) {
593
+ TriggerEnum["HOVER"] = "hover";
594
+ TriggerEnum["CLICK"] = "click";
595
+ TriggerEnum["MANUAL"] = "manual";
596
+ })(TriggerEnum || (TriggerEnum = {}));
597
+
598
+ function triggerType() {
599
+ return (0,external_vue_types_namespaceObject.toType)('trigger', {}).def(TriggerEnum.HOVER);
600
+ }
601
+ ;
602
+ /** 内容渲染类型:目前是在popover内容渲染时使用 */
603
+
604
+ var RenderType;
605
+
606
+ (function (RenderType) {
607
+ RenderType["AUTO"] = "auto";
608
+ RenderType["SHOWN"] = "shown"; // 默认不渲染,只有在popover弹出之后才会渲染
609
+ })(RenderType || (RenderType = {}));
610
+
611
+ function renderType() {
612
+ return (0,external_vue_types_namespaceObject.toType)('trigger', {}).def(RenderType.AUTO);
613
+ }
614
+ ;
615
+ var DialogTypeEnum;
616
+
617
+ (function (DialogTypeEnum) {
618
+ DialogTypeEnum["SHOW"] = "show";
619
+ DialogTypeEnum["OPERATION"] = "operation";
620
+ DialogTypeEnum["CONFIRM"] = "confirm";
621
+ DialogTypeEnum["PROCESS"] = "process";
622
+ })(DialogTypeEnum || (DialogTypeEnum = {}));
623
+
624
+ function dialogTypeUnion() {
625
+ return toType('dialogType', {
626
+ "default": DialogTypeEnum.OPERATION
627
+ });
628
+ }
629
+ var DirectionEnum;
630
+
631
+ (function (DirectionEnum) {
632
+ DirectionEnum["HORIZONTAL"] = "horizontal";
633
+ DirectionEnum["VERTICAL"] = "vertical";
634
+ })(DirectionEnum || (DirectionEnum = {}));
635
+
636
+ function directionType() {
637
+ return toType('direction', {}).def(DirectionEnum.HORIZONTAL);
638
+ }
639
+ var LineStyleEnum;
640
+
641
+ (function (LineStyleEnum) {
642
+ LineStyleEnum["DASHED"] = "dashed";
643
+ LineStyleEnum["SOLID"] = "solid";
644
+ })(LineStyleEnum || (LineStyleEnum = {}));
645
+
646
+ function lineStyleType() {
647
+ return toType('lineType', {}).def(LineStyleEnum.DASHED);
648
+ }
649
+ ;
650
+ var TagThemeEnum;
651
+
652
+ (function (TagThemeEnum) {
653
+ TagThemeEnum["SUCCESS"] = "success";
654
+ TagThemeEnum["INFO"] = "info";
655
+ TagThemeEnum["WARNING"] = "warning";
656
+ TagThemeEnum["DANGER"] = "danger";
657
+ })(TagThemeEnum || (TagThemeEnum = {}));
658
+
659
+ function TagThemeType() {
660
+ return toType('tagTheme', {}).def();
661
+ }
662
+ var InputBehaviorEnum;
663
+
664
+ (function (InputBehaviorEnum) {
665
+ InputBehaviorEnum["SIMPLICITY"] = "simplicity";
666
+ InputBehaviorEnum["NORMAL"] = "normal";
667
+ })(InputBehaviorEnum || (InputBehaviorEnum = {}));
668
+
669
+ function InputBehaviorType() {
670
+ return toType('behavior', {}).def(InputBehaviorEnum.NORMAL);
671
+ }
672
+ ;
673
+ var PropTypes = /*#__PURE__*/(/* unused pure expression or super */ null && (function (_propTypesNS) {
674
+ _inherits(PropTypes, _propTypesNS);
675
+
676
+ var _super = _createSuper(PropTypes);
677
+
678
+ function PropTypes() {
679
+ _classCallCheck(this, PropTypes);
680
+
681
+ return _super.apply(this, arguments);
682
+ }
683
+
684
+ _createClass(PropTypes, null, [{
685
+ key: "size",
686
+ value: function size() {
687
+ var defaultList = ['small', 'default', 'large'];
688
+ return toType('Size', {
689
+ validator: function validator(val) {
690
+ if (!val || defaultList.includes(val)) {
691
+ return true;
692
+ }
693
+
694
+ console.error("invalid theme, ".concat(val, ", the theme must be one of \u3010").concat(defaultList.join(' | '), "\u3011"));
695
+ return false;
696
+ },
697
+ "default": 'default'
698
+ });
699
+ }
700
+ }, {
701
+ key: "theme",
702
+ value: function theme() {
703
+ var themes = ['primary', 'warning', 'success', 'danger'];
704
+ return toType('Theme', {
705
+ validator: function validator(val) {
706
+ if (!val || themes.includes(val)) {
707
+ return true;
708
+ }
709
+
710
+ console.error("invalid theme, ".concat(val, ", the theme must be one of \u3010").concat(themes.join(' | '), "\u3011"));
711
+ return false;
712
+ }
713
+ });
714
+ }
715
+ }, {
716
+ key: "placement",
717
+ value: function placement() {
718
+ var placements = ['top', 'left', 'right', 'bottom'];
719
+ return toType('Placements', {
720
+ validator: function validator(val) {
721
+ if (!val || placements.includes(val)) {
722
+ return true;
723
+ }
724
+
725
+ console.error("invalid placements, ".concat(val, ", the placement must be one of \u3010").concat(placements.join(' | '), "\u3011"));
726
+ return false;
727
+ },
728
+ "default": 'top'
729
+ });
730
+ }
731
+ }, {
732
+ key: "style",
733
+ value: function style() {
734
+ return toType('Style', {
735
+ type: [String, Object]
736
+ });
737
+ }
738
+ }, {
739
+ key: "position",
740
+ value: function position() {
741
+ var positions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['top-left', 'top-right', 'bottom-left', 'bottom-right'];
742
+ return toType('positions', {
743
+ type: String,
744
+ validator: function validator(val) {
745
+ if (!val || positions.includes(val)) {
746
+ return true;
747
+ }
748
+
749
+ console.error("invalid positions, ".concat(val, ", the position must be one of \u3010").concat(positions.join(' | '), "\u3011"));
750
+ return false;
751
+ },
752
+ "default": 'top-center'
753
+ });
754
+ }
755
+ }]);
756
+
757
+ return PropTypes;
758
+ }(propTypesNS)));
759
+ ;// CONCATENATED MODULE: ../../packages/popover/src/props.ts
760
+
761
+
762
+ var EventProps = {
763
+ onAfterHidden: Function,
764
+ onAfterShow: Function
765
+ };
766
+ var PopoverProps = Object.assign({
767
+ isShow: external_shared_namespaceObject.PropTypes.bool.def(false),
768
+ always: external_shared_namespaceObject.PropTypes.bool.def(false),
769
+ disabled: external_shared_namespaceObject.PropTypes.bool.def(false),
770
+ width: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def('auto'),
771
+ height: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def('auto'),
772
+ maxHeight: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def('auto'),
773
+ content: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def(''),
774
+
775
+ /**
776
+ * 组件显示位置
777
+ */
778
+ placement: (0,external_shared_namespaceObject.placementType)().def(PlacementEnum.TOP),
779
+ // 'dark', 'light'
780
+ theme: external_shared_namespaceObject.PropTypes.string.def('dark'),
781
+
782
+ /**
783
+ * 触发方式
784
+ * 支持 click hover manual
785
+ * manual: 通过isShow控制显示、隐藏
786
+ */
787
+ trigger: triggerType(),
788
+
789
+ /**
790
+ * content 渲染方式
791
+ */
792
+ renderType: renderType(),
793
+ // 是否显示箭头
794
+ arrow: external_shared_namespaceObject.PropTypes.bool.def(true),
795
+ padding: external_shared_namespaceObject.PropTypes.number.def(5),
796
+ offset: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.number, external_shared_namespaceObject.PropTypes.shape({})]).def(6),
797
+
798
+ /**
799
+ * 弹出内容绑定元素
800
+ */
801
+ boundary: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string.def('parent'), external_shared_namespaceObject.PropTypes.instanceOf(HTMLElement)]),
802
+ zIndex: external_shared_namespaceObject.PropTypes.number.def(undefined),
803
+ disableTeleport: external_shared_namespaceObject.PropTypes.bool.def(false),
804
+
805
+ /**
806
+ * chooses the placement that has the most space available automatically
807
+ */
808
+ autoPlacement: external_shared_namespaceObject.PropTypes.bool.def(false),
809
+
810
+ /**
811
+ * 当有滚动条,滚动出可是范围时自动隐藏pop
812
+ */
813
+ autoVisibility: external_shared_namespaceObject.PropTypes.bool.def(true),
814
+
815
+ /**
816
+ * 是否禁用clickoutside
817
+ */
818
+ disableOutsideClick: external_shared_namespaceObject.PropTypes.bool.def(false),
819
+
820
+ /**
821
+ * 是否禁用样式的transform更新位移
822
+ */
823
+ disableTransform: external_shared_namespaceObject.PropTypes.bool.def(false),
824
+
825
+ /**
826
+ * 自定义 reference
827
+ */
828
+ reference: external_shared_namespaceObject.PropTypes.any.def(null),
829
+
830
+ /**
831
+ * 兼容v1版本遗留配置
832
+ * 不建议使用
833
+ */
834
+ modifiers: external_shared_namespaceObject.PropTypes.array.def([]),
835
+
836
+ /**
837
+ * popover显示和隐藏的延时时间
838
+ */
839
+ popoverDelay: external_shared_namespaceObject.PropTypes.number.def(100)
840
+ }, EventProps);
841
+ ;// CONCATENATED MODULE: ../../packages/popover/src/reference.tsx
842
+ /*
843
+ * Tencent is pleased to support the open source community by making
844
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
845
+ *
846
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
847
+ *
848
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
849
+ *
850
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
851
+ *
852
+ * ---------------------------------------------------
853
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
854
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
855
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
856
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
857
+ *
858
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
859
+ * the Software.
860
+ *
861
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
862
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
863
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
864
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
865
+ * IN THE SOFTWARE.
866
+ */
867
+
868
+ /* harmony default export */ const reference = ((0,external_vue_namespaceObject.defineComponent)({
869
+ name: 'PopReference',
870
+ render: function render() {
871
+ var _a, _b, _c;
872
+
873
+ return (_c = (_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : '';
874
+ }
875
+ }));
876
+ ;// CONCATENATED MODULE: ../../packages/popover/src/root.tsx
877
+
878
+
879
+ /*
880
+ * Tencent is pleased to support the open source community by making
881
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
882
+ *
883
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
884
+ *
885
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
886
+ *
887
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
888
+ *
889
+ * ---------------------------------------------------
890
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
891
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
892
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
893
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
894
+ *
895
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
896
+ * the Software.
897
+ *
898
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
899
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
900
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
901
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
902
+ * IN THE SOFTWARE.
903
+ */
904
+
905
+
906
+ /* harmony default export */ const root = ((0,external_vue_namespaceObject.defineComponent)({
907
+ props: {
908
+ "class": external_shared_namespaceObject.PropTypes.string.def('')
909
+ },
910
+ render: function render() {
911
+ var _a, _b;
912
+
913
+ return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]);
914
+ }
915
+ }));
916
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
917
+ function _arrayWithHoles(arr) {
918
+ if (Array.isArray(arr)) return arr;
919
+ }
920
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
921
+ function _iterableToArrayLimit(arr, i) {
922
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
923
+
924
+ if (_i == null) return;
925
+ var _arr = [];
926
+ var _n = true;
927
+ var _d = false;
928
+
929
+ var _s, _e;
930
+
931
+ try {
932
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
933
+ _arr.push(_s.value);
934
+
935
+ if (i && _arr.length === i) break;
936
+ }
937
+ } catch (err) {
938
+ _d = true;
939
+ _e = err;
940
+ } finally {
941
+ try {
942
+ if (!_n && _i["return"] != null) _i["return"]();
943
+ } finally {
944
+ if (_d) throw _e;
945
+ }
946
+ }
947
+
948
+ return _arr;
949
+ }
950
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
951
+ function _arrayLikeToArray(arr, len) {
952
+ if (len == null || len > arr.length) len = arr.length;
953
+
954
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
955
+ arr2[i] = arr[i];
956
+ }
957
+
958
+ return arr2;
959
+ }
960
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
961
+
962
+ function _unsupportedIterableToArray(o, minLen) {
963
+ if (!o) return;
964
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
965
+ var n = Object.prototype.toString.call(o).slice(8, -1);
966
+ if (n === "Object" && o.constructor) n = o.constructor.name;
967
+ if (n === "Map" || n === "Set") return Array.from(o);
968
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
969
+ }
970
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
971
+ function _nonIterableRest() {
972
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
973
+ }
974
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
975
+
976
+
977
+
978
+
979
+ function _slicedToArray(arr, i) {
980
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
981
+ }
982
+ ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs
983
+ function t(t){return t.split("-")[0]}function e(t){return t.split("-")[1]}function n(e){return["top","bottom"].includes(t(e))?"x":"y"}function r(t){return"y"===t?"height":"width"}function i(i,o,a){let{reference:l,floating:s}=i;const c=l.x+l.width/2-s.width/2,f=l.y+l.height/2-s.height/2,u=n(o),m=r(u),g=l[m]/2-s[m]/2,d="x"===u;let p;switch(t(o)){case"top":p={x:c,y:l.y-s.height};break;case"bottom":p={x:c,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:f};break;case"left":p={x:l.x-s.width,y:f};break;default:p={x:l.x,y:l.y}}switch(e(o)){case"start":p[u]-=g*(a&&d?-1:1);break;case"end":p[u]+=g*(a&&d?-1:1)}return p}const floating_ui_core_browser_min_o=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:l}=n,s=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:u}=i(c,r,s),m=r,g={};for(let n=0;n<a.length;n++){const{name:d,fn:p}=a[n],{x:h,y:y,data:x,reset:w}=await p({x:f,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:c,platform:l,elements:{reference:t,floating:e}});f=null!=h?h:f,u=null!=y?y:u,g={...g,[d]:{...g[d],...x}},w&&("object"==typeof w&&(w.placement&&(m=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:t,floating:e,strategy:o}):w.rects),({x:f,y:u}=i(c,m,s))),n=-1)}return{x:f,y:u,placement:m,strategy:o,middlewareData:g}};function a(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function l(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function s(t,e){var n;void 0===e&&(e={});const{x:r,y:i,platform:o,rects:s,elements:c,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:d=!1,padding:p=0}=e,h=a(p),y=c[d?"floating"===g?"reference":"floating":g],x=l(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(y)))||n?y:y.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:f})),w=l(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===g?{...s.floating,x:r,y:i}:s.reference,offsetParent:await(null==o.getOffsetParent?void 0:o.getOffsetParent(c.floating)),strategy:f}):s[g]);return{top:x.top-w.top+h.top,bottom:w.bottom-x.bottom+h.bottom,left:x.left-w.left+h.left,right:w.right-x.right+h.right}}const c=Math.min,f=Math.max;function u(t,e,n){return f(t,c(e,n))}const m=t=>({name:"arrow",options:t,async fn(i){const{element:o,padding:l=0}=null!=t?t:{},{x:s,y:c,placement:f,rects:m,platform:g}=i;if(null==o)return{};const d=a(l),p={x:s,y:c},h=n(f),y=e(f),x=r(h),w=await g.getDimensions(o),v="y"===h?"top":"left",b="y"===h?"bottom":"right",R=m.reference[x]+m.reference[h]-p[h]-m.floating[x],A=p[h]-m.reference[h],P=await(null==g.getOffsetParent?void 0:g.getOffsetParent(o));let T=P?"y"===h?P.clientHeight||0:P.clientWidth||0:0;0===T&&(T=m.floating[x]);const O=R/2-A/2,D=d[v],L=T-w[x]-d[b],k=T/2-w[x]/2+O,E=u(D,k,L),C=("start"===y?d[v]:d[b])>0&&k!==E&&m.reference[x]<=m.floating[x];return{[h]:p[h]-(C?k<D?D-k:L-k:0),data:{[h]:E,centerOffset:k-E}}}}),g={left:"right",right:"left",bottom:"top",top:"bottom"};function d(t){return t.replace(/left|right|bottom|top/g,(t=>g[t]))}function p(t,i,o){void 0===o&&(o=!1);const a=e(t),l=n(t),s=r(l);let c="x"===l?a===(o?"end":"start")?"right":"left":"start"===a?"bottom":"top";return i.reference[s]>i.floating[s]&&(c=d(c)),{main:c,cross:d(c)}}const h={start:"end",end:"start"};function floating_ui_core_browser_min_y(t){return t.replace(/start|end/g,(t=>h[t]))}const floating_ui_core_browser_min_x=["top","right","bottom","left"],w=floating_ui_core_browser_min_x.reduce(((t,e)=>t.concat(e,e+"-start",e+"-end")),[]);const v=function(n){return void 0===n&&(n={}),{name:"autoPlacement",options:n,async fn(r){var i,o,a,l,c;const{x:f,y:u,rects:m,middlewareData:g,placement:d,platform:h,elements:x}=r,{alignment:v=null,allowedPlacements:b=w,autoAlignment:R=!0,...A}=n,P=function(n,r,i){return(n?[...i.filter((t=>e(t)===n)),...i.filter((t=>e(t)!==n))]:i.filter((e=>t(e)===e))).filter((t=>!n||e(t)===n||!!r&&floating_ui_core_browser_min_y(t)!==t))}(v,R,b),T=await s(r,A),O=null!=(i=null==(o=g.autoPlacement)?void 0:o.index)?i:0,D=P[O];if(null==D)return{};const{main:L,cross:k}=p(D,m,await(null==h.isRTL?void 0:h.isRTL(x.floating)));if(d!==D)return{x:f,y:u,reset:{placement:P[0]}};const E=[T[t(D)],T[L],T[k]],C=[...null!=(a=null==(l=g.autoPlacement)?void 0:l.overflows)?a:[],{placement:D,overflows:E}],H=P[O+1];if(H)return{data:{index:O+1,overflows:C},reset:{placement:H}};const B=C.slice().sort(((t,e)=>t.overflows[0]-e.overflows[0])),V=null==(c=B.find((t=>{let{overflows:e}=t;return e.every((t=>t<=0))})))?void 0:c.placement,F=null!=V?V:B[0].placement;return F!==d?{data:{index:O+1,overflows:C},reset:{placement:F}}:{}}}};const b=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(n){var r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:c,elements:f}=n,{mainAxis:u=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",flipAlignment:x=!0,...w}=e,v=t(i),b=g||(v===l||!x?[d(l)]:function(t){const e=d(t);return[floating_ui_core_browser_min_y(t),e,floating_ui_core_browser_min_y(e)]}(l)),R=[l,...b],A=await s(n,w),P=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&P.push(A[v]),m){const{main:t,cross:e}=p(i,a,await(null==c.isRTL?void 0:c.isRTL(f.floating)));P.push(A[t],A[e])}if(T=[...T,{placement:i,overflows:P}],!P.every((t=>t<=0))){var O,D;const t=(null!=(O=null==(D=o.flip)?void 0:D.index)?O:0)+1,e=R[t];if(e)return{data:{index:t,overflows:T},reset:{placement:e}};let n="bottom";switch(h){case"bestFit":{var L;const t=null==(L=T.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:L[0].placement;t&&(n=t);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}};function R(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function A(t){return floating_ui_core_browser_min_x.some((e=>t[e]>=0))}const P=function(t){let{strategy:e="referenceHidden",...n}=void 0===t?{}:t;return{name:"hide",async fn(t){const{rects:r}=t;switch(e){case"referenceHidden":{const e=R(await s(t,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:A(e)}}}case"escaped":{const e=R(await s(t,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:A(e)}}}default:return{}}}}};const T=function(r){return void 0===r&&(r=0),{name:"offset",options:r,async fn(i){const{x:o,y:a}=i,l=await async function(r,i){const{placement:o,platform:a,elements:l}=r,s=await(null==a.isRTL?void 0:a.isRTL(l.floating)),c=t(o),f=e(o),u="x"===n(o),m=["left","top"].includes(c)?-1:1,g=s&&u?-1:1,d="function"==typeof i?i(r):i;let{mainAxis:p,crossAxis:h,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return f&&"number"==typeof y&&(h="end"===f?-1*y:y),u?{x:h*g,y:p*m}:{x:p*m,y:h*g}}(i,r);return{x:o+l.x,y:a+l.y,data:l}}}};function O(t){return"x"===t?"y":"x"}const D=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(r){const{x:i,y:o,placement:a}=r,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...m}=e,g={x:i,y:o},d=await s(r,m),p=n(t(a)),h=O(p);let y=g[p],x=g[h];if(l){const t="y"===p?"bottom":"right";y=u(y+d["y"===p?"top":"left"],y,y-d[t])}if(c){const t="y"===h?"bottom":"right";x=u(x+d["y"===h?"top":"left"],x,x-d[t])}const w=f.fn({...r,[p]:y,[h]:x});return{...w,data:{x:w.x-i,y:w.y-o}}}}},L=function(e){return void 0===e&&(e={}),{options:e,fn(r){const{x:i,y:o,placement:a,rects:l,middlewareData:s}=r,{offset:c=0,mainAxis:f=!0,crossAxis:u=!0}=e,m={x:i,y:o},g=n(a),d=O(g);let p=m[g],h=m[d];const y="function"==typeof c?c({...l,placement:a}):c,x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(f){const t="y"===g?"height":"width",e=l.reference[g]-l.floating[t]+x.mainAxis,n=l.reference[g]+l.reference[t]-x.mainAxis;p<e?p=e:p>n&&(p=n)}if(u){var w,v,b,R;const e="y"===g?"width":"height",n=["top","left"].includes(t(a)),r=l.reference[d]-l.floating[e]+(n&&null!=(w=null==(v=s.offset)?void 0:v[d])?w:0)+(n?0:x.crossAxis),i=l.reference[d]+l.reference[e]+(n?0:null!=(b=null==(R=s.offset)?void 0:R[d])?b:0)-(n?x.crossAxis:0);h<r?h=r:h>i&&(h=i)}return{[g]:p,[d]:h}}}},k=function(n){return void 0===n&&(n={}),{name:"size",options:n,async fn(r){const{placement:i,rects:o,platform:a,elements:l}=r,{apply:c,...u}=n,m=await s(r,u),g=t(i),d=e(i);let p,h;"top"===g||"bottom"===g?(p=g,h=d===(await(null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(h=g,p="end"===d?"top":"bottom");const y=f(m.left,0),x=f(m.right,0),w=f(m.top,0),v=f(m.bottom,0),b={availableHeight:o.floating.height-(["left","right"].includes(i)?2*(0!==w||0!==v?w+v:f(m.top,m.bottom)):m[p]),availableWidth:o.floating.width-(["top","bottom"].includes(i)?2*(0!==y||0!==x?y+x:f(m.left,m.right)):m[h])},R=await a.getDimensions(l.floating);null==c||c({...r,...b});const A=await a.getDimensions(l.floating);return R.width!==A.width||R.height!==A.height?{reset:{rects:!0}}:{}}}},E=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(r){var i;const{placement:o,elements:s,rects:u,platform:m,strategy:g}=r,{padding:d=2,x:p,y:h}=e,y=l(m.convertOffsetParentRelativeRectToViewportRelativeRect?await m.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u.reference,offsetParent:await(null==m.getOffsetParent?void 0:m.getOffsetParent(s.floating)),strategy:g}):u.reference),x=null!=(i=await(null==m.getClientRects?void 0:m.getClientRects(s.reference)))?i:[],w=a(d);const v=await m.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===x.length&&x[0].left>x[1].right&&null!=p&&null!=h)return null!=(e=x.find((t=>p>t.left-w.left&&p<t.right+w.right&&h>t.top-w.top&&h<t.bottom+w.bottom)))?e:y;if(x.length>=2){if("x"===n(o)){const e=x[0],n=x[x.length-1],r="top"===t(o),i=e.top,a=n.bottom,l=r?e.left:n.left,s=r?e.right:n.right;return{top:i,bottom:a,left:l,right:s,width:s-l,height:a-i,x:l,y:i}}const e="left"===t(o),r=f(...x.map((t=>t.right))),i=c(...x.map((t=>t.left))),a=x.filter((t=>e?t.left===i:t.right===r)),l=a[0].top,s=a[a.length-1].bottom;return{top:l,bottom:s,left:i,right:r,width:r-i,height:s-l,x:i,y:l}}return y}},floating:s.floating,strategy:g});return u.reference.x!==v.reference.x||u.reference.y!==v.reference.y||u.reference.width!==v.reference.width||u.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}};
984
+
985
+ ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs
986
+ function floating_ui_dom_browser_min_n(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function o(t){if(null==t)return window;if(!floating_ui_dom_browser_min_n(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function floating_ui_dom_browser_min_i(t){return o(t).getComputedStyle(t)}function floating_ui_dom_browser_min_r(t){return floating_ui_dom_browser_min_n(t)?"":t?(t.nodeName||"").toLowerCase():""}function floating_ui_dom_browser_min_l(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((t=>t.brand+"/"+t.version)).join(" "):navigator.userAgent}function floating_ui_dom_browser_min_c(t){return t instanceof o(t).HTMLElement}function floating_ui_dom_browser_min_f(t){return t instanceof o(t).Element}function floating_ui_dom_browser_min_s(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof o(t).ShadowRoot||t instanceof ShadowRoot}function floating_ui_dom_browser_min_u(t){const{overflow:e,overflowX:n,overflowY:o}=floating_ui_dom_browser_min_i(t);return/auto|scroll|overlay|hidden/.test(e+o+n)}function floating_ui_dom_browser_min_d(t){return["table","td","th"].includes(floating_ui_dom_browser_min_r(t))}function floating_ui_dom_browser_min_h(t){const e=/firefox/i.test(floating_ui_dom_browser_min_l()),n=floating_ui_dom_browser_min_i(t);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}function floating_ui_dom_browser_min_a(){return!/^((?!chrome|android).)*safari/i.test(floating_ui_dom_browser_min_l())}const floating_ui_dom_browser_min_g=Math.min,floating_ui_dom_browser_min_p=Math.max,floating_ui_dom_browser_min_m=Math.round;function floating_ui_dom_browser_min_w(t,e,n){var i,r,l,s;void 0===e&&(e=!1),void 0===n&&(n=!1);const u=t.getBoundingClientRect();let d=1,h=1;e&&floating_ui_dom_browser_min_c(t)&&(d=t.offsetWidth>0&&floating_ui_dom_browser_min_m(u.width)/t.offsetWidth||1,h=t.offsetHeight>0&&floating_ui_dom_browser_min_m(u.height)/t.offsetHeight||1);const g=floating_ui_dom_browser_min_f(t)?o(t):window,p=!floating_ui_dom_browser_min_a()&&n,w=(u.left+(p&&null!=(i=null==(r=g.visualViewport)?void 0:r.offsetLeft)?i:0))/d,v=(u.top+(p&&null!=(l=null==(s=g.visualViewport)?void 0:s.offsetTop)?l:0))/h,y=u.width/d,x=u.height/h;return{width:y,height:x,top:v,right:w+y,bottom:v+x,left:w,x:w,y:v}}function floating_ui_dom_browser_min_v(t){return(e=t,(e instanceof o(e).Node?t.ownerDocument:t.document)||window.document).documentElement;var e}function floating_ui_dom_browser_min_y(t){return floating_ui_dom_browser_min_f(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function floating_ui_dom_browser_min_x(t){return floating_ui_dom_browser_min_w(floating_ui_dom_browser_min_v(t)).left+floating_ui_dom_browser_min_y(t).scrollLeft}function floating_ui_dom_browser_min_b(t,e,n){const o=floating_ui_dom_browser_min_c(e),i=floating_ui_dom_browser_min_v(e),l=floating_ui_dom_browser_min_w(t,o&&function(t){const e=floating_ui_dom_browser_min_w(t);return floating_ui_dom_browser_min_m(e.width)!==t.offsetWidth||floating_ui_dom_browser_min_m(e.height)!==t.offsetHeight}(e),"fixed"===n);let f={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==floating_ui_dom_browser_min_r(e)||floating_ui_dom_browser_min_u(i))&&(f=floating_ui_dom_browser_min_y(e)),floating_ui_dom_browser_min_c(e)){const t=floating_ui_dom_browser_min_w(e,!0);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else i&&(s.x=floating_ui_dom_browser_min_x(i));return{x:l.left+f.scrollLeft-s.x,y:l.top+f.scrollTop-s.y,width:l.width,height:l.height}}function floating_ui_dom_browser_min_L(t){return"html"===floating_ui_dom_browser_min_r(t)?t:t.assignedSlot||t.parentNode||(floating_ui_dom_browser_min_s(t)?t.host:null)||floating_ui_dom_browser_min_v(t)}function floating_ui_dom_browser_min_R(t){return floating_ui_dom_browser_min_c(t)&&"fixed"!==getComputedStyle(t).position?t.offsetParent:null}function floating_ui_dom_browser_min_T(t){const e=o(t);let n=floating_ui_dom_browser_min_R(t);for(;n&&floating_ui_dom_browser_min_d(n)&&"static"===getComputedStyle(n).position;)n=floating_ui_dom_browser_min_R(n);return n&&("html"===floating_ui_dom_browser_min_r(n)||"body"===floating_ui_dom_browser_min_r(n)&&"static"===getComputedStyle(n).position&&!floating_ui_dom_browser_min_h(n))?e:n||function(t){let e=floating_ui_dom_browser_min_L(t);for(floating_ui_dom_browser_min_s(e)&&(e=e.host);floating_ui_dom_browser_min_c(e)&&!["html","body"].includes(floating_ui_dom_browser_min_r(e));){if(floating_ui_dom_browser_min_h(e))return e;e=e.parentNode}return null}(t)||e}function W(t){if(floating_ui_dom_browser_min_c(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=floating_ui_dom_browser_min_w(t);return{width:e.width,height:e.height}}function floating_ui_dom_browser_min_E(t){const e=floating_ui_dom_browser_min_L(t);return["html","body","#document"].includes(floating_ui_dom_browser_min_r(e))?t.ownerDocument.body:floating_ui_dom_browser_min_c(e)&&floating_ui_dom_browser_min_u(e)?e:floating_ui_dom_browser_min_E(e)}function H(t,e){var n;void 0===e&&(e=[]);const i=floating_ui_dom_browser_min_E(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),l=o(i),c=r?[l].concat(l.visualViewport||[],floating_ui_dom_browser_min_u(i)?i:[]):i,f=e.concat(c);return r?f:f.concat(H(c))}function C(e,n,r){return"viewport"===n?l(function(t,e){const n=o(t),i=floating_ui_dom_browser_min_v(t),r=n.visualViewport;let l=i.clientWidth,c=i.clientHeight,f=0,s=0;if(r){l=r.width,c=r.height;const t=floating_ui_dom_browser_min_a();(t||!t&&"fixed"===e)&&(f=r.offsetLeft,s=r.offsetTop)}return{width:l,height:c,x:f,y:s}}(e,r)):floating_ui_dom_browser_min_f(n)?function(t,e){const n=floating_ui_dom_browser_min_w(t,!1,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft;return{top:o,left:i,x:i,y:o,right:i+t.clientWidth,bottom:o+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(n,r):l(function(t){var e;const n=floating_ui_dom_browser_min_v(t),o=floating_ui_dom_browser_min_y(t),r=null==(e=t.ownerDocument)?void 0:e.body,l=floating_ui_dom_browser_min_p(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),c=floating_ui_dom_browser_min_p(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let f=-o.scrollLeft+floating_ui_dom_browser_min_x(t);const s=-o.scrollTop;return"rtl"===floating_ui_dom_browser_min_i(r||n).direction&&(f+=floating_ui_dom_browser_min_p(n.clientWidth,r?r.clientWidth:0)-l),{width:l,height:c,x:f,y:s}}(floating_ui_dom_browser_min_v(e)))}function S(t){const e=H(t),n=["absolute","fixed"].includes(floating_ui_dom_browser_min_i(t).position)&&floating_ui_dom_browser_min_c(t)?floating_ui_dom_browser_min_T(t):t;return floating_ui_dom_browser_min_f(n)?e.filter((t=>floating_ui_dom_browser_min_f(t)&&function(t,e){const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&floating_ui_dom_browser_min_s(n)){let n=e;do{if(n&&t===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(t,n)&&"body"!==floating_ui_dom_browser_min_r(t))):[]}const floating_ui_dom_browser_min_D={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?S(e):[].concat(n),o],l=r[0],c=r.reduce(((t,n)=>{const o=C(e,n,i);return t.top=floating_ui_dom_browser_min_p(o.top,t.top),t.right=floating_ui_dom_browser_min_g(o.right,t.right),t.bottom=floating_ui_dom_browser_min_g(o.bottom,t.bottom),t.left=floating_ui_dom_browser_min_p(o.left,t.left),t}),C(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=floating_ui_dom_browser_min_c(n),l=floating_ui_dom_browser_min_v(n);if(n===l)return e;let f={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==floating_ui_dom_browser_min_r(n)||floating_ui_dom_browser_min_u(l))&&(f=floating_ui_dom_browser_min_y(n)),floating_ui_dom_browser_min_c(n))){const t=floating_ui_dom_browser_min_w(n,!0);s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}return{...e,x:e.x-f.scrollLeft+s.x,y:e.y-f.scrollTop+s.y}},isElement:floating_ui_dom_browser_min_f,getDimensions:W,getOffsetParent:floating_ui_dom_browser_min_T,getDocumentElement:floating_ui_dom_browser_min_v,getElementRects:t=>{let{reference:e,floating:n,strategy:o}=t;return{reference:floating_ui_dom_browser_min_b(e,floating_ui_dom_browser_min_T(n),o),floating:{...W(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===floating_ui_dom_browser_min_i(t).direction};function N(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l=!0,animationFrame:c=!1}=o,s=i&&!c,u=r&&!c,d=s||u?[...floating_ui_dom_browser_min_f(t)?H(t):[],...H(e)]:[];d.forEach((t=>{s&&t.addEventListener("scroll",n,{passive:!0}),u&&t.addEventListener("resize",n)}));let h,a=null;l&&(a=new ResizeObserver(n),floating_ui_dom_browser_min_f(t)&&!c&&a.observe(t),a.observe(e));let g=c?floating_ui_dom_browser_min_w(t):null;return c&&function e(){const o=floating_ui_dom_browser_min_w(t);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n();g=o,h=requestAnimationFrame(e)}(),l||n(),()=>{var t;d.forEach((t=>{s&&t.removeEventListener("scroll",n),u&&t.removeEventListener("resize",n)})),null==(t=a)||t.disconnect(),a=null,c&&cancelAnimationFrame(h)}}const z=(t,n,o)=>floating_ui_core_browser_min_o(t,n,{platform:floating_ui_dom_browser_min_D,...o});
987
+
988
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js
989
+ function _objectDestructuringEmpty(obj) {
990
+ if (obj == null) throw new TypeError("Cannot destructure undefined");
991
+ }
992
+ ;// CONCATENATED MODULE: ../../packages/popover/src/use-platform.tsx
993
+
994
+
995
+ /*
996
+ * Tencent is pleased to support the open source community by making
997
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
998
+ *
999
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1000
+ *
1001
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1002
+ *
1003
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1004
+ *
1005
+ * ---------------------------------------------------
1006
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1007
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1008
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1009
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1010
+ *
1011
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1012
+ * the Software.
1013
+ *
1014
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1015
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1016
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1017
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1018
+ * IN THE SOFTWARE.
1019
+ */
1020
+ /* harmony default export */ const use_platform = (function (fullscreenTarget) {
1021
+ var getElementRects = function getElementRects(_ref) {
1022
+ var reference = _ref.reference,
1023
+ floating = _ref.floating;
1024
+ var refRect = reference.getBoundingClientRect();
1025
+ var floatRect = floating.getBoundingClientRect();
1026
+ return {
1027
+ reference: {
1028
+ width: refRect.width,
1029
+ height: refRect.height,
1030
+ x: refRect.x,
1031
+ y: refRect.y
1032
+ },
1033
+ floating: {
1034
+ width: floatRect.width,
1035
+ height: floatRect.height,
1036
+ x: floatRect.x,
1037
+ y: floatRect.y
1038
+ }
1039
+ };
1040
+ };
1041
+
1042
+ var getDimensions = function getDimensions(element) {
1043
+ var _element$getBoundingC = element.getBoundingClientRect(),
1044
+ width = _element$getBoundingC.width,
1045
+ height = _element$getBoundingC.height;
1046
+
1047
+ return {
1048
+ width: width,
1049
+ height: height
1050
+ };
1051
+ };
1052
+
1053
+ var getClippingRect = function getClippingRect(_ref2) {
1054
+ _objectDestructuringEmpty(_ref2);
1055
+
1056
+ var _a;
1057
+
1058
+ var _ref3 = (_a = fullscreenTarget === null || fullscreenTarget === void 0 ? void 0 : fullscreenTarget.getBoundingClientRect()) !== null && _a !== void 0 ? _a : {},
1059
+ _ref3$width = _ref3.width,
1060
+ width = _ref3$width === void 0 ? 0 : _ref3$width,
1061
+ _ref3$height = _ref3.height,
1062
+ height = _ref3$height === void 0 ? 0 : _ref3$height;
1063
+
1064
+ return {
1065
+ width: width,
1066
+ height: height,
1067
+ x: 0,
1068
+ y: 0
1069
+ };
1070
+ };
1071
+
1072
+ return {
1073
+ getElementRects: getElementRects,
1074
+ getDimensions: getDimensions,
1075
+ getClippingRect: getClippingRect
1076
+ };
1077
+ });
1078
+ ;// CONCATENATED MODULE: ../../packages/popover/src/use-floating.tsx
1079
+
1080
+
1081
+
1082
+ /*
1083
+ * Tencent is pleased to support the open source community by making
1084
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1085
+ *
1086
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1087
+ *
1088
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1089
+ *
1090
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1091
+ *
1092
+ * ---------------------------------------------------
1093
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1094
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1095
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1096
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1097
+ *
1098
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1099
+ * the Software.
1100
+ *
1101
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1102
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1103
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1104
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1105
+ * IN THE SOFTWARE.
1106
+ */
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+ /**
1113
+ * 解析popover相关配置
1114
+ */
1115
+
1116
+ /* harmony default export */ const use_floating = (function (props, ctx, _ref) {
1117
+ var refReference = _ref.refReference,
1118
+ refContent = _ref.refContent,
1119
+ refArrow = _ref.refArrow,
1120
+ refRoot = _ref.refRoot;
1121
+ var localIsShow = (0,external_vue_namespaceObject.ref)(false);
1122
+ var fullScreenTarget = (0,external_vue_namespaceObject.ref)();
1123
+
1124
+ var isElementFullScreen = function isElementFullScreen() {
1125
+ var _a, _b, _c;
1126
+
1127
+ var elReference = resolveTargetElement((_a = refReference.value) === null || _a === void 0 ? void 0 : _a.$el);
1128
+
1129
+ if ((_b = document.fullscreenElement) === null || _b === void 0 ? void 0 : _b.shadowRoot) {
1130
+ return document.fullscreenElement.shadowRoot.contains(elReference);
1131
+ }
1132
+
1133
+ return (_c = document.fullscreenElement) === null || _c === void 0 ? void 0 : _c.contains(elReference);
1134
+ };
1135
+ /**
1136
+ * 当全屏模式开启,获取指定选择器下面的全屏元素
1137
+ * 如果是启用了webcomponent组件,则返回shadowRoot内指定的目标元素
1138
+ * @param selector
1139
+ * @returns
1140
+ */
1141
+
1142
+
1143
+ var getFullscreenRoot = function getFullscreenRoot(selector) {
1144
+ if (isElementFullScreen()) {
1145
+ if (document.fullscreenElement.shadowRoot) {
1146
+ return document.fullscreenElement.shadowRoot.querySelector(selector);
1147
+ }
1148
+
1149
+ return document.fullscreenElement.querySelector(selector);
1150
+ }
1151
+
1152
+ return document.body;
1153
+ };
1154
+
1155
+ var themeList = ['dark', 'light'];
1156
+ /**
1157
+ * 根据props.theme计算theme
1158
+ * 返回systemTheme & customTheme
1159
+ * systemTheme是指包含在 ['dark', 'light'] 内置主题
1160
+ * customTheme是指自定义的theme,string类型
1161
+ */
1162
+
1163
+ var compTheme = (0,external_vue_namespaceObject.computed)(function () {
1164
+ var _a, _b;
1165
+
1166
+ var themes = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.split(/\s+/)) !== null && _b !== void 0 ? _b : [];
1167
+ themes.sort(function (a, b) {
1168
+ return Number(themeList.includes(b)) - Number(themeList.includes(a));
1169
+ });
1170
+ var systemThemes = themes;
1171
+ var customThemes = themes.filter(function (item) {
1172
+ return !themeList.includes(item);
1173
+ });
1174
+ return {
1175
+ systemThemes: systemThemes,
1176
+ customThemes: customThemes
1177
+ };
1178
+ });
1179
+
1180
+ var isHideMiddlewareAvailable = function isHideMiddlewareAvailable() {
1181
+ return props.autoVisibility;
1182
+ };
1183
+
1184
+ var isAutoPlacementAvailable = function isAutoPlacementAvailable() {
1185
+ return props.autoPlacement;
1186
+ };
1187
+ /**
1188
+ * 解析弹出reference元素,content元素, arrow元素
1189
+ * @returns
1190
+ */
1191
+
1192
+
1193
+ var resolvePopElements = function resolvePopElements() {
1194
+ var _a, _b, _c, _d;
1195
+
1196
+ var elReference = resolveTargetElement((_a = refReference.value) === null || _a === void 0 ? void 0 : _a.$el);
1197
+ var elContent = resolveTargetElement((_b = refContent.value) === null || _b === void 0 ? void 0 : _b.$el);
1198
+ var elArrow = props.arrow ? resolveTargetElement((_c = refArrow.value) === null || _c === void 0 ? void 0 : _c.$el) : null;
1199
+ var root = resolveTargetElement((_d = refRoot.value) === null || _d === void 0 ? void 0 : _d.$el);
1200
+ return {
1201
+ elReference: elReference,
1202
+ elContent: elContent,
1203
+ elArrow: elArrow,
1204
+ root: root
1205
+ };
1206
+ };
1207
+
1208
+ var resolveModifiers = function resolveModifiers() {
1209
+ var resolveResult = {};
1210
+
1211
+ if (Array.isArray(props.modifiers)) {
1212
+ props.modifiers.forEach(function (m) {
1213
+ var _a, _b, _c, _d;
1214
+
1215
+ var result;
1216
+
1217
+ if (m.name === 'offset') {
1218
+ if (typeof ((_a = m.options) === null || _a === void 0 ? void 0 : _a.offset) === 'number') {
1219
+ result = (_b = m.options) === null || _b === void 0 ? void 0 : _b.offset;
1220
+ }
1221
+
1222
+ if (Array.isArray((_c = m.options) === null || _c === void 0 ? void 0 : _c.offset)) {
1223
+ var _ref2 = (_d = m.options) === null || _d === void 0 ? void 0 : _d.offset,
1224
+ _ref3 = _slicedToArray(_ref2, 2),
1225
+ mainAxis = _ref3[0],
1226
+ crossAxis = _ref3[1];
1227
+
1228
+ result = {
1229
+ mainAxis: mainAxis,
1230
+ crossAxis: crossAxis
1231
+ };
1232
+ }
1233
+
1234
+ Object.assign(resolveResult, {
1235
+ offset: result
1236
+ });
1237
+ }
1238
+ });
1239
+ }
1240
+
1241
+ return resolveResult;
1242
+ };
1243
+
1244
+ var resolvePopOptions = function resolvePopOptions(elArrow, props) {
1245
+ var _a;
1246
+
1247
+ var modifiers = resolveModifiers();
1248
+ var middleware = [T(modifiers.offset || props.offset), D({
1249
+ padding: props.padding
1250
+ })];
1251
+ var options = {
1252
+ placement: props.placement,
1253
+ middleware: middleware
1254
+ };
1255
+
1256
+ if (props.arrow) {
1257
+ middleware.push(m({
1258
+ element: elArrow
1259
+ }));
1260
+ }
1261
+
1262
+ if (isAutoPlacementAvailable()) {
1263
+ middleware.push(v());
1264
+ } else {
1265
+ middleware.unshift(E());
1266
+ middleware.push(b());
1267
+ }
1268
+
1269
+ if (isHideMiddlewareAvailable()) {
1270
+ options.middleware.push(P());
1271
+ }
1272
+ /**
1273
+ * 如果是全屏元素或者指定的虚拟元素
1274
+ * 则启用自定义的platform
1275
+ * 在弹出的全屏元素中,元素相对位置有别于document下面元素
1276
+ * 全屏模式下面,需要自定义当前元素的一个platform
1277
+ */
1278
+
1279
+
1280
+ if (isElementFullScreen() || props.isVirtualEl) {
1281
+ var _usePlatform = use_platform(fullScreenTarget.value),
1282
+ getElementRects = _usePlatform.getElementRects,
1283
+ getDimensions = _usePlatform.getDimensions,
1284
+ getClippingRect = _usePlatform.getClippingRect;
1285
+
1286
+ Object.assign(options, {
1287
+ platform: Object.assign(Object.assign({}, (_a = props === null || props === void 0 ? void 0 : props.platform) !== null && _a !== void 0 ? _a : {}), {
1288
+ getElementRects: getElementRects,
1289
+ getDimensions: getDimensions,
1290
+ getClippingRect: getClippingRect
1291
+ })
1292
+ });
1293
+ }
1294
+
1295
+ return options;
1296
+ };
1297
+
1298
+ var resolveTargetElement = function resolveTargetElement(target) {
1299
+ if (target instanceof HTMLElement) {
1300
+ return target;
1301
+ }
1302
+
1303
+ if (target instanceof Text) {
1304
+ return resolveTargetElement(target.nextElementSibling);
1305
+ }
1306
+
1307
+ if (typeof (target === null || target === void 0 ? void 0 : target.getBoundingClientRect) === 'function') {
1308
+ return target;
1309
+ }
1310
+
1311
+ return null;
1312
+ }; // 兼容多种样式处理规则
1313
+ // class custom-theme
1314
+
1315
+
1316
+ var customThemeCls = compTheme.value.customThemes.join(' ');
1317
+ var customTheme = compTheme.value.customThemes.reduce(function (out, cur) {
1318
+ return Object.assign(_defineProperty({}, "data-".concat(cur, "-theme"), true), out);
1319
+ }, {});
1320
+ var contentClass = "".concat(customThemeCls);
1321
+ var cleanup = null;
1322
+
1323
+ var getRoundPixelVal = function getRoundPixelVal(val) {
1324
+ var dpr = window.devicePixelRatio || 1;
1325
+ return Math.round(val * dpr) / dpr || 0;
1326
+ };
1327
+
1328
+ var updatePopContentStyle = function updatePopContentStyle(elContent, x, y, middlewareData) {
1329
+ var _a;
1330
+
1331
+ if (props.disableTransform) {
1332
+ Object.assign(elContent.style, {
1333
+ left: "".concat(getRoundPixelVal(x), "px"),
1334
+ top: "".concat(getRoundPixelVal(y), "px")
1335
+ });
1336
+ } else {
1337
+ Object.assign(elContent.style, {
1338
+ left: '0',
1339
+ top: '0',
1340
+ transform: "translate3d(".concat(getRoundPixelVal(x), "px,").concat(getRoundPixelVal(y), "px,0)")
1341
+ });
1342
+ }
1343
+
1344
+ var referenceHidden = isHideMiddlewareAvailable() ? (_a = middlewareData.hide) === null || _a === void 0 ? void 0 : _a.referenceHidden : false;
1345
+ Object.assign(elContent.style, {
1346
+ visibility: referenceHidden ? 'hidden' : 'visible'
1347
+ });
1348
+ };
1349
+
1350
+ var updateArrowStyle = function updateArrowStyle(elArrow, resolvedPlacement, middlewareData) {
1351
+ var _a;
1352
+
1353
+ if (props.arrow) {
1354
+ var _ref4 = (_a = middlewareData.arrow) !== null && _a !== void 0 ? _a : {},
1355
+ arrowX = _ref4.x,
1356
+ arrowY = _ref4.y;
1357
+
1358
+ elArrow.setAttribute('data-arrow', resolvedPlacement);
1359
+ var arrowConfig = {
1360
+ left: '',
1361
+ top: '',
1362
+ bottom: '',
1363
+ right: ''
1364
+ };
1365
+ Object.assign(elArrow.style, arrowConfig);
1366
+ var arrowSide = {
1367
+ top: 'bottom',
1368
+ right: 'left',
1369
+ bottom: 'top',
1370
+ left: 'right'
1371
+ }[resolvedPlacement];
1372
+ Object.assign(elArrow.style, _defineProperty({
1373
+ left: arrowX !== null ? "".concat(arrowX, "px") : '',
1374
+ top: arrowY !== null ? "".concat(arrowY, "px") : ''
1375
+ }, arrowSide, '-4px'));
1376
+ }
1377
+ };
1378
+
1379
+ var createPopInstance = function createPopInstance() {
1380
+ var _resolvePopElements = resolvePopElements(),
1381
+ elReference = _resolvePopElements.elReference,
1382
+ elContent = _resolvePopElements.elContent;
1383
+
1384
+ cleanup = N(elReference, elContent, function () {
1385
+ updatePopover(null, props);
1386
+ });
1387
+ };
1388
+
1389
+ var updatePopover = function updatePopover() {
1390
+ var virtualEl = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
1391
+ var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1392
+
1393
+ var _resolvePopElements2 = resolvePopElements(),
1394
+ elReference = _resolvePopElements2.elReference,
1395
+ elContent = _resolvePopElements2.elContent,
1396
+ elArrow = _resolvePopElements2.elArrow;
1397
+
1398
+ var targetEl = virtualEl || elReference;
1399
+ if (!targetEl || !elContent) return;
1400
+ var options = resolvePopOptions(elArrow, props);
1401
+ z(targetEl, elContent, options).then(function (_ref5) {
1402
+ var x = _ref5.x,
1403
+ y = _ref5.y,
1404
+ placement = _ref5.placement,
1405
+ middlewareData = _ref5.middlewareData;
1406
+ var oldClass = elContent.className;
1407
+ elContent.className = "".concat(oldClass.replace(contentClass, ''), " ").concat(contentClass).replace(/\s+/mg, ' ').replace(/^\s+|\s+$/g, '');
1408
+ Object.keys(customTheme).forEach(function (key) {
1409
+ elContent.setAttribute(key, customTheme[key]);
1410
+ });
1411
+ var placementStr = placement.split('-')[0];
1412
+ var resolvedPlacement = placementStr;
1413
+
1414
+ if (!['left', 'right', 'top', 'bottom'].includes(placementStr)) {
1415
+ resolvedPlacement = 'top';
1416
+ }
1417
+
1418
+ updatePopContentStyle(elContent, x, y, middlewareData);
1419
+ updateArrowStyle(elArrow, resolvedPlacement, middlewareData);
1420
+ });
1421
+ };
1422
+
1423
+ var popHideTimerId = undefined;
1424
+ var isMouseenter = false;
1425
+
1426
+ var showPopover = function showPopover() {
1427
+ // 设置settimeout避免hidePopover导致显示问题
1428
+ setTimeout(function () {
1429
+ !props.disabled && (localIsShow.value = true);
1430
+ }, props.popoverDelay);
1431
+ };
1432
+
1433
+ var hidePopover = function hidePopover() {
1434
+ popHideTimerId = setTimeout(function () {
1435
+ localIsShow.value = false;
1436
+ }, props.popoverDelay);
1437
+ };
1438
+
1439
+ var hanldePopoverShow = function hanldePopoverShow() {
1440
+ var _a;
1441
+
1442
+ var elContent = resolveTargetElement((_a = refContent.value) === null || _a === void 0 ? void 0 : _a.$el);
1443
+ elContent.style.setProperty('display', 'block');
1444
+ elContent.style.setProperty('z-index', "".concat(props.zIndex ? props.zIndex : external_shared_namespaceObject.bkZIndexManager.getPopperIndex()));
1445
+ updatePopover();
1446
+ ctx.emit('afterShow', {
1447
+ isShow: true
1448
+ });
1449
+ };
1450
+
1451
+ var handlePopoverHide = function handlePopoverHide() {
1452
+ var _a;
1453
+
1454
+ var elContent = resolveTargetElement((_a = refContent.value) === null || _a === void 0 ? void 0 : _a.$el);
1455
+ elContent.style.setProperty('display', 'none');
1456
+ ctx.emit('afterHidden', {
1457
+ isShow: false
1458
+ });
1459
+ };
1460
+
1461
+ var triggerPopover = function triggerPopover() {
1462
+ if (!localIsShow.value) {
1463
+ showPopover();
1464
+ } else {
1465
+ hidePopover();
1466
+ }
1467
+ };
1468
+
1469
+ var handleClickRef = function handleClickRef() {
1470
+ triggerPopover();
1471
+ };
1472
+
1473
+ var handlePopContentMouseEnter = function handlePopContentMouseEnter() {
1474
+ if (props.trigger !== 'hover') {
1475
+ return;
1476
+ }
1477
+
1478
+ if (popHideTimerId) {
1479
+ isMouseenter = true;
1480
+ clearTimeout(popHideTimerId);
1481
+ popHideTimerId = undefined;
1482
+ }
1483
+
1484
+ emitPopContentMouseEnter();
1485
+ };
1486
+
1487
+ var handlePopContentMouseLeave = function handlePopContentMouseLeave() {
1488
+ if (isMouseenter) {
1489
+ hidePopover();
1490
+ isMouseenter = false;
1491
+ emitPopContentMouseLeave();
1492
+ }
1493
+ };
1494
+ /**
1495
+ * 弹出内容鼠标移入事件
1496
+ * 抛出相关事件,方便后续操作
1497
+ * 例如:鼠标移入内容区域,则取消弹出内容隐藏操作
1498
+ */
1499
+
1500
+
1501
+ var emitPopContentMouseEnter = function emitPopContentMouseEnter() {
1502
+ ctx.emit(EMIT_EVENTS.CONTENT_MOUSEENTER);
1503
+ };
1504
+ /**
1505
+ * 弹出内容鼠标移出事件
1506
+ */
1507
+
1508
+
1509
+ var emitPopContentMouseLeave = function emitPopContentMouseLeave() {
1510
+ ctx.emit(EMIT_EVENTS.CONTENT_MOUSELEAVE);
1511
+ };
1512
+
1513
+ var resolveTriggerEvents = function resolveTriggerEvents() {
1514
+ var _a;
1515
+
1516
+ var triggerEvents = {
1517
+ hover: {
1518
+ content: [['mouseenter', handlePopContentMouseEnter], ['mouseleave', handlePopContentMouseLeave]],
1519
+ reference: [['mouseenter', showPopover], ['mouseleave', hidePopover], ['focus', showPopover], ['blur', hidePopover]]
1520
+ },
1521
+ click: [['click', handleClickRef]],
1522
+ manual: {
1523
+ content: [['mouseenter', emitPopContentMouseEnter], ['mouseleave', emitPopContentMouseLeave]],
1524
+ reference: [[]]
1525
+ }
1526
+ };
1527
+ return (_a = triggerEvents[props.trigger]) !== null && _a !== void 0 ? _a : [];
1528
+ };
1529
+
1530
+ var updateFullscreenTarget = function updateFullscreenTarget(val) {
1531
+ fullScreenTarget.value = val;
1532
+ };
1533
+
1534
+ (0,external_vue_namespaceObject.watch)(localIsShow, function (val) {
1535
+ if (val) {
1536
+ hanldePopoverShow();
1537
+ } else {
1538
+ handlePopoverHide();
1539
+ }
1540
+ });
1541
+
1542
+ var stopHide = function stopHide() {
1543
+ if (popHideTimerId) {
1544
+ isMouseenter = true;
1545
+ clearTimeout(popHideTimerId);
1546
+ popHideTimerId = undefined;
1547
+ }
1548
+ };
1549
+
1550
+ return {
1551
+ showPopover: showPopover,
1552
+ hidePopover: hidePopover,
1553
+ resolveTriggerEvents: resolveTriggerEvents,
1554
+ updatePopover: updatePopover,
1555
+ triggerPopover: triggerPopover,
1556
+ resolvePopElements: resolvePopElements,
1557
+ isElementFullScreen: isElementFullScreen,
1558
+ resolveTargetElement: resolveTargetElement,
1559
+ createPopInstance: createPopInstance,
1560
+ updateFullscreenTarget: updateFullscreenTarget,
1561
+ getFullscreenRoot: getFullscreenRoot,
1562
+ stopHide: stopHide,
1563
+ localIsShow: localIsShow,
1564
+ cleanup: cleanup
1565
+ };
1566
+ });
1567
+ // EXTERNAL MODULE: ../../node_modules/uuid/index.js
1568
+ var uuid = __webpack_require__(8022);
1569
+ ;// CONCATENATED MODULE: ../../packages/popover/src/utils.ts
1570
+ /*
1571
+ * Tencent is pleased to support the open source community by making
1572
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1573
+ *
1574
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1575
+ *
1576
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1577
+ *
1578
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1579
+ *
1580
+ * ---------------------------------------------------
1581
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1582
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1583
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1584
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1585
+ *
1586
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1587
+ * the Software.
1588
+ *
1589
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1590
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1591
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1592
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1593
+ * IN THE SOFTWARE.
1594
+ */
1595
+
1596
+ var CachedConst = {};
1597
+ var isAvailableId = function isAvailableId(query) {
1598
+ var container = document.querySelector(query);
1599
+ return container instanceof HTMLElement;
1600
+ };
1601
+ var getFullscreenUid = function getFullscreenUid() {
1602
+ if (!CachedConst.fullscreenReferId) {
1603
+ CachedConst.fullscreenReferId = "id_".concat((0,uuid.v4)());
1604
+ }
1605
+
1606
+ return CachedConst.fullscreenReferId;
1607
+ };
1608
+ ;// CONCATENATED MODULE: ../../packages/popover/src/use-popper-id.ts
1609
+ /*
1610
+ * Tencent is pleased to support the open source community by making
1611
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1612
+ *
1613
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1614
+ *
1615
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1616
+ *
1617
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1618
+ *
1619
+ * ---------------------------------------------------
1620
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1621
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1622
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1623
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1624
+ *
1625
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1626
+ * the Software.
1627
+ *
1628
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1629
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1630
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1631
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1632
+ * IN THE SOFTWARE.
1633
+ */
1634
+
1635
+
1636
+ var popContainerId = null;
1637
+ var parentNodeReferId = null;
1638
+ /* harmony default export */ const use_popper_id = (function (props) {
1639
+ var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '#';
1640
+
1641
+ var getPrefixId = function getPrefixId(root) {
1642
+ var resolvedBoundary = null;
1643
+
1644
+ var resolveBoundary = function resolveBoundary(fn) {
1645
+ if (resolvedBoundary === null) {
1646
+ fn();
1647
+ }
1648
+ };
1649
+
1650
+ var resolveParentBoundary = function resolveParentBoundary() {
1651
+ if (/^parent$/i.test(props.boundary)) {
1652
+ resolvedBoundary = "".concat(prefix).concat(popContainerId);
1653
+
1654
+ var _ref = root || {},
1655
+ parentNode = _ref.parentNode;
1656
+
1657
+ if (parentNode === null || parentNode === void 0 ? void 0 : parentNode.parentNode) {
1658
+ parentNode.parentNode.setAttribute('data-pnode-id', parentNodeReferId);
1659
+ resolvedBoundary = "[data-pnode-id=".concat(parentNodeReferId, "]");
1660
+ }
1661
+ }
1662
+ };
1663
+
1664
+ var resolveCommonBoundary = function resolveCommonBoundary() {
1665
+ if (!/^body$/i.test(props.boundary) && typeof props.boundary === 'string') {
1666
+ if (!isAvailableId(props.boundary)) {
1667
+ console.error('props.boundary is not available selector');
1668
+ resolvedBoundary = 'body';
1669
+ return;
1670
+ }
1671
+
1672
+ resolvedBoundary = props.boundary;
1673
+ }
1674
+ };
1675
+
1676
+ resolveBoundary(resolveParentBoundary);
1677
+ resolveBoundary(resolveCommonBoundary);
1678
+ resolveBoundary(function () {
1679
+ resolvedBoundary = typeof props.boundary === 'string' ? props.boundary : "".concat(prefix).concat(popContainerId);
1680
+ });
1681
+ return resolvedBoundary;
1682
+ };
1683
+
1684
+ if (popContainerId === null || !isAvailableId("#".concat(popContainerId))) {
1685
+ popContainerId = "id_".concat((0,uuid.v4)());
1686
+ var popContainer = document.createElement('div');
1687
+ popContainer.setAttribute('id', popContainerId);
1688
+ popContainer.setAttribute('data-popper-id', popContainerId);
1689
+ document.body.append(popContainer);
1690
+ }
1691
+
1692
+ if (parentNodeReferId === null) {
1693
+ parentNodeReferId = "id_".concat((0,uuid.v4)());
1694
+ }
1695
+
1696
+ return {
1697
+ popContainerId: popContainerId,
1698
+ prefixId: getPrefixId(),
1699
+ getPrefixId: getPrefixId
1700
+ };
1701
+ });
1702
+ ;// CONCATENATED MODULE: ../../packages/popover/src/use-popover-init.ts
1703
+
1704
+
1705
+ /*
1706
+ * Tencent is pleased to support the open source community by making
1707
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1708
+ *
1709
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1710
+ *
1711
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1712
+ *
1713
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1714
+ *
1715
+ * ---------------------------------------------------
1716
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1717
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1718
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1719
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1720
+ *
1721
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1722
+ * the Software.
1723
+ *
1724
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1725
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1726
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1727
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1728
+ * IN THE SOFTWARE.
1729
+ */
1730
+
1731
+
1732
+
1733
+
1734
+
1735
+ /* harmony default export */ const use_popover_init = (function (props, ctx, _ref) {
1736
+ var refReference = _ref.refReference,
1737
+ refContent = _ref.refContent,
1738
+ refArrow = _ref.refArrow,
1739
+ refRoot = _ref.refRoot;
1740
+ var storeEvents = null;
1741
+ var isFullscreen = (0,external_vue_namespaceObject.ref)(false);
1742
+ var fullscreenReferId = getFullscreenUid();
1743
+ var fullScreenTarget = (0,external_vue_namespaceObject.ref)();
1744
+
1745
+ var _useFloating = use_floating(props, ctx, {
1746
+ refReference: refReference,
1747
+ refContent: refContent,
1748
+ refArrow: refArrow,
1749
+ refRoot: refRoot
1750
+ }),
1751
+ localIsShow = _useFloating.localIsShow,
1752
+ showPopover = _useFloating.showPopover,
1753
+ hidePopover = _useFloating.hidePopover,
1754
+ updatePopover = _useFloating.updatePopover,
1755
+ resolveTriggerEvents = _useFloating.resolveTriggerEvents,
1756
+ resolvePopElements = _useFloating.resolvePopElements,
1757
+ isElementFullScreen = _useFloating.isElementFullScreen,
1758
+ updateFullscreenTarget = _useFloating.updateFullscreenTarget,
1759
+ createPopInstance = _useFloating.createPopInstance,
1760
+ getFullscreenRoot = _useFloating.getFullscreenRoot,
1761
+ stopHide = _useFloating.stopHide;
1762
+
1763
+ var showFn = function showFn() {
1764
+ showPopover();
1765
+ };
1766
+
1767
+ var hideFn = function hideFn() {
1768
+ hidePopover();
1769
+ };
1770
+
1771
+ var initPopInstance = function initPopInstance() {
1772
+ createPopInstance();
1773
+
1774
+ if (props.always) {
1775
+ showPopover();
1776
+ } else {
1777
+ addEventToPopTargetEl();
1778
+ }
1779
+ };
1780
+
1781
+ var addEventToPopTargetEl = function addEventToPopTargetEl() {
1782
+ var _resolvePopElements = resolvePopElements(),
1783
+ elReference = _resolvePopElements.elReference,
1784
+ elContent = _resolvePopElements.elContent;
1785
+
1786
+ storeEvents = resolveTriggerEvents();
1787
+
1788
+ if (Array.isArray(storeEvents)) {
1789
+ addEventToTargetEl(elReference, storeEvents);
1790
+ } else {
1791
+ var _storeEvents = storeEvents,
1792
+ content = _storeEvents.content,
1793
+ reference = _storeEvents.reference;
1794
+ addEventToTargetEl(elReference, reference);
1795
+ addEventToTargetEl(elContent, content);
1796
+ }
1797
+ };
1798
+
1799
+ var addEventToTargetEl = function addEventToTargetEl(target, evets) {
1800
+ evets.forEach(function (_ref2) {
1801
+ var _ref3 = _slicedToArray(_ref2, 2),
1802
+ event = _ref3[0],
1803
+ listener = _ref3[1];
1804
+
1805
+ if (event && typeof listener === 'function') {
1806
+ target.addEventListener(event, listener);
1807
+ }
1808
+ });
1809
+ };
1810
+
1811
+ var removeEventListener = function removeEventListener() {
1812
+ if (storeEvents === null || storeEvents === void 0 ? void 0 : storeEvents.length) {
1813
+ var _resolvePopElements2 = resolvePopElements(),
1814
+ elReference = _resolvePopElements2.elReference;
1815
+
1816
+ if (elReference) {
1817
+ storeEvents.forEach(function (_ref4) {
1818
+ var _ref5 = _slicedToArray(_ref4, 2),
1819
+ event = _ref5[0],
1820
+ listener = _ref5[1];
1821
+
1822
+ if (event && typeof listener === 'function') {
1823
+ elReference.removeEventListener(event, listener);
1824
+ }
1825
+ });
1826
+ }
1827
+
1828
+ storeEvents = null;
1829
+ }
1830
+ };
1831
+
1832
+ var updateBoundary = function updateBoundary() {
1833
+ var _resolvePopElements3 = resolvePopElements(),
1834
+ elReference = _resolvePopElements3.elReference,
1835
+ root = _resolvePopElements3.root;
1836
+
1837
+ if (isFullscreen.value) {
1838
+ boundary.value = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value;
1839
+ return;
1840
+ }
1841
+
1842
+ boundary.value = getPrefixId(root || elReference);
1843
+ };
1844
+
1845
+ var _usePopperId = use_popper_id(props, '#'),
1846
+ getPrefixId = _usePopperId.getPrefixId;
1847
+
1848
+ var setFullscreenTag = function setFullscreenTag() {
1849
+ var _a;
1850
+
1851
+ (_a = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) === null || _a === void 0 ? void 0 : _a.setAttribute('data-fllsrn-id', fullscreenReferId);
1852
+ };
1853
+
1854
+ var clearFullscreenTag = function clearFullscreenTag() {
1855
+ var _a, _b;
1856
+
1857
+ var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
1858
+ ((_b = (_a = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) === null || _a === void 0 ? void 0 : _a.querySelectorAll(query)) !== null && _b !== void 0 ? _b : []).forEach(function (element) {
1859
+ element === null || element === void 0 ? void 0 : element.removeAttribute('data-fllsrn-id');
1860
+ });
1861
+ };
1862
+
1863
+ var boundary = (0,external_vue_namespaceObject.ref)();
1864
+
1865
+ var beforeInstanceUnmount = function beforeInstanceUnmount() {
1866
+ removeEventListener();
1867
+ };
1868
+
1869
+ var updateFullscreen = function updateFullscreen(target) {
1870
+ fullScreenTarget.value = target;
1871
+ updateFullscreenTarget(target);
1872
+ isFullscreen.value = isElementFullScreen();
1873
+ setFullscreenTag();
1874
+ };
1875
+
1876
+ var handleFullscreenChange = function handleFullscreenChange(e) {
1877
+ if (!document.fullscreenElement) {
1878
+ clearFullscreenTag();
1879
+ }
1880
+
1881
+ updateFullscreen(e.target);
1882
+ updateBoundary();
1883
+ updatePopover(null, props);
1884
+ };
1885
+
1886
+ var onMountedFn = function onMountedFn() {
1887
+ if (props.disabled) {
1888
+ return;
1889
+ }
1890
+
1891
+ initPopInstance();
1892
+
1893
+ if (isElementFullScreen()) {
1894
+ var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
1895
+ var target = getFullscreenRoot(query);
1896
+ updateFullscreen(target);
1897
+ }
1898
+
1899
+ updateBoundary();
1900
+ document.body.addEventListener('fullscreenchange', handleFullscreenChange);
1901
+ };
1902
+
1903
+ var onUnmountedFn = function onUnmountedFn() {
1904
+ beforeInstanceUnmount();
1905
+ document.body.removeEventListener('fullscreenchange', handleFullscreenChange);
1906
+ };
1907
+
1908
+ var handleClickOutside = function handleClickOutside(_e) {
1909
+ ctx.emit(EMIT_EVENTS.CLICK_OUTSIDE, {
1910
+ isShow: localIsShow.value,
1911
+ event: _e
1912
+ });
1913
+
1914
+ if (props.disableOutsideClick || props.always || props.disabled || props.trigger === 'manual') {
1915
+ return;
1916
+ }
1917
+
1918
+ if (localIsShow.value) {
1919
+ hideFn();
1920
+ }
1921
+ };
1922
+
1923
+ return {
1924
+ onMountedFn: onMountedFn,
1925
+ onUnmountedFn: onUnmountedFn,
1926
+ handleClickOutside: handleClickOutside,
1927
+ beforeInstanceUnmount: beforeInstanceUnmount,
1928
+ updateBoundary: updateBoundary,
1929
+ initPopInstance: initPopInstance,
1930
+ updatePopover: updatePopover,
1931
+ showPopover: showPopover,
1932
+ hidePopover: hidePopover,
1933
+ showFn: showFn,
1934
+ hideFn: hideFn,
1935
+ stopHide: stopHide,
1936
+ isFullscreen: isFullscreen,
1937
+ boundary: boundary,
1938
+ localIsShow: localIsShow
1939
+ };
1940
+ });
1941
+ ;// CONCATENATED MODULE: ../../packages/popover/src/popover.tsx
1942
+
1943
+
1944
+ /*
1945
+ * Tencent is pleased to support the open source community by making
1946
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1947
+ *
1948
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1949
+ *
1950
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1951
+ *
1952
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1953
+ *
1954
+ * ---------------------------------------------------
1955
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1956
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1957
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1958
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1959
+ *
1960
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1961
+ * the Software.
1962
+ *
1963
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1964
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1965
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1966
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1967
+ * IN THE SOFTWARE.
1968
+ */
1969
+
1970
+
1971
+
1972
+
1973
+
1974
+
1975
+
1976
+
1977
+
1978
+
1979
+ /* harmony default export */ const popover = ((0,external_vue_namespaceObject.defineComponent)({
1980
+ name: 'Popover',
1981
+ components: {
1982
+ Content: content,
1983
+ Arrow: src_arrow,
1984
+ Root: root
1985
+ },
1986
+ directives: {
1987
+ clickoutside: external_directives_namespaceObject.clickoutside
1988
+ },
1989
+ props: PopoverProps,
1990
+ emits: EMIT_EVENT_TYPES,
1991
+ setup: function setup(props, ctx) {
1992
+ var content = props.content,
1993
+ theme = props.theme,
1994
+ disableTeleport = props.disableTeleport;
1995
+
1996
+ var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
1997
+ reference = _toRefs.reference;
1998
+
1999
+ var refDefaultReference = (0,external_vue_namespaceObject.ref)();
2000
+ var refContent = (0,external_vue_namespaceObject.ref)();
2001
+ var refArrow = (0,external_vue_namespaceObject.ref)();
2002
+ var refRoot = (0,external_vue_namespaceObject.ref)();
2003
+ var refReference = (0,external_vue_namespaceObject.computed)(function () {
2004
+ return reference.value || refDefaultReference.value;
2005
+ });
2006
+
2007
+ var _usePopoverInit = use_popover_init(props, ctx, {
2008
+ refReference: refReference,
2009
+ refContent: refContent,
2010
+ refArrow: refArrow,
2011
+ refRoot: refRoot
2012
+ }),
2013
+ onMountedFn = _usePopoverInit.onMountedFn,
2014
+ onUnmountedFn = _usePopoverInit.onUnmountedFn,
2015
+ handleClickOutside = _usePopoverInit.handleClickOutside,
2016
+ beforeInstanceUnmount = _usePopoverInit.beforeInstanceUnmount,
2017
+ updateBoundary = _usePopoverInit.updateBoundary,
2018
+ initPopInstance = _usePopoverInit.initPopInstance,
2019
+ showFn = _usePopoverInit.showFn,
2020
+ hideFn = _usePopoverInit.hideFn,
2021
+ showPopover = _usePopoverInit.showPopover,
2022
+ hidePopover = _usePopoverInit.hidePopover,
2023
+ updatePopover = _usePopoverInit.updatePopover,
2024
+ stopHide = _usePopoverInit.stopHide,
2025
+ localIsShow = _usePopoverInit.localIsShow,
2026
+ boundary = _usePopoverInit.boundary;
2027
+
2028
+ if (!props.always && !props.disabled) {
2029
+ (0,external_vue_namespaceObject.watch)(function () {
2030
+ return props.isShow;
2031
+ }, function () {
2032
+ props.isShow ? showPopover() : hidePopover();
2033
+ }, {
2034
+ immediate: true
2035
+ });
2036
+ }
2037
+
2038
+ (0,external_vue_namespaceObject.watch)(function () {
2039
+ return [props.disabled];
2040
+ }, function (val) {
2041
+ if (val[0]) {
2042
+ beforeInstanceUnmount();
2043
+ } else {
2044
+ initPopInstance();
2045
+ }
2046
+ });
2047
+ updateBoundary();
2048
+ (0,external_vue_namespaceObject.onMounted)(onMountedFn);
2049
+ (0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
2050
+ var transBoundary = (0,external_vue_namespaceObject.computed)(function () {
2051
+ return !disableTeleport;
2052
+ });
2053
+
2054
+ var show = function show() {
2055
+ showFn();
2056
+ };
2057
+
2058
+ var hide = function hide() {
2059
+ hideFn();
2060
+ };
2061
+
2062
+ var contentIsShow = (0,external_vue_namespaceObject.computed)(function () {
2063
+ if (props.renderType === external_shared_namespaceObject.RenderType.AUTO) {
2064
+ return true;
2065
+ }
2066
+
2067
+ return localIsShow.value;
2068
+ });
2069
+ return {
2070
+ boundary: boundary,
2071
+ arrow: props.arrow,
2072
+ refDefaultReference: refDefaultReference,
2073
+ refContent: refContent,
2074
+ refArrow: refArrow,
2075
+ content: content,
2076
+ theme: theme,
2077
+ transBoundary: transBoundary,
2078
+ handleClickOutside: handleClickOutside,
2079
+ updatePopover: updatePopover,
2080
+ hide: hide,
2081
+ show: show,
2082
+ stopHide: stopHide,
2083
+ contentIsShow: contentIsShow
2084
+ };
2085
+ },
2086
+ render: function render() {
2087
+ var _this = this;
2088
+
2089
+ var _a, _b, _c, _d, _e, _f;
2090
+
2091
+ return (0,external_vue_namespaceObject.createVNode)(root, {
2092
+ "ref": "refRoot"
2093
+ }, {
2094
+ "default": function _default() {
2095
+ return [(0,external_vue_namespaceObject.createVNode)(reference, {
2096
+ "ref": "refDefaultReference"
2097
+ }, {
2098
+ "default": function _default() {
2099
+ return [(_c = (_b = (_a = _this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (0,external_vue_namespaceObject.createVNode)("span", null, null)];
2100
+ }
2101
+ }), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
2102
+ "to": _this.boundary,
2103
+ "disabled": !_this.transBoundary
2104
+ }, {
2105
+ "default": function _default() {
2106
+ return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(content, {
2107
+ "ref": "refContent",
2108
+ "data-theme": _this.theme,
2109
+ "width": _this.width,
2110
+ "height": _this.height,
2111
+ "maxHeight": _this.maxHeight
2112
+ }, {
2113
+ "default": function _default() {
2114
+ return [_this.contentIsShow ? (_f = (_e = (_d = _this.$slots).content) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : _this.content : ''];
2115
+ },
2116
+ arrow: function arrow() {
2117
+ var _a, _b;
2118
+
2119
+ return _this.arrow ? (0,external_vue_namespaceObject.createVNode)(src_arrow, {
2120
+ "ref": "refArrow"
2121
+ }, {
2122
+ "default": function _default() {
2123
+ return [(_b = (_a = _this.$slots).arrow) === null || _b === void 0 ? void 0 : _b.call(_a)];
2124
+ }
2125
+ }) : '';
2126
+ }
2127
+ }), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), _this.handleClickOutside]])];
2128
+ }
2129
+ })];
2130
+ }
2131
+ });
2132
+ }
2133
+ }));
2134
+ ;// CONCATENATED MODULE: ../../packages/popover/src/plugin-popover.tsx
2135
+
2136
+
2137
+
2138
+ /*
2139
+ * Tencent is pleased to support the open source community by making
2140
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2141
+ *
2142
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2143
+ *
2144
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2145
+ *
2146
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2147
+ *
2148
+ * ---------------------------------------------------
2149
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2150
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2151
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2152
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2153
+ *
2154
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2155
+ * the Software.
2156
+ *
2157
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2158
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2159
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2160
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2161
+ * IN THE SOFTWARE.
2162
+ */
2163
+
2164
+
2165
+
2166
+ function createPopoverComponent(options) {
2167
+ var $PopoverInstance = null;
2168
+ var $PopoverInstanceVm = null;
2169
+ var $PopoverInstanceEl = null;
2170
+ var resolvedOptions = Object.assign(Object.assign({
2171
+ boundary: 'body',
2172
+ placement: 'top',
2173
+ autoVisibility: false
2174
+ }, options), {
2175
+ trigger: 'manual'
2176
+ });
2177
+
2178
+ var isElement = function isElement(element) {
2179
+ return element instanceof Element || element instanceof HTMLDocument;
2180
+ };
2181
+
2182
+ var popoverComponent = {
2183
+ name: '$popover',
2184
+ setup: function setup(_, _ref) {
2185
+ var expose = _ref.expose;
2186
+ var refProps = (0,external_vue_namespaceObject.ref)(resolvedOptions);
2187
+ var refReference = (0,external_vue_namespaceObject.ref)();
2188
+ var referStyle = (0,external_vue_namespaceObject.ref)({
2189
+ position: 'absolute',
2190
+ pointerEvents: 'none',
2191
+ left: 0,
2192
+ top: 0,
2193
+ width: 'auto',
2194
+ height: 'auto',
2195
+ transform: ''
2196
+ });
2197
+
2198
+ var updateStyle = function updateStyle(target) {
2199
+ if (isElement(target)) {
2200
+ var _target$getBoundingCl = target.getBoundingClientRect(),
2201
+ x = _target$getBoundingCl.x,
2202
+ y = _target$getBoundingCl.y,
2203
+ width = _target$getBoundingCl.width,
2204
+ height = _target$getBoundingCl.height;
2205
+
2206
+ Object.assign(referStyle.value, {
2207
+ width: "".concat(width, "px"),
2208
+ height: "".concat(height, "px"),
2209
+ transform: "translate3d(".concat(x, "px,").concat(y, "px,0)")
2210
+ });
2211
+ return;
2212
+ }
2213
+
2214
+ var clientX = target.clientX,
2215
+ clientY = target.clientY;
2216
+ Object.assign(referStyle.value, {
2217
+ transform: "translate3d(".concat(clientX, "px,").concat(clientY, "px,0)"),
2218
+ width: '10px',
2219
+ height: '10px'
2220
+ });
2221
+ };
2222
+
2223
+ updateStyle(refProps.value.target);
2224
+
2225
+ var show = function show() {
2226
+ setTimeout(function () {
2227
+ var _a, _b;
2228
+
2229
+ (_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.show) === null || _b === void 0 ? void 0 : _b.call(_a);
2230
+ });
2231
+ };
2232
+
2233
+ var hide = function hide() {
2234
+ var _a, _b;
2235
+
2236
+ (_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.hide) === null || _b === void 0 ? void 0 : _b.call(_a);
2237
+ };
2238
+
2239
+ var stopHide = function stopHide() {
2240
+ var _a, _b;
2241
+
2242
+ (_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.stopHide) === null || _b === void 0 ? void 0 : _b.call(_a);
2243
+ };
2244
+
2245
+ var attrs = (0,external_vue_namespaceObject.computed)(function () {
2246
+ var excludeKeys = ['target'];
2247
+ return Object.keys(refProps.value).filter(function (key) {
2248
+ return !excludeKeys.includes(key);
2249
+ }).reduce(function (out, curKey) {
2250
+ return Object.assign(Object.assign({}, out), _defineProperty({}, curKey, refProps.value[curKey]));
2251
+ }, {});
2252
+ });
2253
+
2254
+ var updateTarget = function updateTarget(target) {
2255
+ var _a, _b;
2256
+
2257
+ refProps.value.target = target;
2258
+ updateStyle(target);
2259
+ (_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.updatePopover) === null || _b === void 0 ? void 0 : _b.call(_a);
2260
+ (0,external_vue_namespaceObject.nextTick)(function () {
2261
+ var _a, _b;
2262
+
2263
+ (_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.updatePopover) === null || _b === void 0 ? void 0 : _b.call(_a);
2264
+ });
2265
+ };
2266
+
2267
+ var handleContentMouseenter = function handleContentMouseenter() {
2268
+ var _a;
2269
+
2270
+ (_a = resolvedOptions.onContentMouseenter) === null || _a === void 0 ? void 0 : _a.call(resolvedOptions);
2271
+ };
2272
+
2273
+ var handleContentMouseleave = function handleContentMouseleave() {
2274
+ var _a;
2275
+
2276
+ (_a = resolvedOptions.onContentMouseleave) === null || _a === void 0 ? void 0 : _a.call(resolvedOptions);
2277
+ };
2278
+
2279
+ expose({
2280
+ show: show,
2281
+ hide: hide,
2282
+ updateTarget: updateTarget,
2283
+ stopHide: stopHide
2284
+ });
2285
+ return function () {
2286
+ return (0,external_vue_namespaceObject.createVNode)(popover, (0,external_vue_namespaceObject.mergeProps)(attrs.value, {
2287
+ "ref": refReference,
2288
+ "onContentMouseenter": handleContentMouseenter,
2289
+ "onContentMouseleave": handleContentMouseleave
2290
+ }), {
2291
+ "default": function _default() {
2292
+ return [(0,external_vue_namespaceObject.createVNode)("span", {
2293
+ "style": referStyle.value
2294
+ }, null)];
2295
+ }
2296
+ });
2297
+ };
2298
+ }
2299
+ };
2300
+
2301
+ function getBoundaryDom(boundary) {
2302
+ if (/^body$/i.test(boundary)) {
2303
+ return document.body;
2304
+ }
2305
+
2306
+ if (/^parent$/i.test(boundary)) {
2307
+ if (isElement(resolvedOptions.target)) {
2308
+ return resolvedOptions.target.parentNode;
2309
+ }
2310
+
2311
+ return resolvedOptions.target.target.parentNode;
2312
+ }
2313
+
2314
+ if (typeof boundary === 'string' && isAvailableId(boundary)) {
2315
+ return document.querySelector(boundary);
2316
+ }
2317
+
2318
+ return document.body;
2319
+ }
2320
+
2321
+ if ($PopoverInstance === null) {
2322
+ $PopoverInstanceEl = document.createElement('div');
2323
+ getBoundaryDom(resolvedOptions.boundary).append($PopoverInstanceEl);
2324
+ setTimeout(function () {
2325
+ $PopoverInstance = (0,external_vue_namespaceObject.createApp)(popoverComponent);
2326
+ $PopoverInstanceVm = $PopoverInstance.mount($PopoverInstanceEl);
2327
+ });
2328
+ }
2329
+
2330
+ function close() {
2331
+ if ($PopoverInstance) {
2332
+ $PopoverInstance.unmount();
2333
+ $PopoverInstanceVm = null;
2334
+ $PopoverInstance = null;
2335
+ $PopoverInstanceEl.remove();
2336
+ }
2337
+ }
2338
+
2339
+ ;
2340
+
2341
+ function show() {
2342
+ $PopoverInstanceVm === null || $PopoverInstanceVm === void 0 ? void 0 : $PopoverInstanceVm.show();
2343
+ }
2344
+
2345
+ function update(e) {
2346
+ $PopoverInstanceVm === null || $PopoverInstanceVm === void 0 ? void 0 : $PopoverInstanceVm.updateTarget(e);
2347
+ }
2348
+
2349
+ ;
2350
+
2351
+ function hide() {
2352
+ $PopoverInstanceVm === null || $PopoverInstanceVm === void 0 ? void 0 : $PopoverInstanceVm.hide();
2353
+ }
2354
+
2355
+ return {
2356
+ close: close,
2357
+ show: show,
2358
+ hide: hide,
2359
+ update: update,
2360
+
2361
+ get vm() {
2362
+ return $PopoverInstanceVm;
2363
+ },
2364
+
2365
+ get $el() {
2366
+ return $PopoverInstanceVm.$el;
2367
+ }
2368
+
2369
+ };
2370
+ }
2371
+ ;// CONCATENATED MODULE: ../../packages/popover/src/index.ts
2372
+ /**
2373
+ * Tencent is pleased to support the open source community by making
2374
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2375
+ *
2376
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2377
+ *
2378
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2379
+ *
2380
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2381
+ *
2382
+ * ---------------------------------------------------
2383
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2384
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2385
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2386
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2387
+ *
2388
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2389
+ * the Software.
2390
+ *
2391
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2392
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2393
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2394
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2395
+ * IN THE SOFTWARE.
2396
+ */
2397
+
2398
+
2399
+ var BkPopover = (0,external_shared_namespaceObject.withInstall)(popover);
2400
+ /* harmony default export */ const src = (BkPopover);
2401
+
2402
+
2403
+ })();
2404
+
2405
+ var __webpack_exports__$bkPopover = __webpack_exports__.kB;
2406
+ var __webpack_exports__PopoverProps = __webpack_exports__.uE;
2407
+ var __webpack_exports__default = __webpack_exports__.ZP;
2408
+ export { __webpack_exports__$bkPopover as $bkPopover, __webpack_exports__PopoverProps as PopoverProps, __webpack_exports__default as default };