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.

VTextField.js.map 21KB

1
  1. {"version":3,"sources":["../../../src/components/VTextField/VTextField.js"],"names":[],"mappings":";;;AACA,OAAO,kDAAP;AAEA;AACA,OAAO,MAAP,MAAmB,WAAnB;AAEA;AACA,OAAO,QAAP,MAAqB,aAArB;AACA,OAAO,MAAP,MAAmB,WAAnB;AAEA;AACA,OAAO,QAAP,MAAqB,uBAArB;AACA,OAAO,QAAP,MAAqB,uBAArB;AAEA;AACA,OAAO,MAAP,MAAmB,yBAAnB;AAEA;AACA,SACE,QADF,QAEO,oBAFP;AAGA,SAAS,SAAT,QAA0B,oBAA1B;AAEA,IAAM,aAAa,CAAC,OAAD,EAAU,MAAV,EAAkB,MAAlB,EAA0B,MAA1B,EAAkC,gBAAlC,EAAoD,MAApD,EAA4D,OAA5D,CAAnB;AAEA;AACA,eAAe,OAAO,MAAP,CAAc;AAC3B,UAAM,cADqB;AAG3B,gBAAY,EAAE,cAAF,EAHe;AAK3B,YAAQ,CAAC,QAAD,EAAW,QAAX,CALmB;AAO3B,kBAAc,KAPa;AAS3B,WAAO;AACL,yBAAiB,MADZ;AAEL;AACA,2BAAmB,QAHd;AAIL,mBAAW,OAJN;AAKL,aAAK,OALA;AAML,6BAAqB,MANhB;AAOL,mBAAW,OAPN;AAQL,mBAAW;AACT,kBAAM,MADG;AAET,qBAAS;AAFA,SARN;AAYL,qBAAa,QAZR;AAaL,eAAO;AACL,kBAAM,MADD;AAEL,qBAAS;AAFJ,SAbF;AAiBL,iBAAS,CAAC,OAAD,EAAU,MAAV,EAAkB,MAAlB,CAjBJ;AAkBL,cAAM,OAlBD;AAmBL,mBAAW,OAnBN;AAoBL,eAAO,MApBF;AAqBL,iBAAS,OArBJ;AAsBL,qBAAa,MAtBR;AAuBL,gBAAQ,MAvBH;AAwBL,0BAAkB,MAxBb;AAyBL;AACA,4BAAoB,QA1Bf;AA2BL,i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,KAAK,KAAL,CAAW,KAA5B,EAAmC;AACjC,kBAAE,cAAF;AACA,kBAAE,eAAF;AACD;AAED,mBAAO,OAAP,CAAe,OAAf,CAAuB,WAAvB,CAAmC,IAAnC,CAAwC,IAAxC,EAA8C,CAA9C;AACD,SA3NM;AA4NP,iBA5NO,qBA4NI,CA5NJ,EA4NK;AACV,gBAAI,KAAK,YAAT,EAAuB,KAAK,KAAL;AAEvB,mBAAO,OAAP,CAAe,OAAf,CAAuB,SAAvB,CAAiC,IAAjC,CAAsC,IAAtC,EAA4C,CAA5C;AACD;AAhOM;AA9KkB,CAAd,CAAf","sourcesContent":["// Styles\nimport '../../stylus/components/_text-fields.styl'\n\n// Extensions\nimport VInput from '../VInput'\n\n// Components\nimport VCounter from '../VCounter'\nimport VLabel from '../VLabel'\n\n// Mixins\nimport Maskable from '../../mixins/maskable'\nimport Loadable from '../../mixins/loadable'\n\n// Directives\nimport Ripple from '../../directives/ripple'\n\n// Utilities\nimport {\n keyCodes\n} from '../../util/helpers'\nimport { deprecate } from '../../util/console'\n\nconst dirtyTypes = ['color', 'file', 'time', 'date', 'datetime-local', 'week', 'month']\n\n/* @vue/component */\nexport default VInput.extend({\n name: 'v-text-field',\n\n directives: { Ripple },\n\n mixins: [Maskable, Loadable],\n\n inheritAttrs: false,\n\n props: {\n appendOuterIcon: String,\n /** @deprecated */\n appendOuterIconCb: Function,\n autofocus: Boolean,\n box: Boolean,\n browserAutocomplete: String,\n clearable: Boolean,\n clearIcon: {\n type: String,\n default: '$vuetify.icons.clear'\n },\n clearIconCb: Function,\n color: {\n type: String,\n default: 'primary'\n },\n counter: [Boolean, Number, String],\n flat: Boolean,\n fullWidth: Boolean,\n label: String,\n outline: Boolean,\n placeholder: String,\n prefix: String,\n prependInnerIcon: String,\n /** @deprecated */\n prependInnerIconCb: Function,\n reverse: Boolean,\n singleLine: Boolean,\n solo: Boolean,\n soloInverted: Boolean,\n suffix: String,\n type: {\n type: String,\n default: 'text'\n }\n },\n\n data: () => ({\n badInput: false,\n initialValue: null,\n internalChange: false,\n isClearing: false\n }),\n\n computed: {\n classes () {\n return {\n 'v-text-field': true,\n 'v-text-field--full-width': this.fullWidth,\n 'v-text-field--prefix': this.prefix,\n 'v-text-field--single-line': this.isSingle,\n 'v-text-field--solo': this.isSolo,\n 'v-text-field--solo-inverted': this.soloInverted,\n 'v-text-field--solo-flat': this.flat,\n 'v-text-field--box': this.box,\n 'v-text-field--enclosed': this.isEnclosed,\n 'v-text-field--reverse': this.reverse,\n 'v-text-field--outline': this.hasOutline,\n 'v-text-field--placeholder': this.placeholder\n }\n },\n counterValue () {\n return (this.internalValue || '').toString().length\n },\n directivesInput () {\n return []\n },\n // TODO: Deprecate\n hasOutline () {\n return this.outline || this.textarea\n },\n internalValue: {\n get () {\n return this.lazyValue\n },\n set (val) {\n if (this.mask && val !== this.lazyValue) {\n this.lazyValue = this.unmaskText(this.maskText(this.unmaskText(val)))\n this.setSelectionRange()\n } else {\n this.lazyValue = val\n this.$emit('input', this.lazyValue)\n }\n }\n },\n isDirty () {\n return (this.lazyValue != null &&\n this.lazyValue.toString().length > 0) ||\n this.badInput\n },\n isEnclosed () {\n return (\n this.box ||\n this.isSolo ||\n this.hasOutline ||\n this.fullWidth\n )\n },\n isLabelActive () {\n return this.isDirty || dirtyTypes.includes(this.type)\n },\n isSingle () {\n return this.isSolo || this.singleLine\n },\n isSolo () {\n return this.solo || this.soloInverted\n },\n labelPosition () {\n const offset = (this.prefix && !this.labelValue) ? this.prefixWidth : 0\n\n return (!this.$vuetify.rtl !== !this.reverse) ? {\n left: 'auto',\n right: offset\n } : {\n left: offset,\n right: 'auto'\n }\n },\n showLabel () {\n return this.hasLabel && (!this.isSingle || (!this.isLabelActive && !this.placeholder && !this.prefixLabel))\n },\n labelValue () {\n return !this.isSingle &&\n Boolean(this.isFocused || this.isLabelActive || this.placeholder || this.prefixLabel)\n },\n prefixWidth () {\n if (!this.prefix && !this.$refs.prefix) return\n\n return this.$refs.prefix.offsetWidth\n },\n prefixLabel () {\n return (this.prefix && !this.value)\n }\n },\n\n watch: {\n isFocused (val) {\n // Sets validationState from validatable\n this.hasColor = val\n\n if (val) {\n this.initialValue = this.lazyValue\n } else if (this.initialValue !== this.lazyValue) {\n this.$emit('change', this.lazyValue)\n }\n },\n value (val) {\n if (this.mask && !this.internalChange) {\n const masked = this.maskText(this.unmaskText(val))\n this.lazyValue = this.unmaskText(masked)\n\n // Emit when the externally set value was modified internally\n String(val) !== this.lazyValue && this.$nextTick(() => {\n this.$refs.input.value = masked\n this.$emit('input', this.lazyValue)\n })\n } else this.lazyValue = val\n }\n },\n\n mounted () {\n this.autofocus && this.onFocus()\n },\n\n methods: {\n /** @public */\n focus () {\n this.onFocus()\n },\n /** @public */\n blur () {\n this.$refs.input ? this.$refs.input.blur() : this.onBlur()\n },\n clearableCallback () {\n this.internalValue = null\n this.$nextTick(() => this.$refs.input.focus())\n },\n genAppendSlot () {\n const slot = []\n\n if (this.$slots['append-outer']) {\n slot.push(this.$slots['append-outer'])\n } else if (this.appendOuterIcon) {\n slot.push(this.genIcon('appendOuter'))\n }\n\n return this.genSlot('append', 'outer', slot)\n },\n genPrependInnerSlot () {\n const slot = []\n\n if (this.$slots['prepend-inner']) {\n slot.push(this.$slots['prepend-inner'])\n } else if (this.prependInnerIcon) {\n slot.push(this.genIcon('prependInner'))\n }\n\n return this.genSlot('prepend', 'inner', slot)\n },\n genIconSlot () {\n const slot = []\n\n if (this.$slots['append']) {\n slot.push(this.$slots['append'])\n } else if (this.appendIcon) {\n slot.push(this.genIcon('append'))\n }\n\n return this.genSlot('append', 'inner', slot)\n },\n genInputSlot () {\n const input = VInput.options.methods.genInputSlot.call(this)\n\n const prepend = this.genPrependInnerSlot()\n prepend && input.children.unshift(prepend)\n\n return input\n },\n genClearIcon () {\n if (!this.clearable) return null\n\n const icon = !this.isDirty\n ? false\n : 'clear'\n\n if (this.clearIconCb) deprecate(':clear-icon-cb', '@click:clear', this)\n\n return this.genSlot('append', 'inner', [\n this.genIcon(\n icon,\n (!this.$listeners['click:clear'] && this.clearIconCb) || this.clearableCallback,\n false\n )\n ])\n },\n genCounter () {\n if (this.counter === false || this.counter == null) return null\n\n const max = this.counter === true ? this.$attrs.maxlength : this.counter\n\n return this.$createElement(VCounter, {\n props: {\n dark: this.dark,\n light: this.light,\n max,\n value: this.counterValue\n }\n })\n },\n genDefaultSlot () {\n return [\n this.genTextFieldSlot(),\n this.genClearIcon(),\n this.genIconSlot(),\n this.genProgress()\n ]\n },\n genLabel () {\n if (!this.showLabel) return null\n\n const data = {\n props: {\n absolute: true,\n color: this.validationState,\n dark: this.dark,\n disabled: this.disabled,\n focused: !this.isSingle && (this.isFocused || !!this.validationState),\n left: this.labelPosition.left,\n light: this.light,\n right: this.labelPosition.right,\n value: this.labelValue\n }\n }\n\n if (this.$attrs.id) data.props.for = this.$attrs.id\n\n return this.$createElement(VLabel, data, this.$slots.label || this.label)\n },\n genInput () {\n const listeners = Object.assign({}, this.$listeners)\n delete listeners['change'] // Change should not be bound externally\n\n const data = {\n style: {},\n domProps: {\n value: this.maskText(this.lazyValue)\n },\n attrs: {\n 'aria-label': (!this.$attrs || !this.$attrs.id) && this.label, // Label `for` will be set if we have an id\n ...this.$attrs,\n autofocus: this.autofocus,\n disabled: this.disabled,\n readonly: this.readonly,\n type: this.type\n },\n on: Object.assign(listeners, {\n blur: this.onBlur,\n input: this.onInput,\n focus: this.onFocus,\n keydown: this.onKeyDown\n }),\n ref: 'input'\n }\n\n if (this.placeholder) data.attrs.placeholder = this.placeholder\n if (this.mask) data.attrs.maxlength = this.masked.length\n if (this.browserAutocomplete) data.attrs.autocomplete = this.browserAutocomplete\n\n return this.$createElement('input', data)\n },\n genMessages () {\n if (this.hideDetails) return null\n\n return this.$createElement('div', {\n staticClass: 'v-text-field__details'\n }, [\n VInput.options.methods.genMessages.call(this),\n this.genCounter()\n ])\n },\n genTextFieldSlot () {\n return this.$createElement('div', {\n staticClass: 'v-text-field__slot'\n }, [\n this.genLabel(),\n this.prefix ? this.genAffix('prefix') : null,\n this.genInput(),\n this.suffix ? this.genAffix('suffix') : null\n ])\n },\n genAffix (type) {\n return this.$createElement('div', {\n 'class': `v-text-field__${type}`,\n ref: type\n }, this[type])\n },\n onBlur (e) {\n this.isFocused = false\n // Reset internalChange state\n // to allow external change\n // to persist\n this.internalChange = false\n\n this.$emit('blur', e)\n },\n onClick () {\n if (this.isFocused || this.disabled) return\n\n this.$refs.input.focus()\n },\n onFocus (e) {\n if (!this.$refs.input) return\n\n if (document.activeElement !== this.$refs.input) {\n return this.$refs.input.focus()\n }\n\n if (!this.isFocused) {\n this.isFocused = true\n this.$emit('focus', e)\n }\n },\n onInput (e) {\n this.internalChange = true\n this.mask && this.resetSelections(e.target)\n this.internalValue = e.target.value\n this.badInput = e.target.validity && e.target.validity.badInput\n },\n onKeyDown (e) {\n this.internalChange = true\n\n if (e.keyCode === keyCodes.enter) this.$emit('change', this.internalValue)\n\n this.$emit('keydown', e)\n },\n onMouseDown (e) {\n // Prevent input from being blurred\n if (e.target !== this.$refs.input) {\n e.preventDefault()\n e.stopPropagation()\n }\n\n VInput.options.methods.onMouseDown.call(this, e)\n },\n onMouseUp (e) {\n if (this.hasMouseDown) this.focus()\n\n VInput.options.methods.onMouseUp.call(this, e)\n }\n }\n})\n"],"sourceRoot":""}