@vue-interface/btn-dropdown 0.9.10 → 0.9.14
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/dist/btn-dropdown.es.js +2179 -0
- package/dist/btn-dropdown.umd.js +1 -0
- package/dist/style.css +1 -0
- package/package.json +26 -29
- package/.eslintrc.js +0 -53
- package/babel.config.js +0 -7
- package/dist/BtnDropdown.common.js +0 -6903
- package/dist/BtnDropdown.common.js.map +0 -1
- package/dist/BtnDropdown.css +0 -1
- package/dist/BtnDropdown.umd.js +0 -6913
- package/dist/BtnDropdown.umd.js.map +0 -1
- package/dist/BtnDropdown.umd.min.js +0 -2
- package/dist/BtnDropdown.umd.min.js.map +0 -1
- package/dist/demo.html +0 -19
- package/docs/.vuepress/config.js +0 -44
- package/docs/.vuepress/dist/404.html +0 -19
- package/docs/.vuepress/dist/assets/css/0.styles.275ee968.css +0 -1
- package/docs/.vuepress/dist/assets/img/search.83621669.svg +0 -1
- package/docs/.vuepress/dist/assets/js/10.5d93d289.js +0 -1
- package/docs/.vuepress/dist/assets/js/11.97ab3884.js +0 -1
- package/docs/.vuepress/dist/assets/js/2.f3d148c3.js +0 -1
- package/docs/.vuepress/dist/assets/js/3.81681fff.js +0 -1
- package/docs/.vuepress/dist/assets/js/4.82fa7382.js +0 -1
- package/docs/.vuepress/dist/assets/js/5.3dae6ad4.js +0 -1
- package/docs/.vuepress/dist/assets/js/6.6a04f815.js +0 -1
- package/docs/.vuepress/dist/assets/js/7.c033cb49.js +0 -1
- package/docs/.vuepress/dist/assets/js/8.6d6eb599.js +0 -1
- package/docs/.vuepress/dist/assets/js/9.eaefe866.js +0 -1
- package/docs/.vuepress/dist/assets/js/app.7ed065d3.js +0 -13
- package/docs/.vuepress/dist/examples/index.html +0 -21
- package/docs/.vuepress/dist/examples/test.html +0 -17
- package/docs/.vuepress/dist/index.html +0 -53
- package/docs/.vuepress/dist/options.html +0 -41
- package/docs/.vuepress/dist/tailwindcss.html +0 -85
- package/docs/README.md +0 -17
- package/docs/examples/README.md +0 -3
- package/docs/options.md +0 -44
- package/index.html +0 -339
- package/index.js +0 -3
- package/main.vue +0 -5
- package/postcss.config.js +0 -1
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -17
- package/src/BtnDropdown.vue +0 -108
- package/src/BtnDropdownAction.vue +0 -38
- package/src/BtnDropdownSingle.vue +0 -40
- package/src/BtnDropdownSplit.vue +0 -66
- package/src/DropdownHandler.js +0 -420
- package/src/css/BtnDropdown.css +0 -1
- package/tailwind.config.js +0 -13
- package/vue.config.js +0 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(H,O){typeof exports=="object"&&typeof module!="undefined"?O(exports):typeof define=="function"&&define.amd?define(["exports"],O):(H=typeof globalThis!="undefined"?globalThis:H||self,O(H.BtnDropdown={}))})(this,function(H){"use strict";var O="top",A="bottom",D="right",P="left",wt="auto",tt=[O,A,D,P],Y="start",et="end",be="clippingParents",Dt="viewport",rt="popper",_e="reference",Tt=tt.reduce(function(t,e){return t.concat([e+"-"+Y,e+"-"+et])},[]),jt=[].concat(tt,[wt]).reduce(function(t,e){return t.concat([e,e+"-"+Y,e+"-"+et])},[]),ye="beforeRead",we="read",$e="afterRead",xe="beforeMain",Ce="main",Oe="afterMain",ke="beforeWrite",Se="write",Be="afterWrite",Pe=[ye,we,$e,xe,Ce,Oe,ke,Se,Be];function F(t){return t?(t.nodeName||"").toLowerCase():null}function j(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function G(t){var e=j(t).Element;return t instanceof e||t instanceof Element}function T(t){var e=j(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function zt(t){if(typeof ShadowRoot=="undefined")return!1;var e=j(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Ee(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var i=e.styles[r]||{},n=e.attributes[r]||{},s=e.elements[r];!T(s)||!F(s)||(Object.assign(s.style,i),Object.keys(n).forEach(function(o){var f=n[o];f===!1?s.removeAttribute(o):s.setAttribute(o,f===!0?"":f)}))})}function Re(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(i){var n=e.elements[i],s=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:r[i]),f=o.reduce(function(a,l){return a[l]="",a},{});!T(n)||!F(n)||(Object.assign(n.style,f),Object.keys(s).forEach(function(a){n.removeAttribute(a)}))})}}var Ae={name:"applyStyles",enabled:!0,phase:"write",fn:Ee,effect:Re,requires:["computeStyles"]};function L(t){return t.split("-")[0]}var X=Math.max,ct=Math.min,J=Math.round;function K(t,e){e===void 0&&(e=!1);var r=t.getBoundingClientRect(),i=1,n=1;if(T(t)&&e){var s=t.offsetHeight,o=t.offsetWidth;o>0&&(i=J(r.width)/o||1),s>0&&(n=J(r.height)/s||1)}return{width:r.width/i,height:r.height/n,top:r.top/n,right:r.right/i,bottom:r.bottom/n,left:r.left/i,x:r.left/i,y:r.top/n}}function $t(t){var e=K(t),r=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:i}}function Mt(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&zt(r)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function W(t){return j(t).getComputedStyle(t)}function De(t){return["table","td","th"].indexOf(F(t))>=0}function N(t){return((G(t)?t.ownerDocument:t.document)||window.document).documentElement}function pt(t){return F(t)==="html"?t:t.assignedSlot||t.parentNode||(zt(t)?t.host:null)||N(t)}function Ft(t){return!T(t)||W(t).position==="fixed"?null:t.offsetParent}function Te(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&T(t)){var i=W(t);if(i.position==="fixed")return null}for(var n=pt(t);T(n)&&["html","body"].indexOf(F(n))<0;){var s=W(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function nt(t){for(var e=j(t),r=Ft(t);r&&De(r)&&W(r).position==="static";)r=Ft(r);return r&&(F(r)==="html"||F(r)==="body"&&W(r).position==="static")?e:r||Te(t)||e}function xt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function it(t,e,r){return X(t,ct(e,r))}function je(t,e,r){var i=it(t,e,r);return i>r?r:i}function Lt(){return{top:0,right:0,bottom:0,left:0}}function Wt(t){return Object.assign({},Lt(),t)}function Nt(t,e){return e.reduce(function(r,i){return r[i]=t,r},{})}var ze=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Wt(typeof e!="number"?e:Nt(e,tt))};function Me(t){var e,r=t.state,i=t.name,n=t.options,s=r.elements.arrow,o=r.modifiersData.popperOffsets,f=L(r.placement),a=xt(f),l=[P,D].indexOf(f)>=0,u=l?"height":"width";if(!(!s||!o)){var d=ze(n.padding,r),c=$t(s),p=a==="y"?O:P,v=a==="y"?A:D,m=r.rects.reference[u]+r.rects.reference[a]-o[a]-r.rects.popper[u],g=o[a]-r.rects.reference[a],y=nt(s),w=y?a==="y"?y.clientHeight||0:y.clientWidth||0:0,$=m/2-g/2,h=d[p],x=w-c[u]-d[v],b=w/2-c[u]/2+$,_=it(h,b,x),C=a;r.modifiersData[i]=(e={},e[C]=_,e.centerOffset=_-b,e)}}function Fe(t){var e=t.state,r=t.options,i=r.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||!Mt(e.elements.popper,n)||(e.elements.arrow=n))}var Le={name:"arrow",enabled:!0,phase:"main",fn:Me,effect:Fe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Q(t){return t.split("-")[1]}var We={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ne(t){var e=t.x,r=t.y,i=window,n=i.devicePixelRatio||1;return{x:J(e*n)/n||0,y:J(r*n)/n||0}}function Vt(t){var e,r=t.popper,i=t.popperRect,n=t.placement,s=t.variation,o=t.offsets,f=t.position,a=t.gpuAcceleration,l=t.adaptive,u=t.roundOffsets,d=t.isFixed,c=o.x,p=c===void 0?0:c,v=o.y,m=v===void 0?0:v,g=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var y=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),$=P,h=O,x=window;if(l){var b=nt(r),_="clientHeight",C="clientWidth";if(b===j(r)&&(b=N(r),W(b).position!=="static"&&f==="absolute"&&(_="scrollHeight",C="scrollWidth")),b=b,n===O||(n===P||n===D)&&s===et){h=A;var B=d&&x.visualViewport?x.visualViewport.height:b[_];m-=B-i.height,m*=a?1:-1}if(n===P||(n===O||n===A)&&s===et){$=D;var k=d&&x.visualViewport?x.visualViewport.width:b[C];p-=k-i.width,p*=a?1:-1}}var S=Object.assign({position:f},l&&We),z=u===!0?Ne({x:p,y:m}):{x:p,y:m};if(p=z.x,m=z.y,a){var E;return Object.assign({},S,(E={},E[h]=w?"0":"",E[$]=y?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",E))}return Object.assign({},S,(e={},e[h]=w?m+"px":"",e[$]=y?p+"px":"",e.transform="",e))}function Ve(t){var e=t.state,r=t.options,i=r.gpuAcceleration,n=i===void 0?!0:i,s=r.adaptive,o=s===void 0?!0:s,f=r.roundOffsets,a=f===void 0?!0:f,l={placement:L(e.placement),variation:Q(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Vt(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:a})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Vt(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var He={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ve,data:{}},dt={passive:!0};function Xe(t){var e=t.state,r=t.instance,i=t.options,n=i.scroll,s=n===void 0?!0:n,o=i.resize,f=o===void 0?!0:o,a=j(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&l.forEach(function(u){u.addEventListener("scroll",r.update,dt)}),f&&a.addEventListener("resize",r.update,dt),function(){s&&l.forEach(function(u){u.removeEventListener("scroll",r.update,dt)}),f&&a.removeEventListener("resize",r.update,dt)}}var qe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Xe,data:{}},Ue={left:"right",right:"left",bottom:"top",top:"bottom"};function vt(t){return t.replace(/left|right|bottom|top/g,function(e){return Ue[e]})}var Ie={start:"end",end:"start"};function Ht(t){return t.replace(/start|end/g,function(e){return Ie[e]})}function Ct(t){var e=j(t),r=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Ot(t){return K(N(t)).left+Ct(t).scrollLeft}function Ye(t){var e=j(t),r=N(t),i=e.visualViewport,n=r.clientWidth,s=r.clientHeight,o=0,f=0;return i&&(n=i.width,s=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,f=i.offsetTop)),{width:n,height:s,x:o+Ot(t),y:f}}function Ge(t){var e,r=N(t),i=Ct(t),n=(e=t.ownerDocument)==null?void 0:e.body,s=X(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=X(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),f=-i.scrollLeft+Ot(t),a=-i.scrollTop;return W(n||r).direction==="rtl"&&(f+=X(r.clientWidth,n?n.clientWidth:0)-s),{width:s,height:o,x:f,y:a}}function kt(t){var e=W(t),r=e.overflow,i=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+i)}function Xt(t){return["html","body","#document"].indexOf(F(t))>=0?t.ownerDocument.body:T(t)&&kt(t)?t:Xt(pt(t))}function at(t,e){var r;e===void 0&&(e=[]);var i=Xt(t),n=i===((r=t.ownerDocument)==null?void 0:r.body),s=j(i),o=n?[s].concat(s.visualViewport||[],kt(i)?i:[]):i,f=e.concat(o);return n?f:f.concat(at(pt(o)))}function St(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Je(t){var e=K(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function qt(t,e){return e===Dt?St(Ye(t)):G(e)?Je(e):St(Ge(N(t)))}function Ke(t){var e=at(pt(t)),r=["absolute","fixed"].indexOf(W(t).position)>=0,i=r&&T(t)?nt(t):t;return G(i)?e.filter(function(n){return G(n)&&Mt(n,i)&&F(n)!=="body"}):[]}function Qe(t,e,r){var i=e==="clippingParents"?Ke(t):[].concat(e),n=[].concat(i,[r]),s=n[0],o=n.reduce(function(f,a){var l=qt(t,a);return f.top=X(l.top,f.top),f.right=ct(l.right,f.right),f.bottom=ct(l.bottom,f.bottom),f.left=X(l.left,f.left),f},qt(t,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Ut(t){var e=t.reference,r=t.element,i=t.placement,n=i?L(i):null,s=i?Q(i):null,o=e.x+e.width/2-r.width/2,f=e.y+e.height/2-r.height/2,a;switch(n){case O:a={x:o,y:e.y-r.height};break;case A:a={x:o,y:e.y+e.height};break;case D:a={x:e.x+e.width,y:f};break;case P:a={x:e.x-r.width,y:f};break;default:a={x:e.x,y:e.y}}var l=n?xt(n):null;if(l!=null){var u=l==="y"?"height":"width";switch(s){case Y:a[l]=a[l]-(e[u]/2-r[u]/2);break;case et:a[l]=a[l]+(e[u]/2-r[u]/2);break}}return a}function ot(t,e){e===void 0&&(e={});var r=e,i=r.placement,n=i===void 0?t.placement:i,s=r.boundary,o=s===void 0?be:s,f=r.rootBoundary,a=f===void 0?Dt:f,l=r.elementContext,u=l===void 0?rt:l,d=r.altBoundary,c=d===void 0?!1:d,p=r.padding,v=p===void 0?0:p,m=Wt(typeof v!="number"?v:Nt(v,tt)),g=u===rt?_e:rt,y=t.rects.popper,w=t.elements[c?g:u],$=Qe(G(w)?w:w.contextElement||N(t.elements.popper),o,a),h=K(t.elements.reference),x=Ut({reference:h,element:y,strategy:"absolute",placement:n}),b=St(Object.assign({},y,x)),_=u===rt?b:h,C={top:$.top-_.top+m.top,bottom:_.bottom-$.bottom+m.bottom,left:$.left-_.left+m.left,right:_.right-$.right+m.right},B=t.modifiersData.offset;if(u===rt&&B){var k=B[n];Object.keys(C).forEach(function(S){var z=[D,A].indexOf(S)>=0?1:-1,E=[O,A].indexOf(S)>=0?"y":"x";C[S]+=k[E]*z})}return C}function Ze(t,e){e===void 0&&(e={});var r=e,i=r.placement,n=r.boundary,s=r.rootBoundary,o=r.padding,f=r.flipVariations,a=r.allowedAutoPlacements,l=a===void 0?jt:a,u=Q(i),d=u?f?Tt:Tt.filter(function(v){return Q(v)===u}):tt,c=d.filter(function(v){return l.indexOf(v)>=0});c.length===0&&(c=d);var p=c.reduce(function(v,m){return v[m]=ot(t,{placement:m,boundary:n,rootBoundary:s,padding:o})[L(m)],v},{});return Object.keys(p).sort(function(v,m){return p[v]-p[m]})}function tr(t){if(L(t)===wt)return[];var e=vt(t);return[Ht(t),e,Ht(e)]}function er(t){var e=t.state,r=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var n=r.mainAxis,s=n===void 0?!0:n,o=r.altAxis,f=o===void 0?!0:o,a=r.fallbackPlacements,l=r.padding,u=r.boundary,d=r.rootBoundary,c=r.altBoundary,p=r.flipVariations,v=p===void 0?!0:p,m=r.allowedAutoPlacements,g=e.options.placement,y=L(g),w=y===g,$=a||(w||!v?[vt(g)]:tr(g)),h=[g].concat($).reduce(function(Z,V){return Z.concat(L(V)===wt?Ze(e,{placement:V,boundary:u,rootBoundary:d,padding:l,flipVariations:v,allowedAutoPlacements:m}):V)},[]),x=e.rects.reference,b=e.rects.popper,_=new Map,C=!0,B=h[0],k=0;k<h.length;k++){var S=h[k],z=L(S),E=Q(S)===Y,st=[O,A].indexOf(z)>=0,lt=st?"width":"height",R=ot(e,{placement:S,boundary:u,rootBoundary:d,altBoundary:c,padding:l}),M=st?E?D:P:E?A:O;x[lt]>b[lt]&&(M=vt(M));var mt=vt(M),q=[];if(s&&q.push(R[z]<=0),f&&q.push(R[M]<=0,R[mt]<=0),q.every(function(Z){return Z})){B=S,C=!1;break}_.set(S,q)}if(C)for(var gt=v?3:1,Pt=function(V){var ut=h.find(function(_t){var U=_.get(_t);if(U)return U.slice(0,V).every(function(Et){return Et})});if(ut)return B=ut,"break"},ft=gt;ft>0;ft--){var bt=Pt(ft);if(bt==="break")break}e.placement!==B&&(e.modifiersData[i]._skip=!0,e.placement=B,e.reset=!0)}}var rr={name:"flip",enabled:!0,phase:"main",fn:er,requiresIfExists:["offset"],data:{_skip:!1}};function It(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Yt(t){return[O,D,A,P].some(function(e){return t[e]>=0})}function nr(t){var e=t.state,r=t.name,i=e.rects.reference,n=e.rects.popper,s=e.modifiersData.preventOverflow,o=ot(e,{elementContext:"reference"}),f=ot(e,{altBoundary:!0}),a=It(o,i),l=It(f,n,s),u=Yt(a),d=Yt(l);e.modifiersData[r]={referenceClippingOffsets:a,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var ir={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:nr};function ar(t,e,r){var i=L(t),n=[P,O].indexOf(i)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,o=s[0],f=s[1];return o=o||0,f=(f||0)*n,[P,D].indexOf(i)>=0?{x:f,y:o}:{x:o,y:f}}function or(t){var e=t.state,r=t.options,i=t.name,n=r.offset,s=n===void 0?[0,0]:n,o=jt.reduce(function(u,d){return u[d]=ar(d,e.rects,s),u},{}),f=o[e.placement],a=f.x,l=f.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=l),e.modifiersData[i]=o}var sr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:or};function lr(t){var e=t.state,r=t.name;e.modifiersData[r]=Ut({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var fr={name:"popperOffsets",enabled:!0,phase:"read",fn:lr,data:{}};function ur(t){return t==="x"?"y":"x"}function cr(t){var e=t.state,r=t.options,i=t.name,n=r.mainAxis,s=n===void 0?!0:n,o=r.altAxis,f=o===void 0?!1:o,a=r.boundary,l=r.rootBoundary,u=r.altBoundary,d=r.padding,c=r.tether,p=c===void 0?!0:c,v=r.tetherOffset,m=v===void 0?0:v,g=ot(e,{boundary:a,rootBoundary:l,padding:d,altBoundary:u}),y=L(e.placement),w=Q(e.placement),$=!w,h=xt(y),x=ur(h),b=e.modifiersData.popperOffsets,_=e.rects.reference,C=e.rects.popper,B=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,k=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),S=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,z={x:0,y:0};if(!!b){if(s){var E,st=h==="y"?O:P,lt=h==="y"?A:D,R=h==="y"?"height":"width",M=b[h],mt=M+g[st],q=M-g[lt],gt=p?-C[R]/2:0,Pt=w===Y?_[R]:C[R],ft=w===Y?-C[R]:-_[R],bt=e.elements.arrow,Z=p&&bt?$t(bt):{width:0,height:0},V=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Lt(),ut=V[st],_t=V[lt],U=it(0,_[R],Z[R]),Et=$?_[R]/2-gt-U-ut-k.mainAxis:Pt-U-ut-k.mainAxis,Cn=$?-_[R]/2+gt+U+_t+k.mainAxis:ft+U+_t+k.mainAxis,Rt=e.elements.arrow&&nt(e.elements.arrow),On=Rt?h==="y"?Rt.clientTop||0:Rt.clientLeft||0:0,fe=(E=S==null?void 0:S[h])!=null?E:0,kn=M+Et-fe-On,Sn=M+Cn-fe,ue=it(p?ct(mt,kn):mt,M,p?X(q,Sn):q);b[h]=ue,z[h]=ue-M}if(f){var ce,Bn=h==="x"?O:P,Pn=h==="x"?A:D,I=b[x],yt=x==="y"?"height":"width",pe=I+g[Bn],de=I-g[Pn],At=[O,P].indexOf(y)!==-1,ve=(ce=S==null?void 0:S[x])!=null?ce:0,he=At?pe:I-_[yt]-C[yt]-ve+k.altAxis,me=At?I+_[yt]+C[yt]-ve-k.altAxis:de,ge=p&&At?je(he,I,me):it(p?he:pe,I,p?me:de);b[x]=ge,z[x]=ge-I}e.modifiersData[i]=z}}var pr={name:"preventOverflow",enabled:!0,phase:"main",fn:cr,requiresIfExists:["offset"]};function dr(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function vr(t){return t===j(t)||!T(t)?Ct(t):dr(t)}function hr(t){var e=t.getBoundingClientRect(),r=J(e.width)/t.offsetWidth||1,i=J(e.height)/t.offsetHeight||1;return r!==1||i!==1}function mr(t,e,r){r===void 0&&(r=!1);var i=T(e),n=T(e)&&hr(e),s=N(e),o=K(t,n),f={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(i||!i&&!r)&&((F(e)!=="body"||kt(s))&&(f=vr(e)),T(e)?(a=K(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):s&&(a.x=Ot(s))),{x:o.left+f.scrollLeft-a.x,y:o.top+f.scrollTop-a.y,width:o.width,height:o.height}}function gr(t){var e=new Map,r=new Set,i=[];t.forEach(function(s){e.set(s.name,s)});function n(s){r.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(f){if(!r.has(f)){var a=e.get(f);a&&n(a)}}),i.push(s)}return t.forEach(function(s){r.has(s.name)||n(s)}),i}function br(t){var e=gr(t);return Pe.reduce(function(r,i){return r.concat(e.filter(function(n){return n.phase===i}))},[])}function _r(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function yr(t){var e=t.reduce(function(r,i){var n=r[i.name];return r[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,r},{});return Object.keys(e).map(function(r){return e[r]})}var Gt={placement:"bottom",modifiers:[],strategy:"absolute"};function Jt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function wr(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,i=r===void 0?[]:r,n=e.defaultOptions,s=n===void 0?Gt:n;return function(f,a,l){l===void 0&&(l=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Gt,s),modifiersData:{},elements:{reference:f,popper:a},attributes:{},styles:{}},d=[],c=!1,p={state:u,setOptions:function(y){var w=typeof y=="function"?y(u.options):y;m(),u.options=Object.assign({},s,u.options,w),u.scrollParents={reference:G(f)?at(f):f.contextElement?at(f.contextElement):[],popper:at(a)};var $=br(yr([].concat(i,u.options.modifiers)));return u.orderedModifiers=$.filter(function(h){return h.enabled}),v(),p.update()},forceUpdate:function(){if(!c){var y=u.elements,w=y.reference,$=y.popper;if(!!Jt(w,$)){u.rects={reference:mr(w,nt($),u.options.strategy==="fixed"),popper:$t($)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(k){return u.modifiersData[k.name]=Object.assign({},k.data)});for(var h=0;h<u.orderedModifiers.length;h++){if(u.reset===!0){u.reset=!1,h=-1;continue}var x=u.orderedModifiers[h],b=x.fn,_=x.options,C=_===void 0?{}:_,B=x.name;typeof b=="function"&&(u=b({state:u,options:C,name:B,instance:p})||u)}}}},update:_r(function(){return new Promise(function(g){p.forceUpdate(),g(u)})}),destroy:function(){m(),c=!0}};if(!Jt(f,a))return p;p.setOptions(l).then(function(g){!c&&l.onFirstUpdate&&l.onFirstUpdate(g)});function v(){u.orderedModifiers.forEach(function(g){var y=g.name,w=g.options,$=w===void 0?{}:w,h=g.effect;if(typeof h=="function"){var x=h({state:u,name:y,instance:p,options:$}),b=function(){};d.push(x||b)}})}function m(){d.forEach(function(g){return g()}),d=[]}return p}}var $r=[qe,fr,He,Ae,sr,rr,pr,Le,ir],xr=wr({defaultModifiers:$r}),Cr={props:{size:String,sizePrefix:{type:String,default(){return this.$options.name&&this.$options.name.toLowerCase()}}},computed:{sizeableClassPrefix(){return this.sizePrefix},sizeableClass(){return!this.size||!this.sizeableClassPrefix?"":`${this.sizeableClassPrefix}-${this.size}`}}},Or={props:{variant:String,variantPrefix:{type:String,default(){return this.$options.name&&this.$options.name.toLowerCase()}}},computed:{variantClassPrefix(){return this.variantPrefix},variantClass(){return!this.variant||!this.variantClassPrefix?"":`${this.variantClassPrefix}-${this.variant}`}}},kr=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.to?r("router-link",{class:t.classes,attrs:{to:t.to,disabled:t.disabled,role:"button"},on:{click:t.onClick}},[t._t("default")],2):t.href?r("a",{class:t.classes,attrs:{href:t.href,disabled:t.disabled,role:"button"},on:{click:t.onClick}},[t._t("default")],2):t.label?r("label",{class:t.classes,attrs:{disabled:t.disabled,role:"button"},on:{click:t.onClick}},[t._t("default")],2):r("button",{class:t.classes,attrs:{type:t.type,disabled:t.disabled},on:{click:t.onClick}},[t._t("default")],2)},Sr=[];function Br(t,e,r,i,n,s,o,f){var a=typeof t=="function"?t.options:t;e&&(a.render=e,a.staticRenderFns=r,a._compiled=!0),i&&(a.functional=!0),s&&(a._scopeId="data-v-"+s);var l;if(o?(l=function(c){c=c||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!c&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(c=__VUE_SSR_CONTEXT__),n&&n.call(this,c),c&&c._registeredComponents&&c._registeredComponents.add(o)},a._ssrRegister=l):n&&(l=f?function(){n.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(a.functional){a._injectStyles=l;var u=a.render;a.render=function(p,v){return l.call(v),u(p,v)}}else{var d=a.beforeCreate;a.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:a}}const Pr={name:"Btn",mixins:[Cr,Or],props:{active:Boolean,block:Boolean,disabled:Boolean,href:String,label:Boolean,outline:Boolean,to:[Object,String],type:String},computed:{variantClassPrefix(){return this.variantPrefix+(this.outline?"-outline":"")},classes(){return["btn",this.variantClass,this.sizeableClass,this.block?"btn-block":"",this.active?"active":""]}},methods:{onClick(t){this.disabled?t.preventDefault():this.$emit("click",t)}}},Kt={};var Er=Br(Pr,kr,Sr,!1,Rr,null,null,null);function Rr(t){for(let e in Kt)this[e]=Kt[e]}var Ar=function(){return Er.exports}(),Dr={props:{size:String,sizePrefix:{type:String,default(){return this.$options.name&&this.$options.name.toLowerCase()}}},computed:{sizeableClassPrefix(){return this.sizePrefix},sizeableClass(){return!this.size||!this.sizeableClassPrefix?"":`${this.sizeableClassPrefix}-${this.size}`}}},Tr=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.classes,attrs:{"data-toggle":t.toggle?"buttons":!1,role:"group"}},[t._t("default")],2)},jr=[];function zr(t,e,r,i,n,s,o,f){var a=typeof t=="function"?t.options:t;e&&(a.render=e,a.staticRenderFns=r,a._compiled=!0),i&&(a.functional=!0),s&&(a._scopeId="data-v-"+s);var l;if(o?(l=function(c){c=c||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!c&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(c=__VUE_SSR_CONTEXT__),n&&n.call(this,c),c&&c._registeredComponents&&c._registeredComponents.add(o)},a._ssrRegister=l):n&&(l=f?function(){n.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(a.functional){a._injectStyles=l;var u=a.render;a.render=function(p,v){return l.call(v),u(p,v)}}else{var d=a.beforeCreate;a.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:a}}const Mr={name:"BtnGroup",mixins:[Dr],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}}}},Qt={};var Fr=zr(Mr,Tr,jr,!1,Lr,null,null,null);function Lr(t){for(let e in Qt)this[e]=Qt[e]}var Wr=function(){return Fr.exports}();function Zt(t,e,r,i,n,s,o,f){var a=typeof t=="function"?t.options:t;e&&(a.render=e,a.staticRenderFns=r,a._compiled=!0),i&&(a.functional=!0),s&&(a._scopeId="data-v-"+s);var l;if(o?(l=function(c){c=c||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!c&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(c=__VUE_SSR_CONTEXT__),n&&n.call(this,c),c&&c._registeredComponents&&c._registeredComponents.add(o)},a._ssrRegister=l):n&&(l=f?function(){n.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(a.functional){a._injectStyles=l;var u=a.render;a.render=function(p,v){return l.call(v),u(p,v)}}else{var d=a.beforeCreate;a.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:a}}function Bt(t,e){t.data.staticClass=`${t.data.staticClass||""} ${e}`.trim()}function te(t,e){return r=>{typeof e=="function"&&e(r),r.cancelBubble||t(r)}}function ee(t,e){return t.data.on[e]||t.componentOptions&&t.componentOptions.listeners&&t.componentOptions.listeners[e]}const Nr={functional:!0,render(t,e){return e.children.filter(r=>!!r.tag).forEach((r,i)=>{r.data=Object.assign({staticClass:void 0},r.data),r.data.on||(r.data.on={});const n=r.data.staticClass&&r.data.staticClass.match(/dropdown-item/),s=r.data.staticClass&&r.data.staticClass.match(/dropdown-divider/);r.data.on.click=te(o=>{e.parent.$emit("click-item",o,r)},ee(r,"click")),r.data.on.blur=te(o=>{e.parent.$emit("blur-item",o,r)},ee(r,"blur")),r.tag.match(/^h\d$/)?Bt(r,"dropdown-header"):r.tag==="hr"&&!s?(r.tag="div",Bt(r,"dropdown-divider")):n||Bt(r,"dropdown-item")}),e.children}};let Vr,Hr;const re={};var Xr=Zt(Nr,Vr,Hr,!1,qr,null,null,null);function qr(t){for(let e in re)this[e]=re[e]}var Ur=function(){return Xr.exports}(),Ir=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"dropdown-menu",class:{"dropdown-menu-left":t.align==="left","dropdown-menu-right":t.align==="right",show:t.show},attrs:{"aria-labelledby":t.$attrs.id}},[r("dropdown-menu-items",[t._t("default")],2)],1)},Yr=[];const Gr={name:"DropdownMenu",components:{DropdownMenuItems:Ur},props:{align:{type:String,default:"left",validate(t){return["left","right"].indexOf(t.toLowerCase())!==-1}},show:Boolean}},ne={};var Jr=Zt(Gr,Ir,Yr,!1,Kr,null,null,null);function Kr(t){for(let e in ne)this[e]=ne[e]}var Qr=function(){return Jr.exports}(),Zr=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r(t.is,t._b({tag:"component",attrs:{id:t.id,"aria-haspopup":"true","aria-expanded":t.expanded,type:t.is==="button"?"button":void 0}},"component",t.to?{to:t.to}:{href:t.href},!1),[t._t("default")],2)},tn=[];function ht(t,e,r,i,n,s,o,f){var a=typeof t=="function"?t.options:t;e&&(a.render=e,a.staticRenderFns=r,a._compiled=!0),i&&(a.functional=!0),s&&(a._scopeId="data-v-"+s);var l;if(o?(l=function(c){c=c||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!c&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(c=__VUE_SSR_CONTEXT__),n&&n.call(this,c),c&&c._registeredComponents&&c._registeredComponents.add(o)},a._ssrRegister=l):n&&(l=f?function(){n.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(a.functional){a._injectStyles=l;var u=a.render;a.render=function(p,v){return l.call(v),u(p,v)}}else{var d=a.beforeCreate;a.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:a}}const en={props:{expanded:{type:Boolean,default:!1},id:String,href:String,to:[String,Object]},computed:{is(){return this.to?"router-link":this.href?"a":"button"}}},ie={};var rn=ht(en,Zr,tn,!1,nn,null,null,null);function nn(t){for(let e in ie)this[e]=ie[e]}var an=function(){return rn.exports}(),ae={components:{BtnDropdownAction:an,BtnGroup:Wr,DropdownMenu:Qr},extends:Ar,props:{align:{type:String,default:"left",validate(t){return["left","right"].indexOf(t.toLowerCase())!==-1}},animated:{type:Boolean,default:!0},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:{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[!this.nav&&"btn",!this.nav&&this.size&&this.sizeableClass,!this.nav&&this.variant&&this.variantClass].filter(t=>!!t).join(" ")},toggleStyle(){return{width:this.width,height:this.height}},toggleClasses(){return[this.nav&&"nav-link",!this.nav&&"btn",!this.nav&&this.variantClass,this.sizeableClass,this.active?"active":"",this.block?"btn-block":"",!this.split&&this.rotate&&this.expanded?"rotate-90":"",!this.nav&&this.split?"dropdown-toggle-split":"","dropdown-toggle"].filter(t=>!!t).join(" ")}},beforeDestroy(){this.popper&&this.popper.destroy()},mounted(){},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(t){const e=this.queryFocusable();for(let r in e)if(t===e[r])return!0;return!1},toggle(t){this.expanded?this.hide():this.show()},show(){this.expanded=!0;const t=this.$refs.split&&this.$refs.split.$el||this.$el;!this.nav&&!this.popper?this.popper=xr(t,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(t){this.$el.contains(t.relatedTarget)||this.hide()},onClickItem(t){this.isFocusable(t.target)||this.hide()},onClickToggle(t){this.$emit("click-toggle",t),t.defaultPrevented||this.toggle()}},watch:{expanded(t){this.$nextTick(()=>{this.$emit(t?"show":"hide"),this.$emit("toggle",t)})}}},on=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("btn-group",{staticClass:"btn-dropdown-split",class:t.classes,on:{click:t.onClick}},[t.dropleft?t._e():t._t("button",function(){return[t.dropleft?t._e():r("btn-dropdown-action",{ref:"button",class:t.actionClasses,attrs:{id:t.$attrs.id,expanded:t.expanded,href:t.href,to:t.to},nativeOn:{click:function(i){return function(n){return t.$emit("click",n)}.apply(null,arguments)}}},[t._t("icon"),t._t("label",function(){return[t._v(" "+t._s(t.label)+" ")]})],2)]},null,this),r("btn-group",{ref:"split"},[t._t("split",function(){return[t.split?r("button",{class:t.toggleClasses,attrs:{id:t.$attrs.id,type:"button","aria-haspopup":"true","aria-expanded":t.expanded},on:{blur:t.onBlur,click:t.onClickToggle}}):t._e()]},null,this),r("dropdown-menu",{ref:"menu",class:{animated:t.triggerAnimation},attrs:{id:t.$attrs.id,align:t.align,show:t.expanded},on:{"click-item":t.onClickItem,"blur-item":t.onBlur}},[t._t("default")],2)],2),t.dropleft?t._t("button",function(){return[t.dropleft?r("btn-dropdown-action",{ref:"button",class:t.actionClasses,attrs:{id:t.$attrs.id,expanded:t.expanded,href:t.href,to:t.to},nativeOn:{click:function(i){return function(n){return t.$emit("click",n)}.apply(null,arguments)}}},[t._t("icon"),t._t("label",function(){return[t._v(" "+t._s(t.label)+" ")]})],2):t._e()]},null,this):t._e()],2)},sn=[];const ln={mixins:[ae]},oe={};var fn=ht(ln,on,sn,!1,un,null,null,null);function un(t){for(let e in oe)this[e]=oe[e]}var cn=function(){return fn.exports}(),pn=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("btn-group",{class:t.classes},[t._t("button",function(){return[r("btn-dropdown-action",{ref:"button",class:t.toggleClasses,style:t.toggleStyle,attrs:{id:t.$attrs.id,expanded:t.expanded,href:t.href,to:t.to},nativeOn:{blur:function(i){return t.onBlur.apply(null,arguments)},click:function(i){return t.onClickToggle.apply(null,arguments)}}},[t._t("icon"),t._t("label",function(){return[t._v(" "+t._s(t.label)+" ")]})],2)]},null,this),r("dropdown-menu",{ref:"menu",class:{animated:t.triggerAnimation},attrs:{id:t.$attrs.id,align:t.align,show:t.expanded},on:{"blur-item":t.onBlur,"click-item":t.onClickItem}},[t._t("default")],2)],2)},dn=[];const vn={mixins:[ae]},se={};var hn=ht(vn,pn,dn,!1,mn,null,null,null);function mn(t){for(let e in se)this[e]=se[e]}var gn=function(){return hn.exports}(),bn=function(){var t=this,e=this,r=e.$createElement,i=e._self._c||r;return i(e.$attrs.split===void 0||!!e.$attrs.nav?"btn-dropdown-single":"btn-dropdown-split",e._b({tag:"component",staticClass:"btn-dropdown",on:{click:function(){for(var n,s=[],o=arguments.length;o--;)s[o]=arguments[o];return(n=t).$emit.apply(n,["click"].concat(s))},"click-toggle":function(){for(var n,s=[],o=arguments.length;o--;)s[o]=arguments[o];return(n=t).$emit.apply(n,["click-toggle"].concat(s))},dropdown:function(){for(var n,s=[],o=arguments.length;o--;)s[o]=arguments[o];return(n=t).$emit.apply(n,["dropdown"].concat(s))},show:function(){for(var n,s=[],o=arguments.length;o--;)s[o]=arguments[o];return(n=t).$emit.apply(n,["show"].concat(s))},hide:function(){for(var n,s=[],o=arguments.length;o--;)s[o]=arguments[o];return(n=t).$emit.apply(n,["hide"].concat(s))},toggle:function(){for(var n,s=[],o=arguments.length;o--;)s[o]=arguments[o];return(n=t).$emit.apply(n,["toggle"].concat(s))}},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("icon")]},proxy:!0},e.$attrs.label||this.$slots.label?{key:"label",fn:function(){return[e._t("label",function(){return[e._v(" "+e._s(e.$attrs.label)+" ")]})]},proxy:!0}:null,{key:"button",fn:function(n){return[e._t("button",null,null,n)]}},{key:"split",fn:function(n){return[e._t("split",null,null,n)]}}],null,!0)},"component",e.$attrs,!1),[e._t("default")],2)},_n=[],En="";const yn={name:"BtnDropdown",components:{BtnDropdownSplit:cn,BtnDropdownSingle:gn},inheritAttrs:!1},le={};var wn=ht(yn,bn,_n,!1,$n,null,null,null);function $n(t){for(let e in le)this[e]=le[e]}var xn=function(){return wn.exports}();H.BtnDropdown=xn,Object.defineProperty(H,"__esModule",{value:!0}),H[Symbol.toStringTag]="Module"});
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@-webkit-keyframes btnDropdownZoomIn{0%{opacity:0}to{opacity:1}}@keyframes btnDropdownZoomIn{0%{opacity:0}to{opacity:1}}.btn-dropdown{position:relative}.btn-dropdown .dropdown-toggle{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-transition:all 125ms ease-in;transition:all 125ms ease-in;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.nav-item .btn-group,.nav-item .btn-dropdown .dropdown-toggle{display:block}.btn-dropdown.rounded-circle>.btn:last-child,.btn-dropdown.rounded-circle>.btn-group:last-child .dropdown-toggle{border-top-right-radius:100%;border-bottom-right-radius:100%}.btn-dropdown.rounded-circle>.btn:first-child,.btn-dropdown.rounded-circle>.btn-group:first-child .dropdown-toggle{border-top-left-radius:100%;border-bottom-left-radius:100%}.btn-dropdown .rounded-circle{border-radius:100%}.btn-dropdown .rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.btn-dropdown.hide-caret .dropdown-toggle:after,.btn-dropdown.icon-only .dropdown-toggle:after,.btn-dropdown.hide-caret .dropdown-toggle:before,.btn-dropdown.icon-only .dropdown-toggle:before{display:none}.btn-dropdown .dropdown-menu{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.btn-dropdown .dropdown-menu.animated{-webkit-animation-name:btnDropdownZoomIn;animation-name:btnDropdownZoomIn}
|
package/package.json
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-interface/btn-dropdown",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.14",
|
|
4
4
|
"description": "A Vue button dropdown component.",
|
|
5
|
-
"
|
|
5
|
+
"files": [
|
|
6
|
+
"dist",
|
|
7
|
+
"tailwindcss"
|
|
8
|
+
],
|
|
9
|
+
"main": "./dist/btn-dropdown.umd.js",
|
|
10
|
+
"module": "./dist/btn-dropdown.es.js",
|
|
11
|
+
"browserslist": "last 2 versions, > 0.5%, ie >= 11",
|
|
6
12
|
"scripts": {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"lint": "vue-cli-service lint",
|
|
11
|
-
"fix": "vue-cli-service lint --fix",
|
|
13
|
+
"dev": "vite",
|
|
14
|
+
"build": "vite build",
|
|
15
|
+
"preview": "vite preview",
|
|
12
16
|
"pre-release": "npm run build; git add . -A; git commit -m 'pre-release commit'",
|
|
13
17
|
"release-patch": "npm run pre-release && npm version patch -m \"%s\" && npm run release;",
|
|
14
18
|
"release-minor": "npm run pre-release && npm version minor -m \"%s\" && npm run release;",
|
|
15
19
|
"release-major": "npm run pre-release && npm version major -m \"%s\" && npm run release;",
|
|
16
|
-
"release": "git add . -A; git commit; git push --tags origin; npm publish;"
|
|
17
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
18
|
-
"docs:dev": "./node_modules/.bin/vuepress dev docs",
|
|
19
|
-
"docs:build": "./node_modules/.bin/vuepress build docs"
|
|
20
|
+
"release": "git add . -A; git commit; git push --tags origin; npm publish;"
|
|
20
21
|
},
|
|
21
22
|
"repository": {
|
|
22
23
|
"type": "git",
|
|
@@ -38,28 +39,24 @@
|
|
|
38
39
|
},
|
|
39
40
|
"homepage": "https://github.com/vue-interface/btn-dropdown/docs#readme",
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"@popperjs/core": "^2.
|
|
42
|
-
"@vue-interface/btn": "^0.
|
|
43
|
-
"@vue-interface/btn-group": "^0.
|
|
44
|
-
"@vue-interface/dropdown-menu": "^0.
|
|
45
|
-
"
|
|
46
|
-
"core-js": "^3.6.4",
|
|
47
|
-
"tailwindcss": "^1.7.3",
|
|
48
|
-
"vue": "^2.6.12"
|
|
42
|
+
"@popperjs/core": "^2.11.2",
|
|
43
|
+
"@vue-interface/btn": "^1.0.0",
|
|
44
|
+
"@vue-interface/btn-group": "^1.0.0",
|
|
45
|
+
"@vue-interface/dropdown-menu": "^1.0.0",
|
|
46
|
+
"vue": "^2.6.14"
|
|
49
47
|
},
|
|
50
48
|
"devDependencies": {
|
|
51
|
-
"@
|
|
52
|
-
"
|
|
53
|
-
"@vue/cli-service": "^4.0",
|
|
54
|
-
"@vuepress/plugin-register-components": "^1.5.4",
|
|
49
|
+
"@rollup/plugin-babel": "^5.3.0",
|
|
50
|
+
"autoprefixer": "^10.4.2",
|
|
55
51
|
"babel-eslint": "^10.1.0",
|
|
52
|
+
"babel-preset-vue": "^2.0.2",
|
|
53
|
+
"change-case": "^4.1.2",
|
|
56
54
|
"eslint": "^6.7.2",
|
|
57
55
|
"eslint-plugin-vue": "^6.2.2",
|
|
58
|
-
"
|
|
59
|
-
"postcss
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"webpack-manifest-plugin": "^2.2.0"
|
|
56
|
+
"pascalcase": "^2.0.0",
|
|
57
|
+
"postcss": "^8.4.6",
|
|
58
|
+
"tailwindcss": "^3.0.18",
|
|
59
|
+
"vite": "^2.7.2",
|
|
60
|
+
"vite-plugin-vue2": "^1.9.3"
|
|
64
61
|
}
|
|
65
62
|
}
|
package/.eslintrc.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: [
|
|
3
|
-
'plugin:vue/recommended'
|
|
4
|
-
],
|
|
5
|
-
parserOptions: {
|
|
6
|
-
'parser': 'babel-eslint'
|
|
7
|
-
},
|
|
8
|
-
// add your custom rules here
|
|
9
|
-
rules: {
|
|
10
|
-
'vue/no-v-html': 0,
|
|
11
|
-
'vue/require-default-prop': 0,
|
|
12
|
-
"vue/max-attributes-per-line": ["error", {
|
|
13
|
-
"singleline": 5,
|
|
14
|
-
"multiline": {
|
|
15
|
-
"max": 1,
|
|
16
|
-
"allowFirstLine": true
|
|
17
|
-
}
|
|
18
|
-
}],
|
|
19
|
-
"vue/html-indent": ["error", 4, {
|
|
20
|
-
"attribute": 1,
|
|
21
|
-
"baseIndent": 1,
|
|
22
|
-
"closeBracket": 1,
|
|
23
|
-
"alignAttributesVertically": false,
|
|
24
|
-
"ignores": []
|
|
25
|
-
}],
|
|
26
|
-
"vue/html-closing-bracket-newline": ["error", {
|
|
27
|
-
"singleline": "never",
|
|
28
|
-
"multiline": "never"
|
|
29
|
-
}],
|
|
30
|
-
// Ensure no space after keywords like if.
|
|
31
|
-
'keyword-spacing': ["error", {
|
|
32
|
-
"overrides": {
|
|
33
|
-
"if": { "after": false },
|
|
34
|
-
"for": { "after": false },
|
|
35
|
-
"while": { "after": false }
|
|
36
|
-
}
|
|
37
|
-
}],
|
|
38
|
-
// Use alternative brace style
|
|
39
|
-
'brace-style': ['error', 'stroustrup'],
|
|
40
|
-
// No spaces before parens
|
|
41
|
-
'space-before-function-paren': ['error', 'never'],
|
|
42
|
-
// Indent for tabs because spaces suck
|
|
43
|
-
'indent': ['error', 4],
|
|
44
|
-
// Semi colons always where they need to be
|
|
45
|
-
'semi': [2,'always'],
|
|
46
|
-
// allow paren-less arrow functions
|
|
47
|
-
'arrow-parens': 0,
|
|
48
|
-
// allow async-await
|
|
49
|
-
'generator-star-spacing': 0,
|
|
50
|
-
// allow debugger during development
|
|
51
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
|
|
52
|
-
}
|
|
53
|
-
};
|