vuetify eingebunden + erster Versuch Combobox

This commit is contained in:
2019-04-17 15:58:15 +02:00
parent 24642ca1a8
commit 56f4a3f940
1846 changed files with 219701 additions and 53848 deletions
+94
View File
@@ -0,0 +1,94 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; // Styles
// Mixins
require('../../../src/stylus/components/_footer.styl');
var _applicationable = require('../../mixins/applicationable');
var _applicationable2 = _interopRequireDefault(_applicationable);
var _colorable = require('../../mixins/colorable');
var _colorable2 = _interopRequireDefault(_colorable);
var _themeable = require('../../mixins/themeable');
var _themeable2 = _interopRequireDefault(_themeable);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/* @vue/component */
exports.default = {
name: 'v-footer',
mixins: [(0, _applicationable2.default)(null, ['height', 'inset']), _colorable2.default, _themeable2.default],
props: {
height: {
default: 32,
type: [Number, String]
},
inset: Boolean
},
computed: {
applicationProperty: function applicationProperty() {
return this.inset ? 'insetFooter' : 'footer';
},
computedMarginBottom: function computedMarginBottom() {
if (!this.app) return;
return this.$vuetify.application.bottom;
},
computedPaddingLeft: function computedPaddingLeft() {
return !this.app || !this.inset ? 0 : this.$vuetify.application.left;
},
computedPaddingRight: function computedPaddingRight() {
return !this.app || !this.inset ? 0 : this.$vuetify.application.right;
},
styles: function styles() {
var styles = {
height: isNaN(this.height) ? this.height : this.height + 'px'
};
if (this.computedPaddingLeft) {
styles.paddingLeft = this.computedPaddingLeft + 'px';
}
if (this.computedPaddingRight) {
styles.paddingRight = this.computedPaddingRight + 'px';
}
if (this.computedMarginBottom) {
styles.marginBottom = this.computedMarginBottom + 'px';
}
return styles;
}
},
methods: {
/**
* Update the application layout
*
* @return {number}
*/
updateApplication: function updateApplication() {
var height = parseInt(this.height);
return isNaN(height) ? this.$el ? this.$el.clientHeight : 0 : height;
}
},
render: function render(h) {
var data = this.setBackgroundColor(this.color, {
staticClass: 'v-footer',
'class': _extends({
'v-footer--absolute': this.absolute,
'v-footer--fixed': !this.absolute && (this.app || this.fixed),
'v-footer--inset': this.inset
}, this.themeClasses),
style: this.styles,
ref: 'content'
});
return h('footer', data, this.$slots.default);
}
};
//# sourceMappingURL=VFooter.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/VFooter/VFooter.js"],"names":[],"mappings":";;;;;;;;AAGA;;;AAFA;;AAGA;;;;AACA;;;;AACA;;;;;;AAEA;kBACe;AACb,UAAM,UADO;AAGb,YAAQ,CACN,+BAAgB,IAAhB,EAAsB,CACpB,QADoB,EAEpB,OAFoB,CAAtB,CADM,EAKN,mBALM,EAMN,mBANM,CAHK;AAYb,WAAO;AACL,gBAAQ;AACN,qBAAS,EADH;AAEN,kBAAM,CAAC,MAAD,EAAS,MAAT;AAFA,SADH;AAKL,eAAO;AALF,KAZM;AAoBb,cAAU;AACR,2BADQ,iCACW;AACjB,mBAAO,KAAK,KAAL,GAAa,aAAb,GAA6B,QAApC;AACD,SAHO;AAIR,4BAJQ,kCAIY;AAClB,gBAAI,CAAC,KAAK,GAAV,EAAe;AAEf,mBAAO,KAAK,QAAL,CAAc,WAAd,CAA0B,MAAjC;AACD,SARO;AASR,2BATQ,iCASW;AACjB,mBAAO,CAAC,KAAK,GAAN,IAAa,CAAC,KAAK,KAAnB,GACH,CADG,GAEH,KAAK,QAAL,CAAc,WAAd,CAA0B,IAF9B;AAGD,SAbO;AAcR,4BAdQ,kCAcY;AAClB,mBAAO,CAAC,KAAK,GAAN,IAAa,CAAC,KAAK,KAAnB,GACH,CADG,GAEH,KAAK,QAAL,CAAc,WAAd,CAA0B,KAF9B;AAGD,SAlBO;AAmBR,cAnBQ,oBAmBF;AACJ,gBAAM,SAAS;AACb,wBAAQ,MAAM,KAAK,MAAX,IAAqB,KAAK,MAA1B,GAAsC,KAAK,MAA3C;AADK,aAAf;AAIA,gBAAI,KAAK,mBAAT,EAA8B;AAC5B,uBAAO,WAAP,GAAwB,KAAK,mBAA7B;AACD;AAED,gBAAI,KAAK,oBAAT,EAA+B;AAC7B,uBAAO,YAAP,GAAyB,KAAK,oBAA9B;AACD;AAED,gBAAI,KAAK,oBAAT,EAA+B;AAC7B,uBAAO,YAAP,GAAyB,KAAK,oBAA9B;AACD;AAED,mBAAO,MAAP;AACD;AArCO,KApBG;AA4Db,aAAS;AACP;;;;;AAKA,yBANO,+BAMU;AACf,gBAAM,SAAS,SAAS,KAAK,MAAd,CAAf;AAEA,mBAAO,MAAM,MAAN,IACH,KAAK,GAAL,GAAW,KAAK,GAAL,CAAS,YAApB,GAAmC,CADhC,GAEH,MAFJ;AAGD;AAZM,KA5DI;AA2Eb,UA3Ea,kBA2EL,CA3EK,EA2EJ;AACP,YAAM,OAAO,KAAK,kBAAL,CAAwB,KAAK,KAA7B,EAAoC;AAC/C,yBAAa,UADkC;AAE/C;AACE,sCAAsB,KAAK,QAD7B;AAEE,mCAAmB,CAAC,KAAK,QAAN,KAAmB,KAAK,GAAL,IAAY,KAAK,KAApC,CAFrB;AAGE,mCAAmB,KAAK;AAH1B,eAIK,KAAK,YAJV,CAF+C;AAQ/C,mBAAO,KAAK,MARmC;AAS/C,iBAAK;AAT0C,SAApC,CAAb;AAYA,eAAO,EAAE,QAAF,EAAY,IAAZ,EAAkB,KAAK,MAAL,CAAY,OAA9B,CAAP;AACD;AAzFY,C","sourcesContent":["// Styles\nimport '../../stylus/components/_footer.styl'\n\n// Mixins\nimport Applicationable from '../../mixins/applicationable'\nimport Colorable from '../../mixins/colorable'\nimport Themeable from '../../mixins/themeable'\n\n/* @vue/component */\nexport default {\n name: 'v-footer',\n\n mixins: [\n Applicationable(null, [\n 'height',\n 'inset'\n ]),\n Colorable,\n Themeable\n ],\n\n props: {\n height: {\n default: 32,\n type: [Number, String]\n },\n inset: Boolean\n },\n\n computed: {\n applicationProperty () {\n return this.inset ? 'insetFooter' : 'footer'\n },\n computedMarginBottom () {\n if (!this.app) return\n\n return this.$vuetify.application.bottom\n },\n computedPaddingLeft () {\n return !this.app || !this.inset\n ? 0\n : this.$vuetify.application.left\n },\n computedPaddingRight () {\n return !this.app || !this.inset\n ? 0\n : this.$vuetify.application.right\n },\n styles () {\n const styles = {\n height: isNaN(this.height) ? this.height : `${this.height}px`\n }\n\n if (this.computedPaddingLeft) {\n styles.paddingLeft = `${this.computedPaddingLeft}px`\n }\n\n if (this.computedPaddingRight) {\n styles.paddingRight = `${this.computedPaddingRight}px`\n }\n\n if (this.computedMarginBottom) {\n styles.marginBottom = `${this.computedMarginBottom}px`\n }\n\n return styles\n }\n },\n\n methods: {\n /**\n * Update the application layout\n *\n * @return {number}\n */\n updateApplication () {\n const height = parseInt(this.height)\n\n return isNaN(height)\n ? this.$el ? this.$el.clientHeight : 0\n : height\n }\n },\n\n render (h) {\n const data = this.setBackgroundColor(this.color, {\n staticClass: 'v-footer',\n 'class': {\n 'v-footer--absolute': this.absolute,\n 'v-footer--fixed': !this.absolute && (this.app || this.fixed),\n 'v-footer--inset': this.inset,\n ...this.themeClasses\n },\n style: this.styles,\n ref: 'content'\n })\n\n return h('footer', data, this.$slots.default)\n }\n}\n"],"sourceRoot":""}
+16
View File
@@ -0,0 +1,16 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.VFooter = undefined;
var _VFooter = require('./VFooter');
var _VFooter2 = _interopRequireDefault(_VFooter);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.VFooter = _VFooter2.default;
exports.default = _VFooter2.default;
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/VFooter/index.js"],"names":[],"mappings":";;;;;;;;;;;;;QAES,O,GAAA,iB;kBACM,iB","sourcesContent":["import VFooter from './VFooter'\n\nexport { VFooter }\nexport default VFooter\n"],"sourceRoot":""}