bkui-vue 0.0.1-beta.101 → 0.0.1-beta.102

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.
@@ -19,6 +19,7 @@ declare const BkPopover2: {
19
19
  boundary: string;
20
20
  disableTeleport: boolean;
21
21
  autoPlacement: boolean;
22
+ autoVisibility: boolean;
22
23
  disableOutsideClick: boolean;
23
24
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
24
25
  onAfterHidden: FunctionConstructor;
@@ -95,6 +96,11 @@ declare const BkPopover2: {
95
96
  } & {
96
97
  default: boolean;
97
98
  };
99
+ autoVisibility: import("vue-types").VueTypeValidableDef<boolean> & {
100
+ default: boolean;
101
+ } & {
102
+ default: boolean;
103
+ };
98
104
  disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
99
105
  default: boolean;
100
106
  } & {
@@ -104,7 +110,7 @@ declare const BkPopover2: {
104
110
  onShow?: (...args: any[]) => any;
105
111
  onHide?: (...args: any[]) => any;
106
112
  onClickoutside?: (...args: any[]) => any;
107
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "offset" | "zIndex" | "content" | "trigger" | "disabled" | "arrow" | "theme" | "width" | "height" | "always" | "padding" | "isShow" | "boundary" | "disableTeleport" | "autoPlacement" | "disableOutsideClick">;
113
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "offset" | "zIndex" | "content" | "trigger" | "disabled" | "arrow" | "theme" | "width" | "height" | "always" | "padding" | "isShow" | "boundary" | "disableTeleport" | "autoPlacement" | "autoVisibility" | "disableOutsideClick">;
108
114
  $attrs: {
109
115
  [x: string]: unknown;
110
116
  };
@@ -193,6 +199,11 @@ declare const BkPopover2: {
193
199
  } & {
194
200
  default: boolean;
195
201
  };
202
+ autoVisibility: import("vue-types").VueTypeValidableDef<boolean> & {
203
+ default: boolean;
204
+ } & {
205
+ default: boolean;
206
+ };
196
207
  disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
197
208
  default: boolean;
198
209
  } & {
@@ -210,7 +221,7 @@ declare const BkPopover2: {
210
221
  refArrow: import("vue").Ref<any>;
211
222
  content: string | number;
212
223
  theme: string;
213
- disableTeleport: boolean;
224
+ transBoundary: import("vue").ComputedRef<boolean>;
214
225
  width: string | number;
215
226
  height: string | number;
216
227
  handleClickOutside: (_e: MouseEvent) => void;
@@ -235,6 +246,7 @@ declare const BkPopover2: {
235
246
  boundary: string;
236
247
  disableTeleport: boolean;
237
248
  autoPlacement: boolean;
249
+ autoVisibility: boolean;
238
250
  disableOutsideClick: boolean;
239
251
  }> & {
240
252
  beforeCreate?: (() => void) | (() => void)[];
@@ -331,6 +343,11 @@ declare const BkPopover2: {
331
343
  } & {
332
344
  default: boolean;
333
345
  };
346
+ autoVisibility: import("vue-types").VueTypeValidableDef<boolean> & {
347
+ default: boolean;
348
+ } & {
349
+ default: boolean;
350
+ };
334
351
  disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
335
352
  default: boolean;
336
353
  } & {
@@ -348,7 +365,7 @@ declare const BkPopover2: {
348
365
  refArrow: import("vue").Ref<any>;
349
366
  content: string | number;
350
367
  theme: string;
351
- disableTeleport: boolean;
368
+ transBoundary: import("vue").ComputedRef<boolean>;
352
369
  width: string | number;
353
370
  height: string | number;
354
371
  handleClickOutside: (_e: MouseEvent) => void;
@@ -431,6 +448,11 @@ declare const BkPopover2: {
431
448
  } & {
432
449
  default: boolean;
433
450
  };
451
+ autoVisibility: import("vue-types").VueTypeValidableDef<boolean> & {
452
+ default: boolean;
453
+ } & {
454
+ default: boolean;
455
+ };
434
456
  disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
435
457
  default: boolean;
436
458
  } & {
@@ -448,7 +470,7 @@ declare const BkPopover2: {
448
470
  refArrow: import("vue").Ref<any>;
449
471
  content: string | number;
450
472
  theme: string;
451
- disableTeleport: boolean;
473
+ transBoundary: import("vue").ComputedRef<boolean>;
452
474
  width: string | number;
453
475
  height: string | number;
454
476
  handleClickOutside: (_e: MouseEvent) => void;
@@ -473,6 +495,7 @@ declare const BkPopover2: {
473
495
  boundary: string;
474
496
  disableTeleport: boolean;
475
497
  autoPlacement: boolean;
498
+ autoVisibility: boolean;
476
499
  disableOutsideClick: boolean;
477
500
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
478
501
  export default BkPopover2;
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../directives"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../directives"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../directives")):t(e["../shared"],e.vue,e["../directives"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{var o={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,c=0;e.exports=function(e,t,n){var s=t&&n||0,f=t||[],u=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==u||null==d){var p=i();null==u&&(u=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=r=16383&(p[6]<<8|p[7]))}var m=void 0!==e.msecs?e.msecs:(new Date).getTime(),h=void 0!==e.nsecs?e.nsecs:c+1,v=m-a+(h-c)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||m>a)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=m,c=h,r=d;var g=(1e4*(268435455&(m+=122192928e5))+h)%4294967296;f[s++]=g>>>24&255,f[s++]=g>>>16&255,f[s++]=g>>>8&255,f[s++]=255&g;var y=m/4294967296*1e4&268435455;f[s++]=y>>>8&255,f[s++]=255&y,f[s++]=y>>>24&15|16,f[s++]=y>>>16&255,f[s++]=d>>>8|128,f[s++]=255&d;for(var w=0;w<6;++w)f[s+w]=u[w];return t||l(f)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4061:e=>{"use strict";e.exports=n},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";i.r(l),i.d(l,{default:()=>Pe});var e=i(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=i(748),r=i(4061);const a=(0,o.defineComponent)({name:"PopArrow",render:function(){var t=(0,e.resolveClassName)("pop2-arrow");return(0,o.createVNode)("div",{class:t},null)}});function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s,f,u=function(){return!0};!function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside"}(f||(f={}));var d=(c(s={},f.SHOW,u),c(s,f.HIDE,u),c(s,f.CLICK_OUTSIDE,u),s);const p=(0,o.defineComponent)({name:"PopContent",props:{width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto")},setup:function(e){var t=function(e){return/^\d+\.?\d*$/.test("".concat(e))?"".concat(e,"px"):e};return{style:(0,o.computed)((function(){return{width:t(e.width),height:t(e.height)}}))}},render:function(){var t,n,r,i,l,a,c=[(0,e.resolveClassName)("popover2"),(0,e.resolveClassName)("pop2-content")];return(0,o.createVNode)("div",{class:c,tabindex:"-1",style:this.style},[null!==(r=null===(n=(t=this.$slots).default)||void 0===n?void 0:n.call(t))&&void 0!==r?r:"",null!==(a=null===(l=(i=this.$slots).arrow)||void 0===l?void 0:l.call(i))&&void 0!==a?a:""])}});var m={onAfterHidden:Function,onAfterShow:Function},h=Object.assign({isShow:e.PropTypes.bool.def(!1),always:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),content:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),placement:e.PropTypes.placement(["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"]).def("top"),theme:e.PropTypes.string.def("dark"),trigger:e.PropTypes.string.def("hover"),arrow:e.PropTypes.bool.def(!0),padding:e.PropTypes.number.def(5),offset:e.PropTypes.number.def(6),boundary:e.PropTypes.string.def(void 0),zIndex:e.PropTypes.number.def(void 0),disableTeleport:e.PropTypes.bool.def(!1),autoPlacement:e.PropTypes.bool.def(!1),disableOutsideClick:e.PropTypes.bool.def(!1)},m);const v=(0,o.defineComponent)({name:"PopReference",render:function(){var e,t,n;return null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""}});function g(e){return e.split("-")[0]}function y(e){return e.split("-")[1]}function w(e){return["top","bottom"].includes(g(e))?"x":"y"}function b(e){return"y"===e?"height":"width"}function x(e,t,n){let{reference:o,floating:r}=e;const i=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,a=w(t),c=b(a),s=o[c]/2-r[c]/2,f="x"===a;let u;switch(g(t)){case"top":u={x:i,y:o.y-r.height};break;case"bottom":u={x:i,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:l};break;case"left":u={x:o.x-r.width,y:l};break;default:u={x:o.x,y:o.y}}switch(y(t)){case"start":u[a]-=s*(n&&f?-1:1);break;case"end":u[a]+=s*(n&&f?-1:1)}return u}function T(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function P(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function R(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:d=!1,padding:p=0}=t,m=T(p),h=a[d?"floating"===u?"reference":"floating":u],v=P(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:f,strategy:c})),g=P(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===u?{...l.floating,x:o,y:r}:l.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:c}):l[u]);return{top:v.top-g.top+m.top,bottom:g.bottom-v.bottom+m.bottom,left:v.left-g.left+m.left,right:g.right-v.right+m.right}}const C=Math.min,O=Math.max;function A(e,t,n){return O(e,C(t,n))}const E=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:l,rects:a,platform:c}=t;if(null==n)return{};const s=T(o),f={x:r,y:i},u=w(l),d=y(l),p=b(u),m=await c.getDimensions(n),h="y"===u?"top":"left",v="y"===u?"bottom":"right",g=a.reference[p]+a.reference[u]-f[u]-a.floating[p],x=f[u]-a.reference[u],P=await(null==c.getOffsetParent?void 0:c.getOffsetParent(n));let R=P?"y"===u?P.clientHeight||0:P.clientWidth||0:0;0===R&&(R=a.floating[p]);const C=g/2-x/2,O=s[h],E=R-m[p]-s[v],S=R/2-m[p]/2+C,L=A(O,S,E),H=("start"===d?s[h]:s[v])>0&&S!==L&&a.reference[p]<=a.floating[p];return{[u]:f[u]-(H?S<O?O-S:E-S:0),data:{[u]:L,centerOffset:S-L}}}}),S={left:"right",right:"left",bottom:"top",top:"bottom"};function L(e){return e.replace(/left|right|bottom|top/g,(e=>S[e]))}function H(e,t,n){void 0===n&&(n=!1);const o=y(e),r=w(e),i=b(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=L(l)),{main:l,cross:L(l)}}const k={start:"end",end:"start"};function D(e){return e.replace(/start|end/g,(e=>k[e]))}const I=["top","right","bottom","left"],N=I.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),V=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,l;const{x:a,y:c,rects:s,middlewareData:f,placement:u,platform:d,elements:p}=t,{alignment:m=null,allowedPlacements:h=N,autoAlignment:v=!0,...w}=e,b=function(e,t,n){return(e?[...n.filter((t=>y(t)===e)),...n.filter((t=>y(t)!==e))]:n.filter((e=>g(e)===e))).filter((n=>!e||y(n)===e||!!t&&D(n)!==n))}(m,v,h),x=await R(t,w),T=null!=(n=null==(o=f.autoPlacement)?void 0:o.index)?n:0,P=b[T];if(null==P)return{};const{main:C,cross:O}=H(P,s,await(null==d.isRTL?void 0:d.isRTL(p.floating)));if(u!==P)return{x:a,y:c,reset:{placement:b[0]}};const A=[x[g(P)],x[C],x[O]],E=[...null!=(r=null==(i=f.autoPlacement)?void 0:i.overflows)?r:[],{placement:P,overflows:A}],S=b[T+1];if(S)return{data:{index:T+1,overflows:E},reset:{placement:S}};const L=E.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),k=null==(l=L.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:l.placement,I=null!=k?k:L[0].placement;return I!==u?{data:{index:T+1,overflows:E},reset:{placement:I}}:{}}}},j=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:s=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...m}=e,h=g(o),v=u||(h!==l&&p?function(e){const t=L(e);return[D(e),t,D(t)]}(l):[L(l)]),y=[l,...v],w=await R(t,m),b=[];let x=(null==(n=r.flip)?void 0:n.overflows)||[];if(s&&b.push(w[h]),f){const{main:e,cross:t}=H(o,i,await(null==a.isRTL?void 0:a.isRTL(c.floating)));b.push(w[e],w[t])}if(x=[...x,{placement:o,overflows:b}],!b.every((e=>e<=0))){var T,P;const e=(null!=(T=null==(P=r.flip)?void 0:P.index)?T:0)+1,t=y[e];if(t)return{data:{index:e,overflows:x},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var C;const e=null==(C=x.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:C[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}};function M(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function W(e){return I.some((t=>e[t]>=0))}const $=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=M(await R(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:W(t)}}}case"escaped":{const t=M(await R(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:W(t)}}}default:return{}}}}},q=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=g(n),a=y(n),c="x"===w(n),s=["left","top"].includes(l)?-1:1,f=i&&c?-1:1,u="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),c?{x:p*f,y:d*s}:{x:d*s,y:p*f}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};const z=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=e,s={x:n,y:o},f=await R(t,c),u=w(g(r)),d=function(e){return"x"===e?"y":"x"}(u);let p=s[u],m=s[d];if(i){const e="y"===u?"bottom":"right";p=A(p+f["y"===u?"top":"left"],p,p-f[e])}if(l){const e="y"===d?"bottom":"right";m=A(m+f["y"===d?"top":"left"],m,m-f[e])}const h=a.fn({...t,[u]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-o}}}}},F=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:o,elements:r,rects:i,platform:l,strategy:a}=t,{padding:c=2,x:s,y:f}=e,u=P(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(r.floating)),strategy:a}):i.reference),d=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(r.reference)))?n:[],p=T(c),m=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===d.length&&d[0].left>d[1].right&&null!=s&&null!=f)return null!=(e=d.find((e=>s>e.left-p.left&&s<e.right+p.right&&f>e.top-p.top&&f<e.bottom+p.bottom)))?e:u;if(d.length>=2){if("x"===w(o)){const e=d[0],t=d[d.length-1],n="top"===g(o),r=e.top,i=t.bottom,l=n?e.left:t.left,a=n?e.right:t.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const e="left"===g(o),t=O(...d.map((e=>e.right))),n=C(...d.map((e=>e.left))),r=d.filter((o=>e?o.left===n:o.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:n,right:t,width:t-n,height:l-i,x:n,y:i}}return u}},floating:r.floating,strategy:a});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}};function B(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function U(e){if(null==e)return window;if(!B(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function _(e){return U(e).getComputedStyle(e)}function K(e){return B(e)?"":e?(e.nodeName||"").toLowerCase():""}function X(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Y(e){return e instanceof U(e).HTMLElement}function Z(e){return e instanceof U(e).Element}function G(e){return"undefined"!=typeof ShadowRoot&&(e instanceof U(e).ShadowRoot||e instanceof ShadowRoot)}function J(e){const{overflow:t,overflowX:n,overflowY:o}=_(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function Q(e){return["table","td","th"].includes(K(e))}function ee(e){const t=/firefox/i.test(X()),n=_(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function te(){return!/^((?!chrome|android).)*safari/i.test(X())}const ne=Math.min,oe=Math.max,re=Math.round;function ie(e,t,n){var o,r,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let c=1,s=1;t&&Y(e)&&(c=e.offsetWidth>0&&re(a.width)/e.offsetWidth||1,s=e.offsetHeight>0&&re(a.height)/e.offsetHeight||1);const f=Z(e)?U(e):window,u=!te()&&n,d=(a.left+(u&&null!=(o=null==(r=f.visualViewport)?void 0:r.offsetLeft)?o:0))/c,p=(a.top+(u&&null!=(i=null==(l=f.visualViewport)?void 0:l.offsetTop)?i:0))/s,m=a.width/c,h=a.height/s;return{width:m,height:h,top:p,right:d+m,bottom:p+h,left:d,x:d,y:p}}function le(e){return(t=e,(t instanceof U(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function ae(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ce(e){return ie(le(e)).left+ae(e).scrollLeft}function se(e,t,n){const o=Y(t),r=le(t),i=ie(e,o&&function(e){const t=ie(e);return re(t.width)!==e.offsetWidth||re(t.height)!==e.offsetHeight}(t),"fixed"===n);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==K(t)||J(r))&&(l=ae(t)),Y(t)){const e=ie(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=ce(r));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function fe(e){return"html"===K(e)?e:e.assignedSlot||e.parentNode||(G(e)?e.host:null)||le(e)}function ue(e){return Y(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function de(e){const t=U(e);let n=ue(e);for(;n&&Q(n)&&"static"===getComputedStyle(n).position;)n=ue(n);return n&&("html"===K(n)||"body"===K(n)&&"static"===getComputedStyle(n).position&&!ee(n))?t:n||function(e){let t=fe(e);for(G(t)&&(t=t.host);Y(t)&&!["html","body"].includes(K(t));){if(ee(t))return t;t=t.parentNode}return null}(e)||t}function pe(e){if(Y(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=ie(e);return{width:t.width,height:t.height}}function me(e){const t=fe(e);return["html","body","#document"].includes(K(t))?e.ownerDocument.body:Y(t)&&J(t)?t:me(t)}function he(e,t){var n;void 0===t&&(t=[]);const o=me(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=U(o),l=r?[i].concat(i.visualViewport||[],J(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(he(l))}function ve(e,t,n){return"viewport"===t?P(function(e,t){const n=U(e),o=le(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,c=0;if(r){i=r.width,l=r.height;const e=te();(e||!e&&"fixed"===t)&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:l,x:a,y:c}}(e,n)):Z(t)?function(e,t){const n=ie(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):P(function(e){var t;const n=le(e),o=ae(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=oe(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=oe(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+ce(e);const c=-o.scrollTop;return"rtl"===_(r||n).direction&&(a+=oe(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}(le(e)))}function ge(e){const t=he(e),n=["absolute","fixed"].includes(_(e).position)&&Y(e)?de(e):e;return Z(n)?t.filter((e=>Z(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&G(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==K(e))):[]}const ye={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?ge(t):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=ve(t,n,r);return e.top=oe(o.top,e.top),e.right=ne(o.right,e.right),e.bottom=ne(o.bottom,e.bottom),e.left=oe(o.left,e.left),e}),ve(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=Y(n),i=le(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==K(n)||J(i))&&(l=ae(n)),Y(n))){const e=ie(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}},isElement:Z,getDimensions:pe,getOffsetParent:de,getDocumentElement:le,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:se(t,de(n),o),floating:{...pe(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===_(e).direction},we=function(t,n,r,i,l){var a=(0,o.ref)(!1),s=["dark","light"],f=(0,o.computed)((function(){var e=t.theme.split(/\s+/);return e.sort((function(e,t){return Number(s.includes(t))-Number(s.includes(e))})),{systemThemes:e,customThemes:e.filter((function(e){return!s.includes(e)}))}})),u=function(){var e,n,o;return{elReference:d(null===(e=r.value)||void 0===e?void 0:e.$el),elContent:d(null===(n=i.value)||void 0===n?void 0:n.$el),elArrow:t.arrow?d(null===(o=l.value)||void 0===o?void 0:o.$el):null}},d=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):null},p=f.value.customThemes.join(" "),m=f.value.customThemes.reduce((function(e,t){return Object.assign(c({},"data-".concat(t,"-theme"),!0),e)}),{}),h="".concat(p),v=null,g=function(){var e=u(),n=e.elReference,o=e.elContent,r=e.elArrow,i=function(e){return{placement:t.placement,middleware:[F(),q(t.offset),t.autoPlacement?V():j(),z({padding:t.padding}),E({element:e}),$()]}}(r);v=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,c=r&&!a,s=i&&!a,f=c||s?[...Z(e)?he(e):[],...he(t)]:[];f.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));let u,d=null;l&&(d=new ResizeObserver(n),Z(e)&&!a&&d.observe(e),d.observe(t));let p=a?ie(e):null;return a&&function t(){const o=ie(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,u=requestAnimationFrame(t)}(),l||n(),()=>{var e;f.forEach((e=>{c&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(u)}}(n,o,(function(){((e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:s,y:f}=x(c,o,a),u=o,d={};for(let n=0;n<i.length;n++){const{name:p,fn:m}=i[n],{x:h,y:v,data:g,reset:y}=await m({x:s,y:f,initialPlacement:o,placement:u,strategy:r,middlewareData:d,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=h?h:s,f=null!=v?v:f,d={...d,[p]:{...d[p],...g}},y&&("object"==typeof y&&(y.placement&&(u=y.placement),y.rects&&(c=!0===y.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):y.rects),({x:s,y:f}=x(c,u,a))),n=-1)}return{x:s,y:f,placement:u,strategy:r,middlewareData:d}})(e,t,{platform:ye,...n}))(n,o,i).then((function(e){var n=e.x,i=e.y,l=e.placement,a=e.middlewareData,s=o.className;o.className="".concat(s.replace(h,"")," ").concat(h).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(m).forEach((function(e){o.setAttribute(e,m[e])}));var f=a.hide.referenceHidden;if(Object.assign(o.style,{left:"".concat(n,"px"),top:"".concat(i,"px"),visibility:f?"hidden":"visible"}),t.arrow){var u=a.arrow,d=u.x,p=u.y,v=l.split("-")[0],g={top:"bottom",right:"left",bottom:"top",left:"right"}[v];r.setAttribute("data-arrow",v),Object.assign(r.style,c({left:y(d)?"".concat(d,"px"):"",top:y(p)?"".concat(p,"px"):"",right:"",bottom:""},g,"-4px"))}}))}))},y=function(e){return/^-?\d+\.?\d*$/.test("".concat(e))},w=function(){a.value=!0},b=function(){a.value=!1},T=function(){a.value?b():w()},P=function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),T()};return(0,o.watch)(a,(function(o){var r,l;o?((l=d(null===(r=i.value)||void 0===r?void 0:r.$el)).style.setProperty("display","block"),l.style.setProperty("z-index","".concat(t.zIndex?t.zIndex:e.bkZIndexManager.getModalNextIndex())),g(),n.emit("afterShow",{isSHow:!0})):function(){var e;d(null===(e=i.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),n.emit("afterHidden",{isSHow:!1})}()})),{showPopover:w,hidePopover:b,resolveTriggerEvents:function(){var e;return null!==(e={hover:[["mouseenter",w],["mouseleave",b],["focus",w],["blur",b]],click:[["click",P]],manual:[[]]}[t.trigger])&&void 0!==e?e:[]},updatePopover:g,triggerPopover:T,resolvePopElements:u,localIsShow:a,cleanup:v}};var be=i(8022),xe=null;const Te=(0,o.defineComponent)({name:"Popover2",components:{Content:p,Arrow:a},directives:{clickoutside:r.clickoutside},props:h,emits:d,setup:function(e,t){var r=e.content,i=e.theme,l=e.disableTeleport,a=e.width,c=e.height,s=(0,o.ref)(),u=(0,o.ref)(),d=(0,o.ref)(),p=null,m=we(e,t,s,u,d),h=m.localIsShow,v=m.showPopover,g=m.hidePopover,y=m.resolveTriggerEvents,w=m.updatePopover,b=m.resolvePopElements,x=m.cleanup,T=function(){g()},P=function(){w(),e.always?v():R()};e.always||e.disabled||(0,o.watch)((function(){return e.isShow}),(function(){e.isShow?v():g()}),{immediate:!0}),(0,o.watch)((function(){return[e.disabled]}),(function(e){e[0]?P():C()}));var R=function(){var e=b().elReference;(p=y()).forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.addEventListener(r,i)}))},C=function(){"function"==typeof x&&x(),function(){if(null==p?void 0:p.length){var e=b().elReference;e&&p.forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.removeEventListener(r,i)})),p=null}}()};(0,o.onMounted)((function(){e.disabled||P()})),(0,o.onUnmounted)((function(){C()})),t.expose({show:function(){v()},hide:T});var O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#",t=function(){return"".concat(e).concat(xe)},n=function(){return document.querySelector(t())instanceof HTMLElement};if(null===xe||!n()){xe="id_".concat((0,be.v4)());var o=document.createElement("div");o.setAttribute("id",xe),o.setAttribute("data-popper-id",xe),document.body.append(o)}return{popContainerId:xe,prefixId:t()}}(),A=O.prefixId;return{boundary:"string"==typeof e.boundary?e.boundary:A,arrow:e.arrow,refReference:s,refContent:u,refArrow:d,content:r,theme:i,disableTeleport:l,width:a,height:c,handleClickOutside:function(n){console.log("handleClickOutside",h.value),t.emit(f.CLICK_OUTSIDE,{isShow:h.value}),e.disableOutsideClick||e.always||e.disabled||"manual"===e.trigger||h.value&&T()}}},render:function(){var e,t,n,r,i,l,c=this;return(0,o.createVNode)(o.Fragment,null,[(0,o.createVNode)(v,{ref:"refReference"},{default:function(){return[null!==(n=null===(t=(e=c.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:(0,o.createVNode)("span",null,null)]}}),(0,o.createVNode)(o.Teleport,{to:this.boundary,disabled:this.disableTeleport},{default:function(){return[(0,o.withDirectives)((0,o.createVNode)(p,{ref:"refContent","data-theme":c.theme,width:c.width,height:c.height},{default:function(){return[null!==(l=null===(i=(r=c.$slots).content)||void 0===i?void 0:i.call(r))&&void 0!==l?l:c.content]},arrow:function(){var e,t;return c.arrow?(0,o.createVNode)(a,{ref:"refArrow"},{default:function(){return[null===(t=(e=c.$slots).arrow)||void 0===t?void 0:t.call(e)]}}):""}}),[[(0,o.resolveDirective)("clickoutside"),c.handleClickOutside]])]}})])}}),Pe=(0,e.withInstall)(Te)})(),l})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../directives"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../directives"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../directives")):t(e["../shared"],e.vue,e["../directives"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{var o={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,s=0;e.exports=function(e,t,n){var c=t&&n||0,u=t||[],f=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==f||null==d){var p=i();null==f&&(f=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=r=16383&(p[6]<<8|p[7]))}var m=void 0!==e.msecs?e.msecs:(new Date).getTime(),h=void 0!==e.nsecs?e.nsecs:s+1,v=m-a+(h-s)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||m>a)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=m,s=h,r=d;var g=(1e4*(268435455&(m+=122192928e5))+h)%4294967296;u[c++]=g>>>24&255,u[c++]=g>>>16&255,u[c++]=g>>>8&255,u[c++]=255&g;var y=m/4294967296*1e4&268435455;u[c++]=y>>>8&255,u[c++]=255&y,u[c++]=y>>>24&15|16,u[c++]=y>>>16&255,u[c++]=d>>>8|128,u[c++]=255&d;for(var w=0;w<6;++w)u[c+w]=f[w];return t||l(u)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4061:e=>{"use strict";e.exports=n},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";i.r(l),i.d(l,{default:()=>we});var e=i(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=i(748),r=i(4061);const a=(0,o.defineComponent)({name:"PopArrow",render:function(){var t=(0,e.resolveClassName)("pop2-arrow");return(0,o.createVNode)("div",{class:t},null)}});function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c,u,f=function(){return!0};!function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside"}(u||(u={}));var d=(s(c={},u.SHOW,f),s(c,u.HIDE,f),s(c,u.CLICK_OUTSIDE,f),c);const p=(0,o.defineComponent)({name:"PopContent",props:{width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto")},setup:function(e){var t=function(e){return/^\d+\.?\d*$/.test("".concat(e))?"".concat(e,"px"):e};return{style:(0,o.computed)((function(){return{width:t(e.width),height:t(e.height)}}))}},render:function(){var t,n,r,i,l,a,s=[(0,e.resolveClassName)("popover2"),(0,e.resolveClassName)("pop2-content")];return(0,o.createVNode)("div",{class:s,tabindex:"-1",style:this.style},[null!==(r=null===(n=(t=this.$slots).default)||void 0===n?void 0:n.call(t))&&void 0!==r?r:"",null!==(a=null===(l=(i=this.$slots).arrow)||void 0===l?void 0:l.call(i))&&void 0!==a?a:""])}});var m={onAfterHidden:Function,onAfterShow:Function},h=Object.assign({isShow:e.PropTypes.bool.def(!1),always:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),content:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),placement:e.PropTypes.placement(["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"]).def("top"),theme:e.PropTypes.string.def("dark"),trigger:e.PropTypes.string.def("hover"),arrow:e.PropTypes.bool.def(!0),padding:e.PropTypes.number.def(5),offset:e.PropTypes.number.def(6),boundary:e.PropTypes.string.def(void 0),zIndex:e.PropTypes.number.def(void 0),disableTeleport:e.PropTypes.bool.def(!0),autoPlacement:e.PropTypes.bool.def(!1),autoVisibility:e.PropTypes.bool.def(!1),disableOutsideClick:e.PropTypes.bool.def(!1)},m);const v=(0,o.defineComponent)({name:"PopReference",render:function(){var e,t,n;return null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""}});function g(e){return e.split("-")[0]}function y(e){return e.split("-")[1]}function w(e){return["top","bottom"].includes(g(e))?"x":"y"}function b(e){return"y"===e?"height":"width"}function x(e,t,n){let{reference:o,floating:r}=e;const i=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,a=w(t),s=b(a),c=o[s]/2-r[s]/2,u="x"===a;let f;switch(g(t)){case"top":f={x:i,y:o.y-r.height};break;case"bottom":f={x:i,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:l};break;case"left":f={x:o.x-r.width,y:l};break;default:f={x:o.x,y:o.y}}switch(y(t)){case"start":f[a]-=c*(n&&u?-1:1);break;case"end":f[a]+=c*(n&&u?-1:1)}return f}function T(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function P(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function R(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,m=T(p),h=a[d?"floating"===f?"reference":"floating":f],v=P(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),g=P(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...l.floating,x:o,y:r}:l.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:s}):l[f]);return{top:v.top-g.top+m.top,bottom:g.bottom-v.bottom+m.bottom,left:v.left-g.left+m.left,right:g.right-v.right+m.right}}const C=Math.min,O=Math.max;function A(e,t,n){return O(e,C(t,n))}const E=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:l,rects:a,platform:s}=t;if(null==n)return{};const c=T(o),u={x:r,y:i},f=w(l),d=y(l),p=b(f),m=await s.getDimensions(n),h="y"===f?"top":"left",v="y"===f?"bottom":"right",g=a.reference[p]+a.reference[f]-u[f]-a.floating[p],x=u[f]-a.reference[f],P=await(null==s.getOffsetParent?void 0:s.getOffsetParent(n));let R=P?"y"===f?P.clientHeight||0:P.clientWidth||0:0;0===R&&(R=a.floating[p]);const C=g/2-x/2,O=c[h],E=R-m[p]-c[v],S=R/2-m[p]/2+C,L=A(O,S,E),H=("start"===d?c[h]:c[v])>0&&S!==L&&a.reference[p]<=a.floating[p];return{[f]:u[f]-(H?S<O?O-S:E-S:0),data:{[f]:L,centerOffset:S-L}}}}),S={left:"right",right:"left",bottom:"top",top:"bottom"};function L(e){return e.replace(/left|right|bottom|top/g,(e=>S[e]))}function H(e,t,n){void 0===n&&(n=!1);const o=y(e),r=w(e),i=b(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=L(l)),{main:l,cross:L(l)}}const k={start:"end",end:"start"};function D(e){return e.replace(/start|end/g,(e=>k[e]))}const V=["top","right","bottom","left"],I=V.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function N(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function j(e){return V.some((t=>e[t]>=0))}const M=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=g(n),a=y(n),s="x"===w(n),c=["left","top"].includes(l)?-1:1,u=i&&s?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),s?{x:p*u,y:d*c}:{x:d*c,y:p*u}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};const W=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=e,c={x:n,y:o},u=await R(t,s),f=w(g(r)),d=function(e){return"x"===e?"y":"x"}(f);let p=c[f],m=c[d];if(i){const e="y"===f?"bottom":"right";p=A(p+u["y"===f?"top":"left"],p,p-u[e])}if(l){const e="y"===d?"bottom":"right";m=A(m+u["y"===d?"top":"left"],m,m-u[e])}const h=a.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-o}}}}};function $(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function q(e){if(null==e)return window;if(!$(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function B(e){return q(e).getComputedStyle(e)}function F(e){return $(e)?"":e?(e.nodeName||"").toLowerCase():""}function z(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function U(e){return e instanceof q(e).HTMLElement}function _(e){return e instanceof q(e).Element}function K(e){return"undefined"!=typeof ShadowRoot&&(e instanceof q(e).ShadowRoot||e instanceof ShadowRoot)}function X(e){const{overflow:t,overflowX:n,overflowY:o}=B(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function Y(e){return["table","td","th"].includes(F(e))}function Z(e){const t=/firefox/i.test(z()),n=B(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function G(){return!/^((?!chrome|android).)*safari/i.test(z())}const J=Math.min,Q=Math.max,ee=Math.round;function te(e,t,n){var o,r,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let s=1,c=1;t&&U(e)&&(s=e.offsetWidth>0&&ee(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&ee(a.height)/e.offsetHeight||1);const u=_(e)?q(e):window,f=!G()&&n,d=(a.left+(f&&null!=(o=null==(r=u.visualViewport)?void 0:r.offsetLeft)?o:0))/s,p=(a.top+(f&&null!=(i=null==(l=u.visualViewport)?void 0:l.offsetTop)?i:0))/c,m=a.width/s,h=a.height/c;return{width:m,height:h,top:p,right:d+m,bottom:p+h,left:d,x:d,y:p}}function ne(e){return(t=e,(t instanceof q(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function oe(e){return _(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function re(e){return te(ne(e)).left+oe(e).scrollLeft}function ie(e,t,n){const o=U(t),r=ne(t),i=te(e,o&&function(e){const t=te(e);return ee(t.width)!==e.offsetWidth||ee(t.height)!==e.offsetHeight}(t),"fixed"===n);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==F(t)||X(r))&&(l=oe(t)),U(t)){const e=te(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=re(r));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function le(e){return"html"===F(e)?e:e.assignedSlot||e.parentNode||(K(e)?e.host:null)||ne(e)}function ae(e){return U(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function se(e){const t=q(e);let n=ae(e);for(;n&&Y(n)&&"static"===getComputedStyle(n).position;)n=ae(n);return n&&("html"===F(n)||"body"===F(n)&&"static"===getComputedStyle(n).position&&!Z(n))?t:n||function(e){let t=le(e);for(K(t)&&(t=t.host);U(t)&&!["html","body"].includes(F(t));){if(Z(t))return t;t=t.parentNode}return null}(e)||t}function ce(e){if(U(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=te(e);return{width:t.width,height:t.height}}function ue(e){const t=le(e);return["html","body","#document"].includes(F(t))?e.ownerDocument.body:U(t)&&X(t)?t:ue(t)}function fe(e,t){var n;void 0===t&&(t=[]);const o=ue(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=q(o),l=r?[i].concat(i.visualViewport||[],X(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(fe(l))}function de(e,t,n){return"viewport"===t?P(function(e,t){const n=q(e),o=ne(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,s=0;if(r){i=r.width,l=r.height;const e=G();(e||!e&&"fixed"===t)&&(a=r.offsetLeft,s=r.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,n)):_(t)?function(e,t){const n=te(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):P(function(e){var t;const n=ne(e),o=oe(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=Q(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=Q(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+re(e);const s=-o.scrollTop;return"rtl"===B(r||n).direction&&(a+=Q(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}(ne(e)))}function pe(e){const t=fe(e),n=["absolute","fixed"].includes(B(e).position)&&U(e)?se(e):e;return _(n)?t.filter((e=>_(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&K(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==F(e))):[]}const me={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?pe(t):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=de(t,n,r);return e.top=Q(o.top,e.top),e.right=J(o.right,e.right),e.bottom=J(o.bottom,e.bottom),e.left=Q(o.left,e.left),e}),de(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=U(n),i=ne(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==F(n)||X(i))&&(l=oe(n)),U(n))){const e=te(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}},isElement:_,getDimensions:ce,getOffsetParent:se,getDocumentElement:ne,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:ie(t,se(n),o),floating:{...ce(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===B(e).direction},he=function(t,r,i,l,a){var c=(0,o.ref)(!1),u=["dark","light"],f=(0,o.computed)((function(){var e=t.theme.split(/\s+/);return e.sort((function(e,t){return Number(u.includes(t))-Number(u.includes(e))})),{systemThemes:e,customThemes:e.filter((function(e){return!u.includes(e)}))}})),d=function(){var e,n,o;return{elReference:p(null===(e=i.value)||void 0===e?void 0:e.$el),elContent:p(null===(n=l.value)||void 0===n?void 0:n.$el),elArrow:t.arrow?p(null===(o=a.value)||void 0===o?void 0:o.$el):null}},p=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):null},m=f.value.customThemes.join(" "),h=f.value.customThemes.reduce((function(e,t){return Object.assign(s({},"data-".concat(t,"-theme"),!0),e)}),{}),v="".concat(m),b=null,A=function(e){var t=window.devicePixelRatio||1;return Math.round(e*t)/t||0},S=function(){return null!==document.fullscreenElement},k=function(){var e=d(),o=e.elReference,r=e.elContent,i=e.elArrow,l=function(e){var n=[M(t.offset),W({padding:t.padding}),E({element:e})],o={placement:t.placement,middleware:n};return t.autoPlacement?n.push(function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,l;const{x:a,y:s,rects:c,middlewareData:u,placement:f,platform:d,elements:p}=t,{alignment:m=null,allowedPlacements:h=I,autoAlignment:v=!0,...w}=e,b=function(e,t,n){return(e?[...n.filter((t=>y(t)===e)),...n.filter((t=>y(t)!==e))]:n.filter((e=>g(e)===e))).filter((n=>!e||y(n)===e||!!t&&D(n)!==n))}(m,v,h),x=await R(t,w),T=null!=(n=null==(o=u.autoPlacement)?void 0:o.index)?n:0,P=b[T];if(null==P)return{};const{main:C,cross:O}=H(P,c,await(null==d.isRTL?void 0:d.isRTL(p.floating)));if(f!==P)return{x:a,y:s,reset:{placement:b[0]}};const A=[x[g(P)],x[C],x[O]],E=[...null!=(r=null==(i=u.autoPlacement)?void 0:i.overflows)?r:[],{placement:P,overflows:A}],S=b[T+1];if(S)return{data:{index:T+1,overflows:E},reset:{placement:S}};const L=E.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),k=null==(l=L.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:l.placement,V=null!=k?k:L[0].placement;return V!==f?{data:{index:T+1,overflows:E},reset:{placement:V}}:{}}}}()):(n.unshift(function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:o,elements:r,rects:i,platform:l,strategy:a}=t,{padding:s=2,x:c,y:u}=e,f=P(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(r.floating)),strategy:a}):i.reference),d=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(r.reference)))?n:[],p=T(s),m=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===d.length&&d[0].left>d[1].right&&null!=c&&null!=u)return null!=(e=d.find((e=>c>e.left-p.left&&c<e.right+p.right&&u>e.top-p.top&&u<e.bottom+p.bottom)))?e:f;if(d.length>=2){if("x"===w(o)){const e=d[0],t=d[d.length-1],n="top"===g(o),r=e.top,i=t.bottom,l=n?e.left:t.left,a=n?e.right:t.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const e="left"===g(o),t=O(...d.map((e=>e.right))),n=C(...d.map((e=>e.left))),r=d.filter((o=>e?o.left===n:o.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:n,right:t,width:t-n,height:l-i,x:n,y:i}}return f}},floating:r.floating,strategy:a});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}}()),n.push(function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:s}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...m}=e,h=g(o),v=f||(h!==l&&p?function(e){const t=L(e);return[D(e),t,D(t)]}(l):[L(l)]),y=[l,...v],w=await R(t,m),b=[];let x=(null==(n=r.flip)?void 0:n.overflows)||[];if(c&&b.push(w[h]),u){const{main:e,cross:t}=H(o,i,await(null==a.isRTL?void 0:a.isRTL(s.floating)));b.push(w[e],w[t])}if(x=[...x,{placement:o,overflows:b}],!b.every((e=>e<=0))){var T,P;const e=(null!=(T=null==(P=r.flip)?void 0:P.index)?T:0)+1,t=y[e];if(t)return{data:{index:e,overflows:x},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var C;const e=null==(C=x.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:C[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}}())),t.autoVisibility&&o.middleware.push(function(e){let{strategy:t="referenceHidden",...n}={};return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=N(await R(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:j(t)}}}case"escaped":{const t=N(await R(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:j(t)}}}default:return{}}}}}()),o}(i);b=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,s=r&&!a,c=i&&!a,u=s||c?[..._(e)?fe(e):[],...fe(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let f,d=null;l&&(d=new ResizeObserver(n),_(e)&&!a&&d.observe(e),d.observe(t));let p=a?te(e):null;return a&&function t(){const o=te(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,f=requestAnimationFrame(t)}(),l||n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(f)}}(o,r,(function(){((e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=await(null==l.isRTL?void 0:l.isRTL(t));let s=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:u}=x(s,o,a),f=o,d={};for(let n=0;n<i.length;n++){const{name:p,fn:m}=i[n],{x:h,y:v,data:g,reset:y}=await m({x:c,y:u,initialPlacement:o,placement:f,strategy:r,middlewareData:d,rects:s,platform:l,elements:{reference:e,floating:t}});c=null!=h?h:c,u=null!=v?v:u,d={...d,[p]:{...d[p],...g}},y&&("object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(s=!0===y.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):y.rects),({x:c,y:u}=x(s,f,a))),n=-1)}return{x:c,y:u,placement:f,strategy:r,middlewareData:d}})(e,t,{platform:me,...n}))(o,r,l).then((function(e){var l=e.x,a=e.y,c=e.placement,u=e.middlewareData,f=r.className;r.className="".concat(f.replace(v,"")," ").concat(v).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(h).forEach((function(e){r.setAttribute(e,h[e])}));var d=c.split("-")[0],p=d;["left","right","top","bottom"].includes(d)||(p="top"),function(e,n,o,r,i,l){var a,s,c=l.getBoundingClientRect(),u=c.left,f=c.top;if(Object.assign(e.style,{left:"0",top:"0",transform:"translate3d(".concat(S()?(s=n,["left","right"].includes(r)?A(s):u):A(n),"px,").concat(S()?(a=o,["top","bottom"].includes(r)?A(a):f):A(o),"px,0)")}),t.autoVisibility){var d=i.hide.referenceHidden;Object.assign(e.style,{visibility:d?"hidden":"visible"})}}(r,l,a,p,u,o),function(e,o,r,i){var l=i.getBoundingClientRect(),a=l.left,c=l.top,u=l.bottom,f=l.right;if(t.arrow){var d,p=r.arrow,m=p.x,h=p.y,v={top:1,right:-1,bottom:-1,left:1}[o],g=function(e,t,n){var r,i;return[e,null!==(i=null===(r={x:{left:"right",right:"left"},y:{top:"bottom",bottom:"top"}}[t])||void 0===r?void 0:r[o])&&void 0!==i?i:n]},y=function(e){if(S()){if(["left","right"].includes(o))return A((u-c)/2)-2;if(["top","bottom"].includes(o))return A((f-a)/2)-2}return V(e)?A(e):0};e.setAttribute("data-arrow",o);var w=n(g(["left","right"].includes(o)?4*v:y(m),"x","left"),2),b=w[0],x=w[1],T=n(g(["top","bottom"].includes(o)?4*v:y(h),"y","top"),2),P=T[0],R=T[1];Object.assign(e.style,(s(d={},x,"0"),s(d,R,"0"),s(d,"transform","translate(".concat(b,"px,").concat(P,"px) rotate(45deg)")),d))}}(i,p,u,o)}))}))},V=function(e){return/^-?\d+\.?\d*$/.test("".concat(e))},$=function(){c.value=!0},q=function(){c.value=!1},B=function(){c.value?q():$()},F=function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),B()};return(0,o.watch)(c,(function(n){var o,i;n?((i=p(null===(o=l.value)||void 0===o?void 0:o.$el)).style.setProperty("display","block"),i.style.setProperty("z-index","".concat(t.zIndex?t.zIndex:e.bkZIndexManager.getModalNextIndex())),k(),r.emit("afterShow",{isSHow:!0})):function(){var e;p(null===(e=l.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),r.emit("afterHidden",{isSHow:!1})}()})),{showPopover:$,hidePopover:q,resolveTriggerEvents:function(){var e;return null!==(e={hover:[["mouseenter",$],["mouseleave",q],["focus",$],["blur",q]],click:[["click",F]],manual:[[]]}[t.trigger])&&void 0!==e?e:[]},updatePopover:k,triggerPopover:B,resolvePopElements:d,isElementFullScreen:S,localIsShow:c,cleanup:b}};var ve=i(8022),ge=null;const ye=(0,o.defineComponent)({name:"Popover2",components:{Content:p,Arrow:a},directives:{clickoutside:r.clickoutside},props:h,emits:d,setup:function(e,t){var r=e.content,i=e.theme,l=e.width,a=e.height,s=e.disableTeleport,c=(0,o.ref)(),f=(0,o.ref)(),d=(0,o.ref)(),p=null,m=he(e,t,c,f,d),h=m.localIsShow,v=m.showPopover,g=m.hidePopover,y=m.resolveTriggerEvents,w=m.updatePopover,b=m.resolvePopElements,x=m.isElementFullScreen,T=m.cleanup,P=function(){g()},R=function(){w(),e.always?v():C()};e.always||e.disabled||(0,o.watch)((function(){return e.isShow}),(function(){e.isShow?v():g()}),{immediate:!0}),(0,o.watch)((function(){return[e.disabled]}),(function(e){e[0]?R():O()}));var C=function(){var e=b().elReference;(p=y()).forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.addEventListener(r,i)}))},O=function(){"function"==typeof T&&T(),function(){if(null==p?void 0:p.length){var e=b().elReference;e&&p.forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.removeEventListener(r,i)})),p=null}}()};(0,o.onMounted)((function(){e.disabled||R()})),(0,o.onUnmounted)((function(){O()})),t.expose({show:function(){v()},hide:P});var A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#",t=function(){return"".concat(e).concat(ge)},n=function(){return document.querySelector(t())instanceof HTMLElement};if(null===ge||!n()){ge="id_".concat((0,ve.v4)());var o=document.createElement("div");o.setAttribute("id",ge),o.setAttribute("data-popper-id",ge),document.body.append(o)}return{popContainerId:ge,prefixId:t()}}(),E=A.prefixId,S="string"==typeof e.boundary?e.boundary:E,L=(0,o.computed)((function(){return!x()&&!s}));return{boundary:S,arrow:e.arrow,refReference:c,refContent:f,refArrow:d,content:r,theme:i,transBoundary:L,width:l,height:a,handleClickOutside:function(n){t.emit(u.CLICK_OUTSIDE,{isShow:h.value}),e.disableOutsideClick||e.always||e.disabled||"manual"===e.trigger||h.value&&P()}}},render:function(){var e,t,n,r,i,l,s=this;return(0,o.createVNode)(o.Fragment,null,[(0,o.createVNode)(v,{ref:"refReference"},{default:function(){return[null!==(n=null===(t=(e=s.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:(0,o.createVNode)("span",null,null)]}}),(0,o.createVNode)(o.Teleport,{to:this.boundary,disabled:!this.transBoundary},{default:function(){return[(0,o.withDirectives)((0,o.createVNode)(p,{ref:"refContent","data-theme":s.theme,width:s.width,height:s.height},{default:function(){return[null!==(l=null===(i=(r=s.$slots).content)||void 0===i?void 0:i.call(r))&&void 0!==l?l:s.content]},arrow:function(){var e,t;return s.arrow?(0,o.createVNode)(a,{ref:"refArrow"},{default:function(){return[null===(t=(e=s.$slots).arrow)||void 0===t?void 0:t.call(e)]}}):""}}),[[(0,o.resolveDirective)("clickoutside"),s.handleClickOutside]])]}})])}}),we=(0,e.withInstall)(ye)})(),l})()));
@@ -13,7 +13,6 @@
13
13
  width: 8px;
