This commit is contained in:
2022-07-21 03:28:35 +00:00
parent d7c883d6df
commit 51b34b0e1d
30103 changed files with 4152204 additions and 23 deletions
+76
View File
@@ -0,0 +1,76 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
require("../../../src/components/VSystemBar/VSystemBar.sass");
var _applicationable = _interopRequireDefault(require("../../mixins/applicationable"));
var _colorable = _interopRequireDefault(require("../../mixins/colorable"));
var _themeable = _interopRequireDefault(require("../../mixins/themeable"));
var _mixins = _interopRequireDefault(require("../../util/mixins"));
var _helpers = require("../../util/helpers");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var _default = (0, _mixins.default)((0, _applicationable.default)('bar', ['height', 'window']), _colorable.default, _themeable.default
/* @vue/component */
).extend({
name: 'v-system-bar',
props: {
height: [Number, String],
lightsOut: Boolean,
window: Boolean
},
computed: {
classes: function classes() {
return _objectSpread({
'v-system-bar--lights-out': this.lightsOut,
'v-system-bar--absolute': this.absolute,
'v-system-bar--fixed': !this.absolute && (this.app || this.fixed),
'v-system-bar--window': this.window
}, this.themeClasses);
},
computedHeight: function computedHeight() {
if (this.height) {
return isNaN(parseInt(this.height)) ? this.height : parseInt(this.height);
}
return this.window ? 32 : 24;
},
styles: function styles() {
return {
height: (0, _helpers.convertToUnit)(this.computedHeight)
};
}
},
methods: {
updateApplication: function updateApplication() {
return this.$el ? this.$el.clientHeight : this.computedHeight;
}
},
render: function render(h) {
var data = {
staticClass: 'v-system-bar',
class: this.classes,
style: this.styles,
on: this.$listeners
};
return h('div', this.setBackgroundColor(this.color, data), (0, _helpers.getSlot)(this));
}
});
exports.default = _default;
//# sourceMappingURL=VSystemBar.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/VSystemBar/VSystemBar.ts"],"names":[],"mappings":";;;;;;;AACA;;AAGA;;AACA;;AACA;;AAGA;;AACA;;;;;;;;;;eAKe,qBACb,8BAAgB,KAAhB,EAAuB,CACrB,QADqB,EAErB,QAFqB,CAAvB,CADa,EAKb,kBALa,EAMb;AACF;AAPe,EAQb,MARa,CAQN;AACP,EAAA,IAAI,EAAE,cADC;AAGP,EAAA,KAAK,EAAE;AACL,IAAA,MAAM,EAAE,CAAC,MAAD,EAAS,MAAT,CADH;AAEL,IAAA,SAAS,EAAE,OAFN;AAGL,IAAA,MAAM,EAAE;AAHH,GAHA;AASP,EAAA,QAAQ,EAAE;AACR,IAAA,OADQ,qBACD;AACL;AACE,oCAA4B,KAAK,SADnC;AAEE,kCAA0B,KAAK,QAFjC;AAGE,+BAAuB,CAAC,KAAK,QAAN,KAAmB,KAAK,GAAL,IAAY,KAAK,KAApC,CAHzB;AAIE,gCAAwB,KAAK;AAJ/B,SAKK,KAAK,YALV;AAOD,KATO;AAUR,IAAA,cAVQ,4BAUM;AACZ,UAAI,KAAK,MAAT,EAAiB;AACf,eAAO,KAAK,CAAC,QAAQ,CAAC,KAAK,MAAN,CAAT,CAAL,GAA+B,KAAK,MAApC,GAA6C,QAAQ,CAAC,KAAK,MAAN,CAA5D;AACD;;AAED,aAAO,KAAK,MAAL,GAAc,EAAd,GAAmB,EAA1B;AACD,KAhBO;AAiBR,IAAA,MAjBQ,oBAiBF;AACJ,aAAO;AACL,QAAA,MAAM,EAAE,4BAAc,KAAK,cAAnB;AADH,OAAP;AAGD;AArBO,GATH;AAiCP,EAAA,OAAO,EAAE;AACP,IAAA,iBADO,+BACU;AACf,aAAO,KAAK,GAAL,GACH,KAAK,GAAL,CAAS,YADN,GAEH,KAAK,cAFT;AAGD;AALM,GAjCF;AAyCP,EAAA,MAzCO,kBAyCC,CAzCD,EAyCE;AACP,QAAM,IAAI,GAAG;AACX,MAAA,WAAW,EAAE,cADF;AAEX,MAAA,KAAK,EAAE,KAAK,OAFD;AAGX,MAAA,KAAK,EAAE,KAAK,MAHD;AAIX,MAAA,EAAE,EAAE,KAAK;AAJE,KAAb;AAOA,WAAO,CAAC,CAAC,KAAD,EAAQ,KAAK,kBAAL,CAAwB,KAAK,KAA7B,EAAoC,IAApC,CAAR,EAAmD,sBAAQ,IAAR,CAAnD,CAAR;AACD;AAlDM,CARM,C","sourcesContent":["// Styles\nimport './VSystemBar.sass'\n\n// Mixins\nimport Applicationable from '../../mixins/applicationable'\nimport Colorable from '../../mixins/colorable'\nimport Themeable from '../../mixins/themeable'\n\n// Utilities\nimport mixins from '../../util/mixins'\nimport { convertToUnit, getSlot } from '../../util/helpers'\n\n// Types\nimport { VNode } from 'vue/types'\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: [Number, String],\n lightsOut: 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--window': this.window,\n ...this.themeClasses,\n }\n },\n computedHeight (): number | string {\n if (this.height) {\n return isNaN(parseInt(this.height)) ? this.height : parseInt(this.height)\n }\n\n return this.window ? 32 : 24\n },\n styles (): object {\n return {\n height: convertToUnit(this.computedHeight),\n }\n },\n },\n\n methods: {\n updateApplication () {\n return this.$el\n ? this.$el.clientHeight\n : this.computedHeight\n },\n },\n\n render (h): VNode {\n const data = {\n staticClass: 'v-system-bar',\n class: this.classes,\n style: this.styles,\n on: this.$listeners,\n }\n\n return h('div', this.setBackgroundColor(this.color, data), getSlot(this))\n },\n})\n"],"sourceRoot":"","file":"VSystemBar.js"}
+20
View File
@@ -0,0 +1,20 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "VSystemBar", {
enumerable: true,
get: function get() {
return _VSystemBar.default;
}
});
exports.default = void 0;
var _VSystemBar = _interopRequireDefault(require("./VSystemBar"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _default = _VSystemBar.default;
exports.default = _default;
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/VSystemBar/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;eAGe,mB","sourcesContent":["import VSystemBar from './VSystemBar'\n\nexport { VSystemBar }\nexport default VSystemBar\n"],"sourceRoot":"","file":"index.js"}