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;AApDM,CARM,C","sourcesContent":["import '../../stylus/components/_system-bars.styl'\n\nimport Applicationable from '../../mixins/applicationable'\nimport Colorable from '../../mixins/colorable'\nimport Themeable from '../../mixins/themeable'\n\n// Types\nimport { VNode } from 'vue/types'\nimport mixins from '../../util/mixins'\n\nexport default mixins(\n Applicationable('bar', [\n 'height',\n 'window'\n ]),\n Colorable,\n Themeable\n/* @vue/component */\n).extend({\n name: 'v-system-bar',\n\n props: {\n height: {\n type: [Number, String],\n validator: (v: any) => !isNaN(parseInt(v))\n },\n lightsOut: Boolean,\n status: Boolean,\n window: Boolean\n },\n\n computed: {\n classes (): object {\n return {\n 'v-system-bar--lights-out': this.lightsOut,\n 'v-system-bar--absolute': this.absolute,\n 'v-system-bar--fixed': !this.absolute && (this.app || this.fixed),\n 'v-system-bar--status': this.status,\n 'v-system-bar--window': this.window,\n ...this.themeClasses\n }\n },\n computedHeight (): number {\n if (this.height) return parseInt(this.height)\n\n return this.window ? 32 : 24\n }\n },\n\n methods: {\n /**\n * Update the application layout\n *\n * @return {number}\n */\n updateApplication () {\n return this.computedHeight\n }\n },\n\n render (h): VNode {\n const data = {\n staticClass: 'v-system-bar',\n 'class': this.classes,\n style: {\n height: `${this.computedHeight}px`\n }\n }\n\n return h('div', this.setBackgroundColor(this.color, data), this.$slots.default)\n }\n})\n"],"sourceRoot":""}
|