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
@@ -1,9 +1,11 @@
1
1
  import "../styles/reset.css";
2
2
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
4
+ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
4
5
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
5
6
  import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
6
7
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__ from "lodash/isElement";
8
+ import * as __WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__ from "lodash/random";
7
9
  /******/ // The require scope
8
10
  /******/ var __webpack_require__ = {};
9
11
  /******/
@@ -34,38 +36,38 @@ __webpack_require__.d(__webpack_exports__, {
34
36
  });
35
37
 
36
38
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
37
- function _typeof(o) {
39
+ function _typeof(obj) {
38
40
  "@babel/helpers - typeof";
39
41
 
40
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
41
- return typeof o;
42
- } : function (o) {
43
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
44
- }, _typeof(o);
42
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
43
+ return typeof obj;
44
+ } : function (obj) {
45
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
46
+ }, _typeof(obj);
45
47
  }
46
48
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
47
49
 
48
- function toPrimitive(t, r) {
49
- if ("object" != _typeof(t) || !t) return t;
50
- var e = t[Symbol.toPrimitive];
51
- if (void 0 !== e) {
52
- var i = e.call(t, r || "default");
53
- if ("object" != _typeof(i)) return i;
50
+ function _toPrimitive(input, hint) {
51
+ if (_typeof(input) !== "object" || input === null) return input;
52
+ var prim = input[Symbol.toPrimitive];
53
+ if (prim !== undefined) {
54
+ var res = prim.call(input, hint || "default");
55
+ if (_typeof(res) !== "object") return res;
54
56
  throw new TypeError("@@toPrimitive must return a primitive value.");
55
57
  }
56
- return ("string" === r ? String : Number)(t);
58
+ return (hint === "string" ? String : Number)(input);
57
59
  }
58
60
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
59
61
 
60
62
 
61
- function toPropertyKey(t) {
62
- var i = toPrimitive(t, "string");
63
- return "symbol" == _typeof(i) ? i : String(i);
63
+ function _toPropertyKey(arg) {
64
+ var key = _toPrimitive(arg, "string");
65
+ return _typeof(key) === "symbol" ? key : String(key);
64
66
  }
65
67
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
66
68
 
67
69
  function _defineProperty(obj, key, value) {
68
- key = toPropertyKey(key);
70
+ key = _toPropertyKey(key);
69
71
  if (key in obj) {
70
72
  Object.defineProperty(obj, key, {
71
73
  value: value,
@@ -81,137 +83,15 @@ function _defineProperty(obj, key, value) {
81
83
  ;// CONCATENATED MODULE: external "vue"
82
84
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
83
85
  var y = x => () => x
84
- const external_vue_namespaceObject = 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 });
86
+ const external_vue_namespaceObject = 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 });
85
87
  ;// CONCATENATED MODULE: external "../shared"
86
88
  var shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
87
89
  var shared_y = x => () => x
88
- const shared_namespaceObject = shared_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 });
89
- ;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
90
- 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; } } }; }
91
- 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); }
92
- 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; }
93
- /*
94
- * Tencent is pleased to support the open source community by making
95
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
96
- *
97
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
98
- *
99
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
100
- *
101
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
102
- *
103
- * ---------------------------------------------------
104
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
105
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
106
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
107
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
108
- *
109
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
110
- * the Software.
111
- *
112
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
113
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
114
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
115
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
116
- * IN THE SOFTWARE.
117
- */
118
- var isElement = function isElement(e) {
119
- if (typeof Element === 'undefined') return false;
120
- return e instanceof Element;
121
- };
122
- var nodeList = new Map();
123
- var startClick;
124
- document.addEventListener('mousedown', function (e) {
125
- return startClick = e;
126
- });
127
- document.addEventListener('mouseup', function (e) {
128
- var _iterator = _createForOfIteratorHelper(nodeList.values()),
129
- _step;
130
- try {
131
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
132
- var handlers = _step.value;
133
- var _iterator2 = _createForOfIteratorHelper(handlers),
134
- _step2;
135
- try {
136
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
137
- var documentHandler = _step2.value.documentHandler;
138
- documentHandler(e, startClick);
139
- }
140
- } catch (err) {
141
- _iterator2.e(err);
142
- } finally {
143
- _iterator2.f();
144
- }
145
- }
146
- } catch (err) {
147
- _iterator.e(err);
148
- } finally {
149
- _iterator.f();
150
- }
151
- });
152
- function createDocumentHandler(el, binding) {
153
- var excludes = [];
154
- if (Array.isArray(binding.arg)) {
155
- excludes = binding.arg;
156
- } else if (isElement(binding.arg)) {
157
- excludes.push(binding.arg);
158
- }
159
- return function (mouseup, mousedown) {
160
- var popperRef = binding.instance.popperRef;
161
- var mouseUpTarget = mouseup.target;
162
- var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
163
- var isBound = !binding || !binding.instance;
164
- var isTargetExists = !mouseUpTarget || !mouseDownTarget;
165
- var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
166
- var isSelf = el === mouseUpTarget;
167
- var isTargetExcluded = excludes.length && excludes.some(function (item) {
168
- return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
169
- }) || excludes.length && excludes.includes(mouseDownTarget);
170
- var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
171
- if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
172
- return;
173
- }
174
- binding.value(mouseup, mousedown);
175
- };
176
- }
177
- var ClickOutside = {
178
- beforeMount: function beforeMount(el, binding) {
179
- if (!nodeList.has(el)) {
180
- nodeList.set(el, []);
181
- }
182
- nodeList.get(el).push({
183
- documentHandler: createDocumentHandler(el, binding),
184
- bindingFn: binding.value
185
- });
186
- },
187
- updated: function updated(el, binding) {
188
- if (!nodeList.has(el)) {
189
- nodeList.set(el, []);
190
- }
191
- var handlers = nodeList.get(el);
192
- var oldHandlerIndex = handlers.findIndex(function (item) {
193
- return item.bindingFn === binding.oldValue;
194
- });
195
- var newHandler = {
196
- documentHandler: createDocumentHandler(el, binding),
197
- bindingFn: binding.value
198
- };
199
- if (oldHandlerIndex >= 0) {
200
- // replace the old handler to the new handler
201
- handlers.splice(oldHandlerIndex, 1, newHandler);
202
- } else {
203
- handlers.push(newHandler);
204
- }
205
- },
206
- unmounted: function unmounted(el) {
207
- // remove all listeners when a component unmounted
208
- nodeList["delete"](el);
209
- }
210
- };
211
- ClickOutside.install = function (app) {
212
- app.directive('bkTooltips', ClickOutside);
213
- };
214
- /* harmony default export */ const clickoutside = (ClickOutside);
90
+ const shared_namespaceObject = shared_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 });
91
+ ;// CONCATENATED MODULE: external "../directives"
92
+ var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
93
+ var directives_y = x => () => x
94
+ const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside });
215
95
  ;// CONCATENATED MODULE: external "../config-provider"
216
96
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
217
97
  var config_provider_y = x => () => x
@@ -244,8 +124,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
244
124
  * IN THE SOFTWARE.
245
125
  */
246
126
 
