拿掉 build files

This commit is contained in:
2022-07-18 16:33:23 +08:00
parent 41e2287bcb
commit 3707f158a3
31953 changed files with 0 additions and 4411796 deletions
-87
View File
@@ -1,87 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Application = void 0;
var _service = require("../service");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
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; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
var Application =
/*#__PURE__*/
function (_Service) {
_inherits(Application, _Service);
function Application() {
var _this;
_classCallCheck(this, Application);
_this = _possibleConstructorReturn(this, _getPrototypeOf(Application).apply(this, arguments));
_this.bar = 0;
_this.top = 0;
_this.left = 0;
_this.insetFooter = 0;
_this.right = 0;
_this.bottom = 0;
_this.footer = 0;
_this.application = {
bar: {},
top: {},
left: {},
insetFooter: {},
right: {},
bottom: {},
footer: {}
};
return _this;
}
_createClass(Application, [{
key: "register",
value: function register(uid, location, size) {
this.application[location] = _defineProperty({}, uid, size);
this.update(location);
}
}, {
key: "unregister",
value: function unregister(uid, location) {
if (this.application[location][uid] == null) return;
delete this.application[location][uid];
this.update(location);
}
}, {
key: "update",
value: function update(location) {
this[location] = Object.values(this.application[location]).reduce(function (acc, cur) {
return acc + cur;
}, 0);
}
}]);
return Application;
}(_service.Service);
exports.Application = Application;
Application.property = 'application';
//# sourceMappingURL=index.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../src/services/application/index.ts"],"names":[],"mappings":";;;;;;;AACA;;;;;;;;;;;;;;;;;;;;;;IAKa,W;;;;;AAAb,yBAAA;AAAA;;AAAA;;;AAGE,UAAA,GAAA,GAAM,CAAN;AAEA,UAAA,GAAA,GAAM,CAAN;AAEA,UAAA,IAAA,GAAO,CAAP;AAEA,UAAA,WAAA,GAAc,CAAd;AAEA,UAAA,KAAA,GAAQ,CAAR;AAEA,UAAA,MAAA,GAAS,CAAT;AAEA,UAAA,MAAA,GAAS,CAAT;AAEA,UAAA,WAAA,GAA4C;AAC1C,MAAA,GAAG,EAAE,EADqC;AAE1C,MAAA,GAAG,EAAE,EAFqC;AAG1C,MAAA,IAAI,EAAE,EAHoC;AAI1C,MAAA,WAAW,EAAE,EAJ6B;AAK1C,MAAA,KAAK,EAAE,EALmC;AAM1C,MAAA,MAAM,EAAE,EANkC;AAO1C,MAAA,MAAM,EAAE;AAPkC,KAA5C;AAjBF;AAgDC;;;;6BApBG,G,EACA,Q,EACA,I,EAAY;AAEZ,WAAK,WAAL,CAAiB,QAAjB,wBAAgC,GAAhC,EAAsC,IAAtC;AAEA,WAAK,MAAL,CAAY,QAAZ;AACD;;;+BAEW,G,EAAa,Q,EAAoB;AAC3C,UAAI,KAAK,WAAL,CAAiB,QAAjB,EAA2B,GAA3B,KAAmC,IAAvC,EAA6C;AAE7C,aAAO,KAAK,WAAL,CAAiB,QAAjB,EAA2B,GAA3B,CAAP;AACA,WAAK,MAAL,CAAY,QAAZ;AACD;;;2BAEO,Q,EAAoB;AAC1B,WAAK,QAAL,IAAiB,MAAM,CAAC,MAAP,CAAc,KAAK,WAAL,CAAiB,QAAjB,CAAd,EACd,MADc,CACP,UAAC,GAAD,EAAc,GAAd;AAAA,eAAuC,GAAG,GAAG,GAA7C;AAAA,OADO,EAC4C,CAD5C,CAAjB;AAED;;;;EA/C8B,gB;;;AACxB,WAAA,CAAA,QAAA,GAA0B,aAA1B","sourcesContent":["// Extensions\nimport { Service } from '../service'\n\n// Types\nimport { TargetPropValues, TargetProp, Application as IApplication } from 'vuetify/types/services/application'\n\nexport class Application extends Service implements IApplication {\n static property: 'application' = 'application'\n\n bar = 0\n\n top = 0\n\n left = 0\n\n insetFooter = 0\n\n right = 0\n\n bottom = 0\n\n footer = 0\n\n application: Dictionary<TargetPropValues> = {\n bar: {},\n top: {},\n left: {},\n insetFooter: {},\n right: {},\n bottom: {},\n footer: {},\n }\n\n register (\n uid: number,\n location: TargetProp,\n size: number\n ) {\n this.application[location] = { [uid]: size }\n\n this.update(location)\n }\n\n unregister (uid: number, location: TargetProp) {\n if (this.application[location][uid] == null) return\n\n delete this.application[location][uid]\n this.update(location)\n }\n\n update (location: TargetProp) {\n this[location] = Object.values(this.application[location])\n .reduce((acc: number, cur: number): number => (acc + cur), 0)\n }\n}\n"],"sourceRoot":"","file":"index.js"}
-191
View File
@@ -1,191 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Breakpoint = void 0;
var _service = require("../service");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
var Breakpoint =
/*#__PURE__*/
function (_Service) {
_inherits(Breakpoint, _Service);
function Breakpoint(preset) {
var _this;
_classCallCheck(this, Breakpoint);
_this = _possibleConstructorReturn(this, _getPrototypeOf(Breakpoint).call(this)); // Public
_this.xs = false;
_this.sm = false;
_this.md = false;
_this.lg = false;
_this.xl = false;
_this.xsOnly = false;
_this.smOnly = false;
_this.smAndDown = false;
_this.smAndUp = false;
_this.mdOnly = false;
_this.mdAndDown = false;
_this.mdAndUp = false;
_this.lgOnly = false;
_this.lgAndDown = false;
_this.lgAndUp = false;
_this.xlOnly = false; // Value is xs to match v2.x functionality
_this.name = 'xs';
_this.height = 0;
_this.width = 0; // TODO: Add functionality to detect this dynamically in v3
// Value is true to match v2.x functionality
_this.mobile = true;
_this.resizeTimeout = 0;
var _preset$Breakpoint$pr = preset[Breakpoint.property],
mobileBreakpoint = _preset$Breakpoint$pr.mobileBreakpoint,
scrollBarWidth = _preset$Breakpoint$pr.scrollBarWidth,
thresholds = _preset$Breakpoint$pr.thresholds;
_this.mobileBreakpoint = mobileBreakpoint;
_this.scrollBarWidth = scrollBarWidth;
_this.thresholds = thresholds;
_this.init();
return _this;
}
_createClass(Breakpoint, [{
key: "init",
value: function init() {
/* istanbul ignore if */
if (typeof window === 'undefined') return;
window.addEventListener('resize', this.onResize.bind(this), {
passive: true
});
this.update();
}
}, {
key: "onResize",
value: function onResize() {
clearTimeout(this.resizeTimeout); // Added debounce to match what
// v-resize used to do but was
// removed due to a memory leak
// https://github.com/vuetifyjs/vuetify/pull/2997
this.resizeTimeout = window.setTimeout(this.update.bind(this), 200);
}
/* eslint-disable-next-line max-statements */
}, {
key: "update",
value: function update() {
var height = this.getClientHeight();
var width = this.getClientWidth();
var xs = width < this.thresholds.xs;
var sm = width < this.thresholds.sm && !xs;
var md = width < this.thresholds.md - this.scrollBarWidth && !(sm || xs);
var lg = width < this.thresholds.lg - this.scrollBarWidth && !(md || sm || xs);
var xl = width >= this.thresholds.lg - this.scrollBarWidth;
this.height = height;
this.width = width;
this.xs = xs;
this.sm = sm;
this.md = md;
this.lg = lg;
this.xl = xl;
this.xsOnly = xs;
this.smOnly = sm;
this.smAndDown = (xs || sm) && !(md || lg || xl);
this.smAndUp = !xs && (sm || md || lg || xl);
this.mdOnly = md;
this.mdAndDown = (xs || sm || md) && !(lg || xl);
this.mdAndUp = !(xs || sm) && (md || lg || xl);
this.lgOnly = lg;
this.lgAndDown = (xs || sm || md || lg) && !xl;
this.lgAndUp = !(xs || sm || md) && (lg || xl);
this.xlOnly = xl;
switch (true) {
case xs:
this.name = 'xs';
break;
case sm:
this.name = 'sm';
break;
case md:
this.name = 'md';
break;
case lg:
this.name = 'lg';
break;
default:
this.name = 'xl';
break;
}
if (typeof this.mobileBreakpoint === 'number') {
this.mobile = width < parseInt(this.mobileBreakpoint, 10);
return;
}
var breakpoints = {
xs: 0,
sm: 1,
md: 2,
lg: 3,
xl: 4
};
var current = breakpoints[this.name];
var max = breakpoints[this.mobileBreakpoint];
this.mobile = current <= max;
} // Cross-browser support as described in:
// https://stackoverflow.com/questions/1248081
}, {
key: "getClientWidth",
value: function getClientWidth() {
/* istanbul ignore if */
if (typeof document === 'undefined') return 0; // SSR
return Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
}
}, {
key: "getClientHeight",
value: function getClientHeight() {
/* istanbul ignore if */
if (typeof document === 'undefined') return 0; // SSR
return Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
}
}]);
return Breakpoint;
}(_service.Service);
exports.Breakpoint = Breakpoint;
Breakpoint.property = 'breakpoint';
//# sourceMappingURL=index.js.map
File diff suppressed because one or more lines are too long
-98
View File
@@ -1,98 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.easeInOutQuint = exports.easeOutQuint = exports.easeInQuint = exports.easeInOutQuart = exports.easeOutQuart = exports.easeInQuart = exports.easeInOutCubic = exports.easeOutCubic = exports.easeInCubic = exports.easeInOutQuad = exports.easeOutQuad = exports.easeInQuad = exports.linear = void 0;
// linear
var linear = function linear(t) {
return t;
}; // accelerating from zero velocity
exports.linear = linear;
var easeInQuad = function easeInQuad(t) {
return Math.pow(t, 2);
}; // decelerating to zero velocity
exports.easeInQuad = easeInQuad;
var easeOutQuad = function easeOutQuad(t) {
return t * (2 - t);
}; // acceleration until halfway, then deceleration
exports.easeOutQuad = easeOutQuad;
var easeInOutQuad = function easeInOutQuad(t) {
return t < 0.5 ? 2 * Math.pow(t, 2) : -1 + (4 - 2 * t) * t;
}; // accelerating from zero velocity
exports.easeInOutQuad = easeInOutQuad;
var easeInCubic = function easeInCubic(t) {
return Math.pow(t, 3);
}; // decelerating to zero velocity
exports.easeInCubic = easeInCubic;
var easeOutCubic = function easeOutCubic(t) {
return Math.pow(--t, 3) + 1;
}; // acceleration until halfway, then deceleration
exports.easeOutCubic = easeOutCubic;
var easeInOutCubic = function easeInOutCubic(t) {
return t < 0.5 ? 4 * Math.pow(t, 3) : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;
}; // accelerating from zero velocity
exports.easeInOutCubic = easeInOutCubic;
var easeInQuart = function easeInQuart(t) {
return Math.pow(t, 4);
}; // decelerating to zero velocity
exports.easeInQuart = easeInQuart;
var easeOutQuart = function easeOutQuart(t) {
return 1 - Math.pow(--t, 4);
}; // acceleration until halfway, then deceleration
exports.easeOutQuart = easeOutQuart;
var easeInOutQuart = function easeInOutQuart(t) {
return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t;
}; // accelerating from zero velocity
exports.easeInOutQuart = easeInOutQuart;
var easeInQuint = function easeInQuint(t) {
return Math.pow(t, 5);
}; // decelerating to zero velocity
exports.easeInQuint = easeInQuint;
var easeOutQuint = function easeOutQuint(t) {
return 1 + Math.pow(--t, 5);
}; // acceleration until halfway, then deceleration
exports.easeOutQuint = easeOutQuint;
var easeInOutQuint = function easeInOutQuint(t) {
return t < 0.5 ? 16 * Math.pow(t, 5) : 1 + 16 * Math.pow(--t, 5);
};
exports.easeInOutQuint = easeInOutQuint;
//# sourceMappingURL=easing-patterns.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../src/services/goto/easing-patterns.ts"],"names":[],"mappings":";;;;;;;AAEA;AACO,IAAM,MAAM,GAAG,SAAT,MAAS,CAAC,CAAD;AAAA,SAAe,CAAf;AAAA,CAAf,C,CACP;;;;;AACO,IAAM,UAAU,GAAG,SAAb,UAAa,CAAC,CAAD;AAAA,kBAAe,CAAf,EAAoB,CAApB;AAAA,CAAnB,C,CACP;;;;;AACO,IAAM,WAAW,GAAG,SAAd,WAAc,CAAC,CAAD;AAAA,SAAe,CAAC,IAAI,IAAI,CAAR,CAAhB;AAAA,CAApB,C,CACP;;;;;AACO,IAAM,aAAa,GAAG,SAAhB,aAAgB,CAAC,CAAD;AAAA,SAAgB,CAAC,GAAG,GAAJ,GAAU,aAAI,CAAJ,EAAS,CAAT,CAAV,GAAuB,CAAC,CAAD,GAAK,CAAC,IAAI,IAAI,CAAT,IAAc,CAA1D;AAAA,CAAtB,C,CACP;;;;;AACO,IAAM,WAAW,GAAG,SAAd,WAAc,CAAC,CAAD;AAAA,kBAAe,CAAf,EAAoB,CAApB;AAAA,CAApB,C,CACP;;;;;AACO,IAAM,YAAY,GAAG,SAAf,YAAe,CAAC,CAAD;AAAA,SAAe,WAAE,CAAF,EAAO,CAAP,IAAW,CAA1B;AAAA,CAArB,C,CACP;;;;;AACO,IAAM,cAAc,GAAG,SAAjB,cAAiB,CAAC,CAAD;AAAA,SAAe,CAAC,GAAG,GAAJ,GAAU,aAAI,CAAJ,EAAS,CAAT,CAAV,GAAuB,CAAC,CAAC,GAAG,CAAL,KAAW,IAAI,CAAJ,GAAQ,CAAnB,KAAyB,IAAI,CAAJ,GAAQ,CAAjC,IAAsC,CAA5E;AAAA,CAAvB,C,CACP;;;;;AACO,IAAM,WAAW,GAAG,SAAd,WAAc,CAAC,CAAD;AAAA,kBAAe,CAAf,EAAoB,CAApB;AAAA,CAApB,C,CACP;;;;;AACO,IAAM,YAAY,GAAG,SAAf,YAAe,CAAC,CAAD;AAAA,SAAe,aAAI,EAAE,CAAN,EAAW,CAAX,CAAf;AAAA,CAArB,C,CACP;;;;;AACO,IAAM,cAAc,GAAG,SAAjB,cAAiB,CAAC,CAAD;AAAA,SAAgB,CAAC,GAAG,GAAJ,GAAU,IAAI,CAAJ,GAAQ,CAAR,GAAY,CAAZ,GAAgB,CAA1B,GAA8B,IAAI,IAAI,EAAE,CAAN,GAAU,CAAV,GAAc,CAAd,GAAkB,CAApE;AAAA,CAAvB,C,CACP;;;;;AACO,IAAM,WAAW,GAAG,SAAd,WAAc,CAAC,CAAD;AAAA,kBAAe,CAAf,EAAoB,CAApB;AAAA,CAApB,C,CACP;;;;;AACO,IAAM,YAAY,GAAG,SAAf,YAAe,CAAC,CAAD;AAAA,SAAe,aAAI,EAAE,CAAN,EAAW,CAAX,CAAf;AAAA,CAArB,C,CACP;;;;;AACO,IAAM,cAAc,GAAG,SAAjB,cAAiB,CAAC,CAAD;AAAA,SAAe,CAAC,GAAG,GAAJ,GAAU,cAAK,CAAL,EAAU,CAAV,CAAV,GAAwB,IAAI,cAAK,EAAE,CAAP,EAAY,CAAZ,CAA3C;AAAA,CAAvB","sourcesContent":["export type EasingFunction = (t: number) => number\n\n// linear\nexport const linear = (t: number) => t\n// accelerating from zero velocity\nexport const easeInQuad = (t: number) => t ** 2\n// decelerating to zero velocity\nexport const easeOutQuad = (t: number) => t * (2 - t)\n// acceleration until halfway, then deceleration\nexport const easeInOutQuad = (t: number) => (t < 0.5 ? 2 * t ** 2 : -1 + (4 - 2 * t) * t)\n// accelerating from zero velocity\nexport const easeInCubic = (t: number) => t ** 3\n// decelerating to zero velocity\nexport const easeOutCubic = (t: number) => --t ** 3 + 1\n// acceleration until halfway, then deceleration\nexport const easeInOutCubic = (t: number) => t < 0.5 ? 4 * t ** 3 : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1\n// accelerating from zero velocity\nexport const easeInQuart = (t: number) => t ** 4\n// decelerating to zero velocity\nexport const easeOutQuart = (t: number) => 1 - --t ** 4\n// acceleration until halfway, then deceleration\nexport const easeInOutQuart = (t: number) => (t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t)\n// accelerating from zero velocity\nexport const easeInQuint = (t: number) => t ** 5\n// decelerating to zero velocity\nexport const easeOutQuint = (t: number) => 1 + --t ** 5\n// acceleration until halfway, then deceleration\nexport const easeInOutQuint = (t: number) => t < 0.5 ? 16 * t ** 5 : 1 + 16 * --t ** 5\n"],"sourceRoot":"","file":"easing-patterns.js"}
-121
View File
@@ -1,121 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = goTo;
exports.Goto = void 0;
var _service = require("../service");
var easingPatterns = _interopRequireWildcard(require("./easing-patterns"));
var _util = require("./util");
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
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; }
function goTo(_target) {
var _settings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var settings = _objectSpread({
container: document.scrollingElement || document.body || document.documentElement,
duration: 500,
offset: 0,
easing: 'easeInOutCubic',
appOffset: true
}, _settings);
var container = (0, _util.getContainer)(settings.container);
/* istanbul ignore else */
if (settings.appOffset && goTo.framework.application) {
var isDrawer = container.classList.contains('v-navigation-drawer');
var isClipped = container.classList.contains('v-navigation-drawer--clipped');
var _goTo$framework$appli = goTo.framework.application,
bar = _goTo$framework$appli.bar,
top = _goTo$framework$appli.top;
settings.offset += bar;
/* istanbul ignore else */
if (!isDrawer || isClipped) settings.offset += top;
}
var startTime = performance.now();
var targetLocation;
if (typeof _target === 'number') {
targetLocation = (0, _util.getOffset)(_target) - settings.offset;
} else {
targetLocation = (0, _util.getOffset)(_target) - (0, _util.getOffset)(container) - settings.offset;
}
var startLocation = container.scrollTop;
if (targetLocation === startLocation) return Promise.resolve(targetLocation);
var ease = typeof settings.easing === 'function' ? settings.easing : easingPatterns[settings.easing];
/* istanbul ignore else */
if (!ease) throw new TypeError("Easing function \"".concat(settings.easing, "\" not found.")); // Cannot be tested properly in jsdom
// tslint:disable-next-line:promise-must-complete
/* istanbul ignore next */
return new Promise(function (resolve) {
return requestAnimationFrame(function step(currentTime) {
var timeElapsed = currentTime - startTime;
var progress = Math.abs(settings.duration ? Math.min(timeElapsed / settings.duration, 1) : 1);
container.scrollTop = Math.floor(startLocation + (targetLocation - startLocation) * ease(progress));
var clientHeight = container === document.body ? document.documentElement.clientHeight : container.clientHeight;
if (progress === 1 || clientHeight + container.scrollTop === container.scrollHeight) {
return resolve(targetLocation);
}
requestAnimationFrame(step);
});
});
}
goTo.framework = {};
goTo.init = function () {};
var Goto =
/*#__PURE__*/
function (_Service) {
_inherits(Goto, _Service);
function Goto() {
var _this;
_classCallCheck(this, Goto);
_this = _possibleConstructorReturn(this, _getPrototypeOf(Goto).call(this));
return _possibleConstructorReturn(_this, goTo);
}
return Goto;
}(_service.Service);
exports.Goto = Goto;
Goto.property = 'goTo';
//# sourceMappingURL=index.js.map
File diff suppressed because one or more lines are too long
-52
View File
@@ -1,52 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getOffset = getOffset;
exports.getContainer = getContainer;
// Return target's cumulative offset from the top
function getOffset(target) {
if (typeof target === 'number') {
return target;
}
var el = $(target);
if (!el) {
throw typeof target === 'string' ? new Error("Target element \"".concat(target, "\" not found.")) : new TypeError("Target must be a Number/Selector/HTMLElement/VueComponent, received ".concat(type(target), " instead."));
}
var totalOffset = 0;
while (el) {
totalOffset += el.offsetTop;
el = el.offsetParent;
}
return totalOffset;
}
function getContainer(container) {
var el = $(container);
if (el) return el;
throw typeof container === 'string' ? new Error("Container element \"".concat(container, "\" not found.")) : new TypeError("Container must be a Selector/HTMLElement/VueComponent, received ".concat(type(container), " instead."));
}
function type(el) {
return el == null ? el : el.constructor.name;
}
function $(el) {
if (typeof el === 'string') {
return document.querySelector(el);
} else if (el && el._isVue) {
return el.$el;
} else if (el instanceof HTMLElement) {
return el;
} else {
return null;
}
}
//# sourceMappingURL=util.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../src/services/goto/util.ts"],"names":[],"mappings":";;;;;;;;AAEA;AACM,SAAU,SAAV,CAAqB,MAArB,EAAgC;AACpC,MAAI,OAAO,MAAP,KAAkB,QAAtB,EAAgC;AAC9B,WAAO,MAAP;AACD;;AAED,MAAI,EAAE,GAAG,CAAC,CAAC,MAAD,CAAV;;AACA,MAAI,CAAC,EAAL,EAAS;AACP,UAAM,OAAO,MAAP,KAAkB,QAAlB,GACF,IAAI,KAAJ,4BAA6B,MAA7B,mBADE,GAEF,IAAI,SAAJ,+EAAqF,IAAI,CAAC,MAAD,CAAzF,eAFJ;AAGD;;AAED,MAAI,WAAW,GAAG,CAAlB;;AACA,SAAO,EAAP,EAAW;AACT,IAAA,WAAW,IAAI,EAAE,CAAC,SAAlB;AACA,IAAA,EAAE,GAAG,EAAE,CAAC,YAAR;AACD;;AAED,SAAO,WAAP;AACD;;AAEK,SAAU,YAAV,CAAwB,SAAxB,EAAsC;AAC1C,MAAM,EAAE,GAAG,CAAC,CAAC,SAAD,CAAZ;AAEA,MAAI,EAAJ,EAAQ,OAAO,EAAP;AAER,QAAM,OAAO,SAAP,KAAqB,QAArB,GACF,IAAI,KAAJ,+BAAgC,SAAhC,mBADE,GAEF,IAAI,SAAJ,2EAAiF,IAAI,CAAC,SAAD,CAArF,eAFJ;AAGD;;AAED,SAAS,IAAT,CAAe,EAAf,EAAsB;AACpB,SAAO,EAAE,IAAI,IAAN,GAAa,EAAb,GAAkB,EAAE,CAAC,WAAH,CAAe,IAAxC;AACD;;AAED,SAAS,CAAT,CAAY,EAAZ,EAAmB;AACjB,MAAI,OAAO,EAAP,KAAc,QAAlB,EAA4B;AAC1B,WAAO,QAAQ,CAAC,aAAT,CAAoC,EAApC,CAAP;AACD,GAFD,MAEO,IAAI,EAAE,IAAI,EAAE,CAAC,MAAb,EAAqB;AAC1B,WAAQ,EAAU,CAAC,GAAnB;AACD,GAFM,MAEA,IAAI,EAAE,YAAY,WAAlB,EAA+B;AACpC,WAAO,EAAP;AACD,GAFM,MAEA;AACL,WAAO,IAAP;AACD;AACF","sourcesContent":["import Vue from 'vue'\n\n// Return target's cumulative offset from the top\nexport function getOffset (target: any): number {\n if (typeof target === 'number') {\n return target\n }\n\n let el = $(target)\n if (!el) {\n throw typeof target === 'string'\n ? new Error(`Target element \"${target}\" not found.`)\n : new TypeError(`Target must be a Number/Selector/HTMLElement/VueComponent, received ${type(target)} instead.`)\n }\n\n let totalOffset = 0\n while (el) {\n totalOffset += el.offsetTop\n el = el.offsetParent as HTMLElement\n }\n\n return totalOffset\n}\n\nexport function getContainer (container: any): HTMLElement {\n const el = $(container)\n\n if (el) return el\n\n throw typeof container === 'string'\n ? new Error(`Container element \"${container}\" not found.`)\n : new TypeError(`Container must be a Selector/HTMLElement/VueComponent, received ${type(container)} instead.`)\n}\n\nfunction type (el: any) {\n return el == null ? el : el.constructor.name\n}\n\nfunction $ (el: any): HTMLElement | null {\n if (typeof el === 'string') {\n return document.querySelector<HTMLElement>(el)\n } else if (el && el._isVue) {\n return (el as Vue).$el as HTMLElement\n } else if (el instanceof HTMLElement) {\n return el\n } else {\n return null\n }\n}\n"],"sourceRoot":"","file":"util.js"}
-54
View File
@@ -1,54 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Icons = void 0;
var _service = require("../service");
var _helpers = require("../../util/helpers");
var _presets = _interopRequireDefault(require("./presets"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
var Icons =
/*#__PURE__*/
function (_Service) {
_inherits(Icons, _Service);
function Icons(preset) {
var _this;
_classCallCheck(this, Icons);
_this = _possibleConstructorReturn(this, _getPrototypeOf(Icons).call(this));
var _preset$Icons$propert = preset[Icons.property],
iconfont = _preset$Icons$propert.iconfont,
values = _preset$Icons$propert.values;
_this.iconfont = iconfont;
_this.values = (0, _helpers.mergeDeep)(_presets.default[iconfont], values);
return _this;
}
return Icons;
}(_service.Service);
exports.Icons = Icons;
Icons.property = 'icons';
//# sourceMappingURL=index.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../src/services/icons/index.ts"],"names":[],"mappings":";;;;;;;AACA;;AAGA;;AAOA;;;;;;;;;;;;;;;;;;IAEa,K;;;;;AAOX,iBAAa,MAAb,EAAkC;AAAA;;AAAA;;AAChC;AADgC,gCAM5B,MAAM,CAAC,KAAK,CAAC,QAAP,CANsB;AAAA,QAI9B,QAJ8B,yBAI9B,QAJ8B;AAAA,QAK9B,MAL8B,yBAK9B,MAL8B;AAQhC,UAAK,QAAL,GAAgB,QAAhB;AACA,UAAK,MAAL,GAAc,wBACZ,iBAAQ,QAAR,CADY,EAEZ,MAFY,CAAd;AATgC;AAajC;;;EApBwB,gB;;;AAClB,KAAA,CAAA,QAAA,GAAoB,OAApB","sourcesContent":["// Extensions\nimport { Service } from '../service'\n\n// Utilities\nimport { mergeDeep } from '../../util/helpers'\n\n// Types\nimport { VuetifyPreset } from 'vuetify/types/services/presets'\nimport { Icons as IIcons } from 'vuetify/types/services/icons'\n\n// Presets\nimport presets from './presets'\n\nexport class Icons extends Service implements IIcons {\n static property: 'icons' = 'icons'\n\n public iconfont: IIcons['iconfont']\n\n public values: IIcons['values']\n\n constructor (preset: VuetifyPreset) {\n super()\n\n const {\n iconfont,\n values,\n } = preset[Icons.property]\n\n this.iconfont = iconfont\n this.values = mergeDeep(\n presets[iconfont],\n values\n ) as IIcons['values']\n }\n}\n"],"sourceRoot":"","file":"index.js"}
-31
View File
@@ -1,31 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.convertToComponentDeclarations = convertToComponentDeclarations;
exports.default = void 0;
var _fa = _interopRequireDefault(require("./fa"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function convertToComponentDeclarations(component, iconSet) {
var result = {};
for (var key in iconSet) {
result[key] = {
component: component,
props: {
icon: iconSet[key].split(' fa-')
}
};
}
return result;
}
var _default = convertToComponentDeclarations('font-awesome-icon', _fa.default);
exports.default = _default;
//# sourceMappingURL=fa-svg.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../../src/services/icons/presets/fa-svg.ts"],"names":[],"mappings":";;;;;;;;AAEA;;;;AAEM,SAAU,8BAAV,CACJ,SADI,EAEJ,OAFI,EAEiB;AAErB,MAAM,MAAM,GAA0B,EAAtC;;AAEA,OAAK,IAAM,GAAX,IAAkB,OAAlB,EAA2B;AACzB,IAAA,MAAM,CAAC,GAAD,CAAN,GAAc;AACZ,MAAA,SAAS,EAAT,SADY;AAEZ,MAAA,KAAK,EAAE;AACL,QAAA,IAAI,EAAG,OAAO,CAAC,GAAD,CAAP,CAAwB,KAAxB,CAA8B,MAA9B;AADF;AAFK,KAAd;AAMD;;AAED,SAAO,MAAP;AACD;;eAEc,8BAA8B,CAAC,mBAAD,EAAsB,WAAtB,C","sourcesContent":["import { VuetifyIcons } from 'vuetify/types/services/icons'\nimport { Component } from 'vue'\nimport icons from './fa'\n\nexport function convertToComponentDeclarations (\n component: Component | string,\n iconSet: VuetifyIcons,\n) {\n const result: Partial<VuetifyIcons> = {}\n\n for (const key in iconSet) {\n result[key] = {\n component,\n props: {\n icon: (iconSet[key] as string).split(' fa-'),\n },\n }\n }\n\n return result as VuetifyIcons\n}\n\nexport default convertToComponentDeclarations('font-awesome-icon', icons)\n"],"sourceRoot":"","file":"fa-svg.js"}
-44
View File
@@ -1,44 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var icons = {
complete: 'fas fa-check',
cancel: 'fas fa-times-circle',
close: 'fas fa-times',
delete: 'fas fa-times-circle',
clear: 'fas fa-times-circle',
success: 'fas fa-check-circle',
info: 'fas fa-info-circle',
warning: 'fas fa-exclamation',
error: 'fas fa-exclamation-triangle',
prev: 'fas fa-chevron-left',
next: 'fas fa-chevron-right',
checkboxOn: 'fas fa-check-square',
checkboxOff: 'far fa-square',
checkboxIndeterminate: 'fas fa-minus-square',
delimiter: 'fas fa-circle',
sort: 'fas fa-sort-up',
expand: 'fas fa-chevron-down',
menu: 'fas fa-bars',
subgroup: 'fas fa-caret-down',
dropdown: 'fas fa-caret-down',
radioOn: 'far fa-dot-circle',
radioOff: 'far fa-circle',
edit: 'fas fa-edit',
ratingEmpty: 'far fa-star',
ratingFull: 'fas fa-star',
ratingHalf: 'fas fa-star-half',
loading: 'fas fa-sync',
first: 'fas fa-step-backward',
last: 'fas fa-step-forward',
unfold: 'fas fa-arrows-alt-v',
file: 'fas fa-paperclip',
plus: 'fas fa-plus',
minus: 'fas fa-minus'
};
var _default = icons;
exports.default = _default;
//# sourceMappingURL=fa.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../../src/services/icons/presets/fa.ts"],"names":[],"mappings":";;;;;;AAEA,IAAM,KAAK,GAAiB;AAC1B,EAAA,QAAQ,EAAE,cADgB;AAE1B,EAAA,MAAM,EAAE,qBAFkB;AAG1B,EAAA,KAAK,EAAE,cAHmB;AAI1B,EAAA,MAAM,EAAE,qBAJkB;AAK1B,EAAA,KAAK,EAAE,qBALmB;AAM1B,EAAA,OAAO,EAAE,qBANiB;AAO1B,EAAA,IAAI,EAAE,oBAPoB;AAQ1B,EAAA,OAAO,EAAE,oBARiB;AAS1B,EAAA,KAAK,EAAE,6BATmB;AAU1B,EAAA,IAAI,EAAE,qBAVoB;AAW1B,EAAA,IAAI,EAAE,sBAXoB;AAY1B,EAAA,UAAU,EAAE,qBAZc;AAa1B,EAAA,WAAW,EAAE,eAba;AAc1B,EAAA,qBAAqB,EAAE,qBAdG;AAe1B,EAAA,SAAS,EAAE,eAfe;AAgB1B,EAAA,IAAI,EAAE,gBAhBoB;AAiB1B,EAAA,MAAM,EAAE,qBAjBkB;AAkB1B,EAAA,IAAI,EAAE,aAlBoB;AAmB1B,EAAA,QAAQ,EAAE,mBAnBgB;AAoB1B,EAAA,QAAQ,EAAE,mBApBgB;AAqB1B,EAAA,OAAO,EAAE,mBArBiB;AAsB1B,EAAA,QAAQ,EAAE,eAtBgB;AAuB1B,EAAA,IAAI,EAAE,aAvBoB;AAwB1B,EAAA,WAAW,EAAE,aAxBa;AAyB1B,EAAA,UAAU,EAAE,aAzBc;AA0B1B,EAAA,UAAU,EAAE,kBA1Bc;AA2B1B,EAAA,OAAO,EAAE,aA3BiB;AA4B1B,EAAA,KAAK,EAAE,sBA5BmB;AA6B1B,EAAA,IAAI,EAAE,qBA7BoB;AA8B1B,EAAA,MAAM,EAAE,qBA9BkB;AA+B1B,EAAA,IAAI,EAAE,kBA/BoB;AAgC1B,EAAA,IAAI,EAAE,aAhCoB;AAiC1B,EAAA,KAAK,EAAE;AAjCmB,CAA5B;eAoCe,K","sourcesContent":["import { VuetifyIcons } from 'vuetify/types/services/icons'\n\nconst icons: VuetifyIcons = {\n complete: 'fas fa-check',\n cancel: 'fas fa-times-circle',\n close: 'fas fa-times',\n delete: 'fas fa-times-circle', // delete (e.g. v-chip close)\n clear: 'fas fa-times-circle', // delete (e.g. v-chip close)\n success: 'fas fa-check-circle',\n info: 'fas fa-info-circle',\n warning: 'fas fa-exclamation',\n error: 'fas fa-exclamation-triangle',\n prev: 'fas fa-chevron-left',\n next: 'fas fa-chevron-right',\n checkboxOn: 'fas fa-check-square',\n checkboxOff: 'far fa-square', // note 'far'\n checkboxIndeterminate: 'fas fa-minus-square',\n delimiter: 'fas fa-circle', // for carousel\n sort: 'fas fa-sort-up',\n expand: 'fas fa-chevron-down',\n menu: 'fas fa-bars',\n subgroup: 'fas fa-caret-down',\n dropdown: 'fas fa-caret-down',\n radioOn: 'far fa-dot-circle',\n radioOff: 'far fa-circle',\n edit: 'fas fa-edit',\n ratingEmpty: 'far fa-star',\n ratingFull: 'fas fa-star',\n ratingHalf: 'fas fa-star-half',\n loading: 'fas fa-sync',\n first: 'fas fa-step-backward',\n last: 'fas fa-step-forward',\n unfold: 'fas fa-arrows-alt-v',\n file: 'fas fa-paperclip',\n plus: 'fas fa-plus',\n minus: 'fas fa-minus',\n}\n\nexport default icons\n"],"sourceRoot":"","file":"fa.js"}
-44
View File
@@ -1,44 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var icons = {
complete: 'fa fa-check',
cancel: 'fa fa-times-circle',
close: 'fa fa-times',
delete: 'fa fa-times-circle',
clear: 'fa fa-times-circle',
success: 'fa fa-check-circle',
info: 'fa fa-info-circle',
warning: 'fa fa-exclamation',
error: 'fa fa-exclamation-triangle',
prev: 'fa fa-chevron-left',
next: 'fa fa-chevron-right',
checkboxOn: 'fa fa-check-square',
checkboxOff: 'fa fa-square-o',
checkboxIndeterminate: 'fa fa-minus-square',
delimiter: 'fa fa-circle',
sort: 'fa fa-sort-up',
expand: 'fa fa-chevron-down',
menu: 'fa fa-bars',
subgroup: 'fa fa-caret-down',
dropdown: 'fa fa-caret-down',
radioOn: 'fa fa-dot-circle-o',
radioOff: 'fa fa-circle-o',
edit: 'fa fa-pencil',
ratingEmpty: 'fa fa-star-o',
ratingFull: 'fa fa-star',
ratingHalf: 'fa fa-star-half-o',
loading: 'fa fa-refresh',
first: 'fa fa-step-backward',
last: 'fa fa-step-forward',
unfold: 'fa fa-angle-double-down',
file: 'fa fa-paperclip',
plus: 'fa fa-plus',
minus: 'fa fa-minus'
};
var _default = icons;
exports.default = _default;
//# sourceMappingURL=fa4.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../../src/services/icons/presets/fa4.ts"],"names":[],"mappings":";;;;;;AAEA,IAAM,KAAK,GAAiB;AAC1B,EAAA,QAAQ,EAAE,aADgB;AAE1B,EAAA,MAAM,EAAE,oBAFkB;AAG1B,EAAA,KAAK,EAAE,aAHmB;AAI1B,EAAA,MAAM,EAAE,oBAJkB;AAK1B,EAAA,KAAK,EAAE,oBALmB;AAM1B,EAAA,OAAO,EAAE,oBANiB;AAO1B,EAAA,IAAI,EAAE,mBAPoB;AAQ1B,EAAA,OAAO,EAAE,mBARiB;AAS1B,EAAA,KAAK,EAAE,4BATmB;AAU1B,EAAA,IAAI,EAAE,oBAVoB;AAW1B,EAAA,IAAI,EAAE,qBAXoB;AAY1B,EAAA,UAAU,EAAE,oBAZc;AAa1B,EAAA,WAAW,EAAE,gBAba;AAc1B,EAAA,qBAAqB,EAAE,oBAdG;AAe1B,EAAA,SAAS,EAAE,cAfe;AAgB1B,EAAA,IAAI,EAAE,eAhBoB;AAiB1B,EAAA,MAAM,EAAE,oBAjBkB;AAkB1B,EAAA,IAAI,EAAE,YAlBoB;AAmB1B,EAAA,QAAQ,EAAE,kBAnBgB;AAoB1B,EAAA,QAAQ,EAAE,kBApBgB;AAqB1B,EAAA,OAAO,EAAE,oBArBiB;AAsB1B,EAAA,QAAQ,EAAE,gBAtBgB;AAuB1B,EAAA,IAAI,EAAE,cAvBoB;AAwB1B,EAAA,WAAW,EAAE,cAxBa;AAyB1B,EAAA,UAAU,EAAE,YAzBc;AA0B1B,EAAA,UAAU,EAAE,mBA1Bc;AA2B1B,EAAA,OAAO,EAAE,eA3BiB;AA4B1B,EAAA,KAAK,EAAE,qBA5BmB;AA6B1B,EAAA,IAAI,EAAE,oBA7BoB;AA8B1B,EAAA,MAAM,EAAE,yBA9BkB;AA+B1B,EAAA,IAAI,EAAE,iBA/BoB;AAgC1B,EAAA,IAAI,EAAE,YAhCoB;AAiC1B,EAAA,KAAK,EAAE;AAjCmB,CAA5B;eAoCe,K","sourcesContent":["import { VuetifyIcons } from 'vuetify/types/services/icons'\n\nconst icons: VuetifyIcons = {\n complete: 'fa fa-check',\n cancel: 'fa fa-times-circle',\n close: 'fa fa-times',\n delete: 'fa fa-times-circle', // delete (e.g. v-chip close)\n clear: 'fa fa-times-circle', // delete (e.g. v-chip close)\n success: 'fa fa-check-circle',\n info: 'fa fa-info-circle',\n warning: 'fa fa-exclamation',\n error: 'fa fa-exclamation-triangle',\n prev: 'fa fa-chevron-left',\n next: 'fa fa-chevron-right',\n checkboxOn: 'fa fa-check-square',\n checkboxOff: 'fa fa-square-o',\n checkboxIndeterminate: 'fa fa-minus-square',\n delimiter: 'fa fa-circle', // for carousel\n sort: 'fa fa-sort-up',\n expand: 'fa fa-chevron-down',\n menu: 'fa fa-bars',\n subgroup: 'fa fa-caret-down',\n dropdown: 'fa fa-caret-down',\n radioOn: 'fa fa-dot-circle-o',\n radioOff: 'fa fa-circle-o',\n edit: 'fa fa-pencil',\n ratingEmpty: 'fa fa-star-o',\n ratingFull: 'fa fa-star',\n ratingHalf: 'fa fa-star-half-o',\n loading: 'fa fa-refresh',\n first: 'fa fa-step-backward',\n last: 'fa fa-step-forward',\n unfold: 'fa fa-angle-double-down',\n file: 'fa fa-paperclip',\n plus: 'fa fa-plus',\n minus: 'fa fa-minus',\n}\n\nexport default icons\n"],"sourceRoot":"","file":"fa4.js"}
-32
View File
@@ -1,32 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _mdiSvg = _interopRequireDefault(require("./mdi-svg"));
var _md = _interopRequireDefault(require("./md"));
var _mdi = _interopRequireDefault(require("./mdi"));
var _fa = _interopRequireDefault(require("./fa"));
var _fa2 = _interopRequireDefault(require("./fa4"));
var _faSvg = _interopRequireDefault(require("./fa-svg"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _default = Object.freeze({
mdiSvg: _mdiSvg.default,
md: _md.default,
mdi: _mdi.default,
fa: _fa.default,
fa4: _fa2.default,
faSvg: _faSvg.default
});
exports.default = _default;
//# sourceMappingURL=index.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../../src/services/icons/presets/index.ts"],"names":[],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;eAEe,MAAM,CAAC,MAAP,CAAc;AAC3B,EAAA,MAAM,EAAN,eAD2B;AAE3B,EAAA,EAAE,EAAF,WAF2B;AAG3B,EAAA,GAAG,EAAH,YAH2B;AAI3B,EAAA,EAAE,EAAF,WAJ2B;AAK3B,EAAA,GAAG,EAAH,YAL2B;AAM3B,EAAA,KAAK,EAAL;AAN2B,CAAd,C","sourcesContent":["import mdiSvg from './mdi-svg'\nimport md from './md'\nimport mdi from './mdi'\nimport fa from './fa'\nimport fa4 from './fa4'\nimport faSvg from './fa-svg'\n\nexport default Object.freeze({\n mdiSvg,\n md,\n mdi,\n fa,\n fa4,\n faSvg,\n})\n"],"sourceRoot":"","file":"index.js"}
-44
View File
@@ -1,44 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var icons = {
complete: 'check',
cancel: 'cancel',
close: 'close',
delete: 'cancel',
clear: 'clear',
success: 'check_circle',
info: 'info',
warning: 'priority_high',
error: 'warning',
prev: 'chevron_left',
next: 'chevron_right',
checkboxOn: 'check_box',
checkboxOff: 'check_box_outline_blank',
checkboxIndeterminate: 'indeterminate_check_box',
delimiter: 'fiber_manual_record',
sort: 'arrow_upward',
expand: 'keyboard_arrow_down',
menu: 'menu',
subgroup: 'arrow_drop_down',
dropdown: 'arrow_drop_down',
radioOn: 'radio_button_checked',
radioOff: 'radio_button_unchecked',
edit: 'edit',
ratingEmpty: 'star_border',
ratingFull: 'star',
ratingHalf: 'star_half',
loading: 'cached',
first: 'first_page',
last: 'last_page',
unfold: 'unfold_more',
file: 'attach_file',
plus: 'add',
minus: 'remove'
};
var _default = icons;
exports.default = _default;
//# sourceMappingURL=md.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../../src/services/icons/presets/md.ts"],"names":[],"mappings":";;;;;;AAEA,IAAM,KAAK,GAAiB;AAC1B,EAAA,QAAQ,EAAE,OADgB;AAE1B,EAAA,MAAM,EAAE,QAFkB;AAG1B,EAAA,KAAK,EAAE,OAHmB;AAI1B,EAAA,MAAM,EAAE,QAJkB;AAK1B,EAAA,KAAK,EAAE,OALmB;AAM1B,EAAA,OAAO,EAAE,cANiB;AAO1B,EAAA,IAAI,EAAE,MAPoB;AAQ1B,EAAA,OAAO,EAAE,eARiB;AAS1B,EAAA,KAAK,EAAE,SATmB;AAU1B,EAAA,IAAI,EAAE,cAVoB;AAW1B,EAAA,IAAI,EAAE,eAXoB;AAY1B,EAAA,UAAU,EAAE,WAZc;AAa1B,EAAA,WAAW,EAAE,yBAba;AAc1B,EAAA,qBAAqB,EAAE,yBAdG;AAe1B,EAAA,SAAS,EAAE,qBAfe;AAgB1B,EAAA,IAAI,EAAE,cAhBoB;AAiB1B,EAAA,MAAM,EAAE,qBAjBkB;AAkB1B,EAAA,IAAI,EAAE,MAlBoB;AAmB1B,EAAA,QAAQ,EAAE,iBAnBgB;AAoB1B,EAAA,QAAQ,EAAE,iBApBgB;AAqB1B,EAAA,OAAO,EAAE,sBArBiB;AAsB1B,EAAA,QAAQ,EAAE,wBAtBgB;AAuB1B,EAAA,IAAI,EAAE,MAvBoB;AAwB1B,EAAA,WAAW,EAAE,aAxBa;AAyB1B,EAAA,UAAU,EAAE,MAzBc;AA0B1B,EAAA,UAAU,EAAE,WA1Bc;AA2B1B,EAAA,OAAO,EAAE,QA3BiB;AA4B1B,EAAA,KAAK,EAAE,YA5BmB;AA6B1B,EAAA,IAAI,EAAE,WA7BoB;AA8B1B,EAAA,MAAM,EAAE,aA9BkB;AA+B1B,EAAA,IAAI,EAAE,aA/BoB;AAgC1B,EAAA,IAAI,EAAE,KAhCoB;AAiC1B,EAAA,KAAK,EAAE;AAjCmB,CAA5B;eAoCe,K","sourcesContent":["import { VuetifyIcons } from 'vuetify/types/services/icons'\n\nconst icons: VuetifyIcons = {\n complete: 'check',\n cancel: 'cancel',\n close: 'close',\n delete: 'cancel', // delete (e.g. v-chip close)\n clear: 'clear',\n success: 'check_circle',\n info: 'info',\n warning: 'priority_high',\n error: 'warning',\n prev: 'chevron_left',\n next: 'chevron_right',\n checkboxOn: 'check_box',\n checkboxOff: 'check_box_outline_blank',\n checkboxIndeterminate: 'indeterminate_check_box',\n delimiter: 'fiber_manual_record', // for carousel\n sort: 'arrow_upward',\n expand: 'keyboard_arrow_down',\n menu: 'menu',\n subgroup: 'arrow_drop_down',\n dropdown: 'arrow_drop_down',\n radioOn: 'radio_button_checked',\n radioOff: 'radio_button_unchecked',\n edit: 'edit',\n ratingEmpty: 'star_border',\n ratingFull: 'star',\n ratingHalf: 'star_half',\n loading: 'cached',\n first: 'first_page',\n last: 'last_page',\n unfold: 'unfold_more',\n file: 'attach_file',\n plus: 'add',\n minus: 'remove',\n}\n\nexport default icons\n"],"sourceRoot":"","file":"md.js"}
-44
View File
@@ -1,44 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var icons = {
complete: 'M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z',
cancel: 'M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z',
close: 'M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z',
delete: 'M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z',
clear: 'M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z',
success: 'M12,2C17.52,2 22,6.48 22,12C22,17.52 17.52,22 12,22C6.48,22 2,17.52 2,12C2,6.48 6.48,2 12,2M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z',
info: 'M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z',
warning: 'M11,4.5H13V15.5H11V4.5M13,17.5V19.5H11V17.5H13Z',
error: 'M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z',
prev: 'M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z',
next: 'M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z',
checkboxOn: 'M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z',
checkboxOff: 'M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z',
checkboxIndeterminate: 'M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z',
delimiter: 'M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z',
sort: 'M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z',
expand: 'M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z',
menu: 'M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z',
subgroup: 'M7,10L12,15L17,10H7Z',
dropdown: 'M7,10L12,15L17,10H7Z',
radioOn: 'M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z',
radioOff: 'M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z',
edit: 'M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z',
ratingEmpty: 'M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z',
ratingFull: 'M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z',
ratingHalf: 'M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z',
loading: 'M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12',
first: 'M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z',
last: 'M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z',
unfold: 'M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z',
file: 'M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z',
plus: 'M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z',
minus: 'M19,13H5V11H19V13Z'
};
var _default = icons;
exports.default = _default;
//# sourceMappingURL=mdi-svg.js.map
File diff suppressed because one or more lines are too long
-44
View File
@@ -1,44 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var icons = {
complete: 'mdi-check',
cancel: 'mdi-close-circle',
close: 'mdi-close',
delete: 'mdi-close-circle',
clear: 'mdi-close',
success: 'mdi-check-circle',
info: 'mdi-information',
warning: 'mdi-exclamation',
error: 'mdi-alert',
prev: 'mdi-chevron-left',
next: 'mdi-chevron-right',
checkboxOn: 'mdi-checkbox-marked',
checkboxOff: 'mdi-checkbox-blank-outline',
checkboxIndeterminate: 'mdi-minus-box',
delimiter: 'mdi-circle',
sort: 'mdi-arrow-up',
expand: 'mdi-chevron-down',
menu: 'mdi-menu',
subgroup: 'mdi-menu-down',
dropdown: 'mdi-menu-down',
radioOn: 'mdi-radiobox-marked',
radioOff: 'mdi-radiobox-blank',
edit: 'mdi-pencil',
ratingEmpty: 'mdi-star-outline',
ratingFull: 'mdi-star',
ratingHalf: 'mdi-star-half',
loading: 'mdi-cached',
first: 'mdi-page-first',
last: 'mdi-page-last',
unfold: 'mdi-unfold-more-horizontal',
file: 'mdi-paperclip',
plus: 'mdi-plus',
minus: 'mdi-minus'
};
var _default = icons;
exports.default = _default;
//# sourceMappingURL=mdi.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../../src/services/icons/presets/mdi.ts"],"names":[],"mappings":";;;;;;AAEA,IAAM,KAAK,GAAiB;AAC1B,EAAA,QAAQ,EAAE,WADgB;AAE1B,EAAA,MAAM,EAAE,kBAFkB;AAG1B,EAAA,KAAK,EAAE,WAHmB;AAI1B,EAAA,MAAM,EAAE,kBAJkB;AAK1B,EAAA,KAAK,EAAE,WALmB;AAM1B,EAAA,OAAO,EAAE,kBANiB;AAO1B,EAAA,IAAI,EAAE,iBAPoB;AAQ1B,EAAA,OAAO,EAAE,iBARiB;AAS1B,EAAA,KAAK,EAAE,WATmB;AAU1B,EAAA,IAAI,EAAE,kBAVoB;AAW1B,EAAA,IAAI,EAAE,mBAXoB;AAY1B,EAAA,UAAU,EAAE,qBAZc;AAa1B,EAAA,WAAW,EAAE,4BAba;AAc1B,EAAA,qBAAqB,EAAE,eAdG;AAe1B,EAAA,SAAS,EAAE,YAfe;AAgB1B,EAAA,IAAI,EAAE,cAhBoB;AAiB1B,EAAA,MAAM,EAAE,kBAjBkB;AAkB1B,EAAA,IAAI,EAAE,UAlBoB;AAmB1B,EAAA,QAAQ,EAAE,eAnBgB;AAoB1B,EAAA,QAAQ,EAAE,eApBgB;AAqB1B,EAAA,OAAO,EAAE,qBArBiB;AAsB1B,EAAA,QAAQ,EAAE,oBAtBgB;AAuB1B,EAAA,IAAI,EAAE,YAvBoB;AAwB1B,EAAA,WAAW,EAAE,kBAxBa;AAyB1B,EAAA,UAAU,EAAE,UAzBc;AA0B1B,EAAA,UAAU,EAAE,eA1Bc;AA2B1B,EAAA,OAAO,EAAE,YA3BiB;AA4B1B,EAAA,KAAK,EAAE,gBA5BmB;AA6B1B,EAAA,IAAI,EAAE,eA7BoB;AA8B1B,EAAA,MAAM,EAAE,4BA9BkB;AA+B1B,EAAA,IAAI,EAAE,eA/BoB;AAgC1B,EAAA,IAAI,EAAE,UAhCoB;AAiC1B,EAAA,KAAK,EAAE;AAjCmB,CAA5B;eAoCe,K","sourcesContent":["import { VuetifyIcons } from 'vuetify/types/services/icons'\n\nconst icons: VuetifyIcons = {\n complete: 'mdi-check',\n cancel: 'mdi-close-circle',\n close: 'mdi-close',\n delete: 'mdi-close-circle', // delete (e.g. v-chip close)\n clear: 'mdi-close',\n success: 'mdi-check-circle',\n info: 'mdi-information',\n warning: 'mdi-exclamation',\n error: 'mdi-alert',\n prev: 'mdi-chevron-left',\n next: 'mdi-chevron-right',\n checkboxOn: 'mdi-checkbox-marked',\n checkboxOff: 'mdi-checkbox-blank-outline',\n checkboxIndeterminate: 'mdi-minus-box',\n delimiter: 'mdi-circle', // for carousel\n sort: 'mdi-arrow-up',\n expand: 'mdi-chevron-down',\n menu: 'mdi-menu',\n subgroup: 'mdi-menu-down',\n dropdown: 'mdi-menu-down',\n radioOn: 'mdi-radiobox-marked',\n radioOff: 'mdi-radiobox-blank',\n edit: 'mdi-pencil',\n ratingEmpty: 'mdi-star-outline',\n ratingFull: 'mdi-star',\n ratingHalf: 'mdi-star-half',\n loading: 'mdi-cached',\n first: 'mdi-page-first',\n last: 'mdi-page-last',\n unfold: 'mdi-unfold-more-horizontal',\n file: 'mdi-paperclip',\n plus: 'mdi-plus',\n minus: 'mdi-minus',\n}\n\nexport default icons\n"],"sourceRoot":"","file":"mdi.js"}
-90
View File
@@ -1,90 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _application = require("./application");
Object.keys(_application).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _application[key];
}
});
});
var _breakpoint = require("./breakpoint");
Object.keys(_breakpoint).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _breakpoint[key];
}
});
});
var _goto = require("./goto");
Object.keys(_goto).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _goto[key];
}
});
});
var _icons = require("./icons");
Object.keys(_icons).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _icons[key];
}
});
});
var _lang = require("./lang");
Object.keys(_lang).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _lang[key];
}
});
});
var _presets = require("./presets");
Object.keys(_presets).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _presets[key];
}
});
});
var _theme = require("./theme");
Object.keys(_theme).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _theme[key];
}
});
});
//# sourceMappingURL=index.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../src/services/index.ts"],"names":[],"mappings":";;;;;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export * from './application'\nexport * from './breakpoint'\nexport * from './goto'\nexport * from './icons'\nexport * from './lang'\nexport * from './presets'\nexport * from './theme'\n"],"sourceRoot":"","file":"index.js"}
-117
View File
@@ -1,117 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Lang = void 0;
var _service = require("../service");
var _helpers = require("../../util/helpers");
var _console = require("../../util/console");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
var LANG_PREFIX = '$vuetify.';
var fallback = Symbol('Lang fallback');
function getTranslation(locale, key) {
var usingDefault = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
var defaultLocale = arguments.length > 3 ? arguments[3] : undefined;
var shortKey = key.replace(LANG_PREFIX, '');
var translation = (0, _helpers.getObjectValueByPath)(locale, shortKey, fallback);
if (translation === fallback) {
if (usingDefault) {
(0, _console.consoleError)("Translation key \"".concat(shortKey, "\" not found in fallback"));
translation = key;
} else {
(0, _console.consoleWarn)("Translation key \"".concat(shortKey, "\" not found, falling back to default"));
translation = getTranslation(defaultLocale, key, true, defaultLocale);
}
}
return translation;
}
var Lang =
/*#__PURE__*/
function (_Service) {
_inherits(Lang, _Service);
function Lang(preset) {
var _this;
_classCallCheck(this, Lang);
_this = _possibleConstructorReturn(this, _getPrototypeOf(Lang).call(this));
_this.defaultLocale = 'en';
var _preset$Lang$property = preset[Lang.property],
current = _preset$Lang$property.current,
locales = _preset$Lang$property.locales,
t = _preset$Lang$property.t;
_this.current = current;
_this.locales = locales;
_this.translator = t || _this.defaultTranslator;
return _this;
}
_createClass(Lang, [{
key: "currentLocale",
value: function currentLocale(key) {
var translation = this.locales[this.current];
var defaultLocale = this.locales[this.defaultLocale];
return getTranslation(translation, key, false, defaultLocale);
}
}, {
key: "t",
value: function t(key) {
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
params[_key - 1] = arguments[_key];
}
if (!key.startsWith(LANG_PREFIX)) return this.replace(key, params);
return this.translator.apply(this, [key].concat(params));
}
}, {
key: "defaultTranslator",
value: function defaultTranslator(key) {
for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
params[_key2 - 1] = arguments[_key2];
}
return this.replace(this.currentLocale(key), params);
}
}, {
key: "replace",
value: function replace(str, params) {
return str.replace(/\{(\d+)\}/g, function (match, index) {
/* istanbul ignore next */
return String(params[+index]);
});
}
}]);
return Lang;
}(_service.Service);
exports.Lang = Lang;
Lang.property = 'lang';
//# sourceMappingURL=index.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../src/services/lang/index.ts"],"names":[],"mappings":";;;;;;;AACA;;AAGA;;AACA;;;;;;;;;;;;;;;;;;;;AASA,IAAM,WAAW,GAAG,WAApB;AACA,IAAM,QAAQ,GAAG,MAAM,CAAC,eAAD,CAAvB;;AAEA,SAAS,cAAT,CACE,MADF,EAEE,GAFF,EAI8B;AAAA,MAD5B,YAC4B,uEADb,KACa;AAAA,MAA5B,aAA4B;AAE5B,MAAM,QAAQ,GAAG,GAAG,CAAC,OAAJ,CAAY,WAAZ,EAAyB,EAAzB,CAAjB;AACA,MAAI,WAAW,GAAG,mCAAqB,MAArB,EAA6B,QAA7B,EAAuC,QAAvC,CAAlB;;AAEA,MAAI,WAAW,KAAK,QAApB,EAA8B;AAC5B,QAAI,YAAJ,EAAkB;AAChB,6DAAiC,QAAjC;AACA,MAAA,WAAW,GAAG,GAAd;AACD,KAHD,MAGO;AACL,4DAAgC,QAAhC;AACA,MAAA,WAAW,GAAG,cAAc,CAAC,aAAD,EAAgB,GAAhB,EAAqB,IAArB,EAA2B,aAA3B,CAA5B;AACD;AACF;;AAED,SAAO,WAAP;AACD;;IAEY,I;;;;;AAWX,gBAAa,MAAb,EAAkC;AAAA;;AAAA;;AAChC;AAPK,UAAA,aAAA,GAAgB,IAAhB;AAM2B,gCAO5B,MAAM,CAAC,IAAI,CAAC,QAAN,CAPsB;AAAA,QAI9B,OAJ8B,yBAI9B,OAJ8B;AAAA,QAK9B,OAL8B,yBAK9B,OAL8B;AAAA,QAM9B,CAN8B,yBAM9B,CAN8B;AAShC,UAAK,OAAL,GAAe,OAAf;AACA,UAAK,OAAL,GAAe,OAAf;AACA,UAAK,UAAL,GAAkB,CAAC,IAAI,MAAK,iBAA5B;AAXgC;AAYjC;;;;kCAEqB,G,EAAW;AAC/B,UAAM,WAAW,GAAG,KAAK,OAAL,CAAa,KAAK,OAAlB,CAApB;AACA,UAAM,aAAa,GAAG,KAAK,OAAL,CAAa,KAAK,aAAlB,CAAtB;AAEA,aAAO,cAAc,CAAC,WAAD,EAAc,GAAd,EAAmB,KAAnB,EAA0B,aAA1B,CAArB;AACD;;;sBAES,G,EAA6B;AAAA,wCAAb,MAAa;AAAb,QAAA,MAAa;AAAA;;AACrC,UAAI,CAAC,GAAG,CAAC,UAAJ,CAAe,WAAf,CAAL,EAAkC,OAAO,KAAK,OAAL,CAAa,GAAb,EAAkB,MAAlB,CAAP;AAElC,aAAO,KAAK,UAAL,cAAgB,GAAhB,SAAwB,MAAxB,EAAP;AACD;;;sCAE0B,G,EAA6B;AAAA,yCAAb,MAAa;AAAb,QAAA,MAAa;AAAA;;AACtD,aAAO,KAAK,OAAL,CAAa,KAAK,aAAL,CAAmB,GAAnB,CAAb,EAAsC,MAAtC,CAAP;AACD;;;4BAEgB,G,EAAa,M,EAAa;AACzC,aAAO,GAAG,CAAC,OAAJ,CAAY,YAAZ,EAA0B,UAAC,KAAD,EAAgB,KAAhB,EAAiC;AAChE;AACA,eAAO,MAAM,CAAC,MAAM,CAAC,CAAC,KAAF,CAAP,CAAb;AACD,OAHM,CAAP;AAID;;;;EA/CuB,gB;;;AACjB,IAAA,CAAA,QAAA,GAAmB,MAAnB","sourcesContent":["// Extensions\nimport { Service } from '../service'\n\n// Utilities\nimport { getObjectValueByPath } from '../../util/helpers'\nimport { consoleError, consoleWarn } from '../../util/console'\n\n// Types\nimport { VuetifyPreset } from 'vuetify/types/services/presets'\nimport {\n VuetifyLocale,\n Lang as ILang,\n} from 'vuetify/types/services/lang'\n\nconst LANG_PREFIX = '$vuetify.'\nconst fallback = Symbol('Lang fallback')\n\nfunction getTranslation (\n locale: VuetifyLocale,\n key: string,\n usingDefault = false,\n defaultLocale: VuetifyLocale\n): string {\n const shortKey = key.replace(LANG_PREFIX, '')\n let translation = getObjectValueByPath(locale, shortKey, fallback) as string | typeof fallback\n\n if (translation === fallback) {\n if (usingDefault) {\n consoleError(`Translation key \"${shortKey}\" not found in fallback`)\n translation = key\n } else {\n consoleWarn(`Translation key \"${shortKey}\" not found, falling back to default`)\n translation = getTranslation(defaultLocale, key, true, defaultLocale)\n }\n }\n\n return translation\n}\n\nexport class Lang extends Service implements ILang {\n static property: 'lang' = 'lang'\n\n public current: ILang['current']\n\n public defaultLocale = 'en'\n\n public locales: ILang['locales']\n\n private translator: ILang['t']\n\n constructor (preset: VuetifyPreset) {\n super()\n\n const {\n current,\n locales,\n t,\n } = preset[Lang.property]\n\n this.current = current\n this.locales = locales\n this.translator = t || this.defaultTranslator\n }\n\n public currentLocale (key: string) {\n const translation = this.locales[this.current]\n const defaultLocale = this.locales[this.defaultLocale]\n\n return getTranslation(translation, key, false, defaultLocale)\n }\n\n public t (key: string, ...params: any[]) {\n if (!key.startsWith(LANG_PREFIX)) return this.replace(key, params)\n\n return this.translator(key, ...params)\n }\n\n private defaultTranslator (key: string, ...params: any[]) {\n return this.replace(this.currentLocale(key), params)\n }\n\n private replace (str: string, params: any[]) {\n return str.replace(/\\{(\\d+)\\}/g, (match: string, index: string) => {\n /* istanbul ignore next */\n return String(params[+index])\n })\n }\n}\n"],"sourceRoot":"","file":"index.js"}
-67
View File
@@ -1,67 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Presets = void 0;
var _default = require("../../presets/default");
var _console = require("../../util/console");
var _helpers = require("../../util/helpers");
var _service = require("../service");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
var Presets =
/*#__PURE__*/
function (_Service) {
_inherits(Presets, _Service);
function Presets(parentPreset, parent) {
var _this;
_classCallCheck(this, Presets);
_this = _possibleConstructorReturn(this, _getPrototypeOf(Presets).call(this)); // The default preset
var defaultPreset = (0, _helpers.mergeDeep)({}, _default.preset); // The user provided preset
var userPreset = parent.userPreset; // The user provided global preset
var _userPreset$preset = userPreset.preset,
globalPreset = _userPreset$preset === void 0 ? {} : _userPreset$preset,
preset = _objectWithoutProperties(userPreset, ["preset"]);
if (globalPreset.preset != null) {
(0, _console.consoleWarn)('Global presets do not support the **preset** option, it can be safely omitted');
}
parent.preset = (0, _helpers.mergeDeep)((0, _helpers.mergeDeep)(defaultPreset, globalPreset), preset);
return _this;
}
return Presets;
}(_service.Service);
exports.Presets = Presets;
Presets.property = 'presets';
//# sourceMappingURL=index.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../src/services/presets/index.ts"],"names":[],"mappings":";;;;;;;AACA;;AAGA;;AACA;;AAIA;;;;;;;;;;;;;;;;;;;;IAMa,O;;;;;AAGX,mBACE,YADF,EAEE,MAFF,EAEwC;AAAA;;AAAA;;AAEtC,kFAFsC,CAItC;;AACA,QAAM,aAAa,GAAG,wBAAU,EAAV,EAAc,eAAd,CAAtB,CALsC,CAMtC;;AANsC,QAO9B,UAP8B,GAOf,MAPe,CAO9B,UAP8B,EAQtC;;AARsC,6BAYlC,UAZkC,CAUpC,MAVoC;AAAA,QAU5B,YAV4B,mCAUb,EAVa;AAAA,QAWjC,MAXiC,4BAYlC,UAZkC;;AActC,QAAI,YAAY,CAAC,MAAb,IAAuB,IAA3B,EAAiC;AAC/B,gCAAY,+EAAZ;AACD;;AAED,IAAA,MAAM,CAAC,MAAP,GAAgB,wBACd,wBAAU,aAAV,EAAyB,YAAzB,CADc,EAEd,MAFc,CAAhB;AAlBsC;AAsBvC;;;EA3B0B,gB;;;AACpB,OAAA,CAAA,QAAA,GAAsB,SAAtB","sourcesContent":["// Preset\nimport { preset as Preset } from '../../presets/default'\n\n// Utilities\nimport { consoleWarn } from '../../util/console'\nimport { mergeDeep } from '../../util/helpers'\n\n// Types\nimport Framework from 'vuetify/types'\nimport { Service } from '../service'\nimport {\n UserVuetifyPreset,\n VuetifyPreset,\n} from 'vuetify/types/services/presets'\n\nexport class Presets extends Service {\n static property: 'presets' = 'presets'\n\n constructor (\n parentPreset: Partial<UserVuetifyPreset>,\n parent: InstanceType<typeof Framework>,\n ) {\n super()\n\n // The default preset\n const defaultPreset = mergeDeep({}, Preset)\n // The user provided preset\n const { userPreset } = parent\n // The user provided global preset\n const {\n preset: globalPreset = {},\n ...preset\n } = userPreset\n\n if (globalPreset.preset != null) {\n consoleWarn('Global presets do not support the **preset** option, it can be safely omitted')\n }\n\n parent.preset = mergeDeep(\n mergeDeep(defaultPreset, globalPreset),\n preset\n ) as VuetifyPreset\n }\n}\n"],"sourceRoot":"","file":"index.js"}
-32
View File
@@ -1,32 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Service = void 0;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
var Service =
/*#__PURE__*/
function () {
function Service() {
_classCallCheck(this, Service);
this.framework = {};
}
_createClass(Service, [{
key: "init",
value: function init(root, ssrContext) {}
}]);
return Service;
}();
exports.Service = Service;
//# sourceMappingURL=index.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../src/services/service/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;IAMa,O;;;AAAb,qBAAA;AAAA;;AACE,SAAA,SAAA,GAAY,EAAZ;AAGD;;;;yBADO,I,EAAW,U,EAAmB,CAAI","sourcesContent":["// Contracts\nimport { VuetifyServiceContract } from 'vuetify/types/services/index'\n\n// Types\nimport Vue from 'vue'\n\nexport class Service implements VuetifyServiceContract {\n framework = {}\n\n init (root: Vue, ssrContext?: object) {}\n}\n"],"sourceRoot":"","file":"index.js"}
-327
View File
@@ -1,327 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Theme = void 0;
var _service = require("../service");
var ThemeUtils = _interopRequireWildcard(require("./utils"));
var _helpers = require("../../util/helpers");
var _vue = _interopRequireDefault(require("vue"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
var Theme =
/*#__PURE__*/
function (_Service) {
_inherits(Theme, _Service);
function Theme(preset) {
var _this;
_classCallCheck(this, Theme);
_this = _possibleConstructorReturn(this, _getPrototypeOf(Theme).call(this));
_this.disabled = false;
_this.isDark = null;
_this.vueInstance = null;
_this.vueMeta = null;
var _preset$Theme$propert = preset[Theme.property],
dark = _preset$Theme$propert.dark,
disable = _preset$Theme$propert.disable,
options = _preset$Theme$propert.options,
themes = _preset$Theme$propert.themes;
_this.dark = Boolean(dark);
_this.defaults = _this.themes = themes;
_this.options = options;
if (disable) {
_this.disabled = true;
return _possibleConstructorReturn(_this);
}
_this.themes = {
dark: _this.fillVariant(themes.dark, true),
light: _this.fillVariant(themes.light, false)
};
return _this;
} // When setting css, check for element
// and apply new values
_createClass(Theme, [{
key: "applyTheme",
// Apply current theme default
// only called on client side
value: function applyTheme() {
if (this.disabled) return this.clearCss();
this.css = this.generatedStyles;
}
}, {
key: "clearCss",
value: function clearCss() {
this.css = '';
} // Initialize theme for SSR and SPA
// Attach to ssrContext head or
// apply new theme to document
}, {
key: "init",
value: function init(root, ssrContext) {
if (this.disabled) return;
/* istanbul ignore else */
if (root.$meta) {
this.initVueMeta(root);
} else if (ssrContext) {
this.initSSR(ssrContext);
}
this.initTheme();
} // Allows for you to set target theme
}, {
key: "setTheme",
value: function setTheme(theme, value) {
this.themes[theme] = Object.assign(this.themes[theme], value);
this.applyTheme();
} // Reset theme defaults
}, {
key: "resetThemes",
value: function resetThemes() {
this.themes.light = Object.assign({}, this.defaults.light);
this.themes.dark = Object.assign({}, this.defaults.dark);
this.applyTheme();
} // Check for existence of style element
}, {
key: "checkOrCreateStyleElement",
value: function checkOrCreateStyleElement() {
this.styleEl = document.getElementById('vuetify-theme-stylesheet');
/* istanbul ignore next */
if (this.styleEl) return true;
this.genStyleElement(); // If doesn't have it, create it
return Boolean(this.styleEl);
}
}, {
key: "fillVariant",
value: function fillVariant() {
var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var dark = arguments.length > 1 ? arguments[1] : undefined;
var defaultTheme = this.themes[dark ? 'dark' : 'light'];
return Object.assign({}, defaultTheme, theme);
} // Generate the style element
// if applicable
}, {
key: "genStyleElement",
value: function genStyleElement() {
/* istanbul ignore if */
if (typeof document === 'undefined') return;
/* istanbul ignore next */
this.styleEl = document.createElement('style');
this.styleEl.type = 'text/css';
this.styleEl.id = 'vuetify-theme-stylesheet';
if (this.options.cspNonce) {
this.styleEl.setAttribute('nonce', this.options.cspNonce);
}
document.head.appendChild(this.styleEl);
}
}, {
key: "initVueMeta",
value: function initVueMeta(root) {
var _this2 = this;
this.vueMeta = root.$meta();
if (this.isVueMeta23) {
// vue-meta needs to apply after mounted()
root.$nextTick(function () {
_this2.applyVueMeta23();
});
return;
}
var metaKeyName = typeof this.vueMeta.getOptions === 'function' ? this.vueMeta.getOptions().keyName : 'metaInfo';
var metaInfo = root.$options[metaKeyName] || {};
root.$options[metaKeyName] = function () {
metaInfo.style = metaInfo.style || [];
var vuetifyStylesheet = metaInfo.style.find(function (s) {
return s.id === 'vuetify-theme-stylesheet';
});
if (!vuetifyStylesheet) {
metaInfo.style.push({
cssText: _this2.generatedStyles,
type: 'text/css',
id: 'vuetify-theme-stylesheet',
nonce: (_this2.options || {}).cspNonce
});
} else {
vuetifyStylesheet.cssText = _this2.generatedStyles;
}
return metaInfo;
};
}
}, {
key: "applyVueMeta23",
value: function applyVueMeta23() {
var _this$vueMeta$addApp = this.vueMeta.addApp('vuetify'),
set = _this$vueMeta$addApp.set;
set({
style: [{
cssText: this.generatedStyles,
type: 'text/css',
id: 'vuetify-theme-stylesheet',
nonce: this.options.cspNonce
}]
});
}
}, {
key: "initSSR",
value: function initSSR(ssrContext) {
// SSR
var nonce = this.options.cspNonce ? " nonce=\"".concat(this.options.cspNonce, "\"") : '';
ssrContext.head = ssrContext.head || '';
ssrContext.head += "<style type=\"text/css\" id=\"vuetify-theme-stylesheet\"".concat(nonce, ">").concat(this.generatedStyles, "</style>");
}
}, {
key: "initTheme",
value: function initTheme() {
var _this3 = this;
// Only watch for reactivity on client side
if (typeof document === 'undefined') return; // If we get here somehow, ensure
// existing instance is removed
if (this.vueInstance) this.vueInstance.$destroy(); // Use Vue instance to track reactivity
// TODO: Update to use RFC if merged
// https://github.com/vuejs/rfcs/blob/advanced-reactivity-api/active-rfcs/0000-advanced-reactivity-api.md
this.vueInstance = new _vue.default({
data: {
themes: this.themes
},
watch: {
themes: {
immediate: true,
deep: true,
handler: function handler() {
return _this3.applyTheme();
}
}
}
});
}
}, {
key: "css",
set: function set(val) {
if (this.vueMeta) {
if (this.isVueMeta23) {
this.applyVueMeta23();
}
return;
}
this.checkOrCreateStyleElement() && (this.styleEl.innerHTML = val);
}
}, {
key: "dark",
set: function set(val) {
var oldDark = this.isDark;
this.isDark = val; // Only apply theme after dark
// has already been set before
oldDark != null && this.applyTheme();
},
get: function get() {
return Boolean(this.isDark);
}
}, {
key: "currentTheme",
get: function get() {
var target = this.dark ? 'dark' : 'light';
return this.themes[target];
}
}, {
key: "generatedStyles",
get: function get() {
var theme = this.parsedTheme;
/* istanbul ignore next */
var options = this.options || {};
var css;
if (options.themeCache != null) {
css = options.themeCache.get(theme);
/* istanbul ignore if */
if (css != null) return css;
}
css = ThemeUtils.genStyles(theme, options.customProperties);
if (options.minifyTheme != null) {
css = options.minifyTheme(css);
}
if (options.themeCache != null) {
options.themeCache.set(theme, css);
}
return css;
}
}, {
key: "parsedTheme",
get: function get() {
return ThemeUtils.parse(this.currentTheme || {}, undefined, (0, _helpers.getNestedValue)(this.options, ['variations'], true));
} // Is using v2.3 of vue-meta
// https://github.com/nuxt/vue-meta/releases/tag/v2.3.0
}, {
key: "isVueMeta23",
get: function get() {
return typeof this.vueMeta.addApp === 'function';
}
}]);
return Theme;
}(_service.Service);
exports.Theme = Theme;
Theme.property = 'theme';
//# sourceMappingURL=index.js.map
File diff suppressed because one or more lines are too long
-167
View File
@@ -1,167 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.parse = parse;
exports.genStyles = genStyles;
exports.genVariations = genVariations;
exports.lighten = lighten;
exports.darken = darken;
var _colorUtils = require("../../util/colorUtils");
var sRGB = _interopRequireWildcard(require("../../util/color/transformSRGB"));
var LAB = _interopRequireWildcard(require("../../util/color/transformCIELAB"));
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
function parse(theme) {
var isItem = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var variations = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
var anchor = theme.anchor,
variant = _objectWithoutProperties(theme, ["anchor"]);
var colors = Object.keys(variant);
var parsedTheme = {};
for (var _i = 0; _i < colors.length; ++_i) {
var name = colors[_i];
var value = theme[name];
if (value == null) continue;
if (!variations) {
parsedTheme[name] = {
base: (0, _colorUtils.intToHex)((0, _colorUtils.colorToInt)(value))
};
} else if (isItem) {
/* istanbul ignore else */
if (name === 'base' || name.startsWith('lighten') || name.startsWith('darken')) {
parsedTheme[name] = (0, _colorUtils.colorToHex)(value);
}
} else if (_typeof(value) === 'object') {
parsedTheme[name] = parse(value, true, variations);
} else {
parsedTheme[name] = genVariations(name, (0, _colorUtils.colorToInt)(value));
}
}
if (!isItem) {
parsedTheme.anchor = anchor || parsedTheme.base || parsedTheme.primary.base;
}
return parsedTheme;
}
/**
* Generate the CSS for a base color (.primary)
*/
var genBaseColor = function genBaseColor(name, value) {
return "\n.v-application .".concat(name, " {\n background-color: ").concat(value, " !important;\n border-color: ").concat(value, " !important;\n}\n.v-application .").concat(name, "--text {\n color: ").concat(value, " !important;\n caret-color: ").concat(value, " !important;\n}");
};
/**
* Generate the CSS for a variant color (.primary.darken-2)
*/
var genVariantColor = function genVariantColor(name, variant, value) {
var _variant$split = variant.split(/(\d)/, 2),
_variant$split2 = _slicedToArray(_variant$split, 2),
type = _variant$split2[0],
n = _variant$split2[1];
return "\n.v-application .".concat(name, ".").concat(type, "-").concat(n, " {\n background-color: ").concat(value, " !important;\n border-color: ").concat(value, " !important;\n}\n.v-application .").concat(name, "--text.text--").concat(type, "-").concat(n, " {\n color: ").concat(value, " !important;\n caret-color: ").concat(value, " !important;\n}");
};
var genColorVariableName = function genColorVariableName(name) {
var variant = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'base';
return "--v-".concat(name, "-").concat(variant);
};
var genColorVariable = function genColorVariable(name) {
var variant = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'base';
return "var(".concat(genColorVariableName(name, variant), ")");
};
function genStyles(theme) {
var cssVar = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var anchor = theme.anchor,
variant = _objectWithoutProperties(theme, ["anchor"]);
var colors = Object.keys(variant);
if (!colors.length) return '';
var variablesCss = '';
var css = '';
var aColor = cssVar ? genColorVariable('anchor') : anchor;
css += ".v-application a { color: ".concat(aColor, "; }");
cssVar && (variablesCss += " ".concat(genColorVariableName('anchor'), ": ").concat(anchor, ";\n"));
for (var _i2 = 0; _i2 < colors.length; ++_i2) {
var name = colors[_i2];
var value = theme[name];
css += genBaseColor(name, cssVar ? genColorVariable(name) : value.base);
cssVar && (variablesCss += " ".concat(genColorVariableName(name), ": ").concat(value.base, ";\n"));
var variants = Object.keys(value);
for (var _i3 = 0; _i3 < variants.length; ++_i3) {
var _variant = variants[_i3];
var variantValue = value[_variant];
if (_variant === 'base') continue;
css += genVariantColor(name, _variant, cssVar ? genColorVariable(name, _variant) : variantValue);
cssVar && (variablesCss += " ".concat(genColorVariableName(name, _variant), ": ").concat(variantValue, ";\n"));
}
}
if (cssVar) {
variablesCss = ":root {\n".concat(variablesCss, "}\n\n");
}
return variablesCss + css;
}
function genVariations(name, value) {
var values = {
base: (0, _colorUtils.intToHex)(value)
};
for (var _i4 = 5; _i4 > 0; --_i4) {
values["lighten".concat(_i4)] = (0, _colorUtils.intToHex)(lighten(value, _i4));
}
for (var _i5 = 1; _i5 <= 4; ++_i5) {
values["darken".concat(_i5)] = (0, _colorUtils.intToHex)(darken(value, _i5));
}
return values;
}
function lighten(value, amount) {
var lab = LAB.fromXYZ(sRGB.toXYZ(value));
lab[0] = lab[0] + amount * 10;
return sRGB.fromXYZ(LAB.toXYZ(lab));
}
function darken(value, amount) {
var lab = LAB.fromXYZ(sRGB.toXYZ(value));
lab[0] = lab[0] - amount * 10;
return sRGB.fromXYZ(LAB.toXYZ(lab));
}
//# sourceMappingURL=utils.js.map
File diff suppressed because one or more lines are too long