bkui-vue 2.0.1-beta.11 → 2.0.1-beta.111

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 (523) hide show
  1. package/README.md +15 -0
  2. package/dist/index.cjs.js +142 -168
  3. package/dist/index.esm.js +29125 -32074
  4. package/dist/index.umd.js +142 -168
  5. package/dist/style.css +1 -1
  6. package/dist/style.variable.css +1 -1
  7. package/lib/affix/affix.variable.css +1 -0
  8. package/lib/affix/index.d.ts +111 -57
  9. package/lib/affix/index.js +24 -24
  10. package/lib/alert/alert.d.ts +5 -12
  11. package/lib/alert/alert.variable.css +1 -0
  12. package/lib/alert/index.d.ts +131 -93
  13. package/lib/alert/index.js +25 -25
  14. package/lib/animate-number/index.d.ts +96 -33
  15. package/lib/animate-number/index.js +7 -8
  16. package/lib/backtop/backtop.d.ts +1 -1
  17. package/lib/backtop/backtop.variable.css +1 -0
  18. package/lib/backtop/index.d.ts +118 -70
  19. package/lib/backtop/index.js +16 -17
  20. package/lib/badge/badge.variable.css +1 -0
  21. package/lib/badge/index.d.ts +152 -119
  22. package/lib/badge/index.js +20 -20
  23. package/lib/breadcrumb/breadcrumb.variable.css +1 -0
  24. package/lib/breadcrumb/index.d.ts +119 -67
  25. package/lib/breadcrumb/index.js +17 -17
  26. package/lib/button/button.css +188 -144
  27. package/lib/button/button.d.ts +10 -10
  28. package/lib/button/button.less +74 -71
  29. package/lib/button/button.variable.css +189 -144
  30. package/lib/button/index.d.ts +160 -124
  31. package/lib/button/index.js +26 -26
  32. package/lib/card/card.variable.css +1 -0
  33. package/lib/card/index.d.ts +157 -128
  34. package/lib/card/index.js +22 -20
  35. package/lib/cascader/cascader-panel.d.ts +6 -1
  36. package/lib/cascader/cascader.css +4 -0
  37. package/lib/cascader/cascader.d.ts +8 -4
  38. package/lib/cascader/cascader.less +5 -0
  39. package/lib/cascader/cascader.variable.css +5 -0
  40. package/lib/cascader/index.d.ts +355 -393
  41. package/lib/cascader/index.js +377 -308
  42. package/lib/cascader/interface.d.ts +1 -1
  43. package/lib/checkbox/checkbox-group.d.ts +0 -16
  44. package/lib/checkbox/checkbox.css +8 -0
  45. package/lib/checkbox/checkbox.d.ts +40 -8
  46. package/lib/checkbox/checkbox.less +12 -0
  47. package/lib/checkbox/checkbox.variable.css +9 -0
  48. package/lib/checkbox/index.d.ts +194 -127
  49. package/lib/checkbox/index.js +65 -52
  50. package/lib/checkbox/type.d.ts +1 -1
  51. package/lib/code-diff/code-diff.variable.css +1 -0
  52. package/lib/code-diff/index.d.ts +82 -65
  53. package/lib/code-diff/index.js +446 -389
  54. package/lib/collapse/collapse-panel.d.ts +5 -5
  55. package/lib/collapse/collapse.variable.css +1 -0
  56. package/lib/collapse/index.d.ts +180 -161
  57. package/lib/collapse/index.js +31 -30
  58. package/lib/collapse/props.d.ts +2 -2
  59. package/lib/collapse/utils.d.ts +2 -2
  60. package/lib/collapse-transition/collapse-transition.variable.css +1 -0
  61. package/lib/collapse-transition/index.d.ts +94 -19
  62. package/lib/collapse-transition/index.js +3 -4
  63. package/lib/color-picker/color-picker.d.ts +17 -1
  64. package/lib/color-picker/color-picker.variable.css +1 -0
  65. package/lib/color-picker/index.d.ts +168 -124
  66. package/lib/color-picker/index.js +93 -88
  67. package/lib/components.d.ts +30 -32
  68. package/lib/components.js +29 -31
  69. package/lib/config-provider/config-provider.variable.css +1 -0
  70. package/lib/config-provider/index.d.ts +228 -161
  71. package/lib/config-provider/index.js +17 -17
  72. package/lib/container/container.d.ts +1 -1
  73. package/lib/container/container.variable.css +1 -0
  74. package/lib/container/index.d.ts +85 -74
  75. package/lib/container/index.js +32 -35
  76. package/lib/date-picker/base/date-table.d.ts +1 -1
  77. package/lib/date-picker/base/month-table.d.ts +1 -1
  78. package/lib/date-picker/base/picker-dropdown.d.ts +2 -2
  79. package/lib/date-picker/base/time-spinner.d.ts +3 -3
  80. package/lib/date-picker/base/year-table.d.ts +1 -1
  81. package/lib/date-picker/date-picker.d.ts +7 -15
  82. package/lib/date-picker/date-picker.variable.css +1 -0
  83. package/lib/date-picker/index.d.ts +356 -399
  84. package/lib/date-picker/index.js +343 -297
  85. package/lib/date-picker/interface.d.ts +9 -9
  86. package/lib/date-picker/panel/date-range.d.ts +6 -6
  87. package/lib/date-picker/panel/date.d.ts +2 -2
  88. package/lib/date-picker/panel/time-range.d.ts +3 -12
  89. package/lib/date-picker/panel/time.d.ts +3 -12
  90. package/lib/date-picker/props.d.ts +1 -5
  91. package/lib/date-picker/time-picker.d.ts +7 -14
  92. package/lib/date-picker/utils.d.ts +1 -1
  93. package/lib/dialog/dialog.d.ts +47 -31
  94. package/lib/dialog/dialog.variable.css +1 -0
  95. package/lib/dialog/index.d.ts +309 -305
  96. package/lib/dialog/index.js +252 -249
  97. package/lib/dialog/props.d.ts +20 -13
  98. package/lib/directives/index.d.ts +4 -3
  99. package/lib/directives/index.js +219 -197
  100. package/lib/directives/tooltips.d.ts +1 -1
  101. package/lib/dist.index.js +2 -4
  102. package/lib/divider/divider.d.ts +5 -5
  103. package/lib/divider/divider.variable.css +1 -0
  104. package/lib/divider/index.d.ts +116 -62
  105. package/lib/divider/index.js +4 -5
  106. package/lib/divider/props.d.ts +2 -2
  107. package/lib/dropdown/dropdown-item.d.ts +1 -1
  108. package/lib/dropdown/dropdown-menu.d.ts +1 -1
  109. package/lib/dropdown/dropdown.d.ts +7 -7
  110. package/lib/dropdown/dropdown.variable.css +1 -0
  111. package/lib/dropdown/index.d.ts +144 -102
  112. package/lib/dropdown/index.js +32 -32
  113. package/lib/exception/exception.d.ts +9 -9
  114. package/lib/exception/exception.variable.css +1 -0
  115. package/lib/exception/index.d.ts +107 -46
  116. package/lib/exception/index.js +31 -31
  117. package/lib/exception/typings/index.d.ts +1 -1
  118. package/lib/fixed-navbar/fixed-navbar.variable.css +1 -0
  119. package/lib/fixed-navbar/index.d.ts +113 -59
  120. package/lib/fixed-navbar/index.js +4 -5
  121. package/lib/form/form-item.d.ts +7 -19
  122. package/lib/form/form.d.ts +3 -3
  123. package/lib/form/form.variable.css +1 -0
  124. package/lib/form/index.d.ts +139 -94
  125. package/lib/form/index.js +44 -42
  126. package/lib/form/type.d.ts +2 -2
  127. package/lib/icon/angle-double-down-line.js +17 -17
  128. package/lib/icon/angle-double-left-line.js +17 -17
  129. package/lib/icon/angle-double-left.js +17 -17
  130. package/lib/icon/angle-double-right-line.js +17 -17
  131. package/lib/icon/angle-double-right.js +17 -17
  132. package/lib/icon/angle-double-up-line.js +17 -17
  133. package/lib/icon/angle-down-fill.js +17 -17
  134. package/lib/icon/angle-down-line.js +17 -17
  135. package/lib/icon/angle-down.js +17 -17
  136. package/lib/icon/angle-left.js +17 -17
  137. package/lib/icon/angle-right.js +17 -17
  138. package/lib/icon/angle-up-fill.js +17 -17
  139. package/lib/icon/angle-up.js +17 -17
  140. package/lib/icon/archive-fill.js +17 -17
  141. package/lib/icon/arrows-left.js +17 -17
  142. package/lib/icon/arrows-right.js +17 -17
  143. package/lib/icon/assistant.js +17 -17
  144. package/lib/icon/audio-fill.js +17 -17
  145. package/lib/icon/bk.js +17 -17
  146. package/lib/icon/circle.js +17 -17
  147. package/lib/icon/close-line.js +17 -17
  148. package/lib/icon/close.js +17 -17
  149. package/lib/icon/code.js +17 -17
  150. package/lib/icon/cog-shape.js +17 -17
  151. package/lib/icon/collapse-left.js +17 -17
  152. package/lib/icon/copy-shape.js +17 -17
  153. package/lib/icon/copy.js +17 -17
  154. package/lib/icon/data-shape.js +17 -17
  155. package/lib/icon/del.js +17 -17
  156. package/lib/icon/doc-fill.js +17 -17
  157. package/lib/icon/done.js +17 -17
  158. package/lib/icon/down-shape.js +17 -17
  159. package/lib/icon/down-small.js +17 -17
  160. package/lib/icon/edit-line.js +17 -17
  161. package/lib/icon/ellipsis.js +17 -17
  162. package/lib/icon/enlarge-line.js +17 -17
  163. package/lib/icon/error.js +17 -17
  164. package/lib/icon/excel-fill.js +17 -17
  165. package/lib/icon/exclamation-circle-shape.js +17 -17
  166. package/lib/icon/eye.js +17 -17
  167. package/lib/icon/filliscreen-line.js +17 -17
  168. package/lib/icon/fix-line.js +17 -17
  169. package/lib/icon/fix-shape.js +17 -17
  170. package/lib/icon/folder-open.js +17 -17
  171. package/lib/icon/folder-shape-open.js +17 -17
  172. package/lib/icon/folder-shape.js +17 -17
  173. package/lib/icon/folder.js +17 -17
  174. package/lib/icon/funnel.js +17 -17
  175. package/lib/icon/grag-fill.js +17 -17
  176. package/lib/icon/help-document-fill.js +17 -17
  177. package/lib/icon/help-fill.js +17 -17
  178. package/lib/icon/help.js +17 -17
  179. package/lib/icon/image-fill.js +17 -17
  180. package/lib/icon/img-error.js +17 -17
  181. package/lib/icon/img-placehoulder.js +17 -17
  182. package/lib/icon/index.d.ts +11 -11
  183. package/lib/icon/index.js +11 -11
  184. package/lib/icon/info-line.js +17 -17
  185. package/lib/icon/info.js +17 -17
  186. package/lib/icon/left-shape.js +17 -17
  187. package/lib/icon/left-turn-line.js +17 -17
  188. package/lib/icon/loading.js +17 -17
  189. package/lib/icon/narrow-line.js +17 -17
  190. package/lib/icon/original.js +17 -17
  191. package/lib/icon/pdf-fill.js +17 -17
  192. package/lib/icon/play-shape.js +17 -17
  193. package/lib/icon/plus.js +17 -17
  194. package/lib/icon/ppt-fill.js +17 -17
  195. package/lib/icon/qq.js +17 -17
  196. package/lib/icon/right-shape.js +17 -17
  197. package/lib/icon/right-turn-line.js +17 -17
  198. package/lib/icon/search.js +17 -17
  199. package/lib/icon/share.js +17 -17
  200. package/lib/icon/spinner.js +17 -17
  201. package/lib/icon/success.js +17 -17
  202. package/lib/icon/switcher-loading.js +17 -17
  203. package/lib/icon/text-all.js +17 -17
  204. package/lib/icon/text-file.js +17 -17
  205. package/lib/icon/text-fill.js +17 -17
  206. package/lib/icon/transfer.js +17 -17
  207. package/lib/icon/tree-application-shape.js +17 -17
  208. package/lib/icon/unfull-screen.js +17 -17
  209. package/lib/icon/unvisible.js +17 -17
  210. package/lib/icon/up-shape.js +17 -17
  211. package/lib/icon/upload.js +17 -17
  212. package/lib/icon/video-fill.js +17 -17
  213. package/lib/icon/warn.js +17 -17
  214. package/lib/icon/weixin-pro.js +17 -17
  215. package/lib/icon/weixin.js +17 -17
  216. package/lib/image/image-viewer.d.ts +1 -1
  217. package/lib/image/image-viewer.variable.css +1 -0
  218. package/lib/image/image.variable.css +1 -0
  219. package/lib/image/index.d.ts +149 -113
  220. package/lib/image/index.js +46 -48
  221. package/lib/index.d.ts +9 -3
  222. package/lib/index.js +5 -29
  223. package/lib/info-box/index.js +250 -250
  224. package/lib/info-box/info-box.d.ts +15 -15
  225. package/lib/info-box/info-box.variable.css +1 -0
  226. package/lib/input/index.d.ts +299 -332
  227. package/lib/input/index.js +110 -561
  228. package/lib/input/input.css +23 -1
  229. package/lib/input/input.d.ts +15 -15
  230. package/lib/input/input.less +30 -1
  231. package/lib/input/input.variable.css +24 -1
  232. package/lib/link/index.d.ts +127 -78
  233. package/lib/link/index.js +5 -5
  234. package/lib/link/link.d.ts +5 -5
  235. package/lib/link/link.variable.css +1 -0
  236. package/lib/loading/index.d.ts +162 -135
  237. package/lib/loading/index.js +43 -40
  238. package/lib/loading/loading.d.ts +9 -9
  239. package/lib/loading/loading.variable.css +1 -0
  240. package/lib/locale/index.d.ts +1 -1
  241. package/lib/menu/index.d.ts +131 -51
  242. package/lib/menu/index.js +46 -27
  243. package/lib/menu/menu-group.d.ts +9 -0
  244. package/lib/menu/menu-item.d.ts +9 -0
  245. package/lib/menu/menu.css +29 -17
  246. package/lib/menu/menu.less +33 -18
  247. package/lib/menu/menu.variable.css +30 -17
  248. package/lib/menu/submenu.d.ts +1 -0
  249. package/lib/menu/submenu.variable.css +1 -0
  250. package/lib/menu/utils.d.ts +3 -3
  251. package/lib/message/index.js +43 -42
  252. package/lib/message/message.css +2 -1
  253. package/lib/message/message.less +3 -2
  254. package/lib/message/message.variable.css +3 -1
  255. package/lib/message/messageConstructor.d.ts +21 -21
  256. package/lib/modal/index.d.ts +214 -159
  257. package/lib/modal/index.js +68 -47
  258. package/lib/modal/modal.d.ts +24 -8
  259. package/lib/modal/modal.variable.css +1 -0
  260. package/lib/modal/props.mixin.d.ts +10 -3
  261. package/lib/navigation/index.d.ts +188 -152
  262. package/lib/navigation/index.js +27 -29
  263. package/lib/navigation/navigation.d.ts +1 -1
  264. package/lib/navigation/navigation.variable.css +1 -0
  265. package/lib/notify/index.js +25 -24
  266. package/lib/notify/notify.variable.css +1 -0
  267. package/lib/notify/notifyConstructor.d.ts +5 -5
  268. package/lib/overflow-title/components/overflow-title.d.ts +45 -16
  269. package/lib/overflow-title/index.d.ts +298 -328
  270. package/lib/overflow-title/index.js +85 -28
  271. package/lib/overflow-title/overflow-title.css +3 -0
  272. package/lib/overflow-title/overflow-title.less +4 -0
  273. package/lib/overflow-title/overflow-title.variable.css +3 -0
  274. package/lib/overflow-title/props.d.ts +36 -21
  275. package/lib/pagination/index.d.ts +198 -203
  276. package/lib/pagination/index.js +128 -68
  277. package/lib/pagination/pagination.css +8 -8
  278. package/lib/pagination/pagination.d.ts +0 -13
  279. package/lib/pagination/pagination.less +14 -13
  280. package/lib/pagination/pagination.variable.css +9 -8
  281. package/lib/pagination/type.d.ts +1 -1
  282. package/lib/pagination/use-limit.d.ts +1 -1
  283. package/lib/pagination/use-total.d.ts +1 -1
  284. package/lib/plugin-popover/index.js +328 -442
  285. package/lib/pop-confirm/index.d.ts +162 -148
  286. package/lib/pop-confirm/index.js +40 -35
  287. package/lib/pop-confirm/pop-confirm.css +3 -1
  288. package/lib/pop-confirm/pop-confirm.d.ts +10 -20
  289. package/lib/pop-confirm/pop-confirm.less +3 -1
  290. package/lib/pop-confirm/pop-confirm.variable.css +4 -1
  291. package/lib/pop-confirm/props.d.ts +8 -11
  292. package/lib/popover/const.d.ts +3 -3
  293. package/lib/popover/content.d.ts +6 -3
  294. package/lib/popover/index.d.ts +411 -380
  295. package/lib/popover/index.js +328 -442
  296. package/lib/popover/plugin-popover.d.ts +1 -1
  297. package/lib/popover/popover.d.ts +51 -8
  298. package/lib/popover/popover.variable.css +1 -0
  299. package/lib/popover/props.d.ts +28 -4
  300. package/lib/popover/use-floating.d.ts +2 -2
  301. package/lib/popover/use-popover-init.d.ts +2 -1
  302. package/lib/popover/utils.d.ts +2 -0
  303. package/lib/popover2/index.d.ts +83 -8
  304. package/lib/popover2/index.js +2 -2
  305. package/lib/preset.d.ts +0 -1
  306. package/lib/preset.js +0 -1
  307. package/lib/process/index.d.ts +137 -93
  308. package/lib/process/index.js +229 -229
  309. package/lib/process/process.variable.css +1 -0
  310. package/lib/progress/index.d.ts +192 -183
  311. package/lib/progress/index.js +31 -33
  312. package/lib/progress/progress.d.ts +9 -9
  313. package/lib/progress/progress.variable.css +1 -0
  314. package/lib/radio/index.d.ts +155 -106
  315. package/lib/radio/index.js +76 -63
  316. package/lib/radio/radio-button.d.ts +7 -7
  317. package/lib/radio/radio-group.d.ts +7 -7
  318. package/lib/radio/radio.d.ts +7 -7
  319. package/lib/radio/radio.variable.css +1 -0
  320. package/lib/radio/type.d.ts +1 -1
  321. package/lib/rate/index.d.ts +112 -55
  322. package/lib/rate/index.js +28 -27
  323. package/lib/rate/rate.variable.css +1 -0
  324. package/lib/resize-layout/index.d.ts +204 -157
  325. package/lib/resize-layout/index.js +54 -34
  326. package/lib/resize-layout/resize-layout.d.ts +18 -7
  327. package/lib/resize-layout/resize-layout.variable.css +1 -0
  328. package/lib/scrollbar/css/scrollbar.css +109 -0
  329. package/lib/scrollbar/css/scrollbar.less +139 -0
  330. package/lib/scrollbar/{scrollbar.variable.css → css/scrollbar.variable.css} +96 -61
  331. package/lib/scrollbar/handlers/click-rail.d.ts +2 -0
  332. package/lib/scrollbar/handlers/drag-thumb.d.ts +1 -0
  333. package/lib/scrollbar/handlers/keyboard.d.ts +2 -0
  334. package/lib/scrollbar/handlers/mouse-wheel.d.ts +2 -0
  335. package/lib/scrollbar/handlers/touch.d.ts +4 -0
  336. package/lib/scrollbar/helper/class-names.d.ts +21 -0
  337. package/lib/scrollbar/helper/css.d.ts +3 -0
  338. package/lib/scrollbar/helper/dom.d.ts +4 -0
  339. package/lib/scrollbar/helper/event-manager.d.ts +20 -0
  340. package/lib/scrollbar/helper/util.d.ts +11 -0
  341. package/lib/scrollbar/index.d.ts +133 -13
  342. package/lib/scrollbar/index.js +1380 -18482
  343. package/lib/scrollbar/process-scroll-diff.d.ts +1 -0
  344. package/lib/scrollbar/update-geometry.d.ts +8 -0
  345. package/lib/search-select/index.d.ts +946 -701
  346. package/lib/search-select/index.js +644 -486
  347. package/lib/search-select/input.d.ts +20 -8
  348. package/lib/search-select/menu.d.ts +13 -1
  349. package/lib/search-select/search-select.css +45 -47
  350. package/lib/search-select/search-select.d.ts +207 -160
  351. package/lib/search-select/search-select.less +41 -41
  352. package/lib/search-select/search-select.variable.css +46 -47
  353. package/lib/search-select/selected.d.ts +209 -127
  354. package/lib/search-select/utils.d.ts +6 -6
  355. package/lib/select/common.d.ts +4 -4
  356. package/lib/select/index.d.ts +1457 -1384
  357. package/lib/select/index.js +603 -477
  358. package/lib/select/option.d.ts +6 -6
  359. package/lib/select/select.css +9 -4
  360. package/lib/select/select.d.ts +285 -148
  361. package/lib/select/select.less +11 -4
  362. package/lib/select/select.variable.css +10 -4
  363. package/lib/select/selectTagInput.d.ts +9 -8
  364. package/lib/select/type.d.ts +10 -11
  365. package/lib/shared/frame-throttle.d.ts +15 -0
  366. package/lib/shared/index.d.ts +2 -1
  367. package/lib/shared/index.js +166 -101
  368. package/lib/shared/popover.d.ts +3 -3
  369. package/lib/shared/token.d.ts +1 -1
  370. package/lib/shared/vue-types.d.ts +50 -50
  371. package/lib/shared/z-index-manager.d.ts +6 -6
  372. package/lib/sideslider/index.d.ts +220 -182
  373. package/lib/sideslider/index.js +239 -237
  374. package/lib/sideslider/sideslider.css +7 -8
  375. package/lib/sideslider/sideslider.d.ts +24 -8
  376. package/lib/sideslider/sideslider.less +7 -8
  377. package/lib/sideslider/sideslider.variable.css +8 -8
  378. package/lib/slider/index.d.ts +210 -214
  379. package/lib/slider/index.js +246 -249
  380. package/lib/slider/slider.variable.css +1 -0
  381. package/lib/steps/index.d.ts +155 -131
  382. package/lib/steps/index.js +234 -234
  383. package/lib/steps/steps.d.ts +8 -18
  384. package/lib/steps/steps.variable.css +1 -0
  385. package/lib/styles/index.d.ts +1 -0
  386. package/lib/styles/mixins/animate.variable.css +1 -0
  387. package/lib/styles/mixins/popper.variable.css +1 -0
  388. package/lib/styles/mixins/scroll.variable.css +1 -0
  389. package/lib/styles/reset.variable.css +1 -0
  390. package/lib/styles/themes/themes.less +1 -0
  391. package/lib/swiper/index.d.ts +127 -81
  392. package/lib/swiper/index.js +23 -23
  393. package/lib/swiper/swiper.variable.css +1 -0
  394. package/lib/switcher/index.d.ts +179 -157
  395. package/lib/switcher/index.js +24 -22
  396. package/lib/switcher/switcher.d.ts +9 -9
  397. package/lib/switcher/switcher.variable.css +1 -0
  398. package/lib/tab/index.d.ts +220 -258
  399. package/lib/tab/index.js +79 -69
  400. package/lib/tab/props.d.ts +27 -52
  401. package/lib/tab/tab-nav.d.ts +26 -66
  402. package/lib/tab/tab-panel.d.ts +27 -5
  403. package/lib/tab/tab.css +64 -0
  404. package/lib/tab/tab.d.ts +10 -54
  405. package/lib/tab/tab.less +91 -4
  406. package/lib/tab/tab.variable.css +65 -0
  407. package/lib/table/components/ghost-body.d.ts +2 -0
  408. package/lib/table/components/table-cell.d.ts +22 -0
  409. package/lib/table/components/table-column.d.ts +24 -127
  410. package/lib/table/const.d.ts +23 -10
  411. package/lib/table/events.d.ts +16 -112
  412. package/lib/table/hooks/use-cell.d.ts +20 -0
  413. package/lib/table/hooks/use-checkbox-tooltip.d.ts +11 -0
  414. package/lib/table/hooks/use-column-resize.d.ts +7 -0
  415. package/lib/table/hooks/use-column-template.d.ts +5 -0
  416. package/lib/table/hooks/use-columns.d.ts +69 -0
  417. package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
  418. package/lib/table/hooks/use-fixed-column.d.ts +10 -0
  419. package/lib/table/hooks/use-head.d.ts +16 -0
  420. package/lib/table/hooks/use-layout.d.ts +25 -0
  421. package/lib/table/hooks/use-pagination.d.ts +16 -0
  422. package/lib/table/hooks/use-render.d.ts +21 -0
  423. package/lib/table/hooks/use-rows.d.ts +30 -0
  424. package/lib/table/hooks/use-settings.d.ts +138 -0
  425. package/lib/table/{plugins → hooks}/use-shift-key.d.ts +4 -2
  426. package/lib/table/index.d.ts +412 -1029
  427. package/lib/table/index.js +4698 -20825
  428. package/lib/table/plugins/head-filter.css +5 -0
  429. package/lib/table/plugins/head-filter.d.ts +2 -1
  430. package/lib/table/plugins/head-filter.less +4 -0
  431. package/lib/table/plugins/head-filter.variable.css +6 -0
  432. package/lib/table/plugins/head-sort.variable.css +1 -0
  433. package/lib/table/plugins/settings.css +11 -1
  434. package/lib/table/plugins/settings.less +12 -1
  435. package/lib/table/plugins/settings.variable.css +12 -1
  436. package/lib/table/props.d.ts +127 -62
  437. package/lib/table/table.css +503 -302
  438. package/lib/table/table.d.ts +51 -185
  439. package/lib/table/table.less +244 -112
  440. package/lib/table/table.variable.css +504 -302
  441. package/lib/table/utils.d.ts +44 -21
  442. package/lib/table-column/index.d.ts +156 -369
  443. package/lib/table-column/index.js +143 -62
  444. package/lib/tag/index.d.ts +147 -100
  445. package/lib/tag/index.js +21 -22
  446. package/lib/tag/tag.css +1 -1
  447. package/lib/tag/tag.d.ts +5 -5
  448. package/lib/tag/tag.less +1 -1
  449. package/lib/tag/tag.variable.css +2 -1
  450. package/lib/tag-input/common.d.ts +2 -2
  451. package/lib/tag-input/index.d.ts +595 -712
  452. package/lib/tag-input/index.js +150 -17391
  453. package/lib/tag-input/tag-input.css +12 -9
  454. package/lib/tag-input/tag-input.d.ts +60 -24
  455. package/lib/tag-input/tag-input.less +13 -9
  456. package/lib/tag-input/tag-input.variable.css +13 -9
  457. package/lib/tag-input/tag-props.d.ts +25 -2
  458. package/lib/time-picker/index.d.ts +391 -455
  459. package/lib/time-picker/time-picker.variable.css +1 -0
  460. package/lib/timeline/index.d.ts +131 -64
  461. package/lib/timeline/index.js +8 -8
  462. package/lib/timeline/timeline.variable.css +1 -0
  463. package/lib/transfer/const.d.ts +2 -2
  464. package/lib/transfer/index.d.ts +206 -191
  465. package/lib/transfer/index.js +3 -5
  466. package/lib/transfer/transfer.variable.css +1 -0
  467. package/lib/tree/constant.d.ts +22 -20
  468. package/lib/tree/index.d.ts +329 -357
  469. package/lib/tree/index.js +176 -17389
  470. package/lib/tree/props.d.ts +18 -11
  471. package/lib/tree/tree.css +103 -69
  472. package/lib/tree/tree.d.ts +16 -10
  473. package/lib/tree/tree.variable.css +104 -69
  474. package/lib/tree/use-empty.d.ts +1 -1
  475. package/lib/tree/use-node-action.d.ts +10 -9
  476. package/lib/tree/use-node-async.d.ts +2 -1
  477. package/lib/tree/use-node-attribute.d.ts +42 -34
  478. package/lib/tree/use-search.d.ts +1 -1
  479. package/lib/tree/use-tree-init.d.ts +8 -5
  480. package/lib/tree/util.d.ts +21 -21
  481. package/lib/upload/index.d.ts +294 -286
  482. package/lib/upload/index.js +398 -316
  483. package/lib/upload/props.d.ts +11 -2
  484. package/lib/upload/upload-list.d.ts +11 -1
  485. package/lib/upload/upload-trigger.d.ts +11 -1
  486. package/lib/upload/upload.d.ts +25 -4
  487. package/lib/upload/upload.type.d.ts +12 -6
  488. package/lib/upload/upload.variable.css +1 -0
  489. package/lib/upload/use-file-handler.d.ts +1 -1
  490. package/lib/virtual-render/index.d.ts +247 -373
  491. package/lib/virtual-render/index.js +223 -162
  492. package/lib/virtual-render/props.d.ts +2 -9
  493. package/lib/virtual-render/use-fix-top.d.ts +1 -1
  494. package/lib/virtual-render/use-scrollbar.d.ts +4 -17
  495. package/lib/virtual-render/v-virtual-render.d.ts +7 -1
  496. package/lib/virtual-render/virtual-render.css +96 -70
  497. package/lib/virtual-render/virtual-render.d.ts +7 -23
  498. package/lib/virtual-render/virtual-render.less +2 -11
  499. package/lib/virtual-render/virtual-render.variable.css +96 -69
  500. package/lib/volar.components.d.ts +2 -0
  501. package/package.json +17 -55
  502. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
  503. package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
  504. package/lib/scrollbar/scrollbar-core/index.d.ts +0 -241
  505. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
  506. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
  507. package/lib/scrollbar/scrollbar.css +0 -75
  508. package/lib/scrollbar/scrollbar.less +0 -94
  509. package/lib/table/plugins/col-group.d.ts +0 -38
  510. package/lib/table/plugins/settings.d.ts +0 -16
  511. package/lib/table/plugins/use-active-columns.d.ts +0 -16
  512. package/lib/table/plugins/use-column-resize.d.ts +0 -35
  513. package/lib/table/plugins/use-column-template.d.ts +0 -7
  514. package/lib/table/plugins/use-fixed-column.d.ts +0 -27
  515. package/lib/table/plugins/use-head-cell.d.ts +0 -7
  516. package/lib/table/plugins/use-pagination.d.ts +0 -23
  517. package/lib/table/use-attributes.d.ts +0 -62
  518. package/lib/table/use-column.d.ts +0 -275
  519. package/lib/table/use-common.d.ts +0 -1679
  520. package/lib/table/use-render.d.ts +0 -11
  521. /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
  522. /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
  523. /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
