@gospore/checkbox 1.0.10 → 1.0.11
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/checkbox.es.js +3 -2
- package/dist/checkbox.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/checkbox.es.js
CHANGED
|
@@ -3359,7 +3359,8 @@ var without = baseRest(function(array, values) {
|
|
|
3359
3359
|
return isArrayLikeObject(array) ? baseDifference(array, values) : [];
|
|
3360
3360
|
});
|
|
3361
3361
|
var without_1 = without;
|
|
3362
|
-
var
|
|
3362
|
+
var Checkbox_vue_vue_type_style_index_0_lang = "";
|
|
3363
|
+
var Checkbox_vue_vue_type_style_index_1_scoped_true_lang = "";
|
|
3363
3364
|
var _export_sfc = (sfc, props) => {
|
|
3364
3365
|
const target = sfc.__vccOpts || sfc;
|
|
3365
3366
|
for (const [key, val] of props) {
|
|
@@ -3468,5 +3469,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3468
3469
|
createElementVNode("span", _hoisted_2, toDisplayString($props.value), 1)
|
|
3469
3470
|
], 2);
|
|
3470
3471
|
}
|
|
3471
|
-
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
3472
|
+
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-76626865"]]);
|
|
3472
3473
|
export { Checkbox as default };
|
package/dist/checkbox.umd.js
CHANGED
|
@@ -761,4 +761,4 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
761
761
|
* Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com
|
|
762
762
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
763
763
|
* Copyright 2022 Fonticons, Inc.
|
|
764
|
-
*/var cr={prefix:"fas",iconName:"check",icon:[448,512,[10004,10003],"f00c","M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"]},yt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ur=typeof yt=="object"&&yt&&yt.Object===Object&&yt,mr=ur,dr=mr,vr=typeof self=="object"&&self&&self.Object===Object&&self,pr=dr||vr||Function("return this")(),te=pr,hr=te,gr=hr.Symbol,rn=gr,on=rn,sn=Object.prototype,br=sn.hasOwnProperty,yr=sn.toString,at=on?on.toStringTag:void 0;function kr(t){var e=br.call(t,at),n=t[at];try{t[at]=void 0;var a=!0}catch{}var r=yr.call(t);return a&&(e?t[at]=n:delete t[at]),r}var xr=kr,wr=Object.prototype,_r=wr.toString;function Cr(t){return _r.call(t)}var Ar=Cr,fn=rn,Or=xr,Sr=Ar,Er="[object Null]",Ir="[object Undefined]",ln=fn?fn.toStringTag:void 0;function Nr(t){return t==null?t===void 0?Ir:Er:ln&&ln in Object(t)?Or(t):Sr(t)}var Pr=Nr;function Tr(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var cn=Tr,$r=Pr,Mr=cn,Lr="[object AsyncFunction]",zr="[object Function]",jr="[object GeneratorFunction]",Dr="[object Proxy]";function Rr(t){if(!Mr(t))return!1;var e=$r(t);return e==zr||e==jr||e==Lr||e==Dr}var un=Rr,Fr=te,Yr=Fr["__core-js_shared__"],Hr=Yr,ee=Hr,mn=function(){var t=/[^.]+$/.exec(ee&&ee.keys&&ee.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Ur(t){return!!mn&&mn in t}var Gr=Ur,Wr=Function.prototype,Br=Wr.toString;function Vr(t){if(t!=null){try{return Br.call(t)}catch{}try{return t+""}catch{}}return""}var Xr=Vr,Kr=un,qr=Gr,Jr=cn,Zr=Xr,Qr=/[\\^$.*+?()[\]{}|]/g,ti=/^\[object .+?Constructor\]$/,ei=Function.prototype,ni=Object.prototype,ai=ei.toString,ri=ni.hasOwnProperty,ii=RegExp("^"+ai.call(ri).replace(Qr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oi(t){if(!Jr(t)||qr(t))return!1;var e=Kr(t)?ii:ti;return e.test(Zr(t))}var si=oi;function fi(t,e){return t==null?void 0:t[e]}var li=fi,ci=si,ui=li;function mi(t,e){var n=ui(t,e);return ci(n)?n:void 0}var ne=mi,di=ne,vi=di(Object,"create"),kt=vi,dn=kt;function pi(){this.__data__=dn?dn(null):{},this.size=0}var hi=pi;function gi(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var bi=gi,yi=kt,ki="__lodash_hash_undefined__",xi=Object.prototype,wi=xi.hasOwnProperty;function _i(t){var e=this.__data__;if(yi){var n=e[t];return n===ki?void 0:n}return wi.call(e,t)?e[t]:void 0}var Ci=_i,Ai=kt,Oi=Object.prototype,Si=Oi.hasOwnProperty;function Ei(t){var e=this.__data__;return Ai?e[t]!==void 0:Si.call(e,t)}var Ii=Ei,Ni=kt,Pi="__lodash_hash_undefined__";function Ti(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ni&&e===void 0?Pi:e,this}var $i=Ti,Mi=hi,Li=bi,zi=Ci,ji=Ii,Di=$i;function B(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}B.prototype.clear=Mi,B.prototype.delete=Li,B.prototype.get=zi,B.prototype.has=ji,B.prototype.set=Di;var Ri=B;function Fi(){this.__data__=[],this.size=0}var Yi=Fi;function Hi(t,e){return t===e||t!==t&&e!==e}var Ui=Hi,Gi=Ui;function Wi(t,e){for(var n=t.length;n--;)if(Gi(t[n][0],e))return n;return-1}var xt=Wi,Bi=xt,Vi=Array.prototype,Xi=Vi.splice;function Ki(t){var e=this.__data__,n=Bi(e,t);if(n<0)return!1;var a=e.length-1;return n==a?e.pop():Xi.call(e,n,1),--this.size,!0}var qi=Ki,Ji=xt;function Zi(t){var e=this.__data__,n=Ji(e,t);return n<0?void 0:e[n][1]}var Qi=Zi,to=xt;function eo(t){return to(this.__data__,t)>-1}var no=eo,ao=xt;function ro(t,e){var n=this.__data__,a=ao(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this}var io=ro,oo=Yi,so=qi,fo=Qi,lo=no,co=io;function V(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}V.prototype.clear=oo,V.prototype.delete=so,V.prototype.get=fo,V.prototype.has=lo,V.prototype.set=co;var uo=V,mo=ne,vo=te,po=mo(vo,"Map"),ho=po,vn=Ri,go=uo,bo=ho;function yo(){this.size=0,this.__data__={hash:new vn,map:new(bo||go),string:new vn}}var ko=yo;function xo(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var wo=xo,_o=wo;function Co(t,e){var n=t.__data__;return _o(e)?n[typeof e=="string"?"string":"hash"]:n.map}var wt=Co,Ao=wt;function Oo(t){var e=Ao(this,t).delete(t);return this.size-=e?1:0,e}var So=Oo,Eo=wt;function Io(t){return Eo(this,t).get(t)}var No=Io,Po=wt;function To(t){return Po(this,t).has(t)}var $o=To,Mo=wt;function Lo(t,e){var n=Mo(this,t),a=n.size;return n.set(t,e),this.size+=n.size==a?0:1,this}var zo=Lo,jo=ko,Do=So,Ro=No,Fo=$o,Yo=zo;function X(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}X.prototype.clear=jo,X.prototype.delete=Do,X.prototype.get=Ro,X.prototype.has=Fo,X.prototype.set=Yo;var Ho=X,Uo="__lodash_hash_undefined__";function Go(t){return this.__data__.set(t,Uo),this}var Wo=Go;function Bo(t){return this.__data__.has(t)}var Vo=Bo,Xo=Ho,Ko=Wo,qo=Vo;function _t(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Xo;++e<n;)this.add(t[e])}_t.prototype.add=_t.prototype.push=Ko,_t.prototype.has=qo;var Jo=_t;function Zo(t,e,n,a){for(var r=t.length,o=n+(a?1:-1);a?o--:++o<r;)if(e(t[o],o,t))return o;return-1}var Qo=Zo;function ts(t){return t!==t}var es=ts;function ns(t,e,n){for(var a=n-1,r=t.length;++a<r;)if(t[a]===e)return a;return-1}var as=ns,rs=Qo,is=es,os=as;function ss(t,e,n){return e===e?os(t,e,n):rs(t,is,n)}var fs=ss,ls=fs;function cs(t,e){var n=t==null?0:t.length;return!!n&&ls(t,e,0)>-1}var us=cs;function ms(t,e,n){for(var a=-1,r=t==null?0:t.length;++a<r;)if(n(e,t[a]))return!0;return!1}var ds=ms;function vs(t,e){for(var n=-1,a=t==null?0:t.length,r=Array(a);++n<a;)r[n]=e(t[n],n,t);return r}var ps=vs;function hs(t){return function(e){return t(e)}}var gs=hs;function bs(t,e){return t.has(e)}var ys=bs,ks=Jo,xs=us,ws=ds,_s=ps,Cs=gs,As=ys,Os=200;function Ss(t,e,n,a){var r=-1,o=xs,i=!0,s=t.length,f=[],m=e.length;if(!s)return f;n&&(e=_s(e,Cs(n))),a?(o=ws,i=!1):e.length>=Os&&(o=As,i=!1,e=new ks(e));t:for(;++r<s;){var l=t[r],u=n==null?l:n(l);if(l=a||l!==0?l:0,i&&u===u){for(var h=m;h--;)if(e[h]===u)continue t;f.push(l)}else o(e,u,a)||f.push(l)}return f}var Es=Ss;function Is(t){return t}var pn=Is;function Ns(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Ps=Ns,Ts=Ps,hn=Math.max;function $s(t,e,n){return e=hn(e===void 0?t.length-1:e,0),function(){for(var a=arguments,r=-1,o=hn(a.length-e,0),i=Array(o);++r<o;)i[r]=a[e+r];r=-1;for(var s=Array(e+1);++r<e;)s[r]=a[r];return s[e]=n(i),Ts(t,this,s)}}var Ms=$s;function Ls(t){return function(){return t}}var zs=Ls,js=ne,Ds=function(){try{var t=js(Object,"defineProperty");return t({},"",{}),t}catch{}}(),Rs=Ds,Fs=zs,gn=Rs,Ys=pn,Hs=gn?function(t,e){return gn(t,"toString",{configurable:!0,enumerable:!1,value:Fs(e),writable:!0})}:Ys,Us=Hs,Gs=800,Ws=16,Bs=Date.now;function Vs(t){var e=0,n=0;return function(){var a=Bs(),r=Ws-(a-n);if(n=a,r>0){if(++e>=Gs)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Xs=Vs,Ks=Us,qs=Xs,Js=qs(Ks),Zs=Js,Qs=pn,tf=Ms,ef=Zs;function nf(t,e){return ef(tf(t,e,Qs),t+"")}var af=nf,rf=9007199254740991;function of(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=rf}var sf=of,ff=un,lf=sf;function cf(t){return t!=null&&lf(t.length)&&!ff(t)}var uf=cf;function mf(t){return t!=null&&typeof t=="object"}var df=mf,vf=uf,pf=df;function hf(t){return pf(t)&&vf(t)}var gf=hf,bf=Es,yf=af,kf=gf,xf=yf(function(t,e){return kf(t)?bf(t,e):[]}),wf=xf,If="",_f=(t,e)=>{const n=t.__vccOpts||t;for(const[a,r]of e)n[a]=r;return n};const Cf={name:"Checkbox",components:{FontAwesomeIcon:lr},inheritAttrs:!1,props:{checked:{type:[Boolean,Array],default:!1},value:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:checked"],data(){return{focused:!1,internalChecked:this.checked,iconCheck:cr}},computed:{isChecked(){return typeof this.internalChecked=="boolean"?this.internalChecked:this.internalChecked.includes(this.value)},attrs(){let t=this,e=Object.assign({},this.$attrs,{onKeyup(n){t.$emit("keyup",n),n.key==="Enter"&&(t.$emit("click"),typeof t.internalChecked=="boolean"?t.internalChecked=!t.internalChecked:t.internalChecked.includes(t.value)?t.internalChecked=wf(t.internalChecked,t.value):t.internalChecked.push(t.value))}});return delete e.class,e}},watch:{checked(){this.internalChecked=this.checked},internalChecked(){this.internalChecked!=this.checked&&this.$emit("update:checked",this.internalChecked)}}},Af=["value","disabled"],Of={class:"checkbox-label"};function Sf(t,e,n,a,r,o){const i=g.resolveComponent("font-awesome-icon");return g.openBlock(),g.createElementBlock("label",{class:g.normalizeClass(["checkbox",{"checkbox-disabled":n.disabled},t.$attrs.class])},[g.createElementVNode("span",{class:g.normalizeClass(["checkbox-input",{"checkbox-checked":o.isChecked,"checkbox-focused":r.focused}])},[g.createVNode(i,{class:"checkbox-input-icon",icon:r.iconCheck},null,8,["icon"]),g.withDirectives(g.createElementVNode("input",g.mergeProps(o.attrs,{"onUpdate:modelValue":e[0]||(e[0]=s=>r.internalChecked=s),type:"checkbox",value:n.value,disabled:n.disabled,onFocus:e[1]||(e[1]=s=>r.focused=!0),onFocusout:e[2]||(e[2]=s=>r.focused=!1)}),null,16,Af),[[g.vModelCheckbox,r.internalChecked]])],2),g.createElementVNode("span",Of,g.toDisplayString(n.value),1)],2)}var Ef=_f(Cf,[["render",Sf],["__scopeId","data-v-
|
|
764
|
+
*/var cr={prefix:"fas",iconName:"check",icon:[448,512,[10004,10003],"f00c","M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"]},yt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ur=typeof yt=="object"&&yt&&yt.Object===Object&&yt,mr=ur,dr=mr,vr=typeof self=="object"&&self&&self.Object===Object&&self,pr=dr||vr||Function("return this")(),te=pr,hr=te,gr=hr.Symbol,rn=gr,on=rn,sn=Object.prototype,br=sn.hasOwnProperty,yr=sn.toString,at=on?on.toStringTag:void 0;function kr(t){var e=br.call(t,at),n=t[at];try{t[at]=void 0;var a=!0}catch{}var r=yr.call(t);return a&&(e?t[at]=n:delete t[at]),r}var xr=kr,wr=Object.prototype,_r=wr.toString;function Cr(t){return _r.call(t)}var Ar=Cr,fn=rn,Or=xr,Sr=Ar,Er="[object Null]",Ir="[object Undefined]",ln=fn?fn.toStringTag:void 0;function Nr(t){return t==null?t===void 0?Ir:Er:ln&&ln in Object(t)?Or(t):Sr(t)}var Pr=Nr;function Tr(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var cn=Tr,$r=Pr,Mr=cn,Lr="[object AsyncFunction]",zr="[object Function]",jr="[object GeneratorFunction]",Dr="[object Proxy]";function Rr(t){if(!Mr(t))return!1;var e=$r(t);return e==zr||e==jr||e==Lr||e==Dr}var un=Rr,Fr=te,Yr=Fr["__core-js_shared__"],Hr=Yr,ee=Hr,mn=function(){var t=/[^.]+$/.exec(ee&&ee.keys&&ee.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Ur(t){return!!mn&&mn in t}var Gr=Ur,Wr=Function.prototype,Br=Wr.toString;function Vr(t){if(t!=null){try{return Br.call(t)}catch{}try{return t+""}catch{}}return""}var Xr=Vr,Kr=un,qr=Gr,Jr=cn,Zr=Xr,Qr=/[\\^$.*+?()[\]{}|]/g,ti=/^\[object .+?Constructor\]$/,ei=Function.prototype,ni=Object.prototype,ai=ei.toString,ri=ni.hasOwnProperty,ii=RegExp("^"+ai.call(ri).replace(Qr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oi(t){if(!Jr(t)||qr(t))return!1;var e=Kr(t)?ii:ti;return e.test(Zr(t))}var si=oi;function fi(t,e){return t==null?void 0:t[e]}var li=fi,ci=si,ui=li;function mi(t,e){var n=ui(t,e);return ci(n)?n:void 0}var ne=mi,di=ne,vi=di(Object,"create"),kt=vi,dn=kt;function pi(){this.__data__=dn?dn(null):{},this.size=0}var hi=pi;function gi(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var bi=gi,yi=kt,ki="__lodash_hash_undefined__",xi=Object.prototype,wi=xi.hasOwnProperty;function _i(t){var e=this.__data__;if(yi){var n=e[t];return n===ki?void 0:n}return wi.call(e,t)?e[t]:void 0}var Ci=_i,Ai=kt,Oi=Object.prototype,Si=Oi.hasOwnProperty;function Ei(t){var e=this.__data__;return Ai?e[t]!==void 0:Si.call(e,t)}var Ii=Ei,Ni=kt,Pi="__lodash_hash_undefined__";function Ti(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ni&&e===void 0?Pi:e,this}var $i=Ti,Mi=hi,Li=bi,zi=Ci,ji=Ii,Di=$i;function B(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}B.prototype.clear=Mi,B.prototype.delete=Li,B.prototype.get=zi,B.prototype.has=ji,B.prototype.set=Di;var Ri=B;function Fi(){this.__data__=[],this.size=0}var Yi=Fi;function Hi(t,e){return t===e||t!==t&&e!==e}var Ui=Hi,Gi=Ui;function Wi(t,e){for(var n=t.length;n--;)if(Gi(t[n][0],e))return n;return-1}var xt=Wi,Bi=xt,Vi=Array.prototype,Xi=Vi.splice;function Ki(t){var e=this.__data__,n=Bi(e,t);if(n<0)return!1;var a=e.length-1;return n==a?e.pop():Xi.call(e,n,1),--this.size,!0}var qi=Ki,Ji=xt;function Zi(t){var e=this.__data__,n=Ji(e,t);return n<0?void 0:e[n][1]}var Qi=Zi,to=xt;function eo(t){return to(this.__data__,t)>-1}var no=eo,ao=xt;function ro(t,e){var n=this.__data__,a=ao(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this}var io=ro,oo=Yi,so=qi,fo=Qi,lo=no,co=io;function V(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}V.prototype.clear=oo,V.prototype.delete=so,V.prototype.get=fo,V.prototype.has=lo,V.prototype.set=co;var uo=V,mo=ne,vo=te,po=mo(vo,"Map"),ho=po,vn=Ri,go=uo,bo=ho;function yo(){this.size=0,this.__data__={hash:new vn,map:new(bo||go),string:new vn}}var ko=yo;function xo(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var wo=xo,_o=wo;function Co(t,e){var n=t.__data__;return _o(e)?n[typeof e=="string"?"string":"hash"]:n.map}var wt=Co,Ao=wt;function Oo(t){var e=Ao(this,t).delete(t);return this.size-=e?1:0,e}var So=Oo,Eo=wt;function Io(t){return Eo(this,t).get(t)}var No=Io,Po=wt;function To(t){return Po(this,t).has(t)}var $o=To,Mo=wt;function Lo(t,e){var n=Mo(this,t),a=n.size;return n.set(t,e),this.size+=n.size==a?0:1,this}var zo=Lo,jo=ko,Do=So,Ro=No,Fo=$o,Yo=zo;function X(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}X.prototype.clear=jo,X.prototype.delete=Do,X.prototype.get=Ro,X.prototype.has=Fo,X.prototype.set=Yo;var Ho=X,Uo="__lodash_hash_undefined__";function Go(t){return this.__data__.set(t,Uo),this}var Wo=Go;function Bo(t){return this.__data__.has(t)}var Vo=Bo,Xo=Ho,Ko=Wo,qo=Vo;function _t(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Xo;++e<n;)this.add(t[e])}_t.prototype.add=_t.prototype.push=Ko,_t.prototype.has=qo;var Jo=_t;function Zo(t,e,n,a){for(var r=t.length,o=n+(a?1:-1);a?o--:++o<r;)if(e(t[o],o,t))return o;return-1}var Qo=Zo;function ts(t){return t!==t}var es=ts;function ns(t,e,n){for(var a=n-1,r=t.length;++a<r;)if(t[a]===e)return a;return-1}var as=ns,rs=Qo,is=es,os=as;function ss(t,e,n){return e===e?os(t,e,n):rs(t,is,n)}var fs=ss,ls=fs;function cs(t,e){var n=t==null?0:t.length;return!!n&&ls(t,e,0)>-1}var us=cs;function ms(t,e,n){for(var a=-1,r=t==null?0:t.length;++a<r;)if(n(e,t[a]))return!0;return!1}var ds=ms;function vs(t,e){for(var n=-1,a=t==null?0:t.length,r=Array(a);++n<a;)r[n]=e(t[n],n,t);return r}var ps=vs;function hs(t){return function(e){return t(e)}}var gs=hs;function bs(t,e){return t.has(e)}var ys=bs,ks=Jo,xs=us,ws=ds,_s=ps,Cs=gs,As=ys,Os=200;function Ss(t,e,n,a){var r=-1,o=xs,i=!0,s=t.length,f=[],m=e.length;if(!s)return f;n&&(e=_s(e,Cs(n))),a?(o=ws,i=!1):e.length>=Os&&(o=As,i=!1,e=new ks(e));t:for(;++r<s;){var l=t[r],u=n==null?l:n(l);if(l=a||l!==0?l:0,i&&u===u){for(var h=m;h--;)if(e[h]===u)continue t;f.push(l)}else o(e,u,a)||f.push(l)}return f}var Es=Ss;function Is(t){return t}var pn=Is;function Ns(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Ps=Ns,Ts=Ps,hn=Math.max;function $s(t,e,n){return e=hn(e===void 0?t.length-1:e,0),function(){for(var a=arguments,r=-1,o=hn(a.length-e,0),i=Array(o);++r<o;)i[r]=a[e+r];r=-1;for(var s=Array(e+1);++r<e;)s[r]=a[r];return s[e]=n(i),Ts(t,this,s)}}var Ms=$s;function Ls(t){return function(){return t}}var zs=Ls,js=ne,Ds=function(){try{var t=js(Object,"defineProperty");return t({},"",{}),t}catch{}}(),Rs=Ds,Fs=zs,gn=Rs,Ys=pn,Hs=gn?function(t,e){return gn(t,"toString",{configurable:!0,enumerable:!1,value:Fs(e),writable:!0})}:Ys,Us=Hs,Gs=800,Ws=16,Bs=Date.now;function Vs(t){var e=0,n=0;return function(){var a=Bs(),r=Ws-(a-n);if(n=a,r>0){if(++e>=Gs)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Xs=Vs,Ks=Us,qs=Xs,Js=qs(Ks),Zs=Js,Qs=pn,tf=Ms,ef=Zs;function nf(t,e){return ef(tf(t,e,Qs),t+"")}var af=nf,rf=9007199254740991;function of(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=rf}var sf=of,ff=un,lf=sf;function cf(t){return t!=null&&lf(t.length)&&!ff(t)}var uf=cf;function mf(t){return t!=null&&typeof t=="object"}var df=mf,vf=uf,pf=df;function hf(t){return pf(t)&&vf(t)}var gf=hf,bf=Es,yf=af,kf=gf,xf=yf(function(t,e){return kf(t)?bf(t,e):[]}),wf=xf,If="",Nf="",_f=(t,e)=>{const n=t.__vccOpts||t;for(const[a,r]of e)n[a]=r;return n};const Cf={name:"Checkbox",components:{FontAwesomeIcon:lr},inheritAttrs:!1,props:{checked:{type:[Boolean,Array],default:!1},value:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:checked"],data(){return{focused:!1,internalChecked:this.checked,iconCheck:cr}},computed:{isChecked(){return typeof this.internalChecked=="boolean"?this.internalChecked:this.internalChecked.includes(this.value)},attrs(){let t=this,e=Object.assign({},this.$attrs,{onKeyup(n){t.$emit("keyup",n),n.key==="Enter"&&(t.$emit("click"),typeof t.internalChecked=="boolean"?t.internalChecked=!t.internalChecked:t.internalChecked.includes(t.value)?t.internalChecked=wf(t.internalChecked,t.value):t.internalChecked.push(t.value))}});return delete e.class,e}},watch:{checked(){this.internalChecked=this.checked},internalChecked(){this.internalChecked!=this.checked&&this.$emit("update:checked",this.internalChecked)}}},Af=["value","disabled"],Of={class:"checkbox-label"};function Sf(t,e,n,a,r,o){const i=g.resolveComponent("font-awesome-icon");return g.openBlock(),g.createElementBlock("label",{class:g.normalizeClass(["checkbox",{"checkbox-disabled":n.disabled},t.$attrs.class])},[g.createElementVNode("span",{class:g.normalizeClass(["checkbox-input",{"checkbox-checked":o.isChecked,"checkbox-focused":r.focused}])},[g.createVNode(i,{class:"checkbox-input-icon",icon:r.iconCheck},null,8,["icon"]),g.withDirectives(g.createElementVNode("input",g.mergeProps(o.attrs,{"onUpdate:modelValue":e[0]||(e[0]=s=>r.internalChecked=s),type:"checkbox",value:n.value,disabled:n.disabled,onFocus:e[1]||(e[1]=s=>r.focused=!0),onFocusout:e[2]||(e[2]=s=>r.focused=!1)}),null,16,Af),[[g.vModelCheckbox,r.internalChecked]])],2),g.createElementVNode("span",Of,g.toDisplayString(n.value),1)],2)}var Ef=_f(Cf,[["render",Sf],["__scopeId","data-v-76626865"]]);return Ef});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
:root{--checkbox-background-default-default-light: transparent;--checkbox-background-default-default-dark: transparent;--checkbox-background-default-hover-light: var(--go-color-n20);--checkbox-background-default-hover-dark: var(--go-color-dn50);--checkbox-background-default-active-light: var(--go-color-b200);--checkbox-background-default-active-dark: rgba(var(--go-color-b200-rgb), .2);--checkbox-background-default-disabled-light: var(--go-color-n20);--checkbox-background-default-disabled-dark: var(--go-color-dn50);--checkbox-background-checked-default-light: var(--go-color-b400);--checkbox-background-checked-default-dark: var(--go-color-b100);--checkbox-background-checked-hover-light: var(--go-color-b400);--checkbox-background-checked-hover-dark: var(--go-color-b200);--checkbox-background-checked-active-light: var(--go-color-b200);--checkbox-background-checked-active-dark: rgba(var(--go-color-b200-rgb), .2);--checkbox-background-checked-disabled-light: var(--go-color-n20);--checkbox-background-checked-disabled-dark: var(--go-color-dn50);--checkbox-color-default-default-light: transparent;--checkbox-color-default-default-dark: transparent;--checkbox-color-default-hover-light: transparent;--checkbox-color-default-hover-dark: transparent;--checkbox-color-default-active-light: var(--go-color-b200);--checkbox-color-default-active-dark: transparent;--checkbox-color-default-disabled-light: var(--go-color-n20);--checkbox-color-default-disabled-dark: var(--go-color-dn50);--checkbox-color-checked-default-light: var(--go-color-n0);--checkbox-color-checked-default-dark: var(--go-color-dn30);--checkbox-color-checked-hover-light: var(--go-color-n0);--checkbox-color-checked-hover-dark: var(--go-color-dn30);--checkbox-color-checked-active-light: var(--go-color-b500);--checkbox-color-checked-active-dark: var(--go-color-b100);--checkbox-color-checked-disabled-light: var(--go-color-n70);--checkbox-color-checked-disabled-dark: var(--go-color-dn100);--checkbox-border-color-default-default-light: var(--go-color-n40);--checkbox-border-color-default-default-dark: var(--go-color-dn70);--checkbox-border-color-default-hover-light: var(--go-color-n40);--checkbox-border-color-default-hover-dark: var(--go-color-dn70);--checkbox-border-color-default-active-light: var(--go-color-b200);--checkbox-border-color-default-active-dark: transparent;--checkbox-border-color-default-disabled-light: var(--go-color-n20);--checkbox-border-color-default-disabled-dark: var(--go-color-dn50);--checkbox-border-color-checked-default-light: var(--go-color-b400);--checkbox-border-color-checked-default-dark: var(--go-color-b100);--checkbox-border-color-checked-hover-light: var(--go-color-b400);--checkbox-border-color-checked-hover-dark: var(--go-color-b200);--checkbox-border-color-checked-active-light: var(--go-color-b200);--checkbox-border-color-checked-active-dark: transparent;--checkbox-border-color-checked-disabled-light: var(--go-color-n20);--checkbox-border-color-checked-disabled-dark: var(--go-color-dn50);--checkbox-height: 14px;--checkbox-width: 14px;--checkbox-padding: var(--size-0) var(--size-4);--checkbox-label-padding: 2px 10px;--checkbox-border-radius: var(--border-radius-regular);--checkbox-border-width: var(--border-width);--checkbox-transition: var(--transition-100ms-ease-in-out);--checkbox-focus-outline-color: var(--focus-outline-color)}.checkbox[data-v-76626865]{position:relative;display:flex;align-items:center;padding:var(--checkbox-padding)}.checkbox .checkbox-input[data-v-76626865]{display:flex;align-items:center;justify-content:center;height:var(--checkbox-height);width:var(--checkbox-width);box-sizing:border-box;border-radius:var(--checkbox-border-radius);border:var(--checkbox-border-width) solid;background-color:var(--checkbox-background-default-default-light);color:var(--checkbox-color-default-default-light);border-color:var(--checkbox-border-color-default-default-light);transition:var(--checkbox-transition)}.checkbox:hover .checkbox-input[data-v-76626865]{background-color:var(--checkbox-background-default-hover-light);color:var(--checkbox-color-default-hover-light);border-color:var(--checkbox-border-color-default-hover-light)}.checkbox:active .checkbox-input[data-v-76626865]{background-color:var(--checkbox-background-default-active-light);color:var(--checkbox-color-default-active-light);border-color:var(--checkbox-border-color-default-active-light)}.checkbox .checkbox-checked[data-v-76626865]{background-color:var(--checkbox-background-checked-default-light);color:var(--checkbox-color-checked-default-light);border-color:var(--checkbox-border-color-checked-default-light)}.checkbox:hover .checkbox-checked[data-v-76626865]{background-color:var(--checkbox-background-checked-hover-light);color:var(--checkbox-color-checked-hover-light);border-color:var(--checkbox-border-color-checked-hover-light)}.checkbox:active .checkbox-checked[data-v-76626865]{background-color:var(--checkbox-background-checked-active-light);color:var(--checkbox-color-checked-active-light);border-color:var(--checkbox-border-color-checked-active-light)}.checkbox-disabled[data-v-76626865]{color:var(--checkbox-color-checked-disabled-light);cursor:not-allowed}.checkbox-disabled .checkbox-input[data-v-76626865],.checkbox-disabled:hover .checkbox-input[data-v-76626865]{background-color:var(--checkbox-background-default-disabled-light);color:var(--checkbox-color-default-disabled-light);border-color:var(--checkbox-border-color-default-disabled-light)}.checkbox-disabled .checkbox-checked[data-v-76626865],.checkbox-disabled:hover .checkbox-checked[data-v-76626865]{background-color:var(--checkbox-background-checked-disabled-light);color:var(--checkbox-color-checked-disabled-light);border-color:var(--checkbox-border-color-checked-disabled-light)}.checkbox-input-icon[data-v-76626865]{height:100%;width:100%;box-sizing:border-box;padding:1px}.checkbox-label[data-v-76626865]{padding:var(--checkbox-label-padding)}input[data-v-76626865]{margin:0;opacity:0;position:absolute;pointer-events:none}[data-whatinput=keyboard] .checkbox-focused[data-v-76626865]{border-color:var(--checkbox-focus-outline-color)!important}[dark-mode=true] .checkbox .checkbox-input[data-v-76626865]{background-color:var(--checkbox-background-default-default-dark);color:var(--checkbox-color-default-default-dark);border-color:var(--checkbox-border-color-default-default-dark)}[dark-mode=true] .checkbox:hover .checkbox-input[data-v-76626865]{background-color:var(--checkbox-background-default-hover-dark);color:var(--checkbox-color-default-hover-dark);border-color:var(--checkbox-border-color-default-hover-dark)}[dark-mode=true] .checkbox:active .checkbox-input[data-v-76626865]{background-color:var(--checkbox-background-default-active-dark);color:var(--checkbox-color-default-active-dark);border-color:var(--checkbox-border-color-default-active-dark)}[dark-mode=true] .checkbox .checkbox-checked[data-v-76626865]{background-color:var(--checkbox-background-checked-default-dark);color:var(--checkbox-color-checked-default-dark);border-color:var(--checkbox-border-color-checked-default-dark)}[dark-mode=true] .checkbox:hover .checkbox-checked[data-v-76626865]{background-color:var(--checkbox-background-checked-hover-dark);color:var(--checkbox-color-checked-hover-dark);border-color:var(--checkbox-border-color-checked-hover-dark)}[dark-mode=true] .checkbox:active .checkbox-checked[data-v-76626865]{background-color:var(--checkbox-background-checked-active-dark);color:var(--checkbox-color-checked-active-dark);border-color:var(--checkbox-border-color-checked-active-dark)}[dark-mode=true] .checkbox-disabled[data-v-76626865]{color:var(--checkbox-color-checked-disabled-dark)}[dark-mode=true] .checkbox-disabled .checkbox-input[data-v-76626865],[dark-mode=true] .checkbox-disabled:hover .checkbox-input[data-v-76626865]{background-color:var(--checkbox-background-default-disabled-dark);color:var(--checkbox-color-default-disabled-dark);border-color:var(--checkbox-border-color-default-disabled-dark)}[dark-mode=true] .checkbox-disabled .checkbox-checked[data-v-76626865],[dark-mode=true] .checkbox-disabled:hover .checkbox-checked[data-v-76626865]{background-color:var(--checkbox-background-checked-disabled-dark);color:var(--checkbox-color-checked-disabled-dark);border-color:var(--checkbox-border-color-checked-disabled-dark)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gospore/checkbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Gospore",
|
|
6
6
|
"files": [
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"overrides": {
|
|
35
35
|
"vue": "^3.0.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "743530c2c245ad8e28eeae4e25553789a3dddda6"
|
|
38
38
|
}
|