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