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.

VProgressLinear.js.map 7.6KB

1
  1. {"version":3,"sources":["../../../src/components/VProgressLinear/VProgressLinear.ts"],"names":[],"mappings":";;;;;;;;AAGA;;;;AAGA;;AACA;;;;AAKA;;;;;AAVA;;AAGA;;;AAYA;kBACe,sBAAO,mBAAP,EAAkB,MAAlB,CAAyB;AACtC,UAAM,mBADgC;AAGtC,WAAO;AACL,gBAAQ;AACN,kBAAM,OADA;AAEN,qBAAS;AAFH,SADH;AAKL,yBAAiB;AACf,kBAAM,MADS;AAEf,qBAAS;AAFM,SALZ;AASL,2BAAmB;AACjB,kBAAM,CAAC,MAAD,EAAS,MAAT,CADW;AAEjB,qBAAS;AAFQ,SATd;AAaL,qBAAa;AACX,kBAAM,CAAC,MAAD,EAAS,MAAT,CADK;AAEX,qBAAS;AAFE,SAbR;AAiBL,eAAO;AACL,kBAAM,MADD;AAEL,qBAAS;AAFJ,SAjBF;AAqBL,gBAAQ;AACN,kBAAM,CAAC,MAAD,EAAS,MAAT,CADA;AAEN,qBAAS;AAFH,SArBH;AAyBL,uBAAe,OAzBV;AA0BL,eAAO,OA1BF;AA2BL,eAAO;AACL,kBAAM,CAAC,MAAD,EAAS,MAAT,CADD;AAEL,qBAAS;AAFJ;AA3BF,KAH+B;AAoCtC,cAAU;AACR,uBADQ,6BACO;AACb,gBAAM,oBAAoB,KAAK,iBAAL,IAA0B,IAA1B,GACrB,KAAK,eAAL,GAAuB,CAAvB,GAA2B,GADN,GAEtB,WAAW,KAAK,iBAAhB,CAFJ;AAIA,mBAAO;AACL,wBAAQ,KAAK,MAAL,GAAc,4BAAc,KAAK,MAAnB,CAAd,GAA2C,CAD9C;AAEL,yBAAS,iBAFJ;AAGL,uBAAU,KAAK,eAAf;AAHK,aAAP;AAKD,SAXO;AAaR,sBAbQ,4BAaM;AACZ,gBAAI,CAAC,KAAK,eAAV,EAA2B;AACzB,u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AACL,4CAA4B,KAAK;AAD5B,aARO;AAWd,mBAAO;AACL,wBAAQ,4BAAc,KAAK,MAAnB;AADH,aAXO;AAcd,gBAAI,KAAK;AAdK,SAAT,EAeJ,CACD,UADC,EAED,GAFC,EAGD,OAHC,CAfI,CAAP;AAoBD;AAtKqC,CAAzB,C","sourcesContent":["import '../../stylus/components/_progress-linear.styl'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\n\n// Helpers\nimport { convertToUnit } from '../../util/helpers'\nimport mixins from '../../util/mixins'\n\n// Types\nimport { CreateElement, VNode } from 'vue'\n\nimport {\n VFadeTransition,\n VSlideXTransition\n} from '../transitions'\n\n/* @vue/component */\nexport default mixins(Colorable).extend({\n name: 'v-progress-linear',\n\n props: {\n active: {\n type: Boolean,\n default: true\n },\n backgroundColor: {\n type: String,\n default: null\n },\n backgroundOpacity: {\n type: [Number, String],\n default: null\n },\n bufferValue: {\n type: [Number, String],\n default: 100\n },\n color: {\n type: String,\n default: 'primary'\n },\n height: {\n type: [Number, String],\n default: 7\n },\n indeterminate: Boolean,\n query: Boolean,\n value: {\n type: [Number, String],\n default: 0\n }\n },\n\n computed: {\n backgroundStyle (): object {\n const backgroundOpacity = this.backgroundOpacity == null\n ? (this.backgroundColor ? 1 : 0.3)\n : parseFloat(this.backgroundOpacity)\n\n return {\n height: this.active ? convertToUnit(this.height) : 0,\n opacity: backgroundOpacity,\n width: `${this.normalizedBufer}%`\n }\n },\n\n effectiveWidth (): number {\n if (!this.normalizedBufer) {\n return 0\n }\n\n return +this.normalizedValue * 100 / +this.normalizedBufer\n },\n\n normalizedBufer (): number {\n if (this.bufferValue < 0) {\n return 0\n }\n\n if (this.bufferValue > 100) {\n return 100\n }\n\n return parseFloat(this.bufferValue)\n },\n\n normalizedValue (): number {\n if (this.value < 0) {\n return 0\n }\n\n if (this.value > 100) {\n return 100\n }\n\n return parseFloat(this.value)\n },\n\n styles (): object {\n const styles: Record<string, any> = {}\n\n if (!this.active) {\n styles.height = 0\n }\n\n if (!this.indeterminate && parseFloat(this.normalizedBufer) !== 100) {\n styles.width = `${this.normalizedBufer}%`\n }\n\n return styles\n }\n },\n\n methods: {\n genDeterminate (h: CreateElement): VNode {\n return h('div', this.setBackgroundColor(this.color, {\n ref: 'front',\n staticClass: `v-progress-linear__bar__determinate`,\n style: {\n width: `${this.effectiveWidth}%`\n }\n }))\n },\n genBar (h: CreateElement, name: string): VNode {\n return h('div', this.setBackgroundColor(this.color, {\n staticClass: 'v-progress-linear__bar__indeterminate',\n class: {\n [name]: true\n }\n }))\n },\n genIndeterminate (h: CreateElement): VNode {\n return h('div', {\n ref: 'front',\n staticClass: 'v-progress-linear__bar__indeterminate',\n class: {\n 'v-progress-linear__bar__indeterminate--active': this.active\n }\n }, [\n this.genBar(h, 'long'),\n this.genBar(h, 'short')\n ])\n }\n },\n\n render (h): VNode {\n const fade = h(VFadeTransition, this.indeterminate ? [this.genIndeterminate(h)] : [])\n const slide = h(VSlideXTransition, this.indeterminate ? [] : [this.genDeterminate(h)])\n\n const bar = h('div', {\n staticClass: 'v-progress-linear__bar',\n style: this.styles\n }, [fade, slide])\n\n const background = h('div', this.setBackgroundColor(this.backgroundColor || this.color, {\n staticClass: 'v-progress-linear__background',\n style: this.backgroundStyle\n }))\n\n const content = this.$slots.default && h('div', {\n staticClass: 'v-progress-linear__content'\n }, this.$slots.default)\n\n return h('div', {\n staticClass: 'v-progress-linear',\n attrs: {\n 'role': 'progressbar',\n 'aria-valuemin': 0,\n 'aria-valuemax': this.normalizedBufer,\n 'aria-valuenow': this.indeterminate ? undefined : this.normalizedValue\n },\n class: {\n 'v-progress-linear--query': this.query\n },\n style: {\n height: convertToUnit(this.height)\n },\n on: this.$listeners\n }, [\n background,\n bar,\n content\n ])\n }\n})\n"],"sourceRoot":""}