@@ -2,9 +2,11 @@ import "../styles/reset.css";
2
2
  import "./popover.less";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
5
+ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
5
6
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
6
7
  import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
7
8
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__ from "lodash/isElement";
9
+ import * as __WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__ from "lodash/random";
8
10
  /******/ // The require scope
9
11
  /******/ var __webpack_require__ = {};
10
12
  /******/
@@ -39,137 +41,15 @@ __webpack_require__.d(__webpack_exports__, {
39
41
  ;// CONCATENATED MODULE: external "../shared"
40
42
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
41
43
  var y = x => () => x
42
- const shared_namespaceObject = x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PlacementEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.placementType, ["renderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderType, ["triggerType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.triggerType, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
44
+ const shared_namespaceObject = x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PlacementEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.placementType, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["renderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderType, ["triggerType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.triggerType, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
43
45
  ;// CONCATENATED MODULE: external "vue"
44
46
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
45
47
  var external_vue_y = x => () => x
46
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Text"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Text, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["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 });
47
- ;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
48
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
49
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
50
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
51
- /*
52
- * Tencent is pleased to support the open source community by making
53
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
54
- *
55
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
56
- *
57
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
58
- *
59
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
60
- *
61
- * ---------------------------------------------------
62
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
63
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
64
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
65
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66
- *
67
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
68
- * the Software.
69
- *
70
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
71
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
72
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
73
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
74
- * IN THE SOFTWARE.
75
- */
76
- var isElement = function isElement(e) {
77
- if (typeof Element === 'undefined') return false;
78
- return e instanceof Element;
79
- };
80
- var nodeList = new Map();
81
- var startClick;
82
- document.addEventListener('mousedown', function (e) {
83
- return startClick = e;
84
- });
85
- document.addEventListener('mouseup', function (e) {
86
- var _iterator = _createForOfIteratorHelper(nodeList.values()),
87
- _step;
88
- try {
89
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
90
- var handlers = _step.value;
91
- var _iterator2 = _createForOfIteratorHelper(handlers),
92
- _step2;
93
- try {
94
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
95
- var documentHandler = _step2.value.documentHandler;
96
- documentHandler(e, startClick);
97
- }
98
- } catch (err) {
99
- _iterator2.e(err);
100
- } finally {
101
- _iterator2.f();
102
- }
103
- }
104
- } catch (err) {
105
- _iterator.e(err);
106
- } finally {
107
- _iterator.f();
108
- }
109
- });
110
- function createDocumentHandler(el, binding) {
111
- var excludes = [];
112
- if (Array.isArray(binding.arg)) {
113
- excludes = binding.arg;
114
- } else if (isElement(binding.arg)) {
115
- excludes.push(binding.arg);
116
- }
117
- return function (mouseup, mousedown) {
118
- var popperRef = binding.instance.popperRef;
119
- var mouseUpTarget = mouseup.target;
120
- var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
121
- var isBound = !binding || !binding.instance;
122
- var isTargetExists = !mouseUpTarget || !mouseDownTarget;
123
- var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
124
- var isSelf = el === mouseUpTarget;
125
- var isTargetExcluded = excludes.length && excludes.some(function (item) {
126
- return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
127
- }) || excludes.length && excludes.includes(mouseDownTarget);
128
- var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
129
- if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
130
- return;
131
- }
132
- binding.value(mouseup, mousedown);
133
- };
134
- }
135
- var ClickOutside = {
136
- beforeMount: function beforeMount(el, binding) {
137
- if (!nodeList.has(el)) {
138
- nodeList.set(el, []);
139
- }
140
- nodeList.get(el).push({
141
- documentHandler: createDocumentHandler(el, binding),
142
- bindingFn: binding.value
143
- });
144
- },
145
- updated: function updated(el, binding) {
146
- if (!nodeList.has(el)) {
147
- nodeList.set(el, []);
148
- }
149
- var handlers = nodeList.get(el);
150
- var oldHandlerIndex = handlers.findIndex(function (item) {
151
- return item.bindingFn === binding.oldValue;
152
- });
153
- var newHandler = {
154
- documentHandler: createDocumentHandler(el, binding),
155
- bindingFn: binding.value
156
- };
157
- if (oldHandlerIndex >= 0) {
158
- // replace the old handler to the new handler
159
- handlers.splice(oldHandlerIndex, 1, newHandler);
160
- } else {
161
- handlers.push(newHandler);
162
- }
163
- },
164
- unmounted: function unmounted(el) {
165
- // remove all listeners when a component unmounted
166
- nodeList["delete"](el);
167
- }
168
- };
169
- ClickOutside.install = function (app) {
170
- app.directive('bkTooltips', ClickOutside);
171
- };
172
- /* harmony default export */ const clickoutside = (ClickOutside);
48
+ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
49
+ ;// CONCATENATED MODULE: external "../directives"
50
+ var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
51
+ var directives_y = x => () => x
52
+ const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside });
173
53
  ;// CONCATENATED MODULE: external "../config-provider"
