@vue-interface/btn-dropdown 2.0.0-beta.6 → 3.0.0
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.
- package/CHANGELOG.md +12 -0
- package/demo.css +4 -0
- package/docs/btn-dropdown.md +747 -0
- package/index.css +3 -0
- package/index.html +585 -0
- package/{dist/index.d.ts → index.ts} +4 -1
- package/package.json +18 -47
- package/src/BtnDropdown.vue +41 -0
- package/src/BtnDropdownSingle.vue +55 -0
- package/src/BtnDropdownSplit.vue +84 -0
- package/src/useDropdownHandler.ts +213 -0
- package/tsconfig.json +27 -0
- package/vite.config.js +52 -0
- package/dist/btn-dropdown.js +0 -1804
- package/dist/btn-dropdown.umd.cjs +0 -5
- package/dist/src/BtnDropdown.vue.d.ts +0 -9
- package/dist/src/BtnDropdownAction.vue.d.ts +0 -43
- package/dist/src/BtnDropdownSingle.vue.d.ts +0 -280
- package/dist/src/BtnDropdownSplit.vue.d.ts +0 -282
- package/dist/src/DropdownHandler.d.ts +0 -424
- package/dist/style.css +0 -1
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
(function(U,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(U=typeof globalThis<"u"?globalThis:U||self,i(U.BtnDropdown={},U.Vue))})(this,function(U,i){"use strict";var A="top",j="bottom",N="right",z="left",he="auto",ie=[A,j,N,z],ee="start",ae="end",vt="clippingParents",Le="viewport",se="popper",gt="reference",Ie=ie.reduce(function(e,t){return e.concat([t+"-"+ee,t+"-"+ae])},[]),qe=[].concat(ie,[he]).reduce(function(e,t){return e.concat([t,t+"-"+ee,t+"-"+ae])},[]),bt="beforeRead",yt="read",wt="afterRead",Ct="beforeMain",xt="main",Ot="afterMain",$t="beforeWrite",Pt="write",St="afterWrite",Pe=[bt,yt,wt,Ct,xt,Ot,$t,Pt,St];function q(e){return e?(e.nodeName||"").toLowerCase():null}function V(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function X(e){var t=V(e).Element;return e instanceof t||e instanceof Element}function R(e){var t=V(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Se(e){if(typeof ShadowRoot>"u")return!1;var t=V(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function kt(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!R(a)||!q(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(s){var p=o[s];p===!1?a.removeAttribute(s):a.setAttribute(s,p===!0?"":p)}))})}function Et(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),p=s.reduce(function(l,d){return l[d]="",l},{});!R(o)||!q(o)||(Object.assign(o.style,p),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const Bt={name:"applyStyles",enabled:!0,phase:"write",fn:kt,effect:Et,requires:["computeStyles"]};function M(e){return e.split("-")[0]}var Y=Math.max,me=Math.min,te=Math.round;function ke(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Fe(){return!/^((?!chrome|android).)*safari/i.test(ke())}function re(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&R(e)&&(o=e.offsetWidth>0&&te(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&te(n.height)/e.offsetHeight||1);var s=X(e)?V(e):window,p=s.visualViewport,l=!Fe()&&r,d=(n.left+(l&&p?p.offsetLeft:0))/o,f=(n.top+(l&&p?p.offsetTop:0))/a,v=n.width/o,w=n.height/a;return{width:v,height:w,top:f,right:d+v,bottom:f+w,left:d,x:d,y:f}}function Ee(e){var t=re(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function We(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Se(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function L(e){return V(e).getComputedStyle(e)}function Dt(e){return["table","td","th"].indexOf(q(e))>=0}function F(e){return((X(e)?e.ownerDocument:e.document)||window.document).documentElement}function ve(e){return q(e)==="html"?e:e.assignedSlot||e.parentNode||(Se(e)?e.host:null)||F(e)}function He(e){return!R(e)||L(e).position==="fixed"?null:e.offsetParent}function At(e){var t=/firefox/i.test(ke()),r=/Trident/i.test(ke());if(r&&R(e)){var n=L(e);if(n.position==="fixed")return null}var o=ve(e);for(Se(o)&&(o=o.host);R(o)&&["html","body"].indexOf(q(o))<0;){var a=L(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function le(e){for(var t=V(e),r=He(e);r&&Dt(r)&&L(r).position==="static";)r=He(r);return r&&(q(r)==="html"||q(r)==="body"&&L(r).position==="static")?t:r||At(e)||t}function Be(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pe(e,t,r){return Y(e,me(t,r))}function zt(e,t,r){var n=pe(e,t,r);return n>r?r:n}function Ue(){return{top:0,right:0,bottom:0,left:0}}function Xe(e){return Object.assign({},Ue(),e)}function Ye(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Rt=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Xe(typeof t!="number"?t:Ye(t,ie))};function Tt(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,p=M(r.placement),l=Be(p),d=[z,N].indexOf(p)>=0,f=d?"height":"width";if(!(!a||!s)){var v=Rt(o.padding,r),w=Ee(a),c=l==="y"?A:z,x=l==="y"?j:N,g=r.rects.reference[f]+r.rects.reference[l]-s[l]-r.rects.popper[f],m=s[l]-r.rects.reference[l],C=le(a),P=C?l==="y"?C.clientHeight||0:C.clientWidth||0:0,$=g/2-m/2,u=v[c],b=P-w[f]-v[x],h=P/2-w[f]/2+$,O=pe(u,h,b),S=l;r.modifiersData[n]=(t={},t[S]=O,t.centerOffset=O-h,t)}}function jt(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;if(o!=null&&!(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(R(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!We(t.elements.popper,o)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=o}}const Nt={name:"arrow",enabled:!0,phase:"main",fn:Tt,effect:jt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var Vt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mt(e){var t=e.x,r=e.y,n=window,o=n.devicePixelRatio||1;return{x:te(t*o)/o||0,y:te(r*o)/o||0}}function Ke(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,p=e.position,l=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,v=e.isFixed,w=s.x,c=w===void 0?0:w,x=s.y,g=x===void 0?0:x,m=typeof f=="function"?f({x:c,y:g}):{x:c,y:g};c=m.x,g=m.y;var C=s.hasOwnProperty("x"),P=s.hasOwnProperty("y"),$=z,u=A,b=window;if(d){var h=le(r),O="clientHeight",S="clientWidth";if(h===V(r)&&(h=F(r),L(h).position!=="static"&&p==="absolute"&&(O="scrollHeight",S="scrollWidth")),h=h,o===A||(o===z||o===N)&&a===ae){u=j;var k=v&&h===b&&b.visualViewport?b.visualViewport.height:h[O];g-=k-n.height,g*=l?1:-1}if(o===z||(o===A||o===j)&&a===ae){$=N;var E=v&&h===b&&b.visualViewport?b.visualViewport.width:h[S];c-=E-n.width,c*=l?1:-1}}var y=Object.assign({position:p},d&&Vt),B=f===!0?Mt({x:c,y:g}):{x:c,y:g};if(c=B.x,g=B.y,l){var D;return Object.assign({},y,(D={},D[u]=P?"0":"",D[$]=C?"0":"",D.transform=(b.devicePixelRatio||1)<=1?"translate("+c+"px, "+g+"px)":"translate3d("+c+"px, "+g+"px, 0)",D))}return Object.assign({},y,(t={},t[u]=P?g+"px":"",t[$]=C?c+"px":"",t.transform="",t))}function Lt(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,s=a===void 0?!0:a,p=r.roundOffsets,l=p===void 0?!0:p;if(process.env.NODE_ENV!=="production"){var d=L(t.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(v){return d.indexOf(v)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
2
|
-
|
|
3
|
-
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
|
|
4
|
-
|
|
5
|
-
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var f={placement:M(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ke(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ke(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const It={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Lt,data:{}};var ge={passive:!0};function qt(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,s=n.resize,p=s===void 0?!0:s,l=V(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(f){f.addEventListener("scroll",r.update,ge)}),p&&l.addEventListener("resize",r.update,ge),function(){a&&d.forEach(function(f){f.removeEventListener("scroll",r.update,ge)}),p&&l.removeEventListener("resize",r.update,ge)}}const Ft={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qt,data:{}};var Wt={left:"right",right:"left",bottom:"top",top:"bottom"};function be(e){return e.replace(/left|right|bottom|top/g,function(t){return Wt[t]})}var Ht={start:"end",end:"start"};function Ge(e){return e.replace(/start|end/g,function(t){return Ht[t]})}function De(e){var t=V(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Ae(e){return re(F(e)).left+De(e).scrollLeft}function Ut(e,t){var r=V(e),n=F(e),o=r.visualViewport,a=n.clientWidth,s=n.clientHeight,p=0,l=0;if(o){a=o.width,s=o.height;var d=Fe();(d||!d&&t==="fixed")&&(p=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:p+Ae(e),y:l}}function Xt(e){var t,r=F(e),n=De(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Y(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Y(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),p=-n.scrollLeft+Ae(e),l=-n.scrollTop;return L(o||r).direction==="rtl"&&(p+=Y(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:p,y:l}}function ze(e){var t=L(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Je(e){return["html","body","#document"].indexOf(q(e))>=0?e.ownerDocument.body:R(e)&&ze(e)?e:Je(ve(e))}function fe(e,t){var r;t===void 0&&(t=[]);var n=Je(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=V(n),s=o?[a].concat(a.visualViewport||[],ze(n)?n:[]):n,p=t.concat(s);return o?p:p.concat(fe(ve(s)))}function Re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Yt(e,t){var r=re(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Qe(e,t,r){return t===Le?Re(Ut(e,r)):X(t)?Yt(t,r):Re(Xt(F(e)))}function Kt(e){var t=fe(ve(e)),r=["absolute","fixed"].indexOf(L(e).position)>=0,n=r&&R(e)?le(e):e;return X(n)?t.filter(function(o){return X(o)&&We(o,n)&&q(o)!=="body"}):[]}function Gt(e,t,r,n){var o=t==="clippingParents"?Kt(e):[].concat(t),a=[].concat(o,[r]),s=a[0],p=a.reduce(function(l,d){var f=Qe(e,d,n);return l.top=Y(f.top,l.top),l.right=me(f.right,l.right),l.bottom=me(f.bottom,l.bottom),l.left=Y(f.left,l.left),l},Qe(e,s,n));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function Ze(e){var t=e.reference,r=e.element,n=e.placement,o=n?M(n):null,a=n?ne(n):null,s=t.x+t.width/2-r.width/2,p=t.y+t.height/2-r.height/2,l;switch(o){case A:l={x:s,y:t.y-r.height};break;case j:l={x:s,y:t.y+t.height};break;case N:l={x:t.x+t.width,y:p};break;case z:l={x:t.x-r.width,y:p};break;default:l={x:t.x,y:t.y}}var d=o?Be(o):null;if(d!=null){var f=d==="y"?"height":"width";switch(a){case ee:l[d]=l[d]-(t[f]/2-r[f]/2);break;case ae:l[d]=l[d]+(t[f]/2-r[f]/2);break}}return l}function de(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,s=a===void 0?e.strategy:a,p=r.boundary,l=p===void 0?vt:p,d=r.rootBoundary,f=d===void 0?Le:d,v=r.elementContext,w=v===void 0?se:v,c=r.altBoundary,x=c===void 0?!1:c,g=r.padding,m=g===void 0?0:g,C=Xe(typeof m!="number"?m:Ye(m,ie)),P=w===se?gt:se,$=e.rects.popper,u=e.elements[x?P:w],b=Gt(X(u)?u:u.contextElement||F(e.elements.popper),l,f,s),h=re(e.elements.reference),O=Ze({reference:h,element:$,strategy:"absolute",placement:o}),S=Re(Object.assign({},$,O)),k=w===se?S:h,E={top:b.top-k.top+C.top,bottom:k.bottom-b.bottom+C.bottom,left:b.left-k.left+C.left,right:k.right-b.right+C.right},y=e.modifiersData.offset;if(w===se&&y){var B=y[o];Object.keys(E).forEach(function(D){var G=[N,j].indexOf(D)>=0?1:-1,J=[A,j].indexOf(D)>=0?"y":"x";E[D]+=B[J]*G})}return E}function Jt(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,s=r.padding,p=r.flipVariations,l=r.allowedAutoPlacements,d=l===void 0?qe:l,f=ne(n),v=f?p?Ie:Ie.filter(function(x){return ne(x)===f}):ie,w=v.filter(function(x){return d.indexOf(x)>=0});w.length===0&&(w=v,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var c=w.reduce(function(x,g){return x[g]=de(e,{placement:g,boundary:o,rootBoundary:a,padding:s})[M(g)],x},{});return Object.keys(c).sort(function(x,g){return c[x]-c[g]})}function Qt(e){if(M(e)===he)return[];var t=be(e);return[Ge(e),t,Ge(t)]}function Zt(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,p=s===void 0?!0:s,l=r.fallbackPlacements,d=r.padding,f=r.boundary,v=r.rootBoundary,w=r.altBoundary,c=r.flipVariations,x=c===void 0?!0:c,g=r.allowedAutoPlacements,m=t.options.placement,C=M(m),P=C===m,$=l||(P||!x?[be(m)]:Qt(m)),u=[m].concat($).reduce(function(oe,H){return oe.concat(M(H)===he?Jt(t,{placement:H,boundary:f,rootBoundary:v,padding:d,flipVariations:x,allowedAutoPlacements:g}):H)},[]),b=t.rects.reference,h=t.rects.popper,O=new Map,S=!0,k=u[0],E=0;E<u.length;E++){var y=u[E],B=M(y),D=ne(y)===ee,G=[A,j].indexOf(B)>=0,J=G?"width":"height",T=de(t,{placement:y,boundary:f,rootBoundary:v,altBoundary:w,padding:d}),I=G?D?N:z:D?j:A;b[J]>h[J]&&(I=be(I));var we=be(I),Q=[];if(a&&Q.push(T[B]<=0),p&&Q.push(T[I]<=0,T[we]<=0),Q.every(function(oe){return oe})){k=y,S=!1;break}O.set(y,Q)}if(S)for(var Ce=x?3:1,je=function(H){var ue=u.find(function(Oe){var Z=O.get(Oe);if(Z)return Z.slice(0,H).every(function(Ne){return Ne})});if(ue)return k=ue,"break"},ce=Ce;ce>0;ce--){var xe=je(ce);if(xe==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}const _t={name:"flip",enabled:!0,phase:"main",fn:Zt,requiresIfExists:["offset"],data:{_skip:!1}};function _e(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function et(e){return[A,N,j,z].some(function(t){return e[t]>=0})}function er(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=de(t,{elementContext:"reference"}),p=de(t,{altBoundary:!0}),l=_e(s,n),d=_e(p,o,a),f=et(l),v=et(d);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":v})}const tr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:er};function rr(e,t,r){var n=M(e),o=[z,A].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=a[0],p=a[1];return s=s||0,p=(p||0)*o,[z,N].indexOf(n)>=0?{x:p,y:s}:{x:s,y:p}}function nr(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,s=qe.reduce(function(f,v){return f[v]=rr(v,t.rects,a),f},{}),p=s[t.placement],l=p.x,d=p.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=s}const or={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:nr};function ir(e){var t=e.state,r=e.name;t.modifiersData[r]=Ze({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ar={name:"popperOffsets",enabled:!0,phase:"read",fn:ir,data:{}};function sr(e){return e==="x"?"y":"x"}function lr(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,p=s===void 0?!1:s,l=r.boundary,d=r.rootBoundary,f=r.altBoundary,v=r.padding,w=r.tether,c=w===void 0?!0:w,x=r.tetherOffset,g=x===void 0?0:x,m=de(t,{boundary:l,rootBoundary:d,padding:v,altBoundary:f}),C=M(t.placement),P=ne(t.placement),$=!P,u=Be(C),b=sr(u),h=t.modifiersData.popperOffsets,O=t.rects.reference,S=t.rects.popper,k=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,E=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(h){if(a){var D,G=u==="y"?A:z,J=u==="y"?j:N,T=u==="y"?"height":"width",I=h[u],we=I+m[G],Q=I-m[J],Ce=c?-S[T]/2:0,je=P===ee?O[T]:S[T],ce=P===ee?-S[T]:-O[T],xe=t.elements.arrow,oe=c&&xe?Ee(xe):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ue(),ue=H[G],Oe=H[J],Z=pe(0,O[T],oe[T]),Ne=$?O[T]/2-Ce-Z-ue-E.mainAxis:je-Z-ue-E.mainAxis,tn=$?-O[T]/2+Ce+Z+Oe+E.mainAxis:ce+Z+Oe+E.mainAxis,Ve=t.elements.arrow&&le(t.elements.arrow),rn=Ve?u==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,st=(D=y==null?void 0:y[u])!=null?D:0,nn=I+Ne-st-rn,on=I+tn-st,lt=pe(c?me(we,nn):we,I,c?Y(Q,on):Q);h[u]=lt,B[u]=lt-I}if(p){var pt,an=u==="x"?A:z,sn=u==="x"?j:N,_=h[b],$e=b==="y"?"height":"width",ft=_+m[an],dt=_-m[sn],Me=[A,z].indexOf(C)!==-1,ct=(pt=y==null?void 0:y[b])!=null?pt:0,ut=Me?ft:_-O[$e]-S[$e]-ct+E.altAxis,ht=Me?_+O[$e]+S[$e]-ct-E.altAxis:dt,mt=c&&Me?zt(ut,_,ht):pe(c?ut:ft,_,c?ht:dt);h[b]=mt,B[b]=mt-_}t.modifiersData[n]=B}}const pr={name:"preventOverflow",enabled:!0,phase:"main",fn:lr,requiresIfExists:["offset"]};function fr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function dr(e){return e===V(e)||!R(e)?De(e):fr(e)}function cr(e){var t=e.getBoundingClientRect(),r=te(t.width)/e.offsetWidth||1,n=te(t.height)/e.offsetHeight||1;return r!==1||n!==1}function ur(e,t,r){r===void 0&&(r=!1);var n=R(t),o=R(t)&&cr(t),a=F(t),s=re(e,o,r),p={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((q(t)!=="body"||ze(a))&&(p=dr(t)),R(t)?(l=re(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Ae(a))),{x:s.left+p.scrollLeft-l.x,y:s.top+p.scrollTop-l.y,width:s.width,height:s.height}}function hr(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(p){if(!r.has(p)){var l=t.get(p);l&&o(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function mr(e){var t=hr(e);return Pe.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function vr(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function W(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return[].concat(r).reduce(function(o,a){return o.replace(/%s/,a)},e)}var K='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',gr='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',tt=["name","enabled","phase","fn","effect","requires","options"];function br(e){e.forEach(function(t){[].concat(Object.keys(t),tt).filter(function(r,n,o){return o.indexOf(r)===n}).forEach(function(r){switch(r){case"name":typeof t.name!="string"&&console.error(W(K,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(W(K,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":Pe.indexOf(t.phase)<0&&console.error(W(K,t.name,'"phase"',"either "+Pe.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(W(K,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(W(K,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(W(K,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(W(K,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+tt.map(function(n){return'"'+n+'"'}).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach(function(n){e.find(function(o){return o.name===n})==null&&console.error(W(gr,String(t.name),n,n))})})})}function yr(e,t){var r=new Set;return e.filter(function(n){var o=t(n);if(!r.has(o))return r.add(o),!0})}function wr(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var rt="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Cr="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",nt={placement:"bottom",modifiers:[],strategy:"absolute"};function ot(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function xr(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?nt:o;return function(p,l,d){d===void 0&&(d=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},nt,a),modifiersData:{},elements:{reference:p,popper:l},attributes:{},styles:{}},v=[],w=!1,c={state:f,setOptions:function(C){var P=typeof C=="function"?C(f.options):C;g(),f.options=Object.assign({},a,f.options,P),f.scrollParents={reference:X(p)?fe(p):p.contextElement?fe(p.contextElement):[],popper:fe(l)};var $=mr(wr([].concat(n,f.options.modifiers)));if(f.orderedModifiers=$.filter(function(y){return y.enabled}),process.env.NODE_ENV!=="production"){var u=yr([].concat($,f.options.modifiers),function(y){var B=y.name;return B});if(br(u),M(f.options.placement)===he){var b=f.orderedModifiers.find(function(y){var B=y.name;return B==="flip"});b||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var h=L(l),O=h.marginTop,S=h.marginRight,k=h.marginBottom,E=h.marginLeft;[O,S,k,E].some(function(y){return parseFloat(y)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return x(),c.update()},forceUpdate:function(){if(!w){var C=f.elements,P=C.reference,$=C.popper;if(!ot(P,$)){process.env.NODE_ENV!=="production"&&console.error(rt);return}f.rects={reference:ur(P,le($),f.options.strategy==="fixed"),popper:Ee($)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(y){return f.modifiersData[y.name]=Object.assign({},y.data)});for(var u=0,b=0;b<f.orderedModifiers.length;b++){if(process.env.NODE_ENV!=="production"&&(u+=1,u>100)){console.error(Cr);break}if(f.reset===!0){f.reset=!1,b=-1;continue}var h=f.orderedModifiers[b],O=h.fn,S=h.options,k=S===void 0?{}:S,E=h.name;typeof O=="function"&&(f=O({state:f,options:k,name:E,instance:c})||f)}}},update:vr(function(){return new Promise(function(m){c.forceUpdate(),m(f)})}),destroy:function(){g(),w=!0}};if(!ot(p,l))return process.env.NODE_ENV!=="production"&&console.error(rt),c;c.setOptions(d).then(function(m){!w&&d.onFirstUpdate&&d.onFirstUpdate(m)});function x(){f.orderedModifiers.forEach(function(m){var C=m.name,P=m.options,$=P===void 0?{}:P,u=m.effect;if(typeof u=="function"){var b=u({state:f,name:C,instance:c,options:$}),h=function(){};v.push(b||h)}})}function g(){v.forEach(function(m){return m()}),v=[]}return c}}var Or=[Ft,ar,It,Bt,or,_t,pr,Nt,tr],$r=xr({defaultModifiers:Or});const Pr={props:{componentPrefix:String,size:String,sizePrefix:String},computed:{sizeableClassPrefix(){return this.sizePrefix||this.componentPrefix},hasSizeablePrefix(){return this.size===void 0?!1:!!this.size.match(new RegExp(`^${this.sizeableClassPrefix}`))},sizeableClass(){return this.size?!this.sizeableClassPrefix||this.hasSizeablePrefix?this.size:`${this.sizeableClassPrefix}-${this.size}`:""}}},Sr={props:{componentPrefix:String,variant:String,variantPrefix:String},computed:{variantClassPrefix(){return this.variantPrefix||this.componentPrefix},hasVariantPrefix(){return this.variant===void 0?!1:!!this.variant.match(new RegExp(`^${this.variantClassPrefix}`))},variantClass(){return this.variant?!this.variantClassPrefix||this.hasVariantPrefix?this.variant:`${this.variantClassPrefix}-${this.variant}`:""}}},kr=i.defineComponent({mixins:[Pr,Sr],props:{active:Boolean,block:Boolean,componentPrefix:{type:String,default:"btn"},disabled:Boolean,label:String,outline:Boolean,tag:String,variant:{type:String,default:"primary"}},computed:{classes(){return["btn",this.variantClass,this.sizeableClass,this.active&&"active",this.block&&"btn-block",this.disabled&&"disabled"]},component(){return this.tag?this.tag:this.$attrs.href?"a":"button"},variantClassPrefix(){return(this.variantPrefix||this.componentPrefix)+(this.outline?"-outline":"")}}}),Er=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};function Br(e,t,r,n,o,a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.component),i.mergeProps(e.$attrs,{disabled:e.disabled,class:e.classes,role:"button"}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])]),_:3},16,["disabled","class"])}const Dr=Er(kr,[["render",Br]]),Ar=i.defineComponent({props:{componentPrefix:String,size:String,sizePrefix:String},computed:{sizeableClassPrefix(){return this.sizePrefix||this.componentPrefix},hasSizeablePrefix(){return this.size===void 0?!1:!!this.size.match(new RegExp(`^${this.sizeableClassPrefix}`))},sizeableClass(){return this.size?!this.sizeableClassPrefix||this.hasSizeablePrefix?this.size:`${this.sizeableClassPrefix}-${this.size}`:""}}}),zr=i.defineComponent({name:"BtnGroup",mixins:[Ar],props:{sizePrefix:{type:String,default(){return"btn-group"}},toggle:Boolean,vertical:Boolean},computed:{classes(){return{"btn-group":!this.vertical,"btn-group-toggle":this.toggle,"btn-group-vertical":this.vertical,[this.sizeableClass]:!!this.size}}}}),Rr=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},Tr=["data-toggle"];function jr(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.classes),"data-toggle":e.toggle?"buttons":!1,role:"group"},[i.renderSlot(e.$slots,"default")],10,Tr)}const Nr=Rr(zr,[["render",jr]]);i.defineComponent({name:"BtnGroupToggle"});function Te(e,t){e.props.class=`${e.props.class||""} ${t}`.trim()}function it(e){for(const t of e){t.type===i.Fragment&&it(t.children),t.props=Object.assign({class:void 0},t.props),t.attrs=Object.assign({},t.attrs),t.attrs.on||(t.attrs.on={});const r=t.props.class&&t.props.class.match(/dropdown-item/),n=t.props.class&&t.props.class.match(/dropdown-divider/);typeof t.type=="string"&&t.type.match(/^h\d$/)?Te(t,"dropdown-header"):t.type==="hr"&&!n?(t.type="div",Te(t,"dropdown-divider")):!r&&!n&&Te(t,"dropdown-item")}return e}const Vr=(e,t)=>i.h("div",{},it(t.slots.default())),Mr=i.defineComponent({name:"DropdownMenu",components:{DropdownMenuItems:Vr},props:{align:{type:String,default:"left",validate(e){return["left","right"].indexOf(e.toLowerCase())!==-1}},show:Boolean}}),Lr=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},Ir=["aria-labelledby"];function qr(e,t,r,n,o,a){const s=i.resolveComponent("dropdown-menu-items");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["dropdown-menu",{"dropdown-menu-left":e.align==="left","dropdown-menu-right":e.align==="right",show:e.show}]),"aria-labelledby":e.$attrs.id},[i.createVNode(s,null,{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3})],10,Ir)}const Fr=Lr(Mr,[["render",qr]]),Wr=i.defineComponent({props:{expanded:{type:Boolean,default:!1},id:{type:String,default:void 0},href:{type:String,default:void 0},to:{type:[String,Object],default:void 0}},computed:{is(){return this.to?"router-link":this.href?"a":"button"}}}),ye=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};function Hr(e,t,r,n,o,a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.is),i.mergeProps({id:e.id},e.to?{to:e.to}:{href:e.href},{"aria-haspopup":"true","aria-expanded":e.expanded,type:e.is==="button"?"button":void 0}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},16,["id","aria-expanded","type"])}const at={components:{BtnDropdownAction:ye(Wr,[["render",Hr]]),BtnGroup:Nr,DropdownMenu:Fr},extends:Dr,emits:["click-toggle","show","hide","toggle"],props:{align:{type:String,default:"left",validate(e){return["left","right"].indexOf(e.toLowerCase())!==-1}},animated:{type:Boolean,default:!0},buttonClass:[Object,String],caret:{type:Boolean,default:!0},dropup:{type:Boolean,default:!1},dropright:{type:Boolean,default:!1},dropleft:{type:Boolean,default:!1},height:String,href:String,nav:Boolean,label:String,offset:{type:Number,default:5},rotate:{type:Boolean,default:!1},split:{type:Boolean,default:!1},to:[String,Object],type:{type:String,default:"button"},width:String},data(){return{popper:null,triggerAnimation:!1,expanded:!1}},computed:{scope(){return{placement:this.placement,variantClassPrefix:this.variantClassPrefix,sizeableClassPrefix:this.sizeableClassPrefix,classes:this.classes,actionClasses:this.actionClasses,toggleStyle:this.toggleStyle,toggleClasses:this.toggleClasses,focus:this.focus,queryFocusable:this.queryFocusable,isFocusable:this.isFocusable,toggle:this.toggle,show:this.show,hide:this.hide,onBlur:this.onBlur,onClickItem:this.onClickItem,onClickToggle:this.onClickToggle,expanded:this.expanded}},placement(){return this.dropup?"top":this.dropleft?"left":this.dropright?"right":"bottom"},variantClassPrefix(){return"btn"+(this.outline?"-outline":"")},sizeableClassPrefix(){return"btn"},classes(){return{dropdown:this.dropup&&this.dropright&&this.dropleft,dropup:this.dropup,dropright:this.dropright,dropleft:this.dropleft,"icon-only":!this.nav&&!this.split&&!!this.$slots.icon&&!this.$slots.label,"hide-caret":!this.caret,expanded:this.expanded,"rotate-90":!this.nav&&this.split&&this.rotate&&this.expanded}},actionClasses(){return Object.assign({btn:!this.nav,[this.variantClass]:!this.nav&&!!this.variant,[this.sizeableClass]:!!this.size},typeof this.buttonClass=="object"?this.buttonClass:{[this.buttonClass]:!!this.buttonClass})},toggleStyle(){return{width:this.width,height:this.height}},toggleClasses(){return Object.assign({active:this.active,btn:!this.nav,"btn-block":!!this.block,"nav-link":!!this.nav,"rotate-90":!this.split&&this.rotate&&this.expanded,"dropdown-toggle":!0,"dropdown-toggle-split":!this.nav&&this.split,[this.variantClass]:!this.nav&&!!this.variant,[this.sizeableClass]:!!this.size},typeof this.buttonClass=="object"?this.buttonClass:{[this.buttonClass]:!!this.buttonClass})}},beforeUnmount(){this.popper&&this.popper.destroy()},methods:{focus(){this.$el.querySelector(".dropdown-toggle").focus()},queryFocusable(){return this.$el.querySelector(".dropdown-menu").querySelectorAll('label, input, select, textarea, [tabindex]:not([tabindex="-1"])')},isFocusable(e){const t=this.queryFocusable();for(const r in t)if(e===t[r])return!0;return!1},toggle(){this.expanded?this.hide():this.show()},show(){this.expanded=!0;const e=this.$refs.split&&this.$refs.split.$el||this.$el;!this.nav&&!this.popper?this.popper=$r(e,this.$refs.menu.$el,{placement:`${this.placement}-${this.align==="left"?"start":"end"}`,onFirstUpdate:()=>{this.triggerAnimation=this.animated},modifiers:[{name:"offset",options:{offset:[0,this.nav?1:this.offset]}}]}):this.popper&&this.popper.update()},hide(){this.expanded=!1},onBlur(e){(!this.$refs.menu.$el.contains(e.relatedTarget)||!this.$el.contains(e.relatedTarget))&&this.hide()},onClickDocument(e){this.$el.contains(e.target)||this.hide()},onClickItem(e){this.isFocusable(e.target)||this.hide()},onClickToggle(e){e.target.dispatchEvent(new Event("focus",e)),this.$emit("click-toggle",e),e.defaultPrevented||this.toggle()},onKeydown(e){e.target.parentElement.lastElementChild===e.target&&this.hide()}},watch:{expanded(e){this.$nextTick(()=>{this.$emit(e?"show":"hide"),this.$emit("toggle",e)}),setTimeout(()=>{e?document.addEventListener("click",this.onClickDocument):document.removeEventListener("click",this.onClickDocument)})}}},Ur=i.defineComponent({mixins:[at]});function Xr(e,t,r,n,o,a){const s=i.resolveComponent("btn-dropdown-action"),p=i.resolveComponent("dropdown-menu"),l=i.resolveComponent("btn-group");return i.openBlock(),i.createBlock(l,{class:i.normalizeClass(e.classes)},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"button",i.normalizeProps(i.guardReactiveProps(e.scope)),()=>[i.createVNode(s,{id:e.$attrs.id,ref:"button",expanded:e.expanded,href:e.href,to:e.to,style:i.normalizeStyle(e.toggleStyle),class:i.normalizeClass(e.toggleClasses),onBlur:e.onBlur,onClick:e.onClickToggle},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"icon"),i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])]),_:3},8,["id","expanded","href","to","style","class","onBlur","onClick"])]),i.createVNode(p,{id:e.$attrs.id,ref:"menu",align:e.align,show:e.expanded,class:i.normalizeClass({animated:e.triggerAnimation}),onBlur:e.onBlur,onClick:e.onClickItem,onKeydown:i.withKeys(e.onKeydown,["tab"]),onMousedown:t[0]||(t[0]=i.withModifiers(()=>{},["prevent"]))},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["id","align","show","class","onBlur","onClick","onKeydown"])]),_:3},8,["class"])}const Yr=ye(Ur,[["render",Xr]]),Kr=i.defineComponent({mixins:[at],emits:["click"]}),Gr=["id","aria-expanded"];function Jr(e,t,r,n,o,a){const s=i.resolveComponent("btn-dropdown-action"),p=i.resolveComponent("dropdown-menu"),l=i.resolveComponent("btn-group");return i.openBlock(),i.createBlock(l,{class:i.normalizeClass([e.classes,"btn-dropdown-split"])},{default:i.withCtx(()=>[e.dropleft?i.createCommentVNode("",!0):i.renderSlot(e.$slots,"button",i.normalizeProps(i.mergeProps({key:0},e.scope)),()=>[e.dropleft?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(s,{key:0,id:e.$attrs.id,ref:"button",expanded:e.expanded,href:e.href,to:e.to,class:i.normalizeClass(e.actionClasses),onClick:t[0]||(t[0]=d=>e.$emit("click",d))},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"icon"),i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])]),_:3},8,["id","expanded","href","to","class"]))]),i.createVNode(l,{ref:"split"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"split",i.normalizeProps(i.guardReactiveProps(e.scope)),()=>[e.split?(i.openBlock(),i.createElementBlock("button",{key:0,id:e.$attrs.id,type:"button","aria-haspopup":"true","aria-expanded":e.expanded,class:i.normalizeClass(e.toggleClasses),onBlur:t[1]||(t[1]=(...d)=>e.onBlur&&e.onBlur(...d)),onClick:t[2]||(t[2]=(...d)=>e.onClickToggle&&e.onClickToggle(...d))},null,42,Gr)):i.createCommentVNode("",!0)]),i.createVNode(p,{id:e.$attrs.id,ref:"menu",align:e.align,show:e.expanded,class:i.normalizeClass({animated:e.triggerAnimation}),onBlur:e.onBlur,onClick:e.onClickItem,onKeydown:i.withKeys(e.onKeydown,["tab"]),onMousedown:t[3]||(t[3]=i.withModifiers(()=>{},["prevent"]))},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["id","align","show","class","onBlur","onClick","onKeydown"])]),_:3},512),e.dropleft?i.renderSlot(e.$slots,"button",i.normalizeProps(i.mergeProps({key:1},e.scope)),()=>[e.dropleft?(i.openBlock(),i.createBlock(s,{key:0,id:e.$attrs.id,ref:"button",expanded:e.expanded,href:e.href,to:e.to,class:i.normalizeClass(e.actionClasses),onClick:t[4]||(t[4]=d=>e.$emit("click",d))},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"icon"),i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])]),_:3},8,["id","expanded","href","to","class"])):i.createCommentVNode("",!0)]):i.createCommentVNode("",!0)]),_:3},8,["class"])}const Qr=ye(Kr,[["render",Jr]]),Zr=i.defineComponent({name:"BtnDropdown",components:{BtnDropdownSplit:Qr,BtnDropdownSingle:Yr},inheritAttrs:!1,emits:["click","click-toggle","dropdown","show","hide","toggle"]}),pn="";function _r(e,t,r,n,o,a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.$attrs.split===void 0||e.$attrs.nav?"btn-dropdown-single":"btn-dropdown-split"),i.mergeProps({class:"btn-dropdown"},e.$attrs,{onClick:t[0]||(t[0]=(...s)=>e.$emit("click",...s)),onClickToggle:t[1]||(t[1]=(...s)=>e.$emit("click-toggle",...s)),onDropdown:t[2]||(t[2]=(...s)=>e.$emit("dropdown",...s)),onShow:t[3]||(t[3]=(...s)=>e.$emit("show",...s)),onHide:t[4]||(t[4]=(...s)=>e.$emit("hide",...s)),onToggle:t[5]||(t[5]=(...s)=>e.$emit("toggle",...s))}),i.createSlots({icon:i.withCtx(()=>[i.renderSlot(e.$slots,"icon")]),button:i.withCtx(s=>[i.renderSlot(e.$slots,"button",i.normalizeProps(i.guardReactiveProps(s)))]),split:i.withCtx(s=>[i.renderSlot(e.$slots,"split",i.normalizeProps(i.guardReactiveProps(s)))]),default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:2},[e.$attrs.label||e.$slots.label?{name:"label",fn:i.withCtx(()=>[i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.$attrs.label),1)])]),key:"0"}:void 0]),1040)}const en=ye(Zr,[["render",_r]]);U.BtnDropdown=en,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click-toggle" | "show" | "hide" | "toggle" | "click" | "dropdown")[], "toggle" | "show" | "click-toggle" | "hide" | "click" | "dropdown", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
2
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
3
|
-
"onClick-toggle"?: ((...args: any[]) => any) | undefined;
|
|
4
|
-
onShow?: ((...args: any[]) => any) | undefined;
|
|
5
|
-
onHide?: ((...args: any[]) => any) | undefined;
|
|
6
|
-
onToggle?: ((...args: any[]) => any) | undefined;
|
|
7
|
-
onDropdown?: ((...args: any[]) => any) | undefined;
|
|
8
|
-
}, {}>;
|
|
9
|
-
export default _sfc_main;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
-
expanded: {
|
|
3
|
-
type: BooleanConstructor;
|
|
4
|
-
default: boolean;
|
|
5
|
-
};
|
|
6
|
-
id: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
default: undefined;
|
|
9
|
-
};
|
|
10
|
-
href: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
default: undefined;
|
|
13
|
-
};
|
|
14
|
-
to: {
|
|
15
|
-
type: (StringConstructor | ObjectConstructor)[];
|
|
16
|
-
default: undefined;
|
|
17
|
-
};
|
|
18
|
-
}, unknown, unknown, {
|
|
19
|
-
is(): "button" | "router-link" | "a";
|
|
20
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
-
expanded: {
|
|
22
|
-
type: BooleanConstructor;
|
|
23
|
-
default: boolean;
|
|
24
|
-
};
|
|
25
|
-
id: {
|
|
26
|
-
type: StringConstructor;
|
|
27
|
-
default: undefined;
|
|
28
|
-
};
|
|
29
|
-
href: {
|
|
30
|
-
type: StringConstructor;
|
|
31
|
-
default: undefined;
|
|
32
|
-
};
|
|
33
|
-
to: {
|
|
34
|
-
type: (StringConstructor | ObjectConstructor)[];
|
|
35
|
-
default: undefined;
|
|
36
|
-
};
|
|
37
|
-
}>>, {
|
|
38
|
-
expanded: boolean;
|
|
39
|
-
id: string;
|
|
40
|
-
href: string;
|
|
41
|
-
to: string | Record<string, any>;
|
|
42
|
-
}>;
|
|
43
|
-
export default _sfc_main;
|
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, {
|
|
2
|
-
components: {
|
|
3
|
-
BtnDropdownAction: import("vue").DefineComponent<{
|
|
4
|
-
expanded: {
|
|
5
|
-
type: BooleanConstructor;
|
|
6
|
-
default: boolean;
|
|
7
|
-
};
|
|
8
|
-
id: {
|
|
9
|
-
type: StringConstructor;
|
|
10
|
-
default: undefined;
|
|
11
|
-
};
|
|
12
|
-
href: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: undefined;
|
|
15
|
-
};
|
|
16
|
-
to: {
|
|
17
|
-
type: (StringConstructor | ObjectConstructor)[];
|
|
18
|
-
default: undefined;
|
|
19
|
-
};
|
|
20
|
-
}, unknown, unknown, {
|
|
21
|
-
is(): "button" | "router-link" | "a";
|
|
22
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
-
expanded: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
id: {
|
|
28
|
-
type: StringConstructor;
|
|
29
|
-
default: undefined;
|
|
30
|
-
};
|
|
31
|
-
href: {
|
|
32
|
-
type: StringConstructor;
|
|
33
|
-
default: undefined;
|
|
34
|
-
};
|
|
35
|
-
to: {
|
|
36
|
-
type: (StringConstructor | ObjectConstructor)[];
|
|
37
|
-
default: undefined;
|
|
38
|
-
};
|
|
39
|
-
}>>, {
|
|
40
|
-
expanded: boolean;
|
|
41
|
-
id: string;
|
|
42
|
-
href: string;
|
|
43
|
-
to: string | Record<string, any>;
|
|
44
|
-
}>;
|
|
45
|
-
BtnGroup: import("vue").DefineComponent<{
|
|
46
|
-
sizePrefix: {
|
|
47
|
-
type: StringConstructor;
|
|
48
|
-
default(): string;
|
|
49
|
-
};
|
|
50
|
-
toggle: BooleanConstructor;
|
|
51
|
-
vertical: BooleanConstructor;
|
|
52
|
-
}, unknown, unknown, {
|
|
53
|
-
classes(): {
|
|
54
|
-
[x: number]: boolean;
|
|
55
|
-
'btn-group': boolean;
|
|
56
|
-
'btn-group-toggle': any;
|
|
57
|
-
'btn-group-vertical': any;
|
|
58
|
-
};
|
|
59
|
-
}, {}, import("vue").DefineComponent<{
|
|
60
|
-
componentPrefix: StringConstructor;
|
|
61
|
-
size: StringConstructor;
|
|
62
|
-
sizePrefix: StringConstructor;
|
|
63
|
-
}, unknown, unknown, {
|
|
64
|
-
sizeableClassPrefix(): string | undefined;
|
|
65
|
-
hasSizeablePrefix(): boolean;
|
|
66
|
-
sizeableClass(): string;
|
|
67
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
68
|
-
componentPrefix: StringConstructor;
|
|
69
|
-
size: StringConstructor;
|
|
70
|
-
sizePrefix: StringConstructor;
|
|
71
|
-
}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
72
|
-
sizePrefix: {
|
|
73
|
-
type: StringConstructor;
|
|
74
|
-
default(): string;
|
|
75
|
-
};
|
|
76
|
-
toggle: BooleanConstructor;
|
|
77
|
-
vertical: BooleanConstructor;
|
|
78
|
-
}>>, {
|
|
79
|
-
sizePrefix: string;
|
|
80
|
-
toggle: boolean;
|
|
81
|
-
vertical: boolean;
|
|
82
|
-
}>;
|
|
83
|
-
DropdownMenu: import("vue").DefineComponent<{
|
|
84
|
-
align: {
|
|
85
|
-
type: StringConstructor;
|
|
86
|
-
default: string;
|
|
87
|
-
validate(value: any): boolean;
|
|
88
|
-
};
|
|
89
|
-
show: BooleanConstructor;
|
|
90
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
91
|
-
align: {
|
|
92
|
-
type: StringConstructor;
|
|
93
|
-
default: string;
|
|
94
|
-
validate(value: any): boolean;
|
|
95
|
-
};
|
|
96
|
-
show: BooleanConstructor;
|
|
97
|
-
}>>, {
|
|
98
|
-
align: string;
|
|
99
|
-
show: boolean;
|
|
100
|
-
}>;
|
|
101
|
-
};
|
|
102
|
-
extends: import("vue").DefineComponent<{
|
|
103
|
-
active: BooleanConstructor;
|
|
104
|
-
block: BooleanConstructor;
|
|
105
|
-
componentPrefix: {
|
|
106
|
-
type: StringConstructor;
|
|
107
|
-
default: string;
|
|
108
|
-
};
|
|
109
|
-
disabled: BooleanConstructor;
|
|
110
|
-
label: StringConstructor;
|
|
111
|
-
outline: BooleanConstructor;
|
|
112
|
-
tag: StringConstructor;
|
|
113
|
-
variant: {
|
|
114
|
-
type: StringConstructor;
|
|
115
|
-
default: string;
|
|
116
|
-
};
|
|
117
|
-
}, unknown, unknown, {
|
|
118
|
-
classes(): string | undefined[];
|
|
119
|
-
component(): string;
|
|
120
|
-
variantClassPrefix(): string;
|
|
121
|
-
}, {}, {
|
|
122
|
-
props: {
|
|
123
|
-
componentPrefix: StringConstructor;
|
|
124
|
-
size: StringConstructor;
|
|
125
|
-
sizePrefix: StringConstructor;
|
|
126
|
-
};
|
|
127
|
-
computed: {
|
|
128
|
-
sizeableClassPrefix(): string | undefined;
|
|
129
|
-
hasSizeablePrefix(): boolean;
|
|
130
|
-
sizeableClass(): string;
|
|
131
|
-
};
|
|
132
|
-
} | {
|
|
133
|
-
props: {
|
|
134
|
-
componentPrefix: StringConstructor;
|
|
135
|
-
variant: StringConstructor;
|
|
136
|
-
variantPrefix: StringConstructor;
|
|
137
|
-
};
|
|
138
|
-
computed: {
|
|
139
|
-
variantClassPrefix(): string | undefined;
|
|
140
|
-
hasVariantPrefix(): boolean;
|
|
141
|
-
variantClass(): string;
|
|
142
|
-
};
|
|
143
|
-
}, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
144
|
-
active: BooleanConstructor;
|
|
145
|
-
block: BooleanConstructor;
|
|
146
|
-
componentPrefix: {
|
|
147
|
-
type: StringConstructor;
|
|
148
|
-
default: string;
|
|
149
|
-
};
|
|
150
|
-
disabled: BooleanConstructor;
|
|
151
|
-
label: StringConstructor;
|
|
152
|
-
outline: BooleanConstructor;
|
|
153
|
-
tag: StringConstructor;
|
|
154
|
-
variant: {
|
|
155
|
-
type: StringConstructor;
|
|
156
|
-
default: string;
|
|
157
|
-
};
|
|
158
|
-
}>>, {
|
|
159
|
-
active: boolean;
|
|
160
|
-
block: boolean;
|
|
161
|
-
componentPrefix: string;
|
|
162
|
-
disabled: boolean;
|
|
163
|
-
outline: boolean;
|
|
164
|
-
variant: string;
|
|
165
|
-
}>;
|
|
166
|
-
emits: string[];
|
|
167
|
-
props: {
|
|
168
|
-
align: {
|
|
169
|
-
type: StringConstructor;
|
|
170
|
-
default: string;
|
|
171
|
-
validate(value: any): boolean;
|
|
172
|
-
};
|
|
173
|
-
animated: {
|
|
174
|
-
type: BooleanConstructor;
|
|
175
|
-
default: boolean;
|
|
176
|
-
};
|
|
177
|
-
buttonClass: (StringConstructor | ObjectConstructor)[];
|
|
178
|
-
caret: {
|
|
179
|
-
type: BooleanConstructor;
|
|
180
|
-
default: boolean;
|
|
181
|
-
};
|
|
182
|
-
dropup: {
|
|
183
|
-
type: BooleanConstructor;
|
|
184
|
-
default: boolean;
|
|
185
|
-
};
|
|
186
|
-
dropright: {
|
|
187
|
-
type: BooleanConstructor;
|
|
188
|
-
default: boolean;
|
|
189
|
-
};
|
|
190
|
-
dropleft: {
|
|
191
|
-
type: BooleanConstructor;
|
|
192
|
-
default: boolean;
|
|
193
|
-
};
|
|
194
|
-
height: StringConstructor;
|
|
195
|
-
href: StringConstructor;
|
|
196
|
-
nav: BooleanConstructor;
|
|
197
|
-
label: StringConstructor;
|
|
198
|
-
offset: {
|
|
199
|
-
type: NumberConstructor;
|
|
200
|
-
default: number;
|
|
201
|
-
};
|
|
202
|
-
rotate: {
|
|
203
|
-
type: BooleanConstructor;
|
|
204
|
-
default: boolean;
|
|
205
|
-
};
|
|
206
|
-
split: {
|
|
207
|
-
type: BooleanConstructor;
|
|
208
|
-
default: boolean;
|
|
209
|
-
};
|
|
210
|
-
to: (StringConstructor | ObjectConstructor)[];
|
|
211
|
-
type: {
|
|
212
|
-
type: StringConstructor;
|
|
213
|
-
default: string;
|
|
214
|
-
};
|
|
215
|
-
width: StringConstructor;
|
|
216
|
-
};
|
|
217
|
-
data(): {
|
|
218
|
-
popper: null;
|
|
219
|
-
triggerAnimation: boolean;
|
|
220
|
-
expanded: boolean;
|
|
221
|
-
};
|
|
222
|
-
computed: {
|
|
223
|
-
scope(): {
|
|
224
|
-
placement: any;
|
|
225
|
-
variantClassPrefix: any;
|
|
226
|
-
sizeableClassPrefix: any;
|
|
227
|
-
classes: any;
|
|
228
|
-
actionClasses: any;
|
|
229
|
-
toggleStyle: any;
|
|
230
|
-
toggleClasses: any;
|
|
231
|
-
focus: any;
|
|
232
|
-
queryFocusable: any;
|
|
233
|
-
isFocusable: any;
|
|
234
|
-
toggle: any;
|
|
235
|
-
show: any;
|
|
236
|
-
hide: any;
|
|
237
|
-
onBlur: any;
|
|
238
|
-
onClickItem: any;
|
|
239
|
-
onClickToggle: any;
|
|
240
|
-
expanded: any;
|
|
241
|
-
};
|
|
242
|
-
placement(): "left" | "right" | "top" | "bottom";
|
|
243
|
-
variantClassPrefix(): string;
|
|
244
|
-
sizeableClassPrefix(): string;
|
|
245
|
-
classes(): {
|
|
246
|
-
dropdown: any;
|
|
247
|
-
dropup: any;
|
|
248
|
-
dropright: any;
|
|
249
|
-
dropleft: any;
|
|
250
|
-
'icon-only': boolean;
|
|
251
|
-
'hide-caret': boolean;
|
|
252
|
-
expanded: any;
|
|
253
|
-
'rotate-90': any;
|
|
254
|
-
};
|
|
255
|
-
actionClasses(): any;
|
|
256
|
-
toggleStyle(): {
|
|
257
|
-
width: any;
|
|
258
|
-
height: any;
|
|
259
|
-
};
|
|
260
|
-
toggleClasses(): any;
|
|
261
|
-
};
|
|
262
|
-
beforeUnmount(): void;
|
|
263
|
-
methods: {
|
|
264
|
-
focus(): void;
|
|
265
|
-
queryFocusable(): any;
|
|
266
|
-
isFocusable(element: any): boolean;
|
|
267
|
-
toggle(): void;
|
|
268
|
-
show(): void;
|
|
269
|
-
hide(): void;
|
|
270
|
-
onBlur(e: any): void;
|
|
271
|
-
onClickDocument(e: Event): void;
|
|
272
|
-
onClickItem(e: any): void;
|
|
273
|
-
onClickToggle(e: any): void;
|
|
274
|
-
onKeydown(e: any): void;
|
|
275
|
-
};
|
|
276
|
-
watch: {
|
|
277
|
-
expanded(value: any): void;
|
|
278
|
-
};
|
|
279
|
-
}, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
280
|
-
export default _sfc_main;
|