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WX,MAAA,EAAE,EAAE,SAXO;AAYX,MAAA,KAAK,EAAE;AACL,QAAA,IAAI,EAAE,4BAAc,KAAK,CAAC,IAApB,CADD;AAEL,QAAA,KAAK,EAAE,4BAAc,KAAK,CAAC,KAApB,CAFF;AAGL,QAAA,QAAQ,EAAE,KAAK,CAAC,QAAN,GAAiB,UAAjB,GAA8B;AAHnC,OAZI;AAiBX,MAAA,GAAG,EAAE;AAjBM,KAAb;AAoBA,WAAO,CAAC,CAAC,OAAD,EAAU,mBAAU,OAAV,CAAkB,OAAlB,CAA0B,YAA1B,CAAuC,KAAK,CAAC,OAAN,IAAiB,KAAK,CAAC,KAA9D,EAAqE,IAArE,CAAV,EAAsF,QAAtF,CAAR;AACD;AAhDqC,CAAzB,C","sourcesContent":["// Styles\nimport './VLabel.sass'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\nimport Themeable, { functionalThemeClasses } from '../../mixins/themeable'\n\n// Types\nimport { VNode } from 'vue'\nimport mixins from '../../util/mixins'\n\n// Helpers\nimport { convertToUnit } from '../../util/helpers'\n\n/* @vue/component */\nexport default mixins(Themeable).extend({\n name: 'v-label',\n\n functional: true,\n\n props: {\n absolute: Boolean,\n color: {\n type: String,\n default: 'primary',\n },\n disabled: Boolean,\n focused: Boolean,\n for: String,\n left: {\n type: [Number, String],\n default: 0,\n },\n right: {\n type: [Number, String],\n default: 'auto',\n },\n value: Boolean,\n },\n\n render (h, ctx): VNode {\n const { children, listeners, props } = ctx\n const data = {\n staticClass: 'v-label',\n class: {\n 'v-label--active': props.value,\n 'v-label--is-disabled': props.disabled,\n ...functionalThemeClasses(ctx),\n },\n attrs: {\n for: props.for,\n 'aria-hidden': !props.for,\n },\n on: listeners,\n style: {\n left: convertToUnit(props.left),\n right: convertToUnit(props.right),\n position: props.absolute ? 'absolute' : 'relative',\n },\n ref: 'label',\n }\n\n return h('label', Colorable.options.methods.setTextColor(props.focused && props.color, data), children)\n },\n})\n"],"sourceRoot":"","file":"VLabel.js"} |