174
54
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
175
55
  var config_provider_y = x => () => x
@@ -202,8 +82,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
202
82
  * IN THE SOFTWARE.
203
83
  */
204
84
 
205
-
206
- /* harmony default export */ const src_arrow = ((0,external_vue_namespaceObject.defineComponent)({
85
+ /* harmony default export */ const src_arrow = (defineComponent({
207
86
  name: 'PopArrow',
208
87
  render: function render() {
209
88
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
@@ -215,38 +94,38 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
215
94
  }
216
95
  }));
217
96
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
218
- function _typeof(o) {
97
+ function _typeof(obj) {
219
98
  "@babel/helpers - typeof";
220
99
 
221
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
222
- return typeof o;
223
- } : function (o) {
224
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
225
- }, _typeof(o);
100
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
101
+ return typeof obj;
102
+ } : function (obj) {
103
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
104
+ }, _typeof(obj);
226
105
  }
227
106
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
228
107
 
229
- function toPrimitive(t, r) {
230
- if ("object" != _typeof(t) || !t) return t;
231
- var e = t[Symbol.toPrimitive];
232
- if (void 0 !== e) {
233
- var i = e.call(t, r || "default");
234
- if ("object" != _typeof(i)) return i;
108
+ function _toPrimitive(input, hint) {
109
+ if (_typeof(input) !== "object" || input === null) return input;
110
+ var prim = input[Symbol.toPrimitive];
111
+ if (prim !== undefined) {
112
+ var res = prim.call(input, hint || "default");
113
+ if (_typeof(res) !== "object") return res;
235
114
  throw new TypeError("@@toPrimitive must return a primitive value.");
236
115
  }
237
- return ("string" === r ? String : Number)(t);
116
+ return (hint === "string" ? String : Number)(input);
238
117
  }
239
118
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
240
119
 
241
120
 
242
- function toPropertyKey(t) {
243
- var i = toPrimitive(t, "string");
244
- return "symbol" == _typeof(i) ? i : String(i);
121
+ function _toPropertyKey(arg) {
122
+ var key = _toPrimitive(arg, "string");
123
+ return _typeof(key) === "symbol" ? key : String(key);
245
124
  }
246
125
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
247
126
 
248
127
  function _defineProperty(obj, key, value) {
249
- key = toPropertyKey(key);
128
+ key = _toPropertyKey(key);
250
129
  if (key in obj) {
251
130
  Object.defineProperty(obj, key, {
252
131
  value: value,
@@ -261,6 +140,7 @@ function _defineProperty(obj, key, value) {
261
140
  }
262
141
  ;// CONCATENATED MODULE: ../../packages/popover/src/const.tsx
263
142
 
143
+ var _EMIT_EVENT_TYPES;
264
144
  /* eslint-disable @typescript-eslint/naming-convention */
265
145
  /*
266
146
  * Tencent is pleased to support the open source community by making
@@ -287,14 +167,13 @@ function _defineProperty(obj, key, value) {
287
167
  * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
288
168
  * IN THE SOFTWARE.
289
169
  */
290
- // eslint-disable-next-line @typescript-eslint/naming-convention
291
170
  var EMIT_EVENTS;
292
171
  (function (EMIT_EVENTS) {
293
172
  EMIT_EVENTS["CLICK_OUTSIDE"] = "clickoutside";
294
- EMIT_EVENTS["CONTENT_MOUSEENTER"] = "contentMouseenter";
295
- EMIT_EVENTS["CONTENT_MOUSELEAVE"] = "contentMouseleave";
296
173
  EMIT_EVENTS["CONTENT_AfterHidden"] = "afterHidden";
297
174
  EMIT_EVENTS["CONTENT_AfterShow"] = "afterShow";
175
+ EMIT_EVENTS["CONTENT_MOUSEENTER"] = "contentMouseenter";
176
+ EMIT_EVENTS["CONTENT_MOUSELEAVE"] = "contentMouseleave";
298
177
  })(EMIT_EVENTS || (EMIT_EVENTS = {}));
299
178
  var EVENT_SHOW_HIDE_FN = function EVENT_SHOW_HIDE_FN(_args) {
300
179
  return true;
@@ -305,7 +184,7 @@ var EVENT_COMMON_FN = function EVENT_COMMON_FN(e) {
305
184
  var EVENT_CLICK_OUTSIDE_FN = function EVENT_CLICK_OUTSIDE_FN(_args) {
306
185
  return true;
307
186
  };
308
- var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, EMIT_EVENTS.CLICK_OUTSIDE, EVENT_CLICK_OUTSIDE_FN), EMIT_EVENTS.CONTENT_MOUSEENTER, EVENT_COMMON_FN), EMIT_EVENTS.CONTENT_MOUSELEAVE, EVENT_COMMON_FN), EMIT_EVENTS.CONTENT_AfterHidden, EVENT_SHOW_HIDE_FN), EMIT_EVENTS.CONTENT_AfterShow, EVENT_SHOW_HIDE_FN);
187
+ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CLICK_OUTSIDE, EVENT_CLICK_OUTSIDE_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_MOUSEENTER, EVENT_COMMON_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_MOUSELEAVE, EVENT_COMMON_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_AfterHidden, EVENT_SHOW_HIDE_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_AfterShow, EVENT_SHOW_HIDE_FN), _EMIT_EVENT_TYPES);
309
188
  ;// CONCATENATED MODULE: ../../packages/popover/src/content.tsx
310
189
 
311
190
  /*
@@ -335,8 +214,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
335
214
  */
336
215
 
337
216
 
338
-
339
- /* harmony default export */ const content = ((0,external_vue_namespaceObject.defineComponent)({
217
+ /* harmony default export */ const content = (defineComponent({
340
218
  name: 'PopContent',
341
219
  props: {
342
220
  width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
@@ -347,14 +225,16 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
347
225
  visible: shared_namespaceObject.PropTypes.bool.def(false),
348
226
  eventDelay: shared_namespaceObject.PropTypes.number.def(0)
349
227
  },
350
- setup: function setup(props) {
228
+ emits: ['click'],
229
+ setup: function setup(props, _ref) {
230
+ var emit = _ref.emit;
351
231
  var resolveValToPix = function resolveValToPix(val) {
352
232
  if (/^\d+\.?\d*$/.test("".concat(val))) {
353
233
  return "".concat(val, "px");
354
234
  }
355
235
  return val;
356
236
  };
357
- var style = (0,external_vue_namespaceObject.computed)(function () {
237
+ var style = computed(function () {
358
238
  return {
359
239
  width: resolveValToPix(props.width),
360
240
  height: resolveValToPix(props.height),
@@ -362,8 +242,12 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
362
242
  maxWidth: resolveValToPix(props.maxWidth)
363
243
  };
364
244
  });
365
- var refContent = (0,external_vue_namespaceObject.ref)(null);
366
- var refTimer = (0,external_vue_namespaceObject.ref)(null);
245
+ var refContent = ref(null);
246
+ var refTimer = ref(null);
247
+ var handleClick = function handleClick(evt) {
248
+ evt.stopPropagation();
249
+ emit('click', evt);
250
+ };
367
251
  var resetPointerEvent = function resetPointerEvent() {
368
252
  var _props$eventDelay;
369
253
  if (props.eventDelay === 0) {
@@ -379,17 +263,18 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
379
263
  if (props.eventDelay === 0) {
380
264
  return;
381
265
  }
382
- (_refContent$value = refContent.value) === null || _refContent$value === void 0 || _refContent$value.style.setProperty('pointer-events', val);
266
+ (_refContent$value = refContent.value) === null || _refContent$value === void 0 ? void 0 : _refContent$value.style.setProperty('pointer-events', val);
383
267
  };
384
268
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
385
269
  resolveClassName = _usePrefix.resolveClassName;
386
- var contentClassName = (0,external_vue_namespaceObject.computed)(function () {
270
+ var contentClassName = computed(function () {
387
271
  return [resolveClassName('popover'), resolveClassName('pop2-content'), props.visible ? 'visible' : 'hidden', props.extCls];
388
272
  });
389
273
  return {
390
274
  style: style,
391
275
  refContent: refContent,
392
276
  contentClassName: contentClassName,
277
+ handleClick: handleClick,
393
278
  resetPointerEvent: resetPointerEvent,
394
279
  setContentPointerEvent: setContentPointerEvent
395
280
  };
@@ -406,8 +291,8 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
406
291
  _this$$slots3;
407
292
  var resolveContentStyle = function resolveContentStyle(slot) {
408
293
  var _slot$;
409
- if (external_vue_namespaceObject.Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
410
- (0,external_vue_namespaceObject.nextTick)(function () {
294
+ if (Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
295
+ nextTick(function () {
411
296
  _this.setContentPointerEvent('none');
412
297
  _this.resetPointerEvent();
413
298
  });
@@ -416,9 +301,10 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
416
301
  };
417
302
  var style = resolveContentStyle((_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots));
418
303
  return (0,external_vue_namespaceObject.createVNode)("div", {
419
- "class": this.contentClassName,
304
+ "ref": "refContent",
420
305
  "style": style,
421
- "ref": "refContent"
306
+ "class": this.contentClassName,
307
+ "onClick": this.handleClick
422
308
  }, [(_this$$slots$arrow = (_this$$slots$arrow2 = (_this$$slots2 = this.$slots).arrow) === null || _this$$slots$arrow2 === void 0 ? void 0 : _this$$slots$arrow2.call(_this$$slots2)) !== null && _this$$slots$arrow !== void 0 ? _this$$slots$arrow : '', (_this$$slots$default2 = (_this$$slots$default3 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default3 === void 0 ? void 0 : _this$$slots$default3.call(_this$$slots3)) !== null && _this$$slots$default2 !== void 0 ? _this$$slots$default2 : '']);
423
309
  }
424
310
  }));
@@ -437,11 +323,13 @@ var PopoverProps = {
437
323
  isShow: shared_namespaceObject.PropTypes.bool.def(false),
438
324
  always: shared_namespaceObject.PropTypes.bool.def(false),
439
325
  disabled: shared_namespaceObject.PropTypes.bool.def(false),
326
+ clickContentAutoHide: shared_namespaceObject.PropTypes.bool.def(false),
440
327
  width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
441
328
  height: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
442
329
  maxWidth: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
443
330
  maxHeight: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
444
331
  content: (0,external_vue_types_namespaceObject.toType)('IContent', {}).def(''),
332
+ renderDirective: (0,shared_namespaceObject.renderDirectiveType)().def('if'),
445
333
  target: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.instanceOf(HTMLElement), shared_namespaceObject.PropTypes.instanceOf(PointerEvent)]),
446
334
  allowHtml: shared_namespaceObject.PropTypes.bool.def(false),
447
335
  /**
@@ -456,7 +344,6 @@ var PopoverProps = {
456
344
  * 支持 click hover manual
457
345
  * manual: 通过isShow控制显示、隐藏
458
346
  */
459
- // trigger: triggerType(),
460
347
  trigger: (0,shared_namespaceObject.triggerType)(),
461
348
  /**
462
349
  * content 渲染方式
@@ -509,6 +396,14 @@ var PopoverProps = {
509
396
  * 配置自定义样式类名,传入的类会被加在组件最外层的 DOM
510
397
  */
511
398
  extCls: shared_namespaceObject.PropTypes.string.def(''),
399
+ /**
400
+ * 配置自定义样式类名,传入的类会被加在 Reference 外部的 div 上
401
+ */
402
+ referenceCls: shared_namespaceObject.PropTypes.string.def(''),
403
+ /**
404
+ * 点击 Reference 占位区是否忽略收起 popover
405
+ */
406
+ hideIgnoreReference: shared_namespaceObject.PropTypes.bool.def(false),
512
407
  /**
513
408
  * 自定义Content组件渲染,point-event延迟渲染时间
514
409
  * 避免子组件point-event渲染时触发popover鼠标事件
@@ -582,8 +477,7 @@ var PopoverProps = {
582
477
  * IN THE SOFTWARE.
583
478
  */
584
479
 
585
-
586
- /* harmony default export */ const root = ((0,external_vue_namespaceObject.defineComponent)({
480
+ /* harmony default export */ const root = (defineComponent({
587
481
  props: {
588
482
  "class": shared_namespaceObject.PropTypes.string.def(''),
589
483
  mode: shared_namespaceObject.PropTypes.string.def('')
@@ -598,48 +492,48 @@ function _arrayWithHoles(arr) {
598
492
  if (Array.isArray(arr)) return arr;
599
493
  }
600
494
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
601
- function _iterableToArrayLimit(r, l) {
602
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
603
- if (null != t) {
604
- var e,
605
- n,
606
- i,
607
- u,
608
- a = [],
609
- f = !0,
610
- o = !1;
495
+ function _iterableToArrayLimit(arr, i) {
496
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
497
+ if (null != _i) {
498
+ var _s,
499
+ _e,
500
+ _x,
501
+ _r,
502
+ _arr = [],
503
+ _n = !0,
504
+ _d = !1;
611
505
  try {
612
- if (i = (t = t.call(r)).next, 0 === l) {
613
- if (Object(t) !== t) return;
614
- f = !1;
615
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
616
- } catch (r) {
617
- o = !0, n = r;
506
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
507
+ if (Object(_i) !== _i) return;
508
+ _n = !1;
509
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
510
+ } catch (err) {
511
+ _d = !0, _e = err;
618
512
  } finally {
619
513
  try {
620
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
514
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
621
515
  } finally {
622
- if (o) throw n;
516
+ if (_d) throw _e;
623
517
  }
624
518
  }
625
- return a;
519
+ return _arr;
626
520
  }
627
521
  }
628
522
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
629
- function arrayLikeToArray_arrayLikeToArray(arr, len) {
523
+ function _arrayLikeToArray(arr, len) {
630
524
  if (len == null || len > arr.length) len = arr.length;
631
525
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
632
526
  return arr2;
633
527
  }
634
528
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
635
529
 
636
- function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
530
+ function _unsupportedIterableToArray(o, minLen) {
637
531
  if (!o) return;
638
- if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
532
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
639
533
  var n = Object.prototype.toString.call(o).slice(8, -1);
640
534
  if (n === "Object" && o.constructor) n = o.constructor.name;
641
535
  if (n === "Map" || n === "Set") return Array.from(o);
642
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
536
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
643
537
  }
644
538
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
645
539
  function _nonIterableRest() {
@@ -651,18 +545,9 @@ function _nonIterableRest() {
651
545
 
652
546
 
653
547
  function _slicedToArray(arr, i) {
654
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || _nonIterableRest();
548
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
655
549
  }
656
- ;// CONCATENATED MODULE: external "lodash/isElement"
657
- var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
658
- var isElement_y = x => () => x
659
- const isElement_namespaceObject = isElement_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"] });
660
550
  ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
661
- /**
662
- * Custom positioning reference element.
663
- * @see https://floating-ui.com/docs/virtual-elements
664
- */
665
-
666
551
  const sides = ['top', 'right', 'bottom', 'left'];
667
552
  const alignments = ['start', 'end'];
668
553
  const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
@@ -850,7 +735,7 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
850
735
 
851
736
  /**
852
737
  * Computes the `x` and `y` coordinates that will place the floating element
853
- * next to a given reference element.
738
+ * next to a reference element when it is given a certain positioning strategy.
854
739
  *
855
740
  * This export does not have any `platform` interface logic. You will need to
856
741
  * write one for the platform you are using Floating UI with.
@@ -928,6 +813,7 @@ const computePosition = async (reference, floating, config) => {
928
813
  } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
929
814
  }
930
815
  i = -1;
816
+ continue;
931
817
  }
932
818
  }
933
819
  return {
@@ -990,7 +876,6 @@ async function detectOverflow(state, options) {
990
876
  y: 1
991
877
  };
992
878
  const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
993
- elements,
994
879
  rect,
995
880
  offsetParent,
996
881
  strategy
@@ -1018,8 +903,7 @@ const arrow = options => ({
1018
903
  placement,
1019
904
  rects,
1020
905
  platform,
1021
- elements,
1022
- middlewareData
906
+ elements
1023
907
  } = state;
1024
908
  // Since `element` is required, we don't Partial<> the type.
1025
909
  const {
@@ -1067,20 +951,16 @@ const arrow = options => ({
1067
951
 
1068
952
  // If the reference is small enough that the arrow's padding causes it to
1069
953
  // to point to nothing for an aligned placement, adjust the offset of the
1070
- // floating element itself. To ensure `shift()` continues to take action,
1071
- // a single reset is performed when this is true.
1072
- const shouldAddOffset = !middlewareData.arrow && floating_ui_utils_getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
1073
- const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
954
+ // floating element itself. This stops `shift()` from taking action, but can
955
+ // be worked around by calling it again after the `arrow()` if desired.
956
+ const shouldAddOffset = floating_ui_utils_getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
957
+ const alignmentOffset = shouldAddOffset ? center < min$1 ? min$1 - center : max - center : 0;
1074
958
  return {
1075
- [axis]: coords[axis] + alignmentOffset,
959
+ [axis]: coords[axis] - alignmentOffset,
1076
960
  data: {
1077
961
  [axis]: offset,
1078
- centerOffset: center - offset - alignmentOffset,
1079
- ...(shouldAddOffset && {
1080
- alignmentOffset
1081
- })
1082
- },
1083
- reset: shouldAddOffset
962
+ centerOffset: center - offset + alignmentOffset
963
+ }
1084
964
  };
1085
965
  }
1086
966
  });
@@ -1202,7 +1082,7 @@ const flip = function (options) {
1202
1082
  name: 'flip',
1203
1083
  options,
1204
1084
  async fn(state) {
1205
- var _middlewareData$arrow, _middlewareData$flip;
1085
+ var _middlewareData$flip;
1206
1086
  const {
1207
1087
  placement,
1208
1088
  middlewareData,
@@ -1220,14 +1100,6 @@ const flip = function (options) {
1220
1100
  flipAlignment = true,
1221
1101
  ...detectOverflowOptions
1222
1102
  } = floating_ui_utils_evaluate(options, state);
1223
-
1224
- // If a reset by the arrow was caused due to an alignment offset being
1225
- // added, we should skip any logic now since `flip()` has already done its
1226
- // work.
1227
- // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
1228
- if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
1229
- return {};
1230
- }
1231
1103
  const side = floating_ui_utils_getSide(placement);
1232
1104
  const isBasePlacement = floating_ui_utils_getSide(initialPlacement) === initialPlacement;
1233
1105
  const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
@@ -1505,7 +1377,6 @@ const inline = function (options) {
1505
1377
 
1506
1378
  // For type backwards-compatibility, the `OffsetOptions` type was also
1507
1379
  // Derivable.
1508
-
1509
1380
  async function convertValueToCoords(state, options) {
1510
1381
  const {
1511
1382
  placement,
@@ -1519,6 +1390,8 @@ async function convertValueToCoords(state, options) {
1519
1390
  const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
1520
1391
  const crossAxisMulti = rtl && isVertical ? -1 : 1;
1521
1392
  const rawValue = floating_ui_utils_evaluate(options, state);
1393
+
1394
+ // eslint-disable-next-line prefer-const
1522
1395
  let {
1523
1396
  mainAxis,
1524
1397
  crossAxis,
@@ -1560,27 +1433,15 @@ const offset = function (options) {
1560
1433
  name: 'offset',
1561
1434
  options,
1562
1435
  async fn(state) {
1563
- var _middlewareData$offse, _middlewareData$arrow;
1564
1436
  const {
1565
1437
  x,
1566
- y,
1567
- placement,
1568
- middlewareData
1438
+ y
1569
1439
  } = state;
1570
1440
  const diffCoords = await convertValueToCoords(state, options);
1571
-
1572
- // If the placement is the same and the arrow caused an alignment offset
1573
- // then we don't need to change the positioning coordinates.
1574
- if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
1575
- return {};
1576
- }
1577
1441
  return {
1578
1442
  x: x + diffCoords.x,
1579
1443
  y: y + diffCoords.y,
1580
- data: {
1581
- ...diffCoords,
1582
- placement
1583
- }
1444
+ data: diffCoords
1584
1445
  };
1585
1446
  }
1586
1447
  };
@@ -1812,7 +1673,7 @@ const size = function (options) {
1812
1673
 
1813
1674
 
1814
1675
 
1815
- ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
1676
+ ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs
1816
1677
  function getNodeName(node) {
1817
1678
  if (isNode(node)) {
1818
1679
  return (node.nodeName || '').toLowerCase();
@@ -1824,7 +1685,7 @@ function getNodeName(node) {
1824
1685
  }
1825
1686
  function getWindow(node) {
1826
1687
  var _node$ownerDocument;
1827
- return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
1688
+ return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
1828
1689
  }
1829
1690
  function getDocumentElement(node) {
1830
1691
  var _ref;
@@ -1833,7 +1694,7 @@ function getDocumentElement(node) {
1833
1694
  function isNode(value) {
1834
1695
  return value instanceof Node || value instanceof getWindow(value).Node;
1835
1696
  }
1836
- function floating_ui_utils_dom_isElement(value) {
1697
+ function isElement(value) {
1837
1698
  return value instanceof Element || value instanceof getWindow(value).Element;
1838
1699
  }
1839
1700
  function isHTMLElement(value) {
@@ -1865,17 +1726,6 @@ function isContainingBlock(element) {
1865
1726
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1866
1727
  return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
1867
1728
  }
1868
- function getContainingBlock(element) {
1869
- let currentNode = getParentNode(element);
1870
- while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
1871
- if (isContainingBlock(currentNode)) {
1872
- return currentNode;
1873
- } else {
1874
- currentNode = getParentNode(currentNode);
1875
- }
1876
- }
1877
- return null;
1878
- }
1879
1729
  function isWebKit() {
1880
1730
  if (typeof CSS === 'undefined' || !CSS.supports) return false;
1881
1731
  return CSS.supports('-webkit-backdrop-filter', 'none');
@@ -1887,7 +1737,7 @@ function getComputedStyle(element) {
1887
1737
  return getWindow(element).getComputedStyle(element);
1888
1738
  }
1889
1739
  function getNodeScroll(element) {
1890
- if (floating_ui_utils_dom_isElement(element)) {
1740
+ if (isElement(element)) {
1891
1741
  return {
1892
1742
  scrollLeft: element.scrollLeft,
1893
1743
  scrollTop: element.scrollTop
@@ -1923,21 +1773,18 @@ function getNearestOverflowAncestor(node) {
1923
1773
  }
1924
1774
  return getNearestOverflowAncestor(parentNode);
1925
1775
  }
1926
- function getOverflowAncestors(node, list, traverseIframes) {
1776
+ function getOverflowAncestors(node, list) {
1927
1777
  var _node$ownerDocument2;
1928
1778
  if (list === void 0) {
1929
1779
  list = [];
1930
1780
  }
1931
- if (traverseIframes === void 0) {
1932
- traverseIframes = true;
1933
- }
1934
1781
  const scrollableAncestor = getNearestOverflowAncestor(node);
1935
1782
  const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
1936
1783
  const win = getWindow(scrollableAncestor);
1937
1784
  if (isBody) {
1938
- return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
1785
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
1939
1786
  }
1940
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
1787
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
1941
1788
  }
1942
1789
 
1943
1790
 
@@ -1971,7 +1818,7 @@ function getCssDimensions(element) {
1971
1818
  }
1972
1819
 
1973
1820
  function unwrapElement(element) {
1974
- return !floating_ui_utils_dom_isElement(element) ? element.contextElement : element;
1821
+ return !isElement(element) ? element.contextElement : element;
1975
1822
  }
1976
1823
 
1977
1824
  function getScale(element) {
@@ -2035,7 +1882,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
2035
1882
  let scale = createCoords(1);
2036
1883
  if (includeScale) {
2037
1884
  if (offsetParent) {
2038
- if (floating_ui_utils_dom_isElement(offsetParent)) {
1885
+ if (isElement(offsetParent)) {
2039
1886
  scale = getScale(offsetParent);
2040
1887
  }
2041
1888
  } else {
@@ -2049,7 +1896,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
2049
1896
  let height = clientRect.height / scale.y;
2050
1897
  if (domElement) {
2051
1898
  const win = getWindow(domElement);
2052
- const offsetWin = offsetParent && floating_ui_utils_dom_isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
1899
+ const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
2053
1900
  let currentIFrame = win.frameElement;
2054
1901
  while (currentIFrame && offsetParent && offsetWin !== win) {
2055
1902
  const iframeScale = getScale(currentIFrame);
@@ -2189,7 +2036,7 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
2189
2036
  rect = getViewportRect(element, strategy);
2190
2037
  } else if (clippingAncestor === 'document') {
2191
2038
  rect = getDocumentRect(getDocumentElement(element));
2192
- } else if (floating_ui_utils_dom_isElement(clippingAncestor)) {
2039
+ } else if (isElement(clippingAncestor)) {
2193
2040
  rect = getInnerBoundingClientRect(clippingAncestor, strategy);
2194
2041
  } else {
2195
2042
  const visualOffsets = getVisualOffsets(element);
@@ -2203,7 +2050,7 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
2203
2050
  }
2204
2051
  function hasFixedPositionAncestor(element, stopNode) {
2205
2052
  const parentNode = getParentNode(element);
2206
- if (parentNode === stopNode || !floating_ui_utils_dom_isElement(parentNode) || isLastTraversableNode(parentNode)) {
2053
+ if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
2207
2054
  return false;
2208
2055
  }
2209
2056
  return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
@@ -2217,13 +2064,13 @@ function getClippingElementAncestors(element, cache) {
2217
2064
  if (cachedResult) {
2218
2065
  return cachedResult;
2219
2066
  }
2220
- let result = getOverflowAncestors(element, [], false).filter(el => floating_ui_utils_dom_isElement(el) && getNodeName(el) !== 'body');
2067
+ let result = getOverflowAncestors(element).filter(el => isElement(el) && getNodeName(el) !== 'body');
2221
2068
  let currentContainingBlockComputedStyle = null;
2222
2069
  const elementIsFixed = getComputedStyle(element).position === 'fixed';
2223
2070
  let currentNode = elementIsFixed ? getParentNode(element) : element;
2224
2071
 
2225
2072
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
2226
- while (floating_ui_utils_dom_isElement(currentNode) && !isLastTraversableNode(currentNode)) {
2073
+ while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
2227
2074
  const computedStyle = getComputedStyle(currentNode);
2228
2075
  const currentNodeIsContaining = isContainingBlock(currentNode);
2229
2076
  if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
@@ -2272,14 +2119,7 @@ function getClippingRect(_ref) {
2272
2119
  }
2273
2120
 
2274
2121
  function getDimensions(element) {
2275
- const {
2276
- width,
2277
- height
2278
- } = getCssDimensions(element);
2279
- return {
2280
- width,
2281
- height
2282
- };
2122
+ return getCssDimensions(element);
2283
2123
  }
2284
2124
 
2285
2125
  function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
@@ -2321,6 +2161,17 @@ function getTrueOffsetParent(element, polyfill) {
2321
2161
  }
2322
2162
  return element.offsetParent;
2323
2163
  }
2164
+ function getContainingBlock(element) {
2165
+ let currentNode = getParentNode(element);
2166
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
2167
+ if (isContainingBlock(currentNode)) {
2168
+ return currentNode;
2169
+ } else {
2170
+ currentNode = getParentNode(currentNode);
2171
+ }
2172
+ }
2173
+ return null;
2174
+ }
2324
2175
 
2325
2176
  // Gets the closest ancestor positioned element. Handles some edge cases,
2326
2177
  // such as table ancestors and cross browser bugs.
@@ -2370,7 +2221,7 @@ const platform = {
2370
2221
  getClientRects,
2371
2222
  getDimensions,
2372
2223
  getScale,
2373
- isElement: floating_ui_utils_dom_isElement,
2224
+ isElement: isElement,
2374
2225
  isRTL
2375
2226
  };
2376
2227
 
@@ -2525,66 +2376,10 @@ function autoUpdate(reference, floating, update, options) {
2525
2376
  };
2526
2377
  }
2527
2378
 
2528
- /**
2529
- * Optimizes the visibility of the floating element by choosing the placement
2530
- * that has the most space available automatically, without needing to specify a
2531
- * preferred placement. Alternative to `flip`.
2532
- * @see https://floating-ui.com/docs/autoPlacement
2533
- */
2534
- const floating_ui_dom_autoPlacement = autoPlacement;
2535
-
2536
- /**
2537
- * Optimizes the visibility of the floating element by shifting it in order to
2538
- * keep it in view when it will overflow the clipping boundary.
2539
- * @see https://floating-ui.com/docs/shift
2540
- */
2541
- const floating_ui_dom_shift = shift;
2542
-
2543
- /**
2544
- * Optimizes the visibility of the floating element by flipping the `placement`
2545
- * in order to keep it in view when the preferred placement(s) will overflow the
2546
- * clipping boundary. Alternative to `autoPlacement`.
2547
- * @see https://floating-ui.com/docs/flip
2548
- */
2549
- const floating_ui_dom_flip = flip;
2550
-
2551
- /**
2552
- * Provides data that allows you to change the size of the floating element —
2553
- * for instance, prevent it from overflowing the clipping boundary or match the
2554
- * width of the reference element.
2555
- * @see https://floating-ui.com/docs/size
2556
- */
2557
- const floating_ui_dom_size = (/* unused pure expression or super */ null && (size$1));
2558
-
2559
- /**
2560
- * Provides data to hide the floating element in applicable situations, such as
2561
- * when it is not in the same clipping context as the reference element.
2562
- * @see https://floating-ui.com/docs/hide
2563
- */
2564
- const floating_ui_dom_hide = hide;
2565
-
2566
- /**
2567
- * Provides data to position an inner element of the floating element so that it
2568
- * appears centered to the reference element.
2569
- * @see https://floating-ui.com/docs/arrow
2570
- */
2571
- const floating_ui_dom_arrow = arrow;
2572
-
2573
- /**
2574
- * Provides improved positioning for inline reference elements that can span
2575
- * over multiple lines, such as hyperlinks or range selections.
2576
- * @see https://floating-ui.com/docs/inline
2577
- */
2578
- const floating_ui_dom_inline = inline;
2579
-
2580
- /**
2581
- * Built-in `limiter` that will stop `shift()` at a certain point.
2582
- */
2583
- const floating_ui_dom_limitShift = (/* unused pure expression or super */ null && (limitShift$1));
2584
-
2585
2379
  /**
2586
2380
  * Computes the `x` and `y` coordinates that will place the floating element
2587
- * next to a given reference element.
2381
+ * next to a reference element when it is given a certain CSS positioning
2382
+ * strategy.
2588
2383
  */
2589
2384
  const floating_ui_dom_computePosition = (reference, floating, options) => {
2590
2385
  // This caches the expensive `getClippingElementAncestors` function so that
@@ -2607,6 +2402,14 @@ const floating_ui_dom_computePosition = (reference, floating, options) => {
2607
2402
 
2608
2403
 
2609
2404
 
2405
+ ;// CONCATENATED MODULE: external "lodash/isElement"
2406
+ var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2407
+ var isElement_y = x => () => x
2408
+ const isElement_namespaceObject = isElement_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"] });
2409
+ ;// CONCATENATED MODULE: external "lodash/random"
2410
+ var random_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2411
+ var random_y = x => () => x
2412
+ const random_namespaceObject = random_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__["default"] });
2610
2413
  ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
2611
2414
  const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
2612
2415
  /* harmony default export */ const esm_browser_native = ({
@@ -2722,7 +2525,10 @@ function v4(options, buf, offset) {
2722
2525
  * IN THE SOFTWARE.
2723
2526
  */
2724
2527
 
2528
+
2725
2529
  var CachedConst = {};
2530
+ // 全局的占位区点击记录
2531
+ var ReferenceClickSharedState = {};
2726
2532
  var isAvailableId = function isAvailableId(query) {
2727
2533
  var container = document.querySelector(query);
2728
2534
  return container instanceof HTMLElement;
@@ -2759,6 +2565,9 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
2759
2565
  vNode: content
2760
2566
  };
2761
2567
  };
2568
+ var random = function random() {
2569
+ return "".concat((0,random_namespaceObject["default"])(0, 999999), "_").concat(Date.now(), "_").concat((0,random_namespaceObject["default"])(0, 999999));
2570
+ };
2762
2571
  ;// CONCATENATED MODULE: ../../packages/popover/src/use-floating.tsx
2763
2572
 
2764
2573
 
@@ -2916,7 +2725,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2916
2725
  };
2917
2726
  var resolvePopOptions = function resolvePopOptions(elArrow, props) {
2918
2727
  var modifiers = resolveModifiers();
2919
- var middleware = [offset(modifiers.offset || props.offset), floating_ui_dom_shift({
2728
+ var middleware = [offset(modifiers.offset || props.offset), shift({
2920
2729
  padding: props.padding
2921
2730
  })];
2922
2731
  var options = {
@@ -2924,17 +2733,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2924
2733
  middleware: middleware
2925
2734
  };
2926
2735
  if (props.arrow) {
2927
- middleware.push(floating_ui_dom_arrow({
2736
+ middleware.push(arrow({
2928
2737
  element: elArrow
2929
2738
  }));
2930
2739
  }
2931
2740
  if (isAutoPlacementAvailable()) {
2932
- middleware.push(floating_ui_dom_autoPlacement());
2741
+ middleware.push(autoPlacement());
2933
2742
  }
2934
- middleware.unshift(floating_ui_dom_inline());
2935
- middleware.push(floating_ui_dom_flip());
2743
+ middleware.unshift(inline());
2744
+ middleware.push(flip());
2936
2745
  if (isHideMiddlewareAvailable()) {
2937
- options.middleware.push(floating_ui_dom_hide());
2746
+ options.middleware.push(hide());
2938
2747
  }
2939
2748
  /**
2940
2749
  * 如果是全屏元素或者指定的虚拟元素
@@ -3102,6 +2911,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
3102
2911
  var delay = resolvePopoverDelay()[1];
3103
2912
  popHideTimerId = setTimeout(function () {
3104
2913
  popShowTimerId && clearTimeout(popShowTimerId);
2914
+ isMouseenter = false;
3105
2915
  localIsShow.value = false;
3106
2916
  }, delay);
3107
2917
  };
@@ -3130,26 +2940,29 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
3130
2940
  hidePopover();
3131
2941
  }
3132
2942
  };
3133
- var handleClickRef = function handleClickRef() {
3134
- triggerPopover();
3135
- };
3136
2943
  var handlePopContentMouseEnter = function handlePopContentMouseEnter(e) {
3137
- if (props.trigger !== 'hover') {
2944
+ if ('hover' !== props.trigger) {
3138
2945
  return;
3139
2946
  }
3140
- if (popHideTimerId) {
2947
+ if (!isMouseenter) {
3141
2948
  isMouseenter = true;
2949
+ }
2950
+ // 设置setTimeout的延时为delay, 避免出现同时触发mouseenter mouseleave事件
2951
+ var delay = resolvePopoverDelay()[1];
2952
+ if (popHideTimerId) {
3142
2953
  clearTimeout(popHideTimerId);
3143
- popHideTimerId = undefined;
2954
+ setTimeout(function () {
2955
+ popHideTimerId = undefined;
2956
+ }, delay);
3144
2957
  }
3145
2958
  emitPopContentMouseEnter(e);
3146
2959
  };
3147
2960
  var handlePopContentMouseLeave = function handlePopContentMouseLeave(e) {
3148
- if (isMouseenter) {
2961
+ // 处理底部触发mouseleave事件,popShowTimerId有值代表处于hover状态
2962
+ if (popShowTimerId && !popHideTimerId) {
3149
2963
  hidePopover();
3150
- isMouseenter = false;
3151
- emitPopContentMouseLeave(e);
3152
2964
  }
2965
+ emitPopContentMouseLeave(e);
3153
2966
  };
3154
2967
  /**
3155
2968
  * 弹出内容鼠标移入事件
@@ -3168,15 +2981,15 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
3168
2981
  var resolveTriggerEvents = function resolveTriggerEvents() {
3169
2982
  var _triggerEvents$props$;
3170
2983
  var triggerEvents = {
3171
- hover: {
2984
+ hover: [{
3172
2985
  content: [['mouseenter', handlePopContentMouseEnter], ['mouseleave', handlePopContentMouseLeave]],
3173
2986
  reference: [['mouseenter', showPopover], ['mouseleave', hidePopover], ['focus', showPopover], ['blur', hidePopover]]
3174
- },
3175
- click: [['click', handleClickRef]],
3176
- manual: {
2987
+ }],
2988
+ click: [[['click', showPopover]]],
2989
+ manual: [{
3177
2990
  content: [['mouseenter', emitPopContentMouseEnter], ['mouseleave', emitPopContentMouseLeave]],
3178
2991
  reference: [[]]
3179
- }
2992
+ }]
3180
2993
  };
3181
2994
  return (_triggerEvents$props$ = triggerEvents[props.trigger]) !== null && _triggerEvents$props$ !== void 0 ? _triggerEvents$props$ : [];
3182
2995
  };
@@ -3347,6 +3160,7 @@ var parentNodeReferId = null;
3347
3160
  refArrow = _ref.refArrow,
3348
3161
  refRoot = _ref.refRoot;
3349
3162
  var storeEvents = null;
3163
+ var uniqKey = random();
3350
3164
  var isFullscreen = (0,external_vue_namespaceObject.ref)(false);
3351
3165
  var fullscreenReferId = getFullscreenUid();
3352
3166
  var fullScreenTarget = (0,external_vue_namespaceObject.ref)();
@@ -3369,7 +3183,7 @@ var parentNodeReferId = null;
3369
3183
  getFullscreenRoot = _useFloating.getFullscreenRoot,
3370
3184
  stopHide = _useFloating.stopHide;
3371
3185
  var resetPopover = function resetPopover() {
3372
- cleanup === null || cleanup === void 0 || cleanup();
3186
+ cleanup === null || cleanup === void 0 ? void 0 : cleanup();
3373
3187
  createPopInstance();
3374
3188
  };
3375
3189
  var showFn = function showFn() {
@@ -3391,15 +3205,16 @@ var parentNodeReferId = null;
3391
3205
  elReference = _resolvePopElements.elReference,
3392
3206
  elContent = _resolvePopElements.elContent;
3393
3207
  storeEvents = resolveTriggerEvents();
3394
- if (Array.isArray(storeEvents)) {
3395
- addEventToTargetEl(elReference, storeEvents);
3396
- } else {
3397
- var _storeEvents = storeEvents,
3398
- content = _storeEvents.content,
3399
- reference = _storeEvents.reference;
3400
- addEventToTargetEl(elReference, reference);
3401
- addEventToTargetEl(elContent, content);
3402
- }
3208
+ storeEvents.forEach(function (storeEvent) {
3209
+ if (Array.isArray(storeEvent)) {
3210
+ addEventToTargetEl(elReference, storeEvent);
3211
+ } else {
3212
+ var content = storeEvent.content,
3213
+ reference = storeEvent.reference;
3214
+ addEventToTargetEl(elReference, reference);
3215
+ addEventToTargetEl(elContent, content);
3216
+ }
3217
+ });
3403
3218
  };
3404
3219
  var addEventToTargetEl = function addEventToTargetEl(target, evets) {
3405
3220
  evets.forEach(function (_ref2) {
@@ -3412,17 +3227,43 @@ var parentNodeReferId = null;
3412
3227
  });
3413
3228
  };
3414
3229
  var removeEventListener = function removeEventListener() {
3415
- var _storeEvents2;
3416
- if ((_storeEvents2 = storeEvents) !== null && _storeEvents2 !== void 0 && _storeEvents2.length) {
3230
+ var _storeEvents;
3231
+ if ((_storeEvents = storeEvents) !== null && _storeEvents !== void 0 && _storeEvents.length) {
3417
3232
  var _resolvePopElements2 = resolvePopElements(),
3418
- elReference = _resolvePopElements2.elReference;
3233
+ elReference = _resolvePopElements2.elReference,
3234
+ elContent = _resolvePopElements2.elContent;
3419
3235
  if (elReference) {
3420
- storeEvents.forEach(function (_ref4) {
3421
- var _ref5 = _slicedToArray(_ref4, 2),
3422
- event = _ref5[0],
3423
- listener = _ref5[1];
3424
- if (event && typeof listener === 'function') {
3425
- elReference.removeEventListener(event, listener);
3236
+ storeEvents.forEach(function (storeEvent) {
3237
+ if (Array.isArray(storeEvent)) {
3238
+ storeEvent.forEach(function (_ref4) {
3239
+ var _ref5 = _slicedToArray(_ref4, 2),
3240
+ event = _ref5[0],
3241
+ listener = _ref5[1];
3242
+ if (event && typeof listener === 'function') {
3243
+ elReference.removeEventListener(event, listener);
3244
+ }
3245
+ });
3246
+ } else {
3247
+ var content = storeEvent.content,
3248
+ reference = storeEvent.reference;
3249
+ content.forEach(function (_ref6) {
3250
+ var _ref7 = _slicedToArray(_ref6, 2),
3251
+ event = _ref7[0],
3252
+ listener = _ref7[1];
3253
+ if (event && typeof listener === 'function') {
3254
+ if (elContent) {
3255
+ elContent.removeEventListener(event, listener);
3256
+ }
3257
+ }
3258
+ });
3259
+ reference.forEach(function (_ref8) {
3260
+ var _ref9 = _slicedToArray(_ref8, 2),
3261
+ event = _ref9[0],
3262
+ listener = _ref9[1];
3263
+ if (event && typeof listener === 'function') {
3264
+ elReference.removeEventListener(event, listener);
3265
+ }
3266
+ });
3426
3267
  }
3427
3268
  });
3428
3269
  }
@@ -3439,8 +3280,8 @@ var parentNodeReferId = null;
3439
3280
  root = _resolvePopElements3.root;
3440
3281
  if (isFullscreen.value) {
3441
3282
  var _fullScreenTarget$val;
3442
- var _ref6 = elReference || root || {},
3443
- parentNode = _ref6.parentNode;
3283
+ var _ref10 = elReference || root || {},
3284
+ parentNode = _ref10.parentNode;
3444
3285
  boundary.value = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
3445
3286
  return;
3446
3287
  }
@@ -3450,13 +3291,13 @@ var parentNodeReferId = null;
3450
3291
  getPrefixId = _usePopperId.getPrefixId;
3451
3292
  var setFullscreenTag = function setFullscreenTag() {
3452
3293
  var _fullScreenTarget$val2;
3453
- fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
3294
+ fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 ? void 0 : _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
3454
3295
  };
3455
3296
  var clearFullscreenTag = function clearFullscreenTag() {
3456
3297
  var _fullScreenTarget$val3, _fullScreenTarget$val4;
3457
3298
  var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
3458
3299
  ((_fullScreenTarget$val3 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val4 = fullScreenTarget.value) === null || _fullScreenTarget$val4 === void 0 ? void 0 : _fullScreenTarget$val4.querySelectorAll(query)) !== null && _fullScreenTarget$val3 !== void 0 ? _fullScreenTarget$val3 : []).forEach(function (element) {
3459
- element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
3300
+ element === null || element === void 0 ? void 0 : element.removeAttribute('data-fllsrn-id');
3460
3301
  });
3461
3302
  };
3462
3303
  var boundary = (0,external_vue_namespaceObject.ref)();
@@ -3495,16 +3336,30 @@ var parentNodeReferId = null;
3495
3336
  document.body.removeEventListener('fullscreenchange', handleFullscreenChange);
3496
3337
  };
3497
3338
  var handleClickOutside = function handleClickOutside(_e) {
3498
- ctx.emit(EMIT_EVENTS.CLICK_OUTSIDE, {
3499
- isShow: localIsShow.value,
3500
- event: _e
3501
- });
3502
- var needExec = props.disableOutsideClick || props.always || props.disabled || props.trigger === 'manual';
3503
- if (!props.forceClickoutside && needExec) {
3504
- return;
3505
- }
3506
- if (localIsShow.value) {
3507
- hideFn();
3339
+ var hideIgnoreReference = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
3340
+ var commonFunc = function commonFunc() {
3341
+ ctx.emit(EMIT_EVENTS.CLICK_OUTSIDE, {
3342
+ isShow: localIsShow.value,
3343
+ event: _e
3344
+ });
3345
+ var needExec = props.disableOutsideClick || props.always || props.disabled || props.trigger === 'manual';
3346
+ if (!props.forceClickoutside && needExec) {
3347
+ return;
3348
+ }
3349
+ if (localIsShow.value) {
3350
+ hideFn();
3351
+ }
3352
+ };
3353
+ if (hideIgnoreReference) {
3354
+ setTimeout(function () {
3355
+ if (ReferenceClickSharedState[uniqKey]) {
3356
+ ReferenceClickSharedState[uniqKey] = false;
3357
+ return;
3358
+ }
3359
+ return commonFunc();
3360
+ });
3361
+ } else {
3362
+ return commonFunc();
3508
3363
  }
3509
3364
  };
3510
3365
  return {
@@ -3523,7 +3378,8 @@ var parentNodeReferId = null;
3523
3378
  stopHide: stopHide,
3524
3379
  isFullscreen: isFullscreen,
3525
3380
  boundary: boundary,
3526
- localIsShow: localIsShow
3381
+ localIsShow: localIsShow,
3382
+ uniqKey: uniqKey
3527
3383
  };
3528
3384
  });
3529
3385
  ;// CONCATENATED MODULE: ../../packages/popover/src/popover.tsx
@@ -3563,31 +3419,29 @@ var parentNodeReferId = null;
3563
3419
 
3564
3420
 
3565
3421
 
3566
-
3567
3422
  function _isSlot(s) {
3568
3423
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
3569
3424
  }
3570
- /* harmony default export */ const popover = ((0,external_vue_namespaceObject.defineComponent)({
3425
+ /* harmony default export */ const popover = (defineComponent({
3571
3426
  name: 'Popover',
3572
3427
  components: {
3573
- // eslint-disable-next-line vue/no-reserved-component-names
3574
3428
  Content: content,
3575
3429
  Arrow: src_arrow,
3576
3430
  Root: root
3577
3431
  },
3578
3432
  directives: {
3579
- clickoutside: clickoutside
3433
+ clickoutside: directives_namespaceObject.clickoutside
3580
3434
  },
3581
3435
  props: PopoverProps,
3582
3436
  emits: EMIT_EVENT_TYPES,
3583
3437
  setup: function setup(props, ctx) {
3584
- var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
3438
+ var _toRefs = toRefs(props),
3585
3439
  reference = _toRefs.reference;
3586
- var refDefaultReference = (0,external_vue_namespaceObject.ref)();
3587
- var refContent = (0,external_vue_namespaceObject.ref)();
3588
- var refArrow = (0,external_vue_namespaceObject.ref)();
3589
- var refRoot = (0,external_vue_namespaceObject.ref)();
3590
- var refReference = (0,external_vue_namespaceObject.computed)(function () {
3440
+ var refDefaultReference = ref();
3441
+ var refContent = ref();
3442
+ var refArrow = ref();
3443
+ var refRoot = ref();
3444
+ var refReference = computed(function () {
3591
3445
  return reference.value || refDefaultReference.value;
3592
3446
  });
3593
3447
  var _usePopoverInit = use_popover_init(props, ctx, {
@@ -3610,9 +3464,10 @@ function _isSlot(s) {
3610
3464
  resetPopover = _usePopoverInit.resetPopover,
3611
3465
  stopHide = _usePopoverInit.stopHide,
3612
3466
  localIsShow = _usePopoverInit.localIsShow,
3613
- boundary = _usePopoverInit.boundary;
3467
+ boundary = _usePopoverInit.boundary,
3468
+ uniqKey = _usePopoverInit.uniqKey;
3614
3469
  if (!props.always && !props.disabled) {
3615
- (0,external_vue_namespaceObject.watch)(function () {
3470
+ watch(function () {
3616
3471
  return props.isShow;
3617
3472
  }, function () {
3618
3473
  props.isShow ? showPopover() : hidePopover();
@@ -3620,7 +3475,7 @@ function _isSlot(s) {
3620
3475
  immediate: true
3621
3476
  });
3622
3477
  }
3623
- (0,external_vue_namespaceObject.watch)(function () {
3478
+ watch(function () {
3624
3479
  return [props.disabled];
3625
3480
  }, function (val) {
3626
3481
  if (val[0]) {
@@ -3630,10 +3485,19 @@ function _isSlot(s) {
3630
3485
  }
3631
3486
  });
3632
3487
  updateBoundary();
3633
- (0,external_vue_namespaceObject.onMounted)(onMountedFn);
3634
- (0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
3635
- var transBoundary = (0,external_vue_namespaceObject.computed)(function () {
3636
- return localIsShow.value && !props.disableTeleport;
3488
+ onMounted(onMountedFn);
3489
+ onBeforeUnmount(onUnmountedFn);
3490
+ var isRenderModeShow = computed(function () {
3491
+ return props.renderDirective === 'show';
3492
+ });
3493
+ var transBoundary = computed(function () {
3494
+ return isRenderModeShow.value || localIsShow.value && !props.disableTeleport;
3495
+ });
3496
+ var contentIsShow = computed(function () {
3497
+ if (props.renderType === shared_namespaceObject.RenderType.AUTO) {
3498
+ return true;
3499
+ }
3500
+ return localIsShow.value;
3637
3501
  });
3638
3502
  var show = function show() {
3639
3503
  showFn();
@@ -3641,12 +3505,15 @@ function _isSlot(s) {
3641
3505
  var hide = function hide() {
3642
3506
  hideFn();
3643
3507
  };
3644
- var contentIsShow = (0,external_vue_namespaceObject.computed)(function () {
3645
- if (props.renderType === shared_namespaceObject.RenderType.AUTO) {
3646
- return true;
3508
+ var handleClickReferenceWraper = function handleClickReferenceWraper() {
3509
+ ReferenceClickSharedState[uniqKey] = true;
3510
+ };
3511
+ // 点击 content 收起面板
3512
+ var handleClickContent = function handleClickContent() {
3513
+ if (props.trigger !== 'manual' && !props.always && props.clickContentAutoHide) {
3514
+ localIsShow.value = false;
3647
3515
  }
3648
- return localIsShow.value;
3649
- });
3516
+ };
3650
3517
  var renderContent = function renderContent() {
3651
3518
  if (props.allowHtml) {
3652
3519
  var _contentAsHTMLElement = contentAsHTMLElement(props.content),
@@ -3663,7 +3530,9 @@ function _isSlot(s) {
3663
3530
  refArrow: refArrow,
3664
3531
  content: props.content,
3665
3532
  theme: props.theme,
3533
+ isRenderModeShow: isRenderModeShow,
3666
3534
  transBoundary: transBoundary,
3535
+ handleClickContent: handleClickContent,
3667
3536
  handleClickOutside: handleClickOutside,
3668
3537
  updatePopover: updatePopover,
3669
3538
  resetPopover: resetPopover,
@@ -3672,21 +3541,25 @@ function _isSlot(s) {
3672
3541
  stopHide: stopHide,
3673
3542
  contentIsShow: contentIsShow,
3674
3543
  renderContent: renderContent,
3675
- localIsShow: localIsShow
3544
+ localIsShow: localIsShow,
3545
+ handleClickReferenceWraper: handleClickReferenceWraper
3676
3546
  };
3677
3547
  },
3678
3548
  render: function render() {
3679
- var _slot;
3549
+ var _slot, _slot2;
3680
3550
  var _this$$slots$default,
3681
3551
  _this$$slots$default2,
3682
3552
  _this$$slots,
3553
+ _this$$slots$default3,
3554
+ _this$$slots$default4,
3555
+ _this$$slots2,
3683
3556
  _this = this,
3684
3557
  _this$$slots$content,
3685
3558
  _this$$slots$content2,
3686
- _this$$slots3;
3559
+ _this$$slots4;
3687
3560
  var renderReferSlot = function renderReferSlot(slot) {
3688
3561
  var _slot$;
3689
- if (external_vue_namespaceObject.Text === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
3562
+ if (Text === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
3690
3563
  return (0,external_vue_namespaceObject.createVNode)("span", null, [slot]);
3691
3564
  }
3692
3565
  return slot;
@@ -3695,42 +3568,55 @@ function _isSlot(s) {
3695
3568
  "ref": "refRoot"
3696
3569
  }, {
3697
3570
  "default": function _default() {
3698
- return [(0,external_vue_namespaceObject.createVNode)(reference, {
3571
+ return [_this.hideIgnoreReference ? (0,external_vue_namespaceObject.createVNode)("div", {
3572
+ "class": _this.referenceCls,
3573
+ "style": "display: inline-block;",
3574
+ "onClick": _this.handleClickReferenceWraper
3575
+ }, [(0,external_vue_namespaceObject.createVNode)(reference, {
3699
3576
  "ref": "refDefaultReference"
3700
3577
  }, _isSlot(_slot = renderReferSlot((_this$$slots$default = (_this$$slots$default2 = (_this$$slots = _this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : (0,external_vue_namespaceObject.createVNode)("span", null, null))) ? _slot : {
3701
3578
  "default": function _default() {
3702
3579
  return [_slot];
3703
3580
  }
3704
- }), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
3705
- "to": _this.boundary,
3706
- "disabled": !_this.transBoundary
3581
+ })]) : (0,external_vue_namespaceObject.createVNode)(reference, {
3582
+ "ref": "refDefaultReference"
3583
+ }, _isSlot(_slot2 = renderReferSlot((_this$$slots$default3 = (_this$$slots$default4 = (_this$$slots2 = _this.$slots)["default"]) === null || _this$$slots$default4 === void 0 ? void 0 : _this$$slots$default4.call(_this$$slots2)) !== null && _this$$slots$default3 !== void 0 ? _this$$slots$default3 : (0,external_vue_namespaceObject.createVNode)("span", null, null))) ? _slot2 : {
3584
+ "default": function _default() {
3585
+ return [_slot2];
3586
+ }
3587
+ }), (0,external_vue_namespaceObject.createVNode)(Teleport, {
3588
+ "disabled": !_this.transBoundary,
3589
+ "to": _this.boundary
3707
3590
  }, {
3708
3591
  "default": function _default() {
3709
3592
  return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(content, {
3710
3593
  "ref": "refContent",
3711
- "visible": _this.localIsShow,
3712
- "data-theme": _this.theme,
3713
- "extCls": _this.extCls,
3714
3594
  "width": _this.width,
3715
3595
  "height": _this.height,
3716
- "maxWidth": _this.maxWidth,
3596
+ "extCls": _this.extCls,
3597
+ "data-theme": _this.theme,
3598
+ "eventDelay": _this.componentEventDelay,
3717
3599
  "maxHeight": _this.maxHeight,
3718
- "eventDelay": _this.componentEventDelay
3600
+ "maxWidth": _this.maxWidth,
3601
+ "visible": _this.localIsShow,
3602
+ "onClick": _this.handleClickContent
3719
3603
  }, {
3720
3604
  "default": function _default() {
3721
- return [_this.contentIsShow ? (_this$$slots$content = (_this$$slots$content2 = (_this$$slots3 = _this.$slots).content) === null || _this$$slots$content2 === void 0 ? void 0 : _this$$slots$content2.call(_this$$slots3)) !== null && _this$$slots$content !== void 0 ? _this$$slots$content : _this.renderContent() : ''];
3605
+ return [_this.isRenderModeShow || _this.contentIsShow ? (_this$$slots$content = (_this$$slots$content2 = (_this$$slots4 = _this.$slots).content) === null || _this$$slots$content2 === void 0 ? void 0 : _this$$slots$content2.call(_this$$slots4)) !== null && _this$$slots$content !== void 0 ? _this$$slots$content : _this.renderContent() : ''];
3722
3606
  },
3723
3607
  arrow: function arrow() {
3724
- var _this$$slots$arrow, _this$$slots2;
3608
+ var _this$$slots$arrow, _this$$slots3;
3725
3609
  return _this.arrow ? (0,external_vue_namespaceObject.createVNode)(src_arrow, {
3726
3610
  "ref": "refArrow"
3727
3611
  }, {
3728
3612
  "default": function _default() {
3729
- return [(_this$$slots$arrow = (_this$$slots2 = _this.$slots).arrow) === null || _this$$slots$arrow === void 0 ? void 0 : _this$$slots$arrow.call(_this$$slots2)];
3613
+ return [(_this$$slots$arrow = (_this$$slots3 = _this.$slots).arrow) === null || _this$$slots$arrow === void 0 ? void 0 : _this$$slots$arrow.call(_this$$slots3)];
3730
3614
  }
3731
3615
  }) : '';
3732
3616
  }
3733
- }), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), _this.handleClickOutside]])];
3617
+ }), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), function (e) {
3618
+ return _this.handleClickOutside(e, _this.hideIgnoreReference);
3619
+ }]])];
3734
3620
  }
3735
3621
  })];
3736
3622
  }
@@ -3806,36 +3692,36 @@ function createPopoverComponent(options) {
3806
3692
  var refReference = (0,external_vue_namespaceObject.ref)();
3807
3693
  var show = function show() {
3808
3694
  var _refReference$value, _refReference$value$s;
3809
- (_refReference$value = refReference.value) === null || _refReference$value === void 0 || (_refReference$value$s = _refReference$value.show) === null || _refReference$value$s === void 0 || _refReference$value$s.call(_refReference$value);
3695
+ (_refReference$value = refReference.value) === null || _refReference$value === void 0 || (_refReference$value$s = _refReference$value.show) === null || _refReference$value$s === void 0 ? void 0 : _refReference$value$s.call(_refReference$value);
3810
3696
  };
3811
3697
  var hide = function hide() {
3812
3698
  var _refReference$value2, _refReference$value2$;
3813
- (_refReference$value2 = refReference.value) === null || _refReference$value2 === void 0 || (_refReference$value2$ = _refReference$value2.hide) === null || _refReference$value2$ === void 0 || _refReference$value2$.call(_refReference$value2);
3699
+ (_refReference$value2 = refReference.value) === null || _refReference$value2 === void 0 || (_refReference$value2$ = _refReference$value2.hide) === null || _refReference$value2$ === void 0 ? void 0 : _refReference$value2$.call(_refReference$value2);
3814
3700
  };
3815
3701
  var stopHide = function stopHide() {
3816
3702
  var _refReference$value3, _refReference$value3$;
3817
- (_refReference$value3 = refReference.value) === null || _refReference$value3 === void 0 || (_refReference$value3$ = _refReference$value3.stopHide) === null || _refReference$value3$ === void 0 || _refReference$value3$.call(_refReference$value3);
3703
+ (_refReference$value3 = refReference.value) === null || _refReference$value3 === void 0 || (_refReference$value3$ = _refReference$value3.stopHide) === null || _refReference$value3$ === void 0 ? void 0 : _refReference$value3$.call(_refReference$value3);
3818
3704
  };
3819
3705
  var updateTarget = function updateTarget(target) {
3820
3706
  var _refReference$value4, _refReference$value4$;
3821
3707
  refProps.target = target;
3822
- (_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0 || _refReference$value4$.call(_refReference$value4);
3708
+ (_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0 ? void 0 : _refReference$value4$.call(_refReference$value4);
3823
3709
  };
3824
3710
  var handleContentMouseenter = function handleContentMouseenter() {
3825
3711
  var _resolvedOptions$onCo;
3826
- (_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0 || _resolvedOptions$onCo.call(resolvedOptions);
3712
+ (_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0 ? void 0 : _resolvedOptions$onCo.call(resolvedOptions);
3827
3713
  };
3828
3714
  var handleContentMouseleave = function handleContentMouseleave() {
3829
3715
  var _resolvedOptions$onCo2;
3830
- (_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0 || _resolvedOptions$onCo2.call(resolvedOptions);
3716
+ (_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0 ? void 0 : _resolvedOptions$onCo2.call(resolvedOptions);
3831
3717
  };
3832
3718
  var handlePopoverHidden = function handlePopoverHidden() {
3833
3719
  var _resolvedOptions$onHi;
3834
- (_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0 || _resolvedOptions$onHi.call(resolvedOptions);
3720
+ (_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0 ? void 0 : _resolvedOptions$onHi.call(resolvedOptions);
3835
3721
  };
3836
3722
  var handlePopoverShow = function handlePopoverShow() {
3837
3723
  var _resolvedOptions$onSh;
3838
- (_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0 || _resolvedOptions$onSh.call(resolvedOptions);
3724
+ (_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0 ? void 0 : _resolvedOptions$onSh.call(resolvedOptions);
3839
3725
  };
3840
3726
  expose({
3841
3727
  show: show,
@@ -3846,10 +3732,10 @@ function createPopoverComponent(options) {
3846
3732
  return function () {
3847
3733
  return (0,external_vue_namespaceObject.createVNode)(popover, (0,external_vue_namespaceObject.mergeProps)(refProps, {
3848
3734
  "ref": refReference,
3849
- "onContentMouseenter": handleContentMouseenter,
3850
- "onContentMouseleave": handleContentMouseleave,
3851
3735
  "onAfterHidden": handlePopoverHidden,
3852
- "onAfterShow": handlePopoverShow
3736
+ "onAfterShow": handlePopoverShow,
3737
+ "onContentMouseenter": handleContentMouseenter,
3738
+ "onContentMouseleave": handleContentMouseleave
3853
3739
  }), null);
3854
3740
  };
3855
3741
  }
@@ -3884,7 +3770,7 @@ function createPopoverComponent(options) {
3884
3770
  }
3885
3771
  $PopoverInstance.unmount();
3886
3772
  $PopoverInstance = null;
3887
- (_$PopoverInstanceEl = $PopoverInstanceEl) === null || _$PopoverInstanceEl === void 0 || _$PopoverInstanceEl.remove();
3773
+ (_$PopoverInstanceEl = $PopoverInstanceEl) === null || _$PopoverInstanceEl === void 0 ? void 0 : _$PopoverInstanceEl.remove();
3888
3774
  };
3889
3775
  function close() {
3890
3776
  uninstall();
@@ -3895,17 +3781,17 @@ function createPopoverComponent(options) {
3895
3781
  install();
3896
3782
  if (target) {
3897
3783
  var _$PopoverInstanceVm;
3898
- (_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 || _$PopoverInstanceVm.updateTarget(target);
3784
+ (_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 ? void 0 : _$PopoverInstanceVm.updateTarget(target);
3899
3785
  }
3900
- (_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 || _$PopoverInstanceVm2.show();
3786
+ (_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 ? void 0 : _$PopoverInstanceVm2.show();
3901
3787
  }
3902
3788
  function update(e) {
3903
3789
  var _$PopoverInstanceVm3;
3904
- (_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 || _$PopoverInstanceVm3.updateTarget(e);
3790
+ (_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 ? void 0 : _$PopoverInstanceVm3.updateTarget(e);
3905
3791
  }
3906
3792
  function hide() {
3907
3793
  var _$PopoverInstanceVm4;
3908
- (_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0 || _$PopoverInstanceVm4.hide();
3794
+ (_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0 ? void 0 : _$PopoverInstanceVm4.hide();
3909
3795
  }
3910
3796
  immediate && install();
3911
3797
  return {