@bpui/checkbox
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -0,1 +1,7 @@ | ||
/*! | ||
* bpui checkbox v0.1.7 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* Released under the MIT License. | ||
*/ | ||
'use strict'; | ||
@@ -2,0 +8,0 @@ |
/*! | ||
* bpui checkbox v0.1.6 | ||
* Copyright (c) 2020 Copyright bp All Rights Reserved. | ||
* bpui checkbox v0.1.7 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* Released under the MIT License. | ||
*/'use strict';function _interopDefault(a){return a&&"object"==typeof a&&"default"in a?a["default"]:a}var bpLibs=_interopDefault(require("@bpui/libs")),script={components:{},props:{checked:{default:!1},disabled:{default:!1,type:Boolean}},model:{prop:"checked",event:"change"},data(){return{isChecked:!1,hovering:!1}},computed:{isDisabled(){return this.disabled||!1!==this.disabled}},created(){this.isChecked=this.checked},beforeDestroy(){},beforeMount(){},mounted(){},methods:{handelChange(a){this.$emit("change",a.target.checked),this.isChecked=a.target.checked}}};function normalizeComponent(a,b,c,d,e,f,g,h,i,j){"boolean"!=typeof g&&(i=h,h=g,g=!1);const k="function"==typeof c?c.options:c;a&&a.render&&(k.render=a.render,k.staticRenderFns=a.staticRenderFns,k._compiled=!0,e&&(k.functional=!0)),d&&(k._scopeId=d);let l;if(f?(l=function(a){a=a||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,a||"undefined"==typeof __VUE_SSR_CONTEXT__||(a=__VUE_SSR_CONTEXT__),b&&b.call(this,i(a)),a&&a._registeredComponents&&a._registeredComponents.add(f)},k._ssrRegister=l):b&&(l=g?function(a){b.call(this,j(a,this.$root.$options.shadowRoot))}:function(a){b.call(this,h(a))}),l)if(k.functional){const a=k.render;k.render=function(b,c){return l.call(c),a(b,c)}}else{const a=k.beforeCreate;k.beforeCreate=a?[].concat(a,l):[l]}return c}const __vue_script__=script;var __vue_render__=function(){var a=this,b=a.$createElement,c=a._self._c||b;return c("label",{staticClass:"bp-checkbox",class:{"bp-Checkbox__disabled":a.isDisabled},on:{mouseenter:function(){a.hovering=!0},mouseleave:function(){a.hovering=!1}}},[c("span",{staticClass:"bp-checkbox__input"},[c("span",{staticClass:"bp-checkbox__inner",class:[a.hovering?"bp-checkbox__inner_hover":"",a.isChecked?"bp-checkbox__inner_checked":""]},[a.isChecked?c("bp-icon",{attrs:{name:"bp-checkbox_checked"}}):a._e()],1),a._v(" "),c("input",a._b({staticClass:"bp-checkbox__original",attrs:{type:"checkbox",disabled:a.isDisabled},domProps:{checked:a.checked},on:{change:a.handelChange}},"input",a.$attrs,!1))]),a._v(" "),a.$slots.default?c("span",{staticClass:"bp-checkbox__label"},[a._t("default")],2):a._e()])},__vue_staticRenderFns__=[];__vue_render__._withStripped=!0;const __vue_inject_styles__=void 0,__vue_scope_id__=void 0,__vue_module_identifier__=void 0,__vue_is_functional_template__=!1,__vue_component__=normalizeComponent({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},void 0,__vue_script__,__vue_scope_id__,__vue_is_functional_template__,__vue_module_identifier__,!1,void 0,void 0,void 0);function init(){bpLibs.icons.registerAliasIcon("bp-checkbox_checked","ok")}init();var index={init,bpCheckbox:__vue_component__};module.exports=index; | ||
*/ | ||
"use strict";var e,t=(e=require("@bpui/libs"))&&"object"==typeof e&&"default"in e?e.default:e,n={components:{},props:{checked:{default:!1},disabled:{default:!1,type:Boolean}},model:{prop:"checked",event:"change"},data:function(){return{isChecked:!1,hovering:!1}},computed:{isDisabled:function(){return this.disabled||!1!==this.disabled}},created:function(){this.isChecked=this.checked},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{handelChange:function(e){this.$emit("change",e.target.checked),this.isChecked=e.target.checked}}},r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e,t){return e(t={exports:{}},t.exports),t.exports}var i=function(e){return e&&e.Math==Math&&e},c=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof r&&r)||Function("return this")(),u=function(e){try{return!!e()}catch(e){return!0}},a=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,l={f:s&&!f.call({1:2},1)?function(e){var t=s(this,e);return!!t&&t.enumerable}:f},p=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},d={}.toString,h=function(e){return d.call(e).slice(8,-1)},b="".split,y=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==h(e)?b.call(e,""):Object(e)}:Object,v=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},g=function(e){return y(v(e))},m=function(e){return"object"==typeof e?null!==e:"function"==typeof e},_=function(e,t){if(!m(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!m(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!m(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!m(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},k={}.hasOwnProperty,S=function(e,t){return k.call(e,t)},w=c.document,x=m(w)&&m(w.createElement),C=!a&&!u((function(){return 7!=Object.defineProperty((e="div",x?w.createElement(e):{}),"a",{get:function(){return 7}}).a;var e})),O=Object.getOwnPropertyDescriptor,j={f:a?O:function(e,t){if(e=g(e),t=_(t,!0),C)try{return O(e,t)}catch(e){}if(S(e,t))return p(!l.f.call(e,t),e[t])}},E=function(e){if(!m(e))throw TypeError(String(e)+" is not an object");return e},T=Object.defineProperty,P={f:a?T:function(e,t,n){if(E(e),t=_(t,!0),E(n),C)try{return T(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},M=a?function(e,t,n){return P.f(e,t,p(1,n))}:function(e,t,n){return e[t]=n,e},A=function(e,t){try{M(c,e,t)}catch(n){c[e]=t}return t},$=c["__core-js_shared__"]||A("__core-js_shared__",{}),F=Function.toString;"function"!=typeof $.inspectSource&&($.inspectSource=function(e){return F.call(e)});var I,R,D,N,L=$.inspectSource,z=c.WeakMap,V="function"==typeof z&&/native code/.test(L(z)),q=o((function(e){(e.exports=function(e,t){return $[e]||($[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),B=0,G=Math.random(),U=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++B+G).toString(36)},W=q("keys"),X={},K=c.WeakMap;if(V){var Y=new K,H=Y.get,J=Y.has,Q=Y.set;I=function(e,t){return Q.call(Y,e,t),t},R=function(e){return H.call(Y,e)||{}},D=function(e){return J.call(Y,e)}}else{var Z=W[N="state"]||(W[N]=U(N));X[Z]=!0,I=function(e,t){return M(e,Z,t),t},R=function(e){return S(e,Z)?e[Z]:{}},D=function(e){return S(e,Z)}}var ee,te,ne={set:I,get:R,has:D,enforce:function(e){return D(e)?R(e):I(e,{})},getterFor:function(e){return function(t){var n;if(!m(t)||(n=R(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},re=o((function(e){var t=ne.get,n=ne.enforce,r=String(String).split("String");(e.exports=function(e,t,o,i){var u=!!i&&!!i.unsafe,a=!!i&&!!i.enumerable,f=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||S(o,"name")||M(o,"name",t),n(o).source=r.join("string"==typeof t?t:"")),e!==c?(u?!f&&e[t]&&(a=!0):delete e[t],a?e[t]=o:M(e,t,o)):a?e[t]=o:A(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||L(this)}))})),oe=c,ie=function(e){return"function"==typeof e?e:void 0},ce=function(e,t){return arguments.length<2?ie(oe[e])||ie(c[e]):oe[e]&&oe[e][t]||c[e]&&c[e][t]},ue=Math.ceil,ae=Math.floor,fe=function(e){return isNaN(e=+e)?0:(e>0?ae:ue)(e)},se=Math.min,le=function(e){return e>0?se(fe(e),9007199254740991):0},pe=Math.max,de=Math.min,he=function(e){return function(t,n,r){var o,i=g(t),c=le(i.length),u=function(e,t){var n=fe(e);return n<0?pe(n+t,0):de(n,t)}(r,c);if(e&&n!=n){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},be={includes:he(!0),indexOf:he(!1)}.indexOf,ye=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),ve={f:Object.getOwnPropertyNames||function(e){return function(e,t){var n,r=g(e),o=0,i=[];for(n in r)!S(X,n)&&S(r,n)&&i.push(n);for(;t.length>o;)S(r,n=t[o++])&&(~be(i,n)||i.push(n));return i}(e,ye)}},ge={f:Object.getOwnPropertySymbols},me=ce("Reflect","ownKeys")||function(e){var t=ve.f(E(e)),n=ge.f;return n?t.concat(n(e)):t},_e=function(e,t){for(var n=me(t),r=P.f,o=j.f,i=0;i<n.length;i++){var c=n[i];S(e,c)||r(e,c,o(t,c))}},ke=/#|\.prototype\./,Se=function(e,t){var n=xe[we(e)];return n==Oe||n!=Ce&&("function"==typeof t?u(t):!!t)},we=Se.normalize=function(e){return String(e).replace(ke,".").toLowerCase()},xe=Se.data={},Ce=Se.NATIVE="N",Oe=Se.POLYFILL="P",je=Se,Ee=j.f,Te=Array.isArray||function(e){return"Array"==h(e)},Pe=function(e){return Object(v(e))},Me=function(e,t,n){var r=_(t);r in e?P.f(e,r,p(0,n)):e[r]=n},Ae=!!Object.getOwnPropertySymbols&&!u((function(){return!String(Symbol())})),$e=Ae&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Fe=q("wks"),Ie=c.Symbol,Re=$e?Ie:Ie&&Ie.withoutSetter||U,De=function(e){return S(Fe,e)||(Ae&&S(Ie,e)?Fe[e]=Ie[e]:Fe[e]=Re("Symbol."+e)),Fe[e]},Ne=De("species"),Le=function(e,t){var n;return Te(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Te(n.prototype)?m(n)&&null===(n=n[Ne])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},ze=ce("navigator","userAgent")||"",Ve=c.process,qe=Ve&&Ve.versions,Be=qe&&qe.v8;Be?te=(ee=Be.split("."))[0]+ee[1]:ze&&(!(ee=ze.match(/Edge\/(\d+)/))||ee[1]>=74)&&(ee=ze.match(/Chrome\/(\d+)/))&&(te=ee[1]);var Ge,Ue=te&&+te,We=De("species"),Xe=De("isConcatSpreadable"),Ke=Ue>=51||!u((function(){var e=[];return e[Xe]=!1,e.concat()[0]!==e})),Ye=(Ge="concat",Ue>=51||!u((function(){var e=[];return(e.constructor={})[We]=function(){return{foo:1}},1!==e[Ge](Boolean).foo}))),He=function(e){if(!m(e))return!1;var t=e[Xe];return void 0!==t?!!t:Te(e)};!function(e,t){var n,r,o,i,u,a=e.target,f=e.global,s=e.stat;if(n=f?c:s?c[a]||A(a,{}):(c[a]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(u=Ee(n,r))&&u.value:n[r],!je(f?r:a+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;_e(i,o)}(e.sham||o&&o.sham)&&M(i,"sham",!0),re(n,r,i,e)}}({target:"Array",proto:!0,forced:!Ke||!Ye},{concat:function(e){var t,n,r,o,i,c=Pe(this),u=Le(c,0),a=0;for(t=-1,r=arguments.length;t<r;t++)if(i=-1===t?c:arguments[t],He(i)){if(a+(o=le(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,a++)n in i&&Me(u,a,i[n])}else{if(a>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Me(u,a++,i)}return u.length=a,u}});const Je=n;var Qe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"bp-checkbox",class:{"bp-Checkbox__disabled":e.isDisabled},on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},[n("span",{staticClass:"bp-checkbox__input"},[n("span",{staticClass:"bp-checkbox__inner",class:[e.hovering?"bp-checkbox__inner_hover":"",e.isChecked?"bp-checkbox__inner_checked":""]},[e.isChecked?n("bp-icon",{attrs:{name:"bp-checkbox_checked"}}):e._e()],1),e._v(" "),n("input",e._b({staticClass:"bp-checkbox__original",attrs:{type:"checkbox",disabled:e.isDisabled},domProps:{checked:e.checked},on:{change:e.handelChange}},"input",e.$attrs,!1))]),e._v(" "),e.$slots.default?n("span",{staticClass:"bp-checkbox__label"},[e._t("default")],2):e._e()])};Qe._withStripped=!0;const Ze=function(e,t,n,r,o,i,c,u,a,f){"boolean"!=typeof c&&(a=u,u=c,c=!1);var s,l="function"==typeof n?n.options:n;if(e&&e.render&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),r&&(l._scopeId=r),i?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,a(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=s):t&&(s=c?function(e){t.call(this,f(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,u(e))}),s)if(l.functional){var p=l.render;l.render=function(e,t){return s.call(t),p(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,s):[s]}return n}({render:Qe,staticRenderFns:[]},void 0,Je,void 0,!1,void 0,!1,void 0,void 0,void 0);function et(){t.icons.registerAliasIcon("bp-checkbox_checked","ok")}et();var tt={init:et,bpCheckbox:Ze};module.exports=tt; |
@@ -0,1 +1,7 @@ | ||
/*! | ||
* bpui checkbox v0.1.7 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* Released under the MIT License. | ||
*/ | ||
import bpLibs from '@bpui/libs'; | ||
@@ -2,0 +8,0 @@ |
/*! | ||
* bpui checkbox v0.1.6 | ||
* Copyright (c) 2020 Copyright bp All Rights Reserved. | ||
* bpui checkbox v0.1.7 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* Released under the MIT License. | ||
*/import bpLibs from"@bpui/libs";var script={components:{},props:{checked:{default:!1},disabled:{default:!1,type:Boolean}},model:{prop:"checked",event:"change"},data(){return{isChecked:!1,hovering:!1}},computed:{isDisabled(){return this.disabled||!1!==this.disabled}},created(){this.isChecked=this.checked},beforeDestroy(){},beforeMount(){},mounted(){},methods:{handelChange(a){this.$emit("change",a.target.checked),this.isChecked=a.target.checked}}};function normalizeComponent(a,b,c,d,e,f,g,h,i,j){"boolean"!=typeof g&&(i=h,h=g,g=!1);const k="function"==typeof c?c.options:c;a&&a.render&&(k.render=a.render,k.staticRenderFns=a.staticRenderFns,k._compiled=!0,e&&(k.functional=!0)),d&&(k._scopeId=d);let l;if(f?(l=function(a){a=a||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,a||"undefined"==typeof __VUE_SSR_CONTEXT__||(a=__VUE_SSR_CONTEXT__),b&&b.call(this,i(a)),a&&a._registeredComponents&&a._registeredComponents.add(f)},k._ssrRegister=l):b&&(l=g?function(a){b.call(this,j(a,this.$root.$options.shadowRoot))}:function(a){b.call(this,h(a))}),l)if(k.functional){const a=k.render;k.render=function(b,c){return l.call(c),a(b,c)}}else{const a=k.beforeCreate;k.beforeCreate=a?[].concat(a,l):[l]}return c}const __vue_script__=script;var __vue_render__=function(){var a=this,b=a.$createElement,c=a._self._c||b;return c("label",{staticClass:"bp-checkbox",class:{"bp-Checkbox__disabled":a.isDisabled},on:{mouseenter:function(){a.hovering=!0},mouseleave:function(){a.hovering=!1}}},[c("span",{staticClass:"bp-checkbox__input"},[c("span",{staticClass:"bp-checkbox__inner",class:[a.hovering?"bp-checkbox__inner_hover":"",a.isChecked?"bp-checkbox__inner_checked":""]},[a.isChecked?c("bp-icon",{attrs:{name:"bp-checkbox_checked"}}):a._e()],1),a._v(" "),c("input",a._b({staticClass:"bp-checkbox__original",attrs:{type:"checkbox",disabled:a.isDisabled},domProps:{checked:a.checked},on:{change:a.handelChange}},"input",a.$attrs,!1))]),a._v(" "),a.$slots.default?c("span",{staticClass:"bp-checkbox__label"},[a._t("default")],2):a._e()])},__vue_staticRenderFns__=[];__vue_render__._withStripped=!0;const __vue_inject_styles__=void 0,__vue_scope_id__=void 0,__vue_module_identifier__=void 0,__vue_is_functional_template__=!1,__vue_component__=normalizeComponent({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},void 0,__vue_script__,__vue_scope_id__,__vue_is_functional_template__,__vue_module_identifier__,!1,void 0,void 0,void 0);function init(){bpLibs.icons.registerAliasIcon("bp-checkbox_checked","ok")}init();var index={init,bpCheckbox:__vue_component__};export default index; | ||
*/ | ||
import e from"@bpui/libs";var t={components:{},props:{checked:{default:!1},disabled:{default:!1,type:Boolean}},model:{prop:"checked",event:"change"},data:function(){return{isChecked:!1,hovering:!1}},computed:{isDisabled:function(){return this.disabled||!1!==this.disabled}},created:function(){this.isChecked=this.checked},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{handelChange:function(e){this.$emit("change",e.target.checked),this.isChecked=e.target.checked}}},n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e,t){return e(t={exports:{}},t.exports),t.exports}var o=function(e){return e&&e.Math==Math&&e},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n&&n)||Function("return this")(),c=function(e){try{return!!e()}catch(e){return!0}},u=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,s={f:f&&!a.call({1:2},1)?function(e){var t=f(this,e);return!!t&&t.enumerable}:a},l=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},p={}.toString,d=function(e){return p.call(e).slice(8,-1)},h="".split,b=c((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==d(e)?h.call(e,""):Object(e)}:Object,y=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},v=function(e){return b(y(e))},g=function(e){return"object"==typeof e?null!==e:"function"==typeof e},m=function(e,t){if(!g(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!g(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!g(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!g(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,k=function(e,t){return _.call(e,t)},S=i.document,w=g(S)&&g(S.createElement),x=!u&&!c((function(){return 7!=Object.defineProperty((e="div",w?S.createElement(e):{}),"a",{get:function(){return 7}}).a;var e})),C=Object.getOwnPropertyDescriptor,O={f:u?C:function(e,t){if(e=v(e),t=m(t,!0),x)try{return C(e,t)}catch(e){}if(k(e,t))return l(!s.f.call(e,t),e[t])}},j=function(e){if(!g(e))throw TypeError(String(e)+" is not an object");return e},E=Object.defineProperty,T={f:u?E:function(e,t,n){if(j(e),t=m(t,!0),j(n),x)try{return E(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},P=u?function(e,t,n){return T.f(e,t,l(1,n))}:function(e,t,n){return e[t]=n,e},M=function(e,t){try{P(i,e,t)}catch(n){i[e]=t}return t},A=i["__core-js_shared__"]||M("__core-js_shared__",{}),$=Function.toString;"function"!=typeof A.inspectSource&&(A.inspectSource=function(e){return $.call(e)});var F,I,R,D,N=A.inspectSource,L=i.WeakMap,z="function"==typeof L&&/native code/.test(N(L)),V=r((function(e){(e.exports=function(e,t){return A[e]||(A[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),B=0,G=Math.random(),U=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++B+G).toString(36)},W=V("keys"),X={},q=i.WeakMap;if(z){var K=new q,Y=K.get,H=K.has,J=K.set;F=function(e,t){return J.call(K,e,t),t},I=function(e){return Y.call(K,e)||{}},R=function(e){return H.call(K,e)}}else{var Q=W[D="state"]||(W[D]=U(D));X[Q]=!0,F=function(e,t){return P(e,Q,t),t},I=function(e){return k(e,Q)?e[Q]:{}},R=function(e){return k(e,Q)}}var Z,ee,te={set:F,get:I,has:R,enforce:function(e){return R(e)?I(e):F(e,{})},getterFor:function(e){return function(t){var n;if(!g(t)||(n=I(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ne=r((function(e){var t=te.get,n=te.enforce,r=String(String).split("String");(e.exports=function(e,t,o,c){var u=!!c&&!!c.unsafe,a=!!c&&!!c.enumerable,f=!!c&&!!c.noTargetGet;"function"==typeof o&&("string"!=typeof t||k(o,"name")||P(o,"name",t),n(o).source=r.join("string"==typeof t?t:"")),e!==i?(u?!f&&e[t]&&(a=!0):delete e[t],a?e[t]=o:P(e,t,o)):a?e[t]=o:M(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||N(this)}))})),re=i,oe=function(e){return"function"==typeof e?e:void 0},ie=function(e,t){return arguments.length<2?oe(re[e])||oe(i[e]):re[e]&&re[e][t]||i[e]&&i[e][t]},ce=Math.ceil,ue=Math.floor,ae=function(e){return isNaN(e=+e)?0:(e>0?ue:ce)(e)},fe=Math.min,se=function(e){return e>0?fe(ae(e),9007199254740991):0},le=Math.max,pe=Math.min,de=function(e){return function(t,n,r){var o,i=v(t),c=se(i.length),u=function(e,t){var n=ae(e);return n<0?le(n+t,0):pe(n,t)}(r,c);if(e&&n!=n){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},he={includes:de(!0),indexOf:de(!1)}.indexOf,be=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),ye={f:Object.getOwnPropertyNames||function(e){return function(e,t){var n,r=v(e),o=0,i=[];for(n in r)!k(X,n)&&k(r,n)&&i.push(n);for(;t.length>o;)k(r,n=t[o++])&&(~he(i,n)||i.push(n));return i}(e,be)}},ve={f:Object.getOwnPropertySymbols},ge=ie("Reflect","ownKeys")||function(e){var t=ye.f(j(e)),n=ve.f;return n?t.concat(n(e)):t},me=function(e,t){for(var n=ge(t),r=T.f,o=O.f,i=0;i<n.length;i++){var c=n[i];k(e,c)||r(e,c,o(t,c))}},_e=/#|\.prototype\./,ke=function(e,t){var n=we[Se(e)];return n==Ce||n!=xe&&("function"==typeof t?c(t):!!t)},Se=ke.normalize=function(e){return String(e).replace(_e,".").toLowerCase()},we=ke.data={},xe=ke.NATIVE="N",Ce=ke.POLYFILL="P",Oe=ke,je=O.f,Ee=Array.isArray||function(e){return"Array"==d(e)},Te=function(e){return Object(y(e))},Pe=function(e,t,n){var r=m(t);r in e?T.f(e,r,l(0,n)):e[r]=n},Me=!!Object.getOwnPropertySymbols&&!c((function(){return!String(Symbol())})),Ae=Me&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$e=V("wks"),Fe=i.Symbol,Ie=Ae?Fe:Fe&&Fe.withoutSetter||U,Re=function(e){return k($e,e)||(Me&&k(Fe,e)?$e[e]=Fe[e]:$e[e]=Ie("Symbol."+e)),$e[e]},De=Re("species"),Ne=function(e,t){var n;return Ee(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Ee(n.prototype)?g(n)&&null===(n=n[De])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Le=ie("navigator","userAgent")||"",ze=i.process,Ve=ze&&ze.versions,Be=Ve&&Ve.v8;Be?ee=(Z=Be.split("."))[0]+Z[1]:Le&&(!(Z=Le.match(/Edge\/(\d+)/))||Z[1]>=74)&&(Z=Le.match(/Chrome\/(\d+)/))&&(ee=Z[1]);var Ge,Ue=ee&&+ee,We=Re("species"),Xe=Re("isConcatSpreadable"),qe=Ue>=51||!c((function(){var e=[];return e[Xe]=!1,e.concat()[0]!==e})),Ke=(Ge="concat",Ue>=51||!c((function(){var e=[];return(e.constructor={})[We]=function(){return{foo:1}},1!==e[Ge](Boolean).foo}))),Ye=function(e){if(!g(e))return!1;var t=e[Xe];return void 0!==t?!!t:Ee(e)};!function(e,t){var n,r,o,c,u,a=e.target,f=e.global,s=e.stat;if(n=f?i:s?i[a]||M(a,{}):(i[a]||{}).prototype)for(r in t){if(c=t[r],o=e.noTargetGet?(u=je(n,r))&&u.value:n[r],!Oe(f?r:a+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof c==typeof o)continue;me(c,o)}(e.sham||o&&o.sham)&&P(c,"sham",!0),ne(n,r,c,e)}}({target:"Array",proto:!0,forced:!qe||!Ke},{concat:function(e){var t,n,r,o,i,c=Te(this),u=Ne(c,0),a=0;for(t=-1,r=arguments.length;t<r;t++)if(i=-1===t?c:arguments[t],Ye(i)){if(a+(o=se(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,a++)n in i&&Pe(u,a,i[n])}else{if(a>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Pe(u,a++,i)}return u.length=a,u}});const He=t;var Je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"bp-checkbox",class:{"bp-Checkbox__disabled":e.isDisabled},on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},[n("span",{staticClass:"bp-checkbox__input"},[n("span",{staticClass:"bp-checkbox__inner",class:[e.hovering?"bp-checkbox__inner_hover":"",e.isChecked?"bp-checkbox__inner_checked":""]},[e.isChecked?n("bp-icon",{attrs:{name:"bp-checkbox_checked"}}):e._e()],1),e._v(" "),n("input",e._b({staticClass:"bp-checkbox__original",attrs:{type:"checkbox",disabled:e.isDisabled},domProps:{checked:e.checked},on:{change:e.handelChange}},"input",e.$attrs,!1))]),e._v(" "),e.$slots.default?n("span",{staticClass:"bp-checkbox__label"},[e._t("default")],2):e._e()])};Je._withStripped=!0;const Qe=function(e,t,n,r,o,i,c,u,a,f){"boolean"!=typeof c&&(a=u,u=c,c=!1);var s,l="function"==typeof n?n.options:n;if(e&&e.render&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),r&&(l._scopeId=r),i?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,a(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=s):t&&(s=c?function(e){t.call(this,f(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,u(e))}),s)if(l.functional){var p=l.render;l.render=function(e,t){return s.call(t),p(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,s):[s]}return n}({render:Je,staticRenderFns:[]},void 0,He,void 0,!1,void 0,!1,void 0,void 0,void 0);function Ze(){e.icons.registerAliasIcon("bp-checkbox_checked","ok")}Ze();var et={init:Ze,bpCheckbox:Qe};export default et; |
@@ -0,1 +1,7 @@ | ||
/*! | ||
* bpui checkbox v0.1.7 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* Released under the MIT License. | ||
*/ | ||
(function (global, factory) { | ||
@@ -2,0 +8,0 @@ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@bpui/libs')) : |
/*! | ||
* bpui checkbox v0.1.6 | ||
* Copyright (c) 2020 Copyright bp All Rights Reserved. | ||
* bpui checkbox v0.1.7 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* Released under the MIT License. | ||
*/(function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b(require("@bpui/libs")):"function"==typeof define&&define.amd?define(["@bpui/libs"],b):(a=a||self,a.bpCheckbox=b(a.bpLibs))})(this,function(a){'use strict';function b(){a.icons.registerAliasIcon("bp-checkbox_checked","ok")}a=a&&Object.prototype.hasOwnProperty.call(a,"default")?a["default"]:a;var c={components:{},props:{checked:{default:!1},disabled:{default:!1,type:Boolean}},model:{prop:"checked",event:"change"},data(){return{isChecked:!1,hovering:!1}},computed:{isDisabled(){return this.disabled||!1!==this.disabled}},created(){this.isChecked=this.checked},beforeDestroy(){},beforeMount(){},mounted(){},methods:{handelChange(a){this.$emit("change",a.target.checked),this.isChecked=a.target.checked}}};var d=function(){var a=this,b=a.$createElement,c=a._self._c||b;return c("label",{staticClass:"bp-checkbox",class:{"bp-Checkbox__disabled":a.isDisabled},on:{mouseenter:function(){a.hovering=!0},mouseleave:function(){a.hovering=!1}}},[c("span",{staticClass:"bp-checkbox__input"},[c("span",{staticClass:"bp-checkbox__inner",class:[a.hovering?"bp-checkbox__inner_hover":"",a.isChecked?"bp-checkbox__inner_checked":""]},[a.isChecked?c("bp-icon",{attrs:{name:"bp-checkbox_checked"}}):a._e()],1),a._v(" "),c("input",a._b({staticClass:"bp-checkbox__original",attrs:{type:"checkbox",disabled:a.isDisabled},domProps:{checked:a.checked},on:{change:a.handelChange}},"input",a.$attrs,!1))]),a._v(" "),a.$slots.default?c("span",{staticClass:"bp-checkbox__label"},[a._t("default")],2):a._e()])};d._withStripped=!0;const e=function(a,b,c,d,e,f,g,h,i,j){"boolean"!=typeof g&&(i=h,h=g,g=!1);const k="function"==typeof c?c.options:c;a&&a.render&&(k.render=a.render,k.staticRenderFns=a.staticRenderFns,k._compiled=!0,e&&(k.functional=!0)),d&&(k._scopeId=d);let l;if(f?(l=function(a){a=a||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,a||"undefined"==typeof __VUE_SSR_CONTEXT__||(a=__VUE_SSR_CONTEXT__),b&&b.call(this,i(a)),a&&a._registeredComponents&&a._registeredComponents.add(f)},k._ssrRegister=l):b&&(l=g?function(a){b.call(this,j(a,this.$root.$options.shadowRoot))}:function(a){b.call(this,h(a))}),l)if(k.functional){const a=k.render;k.render=function(b,c){return l.call(c),a(b,c)}}else{const a=k.beforeCreate;k.beforeCreate=a?[].concat(a,l):[l]}return c}({render:d,staticRenderFns:[]},void 0,c,void 0,!1,void 0,!1,void 0,void 0,void 0);b();return{init:b,bpCheckbox:e}}); | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@bpui/libs")):"function"==typeof define&&define.amd?define(["@bpui/libs"],t):(e=e||self).bpCheckbox=t(e.bpLibs)}(this,(function(e){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var t={components:{},props:{checked:{default:!1},disabled:{default:!1,type:Boolean}},model:{prop:"checked",event:"change"},data:function(){return{isChecked:!1,hovering:!1}},computed:{isDisabled:function(){return this.disabled||!1!==this.disabled}},created:function(){this.isChecked=this.checked},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{handelChange:function(e){this.$emit("change",e.target.checked),this.isChecked=e.target.checked}}},n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e,t){return e(t={exports:{}},t.exports),t.exports}var o=function(e){return e&&e.Math==Math&&e},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n&&n)||Function("return this")(),c=function(e){try{return!!e()}catch(e){return!0}},u=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,s={f:f&&!a.call({1:2},1)?function(e){var t=f(this,e);return!!t&&t.enumerable}:a},l=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},p={}.toString,d=function(e){return p.call(e).slice(8,-1)},h="".split,b=c((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==d(e)?h.call(e,""):Object(e)}:Object,y=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},v=function(e){return b(y(e))},g=function(e){return"object"==typeof e?null!==e:"function"==typeof e},m=function(e,t){if(!g(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!g(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!g(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!g(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,k=function(e,t){return _.call(e,t)},w=i.document,S=g(w)&&g(w.createElement),x=!u&&!c((function(){return 7!=Object.defineProperty((e="div",S?w.createElement(e):{}),"a",{get:function(){return 7}}).a;var e})),O=Object.getOwnPropertyDescriptor,C={f:u?O:function(e,t){if(e=v(e),t=m(t,!0),x)try{return O(e,t)}catch(e){}if(k(e,t))return l(!s.f.call(e,t),e[t])}},j=function(e){if(!g(e))throw TypeError(String(e)+" is not an object");return e},E=Object.defineProperty,T={f:u?E:function(e,t,n){if(j(e),t=m(t,!0),j(n),x)try{return E(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},P=u?function(e,t,n){return T.f(e,t,l(1,n))}:function(e,t,n){return e[t]=n,e},M=function(e,t){try{P(i,e,t)}catch(n){i[e]=t}return t},A=i["__core-js_shared__"]||M("__core-js_shared__",{}),$=Function.toString;"function"!=typeof A.inspectSource&&(A.inspectSource=function(e){return $.call(e)});var F,I,R,D,N=A.inspectSource,L=i.WeakMap,z="function"==typeof L&&/native code/.test(N(L)),V=r((function(e){(e.exports=function(e,t){return A[e]||(A[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),q=0,B=Math.random(),G=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++q+B).toString(36)},U=V("keys"),W={},X=i.WeakMap;if(z){var K=new X,Y=K.get,H=K.has,J=K.set;F=function(e,t){return J.call(K,e,t),t},I=function(e){return Y.call(K,e)||{}},R=function(e){return H.call(K,e)}}else{var Q=U[D="state"]||(U[D]=G(D));W[Q]=!0,F=function(e,t){return P(e,Q,t),t},I=function(e){return k(e,Q)?e[Q]:{}},R=function(e){return k(e,Q)}}var Z,ee,te={set:F,get:I,has:R,enforce:function(e){return R(e)?I(e):F(e,{})},getterFor:function(e){return function(t){var n;if(!g(t)||(n=I(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ne=r((function(e){var t=te.get,n=te.enforce,r=String(String).split("String");(e.exports=function(e,t,o,c){var u=!!c&&!!c.unsafe,a=!!c&&!!c.enumerable,f=!!c&&!!c.noTargetGet;"function"==typeof o&&("string"!=typeof t||k(o,"name")||P(o,"name",t),n(o).source=r.join("string"==typeof t?t:"")),e!==i?(u?!f&&e[t]&&(a=!0):delete e[t],a?e[t]=o:P(e,t,o)):a?e[t]=o:M(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||N(this)}))})),re=i,oe=function(e){return"function"==typeof e?e:void 0},ie=function(e,t){return arguments.length<2?oe(re[e])||oe(i[e]):re[e]&&re[e][t]||i[e]&&i[e][t]},ce=Math.ceil,ue=Math.floor,ae=function(e){return isNaN(e=+e)?0:(e>0?ue:ce)(e)},fe=Math.min,se=function(e){return e>0?fe(ae(e),9007199254740991):0},le=Math.max,pe=Math.min,de=function(e){return function(t,n,r){var o,i=v(t),c=se(i.length),u=function(e,t){var n=ae(e);return n<0?le(n+t,0):pe(n,t)}(r,c);if(e&&n!=n){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},he={includes:de(!0),indexOf:de(!1)}.indexOf,be=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),ye={f:Object.getOwnPropertyNames||function(e){return function(e,t){var n,r=v(e),o=0,i=[];for(n in r)!k(W,n)&&k(r,n)&&i.push(n);for(;t.length>o;)k(r,n=t[o++])&&(~he(i,n)||i.push(n));return i}(e,be)}},ve={f:Object.getOwnPropertySymbols},ge=ie("Reflect","ownKeys")||function(e){var t=ye.f(j(e)),n=ve.f;return n?t.concat(n(e)):t},me=function(e,t){for(var n=ge(t),r=T.f,o=C.f,i=0;i<n.length;i++){var c=n[i];k(e,c)||r(e,c,o(t,c))}},_e=/#|\.prototype\./,ke=function(e,t){var n=Se[we(e)];return n==Oe||n!=xe&&("function"==typeof t?c(t):!!t)},we=ke.normalize=function(e){return String(e).replace(_e,".").toLowerCase()},Se=ke.data={},xe=ke.NATIVE="N",Oe=ke.POLYFILL="P",Ce=ke,je=C.f,Ee=Array.isArray||function(e){return"Array"==d(e)},Te=function(e){return Object(y(e))},Pe=function(e,t,n){var r=m(t);r in e?T.f(e,r,l(0,n)):e[r]=n},Me=!!Object.getOwnPropertySymbols&&!c((function(){return!String(Symbol())})),Ae=Me&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$e=V("wks"),Fe=i.Symbol,Ie=Ae?Fe:Fe&&Fe.withoutSetter||G,Re=function(e){return k($e,e)||(Me&&k(Fe,e)?$e[e]=Fe[e]:$e[e]=Ie("Symbol."+e)),$e[e]},De=Re("species"),Ne=function(e,t){var n;return Ee(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Ee(n.prototype)?g(n)&&null===(n=n[De])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Le=ie("navigator","userAgent")||"",ze=i.process,Ve=ze&&ze.versions,qe=Ve&&Ve.v8;qe?ee=(Z=qe.split("."))[0]+Z[1]:Le&&(!(Z=Le.match(/Edge\/(\d+)/))||Z[1]>=74)&&(Z=Le.match(/Chrome\/(\d+)/))&&(ee=Z[1]);var Be,Ge=ee&&+ee,Ue=Re("species"),We=Re("isConcatSpreadable"),Xe=Ge>=51||!c((function(){var e=[];return e[We]=!1,e.concat()[0]!==e})),Ke=(Be="concat",Ge>=51||!c((function(){var e=[];return(e.constructor={})[Ue]=function(){return{foo:1}},1!==e[Be](Boolean).foo}))),Ye=function(e){if(!g(e))return!1;var t=e[We];return void 0!==t?!!t:Ee(e)};!function(e,t){var n,r,o,c,u,a=e.target,f=e.global,s=e.stat;if(n=f?i:s?i[a]||M(a,{}):(i[a]||{}).prototype)for(r in t){if(c=t[r],o=e.noTargetGet?(u=je(n,r))&&u.value:n[r],!Ce(f?r:a+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof c==typeof o)continue;me(c,o)}(e.sham||o&&o.sham)&&P(c,"sham",!0),ne(n,r,c,e)}}({target:"Array",proto:!0,forced:!Xe||!Ke},{concat:function(e){var t,n,r,o,i,c=Te(this),u=Ne(c,0),a=0;for(t=-1,r=arguments.length;t<r;t++)if(i=-1===t?c:arguments[t],Ye(i)){if(a+(o=se(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,a++)n in i&&Pe(u,a,i[n])}else{if(a>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Pe(u,a++,i)}return u.length=a,u}});const He=t;var Je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"bp-checkbox",class:{"bp-Checkbox__disabled":e.isDisabled},on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},[n("span",{staticClass:"bp-checkbox__input"},[n("span",{staticClass:"bp-checkbox__inner",class:[e.hovering?"bp-checkbox__inner_hover":"",e.isChecked?"bp-checkbox__inner_checked":""]},[e.isChecked?n("bp-icon",{attrs:{name:"bp-checkbox_checked"}}):e._e()],1),e._v(" "),n("input",e._b({staticClass:"bp-checkbox__original",attrs:{type:"checkbox",disabled:e.isDisabled},domProps:{checked:e.checked},on:{change:e.handelChange}},"input",e.$attrs,!1))]),e._v(" "),e.$slots.default?n("span",{staticClass:"bp-checkbox__label"},[e._t("default")],2):e._e()])};Je._withStripped=!0;const Qe=function(e,t,n,r,o,i,c,u,a,f){"boolean"!=typeof c&&(a=u,u=c,c=!1);var s,l="function"==typeof n?n.options:n;if(e&&e.render&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),r&&(l._scopeId=r),i?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,a(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=s):t&&(s=c?function(e){t.call(this,f(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,u(e))}),s)if(l.functional){var p=l.render;l.render=function(e,t){return s.call(t),p(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,s):[s]}return n}({render:Je,staticRenderFns:[]},void 0,He,void 0,!1,void 0,!1,void 0,void 0,void 0);function Ze(){e.icons.registerAliasIcon("bp-checkbox_checked","ok")}return Ze(),{init:Ze,bpCheckbox:Qe}})); |
{ | ||
"description": "checkbox", | ||
"dependencies": { | ||
"@bpui/libs": "^0.2.5" | ||
"@bpui/libs": "^0.2.6" | ||
}, | ||
@@ -41,3 +41,3 @@ "directories": {}, | ||
"name": "@bpui/checkbox", | ||
"version": "0.1.6" | ||
"version": "0.1.7" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
104489
22
1406
3
Updated@bpui/libs@^0.2.6