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.

VStepperStep.js.map 5.9KB

1
  1. {"version":3,"sources":["../../../src/components/VStepper/VStepperStep.ts"],"names":[],"mappings":";;;;;;AACA;;;;AAGA;;;;AACA;;AAGA;;;;AAGA;;;;;;AAJA;;AAJA;kBAoBe,sBAQb,mBARa,EASb,yBAAkB,SAAlB,EAA6B,gBAA7B,EAA+C,WAA/C;AACF;AAVe,EAWb,MAXa,CAWN;AACP,UAAM,gBADC;AAGP,gBAAY,EAAE,wBAAF,EAHL;AAKP,YAAQ,CAAC,WAAD,CALD;AAOP,WAAO;AACL,eAAO;AACL,kBAAM,MADD;AAEL,qBAAS;AAFJ,SADF;AAKL,kBAAU,OALL;AAML,sBAAc;AACZ,kBAAM,MADM;AAEZ,qBAAS;AAFG,SANT;AAUL,kBAAU;AACR,kBAAM,MADE;AAER,qBAAS;AAFD,SAVL;AAcL,mBAAW;AACT,kBAAM,MADG;AAET,qBAAS;AAFA,SAdN;AAkBL,kBAAU,OAlBL;AAmBL,eAAO;AACL,kBAAM,KADD;AAEL,qBAAS;AAAA,uBAAM,EAAN;AAAA;AAFJ,SAnBF;AAuBL,cAAM,CAAC,MAAD,EAAS,MAAT;AAvBD,KAPA;AAiCP,QAjCO,kBAiCH;AACF,eAAO;AACL,sBAAU,KADL;AAEL,wBAAY;AAFP,SAAP;AAID,KAtCM;;AAwCP,cAAU;AACR,eADQ,qBACD;AACL,mBAAO;AACL,mCAAmB,IADd;AAEL,2CAA2B,KAAK,QAF3B;AAGL,6CAA6B,KAAK,QAH7B;AAIL,6CAA6B,KAAK,UAJ7B;AAKL,0CAA0B,KAAK,QAL1B;AAML,6CAA6B,KAAK,QAN7B;AAOL,+BAAe,KAAK;AAPf,aAAP;AASD,SAXO;AAYR,gBAZQ,sBAYA;AACN,mBAAO,KAAK,KAAL,CAAW,IAAX,CAAgB;AAAA,uBAAY,eAAe,IAA3B;AAAA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AK,IAAZ,CAAd;AACD;AAED,YAAM,QAAS,CAAC,KAAK,QAAN,KAAmB,KAAK,QAAL,IAAiB,KAAK,QAAzC,CAAD,GAAuD,KAAK,KAA5D,GAAoE,KAAlF;AACA,YAAM,OAAO,EAAE,MAAF,EAAU,KAAK,kBAAL,CAAwB,KAAxB,EAA+B;AACpD,yBAAa;AADuC,SAA/B,CAAV,EAET,WAFS,CAAb;AAIA,YAAM,QAAQ,EAAE,KAAF,EAAS;AACrB,yBAAa;AADQ,SAAT,EAEX,KAAK,MAAL,CAAY,OAFD,CAAd;AAIA,eAAO,EAAE,KAAF,EAAS,IAAT,EAAe,CAAC,IAAD,EAAO,KAAP,CAAf,CAAP;AACD;AAlHM,CAXM,C;AAbf","sourcesContent":["// Components\nimport VIcon from '../VIcon'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\nimport { inject as RegistrableInject, Registrable } from '../../mixins/registrable'\n\n// Directives\nimport Ripple from '../../directives/ripple'\n\n// Util\nimport mixins, { ExtractVue } from '../../util/mixins'\n\n// Types\nimport Vue, { VNode } from 'vue'\nimport { PropValidator } from 'vue/types/options'\n\ntype VuetifyStepperRuleValidator = () => string | false\n\ninterface options extends Vue {\n stepClick: (step: number | string) => void\n}\n\nexport default mixins<options &\n/* eslint-disable indent */\n ExtractVue<[\n typeof Colorable,\n Registrable<'stepper'>\n ]>\n/* eslint-enable indent */\n>(\n Colorable,\n RegistrableInject('stepper', 'v-stepper-step', 'v-stepper')\n/* @vue/component */\n).extend({\n name: 'v-stepper-step',\n\n directives: { Ripple },\n\n inject: ['stepClick'],\n\n props: {\n color: {\n type: String,\n default: 'primary'\n },\n complete: Boolean,\n completeIcon: {\n type: String,\n default: '$vuetify.icons.complete'\n },\n editIcon: {\n type: String,\n default: '$vuetify.icons.edit'\n },\n errorIcon: {\n type: String,\n default: '$vuetify.icons.error'\n },\n editable: Boolean,\n rules: {\n type: Array,\n default: () => []\n } as PropValidator<VuetifyStepperRuleValidator[]>,\n step: [Number, String]\n },\n\n data () {\n return {\n isActive: false,\n isInactive: true\n }\n },\n\n computed: {\n classes (): object {\n return {\n 'v-stepper__step': true,\n 'v-stepper__step--active': this.isActive,\n 'v-stepper__step--editable': this.editable,\n 'v-stepper__step--inactive': this.isInactive,\n 'v-stepper__step--error': this.hasError,\n 'v-stepper__step--complete': this.complete,\n 'error--text': this.hasError\n }\n },\n hasError (): boolean {\n return this.rules.some(validate => validate() !== true)\n }\n },\n\n mounted () {\n this.stepper && this.stepper.register(this)\n },\n\n beforeDestroy () {\n this.stepper && this.stepper.unregister(this)\n },\n\n methods: {\n click (e: MouseEvent) {\n e.stopPropagation()\n\n this.$emit('click', e)\n\n if (this.editable) {\n this.stepClick(this.step)\n }\n },\n toggle (step: number | string) {\n this.isActive = step.toString() === this.step.toString()\n this.isInactive = Number(step) < Number(this.step)\n }\n },\n\n render (h): VNode {\n const data = {\n 'class': this.classes,\n directives: [{\n name: 'ripple',\n value: this.editable\n }],\n on: { click: this.click }\n }\n let stepContent\n\n if (this.hasError) {\n stepContent = [h(VIcon, {}, this.errorIcon)]\n } else if (this.complete) {\n if (this.editable) {\n stepContent = [h(VIcon, {}, this.editIcon)]\n } else {\n stepContent = [h(VIcon, {}, this.completeIcon)]\n }\n } else {\n stepContent = String(this.step)\n }\n\n const color = (!this.hasError && (this.complete || this.isActive)) ? this.color : false\n const step = h('span', this.setBackgroundColor(color, {\n staticClass: 'v-stepper__step__step'\n }), stepContent)\n\n const label = h('div', {\n staticClass: 'v-stepper__label'\n }, this.$slots.default)\n\n return h('div', data, [step, label])\n }\n})\n"],"sourceRoot":""}