14
14
  height: 8px;
15
15
  background: #333;
16
- transform: rotate(45deg);
17
16
  }
18
17
  .bk-popover2.bk-pop2-content[data-theme='light'] {
19
18
  color: #26323d;
@@ -73,6 +73,11 @@ declare const _default: import("vue").DefineComponent<{
73
73
  } & {
74
74
  default: boolean;
75
75
  };
76
+ autoVisibility: import("vue-types").VueTypeValidableDef<boolean> & {
77
+ default: boolean;
78
+ } & {
79
+ default: boolean;
80
+ };
76
81
  disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
77
82
  default: boolean;
78
83
  } & {
@@ -86,7 +91,7 @@ declare const _default: import("vue").DefineComponent<{
86
91
  refArrow: import("vue").Ref<any>;
87
92
  content: string | number;
88
93
  theme: string;
89
- disableTeleport: boolean;
94
+ transBoundary: import("vue").ComputedRef<boolean>;
90
95
  width: string | number;
91
96
  height: string | number;
92
97
  handleClickOutside: (_e: MouseEvent) => void;
@@ -169,6 +174,11 @@ declare const _default: import("vue").DefineComponent<{
169
174
  } & {
170
175
  default: boolean;
171
176
  };
177
+ autoVisibility: import("vue-types").VueTypeValidableDef<boolean> & {
178
+ default: boolean;
179
+ } & {
180
+ default: boolean;
181
+ };
172
182
  disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
173
183
  default: boolean;
174
184
  } & {
@@ -195,6 +205,7 @@ declare const _default: import("vue").DefineComponent<{
195
205
  boundary: string;
196
206
  disableTeleport: boolean;
197
207
  autoPlacement: boolean;
208
+ autoVisibility: boolean;
198
209
  disableOutsideClick: boolean;
199
210
  }>;
200
211
  export default _default;
@@ -19,7 +19,6 @@
19
19
  width: 8px;
20
20
  height: 8px;
21
21
  background: #333;
22
- transform: rotate(45deg);
23
22
  }
24
23
 
25
24
  &[data-theme='light'] {
@@ -112,7 +112,6 @@
112
112
  width: 8px;
113
113
  height: 8px;
114
114
  background: #333;
115
- transform: rotate(45deg);
116
115
  }
117
116
  .bk-popover2.bk-pop2-content[data-theme='light'] {
118
117
  color: #26323d;
@@ -88,6 +88,11 @@ export declare const PopoverProps: {
88
88
  } & {
89
89
  default: boolean;
90
90
  };
91
+ autoVisibility: import("vue-types").VueTypeValidableDef<boolean> & {
92
+ default: boolean;
93
+ } & {
94
+ default: boolean;
95
+ };
91
96
  /**
92
97
  * 是否禁用clickoutside
93
98
  */
@@ -1,4 +1,5 @@
1
- declare const _default: (props: any, ctx: any, refReference: any, refContent: any, refArrow: any) => {
1
+ import { PopoverPropTypes } from './props';
2
+ declare const _default: (props: PopoverPropTypes, ctx: any, refReference: any, refContent: any, refArrow: any) => {
2
3
  showPopover: () => void;
3
4
  hidePopover: () => void;
4
5
  resolveTriggerEvents: () => any;
@@ -9,6 +10,7 @@ declare const _default: (props: any, ctx: any, refReference: any, refContent: an
9
10
  elContent: any;
10
11
  elArrow: any;
11
12
  };
13
+ isElementFullScreen: () => boolean;
12
14
  localIsShow: import("vue").Ref<boolean>;
13
15
  cleanup: any;
14
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.1-beta.101",
3
+ "version": "0.0.1-beta.102",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",