247
-
248
- /* harmony default export */ const src_arrow = ((0,external_vue_namespaceObject.defineComponent)({
127
+ /* harmony default export */ const src_arrow = (defineComponent({
249
128
  name: 'PopArrow',
250
129
  render: function render() {
251
130
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
@@ -258,6 +137,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
258
137
  }));
259
138
  ;// CONCATENATED MODULE: ../../packages/popover/src/const.tsx
260
139
 
140
+ var _EMIT_EVENT_TYPES;
261
141
  /* eslint-disable @typescript-eslint/naming-convention */
262
142
  /*
263
143
  * Tencent is pleased to support the open source community by making
@@ -284,14 +164,13 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
284
164
  * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
285
165
  * IN THE SOFTWARE.
286
166
  */
287
- // eslint-disable-next-line @typescript-eslint/naming-convention
288
167
  var EMIT_EVENTS;
289
168
  (function (EMIT_EVENTS) {
290
169
  EMIT_EVENTS["CLICK_OUTSIDE"] = "clickoutside";
291
- EMIT_EVENTS["CONTENT_MOUSEENTER"] = "contentMouseenter";
292
- EMIT_EVENTS["CONTENT_MOUSELEAVE"] = "contentMouseleave";
293
170
  EMIT_EVENTS["CONTENT_AfterHidden"] = "afterHidden";
294
171
  EMIT_EVENTS["CONTENT_AfterShow"] = "afterShow";
172
+ EMIT_EVENTS["CONTENT_MOUSEENTER"] = "contentMouseenter";
173
+ EMIT_EVENTS["CONTENT_MOUSELEAVE"] = "contentMouseleave";
295
174
  })(EMIT_EVENTS || (EMIT_EVENTS = {}));
296
175
  var EVENT_SHOW_HIDE_FN = function EVENT_SHOW_HIDE_FN(_args) {
297
176
  return true;
@@ -302,7 +181,7 @@ var EVENT_COMMON_FN = function EVENT_COMMON_FN(e) {
302
181
  var EVENT_CLICK_OUTSIDE_FN = function EVENT_CLICK_OUTSIDE_FN(_args) {
303
182
  return true;
304
183
  };
305
- 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);
184
+ 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);
306
185
  ;// CONCATENATED MODULE: ../../packages/popover/src/content.tsx
307
186
 
308
187
  /*
@@ -332,8 +211,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
332
211
  */
333
212
 
334
213
 
335
-
336
- /* harmony default export */ const content = ((0,external_vue_namespaceObject.defineComponent)({
214
+ /* harmony default export */ const content = (defineComponent({
337
215
  name: 'PopContent',
338
216
  props: {
339
217
  width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
@@ -344,14 +222,16 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
344
222
  visible: shared_namespaceObject.PropTypes.bool.def(false),
345
223
  eventDelay: shared_namespaceObject.PropTypes.number.def(0)
346
224
  },
347
- setup: function setup(props) {
225
+ emits: ['click'],
226
+ setup: function setup(props, _ref) {
227
+ var emit = _ref.emit;
348
228
  var resolveValToPix = function resolveValToPix(val) {
349
229
  if (/^\d+\.?\d*$/.test("".concat(val))) {
350
230
  return "".concat(val, "px");
351
231
  }
352
232
  return val;
353
233
  };
354
- var style = (0,external_vue_namespaceObject.computed)(function () {
234
+ var style = computed(function () {
355
235
  return {
356
236
  width: resolveValToPix(props.width),
357
237
  height: resolveValToPix(props.height),
@@ -359,8 +239,12 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
359
239
  maxWidth: resolveValToPix(props.maxWidth)
360
240
  };
361
241
  });
362
- var refContent = (0,external_vue_namespaceObject.ref)(null);
363
- var refTimer = (0,external_vue_namespaceObject.ref)(null);
242
+ var refContent = ref(null);
243
+ var refTimer = ref(null);
244
+ var handleClick = function handleClick(evt) {
245
+ evt.stopPropagation();
246
+ emit('click', evt);
247
+ };
364
248
  var resetPointerEvent = function resetPointerEvent() {
365
249
  var _props$eventDelay;
366
250
  if (props.eventDelay === 0) {
@@ -376,17 +260,18 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
376
260
  if (props.eventDelay === 0) {
377
261
  return;
378
262
  }
379
- (_refContent$value = refContent.value) === null || _refContent$value === void 0 || _refContent$value.style.setProperty('pointer-events', val);
263
+ (_refContent$value = refContent.value) === null || _refContent$value === void 0 ? void 0 : _refContent$value.style.setProperty('pointer-events', val);
380
264
  };
381
265
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
382
266
  resolveClassName = _usePrefix.resolveClassName;
383
- var contentClassName = (0,external_vue_namespaceObject.computed)(function () {
267
+ var contentClassName = computed(function () {
384
268
  return [resolveClassName('popover'), resolveClassName('pop2-content'), props.visible ? 'visible' : 'hidden', props.extCls];
385
269
  });
386
270
  return {
387
271
  style: style,
388
272
  refContent: refContent,
389
273
  contentClassName: contentClassName,
274
+ handleClick: handleClick,
390
275
  resetPointerEvent: resetPointerEvent,
391
276
  setContentPointerEvent: setContentPointerEvent
392
277
  };
@@ -403,8 +288,8 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
403
288
  _this$$slots3;
404
289
  var resolveContentStyle = function resolveContentStyle(slot) {
405
290
  var _slot$;
406
- if (external_vue_namespaceObject.Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
407
- (0,external_vue_namespaceObject.nextTick)(function () {
291
+ if (Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
292
+ nextTick(function () {
408
293
  _this.setContentPointerEvent('none');
409
294
  _this.resetPointerEvent();
410
295
  });
@@ -413,9 +298,10 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
413
298
  };
414
299
  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));
415
300
  return (0,external_vue_namespaceObject.createVNode)("div", {
416
- "class": this.contentClassName,
301
+ "ref": "refContent",
417
302
  "style": style,
418
- "ref": "refContent"
303
+ "class": this.contentClassName,
304
+ "onClick": this.handleClick
419
305
  }, [(_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 : '']);
420
306
  }
421
307
  }));
@@ -434,11 +320,13 @@ var PopoverProps = {
434
320
  isShow: shared_namespaceObject.PropTypes.bool.def(false),
435
321
  always: shared_namespaceObject.PropTypes.bool.def(false),
436
322
  disabled: shared_namespaceObject.PropTypes.bool.def(false),
323
+ clickContentAutoHide: shared_namespaceObject.PropTypes.bool.def(false),
437
324
  width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
438
325
  height: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
439
326
  maxWidth: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
440
327
  maxHeight: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
441
328
  content: (0,external_vue_types_namespaceObject.toType)('IContent', {}).def(''),
329
+ renderDirective: (0,shared_namespaceObject.renderDirectiveType)().def('if'),
442
330
  target: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.instanceOf(HTMLElement), shared_namespaceObject.PropTypes.instanceOf(PointerEvent)]),
443
331
  allowHtml: shared_namespaceObject.PropTypes.bool.def(false),
444
332
  /**
@@ -453,7 +341,6 @@ var PopoverProps = {
453
341
  * 支持 click hover manual
454
342
  * manual: 通过isShow控制显示、隐藏
455
343
  */
456
- // trigger: triggerType(),
457
344
  trigger: (0,shared_namespaceObject.triggerType)(),
458
345
  /**
459
346
  * content 渲染方式
@@ -506,6 +393,14 @@ var PopoverProps = {
506
393
  * 配置自定义样式类名,传入的类会被加在组件最外层的 DOM
507
394
  */
508
395
  extCls: shared_namespaceObject.PropTypes.string.def(''),
396
+ /**
397
+ * 配置自定义样式类名,传入的类会被加在 Reference 外部的 div 上
398
+ */
399
+ referenceCls: shared_namespaceObject.PropTypes.string.def(''),
400
+ /**
401
+ * 点击 Reference 占位区是否忽略收起 popover
402
+ */
403
+ hideIgnoreReference: shared_namespaceObject.PropTypes.bool.def(false),
509
404
  /**
510
405
  * 自定义Content组件渲染,point-event延迟渲染时间
511
406
  * 避免子组件point-event渲染时触发popover鼠标事件
@@ -579,8 +474,7 @@ var PopoverProps = {
579
474
  * IN THE SOFTWARE.
580
475
  */
581
476
 
582
-
583
- /* harmony default export */ const root = ((0,external_vue_namespaceObject.defineComponent)({
477
+ /* harmony default export */ const root = (defineComponent({
584
478
  props: {
585
479
  "class": shared_namespaceObject.PropTypes.string.def(''),
586
480
  mode: shared_namespaceObject.PropTypes.string.def('')
@@ -595,48 +489,48 @@ function _arrayWithHoles(arr) {
595
489
  if (Array.isArray(arr)) return arr;
596
490
  }
597
491
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
598
- function _iterableToArrayLimit(r, l) {
599
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
600
- if (null != t) {
601
- var e,
602
- n,
603
- i,
604
- u,
605
- a = [],
606
- f = !0,
607
- o = !1;
492
+ function _iterableToArrayLimit(arr, i) {
493
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
494
+ if (null != _i) {
495
+ var _s,
496
+ _e,
497
+ _x,
498
+ _r,
499
+ _arr = [],
500
+ _n = !0,
501
+ _d = !1;
608
502
  try {
609
- if (i = (t = t.call(r)).next, 0 === l) {
610
- if (Object(t) !== t) return;
611
- f = !1;
612
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
613
- } catch (r) {
614
- o = !0, n = r;
503
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
504
+ if (Object(_i) !== _i) return;
505
+ _n = !1;
506
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
507
+ } catch (err) {
508
+ _d = !0, _e = err;
615
509
  } finally {
616
510
  try {
617
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
511
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
618
512
  } finally {
619
- if (o) throw n;
513
+ if (_d) throw _e;
620
514
  }
621
515
  }
622
- return a;
516
+ return _arr;
623
517
  }
624
518
  }
625
519
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
626
- function arrayLikeToArray_arrayLikeToArray(arr, len) {
520
+ function _arrayLikeToArray(arr, len) {
627
521
  if (len == null || len > arr.length) len = arr.length;
628
522
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
629
523
  return arr2;
630
524
  }
631
525
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
632
526
 
633
- function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
527
+ function _unsupportedIterableToArray(o, minLen) {
634
528
  if (!o) return;
635
- if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
529
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
636
530
  var n = Object.prototype.toString.call(o).slice(8, -1);
637
531
  if (n === "Object" && o.constructor) n = o.constructor.name;
638
532
  if (n === "Map" || n === "Set") return Array.from(o);
639
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
533
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
640
534
  }
641
535
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
642
536
  function _nonIterableRest() {
@@ -648,18 +542,9 @@ function _nonIterableRest() {
648
542
 
649
543
 
650
544
  function _slicedToArray(arr, i) {
651
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || _nonIterableRest();
545
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
652
546
  }
653
- ;// CONCATENATED MODULE: external "lodash/isElement"
654
- var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
655
- var isElement_y = x => () => x
656
- const isElement_namespaceObject = isElement_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"] });
657
547
  ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
658
- /**
659
- * Custom positioning reference element.
660
- * @see https://floating-ui.com/docs/virtual-elements
661
- */
662
-
663
548
  const sides = ['top', 'right', 'bottom', 'left'];
664
549
  const alignments = ['start', 'end'];
665
550
  const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
@@ -847,7 +732,7 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
847
732
 
848
733
  /**
849
734
  * Computes the `x` and `y` coordinates that will place the floating element
850
- * next to a given reference element.
735
+ * next to a reference element when it is given a certain positioning strategy.
851
736
  *
852
737
  * This export does not have any `platform` interface logic. You will need to
853
738
  * write one for the platform you are using Floating UI with.
@@ -925,6 +810,7 @@ const computePosition = async (reference, floating, config) => {
925
810
  } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
926
811
  }
927
812
  i = -1;
813
+ continue;
928
814
  }
929
815
  }
930
816
  return {
@@ -987,7 +873,6 @@ async function detectOverflow(state, options) {
987
873
  y: 1
988
874
  };
989
875
  const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
990
- elements,
991
876
  rect,
992
877
  offsetParent,
993
878
  strategy
@@ -1015,8 +900,7 @@ const arrow = options => ({
1015
900
  placement,
1016
901
  rects,
1017
902
  platform,
1018
- elements,
1019
- middlewareData
903
+ elements
1020
904
  } = state;
1021
905
  // Since `element` is required, we don't Partial<> the type.
1022
906
  const {
@@ -1064,20 +948,16 @@ const arrow = options => ({
1064
948
 
1065
949
  // If the reference is small enough that the arrow's padding causes it to
1066
950
  // to point to nothing for an aligned placement, adjust the offset of the
1067
- // floating element itself. To ensure `shift()` continues to take action,
1068
- // a single reset is performed when this is true.
1069
- 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;
1070
- const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
951
+ // floating element itself. This stops `shift()` from taking action, but can
952
+ // be worked around by calling it again after the `arrow()` if desired.
953
+ const shouldAddOffset = floating_ui_utils_getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
954
+ const alignmentOffset = shouldAddOffset ? center < min$1 ? min$1 - center : max - center : 0;
1071
955
  return {
1072
- [axis]: coords[axis] + alignmentOffset,
956
+ [axis]: coords[axis] - alignmentOffset,
1073
957
  data: {
1074
958
  [axis]: offset,
1075
- centerOffset: center - offset - alignmentOffset,
1076
- ...(shouldAddOffset && {
1077
- alignmentOffset
1078
- })
1079
- },
1080
- reset: shouldAddOffset
959
+ centerOffset: center - offset + alignmentOffset
960
+ }
1081
961
  };
1082
962
  }
1083
963
  });
@@ -1199,7 +1079,7 @@ const flip = function (options) {
1199
1079
  name: 'flip',
1200
1080
  options,
1201
1081
  async fn(state) {
1202
- var _middlewareData$arrow, _middlewareData$flip;
1082
+ var _middlewareData$flip;
1203
1083
  const {
1204
1084
  placement,
1205
1085
  middlewareData,
@@ -1217,14 +1097,6 @@ const flip = function (options) {
1217
1097
  flipAlignment = true,
1218
1098
  ...detectOverflowOptions
1219
1099
  } = floating_ui_utils_evaluate(options, state);
1220
-
1221
- // If a reset by the arrow was caused due to an alignment offset being
1222
- // added, we should skip any logic now since `flip()` has already done its
1223
- // work.
1224
- // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
1225
- if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
1226
- return {};
1227
- }
1228
1100
  const side = floating_ui_utils_getSide(placement);
1229
1101
  const isBasePlacement = floating_ui_utils_getSide(initialPlacement) === initialPlacement;
1230
1102
  const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
@@ -1502,7 +1374,6 @@ const inline = function (options) {
1502
1374
 
1503
1375
  // For type backwards-compatibility, the `OffsetOptions` type was also
1504
1376
  // Derivable.
1505
-
1506
1377
  async function convertValueToCoords(state, options) {
1507
1378
  const {
1508
1379
  placement,
@@ -1516,6 +1387,8 @@ async function convertValueToCoords(state, options) {
1516
1387
  const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
1517
1388
  const crossAxisMulti = rtl && isVertical ? -1 : 1;
1518
1389
  const rawValue = floating_ui_utils_evaluate(options, state);
1390
+
1391
+ // eslint-disable-next-line prefer-const
1519
1392
  let {
1520
1393
  mainAxis,
1521
1394
  crossAxis,
@@ -1557,27 +1430,15 @@ const offset = function (options) {
1557
1430
  name: 'offset',
1558
1431
  options,
1559
1432
  async fn(state) {
1560
- var _middlewareData$offse, _middlewareData$arrow;
1561
1433
  const {
1562
1434
  x,
1563
- y,
1564
- placement,
1565
- middlewareData
1435
+ y
1566
1436
  } = state;
1567
1437
  const diffCoords = await convertValueToCoords(state, options);
1568
-
1569
- // If the placement is the same and the arrow caused an alignment offset
1570
- // then we don't need to change the positioning coordinates.
1571
- if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
1572
- return {};
1573
- }
1574
1438
  return {
1575
1439
  x: x + diffCoords.x,
1576
1440
  y: y + diffCoords.y,
1577
- data: {
1578
- ...diffCoords,
1579
- placement
1580
- }
1441
+ data: diffCoords
1581
1442
  };
1582
1443
  }
1583
1444
  };
@@ -1809,7 +1670,7 @@ const size = function (options) {
1809
1670
 
1810
1671
 
1811
1672
 
1812
- ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
1673
+ ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs
1813
1674
  function getNodeName(node) {
1814
1675
  if (isNode(node)) {
1815
1676
  return (node.nodeName || '').toLowerCase();
@@ -1821,7 +1682,7 @@ function getNodeName(node) {
1821
1682
  }
1822
1683
  function getWindow(node) {
1823
1684
  var _node$ownerDocument;
1824
- return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
1685
+ return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
1825
1686
  }
1826
1687
  function getDocumentElement(node) {
1827
1688
  var _ref;
@@ -1830,7 +1691,7 @@ function getDocumentElement(node) {
1830
1691
  function isNode(value) {
1831
1692
  return value instanceof Node || value instanceof getWindow(value).Node;
1832
1693
  }
1833
- function floating_ui_utils_dom_isElement(value) {
1694
+ function isElement(value) {
1834
1695
  return value instanceof Element || value instanceof getWindow(value).Element;
1835
1696
  }
1836
1697
  function isHTMLElement(value) {
@@ -1862,17 +1723,6 @@ function isContainingBlock(element) {
1862
1723
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1863
1724
  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));
1864
1725
  }
1865
- function getContainingBlock(element) {
1866
- let currentNode = getParentNode(element);
1867
- while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
1868
- if (isContainingBlock(currentNode)) {
1869
- return currentNode;
1870
- } else {
1871
- currentNode = getParentNode(currentNode);
1872
- }
1873
- }
1874
- return null;
1875
- }
1876
1726
  function isWebKit() {
1877
1727
  if (typeof CSS === 'undefined' || !CSS.supports) return false;
1878
1728
  return CSS.supports('-webkit-backdrop-filter', 'none');
@@ -1884,7 +1734,7 @@ function getComputedStyle(element) {
1884
1734
  return getWindow(element).getComputedStyle(element);
1885
1735
  }
1886
1736
  function getNodeScroll(element) {
1887
- if (floating_ui_utils_dom_isElement(element)) {
1737
+ if (isElement(element)) {
1888
1738
  return {
1889
1739
  scrollLeft: element.scrollLeft,
1890
1740
  scrollTop: element.scrollTop
@@ -1920,21 +1770,18 @@ function getNearestOverflowAncestor(node) {
1920
1770
  }
1921
1771
  return getNearestOverflowAncestor(parentNode);
1922
1772
  }
1923
- function getOverflowAncestors(node, list, traverseIframes) {
1773
+ function getOverflowAncestors(node, list) {
1924
1774
  var _node$ownerDocument2;
1925
1775
  if (list === void 0) {
1926
1776
  list = [];
1927
1777
  }
1928
- if (traverseIframes === void 0) {
1929
- traverseIframes = true;
1930
- }
1931
1778
  const scrollableAncestor = getNearestOverflowAncestor(node);
1932
1779
  const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
1933
1780
  const win = getWindow(scrollableAncestor);
1934
1781
  if (isBody) {
1935
- return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
1782
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
1936
1783
  }
1937
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
1784
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
1938
1785
  }
1939
1786
 
1940
1787
 
@@ -1968,7 +1815,7 @@ function getCssDimensions(element) {
1968
1815
  }
1969
1816
 
1970
1817
  function unwrapElement(element) {
1971
- return !floating_ui_utils_dom_isElement(element) ? element.contextElement : element;
1818
+ return !isElement(element) ? element.contextElement : element;
1972
1819
  }
1973
1820
 
1974
1821
  function getScale(element) {
@@ -2032,7 +1879,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
2032
1879
  let scale = createCoords(1);
2033
1880
  if (includeScale) {
2034
1881
  if (offsetParent) {
2035
- if (floating_ui_utils_dom_isElement(offsetParent)) {
1882
+ if (isElement(offsetParent)) {
2036
1883
  scale = getScale(offsetParent);
2037
1884
  }
2038
1885
  } else {
@@ -2046,7 +1893,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
2046
1893
  let height = clientRect.height / scale.y;
2047
1894
  if (domElement) {
2048
1895
  const win = getWindow(domElement);
2049
- const offsetWin = offsetParent && floating_ui_utils_dom_isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
1896
+ const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
2050
1897
  let currentIFrame = win.frameElement;
2051
1898
  while (currentIFrame && offsetParent && offsetWin !== win) {
2052
1899
  const iframeScale = getScale(currentIFrame);
@@ -2186,7 +2033,7 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
2186
2033
  rect = getViewportRect(element, strategy);
2187
2034
  } else if (clippingAncestor === 'document') {
2188
2035
  rect = getDocumentRect(getDocumentElement(element));
2189
- } else if (floating_ui_utils_dom_isElement(clippingAncestor)) {
2036
+ } else if (isElement(clippingAncestor)) {
2190
2037
  rect = getInnerBoundingClientRect(clippingAncestor, strategy);
2191
2038
  } else {
2192
2039
  const visualOffsets = getVisualOffsets(element);
@@ -2200,7 +2047,7 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
2200
2047
  }
2201
2048
  function hasFixedPositionAncestor(element, stopNode) {
2202
2049
  const parentNode = getParentNode(element);
2203
- if (parentNode === stopNode || !floating_ui_utils_dom_isElement(parentNode) || isLastTraversableNode(parentNode)) {
2050
+ if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
2204
2051
  return false;
2205
2052
  }
2206
2053
  return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
@@ -2214,13 +2061,13 @@ function getClippingElementAncestors(element, cache) {
2214
2061
  if (cachedResult) {
2215
2062
  return cachedResult;
2216
2063
  }
2217
- let result = getOverflowAncestors(element, [], false).filter(el => floating_ui_utils_dom_isElement(el) && getNodeName(el) !== 'body');
2064
+ let result = getOverflowAncestors(element).filter(el => isElement(el) && getNodeName(el) !== 'body');
2218
2065
  let currentContainingBlockComputedStyle = null;
2219
2066
  const elementIsFixed = getComputedStyle(element).position === 'fixed';
2220
2067
  let currentNode = elementIsFixed ? getParentNode(element) : element;
2221
2068
 
2222
2069
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
2223
- while (floating_ui_utils_dom_isElement(currentNode) && !isLastTraversableNode(currentNode)) {
2070
+ while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
2224
2071
  const computedStyle = getComputedStyle(currentNode);
2225
2072
  const currentNodeIsContaining = isContainingBlock(currentNode);
2226
2073
  if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
@@ -2269,14 +2116,7 @@ function getClippingRect(_ref) {
2269
2116
  }
2270
2117
 
2271
2118
  function getDimensions(element) {
2272
- const {
2273
- width,
2274
- height
2275
- } = getCssDimensions(element);
2276
- return {
2277
- width,
2278
- height
2279
- };
2119
+ return getCssDimensions(element);
2280
2120
  }
2281
2121
 
2282
2122
  function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
@@ -2318,6 +2158,17 @@ function getTrueOffsetParent(element, polyfill) {
2318
2158
  }
2319
2159
  return element.offsetParent;
2320
2160
  }
2161
+ function getContainingBlock(element) {
2162
+ let currentNode = getParentNode(element);
2163
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
2164
+ if (isContainingBlock(currentNode)) {
2165
+ return currentNode;
2166
+ } else {
2167
+ currentNode = getParentNode(currentNode);
2168
+ }
2169
+ }
2170
+ return null;
2171
+ }
2321
2172
 
2322
2173
  // Gets the closest ancestor positioned element. Handles some edge cases,
2323
2174
  // such as table ancestors and cross browser bugs.
@@ -2367,7 +2218,7 @@ const platform = {
2367
2218
  getClientRects,
2368
2219
  getDimensions,
2369
2220
  getScale,
2370
- isElement: floating_ui_utils_dom_isElement,
2221
+ isElement: isElement,
2371
2222
  isRTL
2372
2223
  };
2373
2224
 
@@ -2522,66 +2373,10 @@ function autoUpdate(reference, floating, update, options) {
2522
2373
  };
2523
2374
  }
2524
2375
 
2525
- /**
2526
- * Optimizes the visibility of the floating element by choosing the placement
2527
- * that has the most space available automatically, without needing to specify a
2528
- * preferred placement. Alternative to `flip`.
2529
- * @see https://floating-ui.com/docs/autoPlacement
2530
- */
2531
- const floating_ui_dom_autoPlacement = autoPlacement;
2532
-
2533
- /**
2534
- * Optimizes the visibility of the floating element by shifting it in order to
2535
- * keep it in view when it will overflow the clipping boundary.
2536
- * @see https://floating-ui.com/docs/shift
2537
- */
2538
- const floating_ui_dom_shift = shift;
2539
-
2540
- /**
2541
- * Optimizes the visibility of the floating element by flipping the `placement`
2542
- * in order to keep it in view when the preferred placement(s) will overflow the
2543
- * clipping boundary. Alternative to `autoPlacement`.
2544
- * @see https://floating-ui.com/docs/flip
2545
- */
2546
- const floating_ui_dom_flip = flip;
2547
-
2548
- /**
2549
- * Provides data that allows you to change the size of the floating element —
2550
- * for instance, prevent it from overflowing the clipping boundary or match the
2551
- * width of the reference element.
2552
- * @see https://floating-ui.com/docs/size
2553
- */
2554
- const floating_ui_dom_size = (/* unused pure expression or super */ null && (size$1));
2555
-
2556
- /**
2557
- * Provides data to hide the floating element in applicable situations, such as
2558
- * when it is not in the same clipping context as the reference element.
2559
- * @see https://floating-ui.com/docs/hide
2560
- */
2561
- const floating_ui_dom_hide = hide;
2562
-
2563
- /**
2564
- * Provides data to position an inner element of the floating element so that it
2565
- * appears centered to the reference element.
2566
- * @see https://floating-ui.com/docs/arrow
2567
- */
2568
- const floating_ui_dom_arrow = arrow;
2569
-
2570
- /**
2571
- * Provides improved positioning for inline reference elements that can span
2572
- * over multiple lines, such as hyperlinks or range selections.
2573
- * @see https://floating-ui.com/docs/inline
2574
- */
2575
- const floating_ui_dom_inline = inline;
2576
-
2577
- /**
2578
- * Built-in `limiter` that will stop `shift()` at a certain point.
2579
- */
2580
- const floating_ui_dom_limitShift = (/* unused pure expression or super */ null && (limitShift$1));
2581
-
2582
2376
  /**
2583
2377
  * Computes the `x` and `y` coordinates that will place the floating element
2584
- * next to a given reference element.
2378
+ * next to a reference element when it is given a certain CSS positioning
2379
+ * strategy.
2585
2380
  */
2586
2381
  const floating_ui_dom_computePosition = (reference, floating, options) => {
2587
2382
  // This caches the expensive `getClippingElementAncestors` function so that
@@ -2604,6 +2399,14 @@ const floating_ui_dom_computePosition = (reference, floating, options) => {
2604
2399
 
2605
2400
 
2606
2401
 
2402
+ ;// CONCATENATED MODULE: external "lodash/isElement"
2403
+ var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2404
+ var isElement_y = x => () => x
2405
+ const isElement_namespaceObject = isElement_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"] });
2406
+ ;// CONCATENATED MODULE: external "lodash/random"
2407
+ var random_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2408
+ var random_y = x => () => x
2409
+ const random_namespaceObject = random_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__["default"] });
2607
2410
  ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
2608
2411
  const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
2609
2412
  /* harmony default export */ const esm_browser_native = ({
@@ -2719,7 +2522,10 @@ function v4(options, buf, offset) {
2719
2522
  * IN THE SOFTWARE.
2720
2523
  */
2721
2524
 
2525
+
2722
2526
  var CachedConst = {};
2527
+ // 全局的占位区点击记录
2528
+ var ReferenceClickSharedState = {};
2723
2529
  var isAvailableId = function isAvailableId(query) {
2724
2530
  var container = document.querySelector(query);
2725
2531
  return container instanceof HTMLElement;
@@ -2756,6 +2562,9 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
2756
2562
  vNode: content
2757
2563
  };
2758
2564
  };
2565
+ var random = function random() {
2566
+ return "".concat((0,random_namespaceObject["default"])(0, 999999), "_").concat(Date.now(), "_").concat((0,random_namespaceObject["default"])(0, 999999));
2567
+ };
2759
2568
  ;// CONCATENATED MODULE: ../../packages/popover/src/use-floating.tsx
2760
2569
 
2761
2570
 
@@ -2913,7 +2722,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2913
2722
  };
2914
2723
  var resolvePopOptions = function resolvePopOptions(elArrow, props) {
2915
2724
  var modifiers = resolveModifiers();
2916
- var middleware = [offset(modifiers.offset || props.offset), floating_ui_dom_shift({
2725
+ var middleware = [offset(modifiers.offset || props.offset), shift({
2917
2726
  padding: props.padding
2918
2727
  })];
2919
2728
  var options = {
@@ -2921,17 +2730,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2921
2730
  middleware: middleware
2922
2731
  };
2923
2732
  if (props.arrow) {
2924
- middleware.push(floating_ui_dom_arrow({
2733
+ middleware.push(arrow({
2925
2734
  element: elArrow
2926
2735
  }));
2927
2736
  }
2928
2737
  if (isAutoPlacementAvailable()) {
2929
- middleware.push(floating_ui_dom_autoPlacement());
2738
+ middleware.push(autoPlacement());
2930
2739
  }
2931
- middleware.unshift(floating_ui_dom_inline());
2932
- middleware.push(floating_ui_dom_flip());
2740
+ middleware.unshift(inline());
2741
+ middleware.push(flip());
2933
2742
  if (isHideMiddlewareAvailable()) {
2934
- options.middleware.push(floating_ui_dom_hide());
2743
+ options.middleware.push(hide());
2935
2744
  }
2936
2745
  /**
2937
2746
  * 如果是全屏元素或者指定的虚拟元素
@@ -3099,6 +2908,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
3099
2908
  var delay = resolvePopoverDelay()[1];
3100
2909
  popHideTimerId = setTimeout(function () {
3101
2910
  popShowTimerId && clearTimeout(popShowTimerId);
2911
+ isMouseenter = false;
3102
2912
  localIsShow.value = false;
3103
2913
  }, delay);
3104
2914
  };
@@ -3127,26 +2937,29 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
3127
2937
  hidePopover();
3128
2938
  }
3129
2939
  };
3130
- var handleClickRef = function handleClickRef() {
3131
- triggerPopover();
3132
- };
3133
2940
  var handlePopContentMouseEnter = function handlePopContentMouseEnter(e) {
3134
- if (props.trigger !== 'hover') {
2941
+ if ('hover' !== props.trigger) {
3135
2942
  return;
3136
2943
  }
3137
- if (popHideTimerId) {
2944
+ if (!isMouseenter) {
3138
2945
  isMouseenter = true;
2946
+ }
2947
+ // 设置setTimeout的延时为delay, 避免出现同时触发mouseenter mouseleave事件
2948
+ var delay = resolvePopoverDelay()[1];
2949
+ if (popHideTimerId) {
3139
2950
  clearTimeout(popHideTimerId);
3140
- popHideTimerId = undefined;
2951
+ setTimeout(function () {
2952
+ popHideTimerId = undefined;
2953
+ }, delay);
3141
2954
  }
3142
2955
  emitPopContentMouseEnter(e);
3143
2956
  };
3144
2957
  var handlePopContentMouseLeave = function handlePopContentMouseLeave(e) {
3145
- if (isMouseenter) {
2958
+ // 处理底部触发mouseleave事件,popShowTimerId有值代表处于hover状态
2959
+ if (popShowTimerId && !popHideTimerId) {
3146
2960
  hidePopover();
3147
- isMouseenter = false;
3148
- emitPopContentMouseLeave(e);
3149
2961
  }
2962
+ emitPopContentMouseLeave(e);
3150
2963
  };
3151
2964
  /**
3152
2965
  * 弹出内容鼠标移入事件
@@ -3165,15 +2978,15 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
3165
2978
  var resolveTriggerEvents = function resolveTriggerEvents() {
3166
2979
  var _triggerEvents$props$;
3167
2980
  var triggerEvents = {
3168
- hover: {
2981
+ hover: [{
3169
2982
  content: [['mouseenter', handlePopContentMouseEnter], ['mouseleave', handlePopContentMouseLeave]],
3170
2983
  reference: [['mouseenter', showPopover], ['mouseleave', hidePopover], ['focus', showPopover], ['blur', hidePopover]]
3171
- },
3172
- click: [['click', handleClickRef]],
3173
- manual: {
2984
+ }],
2985
+ click: [[['click', showPopover]]],
2986
+ manual: [{
3174
2987
  content: [['mouseenter', emitPopContentMouseEnter], ['mouseleave', emitPopContentMouseLeave]],
3175
2988
  reference: [[]]
3176
- }
2989
+ }]
3177
2990
  };
3178
2991
  return (_triggerEvents$props$ = triggerEvents[props.trigger]) !== null && _triggerEvents$props$ !== void 0 ? _triggerEvents$props$ : [];
3179
2992
  };
@@ -3344,6 +3157,7 @@ var parentNodeReferId = null;
3344
3157
  refArrow = _ref.refArrow,
3345
3158
  refRoot = _ref.refRoot;
3346
3159
  var storeEvents = null;
3160
+ var uniqKey = random();
3347
3161
  var isFullscreen = (0,external_vue_namespaceObject.ref)(false);
3348
3162
  var fullscreenReferId = getFullscreenUid();
3349
3163
  var fullScreenTarget = (0,external_vue_namespaceObject.ref)();
@@ -3366,7 +3180,7 @@ var parentNodeReferId = null;
3366
3180
  getFullscreenRoot = _useFloating.getFullscreenRoot,
3367
3181
  stopHide = _useFloating.stopHide;
3368
3182
  var resetPopover = function resetPopover() {
3369
- cleanup === null || cleanup === void 0 || cleanup();
3183
+ cleanup === null || cleanup === void 0 ? void 0 : cleanup();
3370
3184
  createPopInstance();
3371
3185
  };
3372
3186
  var showFn = function showFn() {
@@ -3388,15 +3202,16 @@ var parentNodeReferId = null;
3388
3202
  elReference = _resolvePopElements.elReference,
3389
3203
  elContent = _resolvePopElements.elContent;
3390
3204
  storeEvents = resolveTriggerEvents();
3391
- if (Array.isArray(storeEvents)) {
3392
- addEventToTargetEl(elReference, storeEvents);
3393
- } else {
3394
- var _storeEvents = storeEvents,
3395
- content = _storeEvents.content,
3396
- reference = _storeEvents.reference;
3397
- addEventToTargetEl(elReference, reference);
3398
- addEventToTargetEl(elContent, content);
3399
- }
3205
+ storeEvents.forEach(function (storeEvent) {
3206
+ if (Array.isArray(storeEvent)) {
3207
+ addEventToTargetEl(elReference, storeEvent);
3208
+ } else {
3209
+ var content = storeEvent.content,
3210
+ reference = storeEvent.reference;
3211
+ addEventToTargetEl(elReference, reference);
3212
+ addEventToTargetEl(elContent, content);
3213
+ }
3214
+ });
3400
3215
  };
3401
3216
  var addEventToTargetEl = function addEventToTargetEl(target, evets) {
3402
3217
  evets.forEach(function (_ref2) {
@@ -3409,17 +3224,43 @@ var parentNodeReferId = null;
3409
3224
  });
3410
3225
  };
3411
3226
  var removeEventListener = function removeEventListener() {
3412
- var _storeEvents2;
3413
- if ((_storeEvents2 = storeEvents) !== null && _storeEvents2 !== void 0 && _storeEvents2.length) {
3227
+ var _storeEvents;
3228
+ if ((_storeEvents = storeEvents) !== null && _storeEvents !== void 0 && _storeEvents.length) {
3414
3229
  var _resolvePopElements2 = resolvePopElements(),
3415
- elReference = _resolvePopElements2.elReference;
3230
+ elReference = _resolvePopElements2.elReference,
3231
+ elContent = _resolvePopElements2.elContent;
3416
3232
  if (elReference) {
3417
- storeEvents.forEach(function (_ref4) {
3418
- var _ref5 = _slicedToArray(_ref4, 2),
3419
- event = _ref5[0],
3420
- listener = _ref5[1];
3421
- if (event && typeof listener === 'function') {
3422
- elReference.removeEventListener(event, listener);
3233
+ storeEvents.forEach(function (storeEvent) {
3234
+ if (Array.isArray(storeEvent)) {
3235
+ storeEvent.forEach(function (_ref4) {
3236
+ var _ref5 = _slicedToArray(_ref4, 2),
3237
+ event = _ref5[0],
3238
+ listener = _ref5[1];
3239
+ if (event && typeof listener === 'function') {
3240
+ elReference.removeEventListener(event, listener);
3241
+ }
3242
+ });
3243
+ } else {
3244
+ var content = storeEvent.content,
3245
+ reference = storeEvent.reference;
3246
+ content.forEach(function (_ref6) {
3247
+ var _ref7 = _slicedToArray(_ref6, 2),
3248
+ event = _ref7[0],
3249
+ listener = _ref7[1];
3250
+ if (event && typeof listener === 'function') {
3251
+ if (elContent) {
3252
+ elContent.removeEventListener(event, listener);
3253
+ }
3254
+ }
3255
+ });
3256
+ reference.forEach(function (_ref8) {
3257
+ var _ref9 = _slicedToArray(_ref8, 2),
3258
+ event = _ref9[0],
3259
+ listener = _ref9[1];
3260
+ if (event && typeof listener === 'function') {
3261
+ elReference.removeEventListener(event, listener);
3262
+ }
3263
+ });
3423
3264
  }
3424
3265
  });
3425
3266
  }
@@ -3436,8 +3277,8 @@ var parentNodeReferId = null;
3436
3277
  root = _resolvePopElements3.root;
3437
3278
  if (isFullscreen.value) {
3438
3279
  var _fullScreenTarget$val;
3439
- var _ref6 = elReference || root || {},
3440
- parentNode = _ref6.parentNode;
3280
+ var _ref10 = elReference || root || {},
3281
+ parentNode = _ref10.parentNode;
3441
3282
  boundary.value = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
3442
3283
  return;
3443
3284
  }
@@ -3447,13 +3288,13 @@ var parentNodeReferId = null;
3447
3288
  getPrefixId = _usePopperId.getPrefixId;
3448
3289
  var setFullscreenTag = function setFullscreenTag() {
3449
3290
  var _fullScreenTarget$val2;
3450
- fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
3291
+ fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 ? void 0 : _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
3451
3292
  };
3452
3293
  var clearFullscreenTag = function clearFullscreenTag() {
3453
3294
  var _fullScreenTarget$val3, _fullScreenTarget$val4;
3454
3295
  var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
3455
3296
  ((_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) {
3456
- element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
3297
+ element === null || element === void 0 ? void 0 : element.removeAttribute('data-fllsrn-id');
3457
3298
  });
3458
3299
  };
3459
3300
  var boundary = (0,external_vue_namespaceObject.ref)();
@@ -3492,16 +3333,30 @@ var parentNodeReferId = null;
3492
3333
  document.body.removeEventListener('fullscreenchange', handleFullscreenChange);
3493
3334
  };
3494
3335
  var handleClickOutside = function handleClickOutside(_e) {
3495
- ctx.emit(EMIT_EVENTS.CLICK_OUTSIDE, {
3496
- isShow: localIsShow.value,
3497
- event: _e
3498
- });
3499
- var needExec = props.disableOutsideClick || props.always || props.disabled || props.trigger === 'manual';
3500
- if (!props.forceClickoutside && needExec) {
3501
- return;
3502
- }
3503
- if (localIsShow.value) {
3504
- hideFn();
3336
+ var hideIgnoreReference = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
3337
+ var commonFunc = function commonFunc() {
3338
+ ctx.emit(EMIT_EVENTS.CLICK_OUTSIDE, {
3339
+ isShow: localIsShow.value,
3340
+ event: _e
3341
+ });
3342
+ var needExec = props.disableOutsideClick || props.always || props.disabled || props.trigger === 'manual';
3343
+ if (!props.forceClickoutside && needExec) {
3344
+ return;
3345
+ }
3346
+ if (localIsShow.value) {
3347
+ hideFn();
3348
+ }
3349
+ };
3350
+ if (hideIgnoreReference) {
3351
+ setTimeout(function () {
3352
+ if (ReferenceClickSharedState[uniqKey]) {
3353
+ ReferenceClickSharedState[uniqKey] = false;
3354
+ return;
3355
+ }
3356
+ return commonFunc();
3357
+ });
3358
+ } else {
3359
+ return commonFunc();
3505
3360
  }
3506
3361
  };
3507
3362
  return {
@@ -3520,7 +3375,8 @@ var parentNodeReferId = null;
3520
3375
  stopHide: stopHide,
3521
3376
  isFullscreen: isFullscreen,
3522
3377
  boundary: boundary,
3523
- localIsShow: localIsShow
3378
+ localIsShow: localIsShow,
3379
+ uniqKey: uniqKey
3524
3380
  };
3525
3381
  });
3526
3382
  ;// CONCATENATED MODULE: ../../packages/popover/src/popover.tsx
@@ -3560,31 +3416,29 @@ var parentNodeReferId = null;
3560
3416
 
3561
3417
 
3562
3418
 
3563
-
3564
3419
  function _isSlot(s) {
3565
3420
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
3566
3421
  }
3567
- /* harmony default export */ const popover = ((0,external_vue_namespaceObject.defineComponent)({
3422
+ /* harmony default export */ const popover = (defineComponent({
3568
3423
  name: 'Popover',
3569
3424
  components: {
3570
- // eslint-disable-next-line vue/no-reserved-component-names
3571
3425
  Content: content,
3572
3426
  Arrow: src_arrow,
3573
3427
  Root: root
3574
3428
  },
3575
3429
  directives: {
3576
- clickoutside: clickoutside
3430
+ clickoutside: directives_namespaceObject.clickoutside
3577
3431
  },
3578
3432
  props: PopoverProps,
3579
3433
  emits: EMIT_EVENT_TYPES,
3580
3434
  setup: function setup(props, ctx) {
3581
- var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
3435
+ var _toRefs = toRefs(props),
3582
3436
  reference = _toRefs.reference;
3583
- var refDefaultReference = (0,external_vue_namespaceObject.ref)();
3584
- var refContent = (0,external_vue_namespaceObject.ref)();
3585
- var refArrow = (0,external_vue_namespaceObject.ref)();
3586
- var refRoot = (0,external_vue_namespaceObject.ref)();
3587
- var refReference = (0,external_vue_namespaceObject.computed)(function () {
3437
+ var refDefaultReference = ref();
3438
+ var refContent = ref();
3439
+ var refArrow = ref();
3440
+ var refRoot = ref();
3441
+ var refReference = computed(function () {
3588
3442
  return reference.value || refDefaultReference.value;
3589
3443
  });
3590
3444
  var _usePopoverInit = use_popover_init(props, ctx, {
@@ -3607,9 +3461,10 @@ function _isSlot(s) {
3607
3461
  resetPopover = _usePopoverInit.resetPopover,
3608
3462
  stopHide = _usePopoverInit.stopHide,
3609
3463
  localIsShow = _usePopoverInit.localIsShow,
3610
- boundary = _usePopoverInit.boundary;
3464
+ boundary = _usePopoverInit.boundary,
3465
+ uniqKey = _usePopoverInit.uniqKey;
3611
3466
  if (!props.always && !props.disabled) {
3612
- (0,external_vue_namespaceObject.watch)(function () {
3467
+ watch(function () {
3613
3468
  return props.isShow;
3614
3469
  }, function () {
3615
3470
  props.isShow ? showPopover() : hidePopover();
@@ -3617,7 +3472,7 @@ function _isSlot(s) {
3617
3472
  immediate: true
3618
3473
  });
3619
3474
  }
3620
- (0,external_vue_namespaceObject.watch)(function () {
3475
+ watch(function () {
3621
3476
  return [props.disabled];
3622
3477
  }, function (val) {
3623
3478
  if (val[0]) {
@@ -3627,10 +3482,19 @@ function _isSlot(s) {
3627
3482
  }
3628
3483
  });
3629
3484
  updateBoundary();
3630
- (0,external_vue_namespaceObject.onMounted)(onMountedFn);
3631
- (0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
3632
- var transBoundary = (0,external_vue_namespaceObject.computed)(function () {
3633
- return localIsShow.value && !props.disableTeleport;
3485
+ onMounted(onMountedFn);
3486
+ onBeforeUnmount(onUnmountedFn);
3487
+ var isRenderModeShow = computed(function () {
3488
+ return props.renderDirective === 'show';
3489
+ });
3490
+ var transBoundary = computed(function () {
3491
+ return isRenderModeShow.value || localIsShow.value && !props.disableTeleport;
3492
+ });
3493
+ var contentIsShow = computed(function () {
3494
+ if (props.renderType === shared_namespaceObject.RenderType.AUTO) {
3495
+ return true;
3496
+ }
3497
+ return localIsShow.value;
3634
3498
  });
3635
3499
  var show = function show() {
3636
3500
  showFn();
@@ -3638,12 +3502,15 @@ function _isSlot(s) {
3638
3502
  var hide = function hide() {
3639
3503
  hideFn();
3640
3504
  };
3641
- var contentIsShow = (0,external_vue_namespaceObject.computed)(function () {
3642
- if (props.renderType === shared_namespaceObject.RenderType.AUTO) {
3643
- return true;
3505
+ var handleClickReferenceWraper = function handleClickReferenceWraper() {
3506
+ ReferenceClickSharedState[uniqKey] = true;
3507
+ };
3508
+ // 点击 content 收起面板
3509
+ var handleClickContent = function handleClickContent() {
3510
+ if (props.trigger !== 'manual' && !props.always && props.clickContentAutoHide) {
3511
+ localIsShow.value = false;
3644
3512
  }
3645
- return localIsShow.value;
3646
- });
3513
+ };
3647
3514
  var renderContent = function renderContent() {
3648
3515
  if (props.allowHtml) {
3649
3516
  var _contentAsHTMLElement = contentAsHTMLElement(props.content),
@@ -3660,7 +3527,9 @@ function _isSlot(s) {
3660
3527
  refArrow: refArrow,
3661
3528
  content: props.content,
3662
3529
  theme: props.theme,
3530
+ isRenderModeShow: isRenderModeShow,
3663
3531
  transBoundary: transBoundary,
3532
+ handleClickContent: handleClickContent,
3664
3533
  handleClickOutside: handleClickOutside,
3665
3534
  updatePopover: updatePopover,
3666
3535
  resetPopover: resetPopover,
@@ -3669,21 +3538,25 @@ function _isSlot(s) {
3669
3538
  stopHide: stopHide,
3670
3539
  contentIsShow: contentIsShow,
3671
3540
  renderContent: renderContent,
3672
- localIsShow: localIsShow
3541
+ localIsShow: localIsShow,
3542
+ handleClickReferenceWraper: handleClickReferenceWraper
3673
3543
  };
3674
3544
  },
3675
3545
  render: function render() {
3676
- var _slot;
3546
+ var _slot, _slot2;
3677
3547
  var _this$$slots$default,
3678
3548
  _this$$slots$default2,
3679
3549
  _this$$slots,
3550
+ _this$$slots$default3,
3551
+ _this$$slots$default4,
3552
+ _this$$slots2,
3680
3553
  _this = this,
3681
3554
  _this$$slots$content,
3682
3555
  _this$$slots$content2,
3683
- _this$$slots3;
3556
+ _this$$slots4;
3684
3557
  var renderReferSlot = function renderReferSlot(slot) {
3685
3558
  var _slot$;
3686
- if (external_vue_namespaceObject.Text === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
3559
+ if (Text === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
3687
3560
  return (0,external_vue_namespaceObject.createVNode)("span", null, [slot]);
3688
3561
  }
3689
3562
  return slot;
@@ -3692,42 +3565,55 @@ function _isSlot(s) {
3692
3565
  "ref": "refRoot"
3693
3566
  }, {
3694
3567
  "default": function _default() {
3695
- return [(0,external_vue_namespaceObject.createVNode)(reference, {
3568
+ return [_this.hideIgnoreReference ? (0,external_vue_namespaceObject.createVNode)("div", {
3569
+ "class": _this.referenceCls,
3570
+ "style": "display: inline-block;",
3571
+ "onClick": _this.handleClickReferenceWraper
3572
+ }, [(0,external_vue_namespaceObject.createVNode)(reference, {
3696
3573
  "ref": "refDefaultReference"
3697
3574
  }, _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 : {
3698
3575
  "default": function _default() {
3699
3576
  return [_slot];
3700
3577
  }
3701
- }), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
3702
- "to": _this.boundary,
3703
- "disabled": !_this.transBoundary
3578
+ })]) : (0,external_vue_namespaceObject.createVNode)(reference, {
3579
+ "ref": "refDefaultReference"
3580
+ }, _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 : {
3581
+ "default": function _default() {
3582
+ return [_slot2];
3583
+ }
3584
+ }), (0,external_vue_namespaceObject.createVNode)(Teleport, {
3585
+ "disabled": !_this.transBoundary,
3586
+ "to": _this.boundary
3704
3587
  }, {
3705
3588
  "default": function _default() {
3706
3589
  return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(content, {
3707
3590
  "ref": "refContent",
3708
- "visible": _this.localIsShow,
3709
- "data-theme": _this.theme,
3710
- "extCls": _this.extCls,
3711
3591
  "width": _this.width,
3712
3592
  "height": _this.height,
3713
- "maxWidth": _this.maxWidth,
3593
+ "extCls": _this.extCls,
3594
+ "data-theme": _this.theme,
3595
+ "eventDelay": _this.componentEventDelay,
3714
3596
  "maxHeight": _this.maxHeight,
3715
- "eventDelay": _this.componentEventDelay
3597
+ "maxWidth": _this.maxWidth,
3598
+ "visible": _this.localIsShow,
3599
+ "onClick": _this.handleClickContent
3716
3600
  }, {
3717
3601
  "default": function _default() {
3718
- 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() : ''];
3602
+ 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() : ''];
3719
3603
  },
3720
3604
  arrow: function arrow() {
3721
- var _this$$slots$arrow, _this$$slots2;
3605
+ var _this$$slots$arrow, _this$$slots3;
3722
3606
  return _this.arrow ? (0,external_vue_namespaceObject.createVNode)(src_arrow, {
3723
3607
  "ref": "refArrow"
3724
3608
  }, {
3725
3609
  "default": function _default() {
3726
- return [(_this$$slots$arrow = (_this$$slots2 = _this.$slots).arrow) === null || _this$$slots$arrow === void 0 ? void 0 : _this$$slots$arrow.call(_this$$slots2)];
3610
+ return [(_this$$slots$arrow = (_this$$slots3 = _this.$slots).arrow) === null || _this$$slots$arrow === void 0 ? void 0 : _this$$slots$arrow.call(_this$$slots3)];
3727
3611
  }
3728
3612
  }) : '';
3729
3613
  }
3730
- }), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), _this.handleClickOutside]])];
3614
+ }), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), function (e) {
3615
+ return _this.handleClickOutside(e, _this.hideIgnoreReference);
3616
+ }]])];
3731
3617
  }
3732
3618
  })];
3733
3619
  }
@@ -3803,36 +3689,36 @@ function createPopoverComponent(options) {
3803
3689
  var refReference = (0,external_vue_namespaceObject.ref)();
3804
3690
  var show = function show() {
3805
3691
  var _refReference$value, _refReference$value$s;
3806
- (_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);
3692
+ (_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);
3807
3693
  };
3808
3694
  var hide = function hide() {
3809
3695
  var _refReference$value2, _refReference$value2$;
3810
- (_refReference$value2 = refReference.value) === null || _refReference$value2 === void 0 || (_refReference$value2$ = _refReference$value2.hide) === null || _refReference$value2$ === void 0 || _refReference$value2$.call(_refReference$value2);
3696
+ (_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);
3811
3697
  };
3812
3698
  var stopHide = function stopHide() {
3813
3699
  var _refReference$value3, _refReference$value3$;
3814
- (_refReference$value3 = refReference.value) === null || _refReference$value3 === void 0 || (_refReference$value3$ = _refReference$value3.stopHide) === null || _refReference$value3$ === void 0 || _refReference$value3$.call(_refReference$value3);
3700
+ (_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);
3815
3701
  };
3816
3702
  var updateTarget = function updateTarget(target) {
3817
3703
  var _refReference$value4, _refReference$value4$;
3818
3704
  refProps.target = target;
3819
- (_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0 || _refReference$value4$.call(_refReference$value4);
3705
+ (_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);
3820
3706
  };
3821
3707
  var handleContentMouseenter = function handleContentMouseenter() {
3822
3708
  var _resolvedOptions$onCo;
3823
- (_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0 || _resolvedOptions$onCo.call(resolvedOptions);
3709
+ (_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0 ? void 0 : _resolvedOptions$onCo.call(resolvedOptions);
3824
3710
  };
3825
3711
  var handleContentMouseleave = function handleContentMouseleave() {
3826
3712
  var _resolvedOptions$onCo2;
3827
- (_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0 || _resolvedOptions$onCo2.call(resolvedOptions);
3713
+ (_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0 ? void 0 : _resolvedOptions$onCo2.call(resolvedOptions);
3828
3714
  };
3829
3715
  var handlePopoverHidden = function handlePopoverHidden() {
3830
3716
  var _resolvedOptions$onHi;
3831
- (_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0 || _resolvedOptions$onHi.call(resolvedOptions);
3717
+ (_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0 ? void 0 : _resolvedOptions$onHi.call(resolvedOptions);
3832
3718
  };
3833
3719
  var handlePopoverShow = function handlePopoverShow() {
3834
3720
  var _resolvedOptions$onSh;
3835
- (_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0 || _resolvedOptions$onSh.call(resolvedOptions);
3721
+ (_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0 ? void 0 : _resolvedOptions$onSh.call(resolvedOptions);
3836
3722
  };
3837
3723
  expose({
3838
3724
  show: show,
@@ -3843,10 +3729,10 @@ function createPopoverComponent(options) {
3843
3729
  return function () {
3844
3730
  return (0,external_vue_namespaceObject.createVNode)(popover, (0,external_vue_namespaceObject.mergeProps)(refProps, {
3845
3731
  "ref": refReference,
3846
- "onContentMouseenter": handleContentMouseenter,
3847
- "onContentMouseleave": handleContentMouseleave,
3848
3732
  "onAfterHidden": handlePopoverHidden,
3849
- "onAfterShow": handlePopoverShow
3733
+ "onAfterShow": handlePopoverShow,
3734
+ "onContentMouseenter": handleContentMouseenter,
3735
+ "onContentMouseleave": handleContentMouseleave
3850
3736
  }), null);
3851
3737
  };
3852
3738
  }
@@ -3881,7 +3767,7 @@ function createPopoverComponent(options) {
3881
3767
  }
3882
3768
  $PopoverInstance.unmount();
3883
3769
  $PopoverInstance = null;
3884
- (_$PopoverInstanceEl = $PopoverInstanceEl) === null || _$PopoverInstanceEl === void 0 || _$PopoverInstanceEl.remove();
3770
+ (_$PopoverInstanceEl = $PopoverInstanceEl) === null || _$PopoverInstanceEl === void 0 ? void 0 : _$PopoverInstanceEl.remove();
3885
3771
  };
3886
3772
  function close() {
3887
3773
  uninstall();
@@ -3892,17 +3778,17 @@ function createPopoverComponent(options) {
3892
3778
  install();
3893
3779
  if (target) {
3894
3780
  var _$PopoverInstanceVm;
3895
- (_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 || _$PopoverInstanceVm.updateTarget(target);
3781
+ (_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 ? void 0 : _$PopoverInstanceVm.updateTarget(target);
3896
3782
  }
3897
- (_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 || _$PopoverInstanceVm2.show();
3783
+ (_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 ? void 0 : _$PopoverInstanceVm2.show();
3898
3784
  }
3899
3785
  function update(e) {
3900
3786
  var _$PopoverInstanceVm3;
3901
- (_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 || _$PopoverInstanceVm3.updateTarget(e);
3787
+ (_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 ? void 0 : _$PopoverInstanceVm3.updateTarget(e);
3902
3788
  }
3903
3789
  function hide() {
3904
3790
  var _$PopoverInstanceVm4;
3905
- (_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0 || _$PopoverInstanceVm4.hide();
3791
+ (_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0 ? void 0 : _$PopoverInstanceVm4.hide();
3906
3792
  }
3907
3793
  immediate && install();
3908
3794
  return {