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.2 to 0.1.3

dist/index.common.js

2

dist/index.common.min.js
/*!
* bpui radio v0.1.2
* bpui radio v0.1.3
* Copyright (c) 2020 Copyright bp 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;
/*!
* bpui radio v0.1.2
* bpui radio v0.1.3
* Copyright (c) 2020 Copyright bp 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;
/*!
* bpui radio v0.1.2
* bpui radio v0.1.3
* Copyright (c) 2020 Copyright bp 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}});
{
"description": "radio",
"dependencies": {
"@bpui/libs": "^0.1.1"
"@bpui/libs": "^0.2.2"
},

@@ -22,4 +22,4 @@ "directories": {},

},
"main": "dist/index.common.min.js",
"module": "dist/index.esm.min.js",
"main": "dist/index.common.js",
"module": "dist/index.esm.js",
"unpkg": "dist/index.min.js",

@@ -39,6 +39,6 @@ "types": "types/index.d.ts",

"scripts": {
"prepare": "node ../../scripts/bundle.js"
"prepare": "node ../../scripts/bundle.js && rm -rf dist/style.js*"
},
"name": "@bpui/radio",
"version": "0.1.2"
"version": "0.1.3"
}

@@ -18,3 +18,3 @@ # radio

/* css */
<link href="~@bpui/radio/dist/index.css" rel="stylesheet" type="text/css"/>
<link href="~@bpui/radio/dist/style.css" rel="stylesheet" type="text/css"/>
```

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