@bpui/radio
Advanced tools
Comparing version 0.0.8 to 0.0.9
/*! | ||
* bpui radio v0.0.8 | ||
* bpui radio v0.0.9 | ||
* 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.0.8 | ||
* bpui radio v0.0.9 | ||
* 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.0.8 | ||
* bpui radio v0.0.9 | ||
* 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.0.28" | ||
"@bpui/libs": "0.0.30" | ||
}, | ||
@@ -41,3 +41,3 @@ "directories": {}, | ||
"name": "@bpui/radio", | ||
"version": "0.0.8" | ||
"version": "0.0.9" | ||
} |
@@ -8,2 +8,13 @@ # radio | ||
</bp-radio-group> | ||
``` | ||
style | ||
```css | ||
/* scss */ | ||
import '@bpui/libs/style/class.scss'; | ||
import '@bpui/radio/style'; | ||
/* css */ | ||
<link href="~@bpui/radio/dist/index.css" rel="stylesheet" type="text/css"/> | ||
``` |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
56594
15
862
19
+ Added@bpui/libs@0.0.30(transitive)
- Removed@bpui/libs@0.0.28(transitive)
Updated@bpui/libs@0.0.30