New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bpui/radio

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bpui/radio - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

LICENSE

6

dist/index.common.js

@@ -0,1 +1,7 @@

/*!
* bpui radio v0.1.6
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved.
* Released under the MIT License.
*/
'use strict';

@@ -2,0 +8,0 @@

7

dist/index.common.min.js
/*!
* bpui radio v0.1.5
* Copyright (c) 2020 Copyright bp All Rights Reserved.
* bpui radio v0.1.6
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved.
* Released under the MIT License.
*/'use strict';var script={components:{},props:{value:{},disabled:Boolean},data(){return{hovering:!1,radioGroup:""}},computed:{isGroup(){let a=this.$parent;return!("bpRadioGroup"!==a.bpNodeName)},model:{get(){return this.isGroup?this.$parent.value:this.value},set(a){this.isGroup?this.$parent.$emit("handleInput",a):this.$emit("input",a),this.$refs.radio&&(this.$refs.radio.checked=this.model==this.value)}},isDisabled(){return this.isGroup?this.$parent.disabled:this.disabled}},created(){},beforeDestroy(){},beforeMount(){},mounted(){},methods:{handleChange(){this.$nextTick(()=>{this.$emit("change",this.model),this.isGroup&&this.$parent.$emit("handleChange",this.model)})}}};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-radio",class:{"bp-radio__disabled":a.isDisabled},on:{mouseenter:function(){a.hovering=!0},mouseleave:function(){a.hovering=!1}}},[c("span",{staticClass:"bp-radio__input",class:{"bp-radio__checked":a.model==a.value}},[c("span",{staticClass:"bp-radio__inner",class:[a.hovering?"bp-radio__inner_hover":""]}),a._v(" "),c("input",a._b({directives:[{name:"model",rawName:"v-model",value:a.model,expression:"model"}],ref:"radio",staticClass:"bp-radio__original",attrs:{type:"radio",disabled:a.isDisabled},domProps:{value:a.value,checked:a._q(a.model,a.value)},on:{change:[function(){a.model=a.value},a.handleChange]}},"input",a.$attrs,!1))]),a._v(" "),c("span",{staticClass:"bp-radio__label"},[a._t("default")],2)])},__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);var script$1={name:"bpRadioGroup",components:{},props:{value:{},disabled:{default:!1,type:Boolean}},data(){return{bpNodeName:"bpRadioGroup"}},computed:{},created(){this.$on("handleChange",a=>{this.$emit("change",a)}),this.$on("handleInput",a=>{this.$emit("input",a)})},beforeDestroy(){},beforeMount(){},mounted(){},methods:{}};const __vue_script__$1=script$1;var __vue_render__$1=function(){var a=this,b=a.$createElement,c=a._self._c||b;return c("div",[a._t("default")],2)},__vue_staticRenderFns__$1=[];__vue_render__$1._withStripped=!0;const __vue_inject_styles__$1=void 0,__vue_scope_id__$1=void 0,__vue_module_identifier__$1=void 0,__vue_is_functional_template__$1=!1,__vue_component__$1=normalizeComponent({render:__vue_render__$1,staticRenderFns:__vue_staticRenderFns__$1},void 0,__vue_script__$1,__vue_scope_id__$1,__vue_is_functional_template__$1,__vue_module_identifier__$1,!1,void 0,void 0,void 0);var index={bpRadio:__vue_component__,bpRadioGroup:__vue_component__$1};module.exports=index;
*/
"use strict";var t={components:{},props:{value:{},disabled:Boolean},data:function(){return{hovering:!1,radioGroup:""}},computed:{isGroup:function(){return"bpRadioGroup"===this.$parent.bpNodeName},model:{get:function(){return this.isGroup?this.$parent.value:this.value},set:function(t){this.isGroup?this.$parent.$emit("handleInput",t):this.$emit("input",t),this.$refs.radio&&(this.$refs.radio.checked=this.model==this.value)}},isDisabled:function(){return this.isGroup?this.$parent.disabled:this.disabled}},created:function(){},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{handleChange:function(){var t=this;this.$nextTick((function(){t.$emit("change",t.model),t.isGroup&&t.$parent.$emit("handleChange",t.model)}))}}},e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,f={f:c&&!a.call({1:2},1)?function(t){var e=c(this,t);return!!e&&e.enumerable}:a},s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,d=function(t){return l.call(t).slice(8,-1)},p="".split,h=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?p.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return h(v(t))},b=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!b(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!b(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!b(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!b(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},g={}.hasOwnProperty,_=function(t,e){return g.call(t,e)},w=o.document,S=b(w)&&b(w.createElement),O=!u&&!i((function(){return 7!=Object.defineProperty((t="div",S?w.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),$=Object.getOwnPropertyDescriptor,j={f:u?$:function(t,e){if(t=y(t),e=m(e,!0),O)try{return $(t,e)}catch(t){}if(_(t,e))return s(!f.f.call(t,e),t[e])}},C=function(t){if(!b(t))throw TypeError(String(t)+" is not an object");return t},E=Object.defineProperty,x={f:u?E:function(t,e,n){if(C(t),e=m(e,!0),C(n),O)try{return E(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},T=u?function(t,e,n){return x.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t},P=function(t,e){try{T(o,t,e)}catch(n){o[t]=e}return e},M=o["__core-js_shared__"]||P("__core-js_shared__",{}),R=Function.toString;"function"!=typeof M.inspectSource&&(M.inspectSource=function(t){return R.call(t)});var G,N,k,A,F=M.inspectSource,I=o.WeakMap,D="function"==typeof I&&/native code/.test(F(I)),L=n((function(t){(t.exports=function(t,e){return M[t]||(M[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),z=0,B=Math.random(),V=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++z+B).toString(36)},q=L("keys"),U={},W=o.WeakMap;if(D){var X=new W,K=X.get,Y=X.has,H=X.set;G=function(t,e){return H.call(X,t,e),e},N=function(t){return K.call(X,t)||{}},k=function(t){return Y.call(X,t)}}else{var J=q[A="state"]||(q[A]=V(A));U[J]=!0,G=function(t,e){return T(t,J,e),e},N=function(t){return _(t,J)?t[J]:{}},k=function(t){return _(t,J)}}var Q,Z,tt={set:G,get:N,has:k,enforce:function(t){return k(t)?N(t):G(t,{})},getterFor:function(t){return function(e){var n;if(!b(e)||(n=N(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},et=n((function(t){var e=tt.get,n=tt.enforce,r=String(String).split("String");(t.exports=function(t,e,i,u){var a=!!u&&!!u.unsafe,c=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet;"function"==typeof i&&("string"!=typeof e||_(i,"name")||T(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==o?(a?!f&&t[e]&&(c=!0):delete t[e],c?t[e]=i:T(t,e,i)):c?t[e]=i:P(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||F(this)}))})),nt=o,rt=function(t){return"function"==typeof t?t:void 0},ot=function(t,e){return arguments.length<2?rt(nt[t])||rt(o[t]):nt[t]&&nt[t][e]||o[t]&&o[t][e]},it=Math.ceil,ut=Math.floor,at=function(t){return isNaN(t=+t)?0:(t>0?ut:it)(t)},ct=Math.min,ft=function(t){return t>0?ct(at(t),9007199254740991):0},st=Math.max,lt=Math.min,dt=function(t){return function(e,n,r){var o,i=y(e),u=ft(i.length),a=function(t,e){var n=at(t);return n<0?st(n+e,0):lt(n,e)}(r,u);if(t&&n!=n){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},pt={includes:dt(!0),indexOf:dt(!1)}.indexOf,ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),vt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=y(t),o=0,i=[];for(n in r)!_(U,n)&&_(r,n)&&i.push(n);for(;e.length>o;)_(r,n=e[o++])&&(~pt(i,n)||i.push(n));return i}(t,ht)}},yt={f:Object.getOwnPropertySymbols},bt=ot("Reflect","ownKeys")||function(t){var e=vt.f(C(t)),n=yt.f;return n?e.concat(n(t)):e},mt=function(t,e){for(var n=bt(e),r=x.f,o=j.f,i=0;i<n.length;i++){var u=n[i];_(t,u)||r(t,u,o(e,u))}},gt=/#|\.prototype\./,_t=function(t,e){var n=St[wt(t)];return n==$t||n!=Ot&&("function"==typeof e?i(e):!!e)},wt=_t.normalize=function(t){return String(t).replace(gt,".").toLowerCase()},St=_t.data={},Ot=_t.NATIVE="N",$t=_t.POLYFILL="P",jt=_t,Ct=j.f,Et=Array.isArray||function(t){return"Array"==d(t)},xt=function(t){return Object(v(t))},Tt=function(t,e,n){var r=m(e);r in t?x.f(t,r,s(0,n)):t[r]=n},Pt=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),Mt=Pt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Rt=L("wks"),Gt=o.Symbol,Nt=Mt?Gt:Gt&&Gt.withoutSetter||V,kt=function(t){return _(Rt,t)||(Pt&&_(Gt,t)?Rt[t]=Gt[t]:Rt[t]=Nt("Symbol."+t)),Rt[t]},At=kt("species"),Ft=function(t,e){var n;return Et(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Et(n.prototype)?b(n)&&null===(n=n[At])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},It=ot("navigator","userAgent")||"",Dt=o.process,Lt=Dt&&Dt.versions,zt=Lt&&Lt.v8;zt?Z=(Q=zt.split("."))[0]+Q[1]:It&&(!(Q=It.match(/Edge\/(\d+)/))||Q[1]>=74)&&(Q=It.match(/Chrome\/(\d+)/))&&(Z=Q[1]);var Bt,Vt=Z&&+Z,qt=kt("species"),Ut=kt("isConcatSpreadable"),Wt=Vt>=51||!i((function(){var t=[];return t[Ut]=!1,t.concat()[0]!==t})),Xt=(Bt="concat",Vt>=51||!i((function(){var t=[];return(t.constructor={})[qt]=function(){return{foo:1}},1!==t[Bt](Boolean).foo}))),Kt=function(t){if(!b(t))return!1;var e=t[Ut];return void 0!==e?!!e:Et(t)};function Yt(t,e,n,r,o,i,u,a,c,f){"boolean"!=typeof u&&(c=a,a=u,u=!1);var s,l="function"==typeof n?n.options:n;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),r&&(l._scopeId=r),i?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=s):e&&(s=u?function(t){e.call(this,f(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),s)if(l.functional){var d=l.render;l.render=function(t,e){return s.call(e),d(t,e)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,s):[s]}return n}!function(t,e){var n,r,i,u,a,c=t.target,f=t.global,s=t.stat;if(n=f?o:s?o[c]||P(c,{}):(o[c]||{}).prototype)for(r in e){if(u=e[r],i=t.noTargetGet?(a=Ct(n,r))&&a.value:n[r],!jt(f?r:c+(s?".":"#")+r,t.forced)&&void 0!==i){if(typeof u==typeof i)continue;mt(u,i)}(t.sham||i&&i.sham)&&T(u,"sham",!0),et(n,r,u,t)}}({target:"Array",proto:!0,forced:!Wt||!Xt},{concat:function(t){var e,n,r,o,i,u=xt(this),a=Ft(u,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?u:arguments[e],Kt(i)){if(c+(o=ft(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,c++)n in i&&Tt(a,c,i[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Tt(a,c++,i)}return a.length=c,a}});const Ht=t;var Jt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"bp-radio",class:{"bp-radio__disabled":t.isDisabled},on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},[n("span",{staticClass:"bp-radio__input",class:{"bp-radio__checked":t.model==t.value}},[n("span",{staticClass:"bp-radio__inner",class:[t.hovering?"bp-radio__inner_hover":""]}),t._v(" "),n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"bp-radio__original",attrs:{type:"radio",disabled:t.isDisabled},domProps:{value:t.value,checked:t._q(t.model,t.value)},on:{change:[function(e){t.model=t.value},t.handleChange]}},"input",t.$attrs,!1))]),t._v(" "),n("span",{staticClass:"bp-radio__label"},[t._t("default")],2)])};Jt._withStripped=!0;const Qt=Yt({render:Jt,staticRenderFns:[]},void 0,Ht,void 0,!1,void 0,!1,void 0,void 0,void 0);const Zt={name:"bpRadioGroup",components:{},props:{value:{},disabled:{default:!1,type:Boolean}},data:function(){return{bpNodeName:"bpRadioGroup"}},computed:{},created:function(){var t=this;this.$on("handleChange",(function(e){t.$emit("change",e)})),this.$on("handleInput",(function(e){t.$emit("input",e)}))},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{}};var te=function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default")],2)};te._withStripped=!0;var ee={bpRadio:Qt,bpRadioGroup:Yt({render:te,staticRenderFns:[]},void 0,Zt,void 0,!1,void 0,!1,void 0,void 0,void 0)};module.exports=ee;

@@ -0,1 +1,7 @@

/*!
* bpui radio v0.1.6
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved.
* Released under the MIT License.
*/
//

@@ -2,0 +8,0 @@ //

/*!
* bpui radio v0.1.5
* Copyright (c) 2020 Copyright bp All Rights Reserved.
* bpui radio v0.1.6
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved.
* Released under the MIT License.
*/var script={components:{},props:{value:{},disabled:Boolean},data(){return{hovering:!1,radioGroup:""}},computed:{isGroup(){let a=this.$parent;return!("bpRadioGroup"!==a.bpNodeName)},model:{get(){return this.isGroup?this.$parent.value:this.value},set(a){this.isGroup?this.$parent.$emit("handleInput",a):this.$emit("input",a),this.$refs.radio&&(this.$refs.radio.checked=this.model==this.value)}},isDisabled(){return this.isGroup?this.$parent.disabled:this.disabled}},created(){},beforeDestroy(){},beforeMount(){},mounted(){},methods:{handleChange(){this.$nextTick(()=>{this.$emit("change",this.model),this.isGroup&&this.$parent.$emit("handleChange",this.model)})}}};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-radio",class:{"bp-radio__disabled":a.isDisabled},on:{mouseenter:function(){a.hovering=!0},mouseleave:function(){a.hovering=!1}}},[c("span",{staticClass:"bp-radio__input",class:{"bp-radio__checked":a.model==a.value}},[c("span",{staticClass:"bp-radio__inner",class:[a.hovering?"bp-radio__inner_hover":""]}),a._v(" "),c("input",a._b({directives:[{name:"model",rawName:"v-model",value:a.model,expression:"model"}],ref:"radio",staticClass:"bp-radio__original",attrs:{type:"radio",disabled:a.isDisabled},domProps:{value:a.value,checked:a._q(a.model,a.value)},on:{change:[function(){a.model=a.value},a.handleChange]}},"input",a.$attrs,!1))]),a._v(" "),c("span",{staticClass:"bp-radio__label"},[a._t("default")],2)])},__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);var script$1={name:"bpRadioGroup",components:{},props:{value:{},disabled:{default:!1,type:Boolean}},data(){return{bpNodeName:"bpRadioGroup"}},computed:{},created(){this.$on("handleChange",a=>{this.$emit("change",a)}),this.$on("handleInput",a=>{this.$emit("input",a)})},beforeDestroy(){},beforeMount(){},mounted(){},methods:{}};const __vue_script__$1=script$1;var __vue_render__$1=function(){var a=this,b=a.$createElement,c=a._self._c||b;return c("div",[a._t("default")],2)},__vue_staticRenderFns__$1=[];__vue_render__$1._withStripped=!0;const __vue_inject_styles__$1=void 0,__vue_scope_id__$1=void 0,__vue_module_identifier__$1=void 0,__vue_is_functional_template__$1=!1,__vue_component__$1=normalizeComponent({render:__vue_render__$1,staticRenderFns:__vue_staticRenderFns__$1},void 0,__vue_script__$1,__vue_scope_id__$1,__vue_is_functional_template__$1,__vue_module_identifier__$1,!1,void 0,void 0,void 0);var index={bpRadio:__vue_component__,bpRadioGroup:__vue_component__$1};export default index;
*/
var t={components:{},props:{value:{},disabled:Boolean},data:function(){return{hovering:!1,radioGroup:""}},computed:{isGroup:function(){return"bpRadioGroup"===this.$parent.bpNodeName},model:{get:function(){return this.isGroup?this.$parent.value:this.value},set:function(t){this.isGroup?this.$parent.$emit("handleInput",t):this.$emit("input",t),this.$refs.radio&&(this.$refs.radio.checked=this.model==this.value)}},isDisabled:function(){return this.isGroup?this.$parent.disabled:this.disabled}},created:function(){},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{handleChange:function(){var t=this;this.$nextTick((function(){t.$emit("change",t.model),t.isGroup&&t.$parent.$emit("handleChange",t.model)}))}}},e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,f={f:c&&!a.call({1:2},1)?function(t){var e=c(this,t);return!!e&&e.enumerable}:a},s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,d=function(t){return l.call(t).slice(8,-1)},p="".split,h=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?p.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return h(v(t))},b=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!b(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!b(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!b(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!b(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},g={}.hasOwnProperty,_=function(t,e){return g.call(t,e)},w=o.document,S=b(w)&&b(w.createElement),O=!u&&!i((function(){return 7!=Object.defineProperty((t="div",S?w.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),$=Object.getOwnPropertyDescriptor,j={f:u?$:function(t,e){if(t=y(t),e=m(e,!0),O)try{return $(t,e)}catch(t){}if(_(t,e))return s(!f.f.call(t,e),t[e])}},C=function(t){if(!b(t))throw TypeError(String(t)+" is not an object");return t},E=Object.defineProperty,x={f:u?E:function(t,e,n){if(C(t),e=m(e,!0),C(n),O)try{return E(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},T=u?function(t,e,n){return x.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t},P=function(t,e){try{T(o,t,e)}catch(n){o[t]=e}return e},M=o["__core-js_shared__"]||P("__core-js_shared__",{}),R=Function.toString;"function"!=typeof M.inspectSource&&(M.inspectSource=function(t){return R.call(t)});var G,N,k,A,F=M.inspectSource,I=o.WeakMap,D="function"==typeof I&&/native code/.test(F(I)),L=n((function(t){(t.exports=function(t,e){return M[t]||(M[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),z=0,B=Math.random(),V=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++z+B).toString(36)},q=L("keys"),U={},W=o.WeakMap;if(D){var X=new W,K=X.get,Y=X.has,H=X.set;G=function(t,e){return H.call(X,t,e),e},N=function(t){return K.call(X,t)||{}},k=function(t){return Y.call(X,t)}}else{var J=q[A="state"]||(q[A]=V(A));U[J]=!0,G=function(t,e){return T(t,J,e),e},N=function(t){return _(t,J)?t[J]:{}},k=function(t){return _(t,J)}}var Q,Z,tt={set:G,get:N,has:k,enforce:function(t){return k(t)?N(t):G(t,{})},getterFor:function(t){return function(e){var n;if(!b(e)||(n=N(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},et=n((function(t){var e=tt.get,n=tt.enforce,r=String(String).split("String");(t.exports=function(t,e,i,u){var a=!!u&&!!u.unsafe,c=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet;"function"==typeof i&&("string"!=typeof e||_(i,"name")||T(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==o?(a?!f&&t[e]&&(c=!0):delete t[e],c?t[e]=i:T(t,e,i)):c?t[e]=i:P(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||F(this)}))})),nt=o,rt=function(t){return"function"==typeof t?t:void 0},ot=function(t,e){return arguments.length<2?rt(nt[t])||rt(o[t]):nt[t]&&nt[t][e]||o[t]&&o[t][e]},it=Math.ceil,ut=Math.floor,at=function(t){return isNaN(t=+t)?0:(t>0?ut:it)(t)},ct=Math.min,ft=function(t){return t>0?ct(at(t),9007199254740991):0},st=Math.max,lt=Math.min,dt=function(t){return function(e,n,r){var o,i=y(e),u=ft(i.length),a=function(t,e){var n=at(t);return n<0?st(n+e,0):lt(n,e)}(r,u);if(t&&n!=n){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},pt={includes:dt(!0),indexOf:dt(!1)}.indexOf,ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),vt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=y(t),o=0,i=[];for(n in r)!_(U,n)&&_(r,n)&&i.push(n);for(;e.length>o;)_(r,n=e[o++])&&(~pt(i,n)||i.push(n));return i}(t,ht)}},yt={f:Object.getOwnPropertySymbols},bt=ot("Reflect","ownKeys")||function(t){var e=vt.f(C(t)),n=yt.f;return n?e.concat(n(t)):e},mt=function(t,e){for(var n=bt(e),r=x.f,o=j.f,i=0;i<n.length;i++){var u=n[i];_(t,u)||r(t,u,o(e,u))}},gt=/#|\.prototype\./,_t=function(t,e){var n=St[wt(t)];return n==$t||n!=Ot&&("function"==typeof e?i(e):!!e)},wt=_t.normalize=function(t){return String(t).replace(gt,".").toLowerCase()},St=_t.data={},Ot=_t.NATIVE="N",$t=_t.POLYFILL="P",jt=_t,Ct=j.f,Et=Array.isArray||function(t){return"Array"==d(t)},xt=function(t){return Object(v(t))},Tt=function(t,e,n){var r=m(e);r in t?x.f(t,r,s(0,n)):t[r]=n},Pt=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),Mt=Pt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Rt=L("wks"),Gt=o.Symbol,Nt=Mt?Gt:Gt&&Gt.withoutSetter||V,kt=function(t){return _(Rt,t)||(Pt&&_(Gt,t)?Rt[t]=Gt[t]:Rt[t]=Nt("Symbol."+t)),Rt[t]},At=kt("species"),Ft=function(t,e){var n;return Et(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Et(n.prototype)?b(n)&&null===(n=n[At])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},It=ot("navigator","userAgent")||"",Dt=o.process,Lt=Dt&&Dt.versions,zt=Lt&&Lt.v8;zt?Z=(Q=zt.split("."))[0]+Q[1]:It&&(!(Q=It.match(/Edge\/(\d+)/))||Q[1]>=74)&&(Q=It.match(/Chrome\/(\d+)/))&&(Z=Q[1]);var Bt,Vt=Z&&+Z,qt=kt("species"),Ut=kt("isConcatSpreadable"),Wt=Vt>=51||!i((function(){var t=[];return t[Ut]=!1,t.concat()[0]!==t})),Xt=(Bt="concat",Vt>=51||!i((function(){var t=[];return(t.constructor={})[qt]=function(){return{foo:1}},1!==t[Bt](Boolean).foo}))),Kt=function(t){if(!b(t))return!1;var e=t[Ut];return void 0!==e?!!e:Et(t)};function Yt(t,e,n,r,o,i,u,a,c,f){"boolean"!=typeof u&&(c=a,a=u,u=!1);var s,l="function"==typeof n?n.options:n;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),r&&(l._scopeId=r),i?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=s):e&&(s=u?function(t){e.call(this,f(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),s)if(l.functional){var d=l.render;l.render=function(t,e){return s.call(e),d(t,e)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,s):[s]}return n}!function(t,e){var n,r,i,u,a,c=t.target,f=t.global,s=t.stat;if(n=f?o:s?o[c]||P(c,{}):(o[c]||{}).prototype)for(r in e){if(u=e[r],i=t.noTargetGet?(a=Ct(n,r))&&a.value:n[r],!jt(f?r:c+(s?".":"#")+r,t.forced)&&void 0!==i){if(typeof u==typeof i)continue;mt(u,i)}(t.sham||i&&i.sham)&&T(u,"sham",!0),et(n,r,u,t)}}({target:"Array",proto:!0,forced:!Wt||!Xt},{concat:function(t){var e,n,r,o,i,u=xt(this),a=Ft(u,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?u:arguments[e],Kt(i)){if(c+(o=ft(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,c++)n in i&&Tt(a,c,i[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Tt(a,c++,i)}return a.length=c,a}});const Ht=t;var Jt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"bp-radio",class:{"bp-radio__disabled":t.isDisabled},on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},[n("span",{staticClass:"bp-radio__input",class:{"bp-radio__checked":t.model==t.value}},[n("span",{staticClass:"bp-radio__inner",class:[t.hovering?"bp-radio__inner_hover":""]}),t._v(" "),n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"bp-radio__original",attrs:{type:"radio",disabled:t.isDisabled},domProps:{value:t.value,checked:t._q(t.model,t.value)},on:{change:[function(e){t.model=t.value},t.handleChange]}},"input",t.$attrs,!1))]),t._v(" "),n("span",{staticClass:"bp-radio__label"},[t._t("default")],2)])};Jt._withStripped=!0;const Qt=Yt({render:Jt,staticRenderFns:[]},void 0,Ht,void 0,!1,void 0,!1,void 0,void 0,void 0);const Zt={name:"bpRadioGroup",components:{},props:{value:{},disabled:{default:!1,type:Boolean}},data:function(){return{bpNodeName:"bpRadioGroup"}},computed:{},created:function(){var t=this;this.$on("handleChange",(function(e){t.$emit("change",e)})),this.$on("handleInput",(function(e){t.$emit("input",e)}))},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{}};var te=function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default")],2)};te._withStripped=!0;var ee={bpRadio:Qt,bpRadioGroup:Yt({render:te,staticRenderFns:[]},void 0,Zt,void 0,!1,void 0,!1,void 0,void 0,void 0)};export default ee;

@@ -0,1 +1,7 @@

/*!
* bpui radio v0.1.6
* 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() :

/*!
* bpui radio v0.1.5
* Copyright (c) 2020 Copyright bp All Rights Reserved.
* bpui radio v0.1.6
* 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():"function"==typeof define&&define.amd?define(b):(a=a||self,a.bpRadio=b())})(this,function(){'use strict';function a(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}var b={components:{},props:{value:{},disabled:Boolean},data(){return{hovering:!1,radioGroup:""}},computed:{isGroup(){let a=this.$parent;return!("bpRadioGroup"!==a.bpNodeName)},model:{get(){return this.isGroup?this.$parent.value:this.value},set(a){this.isGroup?this.$parent.$emit("handleInput",a):this.$emit("input",a),this.$refs.radio&&(this.$refs.radio.checked=this.model==this.value)}},isDisabled(){return this.isGroup?this.$parent.disabled:this.disabled}},created(){},beforeDestroy(){},beforeMount(){},mounted(){},methods:{handleChange(){this.$nextTick(()=>{this.$emit("change",this.model),this.isGroup&&this.$parent.$emit("handleChange",this.model)})}}};var c=function(){var a=this,b=a.$createElement,c=a._self._c||b;return c("label",{staticClass:"bp-radio",class:{"bp-radio__disabled":a.isDisabled},on:{mouseenter:function(){a.hovering=!0},mouseleave:function(){a.hovering=!1}}},[c("span",{staticClass:"bp-radio__input",class:{"bp-radio__checked":a.model==a.value}},[c("span",{staticClass:"bp-radio__inner",class:[a.hovering?"bp-radio__inner_hover":""]}),a._v(" "),c("input",a._b({directives:[{name:"model",rawName:"v-model",value:a.model,expression:"model"}],ref:"radio",staticClass:"bp-radio__original",attrs:{type:"radio",disabled:a.isDisabled},domProps:{value:a.value,checked:a._q(a.model,a.value)},on:{change:[function(){a.model=a.value},a.handleChange]}},"input",a.$attrs,!1))]),a._v(" "),c("span",{staticClass:"bp-radio__label"},[a._t("default")],2)])};c._withStripped=!0;const d=a({render:c,staticRenderFns:[]},void 0,b,void 0,!1,void 0,!1,void 0,void 0,void 0);var e={name:"bpRadioGroup",components:{},props:{value:{},disabled:{default:!1,type:Boolean}},data(){return{bpNodeName:"bpRadioGroup"}},computed:{},created(){this.$on("handleChange",a=>{this.$emit("change",a)}),this.$on("handleInput",a=>{this.$emit("input",a)})},beforeDestroy(){},beforeMount(){},mounted(){},methods:{}};var f=function(){var a=this,b=a.$createElement,c=a._self._c||b;return c("div",[a._t("default")],2)};f._withStripped=!0;const g=a({render:f,staticRenderFns:[]},void 0,e,void 0,!1,void 0,!1,void 0,void 0,void 0);return{bpRadio:d,bpRadioGroup:g}});
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).bpRadio=e()}(this,(function(){"use strict";var t={components:{},props:{value:{},disabled:Boolean},data:function(){return{hovering:!1,radioGroup:""}},computed:{isGroup:function(){return"bpRadioGroup"===this.$parent.bpNodeName},model:{get:function(){return this.isGroup?this.$parent.value:this.value},set:function(t){this.isGroup?this.$parent.$emit("handleInput",t):this.$emit("input",t),this.$refs.radio&&(this.$refs.radio.checked=this.model==this.value)}},isDisabled:function(){return this.isGroup?this.$parent.disabled:this.disabled}},created:function(){},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{handleChange:function(){var t=this;this.$nextTick((function(){t.$emit("change",t.model),t.isGroup&&t.$parent.$emit("handleChange",t.model)}))}}},e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,f={f:c&&!a.call({1:2},1)?function(t){var e=c(this,t);return!!e&&e.enumerable}:a},s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,d=function(t){return l.call(t).slice(8,-1)},p="".split,h=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?p.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return h(v(t))},b=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!b(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!b(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!b(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!b(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},g={}.hasOwnProperty,_=function(t,e){return g.call(t,e)},w=o.document,S=b(w)&&b(w.createElement),O=!u&&!i((function(){return 7!=Object.defineProperty((t="div",S?w.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),$=Object.getOwnPropertyDescriptor,j={f:u?$:function(t,e){if(t=y(t),e=m(e,!0),O)try{return $(t,e)}catch(t){}if(_(t,e))return s(!f.f.call(t,e),t[e])}},C=function(t){if(!b(t))throw TypeError(String(t)+" is not an object");return t},x=Object.defineProperty,E={f:u?x:function(t,e,n){if(C(t),e=m(e,!0),C(n),O)try{return x(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},T=u?function(t,e,n){return E.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t},P=function(t,e){try{T(o,t,e)}catch(n){o[t]=e}return e},R=o["__core-js_shared__"]||P("__core-js_shared__",{}),M=Function.toString;"function"!=typeof R.inspectSource&&(R.inspectSource=function(t){return M.call(t)});var G,N,k,A,F=R.inspectSource,I=o.WeakMap,D="function"==typeof I&&/native code/.test(F(I)),L=n((function(t){(t.exports=function(t,e){return R[t]||(R[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),z=0,B=Math.random(),V=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++z+B).toString(36)},q=L("keys"),U={},W=o.WeakMap;if(D){var X=new W,K=X.get,Y=X.has,H=X.set;G=function(t,e){return H.call(X,t,e),e},N=function(t){return K.call(X,t)||{}},k=function(t){return Y.call(X,t)}}else{var J=q[A="state"]||(q[A]=V(A));U[J]=!0,G=function(t,e){return T(t,J,e),e},N=function(t){return _(t,J)?t[J]:{}},k=function(t){return _(t,J)}}var Q,Z,tt={set:G,get:N,has:k,enforce:function(t){return k(t)?N(t):G(t,{})},getterFor:function(t){return function(e){var n;if(!b(e)||(n=N(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},et=n((function(t){var e=tt.get,n=tt.enforce,r=String(String).split("String");(t.exports=function(t,e,i,u){var a=!!u&&!!u.unsafe,c=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet;"function"==typeof i&&("string"!=typeof e||_(i,"name")||T(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==o?(a?!f&&t[e]&&(c=!0):delete t[e],c?t[e]=i:T(t,e,i)):c?t[e]=i:P(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||F(this)}))})),nt=o,rt=function(t){return"function"==typeof t?t:void 0},ot=function(t,e){return arguments.length<2?rt(nt[t])||rt(o[t]):nt[t]&&nt[t][e]||o[t]&&o[t][e]},it=Math.ceil,ut=Math.floor,at=function(t){return isNaN(t=+t)?0:(t>0?ut:it)(t)},ct=Math.min,ft=function(t){return t>0?ct(at(t),9007199254740991):0},st=Math.max,lt=Math.min,dt=function(t){return function(e,n,r){var o,i=y(e),u=ft(i.length),a=function(t,e){var n=at(t);return n<0?st(n+e,0):lt(n,e)}(r,u);if(t&&n!=n){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},pt={includes:dt(!0),indexOf:dt(!1)}.indexOf,ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),vt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=y(t),o=0,i=[];for(n in r)!_(U,n)&&_(r,n)&&i.push(n);for(;e.length>o;)_(r,n=e[o++])&&(~pt(i,n)||i.push(n));return i}(t,ht)}},yt={f:Object.getOwnPropertySymbols},bt=ot("Reflect","ownKeys")||function(t){var e=vt.f(C(t)),n=yt.f;return n?e.concat(n(t)):e},mt=function(t,e){for(var n=bt(e),r=E.f,o=j.f,i=0;i<n.length;i++){var u=n[i];_(t,u)||r(t,u,o(e,u))}},gt=/#|\.prototype\./,_t=function(t,e){var n=St[wt(t)];return n==$t||n!=Ot&&("function"==typeof e?i(e):!!e)},wt=_t.normalize=function(t){return String(t).replace(gt,".").toLowerCase()},St=_t.data={},Ot=_t.NATIVE="N",$t=_t.POLYFILL="P",jt=_t,Ct=j.f,xt=Array.isArray||function(t){return"Array"==d(t)},Et=function(t){return Object(v(t))},Tt=function(t,e,n){var r=m(e);r in t?E.f(t,r,s(0,n)):t[r]=n},Pt=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),Rt=Pt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Mt=L("wks"),Gt=o.Symbol,Nt=Rt?Gt:Gt&&Gt.withoutSetter||V,kt=function(t){return _(Mt,t)||(Pt&&_(Gt,t)?Mt[t]=Gt[t]:Mt[t]=Nt("Symbol."+t)),Mt[t]},At=kt("species"),Ft=function(t,e){var n;return xt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!xt(n.prototype)?b(n)&&null===(n=n[At])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},It=ot("navigator","userAgent")||"",Dt=o.process,Lt=Dt&&Dt.versions,zt=Lt&&Lt.v8;zt?Z=(Q=zt.split("."))[0]+Q[1]:It&&(!(Q=It.match(/Edge\/(\d+)/))||Q[1]>=74)&&(Q=It.match(/Chrome\/(\d+)/))&&(Z=Q[1]);var Bt,Vt=Z&&+Z,qt=kt("species"),Ut=kt("isConcatSpreadable"),Wt=Vt>=51||!i((function(){var t=[];return t[Ut]=!1,t.concat()[0]!==t})),Xt=(Bt="concat",Vt>=51||!i((function(){var t=[];return(t.constructor={})[qt]=function(){return{foo:1}},1!==t[Bt](Boolean).foo}))),Kt=function(t){if(!b(t))return!1;var e=t[Ut];return void 0!==e?!!e:xt(t)};function Yt(t,e,n,r,o,i,u,a,c,f){"boolean"!=typeof u&&(c=a,a=u,u=!1);var s,l="function"==typeof n?n.options:n;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),r&&(l._scopeId=r),i?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=s):e&&(s=u?function(t){e.call(this,f(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),s)if(l.functional){var d=l.render;l.render=function(t,e){return s.call(e),d(t,e)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,s):[s]}return n}!function(t,e){var n,r,i,u,a,c=t.target,f=t.global,s=t.stat;if(n=f?o:s?o[c]||P(c,{}):(o[c]||{}).prototype)for(r in e){if(u=e[r],i=t.noTargetGet?(a=Ct(n,r))&&a.value:n[r],!jt(f?r:c+(s?".":"#")+r,t.forced)&&void 0!==i){if(typeof u==typeof i)continue;mt(u,i)}(t.sham||i&&i.sham)&&T(u,"sham",!0),et(n,r,u,t)}}({target:"Array",proto:!0,forced:!Wt||!Xt},{concat:function(t){var e,n,r,o,i,u=Et(this),a=Ft(u,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?u:arguments[e],Kt(i)){if(c+(o=ft(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,c++)n in i&&Tt(a,c,i[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Tt(a,c++,i)}return a.length=c,a}});const Ht=t;var Jt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"bp-radio",class:{"bp-radio__disabled":t.isDisabled},on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},[n("span",{staticClass:"bp-radio__input",class:{"bp-radio__checked":t.model==t.value}},[n("span",{staticClass:"bp-radio__inner",class:[t.hovering?"bp-radio__inner_hover":""]}),t._v(" "),n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"bp-radio__original",attrs:{type:"radio",disabled:t.isDisabled},domProps:{value:t.value,checked:t._q(t.model,t.value)},on:{change:[function(e){t.model=t.value},t.handleChange]}},"input",t.$attrs,!1))]),t._v(" "),n("span",{staticClass:"bp-radio__label"},[t._t("default")],2)])};Jt._withStripped=!0;const Qt=Yt({render:Jt,staticRenderFns:[]},void 0,Ht,void 0,!1,void 0,!1,void 0,void 0,void 0);const Zt={name:"bpRadioGroup",components:{},props:{value:{},disabled:{default:!1,type:Boolean}},data:function(){return{bpNodeName:"bpRadioGroup"}},computed:{},created:function(){var t=this;this.$on("handleChange",(function(e){t.$emit("change",e)})),this.$on("handleInput",(function(e){t.$emit("input",e)}))},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{}};var te=function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default")],2)};te._withStripped=!0;return{bpRadio:Qt,bpRadioGroup:Yt({render:te,staticRenderFns:[]},void 0,Zt,void 0,!1,void 0,!1,void 0,void 0,void 0)}}));
{
"description": "radio",
"dependencies": {
"@bpui/libs": "^0.2.5"
"@bpui/libs": "^0.2.6"
},

@@ -41,3 +41,3 @@ "directories": {},

"name": "@bpui/radio",
"version": "0.1.5"
"version": "0.1.6"
}

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc