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AAP;AASD,SA1BM;AA2BP,kBA3BO,wBA2BG;AACR,mBAAO,KAAK,cAAL,CAAoB,KAApB,EAA2B;AAChC,6BAAa;AADmB,aAA3B,EAEJ,KAAK,MAAL,CAAY,OAFR,CAAP;AAGD;AA/BM,KAvBwC;AAyDjD,UAzDiD,kBAyDzC,CAzDyC,EAyDxC;AACP,eAAO,EAAE,KAAF,EAAS;AACd,yBAAa,iBADC;AAEd;AACE,uCAAuB,KAAK,SAD9B;AAEE,wCAAwB,KAAK;AAF/B,eAGK,KAAK,YAHV;AAFc,SAAT,EAOJ,CACD,KAAK,MAAL,CAAY,KAAZ,GAAoB,KAAK,QAAL,EAApB,GAAsC,IADrC,EAED,KAAK,OAAL,EAFC,EAGD,KAAK,MAAL,CAAY,OAAZ,GAAsB,KAAK,UAAL,EAAtB,GAA0C,IAHzC,CAPI,CAAP;AAYD;AAtEgD,CAApC,C","sourcesContent":["import '../../stylus/components/_pickers.styl'\nimport '../../stylus/components/_cards.styl'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\nimport Themeable from '../../mixins/themeable'\n\n// Helpers\nimport { convertToUnit } from '../../util/helpers'\n\n// Types\nimport { VNode } from 'vue/types'\nimport mixins from '../../util/mixins'\n\n/* @vue/component */\nexport default mixins(Colorable, Themeable).extend({\n name: 'v-picker',\n\n props: {\n fullWidth: Boolean,\n landscape: Boolean,\n transition: {\n type: String,\n default: 'fade-transition'\n },\n width: {\n type: [Number, String],\n default: 290\n }\n },\n\n computed: {\n computedTitleColor (): string | false {\n const defaultTitleColor = this.isDark ? false : (this.color || 'primary')\n return this.color || defaultTitleColor\n }\n },\n\n methods: {\n genTitle () {\n return this.$createElement('div', this.setBackgroundColor(this.computedTitleColor, {\n staticClass: 'v-picker__title',\n 'class': {\n 'v-picker__title--landscape': this.landscape\n }\n }), this.$slots.title)\n },\n genBodyTransition () {\n return this.$createElement('transition', {\n props: {\n name: this.transition\n }\n }, this.$slots.default)\n },\n genBody () {\n return this.$createElement('div', {\n staticClass: 'v-picker__body',\n 'class': this.themeClasses,\n style: this.fullWidth ? undefined : {\n width: convertToUnit(this.width)\n }\n }, [\n this.genBodyTransition()\n ])\n },\n genActions () {\n return this.$createElement('div', {\n staticClass: 'v-picker__actions v-card__actions'\n }, this.$slots.actions)\n }\n },\n\n render (h): VNode {\n return h('div', {\n staticClass: 'v-picker v-card',\n 'class': {\n 'v-picker--landscape': this.landscape,\n 'v-picker--full-width': this.fullWidth,\n ...this.themeClasses\n }\n }, [\n this.$slots.title ? this.genTitle() : null,\n this.genBody(),\n this.$slots.actions ? this.genActions() : null\n ])\n }\n})\n"],"sourceRoot":""}
|