Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

VRadio.js.map 6.9KB

1
  1. {"version":3,"sources":["../../../src/components/VRadioGroup/VRadio.js"],"names":[],"mappings":";;;;;AACA,OAAO,6CAAP;AAEA;AACA,OAAO,KAAP,MAAkB,UAAlB;AACA,OAAO,MAAP,MAAmB,WAAnB;AAEA;AACA,OAAO,SAAP,MAAsB,wBAAtB;AACA,OAAO,UAAP,MAAuB,yBAAvB;AACA,OAAO,SAAP,MAAsB,wBAAtB;AACA,OAAO,UAAP,MAAuB,yBAAvB;AACA,SACE,UAAU,iBADZ,QAEO,0BAFP;AAIA;AACA,eAAe;AACb,UAAM,SADO;AAGb,YAAQ,CACN,SADM,EAEN,UAFM,EAGN,kBAAkB,OAAlB,EAA2B,SAA3B,EAAsC,eAAtC,CAHM,EAIN,SAJM,CAHK;AAUb,kBAAc,KAVD;AAYb,WAAO;AACL,eAAO;AACL,kBAAM,MADD;AAEL,qBAAS;AAFJ,SADF;AAKL,kBAAU,OALL;AAML,eAAO,MANF;AAOL,gBAAQ;AACN,kBAAM,MADA;AAEN,qBAAS;AAFH,SAPH;AAWL,iBAAS;AACP,kBAAM,MADC;AAEP,qBAAS;AAFF,SAXJ;AAeL,kBAAU,OAfL;AAgBL,eAAO;AAhBF,KAZM;AA+Bb,UAAM;AAAA,eAAO;AACX,sBAAU,KADC;AAEX,uBAAW,KAFA;AAGX,yBAAa;AAHF,SAAP;AAAA,KA/BO;AAqCb,cAAU;AACR,oBADQ,0BACI;AACV,mBAAO,KAAK,YAAL,CAAkB,CAAC,KAAK,WAAN,IAAqB,KAAK,QAA1B,IAAsC,KAAK,KAA7D,EAAoE;AACzE,6BAAa,SAD4D;AAEzE;AACE,4CAAwB,KAAK,UAD/B;AAEE,2CAAuB,KAAK;AAF9B,mBAGK,KAAK,YAHV;AAFyE,aAApE,CAAP;AAQD,SAVO;AAWR,qBAXQ,2BAWK;AACX,mBAA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C,KAAK,QAAL,EADiC,EAEjC,KAAK,QAAL,EAFiC,CAA5B,CAAP;AAID;AAzIY,CAAf","sourcesContent":["// Styles\nimport '../../stylus/components/_radios.styl'\n\n// Components\nimport VIcon from '../VIcon'\nimport VLabel from '../VLabel'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\nimport Rippleable from '../../mixins/rippleable'\nimport Themeable from '../../mixins/themeable'\nimport Selectable from '../../mixins/selectable'\nimport {\n inject as RegistrableInject\n} from '../../mixins/registrable'\n\n/* @vue/component */\nexport default {\n name: 'v-radio',\n\n mixins: [\n Colorable,\n Rippleable,\n RegistrableInject('radio', 'v-radio', 'v-radio-group'),\n Themeable\n ],\n\n inheritAttrs: false,\n\n props: {\n color: {\n type: String,\n default: 'accent'\n },\n disabled: Boolean,\n label: String,\n onIcon: {\n type: String,\n default: '$vuetify.icons.radioOn'\n },\n offIcon: {\n type: String,\n default: '$vuetify.icons.radioOff'\n },\n readonly: Boolean,\n value: null\n },\n\n data: () => ({\n isActive: false,\n isFocused: false,\n parentError: false\n }),\n\n computed: {\n computedData () {\n return this.setTextColor(!this.parentError && this.isActive && this.color, {\n staticClass: 'v-radio',\n 'class': {\n 'v-radio--is-disabled': this.isDisabled,\n 'v-radio--is-focused': this.isFocused,\n ...this.themeClasses\n }\n })\n },\n computedColor () {\n return this.isActive ? this.color : this.radio.validationState || false\n },\n computedIcon () {\n return this.isActive\n ? this.onIcon\n : this.offIcon\n },\n hasState () {\n return this.isActive || !!this.radio.validationState\n },\n isDisabled () {\n return this.disabled || !!this.radio.disabled\n },\n isReadonly () {\n return this.readonly || !!this.radio.readonly\n }\n },\n\n mounted () {\n this.radio.register(this)\n },\n\n beforeDestroy () {\n this.radio.unregister(this)\n },\n\n methods: {\n genInput (...args) {\n // We can't actually use the mixin directly because\n // it's made for standalone components, but its\n // genInput method is exactly what we need\n return Selectable.options.methods.genInput.call(this, ...args)\n },\n genLabel () {\n return this.$createElement(VLabel, {\n on: { click: this.onChange },\n attrs: {\n for: this.id\n },\n props: {\n color: this.radio.validationState || '',\n dark: this.dark,\n focused: this.hasState,\n light: this.light\n }\n }, this.$slots.label || this.label)\n },\n genRadio () {\n return this.$createElement('div', {\n staticClass: 'v-input--selection-controls__input'\n }, [\n this.genInput('radio', {\n name: this.radio.name || (this.radio._uid ? 'v-radio-' + this.radio._uid : false),\n value: this.value,\n ...this.$attrs\n }),\n this.genRipple(this.setTextColor(this.computedColor)),\n this.$createElement(VIcon, this.setTextColor(this.computedColor, {\n props: {\n dark: this.dark,\n light: this.light\n }\n }), this.computedIcon)\n ])\n },\n onFocus (e) {\n this.isFocused = true\n this.$emit('focus', e)\n },\n onBlur (e) {\n this.isFocused = false\n this.$emit('blur', e)\n },\n onChange () {\n if (this.isDisabled || this.isReadonly) return\n\n if (!this.isDisabled && (!this.isActive || !this.radio.mandatory)) {\n this.$emit('change', this.value)\n }\n },\n onKeydown () {}\n },\n\n render (h) {\n return h('div', this.computedData, [\n this.genRadio(),\n this.genLabel()\n ])\n }\n}\n"],"sourceRoot":""}