1 | (function webpackUniversalModuleDefinition(root, factory) {
|
2 | if(typeof exports === 'object' && typeof module === 'object')
|
3 | module.exports = factory(require("vue"));
|
4 | else if(typeof define === 'function' && define.amd)
|
5 | define(["vue"], factory);
|
6 | else if(typeof exports === 'object')
|
7 | exports["Vuetify"] = factory(require("vue"));
|
8 | else
|
9 | root["Vuetify"] = factory(root["Vue"]);
|
10 | })(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_vue__) {
|
11 | return (function(modules) {
|
12 |
|
13 | var installedModules = {};
|
14 |
|
15 |
|
16 | function __webpack_require__(moduleId) {
|
17 |
|
18 |
|
19 | if(installedModules[moduleId]) {
|
20 | return installedModules[moduleId].exports;
|
21 | }
|
22 |
|
23 | var module = installedModules[moduleId] = {
|
24 | i: moduleId,
|
25 | l: false,
|
26 | exports: {}
|
27 | };
|
28 |
|
29 |
|
30 | modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
31 |
|
32 |
|
33 | module.l = true;
|
34 |
|
35 |
|
36 | return module.exports;
|
37 | }
|
38 |
|
39 |
|
40 |
|
41 | __webpack_require__.m = modules;
|
42 |
|
43 |
|
44 | __webpack_require__.c = installedModules;
|
45 |
|
46 |
|
47 | __webpack_require__.d = function(exports, name, getter) {
|
48 | if(!__webpack_require__.o(exports, name)) {
|
49 | Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
50 | }
|
51 | };
|
52 |
|
53 |
|
54 | __webpack_require__.r = function(exports) {
|
55 | if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
56 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
57 | }
|
58 | Object.defineProperty(exports, '__esModule', { value: true });
|
59 | };
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 | __webpack_require__.t = function(value, mode) {
|
67 | if(mode & 1) value = __webpack_require__(value);
|
68 | if(mode & 8) return value;
|
69 | if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
70 | var ns = Object.create(null);
|
71 | __webpack_require__.r(ns);
|
72 | Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
73 | if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
74 | return ns;
|
75 | };
|
76 |
|
77 |
|
78 | __webpack_require__.n = function(module) {
|
79 | var getter = module && module.__esModule ?
|
80 | function getDefault() { return module['default']; } :
|
81 | function getModuleExports() { return module; };
|
82 | __webpack_require__.d(getter, 'a', getter);
|
83 | return getter;
|
84 | };
|
85 |
|
86 |
|
87 | __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
88 |
|
89 |
|
90 | __webpack_require__.p = "/dist/";
|
91 |
|
92 |
|
93 |
|
94 | return __webpack_require__(__webpack_require__.s = "./src/index.ts");
|
95 | })
|
96 |
|
97 | ({
|
98 |
|
99 | "./src/components/VAlert/VAlert.sass":
|
100 |
|
101 |
|
102 |
|
103 |
|
104 | (function(module, exports, __webpack_require__) {
|
105 |
|
106 |
|
107 |
|
108 | }),
|
109 |
|
110 | "./src/components/VAlert/VAlert.ts":
|
111 |
|
112 |
|
113 |
|
114 |
|
115 | (function(module, __webpack_exports__, __webpack_require__) {
|
116 |
|
117 | "use strict";
|
118 | __webpack_require__.r(__webpack_exports__);
|
119 | var _VAlert_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VAlert/VAlert.sass");
|
120 | var _VAlert_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VAlert_sass__WEBPACK_IMPORTED_MODULE_0__);
|
121 | var _VSheet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VSheet/index.ts");
|
122 | var _VBtn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VBtn/index.ts");
|
123 | var _VIcon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
124 | var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/toggleable/index.ts");
|
125 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
126 | var _mixins_transitionable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/mixins/transitionable/index.ts");
|
127 | var _util_mixins__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/util/mixins.ts");
|
128 | var _util_console__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/util/console.ts");
|
129 | var __assign = undefined && undefined.__assign || function () {
|
130 | __assign = Object.assign || function (t) {
|
131 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
132 | s = arguments[i];
|
133 |
|
134 | for (var p in s) {
|
135 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
136 | }
|
137 | }
|
138 |
|
139 | return t;
|
140 | };
|
141 |
|
142 | return __assign.apply(this, arguments);
|
143 | };
|
144 |
|
145 |
|
146 |
|
147 |
|
148 |
|
149 |
|
150 |
|
151 |
|
152 |
|
153 |
|
154 |
|
155 |
|
156 |
|
157 |
|
158 |
|
159 |
|
160 |
|
161 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_VSheet__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_transitionable__WEBPACK_IMPORTED_MODULE_6__["default"]).extend({
|
162 | name: 'v-alert',
|
163 | props: {
|
164 | border: {
|
165 | type: String,
|
166 | validator: function validator(val) {
|
167 | return ['top', 'right', 'bottom', 'left'].includes(val);
|
168 | }
|
169 | },
|
170 | closeLabel: {
|
171 | type: String,
|
172 | default: '$vuetify.close'
|
173 | },
|
174 | coloredBorder: Boolean,
|
175 | dense: Boolean,
|
176 | dismissible: Boolean,
|
177 | icon: {
|
178 | default: '',
|
179 | type: [Boolean, String],
|
180 | validator: function validator(val) {
|
181 | return typeof val === 'string' || val === false;
|
182 | }
|
183 | },
|
184 | outlined: Boolean,
|
185 | prominent: Boolean,
|
186 | text: Boolean,
|
187 | type: {
|
188 | type: String,
|
189 | validator: function validator(val) {
|
190 | return ['info', 'error', 'success', 'warning'].includes(val);
|
191 | }
|
192 | },
|
193 | value: {
|
194 | type: Boolean,
|
195 | default: true
|
196 | }
|
197 | },
|
198 | computed: {
|
199 | __cachedBorder: function __cachedBorder() {
|
200 | var _a;
|
201 |
|
202 | if (!this.border) return null;
|
203 | var data = {
|
204 | staticClass: 'v-alert__border',
|
205 | class: (_a = {}, _a["v-alert__border--" + this.border] = true, _a)
|
206 | };
|
207 |
|
208 | if (this.coloredBorder) {
|
209 | data = this.setBackgroundColor(this.computedColor, data);
|
210 | data.class['v-alert__border--has-color'] = true;
|
211 | }
|
212 |
|
213 | return this.$createElement('div', data);
|
214 | },
|
215 | __cachedDismissible: function __cachedDismissible() {
|
216 | var _this = this;
|
217 |
|
218 | if (!this.dismissible) return null;
|
219 | var color = this.iconColor;
|
220 | return this.$createElement(_VBtn__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
221 | staticClass: 'v-alert__dismissible',
|
222 | props: {
|
223 | color: color,
|
224 | icon: true,
|
225 | small: true
|
226 | },
|
227 | attrs: {
|
228 | 'aria-label': this.$vuetify.lang.t(this.closeLabel)
|
229 | },
|
230 | on: {
|
231 | click: function click() {
|
232 | return _this.isActive = false;
|
233 | }
|
234 | }
|
235 | }, [this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
236 | props: {
|
237 | color: color
|
238 | }
|
239 | }, '$cancel')]);
|
240 | },
|
241 | __cachedIcon: function __cachedIcon() {
|
242 | if (!this.computedIcon) return null;
|
243 | return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
244 | staticClass: 'v-alert__icon',
|
245 | props: {
|
246 | color: this.iconColor
|
247 | }
|
248 | }, this.computedIcon);
|
249 | },
|
250 | classes: function classes() {
|
251 | var classes = __assign({}, _VSheet__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this), {
|
252 | 'v-alert--border': Boolean(this.border),
|
253 | 'v-alert--dense': this.dense,
|
254 | 'v-alert--outlined': this.outlined,
|
255 | 'v-alert--prominent': this.prominent,
|
256 | 'v-alert--text': this.text
|
257 | });
|
258 |
|
259 | if (this.border) {
|
260 | classes["v-alert--border-" + this.border] = true;
|
261 | }
|
262 |
|
263 | return classes;
|
264 | },
|
265 | computedColor: function computedColor() {
|
266 | return this.color || this.type;
|
267 | },
|
268 | computedIcon: function computedIcon() {
|
269 | if (this.icon === false) return false;
|
270 | if (typeof this.icon === 'string' && this.icon) return this.icon;
|
271 | if (!['error', 'info', 'sucess', 'warning'].includes(this.type)) return false;
|
272 | return "$" + this.type;
|
273 | },
|
274 | hasColoredIcon: function hasColoredIcon() {
|
275 | return this.hasText || Boolean(this.border) && this.coloredBorder;
|
276 | },
|
277 | hasText: function hasText() {
|
278 | return this.text || this.outlined;
|
279 | },
|
280 | iconColor: function iconColor() {
|
281 | return this.hasColoredIcon ? this.computedColor : undefined;
|
282 | },
|
283 | isDark: function isDark() {
|
284 | if (this.type && !this.coloredBorder && !this.outlined) return true;
|
285 | return _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__["default"].options.computed.isDark.call(this);
|
286 | }
|
287 | },
|
288 | created: function created() {
|
289 |
|
290 | if (this.$attrs.hasOwnProperty('outline')) {
|
291 | Object(_util_console__WEBPACK_IMPORTED_MODULE_8__["breaking"])('outline', 'outlined', this);
|
292 | }
|
293 | },
|
294 | methods: {
|
295 | genWrapper: function genWrapper() {
|
296 | var children = [this.$slots.prepend || this.__cachedIcon, this.genContent(), this.__cachedBorder, this.$slots.append, this.$scopedSlots.close ? this.$scopedSlots.close({
|
297 | toggle: this.toggle
|
298 | }) : this.__cachedDismissible];
|
299 | var data = {
|
300 | staticClass: 'v-alert__wrapper'
|
301 | };
|
302 | return this.$createElement('div', data, children);
|
303 | },
|
304 | genContent: function genContent() {
|
305 | return this.$createElement('div', {
|
306 | staticClass: 'v-alert__content'
|
307 | }, this.$slots.default);
|
308 | },
|
309 | genAlert: function genAlert() {
|
310 | var data = {
|
311 | staticClass: 'v-alert',
|
312 | attrs: {
|
313 | role: 'alert'
|
314 | },
|
315 | class: this.classes,
|
316 | style: this.styles,
|
317 | directives: [{
|
318 | name: 'show',
|
319 | value: this.isActive
|
320 | }]
|
321 | };
|
322 |
|
323 | if (!this.coloredBorder) {
|
324 | var setColor = this.hasText ? this.setTextColor : this.setBackgroundColor;
|
325 | data = setColor(this.computedColor, data);
|
326 | }
|
327 |
|
328 | return this.$createElement('div', data, [this.genWrapper()]);
|
329 | },
|
330 |
|
331 |
|
332 | toggle: function toggle() {
|
333 | this.isActive = !this.isActive;
|
334 | }
|
335 | },
|
336 | render: function render(h) {
|
337 | var render = this.genAlert();
|
338 | if (!this.transition) return render;
|
339 | return h('transition', {
|
340 | props: {
|
341 | name: this.transition,
|
342 | origin: this.origin,
|
343 | mode: this.mode
|
344 | }
|
345 | }, [render]);
|
346 | }
|
347 | }));
|
348 |
|
349 | }),
|
350 |
|
351 | "./src/components/VAlert/index.ts":
|
352 |
|
353 |
|
354 |
|
355 |
|
356 | (function(module, __webpack_exports__, __webpack_require__) {
|
357 |
|
358 | "use strict";
|
359 | __webpack_require__.r(__webpack_exports__);
|
360 | var _VAlert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VAlert/VAlert.ts");
|
361 | __webpack_require__.d(__webpack_exports__, "VAlert", function() { return _VAlert__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
362 |
|
363 |
|
364 |
|
365 | __webpack_exports__["default"] = (_VAlert__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
366 |
|
367 | }),
|
368 |
|
369 | "./src/components/VApp/VApp.sass":
|
370 |
|
371 |
|
372 |
|
373 |
|
374 | (function(module, exports, __webpack_require__) {
|
375 |
|
376 |
|
377 |
|
378 | }),
|
379 |
|
380 | "./src/components/VApp/VApp.ts":
|
381 |
|
382 |
|
383 |
|
384 |
|
385 | (function(module, __webpack_exports__, __webpack_require__) {
|
386 |
|
387 | "use strict";
|
388 | __webpack_require__.r(__webpack_exports__);
|
389 | var _VApp_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VApp/VApp.sass");
|
390 | var _VApp_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VApp_sass__WEBPACK_IMPORTED_MODULE_0__);
|
391 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
392 | var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/mixins.ts");
|
393 | var __assign = undefined && undefined.__assign || function () {
|
394 | __assign = Object.assign || function (t) {
|
395 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
396 | s = arguments[i];
|
397 |
|
398 | for (var p in s) {
|
399 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
400 | }
|
401 | }
|
402 |
|
403 | return t;
|
404 | };
|
405 |
|
406 | return __assign.apply(this, arguments);
|
407 | };
|
408 |
|
409 |
|
410 |
|
411 |
|
412 |
|
413 |
|
414 |
|
415 |
|
416 |
|
417 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_mixins_themeable__WEBPACK_IMPORTED_MODULE_1__["default"]).extend({
|
418 | name: 'v-app',
|
419 | props: {
|
420 | dark: {
|
421 | type: Boolean,
|
422 | default: undefined
|
423 | },
|
424 | id: {
|
425 | type: String,
|
426 | default: 'app'
|
427 | },
|
428 | light: {
|
429 | type: Boolean,
|
430 | default: undefined
|
431 | }
|
432 | },
|
433 | computed: {
|
434 | isDark: function isDark() {
|
435 | return this.$vuetify.theme.dark;
|
436 | }
|
437 | },
|
438 | beforeCreate: function beforeCreate() {
|
439 | if (!this.$vuetify || this.$vuetify === this.$root) {
|
440 | throw new Error('Vuetify is not properly initialized, see https://vuetifyjs.com/getting-started/quick-start#bootstrapping-the-vuetify-object');
|
441 | }
|
442 | },
|
443 | render: function render(h) {
|
444 | var wrapper = h('div', {
|
445 | staticClass: 'v-application--wrap'
|
446 | }, this.$slots.default);
|
447 | return h('div', {
|
448 | staticClass: 'v-application',
|
449 | class: __assign({
|
450 | 'v-application--is-rtl': this.$vuetify.rtl,
|
451 | 'v-application--is-ltr': !this.$vuetify.rtl
|
452 | }, this.themeClasses),
|
453 | attrs: {
|
454 | 'data-app': true
|
455 | },
|
456 | domProps: {
|
457 | id: this.id
|
458 | }
|
459 | }, [wrapper]);
|
460 | }
|
461 | }));
|
462 |
|
463 | }),
|
464 |
|
465 | "./src/components/VApp/index.ts":
|
466 |
|
467 |
|
468 |
|
469 |
|
470 | (function(module, __webpack_exports__, __webpack_require__) {
|
471 |
|
472 | "use strict";
|
473 | __webpack_require__.r(__webpack_exports__);
|
474 | var _VApp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VApp/VApp.ts");
|
475 | __webpack_require__.d(__webpack_exports__, "VApp", function() { return _VApp__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
476 |
|
477 |
|
478 |
|
479 | __webpack_exports__["default"] = (_VApp__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
480 |
|
481 | }),
|
482 |
|
483 | "./src/components/VAppBar/VAppBar.sass":
|
484 |
|
485 |
|
486 |
|
487 |
|
488 | (function(module, exports, __webpack_require__) {
|
489 |
|
490 |
|
491 |
|
492 | }),
|
493 |
|
494 | "./src/components/VAppBar/VAppBar.ts":
|
495 |
|
496 |
|
497 |
|
498 |
|
499 | (function(module, __webpack_exports__, __webpack_require__) {
|
500 |
|
501 | "use strict";
|
502 | __webpack_require__.r(__webpack_exports__);
|
503 | var _VAppBar_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VAppBar/VAppBar.sass");
|
504 | var _VAppBar_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VAppBar_sass__WEBPACK_IMPORTED_MODULE_0__);
|
505 | var _VToolbar_VToolbar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VToolbar/VToolbar.ts");
|
506 | var _directives_scroll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/directives/scroll/index.ts");
|
507 | var _mixins_applicationable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/applicationable/index.ts");
|
508 | var _mixins_scrollable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/scrollable/index.ts");
|
509 | var _mixins_ssr_bootable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/ssr-bootable/index.ts");
|
510 | var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/mixins/toggleable/index.ts");
|
511 | var _util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/util/helpers.ts");
|
512 | var _util_mixins__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/util/mixins.ts");
|
513 | var __assign = undefined && undefined.__assign || function () {
|
514 | __assign = Object.assign || function (t) {
|
515 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
516 | s = arguments[i];
|
517 |
|
518 | for (var p in s) {
|
519 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
520 | }
|
521 | }
|
522 |
|
523 | return t;
|
524 | };
|
525 |
|
526 | return __assign.apply(this, arguments);
|
527 | };
|
528 |
|
529 |
|
530 |
|
531 |
|
532 |
|
533 |
|
534 |
|
535 |
|
536 |
|
537 |
|
538 |
|
539 |
|
540 |
|
541 |
|
542 |
|
543 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_8__["default"])(_VToolbar_VToolbar__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_scrollable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_ssr_bootable__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_mixins_applicationable__WEBPACK_IMPORTED_MODULE_3__["default"])('top', ['clippedLeft', 'clippedRight', 'computedHeight', 'invertedScroll', 'isExtended', 'isProminent', 'value']));
|
544 |
|
545 |
|
546 | __webpack_exports__["default"] = (baseMixins.extend({
|
547 | name: 'v-app-bar',
|
548 | directives: {
|
549 | Scroll: _directives_scroll__WEBPACK_IMPORTED_MODULE_2__["default"]
|
550 | },
|
551 | props: {
|
552 | clippedLeft: Boolean,
|
553 | clippedRight: Boolean,
|
554 | collapseOnScroll: Boolean,
|
555 | elevateOnScroll: Boolean,
|
556 | fadeImgOnScroll: Boolean,
|
557 | hideOnScroll: Boolean,
|
558 | invertedScroll: Boolean,
|
559 | scrollOffScreen: Boolean,
|
560 | shrinkOnScroll: Boolean,
|
561 | value: {
|
562 | type: Boolean,
|
563 | default: true
|
564 | }
|
565 | },
|
566 | data: function data() {
|
567 | return {
|
568 | isActive: this.value
|
569 | };
|
570 | },
|
571 | computed: {
|
572 | applicationProperty: function applicationProperty() {
|
573 | return !this.bottom ? 'top' : 'bottom';
|
574 | },
|
575 | canScroll: function canScroll() {
|
576 | return _mixins_scrollable__WEBPACK_IMPORTED_MODULE_4__["default"].options.computed.canScroll.call(this) && (this.invertedScroll || this.elevateOnScroll || this.hideOnScroll || this.collapseOnScroll || this.isBooted ||
|
577 |
|
578 |
|
579 | !this.value);
|
580 | },
|
581 | classes: function classes() {
|
582 | return __assign({}, _VToolbar_VToolbar__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this), {
|
583 | 'v-toolbar--collapse': this.collapse || this.collapseOnScroll,
|
584 | 'v-app-bar': true,
|
585 | 'v-app-bar--clipped': this.clippedLeft || this.clippedRight,
|
586 | 'v-app-bar--fade-img-on-scroll': this.fadeImgOnScroll,
|
587 | 'v-app-bar--elevate-on-scroll': this.elevateOnScroll,
|
588 | 'v-app-bar--fixed': !this.absolute && (this.app || this.fixed),
|
589 | 'v-app-bar--hide-shadow': this.hideShadow,
|
590 | 'v-app-bar--is-scrolled': this.currentScroll > 0,
|
591 | 'v-app-bar--shrink-on-scroll': this.shrinkOnScroll
|
592 | });
|
593 | },
|
594 | computedContentHeight: function computedContentHeight() {
|
595 | if (!this.shrinkOnScroll) return _VToolbar_VToolbar__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.computedContentHeight.call(this);
|
596 | var height = this.computedOriginalHeight;
|
597 | var min = this.dense ? 48 : 56;
|
598 | var max = height;
|
599 | var difference = max - min;
|
600 | var iteration = difference / this.computedScrollThreshold;
|
601 | var offset = this.currentScroll * iteration;
|
602 | return Math.max(min, max - offset);
|
603 | },
|
604 | computedFontSize: function computedFontSize() {
|
605 | if (!this.isProminent) return undefined;
|
606 | var max = this.dense ? 96 : 128;
|
607 | var difference = max - this.computedContentHeight;
|
608 | var increment = 0.00347;
|
609 |
|
610 | return Number((1.50 - difference * increment).toFixed(2));
|
611 | },
|
612 | computedLeft: function computedLeft() {
|
613 | if (!this.app || this.clippedLeft) return 0;
|
614 | return this.$vuetify.application.left;
|
615 | },
|
616 | computedMarginTop: function computedMarginTop() {
|
617 | if (!this.app) return 0;
|
618 | return this.$vuetify.application.bar;
|
619 | },
|
620 | computedOpacity: function computedOpacity() {
|
621 | if (!this.fadeImgOnScroll) return undefined;
|
622 | var opacity = Math.max((this.computedScrollThreshold - this.currentScroll) / this.computedScrollThreshold, 0);
|
623 | return Number(parseFloat(opacity).toFixed(2));
|
624 | },
|
625 | computedOriginalHeight: function computedOriginalHeight() {
|
626 | var height = _VToolbar_VToolbar__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.computedContentHeight.call(this);
|
627 | if (this.isExtended) height += parseInt(this.extensionHeight);
|
628 | return height;
|
629 | },
|
630 | computedRight: function computedRight() {
|
631 | if (!this.app || this.clippedRight) return 0;
|
632 | return this.$vuetify.application.right;
|
633 | },
|
634 | computedScrollThreshold: function computedScrollThreshold() {
|
635 | if (this.scrollThreshold) return Number(this.scrollThreshold);
|
636 | return this.computedOriginalHeight - (this.dense ? 48 : 56);
|
637 | },
|
638 | computedTransform: function computedTransform() {
|
639 | if (!this.canScroll || this.elevateOnScroll && this.currentScroll === 0 && this.isActive) return 0;
|
640 | if (this.isActive) return 0;
|
641 | var scrollOffScreen = this.scrollOffScreen ? this.computedHeight : this.computedContentHeight;
|
642 | return this.bottom ? scrollOffScreen : -scrollOffScreen;
|
643 | },
|
644 | hideShadow: function hideShadow() {
|
645 | if (this.elevateOnScroll && this.isExtended) {
|
646 | return this.currentScroll < this.computedScrollThreshold;
|
647 | }
|
648 |
|
649 | if (this.elevateOnScroll) {
|
650 | return this.currentScroll === 0 || this.computedTransform < 0;
|
651 | }
|
652 |
|
653 | return (!this.isExtended || this.scrollOffScreen) && this.computedTransform !== 0;
|
654 | },
|
655 | isCollapsed: function isCollapsed() {
|
656 | if (!this.collapseOnScroll) {
|
657 | return _VToolbar_VToolbar__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.isCollapsed.call(this);
|
658 | }
|
659 |
|
660 | return this.currentScroll > 0;
|
661 | },
|
662 | isProminent: function isProminent() {
|
663 | return _VToolbar_VToolbar__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.isProminent.call(this) || this.shrinkOnScroll;
|
664 | },
|
665 | styles: function styles() {
|
666 | return __assign({}, _VToolbar_VToolbar__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.styles.call(this), {
|
667 | fontSize: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["convertToUnit"])(this.computedFontSize, 'rem'),
|
668 | marginTop: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["convertToUnit"])(this.computedMarginTop),
|
669 | transform: "translateY(" + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["convertToUnit"])(this.computedTransform) + ")",
|
670 | left: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["convertToUnit"])(this.computedLeft),
|
671 | right: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["convertToUnit"])(this.computedRight)
|
672 | });
|
673 | }
|
674 | },
|
675 | watch: {
|
676 | canScroll: 'onScroll',
|
677 | computedTransform: function computedTransform() {
|
678 |
|
679 |
|
680 |
|
681 |
|
682 |
|
683 |
|
684 | if (!this.canScroll || !this.clippedLeft && !this.clippedRight) return;
|
685 | this.callUpdate();
|
686 | },
|
687 | invertedScroll: function invertedScroll(val) {
|
688 | this.isActive = !val;
|
689 | }
|
690 | },
|
691 | created: function created() {
|
692 | if (this.invertedScroll) this.isActive = false;
|
693 | },
|
694 | methods: {
|
695 | genBackground: function genBackground() {
|
696 | var render = _VToolbar_VToolbar__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genBackground.call(this);
|
697 | render.data = this._b(render.data || {}, render.tag, {
|
698 | style: {
|
699 | opacity: this.computedOpacity
|
700 | }
|
701 | });
|
702 | return render;
|
703 | },
|
704 | updateApplication: function updateApplication() {
|
705 | return this.invertedScroll ? 0 : this.computedHeight + this.computedTransform;
|
706 | },
|
707 | thresholdMet: function thresholdMet() {
|
708 | if (this.invertedScroll) {
|
709 | this.isActive = this.currentScroll > this.computedScrollThreshold;
|
710 | return;
|
711 | }
|
712 |
|
713 | if (this.currentThreshold < this.computedScrollThreshold) return;
|
714 |
|
715 | if (this.hideOnScroll) {
|
716 | this.isActive = this.isScrollingUp;
|
717 | }
|
718 |
|
719 | this.savedScroll = this.currentScroll;
|
720 | }
|
721 | },
|
722 | render: function render(h) {
|
723 | var render = _VToolbar_VToolbar__WEBPACK_IMPORTED_MODULE_1__["default"].options.render.call(this, h);
|
724 | render.data = render.data || {};
|
725 |
|
726 | if (this.canScroll) {
|
727 | render.data.directives = render.data.directives || [];
|
728 | render.data.directives.push({
|
729 | arg: this.scrollTarget,
|
730 | name: 'scroll',
|
731 | value: this.onScroll
|
732 | });
|
733 | }
|
734 |
|
735 | return render;
|
736 | }
|
737 | }));
|
738 |
|
739 | }),
|
740 |
|
741 | "./src/components/VAppBar/VAppBarNavIcon.ts":
|
742 |
|
743 |
|
744 |
|
745 |
|
746 | (function(module, __webpack_exports__, __webpack_require__) {
|
747 |
|
748 | "use strict";
|
749 | __webpack_require__.r(__webpack_exports__);
|
750 | var _VIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
751 | var _VBtn_VBtn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VBtn/VBtn.ts");
|
752 | var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "vue");
|
753 | var vue__WEBPACK_IMPORTED_MODULE_2___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
|
754 | var __assign = undefined && undefined.__assign || function () {
|
755 | __assign = Object.assign || function (t) {
|
756 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
757 | s = arguments[i];
|
758 |
|
759 | for (var p in s) {
|
760 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
761 | }
|
762 | }
|
763 |
|
764 | return t;
|
765 | };
|
766 |
|
767 | return __assign.apply(this, arguments);
|
768 | };
|
769 |
|
770 |
|
771 |
|
772 |
|
773 |
|
774 |
|
775 |
|
776 |
|
777 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_2___default.a.extend({
|
778 | name: 'v-app-bar-nav-icon',
|
779 | functional: true,
|
780 | render: function render(h, _a) {
|
781 | var slots = _a.slots,
|
782 | listeners = _a.listeners,
|
783 | props = _a.props,
|
784 | data = _a.data;
|
785 | var d = Object.assign(data, {
|
786 | staticClass: ("v-app-bar__nav-icon " + (data.staticClass || '')).trim(),
|
787 | props: __assign({}, props, {
|
788 | icon: true
|
789 | }),
|
790 | on: listeners
|
791 | });
|
792 | var defaultSlot = slots().default;
|
793 | return h(_VBtn_VBtn__WEBPACK_IMPORTED_MODULE_1__["default"], d, defaultSlot || [h(_VIcon__WEBPACK_IMPORTED_MODULE_0__["default"], '$menu')]);
|
794 | }
|
795 | }));
|
796 |
|
797 | }),
|
798 |
|
799 | "./src/components/VAppBar/index.ts":
|
800 |
|
801 |
|
802 |
|
803 |
|
804 | (function(module, __webpack_exports__, __webpack_require__) {
|
805 |
|
806 | "use strict";
|
807 | __webpack_require__.r(__webpack_exports__);
|
808 | var _VAppBar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VAppBar/VAppBar.ts");
|
809 | __webpack_require__.d(__webpack_exports__, "VAppBar", function() { return _VAppBar__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
810 |
|
811 | var _VAppBarNavIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VAppBar/VAppBarNavIcon.ts");
|
812 | __webpack_require__.d(__webpack_exports__, "VAppBarNavIcon", function() { return _VAppBarNavIcon__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
813 |
|
814 |
|
815 |
|
816 |
|
817 | __webpack_exports__["default"] = ({
|
818 | $_vuetify_subcomponents: {
|
819 | VAppBar: _VAppBar__WEBPACK_IMPORTED_MODULE_0__["default"],
|
820 | VAppBarNavIcon: _VAppBarNavIcon__WEBPACK_IMPORTED_MODULE_1__["default"]
|
821 | }
|
822 | });
|
823 |
|
824 | }),
|
825 |
|
826 | "./src/components/VAutocomplete/VAutocomplete.sass":
|
827 |
|
828 |
|
829 |
|
830 |
|
831 | (function(module, exports, __webpack_require__) {
|
832 |
|
833 |
|
834 |
|
835 | }),
|
836 |
|
837 | "./src/components/VAutocomplete/VAutocomplete.ts":
|
838 |
|
839 |
|
840 |
|
841 |
|
842 | (function(module, __webpack_exports__, __webpack_require__) {
|
843 |
|
844 | "use strict";
|
845 | __webpack_require__.r(__webpack_exports__);
|
846 | var _VAutocomplete_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VAutocomplete/VAutocomplete.sass");
|
847 | var _VAutocomplete_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VAutocomplete_sass__WEBPACK_IMPORTED_MODULE_0__);
|
848 | var _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VSelect/VSelect.ts");
|
849 | var _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VTextField/VTextField.ts");
|
850 | var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/helpers.ts");
|
851 | var __assign = undefined && undefined.__assign || function () {
|
852 | __assign = Object.assign || function (t) {
|
853 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
854 | s = arguments[i];
|
855 |
|
856 | for (var p in s) {
|
857 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
858 | }
|
859 | }
|
860 |
|
861 | return t;
|
862 | };
|
863 |
|
864 | return __assign.apply(this, arguments);
|
865 | };
|
866 |
|
867 |
|
868 |
|
869 |
|
870 |
|
871 |
|
872 |
|
873 |
|
874 |
|
875 | var defaultMenuProps = __assign({}, _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["defaultMenuProps"], {
|
876 | offsetY: true,
|
877 | offsetOverflow: true,
|
878 | transition: false
|
879 | });
|
880 |
|
881 |
|
882 |
|
883 | __webpack_exports__["default"] = (_VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].extend({
|
884 | name: 'v-autocomplete',
|
885 | props: {
|
886 | allowOverflow: {
|
887 | type: Boolean,
|
888 | default: true
|
889 | },
|
890 | autoSelectFirst: {
|
891 | type: Boolean,
|
892 | default: false
|
893 | },
|
894 | filter: {
|
895 | type: Function,
|
896 | default: function _default(item, queryText, itemText) {
|
897 | return itemText.toLocaleLowerCase().indexOf(queryText.toLocaleLowerCase()) > -1;
|
898 | }
|
899 | },
|
900 | hideNoData: Boolean,
|
901 | menuProps: {
|
902 | type: _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.props.menuProps.type,
|
903 | default: function _default() {
|
904 | return defaultMenuProps;
|
905 | }
|
906 | },
|
907 | noFilter: Boolean,
|
908 | searchInput: {
|
909 | type: String,
|
910 | default: undefined
|
911 | }
|
912 | },
|
913 | data: function data() {
|
914 | return {
|
915 | lazySearch: this.searchInput
|
916 | };
|
917 | },
|
918 | computed: {
|
919 | classes: function classes() {
|
920 | return __assign({}, _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this), {
|
921 | 'v-autocomplete': true,
|
922 | 'v-autocomplete--is-selecting-index': this.selectedIndex > -1
|
923 | });
|
924 | },
|
925 | computedItems: function computedItems() {
|
926 | return this.filteredItems;
|
927 | },
|
928 | selectedValues: function selectedValues() {
|
929 | var _this = this;
|
930 |
|
931 | return this.selectedItems.map(function (item) {
|
932 | return _this.getValue(item);
|
933 | });
|
934 | },
|
935 | hasDisplayedItems: function hasDisplayedItems() {
|
936 | var _this = this;
|
937 |
|
938 | return this.hideSelected ? this.filteredItems.some(function (item) {
|
939 | return !_this.hasItem(item);
|
940 | }) : this.filteredItems.length > 0;
|
941 | },
|
942 | currentRange: function currentRange() {
|
943 | if (this.selectedItem == null) return 0;
|
944 | return String(this.getText(this.selectedItem)).length;
|
945 | },
|
946 | filteredItems: function filteredItems() {
|
947 | var _this = this;
|
948 |
|
949 | if (!this.isSearching || this.noFilter || this.internalSearch == null) return this.allItems;
|
950 | return this.allItems.filter(function (item) {
|
951 | return _this.filter(item, String(_this.internalSearch), String(_this.getText(item)));
|
952 | });
|
953 | },
|
954 | internalSearch: {
|
955 | get: function get() {
|
956 | return this.lazySearch;
|
957 | },
|
958 | set: function set(val) {
|
959 | this.lazySearch = val;
|
960 | this.$emit('update:search-input', val);
|
961 | }
|
962 | },
|
963 | isAnyValueAllowed: function isAnyValueAllowed() {
|
964 | return false;
|
965 | },
|
966 | isDirty: function isDirty() {
|
967 | return this.searchIsDirty || this.selectedItems.length > 0;
|
968 | },
|
969 | isSearching: function isSearching() {
|
970 | return this.multiple && this.searchIsDirty || this.searchIsDirty && this.internalSearch !== this.getText(this.selectedItem);
|
971 | },
|
972 | menuCanShow: function menuCanShow() {
|
973 | if (!this.isFocused) return false;
|
974 | return this.hasDisplayedItems || !this.hideNoData;
|
975 | },
|
976 | $_menuProps: function $_menuProps() {
|
977 | var props = _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.$_menuProps.call(this);
|
978 | props.contentClass = ("v-autocomplete__content " + (props.contentClass || '')).trim();
|
979 | return __assign({}, defaultMenuProps, props);
|
980 | },
|
981 | searchIsDirty: function searchIsDirty() {
|
982 | return this.internalSearch != null && this.internalSearch !== '';
|
983 | },
|
984 | selectedItem: function selectedItem() {
|
985 | var _this = this;
|
986 |
|
987 | if (this.multiple) return null;
|
988 | return this.selectedItems.find(function (i) {
|
989 | return _this.valueComparator(_this.getValue(i), _this.getValue(_this.internalValue));
|
990 | });
|
991 | },
|
992 | listData: function listData() {
|
993 | var data = _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.listData.call(this);
|
994 | data.props = __assign({}, data.props, {
|
995 | items: this.virtualizedItems,
|
996 | noFilter: this.noFilter || !this.isSearching || !this.filteredItems.length,
|
997 | searchInput: this.internalSearch
|
998 | });
|
999 | return data;
|
1000 | }
|
1001 | },
|
1002 | watch: {
|
1003 | filteredItems: 'onFilteredItemsChanged',
|
1004 | internalValue: 'setSearch',
|
1005 | isFocused: function isFocused(val) {
|
1006 | if (val) {
|
1007 | document.addEventListener('copy', this.onCopy);
|
1008 | this.$refs.input && this.$refs.input.select();
|
1009 | } else {
|
1010 | document.removeEventListener('copy', this.onCopy);
|
1011 | this.updateSelf();
|
1012 | }
|
1013 | },
|
1014 | isMenuActive: function isMenuActive(val) {
|
1015 | if (val || !this.hasSlot) return;
|
1016 | this.lazySearch = undefined;
|
1017 | },
|
1018 | items: function items(val, oldVal) {
|
1019 |
|
1020 |
|
1021 |
|
1022 |
|
1023 |
|
1024 | if (!(oldVal && oldVal.length) && this.hideNoData && this.isFocused && !this.isMenuActive && val.length) this.activateMenu();
|
1025 | },
|
1026 | searchInput: function searchInput(val) {
|
1027 | this.lazySearch = val;
|
1028 | },
|
1029 | internalSearch: 'onInternalSearchChanged',
|
1030 | itemText: 'updateSelf'
|
1031 | },
|
1032 | created: function created() {
|
1033 | this.setSearch();
|
1034 | },
|
1035 | methods: {
|
1036 | onFilteredItemsChanged: function onFilteredItemsChanged(val, oldVal) {
|
1037 | var _this = this;
|
1038 |
|
1039 |
|
1040 |
|
1041 | if (val === oldVal) return;
|
1042 | this.setMenuIndex(-1);
|
1043 | this.$nextTick(function () {
|
1044 | if (!_this.internalSearch || val.length !== 1 && !_this.autoSelectFirst) return;
|
1045 |
|
1046 | _this.$refs.menu.getTiles();
|
1047 |
|
1048 | _this.setMenuIndex(0);
|
1049 | });
|
1050 | },
|
1051 | onInternalSearchChanged: function onInternalSearchChanged() {
|
1052 | this.updateMenuDimensions();
|
1053 | },
|
1054 | updateMenuDimensions: function updateMenuDimensions() {
|
1055 |
|
1056 | this.isMenuActive && this.$refs.menu && this.$refs.menu.updateDimensions();
|
1057 | },
|
1058 | changeSelectedIndex: function changeSelectedIndex(keyCode) {
|
1059 |
|
1060 |
|
1061 | if (this.searchIsDirty || !this.multiple) return;
|
1062 | if (![_util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].backspace, _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].left, _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].right, _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].delete].includes(keyCode)) return;
|
1063 | var index = this.selectedItems.length - 1;
|
1064 |
|
1065 | if (keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].left) {
|
1066 | if (this.selectedIndex === -1) {
|
1067 | this.selectedIndex = index;
|
1068 | } else {
|
1069 | this.selectedIndex--;
|
1070 | }
|
1071 | } else if (keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].right) {
|
1072 | if (this.selectedIndex >= index) {
|
1073 | this.selectedIndex = -1;
|
1074 | } else {
|
1075 | this.selectedIndex++;
|
1076 | }
|
1077 | } else if (this.selectedIndex === -1) {
|
1078 | this.selectedIndex = index;
|
1079 | return;
|
1080 | }
|
1081 |
|
1082 | var currentItem = this.selectedItems[this.selectedIndex];
|
1083 |
|
1084 | if ([_util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].backspace, _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].delete].includes(keyCode) && !this.getDisabled(currentItem)) {
|
1085 | var newIndex = this.selectedIndex === index ? this.selectedIndex - 1 : this.selectedItems[this.selectedIndex + 1] ? this.selectedIndex : -1;
|
1086 |
|
1087 | if (newIndex === -1) {
|
1088 | this.setValue(this.multiple ? [] : undefined);
|
1089 | } else {
|
1090 | this.selectItem(currentItem);
|
1091 | }
|
1092 |
|
1093 | this.selectedIndex = newIndex;
|
1094 | }
|
1095 | },
|
1096 | clearableCallback: function clearableCallback() {
|
1097 | this.internalSearch = undefined;
|
1098 | _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.clearableCallback.call(this);
|
1099 | },
|
1100 | genInput: function genInput() {
|
1101 | var input = _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.genInput.call(this);
|
1102 | input.data = input.data || {};
|
1103 | input.data.attrs = input.data.attrs || {};
|
1104 | input.data.attrs.autocomplete = input.data.attrs.autocomplete || 'disabled';
|
1105 | input.data.domProps = input.data.domProps || {};
|
1106 | input.data.domProps.value = this.internalSearch;
|
1107 | return input;
|
1108 | },
|
1109 | genInputSlot: function genInputSlot() {
|
1110 | var slot = _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genInputSlot.call(this);
|
1111 | slot.data.attrs.role = 'combobox';
|
1112 | return slot;
|
1113 | },
|
1114 | genSelections: function genSelections() {
|
1115 | return this.hasSlot || this.multiple ? _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genSelections.call(this) : [];
|
1116 | },
|
1117 | onClick: function onClick() {
|
1118 | if (this.isDisabled) return;
|
1119 | this.selectedIndex > -1 ? this.selectedIndex = -1 : this.onFocus();
|
1120 | this.activateMenu();
|
1121 | },
|
1122 | onInput: function onInput(e) {
|
1123 | if (this.selectedIndex > -1 || !e.target) return;
|
1124 | var target = e.target;
|
1125 | var value = target.value;
|
1126 |
|
1127 | if (target.value) this.activateMenu();
|
1128 | this.internalSearch = value;
|
1129 | this.badInput = target.validity && target.validity.badInput;
|
1130 | },
|
1131 | onKeyDown: function onKeyDown(e) {
|
1132 | var keyCode = e.keyCode;
|
1133 | _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.onKeyDown.call(this, e);
|
1134 |
|
1135 |
|
1136 |
|
1137 |
|
1138 | this.changeSelectedIndex(keyCode);
|
1139 | },
|
1140 | onSpaceDown: function onSpaceDown(e) {},
|
1141 | onTabDown: function onTabDown(e) {
|
1142 | _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.onTabDown.call(this, e);
|
1143 | this.updateSelf();
|
1144 | },
|
1145 | onUpDown: function onUpDown() {
|
1146 |
|
1147 |
|
1148 |
|
1149 | this.activateMenu();
|
1150 | },
|
1151 | selectItem: function selectItem(item) {
|
1152 | _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.selectItem.call(this, item);
|
1153 | this.setSearch();
|
1154 | },
|
1155 | setSelectedItems: function setSelectedItems() {
|
1156 | _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.setSelectedItems.call(this);
|
1157 |
|
1158 |
|
1159 | if (!this.isFocused) this.setSearch();
|
1160 | },
|
1161 | setSearch: function setSearch() {
|
1162 | var _this = this;
|
1163 |
|
1164 |
|
1165 |
|
1166 | this.$nextTick(function () {
|
1167 | if (!_this.multiple || !_this.internalSearch || !_this.isMenuActive) {
|
1168 | _this.internalSearch = !_this.selectedItems.length || _this.multiple || _this.hasSlot ? null : _this.getText(_this.selectedItem);
|
1169 | }
|
1170 | });
|
1171 | },
|
1172 | updateSelf: function updateSelf() {
|
1173 | if (!this.searchIsDirty && !this.internalValue) return;
|
1174 |
|
1175 | if (!this.valueComparator(this.internalSearch, this.getValue(this.internalValue))) {
|
1176 | this.setSearch();
|
1177 | }
|
1178 | },
|
1179 | hasItem: function hasItem(item) {
|
1180 | return this.selectedValues.indexOf(this.getValue(item)) > -1;
|
1181 | },
|
1182 | onCopy: function onCopy(event) {
|
1183 | if (this.selectedIndex === -1) return;
|
1184 | var currentItem = this.selectedItems[this.selectedIndex];
|
1185 | var currentItemText = this.getText(currentItem);
|
1186 | event.clipboardData.setData('text/plain', currentItemText);
|
1187 | event.clipboardData.setData('text/vnd.vuetify.autocomplete.item+plain', currentItemText);
|
1188 | event.preventDefault();
|
1189 | }
|
1190 | }
|
1191 | }));
|
1192 |
|
1193 | }),
|
1194 |
|
1195 | "./src/components/VAutocomplete/index.ts":
|
1196 |
|
1197 |
|
1198 |
|
1199 |
|
1200 | (function(module, __webpack_exports__, __webpack_require__) {
|
1201 |
|
1202 | "use strict";
|
1203 | __webpack_require__.r(__webpack_exports__);
|
1204 | var _VAutocomplete__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VAutocomplete/VAutocomplete.ts");
|
1205 | __webpack_require__.d(__webpack_exports__, "VAutocomplete", function() { return _VAutocomplete__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
1206 |
|
1207 |
|
1208 |
|
1209 | __webpack_exports__["default"] = (_VAutocomplete__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
1210 |
|
1211 | }),
|
1212 |
|
1213 | "./src/components/VAvatar/VAvatar.sass":
|
1214 |
|
1215 |
|
1216 |
|
1217 |
|
1218 | (function(module, exports, __webpack_require__) {
|
1219 |
|
1220 |
|
1221 |
|
1222 | }),
|
1223 |
|
1224 | "./src/components/VAvatar/VAvatar.ts":
|
1225 |
|
1226 |
|
1227 |
|
1228 |
|
1229 | (function(module, __webpack_exports__, __webpack_require__) {
|
1230 |
|
1231 | "use strict";
|
1232 | __webpack_require__.r(__webpack_exports__);
|
1233 | var _VAvatar_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VAvatar/VAvatar.sass");
|
1234 | var _VAvatar_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VAvatar_sass__WEBPACK_IMPORTED_MODULE_0__);
|
1235 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
1236 | var _mixins_measurable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/measurable/index.ts");
|
1237 | var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/helpers.ts");
|
1238 | var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/mixins.ts");
|
1239 | var __assign = undefined && undefined.__assign || function () {
|
1240 | __assign = Object.assign || function (t) {
|
1241 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
1242 | s = arguments[i];
|
1243 |
|
1244 | for (var p in s) {
|
1245 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
1246 | }
|
1247 | }
|
1248 |
|
1249 | return t;
|
1250 | };
|
1251 |
|
1252 | return __assign.apply(this, arguments);
|
1253 | };
|
1254 |
|
1255 |
|
1256 |
|
1257 |
|
1258 |
|
1259 |
|
1260 |
|
1261 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_measurable__WEBPACK_IMPORTED_MODULE_2__["default"]
|
1262 |
|
1263 | ).extend({
|
1264 | name: 'v-avatar',
|
1265 | props: {
|
1266 | left: Boolean,
|
1267 | right: Boolean,
|
1268 | size: {
|
1269 | type: [Number, String],
|
1270 | default: 48
|
1271 | },
|
1272 | tile: Boolean
|
1273 | },
|
1274 | computed: {
|
1275 | classes: function classes() {
|
1276 | return {
|
1277 | 'v-avatar--left': this.left,
|
1278 | 'v-avatar--right': this.right,
|
1279 | 'v-avatar--tile': this.tile
|
1280 | };
|
1281 | },
|
1282 | styles: function styles() {
|
1283 | return __assign({
|
1284 | height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["convertToUnit"])(this.size),
|
1285 | minWidth: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["convertToUnit"])(this.size),
|
1286 | width: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["convertToUnit"])(this.size)
|
1287 | }, this.measurableStyles);
|
1288 | }
|
1289 | },
|
1290 | render: function render(h) {
|
1291 | var data = {
|
1292 | staticClass: 'v-avatar',
|
1293 | class: this.classes,
|
1294 | style: this.styles,
|
1295 | on: this.$listeners
|
1296 | };
|
1297 | return h('div', this.setBackgroundColor(this.color, data), this.$slots.default);
|
1298 | }
|
1299 | }));
|
1300 |
|
1301 | }),
|
1302 |
|
1303 | "./src/components/VAvatar/index.ts":
|
1304 |
|
1305 |
|
1306 |
|
1307 |
|
1308 | (function(module, __webpack_exports__, __webpack_require__) {
|
1309 |
|
1310 | "use strict";
|
1311 | __webpack_require__.r(__webpack_exports__);
|
1312 | var _VAvatar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VAvatar/VAvatar.ts");
|
1313 | __webpack_require__.d(__webpack_exports__, "VAvatar", function() { return _VAvatar__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
1314 |
|
1315 |
|
1316 |
|
1317 | __webpack_exports__["default"] = (_VAvatar__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
1318 |
|
1319 | }),
|
1320 |
|
1321 | "./src/components/VBadge/VBadge.sass":
|
1322 |
|
1323 |
|
1324 |
|
1325 |
|
1326 | (function(module, exports, __webpack_require__) {
|
1327 |
|
1328 |
|
1329 |
|
1330 | }),
|
1331 |
|
1332 | "./src/components/VBadge/VBadge.ts":
|
1333 |
|
1334 |
|
1335 |
|
1336 |
|
1337 | (function(module, __webpack_exports__, __webpack_require__) {
|
1338 |
|
1339 | "use strict";
|
1340 | __webpack_require__.r(__webpack_exports__);
|
1341 | var _VBadge_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VBadge/VBadge.sass");
|
1342 | var _VBadge_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VBadge_sass__WEBPACK_IMPORTED_MODULE_0__);
|
1343 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
1344 | var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/toggleable/index.ts");
|
1345 | var _mixins_positionable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/positionable/index.ts");
|
1346 | var _mixins_transitionable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/transitionable/index.ts");
|
1347 | var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/util/mixins.ts");
|
1348 |
|
1349 |
|
1350 |
|
1351 |
|
1352 |
|
1353 |
|
1354 |
|
1355 |
|
1356 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_2__["default"], Object(_mixins_positionable__WEBPACK_IMPORTED_MODULE_3__["factory"])(['left', 'bottom']), _mixins_transitionable__WEBPACK_IMPORTED_MODULE_4__["default"]
|
1357 |
|
1358 | ).extend({
|
1359 | name: 'v-badge',
|
1360 | props: {
|
1361 | color: {
|
1362 | type: String,
|
1363 | default: 'primary'
|
1364 | },
|
1365 | overlap: Boolean,
|
1366 | transition: {
|
1367 | type: String,
|
1368 | default: 'fab-transition'
|
1369 | },
|
1370 | value: {
|
1371 | default: true
|
1372 | }
|
1373 | },
|
1374 | computed: {
|
1375 | classes: function classes() {
|
1376 | return {
|
1377 | 'v-badge--bottom': this.bottom,
|
1378 | 'v-badge--left': this.left,
|
1379 | 'v-badge--overlap': this.overlap
|
1380 | };
|
1381 | }
|
1382 | },
|
1383 | render: function render(h) {
|
1384 | var badge = this.$slots.badge && [h('span', this.setBackgroundColor(this.color, {
|
1385 | staticClass: 'v-badge__badge',
|
1386 | attrs: this.$attrs,
|
1387 | directives: [{
|
1388 | name: 'show',
|
1389 | value: this.isActive
|
1390 | }]
|
1391 | }), this.$slots.badge)];
|
1392 | return h('span', {
|
1393 | staticClass: 'v-badge',
|
1394 | class: this.classes
|
1395 | }, [this.$slots.default, this.transition ? h('transition', {
|
1396 | props: {
|
1397 | name: this.transition,
|
1398 | origin: this.origin,
|
1399 | mode: this.mode
|
1400 | }
|
1401 | }, badge) : badge]);
|
1402 | }
|
1403 | }));
|
1404 |
|
1405 | }),
|
1406 |
|
1407 | "./src/components/VBadge/index.ts":
|
1408 |
|
1409 |
|
1410 |
|
1411 |
|
1412 | (function(module, __webpack_exports__, __webpack_require__) {
|
1413 |
|
1414 | "use strict";
|
1415 | __webpack_require__.r(__webpack_exports__);
|
1416 | var _VBadge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VBadge/VBadge.ts");
|
1417 | __webpack_require__.d(__webpack_exports__, "VBadge", function() { return _VBadge__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
1418 |
|
1419 |
|
1420 |
|
1421 | __webpack_exports__["default"] = (_VBadge__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
1422 |
|
1423 | }),
|
1424 |
|
1425 | "./src/components/VBanner/VBanner.sass":
|
1426 |
|
1427 |
|
1428 |
|
1429 |
|
1430 | (function(module, exports, __webpack_require__) {
|
1431 |
|
1432 |
|
1433 |
|
1434 | }),
|
1435 |
|
1436 | "./src/components/VBanner/VBanner.ts":
|
1437 |
|
1438 |
|
1439 |
|
1440 |
|
1441 | (function(module, __webpack_exports__, __webpack_require__) {
|
1442 |
|
1443 | "use strict";
|
1444 | __webpack_require__.r(__webpack_exports__);
|
1445 | var _VBanner_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VBanner/VBanner.sass");
|
1446 | var _VBanner_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VBanner_sass__WEBPACK_IMPORTED_MODULE_0__);
|
1447 | var _VSheet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VSheet/index.ts");
|
1448 | var _VAvatar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VAvatar/index.ts");
|
1449 | var _VIcon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
1450 | var _transitions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/transitions/index.ts");
|
1451 | var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/toggleable/index.ts");
|
1452 | var _util_mixins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/util/mixins.ts");
|
1453 | var __assign = undefined && undefined.__assign || function () {
|
1454 | __assign = Object.assign || function (t) {
|
1455 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
1456 | s = arguments[i];
|
1457 |
|
1458 | for (var p in s) {
|
1459 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
1460 | }
|
1461 | }
|
1462 |
|
1463 | return t;
|
1464 | };
|
1465 |
|
1466 | return __assign.apply(this, arguments);
|
1467 | };
|
1468 |
|
1469 |
|
1470 |
|
1471 |
|
1472 |
|
1473 |
|
1474 |
|
1475 |
|
1476 |
|
1477 |
|
1478 |
|
1479 |
|
1480 |
|
1481 |
|
1482 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_6__["default"])(_VSheet__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_5__["default"]).extend({
|
1483 | name: 'v-banner',
|
1484 | inheritAttrs: false,
|
1485 | props: {
|
1486 | icon: String,
|
1487 | iconColor: String,
|
1488 | mobileBreakPoint: {
|
1489 | type: [Number, String],
|
1490 | default: 960
|
1491 | },
|
1492 | singleLine: Boolean,
|
1493 | sticky: Boolean,
|
1494 | tile: {
|
1495 | type: Boolean,
|
1496 | default: true
|
1497 | },
|
1498 | value: {
|
1499 | type: Boolean,
|
1500 | default: true
|
1501 | }
|
1502 | },
|
1503 | computed: {
|
1504 | classes: function classes() {
|
1505 | return __assign({}, _VSheet__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this), {
|
1506 | 'v-banner--has-icon': this.hasIcon,
|
1507 | 'v-banner--is-mobile': this.isMobile,
|
1508 | 'v-banner--single-line': this.singleLine,
|
1509 | 'v-banner--sticky': this.sticky
|
1510 | });
|
1511 | },
|
1512 | hasActions: function hasActions() {
|
1513 | return Boolean(this.$slots.actions || this.$scopedSlots.actions);
|
1514 | },
|
1515 | hasIcon: function hasIcon() {
|
1516 | return Boolean(this.icon || this.$slots.icon);
|
1517 | },
|
1518 | isMobile: function isMobile() {
|
1519 | return this.$vuetify.breakpoint.width < Number(this.mobileBreakPoint);
|
1520 | },
|
1521 | styles: function styles() {
|
1522 | var styles = _VSheet__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.styles.call(this);
|
1523 | if (!this.sticky) return styles;
|
1524 | var _a = this.$vuetify.application,
|
1525 | bar = _a.bar,
|
1526 | top = _a.top;
|
1527 | return __assign({}, styles, {
|
1528 | position: 'sticky',
|
1529 | top: bar + top + "px",
|
1530 | zIndex: 1
|
1531 | });
|
1532 | }
|
1533 | },
|
1534 | methods: {
|
1535 |
|
1536 | toggle: function toggle() {
|
1537 | this.isActive = !this.isActive;
|
1538 | },
|
1539 | iconClick: function iconClick(e) {
|
1540 | this.$emit('click:icon', e);
|
1541 | },
|
1542 | genIcon: function genIcon() {
|
1543 | if (!this.hasIcon) return undefined;
|
1544 | var content;
|
1545 |
|
1546 | if (this.icon) {
|
1547 | content = this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
1548 | props: {
|
1549 | color: this.iconColor,
|
1550 | size: 28
|
1551 | }
|
1552 | }, [this.icon]);
|
1553 | } else {
|
1554 | content = this.$slots.icon;
|
1555 | }
|
1556 |
|
1557 | return this.$createElement(_VAvatar__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
1558 | staticClass: 'v-banner__icon',
|
1559 | props: {
|
1560 | color: this.color,
|
1561 | size: 40
|
1562 | },
|
1563 | on: {
|
1564 | click: this.iconClick
|
1565 | }
|
1566 | }, [content]);
|
1567 | },
|
1568 | genText: function genText() {
|
1569 | return this.$createElement('div', {
|
1570 | staticClass: 'v-banner__text'
|
1571 | }, this.$slots.default);
|
1572 | },
|
1573 | genActions: function genActions() {
|
1574 | var _this = this;
|
1575 |
|
1576 | if (!this.hasActions) return undefined;
|
1577 | var children = this.$scopedSlots.actions ? this.$scopedSlots.actions({
|
1578 | dismiss: function dismiss() {
|
1579 | return _this.isActive = false;
|
1580 | }
|
1581 | }) : this.$slots.actions;
|
1582 | return this.$createElement('div', {
|
1583 | staticClass: 'v-banner__actions'
|
1584 | }, children);
|
1585 | },
|
1586 | genContent: function genContent() {
|
1587 | return this.$createElement('div', {
|
1588 | staticClass: 'v-banner__content'
|
1589 | }, [this.genIcon(), this.genText()]);
|
1590 | },
|
1591 | genWrapper: function genWrapper() {
|
1592 | return this.$createElement('div', {
|
1593 | staticClass: 'v-banner__wrapper'
|
1594 | }, [this.genContent(), this.genActions()]);
|
1595 | }
|
1596 | },
|
1597 | render: function render(h) {
|
1598 | return h(_transitions__WEBPACK_IMPORTED_MODULE_4__["VExpandTransition"], [h('div', {
|
1599 | staticClass: 'v-banner',
|
1600 | class: this.classes,
|
1601 | style: this.styles,
|
1602 | directives: [{
|
1603 | name: 'show',
|
1604 | value: this.isActive
|
1605 | }]
|
1606 | }, [this.genWrapper()])]);
|
1607 | }
|
1608 | }));
|
1609 |
|
1610 | }),
|
1611 |
|
1612 | "./src/components/VBanner/index.ts":
|
1613 |
|
1614 |
|
1615 |
|
1616 |
|
1617 | (function(module, __webpack_exports__, __webpack_require__) {
|
1618 |
|
1619 | "use strict";
|
1620 | __webpack_require__.r(__webpack_exports__);
|
1621 | var _VBanner__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VBanner/VBanner.ts");
|
1622 | __webpack_require__.d(__webpack_exports__, "VBanner", function() { return _VBanner__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
1623 |
|
1624 |
|
1625 |
|
1626 | __webpack_exports__["default"] = (_VBanner__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
1627 |
|
1628 | }),
|
1629 |
|
1630 | "./src/components/VBottomNavigation/VBottomNavigation.sass":
|
1631 |
|
1632 |
|
1633 |
|
1634 |
|
1635 | (function(module, exports, __webpack_require__) {
|
1636 |
|
1637 |
|
1638 |
|
1639 | }),
|
1640 |
|
1641 | "./src/components/VBottomNavigation/VBottomNavigation.ts":
|
1642 |
|
1643 |
|
1644 |
|
1645 |
|
1646 | (function(module, __webpack_exports__, __webpack_require__) {
|
1647 |
|
1648 | "use strict";
|
1649 | __webpack_require__.r(__webpack_exports__);
|
1650 | var _VBottomNavigation_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VBottomNavigation/VBottomNavigation.sass");
|
1651 | var _VBottomNavigation_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VBottomNavigation_sass__WEBPACK_IMPORTED_MODULE_0__);
|
1652 | var _mixins_applicationable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/applicationable/index.ts");
|
1653 | var _mixins_button_group__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/button-group/index.ts");
|
1654 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
1655 | var _mixins_measurable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/measurable/index.ts");
|
1656 | var _mixins_proxyable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/proxyable/index.ts");
|
1657 | var _mixins_scrollable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/mixins/scrollable/index.ts");
|
1658 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
1659 | var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/mixins/toggleable/index.ts");
|
1660 | var _util_mixins__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__( "./src/util/mixins.ts");
|
1661 | var _util_console__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__( "./src/util/console.ts");
|
1662 | var __assign = undefined && undefined.__assign || function () {
|
1663 | __assign = Object.assign || function (t) {
|
1664 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
1665 | s = arguments[i];
|
1666 |
|
1667 | for (var p in s) {
|
1668 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
1669 | }
|
1670 | }
|
1671 |
|
1672 | return t;
|
1673 | };
|
1674 |
|
1675 | return __assign.apply(this, arguments);
|
1676 | };
|
1677 |
|
1678 |
|
1679 |
|
1680 |
|
1681 |
|
1682 |
|
1683 |
|
1684 |
|
1685 |
|
1686 |
|
1687 |
|
1688 |
|
1689 |
|
1690 |
|
1691 |
|
1692 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_9__["default"])(Object(_mixins_applicationable__WEBPACK_IMPORTED_MODULE_1__["default"])('bottom', ['height', 'inputValue']), _mixins_colorable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_measurable__WEBPACK_IMPORTED_MODULE_4__["default"], Object(_mixins_toggleable__WEBPACK_IMPORTED_MODULE_8__["factory"])('inputValue'), _mixins_proxyable__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_scrollable__WEBPACK_IMPORTED_MODULE_6__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_7__["default"]
|
1693 |
|
1694 | ).extend({
|
1695 | name: 'v-bottom-navigation',
|
1696 | props: {
|
1697 | activeClass: {
|
1698 | type: String,
|
1699 | default: 'v-btn--active'
|
1700 | },
|
1701 | backgroundColor: String,
|
1702 | grow: Boolean,
|
1703 | height: {
|
1704 | type: [Number, String],
|
1705 | default: 56
|
1706 | },
|
1707 | hideOnScroll: Boolean,
|
1708 | horizontal: Boolean,
|
1709 | inputValue: {
|
1710 | type: Boolean,
|
1711 | default: true
|
1712 | },
|
1713 | mandatory: Boolean,
|
1714 | shift: Boolean
|
1715 | },
|
1716 | data: function data() {
|
1717 | return {
|
1718 | isActive: this.inputValue
|
1719 | };
|
1720 | },
|
1721 | computed: {
|
1722 | canScroll: function canScroll() {
|
1723 | return _mixins_scrollable__WEBPACK_IMPORTED_MODULE_6__["default"].options.computed.canScroll.call(this) && (this.hideOnScroll || !this.inputValue);
|
1724 | },
|
1725 | classes: function classes() {
|
1726 | return {
|
1727 | 'v-bottom-navigation--absolute': this.absolute,
|
1728 | 'v-bottom-navigation--grow': this.grow,
|
1729 | 'v-bottom-navigation--fixed': !this.absolute && (this.app || this.fixed),
|
1730 | 'v-bottom-navigation--horizontal': this.horizontal,
|
1731 | 'v-bottom-navigation--shift': this.shift
|
1732 | };
|
1733 | },
|
1734 | styles: function styles() {
|
1735 | return __assign({}, this.measurableStyles, {
|
1736 | transform: this.isActive ? 'none' : 'translateY(100%)'
|
1737 | });
|
1738 | }
|
1739 | },
|
1740 | created: function created() {
|
1741 |
|
1742 | if (this.$attrs.hasOwnProperty('active')) {
|
1743 | Object(_util_console__WEBPACK_IMPORTED_MODULE_10__["breaking"])('active.sync', 'value or v-model', this);
|
1744 | }
|
1745 | },
|
1746 | methods: {
|
1747 | thresholdMet: function thresholdMet() {
|
1748 | this.isActive = !this.isScrollingUp;
|
1749 | this.$emit('update:input-value', this.isActive);
|
1750 | },
|
1751 | updateApplication: function updateApplication() {
|
1752 | return this.$el ? this.$el.clientHeight : 0;
|
1753 | },
|
1754 | updateValue: function updateValue(val) {
|
1755 | this.$emit('change', val);
|
1756 | }
|
1757 | },
|
1758 | render: function render(h) {
|
1759 | var data = this.setBackgroundColor(this.backgroundColor, {
|
1760 | staticClass: 'v-bottom-navigation',
|
1761 | class: this.classes,
|
1762 | style: this.styles,
|
1763 | props: {
|
1764 | activeClass: this.activeClass,
|
1765 | mandatory: Boolean(this.mandatory || this.value !== undefined),
|
1766 | value: this.internalValue
|
1767 | },
|
1768 | on: {
|
1769 | change: this.updateValue
|
1770 | }
|
1771 | });
|
1772 |
|
1773 | if (this.canScroll) {
|
1774 | data.directives = data.directives || [];
|
1775 | data.directives.push({
|
1776 | arg: this.scrollTarget,
|
1777 | name: 'scroll',
|
1778 | value: this.onScroll
|
1779 | });
|
1780 | }
|
1781 |
|
1782 | return h(_mixins_button_group__WEBPACK_IMPORTED_MODULE_2__["default"], this.setTextColor(this.color, data), this.$slots.default);
|
1783 | }
|
1784 | }));
|
1785 |
|
1786 | }),
|
1787 |
|
1788 | "./src/components/VBottomNavigation/index.ts":
|
1789 |
|
1790 |
|
1791 |
|
1792 |
|
1793 | (function(module, __webpack_exports__, __webpack_require__) {
|
1794 |
|
1795 | "use strict";
|
1796 | __webpack_require__.r(__webpack_exports__);
|
1797 | var _VBottomNavigation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VBottomNavigation/VBottomNavigation.ts");
|
1798 | __webpack_require__.d(__webpack_exports__, "VBottomNavigation", function() { return _VBottomNavigation__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
1799 |
|
1800 |
|
1801 |
|
1802 | __webpack_exports__["default"] = (_VBottomNavigation__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
1803 |
|
1804 | }),
|
1805 |
|
1806 | "./src/components/VBottomSheet/VBottomSheet.sass":
|
1807 |
|
1808 |
|
1809 |
|
1810 |
|
1811 | (function(module, exports, __webpack_require__) {
|
1812 |
|
1813 |
|
1814 |
|
1815 | }),
|
1816 |
|
1817 | "./src/components/VBottomSheet/VBottomSheet.ts":
|
1818 |
|
1819 |
|
1820 |
|
1821 |
|
1822 | (function(module, __webpack_exports__, __webpack_require__) {
|
1823 |
|
1824 | "use strict";
|
1825 | __webpack_require__.r(__webpack_exports__);
|
1826 | var _VBottomSheet_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VBottomSheet/VBottomSheet.sass");
|
1827 | var _VBottomSheet_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VBottomSheet_sass__WEBPACK_IMPORTED_MODULE_0__);
|
1828 | var _VDialog_VDialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VDialog/VDialog.ts");
|
1829 | var __assign = undefined && undefined.__assign || function () {
|
1830 | __assign = Object.assign || function (t) {
|
1831 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
1832 | s = arguments[i];
|
1833 |
|
1834 | for (var p in s) {
|
1835 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
1836 | }
|
1837 | }
|
1838 |
|
1839 | return t;
|
1840 | };
|
1841 |
|
1842 | return __assign.apply(this, arguments);
|
1843 | };
|
1844 |
|
1845 |
|
1846 |
|
1847 |
|
1848 |
|
1849 |
|
1850 | __webpack_exports__["default"] = (_VDialog_VDialog__WEBPACK_IMPORTED_MODULE_1__["default"].extend({
|
1851 | name: 'v-bottom-sheet',
|
1852 | props: {
|
1853 | inset: Boolean,
|
1854 | maxWidth: {
|
1855 | type: [String, Number],
|
1856 | default: 'auto'
|
1857 | },
|
1858 | transition: {
|
1859 | type: String,
|
1860 | default: 'bottom-sheet-transition'
|
1861 | }
|
1862 | },
|
1863 | computed: {
|
1864 | classes: function classes() {
|
1865 | return __assign({}, _VDialog_VDialog__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this), {
|
1866 | 'v-bottom-sheet': true,
|
1867 | 'v-bottom-sheet--inset': this.inset
|
1868 | });
|
1869 | }
|
1870 | }
|
1871 | }));
|
1872 |
|
1873 | }),
|
1874 |
|
1875 | "./src/components/VBottomSheet/index.ts":
|
1876 |
|
1877 |
|
1878 |
|
1879 |
|
1880 | (function(module, __webpack_exports__, __webpack_require__) {
|
1881 |
|
1882 | "use strict";
|
1883 | __webpack_require__.r(__webpack_exports__);
|
1884 | var _VBottomSheet__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VBottomSheet/VBottomSheet.ts");
|
1885 | __webpack_require__.d(__webpack_exports__, "VBottomSheet", function() { return _VBottomSheet__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
1886 |
|
1887 |
|
1888 |
|
1889 | __webpack_exports__["default"] = (_VBottomSheet__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
1890 |
|
1891 | }),
|
1892 |
|
1893 | "./src/components/VBreadcrumbs/VBreadcrumbs.sass":
|
1894 |
|
1895 |
|
1896 |
|
1897 |
|
1898 | (function(module, exports, __webpack_require__) {
|
1899 |
|
1900 |
|
1901 |
|
1902 | }),
|
1903 |
|
1904 | "./src/components/VBreadcrumbs/VBreadcrumbs.ts":
|
1905 |
|
1906 |
|
1907 |
|
1908 |
|
1909 | (function(module, __webpack_exports__, __webpack_require__) {
|
1910 |
|
1911 | "use strict";
|
1912 | __webpack_require__.r(__webpack_exports__);
|
1913 | var _VBreadcrumbs_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VBreadcrumbs/VBreadcrumbs.sass");
|
1914 | var _VBreadcrumbs_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VBreadcrumbs_sass__WEBPACK_IMPORTED_MODULE_0__);
|
1915 | var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VBreadcrumbs/index.ts");
|
1916 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
1917 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
1918 | var __assign = undefined && undefined.__assign || function () {
|
1919 | __assign = Object.assign || function (t) {
|
1920 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
1921 | s = arguments[i];
|
1922 |
|
1923 | for (var p in s) {
|
1924 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
1925 | }
|
1926 | }
|
1927 |
|
1928 | return t;
|
1929 | };
|
1930 |
|
1931 | return __assign.apply(this, arguments);
|
1932 | };
|
1933 |
|
1934 |
|
1935 |
|
1936 |
|
1937 |
|
1938 |
|
1939 |
|
1940 |
|
1941 |
|
1942 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]
|
1943 |
|
1944 | ).extend({
|
1945 | name: 'v-breadcrumbs',
|
1946 | props: {
|
1947 | divider: {
|
1948 | type: String,
|
1949 | default: '/'
|
1950 | },
|
1951 | items: {
|
1952 | type: Array,
|
1953 | default: function _default() {
|
1954 | return [];
|
1955 | }
|
1956 | },
|
1957 | large: Boolean
|
1958 | },
|
1959 | computed: {
|
1960 | classes: function classes() {
|
1961 | return __assign({
|
1962 | 'v-breadcrumbs--large': this.large
|
1963 | }, this.themeClasses);
|
1964 | }
|
1965 | },
|
1966 | methods: {
|
1967 | genDivider: function genDivider() {
|
1968 | return this.$createElement(___WEBPACK_IMPORTED_MODULE_1__["VBreadcrumbsDivider"], this.$slots.divider ? this.$slots.divider : this.divider);
|
1969 | },
|
1970 | genItems: function genItems() {
|
1971 | var items = [];
|
1972 | var hasSlot = !!this.$scopedSlots.item;
|
1973 | var keys = [];
|
1974 |
|
1975 | for (var i = 0; i < this.items.length; i++) {
|
1976 | var item = this.items[i];
|
1977 | keys.push(item.text);
|
1978 | if (hasSlot) items.push(this.$scopedSlots.item({
|
1979 | item: item
|
1980 | }));else items.push(this.$createElement(___WEBPACK_IMPORTED_MODULE_1__["VBreadcrumbsItem"], {
|
1981 | key: keys.join('.'),
|
1982 | props: item
|
1983 | }, [item.text]));
|
1984 | if (i < this.items.length - 1) items.push(this.genDivider());
|
1985 | }
|
1986 |
|
1987 | return items;
|
1988 | }
|
1989 | },
|
1990 | render: function render(h) {
|
1991 | var children = this.$slots.default || this.genItems();
|
1992 | return h('ul', {
|
1993 | staticClass: 'v-breadcrumbs',
|
1994 | class: this.classes
|
1995 | }, children);
|
1996 | }
|
1997 | }));
|
1998 |
|
1999 | }),
|
2000 |
|
2001 | "./src/components/VBreadcrumbs/VBreadcrumbsItem.ts":
|
2002 |
|
2003 |
|
2004 |
|
2005 |
|
2006 | (function(module, __webpack_exports__, __webpack_require__) {
|
2007 |
|
2008 | "use strict";
|
2009 | __webpack_require__.r(__webpack_exports__);
|
2010 | var _mixins_routable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/mixins/routable/index.ts");
|
2011 | var _util_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/mixins.ts");
|
2012 | var __assign = undefined && undefined.__assign || function () {
|
2013 | __assign = Object.assign || function (t) {
|
2014 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
2015 | s = arguments[i];
|
2016 |
|
2017 | for (var p in s) {
|
2018 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
2019 | }
|
2020 | }
|
2021 |
|
2022 | return t;
|
2023 | };
|
2024 |
|
2025 | return __assign.apply(this, arguments);
|
2026 | };
|
2027 |
|
2028 |
|
2029 |
|
2030 |
|
2031 |
|
2032 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_1__["default"])(_mixins_routable__WEBPACK_IMPORTED_MODULE_0__["default"]).extend({
|
2033 | name: 'v-breadcrumbs-item',
|
2034 | props: {
|
2035 |
|
2036 |
|
2037 | activeClass: {
|
2038 | type: String,
|
2039 | default: 'v-breadcrumbs__item--disabled'
|
2040 | },
|
2041 | ripple: {
|
2042 | type: [Boolean, Object],
|
2043 | default: false
|
2044 | }
|
2045 | },
|
2046 | computed: {
|
2047 | classes: function classes() {
|
2048 | var _a;
|
2049 |
|
2050 | return _a = {
|
2051 | 'v-breadcrumbs__item': true
|
2052 | }, _a[this.activeClass] = this.disabled, _a;
|
2053 | }
|
2054 | },
|
2055 | render: function render(h) {
|
2056 | var _a = this.generateRouteLink(),
|
2057 | tag = _a.tag,
|
2058 | data = _a.data;
|
2059 |
|
2060 | return h('li', [h(tag, __assign({}, data, {
|
2061 | attrs: __assign({}, data.attrs, {
|
2062 | 'aria-current': this.isActive && this.isLink ? 'page' : undefined
|
2063 | })
|
2064 | }), this.$slots.default)]);
|
2065 | }
|
2066 | }));
|
2067 |
|
2068 | }),
|
2069 |
|
2070 | "./src/components/VBreadcrumbs/index.ts":
|
2071 |
|
2072 |
|
2073 |
|
2074 |
|
2075 | (function(module, __webpack_exports__, __webpack_require__) {
|
2076 |
|
2077 | "use strict";
|
2078 | __webpack_require__.r(__webpack_exports__);
|
2079 | __webpack_require__.d(__webpack_exports__, "VBreadcrumbsDivider", function() { return VBreadcrumbsDivider; });
|
2080 | var _VBreadcrumbs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VBreadcrumbs/VBreadcrumbs.ts");
|
2081 | __webpack_require__.d(__webpack_exports__, "VBreadcrumbs", function() { return _VBreadcrumbs__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
2082 |
|
2083 | var _VBreadcrumbsItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VBreadcrumbs/VBreadcrumbsItem.ts");
|
2084 | __webpack_require__.d(__webpack_exports__, "VBreadcrumbsItem", function() { return _VBreadcrumbsItem__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
2085 |
|
2086 | var _util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/helpers.ts");
|
2087 |
|
2088 |
|
2089 |
|
2090 | var VBreadcrumbsDivider = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["createSimpleFunctional"])('v-breadcrumbs__divider', 'li');
|
2091 |
|
2092 | __webpack_exports__["default"] = ({
|
2093 | $_vuetify_subcomponents: {
|
2094 | VBreadcrumbs: _VBreadcrumbs__WEBPACK_IMPORTED_MODULE_0__["default"],
|
2095 | VBreadcrumbsItem: _VBreadcrumbsItem__WEBPACK_IMPORTED_MODULE_1__["default"],
|
2096 | VBreadcrumbsDivider: VBreadcrumbsDivider
|
2097 | }
|
2098 | });
|
2099 |
|
2100 | }),
|
2101 |
|
2102 | "./src/components/VBtn/VBtn.sass":
|
2103 |
|
2104 |
|
2105 |
|
2106 |
|
2107 | (function(module, exports, __webpack_require__) {
|
2108 |
|
2109 |
|
2110 |
|
2111 | }),
|
2112 |
|
2113 | "./src/components/VBtn/VBtn.ts":
|
2114 |
|
2115 |
|
2116 |
|
2117 |
|
2118 | (function(module, __webpack_exports__, __webpack_require__) {
|
2119 |
|
2120 | "use strict";
|
2121 | __webpack_require__.r(__webpack_exports__);
|
2122 | var _VBtn_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VBtn/VBtn.sass");
|
2123 | var _VBtn_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VBtn_sass__WEBPACK_IMPORTED_MODULE_0__);
|
2124 | var _VSheet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VSheet/index.ts");
|
2125 | var _VProgressCircular__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VProgressCircular/index.ts");
|
2126 | var _mixins_groupable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/groupable/index.ts");
|
2127 | var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/toggleable/index.ts");
|
2128 | var _mixins_positionable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/positionable/index.ts");
|
2129 | var _mixins_routable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/mixins/routable/index.ts");
|
2130 | var _mixins_sizeable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/mixins/sizeable/index.ts");
|
2131 | var _util_mixins__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/util/mixins.ts");
|
2132 | var _util_console__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__( "./src/util/console.ts");
|
2133 | 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); }
|
2134 |
|
2135 | var __assign = undefined && undefined.__assign || function () {
|
2136 | __assign = Object.assign || function (t) {
|
2137 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
2138 | s = arguments[i];
|
2139 |
|
2140 | for (var p in s) {
|
2141 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
2142 | }
|
2143 | }
|
2144 |
|
2145 | return t;
|
2146 | };
|
2147 |
|
2148 | return __assign.apply(this, arguments);
|
2149 | };
|
2150 |
|
2151 | var __read = undefined && undefined.__read || function (o, n) {
|
2152 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
2153 | if (!m) return o;
|
2154 | var i = m.call(o),
|
2155 | r,
|
2156 | ar = [],
|
2157 | e;
|
2158 |
|
2159 | try {
|
2160 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
2161 | ar.push(r.value);
|
2162 | }
|
2163 | } catch (error) {
|
2164 | e = {
|
2165 | error: error
|
2166 | };
|
2167 | } finally {
|
2168 | try {
|
2169 | if (r && !r.done && (m = i["return"])) m.call(i);
|
2170 | } finally {
|
2171 | if (e) throw e.error;
|
2172 | }
|
2173 | }
|
2174 |
|
2175 | return ar;
|
2176 | };
|
2177 |
|
2178 |
|
2179 |
|
2180 |
|
2181 |
|
2182 |
|
2183 |
|
2184 |
|
2185 |
|
2186 |
|
2187 |
|
2188 |
|
2189 |
|
2190 |
|
2191 |
|
2192 |
|
2193 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_8__["default"])(_VSheet__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_routable__WEBPACK_IMPORTED_MODULE_6__["default"], _mixins_positionable__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_sizeable__WEBPACK_IMPORTED_MODULE_7__["default"], Object(_mixins_groupable__WEBPACK_IMPORTED_MODULE_3__["factory"])('btnToggle'), Object(_mixins_toggleable__WEBPACK_IMPORTED_MODULE_4__["factory"])('inputValue')
|
2194 |
|
2195 | );
|
2196 | __webpack_exports__["default"] = (baseMixins.extend().extend({
|
2197 | name: 'v-btn',
|
2198 | props: {
|
2199 | activeClass: {
|
2200 | type: String,
|
2201 | default: function _default() {
|
2202 | if (!this.btnToggle) return '';
|
2203 | return this.btnToggle.activeClass;
|
2204 | }
|
2205 | },
|
2206 | block: Boolean,
|
2207 | depressed: Boolean,
|
2208 | fab: Boolean,
|
2209 | icon: Boolean,
|
2210 | loading: Boolean,
|
2211 | outlined: Boolean,
|
2212 | retainFocusOnClick: Boolean,
|
2213 | rounded: Boolean,
|
2214 | tag: {
|
2215 | type: String,
|
2216 | default: 'button'
|
2217 | },
|
2218 | text: Boolean,
|
2219 | type: {
|
2220 | type: String,
|
2221 | default: 'button'
|
2222 | },
|
2223 | value: null
|
2224 | },
|
2225 | data: function data() {
|
2226 | return {
|
2227 | proxyClass: 'v-btn--active'
|
2228 | };
|
2229 | },
|
2230 | computed: {
|
2231 | classes: function classes() {
|
2232 | return __assign({
|
2233 | 'v-btn': true
|
2234 | }, _mixins_routable__WEBPACK_IMPORTED_MODULE_6__["default"].options.computed.classes.call(this), {
|
2235 | 'v-btn--absolute': this.absolute,
|
2236 | 'v-btn--block': this.block,
|
2237 | 'v-btn--bottom': this.bottom,
|
2238 | 'v-btn--contained': this.contained,
|
2239 | 'v-btn--depressed': this.depressed || this.outlined,
|
2240 | 'v-btn--disabled': this.disabled,
|
2241 | 'v-btn--fab': this.fab,
|
2242 | 'v-btn--fixed': this.fixed,
|
2243 | 'v-btn--flat': this.isFlat,
|
2244 | 'v-btn--icon': this.icon,
|
2245 | 'v-btn--left': this.left,
|
2246 | 'v-btn--loading': this.loading,
|
2247 | 'v-btn--outlined': this.outlined,
|
2248 | 'v-btn--right': this.right,
|
2249 | 'v-btn--round': this.isRound,
|
2250 | 'v-btn--rounded': this.rounded,
|
2251 | 'v-btn--router': this.to,
|
2252 | 'v-btn--text': this.text,
|
2253 | 'v-btn--tile': this.tile,
|
2254 | 'v-btn--top': this.top
|
2255 | }, this.themeClasses, this.groupClasses, this.elevationClasses, this.sizeableClasses);
|
2256 | },
|
2257 | contained: function contained() {
|
2258 | return Boolean(!this.isFlat && !this.depressed &&
|
2259 |
|
2260 | !this.elevation);
|
2261 | },
|
2262 | computedRipple: function computedRipple() {
|
2263 | var defaultRipple = this.icon || this.fab ? {
|
2264 | circle: true
|
2265 | } : true;
|
2266 | if (this.disabled) return false;else return this.ripple != null ? this.ripple : defaultRipple;
|
2267 | },
|
2268 | isFlat: function isFlat() {
|
2269 | return Boolean(this.icon || this.text || this.outlined);
|
2270 | },
|
2271 | isRound: function isRound() {
|
2272 | return Boolean(this.icon || this.fab);
|
2273 | },
|
2274 | styles: function styles() {
|
2275 | return __assign({}, this.measurableStyles);
|
2276 | }
|
2277 | },
|
2278 | created: function created() {
|
2279 | var _this = this;
|
2280 |
|
2281 | var breakingProps = [['flat', 'text'], ['outline', 'outlined'], ['round', 'rounded']];
|
2282 |
|
2283 |
|
2284 | breakingProps.forEach(function (_a) {
|
2285 | var _b = __read(_a, 2),
|
2286 | original = _b[0],
|
2287 | replacement = _b[1];
|
2288 |
|
2289 | if (_this.$attrs.hasOwnProperty(original)) Object(_util_console__WEBPACK_IMPORTED_MODULE_9__["breaking"])(original, replacement, _this);
|
2290 | });
|
2291 | },
|
2292 | methods: {
|
2293 | click: function click(e) {
|
2294 | !this.retainFocusOnClick && !this.fab && e.detail && this.$el.blur();
|
2295 | this.$emit('click', e);
|
2296 | this.btnToggle && this.toggle();
|
2297 | },
|
2298 | genContent: function genContent() {
|
2299 | return this.$createElement('span', {
|
2300 | staticClass: 'v-btn__content'
|
2301 | }, this.$slots.default);
|
2302 | },
|
2303 | genLoader: function genLoader() {
|
2304 | return this.$createElement('span', {
|
2305 | class: 'v-btn__loader'
|
2306 | }, this.$slots.loader || [this.$createElement(_VProgressCircular__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
2307 | props: {
|
2308 | indeterminate: true,
|
2309 | size: 23,
|
2310 | width: 2
|
2311 | }
|
2312 | })]);
|
2313 | }
|
2314 | },
|
2315 | render: function render(h) {
|
2316 | var children = [this.genContent(), this.loading && this.genLoader()];
|
2317 | var setColor = !this.isFlat ? this.setBackgroundColor : this.setTextColor;
|
2318 |
|
2319 | var _a = this.generateRouteLink(),
|
2320 | tag = _a.tag,
|
2321 | data = _a.data;
|
2322 |
|
2323 | if (tag === 'button') {
|
2324 | data.attrs.type = this.type;
|
2325 | data.attrs.disabled = this.disabled;
|
2326 | }
|
2327 |
|
2328 | data.attrs.value = ['string', 'number'].includes(_typeof(this.value)) ? this.value : JSON.stringify(this.value);
|
2329 | return h(tag, this.disabled ? data : setColor(this.color, data), children);
|
2330 | }
|
2331 | }));
|
2332 |
|
2333 | }),
|
2334 |
|
2335 | "./src/components/VBtn/index.ts":
|
2336 |
|
2337 |
|
2338 |
|
2339 |
|
2340 | (function(module, __webpack_exports__, __webpack_require__) {
|
2341 |
|
2342 | "use strict";
|
2343 | __webpack_require__.r(__webpack_exports__);
|
2344 | var _VBtn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VBtn/VBtn.ts");
|
2345 | __webpack_require__.d(__webpack_exports__, "VBtn", function() { return _VBtn__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
2346 |
|
2347 |
|
2348 |
|
2349 | __webpack_exports__["default"] = (_VBtn__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
2350 |
|
2351 | }),
|
2352 |
|
2353 | "./src/components/VBtnToggle/VBtnToggle.sass":
|
2354 |
|
2355 |
|
2356 |
|
2357 |
|
2358 | (function(module, exports, __webpack_require__) {
|
2359 |
|
2360 |
|
2361 |
|
2362 | }),
|
2363 |
|
2364 | "./src/components/VBtnToggle/VBtnToggle.ts":
|
2365 |
|
2366 |
|
2367 |
|
2368 |
|
2369 | (function(module, __webpack_exports__, __webpack_require__) {
|
2370 |
|
2371 | "use strict";
|
2372 | __webpack_require__.r(__webpack_exports__);
|
2373 | var _VBtnToggle_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VBtnToggle/VBtnToggle.sass");
|
2374 | var _VBtnToggle_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VBtnToggle_sass__WEBPACK_IMPORTED_MODULE_0__);
|
2375 | var _mixins_button_group__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/button-group/index.ts");
|
2376 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
2377 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
2378 | var __assign = undefined && undefined.__assign || function () {
|
2379 | __assign = Object.assign || function (t) {
|
2380 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
2381 | s = arguments[i];
|
2382 |
|
2383 | for (var p in s) {
|
2384 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
2385 | }
|
2386 | }
|
2387 |
|
2388 | return t;
|
2389 | };
|
2390 |
|
2391 | return __assign.apply(this, arguments);
|
2392 | };
|
2393 |
|
2394 |
|
2395 |
|
2396 |
|
2397 |
|
2398 |
|
2399 |
|
2400 |
|
2401 |
|
2402 |
|
2403 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_button_group__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"]).extend({
|
2404 | name: 'v-btn-toggle',
|
2405 | props: {
|
2406 | backgroundColor: String,
|
2407 | borderless: Boolean,
|
2408 | dense: Boolean,
|
2409 | group: Boolean,
|
2410 | rounded: Boolean,
|
2411 | shaped: Boolean,
|
2412 | tile: Boolean
|
2413 | },
|
2414 | computed: {
|
2415 | classes: function classes() {
|
2416 | return __assign({}, _mixins_button_group__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this), {
|
2417 | 'v-btn-toggle': true,
|
2418 | 'v-btn-toggle--borderless': this.borderless,
|
2419 | 'v-btn-toggle--dense': this.dense,
|
2420 | 'v-btn-toggle--group': this.group,
|
2421 | 'v-btn-toggle--rounded': this.rounded,
|
2422 | 'v-btn-toggle--shaped': this.shaped,
|
2423 | 'v-btn-toggle--tile': this.tile
|
2424 | }, this.themeClasses);
|
2425 | }
|
2426 | },
|
2427 | methods: {
|
2428 | genData: function genData() {
|
2429 | var data = this.setTextColor(this.color, __assign({}, _mixins_button_group__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genData.call(this)));
|
2430 | if (this.group) return data;
|
2431 | return this.setBackgroundColor(this.backgroundColor, data);
|
2432 | }
|
2433 | }
|
2434 | }));
|
2435 |
|
2436 | }),
|
2437 |
|
2438 | "./src/components/VBtnToggle/index.ts":
|
2439 |
|
2440 |
|
2441 |
|
2442 |
|
2443 | (function(module, __webpack_exports__, __webpack_require__) {
|
2444 |
|
2445 | "use strict";
|
2446 | __webpack_require__.r(__webpack_exports__);
|
2447 | var _VBtnToggle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VBtnToggle/VBtnToggle.ts");
|
2448 | __webpack_require__.d(__webpack_exports__, "VBtnToggle", function() { return _VBtnToggle__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
2449 |
|
2450 |
|
2451 |
|
2452 | __webpack_exports__["default"] = (_VBtnToggle__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
2453 |
|
2454 | }),
|
2455 |
|
2456 | "./src/components/VCalendar/VCalendar.ts":
|
2457 |
|
2458 |
|
2459 |
|
2460 |
|
2461 | (function(module, __webpack_exports__, __webpack_require__) {
|
2462 |
|
2463 | "use strict";
|
2464 | __webpack_require__.r(__webpack_exports__);
|
2465 | var _mixins_calendar_with_events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCalendar/mixins/calendar-with-events.ts");
|
2466 | var _util_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VCalendar/util/props.ts");
|
2467 | var _util_timestamp__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VCalendar/util/timestamp.ts");
|
2468 | var _VCalendarMonthly__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VCalendar/VCalendarMonthly.ts");
|
2469 | var _VCalendarDaily__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VCalendar/VCalendarDaily.ts");
|
2470 | var _VCalendarWeekly__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/components/VCalendar/VCalendarWeekly.ts");
|
2471 |
|
2472 |
|
2473 | var __assign = undefined && undefined.__assign || function () {
|
2474 | __assign = Object.assign || function (t) {
|
2475 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
2476 | s = arguments[i];
|
2477 |
|
2478 | for (var p in s) {
|
2479 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
2480 | }
|
2481 | }
|
2482 |
|
2483 | return t;
|
2484 | };
|
2485 |
|
2486 | return __assign.apply(this, arguments);
|
2487 | };
|
2488 |
|
2489 |
|
2490 |
|
2491 |
|
2492 |
|
2493 |
|
2494 |
|
2495 |
|
2496 |
|
2497 |
|
2498 |
|
2499 |
|
2500 | __webpack_exports__["default"] = (_mixins_calendar_with_events__WEBPACK_IMPORTED_MODULE_0__["default"].extend({
|
2501 | name: 'v-calendar',
|
2502 | props: __assign({}, _util_props__WEBPACK_IMPORTED_MODULE_1__["default"].calendar, _util_props__WEBPACK_IMPORTED_MODULE_1__["default"].weeks, _util_props__WEBPACK_IMPORTED_MODULE_1__["default"].intervals),
|
2503 | data: function data() {
|
2504 | return {
|
2505 | lastStart: null,
|
2506 | lastEnd: null
|
2507 | };
|
2508 | },
|
2509 | computed: {
|
2510 | parsedValue: function parsedValue() {
|
2511 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["validateTimestamp"])(this.value) ? Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["parseTimestamp"])(this.value) : this.parsedStart || this.times.today;
|
2512 | },
|
2513 | renderProps: function renderProps() {
|
2514 | var around = this.parsedValue;
|
2515 | var component = null;
|
2516 | var maxDays = this.maxDays;
|
2517 | var start = around;
|
2518 | var end = around;
|
2519 |
|
2520 | switch (this.type) {
|
2521 | case 'month':
|
2522 | component = _VCalendarMonthly__WEBPACK_IMPORTED_MODULE_3__["default"];
|
2523 | start = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["getStartOfMonth"])(around);
|
2524 | end = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["getEndOfMonth"])(around);
|
2525 | break;
|
2526 |
|
2527 | case 'week':
|
2528 | component = _VCalendarDaily__WEBPACK_IMPORTED_MODULE_4__["default"];
|
2529 | start = this.getStartOfWeek(around);
|
2530 | end = this.getEndOfWeek(around);
|
2531 | maxDays = 7;
|
2532 | break;
|
2533 |
|
2534 | case 'day':
|
2535 | component = _VCalendarDaily__WEBPACK_IMPORTED_MODULE_4__["default"];
|
2536 | maxDays = 1;
|
2537 | break;
|
2538 |
|
2539 | case '4day':
|
2540 | component = _VCalendarDaily__WEBPACK_IMPORTED_MODULE_4__["default"];
|
2541 | end = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["relativeDays"])(Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["copyTimestamp"])(end), _util_timestamp__WEBPACK_IMPORTED_MODULE_2__["nextDay"], 4);
|
2542 | Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["updateFormatted"])(end);
|
2543 | maxDays = 4;
|
2544 | break;
|
2545 |
|
2546 | case 'custom-weekly':
|
2547 | component = _VCalendarWeekly__WEBPACK_IMPORTED_MODULE_5__["default"];
|
2548 | start = this.parsedStart || around;
|
2549 | end = this.parsedEnd;
|
2550 | break;
|
2551 |
|
2552 | case 'custom-daily':
|
2553 | component = _VCalendarDaily__WEBPACK_IMPORTED_MODULE_4__["default"];
|
2554 | start = this.parsedStart || around;
|
2555 | end = this.parsedEnd;
|
2556 | break;
|
2557 |
|
2558 | default:
|
2559 | throw new Error(this.type + ' is not a valid Calendar type');
|
2560 | }
|
2561 |
|
2562 | return {
|
2563 | component: component,
|
2564 | start: start,
|
2565 | end: end,
|
2566 | maxDays: maxDays
|
2567 | };
|
2568 | }
|
2569 | },
|
2570 | watch: {
|
2571 | renderProps: 'checkChange'
|
2572 | },
|
2573 | mounted: function mounted() {
|
2574 | this.updateEventVisibility();
|
2575 | },
|
2576 | updated: function updated() {
|
2577 | this.updateEventVisibility();
|
2578 | },
|
2579 | methods: {
|
2580 | checkChange: function checkChange() {
|
2581 | var _a = this.renderProps,
|
2582 | start = _a.start,
|
2583 | end = _a.end;
|
2584 |
|
2585 | if (start !== this.lastStart || end !== this.lastEnd) {
|
2586 | this.lastStart = start;
|
2587 | this.lastEnd = end;
|
2588 | this.$emit('change', {
|
2589 | start: start,
|
2590 | end: end
|
2591 | });
|
2592 | }
|
2593 | },
|
2594 | move: function move(amount) {
|
2595 | if (amount === void 0) {
|
2596 | amount = 1;
|
2597 | }
|
2598 |
|
2599 | var moved = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["copyTimestamp"])(this.parsedValue);
|
2600 | var forward = amount > 0;
|
2601 | var mover = forward ? _util_timestamp__WEBPACK_IMPORTED_MODULE_2__["nextDay"] : _util_timestamp__WEBPACK_IMPORTED_MODULE_2__["prevDay"];
|
2602 | var limit = forward ? _util_timestamp__WEBPACK_IMPORTED_MODULE_2__["DAYS_IN_MONTH_MAX"] : _util_timestamp__WEBPACK_IMPORTED_MODULE_2__["DAY_MIN"];
|
2603 | var times = forward ? amount : -amount;
|
2604 |
|
2605 | while (--times >= 0) {
|
2606 | switch (this.type) {
|
2607 | case 'month':
|
2608 | moved.day = limit;
|
2609 | mover(moved);
|
2610 | break;
|
2611 |
|
2612 | case 'week':
|
2613 | Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["relativeDays"])(moved, mover, _util_timestamp__WEBPACK_IMPORTED_MODULE_2__["DAYS_IN_WEEK"]);
|
2614 | break;
|
2615 |
|
2616 | case 'day':
|
2617 | var index = moved.weekday;
|
2618 | var days = forward ? this.weekdaySkips[index] : this.weekdaySkipsReverse[index];
|
2619 | Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["relativeDays"])(moved, mover, days);
|
2620 | break;
|
2621 |
|
2622 | case '4day':
|
2623 | Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["relativeDays"])(moved, mover, 4);
|
2624 | break;
|
2625 | }
|
2626 | }
|
2627 |
|
2628 | Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["updateWeekday"])(moved);
|
2629 | Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["updateFormatted"])(moved);
|
2630 | Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["updateRelative"])(moved, this.times.now);
|
2631 | this.$emit('input', moved.date);
|
2632 | this.$emit('moved', moved);
|
2633 | },
|
2634 | next: function next(amount) {
|
2635 | if (amount === void 0) {
|
2636 | amount = 1;
|
2637 | }
|
2638 |
|
2639 | this.move(amount);
|
2640 | },
|
2641 | prev: function prev(amount) {
|
2642 | if (amount === void 0) {
|
2643 | amount = 1;
|
2644 | }
|
2645 |
|
2646 | this.move(-amount);
|
2647 | },
|
2648 | timeToY: function timeToY(time, clamp) {
|
2649 | if (clamp === void 0) {
|
2650 | clamp = true;
|
2651 | }
|
2652 |
|
2653 | var c = this.$children[0];
|
2654 |
|
2655 | if (c && c.timeToY) {
|
2656 | return c.timeToY(time, clamp);
|
2657 | } else {
|
2658 | return false;
|
2659 | }
|
2660 | },
|
2661 | minutesToPixels: function minutesToPixels(minutes) {
|
2662 | var c = this.$children[0];
|
2663 |
|
2664 | if (c && c.minutesToPixels) {
|
2665 | return c.minutesToPixels(minutes);
|
2666 | } else {
|
2667 | return -1;
|
2668 | }
|
2669 | },
|
2670 | scrollToTime: function scrollToTime(time) {
|
2671 | var c = this.$children[0];
|
2672 |
|
2673 | if (c && c.scrollToTime) {
|
2674 | return c.scrollToTime(time);
|
2675 | } else {
|
2676 | return false;
|
2677 | }
|
2678 | }
|
2679 | },
|
2680 | render: function render(h) {
|
2681 | var _this = this;
|
2682 |
|
2683 | var _a = this.renderProps,
|
2684 | start = _a.start,
|
2685 | end = _a.end,
|
2686 | maxDays = _a.maxDays,
|
2687 | component = _a.component;
|
2688 | return h(component, {
|
2689 | staticClass: 'v-calendar',
|
2690 | class: {
|
2691 | 'v-calendar-events': !this.noEvents
|
2692 | },
|
2693 | props: __assign({}, this.$props, {
|
2694 | start: start.date,
|
2695 | end: end.date,
|
2696 | maxDays: maxDays
|
2697 | }),
|
2698 | directives: [{
|
2699 | modifiers: {
|
2700 | quiet: true
|
2701 | },
|
2702 | name: 'resize',
|
2703 | value: this.updateEventVisibility
|
2704 | }],
|
2705 | on: __assign({}, this.$listeners, {
|
2706 | 'click:date': function clickDate(day) {
|
2707 | if (_this.$listeners['input']) {
|
2708 | _this.$emit('input', day.date);
|
2709 | }
|
2710 |
|
2711 | if (_this.$listeners['click:date']) {
|
2712 | _this.$emit('click:date', day);
|
2713 | }
|
2714 | }
|
2715 | }),
|
2716 | scopedSlots: this.getScopedSlots()
|
2717 | });
|
2718 | }
|
2719 | }));
|
2720 |
|
2721 | }),
|
2722 |
|
2723 | "./src/components/VCalendar/VCalendarDaily.sass":
|
2724 |
|
2725 |
|
2726 |
|
2727 |
|
2728 | (function(module, exports, __webpack_require__) {
|
2729 |
|
2730 |
|
2731 |
|
2732 | }),
|
2733 |
|
2734 | "./src/components/VCalendar/VCalendarDaily.ts":
|
2735 |
|
2736 |
|
2737 |
|
2738 |
|
2739 | (function(module, __webpack_exports__, __webpack_require__) {
|
2740 |
|
2741 | "use strict";
|
2742 | __webpack_require__.r(__webpack_exports__);
|
2743 | var _VCalendarDaily_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCalendar/VCalendarDaily.sass");
|
2744 | var _VCalendarDaily_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VCalendarDaily_sass__WEBPACK_IMPORTED_MODULE_0__);
|
2745 | var _directives_resize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/directives/resize/index.ts");
|
2746 | var _VBtn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VBtn/index.ts");
|
2747 | var _mixins_calendar_with_intervals__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VCalendar/mixins/calendar-with-intervals.ts");
|
2748 | var _util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/helpers.ts");
|
2749 | var __assign = undefined && undefined.__assign || function () {
|
2750 | __assign = Object.assign || function (t) {
|
2751 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
2752 | s = arguments[i];
|
2753 |
|
2754 | for (var p in s) {
|
2755 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
2756 | }
|
2757 | }
|
2758 |
|
2759 | return t;
|
2760 | };
|
2761 |
|
2762 | return __assign.apply(this, arguments);
|
2763 | };
|
2764 |
|
2765 | var __read = undefined && undefined.__read || function (o, n) {
|
2766 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
2767 | if (!m) return o;
|
2768 | var i = m.call(o),
|
2769 | r,
|
2770 | ar = [],
|
2771 | e;
|
2772 |
|
2773 | try {
|
2774 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
2775 | ar.push(r.value);
|
2776 | }
|
2777 | } catch (error) {
|
2778 | e = {
|
2779 | error: error
|
2780 | };
|
2781 | } finally {
|
2782 | try {
|
2783 | if (r && !r.done && (m = i["return"])) m.call(i);
|
2784 | } finally {
|
2785 | if (e) throw e.error;
|
2786 | }
|
2787 | }
|
2788 |
|
2789 | return ar;
|
2790 | };
|
2791 |
|
2792 | var __spread = undefined && undefined.__spread || function () {
|
2793 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
2794 | ar = ar.concat(__read(arguments[i]));
|
2795 | }
|
2796 |
|
2797 | return ar;
|
2798 | };
|
2799 |
|
2800 |
|
2801 |
|
2802 |
|
2803 |
|
2804 |
|
2805 |
|
2806 |
|
2807 |
|
2808 |
|
2809 |
|
2810 |
|
2811 |
|
2812 | __webpack_exports__["default"] = (_mixins_calendar_with_intervals__WEBPACK_IMPORTED_MODULE_3__["default"].extend({
|
2813 | name: 'v-calendar-daily',
|
2814 | directives: {
|
2815 | Resize: _directives_resize__WEBPACK_IMPORTED_MODULE_1__["default"]
|
2816 | },
|
2817 | data: function data() {
|
2818 | return {
|
2819 | scrollPush: 0
|
2820 | };
|
2821 | },
|
2822 | computed: {
|
2823 | classes: function classes() {
|
2824 | return __assign({
|
2825 | 'v-calendar-daily': true
|
2826 | }, this.themeClasses);
|
2827 | }
|
2828 | },
|
2829 | mounted: function mounted() {
|
2830 | this.init();
|
2831 | },
|
2832 | methods: {
|
2833 | init: function init() {
|
2834 | this.$nextTick(this.onResize);
|
2835 | },
|
2836 | onResize: function onResize() {
|
2837 | this.scrollPush = this.getScrollPush();
|
2838 | },
|
2839 | getScrollPush: function getScrollPush() {
|
2840 | var area = this.$refs.scrollArea;
|
2841 | var pane = this.$refs.pane;
|
2842 | return area && pane ? area.offsetWidth - pane.offsetWidth : 0;
|
2843 | },
|
2844 | genHead: function genHead() {
|
2845 | return this.$createElement('div', {
|
2846 | staticClass: 'v-calendar-daily__head',
|
2847 | style: {
|
2848 | marginRight: this.scrollPush + 'px'
|
2849 | }
|
2850 | }, __spread([this.genHeadIntervals()], this.genHeadDays()));
|
2851 | },
|
2852 | genHeadIntervals: function genHeadIntervals() {
|
2853 | return this.$createElement('div', {
|
2854 | staticClass: 'v-calendar-daily__intervals-head'
|
2855 | });
|
2856 | },
|
2857 | genHeadDays: function genHeadDays() {
|
2858 | return this.days.map(this.genHeadDay);
|
2859 | },
|
2860 | genHeadDay: function genHeadDay(day, index) {
|
2861 | var _this = this;
|
2862 |
|
2863 | var slot = this.$scopedSlots['day-header'];
|
2864 | return this.$createElement('div', {
|
2865 | key: day.date,
|
2866 | staticClass: 'v-calendar-daily_head-day',
|
2867 | class: this.getRelativeClasses(day),
|
2868 | on: this.getDefaultMouseEventHandlers(':day', function (_e) {
|
2869 | return _this.getSlotScope(day);
|
2870 | })
|
2871 | }, [this.genHeadWeekday(day), this.genHeadDayLabel(day), slot ? slot(__assign({}, day, {
|
2872 | index: index
|
2873 | })) : '']);
|
2874 | },
|
2875 | genHeadWeekday: function genHeadWeekday(day) {
|
2876 | var color = day.present ? this.color : undefined;
|
2877 | return this.$createElement('div', this.setTextColor(color, {
|
2878 | staticClass: 'v-calendar-daily_head-weekday'
|
2879 | }), this.weekdayFormatter(day, this.shortWeekdays));
|
2880 | },
|
2881 | genHeadDayLabel: function genHeadDayLabel(day) {
|
2882 | return this.$createElement('div', {
|
2883 | staticClass: 'v-calendar-daily_head-day-label'
|
2884 | }, [this.genHeadDayButton(day)]);
|
2885 | },
|
2886 | genHeadDayButton: function genHeadDayButton(day) {
|
2887 | var color = day.present ? this.color : 'transparent';
|
2888 | return this.$createElement(_VBtn__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
2889 | props: {
|
2890 | color: color,
|
2891 | fab: true,
|
2892 | depressed: true
|
2893 | },
|
2894 | on: this.getMouseEventHandlers({
|
2895 | 'click:date': {
|
2896 | event: 'click',
|
2897 | stop: true
|
2898 | },
|
2899 | 'contextmenu:date': {
|
2900 | event: 'contextmenu',
|
2901 | stop: true,
|
2902 | prevent: true,
|
2903 | result: false
|
2904 | }
|
2905 | }, function (_e) {
|
2906 | return day;
|
2907 | })
|
2908 | }, this.dayFormatter(day, false));
|
2909 | },
|
2910 | genBody: function genBody() {
|
2911 | return this.$createElement('div', {
|
2912 | staticClass: 'v-calendar-daily__body'
|
2913 | }, [this.genScrollArea()]);
|
2914 | },
|
2915 | genScrollArea: function genScrollArea() {
|
2916 | return this.$createElement('div', {
|
2917 | ref: 'scrollArea',
|
2918 | staticClass: 'v-calendar-daily__scroll-area'
|
2919 | }, [this.genPane()]);
|
2920 | },
|
2921 | genPane: function genPane() {
|
2922 | return this.$createElement('div', {
|
2923 | ref: 'pane',
|
2924 | staticClass: 'v-calendar-daily__pane',
|
2925 | style: {
|
2926 | height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["convertToUnit"])(this.bodyHeight)
|
2927 | }
|
2928 | }, [this.genDayContainer()]);
|
2929 | },
|
2930 | genDayContainer: function genDayContainer() {
|
2931 | return this.$createElement('div', {
|
2932 | staticClass: 'v-calendar-daily__day-container'
|
2933 | }, __spread([this.genBodyIntervals()], this.genDays()));
|
2934 | },
|
2935 | genDays: function genDays() {
|
2936 | return this.days.map(this.genDay);
|
2937 | },
|
2938 | genDay: function genDay(day, index) {
|
2939 | var _this = this;
|
2940 |
|
2941 | var slot = this.$scopedSlots['day-body'];
|
2942 | var scope = this.getSlotScope(day);
|
2943 | return this.$createElement('div', {
|
2944 | key: day.date,
|
2945 | staticClass: 'v-calendar-daily__day',
|
2946 | class: this.getRelativeClasses(day),
|
2947 | on: this.getDefaultMouseEventHandlers(':time', function (e) {
|
2948 | return _this.getSlotScope(_this.getTimestampAtEvent(e, day));
|
2949 | })
|
2950 | }, __spread(this.genDayIntervals(index), [slot ? slot(scope) : '']));
|
2951 | },
|
2952 | genDayIntervals: function genDayIntervals(index) {
|
2953 | return this.intervals[index].map(this.genDayInterval);
|
2954 | },
|
2955 | genDayInterval: function genDayInterval(interval) {
|
2956 | var height = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["convertToUnit"])(this.intervalHeight);
|
2957 | var styler = this.intervalStyle || this.intervalStyleDefault;
|
2958 | var slot = this.$scopedSlots.interval;
|
2959 | var scope = this.getSlotScope(interval);
|
2960 | var data = {
|
2961 | key: interval.time,
|
2962 | staticClass: 'v-calendar-daily__day-interval',
|
2963 | style: __assign({
|
2964 | height: height
|
2965 | }, styler(interval))
|
2966 | };
|
2967 | var children = slot ? slot(scope) : undefined;
|
2968 | return this.$createElement('div', data, children);
|
2969 | },
|
2970 | genBodyIntervals: function genBodyIntervals() {
|
2971 | var _this = this;
|
2972 |
|
2973 | var data = {
|
2974 | staticClass: 'v-calendar-daily__intervals-body',
|
2975 | on: this.getDefaultMouseEventHandlers(':interval', function (e) {
|
2976 | return _this.getTimestampAtEvent(e, _this.parsedStart);
|
2977 | })
|
2978 | };
|
2979 | return this.$createElement('div', data, this.genIntervalLabels());
|
2980 | },
|
2981 | genIntervalLabels: function genIntervalLabels() {
|
2982 | if (!this.intervals.length) return null;
|
2983 | return this.intervals[0].map(this.genIntervalLabel);
|
2984 | },
|
2985 | genIntervalLabel: function genIntervalLabel(interval) {
|
2986 | var height = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["convertToUnit"])(this.intervalHeight);
|
2987 | var short = this.shortIntervals;
|
2988 | var shower = this.showIntervalLabel || this.showIntervalLabelDefault;
|
2989 | var show = shower(interval);
|
2990 | var label = show ? this.intervalFormatter(interval, short) : undefined;
|
2991 | return this.$createElement('div', {
|
2992 | key: interval.time,
|
2993 | staticClass: 'v-calendar-daily__interval',
|
2994 | style: {
|
2995 | height: height
|
2996 | }
|
2997 | }, [this.$createElement('div', {
|
2998 | staticClass: 'v-calendar-daily__interval-text'
|
2999 | }, label)]);
|
3000 | }
|
3001 | },
|
3002 | render: function render(h) {
|
3003 | return h('div', {
|
3004 | class: this.classes,
|
3005 | nativeOn: {
|
3006 | dragstart: function dragstart(e) {
|
3007 | e.preventDefault();
|
3008 | }
|
3009 | },
|
3010 | directives: [{
|
3011 | modifiers: {
|
3012 | quiet: true
|
3013 | },
|
3014 | name: 'resize',
|
3015 | value: this.onResize
|
3016 | }]
|
3017 | }, [!this.hideHeader ? this.genHead() : '', this.genBody()]);
|
3018 | }
|
3019 | }));
|
3020 |
|
3021 | }),
|
3022 |
|
3023 | "./src/components/VCalendar/VCalendarMonthly.ts":
|
3024 |
|
3025 |
|
3026 |
|
3027 |
|
3028 | (function(module, __webpack_exports__, __webpack_require__) {
|
3029 |
|
3030 | "use strict";
|
3031 | __webpack_require__.r(__webpack_exports__);
|
3032 | var _VCalendarWeekly_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCalendar/VCalendarWeekly.sass");
|
3033 | var _VCalendarWeekly_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VCalendarWeekly_sass__WEBPACK_IMPORTED_MODULE_0__);
|
3034 | var _VCalendarWeekly__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VCalendar/VCalendarWeekly.ts");
|
3035 | var _util_timestamp__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VCalendar/util/timestamp.ts");
|
3036 |
|
3037 |
|
3038 |
|
3039 |
|
3040 |
|
3041 |
|
3042 |
|
3043 |
|
3044 | __webpack_exports__["default"] = (_VCalendarWeekly__WEBPACK_IMPORTED_MODULE_1__["default"].extend({
|
3045 | name: 'v-calendar-monthly',
|
3046 | computed: {
|
3047 | staticClass: function staticClass() {
|
3048 | return 'v-calendar-monthly v-calendar-weekly';
|
3049 | },
|
3050 | parsedStart: function parsedStart() {
|
3051 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["getStartOfMonth"])(Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["parseTimestamp"])(this.start));
|
3052 | },
|
3053 | parsedEnd: function parsedEnd() {
|
3054 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["getEndOfMonth"])(Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["parseTimestamp"])(this.end));
|
3055 | }
|
3056 | }
|
3057 | }));
|
3058 |
|
3059 | }),
|
3060 |
|
3061 | "./src/components/VCalendar/VCalendarWeekly.sass":
|
3062 |
|
3063 |
|
3064 |
|
3065 |
|
3066 | (function(module, exports, __webpack_require__) {
|
3067 |
|
3068 |
|
3069 |
|
3070 | }),
|
3071 |
|
3072 | "./src/components/VCalendar/VCalendarWeekly.ts":
|
3073 |
|
3074 |
|
3075 |
|
3076 |
|
3077 | (function(module, __webpack_exports__, __webpack_require__) {
|
3078 |
|
3079 | "use strict";
|
3080 | __webpack_require__.r(__webpack_exports__);
|
3081 | var _VCalendarWeekly_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCalendar/VCalendarWeekly.sass");
|
3082 | var _VCalendarWeekly_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VCalendarWeekly_sass__WEBPACK_IMPORTED_MODULE_0__);
|
3083 | var _VBtn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VBtn/index.ts");
|
3084 | var _mixins_calendar_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VCalendar/mixins/calendar-base.ts");
|
3085 | var _util_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VCalendar/util/props.ts");
|
3086 | var _util_timestamp__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VCalendar/util/timestamp.ts");
|
3087 | var __assign = undefined && undefined.__assign || function () {
|
3088 | __assign = Object.assign || function (t) {
|
3089 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
3090 | s = arguments[i];
|
3091 |
|
3092 | for (var p in s) {
|
3093 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
3094 | }
|
3095 | }
|
3096 |
|
3097 | return t;
|
3098 | };
|
3099 |
|
3100 | return __assign.apply(this, arguments);
|
3101 | };
|
3102 |
|
3103 | var __read = undefined && undefined.__read || function (o, n) {
|
3104 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
3105 | if (!m) return o;
|
3106 | var i = m.call(o),
|
3107 | r,
|
3108 | ar = [],
|
3109 | e;
|
3110 |
|
3111 | try {
|
3112 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
3113 | ar.push(r.value);
|
3114 | }
|
3115 | } catch (error) {
|
3116 | e = {
|
3117 | error: error
|
3118 | };
|
3119 | } finally {
|
3120 | try {
|
3121 | if (r && !r.done && (m = i["return"])) m.call(i);
|
3122 | } finally {
|
3123 | if (e) throw e.error;
|
3124 | }
|
3125 | }
|
3126 |
|
3127 | return ar;
|
3128 | };
|
3129 |
|
3130 | var __spread = undefined && undefined.__spread || function () {
|
3131 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
3132 | ar = ar.concat(__read(arguments[i]));
|
3133 | }
|
3134 |
|
3135 | return ar;
|
3136 | };
|
3137 |
|
3138 |
|
3139 |
|
3140 |
|
3141 |
|
3142 |
|
3143 |
|
3144 |
|
3145 |
|
3146 |
|
3147 |
|
3148 |
|
3149 | __webpack_exports__["default"] = (_mixins_calendar_base__WEBPACK_IMPORTED_MODULE_2__["default"].extend({
|
3150 | name: 'v-calendar-weekly',
|
3151 | props: _util_props__WEBPACK_IMPORTED_MODULE_3__["default"].weeks,
|
3152 | computed: {
|
3153 | staticClass: function staticClass() {
|
3154 | return 'v-calendar-weekly';
|
3155 | },
|
3156 | classes: function classes() {
|
3157 | return this.themeClasses;
|
3158 | },
|
3159 | parsedMinWeeks: function parsedMinWeeks() {
|
3160 | return parseInt(this.minWeeks);
|
3161 | },
|
3162 | days: function days() {
|
3163 | var minDays = this.parsedMinWeeks * this.weekdays.length;
|
3164 | var start = this.getStartOfWeek(this.parsedStart);
|
3165 | var end = this.getEndOfWeek(this.parsedEnd);
|
3166 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_4__["createDayList"])(start, end, this.times.today, this.weekdaySkips, Number.MAX_SAFE_INTEGER, minDays);
|
3167 | },
|
3168 | todayWeek: function todayWeek() {
|
3169 | var today = this.times.today;
|
3170 | var start = this.getStartOfWeek(today);
|
3171 | var end = this.getEndOfWeek(today);
|
3172 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_4__["createDayList"])(start, end, today, this.weekdaySkips, this.weekdays.length, this.weekdays.length);
|
3173 | },
|
3174 | monthFormatter: function monthFormatter() {
|
3175 | if (this.monthFormat) {
|
3176 | return this.monthFormat;
|
3177 | }
|
3178 |
|
3179 | var longOptions = {
|
3180 | timeZone: 'UTC',
|
3181 | month: 'long'
|
3182 | };
|
3183 | var shortOptions = {
|
3184 | timeZone: 'UTC',
|
3185 | month: 'short'
|
3186 | };
|
3187 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_4__["createNativeLocaleFormatter"])(this.currentLocale, function (_tms, short) {
|
3188 | return short ? shortOptions : longOptions;
|
3189 | });
|
3190 | }
|
3191 | },
|
3192 | methods: {
|
3193 | isOutside: function isOutside(day) {
|
3194 | var dayIdentifier = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_4__["getDayIdentifier"])(day);
|
3195 | return dayIdentifier < Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_4__["getDayIdentifier"])(this.parsedStart) || dayIdentifier > Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_4__["getDayIdentifier"])(this.parsedEnd);
|
3196 | },
|
3197 | genHead: function genHead() {
|
3198 | return this.$createElement('div', {
|
3199 | staticClass: 'v-calendar-weekly__head'
|
3200 | }, this.genHeadDays());
|
3201 | },
|
3202 | genHeadDays: function genHeadDays() {
|
3203 | return this.todayWeek.map(this.genHeadDay);
|
3204 | },
|
3205 | genHeadDay: function genHeadDay(day, index) {
|
3206 | var outside = this.isOutside(this.days[index]);
|
3207 | var color = day.present ? this.color : undefined;
|
3208 | return this.$createElement('div', this.setTextColor(color, {
|
3209 | key: day.date,
|
3210 | staticClass: 'v-calendar-weekly__head-weekday',
|
3211 | class: this.getRelativeClasses(day, outside)
|
3212 | }), this.weekdayFormatter(day, this.shortWeekdays));
|
3213 | },
|
3214 | genWeeks: function genWeeks() {
|
3215 | var days = this.days;
|
3216 | var weekDays = this.weekdays.length;
|
3217 | var weeks = [];
|
3218 |
|
3219 | for (var i = 0; i < days.length; i += weekDays) {
|
3220 | weeks.push(this.genWeek(days.slice(i, i + weekDays)));
|
3221 | }
|
3222 |
|
3223 | return weeks;
|
3224 | },
|
3225 | genWeek: function genWeek(week) {
|
3226 | return this.$createElement('div', {
|
3227 | key: week[0].date,
|
3228 | staticClass: 'v-calendar-weekly__week'
|
3229 | }, week.map(this.genDay));
|
3230 | },
|
3231 | genDay: function genDay(day, index) {
|
3232 | var outside = this.isOutside(day);
|
3233 | var slot = this.$scopedSlots.day;
|
3234 |
|
3235 | var scope = __assign({
|
3236 | outside: outside,
|
3237 | index: index
|
3238 | }, day);
|
3239 |
|
3240 | return this.$createElement('div', {
|
3241 | key: day.date,
|
3242 | staticClass: 'v-calendar-weekly__day',
|
3243 | class: this.getRelativeClasses(day, outside),
|
3244 | on: this.getDefaultMouseEventHandlers(':day', function (_e) {
|
3245 | return day;
|
3246 | })
|
3247 | }, [this.genDayLabel(day), slot ? slot(scope) : '']);
|
3248 | },
|
3249 | genDayLabel: function genDayLabel(day) {
|
3250 | var slot = this.$scopedSlots['day-label'];
|
3251 | return this.$createElement('div', {
|
3252 | staticClass: 'v-calendar-weekly__day-label'
|
3253 | }, [slot ? slot(day) : this.genDayLabelButton(day)]);
|
3254 | },
|
3255 | genDayLabelButton: function genDayLabelButton(day) {
|
3256 | var color = day.present ? this.color : 'transparent';
|
3257 | var hasMonth = day.day === 1 && this.showMonthOnFirst;
|
3258 | return this.$createElement(_VBtn__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
3259 | props: {
|
3260 | color: color,
|
3261 | fab: true,
|
3262 | depressed: true,
|
3263 | small: true
|
3264 | },
|
3265 | on: this.getMouseEventHandlers({
|
3266 | 'click:date': {
|
3267 | event: 'click',
|
3268 | stop: true
|
3269 | },
|
3270 | 'contextmenu:date': {
|
3271 | event: 'contextmenu',
|
3272 | stop: true,
|
3273 | prevent: true,
|
3274 | result: false
|
3275 | }
|
3276 | }, function (_e) {
|
3277 | return day;
|
3278 | })
|
3279 | }, hasMonth ? this.monthFormatter(day, this.shortMonths) + ' ' + this.dayFormatter(day, false) : this.dayFormatter(day, false));
|
3280 | },
|
3281 | genDayMonth: function genDayMonth(day) {
|
3282 | var color = day.present ? this.color : undefined;
|
3283 | var slot = this.$scopedSlots['day-month'];
|
3284 | return this.$createElement('div', this.setTextColor(color, {
|
3285 | staticClass: 'v-calendar-weekly__day-month'
|
3286 | }), slot ? slot(day) : this.monthFormatter(day, this.shortMonths));
|
3287 | }
|
3288 | },
|
3289 | render: function render(h) {
|
3290 | return h('div', {
|
3291 | staticClass: this.staticClass,
|
3292 | class: this.classes,
|
3293 | nativeOn: {
|
3294 | dragstart: function dragstart(e) {
|
3295 | e.preventDefault();
|
3296 | }
|
3297 | }
|
3298 | }, __spread([!this.hideHeader ? this.genHead() : ''], this.genWeeks()));
|
3299 | }
|
3300 | }));
|
3301 |
|
3302 | }),
|
3303 |
|
3304 | "./src/components/VCalendar/index.ts":
|
3305 |
|
3306 |
|
3307 |
|
3308 |
|
3309 | (function(module, __webpack_exports__, __webpack_require__) {
|
3310 |
|
3311 | "use strict";
|
3312 | __webpack_require__.r(__webpack_exports__);
|
3313 | var _VCalendar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCalendar/VCalendar.ts");
|
3314 | __webpack_require__.d(__webpack_exports__, "VCalendar", function() { return _VCalendar__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
3315 |
|
3316 | var _VCalendarDaily__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VCalendar/VCalendarDaily.ts");
|
3317 | __webpack_require__.d(__webpack_exports__, "VCalendarDaily", function() { return _VCalendarDaily__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
3318 |
|
3319 | var _VCalendarWeekly__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VCalendar/VCalendarWeekly.ts");
|
3320 | __webpack_require__.d(__webpack_exports__, "VCalendarWeekly", function() { return _VCalendarWeekly__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
3321 |
|
3322 | var _VCalendarMonthly__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VCalendar/VCalendarMonthly.ts");
|
3323 | __webpack_require__.d(__webpack_exports__, "VCalendarMonthly", function() { return _VCalendarMonthly__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
3324 |
|
3325 |
|
3326 |
|
3327 |
|
3328 |
|
3329 |
|
3330 | __webpack_exports__["default"] = ({
|
3331 | $_vuetify_subcomponents: {
|
3332 | VCalendar: _VCalendar__WEBPACK_IMPORTED_MODULE_0__["default"],
|
3333 | VCalendarDaily: _VCalendarDaily__WEBPACK_IMPORTED_MODULE_1__["default"],
|
3334 | VCalendarWeekly: _VCalendarWeekly__WEBPACK_IMPORTED_MODULE_2__["default"],
|
3335 | VCalendarMonthly: _VCalendarMonthly__WEBPACK_IMPORTED_MODULE_3__["default"]
|
3336 | }
|
3337 | });
|
3338 |
|
3339 | }),
|
3340 |
|
3341 | "./src/components/VCalendar/mixins/calendar-base.ts":
|
3342 |
|
3343 |
|
3344 |
|
3345 |
|
3346 | (function(module, __webpack_exports__, __webpack_require__) {
|
3347 |
|
3348 | "use strict";
|
3349 | __webpack_require__.r(__webpack_exports__);
|
3350 | var _util_mixins__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/mixins.ts");
|
3351 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
3352 | var _mixins_localable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/localable/index.ts");
|
3353 | var _mouse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VCalendar/mixins/mouse.ts");
|
3354 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
3355 | var _times__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/components/VCalendar/mixins/times.ts");
|
3356 | var _directives_resize__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/directives/resize/index.ts");
|
3357 | var _util_props__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/components/VCalendar/util/props.ts");
|
3358 | var _util_timestamp__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/components/VCalendar/util/timestamp.ts");
|
3359 |
|
3360 |
|
3361 |
|
3362 |
|
3363 |
|
3364 |
|
3365 |
|
3366 |
|
3367 |
|
3368 |
|
3369 |
|
3370 |
|
3371 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_0__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_localable__WEBPACK_IMPORTED_MODULE_2__["default"], _mouse__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_4__["default"], _times__WEBPACK_IMPORTED_MODULE_5__["default"]
|
3372 |
|
3373 | ).extend({
|
3374 | name: 'calendar-base',
|
3375 | directives: {
|
3376 | Resize: _directives_resize__WEBPACK_IMPORTED_MODULE_6__["default"]
|
3377 | },
|
3378 | props: _util_props__WEBPACK_IMPORTED_MODULE_7__["default"].base,
|
3379 | computed: {
|
3380 | weekdaySkips: function weekdaySkips() {
|
3381 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_8__["getWeekdaySkips"])(this.weekdays);
|
3382 | },
|
3383 | weekdaySkipsReverse: function weekdaySkipsReverse() {
|
3384 | var reversed = this.weekdaySkips.slice();
|
3385 | reversed.reverse();
|
3386 | return reversed;
|
3387 | },
|
3388 | parsedStart: function parsedStart() {
|
3389 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_8__["parseTimestamp"])(this.start);
|
3390 | },
|
3391 | parsedEnd: function parsedEnd() {
|
3392 | return this.end ? Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_8__["parseTimestamp"])(this.end) : this.parsedStart;
|
3393 | },
|
3394 | days: function days() {
|
3395 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_8__["createDayList"])(this.parsedStart, this.parsedEnd, this.times.today, this.weekdaySkips);
|
3396 | },
|
3397 | dayFormatter: function dayFormatter() {
|
3398 | if (this.dayFormat) {
|
3399 | return this.dayFormat;
|
3400 | }
|
3401 |
|
3402 | var options = {
|
3403 | timeZone: 'UTC',
|
3404 | day: 'numeric'
|
3405 | };
|
3406 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_8__["createNativeLocaleFormatter"])(this.currentLocale, function (_tms, _short) {
|
3407 | return options;
|
3408 | });
|
3409 | },
|
3410 | weekdayFormatter: function weekdayFormatter() {
|
3411 | if (this.weekdayFormat) {
|
3412 | return this.weekdayFormat;
|
3413 | }
|
3414 |
|
3415 | var longOptions = {
|
3416 | timeZone: 'UTC',
|
3417 | weekday: 'long'
|
3418 | };
|
3419 | var shortOptions = {
|
3420 | timeZone: 'UTC',
|
3421 | weekday: 'short'
|
3422 | };
|
3423 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_8__["createNativeLocaleFormatter"])(this.currentLocale, function (_tms, short) {
|
3424 | return short ? shortOptions : longOptions;
|
3425 | });
|
3426 | }
|
3427 | },
|
3428 | methods: {
|
3429 | getRelativeClasses: function getRelativeClasses(timestamp, outside) {
|
3430 | if (outside === void 0) {
|
3431 | outside = false;
|
3432 | }
|
3433 |
|
3434 | return {
|
3435 | 'v-present': timestamp.present,
|
3436 | 'v-past': timestamp.past,
|
3437 | 'v-future': timestamp.future,
|
3438 | 'v-outside': outside
|
3439 | };
|
3440 | },
|
3441 | getStartOfWeek: function getStartOfWeek(timestamp) {
|
3442 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_8__["getStartOfWeek"])(timestamp, this.weekdays, this.times.today);
|
3443 | },
|
3444 | getEndOfWeek: function getEndOfWeek(timestamp) {
|
3445 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_8__["getEndOfWeek"])(timestamp, this.weekdays, this.times.today);
|
3446 | },
|
3447 | getFormatter: function getFormatter(options) {
|
3448 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_8__["createNativeLocaleFormatter"])(this.locale, function (_tms, _short) {
|
3449 | return options;
|
3450 | });
|
3451 | }
|
3452 | }
|
3453 | }));
|
3454 |
|
3455 | }),
|
3456 |
|
3457 | "./src/components/VCalendar/mixins/calendar-with-events.sass":
|
3458 |
|
3459 |
|
3460 |
|
3461 |
|
3462 | (function(module, exports, __webpack_require__) {
|
3463 |
|
3464 |
|
3465 |
|
3466 | }),
|
3467 |
|
3468 | "./src/components/VCalendar/mixins/calendar-with-events.ts":
|
3469 |
|
3470 |
|
3471 |
|
3472 |
|
3473 | (function(module, __webpack_exports__, __webpack_require__) {
|
3474 |
|
3475 | "use strict";
|
3476 | __webpack_require__.r(__webpack_exports__);
|
3477 | var _calendar_with_events_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCalendar/mixins/calendar-with-events.sass");
|
3478 | var _calendar_with_events_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_calendar_with_events_sass__WEBPACK_IMPORTED_MODULE_0__);
|
3479 | var _directives_ripple__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/directives/ripple/index.ts");
|
3480 | var _calendar_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VCalendar/mixins/calendar-base.ts");
|
3481 | var _util_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VCalendar/util/props.ts");
|
3482 | var _util_timestamp__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VCalendar/util/timestamp.ts");
|
3483 | var _util_events__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/components/VCalendar/util/events.ts");
|
3484 | var __assign = undefined && undefined.__assign || function () {
|
3485 | __assign = Object.assign || function (t) {
|
3486 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
3487 | s = arguments[i];
|
3488 |
|
3489 | for (var p in s) {
|
3490 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
3491 | }
|
3492 | }
|
3493 |
|
3494 | return t;
|
3495 | };
|
3496 |
|
3497 | return __assign.apply(this, arguments);
|
3498 | };
|
3499 |
|
3500 |
|
3501 |
|
3502 |
|
3503 |
|
3504 |
|
3505 |
|
3506 |
|
3507 |
|
3508 |
|
3509 |
|
3510 |
|
3511 |
|
3512 | __webpack_exports__["default"] = (_calendar_base__WEBPACK_IMPORTED_MODULE_2__["default"].extend({
|
3513 | name: 'calendar-with-events',
|
3514 | directives: {
|
3515 | ripple: _directives_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
|
3516 | },
|
3517 | props: _util_props__WEBPACK_IMPORTED_MODULE_3__["default"].events,
|
3518 | computed: {
|
3519 | noEvents: function noEvents() {
|
3520 | return this.events.length === 0;
|
3521 | },
|
3522 | parsedEvents: function parsedEvents() {
|
3523 | var _this = this;
|
3524 |
|
3525 | return this.events.map(function (input, index) {
|
3526 | return Object(_util_events__WEBPACK_IMPORTED_MODULE_5__["parseEvent"])(input, index, _this.eventStart, _this.eventEnd);
|
3527 | });
|
3528 | },
|
3529 | eventColorFunction: function eventColorFunction() {
|
3530 | var _this = this;
|
3531 |
|
3532 | return typeof this.eventColor === 'function' ? this.eventColor : function () {
|
3533 | return _this.eventColor;
|
3534 | };
|
3535 | },
|
3536 | eventTextColorFunction: function eventTextColorFunction() {
|
3537 | var _this = this;
|
3538 |
|
3539 | return typeof this.eventTextColor === 'function' ? this.eventTextColor : function () {
|
3540 | return _this.eventTextColor;
|
3541 | };
|
3542 | },
|
3543 | eventNameFunction: function eventNameFunction() {
|
3544 | var _this = this;
|
3545 |
|
3546 | return typeof this.eventName === 'function' ? this.eventName : function (event, timedEvent) {
|
3547 | var name = event.input[_this.eventName];
|
3548 |
|
3549 | if (event.start.hasTime) {
|
3550 | if (timedEvent) {
|
3551 | var showStart = event.start.hour < 12 && event.end.hour >= 12;
|
3552 |
|
3553 | var start = _this.formatTime(event.start, showStart);
|
3554 |
|
3555 | var end = _this.formatTime(event.end, true);
|
3556 |
|
3557 | return "<strong>" + name + "</strong><br>" + start + " - " + end;
|
3558 | } else {
|
3559 | var time = _this.formatTime(event.start, true);
|
3560 |
|
3561 | return "<strong>" + time + "</strong> " + name;
|
3562 | }
|
3563 | }
|
3564 |
|
3565 | return name;
|
3566 | };
|
3567 | }
|
3568 | },
|
3569 | methods: {
|
3570 | formatTime: function formatTime(withTime, ampm) {
|
3571 | var suffix = ampm ? withTime.hour < 12 ? 'a' : 'p' : '';
|
3572 | var hour = withTime.hour % 12 || 12;
|
3573 | var minute = withTime.minute;
|
3574 | return minute > 0 ? minute < 10 ? hour + ":0" + minute + suffix : hour + ":" + minute + suffix : "" + hour + suffix;
|
3575 | },
|
3576 | updateEventVisibility: function updateEventVisibility() {
|
3577 | if (this.noEvents || !this.eventMore) {
|
3578 | return;
|
3579 | }
|
3580 |
|
3581 | var eventHeight = this.eventHeight;
|
3582 | var eventsMap = this.getEventsMap();
|
3583 |
|
3584 | for (var date in eventsMap) {
|
3585 | var _a = eventsMap[date],
|
3586 | parent = _a.parent,
|
3587 | events = _a.events,
|
3588 | more = _a.more;
|
3589 |
|
3590 | if (!more) {
|
3591 | break;
|
3592 | }
|
3593 |
|
3594 | var parentBounds = parent.getBoundingClientRect();
|
3595 | var last = events.length - 1;
|
3596 | var hide = false;
|
3597 | var hidden = 0;
|
3598 |
|
3599 | for (var i = 0; i <= last; i++) {
|
3600 | if (!hide) {
|
3601 | var eventBounds = events[i].getBoundingClientRect();
|
3602 | hide = eventBounds.bottom + eventHeight > parentBounds.bottom && i !== last || events[i].style.display === 'none';
|
3603 | }
|
3604 |
|
3605 | if (hide) {
|
3606 | var id = events[i].getAttribute('data-event');
|
3607 | this.hideEvents(id);
|
3608 | hidden++;
|
3609 | }
|
3610 | }
|
3611 |
|
3612 | if (hide) {
|
3613 | more.style.display = '';
|
3614 | more.innerHTML = this.$vuetify.lang.t(this.eventMoreText, hidden);
|
3615 | } else {
|
3616 | more.style.display = 'none';
|
3617 | }
|
3618 | }
|
3619 | },
|
3620 | hideEvents: function hideEvents(id) {
|
3621 | var elements = this.$refs.events;
|
3622 | elements.forEach(function (el) {
|
3623 | if (el.getAttribute('data-event') === id) {
|
3624 | el.style.display = 'none';
|
3625 | }
|
3626 | });
|
3627 | },
|
3628 | getEventsMap: function getEventsMap() {
|
3629 | var eventsMap = {};
|
3630 | var elements = this.$refs.events;
|
3631 |
|
3632 | if (!elements || !elements.forEach) {
|
3633 | return eventsMap;
|
3634 | }
|
3635 |
|
3636 | elements.forEach(function (el) {
|
3637 | var date = el.getAttribute('data-date');
|
3638 |
|
3639 | if (el.parentElement && date) {
|
3640 | if (!(date in eventsMap)) {
|
3641 | eventsMap[date] = {
|
3642 | parent: el.parentElement,
|
3643 | more: null,
|
3644 | events: []
|
3645 | };
|
3646 | }
|
3647 |
|
3648 | if (el.getAttribute('data-more')) {
|
3649 | eventsMap[date].more = el;
|
3650 | } else {
|
3651 | eventsMap[date].events.push(el);
|
3652 | el.style.display = '';
|
3653 | }
|
3654 | }
|
3655 | });
|
3656 | return eventsMap;
|
3657 | },
|
3658 | genDayEvent: function genDayEvent(_a, index, day) {
|
3659 | var offset = _a.offset,
|
3660 | event = _a.event;
|
3661 | var eventHeight = this.eventHeight;
|
3662 | var eventMarginBottom = this.eventMarginBottom;
|
3663 | var relativeOffset = (offset - index) * (eventHeight + eventMarginBottom);
|
3664 |
|
3665 | var dayIdentifier = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_4__["getDayIdentifier"])(day);
|
3666 | var start = dayIdentifier === event.startIdentifier;
|
3667 | var end = dayIdentifier === event.endIdentifier;
|
3668 | var scope = {
|
3669 | event: event.input,
|
3670 | day: day,
|
3671 | outside: day.outside,
|
3672 | start: start,
|
3673 | end: end,
|
3674 | timed: false
|
3675 | };
|
3676 | return this.genEvent(event, scope, start || day.index === 0, false, {
|
3677 | staticClass: 'v-event',
|
3678 | class: {
|
3679 | 'v-event-start': start,
|
3680 | 'v-event-end': end
|
3681 | },
|
3682 | style: {
|
3683 | height: eventHeight + "px",
|
3684 | top: relativeOffset + "px",
|
3685 | 'margin-bottom': eventMarginBottom + "px"
|
3686 | },
|
3687 | attrs: {
|
3688 | 'data-date': day.date,
|
3689 | 'data-event': event.index
|
3690 | },
|
3691 | key: event.index,
|
3692 | ref: 'events',
|
3693 | refInFor: true
|
3694 | });
|
3695 | },
|
3696 | genTimedEvent: function genTimedEvent(_a, index, day) {
|
3697 | var offset = _a.offset,
|
3698 | event = _a.event,
|
3699 | columnCount = _a.columnCount,
|
3700 | column = _a.column;
|
3701 | var dayIdentifier = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_4__["getDayIdentifier"])(day);
|
3702 | var start = event.startIdentifier >= dayIdentifier;
|
3703 | var end = event.endIdentifier > dayIdentifier;
|
3704 | var top = start ? day.timeToY(event.start) : 0;
|
3705 | var bottom = end ? day.timeToY(1440) : day.timeToY(event.end);
|
3706 | var height = Math.max(this.eventHeight, bottom - top);
|
3707 | var left = columnCount === -1 ? offset * 5 : column * 100 / columnCount;
|
3708 | var right = columnCount === -1 ? 0 : Math.max(0, (columnCount - column - 2) * 100 / columnCount + 10);
|
3709 | var scope = {
|
3710 | event: event.input,
|
3711 | day: day,
|
3712 | outside: day.outside,
|
3713 | start: start,
|
3714 | end: end,
|
3715 | timed: true
|
3716 | };
|
3717 | return this.genEvent(event, scope, true, true, {
|
3718 | staticClass: 'v-event-timed',
|
3719 | style: {
|
3720 | top: top + "px",
|
3721 | height: height + "px",
|
3722 | left: left + "%",
|
3723 | right: right + "%"
|
3724 | }
|
3725 | });
|
3726 | },
|
3727 | genEvent: function genEvent(event, scope, showName, timedEvent, data) {
|
3728 | var slot = this.$scopedSlots.event;
|
3729 | var text = this.eventTextColorFunction(event.input);
|
3730 | var background = this.eventColorFunction(event.input);
|
3731 | return this.$createElement('div', this.setTextColor(text, this.setBackgroundColor(background, __assign({
|
3732 | on: this.getDefaultMouseEventHandlers(':event', function (nativeEvent) {
|
3733 | return __assign({}, scope, {
|
3734 | nativeEvent: nativeEvent
|
3735 | });
|
3736 | }),
|
3737 | directives: [{
|
3738 | name: 'ripple',
|
3739 | value: this.eventRipple != null ? this.eventRipple : true
|
3740 | }]
|
3741 | }, data))), slot ? slot(scope) : showName ? [this.genName(event, timedEvent)] : undefined);
|
3742 | },
|
3743 | genName: function genName(event, timedEvent) {
|
3744 | return this.$createElement('div', {
|
3745 | staticClass: 'pl-1',
|
3746 | domProps: {
|
3747 | innerHTML: this.eventNameFunction(event, timedEvent)
|
3748 | }
|
3749 | });
|
3750 | },
|
3751 | genMore: function genMore(day) {
|
3752 | var _this = this;
|
3753 |
|
3754 | return this.$createElement('div', {
|
3755 | staticClass: 'v-event-more pl-1',
|
3756 | attrs: {
|
3757 | 'data-date': day.date,
|
3758 | 'data-more': 1
|
3759 | },
|
3760 | directives: [{
|
3761 | name: 'ripple',
|
3762 | value: this.eventRipple != null ? this.eventRipple : true
|
3763 | }],
|
3764 | on: {
|
3765 | click: function click() {
|
3766 | return _this.$emit('click:more', day);
|
3767 | }
|
3768 | },
|
3769 | style: {
|
3770 | display: 'none'
|
3771 | },
|
3772 | ref: 'events',
|
3773 | refInFor: true
|
3774 | });
|
3775 | },
|
3776 | getEventsForDay: function getEventsForDay(day) {
|
3777 | var identifier = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_4__["getDayIdentifier"])(day);
|
3778 | return this.parsedEvents.filter(function (event) {
|
3779 | return Object(_util_events__WEBPACK_IMPORTED_MODULE_5__["isEventOn"])(event, identifier);
|
3780 | });
|
3781 | },
|
3782 | getEventsForDayAll: function getEventsForDayAll(day) {
|
3783 | var identifier = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_4__["getDayIdentifier"])(day);
|
3784 | return this.parsedEvents.filter(function (event) {
|
3785 | return event.allDay && Object(_util_events__WEBPACK_IMPORTED_MODULE_5__["isEventOn"])(event, identifier);
|
3786 | });
|
3787 | },
|
3788 | getEventsForDayTimed: function getEventsForDayTimed(day) {
|
3789 | var identifier = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_4__["getDayIdentifier"])(day);
|
3790 | return this.parsedEvents.filter(function (event) {
|
3791 | return !event.allDay && Object(_util_events__WEBPACK_IMPORTED_MODULE_5__["isEventOn"])(event, identifier);
|
3792 | });
|
3793 | },
|
3794 | isSameColumn: function isSameColumn(a, b) {
|
3795 | var astart = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_4__["parseTime"])(a.event.start);
|
3796 | var bstart = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_4__["parseTime"])(b.event.start);
|
3797 | var diff = astart - bstart;
|
3798 | var abs = diff < 0 ? -diff : diff;
|
3799 | return abs < this.eventOverlapThreshold;
|
3800 | },
|
3801 | isOverlapping: function isOverlapping(a, b) {
|
3802 | var astart = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_4__["parseTime"])(a.event.start);
|
3803 | var bstart = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_4__["parseTime"])(b.event.start);
|
3804 |
|
3805 | if (a.offset < b.offset && bstart < astart) {
|
3806 | var aend = astart + this.eventOverlapThreshold;
|
3807 | var bend = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_4__["parseTime"])(b.event.end);
|
3808 | return !(astart >= bend || aend <= bstart);
|
3809 | }
|
3810 |
|
3811 | return false;
|
3812 | },
|
3813 | getScopedSlots: function getScopedSlots() {
|
3814 | var _this = this;
|
3815 |
|
3816 | if (this.noEvents) {
|
3817 | return this.$scopedSlots;
|
3818 | }
|
3819 | |
3820 |
|
3821 |
|
3822 |
|
3823 |
|
3824 |
|
3825 |
|
3826 |
|
3827 |
|
3828 |
|
3829 | var parsedEvents = this.parsedEvents;
|
3830 | var indexToOffset = parsedEvents.map(function (event) {
|
3831 | return -1;
|
3832 | });
|
3833 | var resetOnWeekday = this.weekdays[0];
|
3834 |
|
3835 | var checkReset = function checkReset(day) {
|
3836 | if (day.weekday === resetOnWeekday) {
|
3837 | for (var i = 0; i < indexToOffset.length; i++) {
|
3838 | indexToOffset[i] = -1;
|
3839 | }
|
3840 | }
|
3841 | };
|
3842 |
|
3843 | var getOffset = function getOffset(visual, visuals) {
|
3844 | var offset = indexToOffset[visual.event.index];
|
3845 |
|
3846 | if (offset === -1) {
|
3847 | var min_1 = Number.MAX_SAFE_INTEGER;
|
3848 | var max_1 = -1;
|
3849 | visuals.forEach(function (other) {
|
3850 | var otherOffset = indexToOffset[other.event.index];
|
3851 |
|
3852 | if (otherOffset !== -1) {
|
3853 | min_1 = Math.min(min_1, otherOffset);
|
3854 | max_1 = Math.max(max_1, otherOffset);
|
3855 | }
|
3856 | });
|
3857 | offset = min_1 > 0 && max_1 !== -1 ? min_1 - 1 : max_1 + 1;
|
3858 | indexToOffset[visual.event.index] = offset;
|
3859 | }
|
3860 |
|
3861 | return offset;
|
3862 | };
|
3863 |
|
3864 | var getVisuals = function getVisuals(events, timed) {
|
3865 | var visuals = events.map(function (event) {
|
3866 | return {
|
3867 | event: event,
|
3868 | offset: 0,
|
3869 | columnCount: -1,
|
3870 | column: -1
|
3871 | };
|
3872 | });
|
3873 |
|
3874 | visuals.sort(function (a, b) {
|
3875 | return a.event.startTimestampIdentifier - b.event.startTimestampIdentifier;
|
3876 | });
|
3877 |
|
3878 | if (timed) {
|
3879 |
|
3880 | visuals.forEach(function (visual) {
|
3881 | if (visual.columnCount !== -1) {
|
3882 | return;
|
3883 | }
|
3884 |
|
3885 | var columns = [];
|
3886 | visuals.forEach(function (other) {
|
3887 | if (other.columnCount === -1 && _this.isSameColumn(visual, other)) {
|
3888 | columns.push(other);
|
3889 | }
|
3890 | });
|
3891 |
|
3892 | if (columns.length > 1) {
|
3893 | columns.forEach(function (visual, visualIndex) {
|
3894 | visual.column = visualIndex;
|
3895 | visual.columnCount = columns.length;
|
3896 | });
|
3897 | }
|
3898 | });
|
3899 |
|
3900 |
|
3901 | visuals.forEach(function (visual) {
|
3902 | if (visual.columnCount === -1) {
|
3903 | visuals.forEach(function (other) {
|
3904 | var otherOffset = indexToOffset[other.event.index];
|
3905 |
|
3906 | if (otherOffset !== -1 && other.event.endTimestampIdentifier <= visual.event.startTimestampIdentifier) {
|
3907 | indexToOffset[other.event.index] = -1;
|
3908 | }
|
3909 | });
|
3910 | visual.offset = getOffset(visual, visuals);
|
3911 | }
|
3912 | });
|
3913 |
|
3914 |
|
3915 | visuals.forEach(function (visual) {
|
3916 | if (visual.columnCount === -1) {
|
3917 | var columns_1 = [visual];
|
3918 | visuals.forEach(function (other) {
|
3919 | if (other !== visual && other.columnCount === -1 && _this.isOverlapping(visual, other)) {
|
3920 | columns_1.push(other);
|
3921 | }
|
3922 | });
|
3923 |
|
3924 | if (columns_1.length > 1) {
|
3925 | columns_1.forEach(function (visual, visualIndex) {
|
3926 | visual.column = visualIndex;
|
3927 | visual.columnCount = columns_1.length;
|
3928 | });
|
3929 | }
|
3930 | }
|
3931 | });
|
3932 | } else {
|
3933 | visuals.forEach(function (visual) {
|
3934 | visual.offset = getOffset(visual, visuals);
|
3935 | });
|
3936 | }
|
3937 |
|
3938 | visuals.sort(function (a, b) {
|
3939 | return a.offset - b.offset || a.column - b.column;
|
3940 | });
|
3941 | return visuals;
|
3942 | };
|
3943 |
|
3944 | var getSlotChildren = function getSlotChildren(day, getter, mapper, timed) {
|
3945 | checkReset(day);
|
3946 | var events = getter(day);
|
3947 | return events.length === 0 ? undefined : getVisuals(events, timed).map(function (visual, index) {
|
3948 | return mapper(visual, index, day);
|
3949 | });
|
3950 | };
|
3951 |
|
3952 | return __assign({}, this.$scopedSlots, {
|
3953 | day: function day(_day) {
|
3954 | var children = getSlotChildren(_day, _this.getEventsForDay, _this.genDayEvent, false);
|
3955 |
|
3956 | if (children && children.length > 0 && _this.eventMore) {
|
3957 | children.push(_this.genMore(_day));
|
3958 | }
|
3959 |
|
3960 | return children;
|
3961 | },
|
3962 | 'day-header': function dayHeader(day) {
|
3963 | return getSlotChildren(day, _this.getEventsForDayAll, _this.genDayEvent, false);
|
3964 | },
|
3965 | 'day-body': function dayBody(day) {
|
3966 | return [_this.$createElement('div', {
|
3967 | staticClass: 'v-event-timed-container'
|
3968 | }, getSlotChildren(day, _this.getEventsForDayTimed, _this.genTimedEvent, true))];
|
3969 | }
|
3970 | });
|
3971 | }
|
3972 | }
|
3973 | }));
|
3974 |
|
3975 | }),
|
3976 |
|
3977 | "./src/components/VCalendar/mixins/calendar-with-intervals.ts":
|
3978 |
|
3979 |
|
3980 |
|
3981 |
|
3982 | (function(module, __webpack_exports__, __webpack_require__) {
|
3983 |
|
3984 | "use strict";
|
3985 | __webpack_require__.r(__webpack_exports__);
|
3986 | var _calendar_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCalendar/mixins/calendar-base.ts");
|
3987 | var _util_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VCalendar/util/props.ts");
|
3988 | var _util_timestamp__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VCalendar/util/timestamp.ts");
|
3989 |
|
3990 |
|
3991 |
|
3992 |
|
3993 |
|
3994 |
|
3995 |
|
3996 | __webpack_exports__["default"] = (_calendar_base__WEBPACK_IMPORTED_MODULE_0__["default"].extend({
|
3997 | name: 'calendar-with-intervals',
|
3998 | props: _util_props__WEBPACK_IMPORTED_MODULE_1__["default"].intervals,
|
3999 | computed: {
|
4000 | parsedFirstInterval: function parsedFirstInterval() {
|
4001 | return parseInt(this.firstInterval);
|
4002 | },
|
4003 | parsedIntervalMinutes: function parsedIntervalMinutes() {
|
4004 | return parseInt(this.intervalMinutes);
|
4005 | },
|
4006 | parsedIntervalCount: function parsedIntervalCount() {
|
4007 | return parseInt(this.intervalCount);
|
4008 | },
|
4009 | parsedIntervalHeight: function parsedIntervalHeight() {
|
4010 | return parseFloat(this.intervalHeight);
|
4011 | },
|
4012 | firstMinute: function firstMinute() {
|
4013 | return this.parsedFirstInterval * this.parsedIntervalMinutes;
|
4014 | },
|
4015 | bodyHeight: function bodyHeight() {
|
4016 | return this.parsedIntervalCount * this.parsedIntervalHeight;
|
4017 | },
|
4018 | days: function days() {
|
4019 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["createDayList"])(this.parsedStart, this.parsedEnd, this.times.today, this.weekdaySkips, this.maxDays);
|
4020 | },
|
4021 | intervals: function intervals() {
|
4022 | var days = this.days;
|
4023 | var first = this.parsedFirstInterval;
|
4024 | var minutes = this.parsedIntervalMinutes;
|
4025 | var count = this.parsedIntervalCount;
|
4026 | var now = this.times.now;
|
4027 | return days.map(function (d) {
|
4028 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["createIntervalList"])(d, first, minutes, count, now);
|
4029 | });
|
4030 | },
|
4031 | intervalFormatter: function intervalFormatter() {
|
4032 | if (this.intervalFormat) {
|
4033 | return this.intervalFormat;
|
4034 | }
|
4035 |
|
4036 | var longOptions = {
|
4037 | timeZone: 'UTC',
|
4038 | hour12: true,
|
4039 | hour: '2-digit',
|
4040 | minute: '2-digit'
|
4041 | };
|
4042 | var shortOptions = {
|
4043 | timeZone: 'UTC',
|
4044 | hour12: true,
|
4045 | hour: 'numeric',
|
4046 | minute: '2-digit'
|
4047 | };
|
4048 | var shortHourOptions = {
|
4049 | timeZone: 'UTC',
|
4050 | hour12: true,
|
4051 | hour: 'numeric'
|
4052 | };
|
4053 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["createNativeLocaleFormatter"])(this.currentLocale, function (tms, short) {
|
4054 | return short ? tms.minute === 0 ? shortHourOptions : shortOptions : longOptions;
|
4055 | });
|
4056 | }
|
4057 | },
|
4058 | methods: {
|
4059 | showIntervalLabelDefault: function showIntervalLabelDefault(interval) {
|
4060 | var first = this.intervals[0][0];
|
4061 | var isFirst = first.hour === interval.hour && first.minute === interval.minute;
|
4062 | return !isFirst && interval.minute === 0;
|
4063 | },
|
4064 | intervalStyleDefault: function intervalStyleDefault(_interval) {
|
4065 | return undefined;
|
4066 | },
|
4067 | getTimestampAtEvent: function getTimestampAtEvent(e, day) {
|
4068 | var timestamp = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["copyTimestamp"])(day);
|
4069 | var bounds = e.currentTarget.getBoundingClientRect();
|
4070 | var baseMinutes = this.firstMinute;
|
4071 | var touchEvent = e;
|
4072 | var mouseEvent = e;
|
4073 | var touches = touchEvent.changedTouches || touchEvent.touches;
|
4074 | var clientY = touches && touches[0] ? touches[0].clientY : mouseEvent.clientY;
|
4075 | var addIntervals = (clientY - bounds.top) / this.parsedIntervalHeight;
|
4076 | var addMinutes = Math.floor(addIntervals * this.parsedIntervalMinutes);
|
4077 | var minutes = baseMinutes + addMinutes;
|
4078 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["updateMinutes"])(timestamp, minutes, this.times.now);
|
4079 | },
|
4080 | getSlotScope: function getSlotScope(timestamp) {
|
4081 | var scope = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["copyTimestamp"])(timestamp);
|
4082 | scope.timeToY = this.timeToY;
|
4083 | scope.minutesToPixels = this.minutesToPixels;
|
4084 | return scope;
|
4085 | },
|
4086 | scrollToTime: function scrollToTime(time) {
|
4087 | var y = this.timeToY(time);
|
4088 | var pane = this.$refs.scrollArea;
|
4089 |
|
4090 | if (y === false || !pane) {
|
4091 | return false;
|
4092 | }
|
4093 |
|
4094 | pane.scrollTop = y;
|
4095 | return true;
|
4096 | },
|
4097 | minutesToPixels: function minutesToPixels(minutes) {
|
4098 | return minutes / this.parsedIntervalMinutes * this.parsedIntervalHeight;
|
4099 | },
|
4100 | timeToY: function timeToY(time, clamp) {
|
4101 | if (clamp === void 0) {
|
4102 | clamp = true;
|
4103 | }
|
4104 |
|
4105 | var minutes = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["parseTime"])(time);
|
4106 |
|
4107 | if (minutes === false) {
|
4108 | return false;
|
4109 | }
|
4110 |
|
4111 | var min = this.firstMinute;
|
4112 | var gap = this.parsedIntervalCount * this.parsedIntervalMinutes;
|
4113 | var delta = (minutes - min) / gap;
|
4114 | var y = delta * this.bodyHeight;
|
4115 |
|
4116 | if (clamp) {
|
4117 | if (y < 0) {
|
4118 | y = 0;
|
4119 | }
|
4120 |
|
4121 | if (y > this.bodyHeight) {
|
4122 | y = this.bodyHeight;
|
4123 | }
|
4124 | }
|
4125 |
|
4126 | return y;
|
4127 | }
|
4128 | }
|
4129 | }));
|
4130 |
|
4131 | }),
|
4132 |
|
4133 | "./src/components/VCalendar/mixins/mouse.ts":
|
4134 |
|
4135 |
|
4136 |
|
4137 |
|
4138 | (function(module, __webpack_exports__, __webpack_require__) {
|
4139 |
|
4140 | "use strict";
|
4141 | __webpack_require__.r(__webpack_exports__);
|
4142 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
4143 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
4144 |
|
4145 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
4146 | name: 'mouse',
|
4147 | methods: {
|
4148 | getDefaultMouseEventHandlers: function getDefaultMouseEventHandlers(suffix, getEvent) {
|
4149 | var _a;
|
4150 |
|
4151 | return this.getMouseEventHandlers((_a = {}, _a['click' + suffix] = {
|
4152 | event: 'click'
|
4153 | }, _a['contextmenu' + suffix] = {
|
4154 | event: 'contextmenu',
|
4155 | prevent: true,
|
4156 | result: false
|
4157 | }, _a['mousedown' + suffix] = {
|
4158 | event: 'mousedown'
|
4159 | }, _a['mousemove' + suffix] = {
|
4160 | event: 'mousemove'
|
4161 | }, _a['mouseup' + suffix] = {
|
4162 | event: 'mouseup'
|
4163 | }, _a['mouseenter' + suffix] = {
|
4164 | event: 'mouseenter'
|
4165 | }, _a['mouseleave' + suffix] = {
|
4166 | event: 'mouseleave'
|
4167 | }, _a['touchstart' + suffix] = {
|
4168 | event: 'touchstart'
|
4169 | }, _a['touchmove' + suffix] = {
|
4170 | event: 'touchmove'
|
4171 | }, _a['touchend' + suffix] = {
|
4172 | event: 'touchend'
|
4173 | }, _a), getEvent);
|
4174 | },
|
4175 | getMouseEventHandlers: function getMouseEventHandlers(events, getEvent) {
|
4176 | var _this = this;
|
4177 |
|
4178 | var on = {};
|
4179 |
|
4180 | var _loop_1 = function _loop_1(event) {
|
4181 | var eventOptions = events[event];
|
4182 | if (!this_1.$listeners[event]) return "continue";
|
4183 |
|
4184 | var prefix = eventOptions.passive ? '&' : (eventOptions.once ? '~' : '') + (eventOptions.capture ? '!' : '');
|
4185 | var key = prefix + eventOptions.event;
|
4186 |
|
4187 | var handler = function handler(e) {
|
4188 | var mouseEvent = e;
|
4189 |
|
4190 | if (eventOptions.button === undefined || mouseEvent.buttons > 0 && mouseEvent.button === eventOptions.button) {
|
4191 | if (eventOptions.prevent) {
|
4192 | e.preventDefault();
|
4193 | }
|
4194 |
|
4195 | if (eventOptions.stop) {
|
4196 | e.stopPropagation();
|
4197 | }
|
4198 |
|
4199 | _this.$emit(event, getEvent(e));
|
4200 | }
|
4201 |
|
4202 | return eventOptions.result;
|
4203 | };
|
4204 |
|
4205 | if (key in on) {
|
4206 |
|
4207 | if (Array.isArray(on[key])) {
|
4208 | on[key].push(handler);
|
4209 | } else {
|
4210 | on[key] = [on[key], handler];
|
4211 | }
|
4212 | } else {
|
4213 | on[key] = handler;
|
4214 | }
|
4215 | };
|
4216 |
|
4217 | var this_1 = this;
|
4218 |
|
4219 | for (var event in events) {
|
4220 | _loop_1(event);
|
4221 | }
|
4222 |
|
4223 | return on;
|
4224 | }
|
4225 | }
|
4226 | }));
|
4227 |
|
4228 | }),
|
4229 |
|
4230 | "./src/components/VCalendar/mixins/times.ts":
|
4231 |
|
4232 |
|
4233 |
|
4234 |
|
4235 | (function(module, __webpack_exports__, __webpack_require__) {
|
4236 |
|
4237 | "use strict";
|
4238 | __webpack_require__.r(__webpack_exports__);
|
4239 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
4240 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
4241 | var _util_timestamp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VCalendar/util/timestamp.ts");
|
4242 |
|
4243 |
|
4244 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
4245 | name: 'times',
|
4246 | props: {
|
4247 | now: {
|
4248 | type: String,
|
4249 | validator: _util_timestamp__WEBPACK_IMPORTED_MODULE_1__["validateTimestamp"]
|
4250 | }
|
4251 | },
|
4252 | data: function data() {
|
4253 | return {
|
4254 | times: {
|
4255 | now: Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_1__["parseTimestamp"])('0000-00-00 00:00'),
|
4256 | today: Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_1__["parseTimestamp"])('0000-00-00')
|
4257 | }
|
4258 | };
|
4259 | },
|
4260 | computed: {
|
4261 | parsedNow: function parsedNow() {
|
4262 | return this.now ? Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_1__["parseTimestamp"])(this.now) : null;
|
4263 | }
|
4264 | },
|
4265 | watch: {
|
4266 | parsedNow: 'updateTimes'
|
4267 | },
|
4268 | created: function created() {
|
4269 | this.updateTimes();
|
4270 | this.setPresent();
|
4271 | },
|
4272 | methods: {
|
4273 | setPresent: function setPresent() {
|
4274 | this.times.now.present = this.times.today.present = true;
|
4275 | this.times.now.past = this.times.today.past = false;
|
4276 | this.times.now.future = this.times.today.future = false;
|
4277 | },
|
4278 | updateTimes: function updateTimes() {
|
4279 | var now = this.parsedNow || this.getNow();
|
4280 | this.updateDay(now, this.times.now);
|
4281 | this.updateTime(now, this.times.now);
|
4282 | this.updateDay(now, this.times.today);
|
4283 | },
|
4284 | getNow: function getNow() {
|
4285 | return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_1__["parseDate"])(new Date());
|
4286 | },
|
4287 | updateDay: function updateDay(now, target) {
|
4288 | if (now.date !== target.date) {
|
4289 | target.year = now.year;
|
4290 | target.month = now.month;
|
4291 | target.day = now.day;
|
4292 | target.weekday = now.weekday;
|
4293 | target.date = now.date;
|
4294 | }
|
4295 | },
|
4296 | updateTime: function updateTime(now, target) {
|
4297 | if (now.time !== target.time) {
|
4298 | target.hour = now.hour;
|
4299 | target.minute = now.minute;
|
4300 | target.time = now.time;
|
4301 | }
|
4302 | }
|
4303 | }
|
4304 | }));
|
4305 |
|
4306 | }),
|
4307 |
|
4308 | "./src/components/VCalendar/util/events.ts":
|
4309 |
|
4310 |
|
4311 |
|
4312 |
|
4313 | (function(module, __webpack_exports__, __webpack_require__) {
|
4314 |
|
4315 | "use strict";
|
4316 | __webpack_require__.r(__webpack_exports__);
|
4317 | __webpack_require__.d(__webpack_exports__, "parseEvent", function() { return parseEvent; });
|
4318 | __webpack_require__.d(__webpack_exports__, "isEventOn", function() { return isEventOn; });
|
4319 | __webpack_require__.d(__webpack_exports__, "isEventOverlapping", function() { return isEventOverlapping; });
|
4320 | var _timestamp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCalendar/util/timestamp.ts");
|
4321 |
|
4322 | function parseEvent(input, index, startProperty, endProperty) {
|
4323 | if (!(startProperty in input)) {
|
4324 | throw new Error('The ' + startProperty + ' property is required on all events to be a valid timestamp in the format YYYY-MM-DD or YYYY-MM-DD hh:mm');
|
4325 | }
|
4326 |
|
4327 | var start = Object(_timestamp__WEBPACK_IMPORTED_MODULE_0__["parseTimestamp"])(input[startProperty]);
|
4328 | var end = input[endProperty] ? Object(_timestamp__WEBPACK_IMPORTED_MODULE_0__["parseTimestamp"])(input[endProperty]) : start;
|
4329 | var startIdentifier = Object(_timestamp__WEBPACK_IMPORTED_MODULE_0__["getDayIdentifier"])(start);
|
4330 | var startTimestampIdentifier = Object(_timestamp__WEBPACK_IMPORTED_MODULE_0__["getTimestampIdentifier"])(start);
|
4331 | var endIdentifier = Object(_timestamp__WEBPACK_IMPORTED_MODULE_0__["getDayIdentifier"])(end);
|
4332 | var endTimestampIdentifier = Object(_timestamp__WEBPACK_IMPORTED_MODULE_0__["getTimestampIdentifier"])(end);
|
4333 | var allDay = !start.hasTime;
|
4334 | return {
|
4335 | input: input,
|
4336 | start: start,
|
4337 | startIdentifier: startIdentifier,
|
4338 | startTimestampIdentifier: startTimestampIdentifier,
|
4339 | end: end,
|
4340 | endIdentifier: endIdentifier,
|
4341 | endTimestampIdentifier: endTimestampIdentifier,
|
4342 | allDay: allDay,
|
4343 | index: index
|
4344 | };
|
4345 | }
|
4346 | function isEventOn(event, dayIdentifier) {
|
4347 | return dayIdentifier >= event.startIdentifier && dayIdentifier <= event.endIdentifier;
|
4348 | }
|
4349 | function isEventOverlapping(event, startIdentifier, endIdentifier) {
|
4350 | return startIdentifier <= event.endIdentifier && endIdentifier >= event.startIdentifier;
|
4351 | }
|
4352 |
|
4353 | }),
|
4354 |
|
4355 | "./src/components/VCalendar/util/props.ts":
|
4356 |
|
4357 |
|
4358 |
|
4359 |
|
4360 | (function(module, __webpack_exports__, __webpack_require__) {
|
4361 |
|
4362 | "use strict";
|
4363 | __webpack_require__.r(__webpack_exports__);
|
4364 | __webpack_require__.d(__webpack_exports__, "validateNumber", function() { return validateNumber; });
|
4365 | var _timestamp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCalendar/util/timestamp.ts");
|
4366 |
|
4367 | __webpack_exports__["default"] = ({
|
4368 | base: {
|
4369 | start: {
|
4370 | type: String,
|
4371 | validate: _timestamp__WEBPACK_IMPORTED_MODULE_0__["validateTimestamp"],
|
4372 | default: function _default() {
|
4373 | return Object(_timestamp__WEBPACK_IMPORTED_MODULE_0__["parseDate"])(new Date()).date;
|
4374 | }
|
4375 | },
|
4376 | end: {
|
4377 | type: String,
|
4378 | validate: _timestamp__WEBPACK_IMPORTED_MODULE_0__["validateTimestamp"]
|
4379 | },
|
4380 | weekdays: {
|
4381 | type: Array,
|
4382 | default: function _default() {
|
4383 | return [0, 1, 2, 3, 4, 5, 6];
|
4384 | }
|
4385 | },
|
4386 | hideHeader: {
|
4387 | type: Boolean,
|
4388 | default: false
|
4389 | },
|
4390 | shortWeekdays: {
|
4391 | type: Boolean,
|
4392 | default: true
|
4393 | },
|
4394 | weekdayFormat: {
|
4395 | type: Function,
|
4396 | default: null
|
4397 | },
|
4398 | dayFormat: {
|
4399 | type: Function,
|
4400 | default: null
|
4401 | }
|
4402 | },
|
4403 | intervals: {
|
4404 | maxDays: {
|
4405 | type: Number,
|
4406 | default: 7
|
4407 | },
|
4408 | shortIntervals: {
|
4409 | type: Boolean,
|
4410 | default: true
|
4411 | },
|
4412 | intervalHeight: {
|
4413 | type: [Number, String],
|
4414 | default: 40,
|
4415 | validate: validateNumber
|
4416 | },
|
4417 | intervalMinutes: {
|
4418 | type: [Number, String],
|
4419 | default: 60,
|
4420 | validate: validateNumber
|
4421 | },
|
4422 | firstInterval: {
|
4423 | type: [Number, String],
|
4424 | default: 0,
|
4425 | validate: validateNumber
|
4426 | },
|
4427 | intervalCount: {
|
4428 | type: [Number, String],
|
4429 | default: 24,
|
4430 | validate: validateNumber
|
4431 | },
|
4432 | intervalFormat: {
|
4433 | type: Function,
|
4434 | default: null
|
4435 | },
|
4436 | intervalStyle: {
|
4437 | type: Function,
|
4438 | default: null
|
4439 | },
|
4440 | showIntervalLabel: {
|
4441 | type: Function,
|
4442 | default: null
|
4443 | }
|
4444 | },
|
4445 | weeks: {
|
4446 | minWeeks: {
|
4447 | validate: validateNumber,
|
4448 | default: 1
|
4449 | },
|
4450 | shortMonths: {
|
4451 | type: Boolean,
|
4452 | default: true
|
4453 | },
|
4454 | showMonthOnFirst: {
|
4455 | type: Boolean,
|
4456 | default: true
|
4457 | },
|
4458 | monthFormat: {
|
4459 | type: Function,
|
4460 | default: null
|
4461 | }
|
4462 | },
|
4463 | calendar: {
|
4464 | type: {
|
4465 | type: String,
|
4466 | default: 'month'
|
4467 | },
|
4468 | value: {
|
4469 | type: String,
|
4470 | validate: _timestamp__WEBPACK_IMPORTED_MODULE_0__["validateTimestamp"]
|
4471 | }
|
4472 | },
|
4473 | events: {
|
4474 | events: {
|
4475 | type: Array,
|
4476 | default: function _default() {
|
4477 | return [];
|
4478 | }
|
4479 | },
|
4480 | eventStart: {
|
4481 | type: String,
|
4482 | default: 'start'
|
4483 | },
|
4484 | eventEnd: {
|
4485 | type: String,
|
4486 | default: 'end'
|
4487 | },
|
4488 | eventHeight: {
|
4489 | type: Number,
|
4490 | default: 20
|
4491 | },
|
4492 | eventColor: {
|
4493 | type: [String, Function],
|
4494 | default: 'secondary'
|
4495 | },
|
4496 | eventTextColor: {
|
4497 | type: [String, Function],
|
4498 | default: 'white'
|
4499 | },
|
4500 | eventName: {
|
4501 | type: [String, Function],
|
4502 | default: 'name'
|
4503 | },
|
4504 | eventOverlapThreshold: {
|
4505 | type: Number,
|
4506 | default: 60
|
4507 | },
|
4508 | eventMore: {
|
4509 | type: Boolean,
|
4510 | default: true
|
4511 | },
|
4512 | eventMoreText: {
|
4513 | type: String,
|
4514 | default: '$vuetify.calendar.moreEvents'
|
4515 | },
|
4516 | eventRipple: {
|
4517 | type: [Boolean, Object],
|
4518 | default: null
|
4519 | },
|
4520 | eventMarginBottom: {
|
4521 | type: Number,
|
4522 | default: 1
|
4523 | }
|
4524 | }
|
4525 | });
|
4526 | function validateNumber(input) {
|
4527 | return isFinite(parseInt(input));
|
4528 | }
|
4529 |
|
4530 | }),
|
4531 |
|
4532 | "./src/components/VCalendar/util/timestamp.ts":
|
4533 |
|
4534 |
|
4535 |
|
4536 |
|
4537 | (function(module, __webpack_exports__, __webpack_require__) {
|
4538 |
|
4539 | "use strict";
|
4540 | __webpack_require__.r(__webpack_exports__);
|
4541 | __webpack_require__.d(__webpack_exports__, "PARSE_REGEX", function() { return PARSE_REGEX; });
|
4542 | __webpack_require__.d(__webpack_exports__, "PARSE_TIME", function() { return PARSE_TIME; });
|
4543 | __webpack_require__.d(__webpack_exports__, "DAYS_IN_MONTH", function() { return DAYS_IN_MONTH; });
|
4544 | __webpack_require__.d(__webpack_exports__, "DAYS_IN_MONTH_LEAP", function() { return DAYS_IN_MONTH_LEAP; });
|
4545 | __webpack_require__.d(__webpack_exports__, "DAYS_IN_MONTH_MIN", function() { return DAYS_IN_MONTH_MIN; });
|
4546 | __webpack_require__.d(__webpack_exports__, "DAYS_IN_MONTH_MAX", function() { return DAYS_IN_MONTH_MAX; });
|
4547 | __webpack_require__.d(__webpack_exports__, "MONTH_MAX", function() { return MONTH_MAX; });
|
4548 | __webpack_require__.d(__webpack_exports__, "MONTH_MIN", function() { return MONTH_MIN; });
|
4549 | __webpack_require__.d(__webpack_exports__, "DAY_MIN", function() { return DAY_MIN; });
|
4550 | __webpack_require__.d(__webpack_exports__, "DAYS_IN_WEEK", function() { return DAYS_IN_WEEK; });
|
4551 | __webpack_require__.d(__webpack_exports__, "MINUTES_IN_HOUR", function() { return MINUTES_IN_HOUR; });
|
4552 | __webpack_require__.d(__webpack_exports__, "HOURS_IN_DAY", function() { return HOURS_IN_DAY; });
|
4553 | __webpack_require__.d(__webpack_exports__, "FIRST_HOUR", function() { return FIRST_HOUR; });
|
4554 | __webpack_require__.d(__webpack_exports__, "getStartOfWeek", function() { return getStartOfWeek; });
|
4555 | __webpack_require__.d(__webpack_exports__, "getEndOfWeek", function() { return getEndOfWeek; });
|
4556 | __webpack_require__.d(__webpack_exports__, "getStartOfMonth", function() { return getStartOfMonth; });
|
4557 | __webpack_require__.d(__webpack_exports__, "getEndOfMonth", function() { return getEndOfMonth; });
|
4558 | __webpack_require__.d(__webpack_exports__, "parseTime", function() { return parseTime; });
|
4559 | __webpack_require__.d(__webpack_exports__, "validateTimestamp", function() { return validateTimestamp; });
|
4560 | __webpack_require__.d(__webpack_exports__, "parseTimestamp", function() { return parseTimestamp; });
|
4561 | __webpack_require__.d(__webpack_exports__, "parseDate", function() { return parseDate; });
|
4562 | __webpack_require__.d(__webpack_exports__, "getDayIdentifier", function() { return getDayIdentifier; });
|
4563 | __webpack_require__.d(__webpack_exports__, "getTimeIdentifier", function() { return getTimeIdentifier; });
|
4564 | __webpack_require__.d(__webpack_exports__, "getTimestampIdentifier", function() { return getTimestampIdentifier; });
|
4565 | __webpack_require__.d(__webpack_exports__, "updateRelative", function() { return updateRelative; });
|
4566 | __webpack_require__.d(__webpack_exports__, "updateMinutes", function() { return updateMinutes; });
|
4567 | __webpack_require__.d(__webpack_exports__, "updateWeekday", function() { return updateWeekday; });
|
4568 | __webpack_require__.d(__webpack_exports__, "updateFormatted", function() { return updateFormatted; });
|
4569 | __webpack_require__.d(__webpack_exports__, "getWeekday", function() { return getWeekday; });
|
4570 | __webpack_require__.d(__webpack_exports__, "isLeapYear", function() { return isLeapYear; });
|
4571 | __webpack_require__.d(__webpack_exports__, "daysInMonth", function() { return daysInMonth; });
|
4572 | __webpack_require__.d(__webpack_exports__, "copyTimestamp", function() { return copyTimestamp; });
|
4573 | __webpack_require__.d(__webpack_exports__, "padNumber", function() { return padNumber; });
|
4574 | __webpack_require__.d(__webpack_exports__, "getDate", function() { return getDate; });
|
4575 | __webpack_require__.d(__webpack_exports__, "getTime", function() { return getTime; });
|
4576 | __webpack_require__.d(__webpack_exports__, "nextMinutes", function() { return nextMinutes; });
|
4577 | __webpack_require__.d(__webpack_exports__, "nextDay", function() { return nextDay; });
|
4578 | __webpack_require__.d(__webpack_exports__, "prevDay", function() { return prevDay; });
|
4579 | __webpack_require__.d(__webpack_exports__, "relativeDays", function() { return relativeDays; });
|
4580 | __webpack_require__.d(__webpack_exports__, "findWeekday", function() { return findWeekday; });
|
4581 | __webpack_require__.d(__webpack_exports__, "getWeekdaySkips", function() { return getWeekdaySkips; });
|
4582 | __webpack_require__.d(__webpack_exports__, "createDayList", function() { return createDayList; });
|
4583 | __webpack_require__.d(__webpack_exports__, "createIntervalList", function() { return createIntervalList; });
|
4584 | __webpack_require__.d(__webpack_exports__, "createNativeLocaleFormatter", function() { return createNativeLocaleFormatter; });
|
4585 | 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); }
|
4586 |
|
4587 | var PARSE_REGEX = /^(\d{4})-(\d{1,2})(-(\d{1,2}))?([^\d]+(\d{1,2}))?(:(\d{1,2}))?(:(\d{1,2}))?$/;
|
4588 | var PARSE_TIME = /(\d\d?)(:(\d\d?)|)(:(\d\d?)|)/;
|
4589 | var DAYS_IN_MONTH = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
4590 | var DAYS_IN_MONTH_LEAP = [0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
4591 | var DAYS_IN_MONTH_MIN = 28;
|
4592 | var DAYS_IN_MONTH_MAX = 31;
|
4593 | var MONTH_MAX = 12;
|
4594 | var MONTH_MIN = 1;
|
4595 | var DAY_MIN = 1;
|
4596 | var DAYS_IN_WEEK = 7;
|
4597 | var MINUTES_IN_HOUR = 60;
|
4598 | var HOURS_IN_DAY = 24;
|
4599 | var FIRST_HOUR = 0;
|
4600 | function getStartOfWeek(timestamp, weekdays, today) {
|
4601 | var start = copyTimestamp(timestamp);
|
4602 | findWeekday(start, weekdays[0], prevDay);
|
4603 | updateFormatted(start);
|
4604 |
|
4605 | if (today) {
|
4606 | updateRelative(start, today, start.hasTime);
|
4607 | }
|
4608 |
|
4609 | return start;
|
4610 | }
|
4611 | function getEndOfWeek(timestamp, weekdays, today) {
|
4612 | var end = copyTimestamp(timestamp);
|
4613 | findWeekday(end, weekdays[weekdays.length - 1]);
|
4614 | updateFormatted(end);
|
4615 |
|
4616 | if (today) {
|
4617 | updateRelative(end, today, end.hasTime);
|
4618 | }
|
4619 |
|
4620 | return end;
|
4621 | }
|
4622 | function getStartOfMonth(timestamp) {
|
4623 | var start = copyTimestamp(timestamp);
|
4624 | start.day = DAY_MIN;
|
4625 | updateWeekday(start);
|
4626 | updateFormatted(start);
|
4627 | return start;
|
4628 | }
|
4629 | function getEndOfMonth(timestamp) {
|
4630 | var end = copyTimestamp(timestamp);
|
4631 | end.day = daysInMonth(end.year, end.month);
|
4632 | updateWeekday(end);
|
4633 | updateFormatted(end);
|
4634 | return end;
|
4635 | }
|
4636 | function parseTime(input) {
|
4637 | if (typeof input === 'number') {
|
4638 |
|
4639 | return input;
|
4640 | } else if (typeof input === 'string') {
|
4641 |
|
4642 | var parts = PARSE_TIME.exec(input);
|
4643 |
|
4644 | if (!parts) {
|
4645 | return false;
|
4646 | }
|
4647 |
|
4648 | return parseInt(parts[1]) * 60 + parseInt(parts[3] || 0);
|
4649 | } else if (_typeof(input) === 'object') {
|
4650 |
|
4651 | if (typeof input.hour !== 'number' || typeof input.minute !== 'number') {
|
4652 | return false;
|
4653 | }
|
4654 |
|
4655 | return input.hour * 60 + input.minute;
|
4656 | } else {
|
4657 |
|
4658 | return false;
|
4659 | }
|
4660 | }
|
4661 | function validateTimestamp(input) {
|
4662 | return !!PARSE_REGEX.exec(input);
|
4663 | }
|
4664 | function parseTimestamp(input, now) {
|
4665 |
|
4666 | var parts = PARSE_REGEX.exec(input);
|
4667 | if (!parts) return null;
|
4668 | var timestamp = {
|
4669 | date: input,
|
4670 | time: '',
|
4671 | year: parseInt(parts[1]),
|
4672 | month: parseInt(parts[2]),
|
4673 | day: parseInt(parts[4]) || 1,
|
4674 | hour: parseInt(parts[6]) || 0,
|
4675 | minute: parseInt(parts[8]) || 0,
|
4676 | weekday: 0,
|
4677 | hasDay: !!parts[4],
|
4678 | hasTime: !!(parts[6] && parts[8]),
|
4679 | past: false,
|
4680 | present: false,
|
4681 | future: false
|
4682 | };
|
4683 | updateWeekday(timestamp);
|
4684 | updateFormatted(timestamp);
|
4685 |
|
4686 | if (now) {
|
4687 | updateRelative(timestamp, now, timestamp.hasTime);
|
4688 | }
|
4689 |
|
4690 | return timestamp;
|
4691 | }
|
4692 | function parseDate(date) {
|
4693 | return updateFormatted({
|
4694 | date: '',
|
4695 | time: '',
|
4696 | year: date.getFullYear(),
|
4697 | month: date.getMonth() + 1,
|
4698 | day: date.getDate(),
|
4699 | weekday: date.getDay(),
|
4700 | hour: date.getHours(),
|
4701 | minute: date.getMinutes(),
|
4702 | hasDay: true,
|
4703 | hasTime: true,
|
4704 | past: false,
|
4705 | present: true,
|
4706 | future: false
|
4707 | });
|
4708 | }
|
4709 | function getDayIdentifier(timestamp) {
|
4710 | return timestamp.year * 10000 + timestamp.month * 100 + timestamp.day;
|
4711 | }
|
4712 | function getTimeIdentifier(timestamp) {
|
4713 | return timestamp.hour * 100 + timestamp.minute;
|
4714 | }
|
4715 | function getTimestampIdentifier(timestamp) {
|
4716 | return getDayIdentifier(timestamp) * 10000 + getTimeIdentifier(timestamp);
|
4717 | }
|
4718 | function updateRelative(timestamp, now, time) {
|
4719 | if (time === void 0) {
|
4720 | time = false;
|
4721 | }
|
4722 |
|
4723 | var a = getDayIdentifier(now);
|
4724 | var b = getDayIdentifier(timestamp);
|
4725 | var present = a === b;
|
4726 |
|
4727 | if (timestamp.hasTime && time && present) {
|
4728 | a = getTimeIdentifier(now);
|
4729 | b = getTimeIdentifier(timestamp);
|
4730 | present = a === b;
|
4731 | }
|
4732 |
|
4733 | timestamp.past = b < a;
|
4734 | timestamp.present = present;
|
4735 | timestamp.future = b > a;
|
4736 | return timestamp;
|
4737 | }
|
4738 | function updateMinutes(timestamp, minutes, now) {
|
4739 | timestamp.hasTime = true;
|
4740 | timestamp.hour = Math.floor(minutes / MINUTES_IN_HOUR);
|
4741 | timestamp.minute = minutes % MINUTES_IN_HOUR;
|
4742 | timestamp.time = getTime(timestamp);
|
4743 |
|
4744 | if (now) {
|
4745 | updateRelative(timestamp, now, true);
|
4746 | }
|
4747 |
|
4748 | return timestamp;
|
4749 | }
|
4750 | function updateWeekday(timestamp) {
|
4751 | timestamp.weekday = getWeekday(timestamp);
|
4752 | return timestamp;
|
4753 | }
|
4754 | function updateFormatted(timestamp) {
|
4755 | timestamp.time = getTime(timestamp);
|
4756 | timestamp.date = getDate(timestamp);
|
4757 | return timestamp;
|
4758 | }
|
4759 | function getWeekday(timestamp) {
|
4760 | if (timestamp.hasDay) {
|
4761 | var _ = Math.floor;
|
4762 | var k = timestamp.day;
|
4763 | var m = (timestamp.month + 9) % MONTH_MAX + 1;
|
4764 |
|
4765 | var C = _(timestamp.year / 100);
|
4766 |
|
4767 | var Y = timestamp.year % 100 - (timestamp.month <= 2 ? 1 : 0);
|
4768 | return ((k + _(2.6 * m - 0.2) - 2 * C + Y + _(Y / 4) + _(C / 4)) % 7 + 7) % 7;
|
4769 | }
|
4770 |
|
4771 | return timestamp.weekday;
|
4772 | }
|
4773 | function isLeapYear(year) {
|
4774 | return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
|
4775 | }
|
4776 | function daysInMonth(year, month) {
|
4777 | return isLeapYear(year) ? DAYS_IN_MONTH_LEAP[month] : DAYS_IN_MONTH[month];
|
4778 | }
|
4779 | function copyTimestamp(timestamp) {
|
4780 | var date = timestamp.date,
|
4781 | time = timestamp.time,
|
4782 | year = timestamp.year,
|
4783 | month = timestamp.month,
|
4784 | day = timestamp.day,
|
4785 | weekday = timestamp.weekday,
|
4786 | hour = timestamp.hour,
|
4787 | minute = timestamp.minute,
|
4788 | hasDay = timestamp.hasDay,
|
4789 | hasTime = timestamp.hasTime,
|
4790 | past = timestamp.past,
|
4791 | present = timestamp.present,
|
4792 | future = timestamp.future;
|
4793 | return {
|
4794 | date: date,
|
4795 | time: time,
|
4796 | year: year,
|
4797 | month: month,
|
4798 | day: day,
|
4799 | weekday: weekday,
|
4800 | hour: hour,
|
4801 | minute: minute,
|
4802 | hasDay: hasDay,
|
4803 | hasTime: hasTime,
|
4804 | past: past,
|
4805 | present: present,
|
4806 | future: future
|
4807 | };
|
4808 | }
|
4809 | function padNumber(x, length) {
|
4810 | var padded = String(x);
|
4811 |
|
4812 | while (padded.length < length) {
|
4813 | padded = '0' + padded;
|
4814 | }
|
4815 |
|
4816 | return padded;
|
4817 | }
|
4818 | function getDate(timestamp) {
|
4819 | var str = padNumber(timestamp.year, 4) + "-" + padNumber(timestamp.month, 2);
|
4820 | if (timestamp.hasDay) str += "-" + padNumber(timestamp.day, 2);
|
4821 | return str;
|
4822 | }
|
4823 | function getTime(timestamp) {
|
4824 | if (!timestamp.hasTime) {
|
4825 | return '';
|
4826 | }
|
4827 |
|
4828 | return padNumber(timestamp.hour, 2) + ":" + padNumber(timestamp.minute, 2);
|
4829 | }
|
4830 | function nextMinutes(timestamp, minutes) {
|
4831 | timestamp.minute += minutes;
|
4832 |
|
4833 | while (timestamp.minute > MINUTES_IN_HOUR) {
|
4834 | timestamp.minute -= MINUTES_IN_HOUR;
|
4835 | timestamp.hour++;
|
4836 |
|
4837 | if (timestamp.hour >= HOURS_IN_DAY) {
|
4838 | nextDay(timestamp);
|
4839 | timestamp.hour = FIRST_HOUR;
|
4840 | }
|
4841 | }
|
4842 |
|
4843 | return timestamp;
|
4844 | }
|
4845 | function nextDay(timestamp) {
|
4846 | timestamp.day++;
|
4847 | timestamp.weekday = (timestamp.weekday + 1) % DAYS_IN_WEEK;
|
4848 |
|
4849 | if (timestamp.day > DAYS_IN_MONTH_MIN && timestamp.day > daysInMonth(timestamp.year, timestamp.month)) {
|
4850 | timestamp.day = DAY_MIN;
|
4851 | timestamp.month++;
|
4852 |
|
4853 | if (timestamp.month > MONTH_MAX) {
|
4854 | timestamp.month = MONTH_MIN;
|
4855 | timestamp.year++;
|
4856 | }
|
4857 | }
|
4858 |
|
4859 | return timestamp;
|
4860 | }
|
4861 | function prevDay(timestamp) {
|
4862 | timestamp.day--;
|
4863 | timestamp.weekday = (timestamp.weekday + 6) % DAYS_IN_WEEK;
|
4864 |
|
4865 | if (timestamp.day < DAY_MIN) {
|
4866 | timestamp.month--;
|
4867 |
|
4868 | if (timestamp.month < MONTH_MIN) {
|
4869 | timestamp.year--;
|
4870 | timestamp.month = MONTH_MAX;
|
4871 | }
|
4872 |
|
4873 | timestamp.day = daysInMonth(timestamp.year, timestamp.month);
|
4874 | }
|
4875 |
|
4876 | return timestamp;
|
4877 | }
|
4878 | function relativeDays(timestamp, mover, days) {
|
4879 | if (mover === void 0) {
|
4880 | mover = nextDay;
|
4881 | }
|
4882 |
|
4883 | if (days === void 0) {
|
4884 | days = 1;
|
4885 | }
|
4886 |
|
4887 | while (--days >= 0) {
|
4888 | mover(timestamp);
|
4889 | }
|
4890 |
|
4891 | return timestamp;
|
4892 | }
|
4893 | function findWeekday(timestamp, weekday, mover, maxDays) {
|
4894 | if (mover === void 0) {
|
4895 | mover = nextDay;
|
4896 | }
|
4897 |
|
4898 | if (maxDays === void 0) {
|
4899 | maxDays = 6;
|
4900 | }
|
4901 |
|
4902 | while (timestamp.weekday !== weekday && --maxDays >= 0) {
|
4903 | mover(timestamp);
|
4904 | }
|
4905 |
|
4906 | return timestamp;
|
4907 | }
|
4908 | function getWeekdaySkips(weekdays) {
|
4909 | var skips = [1, 1, 1, 1, 1, 1, 1];
|
4910 | var filled = [0, 0, 0, 0, 0, 0, 0];
|
4911 |
|
4912 | for (var i = 0; i < weekdays.length; i++) {
|
4913 | filled[weekdays[i]] = 1;
|
4914 | }
|
4915 |
|
4916 | for (var k = 0; k < DAYS_IN_WEEK; k++) {
|
4917 | var skip = 1;
|
4918 |
|
4919 | for (var j = 1; j < DAYS_IN_WEEK; j++) {
|
4920 | var next = (k + j) % DAYS_IN_WEEK;
|
4921 |
|
4922 | if (filled[next]) {
|
4923 | break;
|
4924 | }
|
4925 |
|
4926 | skip++;
|
4927 | }
|
4928 |
|
4929 | skips[k] = filled[k] * skip;
|
4930 | }
|
4931 |
|
4932 | return skips;
|
4933 | }
|
4934 | function createDayList(start, end, now, weekdaySkips, max, min) {
|
4935 | if (max === void 0) {
|
4936 | max = 42;
|
4937 | }
|
4938 |
|
4939 | if (min === void 0) {
|
4940 | min = 0;
|
4941 | }
|
4942 |
|
4943 | var stop = getDayIdentifier(end);
|
4944 | var days = [];
|
4945 | var current = copyTimestamp(start);
|
4946 | var currentIdentifier = 0;
|
4947 | var stopped = currentIdentifier === stop;
|
4948 |
|
4949 | if (stop < getDayIdentifier(start)) {
|
4950 | throw new Error('End date is earlier than start date.');
|
4951 | }
|
4952 |
|
4953 | while ((!stopped || days.length < min) && days.length < max) {
|
4954 | currentIdentifier = getDayIdentifier(current);
|
4955 | stopped = stopped || currentIdentifier === stop;
|
4956 |
|
4957 | if (weekdaySkips[current.weekday] === 0) {
|
4958 | current = nextDay(current);
|
4959 | continue;
|
4960 | }
|
4961 |
|
4962 | var day = copyTimestamp(current);
|
4963 | updateFormatted(day);
|
4964 | updateRelative(day, now);
|
4965 | days.push(day);
|
4966 | current = relativeDays(current, nextDay, weekdaySkips[current.weekday]);
|
4967 | }
|
4968 |
|
4969 | if (!days.length) throw new Error('No dates found using specified start date, end date, and weekdays.');
|
4970 | return days;
|
4971 | }
|
4972 | function createIntervalList(timestamp, first, minutes, count, now) {
|
4973 | var intervals = [];
|
4974 |
|
4975 | for (var i = 0; i < count; i++) {
|
4976 | var mins = (first + i) * minutes;
|
4977 | var int = copyTimestamp(timestamp);
|
4978 | intervals.push(updateMinutes(int, mins, now));
|
4979 | }
|
4980 |
|
4981 | return intervals;
|
4982 | }
|
4983 | function createNativeLocaleFormatter(locale, getOptions) {
|
4984 | var emptyFormatter = function emptyFormatter(_t, _s) {
|
4985 | return '';
|
4986 | };
|
4987 |
|
4988 | if (typeof Intl === 'undefined' || typeof Intl.DateTimeFormat === 'undefined') {
|
4989 | return emptyFormatter;
|
4990 | }
|
4991 |
|
4992 | return function (timestamp, short) {
|
4993 | try {
|
4994 | var intlFormatter = new Intl.DateTimeFormat(locale || undefined, getOptions(timestamp, short));
|
4995 | var time = padNumber(timestamp.hour, 2) + ":" + padNumber(timestamp.minute, 2);
|
4996 | var date = timestamp.date;
|
4997 | return intlFormatter.format(new Date(date + "T" + time + ":00+00:00"));
|
4998 | } catch (e) {
|
4999 | return '';
|
5000 | }
|
5001 | };
|
5002 | }
|
5003 |
|
5004 | }),
|
5005 |
|
5006 | "./src/components/VCard/VCard.sass":
|
5007 |
|
5008 |
|
5009 |
|
5010 |
|
5011 | (function(module, exports, __webpack_require__) {
|
5012 |
|
5013 |
|
5014 |
|
5015 | }),
|
5016 |
|
5017 | "./src/components/VCard/VCard.ts":
|
5018 |
|
5019 |
|
5020 |
|
5021 |
|
5022 | (function(module, __webpack_exports__, __webpack_require__) {
|
5023 |
|
5024 | "use strict";
|
5025 | __webpack_require__.r(__webpack_exports__);
|
5026 | var _VCard_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCard/VCard.sass");
|
5027 | var _VCard_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VCard_sass__WEBPACK_IMPORTED_MODULE_0__);
|
5028 | var _VSheet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VSheet/index.ts");
|
5029 | var _mixins_loadable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/loadable/index.ts");
|
5030 | var _mixins_routable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/routable/index.ts");
|
5031 | var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/mixins.ts");
|
5032 | var __assign = undefined && undefined.__assign || function () {
|
5033 | __assign = Object.assign || function (t) {
|
5034 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5035 | s = arguments[i];
|
5036 |
|
5037 | for (var p in s) {
|
5038 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
5039 | }
|
5040 | }
|
5041 |
|
5042 | return t;
|
5043 | };
|
5044 |
|
5045 | return __assign.apply(this, arguments);
|
5046 | };
|
5047 |
|
5048 |
|
5049 |
|
5050 |
|
5051 |
|
5052 |
|
5053 |
|
5054 |
|
5055 |
|
5056 |
|
5057 |
|
5058 |
|
5059 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_mixins_loadable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_routable__WEBPACK_IMPORTED_MODULE_3__["default"], _VSheet__WEBPACK_IMPORTED_MODULE_1__["default"]).extend({
|
5060 | name: 'v-card',
|
5061 | props: {
|
5062 | flat: Boolean,
|
5063 | hover: Boolean,
|
5064 | img: String,
|
5065 | link: Boolean,
|
5066 | loaderHeight: {
|
5067 | type: [Number, String],
|
5068 | default: 4
|
5069 | },
|
5070 | outlined: Boolean,
|
5071 | raised: Boolean,
|
5072 | shaped: Boolean
|
5073 | },
|
5074 | computed: {
|
5075 | classes: function classes() {
|
5076 | return __assign({
|
5077 | 'v-card': true
|
5078 | }, _mixins_routable__WEBPACK_IMPORTED_MODULE_3__["default"].options.computed.classes.call(this), {
|
5079 | 'v-card--flat': this.flat,
|
5080 | 'v-card--hover': this.hover,
|
5081 | 'v-card--link': this.isClickable,
|
5082 | 'v-card--loading': this.loading,
|
5083 | 'v-card--disabled': this.loading || this.disabled,
|
5084 | 'v-card--outlined': this.outlined,
|
5085 | 'v-card--raised': this.raised,
|
5086 | 'v-card--shaped': this.shaped
|
5087 | }, _VSheet__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this));
|
5088 | },
|
5089 | styles: function styles() {
|
5090 | var style = __assign({}, _VSheet__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.styles.call(this));
|
5091 |
|
5092 | if (this.img) {
|
5093 | style.background = "url(\"" + this.img + "\") center center / cover no-repeat";
|
5094 | }
|
5095 |
|
5096 | return style;
|
5097 | }
|
5098 | },
|
5099 | methods: {
|
5100 | genProgress: function genProgress() {
|
5101 | var render = _mixins_loadable__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.genProgress.call(this);
|
5102 | if (!render) return null;
|
5103 | return this.$createElement('div', {
|
5104 | staticClass: 'v-card__progress'
|
5105 | }, [render]);
|
5106 | }
|
5107 | },
|
5108 | render: function render(h) {
|
5109 | var _a = this.generateRouteLink(),
|
5110 | tag = _a.tag,
|
5111 | data = _a.data;
|
5112 |
|
5113 | data.style = this.styles;
|
5114 |
|
5115 | if (this.isClickable) {
|
5116 | data.attrs = data.attrs || {};
|
5117 | data.attrs.tabindex = 0;
|
5118 | }
|
5119 |
|
5120 | return h(tag, this.setBackgroundColor(this.color, data), [this.genProgress(), this.$slots.default]);
|
5121 | }
|
5122 | }));
|
5123 |
|
5124 | }),
|
5125 |
|
5126 | "./src/components/VCard/index.ts":
|
5127 |
|
5128 |
|
5129 |
|
5130 |
|
5131 | (function(module, __webpack_exports__, __webpack_require__) {
|
5132 |
|
5133 | "use strict";
|
5134 | __webpack_require__.r(__webpack_exports__);
|
5135 | __webpack_require__.d(__webpack_exports__, "VCardActions", function() { return VCardActions; });
|
5136 | __webpack_require__.d(__webpack_exports__, "VCardSubtitle", function() { return VCardSubtitle; });
|
5137 | __webpack_require__.d(__webpack_exports__, "VCardText", function() { return VCardText; });
|
5138 | __webpack_require__.d(__webpack_exports__, "VCardTitle", function() { return VCardTitle; });
|
5139 | var _VCard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCard/VCard.ts");
|
5140 | __webpack_require__.d(__webpack_exports__, "VCard", function() { return _VCard__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
5141 |
|
5142 | var _util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/helpers.ts");
|
5143 |
|
5144 |
|
5145 | var VCardActions = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["createSimpleFunctional"])('v-card__actions');
|
5146 | var VCardSubtitle = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["createSimpleFunctional"])('v-card__subtitle');
|
5147 | var VCardText = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["createSimpleFunctional"])('v-card__text');
|
5148 | var VCardTitle = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["createSimpleFunctional"])('v-card__title');
|
5149 |
|
5150 | __webpack_exports__["default"] = ({
|
5151 | $_vuetify_subcomponents: {
|
5152 | VCard: _VCard__WEBPACK_IMPORTED_MODULE_0__["default"],
|
5153 | VCardActions: VCardActions,
|
5154 | VCardSubtitle: VCardSubtitle,
|
5155 | VCardText: VCardText,
|
5156 | VCardTitle: VCardTitle
|
5157 | }
|
5158 | });
|
5159 |
|
5160 | }),
|
5161 |
|
5162 | "./src/components/VCarousel/VCarousel.sass":
|
5163 |
|
5164 |
|
5165 |
|
5166 |
|
5167 | (function(module, exports, __webpack_require__) {
|
5168 |
|
5169 |
|
5170 |
|
5171 | }),
|
5172 |
|
5173 | "./src/components/VCarousel/VCarousel.ts":
|
5174 |
|
5175 |
|
5176 |
|
5177 |
|
5178 | (function(module, __webpack_exports__, __webpack_require__) {
|
5179 |
|
5180 | "use strict";
|
5181 | __webpack_require__.r(__webpack_exports__);
|
5182 | var _VCarousel_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCarousel/VCarousel.sass");
|
5183 | var _VCarousel_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VCarousel_sass__WEBPACK_IMPORTED_MODULE_0__);
|
5184 | var _VWindow_VWindow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VWindow/VWindow.ts");
|
5185 | var _VBtn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VBtn/index.ts");
|
5186 | var _VIcon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
5187 | var _VProgressLinear__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VProgressLinear/index.ts");
|
5188 | var _mixins_button_group__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/button-group/index.ts");
|
5189 | var _util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/util/helpers.ts");
|
5190 | var _util_console__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/util/console.ts");
|
5191 | var __assign = undefined && undefined.__assign || function () {
|
5192 | __assign = Object.assign || function (t) {
|
5193 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5194 | s = arguments[i];
|
5195 |
|
5196 | for (var p in s) {
|
5197 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
5198 | }
|
5199 | }
|
5200 |
|
5201 | return t;
|
5202 | };
|
5203 |
|
5204 | return __assign.apply(this, arguments);
|
5205 | };
|
5206 |
|
5207 |
|
5208 |
|
5209 |
|
5210 |
|
5211 |
|
5212 |
|
5213 |
|
5214 |
|
5215 |
|
5216 |
|
5217 |
|
5218 |
|
5219 |
|
5220 |
|
5221 | __webpack_exports__["default"] = (_VWindow_VWindow__WEBPACK_IMPORTED_MODULE_1__["default"].extend({
|
5222 | name: 'v-carousel',
|
5223 | props: {
|
5224 | continuous: {
|
5225 | type: Boolean,
|
5226 | default: true
|
5227 | },
|
5228 | cycle: Boolean,
|
5229 | delimiterIcon: {
|
5230 | type: String,
|
5231 | default: '$delimiter'
|
5232 | },
|
5233 | height: {
|
5234 | type: [Number, String],
|
5235 | default: 500
|
5236 | },
|
5237 | hideDelimiters: Boolean,
|
5238 | hideDelimiterBackground: Boolean,
|
5239 | interval: {
|
5240 | type: [Number, String],
|
5241 | default: 6000,
|
5242 | validator: function validator(value) {
|
5243 | return value > 0;
|
5244 | }
|
5245 | },
|
5246 | mandatory: {
|
5247 | type: Boolean,
|
5248 | default: true
|
5249 | },
|
5250 | progress: Boolean,
|
5251 | progressColor: String,
|
5252 | showArrows: {
|
5253 | type: Boolean,
|
5254 | default: true
|
5255 | },
|
5256 | verticalDelimiters: {
|
5257 | type: String,
|
5258 | default: undefined
|
5259 | }
|
5260 | },
|
5261 | data: function data() {
|
5262 | return {
|
5263 | internalHeight: this.height,
|
5264 | slideTimeout: undefined
|
5265 | };
|
5266 | },
|
5267 | computed: {
|
5268 | classes: function classes() {
|
5269 | return __assign({}, _VWindow_VWindow__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this), {
|
5270 | 'v-carousel': true,
|
5271 | 'v-carousel--hide-delimiter-background': this.hideDelimiterBackground,
|
5272 | 'v-carousel--vertical-delimiters': this.isVertical
|
5273 | });
|
5274 | },
|
5275 | isDark: function isDark() {
|
5276 | return this.dark || !this.light;
|
5277 | },
|
5278 | isVertical: function isVertical() {
|
5279 | return this.verticalDelimiters != null;
|
5280 | }
|
5281 | },
|
5282 | watch: {
|
5283 | internalValue: 'restartTimeout',
|
5284 | interval: 'restartTimeout',
|
5285 | height: function height(val, oldVal) {
|
5286 | if (val === oldVal || !val) return;
|
5287 | this.internalHeight = val;
|
5288 | },
|
5289 | cycle: function cycle(val) {
|
5290 | if (val) {
|
5291 | this.restartTimeout();
|
5292 | } else {
|
5293 | clearTimeout(this.slideTimeout);
|
5294 | this.slideTimeout = undefined;
|
5295 | }
|
5296 | }
|
5297 | },
|
5298 | created: function created() {
|
5299 |
|
5300 | if (this.$attrs.hasOwnProperty('hide-controls')) {
|
5301 | Object(_util_console__WEBPACK_IMPORTED_MODULE_7__["breaking"])('hide-controls', ':show-arrows="false"', this);
|
5302 | }
|
5303 | },
|
5304 | mounted: function mounted() {
|
5305 | this.startTimeout();
|
5306 | },
|
5307 | methods: {
|
5308 | genControlIcons: function genControlIcons() {
|
5309 | if (this.isVertical) return null;
|
5310 | return _VWindow_VWindow__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genControlIcons.call(this);
|
5311 | },
|
5312 | genDelimiters: function genDelimiters() {
|
5313 | return this.$createElement('div', {
|
5314 | staticClass: 'v-carousel__controls',
|
5315 | style: {
|
5316 | left: this.verticalDelimiters === 'left' && this.isVertical ? 0 : 'auto',
|
5317 | right: this.verticalDelimiters === 'right' ? 0 : 'auto'
|
5318 | }
|
5319 | }, [this.genItems()]);
|
5320 | },
|
5321 | genItems: function genItems() {
|
5322 | var _this = this;
|
5323 |
|
5324 | var length = this.items.length;
|
5325 | var children = [];
|
5326 |
|
5327 | for (var i = 0; i < length; i++) {
|
5328 | var child = this.$createElement(_VBtn__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
5329 | staticClass: 'v-carousel__controls__item',
|
5330 | attrs: {
|
5331 | 'aria-label': this.$vuetify.lang.t('$vuetify.carousel.ariaLabel.delimiter', i + 1, length)
|
5332 | },
|
5333 | props: {
|
5334 | icon: true,
|
5335 | small: true,
|
5336 | value: this.getValue(this.items[i], i)
|
5337 | }
|
5338 | }, [this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
5339 | props: {
|
5340 | size: 18
|
5341 | }
|
5342 | }, this.delimiterIcon)]);
|
5343 | children.push(child);
|
5344 | }
|
5345 |
|
5346 | return this.$createElement(_mixins_button_group__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
5347 | props: {
|
5348 | value: this.internalValue,
|
5349 | mandatory: this.mandatory
|
5350 | },
|
5351 | on: {
|
5352 | change: function change(val) {
|
5353 | _this.internalValue = val;
|
5354 | }
|
5355 | }
|
5356 | }, children);
|
5357 | },
|
5358 | genProgress: function genProgress() {
|
5359 | return this.$createElement(_VProgressLinear__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
5360 | staticClass: 'v-carousel__progress',
|
5361 | props: {
|
5362 | color: this.progressColor,
|
5363 | value: (this.internalIndex + 1) / this.items.length * 100
|
5364 | }
|
5365 | });
|
5366 | },
|
5367 | restartTimeout: function restartTimeout() {
|
5368 | this.slideTimeout && clearTimeout(this.slideTimeout);
|
5369 | this.slideTimeout = undefined;
|
5370 | window.requestAnimationFrame(this.startTimeout);
|
5371 | },
|
5372 | startTimeout: function startTimeout() {
|
5373 | if (!this.cycle) return;
|
5374 | this.slideTimeout = window.setTimeout(this.next, +this.interval > 0 ? +this.interval : 6000);
|
5375 | }
|
5376 | },
|
5377 | render: function render(h) {
|
5378 | var render = _VWindow_VWindow__WEBPACK_IMPORTED_MODULE_1__["default"].options.render.call(this, h);
|
5379 | render.data.style = "height: " + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["convertToUnit"])(this.height) + ";";
|
5380 |
|
5381 |
|
5382 | if (!this.hideDelimiters) {
|
5383 | render.children.push(this.genDelimiters());
|
5384 | }
|
5385 |
|
5386 |
|
5387 |
|
5388 | if (this.progress || this.progressColor) {
|
5389 | render.children.push(this.genProgress());
|
5390 | }
|
5391 |
|
5392 | return render;
|
5393 | }
|
5394 | }));
|
5395 |
|
5396 | }),
|
5397 |
|
5398 | "./src/components/VCarousel/VCarouselItem.ts":
|
5399 |
|
5400 |
|
5401 |
|
5402 |
|
5403 | (function(module, __webpack_exports__, __webpack_require__) {
|
5404 |
|
5405 | "use strict";
|
5406 | __webpack_require__.r(__webpack_exports__);
|
5407 | var _VWindow_VWindowItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VWindow/VWindowItem.ts");
|
5408 | var _VImg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VImg/index.ts");
|
5409 | var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/mixins.ts");
|
5410 | var _mixins_routable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/routable/index.ts");
|
5411 | var __assign = undefined && undefined.__assign || function () {
|
5412 | __assign = Object.assign || function (t) {
|
5413 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5414 | s = arguments[i];
|
5415 |
|
5416 | for (var p in s) {
|
5417 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
5418 | }
|
5419 | }
|
5420 |
|
5421 | return t;
|
5422 | };
|
5423 |
|
5424 | return __assign.apply(this, arguments);
|
5425 | };
|
5426 |
|
5427 |
|
5428 |
|
5429 |
|
5430 |
|
5431 |
|
5432 |
|
5433 |
|
5434 |
|
5435 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_VWindow_VWindowItem__WEBPACK_IMPORTED_MODULE_0__["default"], _mixins_routable__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
5436 |
|
5437 |
|
5438 | __webpack_exports__["default"] = (baseMixins.extend({
|
5439 | name: 'v-carousel-item',
|
5440 | inheritAttrs: false,
|
5441 | methods: {
|
5442 | genDefaultSlot: function genDefaultSlot() {
|
5443 | return [this.$createElement(_VImg__WEBPACK_IMPORTED_MODULE_1__["VImg"], {
|
5444 | staticClass: 'v-carousel__item',
|
5445 | props: __assign({}, this.$attrs, {
|
5446 | height: this.windowGroup.internalHeight
|
5447 | }),
|
5448 | on: this.$listeners
|
5449 | }, [this.$slots.default, this.$createElement('template', {
|
5450 | slot: 'placeholder'
|
5451 | }, this.$slots.placeholder)])];
|
5452 | },
|
5453 | genWindowItem: function genWindowItem() {
|
5454 | var _a = this.generateRouteLink(),
|
5455 | tag = _a.tag,
|
5456 | data = _a.data;
|
5457 |
|
5458 | data.staticClass = 'v-window-item';
|
5459 | data.directives.push({
|
5460 | name: 'show',
|
5461 | value: this.isActive
|
5462 | });
|
5463 | return this.$createElement(tag, data, this.showLazyContent(this.genDefaultSlot()));
|
5464 | }
|
5465 | }
|
5466 | }));
|
5467 |
|
5468 | }),
|
5469 |
|
5470 | "./src/components/VCarousel/index.ts":
|
5471 |
|
5472 |
|
5473 |
|
5474 |
|
5475 | (function(module, __webpack_exports__, __webpack_require__) {
|
5476 |
|
5477 | "use strict";
|
5478 | __webpack_require__.r(__webpack_exports__);
|
5479 | var _VCarousel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCarousel/VCarousel.ts");
|
5480 | __webpack_require__.d(__webpack_exports__, "VCarousel", function() { return _VCarousel__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
5481 |
|
5482 | var _VCarouselItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VCarousel/VCarouselItem.ts");
|
5483 | __webpack_require__.d(__webpack_exports__, "VCarouselItem", function() { return _VCarouselItem__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
5484 |
|
5485 |
|
5486 |
|
5487 |
|
5488 | __webpack_exports__["default"] = ({
|
5489 | $_vuetify_subcomponents: {
|
5490 | VCarousel: _VCarousel__WEBPACK_IMPORTED_MODULE_0__["default"],
|
5491 | VCarouselItem: _VCarouselItem__WEBPACK_IMPORTED_MODULE_1__["default"]
|
5492 | }
|
5493 | });
|
5494 |
|
5495 | }),
|
5496 |
|
5497 | "./src/components/VCheckbox/VCheckbox.sass":
|
5498 |
|
5499 |
|
5500 |
|
5501 |
|
5502 | (function(module, exports, __webpack_require__) {
|
5503 |
|
5504 |
|
5505 |
|
5506 | }),
|
5507 |
|
5508 | "./src/components/VCheckbox/VCheckbox.ts":
|
5509 |
|
5510 |
|
5511 |
|
5512 |
|
5513 | (function(module, __webpack_exports__, __webpack_require__) {
|
5514 |
|
5515 | "use strict";
|
5516 | __webpack_require__.r(__webpack_exports__);
|
5517 | var _VCheckbox_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCheckbox/VCheckbox.sass");
|
5518 | var _VCheckbox_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VCheckbox_sass__WEBPACK_IMPORTED_MODULE_0__);
|
5519 | var _styles_components_selection_controls_sass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/styles/components/_selection-controls.sass");
|
5520 | var _styles_components_selection_controls_sass__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(_styles_components_selection_controls_sass__WEBPACK_IMPORTED_MODULE_1__);
|
5521 | var _VIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
5522 | var _VInput__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VInput/index.ts");
|
5523 | var _mixins_selectable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/selectable/index.ts");
|
5524 | var __assign = undefined && undefined.__assign || function () {
|
5525 | __assign = Object.assign || function (t) {
|
5526 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5527 | s = arguments[i];
|
5528 |
|
5529 | for (var p in s) {
|
5530 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
5531 | }
|
5532 | }
|
5533 |
|
5534 | return t;
|
5535 | };
|
5536 |
|
5537 | return __assign.apply(this, arguments);
|
5538 | };
|
5539 |
|
5540 |
|
5541 |
|
5542 |
|
5543 |
|
5544 |
|
5545 |
|
5546 |
|
5547 |
|
5548 |
|
5549 |
|
5550 | __webpack_exports__["default"] = (_mixins_selectable__WEBPACK_IMPORTED_MODULE_4__["default"].extend({
|
5551 | name: 'v-checkbox',
|
5552 | props: {
|
5553 | indeterminate: Boolean,
|
5554 | indeterminateIcon: {
|
5555 | type: String,
|
5556 | default: '$checkboxIndeterminate'
|
5557 | },
|
5558 | offIcon: {
|
5559 | type: String,
|
5560 | default: '$checkboxOff'
|
5561 | },
|
5562 | onIcon: {
|
5563 | type: String,
|
5564 | default: '$checkboxOn'
|
5565 | }
|
5566 | },
|
5567 | data: function data() {
|
5568 | return {
|
5569 | inputIndeterminate: this.indeterminate
|
5570 | };
|
5571 | },
|
5572 | computed: {
|
5573 | classes: function classes() {
|
5574 | return __assign({}, _VInput__WEBPACK_IMPORTED_MODULE_3__["default"].options.computed.classes.call(this), {
|
5575 | 'v-input--selection-controls': true,
|
5576 | 'v-input--checkbox': true,
|
5577 | 'v-input--indeterminate': this.inputIndeterminate
|
5578 | });
|
5579 | },
|
5580 | computedIcon: function computedIcon() {
|
5581 | if (this.inputIndeterminate) {
|
5582 | return this.indeterminateIcon;
|
5583 | } else if (this.isActive) {
|
5584 | return this.onIcon;
|
5585 | } else {
|
5586 | return this.offIcon;
|
5587 | }
|
5588 | },
|
5589 |
|
5590 |
|
5591 |
|
5592 | validationState: function validationState() {
|
5593 | if (this.disabled && !this.inputIndeterminate) return undefined;
|
5594 | if (this.hasError && this.shouldValidate) return 'error';
|
5595 | if (this.hasSuccess) return 'success';
|
5596 | if (this.hasColor) return this.computedColor;
|
5597 | return undefined;
|
5598 | }
|
5599 | },
|
5600 | watch: {
|
5601 | indeterminate: function indeterminate(val) {
|
5602 | var _this = this;
|
5603 |
|
5604 |
|
5605 | this.$nextTick(function () {
|
5606 | return _this.inputIndeterminate = val;
|
5607 | });
|
5608 | },
|
5609 | inputIndeterminate: function inputIndeterminate(val) {
|
5610 | this.$emit('update:indeterminate', val);
|
5611 | },
|
5612 | isActive: function isActive() {
|
5613 | if (!this.indeterminate) return;
|
5614 | this.inputIndeterminate = false;
|
5615 | }
|
5616 | },
|
5617 | methods: {
|
5618 | genCheckbox: function genCheckbox() {
|
5619 | return this.$createElement('div', {
|
5620 | staticClass: 'v-input--selection-controls__input'
|
5621 | }, [this.genInput('checkbox', __assign({}, this.attrs$, {
|
5622 | 'aria-checked': this.inputIndeterminate ? 'mixed' : this.isActive.toString()
|
5623 | })), this.genRipple(this.setTextColor(this.validationState)), this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_2__["default"], this.setTextColor(this.validationState, {
|
5624 | props: {
|
5625 | dark: this.dark,
|
5626 | light: this.light
|
5627 | }
|
5628 | }), this.computedIcon)]);
|
5629 | },
|
5630 | genDefaultSlot: function genDefaultSlot() {
|
5631 | return [this.genCheckbox(), this.genLabel()];
|
5632 | }
|
5633 | }
|
5634 | }));
|
5635 |
|
5636 | }),
|
5637 |
|
5638 | "./src/components/VCheckbox/VSimpleCheckbox.sass":
|
5639 |
|
5640 |
|
5641 |
|
5642 |
|
5643 | (function(module, exports, __webpack_require__) {
|
5644 |
|
5645 |
|
5646 |
|
5647 | }),
|
5648 |
|
5649 | "./src/components/VCheckbox/VSimpleCheckbox.ts":
|
5650 |
|
5651 |
|
5652 |
|
5653 |
|
5654 | (function(module, __webpack_exports__, __webpack_require__) {
|
5655 |
|
5656 | "use strict";
|
5657 | __webpack_require__.r(__webpack_exports__);
|
5658 | var _VSimpleCheckbox_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCheckbox/VSimpleCheckbox.sass");
|
5659 | var _VSimpleCheckbox_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VSimpleCheckbox_sass__WEBPACK_IMPORTED_MODULE_0__);
|
5660 | var _directives_ripple__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/directives/ripple/index.ts");
|
5661 | var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "vue");
|
5662 | var vue__WEBPACK_IMPORTED_MODULE_2___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
|
5663 | var _VIcon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
5664 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
5665 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
5666 | var _util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/util/helpers.ts");
|
5667 | var __assign = undefined && undefined.__assign || function () {
|
5668 | __assign = Object.assign || function (t) {
|
5669 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5670 | s = arguments[i];
|
5671 |
|
5672 | for (var p in s) {
|
5673 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
5674 | }
|
5675 | }
|
5676 |
|
5677 | return t;
|
5678 | };
|
5679 |
|
5680 | return __assign.apply(this, arguments);
|
5681 | };
|
5682 |
|
5683 |
|
5684 |
|
5685 |
|
5686 |
|
5687 |
|
5688 |
|
5689 |
|
5690 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_2___default.a.extend({
|
5691 | name: 'v-simple-checkbox',
|
5692 | functional: true,
|
5693 | directives: {
|
5694 | ripple: _directives_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
|
5695 | },
|
5696 | props: __assign({}, _mixins_colorable__WEBPACK_IMPORTED_MODULE_4__["default"].options.props, _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__["default"].options.props, {
|
5697 | disabled: Boolean,
|
5698 | ripple: {
|
5699 | type: Boolean,
|
5700 | default: true
|
5701 | },
|
5702 | value: Boolean,
|
5703 | indeterminate: Boolean,
|
5704 | indeterminateIcon: {
|
5705 | type: String,
|
5706 | default: '$checkboxIndeterminate'
|
5707 | },
|
5708 | onIcon: {
|
5709 | type: String,
|
5710 | default: '$checkboxOn'
|
5711 | },
|
5712 | offIcon: {
|
5713 | type: String,
|
5714 | default: '$checkboxOff'
|
5715 | }
|
5716 | }),
|
5717 | render: function render(h, _a) {
|
5718 | var props = _a.props,
|
5719 | data = _a.data;
|
5720 | var children = [];
|
5721 |
|
5722 | if (props.ripple && !props.disabled) {
|
5723 | var ripple_1 = h('div', _mixins_colorable__WEBPACK_IMPORTED_MODULE_4__["default"].options.methods.setTextColor(props.color, {
|
5724 | staticClass: 'v-input--selection-controls__ripple',
|
5725 | directives: [{
|
5726 | name: 'ripple',
|
5727 | value: {
|
5728 | center: true
|
5729 | }
|
5730 | }]
|
5731 | }));
|
5732 | children.push(ripple_1);
|
5733 | }
|
5734 |
|
5735 | var icon = props.offIcon;
|
5736 | if (props.indeterminate) icon = props.indeterminateIcon;else if (props.value) icon = props.onIcon;
|
5737 | children.push(h(_VIcon__WEBPACK_IMPORTED_MODULE_3__["VIcon"], _mixins_colorable__WEBPACK_IMPORTED_MODULE_4__["default"].options.methods.setTextColor(props.value && props.color, {
|
5738 | props: {
|
5739 | disabled: props.disabled,
|
5740 | dark: props.dark,
|
5741 | light: props.light
|
5742 | }
|
5743 | }), icon));
|
5744 | var classes = {
|
5745 | 'v-simple-checkbox': true,
|
5746 | 'v-simple-checkbox--disabled': props.disabled
|
5747 | };
|
5748 | return h('div', __assign({}, data, {
|
5749 | class: classes,
|
5750 | on: {
|
5751 | click: function click(e) {
|
5752 | e.stopPropagation();
|
5753 |
|
5754 | if (data.on && data.on.input && !props.disabled) {
|
5755 | Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["wrapInArray"])(data.on.input).forEach(function (f) {
|
5756 | return f(!props.value);
|
5757 | });
|
5758 | }
|
5759 | }
|
5760 | }
|
5761 | }), children);
|
5762 | }
|
5763 | }));
|
5764 |
|
5765 | }),
|
5766 |
|
5767 | "./src/components/VCheckbox/index.ts":
|
5768 |
|
5769 |
|
5770 |
|
5771 |
|
5772 | (function(module, __webpack_exports__, __webpack_require__) {
|
5773 |
|
5774 | "use strict";
|
5775 | __webpack_require__.r(__webpack_exports__);
|
5776 | var _VCheckbox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCheckbox/VCheckbox.ts");
|
5777 | __webpack_require__.d(__webpack_exports__, "VCheckbox", function() { return _VCheckbox__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
5778 |
|
5779 | var _VSimpleCheckbox__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VCheckbox/VSimpleCheckbox.ts");
|
5780 | __webpack_require__.d(__webpack_exports__, "VSimpleCheckbox", function() { return _VSimpleCheckbox__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
5781 |
|
5782 |
|
5783 |
|
5784 |
|
5785 | __webpack_exports__["default"] = ({
|
5786 | $_vuetify_subcomponents: {
|
5787 | VCheckbox: _VCheckbox__WEBPACK_IMPORTED_MODULE_0__["default"],
|
5788 | VSimpleCheckbox: _VSimpleCheckbox__WEBPACK_IMPORTED_MODULE_1__["default"]
|
5789 | }
|
5790 | });
|
5791 |
|
5792 | }),
|
5793 |
|
5794 | "./src/components/VChip/VChip.sass":
|
5795 |
|
5796 |
|
5797 |
|
5798 |
|
5799 | (function(module, exports, __webpack_require__) {
|
5800 |
|
5801 |
|
5802 |
|
5803 | }),
|
5804 |
|
5805 | "./src/components/VChip/VChip.ts":
|
5806 |
|
5807 |
|
5808 |
|
5809 |
|
5810 | (function(module, __webpack_exports__, __webpack_require__) {
|
5811 |
|
5812 | "use strict";
|
5813 | __webpack_require__.r(__webpack_exports__);
|
5814 | var _VChip_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VChip/VChip.sass");
|
5815 | var _VChip_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VChip_sass__WEBPACK_IMPORTED_MODULE_0__);
|
5816 | var _util_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/mixins.ts");
|
5817 | var _transitions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/transitions/index.ts");
|
5818 | var _VIcon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
5819 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
5820 | var _mixins_groupable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/groupable/index.ts");
|
5821 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
5822 | var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/mixins/toggleable/index.ts");
|
5823 | var _mixins_routable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/mixins/routable/index.ts");
|
5824 | var _mixins_sizeable__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__( "./src/mixins/sizeable/index.ts");
|
5825 | var _util_console__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__( "./src/util/console.ts");
|
5826 | var __assign = undefined && undefined.__assign || function () {
|
5827 | __assign = Object.assign || function (t) {
|
5828 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5829 | s = arguments[i];
|
5830 |
|
5831 | for (var p in s) {
|
5832 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
5833 | }
|
5834 | }
|
5835 |
|
5836 | return t;
|
5837 | };
|
5838 |
|
5839 | return __assign.apply(this, arguments);
|
5840 | };
|
5841 |
|
5842 | var __read = undefined && undefined.__read || function (o, n) {
|
5843 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
5844 | if (!m) return o;
|
5845 | var i = m.call(o),
|
5846 | r,
|
5847 | ar = [],
|
5848 | e;
|
5849 |
|
5850 | try {
|
5851 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
5852 | ar.push(r.value);
|
5853 | }
|
5854 | } catch (error) {
|
5855 | e = {
|
5856 | error: error
|
5857 | };
|
5858 | } finally {
|
5859 | try {
|
5860 | if (r && !r.done && (m = i["return"])) m.call(i);
|
5861 | } finally {
|
5862 | if (e) throw e.error;
|
5863 | }
|
5864 | }
|
5865 |
|
5866 | return ar;
|
5867 | };
|
5868 |
|
5869 |
|
5870 |
|
5871 |
|
5872 |
|
5873 |
|
5874 |
|
5875 |
|
5876 |
|
5877 |
|
5878 |
|
5879 |
|
5880 |
|
5881 |
|
5882 |
|
5883 |
|
5884 |
|
5885 |
|
5886 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_1__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_sizeable__WEBPACK_IMPORTED_MODULE_9__["default"], _mixins_routable__WEBPACK_IMPORTED_MODULE_8__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_mixins_groupable__WEBPACK_IMPORTED_MODULE_5__["factory"])('chipGroup'), Object(_mixins_toggleable__WEBPACK_IMPORTED_MODULE_7__["factory"])('inputValue')).extend({
|
5887 | name: 'v-chip',
|
5888 | props: {
|
5889 | active: {
|
5890 | type: Boolean,
|
5891 | default: true
|
5892 | },
|
5893 | activeClass: {
|
5894 | type: String,
|
5895 | default: function _default() {
|
5896 | if (!this.chipGroup) return '';
|
5897 | return this.chipGroup.activeClass;
|
5898 | }
|
5899 | },
|
5900 | close: Boolean,
|
5901 | closeIcon: {
|
5902 | type: String,
|
5903 | default: '$delete'
|
5904 | },
|
5905 | disabled: Boolean,
|
5906 | draggable: Boolean,
|
5907 | filter: Boolean,
|
5908 | filterIcon: {
|
5909 | type: String,
|
5910 | default: '$complete'
|
5911 | },
|
5912 | label: Boolean,
|
5913 | link: Boolean,
|
5914 | outlined: Boolean,
|
5915 | pill: Boolean,
|
5916 | tag: {
|
5917 | type: String,
|
5918 | default: 'span'
|
5919 | },
|
5920 | textColor: String,
|
5921 | value: null
|
5922 | },
|
5923 | data: function data() {
|
5924 | return {
|
5925 | proxyClass: 'v-chip--active'
|
5926 | };
|
5927 | },
|
5928 | computed: {
|
5929 | classes: function classes() {
|
5930 | return __assign({
|
5931 | 'v-chip': true
|
5932 | }, _mixins_routable__WEBPACK_IMPORTED_MODULE_8__["default"].options.computed.classes.call(this), {
|
5933 | 'v-chip--clickable': this.isClickable,
|
5934 | 'v-chip--disabled': this.disabled,
|
5935 | 'v-chip--draggable': this.draggable,
|
5936 | 'v-chip--label': this.label,
|
5937 | 'v-chip--link': this.isLink,
|
5938 | 'v-chip--no-color': !this.color,
|
5939 | 'v-chip--outlined': this.outlined,
|
5940 | 'v-chip--pill': this.pill,
|
5941 | 'v-chip--removable': this.hasClose
|
5942 | }, this.themeClasses, this.sizeableClasses, this.groupClasses);
|
5943 | },
|
5944 | hasClose: function hasClose() {
|
5945 | return Boolean(this.close);
|
5946 | },
|
5947 | isClickable: function isClickable() {
|
5948 | return Boolean(_mixins_routable__WEBPACK_IMPORTED_MODULE_8__["default"].options.computed.isClickable.call(this) || this.chipGroup);
|
5949 | }
|
5950 | },
|
5951 | created: function created() {
|
5952 | var _this = this;
|
5953 |
|
5954 | var breakingProps = [['outline', 'outlined'], ['selected', 'input-value'], ['value', 'active'], ['@input', '@active.sync']];
|
5955 |
|
5956 |
|
5957 | breakingProps.forEach(function (_a) {
|
5958 | var _b = __read(_a, 2),
|
5959 | original = _b[0],
|
5960 | replacement = _b[1];
|
5961 |
|
5962 | if (_this.$attrs.hasOwnProperty(original)) Object(_util_console__WEBPACK_IMPORTED_MODULE_10__["breaking"])(original, replacement, _this);
|
5963 | });
|
5964 | },
|
5965 | methods: {
|
5966 | click: function click(e) {
|
5967 | this.$emit('click', e);
|
5968 | this.chipGroup && this.toggle();
|
5969 | },
|
5970 | genFilter: function genFilter() {
|
5971 | var children = [];
|
5972 |
|
5973 | if (this.isActive) {
|
5974 | children.push(this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
5975 | staticClass: 'v-chip__filter',
|
5976 | props: {
|
5977 | left: true
|
5978 | }
|
5979 | }, this.filterIcon));
|
5980 | }
|
5981 |
|
5982 | return this.$createElement(_transitions__WEBPACK_IMPORTED_MODULE_2__["VExpandXTransition"], children);
|
5983 | },
|
5984 | genClose: function genClose() {
|
5985 | var _this = this;
|
5986 |
|
5987 | return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
5988 | staticClass: 'v-chip__close',
|
5989 | props: {
|
5990 | right: true
|
5991 | },
|
5992 | on: {
|
5993 | click: function click(e) {
|
5994 | e.stopPropagation();
|
5995 |
|
5996 | _this.$emit('click:close');
|
5997 |
|
5998 | _this.$emit('update:active', false);
|
5999 | }
|
6000 | }
|
6001 | }, this.closeIcon);
|
6002 | },
|
6003 | genContent: function genContent() {
|
6004 | return this.$createElement('span', {
|
6005 | staticClass: 'v-chip__content'
|
6006 | }, [this.filter && this.genFilter(), this.$slots.default, this.hasClose && this.genClose()]);
|
6007 | }
|
6008 | },
|
6009 | render: function render(h) {
|
6010 | var children = [this.genContent()];
|
6011 |
|
6012 | var _a = this.generateRouteLink(),
|
6013 | tag = _a.tag,
|
6014 | data = _a.data;
|
6015 |
|
6016 | data.attrs = __assign({}, data.attrs, {
|
6017 | draggable: this.draggable ? 'true' : undefined,
|
6018 | tabindex: this.chipGroup && !this.disabled ? 0 : data.attrs.tabindex
|
6019 | });
|
6020 | data.directives.push({
|
6021 | name: 'show',
|
6022 | value: this.active
|
6023 | });
|
6024 | data = this.setBackgroundColor(this.color, data);
|
6025 | var color = this.textColor || this.outlined && this.color;
|
6026 | return h(tag, this.setTextColor(color, data), children);
|
6027 | }
|
6028 | }));
|
6029 |
|
6030 | }),
|
6031 |
|
6032 | "./src/components/VChip/index.ts":
|
6033 |
|
6034 |
|
6035 |
|
6036 |
|
6037 | (function(module, __webpack_exports__, __webpack_require__) {
|
6038 |
|
6039 | "use strict";
|
6040 | __webpack_require__.r(__webpack_exports__);
|
6041 | var _VChip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VChip/VChip.ts");
|
6042 | __webpack_require__.d(__webpack_exports__, "VChip", function() { return _VChip__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
6043 |
|
6044 |
|
6045 |
|
6046 | __webpack_exports__["default"] = (_VChip__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
6047 |
|
6048 | }),
|
6049 |
|
6050 | "./src/components/VChipGroup/VChipGroup.sass":
|
6051 |
|
6052 |
|
6053 |
|
6054 |
|
6055 | (function(module, exports, __webpack_require__) {
|
6056 |
|
6057 |
|
6058 |
|
6059 | }),
|
6060 |
|
6061 | "./src/components/VChipGroup/VChipGroup.ts":
|
6062 |
|
6063 |
|
6064 |
|
6065 |
|
6066 | (function(module, __webpack_exports__, __webpack_require__) {
|
6067 |
|
6068 | "use strict";
|
6069 | __webpack_require__.r(__webpack_exports__);
|
6070 | var _VChipGroup_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VChipGroup/VChipGroup.sass");
|
6071 | var _VChipGroup_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VChipGroup_sass__WEBPACK_IMPORTED_MODULE_0__);
|
6072 | var _VSlideGroup_VSlideGroup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VSlideGroup/VSlideGroup.ts");
|
6073 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
6074 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
6075 | var __assign = undefined && undefined.__assign || function () {
|
6076 | __assign = Object.assign || function (t) {
|
6077 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
6078 | s = arguments[i];
|
6079 |
|
6080 | for (var p in s) {
|
6081 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
6082 | }
|
6083 | }
|
6084 |
|
6085 | return t;
|
6086 | };
|
6087 |
|
6088 | return __assign.apply(this, arguments);
|
6089 | };
|
6090 |
|
6091 |
|
6092 |
|
6093 |
|
6094 |
|
6095 |
|
6096 |
|
6097 |
|
6098 |
|
6099 |
|
6100 |
|
6101 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_VSlideGroup_VSlideGroup__WEBPACK_IMPORTED_MODULE_1__["BaseSlideGroup"], _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"]).extend({
|
6102 | name: 'v-chip-group',
|
6103 | provide: function provide() {
|
6104 | return {
|
6105 | chipGroup: this
|
6106 | };
|
6107 | },
|
6108 | props: {
|
6109 | column: Boolean
|
6110 | },
|
6111 | computed: {
|
6112 | classes: function classes() {
|
6113 | return __assign({}, _VSlideGroup_VSlideGroup__WEBPACK_IMPORTED_MODULE_1__["BaseSlideGroup"].options.computed.classes.call(this), {
|
6114 | 'v-chip-group': true,
|
6115 | 'v-chip-group--column': this.column
|
6116 | });
|
6117 | }
|
6118 | },
|
6119 | watch: {
|
6120 | column: function column(val) {
|
6121 | if (val) this.scrollOffset = 0;
|
6122 | this.$nextTick(this.onResize);
|
6123 | }
|
6124 | },
|
6125 | methods: {
|
6126 | genData: function genData() {
|
6127 | return this.setTextColor(this.color, __assign({}, _VSlideGroup_VSlideGroup__WEBPACK_IMPORTED_MODULE_1__["BaseSlideGroup"].options.methods.genData.call(this)));
|
6128 | }
|
6129 | }
|
6130 | }));
|
6131 |
|
6132 | }),
|
6133 |
|
6134 | "./src/components/VChipGroup/index.ts":
|
6135 |
|
6136 |
|
6137 |
|
6138 |
|
6139 | (function(module, __webpack_exports__, __webpack_require__) {
|
6140 |
|
6141 | "use strict";
|
6142 | __webpack_require__.r(__webpack_exports__);
|
6143 | var _VChipGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VChipGroup/VChipGroup.ts");
|
6144 | __webpack_require__.d(__webpack_exports__, "VChipGroup", function() { return _VChipGroup__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
6145 |
|
6146 |
|
6147 |
|
6148 | __webpack_exports__["default"] = (_VChipGroup__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
6149 |
|
6150 | }),
|
6151 |
|
6152 | "./src/components/VColorPicker/VColorPicker.sass":
|
6153 |
|
6154 |
|
6155 |
|
6156 |
|
6157 | (function(module, exports, __webpack_require__) {
|
6158 |
|
6159 |
|
6160 |
|
6161 | }),
|
6162 |
|
6163 | "./src/components/VColorPicker/VColorPicker.ts":
|
6164 |
|
6165 |
|
6166 |
|
6167 |
|
6168 | (function(module, __webpack_exports__, __webpack_require__) {
|
6169 |
|
6170 | "use strict";
|
6171 | __webpack_require__.r(__webpack_exports__);
|
6172 | var _VColorPicker_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VColorPicker/VColorPicker.sass");
|
6173 | var _VColorPicker_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VColorPicker_sass__WEBPACK_IMPORTED_MODULE_0__);
|
6174 | var _VSheet_VSheet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VSheet/VSheet.ts");
|
6175 | var _VColorPickerPreview__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VColorPicker/VColorPickerPreview.ts");
|
6176 | var _VColorPickerCanvas__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VColorPicker/VColorPickerCanvas.ts");
|
6177 | var _VColorPickerEdit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VColorPicker/VColorPickerEdit.ts");
|
6178 | var _VColorPickerSwatches__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/components/VColorPicker/VColorPickerSwatches.ts");
|
6179 | var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/components/VColorPicker/util/index.ts");
|
6180 | var _util_mixins__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/util/mixins.ts");
|
6181 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
6182 | var __assign = undefined && undefined.__assign || function () {
|
6183 | __assign = Object.assign || function (t) {
|
6184 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
6185 | s = arguments[i];
|
6186 |
|
6187 | for (var p in s) {
|
6188 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
6189 | }
|
6190 | }
|
6191 |
|
6192 | return t;
|
6193 | };
|
6194 |
|
6195 | return __assign.apply(this, arguments);
|
6196 | };
|
6197 |
|
6198 |
|
6199 |
|
6200 |
|
6201 |
|
6202 |
|
6203 |
|
6204 |
|
6205 |
|
6206 |
|
6207 |
|
6208 |
|
6209 |
|
6210 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_mixins_themeable__WEBPACK_IMPORTED_MODULE_8__["default"]).extend({
|
6211 | name: 'v-color-picker',
|
6212 | props: {
|
6213 | canvasHeight: {
|
6214 | type: [String, Number],
|
6215 | default: 150
|
6216 | },
|
6217 | disabled: Boolean,
|
6218 | dotSize: {
|
6219 | type: [Number, String],
|
6220 | default: 10
|
6221 | },
|
6222 | flat: Boolean,
|
6223 | hideCanvas: Boolean,
|
6224 | hideInputs: Boolean,
|
6225 | hideModeSwitch: Boolean,
|
6226 | mode: {
|
6227 | type: String,
|
6228 | default: 'rgba',
|
6229 | validator: function validator(v) {
|
6230 | return Object.keys(_VColorPickerEdit__WEBPACK_IMPORTED_MODULE_4__["modes"]).includes(v);
|
6231 | }
|
6232 | },
|
6233 | showSwatches: Boolean,
|
6234 | swatches: Array,
|
6235 | swatchesMaxHeight: {
|
6236 | type: [Number, String],
|
6237 | default: 150
|
6238 | },
|
6239 | value: {
|
6240 | type: [Object, String]
|
6241 | },
|
6242 | width: {
|
6243 | type: [Number, String],
|
6244 | default: 300
|
6245 | }
|
6246 | },
|
6247 | data: function data() {
|
6248 | return {
|
6249 | internalValue: Object(_util__WEBPACK_IMPORTED_MODULE_6__["fromRGBA"])({
|
6250 | r: 255,
|
6251 | g: 0,
|
6252 | b: 0,
|
6253 | a: 1
|
6254 | })
|
6255 | };
|
6256 | },
|
6257 | computed: {
|
6258 | hideAlpha: function hideAlpha() {
|
6259 | return this.value && !Object(_util__WEBPACK_IMPORTED_MODULE_6__["hasAlpha"])(this.value);
|
6260 | }
|
6261 | },
|
6262 | watch: {
|
6263 | value: {
|
6264 | handler: function handler(color) {
|
6265 | this.updateColor(Object(_util__WEBPACK_IMPORTED_MODULE_6__["parseColor"])(color, this.internalValue));
|
6266 | },
|
6267 | immediate: true
|
6268 | }
|
6269 | },
|
6270 | methods: {
|
6271 | updateColor: function updateColor(color) {
|
6272 | this.internalValue = color;
|
6273 | var value = Object(_util__WEBPACK_IMPORTED_MODULE_6__["extractColor"])(this.internalValue, this.value);
|
6274 |
|
6275 | if (value !== this.value) {
|
6276 | this.$emit('input', value);
|
6277 | this.$emit('update:color', this.internalValue);
|
6278 | }
|
6279 | },
|
6280 | genCanvas: function genCanvas() {
|
6281 | return this.$createElement(_VColorPickerCanvas__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
6282 | props: {
|
6283 | color: this.internalValue,
|
6284 | disabled: this.disabled,
|
6285 | dotSize: this.dotSize,
|
6286 | width: this.width,
|
6287 | height: this.canvasHeight
|
6288 | },
|
6289 | on: {
|
6290 | 'update:color': this.updateColor
|
6291 | }
|
6292 | });
|
6293 | },
|
6294 | genControls: function genControls() {
|
6295 | return this.$createElement('div', {
|
6296 | staticClass: 'v-color-picker__controls'
|
6297 | }, [this.genPreview(), !this.hideInputs && this.genEdit()]);
|
6298 | },
|
6299 | genEdit: function genEdit() {
|
6300 | var _this = this;
|
6301 |
|
6302 | return this.$createElement(_VColorPickerEdit__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
6303 | props: {
|
6304 | color: this.internalValue,
|
6305 | disabled: this.disabled,
|
6306 | hideAlpha: this.hideAlpha,
|
6307 | hideModeSwitch: this.hideModeSwitch,
|
6308 | mode: this.mode
|
6309 | },
|
6310 | on: {
|
6311 | 'update:color': this.updateColor,
|
6312 | 'update:mode': function updateMode(v) {
|
6313 | return _this.$emit('update:mode', v);
|
6314 | }
|
6315 | }
|
6316 | });
|
6317 | },
|
6318 | genPreview: function genPreview() {
|
6319 | return this.$createElement(_VColorPickerPreview__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
6320 | props: {
|
6321 | color: this.internalValue,
|
6322 | disabled: this.disabled,
|
6323 | hideAlpha: this.hideAlpha
|
6324 | },
|
6325 | on: {
|
6326 | 'update:color': this.updateColor
|
6327 | }
|
6328 | });
|
6329 | },
|
6330 | genSwatches: function genSwatches() {
|
6331 | return this.$createElement(_VColorPickerSwatches__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
6332 | props: {
|
6333 | dark: this.dark,
|
6334 | light: this.light,
|
6335 | swatches: this.swatches,
|
6336 | color: this.internalValue,
|
6337 | maxHeight: this.swatchesMaxHeight
|
6338 | },
|
6339 | on: {
|
6340 | 'update:color': this.updateColor
|
6341 | }
|
6342 | });
|
6343 | }
|
6344 | },
|
6345 | render: function render(h) {
|
6346 | return h(_VSheet_VSheet__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
6347 | staticClass: 'v-color-picker',
|
6348 | class: __assign({
|
6349 | 'v-color-picker--flat': this.flat
|
6350 | }, this.themeClasses),
|
6351 | props: {
|
6352 | maxWidth: this.width
|
6353 | }
|
6354 | }, [!this.hideCanvas && this.genCanvas(), this.genControls(), this.showSwatches && this.genSwatches()]);
|
6355 | }
|
6356 | }));
|
6357 |
|
6358 | }),
|
6359 |
|
6360 | "./src/components/VColorPicker/VColorPickerCanvas.sass":
|
6361 |
|
6362 |
|
6363 |
|
6364 |
|
6365 | (function(module, exports, __webpack_require__) {
|
6366 |
|
6367 |
|
6368 |
|
6369 | }),
|
6370 |
|
6371 | "./src/components/VColorPicker/VColorPickerCanvas.ts":
|
6372 |
|
6373 |
|
6374 |
|
6375 |
|
6376 | (function(module, __webpack_exports__, __webpack_require__) {
|
6377 |
|
6378 | "use strict";
|
6379 | __webpack_require__.r(__webpack_exports__);
|
6380 | var _VColorPickerCanvas_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VColorPicker/VColorPickerCanvas.sass");
|
6381 | var _VColorPickerCanvas_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VColorPickerCanvas_sass__WEBPACK_IMPORTED_MODULE_0__);
|
6382 | var _util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/helpers.ts");
|
6383 | var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VColorPicker/util/index.ts");
|
6384 | var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "vue");
|
6385 | var vue__WEBPACK_IMPORTED_MODULE_3___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_3__);
|
6386 |
|
6387 |
|
6388 |
|
6389 |
|
6390 |
|
6391 |
|
6392 |
|
6393 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_3___default.a.extend({
|
6394 | name: 'v-color-picker-canvas',
|
6395 | props: {
|
6396 | color: {
|
6397 | type: Object,
|
6398 | default: function _default() {
|
6399 | return Object(_util__WEBPACK_IMPORTED_MODULE_2__["fromRGBA"])({
|
6400 | r: 255,
|
6401 | g: 0,
|
6402 | b: 0,
|
6403 | a: 1
|
6404 | });
|
6405 | }
|
6406 | },
|
6407 | disabled: Boolean,
|
6408 | dotSize: {
|
6409 | type: [Number, String],
|
6410 | default: 10
|
6411 | },
|
6412 | height: {
|
6413 | type: [Number, String],
|
6414 | default: 150
|
6415 | },
|
6416 | width: {
|
6417 | type: [Number, String],
|
6418 | default: 300
|
6419 | }
|
6420 | },
|
6421 | data: function data() {
|
6422 | return {
|
6423 | boundingRect: {
|
6424 | width: 0,
|
6425 | height: 0,
|
6426 | left: 0,
|
6427 | top: 0
|
6428 | }
|
6429 | };
|
6430 | },
|
6431 | computed: {
|
6432 | dot: function dot() {
|
6433 | if (!this.color) return {
|
6434 | x: 0,
|
6435 | y: 0
|
6436 | };
|
6437 | return {
|
6438 | x: this.color.hsva.s * parseInt(this.width, 10),
|
6439 | y: (1 - this.color.hsva.v) * parseInt(this.height, 10)
|
6440 | };
|
6441 | }
|
6442 | },
|
6443 | watch: {
|
6444 | 'color.hue': 'updateCanvas'
|
6445 | },
|
6446 | mounted: function mounted() {
|
6447 | this.updateCanvas();
|
6448 | },
|
6449 | methods: {
|
6450 | emitColor: function emitColor(x, y) {
|
6451 | var _a = this.boundingRect,
|
6452 | left = _a.left,
|
6453 | top = _a.top,
|
6454 | width = _a.width,
|
6455 | height = _a.height;
|
6456 | this.$emit('update:color', Object(_util__WEBPACK_IMPORTED_MODULE_2__["fromHSVA"])({
|
6457 | h: this.color.hue,
|
6458 | s: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["clamp"])(x - left, 0, width) / width,
|
6459 | v: 1 - Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["clamp"])(y - top, 0, height) / height,
|
6460 | a: this.color.alpha
|
6461 | }));
|
6462 | },
|
6463 | updateCanvas: function updateCanvas() {
|
6464 | if (!this.color) return;
|
6465 | var canvas = this.$refs.canvas;
|
6466 | var ctx = canvas.getContext('2d');
|
6467 | if (!ctx) return;
|
6468 | var saturationGradient = ctx.createLinearGradient(0, 0, canvas.width, 0);
|
6469 | saturationGradient.addColorStop(0, 'hsla(0, 0%, 100%, 1)');
|
6470 |
|
6471 | saturationGradient.addColorStop(1, "hsla(" + this.color.hue + ", 100%, 50%, 1)");
|
6472 | ctx.fillStyle = saturationGradient;
|
6473 | ctx.fillRect(0, 0, canvas.width, canvas.height);
|
6474 | var valueGradient = ctx.createLinearGradient(0, 0, 0, canvas.height);
|
6475 | valueGradient.addColorStop(0, 'hsla(0, 0%, 100%, 0)');
|
6476 |
|
6477 | valueGradient.addColorStop(1, 'hsla(0, 0%, 0%, 1)');
|
6478 |
|
6479 | ctx.fillStyle = valueGradient;
|
6480 | ctx.fillRect(0, 0, canvas.width, canvas.height);
|
6481 | },
|
6482 | handleClick: function handleClick(e) {
|
6483 | if (this.disabled) return;
|
6484 | this.boundingRect = this.$el.getBoundingClientRect();
|
6485 | this.emitColor(e.clientX, e.clientY);
|
6486 | },
|
6487 | handleMouseDown: function handleMouseDown(e) {
|
6488 |
|
6489 | e.preventDefault();
|
6490 | if (this.disabled) return;
|
6491 | this.boundingRect = this.$el.getBoundingClientRect();
|
6492 | window.addEventListener('mousemove', this.handleMouseMove);
|
6493 | window.addEventListener('mouseup', this.handleMouseUp);
|
6494 | },
|
6495 | handleMouseMove: function handleMouseMove(e) {
|
6496 | if (this.disabled) return;
|
6497 | this.emitColor(e.clientX, e.clientY);
|
6498 | },
|
6499 | handleMouseUp: function handleMouseUp() {
|
6500 | window.removeEventListener('mousemove', this.handleMouseMove);
|
6501 | window.removeEventListener('mouseup', this.handleMouseUp);
|
6502 | },
|
6503 | genCanvas: function genCanvas() {
|
6504 | return this.$createElement('canvas', {
|
6505 | ref: 'canvas',
|
6506 | attrs: {
|
6507 | width: this.width,
|
6508 | height: this.height
|
6509 | }
|
6510 | });
|
6511 | },
|
6512 | genDot: function genDot() {
|
6513 | var radius = parseInt(this.dotSize, 10) / 2;
|
6514 | var x = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["convertToUnit"])(this.dot.x - radius);
|
6515 | var y = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["convertToUnit"])(this.dot.y - radius);
|
6516 | return this.$createElement('div', {
|
6517 | staticClass: 'v-color-picker__canvas-dot',
|
6518 | class: {
|
6519 | 'v-color-picker__canvas-dot--disabled': this.disabled
|
6520 | },
|
6521 | style: {
|
6522 | width: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["convertToUnit"])(this.dotSize),
|
6523 | height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["convertToUnit"])(this.dotSize),
|
6524 | transform: "translate(" + x + ", " + y + ")"
|
6525 | }
|
6526 | });
|
6527 | }
|
6528 | },
|
6529 | render: function render(h) {
|
6530 | return h('div', {
|
6531 | staticClass: 'v-color-picker__canvas',
|
6532 | style: {
|
6533 | width: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["convertToUnit"])(this.width),
|
6534 | height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["convertToUnit"])(this.height)
|
6535 | },
|
6536 | on: {
|
6537 | click: this.handleClick,
|
6538 | mousedown: this.handleMouseDown
|
6539 | }
|
6540 | }, [this.genCanvas(), this.genDot()]);
|
6541 | }
|
6542 | }));
|
6543 |
|
6544 | }),
|
6545 |
|
6546 | "./src/components/VColorPicker/VColorPickerEdit.sass":
|
6547 |
|
6548 |
|
6549 |
|
6550 |
|
6551 | (function(module, exports, __webpack_require__) {
|
6552 |
|
6553 |
|
6554 |
|
6555 | }),
|
6556 |
|
6557 | "./src/components/VColorPicker/VColorPickerEdit.ts":
|
6558 |
|
6559 |
|
6560 |
|
6561 |
|
6562 | (function(module, __webpack_exports__, __webpack_require__) {
|
6563 |
|
6564 | "use strict";
|
6565 | __webpack_require__.r(__webpack_exports__);
|
6566 | __webpack_require__.d(__webpack_exports__, "modes", function() { return modes; });
|
6567 | var _VColorPickerEdit_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VColorPicker/VColorPickerEdit.sass");
|
6568 | var _VColorPickerEdit_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VColorPickerEdit_sass__WEBPACK_IMPORTED_MODULE_0__);
|
6569 | var _VBtn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VBtn/index.ts");
|
6570 | var _VIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
6571 | var _util_colorUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/colorUtils.ts");
|
6572 | var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "vue");
|
6573 | var vue__WEBPACK_IMPORTED_MODULE_4___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_4__);
|
6574 | var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/components/VColorPicker/util/index.ts");
|
6575 | var __read = undefined && undefined.__read || function (o, n) {
|
6576 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
6577 | if (!m) return o;
|
6578 | var i = m.call(o),
|
6579 | r,
|
6580 | ar = [],
|
6581 | e;
|
6582 |
|
6583 | try {
|
6584 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
6585 | ar.push(r.value);
|
6586 | }
|
6587 | } catch (error) {
|
6588 | e = {
|
6589 | error: error
|
6590 | };
|
6591 | } finally {
|
6592 | try {
|
6593 | if (r && !r.done && (m = i["return"])) m.call(i);
|
6594 | } finally {
|
6595 | if (e) throw e.error;
|
6596 | }
|
6597 | }
|
6598 |
|
6599 | return ar;
|
6600 | };
|
6601 |
|
6602 |
|
6603 |
|
6604 |
|
6605 |
|
6606 |
|
6607 |
|
6608 |
|
6609 |
|
6610 |
|
6611 |
|
6612 | var modes = {
|
6613 | rgba: {
|
6614 | inputs: [['r', 255, 'int'], ['g', 255, 'int'], ['b', 255, 'int'], ['a', 1, 'float']],
|
6615 | from: _util__WEBPACK_IMPORTED_MODULE_5__["fromRGBA"]
|
6616 | },
|
6617 | hsla: {
|
6618 | inputs: [['h', 360, 'int'], ['s', 1, 'float'], ['l', 1, 'float'], ['a', 1, 'float']],
|
6619 | from: _util__WEBPACK_IMPORTED_MODULE_5__["fromHSLA"]
|
6620 | },
|
6621 | hexa: {
|
6622 | from: _util__WEBPACK_IMPORTED_MODULE_5__["fromHexa"]
|
6623 | }
|
6624 | };
|
6625 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_4___default.a.extend({
|
6626 | name: 'v-color-picker-edit',
|
6627 | props: {
|
6628 | color: Object,
|
6629 | disabled: Boolean,
|
6630 | hideAlpha: Boolean,
|
6631 | hideModeSwitch: Boolean,
|
6632 | mode: {
|
6633 | type: String,
|
6634 | default: 'rgba',
|
6635 | validator: function validator(v) {
|
6636 | return Object.keys(modes).includes(v);
|
6637 | }
|
6638 | }
|
6639 | },
|
6640 | data: function data() {
|
6641 | return {
|
6642 | modes: modes,
|
6643 | internalMode: this.mode
|
6644 | };
|
6645 | },
|
6646 | computed: {
|
6647 | currentMode: function currentMode() {
|
6648 | return this.modes[this.internalMode];
|
6649 | }
|
6650 | },
|
6651 | watch: {
|
6652 | mode: function mode(_mode) {
|
6653 | this.internalMode = _mode;
|
6654 | }
|
6655 | },
|
6656 | created: function created() {
|
6657 | this.internalMode = this.mode;
|
6658 | },
|
6659 | methods: {
|
6660 | getValue: function getValue(v, type) {
|
6661 | if (type === 'float') return Math.round(v * 100) / 100;else if (type === 'int') return Math.round(v);else return 0;
|
6662 | },
|
6663 | parseValue: function parseValue(v, type) {
|
6664 | if (type === 'float') return parseFloat(v);else if (type === 'int') return parseInt(v, 10) || 0;else return 0;
|
6665 | },
|
6666 | changeMode: function changeMode() {
|
6667 | var modes = Object.keys(this.modes);
|
6668 | var index = modes.indexOf(this.internalMode);
|
6669 | var newMode = modes[(index + 1) % modes.length];
|
6670 | this.internalMode = newMode;
|
6671 | this.$emit('update:mode', newMode);
|
6672 | },
|
6673 | genInput: function genInput(target, attrs, value, on) {
|
6674 | return this.$createElement('div', {
|
6675 | staticClass: 'v-color-picker__input'
|
6676 | }, [this.$createElement('input', {
|
6677 | key: target,
|
6678 | attrs: attrs,
|
6679 | domProps: {
|
6680 | value: value
|
6681 | },
|
6682 | on: on
|
6683 | }), this.$createElement('span', target.toUpperCase())]);
|
6684 | },
|
6685 | genInputs: function genInputs() {
|
6686 | var _this = this;
|
6687 |
|
6688 | switch (this.internalMode) {
|
6689 | case 'hexa':
|
6690 | {
|
6691 | var hex = this.color.hexa;
|
6692 | var value = this.hideAlpha && hex.endsWith('FF') ? hex.substr(0, 7) : hex;
|
6693 | return this.genInput('hex', {
|
6694 | maxlength: this.hideAlpha ? 7 : 9,
|
6695 | disabled: this.disabled
|
6696 | }, value, {
|
6697 | change: function change(e) {
|
6698 | var el = e.target;
|
6699 |
|
6700 | _this.$emit('update:color', _this.currentMode.from(Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_3__["parseHex"])(el.value)));
|
6701 | }
|
6702 | });
|
6703 | }
|
6704 |
|
6705 | default:
|
6706 | {
|
6707 | var inputs = this.hideAlpha ? this.currentMode.inputs.slice(0, -1) : this.currentMode.inputs;
|
6708 | return inputs.map(function (_a) {
|
6709 | var _b = __read(_a, 3),
|
6710 | target = _b[0],
|
6711 | max = _b[1],
|
6712 | type = _b[2];
|
6713 |
|
6714 | var value = _this.color[_this.internalMode];
|
6715 | return _this.genInput(target, {
|
6716 | type: 'number',
|
6717 | min: 0,
|
6718 | max: max,
|
6719 | step: type === 'float' ? '0.01' : type === 'int' ? '1' : undefined,
|
6720 | disabled: _this.disabled
|
6721 | }, _this.getValue(value[target], type), {
|
6722 | input: function input(e) {
|
6723 | var _a;
|
6724 |
|
6725 | var el = e.target;
|
6726 |
|
6727 | var newVal = _this.parseValue(el.value || '0', type);
|
6728 |
|
6729 | _this.$emit('update:color', _this.currentMode.from(Object.assign({}, value, (_a = {}, _a[target] = newVal, _a)), _this.color.alpha));
|
6730 | }
|
6731 | });
|
6732 | });
|
6733 | }
|
6734 | }
|
6735 | },
|
6736 | genSwitch: function genSwitch() {
|
6737 | return this.$createElement(_VBtn__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
6738 | props: {
|
6739 | small: true,
|
6740 | icon: true,
|
6741 | disabled: this.disabled
|
6742 | },
|
6743 | on: {
|
6744 | click: this.changeMode
|
6745 | }
|
6746 | }, [this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_2__["default"], '$unfold')]);
|
6747 | }
|
6748 | },
|
6749 | render: function render(h) {
|
6750 | return h('div', {
|
6751 | staticClass: 'v-color-picker__edit'
|
6752 | }, [this.genInputs(), !this.hideModeSwitch && this.genSwitch()]);
|
6753 | }
|
6754 | }));
|
6755 |
|
6756 | }),
|
6757 |
|
6758 | "./src/components/VColorPicker/VColorPickerPreview.sass":
|
6759 |
|
6760 |
|
6761 |
|
6762 |
|
6763 | (function(module, exports, __webpack_require__) {
|
6764 |
|
6765 |
|
6766 |
|
6767 | }),
|
6768 |
|
6769 | "./src/components/VColorPicker/VColorPickerPreview.ts":
|
6770 |
|
6771 |
|
6772 |
|
6773 |
|
6774 | (function(module, __webpack_exports__, __webpack_require__) {
|
6775 |
|
6776 | "use strict";
|
6777 | __webpack_require__.r(__webpack_exports__);
|
6778 | var _VColorPickerPreview_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VColorPicker/VColorPickerPreview.sass");
|
6779 | var _VColorPickerPreview_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VColorPickerPreview_sass__WEBPACK_IMPORTED_MODULE_0__);
|
6780 | var _VSlider_VSlider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VSlider/VSlider.ts");
|
6781 | var _util_colorUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/colorUtils.ts");
|
6782 | var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "vue");
|
6783 | var vue__WEBPACK_IMPORTED_MODULE_3___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_3__);
|
6784 | var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VColorPicker/util/index.ts");
|
6785 | var __assign = undefined && undefined.__assign || function () {
|
6786 | __assign = Object.assign || function (t) {
|
6787 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
6788 | s = arguments[i];
|
6789 |
|
6790 | for (var p in s) {
|
6791 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
6792 | }
|
6793 | }
|
6794 |
|
6795 | return t;
|
6796 | };
|
6797 |
|
6798 | return __assign.apply(this, arguments);
|
6799 | };
|
6800 |
|
6801 |
|
6802 |
|
6803 |
|
6804 |
|
6805 |
|
6806 |
|
6807 |
|
6808 |
|
6809 |
|
6810 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_3___default.a.extend({
|
6811 | name: 'v-color-picker-preview',
|
6812 | props: {
|
6813 | color: Object,
|
6814 | disabled: Boolean,
|
6815 | hideAlpha: Boolean
|
6816 | },
|
6817 | methods: {
|
6818 | genAlpha: function genAlpha() {
|
6819 | var _this = this;
|
6820 |
|
6821 | return this.genTrack({
|
6822 | staticClass: 'v-color-picker__alpha',
|
6823 | props: {
|
6824 | thumbColor: 'grey lighten-2',
|
6825 | hideDetails: true,
|
6826 | value: this.color.alpha,
|
6827 | step: 0,
|
6828 | min: 0,
|
6829 | max: 1
|
6830 | },
|
6831 | style: {
|
6832 | backgroundImage: !this.disabled ? "linear-gradient(to right, transparent, " + Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_2__["RGBtoCSS"])(this.color.rgba) + ")" : undefined
|
6833 | },
|
6834 | on: {
|
6835 | input: function input(val) {
|
6836 | return _this.color.alpha !== val && _this.$emit('update:color', Object(_util__WEBPACK_IMPORTED_MODULE_4__["fromHSVA"])(__assign({}, _this.color.hsva, {
|
6837 | a: val
|
6838 | })));
|
6839 | }
|
6840 | }
|
6841 | });
|
6842 | },
|
6843 | genSliders: function genSliders() {
|
6844 | return this.$createElement('div', {
|
6845 | staticClass: 'v-color-picker__sliders'
|
6846 | }, [this.genHue(), !this.hideAlpha && this.genAlpha()]);
|
6847 | },
|
6848 | genDot: function genDot() {
|
6849 | return this.$createElement('div', {
|
6850 | staticClass: 'v-color-picker__dot'
|
6851 | }, [this.$createElement('div', {
|
6852 | style: {
|
6853 | background: Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_2__["RGBAtoCSS"])(this.color.rgba)
|
6854 | }
|
6855 | })]);
|
6856 | },
|
6857 | genHue: function genHue() {
|
6858 | var _this = this;
|
6859 |
|
6860 | return this.genTrack({
|
6861 | staticClass: 'v-color-picker__hue',
|
6862 | props: {
|
6863 | thumbColor: 'grey lighten-2',
|
6864 | hideDetails: true,
|
6865 | value: this.color.hue,
|
6866 | step: 0,
|
6867 | min: 0,
|
6868 | max: 360
|
6869 | },
|
6870 | on: {
|
6871 | input: function input(val) {
|
6872 | return _this.color.hue !== val && _this.$emit('update:color', Object(_util__WEBPACK_IMPORTED_MODULE_4__["fromHSVA"])(__assign({}, _this.color.hsva, {
|
6873 | h: val
|
6874 | })));
|
6875 | }
|
6876 | }
|
6877 | });
|
6878 | },
|
6879 | genTrack: function genTrack(options) {
|
6880 | return this.$createElement(_VSlider_VSlider__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({
|
6881 | class: 'v-color-picker__track'
|
6882 | }, options, {
|
6883 | props: __assign({
|
6884 | disabled: this.disabled
|
6885 | }, options.props)
|
6886 | }));
|
6887 | }
|
6888 | },
|
6889 | render: function render(h) {
|
6890 | return h('div', {
|
6891 | staticClass: 'v-color-picker__preview',
|
6892 | class: {
|
6893 | 'v-color-picker__preview--hide-alpha': this.hideAlpha
|
6894 | }
|
6895 | }, [this.genDot(), this.genSliders()]);
|
6896 | }
|
6897 | }));
|
6898 |
|
6899 | }),
|
6900 |
|
6901 | "./src/components/VColorPicker/VColorPickerSwatches.sass":
|
6902 |
|
6903 |
|
6904 |
|
6905 |
|
6906 | (function(module, exports, __webpack_require__) {
|
6907 |
|
6908 |
|
6909 |
|
6910 | }),
|
6911 |
|
6912 | "./src/components/VColorPicker/VColorPickerSwatches.ts":
|
6913 |
|
6914 |
|
6915 |
|
6916 |
|
6917 | (function(module, __webpack_exports__, __webpack_require__) {
|
6918 |
|
6919 | "use strict";
|
6920 | __webpack_require__.r(__webpack_exports__);
|
6921 | var _VColorPickerSwatches_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VColorPicker/VColorPickerSwatches.sass");
|
6922 | var _VColorPickerSwatches_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VColorPickerSwatches_sass__WEBPACK_IMPORTED_MODULE_0__);
|
6923 | var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
6924 | var _util_colors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/colors.ts");
|
6925 | var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VColorPicker/util/index.ts");
|
6926 | var _util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/helpers.ts");
|
6927 | var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/util/mixins.ts");
|
6928 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
6929 | var _util_colorUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/util/colorUtils.ts");
|
6930 |
|
6931 |
|
6932 |
|
6933 |
|
6934 |
|
6935 |
|
6936 |
|
6937 |
|
6938 |
|
6939 |
|
6940 |
|
6941 |
|
6942 | function parseDefaultColors(colors) {
|
6943 | return Object.keys(colors).map(function (key) {
|
6944 | var color = colors[key];
|
6945 | return color.base ? [color.base, color.darken4, color.darken3, color.darken2, color.darken1, color.lighten1, color.lighten2, color.lighten3, color.lighten4, color.lighten5] : [color.black, color.white, color.transparent];
|
6946 | });
|
6947 | }
|
6948 |
|
6949 | var white = Object(_util__WEBPACK_IMPORTED_MODULE_3__["fromHex"])('#FFFFFF').rgba;
|
6950 | var black = Object(_util__WEBPACK_IMPORTED_MODULE_3__["fromHex"])('#000000').rgba;
|
6951 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(_mixins_themeable__WEBPACK_IMPORTED_MODULE_6__["default"]).extend({
|
6952 | name: 'v-color-picker-swatches',
|
6953 | props: {
|
6954 | swatches: {
|
6955 | type: Array,
|
6956 | default: function _default() {
|
6957 | return parseDefaultColors(_util_colors__WEBPACK_IMPORTED_MODULE_2__["default"]);
|
6958 | }
|
6959 | },
|
6960 | color: Object,
|
6961 | maxWidth: [Number, String],
|
6962 | maxHeight: [Number, String]
|
6963 | },
|
6964 | methods: {
|
6965 | genColor: function genColor(color) {
|
6966 | var _this = this;
|
6967 |
|
6968 | var content = this.$createElement('div', {
|
6969 | style: {
|
6970 | background: color
|
6971 | }
|
6972 | }, [Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["deepEqual"])(this.color, Object(_util__WEBPACK_IMPORTED_MODULE_3__["parseColor"])(color, null)) && this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
6973 | props: {
|
6974 | small: true,
|
6975 | dark: Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_7__["contrastRatio"])(this.color.rgba, white) > 2 && this.color.alpha > 0.5,
|
6976 | light: Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_7__["contrastRatio"])(this.color.rgba, black) > 2 && this.color.alpha > 0.5
|
6977 | }
|
6978 | }, '$success')]);
|
6979 | return this.$createElement('div', {
|
6980 | staticClass: 'v-color-picker__color',
|
6981 | on: {
|
6982 |
|
6983 | click: function click() {
|
6984 | return _this.$emit('update:color', Object(_util__WEBPACK_IMPORTED_MODULE_3__["fromHex"])(color === 'transparent' ? '#00000000' : color));
|
6985 | }
|
6986 | }
|
6987 | }, [content]);
|
6988 | },
|
6989 | genSwatches: function genSwatches() {
|
6990 | var _this = this;
|
6991 |
|
6992 | return this.swatches.map(function (swatch) {
|
6993 | var colors = swatch.map(_this.genColor);
|
6994 | return _this.$createElement('div', {
|
6995 | staticClass: 'v-color-picker__swatch'
|
6996 | }, colors);
|
6997 | });
|
6998 | }
|
6999 | },
|
7000 | render: function render(h) {
|
7001 | return h('div', {
|
7002 | staticClass: 'v-color-picker__swatches',
|
7003 | style: {
|
7004 | maxWidth: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["convertToUnit"])(this.maxWidth),
|
7005 | maxHeight: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["convertToUnit"])(this.maxHeight)
|
7006 | }
|
7007 | }, [this.$createElement('div', this.genSwatches())]);
|
7008 | }
|
7009 | }));
|
7010 |
|
7011 | }),
|
7012 |
|
7013 | "./src/components/VColorPicker/index.ts":
|
7014 |
|
7015 |
|
7016 |
|
7017 |
|
7018 | (function(module, __webpack_exports__, __webpack_require__) {
|
7019 |
|
7020 | "use strict";
|
7021 | __webpack_require__.r(__webpack_exports__);
|
7022 | var _VColorPicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VColorPicker/VColorPicker.ts");
|
7023 | __webpack_require__.d(__webpack_exports__, "VColorPicker", function() { return _VColorPicker__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
7024 |
|
7025 | var _VColorPickerSwatches__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VColorPicker/VColorPickerSwatches.ts");
|
7026 | __webpack_require__.d(__webpack_exports__, "VColorPickerSwatches", function() { return _VColorPickerSwatches__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
7027 |
|
7028 | var _VColorPickerCanvas__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VColorPicker/VColorPickerCanvas.ts");
|
7029 | __webpack_require__.d(__webpack_exports__, "VColorPickerCanvas", function() { return _VColorPickerCanvas__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
7030 |
|
7031 |
|
7032 |
|
7033 |
|
7034 |
|
7035 | __webpack_exports__["default"] = (_VColorPicker__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
7036 |
|
7037 | }),
|
7038 |
|
7039 | "./src/components/VColorPicker/util/index.ts":
|
7040 |
|
7041 |
|
7042 |
|
7043 |
|
7044 | (function(module, __webpack_exports__, __webpack_require__) {
|
7045 |
|
7046 | "use strict";
|
7047 | __webpack_require__.r(__webpack_exports__);
|
7048 | __webpack_require__.d(__webpack_exports__, "fromHSVA", function() { return fromHSVA; });
|
7049 | __webpack_require__.d(__webpack_exports__, "fromHSLA", function() { return fromHSLA; });
|
7050 | __webpack_require__.d(__webpack_exports__, "fromRGBA", function() { return fromRGBA; });
|
7051 | __webpack_require__.d(__webpack_exports__, "fromHexa", function() { return fromHexa; });
|
7052 | __webpack_require__.d(__webpack_exports__, "fromHex", function() { return fromHex; });
|
7053 | __webpack_require__.d(__webpack_exports__, "parseColor", function() { return parseColor; });
|
7054 | __webpack_require__.d(__webpack_exports__, "extractColor", function() { return extractColor; });
|
7055 | __webpack_require__.d(__webpack_exports__, "hasAlpha", function() { return hasAlpha; });
|
7056 | var _util_colorUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/colorUtils.ts");
|
7057 | 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); }
|
7058 |
|
7059 | var __assign = undefined && undefined.__assign || function () {
|
7060 | __assign = Object.assign || function (t) {
|
7061 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
7062 | s = arguments[i];
|
7063 |
|
7064 | for (var p in s) {
|
7065 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
7066 | }
|
7067 | }
|
7068 |
|
7069 | return t;
|
7070 | };
|
7071 |
|
7072 | return __assign.apply(this, arguments);
|
7073 | };
|
7074 |
|
7075 |
|
7076 |
|
7077 | function fromHSVA(hsva) {
|
7078 | hsva = __assign({}, hsva);
|
7079 | var hexa = Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["HSVAtoHex"])(hsva);
|
7080 | var hsla = Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["HSVAtoHSLA"])(hsva);
|
7081 | var rgba = Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["HSVAtoRGBA"])(hsva);
|
7082 | return {
|
7083 | alpha: hsva.a,
|
7084 | hex: hexa.substr(0, 7),
|
7085 | hexa: hexa,
|
7086 | hsla: hsla,
|
7087 | hsva: hsva,
|
7088 | hue: hsva.h,
|
7089 | rgba: rgba
|
7090 | };
|
7091 | }
|
7092 | function fromHSLA(hsla) {
|
7093 | var hsva = Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["HSLAtoHSVA"])(hsla);
|
7094 | var hexa = Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["HSVAtoHex"])(hsva);
|
7095 | var rgba = Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["HSVAtoRGBA"])(hsva);
|
7096 | return {
|
7097 | alpha: hsva.a,
|
7098 | hex: hexa.substr(0, 7),
|
7099 | hexa: hexa,
|
7100 | hsla: hsla,
|
7101 | hsva: hsva,
|
7102 | hue: hsva.h,
|
7103 | rgba: rgba
|
7104 | };
|
7105 | }
|
7106 | function fromRGBA(rgba) {
|
7107 | var hsva = Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["RGBAtoHSVA"])(rgba);
|
7108 | var hexa = Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["RGBAtoHex"])(rgba);
|
7109 | var hsla = Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["HSVAtoHSLA"])(hsva);
|
7110 | return {
|
7111 | alpha: hsva.a,
|
7112 | hex: hexa.substr(0, 7),
|
7113 | hexa: hexa,
|
7114 | hsla: hsla,
|
7115 | hsva: hsva,
|
7116 | hue: hsva.h,
|
7117 | rgba: rgba
|
7118 | };
|
7119 | }
|
7120 | function fromHexa(hexa) {
|
7121 | var hsva = Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["HexToHSVA"])(hexa);
|
7122 | var hsla = Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["HSVAtoHSLA"])(hsva);
|
7123 | var rgba = Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["HSVAtoRGBA"])(hsva);
|
7124 | return {
|
7125 | alpha: hsva.a,
|
7126 | hex: hexa.substr(0, 7),
|
7127 | hexa: hexa,
|
7128 | hsla: hsla,
|
7129 | hsva: hsva,
|
7130 | hue: hsva.h,
|
7131 | rgba: rgba
|
7132 | };
|
7133 | }
|
7134 | function fromHex(hex) {
|
7135 | return fromHexa(Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["parseHex"])(hex));
|
7136 | }
|
7137 |
|
7138 | function has(obj, key) {
|
7139 | return key.every(function (k) {
|
7140 | return obj.hasOwnProperty(k);
|
7141 | });
|
7142 | }
|
7143 |
|
7144 | function parseColor(color, oldColor) {
|
7145 | if (!color) return fromRGBA({
|
7146 | r: 255,
|
7147 | g: 0,
|
7148 | b: 0,
|
7149 | a: 1
|
7150 | });
|
7151 |
|
7152 | if (typeof color === 'string') {
|
7153 | if (color === 'transparent') return fromHexa('#00000000');
|
7154 | var hex = Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["parseHex"])(color);
|
7155 | if (oldColor && hex === oldColor.hexa) return oldColor;else return fromHexa(hex);
|
7156 | }
|
7157 |
|
7158 | if (_typeof(color) === 'object') {
|
7159 | if (color.hasOwnProperty('alpha')) return color;
|
7160 | var a = color.hasOwnProperty('a') ? parseFloat(color.a) : 1;
|
7161 |
|
7162 | if (has(color, ['r', 'g', 'b'])) {
|
7163 | if (oldColor && color === oldColor.rgba) return oldColor;else return fromRGBA(__assign({}, color, {
|
7164 | a: a
|
7165 | }));
|
7166 | } else if (has(color, ['h', 's', 'l'])) {
|
7167 | if (oldColor && color === oldColor.hsla) return oldColor;else return fromHSLA(__assign({}, color, {
|
7168 | a: a
|
7169 | }));
|
7170 | } else if (has(color, ['h', 's', 'v'])) {
|
7171 | if (oldColor && color === oldColor.hsva) return oldColor;else return fromHSVA(__assign({}, color, {
|
7172 | a: a
|
7173 | }));
|
7174 | }
|
7175 | }
|
7176 |
|
7177 | return fromRGBA({
|
7178 | r: 255,
|
7179 | g: 0,
|
7180 | b: 0,
|
7181 | a: 1
|
7182 | });
|
7183 | }
|
7184 | function extractColor(color, input) {
|
7185 | if (typeof input === 'string') {
|
7186 | return input.length === 7 ? color.hex : color.hexa;
|
7187 | }
|
7188 |
|
7189 | if (_typeof(input) === 'object') {
|
7190 | if (has(input, ['r', 'g', 'b'])) return color.rgba;else if (has(input, ['h', 's', 'l'])) return color.hsla;else if (has(input, ['h', 's', 'v'])) return color.hsva;
|
7191 | }
|
7192 |
|
7193 | return color;
|
7194 | }
|
7195 | function hasAlpha(color) {
|
7196 | if (!color) return false;
|
7197 |
|
7198 | if (typeof color === 'string') {
|
7199 | return color.length > 7;
|
7200 | }
|
7201 |
|
7202 | if (_typeof(color) === 'object') {
|
7203 | return has(color, ['a']);
|
7204 | }
|
7205 |
|
7206 | return false;
|
7207 | }
|
7208 |
|
7209 | }),
|
7210 |
|
7211 | "./src/components/VCombobox/VCombobox.ts":
|
7212 |
|
7213 |
|
7214 |
|
7215 |
|
7216 | (function(module, __webpack_exports__, __webpack_require__) {
|
7217 |
|
7218 | "use strict";
|
7219 | __webpack_require__.r(__webpack_exports__);
|
7220 | var _VAutocomplete_VAutocomplete_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VAutocomplete/VAutocomplete.sass");
|
7221 | var _VAutocomplete_VAutocomplete_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VAutocomplete_VAutocomplete_sass__WEBPACK_IMPORTED_MODULE_0__);
|
7222 | var _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VSelect/VSelect.ts");
|
7223 | var _VAutocomplete_VAutocomplete__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VAutocomplete/VAutocomplete.ts");
|
7224 | var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/helpers.ts");
|
7225 | var __assign = undefined && undefined.__assign || function () {
|
7226 | __assign = Object.assign || function (t) {
|
7227 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
7228 | s = arguments[i];
|
7229 |
|
7230 | for (var p in s) {
|
7231 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
7232 | }
|
7233 | }
|
7234 |
|
7235 | return t;
|
7236 | };
|
7237 |
|
7238 | return __assign.apply(this, arguments);
|
7239 | };
|
7240 |
|
7241 |
|
7242 |
|
7243 |
|
7244 |
|
7245 |
|
7246 |
|
7247 |
|
7248 |
|
7249 |
|
7250 | __webpack_exports__["default"] = (_VAutocomplete_VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["default"].extend({
|
7251 | name: 'v-combobox',
|
7252 | props: {
|
7253 | delimiters: {
|
7254 | type: Array,
|
7255 | default: function _default() {
|
7256 | return [];
|
7257 | }
|
7258 | },
|
7259 | returnObject: {
|
7260 | type: Boolean,
|
7261 | default: true
|
7262 | }
|
7263 | },
|
7264 | data: function data() {
|
7265 | return {
|
7266 | editingIndex: -1
|
7267 | };
|
7268 | },
|
7269 | computed: {
|
7270 | counterValue: function counterValue() {
|
7271 | return this.multiple ? this.selectedItems.length : (this.internalSearch || '').toString().length;
|
7272 | },
|
7273 | hasSlot: function hasSlot() {
|
7274 | return _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.hasSlot.call(this) || this.multiple;
|
7275 | },
|
7276 | isAnyValueAllowed: function isAnyValueAllowed() {
|
7277 | return true;
|
7278 | },
|
7279 | menuCanShow: function menuCanShow() {
|
7280 | if (!this.isFocused) return false;
|
7281 | return this.hasDisplayedItems || !!this.$slots['no-data'] && !this.hideNoData;
|
7282 | }
|
7283 | },
|
7284 | methods: {
|
7285 | onInternalSearchChanged: function onInternalSearchChanged(val) {
|
7286 | if (val && this.multiple && this.delimiters.length) {
|
7287 | var delimiter = this.delimiters.find(function (d) {
|
7288 | return val.endsWith(d);
|
7289 | });
|
7290 |
|
7291 | if (delimiter != null) {
|
7292 | this.internalSearch = val.slice(0, val.length - delimiter.length);
|
7293 | this.updateTags();
|
7294 | }
|
7295 | }
|
7296 |
|
7297 | this.updateMenuDimensions();
|
7298 | },
|
7299 | genInput: function genInput() {
|
7300 | var input = _VAutocomplete_VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.genInput.call(this);
|
7301 | input.data.on.paste = this.onPaste;
|
7302 | return input;
|
7303 | },
|
7304 | genChipSelection: function genChipSelection(item, index) {
|
7305 | var _this = this;
|
7306 |
|
7307 | var chip = _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genChipSelection.call(this, item, index);
|
7308 |
|
7309 | if (this.multiple) {
|
7310 | chip.componentOptions.listeners = __assign({}, chip.componentOptions.listeners, {
|
7311 | dblclick: function dblclick() {
|
7312 | _this.editingIndex = index;
|
7313 | _this.internalSearch = _this.getText(item);
|
7314 | _this.selectedIndex = -1;
|
7315 | }
|
7316 | });
|
7317 | }
|
7318 |
|
7319 | return chip;
|
7320 | },
|
7321 | onChipInput: function onChipInput(item) {
|
7322 | _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.onChipInput.call(this, item);
|
7323 | this.editingIndex = -1;
|
7324 | },
|
7325 |
|
7326 |
|
7327 | onEnterDown: function onEnterDown(e) {
|
7328 | var _this = this;
|
7329 |
|
7330 | e.preventDefault();
|
7331 | this.$nextTick(function () {
|
7332 |
|
7333 | if (_this.getMenuIndex() > -1) return;
|
7334 |
|
7335 | _this.updateSelf();
|
7336 | });
|
7337 | },
|
7338 | onFilteredItemsChanged: function onFilteredItemsChanged(val, oldVal) {
|
7339 | if (!this.autoSelectFirst) return;
|
7340 | _VAutocomplete_VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.onFilteredItemsChanged.call(this, val, oldVal);
|
7341 | },
|
7342 | onKeyDown: function onKeyDown(e) {
|
7343 | var keyCode = e.keyCode;
|
7344 | _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.onKeyDown.call(this, e);
|
7345 |
|
7346 |
|
7347 | if (this.multiple && keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].left && this.$refs.input.selectionStart === 0) {
|
7348 | this.updateSelf();
|
7349 | } else if (keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].enter) {
|
7350 | this.onEnterDown(e);
|
7351 | }
|
7352 |
|
7353 |
|
7354 |
|
7355 |
|
7356 |
|
7357 | this.changeSelectedIndex(keyCode);
|
7358 | },
|
7359 | onTabDown: function onTabDown(e) {
|
7360 |
|
7361 |
|
7362 |
|
7363 | if (this.multiple && this.internalSearch && this.getMenuIndex() === -1) {
|
7364 | e.preventDefault();
|
7365 | e.stopPropagation();
|
7366 | return this.updateTags();
|
7367 | }
|
7368 |
|
7369 | _VAutocomplete_VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.onTabDown.call(this, e);
|
7370 | },
|
7371 | selectItem: function selectItem(item) {
|
7372 |
|
7373 | if (this.editingIndex > -1) {
|
7374 | this.updateEditing();
|
7375 | } else {
|
7376 | _VAutocomplete_VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.selectItem.call(this, item);
|
7377 | }
|
7378 | },
|
7379 | setSelectedItems: function setSelectedItems() {
|
7380 | if (this.internalValue == null || this.internalValue === '') {
|
7381 | this.selectedItems = [];
|
7382 | } else {
|
7383 | this.selectedItems = this.multiple ? this.internalValue : [this.internalValue];
|
7384 | }
|
7385 | },
|
7386 | setValue: function setValue(value) {
|
7387 | _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.setValue.call(this, value != null ? value : this.internalSearch);
|
7388 | },
|
7389 | updateEditing: function updateEditing() {
|
7390 | var value = this.internalValue.slice();
|
7391 | value[this.editingIndex] = this.internalSearch;
|
7392 | this.setValue(value);
|
7393 | this.editingIndex = -1;
|
7394 | },
|
7395 | updateCombobox: function updateCombobox() {
|
7396 | var isUsingSlot = Boolean(this.$scopedSlots.selection) || this.hasChips;
|
7397 |
|
7398 |
|
7399 | if (isUsingSlot && !this.searchIsDirty) return;
|
7400 |
|
7401 |
|
7402 | if (this.internalSearch !== this.getText(this.internalValue)) this.setValue();
|
7403 |
|
7404 |
|
7405 | if (isUsingSlot) this.internalSearch = undefined;
|
7406 | },
|
7407 | updateSelf: function updateSelf() {
|
7408 | this.multiple ? this.updateTags() : this.updateCombobox();
|
7409 | },
|
7410 | updateTags: function updateTags() {
|
7411 | var menuIndex = this.getMenuIndex();
|
7412 |
|
7413 |
|
7414 |
|
7415 | if (menuIndex < 0 && !this.searchIsDirty) return;
|
7416 |
|
7417 | if (this.editingIndex > -1) {
|
7418 | return this.updateEditing();
|
7419 | }
|
7420 |
|
7421 | var index = this.selectedItems.indexOf(this.internalSearch);
|
7422 |
|
7423 |
|
7424 |
|
7425 | if (index > -1) {
|
7426 | var internalValue = this.internalValue.slice();
|
7427 | internalValue.splice(index, 1);
|
7428 | this.setValue(internalValue);
|
7429 | }
|
7430 |
|
7431 |
|
7432 |
|
7433 |
|
7434 | if (menuIndex > -1) return this.internalSearch = null;
|
7435 | this.selectItem(this.internalSearch);
|
7436 | this.internalSearch = null;
|
7437 | },
|
7438 | onPaste: function onPaste(event) {
|
7439 | if (!this.multiple || this.searchIsDirty) return;
|
7440 | var pastedItemText = event.clipboardData.getData('text/vnd.vuetify.autocomplete.item+plain');
|
7441 |
|
7442 | if (pastedItemText && this.findExistingIndex(pastedItemText) === -1) {
|
7443 | event.preventDefault();
|
7444 | _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.selectItem.call(this, pastedItemText);
|
7445 | }
|
7446 | }
|
7447 | }
|
7448 | }));
|
7449 |
|
7450 | }),
|
7451 |
|
7452 | "./src/components/VCombobox/index.ts":
|
7453 |
|
7454 |
|
7455 |
|
7456 |
|
7457 | (function(module, __webpack_exports__, __webpack_require__) {
|
7458 |
|
7459 | "use strict";
|
7460 | __webpack_require__.r(__webpack_exports__);
|
7461 | var _VCombobox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCombobox/VCombobox.ts");
|
7462 | __webpack_require__.d(__webpack_exports__, "VCombobox", function() { return _VCombobox__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
7463 |
|
7464 |
|
7465 |
|
7466 | __webpack_exports__["default"] = (_VCombobox__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
7467 |
|
7468 | }),
|
7469 |
|
7470 | "./src/components/VContent/VContent.sass":
|
7471 |
|
7472 |
|
7473 |
|
7474 |
|
7475 | (function(module, exports, __webpack_require__) {
|
7476 |
|
7477 |
|
7478 |
|
7479 | }),
|
7480 |
|
7481 | "./src/components/VContent/VContent.ts":
|
7482 |
|
7483 |
|
7484 |
|
7485 |
|
7486 | (function(module, __webpack_exports__, __webpack_require__) {
|
7487 |
|
7488 | "use strict";
|
7489 | __webpack_require__.r(__webpack_exports__);
|
7490 | var _VContent_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VContent/VContent.sass");
|
7491 | var _VContent_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VContent_sass__WEBPACK_IMPORTED_MODULE_0__);
|
7492 | var _mixins_ssr_bootable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/ssr-bootable/index.ts");
|
7493 |
|
7494 |
|
7495 |
|
7496 |
|
7497 |
|
7498 |
|
7499 | __webpack_exports__["default"] = (_mixins_ssr_bootable__WEBPACK_IMPORTED_MODULE_1__["default"].extend({
|
7500 | name: 'v-content',
|
7501 | props: {
|
7502 | tag: {
|
7503 | type: String,
|
7504 | default: 'main'
|
7505 | }
|
7506 | },
|
7507 | computed: {
|
7508 | styles: function styles() {
|
7509 | var _a = this.$vuetify.application,
|
7510 | bar = _a.bar,
|
7511 | top = _a.top,
|
7512 | right = _a.right,
|
7513 | footer = _a.footer,
|
7514 | insetFooter = _a.insetFooter,
|
7515 | bottom = _a.bottom,
|
7516 | left = _a.left;
|
7517 | return {
|
7518 | paddingTop: top + bar + "px",
|
7519 | paddingRight: right + "px",
|
7520 | paddingBottom: footer + insetFooter + bottom + "px",
|
7521 | paddingLeft: left + "px"
|
7522 | };
|
7523 | }
|
7524 | },
|
7525 | render: function render(h) {
|
7526 | var data = {
|
7527 | staticClass: 'v-content',
|
7528 | style: this.styles,
|
7529 | ref: 'content'
|
7530 | };
|
7531 | return h(this.tag, data, [h('div', {
|
7532 | staticClass: 'v-content__wrap'
|
7533 | }, this.$slots.default)]);
|
7534 | }
|
7535 | }));
|
7536 |
|
7537 | }),
|
7538 |
|
7539 | "./src/components/VContent/index.ts":
|
7540 |
|
7541 |
|
7542 |
|
7543 |
|
7544 | (function(module, __webpack_exports__, __webpack_require__) {
|
7545 |
|
7546 | "use strict";
|
7547 | __webpack_require__.r(__webpack_exports__);
|
7548 | var _VContent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VContent/VContent.ts");
|
7549 | __webpack_require__.d(__webpack_exports__, "VContent", function() { return _VContent__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
7550 |
|
7551 |
|
7552 |
|
7553 | __webpack_exports__["default"] = (_VContent__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
7554 |
|
7555 | }),
|
7556 |
|
7557 | "./src/components/VCounter/VCounter.sass":
|
7558 |
|
7559 |
|
7560 |
|
7561 |
|
7562 | (function(module, exports, __webpack_require__) {
|
7563 |
|
7564 |
|
7565 |
|
7566 | }),
|
7567 |
|
7568 | "./src/components/VCounter/VCounter.ts":
|
7569 |
|
7570 |
|
7571 |
|
7572 |
|
7573 | (function(module, __webpack_exports__, __webpack_require__) {
|
7574 |
|
7575 | "use strict";
|
7576 | __webpack_require__.r(__webpack_exports__);
|
7577 | var _VCounter_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCounter/VCounter.sass");
|
7578 | var _VCounter_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VCounter_sass__WEBPACK_IMPORTED_MODULE_0__);
|
7579 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
7580 | var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/mixins.ts");
|
7581 | var __assign = undefined && undefined.__assign || function () {
|
7582 | __assign = Object.assign || function (t) {
|
7583 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
7584 | s = arguments[i];
|
7585 |
|
7586 | for (var p in s) {
|
7587 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
7588 | }
|
7589 | }
|
7590 |
|
7591 | return t;
|
7592 | };
|
7593 |
|
7594 | return __assign.apply(this, arguments);
|
7595 | };
|
7596 |
|
7597 |
|
7598 |
|
7599 |
|
7600 |
|
7601 |
|
7602 |
|
7603 |
|
7604 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_mixins_themeable__WEBPACK_IMPORTED_MODULE_1__["default"]).extend({
|
7605 | name: 'v-counter',
|
7606 | functional: true,
|
7607 | props: {
|
7608 | value: {
|
7609 | type: [Number, String],
|
7610 | default: ''
|
7611 | },
|
7612 | max: [Number, String]
|
7613 | },
|
7614 | render: function render(h, ctx) {
|
7615 | var props = ctx.props;
|
7616 | var max = parseInt(props.max, 10);
|
7617 | var value = parseInt(props.value, 10);
|
7618 | var content = max ? value + " / " + max : String(props.value);
|
7619 | var isGreater = max && value > max;
|
7620 | return h('div', {
|
7621 | staticClass: 'v-counter',
|
7622 | class: __assign({
|
7623 | 'error--text': isGreater
|
7624 | }, Object(_mixins_themeable__WEBPACK_IMPORTED_MODULE_1__["functionalThemeClasses"])(ctx))
|
7625 | }, content);
|
7626 | }
|
7627 | }));
|
7628 |
|
7629 | }),
|
7630 |
|
7631 | "./src/components/VCounter/index.ts":
|
7632 |
|
7633 |
|
7634 |
|
7635 |
|
7636 | (function(module, __webpack_exports__, __webpack_require__) {
|
7637 |
|
7638 | "use strict";
|
7639 | __webpack_require__.r(__webpack_exports__);
|
7640 | var _VCounter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCounter/VCounter.ts");
|
7641 | __webpack_require__.d(__webpack_exports__, "VCounter", function() { return _VCounter__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
7642 |
|
7643 |
|
7644 |
|
7645 | __webpack_exports__["default"] = (_VCounter__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
7646 |
|
7647 | }),
|
7648 |
|
7649 | "./src/components/VData/VData.ts":
|
7650 |
|
7651 |
|
7652 |
|
7653 |
|
7654 | (function(module, __webpack_exports__, __webpack_require__) {
|
7655 |
|
7656 | "use strict";
|
7657 | __webpack_require__.r(__webpack_exports__);
|
7658 | var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/helpers.ts");
|
7659 | var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "vue");
|
7660 | var vue__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
|
7661 | var __assign = undefined && undefined.__assign || function () {
|
7662 | __assign = Object.assign || function (t) {
|
7663 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
7664 | s = arguments[i];
|
7665 |
|
7666 | for (var p in s) {
|
7667 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
7668 | }
|
7669 | }
|
7670 |
|
7671 | return t;
|
7672 | };
|
7673 |
|
7674 | return __assign.apply(this, arguments);
|
7675 | };
|
7676 |
|
7677 |
|
7678 |
|
7679 |
|
7680 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_1___default.a.extend({
|
7681 | name: 'v-data',
|
7682 | inheritAttrs: false,
|
7683 | props: {
|
7684 | items: {
|
7685 | type: Array,
|
7686 | default: function _default() {
|
7687 | return [];
|
7688 | }
|
7689 | },
|
7690 | options: {
|
7691 | type: Object,
|
7692 | default: function _default() {
|
7693 | return {};
|
7694 | }
|
7695 | },
|
7696 | sortBy: {
|
7697 | type: [String, Array],
|
7698 | default: function _default() {
|
7699 | return [];
|
7700 | }
|
7701 | },
|
7702 | sortDesc: {
|
7703 | type: [Boolean, Array],
|
7704 | default: function _default() {
|
7705 | return [];
|
7706 | }
|
7707 | },
|
7708 | customSort: {
|
7709 | type: Function,
|
7710 | default: _util_helpers__WEBPACK_IMPORTED_MODULE_0__["sortItems"]
|
7711 | },
|
7712 | mustSort: Boolean,
|
7713 | multiSort: Boolean,
|
7714 | page: {
|
7715 | type: Number,
|
7716 | default: 1
|
7717 | },
|
7718 | itemsPerPage: {
|
7719 | type: Number,
|
7720 | default: 10
|
7721 | },
|
7722 | groupBy: {
|
7723 | type: [String, Array],
|
7724 | default: function _default() {
|
7725 | return [];
|
7726 | }
|
7727 | },
|
7728 | groupDesc: {
|
7729 | type: [Boolean, Array],
|
7730 | default: function _default() {
|
7731 | return [];
|
7732 | }
|
7733 | },
|
7734 | locale: {
|
7735 | type: String,
|
7736 | default: 'en-US'
|
7737 | },
|
7738 | disableSort: Boolean,
|
7739 | disablePagination: Boolean,
|
7740 | disableFiltering: Boolean,
|
7741 | search: String,
|
7742 | customFilter: {
|
7743 | type: Function,
|
7744 | default: _util_helpers__WEBPACK_IMPORTED_MODULE_0__["searchItems"]
|
7745 | },
|
7746 | serverItemsLength: {
|
7747 | type: Number,
|
7748 | default: -1
|
7749 | }
|
7750 | },
|
7751 | data: function data() {
|
7752 | var internalOptions = {
|
7753 | page: this.page,
|
7754 | itemsPerPage: this.itemsPerPage,
|
7755 | sortBy: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["wrapInArray"])(this.sortBy),
|
7756 | sortDesc: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["wrapInArray"])(this.sortDesc),
|
7757 | groupBy: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["wrapInArray"])(this.groupBy),
|
7758 | groupDesc: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["wrapInArray"])(this.groupDesc),
|
7759 | mustSort: this.mustSort,
|
7760 | multiSort: this.multiSort
|
7761 | };
|
7762 |
|
7763 | if (this.options) {
|
7764 | internalOptions = Object.assign(internalOptions, this.options);
|
7765 | }
|
7766 |
|
7767 | return {
|
7768 | internalOptions: internalOptions
|
7769 | };
|
7770 | },
|
7771 | computed: {
|
7772 | itemsLength: function itemsLength() {
|
7773 | return this.serverItemsLength >= 0 ? this.serverItemsLength : this.filteredItems.length;
|
7774 | },
|
7775 | pageCount: function pageCount() {
|
7776 | return this.internalOptions.itemsPerPage === -1 ? 1 : Math.ceil(this.itemsLength / this.internalOptions.itemsPerPage);
|
7777 | },
|
7778 | pageStart: function pageStart() {
|
7779 | if (this.internalOptions.itemsPerPage === -1 || !this.items.length) return 0;
|
7780 | return (this.internalOptions.page - 1) * this.internalOptions.itemsPerPage;
|
7781 | },
|
7782 | pageStop: function pageStop() {
|
7783 | if (this.internalOptions.itemsPerPage === -1) return this.itemsLength;
|
7784 | if (!this.items.length) return 0;
|
7785 | return Math.min(this.itemsLength, this.internalOptions.page * this.internalOptions.itemsPerPage);
|
7786 | },
|
7787 | isGrouped: function isGrouped() {
|
7788 | return !!this.internalOptions.groupBy.length;
|
7789 | },
|
7790 | pagination: function pagination() {
|
7791 | return {
|
7792 | page: this.internalOptions.page,
|
7793 | itemsPerPage: this.internalOptions.itemsPerPage,
|
7794 | pageStart: this.pageStart,
|
7795 | pageStop: this.pageStop,
|
7796 | pageCount: this.pageCount,
|
7797 | itemsLength: this.itemsLength
|
7798 | };
|
7799 | },
|
7800 | filteredItems: function filteredItems() {
|
7801 | var items = this.items.slice();
|
7802 |
|
7803 | if (!this.disableFiltering && this.serverItemsLength <= 0) {
|
7804 | items = this.customFilter(items, this.search);
|
7805 | }
|
7806 |
|
7807 | return items;
|
7808 | },
|
7809 | computedItems: function computedItems() {
|
7810 | var items = this.filteredItems.slice();
|
7811 |
|
7812 | if (!this.disableSort && this.serverItemsLength <= 0) {
|
7813 | items = this.sortItems(items);
|
7814 | }
|
7815 |
|
7816 | if (!this.disablePagination && this.serverItemsLength <= 0) {
|
7817 | items = this.paginateItems(items);
|
7818 | }
|
7819 |
|
7820 | return items;
|
7821 | },
|
7822 | groupedItems: function groupedItems() {
|
7823 | return this.isGrouped ? Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["groupByProperty"])(this.computedItems, this.internalOptions.groupBy[0]) : null;
|
7824 | },
|
7825 | scopedProps: function scopedProps() {
|
7826 | var props = {
|
7827 | sort: this.sort,
|
7828 | sortArray: this.sortArray,
|
7829 | group: this.group,
|
7830 | items: this.computedItems,
|
7831 | options: this.internalOptions,
|
7832 | updateOptions: this.updateOptions,
|
7833 | pagination: this.pagination,
|
7834 | groupedItems: this.groupedItems,
|
7835 | originalItemsLength: this.items.length
|
7836 | };
|
7837 | return props;
|
7838 | },
|
7839 | computedOptions: function computedOptions() {
|
7840 | return __assign({}, this.options);
|
7841 | }
|
7842 | },
|
7843 | watch: {
|
7844 | computedOptions: {
|
7845 | handler: function handler(options, old) {
|
7846 | if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["deepEqual"])(options, old)) return;
|
7847 | this.updateOptions(options);
|
7848 | },
|
7849 | deep: true,
|
7850 | immediate: true
|
7851 | },
|
7852 | internalOptions: {
|
7853 | handler: function handler(options, old) {
|
7854 | if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["deepEqual"])(options, old)) return;
|
7855 | this.$emit('update:options', options);
|
7856 | this.$emit('pagination', this.pagination);
|
7857 | },
|
7858 | deep: true,
|
7859 | immediate: true
|
7860 | },
|
7861 | page: function page(_page) {
|
7862 | this.updateOptions({
|
7863 | page: _page
|
7864 | });
|
7865 | },
|
7866 | 'internalOptions.page': function internalOptionsPage(page) {
|
7867 | this.$emit('update:page', page);
|
7868 | },
|
7869 | itemsPerPage: function itemsPerPage(_itemsPerPage) {
|
7870 | this.updateOptions({
|
7871 | itemsPerPage: _itemsPerPage
|
7872 | });
|
7873 | },
|
7874 | 'internalOptions.itemsPerPage': {
|
7875 | handler: function handler(itemsPerPage) {
|
7876 | this.$emit('update:items-per-page', itemsPerPage);
|
7877 | },
|
7878 | immediate: true
|
7879 | },
|
7880 | sortBy: function sortBy(_sortBy) {
|
7881 | this.updateOptions({
|
7882 | sortBy: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["wrapInArray"])(_sortBy)
|
7883 | });
|
7884 | },
|
7885 | 'internalOptions.sortBy': function internalOptionsSortBy(sortBy, old) {
|
7886 | !Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["deepEqual"])(sortBy, old) && this.$emit('update:sort-by', Array.isArray(this.sortBy) ? sortBy : sortBy[0]);
|
7887 | },
|
7888 | sortDesc: function sortDesc(_sortDesc) {
|
7889 | this.updateOptions({
|
7890 | sortDesc: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["wrapInArray"])(_sortDesc)
|
7891 | });
|
7892 | },
|
7893 | 'internalOptions.sortDesc': function internalOptionsSortDesc(sortDesc, old) {
|
7894 | !Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["deepEqual"])(sortDesc, old) && this.$emit('update:sort-desc', Array.isArray(this.sortDesc) ? sortDesc : sortDesc[0]);
|
7895 | },
|
7896 | groupBy: function groupBy(_groupBy) {
|
7897 | this.updateOptions({
|
7898 | groupBy: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["wrapInArray"])(_groupBy)
|
7899 | });
|
7900 | },
|
7901 | 'internalOptions.groupBy': function internalOptionsGroupBy(groupBy, old) {
|
7902 | !Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["deepEqual"])(groupBy, old) && this.$emit('update:group-by', Array.isArray(this.groupBy) ? groupBy : groupBy[0]);
|
7903 | },
|
7904 | groupDesc: function groupDesc(_groupDesc) {
|
7905 | this.updateOptions({
|
7906 | groupDesc: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["wrapInArray"])(_groupDesc)
|
7907 | });
|
7908 | },
|
7909 | 'internalOptions.groupDesc': function internalOptionsGroupDesc(groupDesc, old) {
|
7910 | !Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["deepEqual"])(groupDesc, old) && this.$emit('update:group-desc', Array.isArray(this.groupDesc) ? groupDesc : groupDesc[0]);
|
7911 | },
|
7912 | multiSort: function multiSort(_multiSort) {
|
7913 | this.updateOptions({
|
7914 | multiSort: _multiSort
|
7915 | });
|
7916 | },
|
7917 | 'internalOptions.multiSort': function internalOptionsMultiSort(multiSort) {
|
7918 | this.$emit('update:multi-sort', multiSort);
|
7919 | },
|
7920 | mustSort: function mustSort(_mustSort) {
|
7921 | this.updateOptions({
|
7922 | mustSort: _mustSort
|
7923 | });
|
7924 | },
|
7925 | 'internalOptions.mustSort': function internalOptionsMustSort(mustSort) {
|
7926 | this.$emit('update:must-sort', mustSort);
|
7927 | },
|
7928 | pageCount: {
|
7929 | handler: function handler(pageCount) {
|
7930 | this.$emit('page-count', pageCount);
|
7931 | },
|
7932 | immediate: true
|
7933 | },
|
7934 | computedItems: {
|
7935 | handler: function handler(computedItems) {
|
7936 | this.$emit('current-items', computedItems);
|
7937 | },
|
7938 | immediate: true
|
7939 | }
|
7940 | },
|
7941 | methods: {
|
7942 | toggle: function toggle(key, oldBy, oldDesc, page, mustSort, multiSort) {
|
7943 | var by = oldBy.slice();
|
7944 | var desc = oldDesc.slice();
|
7945 | var byIndex = by.findIndex(function (k) {
|
7946 | return k === key;
|
7947 | });
|
7948 |
|
7949 | if (byIndex < 0) {
|
7950 | if (!multiSort) {
|
7951 | by = [];
|
7952 | desc = [];
|
7953 | }
|
7954 |
|
7955 | by.push(key);
|
7956 | desc.push(false);
|
7957 | } else if (byIndex >= 0 && !desc[byIndex]) {
|
7958 | desc[byIndex] = true;
|
7959 | } else if (!mustSort) {
|
7960 | by.splice(byIndex, 1);
|
7961 | desc.splice(byIndex, 1);
|
7962 | } else {
|
7963 | desc[byIndex] = false;
|
7964 | }
|
7965 |
|
7966 |
|
7967 | if (!Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["deepEqual"])(by, oldBy) || !Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["deepEqual"])(desc, oldDesc)) {
|
7968 | page = 1;
|
7969 | }
|
7970 |
|
7971 | return {
|
7972 | by: by,
|
7973 | desc: desc,
|
7974 | page: page
|
7975 | };
|
7976 | },
|
7977 | group: function group(key) {
|
7978 | var _a = this.toggle(key, this.internalOptions.groupBy, this.internalOptions.groupDesc, this.internalOptions.page, true, false),
|
7979 | groupBy = _a.by,
|
7980 | groupDesc = _a.desc,
|
7981 | page = _a.page;
|
7982 |
|
7983 | this.updateOptions({
|
7984 | groupBy: groupBy,
|
7985 | groupDesc: groupDesc,
|
7986 | page: page
|
7987 | });
|
7988 | },
|
7989 | sort: function sort(key) {
|
7990 | if (Array.isArray(key)) return this.sortArray(key);
|
7991 |
|
7992 | var _a = this.toggle(key, this.internalOptions.sortBy, this.internalOptions.sortDesc, this.internalOptions.page, this.mustSort, this.multiSort),
|
7993 | sortBy = _a.by,
|
7994 | sortDesc = _a.desc,
|
7995 | page = _a.page;
|
7996 |
|
7997 | this.updateOptions({
|
7998 | sortBy: sortBy,
|
7999 | sortDesc: sortDesc,
|
8000 | page: page
|
8001 | });
|
8002 | },
|
8003 | sortArray: function sortArray(sortBy) {
|
8004 | var _this = this;
|
8005 |
|
8006 | var sortDesc = sortBy.map(function (s) {
|
8007 | var i = _this.internalOptions.sortBy.findIndex(function (k) {
|
8008 | return k === s;
|
8009 | });
|
8010 |
|
8011 | return i > -1 ? _this.internalOptions.sortDesc[i] : false;
|
8012 | });
|
8013 | this.updateOptions({
|
8014 | sortBy: sortBy,
|
8015 | sortDesc: sortDesc
|
8016 | });
|
8017 | },
|
8018 | updateOptions: function updateOptions(options) {
|
8019 | this.internalOptions = __assign({}, this.internalOptions, options, {
|
8020 | page: this.serverItemsLength < 0 ? Math.max(1, Math.min(options.page || this.internalOptions.page, this.pageCount)) : options.page || this.internalOptions.page
|
8021 | });
|
8022 | },
|
8023 | sortItems: function sortItems(items) {
|
8024 | var sortBy = this.internalOptions.groupBy.concat(this.internalOptions.sortBy);
|
8025 | var sortDesc = this.internalOptions.groupDesc.concat(this.internalOptions.sortDesc);
|
8026 | return this.customSort(items, sortBy, sortDesc, this.locale);
|
8027 | },
|
8028 | paginateItems: function paginateItems(items) {
|
8029 |
|
8030 |
|
8031 | if (items.length < this.pageStart) this.internalOptions.page = 1;
|
8032 | return items.slice(this.pageStart, this.pageStop);
|
8033 | }
|
8034 | },
|
8035 | render: function render() {
|
8036 | return this.$scopedSlots.default && this.$scopedSlots.default(this.scopedProps);
|
8037 | }
|
8038 | }));
|
8039 |
|
8040 | }),
|
8041 |
|
8042 | "./src/components/VData/index.ts":
|
8043 |
|
8044 |
|
8045 |
|
8046 |
|
8047 | (function(module, __webpack_exports__, __webpack_require__) {
|
8048 |
|
8049 | "use strict";
|
8050 | __webpack_require__.r(__webpack_exports__);
|
8051 | var _VData__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VData/VData.ts");
|
8052 | __webpack_require__.d(__webpack_exports__, "VData", function() { return _VData__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
8053 |
|
8054 |
|
8055 |
|
8056 | __webpack_exports__["default"] = (_VData__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
8057 |
|
8058 | }),
|
8059 |
|
8060 | "./src/components/VDataIterator/VDataFooter.sass":
|
8061 |
|
8062 |
|
8063 |
|
8064 |
|
8065 | (function(module, exports, __webpack_require__) {
|
8066 |
|
8067 |
|
8068 |
|
8069 | }),
|
8070 |
|
8071 | "./src/components/VDataIterator/VDataFooter.ts":
|
8072 |
|
8073 |
|
8074 |
|
8075 |
|
8076 | (function(module, __webpack_exports__, __webpack_require__) {
|
8077 |
|
8078 | "use strict";
|
8079 | __webpack_require__.r(__webpack_exports__);
|
8080 | var _VDataFooter_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDataIterator/VDataFooter.sass");
|
8081 | var _VDataFooter_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VDataFooter_sass__WEBPACK_IMPORTED_MODULE_0__);
|
8082 | var _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VSelect/VSelect.ts");
|
8083 | var _VIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
8084 | var _VBtn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VBtn/index.ts");
|
8085 | var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "vue");
|
8086 | var vue__WEBPACK_IMPORTED_MODULE_4___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_4__);
|
8087 | 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); }
|
8088 |
|
8089 |
|
8090 |
|
8091 |
|
8092 |
|
8093 |
|
8094 |
|
8095 |
|
8096 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_4___default.a.extend({
|
8097 | name: 'v-data-footer',
|
8098 | props: {
|
8099 | options: {
|
8100 | type: Object,
|
8101 | required: true
|
8102 | },
|
8103 | pagination: {
|
8104 | type: Object,
|
8105 | required: true
|
8106 | },
|
8107 | itemsPerPageOptions: {
|
8108 | type: Array,
|
8109 | default: function _default() {
|
8110 | return [5, 10, 15, -1];
|
8111 | }
|
8112 | },
|
8113 | prevIcon: {
|
8114 | type: String,
|
8115 | default: '$prev'
|
8116 | },
|
8117 | nextIcon: {
|
8118 | type: String,
|
8119 | default: '$next'
|
8120 | },
|
8121 | firstIcon: {
|
8122 | type: String,
|
8123 | default: '$first'
|
8124 | },
|
8125 | lastIcon: {
|
8126 | type: String,
|
8127 | default: '$last'
|
8128 | },
|
8129 | itemsPerPageText: {
|
8130 | type: String,
|
8131 | default: '$vuetify.dataFooter.itemsPerPageText'
|
8132 | },
|
8133 | itemsPerPageAllText: {
|
8134 | type: String,
|
8135 | default: '$vuetify.dataFooter.itemsPerPageAll'
|
8136 | },
|
8137 | showFirstLastPage: Boolean,
|
8138 | showCurrentPage: Boolean,
|
8139 | disablePagination: Boolean,
|
8140 | disableItemsPerPage: Boolean,
|
8141 | pageText: {
|
8142 | type: String,
|
8143 | default: '$vuetify.dataFooter.pageText'
|
8144 | }
|
8145 | },
|
8146 | computed: {
|
8147 | disableNextPageIcon: function disableNextPageIcon() {
|
8148 | return this.options.itemsPerPage < 0 || this.options.page * this.options.itemsPerPage >= this.pagination.itemsLength || this.pagination.pageStop < 0;
|
8149 | },
|
8150 | computedItemsPerPageOptions: function computedItemsPerPageOptions() {
|
8151 | var _this = this;
|
8152 |
|
8153 | return this.itemsPerPageOptions.map(function (option) {
|
8154 | if (_typeof(option) === 'object') return option;else return _this.genItemsPerPageOption(option);
|
8155 | });
|
8156 | }
|
8157 | },
|
8158 | methods: {
|
8159 | updateOptions: function updateOptions(obj) {
|
8160 | this.$emit('update:options', Object.assign({}, this.options, obj));
|
8161 | },
|
8162 | onFirstPage: function onFirstPage() {
|
8163 | this.updateOptions({
|
8164 | page: 1
|
8165 | });
|
8166 | },
|
8167 | onPreviousPage: function onPreviousPage() {
|
8168 | this.updateOptions({
|
8169 | page: this.options.page - 1
|
8170 | });
|
8171 | },
|
8172 | onNextPage: function onNextPage() {
|
8173 | this.updateOptions({
|
8174 | page: this.options.page + 1
|
8175 | });
|
8176 | },
|
8177 | onLastPage: function onLastPage() {
|
8178 | this.updateOptions({
|
8179 | page: this.pagination.pageCount
|
8180 | });
|
8181 | },
|
8182 | onChangeItemsPerPage: function onChangeItemsPerPage(itemsPerPage) {
|
8183 | this.updateOptions({
|
8184 | itemsPerPage: itemsPerPage,
|
8185 | page: 1
|
8186 | });
|
8187 | },
|
8188 | genItemsPerPageOption: function genItemsPerPageOption(option) {
|
8189 | return {
|
8190 | text: option === -1 ? this.$vuetify.lang.t(this.itemsPerPageAllText) : String(option),
|
8191 | value: option
|
8192 | };
|
8193 | },
|
8194 | genItemsPerPageSelect: function genItemsPerPageSelect() {
|
8195 | var value = this.options.itemsPerPage;
|
8196 | var computedIPPO = this.computedItemsPerPageOptions;
|
8197 | if (computedIPPO.length <= 1) return null;
|
8198 | if (!computedIPPO.find(function (ippo) {
|
8199 | return ippo.value === value;
|
8200 | })) value = computedIPPO[0];
|
8201 | return this.$createElement('div', {
|
8202 | staticClass: 'v-data-footer__select'
|
8203 | }, [this.$vuetify.lang.t(this.itemsPerPageText), this.$createElement(_VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
8204 | attrs: {
|
8205 | 'aria-label': this.itemsPerPageText
|
8206 | },
|
8207 | props: {
|
8208 | disabled: this.disableItemsPerPage,
|
8209 | items: computedIPPO,
|
8210 | value: value,
|
8211 | hideDetails: true,
|
8212 | auto: true,
|
8213 | minWidth: '75px'
|
8214 | },
|
8215 | on: {
|
8216 | input: this.onChangeItemsPerPage
|
8217 | }
|
8218 | })]);
|
8219 | },
|
8220 | genPaginationInfo: function genPaginationInfo() {
|
8221 | var children = ['–'];
|
8222 |
|
8223 | if (this.pagination.itemsLength) {
|
8224 | var itemsLength = this.pagination.itemsLength;
|
8225 | var pageStart = this.pagination.pageStart + 1;
|
8226 | var pageStop = itemsLength < this.pagination.pageStop || this.pagination.pageStop < 0 ? itemsLength : this.pagination.pageStop;
|
8227 | children = this.$scopedSlots['page-text'] ? [this.$scopedSlots['page-text']({
|
8228 | pageStart: pageStart,
|
8229 | pageStop: pageStop,
|
8230 | itemsLength: itemsLength
|
8231 | })] : [this.$vuetify.lang.t(this.pageText, pageStart, pageStop, itemsLength)];
|
8232 | }
|
8233 |
|
8234 | return this.$createElement('div', {
|
8235 | class: 'v-data-footer__pagination'
|
8236 | }, children);
|
8237 | },
|
8238 | genIcon: function genIcon(click, disabled, label, icon) {
|
8239 | return this.$createElement(_VBtn__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
8240 | props: {
|
8241 | disabled: disabled || this.disablePagination,
|
8242 | icon: true,
|
8243 | text: true
|
8244 | },
|
8245 | on: {
|
8246 | click: click
|
8247 | },
|
8248 | attrs: {
|
8249 | 'aria-label': label
|
8250 | }
|
8251 | }, [this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_2__["default"], icon)]);
|
8252 | },
|
8253 | genIcons: function genIcons() {
|
8254 | var before = [];
|
8255 | var after = [];
|
8256 | before.push(this.genIcon(this.onPreviousPage, this.options.page === 1, this.$vuetify.lang.t('$vuetify.dataFooter.prevPage'), this.$vuetify.rtl ? this.nextIcon : this.prevIcon));
|
8257 | after.push(this.genIcon(this.onNextPage, this.disableNextPageIcon, this.$vuetify.lang.t('$vuetify.dataFooter.nextPage'), this.$vuetify.rtl ? this.prevIcon : this.nextIcon));
|
8258 |
|
8259 | if (this.showFirstLastPage) {
|
8260 | before.unshift(this.genIcon(this.onFirstPage, this.options.page === 1, this.$vuetify.lang.t('$vuetify.dataFooter.firstPage'), this.$vuetify.rtl ? this.lastIcon : this.firstIcon));
|
8261 | after.push(this.genIcon(this.onLastPage, this.options.page >= this.pagination.pageCount || this.options.itemsPerPage === -1, this.$vuetify.lang.t('$vuetify.dataFooter.lastPage'), this.$vuetify.rtl ? this.firstIcon : this.lastIcon));
|
8262 | }
|
8263 |
|
8264 | return [this.$createElement('div', {
|
8265 | staticClass: 'v-data-footer__icons-before'
|
8266 | }, before), this.showCurrentPage && this.$createElement('span', [this.options.page.toString()]), this.$createElement('div', {
|
8267 | staticClass: 'v-data-footer__icons-after'
|
8268 | }, after)];
|
8269 | }
|
8270 | },
|
8271 | render: function render() {
|
8272 | return this.$createElement('div', {
|
8273 | staticClass: 'v-data-footer'
|
8274 | }, [this.genItemsPerPageSelect(), this.genPaginationInfo(), this.genIcons()]);
|
8275 | }
|
8276 | }));
|
8277 |
|
8278 | }),
|
8279 |
|
8280 | "./src/components/VDataIterator/VDataIterator.ts":
|
8281 |
|
8282 |
|
8283 |
|
8284 |
|
8285 | (function(module, __webpack_exports__, __webpack_require__) {
|
8286 |
|
8287 | "use strict";
|
8288 | __webpack_require__.r(__webpack_exports__);
|
8289 | var _VData__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VData/index.ts");
|
8290 | var _VDataFooter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VDataIterator/VDataFooter.ts");
|
8291 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
8292 | var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/helpers.ts");
|
8293 | var _util_console__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/console.ts");
|
8294 | var __assign = undefined && undefined.__assign || function () {
|
8295 | __assign = Object.assign || function (t) {
|
8296 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
8297 | s = arguments[i];
|
8298 |
|
8299 | for (var p in s) {
|
8300 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
8301 | }
|
8302 | }
|
8303 |
|
8304 | return t;
|
8305 | };
|
8306 |
|
8307 | return __assign.apply(this, arguments);
|
8308 | };
|
8309 |
|
8310 | var __read = undefined && undefined.__read || function (o, n) {
|
8311 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
8312 | if (!m) return o;
|
8313 | var i = m.call(o),
|
8314 | r,
|
8315 | ar = [],
|
8316 | e;
|
8317 |
|
8318 | try {
|
8319 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
8320 | ar.push(r.value);
|
8321 | }
|
8322 | } catch (error) {
|
8323 | e = {
|
8324 | error: error
|
8325 | };
|
8326 | } finally {
|
8327 | try {
|
8328 | if (r && !r.done && (m = i["return"])) m.call(i);
|
8329 | } finally {
|
8330 | if (e) throw e.error;
|
8331 | }
|
8332 | }
|
8333 |
|
8334 | return ar;
|
8335 | };
|
8336 |
|
8337 |
|
8338 |
|
8339 |
|
8340 |
|
8341 |
|
8342 |
|
8343 |
|
8344 |
|
8345 |
|
8346 |
|
8347 | __webpack_exports__["default"] = (_mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"].extend({
|
8348 | name: 'v-data-iterator',
|
8349 | props: __assign({}, _VData__WEBPACK_IMPORTED_MODULE_0__["VData"].options.props, {
|
8350 | itemKey: {
|
8351 | type: String,
|
8352 | default: 'id'
|
8353 | },
|
8354 | value: {
|
8355 | type: Array,
|
8356 | default: function _default() {
|
8357 | return [];
|
8358 | }
|
8359 | },
|
8360 | singleSelect: Boolean,
|
8361 | expanded: {
|
8362 | type: Array,
|
8363 | default: function _default() {
|
8364 | return [];
|
8365 | }
|
8366 | },
|
8367 | singleExpand: Boolean,
|
8368 | loading: [Boolean, String],
|
8369 | noResultsText: {
|
8370 | type: String,
|
8371 | default: '$vuetify.dataIterator.noResultsText'
|
8372 | },
|
8373 | noDataText: {
|
8374 | type: String,
|
8375 | default: '$vuetify.noDataText'
|
8376 | },
|
8377 | loadingText: {
|
8378 | type: String,
|
8379 | default: '$vuetify.dataIterator.loadingText'
|
8380 | },
|
8381 | hideDefaultFooter: Boolean,
|
8382 | footerProps: Object
|
8383 | }),
|
8384 | data: function data() {
|
8385 | return {
|
8386 | selection: {},
|
8387 | expansion: {},
|
8388 | internalCurrentItems: []
|
8389 | };
|
8390 | },
|
8391 | computed: {
|
8392 | everyItem: function everyItem() {
|
8393 | var _this = this;
|
8394 |
|
8395 | return !!this.internalCurrentItems.length && this.internalCurrentItems.every(function (i) {
|
8396 | return _this.isSelected(i);
|
8397 | });
|
8398 | },
|
8399 | someItems: function someItems() {
|
8400 | var _this = this;
|
8401 |
|
8402 | return this.internalCurrentItems.some(function (i) {
|
8403 | return _this.isSelected(i);
|
8404 | });
|
8405 | },
|
8406 | sanitizedFooterProps: function sanitizedFooterProps() {
|
8407 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["camelizeObjectKeys"])(this.footerProps);
|
8408 | }
|
8409 | },
|
8410 | watch: {
|
8411 | value: {
|
8412 | handler: function handler(value) {
|
8413 | var _this = this;
|
8414 |
|
8415 | this.selection = value.reduce(function (selection, item) {
|
8416 | selection[Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getObjectValueByPath"])(item, _this.itemKey)] = item;
|
8417 | return selection;
|
8418 | }, {});
|
8419 | },
|
8420 | immediate: true
|
8421 | },
|
8422 | selection: function selection(value, old) {
|
8423 | if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["deepEqual"])(Object.keys(value), Object.keys(old))) return;
|
8424 | this.$emit('input', Object.values(value));
|
8425 | },
|
8426 | expanded: {
|
8427 | handler: function handler(value) {
|
8428 | var _this = this;
|
8429 |
|
8430 | this.expansion = value.reduce(function (expansion, item) {
|
8431 | expansion[Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getObjectValueByPath"])(item, _this.itemKey)] = true;
|
8432 | return expansion;
|
8433 | }, {});
|
8434 | },
|
8435 | immediate: true
|
8436 | },
|
8437 | expansion: function expansion(value, old) {
|
8438 | var _this = this;
|
8439 |
|
8440 | if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["deepEqual"])(value, old)) return;
|
8441 | var keys = Object.keys(value).filter(function (k) {
|
8442 | return value[k];
|
8443 | });
|
8444 | var expanded = !keys.length ? [] : this.items.filter(function (i) {
|
8445 | return keys.includes(String(Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getObjectValueByPath"])(i, _this.itemKey)));
|
8446 | });
|
8447 | this.$emit('update:expanded', expanded);
|
8448 | }
|
8449 | },
|
8450 | created: function created() {
|
8451 | var _this = this;
|
8452 |
|
8453 | var breakingProps = [['disable-initial-sort', 'sort-by'], ['filter', 'custom-filter'], ['pagination', 'options'], ['total-items', 'server-items-length'], ['hide-actions', 'hide-default-footer'], ['rows-per-page-items', 'footer-props.items-per-page-options'], ['rows-per-page-text', 'footer-props.items-per-page-text'], ['prev-icon', 'footer-props.prev-icon'], ['next-icon', 'footer-props.next-icon']];
|
8454 |
|
8455 |
|
8456 | breakingProps.forEach(function (_a) {
|
8457 | var _b = __read(_a, 2),
|
8458 | original = _b[0],
|
8459 | replacement = _b[1];
|
8460 |
|
8461 | if (_this.$attrs.hasOwnProperty(original)) Object(_util_console__WEBPACK_IMPORTED_MODULE_4__["breaking"])(original, replacement, _this);
|
8462 | });
|
8463 | var removedProps = ['expand', 'content-class', 'content-props', 'content-tag'];
|
8464 |
|
8465 |
|
8466 | removedProps.forEach(function (prop) {
|
8467 | if (_this.$attrs.hasOwnProperty(prop)) Object(_util_console__WEBPACK_IMPORTED_MODULE_4__["removed"])(prop);
|
8468 | });
|
8469 | },
|
8470 | methods: {
|
8471 | toggleSelectAll: function toggleSelectAll(value) {
|
8472 | var _this = this;
|
8473 |
|
8474 | var selection = Object.assign({}, this.selection);
|
8475 | this.internalCurrentItems.forEach(function (item) {
|
8476 | var key = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getObjectValueByPath"])(item, _this.itemKey);
|
8477 | if (value) selection[key] = item;else delete selection[key];
|
8478 | });
|
8479 | this.selection = selection;
|
8480 | this.$emit('toggle-select-all', {
|
8481 | value: value
|
8482 | });
|
8483 | },
|
8484 | isSelected: function isSelected(item) {
|
8485 | return !!this.selection[Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getObjectValueByPath"])(item, this.itemKey)] || false;
|
8486 | },
|
8487 | select: function select(item, value, emit) {
|
8488 | if (value === void 0) {
|
8489 | value = true;
|
8490 | }
|
8491 |
|
8492 | if (emit === void 0) {
|
8493 | emit = true;
|
8494 | }
|
8495 |
|
8496 | var selection = this.singleSelect ? {} : Object.assign({}, this.selection);
|
8497 | var key = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getObjectValueByPath"])(item, this.itemKey);
|
8498 | if (value) selection[key] = item;else delete selection[key];
|
8499 | this.selection = selection;
|
8500 | emit && this.$emit('item-selected', {
|
8501 | item: item,
|
8502 | value: value
|
8503 | });
|
8504 | },
|
8505 | isExpanded: function isExpanded(item) {
|
8506 | return this.expansion[Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getObjectValueByPath"])(item, this.itemKey)] || false;
|
8507 | },
|
8508 | expand: function expand(item, value) {
|
8509 | if (value === void 0) {
|
8510 | value = true;
|
8511 | }
|
8512 |
|
8513 | var expansion = this.singleExpand ? {} : Object.assign({}, this.expansion);
|
8514 | var key = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getObjectValueByPath"])(item, this.itemKey);
|
8515 | if (value) expansion[key] = true;else delete expansion[key];
|
8516 | this.expansion = expansion;
|
8517 | this.$emit('item-expanded', {
|
8518 | item: item,
|
8519 | value: value
|
8520 | });
|
8521 | },
|
8522 | createItemProps: function createItemProps(item) {
|
8523 | var _this = this;
|
8524 |
|
8525 | var props = {
|
8526 | item: item,
|
8527 | select: function select(v) {
|
8528 | return _this.select(item, v);
|
8529 | },
|
8530 | isSelected: this.isSelected(item),
|
8531 | expand: function expand(v) {
|
8532 | return _this.expand(item, v);
|
8533 | },
|
8534 | isExpanded: this.isExpanded(item)
|
8535 | };
|
8536 | return props;
|
8537 | },
|
8538 | genEmptyWrapper: function genEmptyWrapper(content) {
|
8539 | return this.$createElement('div', content);
|
8540 | },
|
8541 | genEmpty: function genEmpty(originalItemsLength, filteredItemsLength) {
|
8542 | if (originalItemsLength === 0 && this.loading) {
|
8543 | var loading = this.$slots['loading'] || this.$vuetify.lang.t(this.loadingText);
|
8544 | return this.genEmptyWrapper(loading);
|
8545 | } else if (originalItemsLength === 0) {
|
8546 | var noData = this.$slots['no-data'] || this.$vuetify.lang.t(this.noDataText);
|
8547 | return this.genEmptyWrapper(noData);
|
8548 | } else if (filteredItemsLength === 0) {
|
8549 | var noResults = this.$slots['no-results'] || this.$vuetify.lang.t(this.noResultsText);
|
8550 | return this.genEmptyWrapper(noResults);
|
8551 | }
|
8552 |
|
8553 | return null;
|
8554 | },
|
8555 | genItems: function genItems(props) {
|
8556 | var _this = this;
|
8557 |
|
8558 | var empty = this.genEmpty(props.originalItemsLength, props.pagination.itemsLength);
|
8559 | if (empty) return [empty];
|
8560 |
|
8561 | if (this.$scopedSlots.default) {
|
8562 | return this.$scopedSlots.default(__assign({}, props, {
|
8563 | isSelected: this.isSelected,
|
8564 | select: this.select,
|
8565 | isExpanded: this.isExpanded,
|
8566 | expand: this.expand
|
8567 | }));
|
8568 | }
|
8569 |
|
8570 | if (this.$scopedSlots.item) {
|
8571 | return props.items.map(function (item) {
|
8572 | return _this.$scopedSlots.item(_this.createItemProps(item));
|
8573 | });
|
8574 | }
|
8575 |
|
8576 | return [];
|
8577 | },
|
8578 | genFooter: function genFooter(props) {
|
8579 | if (this.hideDefaultFooter) return null;
|
8580 | var data = {
|
8581 | props: __assign({}, this.sanitizedFooterProps, {
|
8582 | options: props.options,
|
8583 | pagination: props.pagination
|
8584 | }),
|
8585 | on: {
|
8586 | 'update:options': function updateOptions(value) {
|
8587 | return props.updateOptions(value);
|
8588 | }
|
8589 | }
|
8590 | };
|
8591 | var scopedSlots = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getPrefixedScopedSlots"])('footer.', this.$scopedSlots);
|
8592 | return this.$createElement(_VDataFooter__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({
|
8593 | scopedSlots: scopedSlots
|
8594 | }, data));
|
8595 | },
|
8596 | genDefaultScopedSlot: function genDefaultScopedSlot(props) {
|
8597 | var outerProps = __assign({}, props, {
|
8598 | someItems: this.someItems,
|
8599 | everyItem: this.everyItem,
|
8600 | toggleSelectAll: this.toggleSelectAll
|
8601 | });
|
8602 |
|
8603 | return this.$createElement('div', {
|
8604 | staticClass: 'v-data-iterator'
|
8605 | }, [Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getSlot"])(this, 'header', outerProps, true), this.genItems(props), this.genFooter(props), Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getSlot"])(this, 'footer', outerProps, true)]);
|
8606 | }
|
8607 | },
|
8608 | render: function render() {
|
8609 | var _this = this;
|
8610 |
|
8611 | return this.$createElement(_VData__WEBPACK_IMPORTED_MODULE_0__["VData"], {
|
8612 | props: this.$props,
|
8613 | on: {
|
8614 | 'update:options': function updateOptions(v, old) {
|
8615 | return !Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["deepEqual"])(v, old) && _this.$emit('update:options', v);
|
8616 | },
|
8617 | 'update:page': function updatePage(v) {
|
8618 | return _this.$emit('update:page', v);
|
8619 | },
|
8620 | 'update:items-per-page': function updateItemsPerPage(v) {
|
8621 | return _this.$emit('update:items-per-page', v);
|
8622 | },
|
8623 | 'update:sort-by': function updateSortBy(v) {
|
8624 | return _this.$emit('update:sort-by', v);
|
8625 | },
|
8626 | 'update:sort-desc': function updateSortDesc(v) {
|
8627 | return _this.$emit('update:sort-desc', v);
|
8628 | },
|
8629 | 'update:group-by': function updateGroupBy(v) {
|
8630 | return _this.$emit('update:group-by', v);
|
8631 | },
|
8632 | 'update:group-desc': function updateGroupDesc(v) {
|
8633 | return _this.$emit('update:group-desc', v);
|
8634 | },
|
8635 | pagination: function pagination(v, old) {
|
8636 | return !Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["deepEqual"])(v, old) && _this.$emit('pagination', v);
|
8637 | },
|
8638 | 'current-items': function currentItems(v) {
|
8639 | _this.internalCurrentItems = v;
|
8640 |
|
8641 | _this.$emit('current-items', v);
|
8642 | }
|
8643 | },
|
8644 | scopedSlots: {
|
8645 | default: this.genDefaultScopedSlot
|
8646 | }
|
8647 | });
|
8648 | }
|
8649 | }));
|
8650 |
|
8651 | }),
|
8652 |
|
8653 | "./src/components/VDataIterator/index.ts":
|
8654 |
|
8655 |
|
8656 |
|
8657 |
|
8658 | (function(module, __webpack_exports__, __webpack_require__) {
|
8659 |
|
8660 | "use strict";
|
8661 | __webpack_require__.r(__webpack_exports__);
|
8662 | var _VDataIterator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDataIterator/VDataIterator.ts");
|
8663 | __webpack_require__.d(__webpack_exports__, "VDataIterator", function() { return _VDataIterator__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
8664 |
|
8665 | var _VDataFooter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VDataIterator/VDataFooter.ts");
|
8666 | __webpack_require__.d(__webpack_exports__, "VDataFooter", function() { return _VDataFooter__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
8667 |
|
8668 |
|
8669 |
|
8670 |
|
8671 | __webpack_exports__["default"] = ({
|
8672 | $_vuetify_subcomponents: {
|
8673 | VDataIterator: _VDataIterator__WEBPACK_IMPORTED_MODULE_0__["default"],
|
8674 | VDataFooter: _VDataFooter__WEBPACK_IMPORTED_MODULE_1__["default"]
|
8675 | }
|
8676 | });
|
8677 |
|
8678 | }),
|
8679 |
|
8680 | "./src/components/VDataTable/MobileRow.ts":
|
8681 |
|
8682 |
|
8683 |
|
8684 |
|
8685 | (function(module, __webpack_exports__, __webpack_require__) {
|
8686 |
|
8687 | "use strict";
|
8688 | __webpack_require__.r(__webpack_exports__);
|
8689 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
8690 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
8691 | var _util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/helpers.ts");
|
8692 |
|
8693 |
|
8694 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
8695 | name: 'row',
|
8696 | functional: true,
|
8697 | props: {
|
8698 | headers: Array,
|
8699 | item: Object,
|
8700 | rtl: Boolean
|
8701 | },
|
8702 | render: function render(h, _a) {
|
8703 | var props = _a.props,
|
8704 | slots = _a.slots,
|
8705 | data = _a.data;
|
8706 | var computedSlots = slots();
|
8707 | var columns = props.headers.map(function (header) {
|
8708 | var classes = {
|
8709 | 'v-data-table__mobile-row': true
|
8710 | };
|
8711 | var children = [];
|
8712 | var value = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["getObjectValueByPath"])(props.item, header.value);
|
8713 | var slotName = header.value;
|
8714 | var scopedSlot = data.scopedSlots && data.scopedSlots[slotName];
|
8715 | var regularSlot = computedSlots[slotName];
|
8716 |
|
8717 | if (scopedSlot) {
|
8718 | children.push(scopedSlot({
|
8719 | item: props.item,
|
8720 | header: header,
|
8721 | value: value
|
8722 | }));
|
8723 | } else if (regularSlot) {
|
8724 | children.push(regularSlot);
|
8725 | } else {
|
8726 | children.push(value);
|
8727 | }
|
8728 |
|
8729 | return h('td', {
|
8730 | class: classes
|
8731 | }, [h('div', {
|
8732 | staticClass: 'v-data-table__mobile-row__wrapper'
|
8733 | }, [header.value !== 'dataTableSelect' && h('div', {
|
8734 | staticClass: 'v-data-table__mobile-row__header'
|
8735 | }, [header.text]), h('div', {
|
8736 | staticClass: 'v-data-table__mobile-row__cell'
|
8737 | }, children)])]);
|
8738 | });
|
8739 | return h('tr', data, columns);
|
8740 | }
|
8741 | }));
|
8742 |
|
8743 | }),
|
8744 |
|
8745 | "./src/components/VDataTable/Row.ts":
|
8746 |
|
8747 |
|
8748 |
|
8749 |
|
8750 | (function(module, __webpack_exports__, __webpack_require__) {
|
8751 |
|
8752 | "use strict";
|
8753 | __webpack_require__.r(__webpack_exports__);
|
8754 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
8755 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
8756 | var _util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/helpers.ts");
|
8757 |
|
8758 |
|
8759 |
|
8760 |
|
8761 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
8762 | name: 'row',
|
8763 | functional: true,
|
8764 | props: {
|
8765 | headers: Array,
|
8766 | item: Object,
|
8767 | rtl: Boolean
|
8768 | },
|
8769 | render: function render(h, _a) {
|
8770 | var props = _a.props,
|
8771 | slots = _a.slots,
|
8772 | data = _a.data;
|
8773 | var computedSlots = slots();
|
8774 | var columns = props.headers.map(function (header) {
|
8775 | var children = [];
|
8776 | var value = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["getObjectValueByPath"])(props.item, header.value);
|
8777 | var slotName = header.value;
|
8778 | var scopedSlot = data.scopedSlots && data.scopedSlots[slotName];
|
8779 | var regularSlot = computedSlots[slotName];
|
8780 |
|
8781 | if (scopedSlot) {
|
8782 | children.push(scopedSlot({
|
8783 | item: props.item,
|
8784 | header: header,
|
8785 | value: value
|
8786 | }));
|
8787 | } else if (regularSlot) {
|
8788 | children.push(regularSlot);
|
8789 | } else {
|
8790 | children.push(value);
|
8791 | }
|
8792 |
|
8793 | return h('td', {
|
8794 | class: "text-" + (header.align || 'start')
|
8795 | }, children);
|
8796 | });
|
8797 | return h('tr', data, columns);
|
8798 | }
|
8799 | }));
|
8800 |
|
8801 | }),
|
8802 |
|
8803 | "./src/components/VDataTable/RowGroup.ts":
|
8804 |
|
8805 |
|
8806 |
|
8807 |
|
8808 | (function(module, __webpack_exports__, __webpack_require__) {
|
8809 |
|
8810 | "use strict";
|
8811 | __webpack_require__.r(__webpack_exports__);
|
8812 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
8813 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
8814 | var __read = undefined && undefined.__read || function (o, n) {
|
8815 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
8816 | if (!m) return o;
|
8817 | var i = m.call(o),
|
8818 | r,
|
8819 | ar = [],
|
8820 | e;
|
8821 |
|
8822 | try {
|
8823 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
8824 | ar.push(r.value);
|
8825 | }
|
8826 | } catch (error) {
|
8827 | e = {
|
8828 | error: error
|
8829 | };
|
8830 | } finally {
|
8831 | try {
|
8832 | if (r && !r.done && (m = i["return"])) m.call(i);
|
8833 | } finally {
|
8834 | if (e) throw e.error;
|
8835 | }
|
8836 | }
|
8837 |
|
8838 | return ar;
|
8839 | };
|
8840 |
|
8841 | var __spread = undefined && undefined.__spread || function () {
|
8842 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
8843 | ar = ar.concat(__read(arguments[i]));
|
8844 | }
|
8845 |
|
8846 | return ar;
|
8847 | };
|
8848 |
|
8849 |
|
8850 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
8851 | name: 'row-group',
|
8852 | functional: true,
|
8853 | props: {
|
8854 | value: {
|
8855 | type: Boolean,
|
8856 | default: true
|
8857 | },
|
8858 | headerClass: {
|
8859 | type: String,
|
8860 | default: 'v-row-group__header'
|
8861 | },
|
8862 | contentClass: String,
|
8863 | summaryClass: {
|
8864 | type: String,
|
8865 | default: 'v-row-group__summary'
|
8866 | }
|
8867 | },
|
8868 | render: function render(h, _a) {
|
8869 | var slots = _a.slots,
|
8870 | props = _a.props;
|
8871 | var computedSlots = slots();
|
8872 | var children = [];
|
8873 |
|
8874 | if (computedSlots['column.header']) {
|
8875 | children.push(h('tr', {
|
8876 | staticClass: props.headerClass
|
8877 | }, computedSlots['column.header']));
|
8878 | } else if (computedSlots['row.header']) {
|
8879 | children.push.apply(children, __spread(computedSlots['row.header']));
|
8880 | }
|
8881 |
|
8882 | if (computedSlots['row.content'] && props.value) children.push.apply(children, __spread(computedSlots['row.content']));
|
8883 |
|
8884 | if (computedSlots['column.summary']) {
|
8885 | children.push(h('tr', {
|
8886 | staticClass: props.summaryClass
|
8887 | }, computedSlots['column.summary']));
|
8888 | } else if (computedSlots['row.summary']) {
|
8889 | children.push.apply(children, __spread(computedSlots['row.summary']));
|
8890 | }
|
8891 |
|
8892 | return children;
|
8893 | }
|
8894 | }));
|
8895 |
|
8896 | }),
|
8897 |
|
8898 | "./src/components/VDataTable/VDataTable.sass":
|
8899 |
|
8900 |
|
8901 |
|
8902 |
|
8903 | (function(module, exports, __webpack_require__) {
|
8904 |
|
8905 |
|
8906 |
|
8907 | }),
|
8908 |
|
8909 | "./src/components/VDataTable/VDataTable.ts":
|
8910 |
|
8911 |
|
8912 |
|
8913 |
|
8914 | (function(module, __webpack_exports__, __webpack_require__) {
|
8915 |
|
8916 | "use strict";
|
8917 | __webpack_require__.r(__webpack_exports__);
|
8918 | var _VDataTable_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDataTable/VDataTable.sass");
|
8919 | var _VDataTable_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VDataTable_sass__WEBPACK_IMPORTED_MODULE_0__);
|
8920 | var _VData__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VData/index.ts");
|
8921 | var _VDataIterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VDataIterator/index.ts");
|
8922 | var _VBtn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VBtn/index.ts");
|
8923 | var _VDataTableHeader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VDataTable/VDataTableHeader.ts");
|
8924 | var _VIcon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
8925 | var _VProgressLinear__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/components/VProgressLinear/index.ts");
|
8926 | var _Row__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/components/VDataTable/Row.ts");
|
8927 | var _RowGroup__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/components/VDataTable/RowGroup.ts");
|
8928 | var _VCheckbox_VSimpleCheckbox__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__( "./src/components/VCheckbox/VSimpleCheckbox.ts");
|
8929 | var _VSimpleTable__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__( "./src/components/VDataTable/VSimpleTable.ts");
|
8930 | var _MobileRow__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__( "./src/components/VDataTable/MobileRow.ts");
|
8931 | var _directives_ripple__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__( "./src/directives/ripple/index.ts");
|
8932 | var _util_helpers__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__( "./src/util/helpers.ts");
|
8933 | var _util_console__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__( "./src/util/console.ts");
|
8934 | 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); }
|
8935 |
|
8936 | var __assign = undefined && undefined.__assign || function () {
|
8937 | __assign = Object.assign || function (t) {
|
8938 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
8939 | s = arguments[i];
|
8940 |
|
8941 | for (var p in s) {
|
8942 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
8943 | }
|
8944 | }
|
8945 |
|
8946 | return t;
|
8947 | };
|
8948 |
|
8949 | return __assign.apply(this, arguments);
|
8950 | };
|
8951 |
|
8952 | var __read = undefined && undefined.__read || function (o, n) {
|
8953 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
8954 | if (!m) return o;
|
8955 | var i = m.call(o),
|
8956 | r,
|
8957 | ar = [],
|
8958 | e;
|
8959 |
|
8960 | try {
|
8961 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
8962 | ar.push(r.value);
|
8963 | }
|
8964 | } catch (error) {
|
8965 | e = {
|
8966 | error: error
|
8967 | };
|
8968 | } finally {
|
8969 | try {
|
8970 | if (r && !r.done && (m = i["return"])) m.call(i);
|
8971 | } finally {
|
8972 | if (e) throw e.error;
|
8973 | }
|
8974 | }
|
8975 |
|
8976 | return ar;
|
8977 | };
|
8978 |
|
8979 |
|
8980 |
|
8981 |
|
8982 |
|
8983 |
|
8984 |
|
8985 |
|
8986 |
|
8987 |
|
8988 |
|
8989 |
|
8990 |
|
8991 |
|
8992 |
|
8993 |
|
8994 |
|
8995 |
|
8996 |
|
8997 |
|
8998 | function filterFn(item, search, filter) {
|
8999 | return function (header) {
|
9000 | var value = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_13__["getObjectValueByPath"])(item, header.value);
|
9001 | return header.filter ? header.filter(value, search, item) : filter(value, search, item);
|
9002 | };
|
9003 | }
|
9004 |
|
9005 | function searchTableItems(items, search, headersWithCustomFilters, headersWithoutCustomFilters, customFilter) {
|
9006 | var filtered = items;
|
9007 | search = typeof search === 'string' ? search.trim() : null;
|
9008 |
|
9009 | if (search && headersWithoutCustomFilters.length) {
|
9010 | filtered = items.filter(function (item) {
|
9011 | return headersWithoutCustomFilters.some(filterFn(item, search, customFilter));
|
9012 | });
|
9013 | }
|
9014 |
|
9015 | if (headersWithCustomFilters.length) {
|
9016 | filtered = filtered.filter(function (item) {
|
9017 | return headersWithCustomFilters.every(filterFn(item, search, _util_helpers__WEBPACK_IMPORTED_MODULE_13__["defaultFilter"]));
|
9018 | });
|
9019 | }
|
9020 |
|
9021 | return filtered;
|
9022 | }
|
9023 |
|
9024 |
|
9025 |
|
9026 | __webpack_exports__["default"] = (_VDataIterator__WEBPACK_IMPORTED_MODULE_2__["VDataIterator"].extend({
|
9027 | name: 'v-data-table',
|
9028 |
|
9029 | directives: {
|
9030 | ripple: _directives_ripple__WEBPACK_IMPORTED_MODULE_12__["default"]
|
9031 | },
|
9032 | props: {
|
9033 | headers: {
|
9034 | type: Array
|
9035 | },
|
9036 | showSelect: Boolean,
|
9037 | showExpand: Boolean,
|
9038 | showGroupBy: Boolean,
|
9039 |
|
9040 |
|
9041 | mobileBreakpoint: {
|
9042 | type: Number,
|
9043 | default: 600
|
9044 | },
|
9045 | height: [Number, String],
|
9046 | hideDefaultHeader: Boolean,
|
9047 | caption: String,
|
9048 | dense: Boolean,
|
9049 | headerProps: Object,
|
9050 | calculateWidths: Boolean,
|
9051 | fixedHeader: Boolean,
|
9052 | headersLength: Number,
|
9053 | expandIcon: {
|
9054 | type: String,
|
9055 | default: '$expand'
|
9056 | },
|
9057 | customFilter: {
|
9058 | type: Function,
|
9059 | default: _util_helpers__WEBPACK_IMPORTED_MODULE_13__["defaultFilter"]
|
9060 | }
|
9061 | },
|
9062 | data: function data() {
|
9063 | return {
|
9064 | internalGroupBy: [],
|
9065 | openCache: {},
|
9066 | widths: []
|
9067 | };
|
9068 | },
|
9069 | computed: {
|
9070 | computedHeaders: function computedHeaders() {
|
9071 | var _this = this;
|
9072 |
|
9073 | if (!this.headers) return [];
|
9074 | var headers = this.headers.filter(function (h) {
|
9075 | return h.value === undefined || !_this.internalGroupBy.find(function (v) {
|
9076 | return v === h.value;
|
9077 | });
|
9078 | });
|
9079 | var defaultHeader = {
|
9080 | text: '',
|
9081 | sortable: false,
|
9082 | width: '1px'
|
9083 | };
|
9084 |
|
9085 | if (this.showSelect) {
|
9086 | var index = headers.findIndex(function (h) {
|
9087 | return h.value === 'data-table-select';
|
9088 | });
|
9089 | if (index < 0) headers.unshift(__assign({}, defaultHeader, {
|
9090 | value: 'data-table-select'
|
9091 | }));else headers.splice(index, 1, __assign({}, defaultHeader, headers[index]));
|
9092 | }
|
9093 |
|
9094 | if (this.showExpand) {
|
9095 | var index = headers.findIndex(function (h) {
|
9096 | return h.value === 'data-table-expand';
|
9097 | });
|
9098 | if (index < 0) headers.unshift(__assign({}, defaultHeader, {
|
9099 | value: 'data-table-expand'
|
9100 | }));else headers.splice(index, 1, __assign({}, defaultHeader, headers[index]));
|
9101 | }
|
9102 |
|
9103 | return headers;
|
9104 | },
|
9105 | colspanAttrs: function colspanAttrs() {
|
9106 | return this.isMobile ? undefined : {
|
9107 | colspan: this.headersLength || this.computedHeaders.length
|
9108 | };
|
9109 | },
|
9110 | isMobile: function isMobile() {
|
9111 |
|
9112 |
|
9113 | if (this.$vuetify.breakpoint.width === 0) return false;
|
9114 | return this.$vuetify.breakpoint.width < this.mobileBreakpoint;
|
9115 | },
|
9116 | columnSorters: function columnSorters() {
|
9117 | return this.computedHeaders.reduce(function (acc, header) {
|
9118 | if (header.sort) acc[header.value] = header.sort;
|
9119 | return acc;
|
9120 | }, {});
|
9121 | },
|
9122 | headersWithCustomFilters: function headersWithCustomFilters() {
|
9123 | return this.computedHeaders.filter(function (header) {
|
9124 | return header.filter && (!header.hasOwnProperty('filterable') || header.filterable === true);
|
9125 | });
|
9126 | },
|
9127 | headersWithoutCustomFilters: function headersWithoutCustomFilters() {
|
9128 | return this.computedHeaders.filter(function (header) {
|
9129 | return !header.filter && (!header.hasOwnProperty('filterable') || header.filterable === true);
|
9130 | });
|
9131 | },
|
9132 | sanitizedHeaderProps: function sanitizedHeaderProps() {
|
9133 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_13__["camelizeObjectKeys"])(this.headerProps);
|
9134 | },
|
9135 | computedItemsPerPage: function computedItemsPerPage() {
|
9136 | var itemsPerPage = this.options && this.options.itemsPerPage ? this.options.itemsPerPage : this.itemsPerPage;
|
9137 | var itemsPerPageOptions = this.sanitizedFooterProps.itemsPerPageOptions;
|
9138 |
|
9139 | if (itemsPerPageOptions && !itemsPerPageOptions.find(function (item) {
|
9140 | return typeof item === 'number' ? item === itemsPerPage : item.value === itemsPerPage;
|
9141 | })) {
|
9142 | var firstOption = itemsPerPageOptions[0];
|
9143 | return _typeof(firstOption) === 'object' ? firstOption.value : firstOption;
|
9144 | }
|
9145 |
|
9146 | return itemsPerPage;
|
9147 | }
|
9148 | },
|
9149 | created: function created() {
|
9150 | var _this = this;
|
9151 |
|
9152 | var breakingProps = [['sort-icon', 'header-props.sort-icon'], ['hide-headers', 'hide-default-header'], ['select-all', 'show-select']];
|
9153 |
|
9154 |
|
9155 | breakingProps.forEach(function (_a) {
|
9156 | var _b = __read(_a, 2),
|
9157 | original = _b[0],
|
9158 | replacement = _b[1];
|
9159 |
|
9160 | if (_this.$attrs.hasOwnProperty(original)) Object(_util_console__WEBPACK_IMPORTED_MODULE_14__["breaking"])(original, replacement, _this);
|
9161 | });
|
9162 | },
|
9163 | mounted: function mounted() {
|
9164 |
|
9165 |
|
9166 |
|
9167 |
|
9168 | if (this.calculateWidths) {
|
9169 | window.addEventListener('resize', this.calcWidths);
|
9170 | this.calcWidths();
|
9171 | }
|
9172 | },
|
9173 | beforeDestroy: function beforeDestroy() {
|
9174 | if (this.calculateWidths) {
|
9175 | window.removeEventListener('resize', this.calcWidths);
|
9176 | }
|
9177 | },
|
9178 | methods: {
|
9179 | calcWidths: function calcWidths() {
|
9180 | this.widths = Array.from(this.$el.querySelectorAll('th')).map(function (e) {
|
9181 | return e.clientWidth;
|
9182 | });
|
9183 | },
|
9184 | customFilterWithColumns: function customFilterWithColumns(items, search) {
|
9185 | return searchTableItems(items, search, this.headersWithCustomFilters, this.headersWithoutCustomFilters, this.customFilter);
|
9186 | },
|
9187 | customSortWithHeaders: function customSortWithHeaders(items, sortBy, sortDesc, locale) {
|
9188 | return this.customSort(items, sortBy, sortDesc, locale, this.columnSorters);
|
9189 | },
|
9190 | createItemProps: function createItemProps(item) {
|
9191 | var props = _VDataIterator__WEBPACK_IMPORTED_MODULE_2__["VDataIterator"].options.methods.createItemProps.call(this, item);
|
9192 | return Object.assign(props, {
|
9193 | headers: this.computedHeaders
|
9194 | });
|
9195 | },
|
9196 | genCaption: function genCaption(props) {
|
9197 | if (this.caption) return [this.$createElement('caption', [this.caption])];
|
9198 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_13__["getSlot"])(this, 'caption', props, true);
|
9199 | },
|
9200 | genColgroup: function genColgroup(props) {
|
9201 | var _this = this;
|
9202 |
|
9203 | return this.$createElement('colgroup', this.computedHeaders.map(function (header) {
|
9204 | return _this.$createElement('col', {
|
9205 | class: {
|
9206 | divider: header.divider
|
9207 | }
|
9208 | });
|
9209 | }));
|
9210 | },
|
9211 | genLoading: function genLoading() {
|
9212 | var progress = this.$slots['progress'] ? this.$slots.progress : this.$createElement(_VProgressLinear__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
9213 | props: {
|
9214 | color: this.loading === true ? 'primary' : this.loading,
|
9215 | height: 2,
|
9216 | indeterminate: true
|
9217 | }
|
9218 | });
|
9219 | var th = this.$createElement('th', {
|
9220 | staticClass: 'column',
|
9221 | attrs: this.colspanAttrs
|
9222 | }, [progress]);
|
9223 | var tr = this.$createElement('tr', {
|
9224 | staticClass: 'v-data-table__progress'
|
9225 | }, [th]);
|
9226 | return this.$createElement('thead', [tr]);
|
9227 | },
|
9228 | genHeaders: function genHeaders(props) {
|
9229 | var data = {
|
9230 | props: __assign({}, this.sanitizedHeaderProps, {
|
9231 | headers: this.computedHeaders,
|
9232 | options: props.options,
|
9233 | mobile: this.isMobile,
|
9234 | showGroupBy: this.showGroupBy,
|
9235 | someItems: this.someItems,
|
9236 | everyItem: this.everyItem,
|
9237 | singleSelect: this.singleSelect,
|
9238 | disableSort: this.disableSort
|
9239 | }),
|
9240 | on: {
|
9241 | sort: props.sort,
|
9242 | group: props.group,
|
9243 | 'toggle-select-all': this.toggleSelectAll
|
9244 | }
|
9245 | };
|
9246 | var children = [Object(_util_helpers__WEBPACK_IMPORTED_MODULE_13__["getSlot"])(this, 'header', data)];
|
9247 |
|
9248 | if (!this.hideDefaultHeader) {
|
9249 | var scopedSlots = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_13__["getPrefixedScopedSlots"])('header.', this.$scopedSlots);
|
9250 | children.push(this.$createElement(_VDataTableHeader__WEBPACK_IMPORTED_MODULE_4__["default"], __assign({}, data, {
|
9251 | scopedSlots: scopedSlots
|
9252 | })));
|
9253 | }
|
9254 |
|
9255 | if (this.loading) children.push(this.genLoading());
|
9256 | return children;
|
9257 | },
|
9258 | genEmptyWrapper: function genEmptyWrapper(content) {
|
9259 | return this.$createElement('tr', {
|
9260 | staticClass: 'v-data-table__empty-wrapper'
|
9261 | }, [this.$createElement('td', {
|
9262 | attrs: this.colspanAttrs
|
9263 | }, content)]);
|
9264 | },
|
9265 | genItems: function genItems(items, props) {
|
9266 | var empty = this.genEmpty(props.originalItemsLength, props.pagination.itemsLength);
|
9267 | if (empty) return [empty];
|
9268 | return props.groupedItems ? this.genGroupedRows(props.groupedItems, props) : this.genRows(items, props);
|
9269 | },
|
9270 | genGroupedRows: function genGroupedRows(groupedItems, props) {
|
9271 | var _this = this;
|
9272 |
|
9273 | var groups = Object.keys(groupedItems || {});
|
9274 | return groups.map(function (group) {
|
9275 | if (!_this.openCache.hasOwnProperty(group)) _this.$set(_this.openCache, group, true);
|
9276 |
|
9277 | if (_this.$scopedSlots.group) {
|
9278 | return _this.$scopedSlots.group({
|
9279 | group: group,
|
9280 | options: props.options,
|
9281 | items: groupedItems[group],
|
9282 | headers: _this.computedHeaders
|
9283 | });
|
9284 | } else {
|
9285 | return _this.genDefaultGroupedRow(group, groupedItems[group], props);
|
9286 | }
|
9287 | });
|
9288 | },
|
9289 | genDefaultGroupedRow: function genDefaultGroupedRow(group, items, props) {
|
9290 | var _this = this;
|
9291 |
|
9292 | var isOpen = !!this.openCache[group];
|
9293 | var children = [this.$createElement('template', {
|
9294 | slot: 'row.content'
|
9295 | }, this.genDefaultRows(items, props))];
|
9296 |
|
9297 | var toggleFn = function toggleFn() {
|
9298 | return _this.$set(_this.openCache, group, !_this.openCache[group]);
|
9299 | };
|
9300 |
|
9301 | var removeFn = function removeFn() {
|
9302 | return props.updateOptions({
|
9303 | groupBy: [],
|
9304 | groupDesc: []
|
9305 | });
|
9306 | };
|
9307 |
|
9308 | if (this.$scopedSlots['group.header']) {
|
9309 | children.unshift(this.$createElement('template', {
|
9310 | slot: 'column.header'
|
9311 | }, [this.$scopedSlots['group.header']({
|
9312 | group: group,
|
9313 | groupBy: props.options.groupBy,
|
9314 | items: items,
|
9315 | headers: this.computedHeaders,
|
9316 | toggle: toggleFn,
|
9317 | remove: removeFn
|
9318 | })]));
|
9319 | } else {
|
9320 | var toggle = this.$createElement(_VBtn__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
9321 | staticClass: 'ma-0',
|
9322 | props: {
|
9323 | icon: true,
|
9324 | small: true
|
9325 | },
|
9326 | on: {
|
9327 | click: toggleFn
|
9328 | }
|
9329 | }, [this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_5__["default"], [isOpen ? '$minus' : '$plus'])]);
|
9330 | var remove = this.$createElement(_VBtn__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
9331 | staticClass: 'ma-0',
|
9332 | props: {
|
9333 | icon: true,
|
9334 | small: true
|
9335 | },
|
9336 | on: {
|
9337 | click: removeFn
|
9338 | }
|
9339 | }, [this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_5__["default"], ['$close'])]);
|
9340 | var column = this.$createElement('td', {
|
9341 | staticClass: 'text-start',
|
9342 | attrs: this.colspanAttrs
|
9343 | }, [toggle, props.options.groupBy[0] + ": " + group, remove]);
|
9344 | children.unshift(this.$createElement('template', {
|
9345 | slot: 'column.header'
|
9346 | }, [column]));
|
9347 | }
|
9348 |
|
9349 | if (this.$scopedSlots['group.summary']) {
|
9350 | children.push(this.$createElement('template', {
|
9351 | slot: 'column.summary'
|
9352 | }, [this.$scopedSlots['group.summary']({
|
9353 | group: group,
|
9354 | groupBy: props.options.groupBy,
|
9355 | items: items,
|
9356 | headers: this.computedHeaders
|
9357 | })]));
|
9358 | }
|
9359 |
|
9360 | return this.$createElement(_RowGroup__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
9361 | key: group,
|
9362 | props: {
|
9363 | value: isOpen
|
9364 | }
|
9365 | }, children);
|
9366 | },
|
9367 | genRows: function genRows(items, props) {
|
9368 | return this.$scopedSlots.item ? this.genScopedRows(items, props) : this.genDefaultRows(items, props);
|
9369 | },
|
9370 | genScopedRows: function genScopedRows(items, props) {
|
9371 | var rows = [];
|
9372 |
|
9373 | for (var i = 0; i < items.length; i++) {
|
9374 | var item = items[i];
|
9375 | rows.push(this.$scopedSlots.item(__assign({}, this.createItemProps(item), {
|
9376 | index: i
|
9377 | })));
|
9378 |
|
9379 | if (this.isExpanded(item)) {
|
9380 | rows.push(this.$scopedSlots['expanded-item']({
|
9381 | item: item,
|
9382 | headers: this.computedHeaders
|
9383 | }));
|
9384 | }
|
9385 | }
|
9386 |
|
9387 | return rows;
|
9388 | },
|
9389 | genDefaultRows: function genDefaultRows(items, props) {
|
9390 | var _this = this;
|
9391 |
|
9392 | return this.$scopedSlots['expanded-item'] ? items.map(function (item) {
|
9393 | return _this.genDefaultExpandedRow(item);
|
9394 | }) : items.map(function (item) {
|
9395 | return _this.genDefaultSimpleRow(item);
|
9396 | });
|
9397 | },
|
9398 | genDefaultExpandedRow: function genDefaultExpandedRow(item) {
|
9399 | var isExpanded = this.isExpanded(item);
|
9400 | var classes = {
|
9401 | 'v-data-table__expanded v-data-table__expanded__row': isExpanded
|
9402 | };
|
9403 | var headerRow = this.genDefaultSimpleRow(item, classes);
|
9404 | var expandedRow = this.$createElement('tr', {
|
9405 | staticClass: 'v-data-table__expanded v-data-table__expanded__content'
|
9406 | }, [this.$scopedSlots['expanded-item']({
|
9407 | item: item,
|
9408 | headers: this.computedHeaders
|
9409 | })]);
|
9410 | return this.$createElement(_RowGroup__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
9411 | props: {
|
9412 | value: isExpanded
|
9413 | }
|
9414 | }, [this.$createElement('template', {
|
9415 | slot: 'row.header'
|
9416 | }, [headerRow]), this.$createElement('template', {
|
9417 | slot: 'row.content'
|
9418 | }, [expandedRow])]);
|
9419 | },
|
9420 | genDefaultSimpleRow: function genDefaultSimpleRow(item, classes) {
|
9421 | var _this = this;
|
9422 |
|
9423 | if (classes === void 0) {
|
9424 | classes = {};
|
9425 | }
|
9426 |
|
9427 | var scopedSlots = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_13__["getPrefixedScopedSlots"])('item.', this.$scopedSlots);
|
9428 | var data = this.createItemProps(item);
|
9429 |
|
9430 | if (this.showSelect) {
|
9431 | var slot_1 = scopedSlots['data-table-select'];
|
9432 | scopedSlots['data-table-select'] = slot_1 ? function () {
|
9433 | return slot_1(data);
|
9434 | } : function () {
|
9435 | return _this.$createElement(_VCheckbox_VSimpleCheckbox__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
9436 | staticClass: 'v-data-table__checkbox',
|
9437 | props: {
|
9438 | value: data.isSelected
|
9439 | },
|
9440 | on: {
|
9441 | input: function input(val) {
|
9442 | return data.select(val);
|
9443 | }
|
9444 | }
|
9445 | });
|
9446 | };
|
9447 | }
|
9448 |
|
9449 | if (this.showExpand) {
|
9450 | var slot_2 = scopedSlots['data-table-expand'];
|
9451 | scopedSlots['data-table-expand'] = slot_2 ? function () {
|
9452 | return slot_2(data);
|
9453 | } : function () {
|
9454 | return _this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
9455 | staticClass: 'v-data-table__expand-icon',
|
9456 | class: {
|
9457 | 'v-data-table__expand-icon--active': data.isExpanded
|
9458 | },
|
9459 | on: {
|
9460 | click: function click(e) {
|
9461 | e.stopPropagation();
|
9462 | data.expand(!data.isExpanded);
|
9463 | }
|
9464 | }
|
9465 | }, [_this.expandIcon]);
|
9466 | };
|
9467 | }
|
9468 |
|
9469 | return this.$createElement(this.isMobile ? _MobileRow__WEBPACK_IMPORTED_MODULE_11__["default"] : _Row__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
9470 | key: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_13__["getObjectValueByPath"])(item, this.itemKey),
|
9471 | class: __assign({}, classes, {
|
9472 | 'v-data-table__selected': data.isSelected
|
9473 | }),
|
9474 | props: {
|
9475 | headers: this.computedHeaders,
|
9476 | item: item,
|
9477 | rtl: this.$vuetify.rtl
|
9478 | },
|
9479 | scopedSlots: scopedSlots,
|
9480 | on: {
|
9481 | click: function click() {
|
9482 | return _this.$emit('click:row', item);
|
9483 | }
|
9484 | }
|
9485 | });
|
9486 | },
|
9487 | genBody: function genBody(props) {
|
9488 | var data = __assign({}, props, {
|
9489 | isMobile: this.isMobile,
|
9490 | headers: this.computedHeaders
|
9491 | });
|
9492 |
|
9493 | if (this.$scopedSlots.body) {
|
9494 | return this.$scopedSlots.body(data);
|
9495 | }
|
9496 |
|
9497 | return this.$createElement('tbody', [Object(_util_helpers__WEBPACK_IMPORTED_MODULE_13__["getSlot"])(this, 'body.prepend', data, true), this.genItems(props.items, props), Object(_util_helpers__WEBPACK_IMPORTED_MODULE_13__["getSlot"])(this, 'body.append', data, true)]);
|
9498 | },
|
9499 | genFooters: function genFooters(props) {
|
9500 | var data = {
|
9501 | props: __assign({
|
9502 | options: props.options,
|
9503 | pagination: props.pagination,
|
9504 | itemsPerPageText: '$vuetify.dataTable.itemsPerPageText'
|
9505 | }, this.sanitizedFooterProps),
|
9506 | on: {
|
9507 | 'update:options': function updateOptions(value) {
|
9508 | return props.updateOptions(value);
|
9509 | }
|
9510 | },
|
9511 | widths: this.widths,
|
9512 | headers: this.computedHeaders
|
9513 | };
|
9514 | var children = [Object(_util_helpers__WEBPACK_IMPORTED_MODULE_13__["getSlot"])(this, 'footer', data, true)];
|
9515 |
|
9516 | if (!this.hideDefaultFooter) {
|
9517 | children.push(this.$createElement(_VDataIterator__WEBPACK_IMPORTED_MODULE_2__["VDataFooter"], __assign({}, data, {
|
9518 | scopedSlots: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_13__["getPrefixedScopedSlots"])('footer.', this.$scopedSlots)
|
9519 | })));
|
9520 | }
|
9521 |
|
9522 | return children;
|
9523 | },
|
9524 | genDefaultScopedSlot: function genDefaultScopedSlot(props) {
|
9525 | var simpleProps = {
|
9526 | height: this.height,
|
9527 | fixedHeader: this.fixedHeader,
|
9528 | dense: this.dense
|
9529 | };
|
9530 |
|
9531 |
|
9532 |
|
9533 |
|
9534 |
|
9535 |
|
9536 |
|
9537 |
|
9538 |
|
9539 |
|
9540 |
|
9541 |
|
9542 |
|
9543 |
|
9544 |
|
9545 |
|
9546 |
|
9547 | return this.$createElement(_VSimpleTable__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
9548 | props: simpleProps
|
9549 | }, [this.proxySlot('top', Object(_util_helpers__WEBPACK_IMPORTED_MODULE_13__["getSlot"])(this, 'top', props, true)), this.genCaption(props), this.genColgroup(props), this.genHeaders(props), this.genBody(props), this.proxySlot('bottom', this.genFooters(props))]);
|
9550 | },
|
9551 | proxySlot: function proxySlot(slot, content) {
|
9552 | return this.$createElement('template', {
|
9553 | slot: slot
|
9554 | }, content);
|
9555 | }
|
9556 | },
|
9557 | render: function render() {
|
9558 | var _this = this;
|
9559 |
|
9560 | return this.$createElement(_VData__WEBPACK_IMPORTED_MODULE_1__["VData"], {
|
9561 | props: __assign({}, this.$props, {
|
9562 | customFilter: this.customFilterWithColumns,
|
9563 | customSort: this.customSortWithHeaders,
|
9564 | itemsPerPage: this.computedItemsPerPage
|
9565 | }),
|
9566 | on: {
|
9567 | 'update:options': function updateOptions(v, old) {
|
9568 | _this.internalGroupBy = v.groupBy || [];
|
9569 | !Object(_util_helpers__WEBPACK_IMPORTED_MODULE_13__["deepEqual"])(v, old) && _this.$emit('update:options', v);
|
9570 | },
|
9571 | 'update:page': function updatePage(v) {
|
9572 | return _this.$emit('update:page', v);
|
9573 | },
|
9574 | 'update:items-per-page': function updateItemsPerPage(v) {
|
9575 | return _this.$emit('update:items-per-page', v);
|
9576 | },
|
9577 | 'update:sort-by': function updateSortBy(v) {
|
9578 | return _this.$emit('update:sort-by', v);
|
9579 | },
|
9580 | 'update:sort-desc': function updateSortDesc(v) {
|
9581 | return _this.$emit('update:sort-desc', v);
|
9582 | },
|
9583 | 'update:group-by': function updateGroupBy(v) {
|
9584 | return _this.$emit('update:group-by', v);
|
9585 | },
|
9586 | 'update:group-desc': function updateGroupDesc(v) {
|
9587 | return _this.$emit('update:group-desc', v);
|
9588 | },
|
9589 | pagination: function pagination(v, old) {
|
9590 | return !Object(_util_helpers__WEBPACK_IMPORTED_MODULE_13__["deepEqual"])(v, old) && _this.$emit('pagination', v);
|
9591 | },
|
9592 | 'current-items': function currentItems(v) {
|
9593 | _this.internalCurrentItems = v;
|
9594 |
|
9595 | _this.$emit('current-items', v);
|
9596 | },
|
9597 | 'page-count': function pageCount(v) {
|
9598 | return _this.$emit('page-count', v);
|
9599 | }
|
9600 | },
|
9601 | scopedSlots: {
|
9602 | default: this.genDefaultScopedSlot
|
9603 | }
|
9604 | });
|
9605 | }
|
9606 | }));
|
9607 |
|
9608 | }),
|
9609 |
|
9610 | "./src/components/VDataTable/VDataTableHeader.sass":
|
9611 |
|
9612 |
|
9613 |
|
9614 |
|
9615 | (function(module, exports, __webpack_require__) {
|
9616 |
|
9617 |
|
9618 |
|
9619 | }),
|
9620 |
|
9621 | "./src/components/VDataTable/VDataTableHeader.ts":
|
9622 |
|
9623 |
|
9624 |
|
9625 |
|
9626 | (function(module, __webpack_exports__, __webpack_require__) {
|
9627 |
|
9628 | "use strict";
|
9629 | __webpack_require__.r(__webpack_exports__);
|
9630 | var _VDataTableHeader_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDataTable/VDataTableHeader.sass");
|
9631 | var _VDataTableHeader_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VDataTableHeader_sass__WEBPACK_IMPORTED_MODULE_0__);
|
9632 | var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "vue");
|
9633 | var vue__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
|
9634 | var _util_dedupeModelListeners__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/dedupeModelListeners.ts");
|
9635 | var _util_rebuildFunctionalSlots__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/rebuildFunctionalSlots.ts");
|
9636 | var _VDataTableHeaderMobile__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VDataTable/VDataTableHeaderMobile.ts");
|
9637 | var _VDataTableHeaderDesktop__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/components/VDataTable/VDataTableHeaderDesktop.ts");
|
9638 |
|
9639 |
|
9640 |
|
9641 |
|
9642 |
|
9643 |
|
9644 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_1___default.a.extend({
|
9645 | name: 'v-data-table-header',
|
9646 | functional: true,
|
9647 | props: {
|
9648 | mobile: Boolean
|
9649 | },
|
9650 | render: function render(h, _a) {
|
9651 | var props = _a.props,
|
9652 | data = _a.data,
|
9653 | slots = _a.slots;
|
9654 | Object(_util_dedupeModelListeners__WEBPACK_IMPORTED_MODULE_2__["default"])(data);
|
9655 | var children = Object(_util_rebuildFunctionalSlots__WEBPACK_IMPORTED_MODULE_3__["default"])(slots(), h);
|
9656 |
|
9657 | if (props.mobile) {
|
9658 | return h(_VDataTableHeaderMobile__WEBPACK_IMPORTED_MODULE_4__["default"], data, children);
|
9659 | } else {
|
9660 | return h(_VDataTableHeaderDesktop__WEBPACK_IMPORTED_MODULE_5__["default"], data, children);
|
9661 | }
|
9662 | }
|
9663 | }));
|
9664 |
|
9665 | }),
|
9666 |
|
9667 | "./src/components/VDataTable/VDataTableHeaderDesktop.ts":
|
9668 |
|
9669 |
|
9670 |
|
9671 |
|
9672 | (function(module, __webpack_exports__, __webpack_require__) {
|
9673 |
|
9674 | "use strict";
|
9675 | __webpack_require__.r(__webpack_exports__);
|
9676 | var _util_mixins__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/mixins.ts");
|
9677 | var _mixins_header__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VDataTable/mixins/header.ts");
|
9678 | var _util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/helpers.ts");
|
9679 | var __read = undefined && undefined.__read || function (o, n) {
|
9680 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
9681 | if (!m) return o;
|
9682 | var i = m.call(o),
|
9683 | r,
|
9684 | ar = [],
|
9685 | e;
|
9686 |
|
9687 | try {
|
9688 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
9689 | ar.push(r.value);
|
9690 | }
|
9691 | } catch (error) {
|
9692 | e = {
|
9693 | error: error
|
9694 | };
|
9695 | } finally {
|
9696 | try {
|
9697 | if (r && !r.done && (m = i["return"])) m.call(i);
|
9698 | } finally {
|
9699 | if (e) throw e.error;
|
9700 | }
|
9701 | }
|
9702 |
|
9703 | return ar;
|
9704 | };
|
9705 |
|
9706 | var __spread = undefined && undefined.__spread || function () {
|
9707 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
9708 | ar = ar.concat(__read(arguments[i]));
|
9709 | }
|
9710 |
|
9711 | return ar;
|
9712 | };
|
9713 |
|
9714 |
|
9715 |
|
9716 |
|
9717 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_0__["default"])(_mixins_header__WEBPACK_IMPORTED_MODULE_1__["default"]).extend({
|
9718 | name: 'v-data-table-header-desktop',
|
9719 | methods: {
|
9720 | genGroupByToggle: function genGroupByToggle(header) {
|
9721 | var _this = this;
|
9722 |
|
9723 | return this.$createElement('span', {
|
9724 | on: {
|
9725 | click: function click() {
|
9726 | return _this.$emit('group', header.value);
|
9727 | }
|
9728 | }
|
9729 | }, ['group']);
|
9730 | },
|
9731 |
|
9732 | genHeader: function genHeader(header) {
|
9733 | var _this = this;
|
9734 |
|
9735 | var listeners = {};
|
9736 | var children = [];
|
9737 | var attrs = {
|
9738 | role: 'columnheader',
|
9739 | scope: 'col',
|
9740 | 'aria-label': header.text || '',
|
9741 | 'aria-sort': 'none'
|
9742 | };
|
9743 | var styles = {
|
9744 | width: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["convertToUnit"])(header.width),
|
9745 | minWidth: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["convertToUnit"])(header.width)
|
9746 | };
|
9747 |
|
9748 | var classes = __spread(["text-" + (header.align || 'start')], Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["wrapInArray"])(header.class));
|
9749 |
|
9750 | if (header.value === 'data-table-select' && !this.singleSelect) {
|
9751 | children.push(this.genSelectAll());
|
9752 | } else {
|
9753 | children.push(this.$scopedSlots[header.value] ? this.$scopedSlots[header.value]({
|
9754 | header: header
|
9755 | }) : this.$createElement('span', [header.text]));
|
9756 |
|
9757 | if (!this.disableSort && (header.sortable || !header.hasOwnProperty('sortable'))) {
|
9758 | listeners['click'] = function () {
|
9759 | return _this.$emit('sort', header.value);
|
9760 | };
|
9761 |
|
9762 | var sortIndex = this.options.sortBy.findIndex(function (k) {
|
9763 | return k === header.value;
|
9764 | });
|
9765 | var beingSorted = sortIndex >= 0;
|
9766 | var isDesc = this.options.sortDesc[sortIndex];
|
9767 | classes.push('sortable');
|
9768 |
|
9769 | if (beingSorted) {
|
9770 | classes.push('active');
|
9771 | classes.push(isDesc ? 'desc' : 'asc');
|
9772 | attrs['aria-sort'] = isDesc ? 'descending' : 'ascending';
|
9773 | attrs['aria-label'] += isDesc ? this.$vuetify.lang.t('$vuetify.dataTable.ariaLabel.sortDescending') : this.$vuetify.lang.t('$vuetify.dataTable.ariaLabel.sortAscending');
|
9774 | } else {
|
9775 | attrs['aria-label'] += this.$vuetify.lang.t('$vuetify.dataTable.ariaLabel.sortNone');
|
9776 | }
|
9777 |
|
9778 | if (header.align === 'end') children.unshift(this.genSortIcon());else children.push(this.genSortIcon());
|
9779 |
|
9780 | if (this.options.multiSort && beingSorted) {
|
9781 | children.push(this.$createElement('span', {
|
9782 | class: 'v-data-table-header__sort-badge'
|
9783 | }, [String(sortIndex + 1)]));
|
9784 | }
|
9785 | }
|
9786 |
|
9787 | if (this.showGroupBy) {
|
9788 | children.push(this.genGroupByToggle(header));
|
9789 | }
|
9790 | }
|
9791 |
|
9792 | return this.$createElement('th', {
|
9793 | attrs: attrs,
|
9794 | class: classes,
|
9795 | style: styles,
|
9796 | on: listeners
|
9797 | }, children);
|
9798 | }
|
9799 | },
|
9800 | render: function render() {
|
9801 | var _this = this;
|
9802 |
|
9803 | return this.$createElement('thead', {
|
9804 | staticClass: 'v-data-table-header'
|
9805 | }, [this.$createElement('tr', this.headers.map(function (header) {
|
9806 | return _this.genHeader(header);
|
9807 | }))]);
|
9808 | }
|
9809 | }));
|
9810 |
|
9811 | }),
|
9812 |
|
9813 | "./src/components/VDataTable/VDataTableHeaderMobile.ts":
|
9814 |
|
9815 |
|
9816 |
|
9817 |
|
9818 | (function(module, __webpack_exports__, __webpack_require__) {
|
9819 |
|
9820 | "use strict";
|
9821 | __webpack_require__.r(__webpack_exports__);
|
9822 | var _util_mixins__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/mixins.ts");
|
9823 | var _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VSelect/VSelect.ts");
|
9824 | var _VChip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VChip/index.ts");
|
9825 | var _mixins_header__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VDataTable/mixins/header.ts");
|
9826 | var _util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/helpers.ts");
|
9827 | var __read = undefined && undefined.__read || function (o, n) {
|
9828 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
9829 | if (!m) return o;
|
9830 | var i = m.call(o),
|
9831 | r,
|
9832 | ar = [],
|
9833 | e;
|
9834 |
|
9835 | try {
|
9836 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
9837 | ar.push(r.value);
|
9838 | }
|
9839 | } catch (error) {
|
9840 | e = {
|
9841 | error: error
|
9842 | };
|
9843 | } finally {
|
9844 | try {
|
9845 | if (r && !r.done && (m = i["return"])) m.call(i);
|
9846 | } finally {
|
9847 | if (e) throw e.error;
|
9848 | }
|
9849 | }
|
9850 |
|
9851 | return ar;
|
9852 | };
|
9853 |
|
9854 | var __spread = undefined && undefined.__spread || function () {
|
9855 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
9856 | ar = ar.concat(__read(arguments[i]));
|
9857 | }
|
9858 |
|
9859 | return ar;
|
9860 | };
|
9861 |
|
9862 |
|
9863 |
|
9864 |
|
9865 |
|
9866 |
|
9867 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_0__["default"])(_mixins_header__WEBPACK_IMPORTED_MODULE_3__["default"]).extend({
|
9868 | name: 'v-data-table-header-mobile',
|
9869 | props: {
|
9870 | sortByText: {
|
9871 | type: String,
|
9872 | default: '$vuetify.dataTable.sortBy'
|
9873 | }
|
9874 | },
|
9875 | methods: {
|
9876 | genSortChip: function genSortChip(props) {
|
9877 | var _this = this;
|
9878 |
|
9879 | var children = [props.item.text];
|
9880 | var sortIndex = this.options.sortBy.findIndex(function (k) {
|
9881 | return k === props.item.value;
|
9882 | });
|
9883 | var beingSorted = sortIndex >= 0;
|
9884 | var isDesc = this.options.sortDesc[sortIndex];
|
9885 | children.push(this.$createElement('div', {
|
9886 | staticClass: 'v-chip__close',
|
9887 | class: {
|
9888 | sortable: true,
|
9889 | active: beingSorted,
|
9890 | asc: beingSorted && !isDesc,
|
9891 | desc: beingSorted && isDesc
|
9892 | }
|
9893 | }, [this.genSortIcon()]));
|
9894 | return this.$createElement(_VChip__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
9895 | staticClass: 'sortable',
|
9896 | nativeOn: {
|
9897 | click: function click(e) {
|
9898 | e.stopPropagation();
|
9899 |
|
9900 | _this.$emit('sort', props.item.value);
|
9901 | }
|
9902 | }
|
9903 | }, children);
|
9904 | },
|
9905 | genSortSelect: function genSortSelect() {
|
9906 | var _this = this;
|
9907 |
|
9908 | var sortHeaders = this.headers.filter(function (h) {
|
9909 | return h.sortable !== false && h.value !== 'data-table-select';
|
9910 | });
|
9911 | return this.$createElement(_VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
9912 | props: {
|
9913 | label: this.$vuetify.lang.t(this.sortByText),
|
9914 | items: sortHeaders,
|
9915 | hideDetails: true,
|
9916 | multiple: this.options.multiSort,
|
9917 | value: this.options.multiSort ? this.options.sortBy : this.options.sortBy[0],
|
9918 | disabled: sortHeaders.length === 0 || this.disableSort
|
9919 | },
|
9920 | on: {
|
9921 | change: function change(v) {
|
9922 | return _this.$emit('sort', v);
|
9923 | }
|
9924 | },
|
9925 | scopedSlots: {
|
9926 | selection: function selection(props) {
|
9927 | return _this.genSortChip(props);
|
9928 | }
|
9929 | }
|
9930 | });
|
9931 | }
|
9932 | },
|
9933 | render: function render(h) {
|
9934 | var children = [];
|
9935 | var header = this.headers.find(function (h) {
|
9936 | return h.value === 'data-table-select';
|
9937 | });
|
9938 |
|
9939 | if (header && !this.singleSelect) {
|
9940 | children.push(this.$createElement('div', {
|
9941 | class: __spread(['v-data-table-header-mobile__select'], Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["wrapInArray"])(header.class)),
|
9942 | attrs: {
|
9943 | width: header.width
|
9944 | }
|
9945 | }, [this.genSelectAll()]));
|
9946 | }
|
9947 |
|
9948 | children.push(this.genSortSelect());
|
9949 | var th = h('th', [h('div', {
|
9950 | staticClass: 'v-data-table-header-mobile__wrapper'
|
9951 | }, children)]);
|
9952 | var tr = h('tr', [th]);
|
9953 | return h('thead', {
|
9954 | staticClass: 'v-data-table-header v-data-table-header-mobile'
|
9955 | }, [tr]);
|
9956 | }
|
9957 | }));
|
9958 |
|
9959 | }),
|
9960 |
|
9961 | "./src/components/VDataTable/VEditDialog.sass":
|
9962 |
|
9963 |
|
9964 |
|
9965 |
|
9966 | (function(module, exports, __webpack_require__) {
|
9967 |
|
9968 |
|
9969 |
|
9970 | }),
|
9971 |
|
9972 | "./src/components/VDataTable/VEditDialog.ts":
|
9973 |
|
9974 |
|
9975 |
|
9976 |
|
9977 | (function(module, __webpack_exports__, __webpack_require__) {
|
9978 |
|
9979 | "use strict";
|
9980 | __webpack_require__.r(__webpack_exports__);
|
9981 | var _VEditDialog_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDataTable/VEditDialog.sass");
|
9982 | var _VEditDialog_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VEditDialog_sass__WEBPACK_IMPORTED_MODULE_0__);
|
9983 | var _mixins_returnable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/returnable/index.ts");
|
9984 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
9985 | var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/helpers.ts");
|
9986 | var _VBtn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VBtn/index.ts");
|
9987 | var _VMenu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/components/VMenu/index.ts");
|
9988 | var _util_mixins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/util/mixins.ts");
|
9989 |
|
9990 |
|
9991 |
|
9992 |
|
9993 |
|
9994 |
|
9995 |
|
9996 |
|
9997 |
|
9998 |
|
9999 |
|
10000 |
|
10001 |
|
10002 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_6__["default"])(_mixins_returnable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]).extend({
|
10003 | name: 'v-edit-dialog',
|
10004 | props: {
|
10005 | cancelText: {
|
10006 | default: 'Cancel'
|
10007 | },
|
10008 | large: Boolean,
|
10009 | eager: Boolean,
|
10010 | persistent: Boolean,
|
10011 | saveText: {
|
10012 | default: 'Save'
|
10013 | },
|
10014 | transition: {
|
10015 | type: String,
|
10016 | default: 'slide-x-reverse-transition'
|
10017 | }
|
10018 | },
|
10019 | data: function data() {
|
10020 | return {
|
10021 | isActive: false
|
10022 | };
|
10023 | },
|
10024 | watch: {
|
10025 | isActive: function isActive(val) {
|
10026 | if (val) {
|
10027 | this.$emit('open');
|
10028 | setTimeout(this.focus, 50);
|
10029 | } else {
|
10030 | this.$emit('close');
|
10031 | }
|
10032 | }
|
10033 | },
|
10034 | methods: {
|
10035 | cancel: function cancel() {
|
10036 | this.isActive = false;
|
10037 | this.$emit('cancel');
|
10038 | },
|
10039 | focus: function focus() {
|
10040 | var input = this.$refs.content.querySelector('input');
|
10041 | input && input.focus();
|
10042 | },
|
10043 | genButton: function genButton(fn, text) {
|
10044 | return this.$createElement(_VBtn__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
10045 | props: {
|
10046 | text: true,
|
10047 | color: 'primary',
|
10048 | light: true
|
10049 | },
|
10050 | on: {
|
10051 | click: fn
|
10052 | }
|
10053 | }, text);
|
10054 | },
|
10055 | genActions: function genActions() {
|
10056 | var _this = this;
|
10057 |
|
10058 | return this.$createElement('div', {
|
10059 | class: 'v-small-dialog__actions'
|
10060 | }, [this.genButton(this.cancel, this.cancelText), this.genButton(function () {
|
10061 | _this.save(_this.returnValue);
|
10062 |
|
10063 | _this.$emit('save');
|
10064 | }, this.saveText)]);
|
10065 | },
|
10066 | genContent: function genContent() {
|
10067 | var _this = this;
|
10068 |
|
10069 | return this.$createElement('div', {
|
10070 | staticClass: 'v-small-dialog__content',
|
10071 | on: {
|
10072 | keydown: function keydown(e) {
|
10073 | var input = _this.$refs.content.querySelector('input');
|
10074 |
|
10075 | e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].esc && _this.cancel();
|
10076 |
|
10077 | if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].enter && input) {
|
10078 | _this.save(input.value);
|
10079 |
|
10080 | _this.$emit('save');
|
10081 | }
|
10082 | }
|
10083 | },
|
10084 | ref: 'content'
|
10085 | }, [this.$slots.input]);
|
10086 | }
|
10087 | },
|
10088 | render: function render(h) {
|
10089 | var _this = this;
|
10090 |
|
10091 | return h(_VMenu__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
10092 | staticClass: 'v-small-dialog',
|
10093 | class: this.themeClasses,
|
10094 | props: {
|
10095 | contentClass: 'v-small-dialog__menu-content',
|
10096 | transition: this.transition,
|
10097 | origin: 'top right',
|
10098 | right: true,
|
10099 | value: this.isActive,
|
10100 | closeOnClick: !this.persistent,
|
10101 | closeOnContentClick: false,
|
10102 | eager: this.eager,
|
10103 | light: this.light,
|
10104 | dark: this.dark
|
10105 | },
|
10106 | on: {
|
10107 | input: function input(val) {
|
10108 | return _this.isActive = val;
|
10109 | }
|
10110 | },
|
10111 | scopedSlots: {
|
10112 | activator: function activator(_a) {
|
10113 | var on = _a.on;
|
10114 | return h('div', {
|
10115 | staticClass: 'v-small-dialog__activator',
|
10116 | on: on
|
10117 | }, [h('span', {
|
10118 | staticClass: 'v-small-dialog__activator__content'
|
10119 | }, _this.$slots.default)]);
|
10120 | }
|
10121 | }
|
10122 | }, [this.genContent(), this.large ? this.genActions() : null]);
|
10123 | }
|
10124 | }));
|
10125 |
|
10126 | }),
|
10127 |
|
10128 | "./src/components/VDataTable/VSimpleTable.sass":
|
10129 |
|
10130 |
|
10131 |
|
10132 |
|
10133 | (function(module, exports, __webpack_require__) {
|
10134 |
|
10135 |
|
10136 |
|
10137 | }),
|
10138 |
|
10139 | "./src/components/VDataTable/VSimpleTable.ts":
|
10140 |
|
10141 |
|
10142 |
|
10143 |
|
10144 | (function(module, __webpack_exports__, __webpack_require__) {
|
10145 |
|
10146 | "use strict";
|
10147 | __webpack_require__.r(__webpack_exports__);
|
10148 | var _VSimpleTable_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDataTable/VSimpleTable.sass");
|
10149 | var _VSimpleTable_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VSimpleTable_sass__WEBPACK_IMPORTED_MODULE_0__);
|
10150 | var _util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/helpers.ts");
|
10151 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
10152 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
10153 | var __assign = undefined && undefined.__assign || function () {
|
10154 | __assign = Object.assign || function (t) {
|
10155 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
10156 | s = arguments[i];
|
10157 |
|
10158 | for (var p in s) {
|
10159 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
10160 | }
|
10161 | }
|
10162 |
|
10163 | return t;
|
10164 | };
|
10165 |
|
10166 | return __assign.apply(this, arguments);
|
10167 | };
|
10168 |
|
10169 |
|
10170 |
|
10171 |
|
10172 |
|
10173 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]).extend({
|
10174 | name: 'v-simple-table',
|
10175 | props: {
|
10176 | dense: Boolean,
|
10177 | fixedHeader: Boolean,
|
10178 | height: [Number, String]
|
10179 | },
|
10180 | computed: {
|
10181 | classes: function classes() {
|
10182 | return __assign({
|
10183 | 'v-data-table--dense': this.dense,
|
10184 | 'v-data-table--fixed-height': !!this.height && !this.fixedHeader,
|
10185 | 'v-data-table--fixed-header': this.fixedHeader
|
10186 | }, this.themeClasses);
|
10187 | }
|
10188 | },
|
10189 | methods: {
|
10190 | genWrapper: function genWrapper() {
|
10191 | return this.$slots.wrapper || this.$createElement('div', {
|
10192 | staticClass: 'v-data-table__wrapper',
|
10193 | style: {
|
10194 | height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["convertToUnit"])(this.height)
|
10195 | }
|
10196 | }, [this.$createElement('table', this.$slots.default)]);
|
10197 | }
|
10198 | },
|
10199 | render: function render(h) {
|
10200 | return h('div', {
|
10201 | staticClass: 'v-data-table',
|
10202 | class: this.classes
|
10203 | }, [this.$slots.top, this.genWrapper(), this.$slots.bottom]);
|
10204 | }
|
10205 | }));
|
10206 |
|
10207 | }),
|
10208 |
|
10209 | "./src/components/VDataTable/VVirtualTable.sass":
|
10210 |
|
10211 |
|
10212 |
|
10213 |
|
10214 | (function(module, exports, __webpack_require__) {
|
10215 |
|
10216 |
|
10217 |
|
10218 | }),
|
10219 |
|
10220 | "./src/components/VDataTable/VVirtualTable.ts":
|
10221 |
|
10222 |
|
10223 |
|
10224 |
|
10225 | (function(module, __webpack_exports__, __webpack_require__) {
|
10226 |
|
10227 | "use strict";
|
10228 | __webpack_require__.r(__webpack_exports__);
|
10229 | var _VVirtualTable_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDataTable/VVirtualTable.sass");
|
10230 | var _VVirtualTable_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VVirtualTable_sass__WEBPACK_IMPORTED_MODULE_0__);
|
10231 | var _VSimpleTable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VDataTable/VSimpleTable.ts");
|
10232 | var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/mixins.ts");
|
10233 | var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/helpers.ts");
|
10234 |
|
10235 |
|
10236 |
|
10237 |
|
10238 |
|
10239 |
|
10240 |
|
10241 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_VSimpleTable__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
10242 | __webpack_exports__["default"] = (baseMixins.extend().extend({
|
10243 | name: 'v-virtual-table',
|
10244 | props: {
|
10245 | chunkSize: {
|
10246 | type: Number,
|
10247 | default: 25
|
10248 | },
|
10249 | headerHeight: {
|
10250 | type: Number,
|
10251 | default: 48
|
10252 | },
|
10253 | items: {
|
10254 | type: Array,
|
10255 | default: function _default() {
|
10256 | return [];
|
10257 | }
|
10258 | },
|
10259 | rowHeight: {
|
10260 | type: Number,
|
10261 | default: 48
|
10262 | }
|
10263 | },
|
10264 | data: function data() {
|
10265 | return {
|
10266 | scrollTop: 0,
|
10267 | oldChunk: 0,
|
10268 | scrollDebounce: null,
|
10269 | invalidateCache: false
|
10270 | };
|
10271 | },
|
10272 | computed: {
|
10273 | itemsLength: function itemsLength() {
|
10274 | return this.items.length;
|
10275 | },
|
10276 | totalHeight: function totalHeight() {
|
10277 | return this.itemsLength * this.rowHeight + this.headerHeight;
|
10278 | },
|
10279 | topIndex: function topIndex() {
|
10280 | return Math.floor(this.scrollTop / this.rowHeight);
|
10281 | },
|
10282 | chunkIndex: function chunkIndex() {
|
10283 | return Math.floor(this.topIndex / this.chunkSize);
|
10284 | },
|
10285 | startIndex: function startIndex() {
|
10286 | return Math.max(0, this.chunkIndex * this.chunkSize - this.chunkSize);
|
10287 | },
|
10288 | offsetTop: function offsetTop() {
|
10289 | return Math.max(0, this.startIndex * this.rowHeight);
|
10290 | },
|
10291 | stopIndex: function stopIndex() {
|
10292 | return Math.min(this.startIndex + this.chunkSize * 3, this.itemsLength);
|
10293 | },
|
10294 | offsetBottom: function offsetBottom() {
|
10295 | return Math.max(0, (this.itemsLength - this.stopIndex - this.startIndex) * this.rowHeight);
|
10296 | }
|
10297 | },
|
10298 | watch: {
|
10299 | chunkIndex: function chunkIndex(newValue, oldValue) {
|
10300 | this.oldChunk = oldValue;
|
10301 | },
|
10302 | items: function items() {
|
10303 | this.cachedItems = null;
|
10304 | this.$refs.table.scrollTop = 0;
|
10305 | }
|
10306 | },
|
10307 | created: function created() {
|
10308 | this.cachedItems = null;
|
10309 | },
|
10310 | mounted: function mounted() {
|
10311 | this.scrollDebounce = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["debounce"])(this.onScroll, 50);
|
10312 | this.$refs.table.addEventListener('scroll', this.scrollDebounce, {
|
10313 | passive: true
|
10314 | });
|
10315 | },
|
10316 | beforeDestroy: function beforeDestroy() {
|
10317 | this.$refs.table.removeEventListener('scroll', this.scrollDebounce);
|
10318 | },
|
10319 | methods: {
|
10320 | createStyleHeight: function createStyleHeight(height) {
|
10321 | return {
|
10322 | height: height + "px"
|
10323 | };
|
10324 | },
|
10325 | genBody: function genBody() {
|
10326 | if (this.cachedItems === null || this.chunkIndex !== this.oldChunk) {
|
10327 | this.cachedItems = this.genItems();
|
10328 | this.oldChunk = this.chunkIndex;
|
10329 | }
|
10330 |
|
10331 | return this.$createElement('tbody', [this.$createElement('tr', {
|
10332 | style: this.createStyleHeight(this.offsetTop)
|
10333 | }), this.cachedItems, this.$createElement('tr', {
|
10334 | style: this.createStyleHeight(this.offsetBottom)
|
10335 | })]);
|
10336 | },
|
10337 | genItems: function genItems() {
|
10338 | return this.$scopedSlots.items({
|
10339 | items: this.items.slice(this.startIndex, this.stopIndex)
|
10340 | });
|
10341 | },
|
10342 | onScroll: function onScroll(e) {
|
10343 | var target = e.target;
|
10344 | this.scrollTop = target.scrollTop;
|
10345 | },
|
10346 | genTable: function genTable() {
|
10347 | return this.$createElement('div', {
|
10348 | ref: 'table',
|
10349 | staticClass: 'v-virtual-table__table'
|
10350 | }, [this.$createElement('table', [this.$slots['body.before'], this.genBody(), this.$slots['body.after']])]);
|
10351 | },
|
10352 | genWrapper: function genWrapper() {
|
10353 | return this.$createElement('div', {
|
10354 | staticClass: 'v-virtual-table__wrapper',
|
10355 | style: {
|
10356 | height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["convertToUnit"])(this.height)
|
10357 | }
|
10358 | }, [this.genTable()]);
|
10359 | }
|
10360 | },
|
10361 | render: function render(h) {
|
10362 | return h('div', {
|
10363 | staticClass: 'v-data-table v-virtual-table',
|
10364 | class: this.classes
|
10365 | }, [this.$slots.top, this.genWrapper(), this.$slots.bottom]);
|
10366 | }
|
10367 | }));
|
10368 |
|
10369 | }),
|
10370 |
|
10371 | "./src/components/VDataTable/index.ts":
|
10372 |
|
10373 |
|
10374 |
|
10375 |
|
10376 | (function(module, __webpack_exports__, __webpack_require__) {
|
10377 |
|
10378 | "use strict";
|
10379 | __webpack_require__.r(__webpack_exports__);
|
10380 | __webpack_require__.d(__webpack_exports__, "VTableOverflow", function() { return VTableOverflow; });
|
10381 | var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/helpers.ts");
|
10382 | var _VDataTable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VDataTable/VDataTable.ts");
|
10383 | __webpack_require__.d(__webpack_exports__, "VDataTable", function() { return _VDataTable__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
10384 |
|
10385 | var _VDataTableHeader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VDataTable/VDataTableHeader.ts");
|
10386 | __webpack_require__.d(__webpack_exports__, "VDataTableHeader", function() { return _VDataTableHeader__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
10387 |
|
10388 | var _VEditDialog__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VDataTable/VEditDialog.ts");
|
10389 | __webpack_require__.d(__webpack_exports__, "VEditDialog", function() { return _VEditDialog__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
10390 |
|
10391 | var _VSimpleTable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VDataTable/VSimpleTable.ts");
|
10392 | __webpack_require__.d(__webpack_exports__, "VSimpleTable", function() { return _VSimpleTable__WEBPACK_IMPORTED_MODULE_4__["default"]; });
|
10393 |
|
10394 | var _VVirtualTable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/components/VDataTable/VVirtualTable.ts");
|
10395 | __webpack_require__.d(__webpack_exports__, "VVirtualTable", function() { return _VVirtualTable__WEBPACK_IMPORTED_MODULE_5__["default"]; });
|
10396 |
|
10397 |
|
10398 |
|
10399 |
|
10400 |
|
10401 |
|
10402 |
|
10403 | var VTableOverflow = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('v-table__overflow');
|
10404 |
|
10405 | __webpack_exports__["default"] = ({
|
10406 | $_vuetify_subcomponents: {
|
10407 | VDataTable: _VDataTable__WEBPACK_IMPORTED_MODULE_1__["default"],
|
10408 | VDataTableHeader: _VDataTableHeader__WEBPACK_IMPORTED_MODULE_2__["default"],
|
10409 | VEditDialog: _VEditDialog__WEBPACK_IMPORTED_MODULE_3__["default"],
|
10410 | VTableOverflow: VTableOverflow,
|
10411 | VSimpleTable: _VSimpleTable__WEBPACK_IMPORTED_MODULE_4__["default"],
|
10412 | VVirtualTable: _VVirtualTable__WEBPACK_IMPORTED_MODULE_5__["default"]
|
10413 | }
|
10414 | });
|
10415 |
|
10416 | }),
|
10417 |
|
10418 | "./src/components/VDataTable/mixins/header.ts":
|
10419 |
|
10420 |
|
10421 |
|
10422 |
|
10423 | (function(module, __webpack_exports__, __webpack_require__) {
|
10424 |
|
10425 | "use strict";
|
10426 | __webpack_require__.r(__webpack_exports__);
|
10427 | var _VIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
10428 | var _VCheckbox_VSimpleCheckbox__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VCheckbox/VSimpleCheckbox.ts");
|
10429 | var _directives_ripple__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/directives/ripple/index.ts");
|
10430 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
10431 | var __assign = undefined && undefined.__assign || function () {
|
10432 | __assign = Object.assign || function (t) {
|
10433 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
10434 | s = arguments[i];
|
10435 |
|
10436 | for (var p in s) {
|
10437 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
10438 | }
|
10439 | }
|
10440 |
|
10441 | return t;
|
10442 | };
|
10443 |
|
10444 | return __assign.apply(this, arguments);
|
10445 | };
|
10446 |
|
10447 |
|
10448 |
|
10449 |
|
10450 |
|
10451 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])().extend({
|
10452 |
|
10453 | directives: {
|
10454 | ripple: _directives_ripple__WEBPACK_IMPORTED_MODULE_2__["default"]
|
10455 | },
|
10456 | props: {
|
10457 | headers: {
|
10458 | type: Array,
|
10459 | required: true
|
10460 | },
|
10461 | options: {
|
10462 | type: Object,
|
10463 | default: function _default() {
|
10464 | return {
|
10465 | page: 1,
|
10466 | itemsPerPage: 10,
|
10467 | sortBy: [],
|
10468 | sortDesc: [],
|
10469 | groupBy: [],
|
10470 | groupDesc: [],
|
10471 | multiSort: false,
|
10472 | mustSort: false
|
10473 | };
|
10474 | }
|
10475 | },
|
10476 | sortIcon: {
|
10477 | type: String,
|
10478 | default: '$sort'
|
10479 | },
|
10480 | everyItem: Boolean,
|
10481 | someItems: Boolean,
|
10482 | showGroupBy: Boolean,
|
10483 | singleSelect: Boolean,
|
10484 | disableSort: Boolean
|
10485 | },
|
10486 | methods: {
|
10487 | genSelectAll: function genSelectAll() {
|
10488 | var _this = this;
|
10489 |
|
10490 | var data = {
|
10491 | props: {
|
10492 | value: this.everyItem,
|
10493 | indeterminate: !this.everyItem && this.someItems
|
10494 | },
|
10495 | on: {
|
10496 | input: function input(v) {
|
10497 | return _this.$emit('toggle-select-all', v);
|
10498 | }
|
10499 | }
|
10500 | };
|
10501 |
|
10502 | if (this.$scopedSlots['data-table-select']) {
|
10503 | return this.$scopedSlots['data-table-select'](data);
|
10504 | }
|
10505 |
|
10506 | return this.$createElement(_VCheckbox_VSimpleCheckbox__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({
|
10507 | staticClass: 'v-data-table__checkbox'
|
10508 | }, data));
|
10509 | },
|
10510 | genSortIcon: function genSortIcon() {
|
10511 | return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
10512 | staticClass: 'v-data-table-header__icon',
|
10513 | props: {
|
10514 | size: 18
|
10515 | }
|
10516 | }, [this.sortIcon]);
|
10517 | }
|
10518 | }
|
10519 | }));
|
10520 |
|
10521 | }),
|
10522 |
|
10523 | "./src/components/VDatePicker/VDatePicker.ts":
|
10524 |
|
10525 |
|
10526 |
|
10527 |
|
10528 | (function(module, __webpack_exports__, __webpack_require__) {
|
10529 |
|
10530 | "use strict";
|
10531 | __webpack_require__.r(__webpack_exports__);
|
10532 | var _VDatePickerTitle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDatePicker/VDatePickerTitle.ts");
|
10533 | var _VDatePickerHeader__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VDatePicker/VDatePickerHeader.ts");
|
10534 | var _VDatePickerDateTable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VDatePicker/VDatePickerDateTable.ts");
|
10535 | var _VDatePickerMonthTable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VDatePicker/VDatePickerMonthTable.ts");
|
10536 | var _VDatePickerYears__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VDatePicker/VDatePickerYears.ts");
|
10537 | var _mixins_localable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/localable/index.ts");
|
10538 | var _mixins_picker__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/mixins/picker/index.ts");
|
10539 | var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/components/VDatePicker/util/index.ts");
|
10540 | var _util_isDateAllowed__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/components/VDatePicker/util/isDateAllowed.ts");
|
10541 | var _util_console__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__( "./src/util/console.ts");
|
10542 | var _VCalendar_util_timestamp__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__( "./src/components/VCalendar/util/timestamp.ts");
|
10543 | var _util_mixins__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__( "./src/util/mixins.ts");
|
10544 | var __read = undefined && undefined.__read || function (o, n) {
|
10545 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
10546 | if (!m) return o;
|
10547 | var i = m.call(o),
|
10548 | r,
|
10549 | ar = [],
|
10550 | e;
|
10551 |
|
10552 | try {
|
10553 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
10554 | ar.push(r.value);
|
10555 | }
|
10556 | } catch (error) {
|
10557 | e = {
|
10558 | error: error
|
10559 | };
|
10560 | } finally {
|
10561 | try {
|
10562 | if (r && !r.done && (m = i["return"])) m.call(i);
|
10563 | } finally {
|
10564 | if (e) throw e.error;
|
10565 | }
|
10566 | }
|
10567 |
|
10568 | return ar;
|
10569 | };
|
10570 |
|
10571 | var __spread = undefined && undefined.__spread || function () {
|
10572 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
10573 | ar = ar.concat(__read(arguments[i]));
|
10574 | }
|
10575 |
|
10576 | return ar;
|
10577 | };
|
10578 |
|
10579 |
|
10580 |
|
10581 |
|
10582 |
|
10583 |
|
10584 |
|
10585 |
|
10586 |
|
10587 |
|
10588 |
|
10589 |
|
10590 |
|
10591 |
|
10592 |
|
10593 |
|
10594 |
|
10595 |
|
10596 | function sanitizeDateString(dateString, type) {
|
10597 | var _a = __read(dateString.split('-'), 3),
|
10598 | year = _a[0],
|
10599 | _b = _a[1],
|
10600 | month = _b === void 0 ? 1 : _b,
|
10601 | _c = _a[2],
|
10602 | date = _c === void 0 ? 1 : _c;
|
10603 |
|
10604 | return (year + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_7__["pad"])(month) + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_7__["pad"])(date)).substr(0, {
|
10605 | date: 10,
|
10606 | month: 7,
|
10607 | year: 4
|
10608 | }[type]);
|
10609 | }
|
10610 |
|
10611 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_11__["default"])(_mixins_localable__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_picker__WEBPACK_IMPORTED_MODULE_6__["default"]
|
10612 |
|
10613 | ).extend({
|
10614 | name: 'v-date-picker',
|
10615 | props: {
|
10616 | allowedDates: Function,
|
10617 |
|
10618 | dayFormat: Function,
|
10619 | disabled: Boolean,
|
10620 | events: {
|
10621 | type: [Array, Function, Object],
|
10622 | default: function _default() {
|
10623 | return null;
|
10624 | }
|
10625 | },
|
10626 | eventColor: {
|
10627 | type: [Array, Function, Object, String],
|
10628 | default: function _default() {
|
10629 | return 'warning';
|
10630 | }
|
10631 | },
|
10632 | firstDayOfWeek: {
|
10633 | type: [String, Number],
|
10634 | default: 0
|
10635 | },
|
10636 |
|
10637 | headerDateFormat: Function,
|
10638 | max: String,
|
10639 | min: String,
|
10640 |
|
10641 | monthFormat: Function,
|
10642 | multiple: Boolean,
|
10643 | nextIcon: {
|
10644 | type: String,
|
10645 | default: '$next'
|
10646 | },
|
10647 | pickerDate: String,
|
10648 | prevIcon: {
|
10649 | type: String,
|
10650 | default: '$prev'
|
10651 | },
|
10652 | range: Boolean,
|
10653 | reactive: Boolean,
|
10654 | readonly: Boolean,
|
10655 | scrollable: Boolean,
|
10656 | showCurrent: {
|
10657 | type: [Boolean, String],
|
10658 | default: true
|
10659 | },
|
10660 | selectedItemsText: {
|
10661 | type: String,
|
10662 | default: '$vuetify.datePicker.itemsSelected'
|
10663 | },
|
10664 | showWeek: Boolean,
|
10665 |
|
10666 | titleDateFormat: Function,
|
10667 | type: {
|
10668 | type: String,
|
10669 | default: 'date',
|
10670 | validator: function validator(type) {
|
10671 | return ['date', 'month'].includes(type);
|
10672 | }
|
10673 | },
|
10674 | value: [Array, String],
|
10675 | weekdayFormat: Function,
|
10676 |
|
10677 | yearFormat: Function,
|
10678 | yearIcon: String
|
10679 | },
|
10680 | data: function data() {
|
10681 | var _this = this;
|
10682 |
|
10683 | var now = new Date();
|
10684 | return {
|
10685 | activePicker: this.type.toUpperCase(),
|
10686 | inputDay: null,
|
10687 | inputMonth: null,
|
10688 | inputYear: null,
|
10689 | isReversing: false,
|
10690 | now: now,
|
10691 |
|
10692 | tableDate: function () {
|
10693 | if (_this.pickerDate) {
|
10694 | return _this.pickerDate;
|
10695 | }
|
10696 |
|
10697 | var date = (_this.multiple || _this.range ? _this.value[_this.value.length - 1] : _this.value) || now.getFullYear() + "-" + (now.getMonth() + 1);
|
10698 | return sanitizeDateString(date, _this.type === 'date' ? 'month' : 'year');
|
10699 | }()
|
10700 | };
|
10701 | },
|
10702 | computed: {
|
10703 | isMultiple: function isMultiple() {
|
10704 | return this.multiple || this.range;
|
10705 | },
|
10706 | lastValue: function lastValue() {
|
10707 | return this.isMultiple ? this.value[this.value.length - 1] : this.value;
|
10708 | },
|
10709 | selectedMonths: function selectedMonths() {
|
10710 | if (!this.value || !this.value.length || this.type === 'month') {
|
10711 | return this.value;
|
10712 | } else if (this.isMultiple) {
|
10713 | return this.value.map(function (val) {
|
10714 | return val.substr(0, 7);
|
10715 | });
|
10716 | } else {
|
10717 | return this.value.substr(0, 7);
|
10718 | }
|
10719 | },
|
10720 | current: function current() {
|
10721 | if (this.showCurrent === true) {
|
10722 | return sanitizeDateString(this.now.getFullYear() + "-" + (this.now.getMonth() + 1) + "-" + this.now.getDate(), this.type);
|
10723 | }
|
10724 |
|
10725 | return this.showCurrent || null;
|
10726 | },
|
10727 | inputDate: function inputDate() {
|
10728 | return this.type === 'date' ? this.inputYear + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_7__["pad"])(this.inputMonth + 1) + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_7__["pad"])(this.inputDay) : this.inputYear + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_7__["pad"])(this.inputMonth + 1);
|
10729 | },
|
10730 | tableMonth: function tableMonth() {
|
10731 | return Number((this.pickerDate || this.tableDate).split('-')[1]) - 1;
|
10732 | },
|
10733 | tableYear: function tableYear() {
|
10734 | return Number((this.pickerDate || this.tableDate).split('-')[0]);
|
10735 | },
|
10736 | minMonth: function minMonth() {
|
10737 | return this.min ? sanitizeDateString(this.min, 'month') : null;
|
10738 | },
|
10739 | maxMonth: function maxMonth() {
|
10740 | return this.max ? sanitizeDateString(this.max, 'month') : null;
|
10741 | },
|
10742 | minYear: function minYear() {
|
10743 | return this.min ? sanitizeDateString(this.min, 'year') : null;
|
10744 | },
|
10745 | maxYear: function maxYear() {
|
10746 | return this.max ? sanitizeDateString(this.max, 'year') : null;
|
10747 | },
|
10748 | formatters: function formatters() {
|
10749 | return {
|
10750 | year: this.yearFormat || Object(_util__WEBPACK_IMPORTED_MODULE_7__["createNativeLocaleFormatter"])(this.currentLocale, {
|
10751 | year: 'numeric',
|
10752 | timeZone: 'UTC'
|
10753 | }, {
|
10754 | length: 4
|
10755 | }),
|
10756 | titleDate: this.titleDateFormat || (this.isMultiple ? this.defaultTitleMultipleDateFormatter : this.defaultTitleDateFormatter)
|
10757 | };
|
10758 | },
|
10759 | defaultTitleMultipleDateFormatter: function defaultTitleMultipleDateFormatter() {
|
10760 | var _this = this;
|
10761 |
|
10762 | return function (dates) {
|
10763 | if (!dates.length) {
|
10764 | return '-';
|
10765 | }
|
10766 |
|
10767 | if (dates.length === 1) {
|
10768 | return _this.defaultTitleDateFormatter(dates[0]);
|
10769 | }
|
10770 |
|
10771 | return _this.$vuetify.lang.t(_this.selectedItemsText, dates.length);
|
10772 | };
|
10773 | },
|
10774 | defaultTitleDateFormatter: function defaultTitleDateFormatter() {
|
10775 | var titleFormats = {
|
10776 | year: {
|
10777 | year: 'numeric',
|
10778 | timeZone: 'UTC'
|
10779 | },
|
10780 | month: {
|
10781 | month: 'long',
|
10782 | timeZone: 'UTC'
|
10783 | },
|
10784 | date: {
|
10785 | weekday: 'short',
|
10786 | month: 'short',
|
10787 | day: 'numeric',
|
10788 | timeZone: 'UTC'
|
10789 | }
|
10790 | };
|
10791 | var titleDateFormatter = Object(_util__WEBPACK_IMPORTED_MODULE_7__["createNativeLocaleFormatter"])(this.currentLocale, titleFormats[this.type], {
|
10792 | start: 0,
|
10793 | length: {
|
10794 | date: 10,
|
10795 | month: 7,
|
10796 | year: 4
|
10797 | }[this.type]
|
10798 | });
|
10799 |
|
10800 | var landscapeFormatter = function landscapeFormatter(date) {
|
10801 | return titleDateFormatter(date).replace(/([^\d\s])([\d])/g, function (match, nonDigit, digit) {
|
10802 | return nonDigit + " " + digit;
|
10803 | }).replace(', ', ',<br>');
|
10804 | };
|
10805 |
|
10806 | return this.landscape ? landscapeFormatter : titleDateFormatter;
|
10807 | }
|
10808 | },
|
10809 | watch: {
|
10810 | tableDate: function tableDate(val, prev) {
|
10811 |
|
10812 |
|
10813 | var sanitizeType = this.type === 'month' ? 'year' : 'month';
|
10814 | this.isReversing = sanitizeDateString(val, sanitizeType) < sanitizeDateString(prev, sanitizeType);
|
10815 | this.$emit('update:picker-date', val);
|
10816 | },
|
10817 | pickerDate: function pickerDate(val) {
|
10818 | if (val) {
|
10819 | this.tableDate = val;
|
10820 | } else if (this.lastValue && this.type === 'date') {
|
10821 | this.tableDate = sanitizeDateString(this.lastValue, 'month');
|
10822 | } else if (this.lastValue && this.type === 'month') {
|
10823 | this.tableDate = sanitizeDateString(this.lastValue, 'year');
|
10824 | }
|
10825 | },
|
10826 | value: function value(newValue, oldValue) {
|
10827 | this.checkMultipleProp();
|
10828 | this.setInputDate();
|
10829 |
|
10830 | if (!this.isMultiple && this.value && !this.pickerDate) {
|
10831 | this.tableDate = sanitizeDateString(this.inputDate, this.type === 'month' ? 'year' : 'month');
|
10832 | } else if (this.isMultiple && this.value.length && !oldValue.length && !this.pickerDate) {
|
10833 | this.tableDate = sanitizeDateString(this.inputDate, this.type === 'month' ? 'year' : 'month');
|
10834 | }
|
10835 | },
|
10836 | type: function type(_type) {
|
10837 | this.activePicker = _type.toUpperCase();
|
10838 |
|
10839 | if (this.value && this.value.length) {
|
10840 | var output = (this.isMultiple ? this.value : [this.value]).map(function (val) {
|
10841 | return sanitizeDateString(val, _type);
|
10842 | }).filter(this.isDateAllowed);
|
10843 | this.$emit('input', this.isMultiple ? output : output[0]);
|
10844 | }
|
10845 | }
|
10846 | },
|
10847 | created: function created() {
|
10848 | this.checkMultipleProp();
|
10849 |
|
10850 | if (this.pickerDate !== this.tableDate) {
|
10851 | this.$emit('update:picker-date', this.tableDate);
|
10852 | }
|
10853 |
|
10854 | this.setInputDate();
|
10855 | },
|
10856 | methods: {
|
10857 | emitInput: function emitInput(newInput) {
|
10858 | if (this.range && this.value) {
|
10859 | this.value.length === 2 ? this.$emit('input', [newInput]) : this.$emit('input', __spread(this.value, [newInput]));
|
10860 | return;
|
10861 | }
|
10862 |
|
10863 | var output = this.multiple ? this.value.indexOf(newInput) === -1 ? this.value.concat([newInput]) : this.value.filter(function (x) {
|
10864 | return x !== newInput;
|
10865 | }) : newInput;
|
10866 | this.$emit('input', output);
|
10867 | this.multiple || this.$emit('change', newInput);
|
10868 | },
|
10869 | checkMultipleProp: function checkMultipleProp() {
|
10870 | if (this.value == null) return;
|
10871 | var valueType = this.value.constructor.name;
|
10872 | var expected = this.isMultiple ? 'Array' : 'String';
|
10873 |
|
10874 | if (valueType !== expected) {
|
10875 | Object(_util_console__WEBPACK_IMPORTED_MODULE_9__["consoleWarn"])("Value must be " + (this.isMultiple ? 'an' : 'a') + " " + expected + ", got " + valueType, this);
|
10876 | }
|
10877 | },
|
10878 | isDateAllowed: function isDateAllowed(value) {
|
10879 | return Object(_util_isDateAllowed__WEBPACK_IMPORTED_MODULE_8__["default"])(value, this.min, this.max, this.allowedDates);
|
10880 | },
|
10881 | yearClick: function yearClick(value) {
|
10882 | this.inputYear = value;
|
10883 |
|
10884 | if (this.type === 'month') {
|
10885 | this.tableDate = "" + value;
|
10886 | } else {
|
10887 | this.tableDate = value + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_7__["pad"])((this.tableMonth || 0) + 1);
|
10888 | }
|
10889 |
|
10890 | this.activePicker = 'MONTH';
|
10891 |
|
10892 | if (this.reactive && !this.readonly && !this.isMultiple && this.isDateAllowed(this.inputDate)) {
|
10893 | this.$emit('input', this.inputDate);
|
10894 | }
|
10895 | },
|
10896 | monthClick: function monthClick(value) {
|
10897 | this.inputYear = parseInt(value.split('-')[0], 10);
|
10898 | this.inputMonth = parseInt(value.split('-')[1], 10) - 1;
|
10899 |
|
10900 | if (this.type === 'date') {
|
10901 | if (this.inputDay) {
|
10902 | this.inputDay = Math.min(this.inputDay, Object(_VCalendar_util_timestamp__WEBPACK_IMPORTED_MODULE_10__["daysInMonth"])(this.inputYear, this.inputMonth + 1));
|
10903 | }
|
10904 |
|
10905 | this.tableDate = value;
|
10906 | this.activePicker = 'DATE';
|
10907 |
|
10908 | if (this.reactive && !this.readonly && !this.isMultiple && this.isDateAllowed(this.inputDate)) {
|
10909 | this.$emit('input', this.inputDate);
|
10910 | }
|
10911 | } else {
|
10912 | this.emitInput(this.inputDate);
|
10913 | }
|
10914 | },
|
10915 | dateClick: function dateClick(value) {
|
10916 | this.inputYear = parseInt(value.split('-')[0], 10);
|
10917 | this.inputMonth = parseInt(value.split('-')[1], 10) - 1;
|
10918 | this.inputDay = parseInt(value.split('-')[2], 10);
|
10919 | this.emitInput(this.inputDate);
|
10920 | },
|
10921 | genPickerTitle: function genPickerTitle() {
|
10922 | var _this = this;
|
10923 |
|
10924 | return this.$createElement(_VDatePickerTitle__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
10925 | props: {
|
10926 | date: this.value ? this.formatters.titleDate(this.value) : '',
|
10927 | disabled: this.disabled,
|
10928 | readonly: this.readonly,
|
10929 | selectingYear: this.activePicker === 'YEAR',
|
10930 | year: this.formatters.year(this.value ? "" + this.inputYear : this.tableDate),
|
10931 | yearIcon: this.yearIcon,
|
10932 | value: this.isMultiple ? this.value[0] : this.value
|
10933 | },
|
10934 | slot: 'title',
|
10935 | on: {
|
10936 | 'update:selecting-year': function updateSelectingYear(value) {
|
10937 | return _this.activePicker = value ? 'YEAR' : _this.type.toUpperCase();
|
10938 | }
|
10939 | }
|
10940 | });
|
10941 | },
|
10942 | genTableHeader: function genTableHeader() {
|
10943 | var _this = this;
|
10944 |
|
10945 | return this.$createElement(_VDatePickerHeader__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
10946 | props: {
|
10947 | nextIcon: this.nextIcon,
|
10948 | color: this.color,
|
10949 | dark: this.dark,
|
10950 | disabled: this.disabled,
|
10951 | format: this.headerDateFormat,
|
10952 | light: this.light,
|
10953 | locale: this.locale,
|
10954 | min: this.activePicker === 'DATE' ? this.minMonth : this.minYear,
|
10955 | max: this.activePicker === 'DATE' ? this.maxMonth : this.maxYear,
|
10956 | prevIcon: this.prevIcon,
|
10957 | readonly: this.readonly,
|
10958 | value: this.activePicker === 'DATE' ? Object(_util__WEBPACK_IMPORTED_MODULE_7__["pad"])(this.tableYear, 4) + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_7__["pad"])(this.tableMonth + 1) : "" + Object(_util__WEBPACK_IMPORTED_MODULE_7__["pad"])(this.tableYear, 4)
|
10959 | },
|
10960 | on: {
|
10961 | toggle: function toggle() {
|
10962 | return _this.activePicker = _this.activePicker === 'DATE' ? 'MONTH' : 'YEAR';
|
10963 | },
|
10964 | input: function input(value) {
|
10965 | return _this.tableDate = value;
|
10966 | }
|
10967 | }
|
10968 | });
|
10969 | },
|
10970 | genDateTable: function genDateTable() {
|
10971 | var _this = this;
|
10972 |
|
10973 | return this.$createElement(_VDatePickerDateTable__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
10974 | props: {
|
10975 | allowedDates: this.allowedDates,
|
10976 | color: this.color,
|
10977 | current: this.current,
|
10978 | dark: this.dark,
|
10979 | disabled: this.disabled,
|
10980 | events: this.events,
|
10981 | eventColor: this.eventColor,
|
10982 | firstDayOfWeek: this.firstDayOfWeek,
|
10983 | format: this.dayFormat,
|
10984 | light: this.light,
|
10985 | locale: this.locale,
|
10986 | min: this.min,
|
10987 | max: this.max,
|
10988 | range: this.range,
|
10989 | readonly: this.readonly,
|
10990 | scrollable: this.scrollable,
|
10991 | showWeek: this.showWeek,
|
10992 | tableDate: Object(_util__WEBPACK_IMPORTED_MODULE_7__["pad"])(this.tableYear, 4) + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_7__["pad"])(this.tableMonth + 1),
|
10993 | value: this.value,
|
10994 | weekdayFormat: this.weekdayFormat
|
10995 | },
|
10996 | ref: 'table',
|
10997 | on: {
|
10998 | input: this.dateClick,
|
10999 | 'update:table-date': function updateTableDate(value) {
|
11000 | return _this.tableDate = value;
|
11001 | },
|
11002 | 'click:date': function clickDate(value) {
|
11003 | return _this.$emit('click:date', value);
|
11004 | },
|
11005 | 'dblclick:date': function dblclickDate(value) {
|
11006 | return _this.$emit('dblclick:date', value);
|
11007 | }
|
11008 | }
|
11009 | });
|
11010 | },
|
11011 | genMonthTable: function genMonthTable() {
|
11012 | var _this = this;
|
11013 |
|
11014 | return this.$createElement(_VDatePickerMonthTable__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
11015 | props: {
|
11016 | allowedDates: this.type === 'month' ? this.allowedDates : null,
|
11017 | color: this.color,
|
11018 | current: this.current ? sanitizeDateString(this.current, 'month') : null,
|
11019 | dark: this.dark,
|
11020 | disabled: this.disabled,
|
11021 | events: this.type === 'month' ? this.events : null,
|
11022 | eventColor: this.type === 'month' ? this.eventColor : null,
|
11023 | format: this.monthFormat,
|
11024 | light: this.light,
|
11025 | locale: this.locale,
|
11026 | min: this.minMonth,
|
11027 | max: this.maxMonth,
|
11028 | readonly: this.readonly && this.type === 'month',
|
11029 | scrollable: this.scrollable,
|
11030 | value: this.selectedMonths,
|
11031 | tableDate: "" + Object(_util__WEBPACK_IMPORTED_MODULE_7__["pad"])(this.tableYear, 4)
|
11032 | },
|
11033 | ref: 'table',
|
11034 | on: {
|
11035 | input: this.monthClick,
|
11036 | 'update:table-date': function updateTableDate(value) {
|
11037 | return _this.tableDate = value;
|
11038 | },
|
11039 | 'click:month': function clickMonth(value) {
|
11040 | return _this.$emit('click:month', value);
|
11041 | },
|
11042 | 'dblclick:month': function dblclickMonth(value) {
|
11043 | return _this.$emit('dblclick:month', value);
|
11044 | }
|
11045 | }
|
11046 | });
|
11047 | },
|
11048 | genYears: function genYears() {
|
11049 | return this.$createElement(_VDatePickerYears__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
11050 | props: {
|
11051 | color: this.color,
|
11052 | format: this.yearFormat,
|
11053 | locale: this.locale,
|
11054 | min: this.minYear,
|
11055 | max: this.maxYear,
|
11056 | value: this.tableYear
|
11057 | },
|
11058 | on: {
|
11059 | input: this.yearClick
|
11060 | }
|
11061 | });
|
11062 | },
|
11063 | genPickerBody: function genPickerBody() {
|
11064 | var children = this.activePicker === 'YEAR' ? [this.genYears()] : [this.genTableHeader(), this.activePicker === 'DATE' ? this.genDateTable() : this.genMonthTable()];
|
11065 | return this.$createElement('div', {
|
11066 | key: this.activePicker
|
11067 | }, children);
|
11068 | },
|
11069 | setInputDate: function setInputDate() {
|
11070 | if (this.lastValue) {
|
11071 | var array = this.lastValue.split('-');
|
11072 | this.inputYear = parseInt(array[0], 10);
|
11073 | this.inputMonth = parseInt(array[1], 10) - 1;
|
11074 |
|
11075 | if (this.type === 'date') {
|
11076 | this.inputDay = parseInt(array[2], 10);
|
11077 | }
|
11078 | } else {
|
11079 | this.inputYear = this.inputYear || this.now.getFullYear();
|
11080 | this.inputMonth = this.inputMonth == null ? this.inputMonth : this.now.getMonth();
|
11081 | this.inputDay = this.inputDay || this.now.getDate();
|
11082 | }
|
11083 | }
|
11084 | },
|
11085 | render: function render() {
|
11086 | return this.genPicker('v-picker--date');
|
11087 | }
|
11088 | }));
|
11089 |
|
11090 | }),
|
11091 |
|
11092 | "./src/components/VDatePicker/VDatePickerDateTable.ts":
|
11093 |
|
11094 |
|
11095 |
|
11096 |
|
11097 | (function(module, __webpack_exports__, __webpack_require__) {
|
11098 |
|
11099 | "use strict";
|
11100 | __webpack_require__.r(__webpack_exports__);
|
11101 | var _mixins_date_picker_table__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDatePicker/mixins/date-picker-table.ts");
|
11102 | var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VDatePicker/util/index.ts");
|
11103 | var _util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/helpers.ts");
|
11104 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
11105 |
|
11106 |
|
11107 |
|
11108 |
|
11109 |
|
11110 |
|
11111 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_date_picker_table__WEBPACK_IMPORTED_MODULE_0__["default"]
|
11112 |
|
11113 | ).extend({
|
11114 | name: 'v-date-picker-date-table',
|
11115 | props: {
|
11116 | firstDayOfWeek: {
|
11117 | type: [String, Number],
|
11118 | default: 0
|
11119 | },
|
11120 | showWeek: Boolean,
|
11121 | weekdayFormat: Function
|
11122 | },
|
11123 | computed: {
|
11124 | formatter: function formatter() {
|
11125 | return this.format || Object(_util__WEBPACK_IMPORTED_MODULE_1__["createNativeLocaleFormatter"])(this.currentLocale, {
|
11126 | day: 'numeric',
|
11127 | timeZone: 'UTC'
|
11128 | }, {
|
11129 | start: 8,
|
11130 | length: 2
|
11131 | });
|
11132 | },
|
11133 | weekdayFormatter: function weekdayFormatter() {
|
11134 | return this.weekdayFormat || Object(_util__WEBPACK_IMPORTED_MODULE_1__["createNativeLocaleFormatter"])(this.currentLocale, {
|
11135 | weekday: 'narrow',
|
11136 | timeZone: 'UTC'
|
11137 | });
|
11138 | },
|
11139 | weekDays: function weekDays() {
|
11140 | var _this = this;
|
11141 |
|
11142 | var first = parseInt(this.firstDayOfWeek, 10);
|
11143 | return this.weekdayFormatter ? Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["createRange"])(7).map(function (i) {
|
11144 | return _this.weekdayFormatter("2017-01-" + (first + i + 15));
|
11145 | })
|
11146 | : Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["createRange"])(7).map(function (i) {
|
11147 | return ['S', 'M', 'T', 'W', 'T', 'F', 'S'][(i + first) % 7];
|
11148 | });
|
11149 | }
|
11150 | },
|
11151 | methods: {
|
11152 | calculateTableDate: function calculateTableDate(delta) {
|
11153 | return Object(_util__WEBPACK_IMPORTED_MODULE_1__["monthChange"])(this.tableDate, Math.sign(delta || 1));
|
11154 | },
|
11155 | genTHead: function genTHead() {
|
11156 | var _this = this;
|
11157 |
|
11158 | var days = this.weekDays.map(function (day) {
|
11159 | return _this.$createElement('th', day);
|
11160 | });
|
11161 | this.showWeek && days.unshift(this.$createElement('th'));
|
11162 | return this.$createElement('thead', this.genTR(days));
|
11163 | },
|
11164 |
|
11165 | weekDaysBeforeFirstDayOfTheMonth: function weekDaysBeforeFirstDayOfTheMonth() {
|
11166 | var firstDayOfTheMonth = new Date(this.displayedYear + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_1__["pad"])(this.displayedMonth + 1) + "-01T00:00:00+00:00");
|
11167 | var weekDay = firstDayOfTheMonth.getUTCDay();
|
11168 | return (weekDay - parseInt(this.firstDayOfWeek) + 7) % 7;
|
11169 | },
|
11170 | getWeekNumber: function getWeekNumber() {
|
11171 | var dayOfYear = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334][this.displayedMonth];
|
11172 |
|
11173 | if (this.displayedMonth > 1 && (this.displayedYear % 4 === 0 && this.displayedYear % 100 !== 0 || this.displayedYear % 400 === 0)) {
|
11174 | dayOfYear++;
|
11175 | }
|
11176 |
|
11177 | var offset = (this.displayedYear + (this.displayedYear - 1 >> 2) - Math.floor((this.displayedYear - 1) / 100) + Math.floor((this.displayedYear - 1) / 400) - Number(this.firstDayOfWeek)) % 7;
|
11178 |
|
11179 | return Math.floor((dayOfYear + offset) / 7) + 1;
|
11180 | },
|
11181 | genWeekNumber: function genWeekNumber(weekNumber) {
|
11182 | return this.$createElement('td', [this.$createElement('small', {
|
11183 | staticClass: 'v-date-picker-table--date__week'
|
11184 | }, String(weekNumber).padStart(2, '0'))]);
|
11185 | },
|
11186 | genTBody: function genTBody() {
|
11187 | var children = [];
|
11188 | var daysInMonth = new Date(this.displayedYear, this.displayedMonth + 1, 0).getDate();
|
11189 | var rows = [];
|
11190 | var day = this.weekDaysBeforeFirstDayOfTheMonth();
|
11191 | var weekNumber = this.getWeekNumber();
|
11192 | this.showWeek && rows.push(this.genWeekNumber(weekNumber++));
|
11193 |
|
11194 | while (day--) {
|
11195 | rows.push(this.$createElement('td'));
|
11196 | }
|
11197 |
|
11198 | for (day = 1; day <= daysInMonth; day++) {
|
11199 | var date = this.displayedYear + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_1__["pad"])(this.displayedMonth + 1) + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_1__["pad"])(day);
|
11200 | rows.push(this.$createElement('td', [this.genButton(date, true, 'date', this.formatter)]));
|
11201 |
|
11202 | if (rows.length % (this.showWeek ? 8 : 7) === 0) {
|
11203 | children.push(this.genTR(rows));
|
11204 | rows = [];
|
11205 | day < daysInMonth && this.showWeek && rows.push(this.genWeekNumber(weekNumber++));
|
11206 | }
|
11207 | }
|
11208 |
|
11209 | if (rows.length) {
|
11210 | children.push(this.genTR(rows));
|
11211 | }
|
11212 |
|
11213 | return this.$createElement('tbody', children);
|
11214 | },
|
11215 | genTR: function genTR(children) {
|
11216 | return [this.$createElement('tr', children)];
|
11217 | }
|
11218 | },
|
11219 | render: function render() {
|
11220 | return this.genTable('v-date-picker-table v-date-picker-table--date', [this.genTHead(), this.genTBody()], this.calculateTableDate);
|
11221 | }
|
11222 | }));
|
11223 |
|
11224 | }),
|
11225 |
|
11226 | "./src/components/VDatePicker/VDatePickerHeader.sass":
|
11227 |
|
11228 |
|
11229 |
|
11230 |
|
11231 | (function(module, exports, __webpack_require__) {
|
11232 |
|
11233 |
|
11234 |
|
11235 | }),
|
11236 |
|
11237 | "./src/components/VDatePicker/VDatePickerHeader.ts":
|
11238 |
|
11239 |
|
11240 |
|
11241 |
|
11242 | (function(module, __webpack_exports__, __webpack_require__) {
|
11243 |
|
11244 | "use strict";
|
11245 | __webpack_require__.r(__webpack_exports__);
|
11246 | var _VDatePickerHeader_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDatePicker/VDatePickerHeader.sass");
|
11247 | var _VDatePickerHeader_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VDatePickerHeader_sass__WEBPACK_IMPORTED_MODULE_0__);
|
11248 | var _VBtn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VBtn/index.ts");
|
11249 | var _VIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
11250 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
11251 | var _mixins_localable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/localable/index.ts");
|
11252 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
11253 | var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/components/VDatePicker/util/index.ts");
|
11254 | var _util_mixins__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/util/mixins.ts");
|
11255 | var __assign = undefined && undefined.__assign || function () {
|
11256 | __assign = Object.assign || function (t) {
|
11257 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
11258 | s = arguments[i];
|
11259 |
|
11260 | for (var p in s) {
|
11261 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
11262 | }
|
11263 | }
|
11264 |
|
11265 | return t;
|
11266 | };
|
11267 |
|
11268 | return __assign.apply(this, arguments);
|
11269 | };
|
11270 |
|
11271 | var __read = undefined && undefined.__read || function (o, n) {
|
11272 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
11273 | if (!m) return o;
|
11274 | var i = m.call(o),
|
11275 | r,
|
11276 | ar = [],
|
11277 | e;
|
11278 |
|
11279 | try {
|
11280 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
11281 | ar.push(r.value);
|
11282 | }
|
11283 | } catch (error) {
|
11284 | e = {
|
11285 | error: error
|
11286 | };
|
11287 | } finally {
|
11288 | try {
|
11289 | if (r && !r.done && (m = i["return"])) m.call(i);
|
11290 | } finally {
|
11291 | if (e) throw e.error;
|
11292 | }
|
11293 | }
|
11294 |
|
11295 | return ar;
|
11296 | };
|
11297 |
|
11298 |
|
11299 |
|
11300 |
|
11301 |
|
11302 |
|
11303 |
|
11304 |
|
11305 |
|
11306 |
|
11307 |
|
11308 |
|
11309 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_localable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__["default"]
|
11310 |
|
11311 | ).extend({
|
11312 | name: 'v-date-picker-header',
|
11313 | props: {
|
11314 | disabled: Boolean,
|
11315 | format: Function,
|
11316 | min: String,
|
11317 | max: String,
|
11318 | nextIcon: {
|
11319 | type: String,
|
11320 | default: '$next'
|
11321 | },
|
11322 | prevIcon: {
|
11323 | type: String,
|
11324 | default: '$prev'
|
11325 | },
|
11326 | readonly: Boolean,
|
11327 | value: {
|
11328 | type: [Number, String],
|
11329 | required: true
|
11330 | }
|
11331 | },
|
11332 | data: function data() {
|
11333 | return {
|
11334 | isReversing: false
|
11335 | };
|
11336 | },
|
11337 | computed: {
|
11338 | formatter: function formatter() {
|
11339 | if (this.format) {
|
11340 | return this.format;
|
11341 | } else if (String(this.value).split('-')[1]) {
|
11342 | return Object(_util__WEBPACK_IMPORTED_MODULE_6__["createNativeLocaleFormatter"])(this.currentLocale, {
|
11343 | month: 'long',
|
11344 | year: 'numeric',
|
11345 | timeZone: 'UTC'
|
11346 | }, {
|
11347 | length: 7
|
11348 | });
|
11349 | } else {
|
11350 | return Object(_util__WEBPACK_IMPORTED_MODULE_6__["createNativeLocaleFormatter"])(this.currentLocale, {
|
11351 | year: 'numeric',
|
11352 | timeZone: 'UTC'
|
11353 | }, {
|
11354 | length: 4
|
11355 | });
|
11356 | }
|
11357 | }
|
11358 | },
|
11359 | watch: {
|
11360 | value: function value(newVal, oldVal) {
|
11361 | this.isReversing = newVal < oldVal;
|
11362 | }
|
11363 | },
|
11364 | methods: {
|
11365 | genBtn: function genBtn(change) {
|
11366 | var _this = this;
|
11367 |
|
11368 | var disabled = this.disabled || change < 0 && this.min && this.calculateChange(change) < this.min || change > 0 && this.max && this.calculateChange(change) > this.max;
|
11369 | return this.$createElement(_VBtn__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
11370 | props: {
|
11371 | dark: this.dark,
|
11372 | disabled: disabled,
|
11373 | icon: true,
|
11374 | light: this.light
|
11375 | },
|
11376 | nativeOn: {
|
11377 | click: function click(e) {
|
11378 | e.stopPropagation();
|
11379 |
|
11380 | _this.$emit('input', _this.calculateChange(change));
|
11381 | }
|
11382 | }
|
11383 | }, [this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_2__["default"], change < 0 === !this.$vuetify.rtl ? this.prevIcon : this.nextIcon)]);
|
11384 | },
|
11385 | calculateChange: function calculateChange(sign) {
|
11386 | var _a = __read(String(this.value).split('-').map(Number), 2),
|
11387 | year = _a[0],
|
11388 | month = _a[1];
|
11389 |
|
11390 | if (month == null) {
|
11391 | return "" + (year + sign);
|
11392 | } else {
|
11393 | return Object(_util__WEBPACK_IMPORTED_MODULE_6__["monthChange"])(String(this.value), sign);
|
11394 | }
|
11395 | },
|
11396 | genHeader: function genHeader() {
|
11397 | var _this = this;
|
11398 |
|
11399 | var color = !this.disabled && (this.color || 'accent');
|
11400 | var header = this.$createElement('div', this.setTextColor(color, {
|
11401 | key: String(this.value)
|
11402 | }), [this.$createElement('button', {
|
11403 | attrs: {
|
11404 | type: 'button'
|
11405 | },
|
11406 | on: {
|
11407 | click: function click() {
|
11408 | return _this.$emit('toggle');
|
11409 | }
|
11410 | }
|
11411 | }, [this.$slots.default || this.formatter(String(this.value))])]);
|
11412 | var transition = this.$createElement('transition', {
|
11413 | props: {
|
11414 | name: this.isReversing === !this.$vuetify.rtl ? 'tab-reverse-transition' : 'tab-transition'
|
11415 | }
|
11416 | }, [header]);
|
11417 | return this.$createElement('div', {
|
11418 | staticClass: 'v-date-picker-header__value',
|
11419 | class: {
|
11420 | 'v-date-picker-header__value--disabled': this.disabled
|
11421 | }
|
11422 | }, [transition]);
|
11423 | }
|
11424 | },
|
11425 | render: function render() {
|
11426 | return this.$createElement('div', {
|
11427 | staticClass: 'v-date-picker-header',
|
11428 | class: __assign({
|
11429 | 'v-date-picker-header--disabled': this.disabled
|
11430 | }, this.themeClasses)
|
11431 | }, [this.genBtn(-1), this.genHeader(), this.genBtn(+1)]);
|
11432 | }
|
11433 | }));
|
11434 |
|
11435 | }),
|
11436 |
|
11437 | "./src/components/VDatePicker/VDatePickerMonthTable.ts":
|
11438 |
|
11439 |
|
11440 |
|
11441 |
|
11442 | (function(module, __webpack_exports__, __webpack_require__) {
|
11443 |
|
11444 | "use strict";
|
11445 | __webpack_require__.r(__webpack_exports__);
|
11446 | var _mixins_date_picker_table__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDatePicker/mixins/date-picker-table.ts");
|
11447 | var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VDatePicker/util/index.ts");
|
11448 | var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/mixins.ts");
|
11449 |
|
11450 |
|
11451 |
|
11452 |
|
11453 |
|
11454 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_mixins_date_picker_table__WEBPACK_IMPORTED_MODULE_0__["default"]
|
11455 |
|
11456 | ).extend({
|
11457 | name: 'v-date-picker-month-table',
|
11458 | computed: {
|
11459 | formatter: function formatter() {
|
11460 | return this.format || Object(_util__WEBPACK_IMPORTED_MODULE_1__["createNativeLocaleFormatter"])(this.currentLocale, {
|
11461 | month: 'short',
|
11462 | timeZone: 'UTC'
|
11463 | }, {
|
11464 | start: 5,
|
11465 | length: 2
|
11466 | });
|
11467 | }
|
11468 | },
|
11469 | methods: {
|
11470 | calculateTableDate: function calculateTableDate(delta) {
|
11471 | return "" + (parseInt(this.tableDate, 10) + Math.sign(delta || 1));
|
11472 | },
|
11473 | genTBody: function genTBody() {
|
11474 | var _this = this;
|
11475 |
|
11476 | var children = [];
|
11477 | var cols = Array(3).fill(null);
|
11478 | var rows = 12 / cols.length;
|
11479 |
|
11480 | var _loop_1 = function _loop_1(row) {
|
11481 | var tds = cols.map(function (_, col) {
|
11482 | var month = row * cols.length + col;
|
11483 | var date = _this.displayedYear + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_1__["pad"])(month + 1);
|
11484 | return _this.$createElement('td', {
|
11485 | key: month
|
11486 | }, [_this.genButton(date, false, 'month', _this.formatter)]);
|
11487 | });
|
11488 | children.push(this_1.$createElement('tr', {
|
11489 | key: row
|
11490 | }, tds));
|
11491 | };
|
11492 |
|
11493 | var this_1 = this;
|
11494 |
|
11495 | for (var row = 0; row < rows; row++) {
|
11496 | _loop_1(row);
|
11497 | }
|
11498 |
|
11499 | return this.$createElement('tbody', children);
|
11500 | }
|
11501 | },
|
11502 | render: function render() {
|
11503 | return this.genTable('v-date-picker-table v-date-picker-table--month', [this.genTBody()], this.calculateTableDate);
|
11504 | }
|
11505 | }));
|
11506 |
|
11507 | }),
|
11508 |
|
11509 | "./src/components/VDatePicker/VDatePickerTable.sass":
|
11510 |
|
11511 |
|
11512 |
|
11513 |
|
11514 | (function(module, exports, __webpack_require__) {
|
11515 |
|
11516 |
|
11517 |
|
11518 | }),
|
11519 |
|
11520 | "./src/components/VDatePicker/VDatePickerTitle.sass":
|
11521 |
|
11522 |
|
11523 |
|
11524 |
|
11525 | (function(module, exports, __webpack_require__) {
|
11526 |
|
11527 |
|
11528 |
|
11529 | }),
|
11530 |
|
11531 | "./src/components/VDatePicker/VDatePickerTitle.ts":
|
11532 |
|
11533 |
|
11534 |
|
11535 |
|
11536 | (function(module, __webpack_exports__, __webpack_require__) {
|
11537 |
|
11538 | "use strict";
|
11539 | __webpack_require__.r(__webpack_exports__);
|
11540 | var _VDatePickerTitle_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDatePicker/VDatePickerTitle.sass");
|
11541 | var _VDatePickerTitle_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VDatePickerTitle_sass__WEBPACK_IMPORTED_MODULE_0__);
|
11542 | var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
11543 | var _mixins_picker_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/picker-button/index.ts");
|
11544 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
11545 |
|
11546 |
|
11547 |
|
11548 |
|
11549 |
|
11550 |
|
11551 |
|
11552 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_picker_button__WEBPACK_IMPORTED_MODULE_2__["default"]
|
11553 |
|
11554 | ).extend({
|
11555 | name: 'v-date-picker-title',
|
11556 | props: {
|
11557 | date: {
|
11558 | type: String,
|
11559 | default: ''
|
11560 | },
|
11561 | disabled: Boolean,
|
11562 | readonly: Boolean,
|
11563 | selectingYear: Boolean,
|
11564 | value: {
|
11565 | type: String
|
11566 | },
|
11567 | year: {
|
11568 | type: [Number, String],
|
11569 | default: ''
|
11570 | },
|
11571 | yearIcon: {
|
11572 | type: String
|
11573 | }
|
11574 | },
|
11575 | data: function data() {
|
11576 | return {
|
11577 | isReversing: false
|
11578 | };
|
11579 | },
|
11580 | computed: {
|
11581 | computedTransition: function computedTransition() {
|
11582 | return this.isReversing ? 'picker-reverse-transition' : 'picker-transition';
|
11583 | }
|
11584 | },
|
11585 | watch: {
|
11586 | value: function value(val, prev) {
|
11587 | this.isReversing = val < prev;
|
11588 | }
|
11589 | },
|
11590 | methods: {
|
11591 | genYearIcon: function genYearIcon() {
|
11592 | return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
11593 | props: {
|
11594 | dark: true
|
11595 | }
|
11596 | }, this.yearIcon);
|
11597 | },
|
11598 | getYearBtn: function getYearBtn() {
|
11599 | return this.genPickerButton('selectingYear', true, [String(this.year), this.yearIcon ? this.genYearIcon() : null], false, 'v-date-picker-title__year');
|
11600 | },
|
11601 | genTitleText: function genTitleText() {
|
11602 | return this.$createElement('transition', {
|
11603 | props: {
|
11604 | name: this.computedTransition
|
11605 | }
|
11606 | }, [this.$createElement('div', {
|
11607 | domProps: {
|
11608 | innerHTML: this.date || ' '
|
11609 | },
|
11610 | key: this.value
|
11611 | })]);
|
11612 | },
|
11613 | genTitleDate: function genTitleDate() {
|
11614 | return this.genPickerButton('selectingYear', false, [this.genTitleText()], false, 'v-date-picker-title__date');
|
11615 | }
|
11616 | },
|
11617 | render: function render(h) {
|
11618 | return h('div', {
|
11619 | staticClass: 'v-date-picker-title',
|
11620 | class: {
|
11621 | 'v-date-picker-title--disabled': this.disabled
|
11622 | }
|
11623 | }, [this.getYearBtn(), this.genTitleDate()]);
|
11624 | }
|
11625 | }));
|
11626 |
|
11627 | }),
|
11628 |
|
11629 | "./src/components/VDatePicker/VDatePickerYears.sass":
|
11630 |
|
11631 |
|
11632 |
|
11633 |
|
11634 | (function(module, exports, __webpack_require__) {
|
11635 |
|
11636 |
|
11637 |
|
11638 | }),
|
11639 |
|
11640 | "./src/components/VDatePicker/VDatePickerYears.ts":
|
11641 |
|
11642 |
|
11643 |
|
11644 |
|
11645 | (function(module, __webpack_exports__, __webpack_require__) {
|
11646 |
|
11647 | "use strict";
|
11648 | __webpack_require__.r(__webpack_exports__);
|
11649 | var _VDatePickerYears_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDatePicker/VDatePickerYears.sass");
|
11650 | var _VDatePickerYears_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VDatePickerYears_sass__WEBPACK_IMPORTED_MODULE_0__);
|
11651 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
11652 | var _mixins_localable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/localable/index.ts");
|
11653 | var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VDatePicker/util/index.ts");
|
11654 | var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/mixins.ts");
|
11655 |
|
11656 |
|
11657 |
|
11658 |
|
11659 |
|
11660 |
|
11661 |
|
11662 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_localable__WEBPACK_IMPORTED_MODULE_2__["default"]
|
11663 |
|
11664 | ).extend({
|
11665 | name: 'v-date-picker-years',
|
11666 | props: {
|
11667 | format: Function,
|
11668 | min: [Number, String],
|
11669 | max: [Number, String],
|
11670 | readonly: Boolean,
|
11671 | value: [Number, String]
|
11672 | },
|
11673 | data: function data() {
|
11674 | return {
|
11675 | defaultColor: 'primary'
|
11676 | };
|
11677 | },
|
11678 | computed: {
|
11679 | formatter: function formatter() {
|
11680 | return this.format || Object(_util__WEBPACK_IMPORTED_MODULE_3__["createNativeLocaleFormatter"])(this.currentLocale, {
|
11681 | year: 'numeric',
|
11682 | timeZone: 'UTC'
|
11683 | }, {
|
11684 | length: 4
|
11685 | });
|
11686 | }
|
11687 | },
|
11688 | mounted: function mounted() {
|
11689 | var _this = this;
|
11690 |
|
11691 | setTimeout(function () {
|
11692 | var activeItem = _this.$el.getElementsByClassName('active')[0];
|
11693 |
|
11694 | if (activeItem) {
|
11695 | _this.$el.scrollTop = activeItem.offsetTop - _this.$el.offsetHeight / 2 + activeItem.offsetHeight / 2;
|
11696 | } else if (_this.min && !_this.max) {
|
11697 | _this.$el.scrollTop = _this.$el.scrollHeight;
|
11698 | } else if (!_this.min && _this.max) {
|
11699 | _this.$el.scrollTop = 0;
|
11700 | } else {
|
11701 | _this.$el.scrollTop = _this.$el.scrollHeight / 2 - _this.$el.offsetHeight / 2;
|
11702 | }
|
11703 | });
|
11704 | },
|
11705 | methods: {
|
11706 | genYearItem: function genYearItem(year) {
|
11707 | var _this = this;
|
11708 |
|
11709 | var formatted = this.formatter("" + year);
|
11710 | var active = parseInt(this.value, 10) === year;
|
11711 | var color = active && (this.color || 'primary');
|
11712 | return this.$createElement('li', this.setTextColor(color, {
|
11713 | key: year,
|
11714 | class: {
|
11715 | active: active
|
11716 | },
|
11717 | on: {
|
11718 | click: function click() {
|
11719 | return _this.$emit('input', year);
|
11720 | }
|
11721 | }
|
11722 | }), formatted);
|
11723 | },
|
11724 | genYearItems: function genYearItems() {
|
11725 | var children = [];
|
11726 | var selectedYear = this.value ? parseInt(this.value, 10) : new Date().getFullYear();
|
11727 | var maxYear = this.max ? parseInt(this.max, 10) : selectedYear + 100;
|
11728 | var minYear = Math.min(maxYear, this.min ? parseInt(this.min, 10) : selectedYear - 100);
|
11729 |
|
11730 | for (var year = maxYear; year >= minYear; year--) {
|
11731 | children.push(this.genYearItem(year));
|
11732 | }
|
11733 |
|
11734 | return children;
|
11735 | }
|
11736 | },
|
11737 | render: function render() {
|
11738 | return this.$createElement('ul', {
|
11739 | staticClass: 'v-date-picker-years',
|
11740 | ref: 'years'
|
11741 | }, this.genYearItems());
|
11742 | }
|
11743 | }));
|
11744 |
|
11745 | }),
|
11746 |
|
11747 | "./src/components/VDatePicker/index.ts":
|
11748 |
|
11749 |
|
11750 |
|
11751 |
|
11752 | (function(module, __webpack_exports__, __webpack_require__) {
|
11753 |
|
11754 | "use strict";
|
11755 | __webpack_require__.r(__webpack_exports__);
|
11756 | var _VDatePicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDatePicker/VDatePicker.ts");
|
11757 | __webpack_require__.d(__webpack_exports__, "VDatePicker", function() { return _VDatePicker__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
11758 |
|
11759 | var _VDatePickerTitle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VDatePicker/VDatePickerTitle.ts");
|
11760 | __webpack_require__.d(__webpack_exports__, "VDatePickerTitle", function() { return _VDatePickerTitle__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
11761 |
|
11762 | var _VDatePickerHeader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VDatePicker/VDatePickerHeader.ts");
|
11763 | __webpack_require__.d(__webpack_exports__, "VDatePickerHeader", function() { return _VDatePickerHeader__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
11764 |
|
11765 | var _VDatePickerDateTable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VDatePicker/VDatePickerDateTable.ts");
|
11766 | __webpack_require__.d(__webpack_exports__, "VDatePickerDateTable", function() { return _VDatePickerDateTable__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
11767 |
|
11768 | var _VDatePickerMonthTable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VDatePicker/VDatePickerMonthTable.ts");
|
11769 | __webpack_require__.d(__webpack_exports__, "VDatePickerMonthTable", function() { return _VDatePickerMonthTable__WEBPACK_IMPORTED_MODULE_4__["default"]; });
|
11770 |
|
11771 | var _VDatePickerYears__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/components/VDatePicker/VDatePickerYears.ts");
|
11772 | __webpack_require__.d(__webpack_exports__, "VDatePickerYears", function() { return _VDatePickerYears__WEBPACK_IMPORTED_MODULE_5__["default"]; });
|
11773 |
|
11774 |
|
11775 |
|
11776 |
|
11777 |
|
11778 |
|
11779 |
|
11780 |
|
11781 | __webpack_exports__["default"] = ({
|
11782 | $_vuetify_subcomponents: {
|
11783 | VDatePicker: _VDatePicker__WEBPACK_IMPORTED_MODULE_0__["default"],
|
11784 | VDatePickerTitle: _VDatePickerTitle__WEBPACK_IMPORTED_MODULE_1__["default"],
|
11785 | VDatePickerHeader: _VDatePickerHeader__WEBPACK_IMPORTED_MODULE_2__["default"],
|
11786 | VDatePickerDateTable: _VDatePickerDateTable__WEBPACK_IMPORTED_MODULE_3__["default"],
|
11787 | VDatePickerMonthTable: _VDatePickerMonthTable__WEBPACK_IMPORTED_MODULE_4__["default"],
|
11788 | VDatePickerYears: _VDatePickerYears__WEBPACK_IMPORTED_MODULE_5__["default"]
|
11789 | }
|
11790 | });
|
11791 |
|
11792 | }),
|
11793 |
|
11794 | "./src/components/VDatePicker/mixins/date-picker-table.ts":
|
11795 |
|
11796 |
|
11797 |
|
11798 |
|
11799 | (function(module, __webpack_exports__, __webpack_require__) {
|
11800 |
|
11801 | "use strict";
|
11802 | __webpack_require__.r(__webpack_exports__);
|
11803 | var _VDatePickerTable_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDatePicker/VDatePickerTable.sass");
|
11804 | var _VDatePickerTable_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VDatePickerTable_sass__WEBPACK_IMPORTED_MODULE_0__);
|
11805 | var _directives_touch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/directives/touch/index.ts");
|
11806 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
11807 | var _mixins_localable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/localable/index.ts");
|
11808 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
11809 | var _util_isDateAllowed__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/components/VDatePicker/util/isDateAllowed.ts");
|
11810 | var _util_mixins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/util/mixins.ts");
|
11811 | var __assign = undefined && undefined.__assign || function () {
|
11812 | __assign = Object.assign || function (t) {
|
11813 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
11814 | s = arguments[i];
|
11815 |
|
11816 | for (var p in s) {
|
11817 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
11818 | }
|
11819 | }
|
11820 |
|
11821 | return t;
|
11822 | };
|
11823 |
|
11824 | return __assign.apply(this, arguments);
|
11825 | };
|
11826 |
|
11827 | var __read = undefined && undefined.__read || function (o, n) {
|
11828 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
11829 | if (!m) return o;
|
11830 | var i = m.call(o),
|
11831 | r,
|
11832 | ar = [],
|
11833 | e;
|
11834 |
|
11835 | try {
|
11836 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
11837 | ar.push(r.value);
|
11838 | }
|
11839 | } catch (error) {
|
11840 | e = {
|
11841 | error: error
|
11842 | };
|
11843 | } finally {
|
11844 | try {
|
11845 | if (r && !r.done && (m = i["return"])) m.call(i);
|
11846 | } finally {
|
11847 | if (e) throw e.error;
|
11848 | }
|
11849 | }
|
11850 |
|
11851 | return ar;
|
11852 | };
|
11853 |
|
11854 | var __spread = undefined && undefined.__spread || function () {
|
11855 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
11856 | ar = ar.concat(__read(arguments[i]));
|
11857 | }
|
11858 |
|
11859 | return ar;
|
11860 | };
|
11861 |
|
11862 |
|
11863 |
|
11864 |
|
11865 |
|
11866 |
|
11867 |
|
11868 |
|
11869 |
|
11870 |
|
11871 |
|
11872 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_6__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_localable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_4__["default"]
|
11873 |
|
11874 | ).extend({
|
11875 | directives: {
|
11876 | Touch: _directives_touch__WEBPACK_IMPORTED_MODULE_1__["default"]
|
11877 | },
|
11878 | props: {
|
11879 | allowedDates: Function,
|
11880 | current: String,
|
11881 | disabled: Boolean,
|
11882 | format: Function,
|
11883 | events: {
|
11884 | type: [Array, Function, Object],
|
11885 | default: function _default() {
|
11886 | return null;
|
11887 | }
|
11888 | },
|
11889 | eventColor: {
|
11890 | type: [Array, Function, Object, String],
|
11891 | default: function _default() {
|
11892 | return 'warning';
|
11893 | }
|
11894 | },
|
11895 | min: String,
|
11896 | max: String,
|
11897 | range: Boolean,
|
11898 | readonly: Boolean,
|
11899 | scrollable: Boolean,
|
11900 | tableDate: {
|
11901 | type: String,
|
11902 | required: true
|
11903 | },
|
11904 | value: [String, Array]
|
11905 | },
|
11906 | data: function data() {
|
11907 | return {
|
11908 | isReversing: false
|
11909 | };
|
11910 | },
|
11911 | computed: {
|
11912 | computedTransition: function computedTransition() {
|
11913 | return this.isReversing === !this.$vuetify.rtl ? 'tab-reverse-transition' : 'tab-transition';
|
11914 | },
|
11915 | displayedMonth: function displayedMonth() {
|
11916 | return Number(this.tableDate.split('-')[1]) - 1;
|
11917 | },
|
11918 | displayedYear: function displayedYear() {
|
11919 | return Number(this.tableDate.split('-')[0]);
|
11920 | }
|
11921 | },
|
11922 | watch: {
|
11923 | tableDate: function tableDate(newVal, oldVal) {
|
11924 | this.isReversing = newVal < oldVal;
|
11925 | }
|
11926 | },
|
11927 | methods: {
|
11928 | genButtonClasses: function genButtonClasses(isAllowed, isFloating, isSelected, isCurrent) {
|
11929 | return __assign({
|
11930 | 'v-size--default': !isFloating,
|
11931 | 'v-btn--active': isSelected,
|
11932 | 'v-btn--flat': !isAllowed || this.disabled,
|
11933 | 'v-btn--text': isSelected === isCurrent,
|
11934 | 'v-btn--rounded': isFloating,
|
11935 | 'v-btn--disabled': !isAllowed || this.disabled,
|
11936 | 'v-btn--outlined': isCurrent && !isSelected
|
11937 | }, this.themeClasses);
|
11938 | },
|
11939 | genButtonEvents: function genButtonEvents(value, isAllowed, mouseEventType) {
|
11940 | var _this = this;
|
11941 |
|
11942 | if (this.disabled) return undefined;
|
11943 | return {
|
11944 | click: function click() {
|
11945 | isAllowed && !_this.readonly && _this.$emit('input', value);
|
11946 |
|
11947 | _this.$emit("click:" + mouseEventType, value);
|
11948 | },
|
11949 | dblclick: function dblclick() {
|
11950 | return _this.$emit("dblclick:" + mouseEventType, value);
|
11951 | }
|
11952 | };
|
11953 | },
|
11954 | genButton: function genButton(value, isFloating, mouseEventType, formatter) {
|
11955 | var isAllowed = Object(_util_isDateAllowed__WEBPACK_IMPORTED_MODULE_5__["default"])(value, this.min, this.max, this.allowedDates);
|
11956 | var isSelected = this.isSelected(value);
|
11957 | var isCurrent = value === this.current;
|
11958 | var setColor = isSelected ? this.setBackgroundColor : this.setTextColor;
|
11959 | var color = (isSelected || isCurrent) && (this.color || 'accent');
|
11960 | return this.$createElement('button', setColor(color, {
|
11961 | staticClass: 'v-btn',
|
11962 | class: this.genButtonClasses(isAllowed, isFloating, isSelected, isCurrent),
|
11963 | attrs: {
|
11964 | type: 'button'
|
11965 | },
|
11966 | domProps: {
|
11967 | disabled: this.disabled || !isAllowed
|
11968 | },
|
11969 | on: this.genButtonEvents(value, isAllowed, mouseEventType)
|
11970 | }), [this.$createElement('div', {
|
11971 | staticClass: 'v-btn__content'
|
11972 | }, [formatter(value)]), this.genEvents(value)]);
|
11973 | },
|
11974 | getEventColors: function getEventColors(date) {
|
11975 | var arrayize = function arrayize(v) {
|
11976 | return Array.isArray(v) ? v : [v];
|
11977 | };
|
11978 |
|
11979 | var eventData;
|
11980 | var eventColors = [];
|
11981 |
|
11982 | if (Array.isArray(this.events)) {
|
11983 | eventData = this.events.includes(date);
|
11984 | } else if (this.events instanceof Function) {
|
11985 | eventData = this.events(date) || false;
|
11986 | } else if (this.events) {
|
11987 | eventData = this.events[date] || false;
|
11988 | } else {
|
11989 | eventData = false;
|
11990 | }
|
11991 |
|
11992 | if (!eventData) {
|
11993 | return [];
|
11994 | } else if (eventData !== true) {
|
11995 | eventColors = arrayize(eventData);
|
11996 | } else if (typeof this.eventColor === 'string') {
|
11997 | eventColors = [this.eventColor];
|
11998 | } else if (typeof this.eventColor === 'function') {
|
11999 | eventColors = arrayize(this.eventColor(date));
|
12000 | } else if (Array.isArray(this.eventColor)) {
|
12001 | eventColors = this.eventColor;
|
12002 | } else {
|
12003 | eventColors = arrayize(this.eventColor[date]);
|
12004 | }
|
12005 |
|
12006 | return eventColors.filter(function (v) {
|
12007 | return v;
|
12008 | });
|
12009 | },
|
12010 | genEvents: function genEvents(date) {
|
12011 | var _this = this;
|
12012 |
|
12013 | var eventColors = this.getEventColors(date);
|
12014 | return eventColors.length ? this.$createElement('div', {
|
12015 | staticClass: 'v-date-picker-table__events'
|
12016 | }, eventColors.map(function (color) {
|
12017 | return _this.$createElement('div', _this.setBackgroundColor(color));
|
12018 | })) : null;
|
12019 | },
|
12020 | wheel: function wheel(e, calculateTableDate) {
|
12021 | e.preventDefault();
|
12022 | this.$emit('update:table-date', calculateTableDate(e.deltaY));
|
12023 | },
|
12024 | touch: function touch(value, calculateTableDate) {
|
12025 | this.$emit('update:table-date', calculateTableDate(value));
|
12026 | },
|
12027 | genTable: function genTable(staticClass, children, calculateTableDate) {
|
12028 | var _this = this;
|
12029 |
|
12030 | var transition = this.$createElement('transition', {
|
12031 | props: {
|
12032 | name: this.computedTransition
|
12033 | }
|
12034 | }, [this.$createElement('table', {
|
12035 | key: this.tableDate
|
12036 | }, children)]);
|
12037 | var touchDirective = {
|
12038 | name: 'touch',
|
12039 | value: {
|
12040 | left: function left(e) {
|
12041 | return e.offsetX < -15 && _this.touch(1, calculateTableDate);
|
12042 | },
|
12043 | right: function right(e) {
|
12044 | return e.offsetX > 15 && _this.touch(-1, calculateTableDate);
|
12045 | }
|
12046 | }
|
12047 | };
|
12048 | return this.$createElement('div', {
|
12049 | staticClass: staticClass,
|
12050 | class: __assign({
|
12051 | 'v-date-picker-table--disabled': this.disabled
|
12052 | }, this.themeClasses),
|
12053 | on: !this.disabled && this.scrollable ? {
|
12054 | wheel: function wheel(e) {
|
12055 | return _this.wheel(e, calculateTableDate);
|
12056 | }
|
12057 | } : undefined,
|
12058 | directives: [touchDirective]
|
12059 | }, [transition]);
|
12060 | },
|
12061 | isSelected: function isSelected(value) {
|
12062 | if (Array.isArray(this.value)) {
|
12063 | if (this.range && this.value.length === 2) {
|
12064 | var _a = __read(__spread(this.value).sort(), 2),
|
12065 | from = _a[0],
|
12066 | to = _a[1];
|
12067 |
|
12068 | return from <= value && value <= to;
|
12069 | } else {
|
12070 | return this.value.indexOf(value) !== -1;
|
12071 | }
|
12072 | }
|
12073 |
|
12074 | return value === this.value;
|
12075 | }
|
12076 | }
|
12077 | }));
|
12078 |
|
12079 | }),
|
12080 |
|
12081 | "./src/components/VDatePicker/util/createNativeLocaleFormatter.ts":
|
12082 |
|
12083 |
|
12084 |
|
12085 |
|
12086 | (function(module, __webpack_exports__, __webpack_require__) {
|
12087 |
|
12088 | "use strict";
|
12089 | __webpack_require__.r(__webpack_exports__);
|
12090 | var _pad__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDatePicker/util/pad.ts");
|
12091 | var __read = undefined && undefined.__read || function (o, n) {
|
12092 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
12093 | if (!m) return o;
|
12094 | var i = m.call(o),
|
12095 | r,
|
12096 | ar = [],
|
12097 | e;
|
12098 |
|
12099 | try {
|
12100 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
12101 | ar.push(r.value);
|
12102 | }
|
12103 | } catch (error) {
|
12104 | e = {
|
12105 | error: error
|
12106 | };
|
12107 | } finally {
|
12108 | try {
|
12109 | if (r && !r.done && (m = i["return"])) m.call(i);
|
12110 | } finally {
|
12111 | if (e) throw e.error;
|
12112 | }
|
12113 | }
|
12114 |
|
12115 | return ar;
|
12116 | };
|
12117 |
|
12118 |
|
12119 |
|
12120 | function createNativeLocaleFormatter(locale, options, substrOptions) {
|
12121 | if (substrOptions === void 0) {
|
12122 | substrOptions = {
|
12123 | start: 0,
|
12124 | length: 0
|
12125 | };
|
12126 | }
|
12127 |
|
12128 | var makeIsoString = function makeIsoString(dateString) {
|
12129 | var _a = __read(dateString.trim().split(' ')[0].split('-'), 3),
|
12130 | year = _a[0],
|
12131 | month = _a[1],
|
12132 | date = _a[2];
|
12133 |
|
12134 | return [Object(_pad__WEBPACK_IMPORTED_MODULE_0__["default"])(year, 4), Object(_pad__WEBPACK_IMPORTED_MODULE_0__["default"])(month || 1), Object(_pad__WEBPACK_IMPORTED_MODULE_0__["default"])(date || 1)].join('-');
|
12135 | };
|
12136 |
|
12137 | try {
|
12138 | var intlFormatter_1 = new Intl.DateTimeFormat(locale || undefined, options);
|
12139 | return function (dateString) {
|
12140 | return intlFormatter_1.format(new Date(makeIsoString(dateString) + "T00:00:00+00:00"));
|
12141 | };
|
12142 | } catch (e) {
|
12143 | return substrOptions.start || substrOptions.length ? function (dateString) {
|
12144 | return makeIsoString(dateString).substr(substrOptions.start || 0, substrOptions.length);
|
12145 | } : undefined;
|
12146 | }
|
12147 | }
|
12148 |
|
12149 | __webpack_exports__["default"] = (createNativeLocaleFormatter);
|
12150 |
|
12151 | }),
|
12152 |
|
12153 | "./src/components/VDatePicker/util/index.ts":
|
12154 |
|
12155 |
|
12156 |
|
12157 |
|
12158 | (function(module, __webpack_exports__, __webpack_require__) {
|
12159 |
|
12160 | "use strict";
|
12161 | __webpack_require__.r(__webpack_exports__);
|
12162 | var _createNativeLocaleFormatter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDatePicker/util/createNativeLocaleFormatter.ts");
|
12163 | __webpack_require__.d(__webpack_exports__, "createNativeLocaleFormatter", function() { return _createNativeLocaleFormatter__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
12164 |
|
12165 | var _monthChange__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VDatePicker/util/monthChange.ts");
|
12166 | __webpack_require__.d(__webpack_exports__, "monthChange", function() { return _monthChange__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
12167 |
|
12168 | var _pad__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VDatePicker/util/pad.ts");
|
12169 | __webpack_require__.d(__webpack_exports__, "pad", function() { return _pad__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
12170 |
|
12171 |
|
12172 |
|
12173 |
|
12174 |
|
12175 |
|
12176 | }),
|
12177 |
|
12178 | "./src/components/VDatePicker/util/isDateAllowed.ts":
|
12179 |
|
12180 |
|
12181 |
|
12182 |
|
12183 | (function(module, __webpack_exports__, __webpack_require__) {
|
12184 |
|
12185 | "use strict";
|
12186 | __webpack_require__.r(__webpack_exports__);
|
12187 | __webpack_require__.d(__webpack_exports__, "default", function() { return isDateAllowed; });
|
12188 | function isDateAllowed(date, min, max, allowedFn) {
|
12189 | return (!allowedFn || allowedFn(date)) && (!min || date >= min.substr(0, 10)) && (!max || date <= max);
|
12190 | }
|
12191 |
|
12192 | }),
|
12193 |
|
12194 | "./src/components/VDatePicker/util/monthChange.ts":
|
12195 |
|
12196 |
|
12197 |
|
12198 |
|
12199 | (function(module, __webpack_exports__, __webpack_require__) {
|
12200 |
|
12201 | "use strict";
|
12202 | __webpack_require__.r(__webpack_exports__);
|
12203 | var _pad__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDatePicker/util/pad.ts");
|
12204 | var __read = undefined && undefined.__read || function (o, n) {
|
12205 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
12206 | if (!m) return o;
|
12207 | var i = m.call(o),
|
12208 | r,
|
12209 | ar = [],
|
12210 | e;
|
12211 |
|
12212 | try {
|
12213 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
12214 | ar.push(r.value);
|
12215 | }
|
12216 | } catch (error) {
|
12217 | e = {
|
12218 | error: error
|
12219 | };
|
12220 | } finally {
|
12221 | try {
|
12222 | if (r && !r.done && (m = i["return"])) m.call(i);
|
12223 | } finally {
|
12224 | if (e) throw e.error;
|
12225 | }
|
12226 | }
|
12227 |
|
12228 | return ar;
|
12229 | };
|
12230 |
|
12231 |
|
12232 |
|
12233 |
|
12234 |
|
12235 |
|
12236 |
|
12237 | __webpack_exports__["default"] = (function (value, sign) {
|
12238 | var _a = __read(value.split('-').map(Number), 2),
|
12239 | year = _a[0],
|
12240 | month = _a[1];
|
12241 |
|
12242 | if (month + sign === 0) {
|
12243 | return year - 1 + "-12";
|
12244 | } else if (month + sign === 13) {
|
12245 | return year + 1 + "-01";
|
12246 | } else {
|
12247 | return year + "-" + Object(_pad__WEBPACK_IMPORTED_MODULE_0__["default"])(month + sign);
|
12248 | }
|
12249 | });
|
12250 |
|
12251 | }),
|
12252 |
|
12253 | "./src/components/VDatePicker/util/pad.ts":
|
12254 |
|
12255 |
|
12256 |
|
12257 |
|
12258 | (function(module, __webpack_exports__, __webpack_require__) {
|
12259 |
|
12260 | "use strict";
|
12261 | __webpack_require__.r(__webpack_exports__);
|
12262 | var padStart = function padStart(string, targetLength, padString) {
|
12263 | targetLength = targetLength >> 0;
|
12264 | string = String(string);
|
12265 | padString = String(padString);
|
12266 |
|
12267 | if (string.length > targetLength) {
|
12268 | return String(string);
|
12269 | }
|
12270 |
|
12271 | targetLength = targetLength - string.length;
|
12272 |
|
12273 | if (targetLength > padString.length) {
|
12274 | padString += padString.repeat(targetLength / padString.length);
|
12275 | }
|
12276 |
|
12277 | return padString.slice(0, targetLength) + String(string);
|
12278 | };
|
12279 |
|
12280 | __webpack_exports__["default"] = (function (n, length) {
|
12281 | if (length === void 0) {
|
12282 | length = 2;
|
12283 | }
|
12284 |
|
12285 | return padStart(n, length, '0');
|
12286 | });
|
12287 |
|
12288 | }),
|
12289 |
|
12290 | "./src/components/VDialog/VDialog.sass":
|
12291 |
|
12292 |
|
12293 |
|
12294 |
|
12295 | (function(module, exports, __webpack_require__) {
|
12296 |
|
12297 |
|
12298 |
|
12299 | }),
|
12300 |
|
12301 | "./src/components/VDialog/VDialog.ts":
|
12302 |
|
12303 |
|
12304 |
|
12305 |
|
12306 | (function(module, __webpack_exports__, __webpack_require__) {
|
12307 |
|
12308 | "use strict";
|
12309 | __webpack_require__.r(__webpack_exports__);
|
12310 | var _VDialog_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDialog/VDialog.sass");
|
12311 | var _VDialog_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VDialog_sass__WEBPACK_IMPORTED_MODULE_0__);
|
12312 | var _mixins_activatable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/activatable/index.ts");
|
12313 | var _mixins_dependent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/dependent/index.ts");
|
12314 | var _mixins_detachable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/detachable/index.ts");
|
12315 | var _mixins_overlayable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/overlayable/index.ts");
|
12316 | var _mixins_returnable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/returnable/index.ts");
|
12317 | var _mixins_stackable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/mixins/stackable/index.ts");
|
12318 | var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/mixins/toggleable/index.ts");
|
12319 | var _directives_click_outside__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/directives/click-outside/index.ts");
|
12320 | var _util_helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__( "./src/util/helpers.ts");
|
12321 | var _util_ThemeProvider__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__( "./src/util/ThemeProvider.ts");
|
12322 | var _util_mixins__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__( "./src/util/mixins.ts");
|
12323 | var _util_console__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__( "./src/util/console.ts");
|
12324 | var __assign = undefined && undefined.__assign || function () {
|
12325 | __assign = Object.assign || function (t) {
|
12326 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
12327 | s = arguments[i];
|
12328 |
|
12329 | for (var p in s) {
|
12330 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
12331 | }
|
12332 | }
|
12333 |
|
12334 | return t;
|
12335 | };
|
12336 |
|
12337 | return __assign.apply(this, arguments);
|
12338 | };
|
12339 |
|
12340 |
|
12341 |
|
12342 |
|
12343 |
|
12344 |
|
12345 |
|
12346 |
|
12347 |
|
12348 |
|
12349 |
|
12350 |
|
12351 |
|
12352 |
|
12353 |
|
12354 |
|
12355 |
|
12356 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_11__["default"])(_mixins_activatable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_dependent__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_detachable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_overlayable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_returnable__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_stackable__WEBPACK_IMPORTED_MODULE_6__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_7__["default"]);
|
12357 |
|
12358 |
|
12359 | __webpack_exports__["default"] = (baseMixins.extend({
|
12360 | name: 'v-dialog',
|
12361 | directives: {
|
12362 | ClickOutside: _directives_click_outside__WEBPACK_IMPORTED_MODULE_8__["default"]
|
12363 | },
|
12364 | props: {
|
12365 | dark: Boolean,
|
12366 | disabled: Boolean,
|
12367 | fullscreen: Boolean,
|
12368 | light: Boolean,
|
12369 | maxWidth: {
|
12370 | type: [String, Number],
|
12371 | default: 'none'
|
12372 | },
|
12373 | noClickAnimation: Boolean,
|
12374 | origin: {
|
12375 | type: String,
|
12376 | default: 'center center'
|
12377 | },
|
12378 | persistent: Boolean,
|
12379 | retainFocus: {
|
12380 | type: Boolean,
|
12381 | default: true
|
12382 | },
|
12383 | scrollable: Boolean,
|
12384 | transition: {
|
12385 | type: [String, Boolean],
|
12386 | default: 'dialog-transition'
|
12387 | },
|
12388 | width: {
|
12389 | type: [String, Number],
|
12390 | default: 'auto'
|
12391 | }
|
12392 | },
|
12393 | data: function data() {
|
12394 | return {
|
12395 | activatedBy: null,
|
12396 | animate: false,
|
12397 | animateTimeout: -1,
|
12398 | isActive: !!this.value,
|
12399 | stackMinZIndex: 200
|
12400 | };
|
12401 | },
|
12402 | computed: {
|
12403 | classes: function classes() {
|
12404 | var _a;
|
12405 |
|
12406 | return _a = {}, _a[("v-dialog " + this.contentClass).trim()] = true, _a['v-dialog--active'] = this.isActive, _a['v-dialog--persistent'] = this.persistent, _a['v-dialog--fullscreen'] = this.fullscreen, _a['v-dialog--scrollable'] = this.scrollable, _a['v-dialog--animated'] = this.animate, _a;
|
12407 | },
|
12408 | contentClasses: function contentClasses() {
|
12409 | return {
|
12410 | 'v-dialog__content': true,
|
12411 | 'v-dialog__content--active': this.isActive
|
12412 | };
|
12413 | },
|
12414 | hasActivator: function hasActivator() {
|
12415 | return Boolean(!!this.$slots.activator || !!this.$scopedSlots.activator);
|
12416 | }
|
12417 | },
|
12418 | watch: {
|
12419 | isActive: function isActive(val) {
|
12420 | if (val) {
|
12421 | this.show();
|
12422 | this.hideScroll();
|
12423 | } else {
|
12424 | this.removeOverlay();
|
12425 | this.unbind();
|
12426 | }
|
12427 | },
|
12428 | fullscreen: function fullscreen(val) {
|
12429 | if (!this.isActive) return;
|
12430 |
|
12431 | if (val) {
|
12432 | this.hideScroll();
|
12433 | this.removeOverlay(false);
|
12434 | } else {
|
12435 | this.showScroll();
|
12436 | this.genOverlay();
|
12437 | }
|
12438 | }
|
12439 | },
|
12440 | created: function created() {
|
12441 |
|
12442 | if (this.$attrs.hasOwnProperty('full-width')) {
|
12443 | Object(_util_console__WEBPACK_IMPORTED_MODULE_12__["removed"])('full-width', this);
|
12444 | }
|
12445 | },
|
12446 | beforeMount: function beforeMount() {
|
12447 | var _this = this;
|
12448 |
|
12449 | this.$nextTick(function () {
|
12450 | _this.isBooted = _this.isActive;
|
12451 | _this.isActive && _this.show();
|
12452 | });
|
12453 | },
|
12454 | beforeDestroy: function beforeDestroy() {
|
12455 | if (typeof window !== 'undefined') this.unbind();
|
12456 | },
|
12457 | methods: {
|
12458 | animateClick: function animateClick() {
|
12459 | var _this = this;
|
12460 |
|
12461 | this.animate = false;
|
12462 |
|
12463 |
|
12464 | this.$nextTick(function () {
|
12465 | _this.animate = true;
|
12466 | window.clearTimeout(_this.animateTimeout);
|
12467 | _this.animateTimeout = window.setTimeout(function () {
|
12468 | return _this.animate = false;
|
12469 | }, 150);
|
12470 | });
|
12471 | },
|
12472 | closeConditional: function closeConditional(e) {
|
12473 | var target = e.target;
|
12474 |
|
12475 |
|
12476 |
|
12477 |
|
12478 | if (this._isDestroyed || !this.isActive || this.$refs.content.contains(target) || this.overlay && target && !this.overlay.$el.contains(target)) return false;
|
12479 |
|
12480 |
|
12481 |
|
12482 | this.$emit('click:outside');
|
12483 |
|
12484 | if (this.persistent && this.overlay) {
|
12485 | if (!this.noClickAnimation && (this.overlay.$el === target || this.overlay.$el.contains(target))) this.animateClick();
|
12486 | return false;
|
12487 | }
|
12488 |
|
12489 |
|
12490 |
|
12491 | return this.activeZIndex >= this.getMaxZIndex();
|
12492 | },
|
12493 | hideScroll: function hideScroll() {
|
12494 | if (this.fullscreen) {
|
12495 | document.documentElement.classList.add('overflow-y-hidden');
|
12496 | } else {
|
12497 | _mixins_overlayable__WEBPACK_IMPORTED_MODULE_4__["default"].options.methods.hideScroll.call(this);
|
12498 | }
|
12499 | },
|
12500 | show: function show() {
|
12501 | var _this = this;
|
12502 |
|
12503 | !this.fullscreen && !this.hideOverlay && this.genOverlay();
|
12504 | this.$nextTick(function () {
|
12505 | _this.$refs.content.focus();
|
12506 |
|
12507 | _this.bind();
|
12508 | });
|
12509 | },
|
12510 | bind: function bind() {
|
12511 | window.addEventListener('focusin', this.onFocusin);
|
12512 | },
|
12513 | unbind: function unbind() {
|
12514 | window.removeEventListener('focusin', this.onFocusin);
|
12515 | },
|
12516 | onKeydown: function onKeydown(e) {
|
12517 | if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_9__["keyCodes"].esc && !this.getOpenDependents().length) {
|
12518 | if (!this.persistent) {
|
12519 | this.isActive = false;
|
12520 | var activator_1 = this.getActivator();
|
12521 | this.$nextTick(function () {
|
12522 | return activator_1 && activator_1.focus();
|
12523 | });
|
12524 | } else if (!this.noClickAnimation) {
|
12525 | this.animateClick();
|
12526 | }
|
12527 | }
|
12528 |
|
12529 | this.$emit('keydown', e);
|
12530 | },
|
12531 | onFocusin: function onFocusin(e) {
|
12532 | if (!e || e.target === document.activeElement || !this.retainFocus) return;
|
12533 | var target = e.target;
|
12534 |
|
12535 | if (!!target &&
|
12536 | ![document, this.$refs.content].includes(target) &&
|
12537 | !this.$refs.content.contains(target) &&
|
12538 | this.activeZIndex >= this.getMaxZIndex() &&
|
12539 | !this.getOpenDependentElements().some(function (el) {
|
12540 | return el.contains(target);
|
12541 | })
|
12542 | ) {
|
12543 |
|
12544 | var focusable = this.$refs.content.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
12545 | focusable.length && focusable[0].focus();
|
12546 | }
|
12547 | }
|
12548 | },
|
12549 | render: function render(h) {
|
12550 | var _this = this;
|
12551 |
|
12552 | var children = [];
|
12553 | var data = {
|
12554 | class: this.classes,
|
12555 | ref: 'dialog',
|
12556 | directives: [{
|
12557 | name: 'click-outside',
|
12558 | value: function value() {
|
12559 | _this.isActive = false;
|
12560 | },
|
12561 | args: {
|
12562 | closeConditional: this.closeConditional,
|
12563 | include: this.getOpenDependentElements
|
12564 | }
|
12565 | }, {
|
12566 | name: 'show',
|
12567 | value: this.isActive
|
12568 | }],
|
12569 | on: {
|
12570 | click: function click(e) {
|
12571 | e.stopPropagation();
|
12572 | }
|
12573 | },
|
12574 | style: {}
|
12575 | };
|
12576 |
|
12577 | if (!this.fullscreen) {
|
12578 | data.style = {
|
12579 | maxWidth: this.maxWidth === 'none' ? undefined : Object(_util_helpers__WEBPACK_IMPORTED_MODULE_9__["convertToUnit"])(this.maxWidth),
|
12580 | width: this.width === 'auto' ? undefined : Object(_util_helpers__WEBPACK_IMPORTED_MODULE_9__["convertToUnit"])(this.width)
|
12581 | };
|
12582 | }
|
12583 |
|
12584 | children.push(this.genActivator());
|
12585 | var dialog = h('div', data, this.showLazyContent(this.getContentSlot()));
|
12586 |
|
12587 | if (this.transition) {
|
12588 | dialog = h('transition', {
|
12589 | props: {
|
12590 | name: this.transition,
|
12591 | origin: this.origin
|
12592 | }
|
12593 | }, [dialog]);
|
12594 | }
|
12595 |
|
12596 | children.push(h('div', {
|
12597 | class: this.contentClasses,
|
12598 | attrs: __assign({
|
12599 | role: 'document',
|
12600 | tabindex: this.isActive ? 0 : undefined
|
12601 | }, this.getScopeIdAttrs()),
|
12602 | on: {
|
12603 | keydown: this.onKeydown
|
12604 | },
|
12605 | style: {
|
12606 | zIndex: this.activeZIndex
|
12607 | },
|
12608 | ref: 'content'
|
12609 | }, [this.$createElement(_util_ThemeProvider__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
12610 | props: {
|
12611 | root: true,
|
12612 | light: this.light,
|
12613 | dark: this.dark
|
12614 | }
|
12615 | }, [dialog])]));
|
12616 | return h('div', {
|
12617 | staticClass: 'v-dialog__container',
|
12618 | class: {
|
12619 | 'v-dialog__container--attached': this.attach === '' || this.attach === true || this.attach === 'attach'
|
12620 | },
|
12621 | attrs: {
|
12622 | role: 'dialog'
|
12623 | }
|
12624 | }, children);
|
12625 | }
|
12626 | }));
|
12627 |
|
12628 | }),
|
12629 |
|
12630 | "./src/components/VDialog/index.ts":
|
12631 |
|
12632 |
|
12633 |
|
12634 |
|
12635 | (function(module, __webpack_exports__, __webpack_require__) {
|
12636 |
|
12637 | "use strict";
|
12638 | __webpack_require__.r(__webpack_exports__);
|
12639 | var _VDialog__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDialog/VDialog.ts");
|
12640 | __webpack_require__.d(__webpack_exports__, "VDialog", function() { return _VDialog__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
12641 |
|
12642 |
|
12643 |
|
12644 | __webpack_exports__["default"] = (_VDialog__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
12645 |
|
12646 | }),
|
12647 |
|
12648 | "./src/components/VDivider/VDivider.sass":
|
12649 |
|
12650 |
|
12651 |
|
12652 |
|
12653 | (function(module, exports, __webpack_require__) {
|
12654 |
|
12655 |
|
12656 |
|
12657 | }),
|
12658 |
|
12659 | "./src/components/VDivider/VDivider.ts":
|
12660 |
|
12661 |
|
12662 |
|
12663 |
|
12664 | (function(module, __webpack_exports__, __webpack_require__) {
|
12665 |
|
12666 | "use strict";
|
12667 | __webpack_require__.r(__webpack_exports__);
|
12668 | var _VDivider_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDivider/VDivider.sass");
|
12669 | var _VDivider_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VDivider_sass__WEBPACK_IMPORTED_MODULE_0__);
|
12670 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
12671 | var __assign = undefined && undefined.__assign || function () {
|
12672 | __assign = Object.assign || function (t) {
|
12673 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
12674 | s = arguments[i];
|
12675 |
|
12676 | for (var p in s) {
|
12677 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
12678 | }
|
12679 | }
|
12680 |
|
12681 | return t;
|
12682 | };
|
12683 |
|
12684 | return __assign.apply(this, arguments);
|
12685 | };
|
12686 |
|
12687 |
|
12688 |
|
12689 |
|
12690 |
|
12691 | __webpack_exports__["default"] = (_mixins_themeable__WEBPACK_IMPORTED_MODULE_1__["default"].extend({
|
12692 | name: 'v-divider',
|
12693 | props: {
|
12694 | inset: Boolean,
|
12695 | vertical: Boolean
|
12696 | },
|
12697 | render: function render(h) {
|
12698 |
|
12699 | var orientation;
|
12700 |
|
12701 | if (!this.$attrs.role || this.$attrs.role === 'separator') {
|
12702 | orientation = this.vertical ? 'vertical' : 'horizontal';
|
12703 | }
|
12704 |
|
12705 | return h('hr', {
|
12706 | class: __assign({
|
12707 | 'v-divider': true,
|
12708 | 'v-divider--inset': this.inset,
|
12709 | 'v-divider--vertical': this.vertical
|
12710 | }, this.themeClasses),
|
12711 | attrs: __assign({
|
12712 | role: 'separator',
|
12713 | 'aria-orientation': orientation
|
12714 | }, this.$attrs),
|
12715 | on: this.$listeners
|
12716 | });
|
12717 | }
|
12718 | }));
|
12719 |
|
12720 | }),
|
12721 |
|
12722 | "./src/components/VDivider/index.ts":
|
12723 |
|
12724 |
|
12725 |
|
12726 |
|
12727 | (function(module, __webpack_exports__, __webpack_require__) {
|
12728 |
|
12729 | "use strict";
|
12730 | __webpack_require__.r(__webpack_exports__);
|
12731 | var _VDivider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VDivider/VDivider.ts");
|
12732 | __webpack_require__.d(__webpack_exports__, "VDivider", function() { return _VDivider__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
12733 |
|
12734 |
|
12735 |
|
12736 | __webpack_exports__["default"] = (_VDivider__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
12737 |
|
12738 | }),
|
12739 |
|
12740 | "./src/components/VExpansionPanel/VExpansionPanel.sass":
|
12741 |
|
12742 |
|
12743 |
|
12744 |
|
12745 | (function(module, exports, __webpack_require__) {
|
12746 |
|
12747 |
|
12748 |
|
12749 | }),
|
12750 |
|
12751 | "./src/components/VExpansionPanel/VExpansionPanel.ts":
|
12752 |
|
12753 |
|
12754 |
|
12755 |
|
12756 | (function(module, __webpack_exports__, __webpack_require__) {
|
12757 |
|
12758 | "use strict";
|
12759 | __webpack_require__.r(__webpack_exports__);
|
12760 | var _mixins_groupable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/mixins/groupable/index.ts");
|
12761 | var _mixins_registrable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/registrable/index.ts");
|
12762 | var _util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/helpers.ts");
|
12763 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
12764 | var __assign = undefined && undefined.__assign || function () {
|
12765 | __assign = Object.assign || function (t) {
|
12766 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
12767 | s = arguments[i];
|
12768 |
|
12769 | for (var p in s) {
|
12770 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
12771 | }
|
12772 | }
|
12773 |
|
12774 | return t;
|
12775 | };
|
12776 |
|
12777 | return __assign.apply(this, arguments);
|
12778 | };
|
12779 |
|
12780 |
|
12781 |
|
12782 |
|
12783 |
|
12784 |
|
12785 |
|
12786 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_mixins_groupable__WEBPACK_IMPORTED_MODULE_0__["factory"])('expansionPanels', 'v-expansion-panel', 'v-expansion-panels'), Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_1__["provide"])('expansionPanel', true)
|
12787 |
|
12788 | ).extend({
|
12789 | name: 'v-expansion-panel',
|
12790 | props: {
|
12791 | disabled: Boolean,
|
12792 | readonly: Boolean
|
12793 | },
|
12794 | data: function data() {
|
12795 | return {
|
12796 | content: null,
|
12797 | header: null,
|
12798 | nextIsActive: false
|
12799 | };
|
12800 | },
|
12801 | computed: {
|
12802 | classes: function classes() {
|
12803 | return __assign({
|
12804 | 'v-expansion-panel--active': this.isActive,
|
12805 | 'v-expansion-panel--next-active': this.nextIsActive,
|
12806 | 'v-expansion-panel--disabled': this.isDisabled
|
12807 | }, this.groupClasses);
|
12808 | },
|
12809 | isDisabled: function isDisabled() {
|
12810 | return this.expansionPanels.disabled || this.disabled;
|
12811 | },
|
12812 | isReadonly: function isReadonly() {
|
12813 | return this.expansionPanels.readonly || this.readonly;
|
12814 | }
|
12815 | },
|
12816 | methods: {
|
12817 | registerContent: function registerContent(vm) {
|
12818 | this.content = vm;
|
12819 | },
|
12820 | unregisterContent: function unregisterContent() {
|
12821 | this.content = null;
|
12822 | },
|
12823 | registerHeader: function registerHeader(vm) {
|
12824 | this.header = vm;
|
12825 | vm.$on('click', this.onClick);
|
12826 | },
|
12827 | unregisterHeader: function unregisterHeader() {
|
12828 | this.header = null;
|
12829 | },
|
12830 | onClick: function onClick(e) {
|
12831 | if (e.detail) this.header.$el.blur();
|
12832 | this.$emit('click', e);
|
12833 | this.isReadonly || this.isDisabled || this.toggle();
|
12834 | },
|
12835 | toggle: function toggle() {
|
12836 | var _this = this;
|
12837 |
|
12838 |
|
12839 |
|
12840 | if (this.content) this.content.isBooted = true;
|
12841 | this.$nextTick(function () {
|
12842 | return _this.$emit('change');
|
12843 | });
|
12844 | }
|
12845 | },
|
12846 | render: function render(h) {
|
12847 | return h('div', {
|
12848 | staticClass: 'v-expansion-panel',
|
12849 | class: this.classes,
|
12850 | attrs: {
|
12851 | 'aria-expanded': String(this.isActive)
|
12852 | }
|
12853 | }, Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["getSlot"])(this));
|
12854 | }
|
12855 | }));
|
12856 |
|
12857 | }),
|
12858 |
|
12859 | "./src/components/VExpansionPanel/VExpansionPanelContent.ts":
|
12860 |
|
12861 |
|
12862 |
|
12863 |
|
12864 | (function(module, __webpack_exports__, __webpack_require__) {
|
12865 |
|
12866 | "use strict";
|
12867 | __webpack_require__.r(__webpack_exports__);
|
12868 | var _transitions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/transitions/index.ts");
|
12869 | var _mixins_bootable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/bootable/index.ts");
|
12870 | var _mixins_registrable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/registrable/index.ts");
|
12871 | var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/helpers.ts");
|
12872 | var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/mixins.ts");
|
12873 |
|
12874 |
|
12875 |
|
12876 |
|
12877 |
|
12878 |
|
12879 |
|
12880 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_mixins_bootable__WEBPACK_IMPORTED_MODULE_1__["default"], Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_2__["inject"])('expansionPanel', 'v-expansion-panel-content', 'v-expansion-panel'));
|
12881 |
|
12882 |
|
12883 | __webpack_exports__["default"] = (baseMixins.extend().extend({
|
12884 | name: 'v-expansion-panel-content',
|
12885 | computed: {
|
12886 | isActive: function isActive() {
|
12887 | return this.expansionPanel.isActive;
|
12888 | }
|
12889 | },
|
12890 | created: function created() {
|
12891 | this.expansionPanel.registerContent(this);
|
12892 | },
|
12893 | beforeDestroy: function beforeDestroy() {
|
12894 | this.expansionPanel.unregisterContent();
|
12895 | },
|
12896 | render: function render(h) {
|
12897 | return h(_transitions__WEBPACK_IMPORTED_MODULE_0__["VExpandTransition"], [h('div', {
|
12898 | staticClass: 'v-expansion-panel-content',
|
12899 | directives: [{
|
12900 | name: 'show',
|
12901 | value: this.isActive
|
12902 | }]
|
12903 | }, this.showLazyContent([h('div', {
|
12904 | class: 'v-expansion-panel-content__wrap'
|
12905 | }, Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getSlot"])(this))]))]);
|
12906 | }
|
12907 | }));
|
12908 |
|
12909 | }),
|
12910 |
|
12911 | "./src/components/VExpansionPanel/VExpansionPanelHeader.ts":
|
12912 |
|
12913 |
|
12914 |
|
12915 |
|
12916 | (function(module, __webpack_exports__, __webpack_require__) {
|
12917 |
|
12918 | "use strict";
|
12919 | __webpack_require__.r(__webpack_exports__);
|
12920 | var _transitions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/transitions/index.ts");
|
12921 | var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
12922 | var _mixins_registrable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/registrable/index.ts");
|
12923 | var _directives_ripple__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/directives/ripple/index.ts");
|
12924 | var _util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/helpers.ts");
|
12925 | var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/util/mixins.ts");
|
12926 | var __assign = undefined && undefined.__assign || function () {
|
12927 | __assign = Object.assign || function (t) {
|
12928 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
12929 | s = arguments[i];
|
12930 |
|
12931 | for (var p in s) {
|
12932 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
12933 | }
|
12934 | }
|
12935 |
|
12936 | return t;
|
12937 | };
|
12938 |
|
12939 | return __assign.apply(this, arguments);
|
12940 | };
|
12941 |
|
12942 |
|
12943 |
|
12944 |
|
12945 |
|
12946 |
|
12947 |
|
12948 |
|
12949 |
|
12950 |
|
12951 |
|
12952 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_2__["inject"])('expansionPanel', 'v-expansion-panel-header', 'v-expansion-panel'));
|
12953 | __webpack_exports__["default"] = (baseMixins.extend().extend({
|
12954 | name: 'v-expansion-panel-header',
|
12955 | directives: {
|
12956 | ripple: _directives_ripple__WEBPACK_IMPORTED_MODULE_3__["default"]
|
12957 | },
|
12958 | props: {
|
12959 | disableIconRotate: Boolean,
|
12960 | expandIcon: {
|
12961 | type: String,
|
12962 | default: '$expand'
|
12963 | },
|
12964 | hideActions: Boolean,
|
12965 | ripple: {
|
12966 | type: [Boolean, Object],
|
12967 | default: false
|
12968 | }
|
12969 | },
|
12970 | data: function data() {
|
12971 | return {
|
12972 | hasMousedown: false
|
12973 | };
|
12974 | },
|
12975 | computed: {
|
12976 | classes: function classes() {
|
12977 | return {
|
12978 | 'v-expansion-panel-header--active': this.isActive,
|
12979 | 'v-expansion-panel-header--mousedown': this.hasMousedown
|
12980 | };
|
12981 | },
|
12982 | isActive: function isActive() {
|
12983 | return this.expansionPanel.isActive;
|
12984 | },
|
12985 | isDisabled: function isDisabled() {
|
12986 | return this.expansionPanel.isDisabled;
|
12987 | },
|
12988 | isReadonly: function isReadonly() {
|
12989 | return this.expansionPanel.isReadonly;
|
12990 | }
|
12991 | },
|
12992 | created: function created() {
|
12993 | this.expansionPanel.registerHeader(this);
|
12994 | },
|
12995 | beforeDestroy: function beforeDestroy() {
|
12996 | this.expansionPanel.unregisterHeader();
|
12997 | },
|
12998 | methods: {
|
12999 | onClick: function onClick(e) {
|
13000 | this.$emit('click', e);
|
13001 | },
|
13002 | genIcon: function genIcon() {
|
13003 | var icon = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getSlot"])(this, 'actions') || [this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], this.expandIcon)];
|
13004 | return this.$createElement(_transitions__WEBPACK_IMPORTED_MODULE_0__["VFadeTransition"], [this.$createElement('div', {
|
13005 | staticClass: 'v-expansion-panel-header__icon',
|
13006 | class: {
|
13007 | 'v-expansion-panel-header__icon--disable-rotate': this.disableIconRotate
|
13008 | },
|
13009 | directives: [{
|
13010 | name: 'show',
|
13011 | value: !this.isDisabled
|
13012 | }]
|
13013 | }, icon)]);
|
13014 | }
|
13015 | },
|
13016 | render: function render(h) {
|
13017 | var _this = this;
|
13018 |
|
13019 | return h('button', {
|
13020 | staticClass: 'v-expansion-panel-header',
|
13021 | class: this.classes,
|
13022 | attrs: {
|
13023 | tabindex: this.isDisabled ? -1 : null,
|
13024 | type: 'button'
|
13025 | },
|
13026 | directives: [{
|
13027 | name: 'ripple',
|
13028 | value: this.ripple
|
13029 | }],
|
13030 | on: __assign({}, this.$listeners, {
|
13031 | click: this.onClick,
|
13032 | mousedown: function mousedown() {
|
13033 | return _this.hasMousedown = true;
|
13034 | },
|
13035 | mouseup: function mouseup() {
|
13036 | return _this.hasMousedown = false;
|
13037 | }
|
13038 | })
|
13039 | }, [Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getSlot"])(this, 'default', {
|
13040 | open: this.isActive
|
13041 | }, true), this.hideActions || this.genIcon()]);
|
13042 | }
|
13043 | }));
|
13044 |
|
13045 | }),
|
13046 |
|
13047 | "./src/components/VExpansionPanel/VExpansionPanels.ts":
|
13048 |
|
13049 |
|
13050 |
|
13051 |
|
13052 | (function(module, __webpack_exports__, __webpack_require__) {
|
13053 |
|
13054 | "use strict";
|
13055 | __webpack_require__.r(__webpack_exports__);
|
13056 | var _VExpansionPanel_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VExpansionPanel/VExpansionPanel.sass");
|
13057 | var _VExpansionPanel_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VExpansionPanel_sass__WEBPACK_IMPORTED_MODULE_0__);
|
13058 | var _VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VItemGroup/VItemGroup.ts");
|
13059 | var _util_console__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/console.ts");
|
13060 | var __assign = undefined && undefined.__assign || function () {
|
13061 | __assign = Object.assign || function (t) {
|
13062 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
13063 | s = arguments[i];
|
13064 |
|
13065 | for (var p in s) {
|
13066 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
13067 | }
|
13068 | }
|
13069 |
|
13070 | return t;
|
13071 | };
|
13072 |
|
13073 | return __assign.apply(this, arguments);
|
13074 | };
|
13075 |
|
13076 |
|
13077 |
|
13078 |
|
13079 |
|
13080 |
|
13081 |
|
13082 |
|
13083 |
|
13084 | __webpack_exports__["default"] = (_VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_1__["BaseItemGroup"].extend({
|
13085 | name: 'v-expansion-panels',
|
13086 | provide: function provide() {
|
13087 | return {
|
13088 | expansionPanels: this
|
13089 | };
|
13090 | },
|
13091 | props: {
|
13092 | accordion: Boolean,
|
13093 | disabled: Boolean,
|
13094 | focusable: Boolean,
|
13095 | inset: Boolean,
|
13096 | popout: Boolean,
|
13097 | readonly: Boolean
|
13098 | },
|
13099 | computed: {
|
13100 | classes: function classes() {
|
13101 | return __assign({}, _VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_1__["BaseItemGroup"].options.computed.classes.call(this), {
|
13102 | 'v-expansion-panels': true,
|
13103 | 'v-expansion-panels--accordion': this.accordion,
|
13104 | 'v-expansion-panels--focusable': this.focusable,
|
13105 | 'v-expansion-panels--inset': this.inset,
|
13106 | 'v-expansion-panels--popout': this.popout
|
13107 | });
|
13108 | }
|
13109 | },
|
13110 | created: function created() {
|
13111 |
|
13112 | if (this.$attrs.hasOwnProperty('expand')) {
|
13113 | Object(_util_console__WEBPACK_IMPORTED_MODULE_2__["breaking"])('expand', 'multiple', this);
|
13114 | }
|
13115 |
|
13116 |
|
13117 |
|
13118 | if (Array.isArray(this.value) && this.value.length > 0 && typeof this.value[0] === 'boolean') {
|
13119 | Object(_util_console__WEBPACK_IMPORTED_MODULE_2__["breaking"])(':value="[true, false, true]"', ':value="[0, 2]"', this);
|
13120 | }
|
13121 | },
|
13122 | methods: {
|
13123 | updateItem: function updateItem(item, index) {
|
13124 | var value = this.getValue(item, index);
|
13125 | var nextValue = this.getValue(item, index + 1);
|
13126 | item.isActive = this.toggleMethod(value);
|
13127 | item.nextIsActive = this.toggleMethod(nextValue);
|
13128 | }
|
13129 | }
|
13130 | }));
|
13131 |
|
13132 | }),
|
13133 |
|
13134 | "./src/components/VExpansionPanel/index.ts":
|
13135 |
|
13136 |
|
13137 |
|
13138 |
|
13139 | (function(module, __webpack_exports__, __webpack_require__) {
|
13140 |
|
13141 | "use strict";
|
13142 | __webpack_require__.r(__webpack_exports__);
|
13143 | var _VExpansionPanels__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VExpansionPanel/VExpansionPanels.ts");
|
13144 | __webpack_require__.d(__webpack_exports__, "VExpansionPanels", function() { return _VExpansionPanels__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
13145 |
|
13146 | var _VExpansionPanel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VExpansionPanel/VExpansionPanel.ts");
|
13147 | __webpack_require__.d(__webpack_exports__, "VExpansionPanel", function() { return _VExpansionPanel__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
13148 |
|
13149 | var _VExpansionPanelContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VExpansionPanel/VExpansionPanelContent.ts");
|
13150 | __webpack_require__.d(__webpack_exports__, "VExpansionPanelContent", function() { return _VExpansionPanelContent__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
13151 |
|
13152 | var _VExpansionPanelHeader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VExpansionPanel/VExpansionPanelHeader.ts");
|
13153 | __webpack_require__.d(__webpack_exports__, "VExpansionPanelHeader", function() { return _VExpansionPanelHeader__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
13154 |
|
13155 |
|
13156 |
|
13157 |
|
13158 |
|
13159 |
|
13160 | __webpack_exports__["default"] = ({
|
13161 | $_vuetify_subcomponents: {
|
13162 | VExpansionPanels: _VExpansionPanels__WEBPACK_IMPORTED_MODULE_0__["default"],
|
13163 | VExpansionPanel: _VExpansionPanel__WEBPACK_IMPORTED_MODULE_1__["default"],
|
13164 | VExpansionPanelHeader: _VExpansionPanelHeader__WEBPACK_IMPORTED_MODULE_3__["default"],
|
13165 | VExpansionPanelContent: _VExpansionPanelContent__WEBPACK_IMPORTED_MODULE_2__["default"]
|
13166 | }
|
13167 | });
|
13168 |
|
13169 | }),
|
13170 |
|
13171 | "./src/components/VFileInput/VFileInput.sass":
|
13172 |
|
13173 |
|
13174 |
|
13175 |
|
13176 | (function(module, exports, __webpack_require__) {
|
13177 |
|
13178 |
|
13179 |
|
13180 | }),
|
13181 |
|
13182 | "./src/components/VFileInput/VFileInput.ts":
|
13183 |
|
13184 |
|
13185 |
|
13186 |
|
13187 | (function(module, __webpack_exports__, __webpack_require__) {
|
13188 |
|
13189 | "use strict";
|
13190 | __webpack_require__.r(__webpack_exports__);
|
13191 | var _VFileInput_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VFileInput/VFileInput.sass");
|
13192 | var _VFileInput_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VFileInput_sass__WEBPACK_IMPORTED_MODULE_0__);
|
13193 | var _VTextField__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VTextField/index.ts");
|
13194 | var _VChip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VChip/index.ts");
|
13195 | var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/helpers.ts");
|
13196 | var _util_console__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/console.ts");
|
13197 | 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); }
|
13198 |
|
13199 | var __assign = undefined && undefined.__assign || function () {
|
13200 | __assign = Object.assign || function (t) {
|
13201 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
13202 | s = arguments[i];
|
13203 |
|
13204 | for (var p in s) {
|
13205 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
13206 | }
|
13207 | }
|
13208 |
|
13209 | return t;
|
13210 | };
|
13211 |
|
13212 | return __assign.apply(this, arguments);
|
13213 | };
|
13214 |
|
13215 | var __read = undefined && undefined.__read || function (o, n) {
|
13216 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
13217 | if (!m) return o;
|
13218 | var i = m.call(o),
|
13219 | r,
|
13220 | ar = [],
|
13221 | e;
|
13222 |
|
13223 | try {
|
13224 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
13225 | ar.push(r.value);
|
13226 | }
|
13227 | } catch (error) {
|
13228 | e = {
|
13229 | error: error
|
13230 | };
|
13231 | } finally {
|
13232 | try {
|
13233 | if (r && !r.done && (m = i["return"])) m.call(i);
|
13234 | } finally {
|
13235 | if (e) throw e.error;
|
13236 | }
|
13237 | }
|
13238 |
|
13239 | return ar;
|
13240 | };
|
13241 |
|
13242 | var __spread = undefined && undefined.__spread || function () {
|
13243 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
13244 | ar = ar.concat(__read(arguments[i]));
|
13245 | }
|
13246 |
|
13247 | return ar;
|
13248 | };
|
13249 |
|
13250 |
|
13251 |
|
13252 |
|
13253 |
|
13254 |
|
13255 |
|
13256 |
|
13257 |
|
13258 |
|
13259 | __webpack_exports__["default"] = (_VTextField__WEBPACK_IMPORTED_MODULE_1__["default"].extend({
|
13260 | name: 'v-file-input',
|
13261 | model: {
|
13262 | prop: 'value',
|
13263 | event: 'change'
|
13264 | },
|
13265 | props: {
|
13266 | chips: Boolean,
|
13267 | clearable: {
|
13268 | type: Boolean,
|
13269 | default: true
|
13270 | },
|
13271 | counterSizeString: {
|
13272 | type: String,
|
13273 | default: '$vuetify.fileInput.counterSize'
|
13274 | },
|
13275 | counterString: {
|
13276 | type: String,
|
13277 | default: '$vuetify.fileInput.counter'
|
13278 | },
|
13279 | placeholder: String,
|
13280 | prependIcon: {
|
13281 | type: String,
|
13282 | default: '$file'
|
13283 | },
|
13284 | readonly: {
|
13285 | type: Boolean,
|
13286 | default: false
|
13287 | },
|
13288 | showSize: {
|
13289 | type: [Boolean, Number],
|
13290 | default: false,
|
13291 | validator: function validator(v) {
|
13292 | return typeof v === 'boolean' || [1000, 1024].includes(v);
|
13293 | }
|
13294 | },
|
13295 | smallChips: Boolean,
|
13296 | truncateLength: {
|
13297 | type: [Number, String],
|
13298 | default: 22
|
13299 | },
|
13300 | type: {
|
13301 | type: String,
|
13302 | default: 'file'
|
13303 | },
|
13304 | value: {
|
13305 | default: function _default() {
|
13306 | return [];
|
13307 | },
|
13308 | validator: function validator(val) {
|
13309 | return _typeof(val) === 'object' || Array.isArray(val);
|
13310 | }
|
13311 | }
|
13312 | },
|
13313 | computed: {
|
13314 | classes: function classes() {
|
13315 | return __assign({}, _VTextField__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this), {
|
13316 | 'v-file-input': true
|
13317 | });
|
13318 | },
|
13319 | counterValue: function counterValue() {
|
13320 | var fileCount = this.isMultiple && this.lazyValue ? this.lazyValue.length : this.lazyValue instanceof File ? 1 : 0;
|
13321 | if (!this.showSize) return this.$vuetify.lang.t(this.counterString, fileCount);
|
13322 | var bytes = this.internalArrayValue.reduce(function (size, file) {
|
13323 | return size + file.size;
|
13324 | }, 0);
|
13325 | return this.$vuetify.lang.t(this.counterSizeString, fileCount, Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["humanReadableFileSize"])(bytes, this.base === 1024));
|
13326 | },
|
13327 | internalArrayValue: function internalArrayValue() {
|
13328 | return Array.isArray(this.internalValue) ? this.internalValue : Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["wrapInArray"])(this.internalValue);
|
13329 | },
|
13330 | internalValue: {
|
13331 | get: function get() {
|
13332 | return this.lazyValue;
|
13333 | },
|
13334 | set: function set(val) {
|
13335 | this.lazyValue = val;
|
13336 | this.$emit('change', this.lazyValue);
|
13337 | }
|
13338 | },
|
13339 | isDirty: function isDirty() {
|
13340 | return this.internalArrayValue.length > 0;
|
13341 | },
|
13342 | isLabelActive: function isLabelActive() {
|
13343 | return this.isDirty;
|
13344 | },
|
13345 | isMultiple: function isMultiple() {
|
13346 | return this.$attrs.hasOwnProperty('multiple');
|
13347 | },
|
13348 | text: function text() {
|
13349 | var _this = this;
|
13350 |
|
13351 | if (!this.isDirty) return [this.placeholder];
|
13352 | return this.internalArrayValue.map(function (file) {
|
13353 | var name = _this.truncateText(file.name);
|
13354 |
|
13355 | return !_this.showSize ? name : name + " (" + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["humanReadableFileSize"])(file.size, _this.base === 1024) + ")";
|
13356 | });
|
13357 | },
|
13358 | base: function base() {
|
13359 | return typeof this.showSize !== 'boolean' ? this.showSize : undefined;
|
13360 | },
|
13361 | hasChips: function hasChips() {
|
13362 | return this.chips || this.smallChips;
|
13363 | }
|
13364 | },
|
13365 | watch: {
|
13366 | readonly: {
|
13367 | handler: function handler(v) {
|
13368 | if (v === true) Object(_util_console__WEBPACK_IMPORTED_MODULE_4__["consoleError"])('readonly is not supported on <v-file-input>', this);
|
13369 | },
|
13370 | immediate: true
|
13371 | }
|
13372 | },
|
13373 | methods: {
|
13374 | clearableCallback: function clearableCallback() {
|
13375 | this.internalValue = this.isMultiple ? [] : null;
|
13376 | this.$refs.input.value = '';
|
13377 | },
|
13378 | genChips: function genChips() {
|
13379 | var _this = this;
|
13380 |
|
13381 | if (!this.isDirty) return [];
|
13382 | return this.text.map(function (text, index) {
|
13383 | return _this.$createElement(_VChip__WEBPACK_IMPORTED_MODULE_2__["VChip"], {
|
13384 | props: {
|
13385 | small: _this.smallChips
|
13386 | },
|
13387 | on: {
|
13388 | 'click:close': function clickClose() {
|
13389 | var internalValue = _this.internalValue;
|
13390 | internalValue.splice(index, 1);
|
13391 | _this.internalValue = internalValue;
|
13392 | }
|
13393 | }
|
13394 | }, [text]);
|
13395 | });
|
13396 | },
|
13397 | genInput: function genInput() {
|
13398 | var input = _VTextField__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genInput.call(this);
|
13399 |
|
13400 |
|
13401 |
|
13402 | delete input.data.domProps.value;
|
13403 |
|
13404 |
|
13405 |
|
13406 |
|
13407 | delete input.data.on.input;
|
13408 | input.data.on.change = this.onInput;
|
13409 | return [this.genSelections(), input];
|
13410 | },
|
13411 | genPrependSlot: function genPrependSlot() {
|
13412 | var _this = this;
|
13413 |
|
13414 | if (!this.prependIcon) return null;
|
13415 | var icon = this.genIcon('prepend', function () {
|
13416 | _this.$refs.input.click();
|
13417 | });
|
13418 | return this.genSlot('prepend', 'outer', [icon]);
|
13419 | },
|
13420 | genSelectionText: function genSelectionText() {
|
13421 | var length = this.text.length;
|
13422 | if (length < 2) return this.text;
|
13423 | if (this.showSize && !this.counter) return [this.counterValue];
|
13424 | return [this.$vuetify.lang.t(this.counterString, length)];
|
13425 | },
|
13426 | genSelections: function genSelections() {
|
13427 | var _this = this;
|
13428 |
|
13429 | var children = [];
|
13430 |
|
13431 | if (this.isDirty && this.$scopedSlots.selection) {
|
13432 | this.internalArrayValue.forEach(function (file, index) {
|
13433 | if (!_this.$scopedSlots.selection) return;
|
13434 | children.push(_this.$scopedSlots.selection({
|
13435 | text: _this.text[index],
|
13436 | file: file,
|
13437 | index: index
|
13438 | }));
|
13439 | });
|
13440 | } else {
|
13441 | children.push(this.hasChips && this.isDirty ? this.genChips() : this.genSelectionText());
|
13442 | }
|
13443 |
|
13444 | return this.$createElement('div', {
|
13445 | staticClass: 'v-file-input__text',
|
13446 | class: {
|
13447 | 'v-file-input__text--placeholder': this.placeholder && !this.isDirty,
|
13448 | 'v-file-input__text--chips': this.hasChips && !this.$scopedSlots.selection
|
13449 | },
|
13450 | on: {
|
13451 | click: function click() {
|
13452 | return _this.$refs.input.click();
|
13453 | }
|
13454 | }
|
13455 | }, children);
|
13456 | },
|
13457 | onInput: function onInput(e) {
|
13458 | var files = __spread(e.target.files || []);
|
13459 |
|
13460 | this.internalValue = this.isMultiple ? files : files[0];
|
13461 |
|
13462 |
|
13463 |
|
13464 | this.initialValue = this.internalValue;
|
13465 | },
|
13466 | onKeyDown: function onKeyDown(e) {
|
13467 | this.$emit('keydown', e);
|
13468 | },
|
13469 | truncateText: function truncateText(str) {
|
13470 | if (str.length < Number(this.truncateLength)) return str;
|
13471 | var charsKeepOneSide = Math.floor((Number(this.truncateLength) - 1) / 2);
|
13472 | return str.slice(0, charsKeepOneSide) + "\u2026" + str.slice(str.length - charsKeepOneSide);
|
13473 | }
|
13474 | }
|
13475 | }));
|
13476 |
|
13477 | }),
|
13478 |
|
13479 | "./src/components/VFileInput/index.ts":
|
13480 |
|
13481 |
|
13482 |
|
13483 |
|
13484 | (function(module, __webpack_exports__, __webpack_require__) {
|
13485 |
|
13486 | "use strict";
|
13487 | __webpack_require__.r(__webpack_exports__);
|
13488 | var _VFileInput__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VFileInput/VFileInput.ts");
|
13489 | __webpack_require__.d(__webpack_exports__, "VFileInput", function() { return _VFileInput__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
13490 |
|
13491 |
|
13492 |
|
13493 | __webpack_exports__["default"] = (_VFileInput__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
13494 |
|
13495 | }),
|
13496 |
|
13497 | "./src/components/VFooter/VFooter.sass":
|
13498 |
|
13499 |
|
13500 |
|
13501 |
|
13502 | (function(module, exports, __webpack_require__) {
|
13503 |
|
13504 |
|
13505 |
|
13506 | }),
|
13507 |
|
13508 | "./src/components/VFooter/VFooter.ts":
|
13509 |
|
13510 |
|
13511 |
|
13512 |
|
13513 | (function(module, __webpack_exports__, __webpack_require__) {
|
13514 |
|
13515 | "use strict";
|
13516 | __webpack_require__.r(__webpack_exports__);
|
13517 | var _VFooter_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VFooter/VFooter.sass");
|
13518 | var _VFooter_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VFooter_sass__WEBPACK_IMPORTED_MODULE_0__);
|
13519 | var _mixins_applicationable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/applicationable/index.ts");
|
13520 | var _VSheet_VSheet__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VSheet/VSheet.ts");
|
13521 | var _mixins_ssr_bootable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/ssr-bootable/index.ts");
|
13522 | var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/mixins.ts");
|
13523 | var _util_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/util/helpers.ts");
|
13524 | var __assign = undefined && undefined.__assign || function () {
|
13525 | __assign = Object.assign || function (t) {
|
13526 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
13527 | s = arguments[i];
|
13528 |
|
13529 | for (var p in s) {
|
13530 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
13531 | }
|
13532 | }
|
13533 |
|
13534 | return t;
|
13535 | };
|
13536 |
|
13537 | return __assign.apply(this, arguments);
|
13538 | };
|
13539 |
|
13540 |
|
13541 |
|
13542 |
|
13543 |
|
13544 |
|
13545 |
|
13546 |
|
13547 |
|
13548 |
|
13549 |
|
13550 |
|
13551 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_VSheet_VSheet__WEBPACK_IMPORTED_MODULE_2__["default"], Object(_mixins_applicationable__WEBPACK_IMPORTED_MODULE_1__["default"])('footer', ['height', 'inset']), _mixins_ssr_bootable__WEBPACK_IMPORTED_MODULE_3__["default"]).extend({
|
13552 | name: 'v-footer',
|
13553 | props: {
|
13554 | height: {
|
13555 | default: 'auto',
|
13556 | type: [Number, String]
|
13557 | },
|
13558 | inset: Boolean,
|
13559 | padless: Boolean,
|
13560 | tile: {
|
13561 | type: Boolean,
|
13562 | default: true
|
13563 | }
|
13564 | },
|
13565 | computed: {
|
13566 | applicationProperty: function applicationProperty() {
|
13567 | return this.inset ? 'insetFooter' : 'footer';
|
13568 | },
|
13569 | classes: function classes() {
|
13570 | return __assign({}, _VSheet_VSheet__WEBPACK_IMPORTED_MODULE_2__["default"].options.computed.classes.call(this), {
|
13571 | 'v-footer--absolute': this.absolute,
|
13572 | 'v-footer--fixed': !this.absolute && (this.app || this.fixed),
|
13573 | 'v-footer--padless': this.padless,
|
13574 | 'v-footer--inset': this.inset
|
13575 | });
|
13576 | },
|
13577 | computedBottom: function computedBottom() {
|
13578 | if (!this.isPositioned) return undefined;
|
13579 | return this.app ? this.$vuetify.application.bottom : 0;
|
13580 | },
|
13581 | computedLeft: function computedLeft() {
|
13582 | if (!this.isPositioned) return undefined;
|
13583 | return this.app && this.inset ? this.$vuetify.application.left : 0;
|
13584 | },
|
13585 | computedRight: function computedRight() {
|
13586 | if (!this.isPositioned) return undefined;
|
13587 | return this.app && this.inset ? this.$vuetify.application.right : 0;
|
13588 | },
|
13589 | isPositioned: function isPositioned() {
|
13590 | return Boolean(this.absolute || this.fixed || this.app);
|
13591 | },
|
13592 | styles: function styles() {
|
13593 | var height = parseInt(this.height);
|
13594 | return __assign({}, _VSheet_VSheet__WEBPACK_IMPORTED_MODULE_2__["default"].options.computed.styles.call(this), {
|
13595 | height: isNaN(height) ? height : Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["convertToUnit"])(height),
|
13596 | left: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["convertToUnit"])(this.computedLeft),
|
13597 | right: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["convertToUnit"])(this.computedRight),
|
13598 | bottom: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["convertToUnit"])(this.computedBottom)
|
13599 | });
|
13600 | }
|
13601 | },
|
13602 | methods: {
|
13603 | updateApplication: function updateApplication() {
|
13604 | var height = parseInt(this.height);
|
13605 | return isNaN(height) ? this.$el ? this.$el.clientHeight : 0 : height;
|
13606 | }
|
13607 | },
|
13608 | render: function render(h) {
|
13609 | var data = this.setBackgroundColor(this.color, {
|
13610 | staticClass: 'v-footer',
|
13611 | class: this.classes,
|
13612 | style: this.styles
|
13613 | });
|
13614 | return h('footer', data, this.$slots.default);
|
13615 | }
|
13616 | }));
|
13617 |
|
13618 | }),
|
13619 |
|
13620 | "./src/components/VFooter/index.ts":
|
13621 |
|
13622 |
|
13623 |
|
13624 |
|
13625 | (function(module, __webpack_exports__, __webpack_require__) {
|
13626 |
|
13627 | "use strict";
|
13628 | __webpack_require__.r(__webpack_exports__);
|
13629 | var _VFooter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VFooter/VFooter.ts");
|
13630 | __webpack_require__.d(__webpack_exports__, "VFooter", function() { return _VFooter__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
13631 |
|
13632 |
|
13633 |
|
13634 | __webpack_exports__["default"] = (_VFooter__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
13635 |
|
13636 | }),
|
13637 |
|
13638 | "./src/components/VForm/VForm.ts":
|
13639 |
|
13640 |
|
13641 |
|
13642 |
|
13643 | (function(module, __webpack_exports__, __webpack_require__) {
|
13644 |
|
13645 | "use strict";
|
13646 | __webpack_require__.r(__webpack_exports__);
|
13647 | var _util_mixins__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/mixins.ts");
|
13648 | var _mixins_binds_attrs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/binds-attrs/index.ts");
|
13649 | var _mixins_registrable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/registrable/index.ts");
|
13650 | var __assign = undefined && undefined.__assign || function () {
|
13651 | __assign = Object.assign || function (t) {
|
13652 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
13653 | s = arguments[i];
|
13654 |
|
13655 | for (var p in s) {
|
13656 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
13657 | }
|
13658 | }
|
13659 |
|
13660 | return t;
|
13661 | };
|
13662 |
|
13663 | return __assign.apply(this, arguments);
|
13664 | };
|
13665 |
|
13666 |
|
13667 |
|
13668 |
|
13669 |
|
13670 |
|
13671 |
|
13672 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_0__["default"])(_mixins_binds_attrs__WEBPACK_IMPORTED_MODULE_1__["default"], Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_2__["provide"])('form')
|
13673 |
|
13674 | ).extend({
|
13675 | name: 'v-form',
|
13676 | inheritAttrs: false,
|
13677 | props: {
|
13678 | lazyValidation: Boolean,
|
13679 | value: Boolean
|
13680 | },
|
13681 | data: function data() {
|
13682 | return {
|
13683 | inputs: [],
|
13684 | watchers: [],
|
13685 | errorBag: {}
|
13686 | };
|
13687 | },
|
13688 | watch: {
|
13689 | errorBag: {
|
13690 | handler: function handler(val) {
|
13691 | var errors = Object.values(val).includes(true);
|
13692 | this.$emit('input', !errors);
|
13693 | },
|
13694 | deep: true,
|
13695 | immediate: true
|
13696 | }
|
13697 | },
|
13698 | methods: {
|
13699 | watchInput: function watchInput(input) {
|
13700 | var _this = this;
|
13701 |
|
13702 | var watcher = function watcher(input) {
|
13703 | return input.$watch('hasError', function (val) {
|
13704 | _this.$set(_this.errorBag, input._uid, val);
|
13705 | }, {
|
13706 | immediate: true
|
13707 | });
|
13708 | };
|
13709 |
|
13710 | var watchers = {
|
13711 | _uid: input._uid,
|
13712 | valid: function valid() {},
|
13713 | shouldValidate: function shouldValidate() {}
|
13714 | };
|
13715 |
|
13716 | if (this.lazyValidation) {
|
13717 |
|
13718 | watchers.shouldValidate = input.$watch('shouldValidate', function (val) {
|
13719 | if (!val) return;
|
13720 |
|
13721 | if (_this.errorBag.hasOwnProperty(input._uid)) return;
|
13722 | watchers.valid = watcher(input);
|
13723 | });
|
13724 | } else {
|
13725 | watchers.valid = watcher(input);
|
13726 | }
|
13727 |
|
13728 | return watchers;
|
13729 | },
|
13730 |
|
13731 |
|
13732 | validate: function validate() {
|
13733 | return this.inputs.filter(function (input) {
|
13734 | return !input.validate(true);
|
13735 | }).length === 0;
|
13736 | },
|
13737 |
|
13738 |
|
13739 | reset: function reset() {
|
13740 | this.inputs.forEach(function (input) {
|
13741 | return input.reset();
|
13742 | });
|
13743 | this.resetErrorBag();
|
13744 | },
|
13745 | resetErrorBag: function resetErrorBag() {
|
13746 | var _this = this;
|
13747 |
|
13748 | if (this.lazyValidation) {
|
13749 |
|
13750 | setTimeout(function () {
|
13751 | _this.errorBag = {};
|
13752 | }, 0);
|
13753 | }
|
13754 | },
|
13755 |
|
13756 |
|
13757 | resetValidation: function resetValidation() {
|
13758 | this.inputs.forEach(function (input) {
|
13759 | return input.resetValidation();
|
13760 | });
|
13761 | this.resetErrorBag();
|
13762 | },
|
13763 | register: function register(input) {
|
13764 | this.inputs.push(input);
|
13765 | this.watchers.push(this.watchInput(input));
|
13766 | },
|
13767 | unregister: function unregister(input) {
|
13768 | var found = this.inputs.find(function (i) {
|
13769 | return i._uid === input._uid;
|
13770 | });
|
13771 | if (!found) return;
|
13772 | var unwatch = this.watchers.find(function (i) {
|
13773 | return i._uid === found._uid;
|
13774 | });
|
13775 |
|
13776 | if (unwatch) {
|
13777 | unwatch.valid();
|
13778 | unwatch.shouldValidate();
|
13779 | }
|
13780 |
|
13781 | this.watchers = this.watchers.filter(function (i) {
|
13782 | return i._uid !== found._uid;
|
13783 | });
|
13784 | this.inputs = this.inputs.filter(function (i) {
|
13785 | return i._uid !== found._uid;
|
13786 | });
|
13787 | this.$delete(this.errorBag, found._uid);
|
13788 | }
|
13789 | },
|
13790 | render: function render(h) {
|
13791 | var _this = this;
|
13792 |
|
13793 | return h('form', {
|
13794 | staticClass: 'v-form',
|
13795 | attrs: __assign({
|
13796 | novalidate: true
|
13797 | }, this.attrs$),
|
13798 | on: {
|
13799 | submit: function submit(e) {
|
13800 | return _this.$emit('submit', e);
|
13801 | }
|
13802 | }
|
13803 | }, this.$slots.default);
|
13804 | }
|
13805 | }));
|
13806 |
|
13807 | }),
|
13808 |
|
13809 | "./src/components/VForm/index.ts":
|
13810 |
|
13811 |
|
13812 |
|
13813 |
|
13814 | (function(module, __webpack_exports__, __webpack_require__) {
|
13815 |
|
13816 | "use strict";
|
13817 | __webpack_require__.r(__webpack_exports__);
|
13818 | var _VForm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VForm/VForm.ts");
|
13819 | __webpack_require__.d(__webpack_exports__, "VForm", function() { return _VForm__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
13820 |
|
13821 |
|
13822 |
|
13823 | __webpack_exports__["default"] = (_VForm__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
13824 |
|
13825 | }),
|
13826 |
|
13827 | "./src/components/VGrid/VCol.ts":
|
13828 |
|
13829 |
|
13830 |
|
13831 |
|
13832 | (function(module, __webpack_exports__, __webpack_require__) {
|
13833 |
|
13834 | "use strict";
|
13835 | __webpack_require__.r(__webpack_exports__);
|
13836 | var _VGrid_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VGrid/VGrid.sass");
|
13837 | var _VGrid_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VGrid_sass__WEBPACK_IMPORTED_MODULE_0__);
|
13838 | var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "vue");
|
13839 | var vue__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
|
13840 | var _util_mergeData__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/mergeData.ts");
|
13841 | var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/helpers.ts");
|
13842 | var __assign = undefined && undefined.__assign || function () {
|
13843 | __assign = Object.assign || function (t) {
|
13844 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
13845 | s = arguments[i];
|
13846 |
|
13847 | for (var p in s) {
|
13848 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
13849 | }
|
13850 | }
|
13851 |
|
13852 | return t;
|
13853 | };
|
13854 |
|
13855 | return __assign.apply(this, arguments);
|
13856 | };
|
13857 |
|
13858 |
|
13859 |
|
13860 |
|
13861 |
|
13862 |
|
13863 | var breakpoints = ['sm', 'md', 'lg', 'xl'];
|
13864 |
|
13865 | var breakpointProps = function () {
|
13866 | return breakpoints.reduce(function (props, val) {
|
13867 | props[val] = {
|
13868 | type: [Boolean, String, Number],
|
13869 | default: false
|
13870 | };
|
13871 | return props;
|
13872 | }, {});
|
13873 | }();
|
13874 |
|
13875 | var offsetProps = function () {
|
13876 | return breakpoints.reduce(function (props, val) {
|
13877 | props['offset' + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["upperFirst"])(val)] = {
|
13878 | type: [String, Number],
|
13879 | default: null
|
13880 | };
|
13881 | return props;
|
13882 | }, {});
|
13883 | }();
|
13884 |
|
13885 | var orderProps = function () {
|
13886 | return breakpoints.reduce(function (props, val) {
|
13887 | props['order' + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["upperFirst"])(val)] = {
|
13888 | type: [String, Number],
|
13889 | default: null
|
13890 | };
|
13891 | return props;
|
13892 | }, {});
|
13893 | }();
|
13894 |
|
13895 | var propMap = {
|
13896 | col: Object.keys(breakpointProps),
|
13897 | offset: Object.keys(offsetProps),
|
13898 | order: Object.keys(orderProps)
|
13899 | };
|
13900 |
|
13901 | function breakpointClass(type, prop, val) {
|
13902 | var className = type;
|
13903 |
|
13904 | if (val == null || val === false) {
|
13905 | return undefined;
|
13906 | }
|
13907 |
|
13908 | if (prop) {
|
13909 | var breakpoint = prop.replace(type, '');
|
13910 | className += "-" + breakpoint;
|
13911 | }
|
13912 |
|
13913 |
|
13914 |
|
13915 |
|
13916 | if (type === 'col' && (val === '' || val === true)) {
|
13917 |
|
13918 | return className.toLowerCase();
|
13919 | }
|
13920 |
|
13921 |
|
13922 | className += "-" + val;
|
13923 | return className.toLowerCase();
|
13924 | }
|
13925 |
|
13926 | var cache = new Map();
|
13927 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_1___default.a.extend({
|
13928 | name: 'v-col',
|
13929 | functional: true,
|
13930 | props: __assign({
|
13931 | cols: {
|
13932 | type: [Boolean, String, Number],
|
13933 | default: false
|
13934 | }
|
13935 | }, breakpointProps, {
|
13936 | offset: {
|
13937 | type: [String, Number],
|
13938 | default: null
|
13939 | }
|
13940 | }, offsetProps, {
|
13941 | order: {
|
13942 | type: [String, Number],
|
13943 | default: null
|
13944 | }
|
13945 | }, orderProps, {
|
13946 | alignSelf: {
|
13947 | type: String,
|
13948 | default: null,
|
13949 | validator: function validator(str) {
|
13950 | return ['auto', 'start', 'end', 'center', 'baseline', 'stretch'].includes(str);
|
13951 | }
|
13952 | },
|
13953 | justifySelf: {
|
13954 | type: String,
|
13955 | default: null,
|
13956 | validator: function validator(str) {
|
13957 | return ['auto', 'start', 'end', 'center', 'baseline', 'stretch'].includes(str);
|
13958 | }
|
13959 | },
|
13960 | tag: {
|
13961 | type: String,
|
13962 | default: 'div'
|
13963 | }
|
13964 | }),
|
13965 | render: function render(h, _a) {
|
13966 | var _b;
|
13967 |
|
13968 | var props = _a.props,
|
13969 | data = _a.data,
|
13970 | children = _a.children,
|
13971 | parent = _a.parent;
|
13972 |
|
13973 | var cacheKey = '';
|
13974 |
|
13975 | for (var prop in props) {
|
13976 | cacheKey += String(props[prop]);
|
13977 | }
|
13978 |
|
13979 | var classList = cache.get(cacheKey);
|
13980 |
|
13981 | if (!classList) {
|
13982 | classList = [];
|
13983 |
|
13984 | var type_1;
|
13985 |
|
13986 | for (type_1 in propMap) {
|
13987 | propMap[type_1].forEach(function (prop) {
|
13988 | var value = props[prop];
|
13989 | var className = breakpointClass(type_1, prop, value);
|
13990 | if (className) classList.push(className);
|
13991 | });
|
13992 | }
|
13993 |
|
13994 | var hasColClasses = classList.some(function (className) {
|
13995 | return className.startsWith('col-');
|
13996 | });
|
13997 | classList.push((_b = {
|
13998 |
|
13999 | col: !hasColClasses || !props.cols
|
14000 | }, _b["col-" + props.cols] = props.cols, _b["offset-" + props.offset] = props.offset, _b["order-" + props.order] = props.order, _b["align-self-" + props.alignSelf] = props.alignSelf, _b["justify-self-" + props.justifySelf] = props.justifySelf, _b));
|
14001 | cache.set(cacheKey, classList);
|
14002 | }
|
14003 |
|
14004 | return h(props.tag, Object(_util_mergeData__WEBPACK_IMPORTED_MODULE_2__["default"])(data, {
|
14005 | class: classList
|
14006 | }), children);
|
14007 | }
|
14008 | }));
|
14009 |
|
14010 | }),
|
14011 |
|
14012 | "./src/components/VGrid/VContainer.ts":
|
14013 |
|
14014 |
|
14015 |
|
14016 |
|
14017 | (function(module, __webpack_exports__, __webpack_require__) {
|
14018 |
|
14019 | "use strict";
|
14020 | __webpack_require__.r(__webpack_exports__);
|
14021 | var _grid_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VGrid/_grid.sass");
|
14022 | var _grid_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_grid_sass__WEBPACK_IMPORTED_MODULE_0__);
|
14023 | var _VGrid_sass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VGrid/VGrid.sass");
|
14024 | var _VGrid_sass__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(_VGrid_sass__WEBPACK_IMPORTED_MODULE_1__);
|
14025 | var _grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VGrid/grid.ts");
|
14026 | var _util_mergeData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mergeData.ts");
|
14027 |
|
14028 |
|
14029 |
|
14030 |
|
14031 |
|
14032 |
|
14033 | __webpack_exports__["default"] = (Object(_grid__WEBPACK_IMPORTED_MODULE_2__["default"])('container').extend({
|
14034 | name: 'v-container',
|
14035 | functional: true,
|
14036 | props: {
|
14037 | id: String,
|
14038 | tag: {
|
14039 | type: String,
|
14040 | default: 'div'
|
14041 | },
|
14042 | fluid: {
|
14043 | type: Boolean,
|
14044 | default: false
|
14045 | }
|
14046 | },
|
14047 | render: function render(h, _a) {
|
14048 | var props = _a.props,
|
14049 | data = _a.data,
|
14050 | children = _a.children;
|
14051 | var classes;
|
14052 | var attrs = data.attrs;
|
14053 |
|
14054 | if (attrs) {
|
14055 |
|
14056 | data.attrs = {};
|
14057 | classes = Object.keys(attrs).filter(function (key) {
|
14058 |
|
14059 |
|
14060 | if (key === 'slot') return false;
|
14061 | var value = attrs[key];
|
14062 |
|
14063 |
|
14064 | if (key.startsWith('data-')) {
|
14065 | data.attrs[key] = value;
|
14066 | return false;
|
14067 | }
|
14068 |
|
14069 | return value || typeof value === 'string';
|
14070 | });
|
14071 | }
|
14072 |
|
14073 | if (props.id) {
|
14074 | data.domProps = data.domProps || {};
|
14075 | data.domProps.id = props.id;
|
14076 | }
|
14077 |
|
14078 | return h(props.tag, Object(_util_mergeData__WEBPACK_IMPORTED_MODULE_3__["default"])(data, {
|
14079 | staticClass: 'container',
|
14080 | class: Array({
|
14081 | 'container--fluid': props.fluid
|
14082 | }).concat(classes || [])
|
14083 | }), children);
|
14084 | }
|
14085 | }));
|
14086 |
|
14087 | }),
|
14088 |
|
14089 | "./src/components/VGrid/VFlex.ts":
|
14090 |
|
14091 |
|
14092 |
|
14093 |
|
14094 | (function(module, __webpack_exports__, __webpack_require__) {
|
14095 |
|
14096 | "use strict";
|
14097 | __webpack_require__.r(__webpack_exports__);
|
14098 | var _grid_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VGrid/_grid.sass");
|
14099 | var _grid_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_grid_sass__WEBPACK_IMPORTED_MODULE_0__);
|
14100 | var _grid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VGrid/grid.ts");
|
14101 |
|
14102 |
|
14103 | __webpack_exports__["default"] = (Object(_grid__WEBPACK_IMPORTED_MODULE_1__["default"])('flex'));
|
14104 |
|
14105 | }),
|
14106 |
|
14107 | "./src/components/VGrid/VGrid.sass":
|
14108 |
|
14109 |
|
14110 |
|
14111 |
|
14112 | (function(module, exports, __webpack_require__) {
|
14113 |
|
14114 |
|
14115 |
|
14116 | }),
|
14117 |
|
14118 | "./src/components/VGrid/VLayout.ts":
|
14119 |
|
14120 |
|
14121 |
|
14122 |
|
14123 | (function(module, __webpack_exports__, __webpack_require__) {
|
14124 |
|
14125 | "use strict";
|
14126 | __webpack_require__.r(__webpack_exports__);
|
14127 | var _grid_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VGrid/_grid.sass");
|
14128 | var _grid_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_grid_sass__WEBPACK_IMPORTED_MODULE_0__);
|
14129 | var _grid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VGrid/grid.ts");
|
14130 |
|
14131 |
|
14132 | __webpack_exports__["default"] = (Object(_grid__WEBPACK_IMPORTED_MODULE_1__["default"])('layout'));
|
14133 |
|
14134 | }),
|
14135 |
|
14136 | "./src/components/VGrid/VRow.ts":
|
14137 |
|
14138 |
|
14139 |
|
14140 |
|
14141 | (function(module, __webpack_exports__, __webpack_require__) {
|
14142 |
|
14143 | "use strict";
|
14144 | __webpack_require__.r(__webpack_exports__);
|
14145 | var _VGrid_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VGrid/VGrid.sass");
|
14146 | var _VGrid_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VGrid_sass__WEBPACK_IMPORTED_MODULE_0__);
|
14147 | var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "vue");
|
14148 | var vue__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
|
14149 | var _util_mergeData__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/mergeData.ts");
|
14150 | var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/helpers.ts");
|
14151 | var __assign = undefined && undefined.__assign || function () {
|
14152 | __assign = Object.assign || function (t) {
|
14153 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
14154 | s = arguments[i];
|
14155 |
|
14156 | for (var p in s) {
|
14157 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
14158 | }
|
14159 | }
|
14160 |
|
14161 | return t;
|
14162 | };
|
14163 |
|
14164 | return __assign.apply(this, arguments);
|
14165 | };
|
14166 |
|
14167 | var __read = undefined && undefined.__read || function (o, n) {
|
14168 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
14169 | if (!m) return o;
|
14170 | var i = m.call(o),
|
14171 | r,
|
14172 | ar = [],
|
14173 | e;
|
14174 |
|
14175 | try {
|
14176 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
14177 | ar.push(r.value);
|
14178 | }
|
14179 | } catch (error) {
|
14180 | e = {
|
14181 | error: error
|
14182 | };
|
14183 | } finally {
|
14184 | try {
|
14185 | if (r && !r.done && (m = i["return"])) m.call(i);
|
14186 | } finally {
|
14187 | if (e) throw e.error;
|
14188 | }
|
14189 | }
|
14190 |
|
14191 | return ar;
|
14192 | };
|
14193 |
|
14194 | var __spread = undefined && undefined.__spread || function () {
|
14195 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
14196 | ar = ar.concat(__read(arguments[i]));
|
14197 | }
|
14198 |
|
14199 | return ar;
|
14200 | };
|
14201 |
|
14202 |
|
14203 |
|
14204 |
|
14205 |
|
14206 |
|
14207 | var breakpoints = ['sm', 'md', 'lg', 'xl'];
|
14208 | var ALIGNMENT = ['start', 'end', 'center'];
|
14209 |
|
14210 | function makeProps(prefix, def) {
|
14211 | return breakpoints.reduce(function (props, val) {
|
14212 | props[prefix + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["upperFirst"])(val)] = def();
|
14213 | return props;
|
14214 | }, {});
|
14215 | }
|
14216 |
|
14217 | var alignValidator = function alignValidator(str) {
|
14218 | return __spread(ALIGNMENT, ['baseline', 'stretch']).includes(str);
|
14219 | };
|
14220 |
|
14221 | var alignProps = makeProps('align', function () {
|
14222 | return {
|
14223 | type: String,
|
14224 | default: null,
|
14225 | validator: alignValidator
|
14226 | };
|
14227 | });
|
14228 |
|
14229 | var justifyValidator = function justifyValidator(str) {
|
14230 | return __spread(ALIGNMENT, ['space-between', 'space-around']).includes(str);
|
14231 | };
|
14232 |
|
14233 | var justifyProps = makeProps('justify', function () {
|
14234 | return {
|
14235 | type: String,
|
14236 | default: null,
|
14237 | validator: justifyValidator
|
14238 | };
|
14239 | });
|
14240 |
|
14241 | var alignContentValidator = function alignContentValidator(str) {
|
14242 | return __spread(ALIGNMENT, ['space-between', 'space-around', 'stretch']).includes(str);
|
14243 | };
|
14244 |
|
14245 | var alignContentProps = makeProps('alignContent', function () {
|
14246 | return {
|
14247 | type: String,
|
14248 | default: null,
|
14249 | validator: alignContentValidator
|
14250 | };
|
14251 | });
|
14252 | var propMap = {
|
14253 | align: Object.keys(alignProps),
|
14254 | justify: Object.keys(justifyProps),
|
14255 | alignContent: Object.keys(alignContentProps)
|
14256 | };
|
14257 | var classMap = {
|
14258 | align: 'align',
|
14259 | justify: 'justify',
|
14260 | alignContent: 'align-content'
|
14261 | };
|
14262 |
|
14263 | function breakpointClass(type, prop, val) {
|
14264 | var className = classMap[type];
|
14265 |
|
14266 | if (val == null) {
|
14267 | return undefined;
|
14268 | }
|
14269 |
|
14270 | if (prop) {
|
14271 |
|
14272 | var breakpoint = prop.replace(type, '');
|
14273 | className += "-" + breakpoint;
|
14274 | }
|
14275 |
|
14276 |
|
14277 | className += "-" + val;
|
14278 | return className.toLowerCase();
|
14279 | }
|
14280 |
|
14281 | var cache = new Map();
|
14282 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_1___default.a.extend({
|
14283 | name: 'v-row',
|
14284 | functional: true,
|
14285 | props: __assign({
|
14286 | tag: {
|
14287 | type: String,
|
14288 | default: 'div'
|
14289 | },
|
14290 | dense: Boolean,
|
14291 | noGutters: Boolean,
|
14292 | align: {
|
14293 | type: String,
|
14294 | default: null,
|
14295 | validator: alignValidator
|
14296 | }
|
14297 | }, alignProps, {
|
14298 | justify: {
|
14299 | type: String,
|
14300 | default: null,
|
14301 | validator: justifyValidator
|
14302 | }
|
14303 | }, justifyProps, {
|
14304 | alignContent: {
|
14305 | type: String,
|
14306 | default: null,
|
14307 | validator: alignContentValidator
|
14308 | }
|
14309 | }, alignContentProps),
|
14310 | render: function render(h, _a) {
|
14311 | var _b;
|
14312 |
|
14313 | var props = _a.props,
|
14314 | data = _a.data,
|
14315 | children = _a.children;
|
14316 |
|
14317 | var cacheKey = '';
|
14318 |
|
14319 | for (var prop in props) {
|
14320 | cacheKey += String(props[prop]);
|
14321 | }
|
14322 |
|
14323 | var classList = cache.get(cacheKey);
|
14324 |
|
14325 | if (!classList) {
|
14326 | classList = [];
|
14327 |
|
14328 | var type_1;
|
14329 |
|
14330 | for (type_1 in propMap) {
|
14331 | propMap[type_1].forEach(function (prop) {
|
14332 | var value = props[prop];
|
14333 | var className = breakpointClass(type_1, prop, value);
|
14334 | if (className) classList.push(className);
|
14335 | });
|
14336 | }
|
14337 |
|
14338 | classList.push((_b = {
|
14339 | 'no-gutters': props.noGutters,
|
14340 | 'row--dense': props.dense
|
14341 | }, _b["align-" + props.align] = props.align, _b["justify-" + props.justify] = props.justify, _b["align-content-" + props.alignContent] = props.alignContent, _b));
|
14342 | cache.set(cacheKey, classList);
|
14343 | }
|
14344 |
|
14345 | return h(props.tag, Object(_util_mergeData__WEBPACK_IMPORTED_MODULE_2__["default"])(data, {
|
14346 | staticClass: 'row',
|
14347 | class: classList
|
14348 | }), children);
|
14349 | }
|
14350 | }));
|
14351 |
|
14352 | }),
|
14353 |
|
14354 | "./src/components/VGrid/VSpacer.ts":
|
14355 |
|
14356 |
|
14357 |
|
14358 |
|
14359 | (function(module, __webpack_exports__, __webpack_require__) {
|
14360 |
|
14361 | "use strict";
|
14362 | __webpack_require__.r(__webpack_exports__);
|
14363 | var _grid_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VGrid/_grid.sass");
|
14364 | var _grid_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_grid_sass__WEBPACK_IMPORTED_MODULE_0__);
|
14365 | var _util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/helpers.ts");
|
14366 |
|
14367 |
|
14368 | __webpack_exports__["default"] = (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["createSimpleFunctional"])('spacer', 'div', 'v-spacer'));
|
14369 |
|
14370 | }),
|
14371 |
|
14372 | "./src/components/VGrid/_grid.sass":
|
14373 |
|
14374 |
|
14375 |
|
14376 |
|
14377 | (function(module, exports, __webpack_require__) {
|
14378 |
|
14379 |
|
14380 |
|
14381 | }),
|
14382 |
|
14383 | "./src/components/VGrid/grid.ts":
|
14384 |
|
14385 |
|
14386 |
|
14387 |
|
14388 | (function(module, __webpack_exports__, __webpack_require__) {
|
14389 |
|
14390 | "use strict";
|
14391 | __webpack_require__.r(__webpack_exports__);
|
14392 | __webpack_require__.d(__webpack_exports__, "default", function() { return VGrid; });
|
14393 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
14394 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
14395 |
|
14396 |
|
14397 | function VGrid(name) {
|
14398 |
|
14399 | return vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
14400 | name: "v-" + name,
|
14401 | functional: true,
|
14402 | props: {
|
14403 | id: String,
|
14404 | tag: {
|
14405 | type: String,
|
14406 | default: 'div'
|
14407 | }
|
14408 | },
|
14409 | render: function render(h, _a) {
|
14410 | var props = _a.props,
|
14411 | data = _a.data,
|
14412 | children = _a.children;
|
14413 | data.staticClass = (name + " " + (data.staticClass || '')).trim();
|
14414 | var attrs = data.attrs;
|
14415 |
|
14416 | if (attrs) {
|
14417 |
|
14418 | data.attrs = {};
|
14419 | var classes = Object.keys(attrs).filter(function (key) {
|
14420 |
|
14421 |
|
14422 | if (key === 'slot') return false;
|
14423 | var value = attrs[key];
|
14424 |
|
14425 |
|
14426 | if (key.startsWith('data-')) {
|
14427 | data.attrs[key] = value;
|
14428 | return false;
|
14429 | }
|
14430 |
|
14431 | return value || typeof value === 'string';
|
14432 | });
|
14433 | if (classes.length) data.staticClass += " " + classes.join(' ');
|
14434 | }
|
14435 |
|
14436 | if (props.id) {
|
14437 | data.domProps = data.domProps || {};
|
14438 | data.domProps.id = props.id;
|
14439 | }
|
14440 |
|
14441 | return h(props.tag, data, children);
|
14442 | }
|
14443 | });
|
14444 | }
|
14445 |
|
14446 | }),
|
14447 |
|
14448 | "./src/components/VGrid/index.ts":
|
14449 |
|
14450 |
|
14451 |
|
14452 |
|
14453 | (function(module, __webpack_exports__, __webpack_require__) {
|
14454 |
|
14455 | "use strict";
|
14456 | __webpack_require__.r(__webpack_exports__);
|
14457 | var _VContainer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VGrid/VContainer.ts");
|
14458 | __webpack_require__.d(__webpack_exports__, "VContainer", function() { return _VContainer__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
14459 |
|
14460 | var _VCol__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VGrid/VCol.ts");
|
14461 | __webpack_require__.d(__webpack_exports__, "VCol", function() { return _VCol__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
14462 |
|
14463 | var _VRow__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VGrid/VRow.ts");
|
14464 | __webpack_require__.d(__webpack_exports__, "VRow", function() { return _VRow__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
14465 |
|
14466 | var _VSpacer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VGrid/VSpacer.ts");
|
14467 | __webpack_require__.d(__webpack_exports__, "VSpacer", function() { return _VSpacer__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
14468 |
|
14469 | var _VLayout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VGrid/VLayout.ts");
|
14470 | __webpack_require__.d(__webpack_exports__, "VLayout", function() { return _VLayout__WEBPACK_IMPORTED_MODULE_4__["default"]; });
|
14471 |
|
14472 | var _VFlex__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/components/VGrid/VFlex.ts");
|
14473 | __webpack_require__.d(__webpack_exports__, "VFlex", function() { return _VFlex__WEBPACK_IMPORTED_MODULE_5__["default"]; });
|
14474 |
|
14475 |
|
14476 |
|
14477 |
|
14478 |
|
14479 |
|
14480 |
|
14481 |
|
14482 | __webpack_exports__["default"] = ({
|
14483 | $_vuetify_subcomponents: {
|
14484 | VContainer: _VContainer__WEBPACK_IMPORTED_MODULE_0__["default"],
|
14485 | VCol: _VCol__WEBPACK_IMPORTED_MODULE_1__["default"],
|
14486 | VRow: _VRow__WEBPACK_IMPORTED_MODULE_2__["default"],
|
14487 | VSpacer: _VSpacer__WEBPACK_IMPORTED_MODULE_3__["default"],
|
14488 | VLayout: _VLayout__WEBPACK_IMPORTED_MODULE_4__["default"],
|
14489 | VFlex: _VFlex__WEBPACK_IMPORTED_MODULE_5__["default"]
|
14490 | }
|
14491 | });
|
14492 |
|
14493 | }),
|
14494 |
|
14495 | "./src/components/VHover/VHover.ts":
|
14496 |
|
14497 |
|
14498 |
|
14499 |
|
14500 | (function(module, __webpack_exports__, __webpack_require__) {
|
14501 |
|
14502 | "use strict";
|
14503 | __webpack_require__.r(__webpack_exports__);
|
14504 | var _mixins_delayable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/mixins/delayable/index.ts");
|
14505 | var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/toggleable/index.ts");
|
14506 | var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/mixins.ts");
|
14507 | var _util_console__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/console.ts");
|
14508 |
|
14509 |
|
14510 |
|
14511 |
|
14512 |
|
14513 |
|
14514 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_mixins_delayable__WEBPACK_IMPORTED_MODULE_0__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_1__["default"]
|
14515 |
|
14516 | ).extend({
|
14517 | name: 'v-hover',
|
14518 | props: {
|
14519 | disabled: {
|
14520 | type: Boolean,
|
14521 | default: false
|
14522 | },
|
14523 | value: {
|
14524 | type: Boolean,
|
14525 | default: undefined
|
14526 | }
|
14527 | },
|
14528 | methods: {
|
14529 | onMouseEnter: function onMouseEnter() {
|
14530 | this.runDelay('open');
|
14531 | },
|
14532 | onMouseLeave: function onMouseLeave() {
|
14533 | this.runDelay('close');
|
14534 | }
|
14535 | },
|
14536 | render: function render() {
|
14537 | if (!this.$scopedSlots.default && this.value === undefined) {
|
14538 | Object(_util_console__WEBPACK_IMPORTED_MODULE_3__["consoleWarn"])('v-hover is missing a default scopedSlot or bound value', this);
|
14539 | return null;
|
14540 | }
|
14541 |
|
14542 | var element;
|
14543 |
|
14544 |
|
14545 | if (this.$scopedSlots.default) {
|
14546 | element = this.$scopedSlots.default({
|
14547 | hover: this.isActive
|
14548 | });
|
14549 | }
|
14550 |
|
14551 | if (Array.isArray(element) && element.length === 1) {
|
14552 | element = element[0];
|
14553 | }
|
14554 |
|
14555 | if (!element || Array.isArray(element) || !element.tag) {
|
14556 | Object(_util_console__WEBPACK_IMPORTED_MODULE_3__["consoleWarn"])('v-hover should only contain a single element', this);
|
14557 | return element;
|
14558 | }
|
14559 |
|
14560 | if (!this.disabled) {
|
14561 | element.data = element.data || {};
|
14562 |
|
14563 | this._g(element.data, {
|
14564 | mouseenter: this.onMouseEnter,
|
14565 | mouseleave: this.onMouseLeave
|
14566 | });
|
14567 | }
|
14568 |
|
14569 | return element;
|
14570 | }
|
14571 | }));
|
14572 |
|
14573 | }),
|
14574 |
|
14575 | "./src/components/VHover/index.ts":
|
14576 |
|
14577 |
|
14578 |
|
14579 |
|
14580 | (function(module, __webpack_exports__, __webpack_require__) {
|
14581 |
|
14582 | "use strict";
|
14583 | __webpack_require__.r(__webpack_exports__);
|
14584 | var _VHover__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VHover/VHover.ts");
|
14585 | __webpack_require__.d(__webpack_exports__, "VHover", function() { return _VHover__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
14586 |
|
14587 |
|
14588 |
|
14589 | __webpack_exports__["default"] = (_VHover__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
14590 |
|
14591 | }),
|
14592 |
|
14593 | "./src/components/VIcon/VIcon.sass":
|
14594 |
|
14595 |
|
14596 |
|
14597 |
|
14598 | (function(module, exports, __webpack_require__) {
|
14599 |
|
14600 |
|
14601 |
|
14602 | }),
|
14603 |
|
14604 | "./src/components/VIcon/VIcon.ts":
|
14605 |
|
14606 |
|
14607 |
|
14608 |
|
14609 | (function(module, __webpack_exports__, __webpack_require__) {
|
14610 |
|
14611 | "use strict";
|
14612 | __webpack_require__.r(__webpack_exports__);
|
14613 | var _VIcon_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VIcon/VIcon.sass");
|
14614 | var _VIcon_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VIcon_sass__WEBPACK_IMPORTED_MODULE_0__);
|
14615 | var _mixins_binds_attrs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/binds-attrs/index.ts");
|
14616 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
14617 | var _mixins_sizeable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/sizeable/index.ts");
|
14618 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
14619 | var _util_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/util/helpers.ts");
|
14620 | var vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "vue");
|
14621 | var vue__WEBPACK_IMPORTED_MODULE_6___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_6__);
|
14622 | var _util_mixins__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/util/mixins.ts");
|
14623 | var __assign = undefined && undefined.__assign || function () {
|
14624 | __assign = Object.assign || function (t) {
|
14625 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
14626 | s = arguments[i];
|
14627 |
|
14628 | for (var p in s) {
|
14629 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
14630 | }
|
14631 | }
|
14632 |
|
14633 | return t;
|
14634 | };
|
14635 |
|
14636 | return __assign.apply(this, arguments);
|
14637 | };
|
14638 |
|
14639 |
|
14640 |
|
14641 |
|
14642 |
|
14643 |
|
14644 |
|
14645 |
|
14646 |
|
14647 |
|
14648 |
|
14649 |
|
14650 | var SIZE_MAP;
|
14651 |
|
14652 | (function (SIZE_MAP) {
|
14653 | SIZE_MAP["xSmall"] = "12px";
|
14654 | SIZE_MAP["small"] = "16px";
|
14655 | SIZE_MAP["default"] = "24px";
|
14656 | SIZE_MAP["medium"] = "28px";
|
14657 | SIZE_MAP["large"] = "36px";
|
14658 | SIZE_MAP["xLarge"] = "40px";
|
14659 | })(SIZE_MAP || (SIZE_MAP = {}));
|
14660 |
|
14661 | function isFontAwesome5(iconType) {
|
14662 | return ['fas', 'far', 'fal', 'fab'].some(function (val) {
|
14663 | return iconType.includes(val);
|
14664 | });
|
14665 | }
|
14666 |
|
14667 | function isSvgPath(icon) {
|
14668 | return /^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(icon) && /[\dz]$/i.test(icon) && icon.length > 4;
|
14669 | }
|
14670 |
|
14671 | var VIcon = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_mixins_binds_attrs__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_sizeable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_4__["default"]
|
14672 |
|
14673 | ).extend({
|
14674 | name: 'v-icon',
|
14675 | props: {
|
14676 | dense: Boolean,
|
14677 | disabled: Boolean,
|
14678 | left: Boolean,
|
14679 | right: Boolean,
|
14680 | size: [Number, String],
|
14681 | tag: {
|
14682 | type: String,
|
14683 | required: false,
|
14684 | default: 'i'
|
14685 | }
|
14686 | },
|
14687 | computed: {
|
14688 | medium: function medium() {
|
14689 | return false;
|
14690 | }
|
14691 | },
|
14692 | methods: {
|
14693 | getIcon: function getIcon() {
|
14694 | var iconName = '';
|
14695 | if (this.$slots.default) iconName = this.$slots.default[0].text.trim();
|
14696 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["remapInternalIcon"])(this, iconName);
|
14697 | },
|
14698 | getSize: function getSize() {
|
14699 | var sizes = {
|
14700 | xSmall: this.xSmall,
|
14701 | small: this.small,
|
14702 | medium: this.medium,
|
14703 | large: this.large,
|
14704 | xLarge: this.xLarge
|
14705 | };
|
14706 | var explicitSize = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["keys"])(sizes).find(function (key) {
|
14707 | return sizes[key];
|
14708 | });
|
14709 | return explicitSize && SIZE_MAP[explicitSize] || Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["convertToUnit"])(this.size);
|
14710 | },
|
14711 |
|
14712 | getDefaultData: function getDefaultData() {
|
14713 | var hasClickListener = Boolean(this.listeners$.click || this.listeners$['!click']);
|
14714 | var data = {
|
14715 | staticClass: 'v-icon notranslate',
|
14716 | class: {
|
14717 | 'v-icon--disabled': this.disabled,
|
14718 | 'v-icon--left': this.left,
|
14719 | 'v-icon--link': hasClickListener,
|
14720 | 'v-icon--right': this.right,
|
14721 | 'v-icon--dense': this.dense
|
14722 | },
|
14723 | attrs: __assign({
|
14724 | 'aria-hidden': !hasClickListener,
|
14725 | role: hasClickListener ? 'button' : null
|
14726 | }, this.attrs$),
|
14727 | on: this.listeners$
|
14728 | };
|
14729 | return data;
|
14730 | },
|
14731 | applyColors: function applyColors(data) {
|
14732 | data.class = __assign({}, data.class, this.themeClasses);
|
14733 | this.setTextColor(this.color, data);
|
14734 | },
|
14735 | renderFontIcon: function renderFontIcon(icon, h) {
|
14736 | var newChildren = [];
|
14737 | var data = this.getDefaultData();
|
14738 | var iconType = 'material-icons';
|
14739 |
|
14740 |
|
14741 | var delimiterIndex = icon.indexOf('-');
|
14742 | var isMaterialIcon = delimiterIndex <= -1;
|
14743 |
|
14744 | if (isMaterialIcon) {
|
14745 |
|
14746 | newChildren.push(icon);
|
14747 | } else {
|
14748 | iconType = icon.slice(0, delimiterIndex);
|
14749 | if (isFontAwesome5(iconType)) iconType = '';
|
14750 | }
|
14751 |
|
14752 | data.class[iconType] = true;
|
14753 | data.class[icon] = !isMaterialIcon;
|
14754 | var fontSize = this.getSize();
|
14755 | if (fontSize) data.style = {
|
14756 | fontSize: fontSize
|
14757 | };
|
14758 | this.applyColors(data);
|
14759 | return h(this.tag, data, newChildren);
|
14760 | },
|
14761 | renderSvgIcon: function renderSvgIcon(icon, h) {
|
14762 | var data = this.getDefaultData();
|
14763 | data.class['v-icon--svg'] = true;
|
14764 | data.attrs = {
|
14765 | xmlns: 'http://www.w3.org/2000/svg',
|
14766 | viewBox: '0 0 24 24',
|
14767 | height: '24',
|
14768 | width: '24',
|
14769 | role: 'img',
|
14770 | 'aria-hidden': !this.attrs$['aria-label'],
|
14771 | 'aria-label': this.attrs$['aria-label']
|
14772 | };
|
14773 | var fontSize = this.getSize();
|
14774 |
|
14775 | if (fontSize) {
|
14776 | data.style = {
|
14777 | fontSize: fontSize,
|
14778 | height: fontSize,
|
14779 | width: fontSize
|
14780 | };
|
14781 | data.attrs.height = fontSize;
|
14782 | data.attrs.width = fontSize;
|
14783 | }
|
14784 |
|
14785 | this.applyColors(data);
|
14786 | return h('svg', data, [h('path', {
|
14787 | attrs: {
|
14788 | d: icon
|
14789 | }
|
14790 | })]);
|
14791 | },
|
14792 | renderSvgIconComponent: function renderSvgIconComponent(icon, h) {
|
14793 | var data = this.getDefaultData();
|
14794 | data.class['v-icon--is-component'] = true;
|
14795 | var size = this.getSize();
|
14796 |
|
14797 | if (size) {
|
14798 | data.style = {
|
14799 | fontSize: size,
|
14800 | height: size
|
14801 | };
|
14802 | }
|
14803 |
|
14804 | this.applyColors(data);
|
14805 | var component = icon.component;
|
14806 | data.props = icon.props;
|
14807 | data.nativeOn = data.on;
|
14808 | return h(component, data);
|
14809 | }
|
14810 | },
|
14811 | render: function render(h) {
|
14812 | var icon = this.getIcon();
|
14813 |
|
14814 | if (typeof icon === 'string') {
|
14815 | if (isSvgPath(icon)) {
|
14816 | return this.renderSvgIcon(icon, h);
|
14817 | }
|
14818 |
|
14819 | return this.renderFontIcon(icon, h);
|
14820 | }
|
14821 |
|
14822 | return this.renderSvgIconComponent(icon, h);
|
14823 | }
|
14824 | });
|
14825 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_6___default.a.extend({
|
14826 | name: 'v-icon',
|
14827 | $_wrapperFor: VIcon,
|
14828 | functional: true,
|
14829 | render: function render(h, _a) {
|
14830 | var data = _a.data,
|
14831 | children = _a.children;
|
14832 | var iconName = '';
|
14833 |
|
14834 | if (data.domProps) {
|
14835 | iconName = data.domProps.textContent || data.domProps.innerHTML || iconName;
|
14836 |
|
14837 |
|
14838 | delete data.domProps.textContent;
|
14839 | delete data.domProps.innerHTML;
|
14840 | }
|
14841 |
|
14842 | return h(VIcon, data, iconName ? [iconName] : children);
|
14843 | }
|
14844 | }));
|
14845 |
|
14846 | }),
|
14847 |
|
14848 | "./src/components/VIcon/index.ts":
|
14849 |
|
14850 |
|
14851 |
|
14852 |
|
14853 | (function(module, __webpack_exports__, __webpack_require__) {
|
14854 |
|
14855 | "use strict";
|
14856 | __webpack_require__.r(__webpack_exports__);
|
14857 | var _VIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VIcon/VIcon.ts");
|
14858 | __webpack_require__.d(__webpack_exports__, "VIcon", function() { return _VIcon__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
14859 |
|
14860 |
|
14861 |
|
14862 | __webpack_exports__["default"] = (_VIcon__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
14863 |
|
14864 | }),
|
14865 |
|
14866 | "./src/components/VImg/VImg.sass":
|
14867 |
|
14868 |
|
14869 |
|
14870 |
|
14871 | (function(module, exports, __webpack_require__) {
|
14872 |
|
14873 |
|
14874 |
|
14875 | }),
|
14876 |
|
14877 | "./src/components/VImg/VImg.ts":
|
14878 |
|
14879 |
|
14880 |
|
14881 |
|
14882 | (function(module, __webpack_exports__, __webpack_require__) {
|
14883 |
|
14884 | "use strict";
|
14885 | __webpack_require__.r(__webpack_exports__);
|
14886 | var _VImg_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VImg/VImg.sass");
|
14887 | var _VImg_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VImg_sass__WEBPACK_IMPORTED_MODULE_0__);
|
14888 | var _directives_intersect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/directives/intersect/index.ts");
|
14889 | var _VResponsive__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VResponsive/index.ts");
|
14890 | var _util_console__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/console.ts");
|
14891 |
|
14892 |
|
14893 |
|
14894 |
|
14895 |
|
14896 |
|
14897 |
|
14898 |
|
14899 |
|
14900 |
|
14901 | __webpack_exports__["default"] = (_VResponsive__WEBPACK_IMPORTED_MODULE_2__["default"].extend({
|
14902 | name: 'v-img',
|
14903 | directives: {
|
14904 | intersect: _directives_intersect__WEBPACK_IMPORTED_MODULE_1__["default"]
|
14905 | },
|
14906 | props: {
|
14907 | alt: String,
|
14908 | contain: Boolean,
|
14909 | eager: Boolean,
|
14910 | gradient: String,
|
14911 | lazySrc: String,
|
14912 | options: {
|
14913 | type: Object,
|
14914 |
|
14915 |
|
14916 | default: function _default() {
|
14917 | return {
|
14918 | root: undefined,
|
14919 | rootMargin: undefined,
|
14920 | threshold: undefined
|
14921 | };
|
14922 | }
|
14923 | },
|
14924 | position: {
|
14925 | type: String,
|
14926 | default: 'center center'
|
14927 | },
|
14928 | sizes: String,
|
14929 | src: {
|
14930 | type: [String, Object],
|
14931 | default: ''
|
14932 | },
|
14933 | srcset: String,
|
14934 | transition: {
|
14935 | type: [Boolean, String],
|
14936 | default: 'fade-transition'
|
14937 | }
|
14938 | },
|
14939 | data: function data() {
|
14940 | return {
|
14941 | currentSrc: '',
|
14942 | image: null,
|
14943 | isLoading: true,
|
14944 | calculatedAspectRatio: undefined,
|
14945 | naturalWidth: undefined
|
14946 | };
|
14947 | },
|
14948 | computed: {
|
14949 | computedAspectRatio: function computedAspectRatio() {
|
14950 | return Number(this.normalisedSrc.aspect || this.calculatedAspectRatio);
|
14951 | },
|
14952 | normalisedSrc: function normalisedSrc() {
|
14953 | return typeof this.src === 'string' ? {
|
14954 | src: this.src,
|
14955 | srcset: this.srcset,
|
14956 | lazySrc: this.lazySrc,
|
14957 | aspect: Number(this.aspectRatio)
|
14958 | } : {
|
14959 | src: this.src.src,
|
14960 | srcset: this.srcset || this.src.srcset,
|
14961 | lazySrc: this.lazySrc || this.src.lazySrc,
|
14962 | aspect: Number(this.aspectRatio || this.src.aspect)
|
14963 | };
|
14964 | },
|
14965 | __cachedImage: function __cachedImage() {
|
14966 | if (!(this.normalisedSrc.src || this.normalisedSrc.lazySrc)) return [];
|
14967 | var backgroundImage = [];
|
14968 | var src = this.isLoading ? this.normalisedSrc.lazySrc : this.currentSrc;
|
14969 | if (this.gradient) backgroundImage.push("linear-gradient(" + this.gradient + ")");
|
14970 | if (src) backgroundImage.push("url(\"" + src + "\")");
|
14971 | var image = this.$createElement('div', {
|
14972 | staticClass: 'v-image__image',
|
14973 | class: {
|
14974 | 'v-image__image--preload': this.isLoading,
|
14975 | 'v-image__image--contain': this.contain,
|
14976 | 'v-image__image--cover': !this.contain
|
14977 | },
|
14978 | style: {
|
14979 | backgroundImage: backgroundImage.join(', '),
|
14980 | backgroundPosition: this.position
|
14981 | },
|
14982 | key: +this.isLoading
|
14983 | });
|
14984 |
|
14985 |
|
14986 | if (!this.transition) return image;
|
14987 | return this.$createElement('transition', {
|
14988 | attrs: {
|
14989 | name: this.transition,
|
14990 | mode: 'in-out'
|
14991 | }
|
14992 | }, [image]);
|
14993 | }
|
14994 | },
|
14995 | watch: {
|
14996 | src: function src() {
|
14997 |
|
14998 | if (!this.isLoading) this.init(undefined, undefined, true);else this.loadImage();
|
14999 | },
|
15000 | '$vuetify.breakpoint.width': 'getSrc'
|
15001 | },
|
15002 | methods: {
|
15003 | init: function init(entries, observer, isIntersecting) {
|
15004 | if (!isIntersecting && !this.eager) return;
|
15005 |
|
15006 | if (this.normalisedSrc.lazySrc) {
|
15007 | var lazyImg = new Image();
|
15008 | lazyImg.src = this.normalisedSrc.lazySrc;
|
15009 | this.pollForSize(lazyImg, null);
|
15010 | }
|
15011 |
|
15012 |
|
15013 |
|
15014 | if (this.normalisedSrc.src) this.loadImage();
|
15015 | },
|
15016 | onLoad: function onLoad() {
|
15017 | this.getSrc();
|
15018 | this.isLoading = false;
|
15019 | this.$emit('load', this.src);
|
15020 | },
|
15021 | onError: function onError() {
|
15022 | Object(_util_console__WEBPACK_IMPORTED_MODULE_3__["consoleError"])("Image load failed\n\n" + ("src: " + this.normalisedSrc.src), this);
|
15023 | this.$emit('error', this.src);
|
15024 | },
|
15025 | getSrc: function getSrc() {
|
15026 |
|
15027 | if (this.image) this.currentSrc = this.image.currentSrc || this.image.src;
|
15028 | },
|
15029 | loadImage: function loadImage() {
|
15030 | var _this = this;
|
15031 |
|
15032 | var image = new Image();
|
15033 | this.image = image;
|
15034 |
|
15035 | image.onload = function () {
|
15036 |
|
15037 | if (image.decode) {
|
15038 | image.decode().catch(function (err) {
|
15039 | Object(_util_console__WEBPACK_IMPORTED_MODULE_3__["consoleWarn"])("Failed to decode image, trying to render anyway\n\n" + ("src: " + _this.normalisedSrc.src) + (err.message ? "\nOriginal error: " + err.message : ''), _this);
|
15040 | }).then(_this.onLoad);
|
15041 | } else {
|
15042 | _this.onLoad();
|
15043 | }
|
15044 | };
|
15045 |
|
15046 | image.onerror = this.onError;
|
15047 | image.src = this.normalisedSrc.src;
|
15048 | this.sizes && (image.sizes = this.sizes);
|
15049 | this.normalisedSrc.srcset && (image.srcset = this.normalisedSrc.srcset);
|
15050 | this.aspectRatio || this.pollForSize(image);
|
15051 | this.getSrc();
|
15052 | },
|
15053 | pollForSize: function pollForSize(img, timeout) {
|
15054 | var _this = this;
|
15055 |
|
15056 | if (timeout === void 0) {
|
15057 | timeout = 100;
|
15058 | }
|
15059 |
|
15060 | var poll = function poll() {
|
15061 | var naturalHeight = img.naturalHeight,
|
15062 | naturalWidth = img.naturalWidth;
|
15063 |
|
15064 | if (naturalHeight || naturalWidth) {
|
15065 | _this.naturalWidth = naturalWidth;
|
15066 | _this.calculatedAspectRatio = naturalWidth / naturalHeight;
|
15067 | } else {
|
15068 | timeout != null && setTimeout(poll, timeout);
|
15069 | }
|
15070 | };
|
15071 |
|
15072 | poll();
|
15073 | },
|
15074 | genContent: function genContent() {
|
15075 | var content = _VResponsive__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.genContent.call(this);
|
15076 |
|
15077 | if (this.naturalWidth) {
|
15078 | this._b(content.data, 'div', {
|
15079 | style: {
|
15080 | width: this.naturalWidth + "px"
|
15081 | }
|
15082 | });
|
15083 | }
|
15084 |
|
15085 | return content;
|
15086 | },
|
15087 | __genPlaceholder: function __genPlaceholder() {
|
15088 | if (this.$slots.placeholder) {
|
15089 | var placeholder = this.isLoading ? [this.$createElement('div', {
|
15090 | staticClass: 'v-image__placeholder'
|
15091 | }, this.$slots.placeholder)] : [];
|
15092 | if (!this.transition) return placeholder[0];
|
15093 | return this.$createElement('transition', {
|
15094 | props: {
|
15095 | appear: true,
|
15096 | name: this.transition
|
15097 | }
|
15098 | }, placeholder);
|
15099 | }
|
15100 | }
|
15101 | },
|
15102 | render: function render(h) {
|
15103 | var node = _VResponsive__WEBPACK_IMPORTED_MODULE_2__["default"].options.render.call(this, h);
|
15104 | node.data.staticClass += ' v-image';
|
15105 | node.data.directives = [{
|
15106 | name: 'intersect',
|
15107 | options: this.options,
|
15108 | value: this.init
|
15109 | }];
|
15110 | node.data.attrs = {
|
15111 | role: this.alt ? 'img' : undefined,
|
15112 | 'aria-label': this.alt
|
15113 | };
|
15114 | node.children = [this.__cachedSizer, this.__cachedImage, this.__genPlaceholder(), this.genContent()];
|
15115 | return h(node.tag, node.data, node.children);
|
15116 | }
|
15117 | }));
|
15118 |
|
15119 | }),
|
15120 |
|
15121 | "./src/components/VImg/index.ts":
|
15122 |
|
15123 |
|
15124 |
|
15125 |
|
15126 | (function(module, __webpack_exports__, __webpack_require__) {
|
15127 |
|
15128 | "use strict";
|
15129 | __webpack_require__.r(__webpack_exports__);
|
15130 | var _VImg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VImg/VImg.ts");
|
15131 | __webpack_require__.d(__webpack_exports__, "VImg", function() { return _VImg__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
15132 |
|
15133 |
|
15134 |
|
15135 | __webpack_exports__["default"] = (_VImg__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
15136 |
|
15137 | }),
|
15138 |
|
15139 | "./src/components/VInput/VInput.sass":
|
15140 |
|
15141 |
|
15142 |
|
15143 |
|
15144 | (function(module, exports, __webpack_require__) {
|
15145 |
|
15146 |
|
15147 |
|
15148 | }),
|
15149 |
|
15150 | "./src/components/VInput/VInput.ts":
|
15151 |
|
15152 |
|
15153 |
|
15154 |
|
15155 | (function(module, __webpack_exports__, __webpack_require__) {
|
15156 |
|
15157 | "use strict";
|
15158 | __webpack_require__.r(__webpack_exports__);
|
15159 | var _VInput_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VInput/VInput.sass");
|
15160 | var _VInput_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VInput_sass__WEBPACK_IMPORTED_MODULE_0__);
|
15161 | var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
15162 | var _VLabel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VLabel/index.ts");
|
15163 | var _VMessages__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VMessages/index.ts");
|
15164 | var _mixins_binds_attrs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/binds-attrs/index.ts");
|
15165 | var _mixins_validatable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/validatable/index.ts");
|
15166 | var _util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/util/helpers.ts");
|
15167 | var _util_mixins__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/util/mixins.ts");
|
15168 | var __assign = undefined && undefined.__assign || function () {
|
15169 | __assign = Object.assign || function (t) {
|
15170 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
15171 | s = arguments[i];
|
15172 |
|
15173 | for (var p in s) {
|
15174 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
15175 | }
|
15176 | }
|
15177 |
|
15178 | return t;
|
15179 | };
|
15180 |
|
15181 | return __assign.apply(this, arguments);
|
15182 | };
|
15183 |
|
15184 |
|
15185 |
|
15186 |
|
15187 |
|
15188 |
|
15189 |
|
15190 |
|
15191 |
|
15192 |
|
15193 |
|
15194 |
|
15195 |
|
15196 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_mixins_binds_attrs__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_validatable__WEBPACK_IMPORTED_MODULE_5__["default"]);
|
15197 |
|
15198 |
|
15199 | __webpack_exports__["default"] = (baseMixins.extend().extend({
|
15200 | name: 'v-input',
|
15201 | inheritAttrs: false,
|
15202 | props: {
|
15203 | appendIcon: String,
|
15204 | backgroundColor: {
|
15205 | type: String,
|
15206 | default: ''
|
15207 | },
|
15208 | dense: Boolean,
|
15209 | height: [Number, String],
|
15210 | hideDetails: Boolean,
|
15211 | hint: String,
|
15212 | id: String,
|
15213 | label: String,
|
15214 | loading: Boolean,
|
15215 | persistentHint: Boolean,
|
15216 | prependIcon: String,
|
15217 | value: null
|
15218 | },
|
15219 | data: function data() {
|
15220 | return {
|
15221 | lazyValue: this.value,
|
15222 | hasMouseDown: false
|
15223 | };
|
15224 | },
|
15225 | computed: {
|
15226 | classes: function classes() {
|
15227 | return __assign({
|
15228 | 'v-input--has-state': this.hasState,
|
15229 | 'v-input--hide-details': this.hideDetails,
|
15230 | 'v-input--is-label-active': this.isLabelActive,
|
15231 | 'v-input--is-dirty': this.isDirty,
|
15232 | 'v-input--is-disabled': this.disabled,
|
15233 | 'v-input--is-focused': this.isFocused,
|
15234 | 'v-input--is-loading': this.loading !== false && this.loading !== undefined,
|
15235 | 'v-input--is-readonly': this.readonly,
|
15236 | 'v-input--dense': this.dense
|
15237 | }, this.themeClasses);
|
15238 | },
|
15239 | computedId: function computedId() {
|
15240 | return this.id || "input-" + this._uid;
|
15241 | },
|
15242 | hasHint: function hasHint() {
|
15243 | return !this.hasMessages && !!this.hint && (this.persistentHint || this.isFocused);
|
15244 | },
|
15245 | hasLabel: function hasLabel() {
|
15246 | return !!(this.$slots.label || this.label);
|
15247 | },
|
15248 |
|
15249 |
|
15250 |
|
15251 |
|
15252 | internalValue: {
|
15253 | get: function get() {
|
15254 | return this.lazyValue;
|
15255 | },
|
15256 | set: function set(val) {
|
15257 | this.lazyValue = val;
|
15258 | this.$emit(this.$_modelEvent, val);
|
15259 | }
|
15260 | },
|
15261 | isDirty: function isDirty() {
|
15262 | return !!this.lazyValue;
|
15263 | },
|
15264 | isDisabled: function isDisabled() {
|
15265 | return this.disabled || this.readonly;
|
15266 | },
|
15267 | isLabelActive: function isLabelActive() {
|
15268 | return this.isDirty;
|
15269 | }
|
15270 | },
|
15271 | watch: {
|
15272 | value: function value(val) {
|
15273 | this.lazyValue = val;
|
15274 | }
|
15275 | },
|
15276 | beforeCreate: function beforeCreate() {
|
15277 |
|
15278 |
|
15279 | this.$_modelEvent = this.$options.model && this.$options.model.event || 'input';
|
15280 | },
|
15281 | methods: {
|
15282 | genContent: function genContent() {
|
15283 | return [this.genPrependSlot(), this.genControl(), this.genAppendSlot()];
|
15284 | },
|
15285 | genControl: function genControl() {
|
15286 | return this.$createElement('div', {
|
15287 | staticClass: 'v-input__control'
|
15288 | }, [this.genInputSlot(), this.genMessages()]);
|
15289 | },
|
15290 | genDefaultSlot: function genDefaultSlot() {
|
15291 | return [this.genLabel(), this.$slots.default];
|
15292 | },
|
15293 | genIcon: function genIcon(type, cb) {
|
15294 | var _this = this;
|
15295 |
|
15296 | var icon = this[type + "Icon"];
|
15297 | var eventName = "click:" + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["kebabCase"])(type);
|
15298 | var data = {
|
15299 | props: {
|
15300 | color: this.validationState,
|
15301 | dark: this.dark,
|
15302 | disabled: this.disabled,
|
15303 | light: this.light
|
15304 | },
|
15305 | on: !(this.listeners$[eventName] || cb) ? undefined : {
|
15306 | click: function click(e) {
|
15307 | e.preventDefault();
|
15308 | e.stopPropagation();
|
15309 |
|
15310 | _this.$emit(eventName, e);
|
15311 |
|
15312 | cb && cb(e);
|
15313 | },
|
15314 |
|
15315 |
|
15316 | mouseup: function mouseup(e) {
|
15317 | e.preventDefault();
|
15318 | e.stopPropagation();
|
15319 | }
|
15320 | }
|
15321 | };
|
15322 | return this.$createElement('div', {
|
15323 | staticClass: "v-input__icon v-input__icon--" + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["kebabCase"])(type),
|
15324 | key: type + icon
|
15325 | }, [this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], data, icon)]);
|
15326 | },
|
15327 | genInputSlot: function genInputSlot() {
|
15328 | return this.$createElement('div', this.setBackgroundColor(this.backgroundColor, {
|
15329 | staticClass: 'v-input__slot',
|
15330 | style: {
|
15331 | height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["convertToUnit"])(this.height)
|
15332 | },
|
15333 | on: {
|
15334 | click: this.onClick,
|
15335 | mousedown: this.onMouseDown,
|
15336 | mouseup: this.onMouseUp
|
15337 | },
|
15338 | ref: 'input-slot'
|
15339 | }), [this.genDefaultSlot()]);
|
15340 | },
|
15341 | genLabel: function genLabel() {
|
15342 | if (!this.hasLabel) return null;
|
15343 | return this.$createElement(_VLabel__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
15344 | props: {
|
15345 | color: this.validationState,
|
15346 | dark: this.dark,
|
15347 | focused: this.hasState,
|
15348 | for: this.computedId,
|
15349 | light: this.light
|
15350 | }
|
15351 | }, this.$slots.label || this.label);
|
15352 | },
|
15353 | genMessages: function genMessages() {
|
15354 | if (this.hideDetails) return null;
|
15355 | var messages = this.hasHint ? [this.hint] : this.validations;
|
15356 | return this.$createElement(_VMessages__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
15357 | props: {
|
15358 | color: this.hasHint ? '' : this.validationState,
|
15359 | dark: this.dark,
|
15360 | light: this.light,
|
15361 | value: this.hasMessages || this.hasHint ? messages : []
|
15362 | },
|
15363 | attrs: {
|
15364 | role: this.hasMessages ? 'alert' : null
|
15365 | }
|
15366 | });
|
15367 | },
|
15368 | genSlot: function genSlot(type, location, slot) {
|
15369 | if (!slot.length) return null;
|
15370 | var ref = type + "-" + location;
|
15371 | return this.$createElement('div', {
|
15372 | staticClass: "v-input__" + ref,
|
15373 | ref: ref
|
15374 | }, slot);
|
15375 | },
|
15376 | genPrependSlot: function genPrependSlot() {
|
15377 | var slot = [];
|
15378 |
|
15379 | if (this.$slots.prepend) {
|
15380 | slot.push(this.$slots.prepend);
|
15381 | } else if (this.prependIcon) {
|
15382 | slot.push(this.genIcon('prepend'));
|
15383 | }
|
15384 |
|
15385 | return this.genSlot('prepend', 'outer', slot);
|
15386 | },
|
15387 | genAppendSlot: function genAppendSlot() {
|
15388 | var slot = [];
|
15389 |
|
15390 |
|
15391 |
|
15392 |
|
15393 | if (this.$slots.append) {
|
15394 | slot.push(this.$slots.append);
|
15395 | } else if (this.appendIcon) {
|
15396 | slot.push(this.genIcon('append'));
|
15397 | }
|
15398 |
|
15399 | return this.genSlot('append', 'outer', slot);
|
15400 | },
|
15401 | onClick: function onClick(e) {
|
15402 | this.$emit('click', e);
|
15403 | },
|
15404 | onMouseDown: function onMouseDown(e) {
|
15405 | this.hasMouseDown = true;
|
15406 | this.$emit('mousedown', e);
|
15407 | },
|
15408 | onMouseUp: function onMouseUp(e) {
|
15409 | this.hasMouseDown = false;
|
15410 | this.$emit('mouseup', e);
|
15411 | }
|
15412 | },
|
15413 | render: function render(h) {
|
15414 | return h('div', this.setTextColor(this.validationState, {
|
15415 | staticClass: 'v-input',
|
15416 | class: this.classes
|
15417 | }), this.genContent());
|
15418 | }
|
15419 | }));
|
15420 |
|
15421 | }),
|
15422 |
|
15423 | "./src/components/VInput/index.ts":
|
15424 |
|
15425 |
|
15426 |
|
15427 |
|
15428 | (function(module, __webpack_exports__, __webpack_require__) {
|
15429 |
|
15430 | "use strict";
|
15431 | __webpack_require__.r(__webpack_exports__);
|
15432 | var _VInput__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VInput/VInput.ts");
|
15433 | __webpack_require__.d(__webpack_exports__, "VInput", function() { return _VInput__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
15434 |
|
15435 |
|
15436 |
|
15437 | __webpack_exports__["default"] = (_VInput__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
15438 |
|
15439 | }),
|
15440 |
|
15441 | "./src/components/VItemGroup/VItem.ts":
|
15442 |
|
15443 |
|
15444 |
|
15445 |
|
15446 | (function(module, __webpack_exports__, __webpack_require__) {
|
15447 |
|
15448 | "use strict";
|
15449 | __webpack_require__.r(__webpack_exports__);
|
15450 | __webpack_require__.d(__webpack_exports__, "BaseItem", function() { return BaseItem; });
|
15451 | var _mixins_groupable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/mixins/groupable/index.ts");
|
15452 | var _util_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/mixins.ts");
|
15453 | var _util_console__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/console.ts");
|
15454 | var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "vue");
|
15455 | var vue__WEBPACK_IMPORTED_MODULE_3___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_3__);
|
15456 |
|
15457 |
|
15458 |
|
15459 |
|
15460 |
|
15461 |
|
15462 |
|
15463 |
|
15464 |
|
15465 | var BaseItem = vue__WEBPACK_IMPORTED_MODULE_3___default.a.extend({
|
15466 | props: {
|
15467 | activeClass: String,
|
15468 | value: {
|
15469 | required: false
|
15470 | }
|
15471 | },
|
15472 | data: function data() {
|
15473 | return {
|
15474 | isActive: false
|
15475 | };
|
15476 | },
|
15477 | methods: {
|
15478 | toggle: function toggle() {
|
15479 | this.isActive = !this.isActive;
|
15480 | }
|
15481 | },
|
15482 | render: function render() {
|
15483 | var _a;
|
15484 |
|
15485 | if (!this.$scopedSlots.default) {
|
15486 | Object(_util_console__WEBPACK_IMPORTED_MODULE_2__["consoleWarn"])('v-item is missing a default scopedSlot', this);
|
15487 | return null;
|
15488 | }
|
15489 |
|
15490 | var element;
|
15491 |
|
15492 |
|
15493 | if (this.$scopedSlots.default) {
|
15494 | element = this.$scopedSlots.default({
|
15495 | active: this.isActive,
|
15496 | toggle: this.toggle
|
15497 | });
|
15498 | }
|
15499 |
|
15500 | if (Array.isArray(element) && element.length === 1) {
|
15501 | element = element[0];
|
15502 | }
|
15503 |
|
15504 | if (!element || Array.isArray(element) || !element.tag) {
|
15505 | Object(_util_console__WEBPACK_IMPORTED_MODULE_2__["consoleWarn"])('v-item should only contain a single element', this);
|
15506 | return element;
|
15507 | }
|
15508 |
|
15509 | element.data = this._b(element.data || {}, element.tag, {
|
15510 | class: (_a = {}, _a[this.activeClass] = this.isActive, _a)
|
15511 | });
|
15512 | return element;
|
15513 | }
|
15514 | });
|
15515 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_1__["default"])(BaseItem, Object(_mixins_groupable__WEBPACK_IMPORTED_MODULE_0__["factory"])('itemGroup', 'v-item', 'v-item-group')).extend({
|
15516 | name: 'v-item'
|
15517 | }));
|
15518 |
|
15519 | }),
|
15520 |
|
15521 | "./src/components/VItemGroup/VItemGroup.sass":
|
15522 |
|
15523 |
|
15524 |
|
15525 |
|
15526 | (function(module, exports, __webpack_require__) {
|
15527 |
|
15528 |
|
15529 |
|
15530 | }),
|
15531 |
|
15532 | "./src/components/VItemGroup/VItemGroup.ts":
|
15533 |
|
15534 |
|
15535 |
|
15536 |
|
15537 | (function(module, __webpack_exports__, __webpack_require__) {
|
15538 |
|
15539 | "use strict";
|
15540 | __webpack_require__.r(__webpack_exports__);
|
15541 | __webpack_require__.d(__webpack_exports__, "BaseItemGroup", function() { return BaseItemGroup; });
|
15542 | var _VItemGroup_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VItemGroup/VItemGroup.sass");
|
15543 | var _VItemGroup_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VItemGroup_sass__WEBPACK_IMPORTED_MODULE_0__);
|
15544 | var _mixins_proxyable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/proxyable/index.ts");
|
15545 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
15546 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
15547 | var _util_console__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/console.ts");
|
15548 | var __assign = undefined && undefined.__assign || function () {
|
15549 | __assign = Object.assign || function (t) {
|
15550 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
15551 | s = arguments[i];
|
15552 |
|
15553 | for (var p in s) {
|
15554 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
15555 | }
|
15556 | }
|
15557 |
|
15558 | return t;
|
15559 | };
|
15560 |
|
15561 | return __assign.apply(this, arguments);
|
15562 | };
|
15563 |
|
15564 |
|
15565 |
|
15566 |
|
15567 |
|
15568 |
|
15569 |
|
15570 |
|
15571 | var BaseItemGroup = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_proxyable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]).extend({
|
15572 | name: 'base-item-group',
|
15573 | props: {
|
15574 | activeClass: {
|
15575 | type: String,
|
15576 | default: 'v-item--active'
|
15577 | },
|
15578 | mandatory: Boolean,
|
15579 | max: {
|
15580 | type: [Number, String],
|
15581 | default: null
|
15582 | },
|
15583 | multiple: Boolean
|
15584 | },
|
15585 | data: function data() {
|
15586 | return {
|
15587 |
|
15588 |
|
15589 |
|
15590 | internalLazyValue: this.value !== undefined ? this.value : this.multiple ? [] : undefined,
|
15591 | items: []
|
15592 | };
|
15593 | },
|
15594 | computed: {
|
15595 | classes: function classes() {
|
15596 | return __assign({
|
15597 | 'v-item-group': true
|
15598 | }, this.themeClasses);
|
15599 | },
|
15600 | selectedIndex: function selectedIndex() {
|
15601 | return this.selectedItem && this.items.indexOf(this.selectedItem) || -1;
|
15602 | },
|
15603 | selectedItem: function selectedItem() {
|
15604 | if (this.multiple) return undefined;
|
15605 | return this.selectedItems[0];
|
15606 | },
|
15607 | selectedItems: function selectedItems() {
|
15608 | var _this = this;
|
15609 |
|
15610 | return this.items.filter(function (item, index) {
|
15611 | return _this.toggleMethod(_this.getValue(item, index));
|
15612 | });
|
15613 | },
|
15614 | selectedValues: function selectedValues() {
|
15615 | if (this.internalValue == null) return [];
|
15616 | return Array.isArray(this.internalValue) ? this.internalValue : [this.internalValue];
|
15617 | },
|
15618 | toggleMethod: function toggleMethod() {
|
15619 | var _this = this;
|
15620 |
|
15621 | if (!this.multiple) {
|
15622 | return function (v) {
|
15623 | return _this.internalValue === v;
|
15624 | };
|
15625 | }
|
15626 |
|
15627 | var internalValue = this.internalValue;
|
15628 |
|
15629 | if (Array.isArray(internalValue)) {
|
15630 | return function (v) {
|
15631 | return internalValue.includes(v);
|
15632 | };
|
15633 | }
|
15634 |
|
15635 | return function () {
|
15636 | return false;
|
15637 | };
|
15638 | }
|
15639 | },
|
15640 | watch: {
|
15641 | internalValue: function internalValue() {
|
15642 |
|
15643 | this.$nextTick(this.updateItemsState);
|
15644 | }
|
15645 | },
|
15646 | created: function created() {
|
15647 | if (this.multiple && !Array.isArray(this.internalValue)) {
|
15648 | Object(_util_console__WEBPACK_IMPORTED_MODULE_4__["consoleWarn"])('Model must be bound to an array if the multiple property is true.', this);
|
15649 | }
|
15650 | },
|
15651 | methods: {
|
15652 | genData: function genData() {
|
15653 | return {
|
15654 | class: this.classes
|
15655 | };
|
15656 | },
|
15657 | getValue: function getValue(item, i) {
|
15658 | return item.value == null || item.value === '' ? i : item.value;
|
15659 | },
|
15660 | onClick: function onClick(item) {
|
15661 | this.updateInternalValue(this.getValue(item, this.items.indexOf(item)));
|
15662 | },
|
15663 | register: function register(item) {
|
15664 | var _this = this;
|
15665 |
|
15666 | var index = this.items.push(item) - 1;
|
15667 | item.$on('change', function () {
|
15668 | return _this.onClick(item);
|
15669 | });
|
15670 |
|
15671 |
|
15672 | if (this.mandatory && this.internalLazyValue == null) {
|
15673 | this.updateMandatory();
|
15674 | }
|
15675 |
|
15676 | this.updateItem(item, index);
|
15677 | },
|
15678 | unregister: function unregister(item) {
|
15679 | if (this._isDestroyed) return;
|
15680 | var index = this.items.indexOf(item);
|
15681 | var value = this.getValue(item, index);
|
15682 | this.items.splice(index, 1);
|
15683 | var valueIndex = this.selectedValues.indexOf(value);
|
15684 |
|
15685 | if (valueIndex < 0) return;
|
15686 |
|
15687 | if (!this.mandatory) {
|
15688 | return this.updateInternalValue(value);
|
15689 | }
|
15690 |
|
15691 |
|
15692 | if (this.multiple && Array.isArray(this.internalValue)) {
|
15693 | this.internalValue = this.internalValue.filter(function (v) {
|
15694 | return v !== value;
|
15695 | });
|
15696 | } else {
|
15697 | this.internalValue = undefined;
|
15698 | }
|
15699 |
|
15700 |
|
15701 |
|
15702 |
|
15703 |
|
15704 | if (!this.selectedItems.length) {
|
15705 | this.updateMandatory(true);
|
15706 | }
|
15707 | },
|
15708 | updateItem: function updateItem(item, index) {
|
15709 | var value = this.getValue(item, index);
|
15710 | item.isActive = this.toggleMethod(value);
|
15711 | },
|
15712 | updateItemsState: function updateItemsState() {
|
15713 | if (this.mandatory && !this.selectedItems.length) {
|
15714 | return this.updateMandatory();
|
15715 | }
|
15716 |
|
15717 |
|
15718 |
|
15719 |
|
15720 | this.items.forEach(this.updateItem);
|
15721 | },
|
15722 | updateInternalValue: function updateInternalValue(value) {
|
15723 | this.multiple ? this.updateMultiple(value) : this.updateSingle(value);
|
15724 | },
|
15725 | updateMandatory: function updateMandatory(last) {
|
15726 | if (!this.items.length) return;
|
15727 | var items = this.items.slice();
|
15728 | if (last) items.reverse();
|
15729 | var item = items.find(function (item) {
|
15730 | return !item.disabled;
|
15731 | });
|
15732 |
|
15733 |
|
15734 | if (!item) return;
|
15735 | var index = this.items.indexOf(item);
|
15736 | this.updateInternalValue(this.getValue(item, index));
|
15737 | },
|
15738 | updateMultiple: function updateMultiple(value) {
|
15739 | var defaultValue = Array.isArray(this.internalValue) ? this.internalValue : [];
|
15740 | var internalValue = defaultValue.slice();
|
15741 | var index = internalValue.findIndex(function (val) {
|
15742 | return val === value;
|
15743 | });
|
15744 | if (this.mandatory &&
|
15745 | index > -1 &&
|
15746 | internalValue.length - 1 < 1) return;
|
15747 | if (
|
15748 | this.max != null &&
|
15749 | index < 0 &&
|
15750 | internalValue.length + 1 > this.max) return;
|
15751 | index > -1 ? internalValue.splice(index, 1) : internalValue.push(value);
|
15752 | this.internalValue = internalValue;
|
15753 | },
|
15754 | updateSingle: function updateSingle(value) {
|
15755 | var isSame = value === this.internalValue;
|
15756 | if (this.mandatory && isSame) return;
|
15757 | this.internalValue = isSame ? undefined : value;
|
15758 | }
|
15759 | },
|
15760 | render: function render(h) {
|
15761 | return h('div', this.genData(), this.$slots.default);
|
15762 | }
|
15763 | });
|
15764 | __webpack_exports__["default"] = (BaseItemGroup.extend({
|
15765 | name: 'v-item-group',
|
15766 | provide: function provide() {
|
15767 | return {
|
15768 | itemGroup: this
|
15769 | };
|
15770 | }
|
15771 | }));
|
15772 |
|
15773 | }),
|
15774 |
|
15775 | "./src/components/VItemGroup/index.ts":
|
15776 |
|
15777 |
|
15778 |
|
15779 |
|
15780 | (function(module, __webpack_exports__, __webpack_require__) {
|
15781 |
|
15782 | "use strict";
|
15783 | __webpack_require__.r(__webpack_exports__);
|
15784 | var _VItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VItemGroup/VItem.ts");
|
15785 | __webpack_require__.d(__webpack_exports__, "VItem", function() { return _VItem__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
15786 |
|
15787 | var _VItemGroup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VItemGroup/VItemGroup.ts");
|
15788 | __webpack_require__.d(__webpack_exports__, "VItemGroup", function() { return _VItemGroup__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
15789 |
|
15790 |
|
15791 |
|
15792 |
|
15793 | __webpack_exports__["default"] = ({
|
15794 | $_vuetify_subcomponents: {
|
15795 | VItem: _VItem__WEBPACK_IMPORTED_MODULE_0__["default"],
|
15796 | VItemGroup: _VItemGroup__WEBPACK_IMPORTED_MODULE_1__["default"]
|
15797 | }
|
15798 | });
|
15799 |
|
15800 | }),
|
15801 |
|
15802 | "./src/components/VLabel/VLabel.sass":
|
15803 |
|
15804 |
|
15805 |
|
15806 |
|
15807 | (function(module, exports, __webpack_require__) {
|
15808 |
|
15809 |
|
15810 |
|
15811 | }),
|
15812 |
|
15813 | "./src/components/VLabel/VLabel.ts":
|
15814 |
|
15815 |
|
15816 |
|
15817 |
|
15818 | (function(module, __webpack_exports__, __webpack_require__) {
|
15819 |
|
15820 | "use strict";
|
15821 | __webpack_require__.r(__webpack_exports__);
|
15822 | var _VLabel_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VLabel/VLabel.sass");
|
15823 | var _VLabel_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VLabel_sass__WEBPACK_IMPORTED_MODULE_0__);
|
15824 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
15825 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
15826 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
15827 | var _util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/helpers.ts");
|
15828 | var __assign = undefined && undefined.__assign || function () {
|
15829 | __assign = Object.assign || function (t) {
|
15830 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
15831 | s = arguments[i];
|
15832 |
|
15833 | for (var p in s) {
|
15834 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
15835 | }
|
15836 | }
|
15837 |
|
15838 | return t;
|
15839 | };
|
15840 |
|
15841 | return __assign.apply(this, arguments);
|
15842 | };
|
15843 |
|
15844 |
|
15845 |
|
15846 |
|
15847 |
|
15848 |
|
15849 |
|
15850 |
|
15851 |
|
15852 |
|
15853 |
|
15854 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]).extend({
|
15855 | name: 'v-label',
|
15856 | functional: true,
|
15857 | props: {
|
15858 | absolute: Boolean,
|
15859 | color: {
|
15860 | type: String,
|
15861 | default: 'primary'
|
15862 | },
|
15863 | disabled: Boolean,
|
15864 | focused: Boolean,
|
15865 | for: String,
|
15866 | left: {
|
15867 | type: [Number, String],
|
15868 | default: 0
|
15869 | },
|
15870 | right: {
|
15871 | type: [Number, String],
|
15872 | default: 'auto'
|
15873 | },
|
15874 | value: Boolean
|
15875 | },
|
15876 | render: function render(h, ctx) {
|
15877 | var children = ctx.children,
|
15878 | listeners = ctx.listeners,
|
15879 | props = ctx.props;
|
15880 | var data = {
|
15881 | staticClass: 'v-label',
|
15882 | class: __assign({
|
15883 | 'v-label--active': props.value,
|
15884 | 'v-label--is-disabled': props.disabled
|
15885 | }, Object(_mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["functionalThemeClasses"])(ctx)),
|
15886 | attrs: {
|
15887 | for: props.for,
|
15888 | 'aria-hidden': !props.for
|
15889 | },
|
15890 | on: listeners,
|
15891 | style: {
|
15892 | left: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["convertToUnit"])(props.left),
|
15893 | right: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["convertToUnit"])(props.right),
|
15894 | position: props.absolute ? 'absolute' : 'relative'
|
15895 | },
|
15896 | ref: 'label'
|
15897 | };
|
15898 | return h('label', _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.setTextColor(props.focused && props.color, data), children);
|
15899 | }
|
15900 | }));
|
15901 |
|
15902 | }),
|
15903 |
|
15904 | "./src/components/VLabel/index.ts":
|
15905 |
|
15906 |
|
15907 |
|
15908 |
|
15909 | (function(module, __webpack_exports__, __webpack_require__) {
|
15910 |
|
15911 | "use strict";
|
15912 | __webpack_require__.r(__webpack_exports__);
|
15913 | var _VLabel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VLabel/VLabel.ts");
|
15914 | __webpack_require__.d(__webpack_exports__, "VLabel", function() { return _VLabel__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
15915 |
|
15916 |
|
15917 |
|
15918 | __webpack_exports__["default"] = (_VLabel__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
15919 |
|
15920 | }),
|
15921 |
|
15922 | "./src/components/VLazy/VLazy.ts":
|
15923 |
|
15924 |
|
15925 |
|
15926 |
|
15927 | (function(module, __webpack_exports__, __webpack_require__) {
|
15928 |
|
15929 | "use strict";
|
15930 | __webpack_require__.r(__webpack_exports__);
|
15931 | var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/mixins/toggleable/index.ts");
|
15932 | var _directives_intersect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/directives/intersect/index.ts");
|
15933 | var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/mixins.ts");
|
15934 | var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/helpers.ts");
|
15935 |
|
15936 |
|
15937 |
|
15938 |
|
15939 |
|
15940 |
|
15941 |
|
15942 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_mixins_toggleable__WEBPACK_IMPORTED_MODULE_0__["default"]).extend({
|
15943 | name: 'VLazy',
|
15944 | directives: {
|
15945 | intersect: _directives_intersect__WEBPACK_IMPORTED_MODULE_1__["default"]
|
15946 | },
|
15947 | props: {
|
15948 | minHeight: [Number, String],
|
15949 | options: {
|
15950 | type: Object,
|
15951 |
|
15952 |
|
15953 | default: function _default() {
|
15954 | return {
|
15955 | root: undefined,
|
15956 | rootMargin: undefined,
|
15957 | threshold: undefined
|
15958 | };
|
15959 | }
|
15960 | },
|
15961 | transition: {
|
15962 | type: String,
|
15963 | default: 'fade-transition'
|
15964 | }
|
15965 | },
|
15966 | computed: {
|
15967 | styles: function styles() {
|
15968 | return {
|
15969 | minHeight: parseInt(this.minHeight) ? Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["convertToUnit"])(this.minHeight) : this.minHeight
|
15970 | };
|
15971 | }
|
15972 | },
|
15973 | methods: {
|
15974 | genContent: function genContent() {
|
15975 | if (!this.isActive) return undefined;
|
15976 | var slot = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getSlot"])(this);
|
15977 |
|
15978 |
|
15979 | if (!this.transition) return slot;
|
15980 | return this.$createElement('transition', {
|
15981 | props: {
|
15982 | name: this.transition
|
15983 | }
|
15984 | }, slot);
|
15985 | },
|
15986 | onObserve: function onObserve(entries) {
|
15987 | if (this.isActive) return;
|
15988 | this.isActive = Boolean(entries.find(function (entry) {
|
15989 | return entry.isIntersecting;
|
15990 | }));
|
15991 | }
|
15992 | },
|
15993 | render: function render(h) {
|
15994 | return h('div', {
|
15995 | staticClass: 'v-observe',
|
15996 | attrs: this.$attrs,
|
15997 | directives: [{
|
15998 | name: 'intersect',
|
15999 | value: {
|
16000 | handler: this.onObserve,
|
16001 | options: this.options
|
16002 | }
|
16003 | }],
|
16004 | on: this.$listeners,
|
16005 | style: this.styles
|
16006 | }, [this.genContent()]);
|
16007 | }
|
16008 | }));
|
16009 |
|
16010 | }),
|
16011 |
|
16012 | "./src/components/VLazy/index.ts":
|
16013 |
|
16014 |
|
16015 |
|
16016 |
|
16017 | (function(module, __webpack_exports__, __webpack_require__) {
|
16018 |
|
16019 | "use strict";
|
16020 | __webpack_require__.r(__webpack_exports__);
|
16021 | var _VLazy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VLazy/VLazy.ts");
|
16022 | __webpack_require__.d(__webpack_exports__, "VLazy", function() { return _VLazy__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
16023 |
|
16024 |
|
16025 |
|
16026 | __webpack_exports__["default"] = (_VLazy__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
16027 |
|
16028 | }),
|
16029 |
|
16030 | "./src/components/VList/VList.sass":
|
16031 |
|
16032 |
|
16033 |
|
16034 |
|
16035 | (function(module, exports, __webpack_require__) {
|
16036 |
|
16037 |
|
16038 |
|
16039 | }),
|
16040 |
|
16041 | "./src/components/VList/VList.ts":
|
16042 |
|
16043 |
|
16044 |
|
16045 |
|
16046 | (function(module, __webpack_exports__, __webpack_require__) {
|
16047 |
|
16048 | "use strict";
|
16049 | __webpack_require__.r(__webpack_exports__);
|
16050 | var _VList_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VList/VList.sass");
|
16051 | var _VList_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VList_sass__WEBPACK_IMPORTED_MODULE_0__);
|
16052 | var _VSheet_VSheet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VSheet/VSheet.ts");
|
16053 | var __assign = undefined && undefined.__assign || function () {
|
16054 | __assign = Object.assign || function (t) {
|
16055 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
16056 | s = arguments[i];
|
16057 |
|
16058 | for (var p in s) {
|
16059 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
16060 | }
|
16061 | }
|
16062 |
|
16063 | return t;
|
16064 | };
|
16065 |
|
16066 | return __assign.apply(this, arguments);
|
16067 | };
|
16068 |
|
16069 | var __values = undefined && undefined.__values || function (o) {
|
16070 | var m = typeof Symbol === "function" && o[Symbol.iterator],
|
16071 | i = 0;
|
16072 | if (m) return m.call(o);
|
16073 | return {
|
16074 | next: function next() {
|
16075 | if (o && i >= o.length) o = void 0;
|
16076 | return {
|
16077 | value: o && o[i++],
|
16078 | done: !o
|
16079 | };
|
16080 | }
|
16081 | };
|
16082 | };
|
16083 |
|
16084 |
|
16085 |
|
16086 |
|
16087 |
|
16088 |
|
16089 |
|
16090 | __webpack_exports__["default"] = (_VSheet_VSheet__WEBPACK_IMPORTED_MODULE_1__["default"].extend().extend({
|
16091 | name: 'v-list',
|
16092 | provide: function provide() {
|
16093 | return {
|
16094 | isInList: true,
|
16095 | list: this
|
16096 | };
|
16097 | },
|
16098 | inject: {
|
16099 | isInMenu: {
|
16100 | default: false
|
16101 | },
|
16102 | isInNav: {
|
16103 | default: false
|
16104 | }
|
16105 | },
|
16106 | props: {
|
16107 | dense: Boolean,
|
16108 | disabled: Boolean,
|
16109 | expand: Boolean,
|
16110 | flat: Boolean,
|
16111 | nav: Boolean,
|
16112 | rounded: Boolean,
|
16113 | shaped: Boolean,
|
16114 | subheader: Boolean,
|
16115 | threeLine: Boolean,
|
16116 | tile: {
|
16117 | type: Boolean,
|
16118 | default: true
|
16119 | },
|
16120 | twoLine: Boolean
|
16121 | },
|
16122 | data: function data() {
|
16123 | return {
|
16124 | groups: []
|
16125 | };
|
16126 | },
|
16127 | computed: {
|
16128 | classes: function classes() {
|
16129 | return __assign({}, _VSheet_VSheet__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this), {
|
16130 | 'v-list--dense': this.dense,
|
16131 | 'v-list--disabled': this.disabled,
|
16132 | 'v-list--flat': this.flat,
|
16133 | 'v-list--nav': this.nav,
|
16134 | 'v-list--rounded': this.rounded,
|
16135 | 'v-list--shaped': this.shaped,
|
16136 | 'v-list--subheader': this.subheader,
|
16137 | 'v-list--two-line': this.twoLine,
|
16138 | 'v-list--three-line': this.threeLine
|
16139 | });
|
16140 | }
|
16141 | },
|
16142 | methods: {
|
16143 | register: function register(content) {
|
16144 | this.groups.push(content);
|
16145 | },
|
16146 | unregister: function unregister(content) {
|
16147 | var index = this.groups.findIndex(function (g) {
|
16148 | return g._uid === content._uid;
|
16149 | });
|
16150 | if (index > -1) this.groups.splice(index, 1);
|
16151 | },
|
16152 | listClick: function listClick(uid) {
|
16153 | var e_1, _a;
|
16154 |
|
16155 | if (this.expand) return;
|
16156 |
|
16157 | try {
|
16158 | for (var _b = __values(this.groups), _c = _b.next(); !_c.done; _c = _b.next()) {
|
16159 | var group = _c.value;
|
16160 | group.toggle(uid);
|
16161 | }
|
16162 | } catch (e_1_1) {
|
16163 | e_1 = {
|
16164 | error: e_1_1
|
16165 | };
|
16166 | } finally {
|
16167 | try {
|
16168 | if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
16169 | } finally {
|
16170 | if (e_1) throw e_1.error;
|
16171 | }
|
16172 | }
|
16173 | }
|
16174 | },
|
16175 | render: function render(h) {
|
16176 | var data = {
|
16177 | staticClass: 'v-list',
|
16178 | class: this.classes,
|
16179 | style: this.styles,
|
16180 | attrs: __assign({
|
16181 | role: this.isInNav || this.isInMenu ? undefined : 'list'
|
16182 | }, this.attrs$)
|
16183 | };
|
16184 | return h('div', this.setBackgroundColor(this.color, data), [this.$slots.default]);
|
16185 | }
|
16186 | }));
|
16187 |
|
16188 | }),
|
16189 |
|
16190 | "./src/components/VList/VListGroup.sass":
|
16191 |
|
16192 |
|
16193 |
|
16194 |
|
16195 | (function(module, exports, __webpack_require__) {
|
16196 |
|
16197 |
|
16198 |
|
16199 | }),
|
16200 |
|
16201 | "./src/components/VList/VListGroup.ts":
|
16202 |
|
16203 |
|
16204 |
|
16205 |
|
16206 | (function(module, __webpack_exports__, __webpack_require__) {
|
16207 |
|
16208 | "use strict";
|
16209 | __webpack_require__.r(__webpack_exports__);
|
16210 | var _VListGroup_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VList/VListGroup.sass");
|
16211 | var _VListGroup_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VListGroup_sass__WEBPACK_IMPORTED_MODULE_0__);
|
16212 | var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
16213 | var _VListItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VList/VListItem.ts");
|
16214 | var _VListItemIcon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VList/VListItemIcon.ts");
|
16215 | var _mixins_binds_attrs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/binds-attrs/index.ts");
|
16216 | var _mixins_bootable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/bootable/index.ts");
|
16217 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
16218 | var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/mixins/toggleable/index.ts");
|
16219 | var _mixins_registrable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/mixins/registrable/index.ts");
|
16220 | var _directives_ripple__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__( "./src/directives/ripple/index.ts");
|
16221 | var _transitions__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__( "./src/components/transitions/index.ts");
|
16222 | var _util_mixins__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__( "./src/util/mixins.ts");
|
16223 | var __assign = undefined && undefined.__assign || function () {
|
16224 | __assign = Object.assign || function (t) {
|
16225 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
16226 | s = arguments[i];
|
16227 |
|
16228 | for (var p in s) {
|
16229 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
16230 | }
|
16231 | }
|
16232 |
|
16233 | return t;
|
16234 | };
|
16235 |
|
16236 | return __assign.apply(this, arguments);
|
16237 | };
|
16238 |
|
16239 |
|
16240 |
|
16241 |
|
16242 |
|
16243 |
|
16244 |
|
16245 |
|
16246 |
|
16247 |
|
16248 |
|
16249 |
|
16250 |
|
16251 |
|
16252 |
|
16253 |
|
16254 |
|
16255 |
|
16256 |
|
16257 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_11__["default"])(_mixins_binds_attrs__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_bootable__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_colorable__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_8__["inject"])('list'), _mixins_toggleable__WEBPACK_IMPORTED_MODULE_7__["default"]);
|
16258 | __webpack_exports__["default"] = (baseMixins.extend().extend({
|
16259 | name: 'v-list-group',
|
16260 | directives: {
|
16261 | ripple: _directives_ripple__WEBPACK_IMPORTED_MODULE_9__["default"]
|
16262 | },
|
16263 | props: {
|
16264 | activeClass: {
|
16265 | type: String,
|
16266 | default: ''
|
16267 | },
|
16268 | appendIcon: {
|
16269 | type: String,
|
16270 | default: '$expand'
|
16271 | },
|
16272 | color: {
|
16273 | type: String,
|
16274 | default: 'primary'
|
16275 | },
|
16276 | disabled: Boolean,
|
16277 | group: String,
|
16278 | noAction: Boolean,
|
16279 | prependIcon: String,
|
16280 | ripple: {
|
16281 | type: [Boolean, Object],
|
16282 | default: true
|
16283 | },
|
16284 | subGroup: Boolean
|
16285 | },
|
16286 | computed: {
|
16287 | classes: function classes() {
|
16288 | return {
|
16289 | 'v-list-group--active': this.isActive,
|
16290 | 'v-list-group--disabled': this.disabled,
|
16291 | 'v-list-group--no-action': this.noAction,
|
16292 | 'v-list-group--sub-group': this.subGroup
|
16293 | };
|
16294 | }
|
16295 | },
|
16296 | watch: {
|
16297 | isActive: function isActive(val) {
|
16298 |
|
16299 | if (!this.subGroup && val) {
|
16300 | this.list && this.list.listClick(this._uid);
|
16301 | }
|
16302 | },
|
16303 | $route: 'onRouteChange'
|
16304 | },
|
16305 | created: function created() {
|
16306 | this.list && this.list.register(this);
|
16307 |
|
16308 | if (this.group && this.$route && this.value == null) {
|
16309 | this.isActive = this.matchRoute(this.$route.path);
|
16310 | }
|
16311 | },
|
16312 | beforeDestroy: function beforeDestroy() {
|
16313 | this.list && this.list.unregister(this);
|
16314 | },
|
16315 | methods: {
|
16316 | click: function click(e) {
|
16317 | var _this = this;
|
16318 |
|
16319 | if (this.disabled) return;
|
16320 | this.isBooted = true;
|
16321 | this.$emit('click', e);
|
16322 | this.$nextTick(function () {
|
16323 | return _this.isActive = !_this.isActive;
|
16324 | });
|
16325 | },
|
16326 | genIcon: function genIcon(icon) {
|
16327 | return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], icon);
|
16328 | },
|
16329 | genAppendIcon: function genAppendIcon() {
|
16330 | var icon = !this.subGroup ? this.appendIcon : false;
|
16331 | if (!icon && !this.$slots.appendIcon) return null;
|
16332 | return this.$createElement(_VListItemIcon__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
16333 | staticClass: 'v-list-group__header__append-icon'
|
16334 | }, [this.$slots.appendIcon || this.genIcon(icon)]);
|
16335 | },
|
16336 | genHeader: function genHeader() {
|
16337 | var _a;
|
16338 |
|
16339 | return this.$createElement(_VListItem__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
16340 | staticClass: 'v-list-group__header',
|
16341 | attrs: {
|
16342 | 'aria-expanded': String(this.isActive),
|
16343 | role: 'button'
|
16344 | },
|
16345 | class: (_a = {}, _a[this.activeClass] = this.isActive, _a),
|
16346 | props: {
|
16347 | inputValue: this.isActive
|
16348 | },
|
16349 | directives: [{
|
16350 | name: 'ripple',
|
16351 | value: this.ripple
|
16352 | }],
|
16353 | on: __assign({}, this.listeners$, {
|
16354 | click: this.click
|
16355 | })
|
16356 | }, [this.genPrependIcon(), this.$slots.activator, this.genAppendIcon()]);
|
16357 | },
|
16358 | genItems: function genItems() {
|
16359 | return this.$createElement('div', {
|
16360 | staticClass: 'v-list-group__items',
|
16361 | directives: [{
|
16362 | name: 'show',
|
16363 | value: this.isActive
|
16364 | }]
|
16365 | }, this.showLazyContent([this.$createElement('div', this.$slots.default)]));
|
16366 | },
|
16367 | genPrependIcon: function genPrependIcon() {
|
16368 | var icon = this.prependIcon ? this.prependIcon : this.subGroup ? '$subgroup' : false;
|
16369 | if (!icon && !this.$slots.prependIcon) return null;
|
16370 | return this.$createElement(_VListItemIcon__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
16371 | staticClass: 'v-list-group__header__prepend-icon'
|
16372 | }, [this.$slots.prependIcon || this.genIcon(icon)]);
|
16373 | },
|
16374 | onRouteChange: function onRouteChange(to) {
|
16375 |
|
16376 | if (!this.group) return;
|
16377 | var isActive = this.matchRoute(to.path);
|
16378 |
|
16379 |
|
16380 | if (isActive && this.isActive !== isActive) {
|
16381 | this.list && this.list.listClick(this._uid);
|
16382 | }
|
16383 |
|
16384 | this.isActive = isActive;
|
16385 | },
|
16386 | toggle: function toggle(uid) {
|
16387 | var _this = this;
|
16388 |
|
16389 | var isActive = this._uid === uid;
|
16390 | if (isActive) this.isBooted = true;
|
16391 | this.$nextTick(function () {
|
16392 | return _this.isActive = isActive;
|
16393 | });
|
16394 | },
|
16395 | matchRoute: function matchRoute(to) {
|
16396 | return to.match(this.group) !== null;
|
16397 | }
|
16398 | },
|
16399 | render: function render(h) {
|
16400 | return h('div', this.setTextColor(this.isActive && this.color, {
|
16401 | staticClass: 'v-list-group',
|
16402 | class: this.classes
|
16403 | }), [this.genHeader(), h(_transitions__WEBPACK_IMPORTED_MODULE_10__["VExpandTransition"], [this.genItems()])]);
|
16404 | }
|
16405 | }));
|
16406 |
|
16407 | }),
|
16408 |
|
16409 | "./src/components/VList/VListItem.sass":
|
16410 |
|
16411 |
|
16412 |
|
16413 |
|
16414 | (function(module, exports, __webpack_require__) {
|
16415 |
|
16416 |
|
16417 |
|
16418 | }),
|
16419 |
|
16420 | "./src/components/VList/VListItem.ts":
|
16421 |
|
16422 |
|
16423 |
|
16424 |
|
16425 | (function(module, __webpack_exports__, __webpack_require__) {
|
16426 |
|
16427 | "use strict";
|
16428 | __webpack_require__.r(__webpack_exports__);
|
16429 | var _VListItem_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VList/VListItem.sass");
|
16430 | var _VListItem_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VListItem_sass__WEBPACK_IMPORTED_MODULE_0__);
|
16431 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
16432 | var _mixins_routable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/routable/index.ts");
|
16433 | var _mixins_groupable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/groupable/index.ts");
|
16434 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
16435 | var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/toggleable/index.ts");
|
16436 | var _directives_ripple__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/directives/ripple/index.ts");
|
16437 | var _util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/util/helpers.ts");
|
16438 | var _util_console__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/util/console.ts");
|
16439 | var _util_mixins__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__( "./src/util/mixins.ts");
|
16440 | var __assign = undefined && undefined.__assign || function () {
|
16441 | __assign = Object.assign || function (t) {
|
16442 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
16443 | s = arguments[i];
|
16444 |
|
16445 | for (var p in s) {
|
16446 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
16447 | }
|
16448 | }
|
16449 |
|
16450 | return t;
|
16451 | };
|
16452 |
|
16453 | return __assign.apply(this, arguments);
|
16454 | };
|
16455 |
|
16456 |
|
16457 |
|
16458 |
|
16459 |
|
16460 |
|
16461 |
|
16462 |
|
16463 |
|
16464 |
|
16465 |
|
16466 |
|
16467 |
|
16468 |
|
16469 |
|
16470 |
|
16471 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_9__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_routable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_4__["default"], Object(_mixins_groupable__WEBPACK_IMPORTED_MODULE_3__["factory"])('listItemGroup'), Object(_mixins_toggleable__WEBPACK_IMPORTED_MODULE_5__["factory"])('inputValue'));
|
16472 |
|
16473 |
|
16474 | __webpack_exports__["default"] = (baseMixins.extend().extend({
|
16475 | name: 'v-list-item',
|
16476 | directives: {
|
16477 | Ripple: _directives_ripple__WEBPACK_IMPORTED_MODULE_6__["default"]
|
16478 | },
|
16479 | inheritAttrs: false,
|
16480 | inject: {
|
16481 | isInGroup: {
|
16482 | default: false
|
16483 | },
|
16484 | isInList: {
|
16485 | default: false
|
16486 | },
|
16487 | isInMenu: {
|
16488 | default: false
|
16489 | },
|
16490 | isInNav: {
|
16491 | default: false
|
16492 | }
|
16493 | },
|
16494 | props: {
|
16495 | activeClass: {
|
16496 | type: String,
|
16497 | default: function _default() {
|
16498 | if (!this.listItemGroup) return '';
|
16499 | return this.listItemGroup.activeClass;
|
16500 | }
|
16501 | },
|
16502 | dense: Boolean,
|
16503 | inactive: Boolean,
|
16504 | link: Boolean,
|
16505 | selectable: {
|
16506 | type: Boolean
|
16507 | },
|
16508 | tag: {
|
16509 | type: String,
|
16510 | default: 'div'
|
16511 | },
|
16512 | threeLine: Boolean,
|
16513 | twoLine: Boolean,
|
16514 | value: null
|
16515 | },
|
16516 | data: function data() {
|
16517 | return {
|
16518 | proxyClass: 'v-list-item--active'
|
16519 | };
|
16520 | },
|
16521 | computed: {
|
16522 | classes: function classes() {
|
16523 | return __assign({
|
16524 | 'v-list-item': true
|
16525 | }, _mixins_routable__WEBPACK_IMPORTED_MODULE_2__["default"].options.computed.classes.call(this), {
|
16526 | 'v-list-item--dense': this.dense,
|
16527 | 'v-list-item--disabled': this.disabled,
|
16528 | 'v-list-item--link': this.isClickable && !this.inactive,
|
16529 | 'v-list-item--selectable': this.selectable,
|
16530 | 'v-list-item--three-line': this.threeLine,
|
16531 | 'v-list-item--two-line': this.twoLine
|
16532 | }, this.themeClasses);
|
16533 | },
|
16534 | isClickable: function isClickable() {
|
16535 | return Boolean(_mixins_routable__WEBPACK_IMPORTED_MODULE_2__["default"].options.computed.isClickable.call(this) || this.listItemGroup);
|
16536 | }
|
16537 | },
|
16538 | created: function created() {
|
16539 |
|
16540 | if (this.$attrs.hasOwnProperty('avatar')) {
|
16541 | Object(_util_console__WEBPACK_IMPORTED_MODULE_8__["removed"])('avatar', this);
|
16542 | }
|
16543 | },
|
16544 | methods: {
|
16545 | click: function click(e) {
|
16546 | if (e.detail) this.$el.blur();
|
16547 | this.$emit('click', e);
|
16548 | this.to || this.toggle();
|
16549 | },
|
16550 | genAttrs: function genAttrs() {
|
16551 | var attrs = __assign({
|
16552 | 'aria-disabled': this.disabled ? true : undefined,
|
16553 | tabindex: this.isClickable && !this.disabled ? 0 : -1
|
16554 | }, this.$attrs);
|
16555 |
|
16556 | if (this.$attrs.hasOwnProperty('role')) {
|
16557 | } else if (this.isInNav) {
|
16558 | } else if (this.isInGroup) {
|
16559 | attrs.role = 'listitem';
|
16560 | attrs['aria-selected'] = String(this.isActive);
|
16561 | } else if (this.isInMenu) {
|
16562 | attrs.role = this.isClickable ? 'menuitem' : undefined;
|
16563 | } else if (this.isInList) {
|
16564 | attrs.role = 'listitem';
|
16565 | }
|
16566 |
|
16567 | return attrs;
|
16568 | }
|
16569 | },
|
16570 | render: function render(h) {
|
16571 | var _this = this;
|
16572 |
|
16573 | var _a = this.generateRouteLink(),
|
16574 | tag = _a.tag,
|
16575 | data = _a.data;
|
16576 |
|
16577 | data.attrs = __assign({}, data.attrs, this.genAttrs());
|
16578 | data.on = __assign({}, data.on, {
|
16579 | click: this.click,
|
16580 | keydown: function keydown(e) {
|
16581 |
|
16582 | if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_7__["keyCodes"].enter) _this.click(e);
|
16583 |
|
16584 | _this.$emit('keydown', e);
|
16585 | }
|
16586 | });
|
16587 | var children = this.$scopedSlots.default ? this.$scopedSlots.default({
|
16588 | active: this.isActive,
|
16589 | toggle: this.toggle
|
16590 | }) : this.$slots.default;
|
16591 | tag = this.inactive ? 'div' : tag;
|
16592 | return h(tag, this.setTextColor(this.color, data), children);
|
16593 | }
|
16594 | }));
|
16595 |
|
16596 | }),
|
16597 |
|
16598 | "./src/components/VList/VListItemAction.ts":
|
16599 |
|
16600 |
|
16601 |
|
16602 |
|
16603 | (function(module, __webpack_exports__, __webpack_require__) {
|
16604 |
|
16605 | "use strict";
|
16606 | __webpack_require__.r(__webpack_exports__);
|
16607 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
16608 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
16609 |
|
16610 |
|
16611 |
|
16612 |
|
16613 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
16614 | name: 'v-list-item-action',
|
16615 | functional: true,
|
16616 | render: function render(h, _a) {
|
16617 | var data = _a.data,
|
16618 | _b = _a.children,
|
16619 | children = _b === void 0 ? [] : _b;
|
16620 | data.staticClass = data.staticClass ? "v-list-item__action " + data.staticClass : 'v-list-item__action';
|
16621 | var filteredChild = children.filter(function (VNode) {
|
16622 | return VNode.isComment === false && VNode.text !== ' ';
|
16623 | });
|
16624 | if (filteredChild.length > 1) data.staticClass += ' v-list-item__action--stack';
|
16625 | return h('div', data, children);
|
16626 | }
|
16627 | }));
|
16628 |
|
16629 | }),
|
16630 |
|
16631 | "./src/components/VList/VListItemAvatar.ts":
|
16632 |
|
16633 |
|
16634 |
|
16635 |
|
16636 | (function(module, __webpack_exports__, __webpack_require__) {
|
16637 |
|
16638 | "use strict";
|
16639 | __webpack_require__.r(__webpack_exports__);
|
16640 | var _VAvatar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VAvatar/index.ts");
|
16641 | var __assign = undefined && undefined.__assign || function () {
|
16642 | __assign = Object.assign || function (t) {
|
16643 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
16644 | s = arguments[i];
|
16645 |
|
16646 | for (var p in s) {
|
16647 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
16648 | }
|
16649 | }
|
16650 |
|
16651 | return t;
|
16652 | };
|
16653 |
|
16654 | return __assign.apply(this, arguments);
|
16655 | };
|
16656 |
|
16657 |
|
16658 |
|
16659 |
|
16660 |
|
16661 | __webpack_exports__["default"] = (_VAvatar__WEBPACK_IMPORTED_MODULE_0__["default"].extend({
|
16662 | name: 'v-list-item-avatar',
|
16663 | props: {
|
16664 | horizontal: Boolean,
|
16665 | size: {
|
16666 | type: [Number, String],
|
16667 | default: 40
|
16668 | }
|
16669 | },
|
16670 | computed: {
|
16671 | classes: function classes() {
|
16672 | return __assign({
|
16673 | 'v-list-item__avatar--horizontal': this.horizontal
|
16674 | }, _VAvatar__WEBPACK_IMPORTED_MODULE_0__["default"].options.computed.classes.call(this), {
|
16675 | 'v-avatar--tile': this.tile || this.horizontal
|
16676 | });
|
16677 | }
|
16678 | },
|
16679 | render: function render(h) {
|
16680 | var render = _VAvatar__WEBPACK_IMPORTED_MODULE_0__["default"].options.render.call(this, h);
|
16681 | render.data = render.data || {};
|
16682 | render.data.staticClass += ' v-list-item__avatar';
|
16683 | return render;
|
16684 | }
|
16685 | }));
|
16686 |
|
16687 | }),
|
16688 |
|
16689 | "./src/components/VList/VListItemGroup.sass":
|
16690 |
|
16691 |
|
16692 |
|
16693 |
|
16694 | (function(module, exports, __webpack_require__) {
|
16695 |
|
16696 |
|
16697 |
|
16698 | }),
|
16699 |
|
16700 | "./src/components/VList/VListItemGroup.ts":
|
16701 |
|
16702 |
|
16703 |
|
16704 |
|
16705 | (function(module, __webpack_exports__, __webpack_require__) {
|
16706 |
|
16707 | "use strict";
|
16708 | __webpack_require__.r(__webpack_exports__);
|
16709 | var _VListItemGroup_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VList/VListItemGroup.sass");
|
16710 | var _VListItemGroup_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VListItemGroup_sass__WEBPACK_IMPORTED_MODULE_0__);
|
16711 | var _VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VItemGroup/VItemGroup.ts");
|
16712 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
16713 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
16714 | var __assign = undefined && undefined.__assign || function () {
|
16715 | __assign = Object.assign || function (t) {
|
16716 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
16717 | s = arguments[i];
|
16718 |
|
16719 | for (var p in s) {
|
16720 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
16721 | }
|
16722 | }
|
16723 |
|
16724 | return t;
|
16725 | };
|
16726 |
|
16727 | return __assign.apply(this, arguments);
|
16728 | };
|
16729 |
|
16730 |
|
16731 |
|
16732 |
|
16733 |
|
16734 |
|
16735 |
|
16736 |
|
16737 |
|
16738 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_1__["BaseItemGroup"], _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"]).extend({
|
16739 | name: 'v-list-item-group',
|
16740 | provide: function provide() {
|
16741 | return {
|
16742 | isInGroup: true,
|
16743 | listItemGroup: this
|
16744 | };
|
16745 | },
|
16746 | computed: {
|
16747 | classes: function classes() {
|
16748 | return __assign({}, _VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_1__["BaseItemGroup"].options.computed.classes.call(this), {
|
16749 | 'v-list-item-group': true
|
16750 | });
|
16751 | }
|
16752 | },
|
16753 | methods: {
|
16754 | genData: function genData() {
|
16755 | return this.setTextColor(this.color, __assign({}, _VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_1__["BaseItemGroup"].options.methods.genData.call(this), {
|
16756 | attrs: {
|
16757 | role: 'listbox'
|
16758 | }
|
16759 | }));
|
16760 | }
|
16761 | }
|
16762 | }));
|
16763 |
|
16764 | }),
|
16765 |
|
16766 | "./src/components/VList/VListItemIcon.ts":
|
16767 |
|
16768 |
|
16769 |
|
16770 |
|
16771 | (function(module, __webpack_exports__, __webpack_require__) {
|
16772 |
|
16773 | "use strict";
|
16774 | __webpack_require__.r(__webpack_exports__);
|
16775 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
16776 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
16777 |
|
16778 |
|
16779 |
|
16780 |
|
16781 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
16782 | name: 'v-list-item-icon',
|
16783 | functional: true,
|
16784 | render: function render(h, _a) {
|
16785 | var data = _a.data,
|
16786 | children = _a.children;
|
16787 | data.staticClass = ("v-list-item__icon " + (data.staticClass || '')).trim();
|
16788 | return h('div', data, children);
|
16789 | }
|
16790 | }));
|
16791 |
|
16792 | }),
|
16793 |
|
16794 | "./src/components/VList/index.ts":
|
16795 |
|
16796 |
|
16797 |
|
16798 |
|
16799 | (function(module, __webpack_exports__, __webpack_require__) {
|
16800 |
|
16801 | "use strict";
|
16802 | __webpack_require__.r(__webpack_exports__);
|
16803 | __webpack_require__.d(__webpack_exports__, "VListItemActionText", function() { return VListItemActionText; });
|
16804 | __webpack_require__.d(__webpack_exports__, "VListItemContent", function() { return VListItemContent; });
|
16805 | __webpack_require__.d(__webpack_exports__, "VListItemTitle", function() { return VListItemTitle; });
|
16806 | __webpack_require__.d(__webpack_exports__, "VListItemSubtitle", function() { return VListItemSubtitle; });
|
16807 | var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/helpers.ts");
|
16808 | var _VList__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VList/VList.ts");
|
16809 | __webpack_require__.d(__webpack_exports__, "VList", function() { return _VList__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
16810 |
|
16811 | var _VListGroup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VList/VListGroup.ts");
|
16812 | __webpack_require__.d(__webpack_exports__, "VListGroup", function() { return _VListGroup__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
16813 |
|
16814 | var _VListItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VList/VListItem.ts");
|
16815 | __webpack_require__.d(__webpack_exports__, "VListItem", function() { return _VListItem__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
16816 |
|
16817 | var _VListItemGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VList/VListItemGroup.ts");
|
16818 | __webpack_require__.d(__webpack_exports__, "VListItemGroup", function() { return _VListItemGroup__WEBPACK_IMPORTED_MODULE_4__["default"]; });
|
16819 |
|
16820 | var _VListItemAction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/components/VList/VListItemAction.ts");
|
16821 | __webpack_require__.d(__webpack_exports__, "VListItemAction", function() { return _VListItemAction__WEBPACK_IMPORTED_MODULE_5__["default"]; });
|
16822 |
|
16823 | var _VListItemAvatar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/components/VList/VListItemAvatar.ts");
|
16824 | __webpack_require__.d(__webpack_exports__, "VListItemAvatar", function() { return _VListItemAvatar__WEBPACK_IMPORTED_MODULE_6__["default"]; });
|
16825 |
|
16826 | var _VListItemIcon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/components/VList/VListItemIcon.ts");
|
16827 | __webpack_require__.d(__webpack_exports__, "VListItemIcon", function() { return _VListItemIcon__WEBPACK_IMPORTED_MODULE_7__["default"]; });
|
16828 |
|
16829 |
|
16830 |
|
16831 |
|
16832 |
|
16833 |
|
16834 |
|
16835 |
|
16836 |
|
16837 | var VListItemActionText = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('v-list-item__action-text', 'span');
|
16838 | var VListItemContent = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('v-list-item__content', 'div');
|
16839 | var VListItemTitle = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('v-list-item__title', 'div');
|
16840 | var VListItemSubtitle = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('v-list-item__subtitle', 'div');
|
16841 |
|
16842 | __webpack_exports__["default"] = ({
|
16843 | $_vuetify_subcomponents: {
|
16844 | VList: _VList__WEBPACK_IMPORTED_MODULE_1__["default"],
|
16845 | VListGroup: _VListGroup__WEBPACK_IMPORTED_MODULE_2__["default"],
|
16846 | VListItem: _VListItem__WEBPACK_IMPORTED_MODULE_3__["default"],
|
16847 | VListItemAction: _VListItemAction__WEBPACK_IMPORTED_MODULE_5__["default"],
|
16848 | VListItemActionText: VListItemActionText,
|
16849 | VListItemAvatar: _VListItemAvatar__WEBPACK_IMPORTED_MODULE_6__["default"],
|
16850 | VListItemContent: VListItemContent,
|
16851 | VListItemGroup: _VListItemGroup__WEBPACK_IMPORTED_MODULE_4__["default"],
|
16852 | VListItemIcon: _VListItemIcon__WEBPACK_IMPORTED_MODULE_7__["default"],
|
16853 | VListItemSubtitle: VListItemSubtitle,
|
16854 | VListItemTitle: VListItemTitle
|
16855 | }
|
16856 | });
|
16857 |
|
16858 | }),
|
16859 |
|
16860 | "./src/components/VMenu/VMenu.sass":
|
16861 |
|
16862 |
|
16863 |
|
16864 |
|
16865 | (function(module, exports, __webpack_require__) {
|
16866 |
|
16867 |
|
16868 |
|
16869 | }),
|
16870 |
|
16871 | "./src/components/VMenu/VMenu.ts":
|
16872 |
|
16873 |
|
16874 |
|
16875 |
|
16876 | (function(module, __webpack_exports__, __webpack_require__) {
|
16877 |
|
16878 | "use strict";
|
16879 | __webpack_require__.r(__webpack_exports__);
|
16880 | var _VMenu_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VMenu/VMenu.sass");
|
16881 | var _VMenu_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VMenu_sass__WEBPACK_IMPORTED_MODULE_0__);
|
16882 | var _mixins_delayable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/delayable/index.ts");
|
16883 | var _mixins_dependent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/dependent/index.ts");
|
16884 | var _mixins_detachable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/detachable/index.ts");
|
16885 | var _mixins_menuable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/menuable/index.ts");
|
16886 | var _mixins_returnable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/returnable/index.ts");
|
16887 | var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/mixins/toggleable/index.ts");
|
16888 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
16889 | var _directives_click_outside__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/directives/click-outside/index.ts");
|
16890 | var _directives_resize__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__( "./src/directives/resize/index.ts");
|
16891 | var _util_mixins__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__( "./src/util/mixins.ts");
|
16892 | var _util_helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__( "./src/util/helpers.ts");
|
16893 | var _util_ThemeProvider__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__( "./src/util/ThemeProvider.ts");
|
16894 | var _util_console__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__( "./src/util/console.ts");
|
16895 | var __assign = undefined && undefined.__assign || function () {
|
16896 | __assign = Object.assign || function (t) {
|
16897 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
16898 | s = arguments[i];
|
16899 |
|
16900 | for (var p in s) {
|
16901 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
16902 | }
|
16903 | }
|
16904 |
|
16905 | return t;
|
16906 | };
|
16907 |
|
16908 | return __assign.apply(this, arguments);
|
16909 | };
|
16910 |
|
16911 | var __read = undefined && undefined.__read || function (o, n) {
|
16912 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
16913 | if (!m) return o;
|
16914 | var i = m.call(o),
|
16915 | r,
|
16916 | ar = [],
|
16917 | e;
|
16918 |
|
16919 | try {
|
16920 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
16921 | ar.push(r.value);
|
16922 | }
|
16923 | } catch (error) {
|
16924 | e = {
|
16925 | error: error
|
16926 | };
|
16927 | } finally {
|
16928 | try {
|
16929 | if (r && !r.done && (m = i["return"])) m.call(i);
|
16930 | } finally {
|
16931 | if (e) throw e.error;
|
16932 | }
|
16933 | }
|
16934 |
|
16935 | return ar;
|
16936 | };
|
16937 |
|
16938 | var __spread = undefined && undefined.__spread || function () {
|
16939 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
16940 | ar = ar.concat(__read(arguments[i]));
|
16941 | }
|
16942 |
|
16943 | return ar;
|
16944 | };
|
16945 |
|
16946 |
|
16947 |
|
16948 |
|
16949 |
|
16950 |
|
16951 |
|
16952 |
|
16953 |
|
16954 |
|
16955 |
|
16956 |
|
16957 |
|
16958 |
|
16959 |
|
16960 |
|
16961 |
|
16962 |
|
16963 |
|
16964 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_10__["default"])(_mixins_dependent__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_delayable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_detachable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_menuable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_returnable__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_6__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_7__["default"]);
|
16965 |
|
16966 |
|
16967 | __webpack_exports__["default"] = (baseMixins.extend({
|
16968 | name: 'v-menu',
|
16969 | provide: function provide() {
|
16970 | return {
|
16971 | isInMenu: true,
|
16972 |
|
16973 | theme: this.theme
|
16974 | };
|
16975 | },
|
16976 | directives: {
|
16977 | ClickOutside: _directives_click_outside__WEBPACK_IMPORTED_MODULE_8__["default"],
|
16978 | Resize: _directives_resize__WEBPACK_IMPORTED_MODULE_9__["default"]
|
16979 | },
|
16980 | props: {
|
16981 | auto: Boolean,
|
16982 | closeOnClick: {
|
16983 | type: Boolean,
|
16984 | default: true
|
16985 | },
|
16986 | closeOnContentClick: {
|
16987 | type: Boolean,
|
16988 | default: true
|
16989 | },
|
16990 | disabled: Boolean,
|
16991 | disableKeys: Boolean,
|
16992 | maxHeight: {
|
16993 | type: [Number, String],
|
16994 | default: 'auto'
|
16995 | },
|
16996 | offsetX: Boolean,
|
16997 | offsetY: Boolean,
|
16998 | openOnClick: {
|
16999 | type: Boolean,
|
17000 | default: true
|
17001 | },
|
17002 | openOnHover: Boolean,
|
17003 | origin: {
|
17004 | type: String,
|
17005 | default: 'top left'
|
17006 | },
|
17007 | transition: {
|
17008 | type: [Boolean, String],
|
17009 | default: 'v-menu-transition'
|
17010 | }
|
17011 | },
|
17012 | data: function data() {
|
17013 | return {
|
17014 | calculatedTopAuto: 0,
|
17015 | defaultOffset: 8,
|
17016 | hasJustFocused: false,
|
17017 | listIndex: -1,
|
17018 | resizeTimeout: 0,
|
17019 | selectedIndex: null,
|
17020 | tiles: []
|
17021 | };
|
17022 | },
|
17023 | computed: {
|
17024 | activeTile: function activeTile() {
|
17025 | return this.tiles[this.listIndex];
|
17026 | },
|
17027 | calculatedLeft: function calculatedLeft() {
|
17028 | var menuWidth = Math.max(this.dimensions.content.width, parseFloat(this.calculatedMinWidth));
|
17029 | if (!this.auto) return this.calcLeft(menuWidth) || '0';
|
17030 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_11__["convertToUnit"])(this.calcXOverflow(this.calcLeftAuto(), menuWidth)) || '0';
|
17031 | },
|
17032 | calculatedMaxHeight: function calculatedMaxHeight() {
|
17033 | var height = this.auto ? '200px' : Object(_util_helpers__WEBPACK_IMPORTED_MODULE_11__["convertToUnit"])(this.maxHeight);
|
17034 | return height || '0';
|
17035 | },
|
17036 | calculatedMaxWidth: function calculatedMaxWidth() {
|
17037 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_11__["convertToUnit"])(this.maxWidth) || '0';
|
17038 | },
|
17039 | calculatedMinWidth: function calculatedMinWidth() {
|
17040 | if (this.minWidth) {
|
17041 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_11__["convertToUnit"])(this.minWidth) || '0';
|
17042 | }
|
17043 |
|
17044 | var minWidth = Math.min(this.dimensions.activator.width + Number(this.nudgeWidth) + (this.auto ? 16 : 0), Math.max(this.pageWidth - 24, 0));
|
17045 | var calculatedMaxWidth = isNaN(parseInt(this.calculatedMaxWidth)) ? minWidth : parseInt(this.calculatedMaxWidth);
|
17046 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_11__["convertToUnit"])(Math.min(calculatedMaxWidth, minWidth)) || '0';
|
17047 | },
|
17048 | calculatedTop: function calculatedTop() {
|
17049 | var top = !this.auto ? this.calcTop() : Object(_util_helpers__WEBPACK_IMPORTED_MODULE_11__["convertToUnit"])(this.calcYOverflow(this.calculatedTopAuto));
|
17050 | return top || '0';
|
17051 | },
|
17052 | hasClickableTiles: function hasClickableTiles() {
|
17053 | return Boolean(this.tiles.find(function (tile) {
|
17054 | return tile.tabIndex > -1;
|
17055 | }));
|
17056 | },
|
17057 | styles: function styles() {
|
17058 | return {
|
17059 | maxHeight: this.calculatedMaxHeight,
|
17060 | minWidth: this.calculatedMinWidth,
|
17061 | maxWidth: this.calculatedMaxWidth,
|
17062 | top: this.calculatedTop,
|
17063 | left: this.calculatedLeft,
|
17064 | transformOrigin: this.origin,
|
17065 | zIndex: this.zIndex || this.activeZIndex
|
17066 | };
|
17067 | }
|
17068 | },
|
17069 | watch: {
|
17070 | isActive: function isActive(val) {
|
17071 | if (!val) this.listIndex = -1;
|
17072 | },
|
17073 | isContentActive: function isContentActive(val) {
|
17074 | this.hasJustFocused = val;
|
17075 | },
|
17076 | listIndex: function listIndex(next, prev) {
|
17077 | if (next in this.tiles) {
|
17078 | var tile = this.tiles[next];
|
17079 | tile.classList.add('v-list-item--highlighted');
|
17080 | this.$refs.content.scrollTop = tile.offsetTop - tile.clientHeight;
|
17081 | }
|
17082 |
|
17083 | prev in this.tiles && this.tiles[prev].classList.remove('v-list-item--highlighted');
|
17084 | }
|
17085 | },
|
17086 | created: function created() {
|
17087 |
|
17088 | if (this.$attrs.hasOwnProperty('full-width')) {
|
17089 | Object(_util_console__WEBPACK_IMPORTED_MODULE_13__["removed"])('full-width', this);
|
17090 | }
|
17091 | },
|
17092 | mounted: function mounted() {
|
17093 | this.isActive && this.callActivate();
|
17094 | },
|
17095 | methods: {
|
17096 | activate: function activate() {
|
17097 | var _this = this;
|
17098 |
|
17099 |
|
17100 |
|
17101 | this.updateDimensions();
|
17102 |
|
17103 | requestAnimationFrame(function () {
|
17104 |
|
17105 | _this.startTransition().then(function () {
|
17106 | if (_this.$refs.content) {
|
17107 | _this.calculatedTopAuto = _this.calcTopAuto();
|
17108 | _this.auto && (_this.$refs.content.scrollTop = _this.calcScrollPosition());
|
17109 | }
|
17110 | });
|
17111 | });
|
17112 | },
|
17113 | calcScrollPosition: function calcScrollPosition() {
|
17114 | var $el = this.$refs.content;
|
17115 | var activeTile = $el.querySelector('.v-list-item--active');
|
17116 | var maxScrollTop = $el.scrollHeight - $el.offsetHeight;
|
17117 | return activeTile ? Math.min(maxScrollTop, Math.max(0, activeTile.offsetTop - $el.offsetHeight / 2 + activeTile.offsetHeight / 2)) : $el.scrollTop;
|
17118 | },
|
17119 | calcLeftAuto: function calcLeftAuto() {
|
17120 | return parseInt(this.dimensions.activator.left - this.defaultOffset * 2);
|
17121 | },
|
17122 | calcTopAuto: function calcTopAuto() {
|
17123 | var $el = this.$refs.content;
|
17124 | var activeTile = $el.querySelector('.v-list-item--active');
|
17125 |
|
17126 | if (!activeTile) {
|
17127 | this.selectedIndex = null;
|
17128 | }
|
17129 |
|
17130 | if (this.offsetY || !activeTile) {
|
17131 | return this.computedTop;
|
17132 | }
|
17133 |
|
17134 | this.selectedIndex = Array.from(this.tiles).indexOf(activeTile);
|
17135 | var tileDistanceFromMenuTop = activeTile.offsetTop - this.calcScrollPosition();
|
17136 | var firstTileOffsetTop = $el.querySelector('.v-list-item').offsetTop;
|
17137 | return this.computedTop - tileDistanceFromMenuTop - firstTileOffsetTop - 1;
|
17138 | },
|
17139 | changeListIndex: function changeListIndex(e) {
|
17140 |
|
17141 | this.getTiles();
|
17142 |
|
17143 | if (!this.isActive || !this.hasClickableTiles) {
|
17144 | return;
|
17145 | } else if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_11__["keyCodes"].tab) {
|
17146 | this.isActive = false;
|
17147 | return;
|
17148 | } else if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_11__["keyCodes"].down) {
|
17149 | this.nextTile();
|
17150 | } else if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_11__["keyCodes"].up) {
|
17151 | this.prevTile();
|
17152 | } else if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_11__["keyCodes"].enter && this.listIndex !== -1) {
|
17153 | this.tiles[this.listIndex].click();
|
17154 | } else {
|
17155 | return;
|
17156 | }
|
17157 |
|
17158 |
|
17159 | e.preventDefault();
|
17160 | },
|
17161 | closeConditional: function closeConditional(e) {
|
17162 | var target = e.target;
|
17163 | return this.isActive && !this._isDestroyed && this.closeOnClick && !this.$refs.content.contains(target);
|
17164 | },
|
17165 | genActivatorListeners: function genActivatorListeners() {
|
17166 | var listeners = _mixins_menuable__WEBPACK_IMPORTED_MODULE_4__["default"].options.methods.genActivatorListeners.call(this);
|
17167 |
|
17168 | if (!this.disableKeys) {
|
17169 | listeners.keydown = this.onKeyDown;
|
17170 | }
|
17171 |
|
17172 | return listeners;
|
17173 | },
|
17174 | genTransition: function genTransition() {
|
17175 | if (!this.transition) return this.genContent();
|
17176 | return this.$createElement('transition', {
|
17177 | props: {
|
17178 | name: this.transition
|
17179 | }
|
17180 | }, [this.genContent()]);
|
17181 | },
|
17182 | genDirectives: function genDirectives() {
|
17183 | var _this = this;
|
17184 |
|
17185 | var directives = [{
|
17186 | name: 'show',
|
17187 | value: this.isContentActive
|
17188 | }];
|
17189 |
|
17190 | if (!this.openOnHover && this.closeOnClick) {
|
17191 | directives.push({
|
17192 | name: 'click-outside',
|
17193 | value: function value() {
|
17194 | _this.isActive = false;
|
17195 | },
|
17196 | args: {
|
17197 | closeConditional: this.closeConditional,
|
17198 | include: function include() {
|
17199 | return __spread([_this.$el], _this.getOpenDependentElements());
|
17200 | }
|
17201 | }
|
17202 | });
|
17203 | }
|
17204 |
|
17205 | return directives;
|
17206 | },
|
17207 | genContent: function genContent() {
|
17208 | var _a;
|
17209 |
|
17210 | var _this = this;
|
17211 |
|
17212 | var options = {
|
17213 | attrs: __assign({}, this.getScopeIdAttrs(), {
|
17214 | role: 'role' in this.$attrs ? this.$attrs.role : 'menu'
|
17215 | }),
|
17216 | staticClass: 'v-menu__content',
|
17217 | class: __assign({}, this.rootThemeClasses, (_a = {
|
17218 | 'v-menu__content--auto': this.auto,
|
17219 | 'v-menu__content--fixed': this.activatorFixed,
|
17220 | menuable__content__active: this.isActive
|
17221 | }, _a[this.contentClass.trim()] = true, _a)),
|
17222 | style: this.styles,
|
17223 | directives: this.genDirectives(),
|
17224 | ref: 'content',
|
17225 | on: {
|
17226 | click: function click(e) {
|
17227 | e.stopPropagation();
|
17228 | var target = e.target;
|
17229 | if (target.getAttribute('disabled')) return;
|
17230 | if (_this.closeOnContentClick) _this.isActive = false;
|
17231 | },
|
17232 | keydown: this.onKeyDown
|
17233 | }
|
17234 | };
|
17235 |
|
17236 | if (!this.disabled && this.openOnHover) {
|
17237 | options.on = options.on || {};
|
17238 | options.on.mouseenter = this.mouseEnterHandler;
|
17239 | }
|
17240 |
|
17241 | if (this.openOnHover) {
|
17242 | options.on = options.on || {};
|
17243 | options.on.mouseleave = this.mouseLeaveHandler;
|
17244 | }
|
17245 |
|
17246 | return this.$createElement('div', options, this.showLazyContent(this.getContentSlot()));
|
17247 | },
|
17248 | getTiles: function getTiles() {
|
17249 | this.tiles = Array.from(this.$refs.content.querySelectorAll('.v-list-item'));
|
17250 | },
|
17251 | mouseEnterHandler: function mouseEnterHandler() {
|
17252 | var _this = this;
|
17253 |
|
17254 | this.runDelay('open', function () {
|
17255 | if (_this.hasJustFocused) return;
|
17256 | _this.hasJustFocused = true;
|
17257 | _this.isActive = true;
|
17258 | });
|
17259 | },
|
17260 | mouseLeaveHandler: function mouseLeaveHandler(e) {
|
17261 | var _this = this;
|
17262 |
|
17263 |
|
17264 | this.runDelay('close', function () {
|
17265 | if (_this.$refs.content.contains(e.relatedTarget)) return;
|
17266 | requestAnimationFrame(function () {
|
17267 | _this.isActive = false;
|
17268 |
|
17269 | _this.callDeactivate();
|
17270 | });
|
17271 | });
|
17272 | },
|
17273 | nextTile: function nextTile() {
|
17274 | var tile = this.tiles[this.listIndex + 1];
|
17275 |
|
17276 | if (!tile) {
|
17277 | if (!this.tiles.length) return;
|
17278 | this.listIndex = -1;
|
17279 | this.nextTile();
|
17280 | return;
|
17281 | }
|
17282 |
|
17283 | this.listIndex++;
|
17284 | if (tile.tabIndex === -1) this.nextTile();
|
17285 | },
|
17286 | prevTile: function prevTile() {
|
17287 | var tile = this.tiles[this.listIndex - 1];
|
17288 |
|
17289 | if (!tile) {
|
17290 | if (!this.tiles.length) return;
|
17291 | this.listIndex = this.tiles.length;
|
17292 | this.prevTile();
|
17293 | return;
|
17294 | }
|
17295 |
|
17296 | this.listIndex--;
|
17297 | if (tile.tabIndex === -1) this.prevTile();
|
17298 | },
|
17299 | onKeyDown: function onKeyDown(e) {
|
17300 | var _this = this;
|
17301 |
|
17302 | if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_11__["keyCodes"].esc) {
|
17303 |
|
17304 | setTimeout(function () {
|
17305 | _this.isActive = false;
|
17306 | });
|
17307 | var activator_1 = this.getActivator();
|
17308 | this.$nextTick(function () {
|
17309 | return activator_1 && activator_1.focus();
|
17310 | });
|
17311 | } else if (!this.isActive && [_util_helpers__WEBPACK_IMPORTED_MODULE_11__["keyCodes"].up, _util_helpers__WEBPACK_IMPORTED_MODULE_11__["keyCodes"].down].includes(e.keyCode)) {
|
17312 | this.isActive = true;
|
17313 | }
|
17314 |
|
17315 |
|
17316 | this.$nextTick(function () {
|
17317 | return _this.changeListIndex(e);
|
17318 | });
|
17319 | },
|
17320 | onResize: function onResize() {
|
17321 | if (!this.isActive) return;
|
17322 |
|
17323 |
|
17324 |
|
17325 | this.$refs.content.offsetWidth;
|
17326 | this.updateDimensions();
|
17327 |
|
17328 |
|
17329 |
|
17330 |
|
17331 |
|
17332 | clearTimeout(this.resizeTimeout);
|
17333 | this.resizeTimeout = window.setTimeout(this.updateDimensions, 100);
|
17334 | }
|
17335 | },
|
17336 | render: function render(h) {
|
17337 | var data = {
|
17338 | staticClass: 'v-menu',
|
17339 | class: {
|
17340 | 'v-menu--attached': this.attach === '' || this.attach === true || this.attach === 'attach'
|
17341 | },
|
17342 | directives: [{
|
17343 | arg: '500',
|
17344 | name: 'resize',
|
17345 | value: this.onResize
|
17346 | }]
|
17347 | };
|
17348 | return h('div', data, [!this.activator && this.genActivator(), this.$createElement(_util_ThemeProvider__WEBPACK_IMPORTED_MODULE_12__["default"], {
|
17349 | props: {
|
17350 | root: true,
|
17351 | light: this.light,
|
17352 | dark: this.dark
|
17353 | }
|
17354 | }, [this.genTransition()])]);
|
17355 | }
|
17356 | }));
|
17357 |
|
17358 | }),
|
17359 |
|
17360 | "./src/components/VMenu/index.ts":
|
17361 |
|
17362 |
|
17363 |
|
17364 |
|
17365 | (function(module, __webpack_exports__, __webpack_require__) {
|
17366 |
|
17367 | "use strict";
|
17368 | __webpack_require__.r(__webpack_exports__);
|
17369 | var _VMenu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VMenu/VMenu.ts");
|
17370 | __webpack_require__.d(__webpack_exports__, "VMenu", function() { return _VMenu__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
17371 |
|
17372 |
|
17373 |
|
17374 | __webpack_exports__["default"] = (_VMenu__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
17375 |
|
17376 | }),
|
17377 |
|
17378 | "./src/components/VMessages/VMessages.sass":
|
17379 |
|
17380 |
|
17381 |
|
17382 |
|
17383 | (function(module, exports, __webpack_require__) {
|
17384 |
|
17385 |
|
17386 |
|
17387 | }),
|
17388 |
|
17389 | "./src/components/VMessages/VMessages.ts":
|
17390 |
|
17391 |
|
17392 |
|
17393 |
|
17394 | (function(module, __webpack_exports__, __webpack_require__) {
|
17395 |
|
17396 | "use strict";
|
17397 | __webpack_require__.r(__webpack_exports__);
|
17398 | var _VMessages_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VMessages/VMessages.sass");
|
17399 | var _VMessages_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VMessages_sass__WEBPACK_IMPORTED_MODULE_0__);
|
17400 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
17401 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
17402 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
17403 |
|
17404 |
|
17405 |
|
17406 |
|
17407 |
|
17408 |
|
17409 |
|
17410 |
|
17411 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]).extend({
|
17412 | name: 'v-messages',
|
17413 | props: {
|
17414 | value: {
|
17415 | type: Array,
|
17416 | default: function _default() {
|
17417 | return [];
|
17418 | }
|
17419 | }
|
17420 | },
|
17421 | methods: {
|
17422 | genChildren: function genChildren() {
|
17423 | return this.$createElement('transition-group', {
|
17424 | staticClass: 'v-messages__wrapper',
|
17425 | attrs: {
|
17426 | name: 'message-transition',
|
17427 | tag: 'div'
|
17428 | }
|
17429 | }, this.value.map(this.genMessage));
|
17430 | },
|
17431 | genMessage: function genMessage(message, key) {
|
17432 | return this.$createElement('div', {
|
17433 | staticClass: 'v-messages__message',
|
17434 | key: key,
|
17435 | domProps: {
|
17436 | innerHTML: message
|
17437 | }
|
17438 | });
|
17439 | }
|
17440 | },
|
17441 | render: function render(h) {
|
17442 | return h('div', this.setTextColor(this.color, {
|
17443 | staticClass: 'v-messages',
|
17444 | class: this.themeClasses
|
17445 | }), [this.genChildren()]);
|
17446 | }
|
17447 | }));
|
17448 |
|
17449 | }),
|
17450 |
|
17451 | "./src/components/VMessages/index.ts":
|
17452 |
|
17453 |
|
17454 |
|
17455 |
|
17456 | (function(module, __webpack_exports__, __webpack_require__) {
|
17457 |
|
17458 | "use strict";
|
17459 | __webpack_require__.r(__webpack_exports__);
|
17460 | var _VMessages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VMessages/VMessages.ts");
|
17461 | __webpack_require__.d(__webpack_exports__, "VMessages", function() { return _VMessages__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
17462 |
|
17463 |
|
17464 |
|
17465 | __webpack_exports__["default"] = (_VMessages__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
17466 |
|
17467 | }),
|
17468 |
|
17469 | "./src/components/VNavigationDrawer/VNavigationDrawer.sass":
|
17470 |
|
17471 |
|
17472 |
|
17473 |
|
17474 | (function(module, exports, __webpack_require__) {
|
17475 |
|
17476 |
|
17477 |
|
17478 | }),
|
17479 |
|
17480 | "./src/components/VNavigationDrawer/VNavigationDrawer.ts":
|
17481 |
|
17482 |
|
17483 |
|
17484 |
|
17485 | (function(module, __webpack_exports__, __webpack_require__) {
|
17486 |
|
17487 | "use strict";
|
17488 | __webpack_require__.r(__webpack_exports__);
|
17489 | var _VNavigationDrawer_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VNavigationDrawer/VNavigationDrawer.sass");
|
17490 | var _VNavigationDrawer_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VNavigationDrawer_sass__WEBPACK_IMPORTED_MODULE_0__);
|
17491 | var _VImg_VImg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VImg/VImg.ts");
|
17492 | var _mixins_applicationable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/applicationable/index.ts");
|
17493 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
17494 | var _mixins_dependent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/dependent/index.ts");
|
17495 | var _mixins_overlayable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/overlayable/index.ts");
|
17496 | var _mixins_ssr_bootable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/mixins/ssr-bootable/index.ts");
|
17497 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
17498 | var _directives_click_outside__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/directives/click-outside/index.ts");
|
17499 | var _directives_resize__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__( "./src/directives/resize/index.ts");
|
17500 | var _directives_touch__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__( "./src/directives/touch/index.ts");
|
17501 | var _util_helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__( "./src/util/helpers.ts");
|
17502 | var _util_mixins__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__( "./src/util/mixins.ts");
|
17503 | var __assign = undefined && undefined.__assign || function () {
|
17504 | __assign = Object.assign || function (t) {
|
17505 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
17506 | s = arguments[i];
|
17507 |
|
17508 | for (var p in s) {
|
17509 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
17510 | }
|
17511 | }
|
17512 |
|
17513 | return t;
|
17514 | };
|
17515 |
|
17516 | return __assign.apply(this, arguments);
|
17517 | };
|
17518 |
|
17519 |
|
17520 |
|
17521 |
|
17522 |
|
17523 |
|
17524 |
|
17525 |
|
17526 |
|
17527 |
|
17528 |
|
17529 |
|
17530 |
|
17531 |
|
17532 |
|
17533 |
|
17534 |
|
17535 |
|
17536 |
|
17537 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_12__["default"])(Object(_mixins_applicationable__WEBPACK_IMPORTED_MODULE_2__["default"])('left', ['isActive', 'isMobile', 'miniVariant', 'expandOnHover', 'permanent', 'right', 'temporary', 'width']), _mixins_colorable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_dependent__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_overlayable__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_ssr_bootable__WEBPACK_IMPORTED_MODULE_6__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_7__["default"]);
|
17538 |
|
17539 |
|
17540 | __webpack_exports__["default"] = (baseMixins.extend({
|
17541 | name: 'v-navigation-drawer',
|
17542 | provide: function provide() {
|
17543 | return {
|
17544 | isInNav: this.tag === 'nav'
|
17545 | };
|
17546 | },
|
17547 | directives: {
|
17548 | ClickOutside: _directives_click_outside__WEBPACK_IMPORTED_MODULE_8__["default"],
|
17549 | Resize: _directives_resize__WEBPACK_IMPORTED_MODULE_9__["default"],
|
17550 | Touch: _directives_touch__WEBPACK_IMPORTED_MODULE_10__["default"]
|
17551 | },
|
17552 | props: {
|
17553 | bottom: Boolean,
|
17554 | clipped: Boolean,
|
17555 | disableResizeWatcher: Boolean,
|
17556 | disableRouteWatcher: Boolean,
|
17557 | expandOnHover: Boolean,
|
17558 | floating: Boolean,
|
17559 | height: {
|
17560 | type: [Number, String],
|
17561 | default: function _default() {
|
17562 | return this.app ? '100vh' : '100%';
|
17563 | }
|
17564 | },
|
17565 | miniVariant: Boolean,
|
17566 | miniVariantWidth: {
|
17567 | type: [Number, String],
|
17568 | default: 80
|
17569 | },
|
17570 | mobileBreakPoint: {
|
17571 | type: [Number, String],
|
17572 | default: 1264
|
17573 | },
|
17574 | permanent: Boolean,
|
17575 | right: Boolean,
|
17576 | src: {
|
17577 | type: [String, Object],
|
17578 | default: ''
|
17579 | },
|
17580 | stateless: Boolean,
|
17581 | tag: {
|
17582 | type: String,
|
17583 | default: function _default() {
|
17584 | return this.app ? 'nav' : 'aside';
|
17585 | }
|
17586 | },
|
17587 | temporary: Boolean,
|
17588 | touchless: Boolean,
|
17589 | width: {
|
17590 | type: [Number, String],
|
17591 | default: 256
|
17592 | },
|
17593 | value: {
|
17594 | required: false
|
17595 | }
|
17596 | },
|
17597 | data: function data() {
|
17598 | return {
|
17599 | isMouseover: false,
|
17600 | touchArea: {
|
17601 | left: 0,
|
17602 | right: 0
|
17603 | },
|
17604 | stackMinZIndex: 6
|
17605 | };
|
17606 | },
|
17607 | computed: {
|
17608 | |
17609 |
|
17610 |
|
17611 |
|
17612 | applicationProperty: function applicationProperty() {
|
17613 | return this.right ? 'right' : 'left';
|
17614 | },
|
17615 | classes: function classes() {
|
17616 | return __assign({
|
17617 | 'v-navigation-drawer': true,
|
17618 | 'v-navigation-drawer--absolute': this.absolute,
|
17619 | 'v-navigation-drawer--bottom': this.bottom,
|
17620 | 'v-navigation-drawer--clipped': this.clipped,
|
17621 | 'v-navigation-drawer--close': !this.isActive,
|
17622 | 'v-navigation-drawer--fixed': !this.absolute && (this.app || this.fixed),
|
17623 | 'v-navigation-drawer--floating': this.floating,
|
17624 | 'v-navigation-drawer--is-mobile': this.isMobile,
|
17625 | 'v-navigation-drawer--is-mouseover': this.isMouseover,
|
17626 | 'v-navigation-drawer--mini-variant': this.isMiniVariant,
|
17627 | 'v-navigation-drawer--open': this.isActive,
|
17628 | 'v-navigation-drawer--open-on-hover': this.expandOnHover,
|
17629 | 'v-navigation-drawer--right': this.right,
|
17630 | 'v-navigation-drawer--temporary': this.temporary
|
17631 | }, this.themeClasses);
|
17632 | },
|
17633 | computedMaxHeight: function computedMaxHeight() {
|
17634 | if (!this.hasApp) return null;
|
17635 | var computedMaxHeight = this.$vuetify.application.bottom + this.$vuetify.application.footer + this.$vuetify.application.bar;
|
17636 | if (!this.clipped) return computedMaxHeight;
|
17637 | return computedMaxHeight + this.$vuetify.application.top;
|
17638 | },
|
17639 | computedTop: function computedTop() {
|
17640 | if (!this.hasApp) return 0;
|
17641 | var computedTop = this.$vuetify.application.bar;
|
17642 | computedTop += this.clipped ? this.$vuetify.application.top : 0;
|
17643 | return computedTop;
|
17644 | },
|
17645 | computedTransform: function computedTransform() {
|
17646 | if (this.isActive) return 0;
|
17647 | if (this.isBottom) return 100;
|
17648 | return this.right ? 100 : -100;
|
17649 | },
|
17650 | computedWidth: function computedWidth() {
|
17651 | return this.isMiniVariant ? this.miniVariantWidth : this.width;
|
17652 | },
|
17653 | hasApp: function hasApp() {
|
17654 | return this.app && !this.isMobile && !this.temporary;
|
17655 | },
|
17656 | isBottom: function isBottom() {
|
17657 | return this.bottom && this.isMobile;
|
17658 | },
|
17659 | isMiniVariant: function isMiniVariant() {
|
17660 | return !this.expandOnHover && this.miniVariant || this.expandOnHover && !this.isMouseover;
|
17661 | },
|
17662 | isMobile: function isMobile() {
|
17663 | return !this.stateless && !this.permanent && this.$vuetify.breakpoint.width < parseInt(this.mobileBreakPoint, 10);
|
17664 | },
|
17665 | reactsToClick: function reactsToClick() {
|
17666 | return !this.stateless && !this.permanent && (this.isMobile || this.temporary);
|
17667 | },
|
17668 | reactsToMobile: function reactsToMobile() {
|
17669 | return this.app && !this.disableResizeWatcher && !this.permanent && !this.stateless && !this.temporary;
|
17670 | },
|
17671 | reactsToResize: function reactsToResize() {
|
17672 | return !this.disableResizeWatcher && !this.stateless;
|
17673 | },
|
17674 | reactsToRoute: function reactsToRoute() {
|
17675 | return !this.disableRouteWatcher && !this.stateless && (this.temporary || this.isMobile);
|
17676 | },
|
17677 | showOverlay: function showOverlay() {
|
17678 | return this.isActive && (this.isMobile || this.temporary);
|
17679 | },
|
17680 | styles: function styles() {
|
17681 | var translate = this.isBottom ? 'translateY' : 'translateX';
|
17682 | var styles = {
|
17683 | height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_11__["convertToUnit"])(this.height),
|
17684 | top: !this.isBottom ? Object(_util_helpers__WEBPACK_IMPORTED_MODULE_11__["convertToUnit"])(this.computedTop) : 'auto',
|
17685 | maxHeight: this.computedMaxHeight != null ? "calc(100% - " + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_11__["convertToUnit"])(this.computedMaxHeight) + ")" : undefined,
|
17686 | transform: translate + "(" + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_11__["convertToUnit"])(this.computedTransform, '%') + ")",
|
17687 | width: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_11__["convertToUnit"])(this.computedWidth)
|
17688 | };
|
17689 | return styles;
|
17690 | }
|
17691 | },
|
17692 | watch: {
|
17693 | $route: 'onRouteChange',
|
17694 | isActive: function isActive(val) {
|
17695 | this.$emit('input', val);
|
17696 | },
|
17697 |
|
17698 | |
17699 |
|
17700 |
|
17701 |
|
17702 | isMobile: function isMobile(val, prev) {
|
17703 | !val && this.isActive && !this.temporary && this.removeOverlay();
|
17704 | if (prev == null || !this.reactsToResize || !this.reactsToMobile) return;
|
17705 | this.isActive = !val;
|
17706 | },
|
17707 | permanent: function permanent(val) {
|
17708 |
|
17709 | if (val) this.isActive = true;
|
17710 | },
|
17711 | showOverlay: function showOverlay(val) {
|
17712 | if (val) this.genOverlay();else this.removeOverlay();
|
17713 | },
|
17714 | value: function value(val) {
|
17715 | if (this.permanent) return;
|
17716 |
|
17717 | if (val == null) {
|
17718 | this.init();
|
17719 | return;
|
17720 | }
|
17721 |
|
17722 | if (val !== this.isActive) this.isActive = val;
|
17723 | },
|
17724 | expandOnHover: 'updateMiniVariant',
|
17725 | isMouseover: function isMouseover(val) {
|
17726 | this.updateMiniVariant(!val);
|
17727 | }
|
17728 | },
|
17729 | beforeMount: function beforeMount() {
|
17730 | this.init();
|
17731 | },
|
17732 | methods: {
|
17733 | calculateTouchArea: function calculateTouchArea() {
|
17734 | var parent = this.$el.parentNode;
|
17735 | if (!parent) return;
|
17736 | var parentRect = parent.getBoundingClientRect();
|
17737 | this.touchArea = {
|
17738 | left: parentRect.left + 50,
|
17739 | right: parentRect.right - 50
|
17740 | };
|
17741 | },
|
17742 | closeConditional: function closeConditional() {
|
17743 | return this.isActive && !this._isDestroyed && this.reactsToClick;
|
17744 | },
|
17745 | genAppend: function genAppend() {
|
17746 | return this.genPosition('append');
|
17747 | },
|
17748 | genBackground: function genBackground() {
|
17749 | var props = {
|
17750 | height: '100%',
|
17751 | width: '100%',
|
17752 | src: this.src
|
17753 | };
|
17754 | var image = this.$scopedSlots.img ? this.$scopedSlots.img(props) : this.$createElement(_VImg_VImg__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
17755 | props: props
|
17756 | });
|
17757 | return this.$createElement('div', {
|
17758 | staticClass: 'v-navigation-drawer__image'
|
17759 | }, [image]);
|
17760 | },
|
17761 | genDirectives: function genDirectives() {
|
17762 | var _this = this;
|
17763 |
|
17764 | var directives = [{
|
17765 | name: 'click-outside',
|
17766 | value: function value() {
|
17767 | return _this.isActive = false;
|
17768 | },
|
17769 | args: {
|
17770 | closeConditional: this.closeConditional,
|
17771 | include: this.getOpenDependentElements
|
17772 | }
|
17773 | }];
|
17774 |
|
17775 | if (!this.touchless && !this.stateless) {
|
17776 | directives.push({
|
17777 | name: 'touch',
|
17778 | value: {
|
17779 | parent: true,
|
17780 | left: this.swipeLeft,
|
17781 | right: this.swipeRight
|
17782 | }
|
17783 | });
|
17784 | }
|
17785 |
|
17786 | return directives;
|
17787 | },
|
17788 | genListeners: function genListeners() {
|
17789 | var _this = this;
|
17790 |
|
17791 | var on = {
|
17792 | transitionend: function transitionend(e) {
|
17793 | if (e.target !== e.currentTarget) return;
|
17794 |
|
17795 | _this.$emit('transitionend', e);
|
17796 |
|
17797 |
|
17798 | var resizeEvent = document.createEvent('UIEvents');
|
17799 | resizeEvent.initUIEvent('resize', true, false, window, 0);
|
17800 | window.dispatchEvent(resizeEvent);
|
17801 | }
|
17802 | };
|
17803 |
|
17804 | if (this.miniVariant) {
|
17805 | on.click = function () {
|
17806 | return _this.$emit('update:mini-variant', false);
|
17807 | };
|
17808 | }
|
17809 |
|
17810 | if (this.expandOnHover) {
|
17811 | on.mouseenter = function () {
|
17812 | return _this.isMouseover = true;
|
17813 | };
|
17814 |
|
17815 | on.mouseleave = function () {
|
17816 | return _this.isMouseover = false;
|
17817 | };
|
17818 | }
|
17819 |
|
17820 | return on;
|
17821 | },
|
17822 | genPosition: function genPosition(name) {
|
17823 | var slot = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_11__["getSlot"])(this, name);
|
17824 | if (!slot) return slot;
|
17825 | return this.$createElement('div', {
|
17826 | staticClass: "v-navigation-drawer__" + name
|
17827 | }, slot);
|
17828 | },
|
17829 | genPrepend: function genPrepend() {
|
17830 | return this.genPosition('prepend');
|
17831 | },
|
17832 | genContent: function genContent() {
|
17833 | return this.$createElement('div', {
|
17834 | staticClass: 'v-navigation-drawer__content'
|
17835 | }, this.$slots.default);
|
17836 | },
|
17837 | genBorder: function genBorder() {
|
17838 | return this.$createElement('div', {
|
17839 | staticClass: 'v-navigation-drawer__border'
|
17840 | });
|
17841 | },
|
17842 | init: function init() {
|
17843 | if (this.permanent) {
|
17844 | this.isActive = true;
|
17845 | } else if (this.stateless || this.value != null) {
|
17846 | this.isActive = this.value;
|
17847 | } else if (!this.temporary) {
|
17848 | this.isActive = !this.isMobile;
|
17849 | }
|
17850 | },
|
17851 | onRouteChange: function onRouteChange() {
|
17852 | if (this.reactsToRoute && this.closeConditional()) {
|
17853 | this.isActive = false;
|
17854 | }
|
17855 | },
|
17856 | swipeLeft: function swipeLeft(e) {
|
17857 | if (this.isActive && this.right) return;
|
17858 | this.calculateTouchArea();
|
17859 | if (Math.abs(e.touchendX - e.touchstartX) < 100) return;
|
17860 | if (this.right && e.touchstartX >= this.touchArea.right) this.isActive = true;else if (!this.right && this.isActive) this.isActive = false;
|
17861 | },
|
17862 | swipeRight: function swipeRight(e) {
|
17863 | if (this.isActive && !this.right) return;
|
17864 | this.calculateTouchArea();
|
17865 | if (Math.abs(e.touchendX - e.touchstartX) < 100) return;
|
17866 | if (!this.right && e.touchstartX <= this.touchArea.left) this.isActive = true;else if (this.right && this.isActive) this.isActive = false;
|
17867 | },
|
17868 |
|
17869 | |
17870 |
|
17871 |
|
17872 | updateApplication: function updateApplication() {
|
17873 | if (!this.isActive || this.isMobile || this.temporary || !this.$el) return 0;
|
17874 | var width = Number(this.computedWidth);
|
17875 | return isNaN(width) ? this.$el.clientWidth : width;
|
17876 | },
|
17877 | updateMiniVariant: function updateMiniVariant(val) {
|
17878 | if (this.miniVariant !== val) this.$emit('update:mini-variant', val);
|
17879 | }
|
17880 | },
|
17881 | render: function render(h) {
|
17882 | var children = [this.genPrepend(), this.genContent(), this.genAppend(), this.genBorder()];
|
17883 | if (this.src || Object(_util_helpers__WEBPACK_IMPORTED_MODULE_11__["getSlot"])(this, 'img')) children.unshift(this.genBackground());
|
17884 | return h(this.tag, this.setBackgroundColor(this.color, {
|
17885 | class: this.classes,
|
17886 | style: this.styles,
|
17887 | directives: this.genDirectives(),
|
17888 | on: this.genListeners()
|
17889 | }), children);
|
17890 | }
|
17891 | }));
|
17892 |
|
17893 | }),
|
17894 |
|
17895 | "./src/components/VNavigationDrawer/index.ts":
|
17896 |
|
17897 |
|
17898 |
|
17899 |
|
17900 | (function(module, __webpack_exports__, __webpack_require__) {
|
17901 |
|
17902 | "use strict";
|
17903 | __webpack_require__.r(__webpack_exports__);
|
17904 | var _VNavigationDrawer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VNavigationDrawer/VNavigationDrawer.ts");
|
17905 | __webpack_require__.d(__webpack_exports__, "VNavigationDrawer", function() { return _VNavigationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
17906 |
|
17907 |
|
17908 |
|
17909 | __webpack_exports__["default"] = (_VNavigationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
17910 |
|
17911 | }),
|
17912 |
|
17913 | "./src/components/VOverflowBtn/VOverflowBtn.sass":
|
17914 |
|
17915 |
|
17916 |
|
17917 |
|
17918 | (function(module, exports, __webpack_require__) {
|
17919 |
|
17920 |
|
17921 |
|
17922 | }),
|
17923 |
|
17924 | "./src/components/VOverflowBtn/VOverflowBtn.ts":
|
17925 |
|
17926 |
|
17927 |
|
17928 |
|
17929 | (function(module, __webpack_exports__, __webpack_require__) {
|
17930 |
|
17931 | "use strict";
|
17932 | __webpack_require__.r(__webpack_exports__);
|
17933 | var _VOverflowBtn_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VOverflowBtn/VOverflowBtn.sass");
|
17934 | var _VOverflowBtn_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VOverflowBtn_sass__WEBPACK_IMPORTED_MODULE_0__);
|
17935 | var _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VSelect/VSelect.ts");
|
17936 | var _VAutocomplete__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VAutocomplete/index.ts");
|
17937 | var _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VTextField/VTextField.ts");
|
17938 | var _VBtn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VBtn/index.ts");
|
17939 | var _util_console__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/util/console.ts");
|
17940 | var __assign = undefined && undefined.__assign || function () {
|
17941 | __assign = Object.assign || function (t) {
|
17942 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
17943 | s = arguments[i];
|
17944 |
|
17945 | for (var p in s) {
|
17946 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
17947 | }
|
17948 | }
|
17949 |
|
17950 | return t;
|
17951 | };
|
17952 |
|
17953 | return __assign.apply(this, arguments);
|
17954 | };
|
17955 |
|
17956 |
|
17957 |
|
17958 |
|
17959 |
|
17960 |
|
17961 |
|
17962 |
|
17963 |
|
17964 |
|
17965 |
|
17966 |
|
17967 |
|
17968 | __webpack_exports__["default"] = (_VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["default"].extend({
|
17969 | name: 'v-overflow-btn',
|
17970 | props: {
|
17971 | editable: Boolean,
|
17972 | segmented: Boolean
|
17973 | },
|
17974 | computed: {
|
17975 | classes: function classes() {
|
17976 | return __assign({}, _VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["default"].options.computed.classes.call(this), {
|
17977 | 'v-overflow-btn': true,
|
17978 | 'v-overflow-btn--segmented': this.segmented,
|
17979 | 'v-overflow-btn--editable': this.editable
|
17980 | });
|
17981 | },
|
17982 | isAnyValueAllowed: function isAnyValueAllowed() {
|
17983 | return this.editable || _VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["default"].options.computed.isAnyValueAllowed.call(this);
|
17984 | },
|
17985 | isSingle: function isSingle() {
|
17986 | return true;
|
17987 | },
|
17988 | computedItems: function computedItems() {
|
17989 | return this.segmented ? this.allItems : this.filteredItems;
|
17990 | }
|
17991 | },
|
17992 | methods: {
|
17993 | genSelections: function genSelections() {
|
17994 | return this.editable ? _VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.genSelections.call(this) : _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genSelections.call(this);
|
17995 | },
|
17996 | genCommaSelection: function genCommaSelection(item, index, last) {
|
17997 | return this.segmented ? this.genSegmentedBtn(item) : _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genCommaSelection.call(this, item, index, last);
|
17998 | },
|
17999 | genInput: function genInput() {
|
18000 | var input = _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_3__["default"].options.methods.genInput.call(this);
|
18001 | input.data = input.data || {};
|
18002 | input.data.domProps.value = this.editable ? this.internalSearch : '';
|
18003 | input.data.attrs.readonly = !this.isAnyValueAllowed;
|
18004 | return input;
|
18005 | },
|
18006 | genLabel: function genLabel() {
|
18007 | if (this.editable && this.isFocused) return null;
|
18008 | var label = _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_3__["default"].options.methods.genLabel.call(this);
|
18009 | if (!label) return label;
|
18010 | label.data = label.data || {};
|
18011 |
|
18012 | label.data.style = {};
|
18013 | return label;
|
18014 | },
|
18015 | genSegmentedBtn: function genSegmentedBtn(item) {
|
18016 | var _this = this;
|
18017 |
|
18018 | var itemValue = this.getValue(item);
|
18019 | var itemObj = this.computedItems.find(function (i) {
|
18020 | return _this.getValue(i) === itemValue;
|
18021 | }) || item;
|
18022 |
|
18023 | if (!itemObj.text || !itemObj.callback) {
|
18024 | Object(_util_console__WEBPACK_IMPORTED_MODULE_5__["consoleWarn"])('When using \'segmented\' prop without a selection slot, items must contain both a text and callback property', this);
|
18025 | return null;
|
18026 | }
|
18027 |
|
18028 | return this.$createElement(_VBtn__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
18029 | props: {
|
18030 | text: true
|
18031 | },
|
18032 | on: {
|
18033 | click: function click(e) {
|
18034 | e.stopPropagation();
|
18035 | itemObj.callback(e);
|
18036 | }
|
18037 | }
|
18038 | }, [itemObj.text]);
|
18039 | }
|
18040 | }
|
18041 | }));
|
18042 |
|
18043 | }),
|
18044 |
|
18045 | "./src/components/VOverflowBtn/index.ts":
|
18046 |
|
18047 |
|
18048 |
|
18049 |
|
18050 | (function(module, __webpack_exports__, __webpack_require__) {
|
18051 |
|
18052 | "use strict";
|
18053 | __webpack_require__.r(__webpack_exports__);
|
18054 | var _VOverflowBtn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VOverflowBtn/VOverflowBtn.ts");
|
18055 | __webpack_require__.d(__webpack_exports__, "VOverflowBtn", function() { return _VOverflowBtn__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
18056 |
|
18057 |
|
18058 |
|
18059 | __webpack_exports__["default"] = (_VOverflowBtn__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
18060 |
|
18061 | }),
|
18062 |
|
18063 | "./src/components/VOverlay/VOverlay.sass":
|
18064 |
|
18065 |
|
18066 |
|
18067 |
|
18068 | (function(module, exports, __webpack_require__) {
|
18069 |
|
18070 |
|
18071 |
|
18072 | }),
|
18073 |
|
18074 | "./src/components/VOverlay/VOverlay.ts":
|
18075 |
|
18076 |
|
18077 |
|
18078 |
|
18079 | (function(module, __webpack_exports__, __webpack_require__) {
|
18080 |
|
18081 | "use strict";
|
18082 | __webpack_require__.r(__webpack_exports__);
|
18083 | var _VOverlay_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VOverlay/VOverlay.sass");
|
18084 | var _VOverlay_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VOverlay_sass__WEBPACK_IMPORTED_MODULE_0__);
|
18085 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
18086 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
18087 | var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/toggleable/index.ts");
|
18088 | var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/mixins.ts");
|
18089 | var __assign = undefined && undefined.__assign || function () {
|
18090 | __assign = Object.assign || function (t) {
|
18091 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
18092 | s = arguments[i];
|
18093 |
|
18094 | for (var p in s) {
|
18095 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
18096 | }
|
18097 | }
|
18098 |
|
18099 | return t;
|
18100 | };
|
18101 |
|
18102 | return __assign.apply(this, arguments);
|
18103 | };
|
18104 |
|
18105 |
|
18106 |
|
18107 |
|
18108 |
|
18109 |
|
18110 |
|
18111 |
|
18112 |
|
18113 |
|
18114 |
|
18115 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_3__["default"]).extend({
|
18116 | name: 'v-overlay',
|
18117 | props: {
|
18118 | absolute: Boolean,
|
18119 | color: {
|
18120 | type: String,
|
18121 | default: '#212121'
|
18122 | },
|
18123 | dark: {
|
18124 | type: Boolean,
|
18125 | default: true
|
18126 | },
|
18127 | opacity: {
|
18128 | type: [Number, String],
|
18129 | default: 0.46
|
18130 | },
|
18131 | value: {
|
18132 | default: true
|
18133 | },
|
18134 | zIndex: {
|
18135 | type: [Number, String],
|
18136 | default: 5
|
18137 | }
|
18138 | },
|
18139 | computed: {
|
18140 | __scrim: function __scrim() {
|
18141 | var data = this.setBackgroundColor(this.color, {
|
18142 | staticClass: 'v-overlay__scrim',
|
18143 | style: {
|
18144 | opacity: this.computedOpacity
|
18145 | }
|
18146 | });
|
18147 | return this.$createElement('div', data);
|
18148 | },
|
18149 | classes: function classes() {
|
18150 | return __assign({
|
18151 | 'v-overlay--absolute': this.absolute,
|
18152 | 'v-overlay--active': this.isActive
|
18153 | }, this.themeClasses);
|
18154 | },
|
18155 | computedOpacity: function computedOpacity() {
|
18156 | return Number(this.isActive ? this.opacity : 0);
|
18157 | },
|
18158 | styles: function styles() {
|
18159 | return {
|
18160 | zIndex: this.zIndex
|
18161 | };
|
18162 | }
|
18163 | },
|
18164 | methods: {
|
18165 | genContent: function genContent() {
|
18166 | return this.$createElement('div', {
|
18167 | staticClass: 'v-overlay__content'
|
18168 | }, this.$slots.default);
|
18169 | }
|
18170 | },
|
18171 | render: function render(h) {
|
18172 | var children = [this.__scrim];
|
18173 | if (this.isActive) children.push(this.genContent());
|
18174 | return h('div', {
|
18175 | staticClass: 'v-overlay',
|
18176 | class: this.classes,
|
18177 | style: this.styles
|
18178 | }, children);
|
18179 | }
|
18180 | }));
|
18181 |
|
18182 | }),
|
18183 |
|
18184 | "./src/components/VOverlay/index.ts":
|
18185 |
|
18186 |
|
18187 |
|
18188 |
|
18189 | (function(module, __webpack_exports__, __webpack_require__) {
|
18190 |
|
18191 | "use strict";
|
18192 | __webpack_require__.r(__webpack_exports__);
|
18193 | var _VOverlay__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VOverlay/VOverlay.ts");
|
18194 | __webpack_require__.d(__webpack_exports__, "VOverlay", function() { return _VOverlay__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
18195 |
|
18196 |
|
18197 |
|
18198 | __webpack_exports__["default"] = (_VOverlay__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
18199 |
|
18200 | }),
|
18201 |
|
18202 | "./src/components/VPagination/VPagination.sass":
|
18203 |
|
18204 |
|
18205 |
|
18206 |
|
18207 | (function(module, exports, __webpack_require__) {
|
18208 |
|
18209 |
|
18210 |
|
18211 | }),
|
18212 |
|
18213 | "./src/components/VPagination/VPagination.ts":
|
18214 |
|
18215 |
|
18216 |
|
18217 |
|
18218 | (function(module, __webpack_exports__, __webpack_require__) {
|
18219 |
|
18220 | "use strict";
|
18221 | __webpack_require__.r(__webpack_exports__);
|
18222 | var _VPagination_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VPagination/VPagination.sass");
|
18223 | var _VPagination_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VPagination_sass__WEBPACK_IMPORTED_MODULE_0__);
|
18224 | var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
18225 | var _directives_resize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/directives/resize/index.ts");
|
18226 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
18227 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
18228 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
18229 | var __assign = undefined && undefined.__assign || function () {
|
18230 | __assign = Object.assign || function (t) {
|
18231 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
18232 | s = arguments[i];
|
18233 |
|
18234 | for (var p in s) {
|
18235 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
18236 | }
|
18237 | }
|
18238 |
|
18239 | return t;
|
18240 | };
|
18241 |
|
18242 | return __assign.apply(this, arguments);
|
18243 | };
|
18244 |
|
18245 | var __read = undefined && undefined.__read || function (o, n) {
|
18246 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
18247 | if (!m) return o;
|
18248 | var i = m.call(o),
|
18249 | r,
|
18250 | ar = [],
|
18251 | e;
|
18252 |
|
18253 | try {
|
18254 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
18255 | ar.push(r.value);
|
18256 | }
|
18257 | } catch (error) {
|
18258 | e = {
|
18259 | error: error
|
18260 | };
|
18261 | } finally {
|
18262 | try {
|
18263 | if (r && !r.done && (m = i["return"])) m.call(i);
|
18264 | } finally {
|
18265 | if (e) throw e.error;
|
18266 | }
|
18267 | }
|
18268 |
|
18269 | return ar;
|
18270 | };
|
18271 |
|
18272 | var __spread = undefined && undefined.__spread || function () {
|
18273 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
18274 | ar = ar.concat(__read(arguments[i]));
|
18275 | }
|
18276 |
|
18277 | return ar;
|
18278 | };
|
18279 |
|
18280 |
|
18281 |
|
18282 |
|
18283 |
|
18284 |
|
18285 |
|
18286 |
|
18287 |
|
18288 |
|
18289 |
|
18290 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__["default"]).extend({
|
18291 | name: 'v-pagination',
|
18292 | directives: {
|
18293 | Resize: _directives_resize__WEBPACK_IMPORTED_MODULE_2__["default"]
|
18294 | },
|
18295 | props: {
|
18296 | circle: Boolean,
|
18297 | disabled: Boolean,
|
18298 | length: {
|
18299 | type: Number,
|
18300 | default: 0,
|
18301 | validator: function validator(val) {
|
18302 | return val % 1 === 0;
|
18303 | }
|
18304 | },
|
18305 | nextIcon: {
|
18306 | type: String,
|
18307 | default: '$next'
|
18308 | },
|
18309 | prevIcon: {
|
18310 | type: String,
|
18311 | default: '$prev'
|
18312 | },
|
18313 | totalVisible: [Number, String],
|
18314 | value: {
|
18315 | type: Number,
|
18316 | default: 0
|
18317 | }
|
18318 | },
|
18319 | data: function data() {
|
18320 | return {
|
18321 | maxButtons: 0,
|
18322 | selected: null
|
18323 | };
|
18324 | },
|
18325 | computed: {
|
18326 | classes: function classes() {
|
18327 | return __assign({
|
18328 | 'v-pagination': true,
|
18329 | 'v-pagination--circle': this.circle,
|
18330 | 'v-pagination--disabled': this.disabled
|
18331 | }, this.themeClasses);
|
18332 | },
|
18333 | items: function items() {
|
18334 | var totalVisible = parseInt(this.totalVisible, 10);
|
18335 | var maxLength = totalVisible > this.maxButtons ? this.maxButtons : totalVisible || this.maxButtons;
|
18336 |
|
18337 | if (this.length <= maxLength || maxLength < 1) {
|
18338 | return this.range(1, this.length);
|
18339 | }
|
18340 |
|
18341 | var even = maxLength % 2 === 0 ? 1 : 0;
|
18342 | var left = Math.floor(maxLength / 2);
|
18343 | var right = this.length - left + 1 + even;
|
18344 |
|
18345 | if (this.value > left && this.value < right) {
|
18346 | var start = this.value - left + 2;
|
18347 | var end = this.value + left - 2 - even;
|
18348 | return __spread([1, '...'], this.range(start, end), ['...', this.length]);
|
18349 | } else if (this.value === left) {
|
18350 | var end = this.value + left - 1 - even;
|
18351 | return __spread(this.range(1, end), ['...', this.length]);
|
18352 | } else if (this.value === right) {
|
18353 | var start = this.value - left + 1;
|
18354 | return __spread([1, '...'], this.range(start, this.length));
|
18355 | } else {
|
18356 | return __spread(this.range(1, left), ['...'], this.range(right, this.length));
|
18357 | }
|
18358 | }
|
18359 | },
|
18360 | watch: {
|
18361 | value: function value() {
|
18362 | this.init();
|
18363 | }
|
18364 | },
|
18365 | mounted: function mounted() {
|
18366 | this.init();
|
18367 | },
|
18368 | methods: {
|
18369 | init: function init() {
|
18370 | var _this = this;
|
18371 |
|
18372 | this.selected = null;
|
18373 | this.$nextTick(this.onResize);
|
18374 |
|
18375 | setTimeout(function () {
|
18376 | return _this.selected = _this.value;
|
18377 | }, 100);
|
18378 | },
|
18379 | onResize: function onResize() {
|
18380 | var width = this.$el && this.$el.parentElement ? this.$el.parentElement.clientWidth : window.innerWidth;
|
18381 | this.maxButtons = Math.floor((width - 96) / 42);
|
18382 | },
|
18383 | next: function next(e) {
|
18384 | e.preventDefault();
|
18385 | this.$emit('input', this.value + 1);
|
18386 | this.$emit('next');
|
18387 | },
|
18388 | previous: function previous(e) {
|
18389 | e.preventDefault();
|
18390 | this.$emit('input', this.value - 1);
|
18391 | this.$emit('previous');
|
18392 | },
|
18393 | range: function range(from, to) {
|
18394 | var range = [];
|
18395 | from = from > 0 ? from : 1;
|
18396 |
|
18397 | for (var i = from; i <= to; i++) {
|
18398 | range.push(i);
|
18399 | }
|
18400 |
|
18401 | return range;
|
18402 | },
|
18403 | genIcon: function genIcon(h, icon, disabled, fn) {
|
18404 | return h('li', [h('button', {
|
18405 | staticClass: 'v-pagination__navigation',
|
18406 | class: {
|
18407 | 'v-pagination__navigation--disabled': disabled
|
18408 | },
|
18409 | attrs: {
|
18410 | type: 'button'
|
18411 | },
|
18412 | on: disabled ? {} : {
|
18413 | click: fn
|
18414 | }
|
18415 | }, [h(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], [icon])])]);
|
18416 | },
|
18417 | genItem: function genItem(h, i) {
|
18418 | var _this = this;
|
18419 |
|
18420 | var color = i === this.value && (this.color || 'primary');
|
18421 | return h('button', this.setBackgroundColor(color, {
|
18422 | staticClass: 'v-pagination__item',
|
18423 | class: {
|
18424 | 'v-pagination__item--active': i === this.value
|
18425 | },
|
18426 | attrs: {
|
18427 | type: 'button'
|
18428 | },
|
18429 | on: {
|
18430 | click: function click() {
|
18431 | return _this.$emit('input', i);
|
18432 | }
|
18433 | }
|
18434 | }), [i.toString()]);
|
18435 | },
|
18436 | genItems: function genItems(h) {
|
18437 | var _this = this;
|
18438 |
|
18439 | return this.items.map(function (i, index) {
|
18440 | return h('li', {
|
18441 | key: index
|
18442 | }, [isNaN(Number(i)) ? h('span', {
|
18443 | class: 'v-pagination__more'
|
18444 | }, [i.toString()]) : _this.genItem(h, i)]);
|
18445 | });
|
18446 | }
|
18447 | },
|
18448 | render: function render(h) {
|
18449 | var children = [this.genIcon(h, this.$vuetify.rtl ? this.nextIcon : this.prevIcon, this.value <= 1, this.previous), this.genItems(h), this.genIcon(h, this.$vuetify.rtl ? this.prevIcon : this.nextIcon, this.value >= this.length, this.next)];
|
18450 | return h('ul', {
|
18451 | directives: [{
|
18452 | modifiers: {
|
18453 | quiet: true
|
18454 | },
|
18455 | name: 'resize',
|
18456 | value: this.onResize
|
18457 | }],
|
18458 | class: this.classes
|
18459 | }, children);
|
18460 | }
|
18461 | }));
|
18462 |
|
18463 | }),
|
18464 |
|
18465 | "./src/components/VPagination/index.ts":
|
18466 |
|
18467 |
|
18468 |
|
18469 |
|
18470 | (function(module, __webpack_exports__, __webpack_require__) {
|
18471 |
|
18472 | "use strict";
|
18473 | __webpack_require__.r(__webpack_exports__);
|
18474 | var _VPagination__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VPagination/VPagination.ts");
|
18475 | __webpack_require__.d(__webpack_exports__, "VPagination", function() { return _VPagination__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
18476 |
|
18477 |
|
18478 |
|
18479 | __webpack_exports__["default"] = (_VPagination__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
18480 |
|
18481 | }),
|
18482 |
|
18483 | "./src/components/VParallax/VParallax.sass":
|
18484 |
|
18485 |
|
18486 |
|
18487 |
|
18488 | (function(module, exports, __webpack_require__) {
|
18489 |
|
18490 |
|
18491 |
|
18492 | }),
|
18493 |
|
18494 | "./src/components/VParallax/VParallax.ts":
|
18495 |
|
18496 |
|
18497 |
|
18498 |
|
18499 | (function(module, __webpack_exports__, __webpack_require__) {
|
18500 |
|
18501 | "use strict";
|
18502 | __webpack_require__.r(__webpack_exports__);
|
18503 | var _VParallax_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VParallax/VParallax.sass");
|
18504 | var _VParallax_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VParallax_sass__WEBPACK_IMPORTED_MODULE_0__);
|
18505 | var _mixins_translatable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/translatable/index.ts");
|
18506 | var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/mixins.ts");
|
18507 |
|
18508 |
|
18509 |
|
18510 |
|
18511 |
|
18512 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_mixins_translatable__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
18513 |
|
18514 |
|
18515 | __webpack_exports__["default"] = (baseMixins.extend().extend({
|
18516 | name: 'v-parallax',
|
18517 | props: {
|
18518 | alt: {
|
18519 | type: String,
|
18520 | default: ''
|
18521 | },
|
18522 | height: {
|
18523 | type: [String, Number],
|
18524 | default: 500
|
18525 | },
|
18526 | src: String
|
18527 | },
|
18528 | data: function data() {
|
18529 | return {
|
18530 | isBooted: false
|
18531 | };
|
18532 | },
|
18533 | computed: {
|
18534 | styles: function styles() {
|
18535 | return {
|
18536 | display: 'block',
|
18537 | opacity: this.isBooted ? 1 : 0,
|
18538 | transform: "translate(-50%, " + this.parallax + "px)"
|
18539 | };
|
18540 | }
|
18541 | },
|
18542 | mounted: function mounted() {
|
18543 | this.init();
|
18544 | },
|
18545 | methods: {
|
18546 | init: function init() {
|
18547 | var _this = this;
|
18548 |
|
18549 | var img = this.$refs.img;
|
18550 | if (!img) return;
|
18551 |
|
18552 | if (img.complete) {
|
18553 | this.translate();
|
18554 | this.listeners();
|
18555 | } else {
|
18556 | img.addEventListener('load', function () {
|
18557 | _this.translate();
|
18558 |
|
18559 | _this.listeners();
|
18560 | }, false);
|
18561 | }
|
18562 |
|
18563 | this.isBooted = true;
|
18564 | },
|
18565 | objHeight: function objHeight() {
|
18566 | return this.$refs.img.naturalHeight;
|
18567 | }
|
18568 | },
|
18569 | render: function render(h) {
|
18570 | var imgData = {
|
18571 | staticClass: 'v-parallax__image',
|
18572 | style: this.styles,
|
18573 | attrs: {
|
18574 | src: this.src,
|
18575 | alt: this.alt
|
18576 | },
|
18577 | ref: 'img'
|
18578 | };
|
18579 | var container = h('div', {
|
18580 | staticClass: 'v-parallax__image-container'
|
18581 | }, [h('img', imgData)]);
|
18582 | var content = h('div', {
|
18583 | staticClass: 'v-parallax__content'
|
18584 | }, this.$slots.default);
|
18585 | return h('div', {
|
18586 | staticClass: 'v-parallax',
|
18587 | style: {
|
18588 | height: this.height + "px"
|
18589 | },
|
18590 | on: this.$listeners
|
18591 | }, [container, content]);
|
18592 | }
|
18593 | }));
|
18594 |
|
18595 | }),
|
18596 |
|
18597 | "./src/components/VParallax/index.ts":
|
18598 |
|
18599 |
|
18600 |
|
18601 |
|
18602 | (function(module, __webpack_exports__, __webpack_require__) {
|
18603 |
|
18604 | "use strict";
|
18605 | __webpack_require__.r(__webpack_exports__);
|
18606 | var _VParallax__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VParallax/VParallax.ts");
|
18607 | __webpack_require__.d(__webpack_exports__, "VParallax", function() { return _VParallax__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
18608 |
|
18609 |
|
18610 |
|
18611 | __webpack_exports__["default"] = (_VParallax__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
18612 |
|
18613 | }),
|
18614 |
|
18615 | "./src/components/VPicker/VPicker.sass":
|
18616 |
|
18617 |
|
18618 |
|
18619 |
|
18620 | (function(module, exports, __webpack_require__) {
|
18621 |
|
18622 |
|
18623 |
|
18624 | }),
|
18625 |
|
18626 | "./src/components/VPicker/VPicker.ts":
|
18627 |
|
18628 |
|
18629 |
|
18630 |
|
18631 | (function(module, __webpack_exports__, __webpack_require__) {
|
18632 |
|
18633 | "use strict";
|
18634 | __webpack_require__.r(__webpack_exports__);
|
18635 | var _VPicker_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VPicker/VPicker.sass");
|
18636 | var _VPicker_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VPicker_sass__WEBPACK_IMPORTED_MODULE_0__);
|
18637 | var _VCard_VCard_sass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VCard/VCard.sass");
|
18638 | var _VCard_VCard_sass__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(_VCard_VCard_sass__WEBPACK_IMPORTED_MODULE_1__);
|
18639 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
18640 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
18641 | var _util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/helpers.ts");
|
18642 | var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/util/mixins.ts");
|
18643 | var __assign = undefined && undefined.__assign || function () {
|
18644 | __assign = Object.assign || function (t) {
|
18645 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
18646 | s = arguments[i];
|
18647 |
|
18648 | for (var p in s) {
|
18649 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
18650 | }
|
18651 | }
|
18652 |
|
18653 | return t;
|
18654 | };
|
18655 |
|
18656 | return __assign.apply(this, arguments);
|
18657 | };
|
18658 |
|
18659 |
|
18660 |
|
18661 |
|
18662 |
|
18663 |
|
18664 |
|
18665 |
|
18666 |
|
18667 |
|
18668 |
|
18669 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__["default"]).extend({
|
18670 | name: 'v-picker',
|
18671 | props: {
|
18672 | fullWidth: Boolean,
|
18673 | landscape: Boolean,
|
18674 | noTitle: Boolean,
|
18675 | transition: {
|
18676 | type: String,
|
18677 | default: 'fade-transition'
|
18678 | },
|
18679 | width: {
|
18680 | type: [Number, String],
|
18681 | default: 290
|
18682 | }
|
18683 | },
|
18684 | computed: {
|
18685 | computedTitleColor: function computedTitleColor() {
|
18686 | var defaultTitleColor = this.isDark ? false : this.color || 'primary';
|
18687 | return this.color || defaultTitleColor;
|
18688 | }
|
18689 | },
|
18690 | methods: {
|
18691 | genTitle: function genTitle() {
|
18692 | return this.$createElement('div', this.setBackgroundColor(this.computedTitleColor, {
|
18693 | staticClass: 'v-picker__title',
|
18694 | class: {
|
18695 | 'v-picker__title--landscape': this.landscape
|
18696 | }
|
18697 | }), this.$slots.title);
|
18698 | },
|
18699 | genBodyTransition: function genBodyTransition() {
|
18700 | return this.$createElement('transition', {
|
18701 | props: {
|
18702 | name: this.transition
|
18703 | }
|
18704 | }, this.$slots.default);
|
18705 | },
|
18706 | genBody: function genBody() {
|
18707 | return this.$createElement('div', {
|
18708 | staticClass: 'v-picker__body',
|
18709 | class: __assign({
|
18710 | 'v-picker__body--no-title': this.noTitle
|
18711 | }, this.themeClasses),
|
18712 | style: this.fullWidth ? undefined : {
|
18713 | width: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["convertToUnit"])(this.width)
|
18714 | }
|
18715 | }, [this.genBodyTransition()]);
|
18716 | },
|
18717 | genActions: function genActions() {
|
18718 | return this.$createElement('div', {
|
18719 | staticClass: 'v-picker__actions v-card__actions',
|
18720 | class: {
|
18721 | 'v-picker__actions--no-title': this.noTitle
|
18722 | }
|
18723 | }, this.$slots.actions);
|
18724 | }
|
18725 | },
|
18726 | render: function render(h) {
|
18727 | return h('div', {
|
18728 | staticClass: 'v-picker v-card',
|
18729 | class: __assign({
|
18730 | 'v-picker--landscape': this.landscape,
|
18731 | 'v-picker--full-width': this.fullWidth
|
18732 | }, this.themeClasses)
|
18733 | }, [this.$slots.title ? this.genTitle() : null, this.genBody(), this.$slots.actions ? this.genActions() : null]);
|
18734 | }
|
18735 | }));
|
18736 |
|
18737 | }),
|
18738 |
|
18739 | "./src/components/VPicker/index.ts":
|
18740 |
|
18741 |
|
18742 |
|
18743 |
|
18744 | (function(module, __webpack_exports__, __webpack_require__) {
|
18745 |
|
18746 | "use strict";
|
18747 | __webpack_require__.r(__webpack_exports__);
|
18748 | var _VPicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VPicker/VPicker.ts");
|
18749 | __webpack_require__.d(__webpack_exports__, "VPicker", function() { return _VPicker__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
18750 |
|
18751 |
|
18752 |
|
18753 | __webpack_exports__["default"] = (_VPicker__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
18754 |
|
18755 | }),
|
18756 |
|
18757 | "./src/components/VProgressCircular/VProgressCircular.sass":
|
18758 |
|
18759 |
|
18760 |
|
18761 |
|
18762 | (function(module, exports, __webpack_require__) {
|
18763 |
|
18764 |
|
18765 |
|
18766 | }),
|
18767 |
|
18768 | "./src/components/VProgressCircular/VProgressCircular.ts":
|
18769 |
|
18770 |
|
18771 |
|
18772 |
|
18773 | (function(module, __webpack_exports__, __webpack_require__) {
|
18774 |
|
18775 | "use strict";
|
18776 | __webpack_require__.r(__webpack_exports__);
|
18777 | var _VProgressCircular_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VProgressCircular/VProgressCircular.sass");
|
18778 | var _VProgressCircular_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VProgressCircular_sass__WEBPACK_IMPORTED_MODULE_0__);
|
18779 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
18780 | var _util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/helpers.ts");
|
18781 |
|
18782 |
|
18783 |
|
18784 |
|
18785 |
|
18786 |
|
18787 |
|
18788 |
|
18789 | __webpack_exports__["default"] = (_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"].extend({
|
18790 | name: 'v-progress-circular',
|
18791 | props: {
|
18792 | button: Boolean,
|
18793 | indeterminate: Boolean,
|
18794 | rotate: {
|
18795 | type: [Number, String],
|
18796 | default: 0
|
18797 | },
|
18798 | size: {
|
18799 | type: [Number, String],
|
18800 | default: 32
|
18801 | },
|
18802 | width: {
|
18803 | type: [Number, String],
|
18804 | default: 4
|
18805 | },
|
18806 | value: {
|
18807 | type: [Number, String],
|
18808 | default: 0
|
18809 | }
|
18810 | },
|
18811 | data: function data() {
|
18812 | return {
|
18813 | radius: 20
|
18814 | };
|
18815 | },
|
18816 | computed: {
|
18817 | calculatedSize: function calculatedSize() {
|
18818 | return Number(this.size) + (this.button ? 8 : 0);
|
18819 | },
|
18820 | circumference: function circumference() {
|
18821 | return 2 * Math.PI * this.radius;
|
18822 | },
|
18823 | classes: function classes() {
|
18824 | return {
|
18825 | 'v-progress-circular--indeterminate': this.indeterminate,
|
18826 | 'v-progress-circular--button': this.button
|
18827 | };
|
18828 | },
|
18829 | normalizedValue: function normalizedValue() {
|
18830 | if (this.value < 0) {
|
18831 | return 0;
|
18832 | }
|
18833 |
|
18834 | if (this.value > 100) {
|
18835 | return 100;
|
18836 | }
|
18837 |
|
18838 | return parseFloat(this.value);
|
18839 | },
|
18840 | strokeDashArray: function strokeDashArray() {
|
18841 | return Math.round(this.circumference * 1000) / 1000;
|
18842 | },
|
18843 | strokeDashOffset: function strokeDashOffset() {
|
18844 | return (100 - this.normalizedValue) / 100 * this.circumference + 'px';
|
18845 | },
|
18846 | strokeWidth: function strokeWidth() {
|
18847 | return Number(this.width) / +this.size * this.viewBoxSize * 2;
|
18848 | },
|
18849 | styles: function styles() {
|
18850 | return {
|
18851 | height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["convertToUnit"])(this.calculatedSize),
|
18852 | width: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["convertToUnit"])(this.calculatedSize)
|
18853 | };
|
18854 | },
|
18855 | svgStyles: function svgStyles() {
|
18856 | return {
|
18857 | transform: "rotate(" + Number(this.rotate) + "deg)"
|
18858 | };
|
18859 | },
|
18860 | viewBoxSize: function viewBoxSize() {
|
18861 | return this.radius / (1 - Number(this.width) / +this.size);
|
18862 | }
|
18863 | },
|
18864 | methods: {
|
18865 | genCircle: function genCircle(name, offset) {
|
18866 | return this.$createElement('circle', {
|
18867 | class: "v-progress-circular__" + name,
|
18868 | attrs: {
|
18869 | fill: 'transparent',
|
18870 | cx: 2 * this.viewBoxSize,
|
18871 | cy: 2 * this.viewBoxSize,
|
18872 | r: this.radius,
|
18873 | 'stroke-width': this.strokeWidth,
|
18874 | 'stroke-dasharray': this.strokeDashArray,
|
18875 | 'stroke-dashoffset': offset
|
18876 | }
|
18877 | });
|
18878 | },
|
18879 | genSvg: function genSvg() {
|
18880 | var children = [this.indeterminate || this.genCircle('underlay', 0), this.genCircle('overlay', this.strokeDashOffset)];
|
18881 | return this.$createElement('svg', {
|
18882 | style: this.svgStyles,
|
18883 | attrs: {
|
18884 | xmlns: 'http://www.w3.org/2000/svg',
|
18885 | viewBox: this.viewBoxSize + " " + this.viewBoxSize + " " + 2 * this.viewBoxSize + " " + 2 * this.viewBoxSize
|
18886 | }
|
18887 | }, children);
|
18888 | },
|
18889 | genInfo: function genInfo() {
|
18890 | return this.$createElement('div', {
|
18891 | staticClass: 'v-progress-circular__info'
|
18892 | }, this.$slots.default);
|
18893 | }
|
18894 | },
|
18895 | render: function render(h) {
|
18896 | return h('div', this.setTextColor(this.color, {
|
18897 | staticClass: 'v-progress-circular',
|
18898 | attrs: {
|
18899 | role: 'progressbar',
|
18900 | 'aria-valuemin': 0,
|
18901 | 'aria-valuemax': 100,
|
18902 | 'aria-valuenow': this.indeterminate ? undefined : this.normalizedValue
|
18903 | },
|
18904 | class: this.classes,
|
18905 | style: this.styles,
|
18906 | on: this.$listeners
|
18907 | }), [this.genSvg(), this.genInfo()]);
|
18908 | }
|
18909 | }));
|
18910 |
|
18911 | }),
|
18912 |
|
18913 | "./src/components/VProgressCircular/index.ts":
|
18914 |
|
18915 |
|
18916 |
|
18917 |
|
18918 | (function(module, __webpack_exports__, __webpack_require__) {
|
18919 |
|
18920 | "use strict";
|
18921 | __webpack_require__.r(__webpack_exports__);
|
18922 | var _VProgressCircular__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VProgressCircular/VProgressCircular.ts");
|
18923 | __webpack_require__.d(__webpack_exports__, "VProgressCircular", function() { return _VProgressCircular__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
18924 |
|
18925 |
|
18926 |
|
18927 | __webpack_exports__["default"] = (_VProgressCircular__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
18928 |
|
18929 | }),
|
18930 |
|
18931 | "./src/components/VProgressLinear/VProgressLinear.sass":
|
18932 |
|
18933 |
|
18934 |
|
18935 |
|
18936 | (function(module, exports, __webpack_require__) {
|
18937 |
|
18938 |
|
18939 |
|
18940 | }),
|
18941 |
|
18942 | "./src/components/VProgressLinear/VProgressLinear.ts":
|
18943 |
|
18944 |
|
18945 |
|
18946 |
|
18947 | (function(module, __webpack_exports__, __webpack_require__) {
|
18948 |
|
18949 | "use strict";
|
18950 | __webpack_require__.r(__webpack_exports__);
|
18951 | var _VProgressLinear_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VProgressLinear/VProgressLinear.sass");
|
18952 | var _VProgressLinear_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VProgressLinear_sass__WEBPACK_IMPORTED_MODULE_0__);
|
18953 | var _transitions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/transitions/index.ts");
|
18954 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
18955 | var _mixins_positionable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/positionable/index.ts");
|
18956 | var _mixins_proxyable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/proxyable/index.ts");
|
18957 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
18958 | var _util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/util/helpers.ts");
|
18959 | var _util_mixins__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/util/mixins.ts");
|
18960 | var __assign = undefined && undefined.__assign || function () {
|
18961 | __assign = Object.assign || function (t) {
|
18962 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
18963 | s = arguments[i];
|
18964 |
|
18965 | for (var p in s) {
|
18966 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
18967 | }
|
18968 | }
|
18969 |
|
18970 | return t;
|
18971 | };
|
18972 |
|
18973 | return __assign.apply(this, arguments);
|
18974 | };
|
18975 |
|
18976 |
|
18977 |
|
18978 |
|
18979 |
|
18980 |
|
18981 |
|
18982 |
|
18983 |
|
18984 |
|
18985 |
|
18986 |
|
18987 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"], Object(_mixins_positionable__WEBPACK_IMPORTED_MODULE_3__["factory"])(['absolute', 'fixed', 'top', 'bottom']), _mixins_proxyable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__["default"]);
|
18988 |
|
18989 |
|
18990 | __webpack_exports__["default"] = (baseMixins.extend({
|
18991 | name: 'v-progress-linear',
|
18992 | props: {
|
18993 | active: {
|
18994 | type: Boolean,
|
18995 | default: true
|
18996 | },
|
18997 | backgroundColor: {
|
18998 | type: String,
|
18999 | default: null
|
19000 | },
|
19001 | backgroundOpacity: {
|
19002 | type: [Number, String],
|
19003 | default: null
|
19004 | },
|
19005 | bufferValue: {
|
19006 | type: [Number, String],
|
19007 | default: 100
|
19008 | },
|
19009 | color: {
|
19010 | type: String,
|
19011 | default: 'primary'
|
19012 | },
|
19013 | height: {
|
19014 | type: [Number, String],
|
19015 | default: 4
|
19016 | },
|
19017 | indeterminate: Boolean,
|
19018 | query: Boolean,
|
19019 | rounded: Boolean,
|
19020 | stream: Boolean,
|
19021 | striped: Boolean,
|
19022 | value: {
|
19023 | type: [Number, String],
|
19024 | default: 0
|
19025 | }
|
19026 | },
|
19027 | data: function data() {
|
19028 | return {
|
19029 | internalLazyValue: this.value || 0
|
19030 | };
|
19031 | },
|
19032 | computed: {
|
19033 | __cachedBackground: function __cachedBackground() {
|
19034 | return this.$createElement('div', this.setBackgroundColor(this.backgroundColor || this.color, {
|
19035 | staticClass: 'v-progress-linear__background',
|
19036 | style: this.backgroundStyle
|
19037 | }));
|
19038 | },
|
19039 | __cachedBar: function __cachedBar() {
|
19040 | return this.$createElement(this.computedTransition, [this.__cachedBarType]);
|
19041 | },
|
19042 | __cachedBarType: function __cachedBarType() {
|
19043 | return this.indeterminate ? this.__cachedIndeterminate : this.__cachedDeterminate;
|
19044 | },
|
19045 | __cachedBuffer: function __cachedBuffer() {
|
19046 | return this.$createElement('div', {
|
19047 | staticClass: 'v-progress-linear__buffer',
|
19048 | style: this.styles
|
19049 | });
|
19050 | },
|
19051 | __cachedDeterminate: function __cachedDeterminate() {
|
19052 | return this.$createElement('div', this.setBackgroundColor(this.color, {
|
19053 | staticClass: "v-progress-linear__determinate",
|
19054 | style: {
|
19055 | width: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["convertToUnit"])(this.normalizedValue, '%')
|
19056 | }
|
19057 | }));
|
19058 | },
|
19059 | __cachedIndeterminate: function __cachedIndeterminate() {
|
19060 | return this.$createElement('div', {
|
19061 | staticClass: 'v-progress-linear__indeterminate',
|
19062 | class: {
|
19063 | 'v-progress-linear__indeterminate--active': this.active
|
19064 | }
|
19065 | }, [this.genProgressBar('long'), this.genProgressBar('short')]);
|
19066 | },
|
19067 | __cachedStream: function __cachedStream() {
|
19068 | if (!this.stream) return null;
|
19069 | return this.$createElement('div', this.setTextColor(this.color, {
|
19070 | staticClass: 'v-progress-linear__stream',
|
19071 | style: {
|
19072 | width: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["convertToUnit"])(100 - this.normalizedBuffer, '%')
|
19073 | }
|
19074 | }));
|
19075 | },
|
19076 | backgroundStyle: function backgroundStyle() {
|
19077 | var _a;
|
19078 |
|
19079 | var backgroundOpacity = this.backgroundOpacity == null ? this.backgroundColor ? 1 : 0.3 : parseFloat(this.backgroundOpacity);
|
19080 | return _a = {
|
19081 | opacity: backgroundOpacity
|
19082 | }, _a[this.$vuetify.rtl ? 'right' : 'left'] = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["convertToUnit"])(this.normalizedValue, '%'), _a.width = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["convertToUnit"])(this.normalizedBuffer - this.normalizedValue, '%'), _a;
|
19083 | },
|
19084 | classes: function classes() {
|
19085 | return __assign({
|
19086 | 'v-progress-linear--absolute': this.absolute,
|
19087 | 'v-progress-linear--fixed': this.fixed,
|
19088 | 'v-progress-linear--query': this.query,
|
19089 | 'v-progress-linear--reactive': this.reactive,
|
19090 | 'v-progress-linear--rounded': this.rounded,
|
19091 | 'v-progress-linear--striped': this.striped
|
19092 | }, this.themeClasses);
|
19093 | },
|
19094 | computedTransition: function computedTransition() {
|
19095 | return this.indeterminate ? _transitions__WEBPACK_IMPORTED_MODULE_1__["VFadeTransition"] : _transitions__WEBPACK_IMPORTED_MODULE_1__["VSlideXTransition"];
|
19096 | },
|
19097 | normalizedBuffer: function normalizedBuffer() {
|
19098 | return this.normalize(this.bufferValue);
|
19099 | },
|
19100 | normalizedValue: function normalizedValue() {
|
19101 | return this.normalize(this.internalLazyValue);
|
19102 | },
|
19103 | reactive: function reactive() {
|
19104 | return Boolean(this.$listeners.change);
|
19105 | },
|
19106 | styles: function styles() {
|
19107 | var styles = {};
|
19108 |
|
19109 | if (!this.active) {
|
19110 | styles.height = 0;
|
19111 | }
|
19112 |
|
19113 | if (!this.indeterminate && parseFloat(this.normalizedBuffer) !== 100) {
|
19114 | styles.width = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["convertToUnit"])(this.normalizedBuffer, '%');
|
19115 | }
|
19116 |
|
19117 | return styles;
|
19118 | }
|
19119 | },
|
19120 | methods: {
|
19121 | genContent: function genContent() {
|
19122 | var slot = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["getSlot"])(this, 'default', {
|
19123 | value: this.internalLazyValue
|
19124 | });
|
19125 | if (!slot) return null;
|
19126 | return this.$createElement('div', {
|
19127 | staticClass: 'v-progress-linear__content'
|
19128 | }, slot);
|
19129 | },
|
19130 | genListeners: function genListeners() {
|
19131 | var listeners = this.$listeners;
|
19132 |
|
19133 | if (this.reactive) {
|
19134 | listeners.click = this.onClick;
|
19135 | }
|
19136 |
|
19137 | return listeners;
|
19138 | },
|
19139 | genProgressBar: function genProgressBar(name) {
|
19140 | var _a;
|
19141 |
|
19142 | return this.$createElement('div', this.setBackgroundColor(this.color, {
|
19143 | staticClass: 'v-progress-linear__indeterminate',
|
19144 | class: (_a = {}, _a[name] = true, _a)
|
19145 | }));
|
19146 | },
|
19147 | onClick: function onClick(e) {
|
19148 | if (!this.reactive) return;
|
19149 | var width = this.$el.getBoundingClientRect().width;
|
19150 | this.internalValue = e.offsetX / width * 100;
|
19151 | },
|
19152 | normalize: function normalize(value) {
|
19153 | if (value < 0) return 0;
|
19154 | if (value > 100) return 100;
|
19155 | return parseFloat(value);
|
19156 | }
|
19157 | },
|
19158 | render: function render(h) {
|
19159 | var data = {
|
19160 | staticClass: 'v-progress-linear',
|
19161 | attrs: {
|
19162 | role: 'progressbar',
|
19163 | 'aria-valuemin': 0,
|
19164 | 'aria-valuemax': this.normalizedBuffer,
|
19165 | 'aria-valuenow': this.indeterminate ? undefined : this.normalizedValue
|
19166 | },
|
19167 | class: this.classes,
|
19168 | style: {
|
19169 | bottom: this.bottom ? 0 : undefined,
|
19170 | height: this.active ? Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["convertToUnit"])(this.height) : 0,
|
19171 | top: this.top ? 0 : undefined
|
19172 | },
|
19173 | on: this.genListeners()
|
19174 | };
|
19175 | return h('div', data, [this.__cachedStream, this.__cachedBackground, this.__cachedBuffer, this.__cachedBar, this.genContent()]);
|
19176 | }
|
19177 | }));
|
19178 |
|
19179 | }),
|
19180 |
|
19181 | "./src/components/VProgressLinear/index.ts":
|
19182 |
|
19183 |
|
19184 |
|
19185 |
|
19186 | (function(module, __webpack_exports__, __webpack_require__) {
|
19187 |
|
19188 | "use strict";
|
19189 | __webpack_require__.r(__webpack_exports__);
|
19190 | var _VProgressLinear__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VProgressLinear/VProgressLinear.ts");
|
19191 | __webpack_require__.d(__webpack_exports__, "VProgressLinear", function() { return _VProgressLinear__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
19192 |
|
19193 |
|
19194 |
|
19195 | __webpack_exports__["default"] = (_VProgressLinear__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
19196 |
|
19197 | }),
|
19198 |
|
19199 | "./src/components/VRadioGroup/VRadio.sass":
|
19200 |
|
19201 |
|
19202 |
|
19203 |
|
19204 | (function(module, exports, __webpack_require__) {
|
19205 |
|
19206 |
|
19207 |
|
19208 | }),
|
19209 |
|
19210 | "./src/components/VRadioGroup/VRadio.ts":
|
19211 |
|
19212 |
|
19213 |
|
19214 |
|
19215 | (function(module, __webpack_exports__, __webpack_require__) {
|
19216 |
|
19217 | "use strict";
|
19218 | __webpack_require__.r(__webpack_exports__);
|
19219 | var _VRadio_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VRadioGroup/VRadio.sass");
|
19220 | var _VRadio_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VRadio_sass__WEBPACK_IMPORTED_MODULE_0__);
|
19221 | var _VLabel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VLabel/index.ts");
|
19222 | var _VIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
19223 | var _VInput__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VInput/index.ts");
|
19224 | var _mixins_binds_attrs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/binds-attrs/index.ts");
|
19225 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
19226 | var _mixins_groupable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/mixins/groupable/index.ts");
|
19227 | var _mixins_rippleable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/mixins/rippleable/index.ts");
|
19228 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
19229 | var _mixins_selectable__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__( "./src/mixins/selectable/index.ts");
|
19230 | var _util_helpers__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__( "./src/util/helpers.ts");
|
19231 | var _util_mixins__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__( "./src/util/mixins.ts");
|
19232 | var __assign = undefined && undefined.__assign || function () {
|
19233 | __assign = Object.assign || function (t) {
|
19234 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
19235 | s = arguments[i];
|
19236 |
|
19237 | for (var p in s) {
|
19238 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
19239 | }
|
19240 | }
|
19241 |
|
19242 | return t;
|
19243 | };
|
19244 |
|
19245 | return __assign.apply(this, arguments);
|
19246 | };
|
19247 |
|
19248 |
|
19249 |
|
19250 |
|
19251 |
|
19252 |
|
19253 |
|
19254 |
|
19255 |
|
19256 |
|
19257 |
|
19258 |
|
19259 |
|
19260 |
|
19261 |
|
19262 |
|
19263 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_11__["default"])(_mixins_binds_attrs__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_colorable__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_rippleable__WEBPACK_IMPORTED_MODULE_7__["default"], Object(_mixins_groupable__WEBPACK_IMPORTED_MODULE_6__["factory"])('radioGroup'), _mixins_themeable__WEBPACK_IMPORTED_MODULE_8__["default"]);
|
19264 |
|
19265 |
|
19266 | __webpack_exports__["default"] = (baseMixins.extend().extend({
|
19267 | name: 'v-radio',
|
19268 | inheritAttrs: false,
|
19269 | props: {
|
19270 | disabled: Boolean,
|
19271 | id: String,
|
19272 | label: String,
|
19273 | name: String,
|
19274 | offIcon: {
|
19275 | type: String,
|
19276 | default: '$radioOff'
|
19277 | },
|
19278 | onIcon: {
|
19279 | type: String,
|
19280 | default: '$radioOn'
|
19281 | },
|
19282 | readonly: Boolean,
|
19283 | value: {
|
19284 | default: null
|
19285 | }
|
19286 | },
|
19287 | data: function data() {
|
19288 | return {
|
19289 | isFocused: false
|
19290 | };
|
19291 | },
|
19292 | computed: {
|
19293 | classes: function classes() {
|
19294 | return __assign({
|
19295 | 'v-radio--is-disabled': this.isDisabled,
|
19296 | 'v-radio--is-focused': this.isFocused
|
19297 | }, this.themeClasses, this.groupClasses);
|
19298 | },
|
19299 | computedColor: function computedColor() {
|
19300 | return _mixins_selectable__WEBPACK_IMPORTED_MODULE_9__["default"].options.computed.computedColor.call(this);
|
19301 | },
|
19302 | computedIcon: function computedIcon() {
|
19303 | return this.isActive ? this.onIcon : this.offIcon;
|
19304 | },
|
19305 | computedId: function computedId() {
|
19306 | return _VInput__WEBPACK_IMPORTED_MODULE_3__["default"].options.computed.computedId.call(this);
|
19307 | },
|
19308 | hasLabel: _VInput__WEBPACK_IMPORTED_MODULE_3__["default"].options.computed.hasLabel,
|
19309 | hasState: function hasState() {
|
19310 | return (this.radioGroup || {}).hasState;
|
19311 | },
|
19312 | isDisabled: function isDisabled() {
|
19313 | return this.disabled || !!(this.radioGroup || {}).disabled;
|
19314 | },
|
19315 | isReadonly: function isReadonly() {
|
19316 | return this.readonly || !!(this.radioGroup || {}).readonly;
|
19317 | },
|
19318 | computedName: function computedName() {
|
19319 | if (this.name || !this.radioGroup) {
|
19320 | return this.name;
|
19321 | }
|
19322 |
|
19323 | return this.radioGroup.name || "radio-" + this.radioGroup._uid;
|
19324 | },
|
19325 | validationState: function validationState() {
|
19326 | return (this.radioGroup || {}).validationState || this.computedColor;
|
19327 | }
|
19328 | },
|
19329 | methods: {
|
19330 | genInput: function genInput(args) {
|
19331 |
|
19332 |
|
19333 |
|
19334 | return _mixins_selectable__WEBPACK_IMPORTED_MODULE_9__["default"].options.methods.genInput.call(this, 'radio', args);
|
19335 | },
|
19336 | genLabel: function genLabel() {
|
19337 | var _this = this;
|
19338 |
|
19339 | if (!this.hasLabel) return null;
|
19340 | return this.$createElement(_VLabel__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
19341 | on: {
|
19342 | click: function click(e) {
|
19343 |
|
19344 |
|
19345 |
|
19346 | e.preventDefault();
|
19347 |
|
19348 | _this.onChange();
|
19349 | }
|
19350 | },
|
19351 | attrs: {
|
19352 | for: this.computedId
|
19353 | },
|
19354 | props: {
|
19355 | color: this.validationState,
|
19356 | focused: this.hasState
|
19357 | }
|
19358 | }, Object(_util_helpers__WEBPACK_IMPORTED_MODULE_10__["getSlot"])(this, 'label') || this.label);
|
19359 | },
|
19360 | genRadio: function genRadio() {
|
19361 | return this.$createElement('div', {
|
19362 | staticClass: 'v-input--selection-controls__input'
|
19363 | }, [this.genInput(__assign({
|
19364 | name: this.computedName,
|
19365 | value: this.value
|
19366 | }, this.attrs$)), this.genRipple(this.setTextColor(this.validationState)), this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_2__["default"], this.setTextColor(this.validationState, {}), this.computedIcon)]);
|
19367 | },
|
19368 | onFocus: function onFocus(e) {
|
19369 | this.isFocused = true;
|
19370 | this.$emit('focus', e);
|
19371 | },
|
19372 | onBlur: function onBlur(e) {
|
19373 | this.isFocused = false;
|
19374 | this.$emit('blur', e);
|
19375 | },
|
19376 | onChange: function onChange() {
|
19377 | if (this.isDisabled || this.isReadonly || this.isActive) return;
|
19378 | this.toggle();
|
19379 | },
|
19380 | onKeydown: function onKeydown() {}
|
19381 | },
|
19382 | render: function render(h) {
|
19383 | var data = {
|
19384 | staticClass: 'v-radio',
|
19385 | class: this.classes
|
19386 | };
|
19387 | return h('div', data, [this.genRadio(), this.genLabel()]);
|
19388 | }
|
19389 | }));
|
19390 |
|
19391 | }),
|
19392 |
|
19393 | "./src/components/VRadioGroup/VRadioGroup.sass":
|
19394 |
|
19395 |
|
19396 |
|
19397 |
|
19398 | (function(module, exports, __webpack_require__) {
|
19399 |
|
19400 |
|
19401 |
|
19402 | }),
|
19403 |
|
19404 | "./src/components/VRadioGroup/VRadioGroup.ts":
|
19405 |
|
19406 |
|
19407 |
|
19408 |
|
19409 | (function(module, __webpack_exports__, __webpack_require__) {
|
19410 |
|
19411 | "use strict";
|
19412 | __webpack_require__.r(__webpack_exports__);
|
19413 | var _styles_components_selection_controls_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/styles/components/_selection-controls.sass");
|
19414 | var _styles_components_selection_controls_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_styles_components_selection_controls_sass__WEBPACK_IMPORTED_MODULE_0__);
|
19415 | var _VRadioGroup_sass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VRadioGroup/VRadioGroup.sass");
|
19416 | var _VRadioGroup_sass__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(_VRadioGroup_sass__WEBPACK_IMPORTED_MODULE_1__);
|
19417 | var _VInput__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VInput/index.ts");
|
19418 | var _VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VItemGroup/VItemGroup.ts");
|
19419 | var _mixins_comparable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/comparable/index.ts");
|
19420 | var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/util/mixins.ts");
|
19421 | var __assign = undefined && undefined.__assign || function () {
|
19422 | __assign = Object.assign || function (t) {
|
19423 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
19424 | s = arguments[i];
|
19425 |
|
19426 | for (var p in s) {
|
19427 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
19428 | }
|
19429 | }
|
19430 |
|
19431 | return t;
|
19432 | };
|
19433 |
|
19434 | return __assign.apply(this, arguments);
|
19435 | };
|
19436 |
|
19437 |
|
19438 |
|
19439 |
|
19440 |
|
19441 |
|
19442 |
|
19443 |
|
19444 |
|
19445 |
|
19446 |
|
19447 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(_mixins_comparable__WEBPACK_IMPORTED_MODULE_4__["default"], _VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_3__["BaseItemGroup"], _VInput__WEBPACK_IMPORTED_MODULE_2__["default"]);
|
19448 |
|
19449 |
|
19450 | __webpack_exports__["default"] = (baseMixins.extend({
|
19451 | name: 'v-radio-group',
|
19452 | provide: function provide() {
|
19453 | return {
|
19454 | radioGroup: this
|
19455 | };
|
19456 | },
|
19457 | props: {
|
19458 | column: {
|
19459 | type: Boolean,
|
19460 | default: true
|
19461 | },
|
19462 | height: {
|
19463 | type: [Number, String],
|
19464 | default: 'auto'
|
19465 | },
|
19466 | name: String,
|
19467 | row: Boolean,
|
19468 |
|
19469 |
|
19470 |
|
19471 | value: {
|
19472 | default: null
|
19473 | }
|
19474 | },
|
19475 | computed: {
|
19476 | classes: function classes() {
|
19477 | return __assign({}, _VInput__WEBPACK_IMPORTED_MODULE_2__["default"].options.computed.classes.call(this), {
|
19478 | 'v-input--selection-controls v-input--radio-group': true,
|
19479 | 'v-input--radio-group--column': this.column && !this.row,
|
19480 | 'v-input--radio-group--row': this.row
|
19481 | });
|
19482 | }
|
19483 | },
|
19484 | methods: {
|
19485 | genDefaultSlot: function genDefaultSlot() {
|
19486 | return this.$createElement('div', {
|
19487 | staticClass: 'v-input--radio-group__input',
|
19488 | attrs: {
|
19489 | id: this.id,
|
19490 | role: 'radiogroup',
|
19491 | 'aria-labelledby': this.computedId
|
19492 | }
|
19493 | }, _VInput__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.genDefaultSlot.call(this));
|
19494 | },
|
19495 | genInputSlot: function genInputSlot() {
|
19496 | var render = _VInput__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.genInputSlot.call(this);
|
19497 | delete render.data.on.click;
|
19498 | return render;
|
19499 | },
|
19500 | genLabel: function genLabel() {
|
19501 | var label = _VInput__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.genLabel.call(this);
|
19502 | if (!label) return null;
|
19503 | label.data.attrs.id = this.computedId;
|
19504 |
|
19505 | delete label.data.attrs.for;
|
19506 | label.tag = 'div';
|
19507 | return label;
|
19508 | },
|
19509 | onClick: _VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_3__["BaseItemGroup"].options.methods.onClick
|
19510 | }
|
19511 | }));
|
19512 |
|
19513 | }),
|
19514 |
|
19515 | "./src/components/VRadioGroup/index.ts":
|
19516 |
|
19517 |
|
19518 |
|
19519 |
|
19520 | (function(module, __webpack_exports__, __webpack_require__) {
|
19521 |
|
19522 | "use strict";
|
19523 | __webpack_require__.r(__webpack_exports__);
|
19524 | var _VRadioGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VRadioGroup/VRadioGroup.ts");
|
19525 | __webpack_require__.d(__webpack_exports__, "VRadioGroup", function() { return _VRadioGroup__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
19526 |
|
19527 | var _VRadio__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VRadioGroup/VRadio.ts");
|
19528 | __webpack_require__.d(__webpack_exports__, "VRadio", function() { return _VRadio__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
19529 |
|
19530 |
|
19531 |
|
19532 |
|
19533 | __webpack_exports__["default"] = ({
|
19534 | $_vuetify_subcomponents: {
|
19535 | VRadioGroup: _VRadioGroup__WEBPACK_IMPORTED_MODULE_0__["default"],
|
19536 | VRadio: _VRadio__WEBPACK_IMPORTED_MODULE_1__["default"]
|
19537 | }
|
19538 | });
|
19539 |
|
19540 | }),
|
19541 |
|
19542 | "./src/components/VRangeSlider/VRangeSlider.sass":
|
19543 |
|
19544 |
|
19545 |
|
19546 |
|
19547 | (function(module, exports, __webpack_require__) {
|
19548 |
|
19549 |
|
19550 |
|
19551 | }),
|
19552 |
|
19553 | "./src/components/VRangeSlider/VRangeSlider.ts":
|
19554 |
|
19555 |
|
19556 |
|
19557 |
|
19558 | (function(module, __webpack_exports__, __webpack_require__) {
|
19559 |
|
19560 | "use strict";
|
19561 | __webpack_require__.r(__webpack_exports__);
|
19562 | var _VRangeSlider_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VRangeSlider/VRangeSlider.sass");
|
19563 | var _VRangeSlider_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VRangeSlider_sass__WEBPACK_IMPORTED_MODULE_0__);
|
19564 | var _VSlider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VSlider/index.ts");
|
19565 | var _util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/helpers.ts");
|
19566 | var __assign = undefined && undefined.__assign || function () {
|
19567 | __assign = Object.assign || function (t) {
|
19568 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
19569 | s = arguments[i];
|
19570 |
|
19571 | for (var p in s) {
|
19572 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
19573 | }
|
19574 | }
|
19575 |
|
19576 | return t;
|
19577 | };
|
19578 |
|
19579 | return __assign.apply(this, arguments);
|
19580 | };
|
19581 |
|
19582 | var __read = undefined && undefined.__read || function (o, n) {
|
19583 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
19584 | if (!m) return o;
|
19585 | var i = m.call(o),
|
19586 | r,
|
19587 | ar = [],
|
19588 | e;
|
19589 |
|
19590 | try {
|
19591 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
19592 | ar.push(r.value);
|
19593 | }
|
19594 | } catch (error) {
|
19595 | e = {
|
19596 | error: error
|
19597 | };
|
19598 | } finally {
|
19599 | try {
|
19600 | if (r && !r.done && (m = i["return"])) m.call(i);
|
19601 | } finally {
|
19602 | if (e) throw e.error;
|
19603 | }
|
19604 | }
|
19605 |
|
19606 | return ar;
|
19607 | };
|
19608 |
|
19609 | var __spread = undefined && undefined.__spread || function () {
|
19610 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
19611 | ar = ar.concat(__read(arguments[i]));
|
19612 | }
|
19613 |
|
19614 | return ar;
|
19615 | };
|
19616 |
|
19617 |
|
19618 |
|
19619 |
|
19620 |
|
19621 |
|
19622 |
|
19623 |
|
19624 |
|
19625 | __webpack_exports__["default"] = (_VSlider__WEBPACK_IMPORTED_MODULE_1__["default"].extend({
|
19626 | name: 'v-range-slider',
|
19627 | props: {
|
19628 | value: {
|
19629 | type: Array,
|
19630 | default: function _default() {
|
19631 | return [0, 0];
|
19632 | }
|
19633 | }
|
19634 | },
|
19635 | data: function data() {
|
19636 | return {
|
19637 | activeThumb: null,
|
19638 | lazyValue: this.value
|
19639 | };
|
19640 | },
|
19641 | computed: {
|
19642 | classes: function classes() {
|
19643 | return __assign({}, _VSlider__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this), {
|
19644 | 'v-input--range-slider': true
|
19645 | });
|
19646 | },
|
19647 | internalValue: {
|
19648 | get: function get() {
|
19649 | return this.lazyValue;
|
19650 | },
|
19651 | set: function set(val) {
|
19652 | var _this = this;
|
19653 |
|
19654 |
|
19655 |
|
19656 |
|
19657 | var value = val.map(function (v) {
|
19658 | return _this.roundValue(Math.min(Math.max(v, _this.minValue), _this.maxValue));
|
19659 | });
|
19660 |
|
19661 | if (value[0] > value[1] || value[1] < value[0]) {
|
19662 | if (this.activeThumb !== null) {
|
19663 | var toFocus = this.activeThumb === 1 ? 0 : 1;
|
19664 | var el = this.$refs["thumb_" + toFocus];
|
19665 | el.focus();
|
19666 | }
|
19667 |
|
19668 | value = [value[1], value[0]];
|
19669 | }
|
19670 |
|
19671 | this.lazyValue = value;
|
19672 | if (!Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["deepEqual"])(value, this.value)) this.$emit('input', value);
|
19673 | this.validate();
|
19674 | }
|
19675 | },
|
19676 | inputWidth: function inputWidth() {
|
19677 | var _this = this;
|
19678 |
|
19679 | return this.internalValue.map(function (v) {
|
19680 | return (_this.roundValue(v) - _this.minValue) / (_this.maxValue - _this.minValue) * 100;
|
19681 | });
|
19682 | },
|
19683 | trackFillStyles: function trackFillStyles() {
|
19684 | var styles = _VSlider__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.trackFillStyles.call(this);
|
19685 | var fillPercent = Math.abs(this.inputWidth[0] - this.inputWidth[1]);
|
19686 | var dir = this.vertical ? 'height' : 'width';
|
19687 | var start = this.vertical ? this.$vuetify.rtl ? 'top' : 'bottom' : this.$vuetify.rtl ? 'right' : 'left';
|
19688 | styles[dir] = fillPercent + "%";
|
19689 | styles[start] = this.inputWidth[0] + "%";
|
19690 | return styles;
|
19691 | }
|
19692 | },
|
19693 | methods: {
|
19694 | getTrackStyle: function getTrackStyle(startLength, endLength, startPadding, endPadding) {
|
19695 | var _a;
|
19696 |
|
19697 | if (startPadding === void 0) {
|
19698 | startPadding = 0;
|
19699 | }
|
19700 |
|
19701 | if (endPadding === void 0) {
|
19702 | endPadding = 0;
|
19703 | }
|
19704 |
|
19705 | var startDir = this.vertical ? this.$vuetify.rtl ? 'top' : 'bottom' : this.$vuetify.rtl ? 'right' : 'left';
|
19706 | var endDir = this.vertical ? 'height' : 'width';
|
19707 | var start = "calc(" + startLength + "% + " + startPadding + "px)";
|
19708 | var end = "calc(" + endLength + "% + " + endPadding + "px)";
|
19709 | return _a = {
|
19710 | transition: this.trackTransition
|
19711 | }, _a[startDir] = start, _a[endDir] = end, _a;
|
19712 | },
|
19713 | getIndexOfClosestValue: function getIndexOfClosestValue(arr, v) {
|
19714 | if (Math.abs(arr[0] - v) < Math.abs(arr[1] - v)) return 0;else return 1;
|
19715 | },
|
19716 | genInput: function genInput() {
|
19717 | var _this = this;
|
19718 |
|
19719 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["createRange"])(2).map(function (i) {
|
19720 | var input = _VSlider__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genInput.call(_this);
|
19721 | input.data = input.data || {};
|
19722 | input.data.attrs = input.data.attrs || {};
|
19723 | input.data.attrs.value = _this.internalValue[i];
|
19724 | return input;
|
19725 | });
|
19726 | },
|
19727 | genTrackContainer: function genTrackContainer() {
|
19728 | var _this = this;
|
19729 |
|
19730 | var children = [];
|
19731 |
|
19732 | if (this.disabled) {
|
19733 | var disabledPadding = 10;
|
19734 | var sections = [[0, this.inputWidth[0], 0, -disabledPadding], [this.inputWidth[0], Math.abs(this.inputWidth[1] - this.inputWidth[0]), disabledPadding, disabledPadding * -2], [this.inputWidth[1], Math.abs(100 - this.inputWidth[1]), disabledPadding, 0]];
|
19735 | if (this.$vuetify.rtl) sections.reverse();
|
19736 | children.push.apply(children, __spread(sections.map(function (section) {
|
19737 | return _this.$createElement('div', _this.setBackgroundColor(_this.computedTrackColor, {
|
19738 | staticClass: 'v-slider__track-background',
|
19739 | style: _this.getTrackStyle.apply(_this, __spread(section))
|
19740 | }));
|
19741 | })));
|
19742 | } else {
|
19743 | children.push(this.$createElement('div', this.setBackgroundColor(this.computedTrackColor, {
|
19744 | staticClass: 'v-slider__track-background',
|
19745 | style: this.getTrackStyle(0, 100)
|
19746 | })), this.$createElement('div', this.setBackgroundColor(this.computedColor, {
|
19747 | staticClass: 'v-slider__track-fill',
|
19748 | style: this.trackFillStyles
|
19749 | })));
|
19750 | }
|
19751 |
|
19752 | return this.$createElement('div', {
|
19753 | staticClass: 'v-slider__track-container',
|
19754 | ref: 'track'
|
19755 | }, children);
|
19756 | },
|
19757 | genChildren: function genChildren() {
|
19758 | var _this = this;
|
19759 |
|
19760 | return [this.genInput(), this.genTrackContainer(), this.genSteps(), Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["createRange"])(2).map(function (index) {
|
19761 | var value = _this.internalValue[index];
|
19762 |
|
19763 | var onDrag = function onDrag(e) {
|
19764 | _this.isActive = true;
|
19765 | _this.activeThumb = index;
|
19766 |
|
19767 | _this.onThumbMouseDown(e);
|
19768 | };
|
19769 |
|
19770 | var onFocus = function onFocus(e) {
|
19771 | _this.isFocused = true;
|
19772 | _this.activeThumb = index;
|
19773 |
|
19774 | _this.$emit('focus', e);
|
19775 | };
|
19776 |
|
19777 | var onBlur = function onBlur(e) {
|
19778 | _this.isFocused = false;
|
19779 | _this.activeThumb = null;
|
19780 |
|
19781 | _this.$emit('blur', e);
|
19782 | };
|
19783 |
|
19784 | var valueWidth = _this.inputWidth[index];
|
19785 | var isActive = _this.isActive && _this.activeThumb === index;
|
19786 | var isFocused = _this.isFocused && _this.activeThumb === index;
|
19787 | return _this.genThumbContainer(value, valueWidth, isActive, isFocused, onDrag, onFocus, onBlur, "thumb_" + index);
|
19788 | })];
|
19789 | },
|
19790 | onSliderClick: function onSliderClick(e) {
|
19791 | if (!this.isActive) {
|
19792 | if (this.noClick) {
|
19793 | this.noClick = false;
|
19794 | return;
|
19795 | }
|
19796 |
|
19797 | var _a = this.parseMouseMove(e),
|
19798 | value = _a.value,
|
19799 | isInsideTrack = _a.isInsideTrack;
|
19800 |
|
19801 | if (isInsideTrack) {
|
19802 | this.activeThumb = this.getIndexOfClosestValue(this.internalValue, value);
|
19803 | var refName = "thumb_" + this.activeThumb;
|
19804 | var thumbRef = this.$refs[refName];
|
19805 | thumbRef.focus();
|
19806 | }
|
19807 |
|
19808 | this.setInternalValue(value);
|
19809 | this.$emit('change', this.internalValue);
|
19810 | }
|
19811 | },
|
19812 | onMouseMove: function onMouseMove(e) {
|
19813 | var _a = this.parseMouseMove(e),
|
19814 | value = _a.value,
|
19815 | isInsideTrack = _a.isInsideTrack;
|
19816 |
|
19817 | if (isInsideTrack) {
|
19818 | this.activeThumb = this.getIndexOfClosestValue(this.internalValue, value);
|
19819 | }
|
19820 |
|
19821 | this.setInternalValue(value);
|
19822 | },
|
19823 | onKeyDown: function onKeyDown(e) {
|
19824 | if (this.activeThumb === null) return;
|
19825 | var value = this.parseKeyDown(e, this.internalValue[this.activeThumb]);
|
19826 | if (value == null) return;
|
19827 | this.setInternalValue(value);
|
19828 | this.$emit('change', this.internalValue);
|
19829 | },
|
19830 | setInternalValue: function setInternalValue(value) {
|
19831 | var _this = this;
|
19832 |
|
19833 | this.internalValue = this.internalValue.map(function (v, i) {
|
19834 | if (i === _this.activeThumb) return value;else return Number(v);
|
19835 | });
|
19836 | }
|
19837 | }
|
19838 | }));
|
19839 |
|
19840 | }),
|
19841 |
|
19842 | "./src/components/VRangeSlider/index.ts":
|
19843 |
|
19844 |
|
19845 |
|
19846 |
|
19847 | (function(module, __webpack_exports__, __webpack_require__) {
|
19848 |
|
19849 | "use strict";
|
19850 | __webpack_require__.r(__webpack_exports__);
|
19851 | var _VRangeSlider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VRangeSlider/VRangeSlider.ts");
|
19852 | __webpack_require__.d(__webpack_exports__, "VRangeSlider", function() { return _VRangeSlider__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
19853 |
|
19854 |
|
19855 |
|
19856 | __webpack_exports__["default"] = (_VRangeSlider__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
19857 |
|
19858 | }),
|
19859 |
|
19860 | "./src/components/VRating/VRating.sass":
|
19861 |
|
19862 |
|
19863 |
|
19864 |
|
19865 | (function(module, exports, __webpack_require__) {
|
19866 |
|
19867 |
|
19868 |
|
19869 | }),
|
19870 |
|
19871 | "./src/components/VRating/VRating.ts":
|
19872 |
|
19873 |
|
19874 |
|
19875 |
|
19876 | (function(module, __webpack_exports__, __webpack_require__) {
|
19877 |
|
19878 | "use strict";
|
19879 | __webpack_require__.r(__webpack_exports__);
|
19880 | var _VRating_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VRating/VRating.sass");
|
19881 | var _VRating_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VRating_sass__WEBPACK_IMPORTED_MODULE_0__);
|
19882 | var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
19883 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
19884 | var _mixins_delayable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/delayable/index.ts");
|
19885 | var _mixins_sizeable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/sizeable/index.ts");
|
19886 | var _mixins_rippleable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/rippleable/index.ts");
|
19887 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
19888 | var _util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/util/helpers.ts");
|
19889 | var _util_mixins__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/util/mixins.ts");
|
19890 |
|
19891 |
|
19892 |
|
19893 |
|
19894 |
|
19895 |
|
19896 |
|
19897 |
|
19898 |
|
19899 |
|
19900 |
|
19901 |
|
19902 |
|
19903 |
|
19904 |
|
19905 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_8__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_delayable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_rippleable__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_sizeable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_6__["default"]).extend({
|
19906 | name: 'v-rating',
|
19907 | props: {
|
19908 | backgroundColor: {
|
19909 | type: String,
|
19910 | default: 'accent'
|
19911 | },
|
19912 | color: {
|
19913 | type: String,
|
19914 | default: 'primary'
|
19915 | },
|
19916 | clearable: Boolean,
|
19917 | dense: Boolean,
|
19918 | emptyIcon: {
|
19919 | type: String,
|
19920 | default: '$ratingEmpty'
|
19921 | },
|
19922 | fullIcon: {
|
19923 | type: String,
|
19924 | default: '$ratingFull'
|
19925 | },
|
19926 | halfIcon: {
|
19927 | type: String,
|
19928 | default: '$ratingHalf'
|
19929 | },
|
19930 | halfIncrements: Boolean,
|
19931 | hover: Boolean,
|
19932 | length: {
|
19933 | type: [Number, String],
|
19934 | default: 5
|
19935 | },
|
19936 | readonly: Boolean,
|
19937 | size: [Number, String],
|
19938 | value: {
|
19939 | type: Number,
|
19940 | default: 0
|
19941 | }
|
19942 | },
|
19943 | data: function data() {
|
19944 | return {
|
19945 | hoverIndex: -1,
|
19946 | internalValue: this.value
|
19947 | };
|
19948 | },
|
19949 | computed: {
|
19950 | directives: function directives() {
|
19951 | if (this.readonly || !this.ripple) return [];
|
19952 | return [{
|
19953 | name: 'ripple',
|
19954 | value: {
|
19955 | circle: true
|
19956 | }
|
19957 | }];
|
19958 | },
|
19959 | iconProps: function iconProps() {
|
19960 | var _a = this.$props,
|
19961 | dark = _a.dark,
|
19962 | large = _a.large,
|
19963 | light = _a.light,
|
19964 | medium = _a.medium,
|
19965 | small = _a.small,
|
19966 | size = _a.size,
|
19967 | xLarge = _a.xLarge,
|
19968 | xSmall = _a.xSmall;
|
19969 | return {
|
19970 | dark: dark,
|
19971 | large: large,
|
19972 | light: light,
|
19973 | medium: medium,
|
19974 | size: size,
|
19975 | small: small,
|
19976 | xLarge: xLarge,
|
19977 | xSmall: xSmall
|
19978 | };
|
19979 | },
|
19980 | isHovering: function isHovering() {
|
19981 | return this.hover && this.hoverIndex >= 0;
|
19982 | }
|
19983 | },
|
19984 | watch: {
|
19985 | internalValue: function internalValue(val) {
|
19986 | val !== this.value && this.$emit('input', val);
|
19987 | },
|
19988 | value: function value(val) {
|
19989 | this.internalValue = val;
|
19990 | }
|
19991 | },
|
19992 | methods: {
|
19993 | createClickFn: function createClickFn(i) {
|
19994 | var _this = this;
|
19995 |
|
19996 | return function (e) {
|
19997 | if (_this.readonly) return;
|
19998 |
|
19999 | var newValue = _this.genHoverIndex(e, i);
|
20000 |
|
20001 | if (_this.clearable && _this.internalValue === newValue) {
|
20002 | _this.internalValue = 0;
|
20003 | } else {
|
20004 | _this.internalValue = newValue;
|
20005 | }
|
20006 | };
|
20007 | },
|
20008 | createProps: function createProps(i) {
|
20009 | var props = {
|
20010 | index: i,
|
20011 | value: this.internalValue,
|
20012 | click: this.createClickFn(i),
|
20013 | isFilled: Math.floor(this.internalValue) > i,
|
20014 | isHovered: Math.floor(this.hoverIndex) > i
|
20015 | };
|
20016 |
|
20017 | if (this.halfIncrements) {
|
20018 | props.isHalfHovered = !props.isHovered && (this.hoverIndex - i) % 1 > 0;
|
20019 | props.isHalfFilled = !props.isFilled && (this.internalValue - i) % 1 > 0;
|
20020 | }
|
20021 |
|
20022 | return props;
|
20023 | },
|
20024 | genHoverIndex: function genHoverIndex(e, i) {
|
20025 | var isHalf = this.isHalfEvent(e);
|
20026 | if (this.$vuetify.rtl) isHalf = !isHalf;
|
20027 | return i + (isHalf ? 0.5 : 1);
|
20028 | },
|
20029 | getIconName: function getIconName(props) {
|
20030 | var isFull = this.isHovering ? props.isHovered : props.isFilled;
|
20031 | var isHalf = this.isHovering ? props.isHalfHovered : props.isHalfFilled;
|
20032 | return isFull ? this.fullIcon : isHalf ? this.halfIcon : this.emptyIcon;
|
20033 | },
|
20034 | getColor: function getColor(props) {
|
20035 | if (this.isHovering) {
|
20036 | if (props.isHovered || props.isHalfHovered) return this.color;
|
20037 | } else {
|
20038 | if (props.isFilled || props.isHalfFilled) return this.color;
|
20039 | }
|
20040 |
|
20041 | return this.backgroundColor;
|
20042 | },
|
20043 | isHalfEvent: function isHalfEvent(e) {
|
20044 | if (this.halfIncrements) {
|
20045 | var rect = e.target && e.target.getBoundingClientRect();
|
20046 | if (rect && e.pageX - rect.left < rect.width / 2) return true;
|
20047 | }
|
20048 |
|
20049 | return false;
|
20050 | },
|
20051 | onMouseEnter: function onMouseEnter(e, i) {
|
20052 | var _this = this;
|
20053 |
|
20054 | this.runDelay('open', function () {
|
20055 | _this.hoverIndex = _this.genHoverIndex(e, i);
|
20056 | });
|
20057 | },
|
20058 | onMouseLeave: function onMouseLeave() {
|
20059 | var _this = this;
|
20060 |
|
20061 | this.runDelay('close', function () {
|
20062 | return _this.hoverIndex = -1;
|
20063 | });
|
20064 | },
|
20065 | genItem: function genItem(i) {
|
20066 | var _this = this;
|
20067 |
|
20068 | var props = this.createProps(i);
|
20069 | if (this.$scopedSlots.item) return this.$scopedSlots.item(props);
|
20070 | var listeners = {
|
20071 | click: props.click
|
20072 | };
|
20073 |
|
20074 | if (this.hover) {
|
20075 | listeners.mouseenter = function (e) {
|
20076 | return _this.onMouseEnter(e, i);
|
20077 | };
|
20078 |
|
20079 | listeners.mouseleave = this.onMouseLeave;
|
20080 |
|
20081 | if (this.halfIncrements) {
|
20082 | listeners.mousemove = function (e) {
|
20083 | return _this.onMouseEnter(e, i);
|
20084 | };
|
20085 | }
|
20086 | }
|
20087 |
|
20088 | return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], this.setTextColor(this.getColor(props), {
|
20089 | directives: this.directives,
|
20090 | props: this.iconProps,
|
20091 | on: listeners
|
20092 | }), [this.getIconName(props)]);
|
20093 | }
|
20094 | },
|
20095 | render: function render(h) {
|
20096 | var _this = this;
|
20097 |
|
20098 | var children = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["createRange"])(Number(this.length)).map(function (i) {
|
20099 | return _this.genItem(i);
|
20100 | });
|
20101 | return h('div', {
|
20102 | staticClass: 'v-rating',
|
20103 | class: {
|
20104 | 'v-rating--readonly': this.readonly,
|
20105 | 'v-rating--dense': this.dense
|
20106 | }
|
20107 | }, children);
|
20108 | }
|
20109 | }));
|
20110 |
|
20111 | }),
|
20112 |
|
20113 | "./src/components/VRating/index.ts":
|
20114 |
|
20115 |
|
20116 |
|
20117 |
|
20118 | (function(module, __webpack_exports__, __webpack_require__) {
|
20119 |
|
20120 | "use strict";
|
20121 | __webpack_require__.r(__webpack_exports__);
|
20122 | var _VRating__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VRating/VRating.ts");
|
20123 | __webpack_require__.d(__webpack_exports__, "VRating", function() { return _VRating__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
20124 |
|
20125 |
|
20126 |
|
20127 | __webpack_exports__["default"] = (_VRating__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
20128 |
|
20129 | }),
|
20130 |
|
20131 | "./src/components/VResponsive/VResponsive.sass":
|
20132 |
|
20133 |
|
20134 |
|
20135 |
|
20136 | (function(module, exports, __webpack_require__) {
|
20137 |
|
20138 |
|
20139 |
|
20140 | }),
|
20141 |
|
20142 | "./src/components/VResponsive/VResponsive.ts":
|
20143 |
|
20144 |
|
20145 |
|
20146 |
|
20147 | (function(module, __webpack_exports__, __webpack_require__) {
|
20148 |
|
20149 | "use strict";
|
20150 | __webpack_require__.r(__webpack_exports__);
|
20151 | var _VResponsive_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VResponsive/VResponsive.sass");
|
20152 | var _VResponsive_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VResponsive_sass__WEBPACK_IMPORTED_MODULE_0__);
|
20153 | var _mixins_measurable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/measurable/index.ts");
|
20154 | var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/mixins.ts");
|
20155 |
|
20156 |
|
20157 |
|
20158 |
|
20159 |
|
20160 |
|
20161 |
|
20162 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_mixins_measurable__WEBPACK_IMPORTED_MODULE_1__["default"]).extend({
|
20163 | name: 'v-responsive',
|
20164 | props: {
|
20165 | aspectRatio: [String, Number]
|
20166 | },
|
20167 | computed: {
|
20168 | computedAspectRatio: function computedAspectRatio() {
|
20169 | return Number(this.aspectRatio);
|
20170 | },
|
20171 | aspectStyle: function aspectStyle() {
|
20172 | return this.computedAspectRatio ? {
|
20173 | paddingBottom: 1 / this.computedAspectRatio * 100 + '%'
|
20174 | } : undefined;
|
20175 | },
|
20176 | __cachedSizer: function __cachedSizer() {
|
20177 | if (!this.aspectStyle) return [];
|
20178 | return this.$createElement('div', {
|
20179 | style: this.aspectStyle,
|
20180 | staticClass: 'v-responsive__sizer'
|
20181 | });
|
20182 | }
|
20183 | },
|
20184 | methods: {
|
20185 | genContent: function genContent() {
|
20186 | return this.$createElement('div', {
|
20187 | staticClass: 'v-responsive__content'
|
20188 | }, this.$slots.default);
|
20189 | }
|
20190 | },
|
20191 | render: function render(h) {
|
20192 | return h('div', {
|
20193 | staticClass: 'v-responsive',
|
20194 | style: this.measurableStyles,
|
20195 | on: this.$listeners
|
20196 | }, [this.__cachedSizer, this.genContent()]);
|
20197 | }
|
20198 | }));
|
20199 |
|
20200 | }),
|
20201 |
|
20202 | "./src/components/VResponsive/index.ts":
|
20203 |
|
20204 |
|
20205 |
|
20206 |
|
20207 | (function(module, __webpack_exports__, __webpack_require__) {
|
20208 |
|
20209 | "use strict";
|
20210 | __webpack_require__.r(__webpack_exports__);
|
20211 | var _VResponsive__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VResponsive/VResponsive.ts");
|
20212 | __webpack_require__.d(__webpack_exports__, "VResponsive", function() { return _VResponsive__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
20213 |
|
20214 |
|
20215 |
|
20216 | __webpack_exports__["default"] = (_VResponsive__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
20217 |
|
20218 | }),
|
20219 |
|
20220 | "./src/components/VSelect/VSelect.sass":
|
20221 |
|
20222 |
|
20223 |
|
20224 |
|
20225 | (function(module, exports, __webpack_require__) {
|
20226 |
|
20227 |
|
20228 |
|
20229 | }),
|
20230 |
|
20231 | "./src/components/VSelect/VSelect.ts":
|
20232 |
|
20233 |
|
20234 |
|
20235 |
|
20236 | (function(module, __webpack_exports__, __webpack_require__) {
|
20237 |
|
20238 | "use strict";
|
20239 | __webpack_require__.r(__webpack_exports__);
|
20240 | __webpack_require__.d(__webpack_exports__, "defaultMenuProps", function() { return defaultMenuProps; });
|
20241 | var _VTextField_VTextField_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VTextField/VTextField.sass");
|
20242 | var _VTextField_VTextField_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VTextField_VTextField_sass__WEBPACK_IMPORTED_MODULE_0__);
|
20243 | var _VSelect_sass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VSelect/VSelect.sass");
|
20244 | var _VSelect_sass__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(_VSelect_sass__WEBPACK_IMPORTED_MODULE_1__);
|
20245 | var _VChip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VChip/index.ts");
|
20246 | var _VMenu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VMenu/index.ts");
|
20247 | var _VSelectList__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VSelect/VSelectList.ts");
|
20248 | var _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/components/VTextField/VTextField.ts");
|
20249 | var _mixins_comparable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/mixins/comparable/index.ts");
|
20250 | var _mixins_filterable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/mixins/filterable/index.ts");
|
20251 | var _directives_click_outside__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/directives/click-outside/index.ts");
|
20252 | var _util_helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__( "./src/util/helpers.ts");
|
20253 | var _util_console__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__( "./src/util/console.ts");
|
20254 | var _util_mixins__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__( "./src/util/mixins.ts");
|
20255 | var __assign = undefined && undefined.__assign || function () {
|
20256 | __assign = Object.assign || function (t) {
|
20257 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
20258 | s = arguments[i];
|
20259 |
|
20260 | for (var p in s) {
|
20261 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
20262 | }
|
20263 | }
|
20264 |
|
20265 | return t;
|
20266 | };
|
20267 |
|
20268 | return __assign.apply(this, arguments);
|
20269 | };
|
20270 |
|
20271 | var __values = undefined && undefined.__values || function (o) {
|
20272 | var m = typeof Symbol === "function" && o[Symbol.iterator],
|
20273 | i = 0;
|
20274 | if (m) return m.call(o);
|
20275 | return {
|
20276 | next: function next() {
|
20277 | if (o && i >= o.length) o = void 0;
|
20278 | return {
|
20279 | value: o && o[i++],
|
20280 | done: !o
|
20281 | };
|
20282 | }
|
20283 | };
|
20284 | };
|
20285 |
|
20286 |
|
20287 |
|
20288 |
|
20289 |
|
20290 |
|
20291 |
|
20292 |
|
20293 |
|
20294 |
|
20295 |
|
20296 |
|
20297 |
|
20298 |
|
20299 |
|
20300 |
|
20301 |
|
20302 |
|
20303 |
|
20304 |
|
20305 | var defaultMenuProps = {
|
20306 | closeOnClick: false,
|
20307 | closeOnContentClick: false,
|
20308 | disableKeys: true,
|
20309 | openOnClick: false,
|
20310 | maxHeight: 304
|
20311 | };
|
20312 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_11__["default"])(_VTextField_VTextField__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_comparable__WEBPACK_IMPORTED_MODULE_6__["default"], _mixins_filterable__WEBPACK_IMPORTED_MODULE_7__["default"]);
|
20313 |
|
20314 |
|
20315 | __webpack_exports__["default"] = (baseMixins.extend().extend({
|
20316 | name: 'v-select',
|
20317 | directives: {
|
20318 | ClickOutside: _directives_click_outside__WEBPACK_IMPORTED_MODULE_8__["default"]
|
20319 | },
|
20320 | props: {
|
20321 | appendIcon: {
|
20322 | type: String,
|
20323 | default: '$dropdown'
|
20324 | },
|
20325 | attach: {
|
20326 | default: false
|
20327 | },
|
20328 | cacheItems: Boolean,
|
20329 | chips: Boolean,
|
20330 | clearable: Boolean,
|
20331 | deletableChips: Boolean,
|
20332 | eager: Boolean,
|
20333 | hideSelected: Boolean,
|
20334 | items: {
|
20335 | type: Array,
|
20336 | default: function _default() {
|
20337 | return [];
|
20338 | }
|
20339 | },
|
20340 | itemColor: {
|
20341 | type: String,
|
20342 | default: 'primary'
|
20343 | },
|
20344 | itemDisabled: {
|
20345 | type: [String, Array, Function],
|
20346 | default: 'disabled'
|
20347 | },
|
20348 | itemText: {
|
20349 | type: [String, Array, Function],
|
20350 | default: 'text'
|
20351 | },
|
20352 | itemValue: {
|
20353 | type: [String, Array, Function],
|
20354 | default: 'value'
|
20355 | },
|
20356 | menuProps: {
|
20357 | type: [String, Array, Object],
|
20358 | default: function _default() {
|
20359 | return defaultMenuProps;
|
20360 | }
|
20361 | },
|
20362 | multiple: Boolean,
|
20363 | openOnClear: Boolean,
|
20364 | returnObject: Boolean,
|
20365 | smallChips: Boolean
|
20366 | },
|
20367 | data: function data() {
|
20368 | return {
|
20369 | cachedItems: this.cacheItems ? this.items : [],
|
20370 | content: null,
|
20371 | isBooted: false,
|
20372 | isMenuActive: false,
|
20373 | lastItem: 20,
|
20374 |
|
20375 |
|
20376 |
|
20377 | lazyValue: this.value !== undefined ? this.value : this.multiple ? [] : undefined,
|
20378 | selectedIndex: -1,
|
20379 | selectedItems: [],
|
20380 | keyboardLookupPrefix: '',
|
20381 | keyboardLookupLastTime: 0
|
20382 | };
|
20383 | },
|
20384 | computed: {
|
20385 |
|
20386 | allItems: function allItems() {
|
20387 | return this.filterDuplicates(this.cachedItems.concat(this.items));
|
20388 | },
|
20389 | classes: function classes() {
|
20390 | return __assign({}, _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_5__["default"].options.computed.classes.call(this), {
|
20391 | 'v-select': true,
|
20392 | 'v-select--chips': this.hasChips,
|
20393 | 'v-select--chips--small': this.smallChips,
|
20394 | 'v-select--is-menu-active': this.isMenuActive,
|
20395 | 'v-select--is-multi': this.multiple
|
20396 | });
|
20397 | },
|
20398 |
|
20399 |
|
20400 | computedItems: function computedItems() {
|
20401 | return this.allItems;
|
20402 | },
|
20403 | computedOwns: function computedOwns() {
|
20404 | return "list-" + this._uid;
|
20405 | },
|
20406 | counterValue: function counterValue() {
|
20407 | return this.multiple ? this.selectedItems.length : (this.getText(this.selectedItems[0]) || '').toString().length;
|
20408 | },
|
20409 | directives: function directives() {
|
20410 | return this.isFocused ? [{
|
20411 | name: 'click-outside',
|
20412 | value: this.blur,
|
20413 | args: {
|
20414 | closeConditional: this.closeConditional
|
20415 | }
|
20416 | }] : undefined;
|
20417 | },
|
20418 | dynamicHeight: function dynamicHeight() {
|
20419 | return 'auto';
|
20420 | },
|
20421 | hasChips: function hasChips() {
|
20422 | return this.chips || this.smallChips;
|
20423 | },
|
20424 | hasSlot: function hasSlot() {
|
20425 | return Boolean(this.hasChips || this.$scopedSlots.selection);
|
20426 | },
|
20427 | isDirty: function isDirty() {
|
20428 | return this.selectedItems.length > 0;
|
20429 | },
|
20430 | listData: function listData() {
|
20431 | var _a;
|
20432 |
|
20433 | var scopeId = this.$vnode && this.$vnode.context.$options._scopeId;
|
20434 | var attrs = scopeId ? (_a = {}, _a[scopeId] = true, _a) : {};
|
20435 | return {
|
20436 | attrs: __assign({}, attrs, {
|
20437 | id: this.computedOwns
|
20438 | }),
|
20439 | props: {
|
20440 | action: this.multiple,
|
20441 | color: this.itemColor,
|
20442 | dense: this.dense,
|
20443 | hideSelected: this.hideSelected,
|
20444 | items: this.virtualizedItems,
|
20445 | itemDisabled: this.itemDisabled,
|
20446 | itemText: this.itemText,
|
20447 | itemValue: this.itemValue,
|
20448 | noDataText: this.$vuetify.lang.t(this.noDataText),
|
20449 | selectedItems: this.selectedItems
|
20450 | },
|
20451 | on: {
|
20452 | select: this.selectItem
|
20453 | },
|
20454 | scopedSlots: {
|
20455 | item: this.$scopedSlots.item
|
20456 | }
|
20457 | };
|
20458 | },
|
20459 | staticList: function staticList() {
|
20460 | if (this.$slots['no-data'] || this.$slots['prepend-item'] || this.$slots['append-item']) {
|
20461 | Object(_util_console__WEBPACK_IMPORTED_MODULE_10__["consoleError"])('assert: staticList should not be called if slots are used');
|
20462 | }
|
20463 |
|
20464 | return this.$createElement(_VSelectList__WEBPACK_IMPORTED_MODULE_4__["default"], this.listData);
|
20465 | },
|
20466 | virtualizedItems: function virtualizedItems() {
|
20467 | return this.$_menuProps.auto ? this.computedItems : this.computedItems.slice(0, this.lastItem);
|
20468 | },
|
20469 | menuCanShow: function menuCanShow() {
|
20470 | return true;
|
20471 | },
|
20472 | $_menuProps: function $_menuProps() {
|
20473 | var normalisedProps = typeof this.menuProps === 'string' ? this.menuProps.split(',') : this.menuProps;
|
20474 |
|
20475 | if (Array.isArray(normalisedProps)) {
|
20476 | normalisedProps = normalisedProps.reduce(function (acc, p) {
|
20477 | acc[p.trim()] = true;
|
20478 | return acc;
|
20479 | }, {});
|
20480 | }
|
20481 |
|
20482 | return __assign({}, defaultMenuProps, {
|
20483 | eager: this.eager,
|
20484 | value: this.menuCanShow && this.isMenuActive,
|
20485 | nudgeBottom: normalisedProps.offsetY ? 1 : 0
|
20486 | }, normalisedProps);
|
20487 | }
|
20488 | },
|
20489 | watch: {
|
20490 | internalValue: function internalValue(val) {
|
20491 | this.initialValue = val;
|
20492 | this.setSelectedItems();
|
20493 | },
|
20494 | isBooted: function isBooted() {
|
20495 | var _this = this;
|
20496 |
|
20497 | this.$nextTick(function () {
|
20498 | if (_this.content && _this.content.addEventListener) {
|
20499 | _this.content.addEventListener('scroll', _this.onScroll, false);
|
20500 | }
|
20501 | });
|
20502 | },
|
20503 | isMenuActive: function isMenuActive(val) {
|
20504 | var _this = this;
|
20505 |
|
20506 | this.$nextTick(function () {
|
20507 | return _this.onMenuActiveChange(val);
|
20508 | });
|
20509 | if (!val) return;
|
20510 | this.isBooted = true;
|
20511 | },
|
20512 | items: {
|
20513 | immediate: true,
|
20514 | handler: function handler(val) {
|
20515 | var _this = this;
|
20516 |
|
20517 | if (this.cacheItems) {
|
20518 |
|
20519 |
|
20520 |
|
20521 | this.$nextTick(function () {
|
20522 | _this.cachedItems = _this.filterDuplicates(_this.cachedItems.concat(val));
|
20523 | });
|
20524 | }
|
20525 |
|
20526 | this.setSelectedItems();
|
20527 | }
|
20528 | }
|
20529 | },
|
20530 | mounted: function mounted() {
|
20531 | this.content = this.$refs.menu && this.$refs.menu.$refs.content;
|
20532 | },
|
20533 | methods: {
|
20534 |
|
20535 | blur: function blur(e) {
|
20536 | _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_5__["default"].options.methods.blur.call(this, e);
|
20537 | this.isMenuActive = false;
|
20538 | this.isFocused = false;
|
20539 | this.selectedIndex = -1;
|
20540 | },
|
20541 |
|
20542 |
|
20543 | activateMenu: function activateMenu() {
|
20544 | if (this.disabled || this.readonly || this.isMenuActive) return;
|
20545 | this.isMenuActive = true;
|
20546 | },
|
20547 | clearableCallback: function clearableCallback() {
|
20548 | var _this = this;
|
20549 |
|
20550 | this.setValue(this.multiple ? [] : undefined);
|
20551 | this.$nextTick(function () {
|
20552 | return _this.$refs.input && _this.$refs.input.focus();
|
20553 | });
|
20554 | if (this.openOnClear) this.isMenuActive = true;
|
20555 | },
|
20556 | closeConditional: function closeConditional(e) {
|
20557 | return !this._isDestroyed &&
|
20558 | this.content && !this.content.contains(e.target) &&
|
20559 | this.$el && !this.$el.contains(e.target) && e.target !== this.$el;
|
20560 | },
|
20561 | filterDuplicates: function filterDuplicates(arr) {
|
20562 | var uniqueValues = new Map();
|
20563 |
|
20564 | for (var index = 0; index < arr.length; ++index) {
|
20565 | var item = arr[index];
|
20566 | var val = this.getValue(item);
|
20567 |
|
20568 | !uniqueValues.has(val) && uniqueValues.set(val, item);
|
20569 | }
|
20570 |
|
20571 | return Array.from(uniqueValues.values());
|
20572 | },
|
20573 | findExistingIndex: function findExistingIndex(item) {
|
20574 | var _this = this;
|
20575 |
|
20576 | var itemValue = this.getValue(item);
|
20577 | return (this.internalValue || []).findIndex(function (i) {
|
20578 | return _this.valueComparator(_this.getValue(i), itemValue);
|
20579 | });
|
20580 | },
|
20581 | genChipSelection: function genChipSelection(item, index) {
|
20582 | var _this = this;
|
20583 |
|
20584 | var isDisabled = this.disabled || this.readonly || this.getDisabled(item);
|
20585 | return this.$createElement(_VChip__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
20586 | staticClass: 'v-chip--select',
|
20587 | attrs: {
|
20588 | tabindex: -1
|
20589 | },
|
20590 | props: {
|
20591 | close: this.deletableChips && !isDisabled,
|
20592 | disabled: isDisabled,
|
20593 | inputValue: index === this.selectedIndex,
|
20594 | small: this.smallChips
|
20595 | },
|
20596 | on: {
|
20597 | click: function click(e) {
|
20598 | if (isDisabled) return;
|
20599 | e.stopPropagation();
|
20600 | _this.selectedIndex = index;
|
20601 | },
|
20602 | 'click:close': function clickClose() {
|
20603 | return _this.onChipInput(item);
|
20604 | }
|
20605 | },
|
20606 | key: JSON.stringify(this.getValue(item))
|
20607 | }, this.getText(item));
|
20608 | },
|
20609 | genCommaSelection: function genCommaSelection(item, index, last) {
|
20610 | var color = index === this.selectedIndex && this.computedColor;
|
20611 | var isDisabled = this.disabled || this.getDisabled(item);
|
20612 | return this.$createElement('div', this.setTextColor(color, {
|
20613 | staticClass: 'v-select__selection v-select__selection--comma',
|
20614 | class: {
|
20615 | 'v-select__selection--disabled': isDisabled
|
20616 | },
|
20617 | key: JSON.stringify(this.getValue(item))
|
20618 | }), "" + this.getText(item) + (last ? '' : ', '));
|
20619 | },
|
20620 | genDefaultSlot: function genDefaultSlot() {
|
20621 | var selections = this.genSelections();
|
20622 | var input = this.genInput();
|
20623 |
|
20624 |
|
20625 | if (Array.isArray(selections)) {
|
20626 | selections.push(input);
|
20627 | } else {
|
20628 | selections.children = selections.children || [];
|
20629 | selections.children.push(input);
|
20630 | }
|
20631 |
|
20632 | return [this.genFieldset(), this.$createElement('div', {
|
20633 | staticClass: 'v-select__slot',
|
20634 | directives: this.directives
|
20635 | }, [this.genLabel(), this.prefix ? this.genAffix('prefix') : null, selections, this.suffix ? this.genAffix('suffix') : null, this.genClearIcon(), this.genIconSlot()]), this.genMenu(), this.genProgress()];
|
20636 | },
|
20637 | genInput: function genInput() {
|
20638 | var input = _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_5__["default"].options.methods.genInput.call(this);
|
20639 | input.data.domProps.value = null;
|
20640 | input.data.attrs.readonly = true;
|
20641 | input.data.attrs.type = 'text';
|
20642 | input.data.attrs['aria-readonly'] = true;
|
20643 | input.data.on.keypress = this.onKeyPress;
|
20644 | return input;
|
20645 | },
|
20646 | genInputSlot: function genInputSlot() {
|
20647 | var render = _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_5__["default"].options.methods.genInputSlot.call(this);
|
20648 | render.data.attrs = __assign({}, render.data.attrs, {
|
20649 | role: 'button',
|
20650 | 'aria-haspopup': 'listbox',
|
20651 | 'aria-expanded': String(this.isMenuActive),
|
20652 | 'aria-owns': this.computedOwns
|
20653 | });
|
20654 | return render;
|
20655 | },
|
20656 | genList: function genList() {
|
20657 |
|
20658 | if (this.$slots['no-data'] || this.$slots['prepend-item'] || this.$slots['append-item']) {
|
20659 | return this.genListWithSlot();
|
20660 | } else {
|
20661 | return this.staticList;
|
20662 | }
|
20663 | },
|
20664 | genListWithSlot: function genListWithSlot() {
|
20665 | var _this = this;
|
20666 |
|
20667 | var slots = ['prepend-item', 'no-data', 'append-item'].filter(function (slotName) {
|
20668 | return _this.$slots[slotName];
|
20669 | }).map(function (slotName) {
|
20670 | return _this.$createElement('template', {
|
20671 | slot: slotName
|
20672 | }, _this.$slots[slotName]);
|
20673 | });
|
20674 |
|
20675 |
|
20676 |
|
20677 | return this.$createElement(_VSelectList__WEBPACK_IMPORTED_MODULE_4__["default"], __assign({}, this.listData), slots);
|
20678 | },
|
20679 | genMenu: function genMenu() {
|
20680 | var _this = this;
|
20681 |
|
20682 | var props = this.$_menuProps;
|
20683 | props.activator = this.$refs['input-slot'];
|
20684 |
|
20685 |
|
20686 | if (
|
20687 | this.attach === '' ||
|
20688 | this.attach === true ||
|
20689 | this.attach === 'attach'
|
20690 | ) {
|
20691 | props.attach = this.$el;
|
20692 | } else {
|
20693 | props.attach = this.attach;
|
20694 | }
|
20695 |
|
20696 | return this.$createElement(_VMenu__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
20697 | attrs: {
|
20698 | role: undefined
|
20699 | },
|
20700 | props: props,
|
20701 | on: {
|
20702 | input: function input(val) {
|
20703 | _this.isMenuActive = val;
|
20704 | _this.isFocused = val;
|
20705 | }
|
20706 | },
|
20707 | ref: 'menu'
|
20708 | }, [this.genList()]);
|
20709 | },
|
20710 | genSelections: function genSelections() {
|
20711 | var length = this.selectedItems.length;
|
20712 | var children = new Array(length);
|
20713 | var genSelection;
|
20714 |
|
20715 | if (this.$scopedSlots.selection) {
|
20716 | genSelection = this.genSlotSelection;
|
20717 | } else if (this.hasChips) {
|
20718 | genSelection = this.genChipSelection;
|
20719 | } else {
|
20720 | genSelection = this.genCommaSelection;
|
20721 | }
|
20722 |
|
20723 | while (length--) {
|
20724 | children[length] = genSelection(this.selectedItems[length], length, length === children.length - 1);
|
20725 | }
|
20726 |
|
20727 | return this.$createElement('div', {
|
20728 | staticClass: 'v-select__selections'
|
20729 | }, children);
|
20730 | },
|
20731 | genSlotSelection: function genSlotSelection(item, index) {
|
20732 | var _this = this;
|
20733 |
|
20734 | return this.$scopedSlots.selection({
|
20735 | attrs: {
|
20736 | class: 'v-chip--select'
|
20737 | },
|
20738 | parent: this,
|
20739 | item: item,
|
20740 | index: index,
|
20741 | select: function select(e) {
|
20742 | e.stopPropagation();
|
20743 | _this.selectedIndex = index;
|
20744 | },
|
20745 | selected: index === this.selectedIndex,
|
20746 | disabled: this.disabled || this.readonly
|
20747 | });
|
20748 | },
|
20749 | getMenuIndex: function getMenuIndex() {
|
20750 | return this.$refs.menu ? this.$refs.menu.listIndex : -1;
|
20751 | },
|
20752 | getDisabled: function getDisabled(item) {
|
20753 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_9__["getPropertyFromItem"])(item, this.itemDisabled, false);
|
20754 | },
|
20755 | getText: function getText(item) {
|
20756 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_9__["getPropertyFromItem"])(item, this.itemText, item);
|
20757 | },
|
20758 | getValue: function getValue(item) {
|
20759 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_9__["getPropertyFromItem"])(item, this.itemValue, this.getText(item));
|
20760 | },
|
20761 | onBlur: function onBlur(e) {
|
20762 | e && this.$emit('blur', e);
|
20763 | },
|
20764 | onChipInput: function onChipInput(item) {
|
20765 | if (this.multiple) this.selectItem(item);else this.setValue(null);
|
20766 |
|
20767 |
|
20768 | if (this.selectedItems.length === 0) {
|
20769 | this.isMenuActive = true;
|
20770 | } else {
|
20771 | this.isMenuActive = false;
|
20772 | }
|
20773 |
|
20774 | this.selectedIndex = -1;
|
20775 | },
|
20776 | onClick: function onClick() {
|
20777 | if (this.isDisabled) return;
|
20778 | this.isMenuActive = true;
|
20779 |
|
20780 | if (!this.isFocused) {
|
20781 | this.isFocused = true;
|
20782 | this.$emit('focus');
|
20783 | }
|
20784 | },
|
20785 | onEscDown: function onEscDown(e) {
|
20786 | e.preventDefault();
|
20787 |
|
20788 | if (this.isMenuActive) {
|
20789 | e.stopPropagation();
|
20790 | this.isMenuActive = false;
|
20791 | }
|
20792 | },
|
20793 | onKeyPress: function onKeyPress(e) {
|
20794 | var _this = this;
|
20795 |
|
20796 | if (this.multiple || this.readonly) return;
|
20797 | var KEYBOARD_LOOKUP_THRESHOLD = 1000;
|
20798 |
|
20799 | var now = performance.now();
|
20800 |
|
20801 | if (now - this.keyboardLookupLastTime > KEYBOARD_LOOKUP_THRESHOLD) {
|
20802 | this.keyboardLookupPrefix = '';
|
20803 | }
|
20804 |
|
20805 | this.keyboardLookupPrefix += e.key.toLowerCase();
|
20806 | this.keyboardLookupLastTime = now;
|
20807 | var index = this.allItems.findIndex(function (item) {
|
20808 | var text = (_this.getText(item) || '').toString();
|
20809 | return text.toLowerCase().startsWith(_this.keyboardLookupPrefix);
|
20810 | });
|
20811 | var item = this.allItems[index];
|
20812 |
|
20813 | if (index !== -1) {
|
20814 | this.setValue(this.returnObject ? item : this.getValue(item));
|
20815 | setTimeout(function () {
|
20816 | return _this.setMenuIndex(index);
|
20817 | });
|
20818 | }
|
20819 | },
|
20820 | onKeyDown: function onKeyDown(e) {
|
20821 | var _this = this;
|
20822 |
|
20823 | var keyCode = e.keyCode;
|
20824 | var menu = this.$refs.menu;
|
20825 |
|
20826 | if ([_util_helpers__WEBPACK_IMPORTED_MODULE_9__["keyCodes"].enter, _util_helpers__WEBPACK_IMPORTED_MODULE_9__["keyCodes"].space].includes(keyCode)) this.activateMenu();
|
20827 | if (!menu) return;
|
20828 |
|
20829 |
|
20830 | if (this.isMenuActive && keyCode !== _util_helpers__WEBPACK_IMPORTED_MODULE_9__["keyCodes"].tab) {
|
20831 | this.$nextTick(function () {
|
20832 | menu.changeListIndex(e);
|
20833 |
|
20834 | _this.$emit('update:list-index', menu.listIndex);
|
20835 | });
|
20836 | }
|
20837 |
|
20838 |
|
20839 |
|
20840 |
|
20841 |
|
20842 | if (!this.isMenuActive && [_util_helpers__WEBPACK_IMPORTED_MODULE_9__["keyCodes"].up, _util_helpers__WEBPACK_IMPORTED_MODULE_9__["keyCodes"].down].includes(keyCode)) return this.onUpDown(e);
|
20843 |
|
20844 | if (keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_9__["keyCodes"].esc) return this.onEscDown(e);
|
20845 |
|
20846 | if (keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_9__["keyCodes"].tab) return this.onTabDown(e);
|
20847 |
|
20848 | if (keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_9__["keyCodes"].space) return this.onSpaceDown(e);
|
20849 | },
|
20850 | onMenuActiveChange: function onMenuActiveChange(val) {
|
20851 |
|
20852 |
|
20853 |
|
20854 | if (this.multiple && !val || this.getMenuIndex() > -1) return;
|
20855 | var menu = this.$refs.menu;
|
20856 | if (!menu || !this.isDirty) return;
|
20857 |
|
20858 | for (var i = 0; i < menu.tiles.length; i++) {
|
20859 | if (menu.tiles[i].getAttribute('aria-selected') === 'true') {
|
20860 | this.setMenuIndex(i);
|
20861 | break;
|
20862 | }
|
20863 | }
|
20864 | },
|
20865 | onMouseUp: function onMouseUp(e) {
|
20866 | var _this = this;
|
20867 |
|
20868 | if (this.hasMouseDown && e.which !== 3) {
|
20869 | var appendInner = this.$refs['append-inner'];
|
20870 |
|
20871 |
|
20872 |
|
20873 | if (this.isMenuActive && appendInner && (appendInner === e.target || appendInner.contains(e.target))) {
|
20874 | this.$nextTick(function () {
|
20875 | return _this.isMenuActive = !_this.isMenuActive;
|
20876 | });
|
20877 |
|
20878 | } else if (this.isEnclosed && !this.isDisabled) {
|
20879 | this.isMenuActive = true;
|
20880 | }
|
20881 | }
|
20882 |
|
20883 | _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_5__["default"].options.methods.onMouseUp.call(this, e);
|
20884 | },
|
20885 | onScroll: function onScroll() {
|
20886 | var _this = this;
|
20887 |
|
20888 | if (!this.isMenuActive) {
|
20889 | requestAnimationFrame(function () {
|
20890 | return _this.content.scrollTop = 0;
|
20891 | });
|
20892 | } else {
|
20893 | if (this.lastItem >= this.computedItems.length) return;
|
20894 | var showMoreItems = this.content.scrollHeight - (this.content.scrollTop + this.content.clientHeight) < 200;
|
20895 |
|
20896 | if (showMoreItems) {
|
20897 | this.lastItem += 20;
|
20898 | }
|
20899 | }
|
20900 | },
|
20901 | onSpaceDown: function onSpaceDown(e) {
|
20902 | e.preventDefault();
|
20903 | },
|
20904 | onTabDown: function onTabDown(e) {
|
20905 | var menu = this.$refs.menu;
|
20906 | if (!menu) return;
|
20907 | var activeTile = menu.activeTile;
|
20908 |
|
20909 |
|
20910 | if (!this.multiple && activeTile && this.isMenuActive) {
|
20911 | e.preventDefault();
|
20912 | e.stopPropagation();
|
20913 | activeTile.click();
|
20914 | } else {
|
20915 |
|
20916 |
|
20917 |
|
20918 | this.blur(e);
|
20919 | }
|
20920 | },
|
20921 | onUpDown: function onUpDown(e) {
|
20922 | var menu = this.$refs.menu;
|
20923 | if (!menu) return;
|
20924 | e.preventDefault();
|
20925 |
|
20926 |
|
20927 |
|
20928 | if (this.multiple) return this.activateMenu();
|
20929 | var keyCode = e.keyCode;
|
20930 |
|
20931 |
|
20932 | menu.getTiles();
|
20933 | _util_helpers__WEBPACK_IMPORTED_MODULE_9__["keyCodes"].up === keyCode ? menu.prevTile() : menu.nextTile();
|
20934 | menu.activeTile && menu.activeTile.click();
|
20935 | },
|
20936 | selectItem: function selectItem(item) {
|
20937 | var _this = this;
|
20938 |
|
20939 | if (!this.multiple) {
|
20940 | this.setValue(this.returnObject ? item : this.getValue(item));
|
20941 | this.isMenuActive = false;
|
20942 | } else {
|
20943 | var internalValue = (this.internalValue || []).slice();
|
20944 | var i = this.findExistingIndex(item);
|
20945 | i !== -1 ? internalValue.splice(i, 1) : internalValue.push(item);
|
20946 | this.setValue(internalValue.map(function (i) {
|
20947 | return _this.returnObject ? i : _this.getValue(i);
|
20948 | }));
|
20949 |
|
20950 |
|
20951 |
|
20952 | this.$nextTick(function () {
|
20953 | _this.$refs.menu && _this.$refs.menu.updateDimensions();
|
20954 | });
|
20955 |
|
20956 |
|
20957 |
|
20958 | if (!this.multiple) return;
|
20959 | var listIndex_1 = this.getMenuIndex();
|
20960 | this.setMenuIndex(-1);
|
20961 |
|
20962 |
|
20963 | if (this.hideSelected) return;
|
20964 | this.$nextTick(function () {
|
20965 | return _this.setMenuIndex(listIndex_1);
|
20966 | });
|
20967 | }
|
20968 | },
|
20969 | setMenuIndex: function setMenuIndex(index) {
|
20970 | this.$refs.menu && (this.$refs.menu.listIndex = index);
|
20971 | },
|
20972 | setSelectedItems: function setSelectedItems() {
|
20973 | var e_1, _a;
|
20974 |
|
20975 | var _this = this;
|
20976 |
|
20977 | var selectedItems = [];
|
20978 | var values = !this.multiple || !Array.isArray(this.internalValue) ? [this.internalValue] : this.internalValue;
|
20979 |
|
20980 | var _loop_1 = function _loop_1(value) {
|
20981 | var index = this_1.allItems.findIndex(function (v) {
|
20982 | return _this.valueComparator(_this.getValue(v), _this.getValue(value));
|
20983 | });
|
20984 |
|
20985 | if (index > -1) {
|
20986 | selectedItems.push(this_1.allItems[index]);
|
20987 | }
|
20988 | };
|
20989 |
|
20990 | var this_1 = this;
|
20991 |
|
20992 | try {
|
20993 | for (var values_1 = __values(values), values_1_1 = values_1.next(); !values_1_1.done; values_1_1 = values_1.next()) {
|
20994 | var value = values_1_1.value;
|
20995 |
|
20996 | _loop_1(value);
|
20997 | }
|
20998 | } catch (e_1_1) {
|
20999 | e_1 = {
|
21000 | error: e_1_1
|
21001 | };
|
21002 | } finally {
|
21003 | try {
|
21004 | if (values_1_1 && !values_1_1.done && (_a = values_1.return)) _a.call(values_1);
|
21005 | } finally {
|
21006 | if (e_1) throw e_1.error;
|
21007 | }
|
21008 | }
|
21009 |
|
21010 | this.selectedItems = selectedItems;
|
21011 | },
|
21012 | setValue: function setValue(value) {
|
21013 | var oldValue = this.internalValue;
|
21014 | this.internalValue = value;
|
21015 | value !== oldValue && this.$emit('change', value);
|
21016 | }
|
21017 | }
|
21018 | }));
|
21019 |
|
21020 | }),
|
21021 |
|
21022 | "./src/components/VSelect/VSelectList.ts":
|
21023 |
|
21024 |
|
21025 |
|
21026 |
|
21027 | (function(module, __webpack_exports__, __webpack_require__) {
|
21028 |
|
21029 | "use strict";
|
21030 | __webpack_require__.r(__webpack_exports__);
|
21031 | var _VCard_VCard_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VCard/VCard.sass");
|
21032 | var _VCard_VCard_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VCard_VCard_sass__WEBPACK_IMPORTED_MODULE_0__);
|
21033 | var _VCheckbox_VSimpleCheckbox__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VCheckbox/VSimpleCheckbox.ts");
|
21034 | var _VDivider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VDivider/index.ts");
|
21035 | var _VSubheader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VSubheader/index.ts");
|
21036 | var _VList__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VList/index.ts");
|
21037 | var _directives_ripple__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/directives/ripple/index.ts");
|
21038 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
21039 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
21040 | var _util_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/util/helpers.ts");
|
21041 | var _util_mixins__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__( "./src/util/mixins.ts");
|
21042 | var __assign = undefined && undefined.__assign || function () {
|
21043 | __assign = Object.assign || function (t) {
|
21044 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
21045 | s = arguments[i];
|
21046 |
|
21047 | for (var p in s) {
|
21048 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
21049 | }
|
21050 | }
|
21051 |
|
21052 | return t;
|
21053 | };
|
21054 |
|
21055 | return __assign.apply(this, arguments);
|
21056 | };
|
21057 |
|
21058 | var __values = undefined && undefined.__values || function (o) {
|
21059 | var m = typeof Symbol === "function" && o[Symbol.iterator],
|
21060 | i = 0;
|
21061 | if (m) return m.call(o);
|
21062 | return {
|
21063 | next: function next() {
|
21064 | if (o && i >= o.length) o = void 0;
|
21065 | return {
|
21066 | value: o && o[i++],
|
21067 | done: !o
|
21068 | };
|
21069 | }
|
21070 | };
|
21071 | };
|
21072 |
|
21073 |
|
21074 |
|
21075 |
|
21076 |
|
21077 |
|
21078 |
|
21079 |
|
21080 |
|
21081 |
|
21082 |
|
21083 |
|
21084 |
|
21085 |
|
21086 |
|
21087 |
|
21088 |
|
21089 |
|
21090 |
|
21091 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_9__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_6__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_7__["default"]).extend({
|
21092 | name: 'v-select-list',
|
21093 |
|
21094 | directives: {
|
21095 | ripple: _directives_ripple__WEBPACK_IMPORTED_MODULE_5__["default"]
|
21096 | },
|
21097 | props: {
|
21098 | action: Boolean,
|
21099 | dense: Boolean,
|
21100 | hideSelected: Boolean,
|
21101 | items: {
|
21102 | type: Array,
|
21103 | default: function _default() {
|
21104 | return [];
|
21105 | }
|
21106 | },
|
21107 | itemDisabled: {
|
21108 | type: [String, Array, Function],
|
21109 | default: 'disabled'
|
21110 | },
|
21111 | itemText: {
|
21112 | type: [String, Array, Function],
|
21113 | default: 'text'
|
21114 | },
|
21115 | itemValue: {
|
21116 | type: [String, Array, Function],
|
21117 | default: 'value'
|
21118 | },
|
21119 | noDataText: String,
|
21120 | noFilter: Boolean,
|
21121 | searchInput: {
|
21122 | default: null
|
21123 | },
|
21124 | selectedItems: {
|
21125 | type: Array,
|
21126 | default: function _default() {
|
21127 | return [];
|
21128 | }
|
21129 | }
|
21130 | },
|
21131 | computed: {
|
21132 | parsedItems: function parsedItems() {
|
21133 | var _this = this;
|
21134 |
|
21135 | return this.selectedItems.map(function (item) {
|
21136 | return _this.getValue(item);
|
21137 | });
|
21138 | },
|
21139 | tileActiveClass: function tileActiveClass() {
|
21140 | return Object.keys(this.setTextColor(this.color).class || {}).join(' ');
|
21141 | },
|
21142 | staticNoDataTile: function staticNoDataTile() {
|
21143 | var tile = {
|
21144 | attrs: {
|
21145 | role: undefined
|
21146 | },
|
21147 | on: {
|
21148 | mousedown: function mousedown(e) {
|
21149 | return e.preventDefault();
|
21150 | }
|
21151 | }
|
21152 | };
|
21153 | return this.$createElement(_VList__WEBPACK_IMPORTED_MODULE_4__["VListItem"], tile, [this.genTileContent(this.noDataText)]);
|
21154 | }
|
21155 | },
|
21156 | methods: {
|
21157 | genAction: function genAction(item, inputValue) {
|
21158 | var _this = this;
|
21159 |
|
21160 | return this.$createElement(_VList__WEBPACK_IMPORTED_MODULE_4__["VListItemAction"], [this.$createElement(_VCheckbox_VSimpleCheckbox__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
21161 | props: {
|
21162 | color: this.color,
|
21163 | value: inputValue
|
21164 | },
|
21165 | on: {
|
21166 | input: function input() {
|
21167 | return _this.$emit('select', item);
|
21168 | }
|
21169 | }
|
21170 | })]);
|
21171 | },
|
21172 | genDivider: function genDivider(props) {
|
21173 | return this.$createElement(_VDivider__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
21174 | props: props
|
21175 | });
|
21176 | },
|
21177 | genFilteredText: function genFilteredText(text) {
|
21178 | text = text || '';
|
21179 | if (!this.searchInput || this.noFilter) return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["escapeHTML"])(text);
|
21180 |
|
21181 | var _a = this.getMaskedCharacters(text),
|
21182 | start = _a.start,
|
21183 | middle = _a.middle,
|
21184 | end = _a.end;
|
21185 |
|
21186 | return "" + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["escapeHTML"])(start) + this.genHighlight(middle) + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["escapeHTML"])(end);
|
21187 | },
|
21188 | genHeader: function genHeader(props) {
|
21189 | return this.$createElement(_VSubheader__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
21190 | props: props
|
21191 | }, props.header);
|
21192 | },
|
21193 | genHighlight: function genHighlight(text) {
|
21194 | return "<span class=\"v-list-item__mask\">" + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["escapeHTML"])(text) + "</span>";
|
21195 | },
|
21196 | genLabelledBy: function genLabelledBy(item) {
|
21197 | var text = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["escapeHTML"])(this.getText(item).split(' ').join('-').toLowerCase());
|
21198 | return text + "-list-item-" + this._uid;
|
21199 | },
|
21200 | getMaskedCharacters: function getMaskedCharacters(text) {
|
21201 | var searchInput = (this.searchInput || '').toString().toLocaleLowerCase();
|
21202 | var index = text.toLocaleLowerCase().indexOf(searchInput);
|
21203 | if (index < 0) return {
|
21204 | start: '',
|
21205 | middle: text,
|
21206 | end: ''
|
21207 | };
|
21208 | var start = text.slice(0, index);
|
21209 | var middle = text.slice(index, index + searchInput.length);
|
21210 | var end = text.slice(index + searchInput.length);
|
21211 | return {
|
21212 | start: start,
|
21213 | middle: middle,
|
21214 | end: end
|
21215 | };
|
21216 | },
|
21217 | genTile: function genTile(item, disabled, value) {
|
21218 | var _this = this;
|
21219 |
|
21220 | if (disabled === void 0) {
|
21221 | disabled = null;
|
21222 | }
|
21223 |
|
21224 | if (value === void 0) {
|
21225 | value = false;
|
21226 | }
|
21227 |
|
21228 | if (!value) value = this.hasItem(item);
|
21229 |
|
21230 | if (item === Object(item)) {
|
21231 | disabled = disabled !== null ? disabled : this.getDisabled(item);
|
21232 | }
|
21233 |
|
21234 | var tile = {
|
21235 | attrs: {
|
21236 |
|
21237 |
|
21238 | 'aria-selected': String(value),
|
21239 | 'aria-labelledby': this.genLabelledBy(item),
|
21240 | role: 'option'
|
21241 | },
|
21242 | on: {
|
21243 | mousedown: function mousedown(e) {
|
21244 |
|
21245 | e.preventDefault();
|
21246 | },
|
21247 | click: function click() {
|
21248 | return disabled || _this.$emit('select', item);
|
21249 | }
|
21250 | },
|
21251 | props: {
|
21252 | activeClass: this.tileActiveClass,
|
21253 | disabled: disabled,
|
21254 | ripple: true,
|
21255 | inputValue: value
|
21256 | }
|
21257 | };
|
21258 |
|
21259 | if (!this.$scopedSlots.item) {
|
21260 | return this.$createElement(_VList__WEBPACK_IMPORTED_MODULE_4__["VListItem"], tile, [this.action && !this.hideSelected && this.items.length > 0 ? this.genAction(item, value) : null, this.genTileContent(item)]);
|
21261 | }
|
21262 |
|
21263 | var parent = this;
|
21264 | var scopedSlot = this.$scopedSlots.item({
|
21265 | parent: parent,
|
21266 | item: item,
|
21267 | attrs: __assign({}, tile.attrs, tile.props),
|
21268 | on: tile.on
|
21269 | });
|
21270 | return this.needsTile(scopedSlot) ? this.$createElement(_VList__WEBPACK_IMPORTED_MODULE_4__["VListItem"], tile, scopedSlot) : scopedSlot;
|
21271 | },
|
21272 | genTileContent: function genTileContent(item) {
|
21273 | var innerHTML = this.genFilteredText(this.getText(item));
|
21274 | return this.$createElement(_VList__WEBPACK_IMPORTED_MODULE_4__["VListItemContent"], [this.$createElement(_VList__WEBPACK_IMPORTED_MODULE_4__["VListItemTitle"], {
|
21275 | attrs: {
|
21276 | id: this.genLabelledBy(item)
|
21277 | },
|
21278 | domProps: {
|
21279 | innerHTML: innerHTML
|
21280 | }
|
21281 | })]);
|
21282 | },
|
21283 | hasItem: function hasItem(item) {
|
21284 | return this.parsedItems.indexOf(this.getValue(item)) > -1;
|
21285 | },
|
21286 | needsTile: function needsTile(slot) {
|
21287 | return slot.length !== 1 || slot[0].componentOptions == null || slot[0].componentOptions.Ctor.options.name !== 'v-list-item';
|
21288 | },
|
21289 | getDisabled: function getDisabled(item) {
|
21290 | return Boolean(Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["getPropertyFromItem"])(item, this.itemDisabled, false));
|
21291 | },
|
21292 | getText: function getText(item) {
|
21293 | return String(Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["getPropertyFromItem"])(item, this.itemText, item));
|
21294 | },
|
21295 | getValue: function getValue(item) {
|
21296 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["getPropertyFromItem"])(item, this.itemValue, this.getText(item));
|
21297 | }
|
21298 | },
|
21299 | render: function render() {
|
21300 | var e_1, _a;
|
21301 |
|
21302 | var children = [];
|
21303 |
|
21304 | try {
|
21305 | for (var _b = __values(this.items), _c = _b.next(); !_c.done; _c = _b.next()) {
|
21306 | var item = _c.value;
|
21307 | if (this.hideSelected && this.hasItem(item)) continue;
|
21308 | if (item == null) children.push(this.genTile(item));else if (item.header) children.push(this.genHeader(item));else if (item.divider) children.push(this.genDivider(item));else children.push(this.genTile(item));
|
21309 | }
|
21310 | } catch (e_1_1) {
|
21311 | e_1 = {
|
21312 | error: e_1_1
|
21313 | };
|
21314 | } finally {
|
21315 | try {
|
21316 | if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
21317 | } finally {
|
21318 | if (e_1) throw e_1.error;
|
21319 | }
|
21320 | }
|
21321 |
|
21322 | children.length || children.push(this.$slots['no-data'] || this.staticNoDataTile);
|
21323 | this.$slots['prepend-item'] && children.unshift(this.$slots['prepend-item']);
|
21324 | this.$slots['append-item'] && children.push(this.$slots['append-item']);
|
21325 | return this.$createElement('div', {
|
21326 | staticClass: 'v-select-list v-card',
|
21327 | class: this.themeClasses
|
21328 | }, [this.$createElement(_VList__WEBPACK_IMPORTED_MODULE_4__["VList"], {
|
21329 | attrs: {
|
21330 | id: this.$attrs.id,
|
21331 | role: 'listbox',
|
21332 | tabindex: -1
|
21333 | },
|
21334 | props: {
|
21335 | dense: this.dense
|
21336 | }
|
21337 | }, children)]);
|
21338 | }
|
21339 | }));
|
21340 |
|
21341 | }),
|
21342 |
|
21343 | "./src/components/VSelect/index.ts":
|
21344 |
|
21345 |
|
21346 |
|
21347 |
|
21348 | (function(module, __webpack_exports__, __webpack_require__) {
|
21349 |
|
21350 | "use strict";
|
21351 | __webpack_require__.r(__webpack_exports__);
|
21352 | var _VSelect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSelect/VSelect.ts");
|
21353 | __webpack_require__.d(__webpack_exports__, "VSelect", function() { return _VSelect__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
21354 |
|
21355 |
|
21356 |
|
21357 | __webpack_exports__["default"] = (_VSelect__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
21358 |
|
21359 | }),
|
21360 |
|
21361 | "./src/components/VSheet/VSheet.sass":
|
21362 |
|
21363 |
|
21364 |
|
21365 |
|
21366 | (function(module, exports, __webpack_require__) {
|
21367 |
|
21368 |
|
21369 |
|
21370 | }),
|
21371 |
|
21372 | "./src/components/VSheet/VSheet.ts":
|
21373 |
|
21374 |
|
21375 |
|
21376 |
|
21377 | (function(module, __webpack_exports__, __webpack_require__) {
|
21378 |
|
21379 | "use strict";
|
21380 | __webpack_require__.r(__webpack_exports__);
|
21381 | var _VSheet_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSheet/VSheet.sass");
|
21382 | var _VSheet_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VSheet_sass__WEBPACK_IMPORTED_MODULE_0__);
|
21383 | var _mixins_binds_attrs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/binds-attrs/index.ts");
|
21384 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
21385 | var _mixins_elevatable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/elevatable/index.ts");
|
21386 | var _mixins_measurable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/measurable/index.ts");
|
21387 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
21388 | var _util_mixins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/util/mixins.ts");
|
21389 | var __assign = undefined && undefined.__assign || function () {
|
21390 | __assign = Object.assign || function (t) {
|
21391 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
21392 | s = arguments[i];
|
21393 |
|
21394 | for (var p in s) {
|
21395 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
21396 | }
|
21397 | }
|
21398 |
|
21399 | return t;
|
21400 | };
|
21401 |
|
21402 | return __assign.apply(this, arguments);
|
21403 | };
|
21404 |
|
21405 |
|
21406 |
|
21407 |
|
21408 |
|
21409 |
|
21410 |
|
21411 |
|
21412 |
|
21413 |
|
21414 |
|
21415 |
|
21416 |
|
21417 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_6__["default"])(_mixins_binds_attrs__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_elevatable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_measurable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__["default"]).extend({
|
21418 | name: 'v-sheet',
|
21419 | props: {
|
21420 | tag: {
|
21421 | type: String,
|
21422 | default: 'div'
|
21423 | },
|
21424 | tile: Boolean
|
21425 | },
|
21426 | computed: {
|
21427 | classes: function classes() {
|
21428 | return __assign({
|
21429 | 'v-sheet': true,
|
21430 | 'v-sheet--tile': this.tile
|
21431 | }, this.themeClasses, this.elevationClasses);
|
21432 | },
|
21433 | styles: function styles() {
|
21434 | return this.measurableStyles;
|
21435 | }
|
21436 | },
|
21437 | render: function render(h) {
|
21438 | var data = {
|
21439 | class: this.classes,
|
21440 | style: this.styles,
|
21441 | on: this.listeners$
|
21442 | };
|
21443 | return h(this.tag, this.setBackgroundColor(this.color, data), this.$slots.default);
|
21444 | }
|
21445 | }));
|
21446 |
|
21447 | }),
|
21448 |
|
21449 | "./src/components/VSheet/index.ts":
|
21450 |
|
21451 |
|
21452 |
|
21453 |
|
21454 | (function(module, __webpack_exports__, __webpack_require__) {
|
21455 |
|
21456 | "use strict";
|
21457 | __webpack_require__.r(__webpack_exports__);
|
21458 | var _VSheet__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSheet/VSheet.ts");
|
21459 | __webpack_require__.d(__webpack_exports__, "VSheet", function() { return _VSheet__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
21460 |
|
21461 |
|
21462 |
|
21463 | __webpack_exports__["default"] = (_VSheet__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
21464 |
|
21465 | }),
|
21466 |
|
21467 | "./src/components/VSkeletonLoader/VSkeletonLoader.sass":
|
21468 |
|
21469 |
|
21470 |
|
21471 |
|
21472 | (function(module, exports, __webpack_require__) {
|
21473 |
|
21474 |
|
21475 |
|
21476 | }),
|
21477 |
|
21478 | "./src/components/VSkeletonLoader/VSkeletonLoader.ts":
|
21479 |
|
21480 |
|
21481 |
|
21482 |
|
21483 | (function(module, __webpack_exports__, __webpack_require__) {
|
21484 |
|
21485 | "use strict";
|
21486 | __webpack_require__.r(__webpack_exports__);
|
21487 | var _VSkeletonLoader_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSkeletonLoader/VSkeletonLoader.sass");
|
21488 | var _VSkeletonLoader_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VSkeletonLoader_sass__WEBPACK_IMPORTED_MODULE_0__);
|
21489 | var _mixins_elevatable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/elevatable/index.ts");
|
21490 | var _mixins_measurable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/measurable/index.ts");
|
21491 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
21492 | var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/mixins.ts");
|
21493 | var _util_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/util/helpers.ts");
|
21494 | var __assign = undefined && undefined.__assign || function () {
|
21495 | __assign = Object.assign || function (t) {
|
21496 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
21497 | s = arguments[i];
|
21498 |
|
21499 | for (var p in s) {
|
21500 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
21501 | }
|
21502 | }
|
21503 |
|
21504 | return t;
|
21505 | };
|
21506 |
|
21507 | return __assign.apply(this, arguments);
|
21508 | };
|
21509 |
|
21510 | var __read = undefined && undefined.__read || function (o, n) {
|
21511 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
21512 | if (!m) return o;
|
21513 | var i = m.call(o),
|
21514 | r,
|
21515 | ar = [],
|
21516 | e;
|
21517 |
|
21518 | try {
|
21519 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
21520 | ar.push(r.value);
|
21521 | }
|
21522 | } catch (error) {
|
21523 | e = {
|
21524 | error: error
|
21525 | };
|
21526 | } finally {
|
21527 | try {
|
21528 | if (r && !r.done && (m = i["return"])) m.call(i);
|
21529 | } finally {
|
21530 | if (e) throw e.error;
|
21531 | }
|
21532 | }
|
21533 |
|
21534 | return ar;
|
21535 | };
|
21536 |
|
21537 |
|
21538 |
|
21539 |
|
21540 |
|
21541 |
|
21542 |
|
21543 |
|
21544 |
|
21545 |
|
21546 |
|
21547 |
|
21548 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_mixins_elevatable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_measurable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__["default"]).extend({
|
21549 | name: 'VSkeletonLoader',
|
21550 | props: {
|
21551 | boilerplate: Boolean,
|
21552 | loading: Boolean,
|
21553 | tile: Boolean,
|
21554 | transition: String,
|
21555 | type: String,
|
21556 | types: {
|
21557 | type: Object,
|
21558 | default: function _default() {
|
21559 | return {};
|
21560 | }
|
21561 | }
|
21562 | },
|
21563 | computed: {
|
21564 | attrs: function attrs() {
|
21565 | if (!this.isLoading) return this.$attrs;
|
21566 | return !this.boilerplate ? __assign({
|
21567 | 'aria-busy': true,
|
21568 | 'aria-live': 'polite',
|
21569 | role: 'alert'
|
21570 | }, this.$attrs) : {};
|
21571 | },
|
21572 | classes: function classes() {
|
21573 | return __assign({
|
21574 | 'v-skeleton-loader--boilerplate': this.boilerplate,
|
21575 | 'v-skeleton-loader--is-loading': this.isLoading,
|
21576 | 'v-skeleton-loader--tile': this.tile
|
21577 | }, this.themeClasses, this.elevationClasses);
|
21578 | },
|
21579 | isLoading: function isLoading() {
|
21580 | return Boolean(!Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["getSlot"])(this) || this.loading);
|
21581 | },
|
21582 | rootTypes: function rootTypes() {
|
21583 | return __assign({
|
21584 | actions: 'button@2',
|
21585 | article: 'heading, paragraph',
|
21586 | avatar: 'avatar',
|
21587 | button: 'button',
|
21588 | card: 'image, card-heading',
|
21589 | 'card-avatar': 'image, list-item-avatar',
|
21590 | 'card-heading': 'heading',
|
21591 | chip: 'chip',
|
21592 | 'date-picker': 'list-item, card-heading, divider, date-picker-options, date-picker-days, actions',
|
21593 | 'date-picker-options': 'text, avatar@2',
|
21594 | 'date-picker-days': 'avatar@28',
|
21595 | heading: 'heading',
|
21596 | image: 'image',
|
21597 | 'list-item': 'text',
|
21598 | 'list-item-avatar': 'avatar, text',
|
21599 | 'list-item-two-line': 'sentences',
|
21600 | 'list-item-avatar-two-line': 'avatar, sentences',
|
21601 | 'list-item-three-line': 'paragraph',
|
21602 | 'list-item-avatar-three-line': 'avatar, paragraph',
|
21603 | paragraph: 'text@3',
|
21604 | sentences: 'text@2',
|
21605 | table: 'table-heading, table-thead, table-tbody, table-tfoot',
|
21606 | 'table-heading': 'heading, text',
|
21607 | 'table-thead': 'heading@6',
|
21608 | 'table-tbody': 'table-row-divider@6',
|
21609 | 'table-row-divider': 'table-row, divider',
|
21610 | 'table-row': 'table-cell@6',
|
21611 | 'table-cell': 'text',
|
21612 | 'table-tfoot': 'text@2, avatar@2',
|
21613 | text: 'text'
|
21614 | }, this.types);
|
21615 | }
|
21616 | },
|
21617 | methods: {
|
21618 | genBone: function genBone(text, children) {
|
21619 | return this.$createElement('div', {
|
21620 | staticClass: "v-skeleton-loader__" + text + " v-skeleton-loader__bone"
|
21621 | }, children);
|
21622 | },
|
21623 | genBones: function genBones(bone) {
|
21624 | var _this = this;
|
21625 |
|
21626 |
|
21627 | var _a = __read(bone.split('@'), 2),
|
21628 | type = _a[0],
|
21629 | length = _a[1];
|
21630 |
|
21631 | var generator = function generator() {
|
21632 | return _this.genStructure(type);
|
21633 | };
|
21634 |
|
21635 |
|
21636 |
|
21637 | return Array.from({
|
21638 | length: length
|
21639 | }).map(generator);
|
21640 | },
|
21641 |
|
21642 |
|
21643 | genStructure: function genStructure(type) {
|
21644 | var children = [];
|
21645 | type = type || this.type || '';
|
21646 | var bone = this.rootTypes[type] || '';
|
21647 |
|
21648 |
|
21649 |
|
21650 | if (type === bone) {}
|
21651 | else if (type.indexOf(',') > -1) return this.mapBones(type);
|
21652 | else if (type.indexOf('@') > -1) return this.genBones(type);
|
21653 | else if (bone.indexOf(',') > -1) children = this.mapBones(bone);
|
21654 | else if (bone.indexOf('@') > -1) children = this.genBones(bone);
|
21655 | else if (bone) children.push(this.genStructure(bone));
|
21656 |
|
21657 | return [this.genBone(type, children)];
|
21658 | },
|
21659 | genSkeleton: function genSkeleton() {
|
21660 | var _this = this;
|
21661 |
|
21662 | var children = [];
|
21663 | var slot = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["getSlot"])(this);
|
21664 | if (!this.isLoading) children.push(slot);else children.push(this.genStructure());
|
21665 |
|
21666 |
|
21667 | if (!this.transition) return children;
|
21668 |
|
21669 |
|
21670 | return this.$createElement('transition', {
|
21671 | props: {
|
21672 | name: this.transition
|
21673 | },
|
21674 |
|
21675 |
|
21676 | on: {
|
21677 | enter: function enter(el) {
|
21678 | if (_this.isLoading) el.style.transition = 'none';
|
21679 | },
|
21680 | beforeLeave: function beforeLeave(el) {
|
21681 | el.style.display = 'none';
|
21682 | }
|
21683 | }
|
21684 | }, children);
|
21685 | },
|
21686 | mapBones: function mapBones(bones) {
|
21687 |
|
21688 | return bones.replace(/\s/g, '').split(',').map(this.genStructure);
|
21689 | }
|
21690 | },
|
21691 | render: function render(h) {
|
21692 | return h('div', {
|
21693 | staticClass: 'v-skeleton-loader',
|
21694 | attrs: this.attrs,
|
21695 | on: this.$listeners,
|
21696 | class: this.classes,
|
21697 | style: this.isLoading ? this.measurableStyles : undefined
|
21698 | }, [this.genSkeleton()]);
|
21699 | }
|
21700 | }));
|
21701 |
|
21702 | }),
|
21703 |
|
21704 | "./src/components/VSkeletonLoader/index.ts":
|
21705 |
|
21706 |
|
21707 |
|
21708 |
|
21709 | (function(module, __webpack_exports__, __webpack_require__) {
|
21710 |
|
21711 | "use strict";
|
21712 | __webpack_require__.r(__webpack_exports__);
|
21713 | var _VSkeletonLoader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSkeletonLoader/VSkeletonLoader.ts");
|
21714 | __webpack_require__.d(__webpack_exports__, "VSkeletonLoader", function() { return _VSkeletonLoader__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
21715 |
|
21716 |
|
21717 |
|
21718 | __webpack_exports__["default"] = (_VSkeletonLoader__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
21719 |
|
21720 | }),
|
21721 |
|
21722 | "./src/components/VSlideGroup/VSlideGroup.sass":
|
21723 |
|
21724 |
|
21725 |
|
21726 |
|
21727 | (function(module, exports, __webpack_require__) {
|
21728 |
|
21729 |
|
21730 |
|
21731 | }),
|
21732 |
|
21733 | "./src/components/VSlideGroup/VSlideGroup.ts":
|
21734 |
|
21735 |
|
21736 |
|
21737 |
|
21738 | (function(module, __webpack_exports__, __webpack_require__) {
|
21739 |
|
21740 | "use strict";
|
21741 | __webpack_require__.r(__webpack_exports__);
|
21742 | __webpack_require__.d(__webpack_exports__, "BaseSlideGroup", function() { return BaseSlideGroup; });
|
21743 | var _VSlideGroup_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSlideGroup/VSlideGroup.sass");
|
21744 | var _VSlideGroup_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VSlideGroup_sass__WEBPACK_IMPORTED_MODULE_0__);
|
21745 | var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
21746 | var _transitions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/transitions/index.ts");
|
21747 | var _VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VItemGroup/VItemGroup.ts");
|
21748 | var _directives_resize__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/directives/resize/index.ts");
|
21749 | var _directives_touch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/directives/touch/index.ts");
|
21750 | var _util_mixins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/util/mixins.ts");
|
21751 | var __assign = undefined && undefined.__assign || function () {
|
21752 | __assign = Object.assign || function (t) {
|
21753 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
21754 | s = arguments[i];
|
21755 |
|
21756 | for (var p in s) {
|
21757 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
21758 | }
|
21759 | }
|
21760 |
|
21761 | return t;
|
21762 | };
|
21763 |
|
21764 | return __assign.apply(this, arguments);
|
21765 | };
|
21766 |
|
21767 |
|
21768 |
|
21769 |
|
21770 |
|
21771 |
|
21772 |
|
21773 |
|
21774 |
|
21775 |
|
21776 |
|
21777 |
|
21778 |
|
21779 | var BaseSlideGroup = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_6__["default"])(_VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_3__["BaseItemGroup"]
|
21780 |
|
21781 | ).extend({
|
21782 | name: 'base-slide-group',
|
21783 | directives: {
|
21784 | Resize: _directives_resize__WEBPACK_IMPORTED_MODULE_4__["default"],
|
21785 | Touch: _directives_touch__WEBPACK_IMPORTED_MODULE_5__["default"]
|
21786 | },
|
21787 | props: {
|
21788 | activeClass: {
|
21789 | type: String,
|
21790 | default: 'v-slide-item--active'
|
21791 | },
|
21792 | centerActive: Boolean,
|
21793 | nextIcon: {
|
21794 | type: String,
|
21795 | default: '$next'
|
21796 | },
|
21797 | mobileBreakPoint: {
|
21798 | type: [Number, String],
|
21799 | default: 1264,
|
21800 | validator: function validator(v) {
|
21801 | return !isNaN(parseInt(v));
|
21802 | }
|
21803 | },
|
21804 | prevIcon: {
|
21805 | type: String,
|
21806 | default: '$prev'
|
21807 | },
|
21808 | showArrows: Boolean
|
21809 | },
|
21810 | data: function data() {
|
21811 | return {
|
21812 | internalItemsLength: 0,
|
21813 | isOverflowing: false,
|
21814 | resizeTimeout: 0,
|
21815 | startX: 0,
|
21816 | scrollOffset: 0,
|
21817 | widths: {
|
21818 | content: 0,
|
21819 | wrapper: 0
|
21820 | }
|
21821 | };
|
21822 | },
|
21823 | computed: {
|
21824 | __cachedNext: function __cachedNext() {
|
21825 | return this.genTransition('next');
|
21826 | },
|
21827 | __cachedPrev: function __cachedPrev() {
|
21828 | return this.genTransition('prev');
|
21829 | },
|
21830 | classes: function classes() {
|
21831 | return __assign({}, _VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_3__["BaseItemGroup"].options.computed.classes.call(this), {
|
21832 | 'v-slide-group': true,
|
21833 | 'v-slide-group--has-affixes': this.hasAffixes,
|
21834 | 'v-slide-group--is-overflowing': this.isOverflowing
|
21835 | });
|
21836 | },
|
21837 | hasAffixes: function hasAffixes() {
|
21838 | return (this.showArrows || !this.isMobile) && this.isOverflowing;
|
21839 | },
|
21840 | hasNext: function hasNext() {
|
21841 | if (!this.hasAffixes) return false;
|
21842 | var _a = this.widths,
|
21843 | content = _a.content,
|
21844 | wrapper = _a.wrapper;
|
21845 |
|
21846 | return content > Math.abs(this.scrollOffset) + wrapper;
|
21847 | },
|
21848 | hasPrev: function hasPrev() {
|
21849 | return this.hasAffixes && this.scrollOffset !== 0;
|
21850 | },
|
21851 | isMobile: function isMobile() {
|
21852 | return this.$vuetify.breakpoint.width < this.mobileBreakPoint;
|
21853 | }
|
21854 | },
|
21855 | watch: {
|
21856 | internalValue: 'setWidths',
|
21857 |
|
21858 |
|
21859 |
|
21860 | isOverflowing: 'setWidths',
|
21861 | scrollOffset: function scrollOffset(val) {
|
21862 | this.$refs.content.style.transform = "translateX(" + -val + "px)";
|
21863 | }
|
21864 | },
|
21865 | beforeUpdate: function beforeUpdate() {
|
21866 | this.internalItemsLength = (this.$children || []).length;
|
21867 | },
|
21868 | updated: function updated() {
|
21869 | if (this.internalItemsLength === (this.$children || []).length) return;
|
21870 | this.setWidths();
|
21871 | },
|
21872 | methods: {
|
21873 | genNext: function genNext() {
|
21874 | var _this = this;
|
21875 |
|
21876 | if (!this.hasAffixes) return null;
|
21877 | var slot = this.$scopedSlots.next ? this.$scopedSlots.next({}) : this.$slots.next || this.__cachedNext;
|
21878 | return this.$createElement('div', {
|
21879 | staticClass: 'v-slide-group__next',
|
21880 | class: {
|
21881 | 'v-slide-group__next--disabled': !this.hasNext
|
21882 | },
|
21883 | on: {
|
21884 | click: function click() {
|
21885 | return _this.onAffixClick('next');
|
21886 | }
|
21887 | },
|
21888 | key: 'next'
|
21889 | }, [slot]);
|
21890 | },
|
21891 | genContent: function genContent() {
|
21892 | return this.$createElement('div', {
|
21893 | staticClass: 'v-slide-group__content',
|
21894 | ref: 'content'
|
21895 | }, this.$slots.default);
|
21896 | },
|
21897 | genData: function genData() {
|
21898 | return {
|
21899 | class: this.classes,
|
21900 | directives: [{
|
21901 | name: 'resize',
|
21902 | value: this.onResize
|
21903 | }]
|
21904 | };
|
21905 | },
|
21906 | genIcon: function genIcon(location) {
|
21907 | var icon = location;
|
21908 |
|
21909 | if (this.$vuetify.rtl && location === 'prev') {
|
21910 | icon = 'next';
|
21911 | } else if (this.$vuetify.rtl && location === 'next') {
|
21912 | icon = 'prev';
|
21913 | }
|
21914 |
|
21915 | var upperLocation = "" + location[0].toUpperCase() + location.slice(1);
|
21916 | var hasAffix = this["has" + upperLocation];
|
21917 | if (!this.showArrows && !hasAffix) return null;
|
21918 | return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
21919 | props: {
|
21920 | disabled: !hasAffix
|
21921 | }
|
21922 | }, this[icon + "Icon"]);
|
21923 | },
|
21924 |
|
21925 | genPrev: function genPrev() {
|
21926 | var _this = this;
|
21927 |
|
21928 | var slot = this.$scopedSlots.prev ? this.$scopedSlots.prev({}) : this.$slots.prev || this.__cachedPrev;
|
21929 | return this.$createElement('div', {
|
21930 | staticClass: 'v-slide-group__prev',
|
21931 | class: {
|
21932 | 'v-slide-group__prev--disabled': !this.hasPrev
|
21933 | },
|
21934 | on: {
|
21935 | click: function click() {
|
21936 | return _this.onAffixClick('prev');
|
21937 | }
|
21938 | },
|
21939 | key: 'prev'
|
21940 | }, [slot]);
|
21941 | },
|
21942 | genTransition: function genTransition(location) {
|
21943 | return this.$createElement(_transitions__WEBPACK_IMPORTED_MODULE_2__["VFadeTransition"], [this.genIcon(location)]);
|
21944 | },
|
21945 | genWrapper: function genWrapper() {
|
21946 | var _this = this;
|
21947 |
|
21948 | return this.$createElement('div', {
|
21949 | staticClass: 'v-slide-group__wrapper',
|
21950 | directives: [{
|
21951 | name: 'touch',
|
21952 | value: {
|
21953 | start: function start(e) {
|
21954 | return _this.overflowCheck(e, _this.onTouchStart);
|
21955 | },
|
21956 | move: function move(e) {
|
21957 | return _this.overflowCheck(e, _this.onTouchMove);
|
21958 | },
|
21959 | end: function end(e) {
|
21960 | return _this.overflowCheck(e, _this.onTouchEnd);
|
21961 | }
|
21962 | }
|
21963 | }],
|
21964 | ref: 'wrapper'
|
21965 | }, [this.genContent()]);
|
21966 | },
|
21967 | calculateNewOffset: function calculateNewOffset(direction, widths, rtl, currentScrollOffset) {
|
21968 | var sign = rtl ? -1 : 1;
|
21969 | var newAbosluteOffset = sign * currentScrollOffset + (direction === 'prev' ? -1 : 1) * widths.wrapper;
|
21970 | return sign * Math.max(Math.min(newAbosluteOffset, widths.content - widths.wrapper), 0);
|
21971 | },
|
21972 | onAffixClick: function onAffixClick(location) {
|
21973 | this.$emit("click:" + location);
|
21974 | this.scrollTo(location);
|
21975 | },
|
21976 | onResize: function onResize() {
|
21977 |
|
21978 | if (this._isDestroyed) return;
|
21979 | this.setWidths();
|
21980 | },
|
21981 | onTouchStart: function onTouchStart(e) {
|
21982 | var content = this.$refs.content;
|
21983 | this.startX = this.scrollOffset + e.touchstartX;
|
21984 | content.style.setProperty('transition', 'none');
|
21985 | content.style.setProperty('willChange', 'transform');
|
21986 | },
|
21987 | onTouchMove: function onTouchMove(e) {
|
21988 | this.scrollOffset = this.startX - e.touchmoveX;
|
21989 | },
|
21990 | onTouchEnd: function onTouchEnd() {
|
21991 | var _a = this.$refs,
|
21992 | content = _a.content,
|
21993 | wrapper = _a.wrapper;
|
21994 | var maxScrollOffset = content.clientWidth - wrapper.clientWidth;
|
21995 | content.style.setProperty('transition', null);
|
21996 | content.style.setProperty('willChange', null);
|
21997 |
|
21998 | if (this.$vuetify.rtl) {
|
21999 |
|
22000 | if (this.scrollOffset > 0 || !this.isOverflowing) {
|
22001 | this.scrollOffset = 0;
|
22002 | } else if (this.scrollOffset <= -maxScrollOffset) {
|
22003 | this.scrollOffset = -maxScrollOffset;
|
22004 | }
|
22005 | } else {
|
22006 |
|
22007 | if (this.scrollOffset < 0 || !this.isOverflowing) {
|
22008 | this.scrollOffset = 0;
|
22009 | } else if (this.scrollOffset >= maxScrollOffset) {
|
22010 | this.scrollOffset = maxScrollOffset;
|
22011 | }
|
22012 | }
|
22013 | },
|
22014 | overflowCheck: function overflowCheck(e, fn) {
|
22015 | e.stopPropagation();
|
22016 | this.isOverflowing && fn(e);
|
22017 | },
|
22018 | scrollIntoView
|
22019 |
|
22020 | : function scrollIntoView() {
|
22021 | if (!this.selectedItem) {
|
22022 | return;
|
22023 | }
|
22024 |
|
22025 | if (this.selectedIndex === 0 || !this.centerActive && !this.isOverflowing) {
|
22026 | this.scrollOffset = 0;
|
22027 | } else if (this.centerActive) {
|
22028 | this.scrollOffset = this.calculateCenteredOffset(this.selectedItem.$el, this.widths, this.$vuetify.rtl);
|
22029 | } else if (this.isOverflowing) {
|
22030 | this.scrollOffset = this.calculateUpdatedOffset(this.selectedItem.$el, this.widths, this.$vuetify.rtl, this.scrollOffset);
|
22031 | }
|
22032 | },
|
22033 | calculateUpdatedOffset: function calculateUpdatedOffset(selectedElement, widths, rtl, currentScrollOffset) {
|
22034 | var clientWidth = selectedElement.clientWidth;
|
22035 | var offsetLeft = rtl ? widths.content - selectedElement.offsetLeft - clientWidth : selectedElement.offsetLeft;
|
22036 |
|
22037 | if (rtl) {
|
22038 | currentScrollOffset = -currentScrollOffset;
|
22039 | }
|
22040 |
|
22041 | var totalWidth = widths.wrapper + currentScrollOffset;
|
22042 | var itemOffset = clientWidth + offsetLeft;
|
22043 | var additionalOffset = clientWidth * 0.4;
|
22044 |
|
22045 | if (offsetLeft < currentScrollOffset) {
|
22046 | currentScrollOffset = Math.max(offsetLeft - additionalOffset, 0);
|
22047 | } else if (totalWidth < itemOffset) {
|
22048 | currentScrollOffset = Math.min(currentScrollOffset - (totalWidth - itemOffset - additionalOffset), widths.content - widths.wrapper);
|
22049 | }
|
22050 |
|
22051 | return rtl ? -currentScrollOffset : currentScrollOffset;
|
22052 | },
|
22053 | calculateCenteredOffset: function calculateCenteredOffset(selectedElement, widths, rtl) {
|
22054 | var offsetLeft = selectedElement.offsetLeft,
|
22055 | clientWidth = selectedElement.clientWidth;
|
22056 |
|
22057 | if (rtl) {
|
22058 | var offsetCentered = widths.content - offsetLeft - clientWidth / 2 - widths.wrapper / 2;
|
22059 | return -Math.min(widths.content - widths.wrapper, Math.max(0, offsetCentered));
|
22060 | } else {
|
22061 | var offsetCentered = offsetLeft + clientWidth / 2 - widths.wrapper / 2;
|
22062 | return Math.min(widths.content - widths.wrapper, Math.max(0, offsetCentered));
|
22063 | }
|
22064 | },
|
22065 | scrollTo
|
22066 |
|
22067 | : function scrollTo(location) {
|
22068 | this.scrollOffset = this.calculateNewOffset(location, {
|
22069 |
|
22070 | content: this.$refs.content ? this.$refs.content.clientWidth : 0,
|
22071 | wrapper: this.$refs.wrapper ? this.$refs.wrapper.clientWidth : 0
|
22072 | }, this.$vuetify.rtl, this.scrollOffset);
|
22073 | },
|
22074 | setWidths
|
22075 |
|
22076 | : function setWidths() {
|
22077 | var _this = this;
|
22078 |
|
22079 | window.requestAnimationFrame(function () {
|
22080 | var _a = _this.$refs,
|
22081 | content = _a.content,
|
22082 | wrapper = _a.wrapper;
|
22083 | _this.widths = {
|
22084 | content: content ? content.clientWidth : 0,
|
22085 | wrapper: wrapper ? wrapper.clientWidth : 0
|
22086 | };
|
22087 | _this.isOverflowing = _this.widths.wrapper < _this.widths.content;
|
22088 |
|
22089 | _this.scrollIntoView();
|
22090 | });
|
22091 | }
|
22092 | },
|
22093 | render: function render(h) {
|
22094 | return h('div', this.genData(), [this.genPrev(), this.genWrapper(), this.genNext()]);
|
22095 | }
|
22096 | });
|
22097 | __webpack_exports__["default"] = (BaseSlideGroup.extend({
|
22098 | name: 'v-slide-group',
|
22099 | provide: function provide() {
|
22100 | return {
|
22101 | slideGroup: this
|
22102 | };
|
22103 | }
|
22104 | }));
|
22105 |
|
22106 | }),
|
22107 |
|
22108 | "./src/components/VSlideGroup/VSlideItem.ts":
|
22109 |
|
22110 |
|
22111 |
|
22112 |
|
22113 | (function(module, __webpack_exports__, __webpack_require__) {
|
22114 |
|
22115 | "use strict";
|
22116 | __webpack_require__.r(__webpack_exports__);
|
22117 | var _VItemGroup_VItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VItemGroup/VItem.ts");
|
22118 | var _mixins_groupable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/groupable/index.ts");
|
22119 | var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/mixins.ts");
|
22120 |
|
22121 |
|
22122 |
|
22123 |
|
22124 |
|
22125 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_VItemGroup_VItem__WEBPACK_IMPORTED_MODULE_0__["BaseItem"], Object(_mixins_groupable__WEBPACK_IMPORTED_MODULE_1__["factory"])('slideGroup')
|
22126 |
|
22127 | ).extend({
|
22128 | name: 'v-slide-item'
|
22129 | }));
|
22130 |
|
22131 | }),
|
22132 |
|
22133 | "./src/components/VSlideGroup/index.ts":
|
22134 |
|
22135 |
|
22136 |
|
22137 |
|
22138 | (function(module, __webpack_exports__, __webpack_require__) {
|
22139 |
|
22140 | "use strict";
|
22141 | __webpack_require__.r(__webpack_exports__);
|
22142 | var _VSlideGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSlideGroup/VSlideGroup.ts");
|
22143 | __webpack_require__.d(__webpack_exports__, "VSlideGroup", function() { return _VSlideGroup__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
22144 |
|
22145 | var _VSlideItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VSlideGroup/VSlideItem.ts");
|
22146 | __webpack_require__.d(__webpack_exports__, "VSlideItem", function() { return _VSlideItem__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
22147 |
|
22148 |
|
22149 |
|
22150 |
|
22151 | __webpack_exports__["default"] = ({
|
22152 | $_vuetify_subcomponents: {
|
22153 | VSlideGroup: _VSlideGroup__WEBPACK_IMPORTED_MODULE_0__["default"],
|
22154 | VSlideItem: _VSlideItem__WEBPACK_IMPORTED_MODULE_1__["default"]
|
22155 | }
|
22156 | });
|
22157 |
|
22158 | }),
|
22159 |
|
22160 | "./src/components/VSlider/VSlider.sass":
|
22161 |
|
22162 |
|
22163 |
|
22164 |
|
22165 | (function(module, exports, __webpack_require__) {
|
22166 |
|
22167 |
|
22168 |
|
22169 | }),
|
22170 |
|
22171 | "./src/components/VSlider/VSlider.ts":
|
22172 |
|
22173 |
|
22174 |
|
22175 |
|
22176 | (function(module, __webpack_exports__, __webpack_require__) {
|
22177 |
|
22178 | "use strict";
|
22179 | __webpack_require__.r(__webpack_exports__);
|
22180 | var _VSlider_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSlider/VSlider.sass");
|
22181 | var _VSlider_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VSlider_sass__WEBPACK_IMPORTED_MODULE_0__);
|
22182 | var _VInput__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VInput/index.ts");
|
22183 | var _transitions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/transitions/index.ts");
|
22184 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
22185 | var _mixins_loadable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/loadable/index.ts");
|
22186 | var _directives_click_outside__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/directives/click-outside/index.ts");
|
22187 | var _util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/util/helpers.ts");
|
22188 | var _util_console__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/util/console.ts");
|
22189 | var __assign = undefined && undefined.__assign || function () {
|
22190 | __assign = Object.assign || function (t) {
|
22191 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
22192 | s = arguments[i];
|
22193 |
|
22194 | for (var p in s) {
|
22195 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
22196 | }
|
22197 | }
|
22198 |
|
22199 | return t;
|
22200 | };
|
22201 |
|
22202 | return __assign.apply(this, arguments);
|
22203 | };
|
22204 |
|
22205 |
|
22206 |
|
22207 |
|
22208 |
|
22209 |
|
22210 |
|
22211 |
|
22212 |
|
22213 |
|
22214 |
|
22215 |
|
22216 |
|
22217 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_VInput__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_loadable__WEBPACK_IMPORTED_MODULE_4__["default"]
|
22218 |
|
22219 | ).extend({
|
22220 | name: 'v-slider',
|
22221 | directives: {
|
22222 | ClickOutside: _directives_click_outside__WEBPACK_IMPORTED_MODULE_5__["default"]
|
22223 | },
|
22224 | mixins: [_mixins_loadable__WEBPACK_IMPORTED_MODULE_4__["default"]],
|
22225 | props: {
|
22226 | disabled: Boolean,
|
22227 | inverseLabel: Boolean,
|
22228 | max: {
|
22229 | type: [Number, String],
|
22230 | default: 100
|
22231 | },
|
22232 | min: {
|
22233 | type: [Number, String],
|
22234 | default: 0
|
22235 | },
|
22236 | step: {
|
22237 | type: [Number, String],
|
22238 | default: 1
|
22239 | },
|
22240 | thumbColor: String,
|
22241 | thumbLabel: {
|
22242 | type: [Boolean, String],
|
22243 | default: null,
|
22244 | validator: function validator(v) {
|
22245 | return typeof v === 'boolean' || v === 'always';
|
22246 | }
|
22247 | },
|
22248 | thumbSize: {
|
22249 | type: [Number, String],
|
22250 | default: 32
|
22251 | },
|
22252 | tickLabels: {
|
22253 | type: Array,
|
22254 | default: function _default() {
|
22255 | return [];
|
22256 | }
|
22257 | },
|
22258 | ticks: {
|
22259 | type: [Boolean, String],
|
22260 | default: false,
|
22261 | validator: function validator(v) {
|
22262 | return typeof v === 'boolean' || v === 'always';
|
22263 | }
|
22264 | },
|
22265 | tickSize: {
|
22266 | type: [Number, String],
|
22267 | default: 2
|
22268 | },
|
22269 | trackColor: String,
|
22270 | trackFillColor: String,
|
22271 | value: [Number, String],
|
22272 | vertical: Boolean
|
22273 | },
|
22274 | data: function data() {
|
22275 | return {
|
22276 | app: null,
|
22277 | oldValue: null,
|
22278 | keyPressed: 0,
|
22279 | isFocused: false,
|
22280 | isActive: false,
|
22281 | lazyValue: 0,
|
22282 | noClick: false
|
22283 | };
|
22284 | },
|
22285 | computed: {
|
22286 | classes: function classes() {
|
22287 | return __assign({}, _VInput__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this), {
|
22288 | 'v-input__slider': true,
|
22289 | 'v-input__slider--vertical': this.vertical,
|
22290 | 'v-input__slider--inverse-label': this.inverseLabel
|
22291 | });
|
22292 | },
|
22293 | internalValue: {
|
22294 | get: function get() {
|
22295 | return this.lazyValue;
|
22296 | },
|
22297 | set: function set(val) {
|
22298 | val = isNaN(val) ? this.minValue : val;
|
22299 |
|
22300 |
|
22301 |
|
22302 | var value = this.roundValue(Math.min(Math.max(val, this.minValue), this.maxValue));
|
22303 | if (value === this.lazyValue) return;
|
22304 | this.lazyValue = value;
|
22305 | this.$emit('input', value);
|
22306 | }
|
22307 | },
|
22308 | trackTransition: function trackTransition() {
|
22309 | return this.keyPressed >= 2 ? 'none' : '';
|
22310 | },
|
22311 | minValue: function minValue() {
|
22312 | return parseFloat(this.min);
|
22313 | },
|
22314 | maxValue: function maxValue() {
|
22315 | return parseFloat(this.max);
|
22316 | },
|
22317 | stepNumeric: function stepNumeric() {
|
22318 | return this.step > 0 ? parseFloat(this.step) : 0;
|
22319 | },
|
22320 | inputWidth: function inputWidth() {
|
22321 | var value = (this.roundValue(this.internalValue) - this.minValue) / (this.maxValue - this.minValue) * 100;
|
22322 | return value;
|
22323 | },
|
22324 | trackFillStyles: function trackFillStyles() {
|
22325 | var _a;
|
22326 |
|
22327 | var startDir = this.vertical ? 'bottom' : 'left';
|
22328 | var endDir = this.vertical ? 'top' : 'right';
|
22329 | var valueDir = this.vertical ? 'height' : 'width';
|
22330 | var start = this.$vuetify.rtl ? 'auto' : '0';
|
22331 | var end = this.$vuetify.rtl ? '0' : 'auto';
|
22332 | var value = this.disabled ? "calc(" + this.inputWidth + "% - 10px)" : this.inputWidth + "%";
|
22333 | return _a = {
|
22334 | transition: this.trackTransition
|
22335 | }, _a[startDir] = start, _a[endDir] = end, _a[valueDir] = value, _a;
|
22336 | },
|
22337 | trackStyles: function trackStyles() {
|
22338 | var _a;
|
22339 |
|
22340 | var startDir = this.vertical ? this.$vuetify.rtl ? 'bottom' : 'top' : this.$vuetify.rtl ? 'left' : 'right';
|
22341 | var endDir = this.vertical ? 'height' : 'width';
|
22342 | var start = '0px';
|
22343 | var end = this.disabled ? "calc(" + (100 - this.inputWidth) + "% - 10px)" : "calc(" + (100 - this.inputWidth) + "%)";
|
22344 | return _a = {
|
22345 | transition: this.trackTransition
|
22346 | }, _a[startDir] = start, _a[endDir] = end, _a;
|
22347 | },
|
22348 | showTicks: function showTicks() {
|
22349 | return this.tickLabels.length > 0 || !!(!this.disabled && this.stepNumeric && this.ticks);
|
22350 | },
|
22351 | numTicks: function numTicks() {
|
22352 | return Math.ceil((this.maxValue - this.minValue) / this.stepNumeric);
|
22353 | },
|
22354 | showThumbLabel: function showThumbLabel() {
|
22355 | return !this.disabled && !!(this.thumbLabel || this.$scopedSlots['thumb-label']);
|
22356 | },
|
22357 | computedTrackColor: function computedTrackColor() {
|
22358 | if (this.disabled) return undefined;
|
22359 | if (this.trackColor) return this.trackColor;
|
22360 | if (this.isDark) return this.validationState;
|
22361 | return this.validationState || 'primary lighten-3';
|
22362 | },
|
22363 | computedTrackFillColor: function computedTrackFillColor() {
|
22364 | if (this.disabled) return undefined;
|
22365 | if (this.trackFillColor) return this.trackFillColor;
|
22366 | return this.validationState || this.computedColor;
|
22367 | },
|
22368 | computedThumbColor: function computedThumbColor() {
|
22369 | if (this.thumbColor) return this.thumbColor;
|
22370 | return this.validationState || this.computedColor;
|
22371 | }
|
22372 | },
|
22373 | watch: {
|
22374 | min: function min(val) {
|
22375 | var parsed = parseFloat(val);
|
22376 | parsed > this.internalValue && this.$emit('input', parsed);
|
22377 | },
|
22378 | max: function max(val) {
|
22379 | var parsed = parseFloat(val);
|
22380 | parsed < this.internalValue && this.$emit('input', parsed);
|
22381 | },
|
22382 | value: {
|
22383 | handler: function handler(v) {
|
22384 | this.internalValue = v;
|
22385 | }
|
22386 | }
|
22387 | },
|
22388 |
|
22389 |
|
22390 |
|
22391 | beforeMount: function beforeMount() {
|
22392 | this.internalValue = this.value;
|
22393 | },
|
22394 | mounted: function mounted() {
|
22395 |
|
22396 | this.app = document.querySelector('[data-app]') || Object(_util_console__WEBPACK_IMPORTED_MODULE_7__["consoleWarn"])('Missing v-app or a non-body wrapping element with the [data-app] attribute', this);
|
22397 | },
|
22398 | methods: {
|
22399 | genDefaultSlot: function genDefaultSlot() {
|
22400 | var children = [this.genLabel()];
|
22401 | var slider = this.genSlider();
|
22402 | this.inverseLabel ? children.unshift(slider) : children.push(slider);
|
22403 | children.push(this.genProgress());
|
22404 | return children;
|
22405 | },
|
22406 | genSlider: function genSlider() {
|
22407 | return this.$createElement('div', {
|
22408 | class: __assign({
|
22409 | 'v-slider': true,
|
22410 | 'v-slider--horizontal': !this.vertical,
|
22411 | 'v-slider--vertical': this.vertical,
|
22412 | 'v-slider--focused': this.isFocused,
|
22413 | 'v-slider--active': this.isActive,
|
22414 | 'v-slider--disabled': this.disabled,
|
22415 | 'v-slider--readonly': this.readonly
|
22416 | }, this.themeClasses),
|
22417 | directives: [{
|
22418 | name: 'click-outside',
|
22419 | value: this.onBlur
|
22420 | }],
|
22421 | on: {
|
22422 | click: this.onSliderClick
|
22423 | }
|
22424 | }, this.genChildren());
|
22425 | },
|
22426 | genChildren: function genChildren() {
|
22427 | return [this.genInput(), this.genTrackContainer(), this.genSteps(), this.genThumbContainer(this.internalValue, this.inputWidth, this.isActive, this.isFocused, this.onThumbMouseDown, this.onFocus, this.onBlur)];
|
22428 | },
|
22429 | genInput: function genInput() {
|
22430 | return this.$createElement('input', {
|
22431 | attrs: __assign({
|
22432 | value: this.internalValue,
|
22433 | id: this.computedId,
|
22434 | disabled: this.disabled,
|
22435 | readonly: true,
|
22436 | tabindex: -1
|
22437 | }, this.$attrs)
|
22438 | });
|
22439 | },
|
22440 | genTrackContainer: function genTrackContainer() {
|
22441 | var children = [this.$createElement('div', this.setBackgroundColor(this.computedTrackColor, {
|
22442 | staticClass: 'v-slider__track-background',
|
22443 | style: this.trackStyles
|
22444 | })), this.$createElement('div', this.setBackgroundColor(this.computedTrackFillColor, {
|
22445 | staticClass: 'v-slider__track-fill',
|
22446 | style: this.trackFillStyles
|
22447 | }))];
|
22448 | return this.$createElement('div', {
|
22449 | staticClass: 'v-slider__track-container',
|
22450 | ref: 'track'
|
22451 | }, children);
|
22452 | },
|
22453 | genSteps: function genSteps() {
|
22454 | var _this = this;
|
22455 |
|
22456 | if (!this.step || !this.showTicks) return null;
|
22457 | var tickSize = parseFloat(this.tickSize);
|
22458 | var range = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["createRange"])(this.numTicks + 1);
|
22459 | var direction = this.vertical ? 'bottom' : 'left';
|
22460 | var offsetDirection = this.vertical ? 'right' : 'top';
|
22461 | if (this.vertical) range.reverse();
|
22462 | var ticks = range.map(function (i) {
|
22463 | var _a;
|
22464 |
|
22465 | var index = _this.$vuetify.rtl ? _this.maxValue - i : i;
|
22466 | var children = [];
|
22467 |
|
22468 | if (_this.tickLabels[index]) {
|
22469 | children.push(_this.$createElement('div', {
|
22470 | staticClass: 'v-slider__tick-label'
|
22471 | }, _this.tickLabels[index]));
|
22472 | }
|
22473 |
|
22474 | var width = i * (100 / _this.numTicks);
|
22475 | var filled = _this.$vuetify.rtl ? 100 - _this.inputWidth < width : width < _this.inputWidth;
|
22476 | return _this.$createElement('span', {
|
22477 | key: i,
|
22478 | staticClass: 'v-slider__tick',
|
22479 | class: {
|
22480 | 'v-slider__tick--filled': filled
|
22481 | },
|
22482 | style: (_a = {
|
22483 | width: tickSize + "px",
|
22484 | height: tickSize + "px"
|
22485 | }, _a[direction] = "calc(" + width + "% - " + tickSize / 2 + "px)", _a[offsetDirection] = "calc(50% - " + tickSize / 2 + "px)", _a)
|
22486 | }, children);
|
22487 | });
|
22488 | return this.$createElement('div', {
|
22489 | staticClass: 'v-slider__ticks-container',
|
22490 | class: {
|
22491 | 'v-slider__ticks-container--always-show': this.ticks === 'always' || this.tickLabels.length > 0
|
22492 | }
|
22493 | }, ticks);
|
22494 | },
|
22495 | genThumbContainer: function genThumbContainer(value, valueWidth, isActive, isFocused, onDrag, onFocus, onBlur, ref) {
|
22496 | if (ref === void 0) {
|
22497 | ref = 'thumb';
|
22498 | }
|
22499 |
|
22500 | var children = [this.genThumb()];
|
22501 | var thumbLabelContent = this.genThumbLabelContent(value);
|
22502 | this.showThumbLabel && children.push(this.genThumbLabel(thumbLabelContent));
|
22503 | return this.$createElement('div', this.setTextColor(this.computedThumbColor, {
|
22504 | ref: ref,
|
22505 | staticClass: 'v-slider__thumb-container',
|
22506 | class: {
|
22507 | 'v-slider__thumb-container--active': isActive,
|
22508 | 'v-slider__thumb-container--focused': isFocused,
|
22509 | 'v-slider__thumb-container--show-label': this.showThumbLabel
|
22510 | },
|
22511 | style: this.getThumbContainerStyles(valueWidth),
|
22512 | attrs: __assign({
|
22513 | role: 'slider',
|
22514 | tabindex: this.disabled || this.readonly ? -1 : this.$attrs.tabindex ? this.$attrs.tabindex : 0,
|
22515 | 'aria-label': this.label,
|
22516 | 'aria-valuemin': this.min,
|
22517 | 'aria-valuemax': this.max,
|
22518 | 'aria-valuenow': this.internalValue,
|
22519 | 'aria-readonly': String(this.readonly),
|
22520 | 'aria-orientation': this.vertical ? 'vertical' : 'horizontal'
|
22521 | }, this.$attrs),
|
22522 | on: {
|
22523 | focus: onFocus,
|
22524 | blur: onBlur,
|
22525 | keydown: this.onKeyDown,
|
22526 | keyup: this.onKeyUp,
|
22527 | touchstart: onDrag,
|
22528 | mousedown: onDrag
|
22529 | }
|
22530 | }), children);
|
22531 | },
|
22532 | genThumbLabelContent: function genThumbLabelContent(value) {
|
22533 | return this.$scopedSlots['thumb-label'] ? this.$scopedSlots['thumb-label']({
|
22534 | value: value
|
22535 | }) : [this.$createElement('span', [String(value)])];
|
22536 | },
|
22537 | genThumbLabel: function genThumbLabel(content) {
|
22538 | var size = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["convertToUnit"])(this.thumbSize);
|
22539 | var transform = this.vertical ? "translateY(20%) translateY(" + (Number(this.thumbSize) / 3 - 1) + "px) translateX(55%) rotate(135deg)" : "translateY(-20%) translateY(-12px) translateX(-50%) rotate(45deg)";
|
22540 | return this.$createElement(_transitions__WEBPACK_IMPORTED_MODULE_2__["VScaleTransition"], {
|
22541 | props: {
|
22542 | origin: 'bottom center'
|
22543 | }
|
22544 | }, [this.$createElement('div', {
|
22545 | staticClass: 'v-slider__thumb-label-container',
|
22546 | directives: [{
|
22547 | name: 'show',
|
22548 | value: this.isFocused || this.isActive || this.thumbLabel === 'always'
|
22549 | }]
|
22550 | }, [this.$createElement('div', this.setBackgroundColor(this.computedThumbColor, {
|
22551 | staticClass: 'v-slider__thumb-label',
|
22552 | style: {
|
22553 | height: size,
|
22554 | width: size,
|
22555 | transform: transform
|
22556 | }
|
22557 | }), [this.$createElement('div', content)])])]);
|
22558 | },
|
22559 | genThumb: function genThumb() {
|
22560 | return this.$createElement('div', this.setBackgroundColor(this.computedThumbColor, {
|
22561 | staticClass: 'v-slider__thumb'
|
22562 | }));
|
22563 | },
|
22564 | getThumbContainerStyles: function getThumbContainerStyles(width) {
|
22565 | var _a;
|
22566 |
|
22567 | var direction = this.vertical ? 'top' : 'left';
|
22568 | var value = this.$vuetify.rtl ? 100 - width : width;
|
22569 | value = this.vertical ? 100 - value : value;
|
22570 | return _a = {
|
22571 | transition: this.trackTransition
|
22572 | }, _a[direction] = value + "%", _a;
|
22573 | },
|
22574 | onThumbMouseDown: function onThumbMouseDown(e) {
|
22575 | this.oldValue = this.internalValue;
|
22576 | this.keyPressed = 2;
|
22577 | this.isActive = true;
|
22578 | var mouseUpOptions = _util_helpers__WEBPACK_IMPORTED_MODULE_6__["passiveSupported"] ? {
|
22579 | passive: true,
|
22580 | capture: true
|
22581 | } : true;
|
22582 | var mouseMoveOptions = _util_helpers__WEBPACK_IMPORTED_MODULE_6__["passiveSupported"] ? {
|
22583 | passive: true
|
22584 | } : false;
|
22585 |
|
22586 | if ('touches' in e) {
|
22587 | this.app.addEventListener('touchmove', this.onMouseMove, mouseMoveOptions);
|
22588 | Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["addOnceEventListener"])(this.app, 'touchend', this.onSliderMouseUp, mouseUpOptions);
|
22589 | } else {
|
22590 | this.app.addEventListener('mousemove', this.onMouseMove, mouseMoveOptions);
|
22591 | Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["addOnceEventListener"])(this.app, 'mouseup', this.onSliderMouseUp, mouseUpOptions);
|
22592 | }
|
22593 |
|
22594 | this.$emit('start', this.internalValue);
|
22595 | },
|
22596 | onSliderMouseUp: function onSliderMouseUp(e) {
|
22597 | e.stopPropagation();
|
22598 | this.keyPressed = 0;
|
22599 | var mouseMoveOptions = _util_helpers__WEBPACK_IMPORTED_MODULE_6__["passiveSupported"] ? {
|
22600 | passive: true
|
22601 | } : false;
|
22602 | this.app.removeEventListener('touchmove', this.onMouseMove, mouseMoveOptions);
|
22603 | this.app.removeEventListener('mousemove', this.onMouseMove, mouseMoveOptions);
|
22604 | this.$emit('end', this.internalValue);
|
22605 |
|
22606 | if (!Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["deepEqual"])(this.oldValue, this.internalValue)) {
|
22607 | this.$emit('change', this.internalValue);
|
22608 | this.noClick = true;
|
22609 | }
|
22610 |
|
22611 | this.isActive = false;
|
22612 | },
|
22613 | onMouseMove: function onMouseMove(e) {
|
22614 | var value = this.parseMouseMove(e).value;
|
22615 | this.internalValue = value;
|
22616 | },
|
22617 | onKeyDown: function onKeyDown(e) {
|
22618 | if (this.disabled || this.readonly) return;
|
22619 | var value = this.parseKeyDown(e, this.internalValue);
|
22620 | if (value == null) return;
|
22621 | this.internalValue = value;
|
22622 | this.$emit('change', value);
|
22623 | },
|
22624 | onKeyUp: function onKeyUp() {
|
22625 | this.keyPressed = 0;
|
22626 | },
|
22627 | onSliderClick: function onSliderClick(e) {
|
22628 | if (this.noClick) {
|
22629 | this.noClick = false;
|
22630 | return;
|
22631 | }
|
22632 |
|
22633 | var thumb = this.$refs.thumb;
|
22634 | thumb.focus();
|
22635 | this.onMouseMove(e);
|
22636 | this.$emit('change', this.internalValue);
|
22637 | },
|
22638 | onBlur: function onBlur(e) {
|
22639 | this.isFocused = false;
|
22640 | this.$emit('blur', e);
|
22641 | },
|
22642 | onFocus: function onFocus(e) {
|
22643 | this.isFocused = true;
|
22644 | this.$emit('focus', e);
|
22645 | },
|
22646 | parseMouseMove: function parseMouseMove(e) {
|
22647 | var start = this.vertical ? 'top' : 'left';
|
22648 | var length = this.vertical ? 'height' : 'width';
|
22649 | var click = this.vertical ? 'clientY' : 'clientX';
|
22650 |
|
22651 | var _a = this.$refs.track.getBoundingClientRect(),
|
22652 | _b = start,
|
22653 | trackStart = _a[_b],
|
22654 | _c = length,
|
22655 | trackLength = _a[_c];
|
22656 |
|
22657 | var clickOffset = 'touches' in e ? e.touches[0][click] : e[click];
|
22658 |
|
22659 |
|
22660 | var clickPos = Math.min(Math.max((clickOffset - trackStart) / trackLength, 0), 1) || 0;
|
22661 | if (this.vertical) clickPos = 1 - clickPos;
|
22662 | if (this.$vuetify.rtl) clickPos = 1 - clickPos;
|
22663 | var isInsideTrack = clickOffset >= trackStart && clickOffset <= trackStart + trackLength;
|
22664 | var value = parseFloat(this.min) + clickPos * (this.maxValue - this.minValue);
|
22665 | return {
|
22666 | value: value,
|
22667 | isInsideTrack: isInsideTrack
|
22668 | };
|
22669 | },
|
22670 | parseKeyDown: function parseKeyDown(e, value) {
|
22671 | if (this.disabled) return;
|
22672 | var pageup = _util_helpers__WEBPACK_IMPORTED_MODULE_6__["keyCodes"].pageup,
|
22673 | pagedown = _util_helpers__WEBPACK_IMPORTED_MODULE_6__["keyCodes"].pagedown,
|
22674 | end = _util_helpers__WEBPACK_IMPORTED_MODULE_6__["keyCodes"].end,
|
22675 | home = _util_helpers__WEBPACK_IMPORTED_MODULE_6__["keyCodes"].home,
|
22676 | left = _util_helpers__WEBPACK_IMPORTED_MODULE_6__["keyCodes"].left,
|
22677 | right = _util_helpers__WEBPACK_IMPORTED_MODULE_6__["keyCodes"].right,
|
22678 | down = _util_helpers__WEBPACK_IMPORTED_MODULE_6__["keyCodes"].down,
|
22679 | up = _util_helpers__WEBPACK_IMPORTED_MODULE_6__["keyCodes"].up;
|
22680 | if (![pageup, pagedown, end, home, left, right, down, up].includes(e.keyCode)) return;
|
22681 | e.preventDefault();
|
22682 | var step = this.stepNumeric || 1;
|
22683 | var steps = (this.maxValue - this.minValue) / step;
|
22684 |
|
22685 | if ([left, right, down, up].includes(e.keyCode)) {
|
22686 | this.keyPressed += 1;
|
22687 | var increase = this.$vuetify.rtl ? [left, up] : [right, up];
|
22688 | var direction = increase.includes(e.keyCode) ? 1 : -1;
|
22689 | var multiplier = e.shiftKey ? 3 : e.ctrlKey ? 2 : 1;
|
22690 | value = value + direction * step * multiplier;
|
22691 | } else if (e.keyCode === home) {
|
22692 | value = this.minValue;
|
22693 | } else if (e.keyCode === end) {
|
22694 | value = this.maxValue;
|
22695 | } else {
|
22696 | var direction = e.keyCode === pagedown ? 1 : -1;
|
22697 | value = value - direction * step * (steps > 100 ? steps / 10 : 10);
|
22698 | }
|
22699 |
|
22700 | return value;
|
22701 | },
|
22702 | roundValue: function roundValue(value) {
|
22703 | if (!this.stepNumeric) return value;
|
22704 |
|
22705 |
|
22706 | var trimmedStep = this.step.toString().trim();
|
22707 | var decimals = trimmedStep.indexOf('.') > -1 ? trimmedStep.length - trimmedStep.indexOf('.') - 1 : 0;
|
22708 | var offset = this.minValue % this.stepNumeric;
|
22709 | var newValue = Math.round((value - offset) / this.stepNumeric) * this.stepNumeric + offset;
|
22710 | return parseFloat(Math.min(newValue, this.maxValue).toFixed(decimals));
|
22711 | }
|
22712 | }
|
22713 | }));
|
22714 |
|
22715 | }),
|
22716 |
|
22717 | "./src/components/VSlider/index.ts":
|
22718 |
|
22719 |
|
22720 |
|
22721 |
|
22722 | (function(module, __webpack_exports__, __webpack_require__) {
|
22723 |
|
22724 | "use strict";
|
22725 | __webpack_require__.r(__webpack_exports__);
|
22726 | var _VSlider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSlider/VSlider.ts");
|
22727 | __webpack_require__.d(__webpack_exports__, "VSlider", function() { return _VSlider__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
22728 |
|
22729 |
|
22730 |
|
22731 | __webpack_exports__["default"] = (_VSlider__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
22732 |
|
22733 | }),
|
22734 |
|
22735 | "./src/components/VSnackbar/VSnackbar.sass":
|
22736 |
|
22737 |
|
22738 |
|
22739 |
|
22740 | (function(module, exports, __webpack_require__) {
|
22741 |
|
22742 |
|
22743 |
|
22744 | }),
|
22745 |
|
22746 | "./src/components/VSnackbar/VSnackbar.ts":
|
22747 |
|
22748 |
|
22749 |
|
22750 |
|
22751 | (function(module, __webpack_exports__, __webpack_require__) {
|
22752 |
|
22753 | "use strict";
|
22754 | __webpack_require__.r(__webpack_exports__);
|
22755 | var _VSnackbar_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSnackbar/VSnackbar.sass");
|
22756 | var _VSnackbar_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VSnackbar_sass__WEBPACK_IMPORTED_MODULE_0__);
|
22757 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
22758 | var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/toggleable/index.ts");
|
22759 | var _mixins_positionable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/positionable/index.ts");
|
22760 | var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/mixins.ts");
|
22761 | var _util_console__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/util/console.ts");
|
22762 |
|
22763 |
|
22764 |
|
22765 |
|
22766 |
|
22767 |
|
22768 |
|
22769 |
|
22770 |
|
22771 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_2__["default"], Object(_mixins_positionable__WEBPACK_IMPORTED_MODULE_3__["factory"])(['absolute', 'top', 'bottom', 'left', 'right'])
|
22772 |
|
22773 | ).extend({
|
22774 | name: 'v-snackbar',
|
22775 | props: {
|
22776 | multiLine: Boolean,
|
22777 |
|
22778 | timeout: {
|
22779 | type: Number,
|
22780 | default: 6000
|
22781 | },
|
22782 | vertical: Boolean
|
22783 | },
|
22784 | data: function data() {
|
22785 | return {
|
22786 | activeTimeout: -1
|
22787 | };
|
22788 | },
|
22789 | computed: {
|
22790 | classes: function classes() {
|
22791 | return {
|
22792 | 'v-snack--active': this.isActive,
|
22793 | 'v-snack--absolute': this.absolute,
|
22794 | 'v-snack--bottom': this.bottom || !this.top,
|
22795 | 'v-snack--left': this.left,
|
22796 | 'v-snack--multi-line': this.multiLine && !this.vertical,
|
22797 | 'v-snack--right': this.right,
|
22798 | 'v-snack--top': this.top,
|
22799 | 'v-snack--vertical': this.vertical
|
22800 | };
|
22801 | }
|
22802 | },
|
22803 | watch: {
|
22804 | isActive: function isActive() {
|
22805 | this.setTimeout();
|
22806 | }
|
22807 | },
|
22808 | created: function created() {
|
22809 | if (this.$attrs.hasOwnProperty('auto-height')) {
|
22810 | Object(_util_console__WEBPACK_IMPORTED_MODULE_5__["removed"])('auto-height', this);
|
22811 | }
|
22812 | },
|
22813 | mounted: function mounted() {
|
22814 | this.setTimeout();
|
22815 | },
|
22816 | methods: {
|
22817 | setTimeout: function setTimeout() {
|
22818 | var _this = this;
|
22819 |
|
22820 | window.clearTimeout(this.activeTimeout);
|
22821 |
|
22822 | if (this.isActive && this.timeout) {
|
22823 | this.activeTimeout = window.setTimeout(function () {
|
22824 | _this.isActive = false;
|
22825 | }, this.timeout);
|
22826 | }
|
22827 | }
|
22828 | },
|
22829 | render: function render(h) {
|
22830 | return h('transition', {
|
22831 | attrs: {
|
22832 | name: 'v-snack-transition'
|
22833 | }
|
22834 | }, [this.isActive && h('div', {
|
22835 | staticClass: 'v-snack',
|
22836 | class: this.classes,
|
22837 | on: this.$listeners
|
22838 | }, [h('div', this.setBackgroundColor(this.color, {
|
22839 | staticClass: 'v-snack__wrapper'
|
22840 | }), [h('div', {
|
22841 | staticClass: 'v-snack__content'
|
22842 | }, this.$slots.default)])])]);
|
22843 | }
|
22844 | }));
|
22845 |
|
22846 | }),
|
22847 |
|
22848 | "./src/components/VSnackbar/index.ts":
|
22849 |
|
22850 |
|
22851 |
|
22852 |
|
22853 | (function(module, __webpack_exports__, __webpack_require__) {
|
22854 |
|
22855 | "use strict";
|
22856 | __webpack_require__.r(__webpack_exports__);
|
22857 | var _VSnackbar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSnackbar/VSnackbar.ts");
|
22858 | __webpack_require__.d(__webpack_exports__, "VSnackbar", function() { return _VSnackbar__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
22859 |
|
22860 |
|
22861 |
|
22862 | __webpack_exports__["default"] = (_VSnackbar__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
22863 |
|
22864 | }),
|
22865 |
|
22866 | "./src/components/VSparkline/VSparkline.sass":
|
22867 |
|
22868 |
|
22869 |
|
22870 |
|
22871 | (function(module, exports, __webpack_require__) {
|
22872 |
|
22873 |
|
22874 |
|
22875 | }),
|
22876 |
|
22877 | "./src/components/VSparkline/VSparkline.ts":
|
22878 |
|
22879 |
|
22880 |
|
22881 |
|
22882 | (function(module, __webpack_exports__, __webpack_require__) {
|
22883 |
|
22884 | "use strict";
|
22885 | __webpack_require__.r(__webpack_exports__);
|
22886 | var _VSparkline_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSparkline/VSparkline.sass");
|
22887 | var _VSparkline_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VSparkline_sass__WEBPACK_IMPORTED_MODULE_0__);
|
22888 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
22889 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
22890 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
22891 | var _helpers_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VSparkline/helpers/core.ts");
|
22892 | var _helpers_path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/components/VSparkline/helpers/path.ts");
|
22893 | 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); }
|
22894 |
|
22895 | var __assign = undefined && undefined.__assign || function () {
|
22896 | __assign = Object.assign || function (t) {
|
22897 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
22898 | s = arguments[i];
|
22899 |
|
22900 | for (var p in s) {
|
22901 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
22902 | }
|
22903 | }
|
22904 |
|
22905 | return t;
|
22906 | };
|
22907 |
|
22908 | return __assign.apply(this, arguments);
|
22909 | };
|
22910 |
|
22911 |
|
22912 |
|
22913 |
|
22914 |
|
22915 |
|
22916 |
|
22917 |
|
22918 |
|
22919 |
|
22920 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]).extend({
|
22921 | name: 'VSparkline',
|
22922 | inheritAttrs: false,
|
22923 | props: {
|
22924 | autoDraw: Boolean,
|
22925 | autoDrawDuration: {
|
22926 | type: Number,
|
22927 | default: 2000
|
22928 | },
|
22929 | autoDrawEasing: {
|
22930 | type: String,
|
22931 | default: 'ease'
|
22932 | },
|
22933 | autoLineWidth: {
|
22934 | type: Boolean,
|
22935 | default: false
|
22936 | },
|
22937 | color: {
|
22938 | type: String,
|
22939 | default: 'primary'
|
22940 | },
|
22941 | fill: {
|
22942 | type: Boolean,
|
22943 | default: false
|
22944 | },
|
22945 | gradient: {
|
22946 | type: Array,
|
22947 | default: function _default() {
|
22948 | return [];
|
22949 | }
|
22950 | },
|
22951 | gradientDirection: {
|
22952 | type: String,
|
22953 | validator: function validator(val) {
|
22954 | return ['top', 'bottom', 'left', 'right'].includes(val);
|
22955 | },
|
22956 | default: 'top'
|
22957 | },
|
22958 | height: {
|
22959 | type: [String, Number],
|
22960 | default: 75
|
22961 | },
|
22962 | labels: {
|
22963 | type: Array,
|
22964 | default: function _default() {
|
22965 | return [];
|
22966 | }
|
22967 | },
|
22968 | labelSize: {
|
22969 | type: [Number, String],
|
22970 | default: 7
|
22971 | },
|
22972 | lineWidth: {
|
22973 | type: [String, Number],
|
22974 | default: 4
|
22975 | },
|
22976 | padding: {
|
22977 | type: [String, Number],
|
22978 | default: 8
|
22979 | },
|
22980 | showLabels: Boolean,
|
22981 | smooth: {
|
22982 | type: [Boolean, Number, String],
|
22983 | default: false
|
22984 | },
|
22985 | type: {
|
22986 | type: String,
|
22987 | default: 'trend',
|
22988 | validator: function validator(val) {
|
22989 | return ['trend', 'bar'].includes(val);
|
22990 | }
|
22991 | },
|
22992 | value: {
|
22993 | type: Array,
|
22994 | default: function _default() {
|
22995 | return [];
|
22996 | }
|
22997 | },
|
22998 | width: {
|
22999 | type: [Number, String],
|
23000 | default: 300
|
23001 | }
|
23002 | },
|
23003 | data: function data() {
|
23004 | return {
|
23005 | lastLength: 0
|
23006 | };
|
23007 | },
|
23008 | computed: {
|
23009 | classes: function classes() {
|
23010 | return __assign({
|
23011 | 'v-sparkline': true
|
23012 | }, this.themeClasses);
|
23013 | },
|
23014 | parsedPadding: function parsedPadding() {
|
23015 | return Number(this.padding);
|
23016 | },
|
23017 | parsedWidth: function parsedWidth() {
|
23018 | return Number(this.width);
|
23019 | },
|
23020 | parsedHeight: function parsedHeight() {
|
23021 | return parseInt(this.height, 10);
|
23022 | },
|
23023 | parsedLabelSize: function parsedLabelSize() {
|
23024 | return parseInt(this.labelSize, 10) || 7;
|
23025 | },
|
23026 | totalHeight: function totalHeight() {
|
23027 | var height = this.parsedHeight;
|
23028 | if (this.hasLabels) height += parseInt(this.labelSize, 10) * 1.5;
|
23029 | return height;
|
23030 | },
|
23031 | totalWidth: function totalWidth() {
|
23032 | var width = this.parsedWidth;
|
23033 | if (this.type === 'bar') width = Math.max(this.value.length * this._lineWidth, width);
|
23034 | return width;
|
23035 | },
|
23036 | totalValues: function totalValues() {
|
23037 | return this.value.length;
|
23038 | },
|
23039 | _lineWidth: function _lineWidth() {
|
23040 | if (this.autoLineWidth && this.type !== 'trend') {
|
23041 | var totalPadding = this.parsedPadding * (this.totalValues + 1);
|
23042 | return (this.parsedWidth - totalPadding) / this.totalValues;
|
23043 | } else {
|
23044 | return parseFloat(this.lineWidth) || 4;
|
23045 | }
|
23046 | },
|
23047 | boundary: function boundary() {
|
23048 | if (this.type === 'bar') return {
|
23049 | minX: 0,
|
23050 | maxX: this.totalWidth,
|
23051 | minY: 0,
|
23052 | maxY: this.parsedHeight
|
23053 | };
|
23054 | var padding = this.parsedPadding;
|
23055 | return {
|
23056 | minX: padding,
|
23057 | maxX: this.totalWidth - padding,
|
23058 | minY: padding,
|
23059 | maxY: this.parsedHeight - padding
|
23060 | };
|
23061 | },
|
23062 | hasLabels: function hasLabels() {
|
23063 | return Boolean(this.showLabels || this.labels.length > 0 || this.$scopedSlots.label);
|
23064 | },
|
23065 | parsedLabels: function parsedLabels() {
|
23066 | var labels = [];
|
23067 | var points = this._values;
|
23068 | var len = points.length;
|
23069 |
|
23070 | for (var i = 0; labels.length < len; i++) {
|
23071 | var item = points[i];
|
23072 | var value = this.labels[i];
|
23073 |
|
23074 | if (!value) {
|
23075 | value = _typeof(item) === 'object' ? item.value : item;
|
23076 | }
|
23077 |
|
23078 | labels.push({
|
23079 | x: item.x,
|
23080 | value: String(value)
|
23081 | });
|
23082 | }
|
23083 |
|
23084 | return labels;
|
23085 | },
|
23086 | normalizedValues: function normalizedValues() {
|
23087 | return this.value.map(function (item) {
|
23088 | return typeof item === 'number' ? item : item.value;
|
23089 | });
|
23090 | },
|
23091 | _values: function _values() {
|
23092 | return this.type === 'trend' ? Object(_helpers_core__WEBPACK_IMPORTED_MODULE_4__["genPoints"])(this.normalizedValues, this.boundary) : Object(_helpers_core__WEBPACK_IMPORTED_MODULE_4__["genBars"])(this.normalizedValues, this.boundary);
|
23093 | },
|
23094 | textY: function textY() {
|
23095 | var y = this.parsedHeight;
|
23096 | if (this.type === 'trend') y -= 4;
|
23097 | return y;
|
23098 | },
|
23099 | _radius: function _radius() {
|
23100 | return this.smooth === true ? 8 : Number(this.smooth);
|
23101 | }
|
23102 | },
|
23103 | watch: {
|
23104 | value: {
|
23105 | immediate: true,
|
23106 | handler: function handler() {
|
23107 | var _this = this;
|
23108 |
|
23109 | this.$nextTick(function () {
|
23110 | if (!_this.autoDraw || _this.type === 'bar') return;
|
23111 | var path = _this.$refs.path;
|
23112 | var length = path.getTotalLength();
|
23113 |
|
23114 | if (!_this.fill) {
|
23115 | path.style.transition = 'none';
|
23116 | path.style.strokeDasharray = length + ' ' + length;
|
23117 | path.style.strokeDashoffset = Math.abs(length - (_this.lastLength || 0)).toString();
|
23118 | path.getBoundingClientRect();
|
23119 | path.style.transition = "stroke-dashoffset " + _this.autoDrawDuration + "ms " + _this.autoDrawEasing;
|
23120 | path.style.strokeDashoffset = '0';
|
23121 | } else {
|
23122 | path.style.transformOrigin = 'bottom center';
|
23123 | path.style.transition = 'none';
|
23124 | path.style.transform = "scaleY(0)";
|
23125 | path.getBoundingClientRect();
|
23126 | path.style.transition = "transform " + _this.autoDrawDuration + "ms " + _this.autoDrawEasing;
|
23127 | path.style.transform = "scaleY(1)";
|
23128 | }
|
23129 |
|
23130 | _this.lastLength = length;
|
23131 | });
|
23132 | }
|
23133 | }
|
23134 | },
|
23135 | methods: {
|
23136 | genGradient: function genGradient() {
|
23137 | var _this = this;
|
23138 |
|
23139 | var gradientDirection = this.gradientDirection;
|
23140 | var gradient = this.gradient.slice();
|
23141 |
|
23142 |
|
23143 | if (!gradient.length) gradient.push('');
|
23144 | var len = Math.max(gradient.length - 1, 1);
|
23145 | var stops = gradient.reverse().map(function (color, index) {
|
23146 | return _this.$createElement('stop', {
|
23147 | attrs: {
|
23148 | offset: index / len,
|
23149 | 'stop-color': color || _this.color || 'currentColor'
|
23150 | }
|
23151 | });
|
23152 | });
|
23153 | return this.$createElement('defs', [this.$createElement('linearGradient', {
|
23154 | attrs: {
|
23155 | id: this._uid,
|
23156 | x1: +(gradientDirection === 'left'),
|
23157 | y1: +(gradientDirection === 'top'),
|
23158 | x2: +(gradientDirection === 'right'),
|
23159 | y2: +(gradientDirection === 'bottom')
|
23160 | }
|
23161 | }, stops)]);
|
23162 | },
|
23163 | genG: function genG(children) {
|
23164 | return this.$createElement('g', {
|
23165 | style: {
|
23166 | fontSize: '8',
|
23167 | textAnchor: 'middle',
|
23168 | dominantBaseline: 'mathematical',
|
23169 | fill: this.color || 'currentColor'
|
23170 | }
|
23171 | }, children);
|
23172 | },
|
23173 | genPath: function genPath() {
|
23174 | var points = Object(_helpers_core__WEBPACK_IMPORTED_MODULE_4__["genPoints"])(this.normalizedValues, this.boundary);
|
23175 | return this.$createElement('path', {
|
23176 | attrs: {
|
23177 | id: this._uid,
|
23178 | d: Object(_helpers_path__WEBPACK_IMPORTED_MODULE_5__["genPath"])(points, this._radius, this.fill, this.parsedHeight),
|
23179 | fill: this.fill ? "url(#" + this._uid + ")" : 'none',
|
23180 | stroke: this.fill ? 'none' : "url(#" + this._uid + ")"
|
23181 | },
|
23182 | ref: 'path'
|
23183 | });
|
23184 | },
|
23185 | genLabels: function genLabels(offsetX) {
|
23186 | var _this = this;
|
23187 |
|
23188 | var children = this.parsedLabels.map(function (item, i) {
|
23189 | return _this.$createElement('text', {
|
23190 | attrs: {
|
23191 | x: item.x + offsetX + _this._lineWidth / 2,
|
23192 | y: _this.textY + _this.parsedLabelSize * 0.75,
|
23193 | 'font-size': Number(_this.labelSize) || 7
|
23194 | }
|
23195 | }, [_this.genLabel(item, i)]);
|
23196 | });
|
23197 | return this.genG(children);
|
23198 | },
|
23199 | genLabel: function genLabel(item, index) {
|
23200 | return this.$scopedSlots.label ? this.$scopedSlots.label({
|
23201 | index: index,
|
23202 | value: item.value
|
23203 | }) : item.value;
|
23204 | },
|
23205 | genBars: function genBars() {
|
23206 | if (!this.value || this.totalValues < 2) return undefined;
|
23207 |
|
23208 | var bars = Object(_helpers_core__WEBPACK_IMPORTED_MODULE_4__["genBars"])(this.normalizedValues, this.boundary);
|
23209 |
|
23210 | var offsetX = (Math.abs(bars[0].x - bars[1].x) - this._lineWidth) / 2;
|
23211 | return this.$createElement('svg', {
|
23212 | attrs: {
|
23213 | display: 'block',
|
23214 | viewBox: "0 0 " + this.totalWidth + " " + this.totalHeight
|
23215 | },
|
23216 | class: this.classes
|
23217 | }, [this.genGradient(), this.genClipPath(bars, offsetX, this._lineWidth, 'sparkline-bar-' + this._uid), this.hasLabels ? this.genLabels(offsetX) : undefined, this.$createElement('g', {
|
23218 | attrs: {
|
23219 | 'clip-path': "url(#sparkline-bar-" + this._uid + "-clip)",
|
23220 | fill: "url(#" + this._uid + ")"
|
23221 | }
|
23222 | }, [this.$createElement('rect', {
|
23223 | attrs: {
|
23224 | x: 0,
|
23225 | y: 0,
|
23226 | width: this.totalWidth,
|
23227 | height: this.height
|
23228 | }
|
23229 | })])]);
|
23230 | },
|
23231 | genClipPath: function genClipPath(bars, offsetX, lineWidth, id) {
|
23232 | var _this = this;
|
23233 |
|
23234 | var rounding = typeof this.smooth === 'number' ? this.smooth : this.smooth ? 2 : 0;
|
23235 | return this.$createElement('clipPath', {
|
23236 | attrs: {
|
23237 | id: id + "-clip"
|
23238 | }
|
23239 | }, bars.map(function (item) {
|
23240 | return _this.$createElement('rect', {
|
23241 | attrs: {
|
23242 | x: item.x + offsetX,
|
23243 | y: item.y,
|
23244 | width: lineWidth,
|
23245 | height: item.height,
|
23246 | rx: rounding,
|
23247 | ry: rounding
|
23248 | }
|
23249 | }, [_this.autoDraw ? _this.$createElement('animate', {
|
23250 | attrs: {
|
23251 | attributeName: 'height',
|
23252 | from: 0,
|
23253 | to: item.height,
|
23254 | dur: _this.autoDrawDuration + "ms",
|
23255 | fill: 'freeze'
|
23256 | }
|
23257 | }) : undefined]);
|
23258 | }));
|
23259 | },
|
23260 | genTrend: function genTrend() {
|
23261 | return this.$createElement('svg', this.setTextColor(this.color, {
|
23262 | attrs: __assign({}, this.$attrs, {
|
23263 | display: 'block',
|
23264 | 'stroke-width': this._lineWidth || 1,
|
23265 | viewBox: "0 0 " + this.width + " " + this.totalHeight
|
23266 | }),
|
23267 | class: this.classes
|
23268 | }), [this.genGradient(), this.hasLabels && this.genLabels(-(this._lineWidth / 2)), this.genPath()]);
|
23269 | }
|
23270 | },
|
23271 | render: function render(h) {
|
23272 | if (this.totalValues < 2) return undefined;
|
23273 | return this.type === 'trend' ? this.genTrend() : this.genBars();
|
23274 | }
|
23275 | }));
|
23276 |
|
23277 | }),
|
23278 |
|
23279 | "./src/components/VSparkline/helpers/core.ts":
|
23280 |
|
23281 |
|
23282 |
|
23283 |
|
23284 | (function(module, __webpack_exports__, __webpack_require__) {
|
23285 |
|
23286 | "use strict";
|
23287 | __webpack_require__.r(__webpack_exports__);
|
23288 | __webpack_require__.d(__webpack_exports__, "genPoints", function() { return genPoints; });
|
23289 | __webpack_require__.d(__webpack_exports__, "genBars", function() { return genBars; });
|
23290 | var __read = undefined && undefined.__read || function (o, n) {
|
23291 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
23292 | if (!m) return o;
|
23293 | var i = m.call(o),
|
23294 | r,
|
23295 | ar = [],
|
23296 | e;
|
23297 |
|
23298 | try {
|
23299 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
23300 | ar.push(r.value);
|
23301 | }
|
23302 | } catch (error) {
|
23303 | e = {
|
23304 | error: error
|
23305 | };
|
23306 | } finally {
|
23307 | try {
|
23308 | if (r && !r.done && (m = i["return"])) m.call(i);
|
23309 | } finally {
|
23310 | if (e) throw e.error;
|
23311 | }
|
23312 | }
|
23313 |
|
23314 | return ar;
|
23315 | };
|
23316 |
|
23317 | var __spread = undefined && undefined.__spread || function () {
|
23318 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
23319 | ar = ar.concat(__read(arguments[i]));
|
23320 | }
|
23321 |
|
23322 | return ar;
|
23323 | };
|
23324 |
|
23325 | function genPoints(values, boundary) {
|
23326 | var minX = boundary.minX,
|
23327 | maxX = boundary.maxX,
|
23328 | minY = boundary.minY,
|
23329 | maxY = boundary.maxY;
|
23330 | var totalValues = values.length;
|
23331 | var maxValue = Math.max.apply(Math, __spread(values));
|
23332 | var minValue = Math.min.apply(Math, __spread(values));
|
23333 | var gridX = (maxX - minX) / (totalValues - 1);
|
23334 | var gridY = (maxY - minY) / (maxValue - minValue || 1);
|
23335 | return values.map(function (value, index) {
|
23336 | return {
|
23337 | x: minX + index * gridX,
|
23338 | y: maxY - (value - minValue) * gridY + +(index === totalValues - 1) * 0.00001 - +(index === 0) * 0.00001,
|
23339 | value: value
|
23340 | };
|
23341 | });
|
23342 | }
|
23343 | function genBars(values, boundary) {
|
23344 | var minX = boundary.minX,
|
23345 | maxX = boundary.maxX,
|
23346 | minY = boundary.minY,
|
23347 | maxY = boundary.maxY;
|
23348 | var totalValues = values.length;
|
23349 | var maxValue = Math.max.apply(Math, __spread(values));
|
23350 | var minValue = Math.min.apply(Math, __spread(values));
|
23351 | if (minValue > 0) minValue = 0;
|
23352 | if (maxValue < 0) maxValue = 0;
|
23353 | var gridX = maxX / totalValues;
|
23354 | var gridY = (maxY - minY) / (maxValue - minValue);
|
23355 | var horizonY = maxY - Math.abs(minValue * gridY);
|
23356 | return values.map(function (value, index) {
|
23357 | var height = Math.abs(gridY * value);
|
23358 | return {
|
23359 | x: minX + index * gridX,
|
23360 | y: horizonY - height + +(value < 0) * height,
|
23361 | height: height,
|
23362 | value: value
|
23363 | };
|
23364 | });
|
23365 | }
|
23366 |
|
23367 | }),
|
23368 |
|
23369 | "./src/components/VSparkline/helpers/math.ts":
|
23370 |
|
23371 |
|
23372 |
|
23373 |
|
23374 | (function(module, __webpack_exports__, __webpack_require__) {
|
23375 |
|
23376 | "use strict";
|
23377 | __webpack_require__.r(__webpack_exports__);
|
23378 | __webpack_require__.d(__webpack_exports__, "checkCollinear", function() { return checkCollinear; });
|
23379 | __webpack_require__.d(__webpack_exports__, "getDistance", function() { return getDistance; });
|
23380 | __webpack_require__.d(__webpack_exports__, "moveTo", function() { return moveTo; });
|
23381 | function int(value) {
|
23382 | return parseInt(value, 10);
|
23383 | }
|
23384 |
|
23385 |
|
23386 |
|
23387 |
|
23388 |
|
23389 |
|
23390 |
|
23391 | function checkCollinear(p0, p1, p2) {
|
23392 | return int(p0.x + p2.x) === int(2 * p1.x) && int(p0.y + p2.y) === int(2 * p1.y);
|
23393 | }
|
23394 | function getDistance(p1, p2) {
|
23395 | return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));
|
23396 | }
|
23397 | function moveTo(to, from, radius) {
|
23398 | var vector = {
|
23399 | x: to.x - from.x,
|
23400 | y: to.y - from.y
|
23401 | };
|
23402 | var length = Math.sqrt(vector.x * vector.x + vector.y * vector.y);
|
23403 | var unitVector = {
|
23404 | x: vector.x / length,
|
23405 | y: vector.y / length
|
23406 | };
|
23407 | return {
|
23408 | x: from.x + unitVector.x * radius,
|
23409 | y: from.y + unitVector.y * radius
|
23410 | };
|
23411 | }
|
23412 |
|
23413 | }),
|
23414 |
|
23415 | "./src/components/VSparkline/helpers/path.ts":
|
23416 |
|
23417 |
|
23418 |
|
23419 |
|
23420 | (function(module, __webpack_exports__, __webpack_require__) {
|
23421 |
|
23422 | "use strict";
|
23423 | __webpack_require__.r(__webpack_exports__);
|
23424 | __webpack_require__.d(__webpack_exports__, "genPath", function() { return genPath; });
|
23425 | var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSparkline/helpers/math.ts");
|
23426 |
|
23427 |
|
23428 |
|
23429 |
|
23430 |
|
23431 | function genPath(points, radius, fill, height) {
|
23432 | if (fill === void 0) {
|
23433 | fill = false;
|
23434 | }
|
23435 |
|
23436 | if (height === void 0) {
|
23437 | height = 75;
|
23438 | }
|
23439 |
|
23440 | var start = points.shift();
|
23441 | var end = points[points.length - 1];
|
23442 | return (fill ? "M" + start.x + " " + (height - start.x + 2) + " L" + start.x + " " + start.y : "M" + start.x + " " + start.y) + points.map(function (point, index) {
|
23443 | var next = points[index + 1];
|
23444 | var prev = points[index - 1] || start;
|
23445 | var isCollinear = next && Object(_math__WEBPACK_IMPORTED_MODULE_0__["checkCollinear"])(next, point, prev);
|
23446 |
|
23447 | if (!next || isCollinear) {
|
23448 | return "L" + point.x + " " + point.y;
|
23449 | }
|
23450 |
|
23451 | var threshold = Math.min(Object(_math__WEBPACK_IMPORTED_MODULE_0__["getDistance"])(prev, point), Object(_math__WEBPACK_IMPORTED_MODULE_0__["getDistance"])(next, point));
|
23452 | var isTooCloseForRadius = threshold / 2 < radius;
|
23453 | var radiusForPoint = isTooCloseForRadius ? threshold / 2 : radius;
|
23454 | var before = Object(_math__WEBPACK_IMPORTED_MODULE_0__["moveTo"])(prev, point, radiusForPoint);
|
23455 | var after = Object(_math__WEBPACK_IMPORTED_MODULE_0__["moveTo"])(next, point, radiusForPoint);
|
23456 | return "L" + before.x + " " + before.y + "S" + point.x + " " + point.y + " " + after.x + " " + after.y;
|
23457 | }).join('') + (fill ? "L" + end.x + " " + (height - start.x + 2) + " Z" : '');
|
23458 | }
|
23459 |
|
23460 | }),
|
23461 |
|
23462 | "./src/components/VSparkline/index.ts":
|
23463 |
|
23464 |
|
23465 |
|
23466 |
|
23467 | (function(module, __webpack_exports__, __webpack_require__) {
|
23468 |
|
23469 | "use strict";
|
23470 | __webpack_require__.r(__webpack_exports__);
|
23471 | var _VSparkline__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSparkline/VSparkline.ts");
|
23472 | __webpack_require__.d(__webpack_exports__, "VSparkline", function() { return _VSparkline__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
23473 |
|
23474 |
|
23475 |
|
23476 | __webpack_exports__["default"] = (_VSparkline__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
23477 |
|
23478 | }),
|
23479 |
|
23480 | "./src/components/VSpeedDial/VSpeedDial.sass":
|
23481 |
|
23482 |
|
23483 |
|
23484 |
|
23485 | (function(module, exports, __webpack_require__) {
|
23486 |
|
23487 |
|
23488 |
|
23489 | }),
|
23490 |
|
23491 | "./src/components/VSpeedDial/VSpeedDial.ts":
|
23492 |
|
23493 |
|
23494 |
|
23495 |
|
23496 | (function(module, __webpack_exports__, __webpack_require__) {
|
23497 |
|
23498 | "use strict";
|
23499 | __webpack_require__.r(__webpack_exports__);
|
23500 | var _VSpeedDial_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSpeedDial/VSpeedDial.sass");
|
23501 | var _VSpeedDial_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VSpeedDial_sass__WEBPACK_IMPORTED_MODULE_0__);
|
23502 | var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/toggleable/index.ts");
|
23503 | var _mixins_positionable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/positionable/index.ts");
|
23504 | var _mixins_transitionable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/transitionable/index.ts");
|
23505 | var _directives_click_outside__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/directives/click-outside/index.ts");
|
23506 | var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/util/mixins.ts");
|
23507 |
|
23508 |
|
23509 |
|
23510 |
|
23511 |
|
23512 |
|
23513 |
|
23514 |
|
23515 |
|
23516 |
|
23517 |
|
23518 |
|
23519 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(_mixins_positionable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_transitionable__WEBPACK_IMPORTED_MODULE_3__["default"]).extend({
|
23520 | name: 'v-speed-dial',
|
23521 | directives: {
|
23522 | ClickOutside: _directives_click_outside__WEBPACK_IMPORTED_MODULE_4__["default"]
|
23523 | },
|
23524 | props: {
|
23525 | direction: {
|
23526 | type: String,
|
23527 | default: 'top',
|
23528 | validator: function validator(val) {
|
23529 | return ['top', 'right', 'bottom', 'left'].includes(val);
|
23530 | }
|
23531 | },
|
23532 | openOnHover: Boolean,
|
23533 | transition: {
|
23534 | type: String,
|
23535 | default: 'scale-transition'
|
23536 | }
|
23537 | },
|
23538 | computed: {
|
23539 | classes: function classes() {
|
23540 | var _a;
|
23541 |
|
23542 | return _a = {
|
23543 | 'v-speed-dial': true,
|
23544 | 'v-speed-dial--top': this.top,
|
23545 | 'v-speed-dial--right': this.right,
|
23546 | 'v-speed-dial--bottom': this.bottom,
|
23547 | 'v-speed-dial--left': this.left,
|
23548 | 'v-speed-dial--absolute': this.absolute,
|
23549 | 'v-speed-dial--fixed': this.fixed
|
23550 | }, _a["v-speed-dial--direction-" + this.direction] = true, _a['v-speed-dial--is-active'] = this.isActive, _a;
|
23551 | }
|
23552 | },
|
23553 | render: function render(h) {
|
23554 | var _this = this;
|
23555 |
|
23556 | var children = [];
|
23557 | var data = {
|
23558 | class: this.classes,
|
23559 | directives: [{
|
23560 | name: 'click-outside',
|
23561 | value: function value() {
|
23562 | return _this.isActive = false;
|
23563 | }
|
23564 | }],
|
23565 | on: {
|
23566 | click: function click() {
|
23567 | return _this.isActive = !_this.isActive;
|
23568 | }
|
23569 | }
|
23570 | };
|
23571 |
|
23572 | if (this.openOnHover) {
|
23573 | data.on.mouseenter = function () {
|
23574 | return _this.isActive = true;
|
23575 | };
|
23576 |
|
23577 | data.on.mouseleave = function () {
|
23578 | return _this.isActive = false;
|
23579 | };
|
23580 | }
|
23581 |
|
23582 | if (this.isActive) {
|
23583 | var btnCount_1 = 0;
|
23584 | children = (this.$slots.default || []).map(function (b, i) {
|
23585 | if (b.tag && typeof b.componentOptions !== 'undefined' && (b.componentOptions.Ctor.options.name === 'v-btn' || b.componentOptions.Ctor.options.name === 'v-tooltip')) {
|
23586 | btnCount_1++;
|
23587 | return h('div', {
|
23588 | style: {
|
23589 | transitionDelay: btnCount_1 * 0.05 + 's'
|
23590 | },
|
23591 | key: i
|
23592 | }, [b]);
|
23593 | } else {
|
23594 | b.key = i;
|
23595 | return b;
|
23596 | }
|
23597 | });
|
23598 | }
|
23599 |
|
23600 | var list = h('transition-group', {
|
23601 | class: 'v-speed-dial__list',
|
23602 | props: {
|
23603 | name: this.transition,
|
23604 | mode: this.mode,
|
23605 | origin: this.origin,
|
23606 | tag: 'div'
|
23607 | }
|
23608 | }, children);
|
23609 | return h('div', data, [this.$slots.activator, list]);
|
23610 | }
|
23611 | }));
|
23612 |
|
23613 | }),
|
23614 |
|
23615 | "./src/components/VSpeedDial/index.ts":
|
23616 |
|
23617 |
|
23618 |
|
23619 |
|
23620 | (function(module, __webpack_exports__, __webpack_require__) {
|
23621 |
|
23622 | "use strict";
|
23623 | __webpack_require__.r(__webpack_exports__);
|
23624 | var _VSpeedDial__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSpeedDial/VSpeedDial.ts");
|
23625 | __webpack_require__.d(__webpack_exports__, "VSpeedDial", function() { return _VSpeedDial__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
23626 |
|
23627 |
|
23628 |
|
23629 | __webpack_exports__["default"] = (_VSpeedDial__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
23630 |
|
23631 | }),
|
23632 |
|
23633 | "./src/components/VStepper/VStepper.sass":
|
23634 |
|
23635 |
|
23636 |
|
23637 |
|
23638 | (function(module, exports, __webpack_require__) {
|
23639 |
|
23640 |
|
23641 |
|
23642 | }),
|
23643 |
|
23644 | "./src/components/VStepper/VStepper.ts":
|
23645 |
|
23646 |
|
23647 |
|
23648 |
|
23649 | (function(module, __webpack_exports__, __webpack_require__) {
|
23650 |
|
23651 | "use strict";
|
23652 | __webpack_require__.r(__webpack_exports__);
|
23653 | var _VStepper_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VStepper/VStepper.sass");
|
23654 | var _VStepper_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VStepper_sass__WEBPACK_IMPORTED_MODULE_0__);
|
23655 | var _mixins_registrable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/registrable/index.ts");
|
23656 | var _mixins_proxyable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/proxyable/index.ts");
|
23657 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
23658 | var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/mixins.ts");
|
23659 | var _util_console__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/util/console.ts");
|
23660 | var __assign = undefined && undefined.__assign || function () {
|
23661 | __assign = Object.assign || function (t) {
|
23662 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
23663 | s = arguments[i];
|
23664 |
|
23665 | for (var p in s) {
|
23666 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
23667 | }
|
23668 | }
|
23669 |
|
23670 | return t;
|
23671 | };
|
23672 |
|
23673 | return __assign.apply(this, arguments);
|
23674 | };
|
23675 |
|
23676 |
|
23677 |
|
23678 |
|
23679 |
|
23680 |
|
23681 |
|
23682 |
|
23683 |
|
23684 |
|
23685 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_1__["provide"])('stepper'), _mixins_proxyable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
23686 |
|
23687 |
|
23688 | __webpack_exports__["default"] = (baseMixins.extend({
|
23689 | name: 'v-stepper',
|
23690 | provide: function provide() {
|
23691 | return {
|
23692 | stepClick: this.stepClick,
|
23693 | isVertical: this.vertical
|
23694 | };
|
23695 | },
|
23696 | props: {
|
23697 | altLabels: Boolean,
|
23698 | nonLinear: Boolean,
|
23699 | vertical: Boolean
|
23700 | },
|
23701 | data: function data() {
|
23702 | return {
|
23703 | isBooted: false,
|
23704 | steps: [],
|
23705 | content: [],
|
23706 | isReverse: false
|
23707 | };
|
23708 | },
|
23709 | computed: {
|
23710 | classes: function classes() {
|
23711 | return __assign({
|
23712 | 'v-stepper--is-booted': this.isBooted,
|
23713 | 'v-stepper--vertical': this.vertical,
|
23714 | 'v-stepper--alt-labels': this.altLabels,
|
23715 | 'v-stepper--non-linear': this.nonLinear
|
23716 | }, this.themeClasses);
|
23717 | }
|
23718 | },
|
23719 | watch: {
|
23720 | internalValue: function internalValue(val, oldVal) {
|
23721 | this.isReverse = Number(val) < Number(oldVal);
|
23722 | oldVal && (this.isBooted = true);
|
23723 | this.updateView();
|
23724 | }
|
23725 | },
|
23726 | created: function created() {
|
23727 |
|
23728 | if (this.$listeners.input) {
|
23729 | Object(_util_console__WEBPACK_IMPORTED_MODULE_5__["breaking"])('@input', '@change', this);
|
23730 | }
|
23731 | },
|
23732 | mounted: function mounted() {
|
23733 | this.internalLazyValue = this.value || (this.steps[0] || {}).step || 1;
|
23734 | this.updateView();
|
23735 | },
|
23736 | methods: {
|
23737 | register: function register(item) {
|
23738 | if (item.$options.name === 'v-stepper-step') {
|
23739 | this.steps.push(item);
|
23740 | } else if (item.$options.name === 'v-stepper-content') {
|
23741 | item.isVertical = this.vertical;
|
23742 | this.content.push(item);
|
23743 | }
|
23744 | },
|
23745 | unregister: function unregister(item) {
|
23746 | if (item.$options.name === 'v-stepper-step') {
|
23747 | this.steps = this.steps.filter(function (i) {
|
23748 | return i !== item;
|
23749 | });
|
23750 | } else if (item.$options.name === 'v-stepper-content') {
|
23751 | item.isVertical = this.vertical;
|
23752 | this.content = this.content.filter(function (i) {
|
23753 | return i !== item;
|
23754 | });
|
23755 | }
|
23756 | },
|
23757 | stepClick: function stepClick(step) {
|
23758 | var _this = this;
|
23759 |
|
23760 | this.$nextTick(function () {
|
23761 | return _this.internalValue = step;
|
23762 | });
|
23763 | },
|
23764 | updateView: function updateView() {
|
23765 | for (var index = this.steps.length; --index >= 0;) {
|
23766 | this.steps[index].toggle(this.internalValue);
|
23767 | }
|
23768 |
|
23769 | for (var index = this.content.length; --index >= 0;) {
|
23770 | this.content[index].toggle(this.internalValue, this.isReverse);
|
23771 | }
|
23772 | }
|
23773 | },
|
23774 | render: function render(h) {
|
23775 | return h('div', {
|
23776 | staticClass: 'v-stepper',
|
23777 | class: this.classes
|
23778 | }, this.$slots.default);
|
23779 | }
|
23780 | }));
|
23781 |
|
23782 | }),
|
23783 |
|
23784 | "./src/components/VStepper/VStepperContent.ts":
|
23785 |
|
23786 |
|
23787 |
|
23788 |
|
23789 | (function(module, __webpack_exports__, __webpack_require__) {
|
23790 |
|
23791 | "use strict";
|
23792 | __webpack_require__.r(__webpack_exports__);
|
23793 | var _transitions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/transitions/index.ts");
|
23794 | var _mixins_registrable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/registrable/index.ts");
|
23795 | var _util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/helpers.ts");
|
23796 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
23797 |
|
23798 |
|
23799 |
|
23800 |
|
23801 |
|
23802 |
|
23803 |
|
23804 |
|
23805 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_1__["inject"])('stepper', 'v-stepper-content', 'v-stepper'));
|
23806 |
|
23807 |
|
23808 | __webpack_exports__["default"] = (baseMixins.extend().extend({
|
23809 | name: 'v-stepper-content',
|
23810 | inject: {
|
23811 | isVerticalProvided: {
|
23812 | from: 'isVertical'
|
23813 | }
|
23814 | },
|
23815 | props: {
|
23816 | step: {
|
23817 | type: [Number, String],
|
23818 | required: true
|
23819 | }
|
23820 | },
|
23821 | data: function data() {
|
23822 | return {
|
23823 | height: 0,
|
23824 |
|
23825 |
|
23826 | isActive: null,
|
23827 | isReverse: false,
|
23828 | isVertical: this.isVerticalProvided
|
23829 | };
|
23830 | },
|
23831 | computed: {
|
23832 | computedTransition: function computedTransition() {
|
23833 |
|
23834 | var reverse = this.$vuetify.rtl ? !this.isReverse : this.isReverse;
|
23835 | return reverse ? _transitions__WEBPACK_IMPORTED_MODULE_0__["VTabReverseTransition"] : _transitions__WEBPACK_IMPORTED_MODULE_0__["VTabTransition"];
|
23836 | },
|
23837 | styles: function styles() {
|
23838 | if (!this.isVertical) return {};
|
23839 | return {
|
23840 | height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["convertToUnit"])(this.height)
|
23841 | };
|
23842 | }
|
23843 | },
|
23844 | watch: {
|
23845 | isActive: function isActive(current, previous) {
|
23846 |
|
23847 |
|
23848 | if (current && previous == null) {
|
23849 | this.height = 'auto';
|
23850 | return;
|
23851 | }
|
23852 |
|
23853 | if (!this.isVertical) return;
|
23854 | if (this.isActive) this.enter();else this.leave();
|
23855 | }
|
23856 | },
|
23857 | mounted: function mounted() {
|
23858 | this.$refs.wrapper.addEventListener('transitionend', this.onTransition, false);
|
23859 | this.stepper && this.stepper.register(this);
|
23860 | },
|
23861 | beforeDestroy: function beforeDestroy() {
|
23862 | this.$refs.wrapper.removeEventListener('transitionend', this.onTransition, false);
|
23863 | this.stepper && this.stepper.unregister(this);
|
23864 | },
|
23865 | methods: {
|
23866 | onTransition: function onTransition(e) {
|
23867 | if (!this.isActive || e.propertyName !== 'height') return;
|
23868 | this.height = 'auto';
|
23869 | },
|
23870 | enter: function enter() {
|
23871 | var _this = this;
|
23872 |
|
23873 | var scrollHeight = 0;
|
23874 |
|
23875 | requestAnimationFrame(function () {
|
23876 | scrollHeight = _this.$refs.wrapper.scrollHeight;
|
23877 | });
|
23878 | this.height = 0;
|
23879 |
|
23880 | setTimeout(function () {
|
23881 | return _this.isActive && (_this.height = scrollHeight || 'auto');
|
23882 | }, 450);
|
23883 | },
|
23884 | leave: function leave() {
|
23885 | var _this = this;
|
23886 |
|
23887 | this.height = this.$refs.wrapper.clientHeight;
|
23888 | setTimeout(function () {
|
23889 | return _this.height = 0;
|
23890 | }, 10);
|
23891 | },
|
23892 | toggle: function toggle(step, reverse) {
|
23893 | this.isActive = step.toString() === this.step.toString();
|
23894 | this.isReverse = reverse;
|
23895 | }
|
23896 | },
|
23897 | render: function render(h) {
|
23898 | var contentData = {
|
23899 | staticClass: 'v-stepper__content'
|
23900 | };
|
23901 | var wrapperData = {
|
23902 | staticClass: 'v-stepper__wrapper',
|
23903 | style: this.styles,
|
23904 | ref: 'wrapper'
|
23905 | };
|
23906 |
|
23907 | if (!this.isVertical) {
|
23908 | contentData.directives = [{
|
23909 | name: 'show',
|
23910 | value: this.isActive
|
23911 | }];
|
23912 | }
|
23913 |
|
23914 | var wrapper = h('div', wrapperData, [this.$slots.default]);
|
23915 | var content = h('div', contentData, [wrapper]);
|
23916 | return h(this.computedTransition, {
|
23917 | on: this.$listeners
|
23918 | }, [content]);
|
23919 | }
|
23920 | }));
|
23921 |
|
23922 | }),
|
23923 |
|
23924 | "./src/components/VStepper/VStepperStep.ts":
|
23925 |
|
23926 |
|
23927 |
|
23928 |
|
23929 | (function(module, __webpack_exports__, __webpack_require__) {
|
23930 |
|
23931 | "use strict";
|
23932 | __webpack_require__.r(__webpack_exports__);
|
23933 | var _VIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
23934 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
23935 | var _mixins_registrable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/registrable/index.ts");
|
23936 | var _directives_ripple__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/directives/ripple/index.ts");
|
23937 | var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/mixins.ts");
|
23938 |
|
23939 |
|
23940 |
|
23941 |
|
23942 |
|
23943 |
|
23944 |
|
23945 |
|
23946 |
|
23947 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_2__["inject"])('stepper', 'v-stepper-step', 'v-stepper'));
|
23948 |
|
23949 |
|
23950 | __webpack_exports__["default"] = (baseMixins.extend().extend({
|
23951 | name: 'v-stepper-step',
|
23952 | directives: {
|
23953 | ripple: _directives_ripple__WEBPACK_IMPORTED_MODULE_3__["default"]
|
23954 | },
|
23955 | inject: ['stepClick'],
|
23956 | props: {
|
23957 | color: {
|
23958 | type: String,
|
23959 | default: 'primary'
|
23960 | },
|
23961 | complete: Boolean,
|
23962 | completeIcon: {
|
23963 | type: String,
|
23964 | default: '$complete'
|
23965 | },
|
23966 | editable: Boolean,
|
23967 | editIcon: {
|
23968 | type: String,
|
23969 | default: '$edit'
|
23970 | },
|
23971 | errorIcon: {
|
23972 | type: String,
|
23973 | default: '$error'
|
23974 | },
|
23975 | rules: {
|
23976 | type: Array,
|
23977 | default: function _default() {
|
23978 | return [];
|
23979 | }
|
23980 | },
|
23981 | step: [Number, String]
|
23982 | },
|
23983 | data: function data() {
|
23984 | return {
|
23985 | isActive: false,
|
23986 | isInactive: true
|
23987 | };
|
23988 | },
|
23989 | computed: {
|
23990 | classes: function classes() {
|
23991 | return {
|
23992 | 'v-stepper__step--active': this.isActive,
|
23993 | 'v-stepper__step--editable': this.editable,
|
23994 | 'v-stepper__step--inactive': this.isInactive,
|
23995 | 'v-stepper__step--error error--text': this.hasError,
|
23996 | 'v-stepper__step--complete': this.complete
|
23997 | };
|
23998 | },
|
23999 | hasError: function hasError() {
|
24000 | return this.rules.some(function (validate) {
|
24001 | return validate() !== true;
|
24002 | });
|
24003 | }
|
24004 | },
|
24005 | mounted: function mounted() {
|
24006 | this.stepper && this.stepper.register(this);
|
24007 | },
|
24008 | beforeDestroy: function beforeDestroy() {
|
24009 | this.stepper && this.stepper.unregister(this);
|
24010 | },
|
24011 | methods: {
|
24012 | click: function click(e) {
|
24013 | e.stopPropagation();
|
24014 | this.$emit('click', e);
|
24015 |
|
24016 | if (this.editable) {
|
24017 | this.stepClick(this.step);
|
24018 | }
|
24019 | },
|
24020 | genIcon: function genIcon(icon) {
|
24021 | return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_0__["default"], icon);
|
24022 | },
|
24023 | genLabel: function genLabel() {
|
24024 | return this.$createElement('div', {
|
24025 | staticClass: 'v-stepper__label'
|
24026 | }, this.$slots.default);
|
24027 | },
|
24028 | genStep: function genStep() {
|
24029 | var color = !this.hasError && (this.complete || this.isActive) ? this.color : false;
|
24030 | return this.$createElement('span', this.setBackgroundColor(color, {
|
24031 | staticClass: 'v-stepper__step__step'
|
24032 | }), this.genStepContent());
|
24033 | },
|
24034 | genStepContent: function genStepContent() {
|
24035 | var children = [];
|
24036 |
|
24037 | if (this.hasError) {
|
24038 | children.push(this.genIcon(this.errorIcon));
|
24039 | } else if (this.complete) {
|
24040 | if (this.editable) {
|
24041 | children.push(this.genIcon(this.editIcon));
|
24042 | } else {
|
24043 | children.push(this.genIcon(this.completeIcon));
|
24044 | }
|
24045 | } else {
|
24046 | children.push(String(this.step));
|
24047 | }
|
24048 |
|
24049 | return children;
|
24050 | },
|
24051 | toggle: function toggle(step) {
|
24052 | this.isActive = step.toString() === this.step.toString();
|
24053 | this.isInactive = Number(step) < Number(this.step);
|
24054 | }
|
24055 | },
|
24056 | render: function render(h) {
|
24057 | return h('div', {
|
24058 | staticClass: 'v-stepper__step',
|
24059 | class: this.classes,
|
24060 | directives: [{
|
24061 | name: 'ripple',
|
24062 | value: this.editable
|
24063 | }],
|
24064 | on: {
|
24065 | click: this.click
|
24066 | }
|
24067 | }, [this.genStep(), this.genLabel()]);
|
24068 | }
|
24069 | }));
|
24070 |
|
24071 | }),
|
24072 |
|
24073 | "./src/components/VStepper/index.ts":
|
24074 |
|
24075 |
|
24076 |
|
24077 |
|
24078 | (function(module, __webpack_exports__, __webpack_require__) {
|
24079 |
|
24080 | "use strict";
|
24081 | __webpack_require__.r(__webpack_exports__);
|
24082 | __webpack_require__.d(__webpack_exports__, "VStepperHeader", function() { return VStepperHeader; });
|
24083 | __webpack_require__.d(__webpack_exports__, "VStepperItems", function() { return VStepperItems; });
|
24084 | var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/helpers.ts");
|
24085 | var _VStepper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VStepper/VStepper.ts");
|
24086 | __webpack_require__.d(__webpack_exports__, "VStepper", function() { return _VStepper__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
24087 |
|
24088 | var _VStepperStep__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VStepper/VStepperStep.ts");
|
24089 | __webpack_require__.d(__webpack_exports__, "VStepperStep", function() { return _VStepperStep__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
24090 |
|
24091 | var _VStepperContent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VStepper/VStepperContent.ts");
|
24092 | __webpack_require__.d(__webpack_exports__, "VStepperContent", function() { return _VStepperContent__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
24093 |
|
24094 |
|
24095 |
|
24096 |
|
24097 |
|
24098 | var VStepperHeader = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('v-stepper__header');
|
24099 | var VStepperItems = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('v-stepper__items');
|
24100 |
|
24101 | __webpack_exports__["default"] = ({
|
24102 | $_vuetify_subcomponents: {
|
24103 | VStepper: _VStepper__WEBPACK_IMPORTED_MODULE_1__["default"],
|
24104 | VStepperContent: _VStepperContent__WEBPACK_IMPORTED_MODULE_3__["default"],
|
24105 | VStepperStep: _VStepperStep__WEBPACK_IMPORTED_MODULE_2__["default"],
|
24106 | VStepperHeader: VStepperHeader,
|
24107 | VStepperItems: VStepperItems
|
24108 | }
|
24109 | });
|
24110 |
|
24111 | }),
|
24112 |
|
24113 | "./src/components/VSubheader/VSubheader.sass":
|
24114 |
|
24115 |
|
24116 |
|
24117 |
|
24118 | (function(module, exports, __webpack_require__) {
|
24119 |
|
24120 |
|
24121 |
|
24122 | }),
|
24123 |
|
24124 | "./src/components/VSubheader/VSubheader.ts":
|
24125 |
|
24126 |
|
24127 |
|
24128 |
|
24129 | (function(module, __webpack_exports__, __webpack_require__) {
|
24130 |
|
24131 | "use strict";
|
24132 | __webpack_require__.r(__webpack_exports__);
|
24133 | var _VSubheader_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSubheader/VSubheader.sass");
|
24134 | var _VSubheader_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VSubheader_sass__WEBPACK_IMPORTED_MODULE_0__);
|
24135 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
24136 | var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/mixins.ts");
|
24137 | var __assign = undefined && undefined.__assign || function () {
|
24138 | __assign = Object.assign || function (t) {
|
24139 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
24140 | s = arguments[i];
|
24141 |
|
24142 | for (var p in s) {
|
24143 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
24144 | }
|
24145 | }
|
24146 |
|
24147 | return t;
|
24148 | };
|
24149 |
|
24150 | return __assign.apply(this, arguments);
|
24151 | };
|
24152 |
|
24153 |
|
24154 |
|
24155 |
|
24156 |
|
24157 |
|
24158 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_mixins_themeable__WEBPACK_IMPORTED_MODULE_1__["default"]
|
24159 |
|
24160 | ).extend({
|
24161 | name: 'v-subheader',
|
24162 | props: {
|
24163 | inset: Boolean
|
24164 | },
|
24165 | render: function render(h) {
|
24166 | return h('div', {
|
24167 | staticClass: 'v-subheader',
|
24168 | class: __assign({
|
24169 | 'v-subheader--inset': this.inset
|
24170 | }, this.themeClasses),
|
24171 | attrs: this.$attrs,
|
24172 | on: this.$listeners
|
24173 | }, this.$slots.default);
|
24174 | }
|
24175 | }));
|
24176 |
|
24177 | }),
|
24178 |
|
24179 | "./src/components/VSubheader/index.ts":
|
24180 |
|
24181 |
|
24182 |
|
24183 |
|
24184 | (function(module, __webpack_exports__, __webpack_require__) {
|
24185 |
|
24186 | "use strict";
|
24187 | __webpack_require__.r(__webpack_exports__);
|
24188 | var _VSubheader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSubheader/VSubheader.ts");
|
24189 | __webpack_require__.d(__webpack_exports__, "VSubheader", function() { return _VSubheader__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
24190 |
|
24191 |
|
24192 |
|
24193 | __webpack_exports__["default"] = (_VSubheader__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
24194 |
|
24195 | }),
|
24196 |
|
24197 | "./src/components/VSwitch/VSwitch.sass":
|
24198 |
|
24199 |
|
24200 |
|
24201 |
|
24202 | (function(module, exports, __webpack_require__) {
|
24203 |
|
24204 |
|
24205 |
|
24206 | }),
|
24207 |
|
24208 | "./src/components/VSwitch/VSwitch.ts":
|
24209 |
|
24210 |
|
24211 |
|
24212 |
|
24213 | (function(module, __webpack_exports__, __webpack_require__) {
|
24214 |
|
24215 | "use strict";
|
24216 | __webpack_require__.r(__webpack_exports__);
|
24217 | var _styles_components_selection_controls_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/styles/components/_selection-controls.sass");
|
24218 | var _styles_components_selection_controls_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_styles_components_selection_controls_sass__WEBPACK_IMPORTED_MODULE_0__);
|
24219 | var _VSwitch_sass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VSwitch/VSwitch.sass");
|
24220 | var _VSwitch_sass__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(_VSwitch_sass__WEBPACK_IMPORTED_MODULE_1__);
|
24221 | var _mixins_selectable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/selectable/index.ts");
|
24222 | var _VInput__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VInput/index.ts");
|
24223 | var _directives_touch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/directives/touch/index.ts");
|
24224 | var _transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/components/transitions/index.ts");
|
24225 | var _VProgressCircular_VProgressCircular__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/components/VProgressCircular/VProgressCircular.ts");
|
24226 | var _util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/util/helpers.ts");
|
24227 | var __assign = undefined && undefined.__assign || function () {
|
24228 | __assign = Object.assign || function (t) {
|
24229 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
24230 | s = arguments[i];
|
24231 |
|
24232 | for (var p in s) {
|
24233 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
24234 | }
|
24235 | }
|
24236 |
|
24237 | return t;
|
24238 | };
|
24239 |
|
24240 | return __assign.apply(this, arguments);
|
24241 | };
|
24242 |
|
24243 |
|
24244 |
|
24245 |
|
24246 |
|
24247 |
|
24248 |
|
24249 |
|
24250 |
|
24251 |
|
24252 |
|
24253 |
|
24254 |
|
24255 |
|
24256 |
|
24257 |
|
24258 | __webpack_exports__["default"] = (_mixins_selectable__WEBPACK_IMPORTED_MODULE_2__["default"].extend({
|
24259 | name: 'v-switch',
|
24260 | directives: {
|
24261 | Touch: _directives_touch__WEBPACK_IMPORTED_MODULE_4__["default"]
|
24262 | },
|
24263 | props: {
|
24264 | inset: Boolean,
|
24265 | loading: {
|
24266 | type: [Boolean, String],
|
24267 | default: false
|
24268 | },
|
24269 | flat: {
|
24270 | type: Boolean,
|
24271 | default: false
|
24272 | }
|
24273 | },
|
24274 | computed: {
|
24275 | classes: function classes() {
|
24276 | return __assign({}, _VInput__WEBPACK_IMPORTED_MODULE_3__["default"].options.computed.classes.call(this), {
|
24277 | 'v-input--selection-controls v-input--switch': true,
|
24278 | 'v-input--switch--flat': this.flat,
|
24279 | 'v-input--switch--inset': this.inset
|
24280 | });
|
24281 | },
|
24282 | attrs: function attrs() {
|
24283 | return {
|
24284 | 'aria-checked': String(this.isActive),
|
24285 | 'aria-disabled': String(this.disabled),
|
24286 | role: 'switch'
|
24287 | };
|
24288 | },
|
24289 |
|
24290 |
|
24291 |
|
24292 | validationState: function validationState() {
|
24293 | if (this.hasError && this.shouldValidate) return 'error';
|
24294 | if (this.hasSuccess) return 'success';
|
24295 | if (this.hasColor) return this.computedColor;
|
24296 | return undefined;
|
24297 | },
|
24298 | switchData: function switchData() {
|
24299 | return this.setTextColor(this.loading ? undefined : this.validationState, {
|
24300 | class: this.themeClasses
|
24301 | });
|
24302 | }
|
24303 | },
|
24304 | methods: {
|
24305 | genDefaultSlot: function genDefaultSlot() {
|
24306 | return [this.genSwitch(), this.genLabel()];
|
24307 | },
|
24308 | genSwitch: function genSwitch() {
|
24309 | return this.$createElement('div', {
|
24310 | staticClass: 'v-input--selection-controls__input'
|
24311 | }, [this.genInput('checkbox', __assign({}, this.attrs, this.attrs$)), this.genRipple(this.setTextColor(this.validationState, {
|
24312 | directives: [{
|
24313 | name: 'touch',
|
24314 | value: {
|
24315 | left: this.onSwipeLeft,
|
24316 | right: this.onSwipeRight
|
24317 | }
|
24318 | }]
|
24319 | })), this.$createElement('div', __assign({
|
24320 | staticClass: 'v-input--switch__track'
|
24321 | }, this.switchData)), this.$createElement('div', __assign({
|
24322 | staticClass: 'v-input--switch__thumb'
|
24323 | }, this.switchData), [this.genProgress()])]);
|
24324 | },
|
24325 | genProgress: function genProgress() {
|
24326 | return this.$createElement(_transitions__WEBPACK_IMPORTED_MODULE_5__["VFabTransition"], {}, [this.loading === false ? null : this.$slots.progress || this.$createElement(_VProgressCircular_VProgressCircular__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
24327 | props: {
|
24328 | color: this.loading === true || this.loading === '' ? this.color || 'primary' : this.loading,
|
24329 | size: 16,
|
24330 | width: 2,
|
24331 | indeterminate: true
|
24332 | }
|
24333 | })]);
|
24334 | },
|
24335 | onSwipeLeft: function onSwipeLeft() {
|
24336 | if (this.isActive) this.onChange();
|
24337 | },
|
24338 | onSwipeRight: function onSwipeRight() {
|
24339 | if (!this.isActive) this.onChange();
|
24340 | },
|
24341 | onKeydown: function onKeydown(e) {
|
24342 | if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_7__["keyCodes"].left && this.isActive || e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_7__["keyCodes"].right && !this.isActive) this.onChange();
|
24343 | }
|
24344 | }
|
24345 | }));
|
24346 |
|
24347 | }),
|
24348 |
|
24349 | "./src/components/VSwitch/index.ts":
|
24350 |
|
24351 |
|
24352 |
|
24353 |
|
24354 | (function(module, __webpack_exports__, __webpack_require__) {
|
24355 |
|
24356 | "use strict";
|
24357 | __webpack_require__.r(__webpack_exports__);
|
24358 | var _VSwitch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSwitch/VSwitch.ts");
|
24359 | __webpack_require__.d(__webpack_exports__, "VSwitch", function() { return _VSwitch__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
24360 |
|
24361 |
|
24362 |
|
24363 | __webpack_exports__["default"] = (_VSwitch__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
24364 |
|
24365 | }),
|
24366 |
|
24367 | "./src/components/VSystemBar/VSystemBar.sass":
|
24368 |
|
24369 |
|
24370 |
|
24371 |
|
24372 | (function(module, exports, __webpack_require__) {
|
24373 |
|
24374 |
|
24375 |
|
24376 | }),
|
24377 |
|
24378 | "./src/components/VSystemBar/VSystemBar.ts":
|
24379 |
|
24380 |
|
24381 |
|
24382 |
|
24383 | (function(module, __webpack_exports__, __webpack_require__) {
|
24384 |
|
24385 | "use strict";
|
24386 | __webpack_require__.r(__webpack_exports__);
|
24387 | var _VSystemBar_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSystemBar/VSystemBar.sass");
|
24388 | var _VSystemBar_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VSystemBar_sass__WEBPACK_IMPORTED_MODULE_0__);
|
24389 | var _mixins_applicationable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/applicationable/index.ts");
|
24390 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
24391 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
24392 | var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/mixins.ts");
|
24393 | var _util_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/util/helpers.ts");
|
24394 | var __assign = undefined && undefined.__assign || function () {
|
24395 | __assign = Object.assign || function (t) {
|
24396 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
24397 | s = arguments[i];
|
24398 |
|
24399 | for (var p in s) {
|
24400 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
24401 | }
|
24402 | }
|
24403 |
|
24404 | return t;
|
24405 | };
|
24406 |
|
24407 | return __assign.apply(this, arguments);
|
24408 | };
|
24409 |
|
24410 |
|
24411 |
|
24412 |
|
24413 |
|
24414 |
|
24415 |
|
24416 |
|
24417 |
|
24418 |
|
24419 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_mixins_applicationable__WEBPACK_IMPORTED_MODULE_1__["default"])('bar', ['height', 'window']), _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__["default"]
|
24420 |
|
24421 | ).extend({
|
24422 | name: 'v-system-bar',
|
24423 | props: {
|
24424 | height: [Number, String],
|
24425 | lightsOut: Boolean,
|
24426 | window: Boolean
|
24427 | },
|
24428 | computed: {
|
24429 | classes: function classes() {
|
24430 | return __assign({
|
24431 | 'v-system-bar--lights-out': this.lightsOut,
|
24432 | 'v-system-bar--absolute': this.absolute,
|
24433 | 'v-system-bar--fixed': !this.absolute && (this.app || this.fixed),
|
24434 | 'v-system-bar--window': this.window
|
24435 | }, this.themeClasses);
|
24436 | },
|
24437 | computedHeight: function computedHeight() {
|
24438 | if (this.height) {
|
24439 | return isNaN(parseInt(this.height)) ? this.height : parseInt(this.height);
|
24440 | }
|
24441 |
|
24442 | return this.window ? 32 : 24;
|
24443 | },
|
24444 | styles: function styles() {
|
24445 | return {
|
24446 | height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["convertToUnit"])(this.computedHeight)
|
24447 | };
|
24448 | }
|
24449 | },
|
24450 | methods: {
|
24451 | updateApplication: function updateApplication() {
|
24452 | return this.$el ? this.$el.clientHeight : this.computedHeight;
|
24453 | }
|
24454 | },
|
24455 | render: function render(h) {
|
24456 | var data = {
|
24457 | staticClass: 'v-system-bar',
|
24458 | class: this.classes,
|
24459 | style: this.styles,
|
24460 | on: this.$listeners
|
24461 | };
|
24462 | return h('div', this.setBackgroundColor(this.color, data), Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["getSlot"])(this));
|
24463 | }
|
24464 | }));
|
24465 |
|
24466 | }),
|
24467 |
|
24468 | "./src/components/VSystemBar/index.ts":
|
24469 |
|
24470 |
|
24471 |
|
24472 |
|
24473 | (function(module, __webpack_exports__, __webpack_require__) {
|
24474 |
|
24475 | "use strict";
|
24476 | __webpack_require__.r(__webpack_exports__);
|
24477 | var _VSystemBar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSystemBar/VSystemBar.ts");
|
24478 | __webpack_require__.d(__webpack_exports__, "VSystemBar", function() { return _VSystemBar__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
24479 |
|
24480 |
|
24481 |
|
24482 | __webpack_exports__["default"] = (_VSystemBar__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
24483 |
|
24484 | }),
|
24485 |
|
24486 | "./src/components/VTabs/VTab.ts":
|
24487 |
|
24488 |
|
24489 |
|
24490 |
|
24491 | (function(module, __webpack_exports__, __webpack_require__) {
|
24492 |
|
24493 | "use strict";
|
24494 | __webpack_require__.r(__webpack_exports__);
|
24495 | var _mixins_groupable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/mixins/groupable/index.ts");
|
24496 | var _mixins_routable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/routable/index.ts");
|
24497 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
24498 | var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/helpers.ts");
|
24499 | var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/mixins.ts");
|
24500 | var __assign = undefined && undefined.__assign || function () {
|
24501 | __assign = Object.assign || function (t) {
|
24502 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
24503 | s = arguments[i];
|
24504 |
|
24505 | for (var p in s) {
|
24506 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
24507 | }
|
24508 | }
|
24509 |
|
24510 | return t;
|
24511 | };
|
24512 |
|
24513 | return __assign.apply(this, arguments);
|
24514 | };
|
24515 |
|
24516 |
|
24517 |
|
24518 |
|
24519 |
|
24520 |
|
24521 |
|
24522 |
|
24523 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_mixins_routable__WEBPACK_IMPORTED_MODULE_1__["default"],
|
24524 |
|
24525 | Object(_mixins_groupable__WEBPACK_IMPORTED_MODULE_0__["factory"])('tabsBar'), _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]);
|
24526 | __webpack_exports__["default"] = (baseMixins.extend().extend().extend({
|
24527 | name: 'v-tab',
|
24528 | props: {
|
24529 | ripple: {
|
24530 | type: [Boolean, Object],
|
24531 | default: true
|
24532 | }
|
24533 | },
|
24534 | data: function data() {
|
24535 | return {
|
24536 | proxyClass: 'v-tab--active'
|
24537 | };
|
24538 | },
|
24539 | computed: {
|
24540 | classes: function classes() {
|
24541 | return __assign({
|
24542 | 'v-tab': true
|
24543 | }, _mixins_routable__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this), {
|
24544 | 'v-tab--disabled': this.disabled
|
24545 | }, this.groupClasses);
|
24546 | },
|
24547 | value: function value() {
|
24548 | var to = this.to || this.href || '';
|
24549 |
|
24550 | if (this.$router && this.to === Object(this.to)) {
|
24551 | var resolve = this.$router.resolve(this.to, this.$route, this.append);
|
24552 | to = resolve.href;
|
24553 | }
|
24554 |
|
24555 | return to.replace('#', '');
|
24556 | }
|
24557 | },
|
24558 | mounted: function mounted() {
|
24559 | this.onRouteChange();
|
24560 | },
|
24561 | methods: {
|
24562 | click: function click(e) {
|
24563 |
|
24564 |
|
24565 |
|
24566 | if (this.href && this.href.indexOf('#') > -1) e.preventDefault();
|
24567 | if (e.detail) this.$el.blur();
|
24568 | this.$emit('click', e);
|
24569 | this.to || this.toggle();
|
24570 | }
|
24571 | },
|
24572 | render: function render(h) {
|
24573 | var _this = this;
|
24574 |
|
24575 | var _a = this.generateRouteLink(),
|
24576 | tag = _a.tag,
|
24577 | data = _a.data;
|
24578 |
|
24579 | data.attrs = __assign({}, data.attrs, {
|
24580 | 'aria-selected': String(this.isActive),
|
24581 | role: 'tab',
|
24582 | tabindex: 0
|
24583 | });
|
24584 | data.on = __assign({}, data.on, {
|
24585 | keydown: function keydown(e) {
|
24586 | if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].enter) _this.click(e);
|
24587 |
|
24588 | _this.$emit('keydown', e);
|
24589 | }
|
24590 | });
|
24591 | return h(tag, data, this.$slots.default);
|
24592 | }
|
24593 | }));
|
24594 |
|
24595 | }),
|
24596 |
|
24597 | "./src/components/VTabs/VTabItem.ts":
|
24598 |
|
24599 |
|
24600 |
|
24601 |
|
24602 | (function(module, __webpack_exports__, __webpack_require__) {
|
24603 |
|
24604 | "use strict";
|
24605 | __webpack_require__.r(__webpack_exports__);
|
24606 | var _VWindow_VWindowItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VWindow/VWindowItem.ts");
|
24607 |
|
24608 |
|
24609 |
|
24610 |
|
24611 | __webpack_exports__["default"] = (_VWindow_VWindowItem__WEBPACK_IMPORTED_MODULE_0__["default"].extend({
|
24612 | name: 'v-tab-item',
|
24613 | props: {
|
24614 | id: String
|
24615 | },
|
24616 | methods: {
|
24617 | genWindowItem: function genWindowItem() {
|
24618 | var item = _VWindow_VWindowItem__WEBPACK_IMPORTED_MODULE_0__["default"].options.methods.genWindowItem.call(this);
|
24619 | item.data.domProps = item.data.domProps || {};
|
24620 | item.data.domProps.id = this.id || this.value;
|
24621 | return item;
|
24622 | }
|
24623 | }
|
24624 | }));
|
24625 |
|
24626 | }),
|
24627 |
|
24628 | "./src/components/VTabs/VTabs.sass":
|
24629 |
|
24630 |
|
24631 |
|
24632 |
|
24633 | (function(module, exports, __webpack_require__) {
|
24634 |
|
24635 |
|
24636 |
|
24637 | }),
|
24638 |
|
24639 | "./src/components/VTabs/VTabs.ts":
|
24640 |
|
24641 |
|
24642 |
|
24643 |
|
24644 | (function(module, __webpack_exports__, __webpack_require__) {
|
24645 |
|
24646 | "use strict";
|
24647 | __webpack_require__.r(__webpack_exports__);
|
24648 | var _VTabs_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VTabs/VTabs.sass");
|
24649 | var _VTabs_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VTabs_sass__WEBPACK_IMPORTED_MODULE_0__);
|
24650 | var _VTabsBar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VTabs/VTabsBar.ts");
|
24651 | var _VTabsItems__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VTabs/VTabsItems.ts");
|
24652 | var _VTabsSlider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VTabs/VTabsSlider.ts");
|
24653 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
24654 | var _mixins_proxyable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/proxyable/index.ts");
|
24655 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
24656 | var _directives_resize__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/directives/resize/index.ts");
|
24657 | var _util_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/util/helpers.ts");
|
24658 | var _util_mixins__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__( "./src/util/mixins.ts");
|
24659 | var __assign = undefined && undefined.__assign || function () {
|
24660 | __assign = Object.assign || function (t) {
|
24661 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
24662 | s = arguments[i];
|
24663 |
|
24664 | for (var p in s) {
|
24665 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
24666 | }
|
24667 | }
|
24668 |
|
24669 | return t;
|
24670 | };
|
24671 |
|
24672 | return __assign.apply(this, arguments);
|
24673 | };
|
24674 |
|
24675 |
|
24676 |
|
24677 |
|
24678 |
|
24679 |
|
24680 |
|
24681 |
|
24682 |
|
24683 |
|
24684 |
|
24685 |
|
24686 |
|
24687 |
|
24688 |
|
24689 |
|
24690 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_9__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_proxyable__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_6__["default"]);
|
24691 | __webpack_exports__["default"] = (baseMixins.extend().extend({
|
24692 | name: 'v-tabs',
|
24693 | directives: {
|
24694 | Resize: _directives_resize__WEBPACK_IMPORTED_MODULE_7__["default"]
|
24695 | },
|
24696 | props: {
|
24697 | activeClass: {
|
24698 | type: String,
|
24699 | default: ''
|
24700 | },
|
24701 | alignWithTitle: Boolean,
|
24702 | backgroundColor: String,
|
24703 | centerActive: Boolean,
|
24704 | centered: Boolean,
|
24705 | fixedTabs: Boolean,
|
24706 | grow: Boolean,
|
24707 | height: {
|
24708 | type: [Number, String],
|
24709 | default: undefined
|
24710 | },
|
24711 | hideSlider: Boolean,
|
24712 | iconsAndText: Boolean,
|
24713 | mobileBreakPoint: {
|
24714 | type: [Number, String],
|
24715 | default: 1264
|
24716 | },
|
24717 | nextIcon: {
|
24718 | type: String,
|
24719 | default: '$next'
|
24720 | },
|
24721 | optional: Boolean,
|
24722 | prevIcon: {
|
24723 | type: String,
|
24724 | default: '$prev'
|
24725 | },
|
24726 | right: Boolean,
|
24727 | showArrows: Boolean,
|
24728 | sliderColor: String,
|
24729 | sliderSize: {
|
24730 | type: [Number, String],
|
24731 | default: 2
|
24732 | },
|
24733 | vertical: Boolean
|
24734 | },
|
24735 | data: function data() {
|
24736 | return {
|
24737 | resizeTimeout: 0,
|
24738 | slider: {
|
24739 | height: null,
|
24740 | left: null,
|
24741 | right: null,
|
24742 | top: null,
|
24743 | width: null
|
24744 | },
|
24745 | transitionTime: 300
|
24746 | };
|
24747 | },
|
24748 | computed: {
|
24749 | classes: function classes() {
|
24750 | return __assign({
|
24751 | 'v-tabs--align-with-title': this.alignWithTitle,
|
24752 | 'v-tabs--centered': this.centered,
|
24753 | 'v-tabs--fixed-tabs': this.fixedTabs,
|
24754 | 'v-tabs--grow': this.grow,
|
24755 | 'v-tabs--icons-and-text': this.iconsAndText,
|
24756 | 'v-tabs--right': this.right,
|
24757 | 'v-tabs--vertical': this.vertical
|
24758 | }, this.themeClasses);
|
24759 | },
|
24760 | isReversed: function isReversed() {
|
24761 | return this.$vuetify.rtl && this.vertical;
|
24762 | },
|
24763 | sliderStyles: function sliderStyles() {
|
24764 | return {
|
24765 | height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["convertToUnit"])(this.slider.height),
|
24766 | left: this.isReversed ? undefined : Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["convertToUnit"])(this.slider.left),
|
24767 | right: this.isReversed ? Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["convertToUnit"])(this.slider.right) : undefined,
|
24768 | top: this.vertical ? Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["convertToUnit"])(this.slider.top) : undefined,
|
24769 | transition: this.slider.left != null ? null : 'none',
|
24770 | width: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["convertToUnit"])(this.slider.width)
|
24771 | };
|
24772 | },
|
24773 | computedColor: function computedColor() {
|
24774 | if (this.color) return this.color;else if (this.isDark && !this.appIsDark) return 'white';else return 'primary';
|
24775 | }
|
24776 | },
|
24777 | watch: {
|
24778 | alignWithTitle: 'callSlider',
|
24779 | centered: 'callSlider',
|
24780 | centerActive: 'callSlider',
|
24781 | fixedTabs: 'callSlider',
|
24782 | grow: 'callSlider',
|
24783 | right: 'callSlider',
|
24784 | showArrows: 'callSlider',
|
24785 | vertical: 'callSlider',
|
24786 | '$vuetify.application.left': 'onResize',
|
24787 | '$vuetify.application.right': 'onResize',
|
24788 | '$vuetify.rtl': 'onResize'
|
24789 | },
|
24790 | mounted: function mounted() {
|
24791 | var _this = this;
|
24792 |
|
24793 | this.$nextTick(function () {
|
24794 | window.setTimeout(_this.callSlider, 30);
|
24795 | });
|
24796 | },
|
24797 | methods: {
|
24798 | callSlider: function callSlider() {
|
24799 | var _this = this;
|
24800 |
|
24801 | if (this.hideSlider || !this.$refs.items || !this.$refs.items.selectedItems.length) {
|
24802 | this.slider.width = 0;
|
24803 | return false;
|
24804 | }
|
24805 |
|
24806 | this.$nextTick(function () {
|
24807 |
|
24808 | var activeTab = _this.$refs.items.selectedItems[0];
|
24809 |
|
24810 |
|
24811 | if (!activeTab || !activeTab.$el) {
|
24812 | _this.slider.width = 0;
|
24813 | _this.slider.left = 0;
|
24814 | return;
|
24815 | }
|
24816 |
|
24817 | var el = activeTab.$el;
|
24818 | _this.slider = {
|
24819 | height: !_this.vertical ? Number(_this.sliderSize) : el.scrollHeight,
|
24820 | left: _this.vertical ? 0 : el.offsetLeft,
|
24821 | right: _this.vertical ? 0 : el.offsetLeft + el.offsetWidth,
|
24822 | top: el.offsetTop,
|
24823 | width: _this.vertical ? Number(_this.sliderSize) : el.scrollWidth
|
24824 | };
|
24825 | });
|
24826 | return true;
|
24827 | },
|
24828 | genBar: function genBar(items, slider) {
|
24829 | var _this = this;
|
24830 |
|
24831 | var data = {
|
24832 | style: {
|
24833 | height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["convertToUnit"])(this.height)
|
24834 | },
|
24835 | props: {
|
24836 | activeClass: this.activeClass,
|
24837 | centerActive: this.centerActive,
|
24838 | dark: this.dark,
|
24839 | light: this.light,
|
24840 | mandatory: !this.optional,
|
24841 | mobileBreakPoint: this.mobileBreakPoint,
|
24842 | nextIcon: this.nextIcon,
|
24843 | prevIcon: this.prevIcon,
|
24844 | showArrows: this.showArrows,
|
24845 | value: this.internalValue
|
24846 | },
|
24847 | on: {
|
24848 | 'call:slider': this.callSlider,
|
24849 | change: function change(val) {
|
24850 | _this.internalValue = val;
|
24851 | }
|
24852 | },
|
24853 | ref: 'items'
|
24854 | };
|
24855 | this.setTextColor(this.computedColor, data);
|
24856 | this.setBackgroundColor(this.backgroundColor, data);
|
24857 | return this.$createElement(_VTabsBar__WEBPACK_IMPORTED_MODULE_1__["default"], data, [this.genSlider(slider), items]);
|
24858 | },
|
24859 | genItems: function genItems(items, item) {
|
24860 | var _this = this;
|
24861 |
|
24862 |
|
24863 |
|
24864 | if (items) return items;
|
24865 |
|
24866 |
|
24867 | if (!item.length) return null;
|
24868 | return this.$createElement(_VTabsItems__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
24869 | props: {
|
24870 | value: this.internalValue
|
24871 | },
|
24872 | on: {
|
24873 | change: function change(val) {
|
24874 | _this.internalValue = val;
|
24875 | }
|
24876 | }
|
24877 | }, item);
|
24878 | },
|
24879 | genSlider: function genSlider(slider) {
|
24880 | if (this.hideSlider) return null;
|
24881 |
|
24882 | if (!slider) {
|
24883 | slider = this.$createElement(_VTabsSlider__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
24884 | props: {
|
24885 | color: this.sliderColor
|
24886 | }
|
24887 | });
|
24888 | }
|
24889 |
|
24890 | return this.$createElement('div', {
|
24891 | staticClass: 'v-tabs-slider-wrapper',
|
24892 | style: this.sliderStyles
|
24893 | }, [slider]);
|
24894 | },
|
24895 | onResize: function onResize() {
|
24896 | if (this._isDestroyed) return;
|
24897 | clearTimeout(this.resizeTimeout);
|
24898 | this.resizeTimeout = window.setTimeout(this.callSlider, 0);
|
24899 | },
|
24900 | parseNodes: function parseNodes() {
|
24901 | var items = null;
|
24902 | var slider = null;
|
24903 | var item = [];
|
24904 | var tab = [];
|
24905 | var slot = this.$slots.default || [];
|
24906 | var length = slot.length;
|
24907 |
|
24908 | for (var i = 0; i < length; i++) {
|
24909 | var vnode = slot[i];
|
24910 |
|
24911 | if (vnode.componentOptions) {
|
24912 | switch (vnode.componentOptions.Ctor.options.name) {
|
24913 | case 'v-tabs-slider':
|
24914 | slider = vnode;
|
24915 | break;
|
24916 |
|
24917 | case 'v-tabs-items':
|
24918 | items = vnode;
|
24919 | break;
|
24920 |
|
24921 | case 'v-tab-item':
|
24922 | item.push(vnode);
|
24923 | break;
|
24924 |
|
24925 |
|
24926 | default:
|
24927 | tab.push(vnode);
|
24928 | }
|
24929 | } else {
|
24930 | tab.push(vnode);
|
24931 | }
|
24932 | }
|
24933 | |
24934 |
|
24935 |
|
24936 |
|
24937 |
|
24938 |
|
24939 |
|
24940 |
|
24941 | return {
|
24942 | tab: tab,
|
24943 | slider: slider,
|
24944 | items: items,
|
24945 | item: item
|
24946 | };
|
24947 | }
|
24948 | },
|
24949 | render: function render(h) {
|
24950 | var _a = this.parseNodes(),
|
24951 | tab = _a.tab,
|
24952 | slider = _a.slider,
|
24953 | items = _a.items,
|
24954 | item = _a.item;
|
24955 |
|
24956 | return h('div', {
|
24957 | staticClass: 'v-tabs',
|
24958 | class: this.classes,
|
24959 | directives: [{
|
24960 | name: 'resize',
|
24961 | modifiers: {
|
24962 | quiet: true
|
24963 | },
|
24964 | value: this.onResize
|
24965 | }]
|
24966 | }, [this.genBar(tab, slider), this.genItems(items, item)]);
|
24967 | }
|
24968 | }));
|
24969 |
|
24970 | }),
|
24971 |
|
24972 | "./src/components/VTabs/VTabsBar.ts":
|
24973 |
|
24974 |
|
24975 |
|
24976 |
|
24977 | (function(module, __webpack_exports__, __webpack_require__) {
|
24978 |
|
24979 | "use strict";
|
24980 | __webpack_require__.r(__webpack_exports__);
|
24981 | var _VSlideGroup_VSlideGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VSlideGroup/VSlideGroup.ts");
|
24982 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
24983 | var _mixins_ssr_bootable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/ssr-bootable/index.ts");
|
24984 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
24985 | var __assign = undefined && undefined.__assign || function () {
|
24986 | __assign = Object.assign || function (t) {
|
24987 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
24988 | s = arguments[i];
|
24989 |
|
24990 | for (var p in s) {
|
24991 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
24992 | }
|
24993 | }
|
24994 |
|
24995 | return t;
|
24996 | };
|
24997 |
|
24998 | return __assign.apply(this, arguments);
|
24999 | };
|
25000 |
|
25001 | var __values = undefined && undefined.__values || function (o) {
|
25002 | var m = typeof Symbol === "function" && o[Symbol.iterator],
|
25003 | i = 0;
|
25004 | if (m) return m.call(o);
|
25005 | return {
|
25006 | next: function next() {
|
25007 | if (o && i >= o.length) o = void 0;
|
25008 | return {
|
25009 | value: o && o[i++],
|
25010 | done: !o
|
25011 | };
|
25012 | }
|
25013 | };
|
25014 | };
|
25015 |
|
25016 |
|
25017 |
|
25018 |
|
25019 |
|
25020 |
|
25021 |
|
25022 |
|
25023 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_VSlideGroup_VSlideGroup__WEBPACK_IMPORTED_MODULE_0__["BaseSlideGroup"], _mixins_ssr_bootable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_1__["default"]
|
25024 |
|
25025 | ).extend({
|
25026 | name: 'v-tabs-bar',
|
25027 | provide: function provide() {
|
25028 | return {
|
25029 | tabsBar: this
|
25030 | };
|
25031 | },
|
25032 | computed: {
|
25033 | classes: function classes() {
|
25034 | return __assign({}, _VSlideGroup_VSlideGroup__WEBPACK_IMPORTED_MODULE_0__["BaseSlideGroup"].options.computed.classes.call(this), {
|
25035 | 'v-tabs-bar': true,
|
25036 | 'v-tabs-bar--is-mobile': this.isMobile,
|
25037 |
|
25038 | 'v-tabs-bar--show-arrows': this.showArrows
|
25039 | }, this.themeClasses);
|
25040 | }
|
25041 | },
|
25042 | watch: {
|
25043 | items: 'callSlider',
|
25044 | internalValue: 'callSlider',
|
25045 | $route: 'onRouteChange'
|
25046 | },
|
25047 | methods: {
|
25048 | callSlider: function callSlider() {
|
25049 | if (!this.isBooted) return;
|
25050 | this.$emit('call:slider');
|
25051 | },
|
25052 | genContent: function genContent() {
|
25053 | var render = _VSlideGroup_VSlideGroup__WEBPACK_IMPORTED_MODULE_0__["BaseSlideGroup"].options.methods.genContent.call(this);
|
25054 | render.data = render.data || {};
|
25055 | render.data.staticClass += ' v-tabs-bar__content';
|
25056 | return render;
|
25057 | },
|
25058 | onRouteChange: function onRouteChange(val, oldVal) {
|
25059 | var e_1, _a;
|
25060 |
|
25061 |
|
25062 |
|
25063 | if (this.mandatory) return;
|
25064 | var items = this.items;
|
25065 | var newPath = val.path;
|
25066 | var oldPath = oldVal.path;
|
25067 | var hasNew = false;
|
25068 | var hasOld = false;
|
25069 |
|
25070 | try {
|
25071 | for (var items_1 = __values(items), items_1_1 = items_1.next(); !items_1_1.done; items_1_1 = items_1.next()) {
|
25072 | var item = items_1_1.value;
|
25073 | if (item.to === newPath) hasNew = true;else if (item.to === oldPath) hasOld = true;
|
25074 | if (hasNew && hasOld) break;
|
25075 | }
|
25076 | } catch (e_1_1) {
|
25077 | e_1 = {
|
25078 | error: e_1_1
|
25079 | };
|
25080 | } finally {
|
25081 | try {
|
25082 | if (items_1_1 && !items_1_1.done && (_a = items_1.return)) _a.call(items_1);
|
25083 | } finally {
|
25084 | if (e_1) throw e_1.error;
|
25085 | }
|
25086 | }
|
25087 |
|
25088 |
|
25089 |
|
25090 |
|
25091 | if (!hasNew && hasOld) this.internalValue = undefined;
|
25092 | }
|
25093 | },
|
25094 | render: function render(h) {
|
25095 | var render = _VSlideGroup_VSlideGroup__WEBPACK_IMPORTED_MODULE_0__["BaseSlideGroup"].options.render.call(this, h);
|
25096 | render.data.attrs = {
|
25097 | role: 'tablist'
|
25098 | };
|
25099 | return render;
|
25100 | }
|
25101 | }));
|
25102 |
|
25103 | }),
|
25104 |
|
25105 | "./src/components/VTabs/VTabsItems.ts":
|
25106 |
|
25107 |
|
25108 |
|
25109 |
|
25110 | (function(module, __webpack_exports__, __webpack_require__) {
|
25111 |
|
25112 | "use strict";
|
25113 | __webpack_require__.r(__webpack_exports__);
|
25114 | var _VWindow_VWindow__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VWindow/VWindow.ts");
|
25115 | var _VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VItemGroup/VItemGroup.ts");
|
25116 | var __assign = undefined && undefined.__assign || function () {
|
25117 | __assign = Object.assign || function (t) {
|
25118 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
25119 | s = arguments[i];
|
25120 |
|
25121 | for (var p in s) {
|
25122 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
25123 | }
|
25124 | }
|
25125 |
|
25126 | return t;
|
25127 | };
|
25128 |
|
25129 | return __assign.apply(this, arguments);
|
25130 | };
|
25131 |
|
25132 |
|
25133 |
|
25134 |
|
25135 |
|
25136 |
|
25137 |
|
25138 | __webpack_exports__["default"] = (_VWindow_VWindow__WEBPACK_IMPORTED_MODULE_0__["default"].extend({
|
25139 | name: 'v-tabs-items',
|
25140 | props: {
|
25141 | mandatory: {
|
25142 | type: Boolean,
|
25143 | default: false
|
25144 | }
|
25145 | },
|
25146 | computed: {
|
25147 | classes: function classes() {
|
25148 | return __assign({}, _VWindow_VWindow__WEBPACK_IMPORTED_MODULE_0__["default"].options.computed.classes.call(this), {
|
25149 | 'v-tabs-items': true
|
25150 | });
|
25151 | },
|
25152 | isDark: function isDark() {
|
25153 | return this.rootIsDark;
|
25154 | }
|
25155 | },
|
25156 | methods: {
|
25157 | getValue: function getValue(item, i) {
|
25158 | return item.id || _VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_1__["BaseItemGroup"].options.methods.getValue.call(this, item, i);
|
25159 | }
|
25160 | }
|
25161 | }));
|
25162 |
|
25163 | }),
|
25164 |
|
25165 | "./src/components/VTabs/VTabsSlider.ts":
|
25166 |
|
25167 |
|
25168 |
|
25169 |
|
25170 | (function(module, __webpack_exports__, __webpack_require__) {
|
25171 |
|
25172 | "use strict";
|
25173 | __webpack_require__.r(__webpack_exports__);
|
25174 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
25175 | var _util_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/mixins.ts");
|
25176 |
|
25177 |
|
25178 |
|
25179 |
|
25180 |
|
25181 |
|
25182 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_1__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_0__["default"]).extend({
|
25183 | name: 'v-tabs-slider',
|
25184 | render: function render(h) {
|
25185 | return h('div', this.setBackgroundColor(this.color, {
|
25186 | staticClass: 'v-tabs-slider'
|
25187 | }));
|
25188 | }
|
25189 | }));
|
25190 |
|
25191 | }),
|
25192 |
|
25193 | "./src/components/VTabs/index.ts":
|
25194 |
|
25195 |
|
25196 |
|
25197 |
|
25198 | (function(module, __webpack_exports__, __webpack_require__) {
|
25199 |
|
25200 | "use strict";
|
25201 | __webpack_require__.r(__webpack_exports__);
|
25202 | var _VTabs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VTabs/VTabs.ts");
|
25203 | __webpack_require__.d(__webpack_exports__, "VTabs", function() { return _VTabs__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
25204 |
|
25205 | var _VTab__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VTabs/VTab.ts");
|
25206 | __webpack_require__.d(__webpack_exports__, "VTab", function() { return _VTab__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
25207 |
|
25208 | var _VTabsItems__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VTabs/VTabsItems.ts");
|
25209 | __webpack_require__.d(__webpack_exports__, "VTabsItems", function() { return _VTabsItems__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
25210 |
|
25211 | var _VTabItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VTabs/VTabItem.ts");
|
25212 | __webpack_require__.d(__webpack_exports__, "VTabItem", function() { return _VTabItem__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
25213 |
|
25214 | var _VTabsSlider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VTabs/VTabsSlider.ts");
|
25215 | __webpack_require__.d(__webpack_exports__, "VTabsSlider", function() { return _VTabsSlider__WEBPACK_IMPORTED_MODULE_4__["default"]; });
|
25216 |
|
25217 |
|
25218 |
|
25219 |
|
25220 |
|
25221 |
|
25222 |
|
25223 | __webpack_exports__["default"] = ({
|
25224 | $_vuetify_subcomponents: {
|
25225 | VTabs: _VTabs__WEBPACK_IMPORTED_MODULE_0__["default"],
|
25226 | VTab: _VTab__WEBPACK_IMPORTED_MODULE_1__["default"],
|
25227 | VTabsItems: _VTabsItems__WEBPACK_IMPORTED_MODULE_2__["default"],
|
25228 | VTabItem: _VTabItem__WEBPACK_IMPORTED_MODULE_3__["default"],
|
25229 | VTabsSlider: _VTabsSlider__WEBPACK_IMPORTED_MODULE_4__["default"]
|
25230 | }
|
25231 | });
|
25232 |
|
25233 | }),
|
25234 |
|
25235 | "./src/components/VTextField/VTextField.sass":
|
25236 |
|
25237 |
|
25238 |
|
25239 |
|
25240 | (function(module, exports, __webpack_require__) {
|
25241 |
|
25242 |
|
25243 |
|
25244 | }),
|
25245 |
|
25246 | "./src/components/VTextField/VTextField.ts":
|
25247 |
|
25248 |
|
25249 |
|
25250 |
|
25251 | (function(module, __webpack_exports__, __webpack_require__) {
|
25252 |
|
25253 | "use strict";
|
25254 | __webpack_require__.r(__webpack_exports__);
|
25255 | var _VTextField_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VTextField/VTextField.sass");
|
25256 | var _VTextField_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VTextField_sass__WEBPACK_IMPORTED_MODULE_0__);
|
25257 | var _VInput__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VInput/index.ts");
|
25258 | var _VCounter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VCounter/index.ts");
|
25259 | var _VLabel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VLabel/index.ts");
|
25260 | var _mixins_loadable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/loadable/index.ts");
|
25261 | var _directives_ripple__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/directives/ripple/index.ts");
|
25262 | var _util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/util/helpers.ts");
|
25263 | var _util_console__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/util/console.ts");
|
25264 | var _util_mixins__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/util/mixins.ts");
|
25265 | var __assign = undefined && undefined.__assign || function () {
|
25266 | __assign = Object.assign || function (t) {
|
25267 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
25268 | s = arguments[i];
|
25269 |
|
25270 | for (var p in s) {
|
25271 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
25272 | }
|
25273 | }
|
25274 |
|
25275 | return t;
|
25276 | };
|
25277 |
|
25278 | return __assign.apply(this, arguments);
|
25279 | };
|
25280 |
|
25281 |
|
25282 |
|
25283 |
|
25284 |
|
25285 |
|
25286 |
|
25287 |
|
25288 |
|
25289 |
|
25290 |
|
25291 |
|
25292 |
|
25293 |
|
25294 |
|
25295 |
|
25296 |
|
25297 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_8__["default"])(_VInput__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_loadable__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
25298 | var dirtyTypes = ['color', 'file', 'time', 'date', 'datetime-local', 'week', 'month'];
|
25299 |
|
25300 |
|
25301 | __webpack_exports__["default"] = (baseMixins.extend().extend({
|
25302 | name: 'v-text-field',
|
25303 | directives: {
|
25304 | ripple: _directives_ripple__WEBPACK_IMPORTED_MODULE_5__["default"]
|
25305 | },
|
25306 | inheritAttrs: false,
|
25307 | props: {
|
25308 | appendOuterIcon: String,
|
25309 | autofocus: Boolean,
|
25310 | clearable: Boolean,
|
25311 | clearIcon: {
|
25312 | type: String,
|
25313 | default: '$clear'
|
25314 | },
|
25315 | counter: [Boolean, Number, String],
|
25316 | filled: Boolean,
|
25317 | flat: Boolean,
|
25318 | fullWidth: Boolean,
|
25319 | label: String,
|
25320 | outlined: Boolean,
|
25321 | placeholder: String,
|
25322 | prefix: String,
|
25323 | prependInnerIcon: String,
|
25324 | reverse: Boolean,
|
25325 | rounded: Boolean,
|
25326 | shaped: Boolean,
|
25327 | singleLine: Boolean,
|
25328 | solo: Boolean,
|
25329 | soloInverted: Boolean,
|
25330 | suffix: String,
|
25331 | type: {
|
25332 | type: String,
|
25333 | default: 'text'
|
25334 | }
|
25335 | },
|
25336 | data: function data() {
|
25337 | return {
|
25338 | badInput: false,
|
25339 | labelWidth: 0,
|
25340 | prefixWidth: 0,
|
25341 | prependWidth: 0,
|
25342 | initialValue: null,
|
25343 | isBooted: false,
|
25344 | isClearing: false
|
25345 | };
|
25346 | },
|
25347 | computed: {
|
25348 | classes: function classes() {
|
25349 | return __assign({}, _VInput__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this), {
|
25350 | 'v-text-field': true,
|
25351 | 'v-text-field--full-width': this.fullWidth,
|
25352 | 'v-text-field--prefix': this.prefix,
|
25353 | 'v-text-field--single-line': this.isSingle,
|
25354 | 'v-text-field--solo': this.isSolo,
|
25355 | 'v-text-field--solo-inverted': this.soloInverted,
|
25356 | 'v-text-field--solo-flat': this.flat,
|
25357 | 'v-text-field--filled': this.filled,
|
25358 | 'v-text-field--is-booted': this.isBooted,
|
25359 | 'v-text-field--enclosed': this.isEnclosed,
|
25360 | 'v-text-field--reverse': this.reverse,
|
25361 | 'v-text-field--outlined': this.outlined,
|
25362 | 'v-text-field--placeholder': this.placeholder,
|
25363 | 'v-text-field--rounded': this.rounded,
|
25364 | 'v-text-field--shaped': this.shaped
|
25365 | });
|
25366 | },
|
25367 | counterValue: function counterValue() {
|
25368 | return (this.internalValue || '').toString().length;
|
25369 | },
|
25370 | internalValue: {
|
25371 | get: function get() {
|
25372 | return this.lazyValue;
|
25373 | },
|
25374 | set: function set(val) {
|
25375 | this.lazyValue = val;
|
25376 | this.$emit('input', this.lazyValue);
|
25377 | }
|
25378 | },
|
25379 | isDirty: function isDirty() {
|
25380 | return this.lazyValue != null && this.lazyValue.toString().length > 0 || this.badInput;
|
25381 | },
|
25382 | isEnclosed: function isEnclosed() {
|
25383 | return this.filled || this.isSolo || this.outlined || this.fullWidth;
|
25384 | },
|
25385 | isLabelActive: function isLabelActive() {
|
25386 | return this.isDirty || dirtyTypes.includes(this.type);
|
25387 | },
|
25388 | isSingle: function isSingle() {
|
25389 | return this.isSolo || this.singleLine || this.fullWidth;
|
25390 | },
|
25391 | isSolo: function isSolo() {
|
25392 | return this.solo || this.soloInverted;
|
25393 | },
|
25394 | labelPosition: function labelPosition() {
|
25395 | var offset = this.prefix && !this.labelValue ? this.prefixWidth : 0;
|
25396 | if (this.labelValue && this.prependWidth) offset -= this.prependWidth;
|
25397 | return this.$vuetify.rtl === this.reverse ? {
|
25398 | left: offset,
|
25399 | right: 'auto'
|
25400 | } : {
|
25401 | left: 'auto',
|
25402 | right: offset
|
25403 | };
|
25404 | },
|
25405 | showLabel: function showLabel() {
|
25406 | return this.hasLabel && (!this.isSingle || !this.isLabelActive && !this.placeholder);
|
25407 | },
|
25408 | labelValue: function labelValue() {
|
25409 | return !this.isSingle && Boolean(this.isFocused || this.isLabelActive || this.placeholder);
|
25410 | }
|
25411 | },
|
25412 | watch: {
|
25413 | labelValue: 'setLabelWidth',
|
25414 | outlined: 'setLabelWidth',
|
25415 | label: function label() {
|
25416 | this.$nextTick(this.setLabelWidth);
|
25417 | },
|
25418 | prefix: function prefix() {
|
25419 | this.$nextTick(this.setPrefixWidth);
|
25420 | },
|
25421 | isFocused: function isFocused(val) {
|
25422 |
|
25423 | this.hasColor = val;
|
25424 |
|
25425 | if (val) {
|
25426 | this.initialValue = this.lazyValue;
|
25427 | } else if (this.initialValue !== this.lazyValue) {
|
25428 | this.$emit('change', this.lazyValue);
|
25429 | }
|
25430 | },
|
25431 | value: function value(val) {
|
25432 | this.lazyValue = val;
|
25433 | }
|
25434 | },
|
25435 | created: function created() {
|
25436 |
|
25437 | if (this.$attrs.hasOwnProperty('box')) {
|
25438 | Object(_util_console__WEBPACK_IMPORTED_MODULE_7__["breaking"])('box', 'filled', this);
|
25439 | }
|
25440 |
|
25441 |
|
25442 |
|
25443 | if (this.$attrs.hasOwnProperty('browser-autocomplete')) {
|
25444 | Object(_util_console__WEBPACK_IMPORTED_MODULE_7__["breaking"])('browser-autocomplete', 'autocomplete', this);
|
25445 | }
|
25446 |
|
25447 |
|
25448 |
|
25449 | if (this.shaped && !(this.filled || this.outlined || this.isSolo)) {
|
25450 | Object(_util_console__WEBPACK_IMPORTED_MODULE_7__["consoleWarn"])('shaped should be used with either filled or outlined', this);
|
25451 | }
|
25452 | },
|
25453 | mounted: function mounted() {
|
25454 | var _this = this;
|
25455 |
|
25456 | this.autofocus && this.onFocus();
|
25457 | this.setLabelWidth();
|
25458 | this.setPrefixWidth();
|
25459 | this.setPrependWidth();
|
25460 | requestAnimationFrame(function () {
|
25461 | return _this.isBooted = true;
|
25462 | });
|
25463 | },
|
25464 | methods: {
|
25465 |
|
25466 | focus: function focus() {
|
25467 | this.onFocus();
|
25468 | },
|
25469 |
|
25470 |
|
25471 | blur: function blur(e) {
|
25472 | var _this = this;
|
25473 |
|
25474 |
|
25475 |
|
25476 | window.requestAnimationFrame(function () {
|
25477 | _this.$refs.input && _this.$refs.input.blur();
|
25478 | });
|
25479 | },
|
25480 | clearableCallback: function clearableCallback() {
|
25481 | var _this = this;
|
25482 |
|
25483 | this.$refs.input && this.$refs.input.focus();
|
25484 | this.$nextTick(function () {
|
25485 | return _this.internalValue = null;
|
25486 | });
|
25487 | },
|
25488 | genAppendSlot: function genAppendSlot() {
|
25489 | var slot = [];
|
25490 |
|
25491 | if (this.$slots['append-outer']) {
|
25492 | slot.push(this.$slots['append-outer']);
|
25493 | } else if (this.appendOuterIcon) {
|
25494 | slot.push(this.genIcon('appendOuter'));
|
25495 | }
|
25496 |
|
25497 | return this.genSlot('append', 'outer', slot);
|
25498 | },
|
25499 | genPrependInnerSlot: function genPrependInnerSlot() {
|
25500 | var slot = [];
|
25501 |
|
25502 | if (this.$slots['prepend-inner']) {
|
25503 | slot.push(this.$slots['prepend-inner']);
|
25504 | } else if (this.prependInnerIcon) {
|
25505 | slot.push(this.genIcon('prependInner'));
|
25506 | }
|
25507 |
|
25508 | return this.genSlot('prepend', 'inner', slot);
|
25509 | },
|
25510 | genIconSlot: function genIconSlot() {
|
25511 | var slot = [];
|
25512 |
|
25513 | if (this.$slots['append']) {
|
25514 | slot.push(this.$slots['append']);
|
25515 | } else if (this.appendIcon) {
|
25516 | slot.push(this.genIcon('append'));
|
25517 | }
|
25518 |
|
25519 | return this.genSlot('append', 'inner', slot);
|
25520 | },
|
25521 | genInputSlot: function genInputSlot() {
|
25522 | var input = _VInput__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genInputSlot.call(this);
|
25523 | var prepend = this.genPrependInnerSlot();
|
25524 |
|
25525 | if (prepend) {
|
25526 | input.children = input.children || [];
|
25527 | input.children.unshift(prepend);
|
25528 | }
|
25529 |
|
25530 | return input;
|
25531 | },
|
25532 | genClearIcon: function genClearIcon() {
|
25533 | if (!this.clearable) return null;
|
25534 | var icon = this.isDirty ? 'clear' : '';
|
25535 | return this.genSlot('append', 'inner', [this.genIcon(icon, this.clearableCallback)]);
|
25536 | },
|
25537 | genCounter: function genCounter() {
|
25538 | if (this.counter === false || this.counter == null) return null;
|
25539 | var max = this.counter === true ? this.attrs$.maxlength : this.counter;
|
25540 | return this.$createElement(_VCounter__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
25541 | props: {
|
25542 | dark: this.dark,
|
25543 | light: this.light,
|
25544 | max: max,
|
25545 | value: this.counterValue
|
25546 | }
|
25547 | });
|
25548 | },
|
25549 | genDefaultSlot: function genDefaultSlot() {
|
25550 | return [this.genFieldset(), this.genTextFieldSlot(), this.genClearIcon(), this.genIconSlot(), this.genProgress()];
|
25551 | },
|
25552 | genFieldset: function genFieldset() {
|
25553 | if (!this.outlined) return null;
|
25554 | return this.$createElement('fieldset', {
|
25555 | attrs: {
|
25556 | 'aria-hidden': true
|
25557 | }
|
25558 | }, [this.genLegend()]);
|
25559 | },
|
25560 | genLabel: function genLabel() {
|
25561 | if (!this.showLabel) return null;
|
25562 | var data = {
|
25563 | props: {
|
25564 | absolute: true,
|
25565 | color: this.validationState,
|
25566 | dark: this.dark,
|
25567 | disabled: this.disabled,
|
25568 | focused: !this.isSingle && (this.isFocused || !!this.validationState),
|
25569 | for: this.computedId,
|
25570 | left: this.labelPosition.left,
|
25571 | light: this.light,
|
25572 | right: this.labelPosition.right,
|
25573 | value: this.labelValue
|
25574 | }
|
25575 | };
|
25576 | return this.$createElement(_VLabel__WEBPACK_IMPORTED_MODULE_3__["default"], data, this.$slots.label || this.label);
|
25577 | },
|
25578 | genLegend: function genLegend() {
|
25579 | var width = !this.singleLine && (this.labelValue || this.isDirty) ? this.labelWidth : 0;
|
25580 | var span = this.$createElement('span', {
|
25581 | domProps: {
|
25582 | innerHTML: '​'
|
25583 | }
|
25584 | });
|
25585 | return this.$createElement('legend', {
|
25586 | style: {
|
25587 | width: !this.isSingle ? Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["convertToUnit"])(width) : undefined
|
25588 | }
|
25589 | }, [span]);
|
25590 | },
|
25591 | genInput: function genInput() {
|
25592 | var listeners = Object.assign({}, this.listeners$);
|
25593 | delete listeners['change'];
|
25594 |
|
25595 | return this.$createElement('input', {
|
25596 | style: {},
|
25597 | domProps: {
|
25598 | value: this.lazyValue
|
25599 | },
|
25600 | attrs: __assign({}, this.attrs$, {
|
25601 | autofocus: this.autofocus,
|
25602 | disabled: this.disabled,
|
25603 | id: this.computedId,
|
25604 | placeholder: this.placeholder,
|
25605 | readonly: this.readonly,
|
25606 | type: this.type
|
25607 | }),
|
25608 | on: Object.assign(listeners, {
|
25609 | blur: this.onBlur,
|
25610 | input: this.onInput,
|
25611 | focus: this.onFocus,
|
25612 | keydown: this.onKeyDown
|
25613 | }),
|
25614 | ref: 'input'
|
25615 | });
|
25616 | },
|
25617 | genMessages: function genMessages() {
|
25618 | if (this.hideDetails) return null;
|
25619 | return this.$createElement('div', {
|
25620 | staticClass: 'v-text-field__details'
|
25621 | }, [_VInput__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genMessages.call(this), this.genCounter()]);
|
25622 | },
|
25623 | genTextFieldSlot: function genTextFieldSlot() {
|
25624 | return this.$createElement('div', {
|
25625 | staticClass: 'v-text-field__slot'
|
25626 | }, [this.genLabel(), this.prefix ? this.genAffix('prefix') : null, this.genInput(), this.suffix ? this.genAffix('suffix') : null]);
|
25627 | },
|
25628 | genAffix: function genAffix(type) {
|
25629 | return this.$createElement('div', {
|
25630 | class: "v-text-field__" + type,
|
25631 | ref: type
|
25632 | }, this[type]);
|
25633 | },
|
25634 | onBlur: function onBlur(e) {
|
25635 | var _this = this;
|
25636 |
|
25637 | this.isFocused = false;
|
25638 | e && this.$nextTick(function () {
|
25639 | return _this.$emit('blur', e);
|
25640 | });
|
25641 | },
|
25642 | onClick: function onClick() {
|
25643 | if (this.isFocused || this.disabled || !this.$refs.input) return;
|
25644 | this.$refs.input.focus();
|
25645 | },
|
25646 | onFocus: function onFocus(e) {
|
25647 | if (!this.$refs.input) return;
|
25648 |
|
25649 | if (document.activeElement !== this.$refs.input) {
|
25650 | return this.$refs.input.focus();
|
25651 | }
|
25652 |
|
25653 | if (!this.isFocused) {
|
25654 | this.isFocused = true;
|
25655 | e && this.$emit('focus', e);
|
25656 | }
|
25657 | },
|
25658 | onInput: function onInput(e) {
|
25659 | var target = e.target;
|
25660 | this.internalValue = target.value;
|
25661 | this.badInput = target.validity && target.validity.badInput;
|
25662 | },
|
25663 | onKeyDown: function onKeyDown(e) {
|
25664 | if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_6__["keyCodes"].enter) this.$emit('change', this.internalValue);
|
25665 | this.$emit('keydown', e);
|
25666 | },
|
25667 | onMouseDown: function onMouseDown(e) {
|
25668 |
|
25669 | if (e.target !== this.$refs.input) {
|
25670 | e.preventDefault();
|
25671 | e.stopPropagation();
|
25672 | }
|
25673 |
|
25674 | _VInput__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.onMouseDown.call(this, e);
|
25675 | },
|
25676 | onMouseUp: function onMouseUp(e) {
|
25677 | if (this.hasMouseDown) this.focus();
|
25678 | _VInput__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.onMouseUp.call(this, e);
|
25679 | },
|
25680 | setLabelWidth: function setLabelWidth() {
|
25681 | if (!this.outlined || !this.$refs.label) return;
|
25682 | this.labelWidth = this.$refs.label.scrollWidth * 0.75 + 6;
|
25683 | },
|
25684 | setPrefixWidth: function setPrefixWidth() {
|
25685 | if (!this.$refs.prefix) return;
|
25686 | this.prefixWidth = this.$refs.prefix.offsetWidth;
|
25687 | },
|
25688 | setPrependWidth: function setPrependWidth() {
|
25689 | if (!this.outlined || !this.$refs['prepend-inner']) return;
|
25690 | this.prependWidth = this.$refs['prepend-inner'].offsetWidth;
|
25691 | }
|
25692 | }
|
25693 | }));
|
25694 |
|
25695 | }),
|
25696 |
|
25697 | "./src/components/VTextField/index.ts":
|
25698 |
|
25699 |
|
25700 |
|
25701 |
|
25702 | (function(module, __webpack_exports__, __webpack_require__) {
|
25703 |
|
25704 | "use strict";
|
25705 | __webpack_require__.r(__webpack_exports__);
|
25706 | var _VTextField__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VTextField/VTextField.ts");
|
25707 | __webpack_require__.d(__webpack_exports__, "VTextField", function() { return _VTextField__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
25708 |
|
25709 |
|
25710 |
|
25711 | __webpack_exports__["default"] = (_VTextField__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
25712 |
|
25713 | }),
|
25714 |
|
25715 | "./src/components/VTextarea/VTextarea.sass":
|
25716 |
|
25717 |
|
25718 |
|
25719 |
|
25720 | (function(module, exports, __webpack_require__) {
|
25721 |
|
25722 |
|
25723 |
|
25724 | }),
|
25725 |
|
25726 | "./src/components/VTextarea/VTextarea.ts":
|
25727 |
|
25728 |
|
25729 |
|
25730 |
|
25731 | (function(module, __webpack_exports__, __webpack_require__) {
|
25732 |
|
25733 | "use strict";
|
25734 | __webpack_require__.r(__webpack_exports__);
|
25735 | var _VTextarea_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VTextarea/VTextarea.sass");
|
25736 | var _VTextarea_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VTextarea_sass__WEBPACK_IMPORTED_MODULE_0__);
|
25737 | var _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VTextField/VTextField.ts");
|
25738 | var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/mixins.ts");
|
25739 | var __assign = undefined && undefined.__assign || function () {
|
25740 | __assign = Object.assign || function (t) {
|
25741 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
25742 | s = arguments[i];
|
25743 |
|
25744 | for (var p in s) {
|
25745 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
25746 | }
|
25747 | }
|
25748 |
|
25749 | return t;
|
25750 | };
|
25751 |
|
25752 | return __assign.apply(this, arguments);
|
25753 | };
|
25754 |
|
25755 |
|
25756 |
|
25757 |
|
25758 |
|
25759 |
|
25760 |
|
25761 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_VTextField_VTextField__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
25762 |
|
25763 |
|
25764 | __webpack_exports__["default"] = (baseMixins.extend({
|
25765 | name: 'v-textarea',
|
25766 | props: {
|
25767 | autoGrow: Boolean,
|
25768 | noResize: Boolean,
|
25769 | rowHeight: {
|
25770 | type: [Number, String],
|
25771 | default: 24,
|
25772 | validator: function validator(v) {
|
25773 | return !isNaN(parseFloat(v));
|
25774 | }
|
25775 | },
|
25776 | rows: {
|
25777 | type: [Number, String],
|
25778 | default: 5,
|
25779 | validator: function validator(v) {
|
25780 | return !isNaN(parseInt(v, 10));
|
25781 | }
|
25782 | }
|
25783 | },
|
25784 | computed: {
|
25785 | classes: function classes() {
|
25786 | return __assign({
|
25787 | 'v-textarea': true,
|
25788 | 'v-textarea--auto-grow': this.autoGrow,
|
25789 | 'v-textarea--no-resize': this.noResizeHandle
|
25790 | }, _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this));
|
25791 | },
|
25792 | noResizeHandle: function noResizeHandle() {
|
25793 | return this.noResize || this.autoGrow;
|
25794 | }
|
25795 | },
|
25796 | watch: {
|
25797 | lazyValue: function lazyValue() {
|
25798 | this.autoGrow && this.$nextTick(this.calculateInputHeight);
|
25799 | },
|
25800 | rowHeight: function rowHeight() {
|
25801 | this.autoGrow && this.$nextTick(this.calculateInputHeight);
|
25802 | }
|
25803 | },
|
25804 | mounted: function mounted() {
|
25805 | var _this = this;
|
25806 |
|
25807 | setTimeout(function () {
|
25808 | _this.autoGrow && _this.calculateInputHeight();
|
25809 | }, 0);
|
25810 | },
|
25811 | methods: {
|
25812 | calculateInputHeight: function calculateInputHeight() {
|
25813 | var input = this.$refs.input;
|
25814 | if (!input) return;
|
25815 | input.style.height = '0';
|
25816 | var height = input.scrollHeight;
|
25817 | var minHeight = parseInt(this.rows, 10) * parseFloat(this.rowHeight);
|
25818 |
|
25819 |
|
25820 | input.style.height = Math.max(minHeight, height) + 'px';
|
25821 | },
|
25822 | genInput: function genInput() {
|
25823 | var input = _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genInput.call(this);
|
25824 | input.tag = 'textarea';
|
25825 | delete input.data.attrs.type;
|
25826 | input.data.attrs.rows = this.rows;
|
25827 | return input;
|
25828 | },
|
25829 | onInput: function onInput(e) {
|
25830 | _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.onInput.call(this, e);
|
25831 | this.autoGrow && this.calculateInputHeight();
|
25832 | },
|
25833 | onKeyDown: function onKeyDown(e) {
|
25834 |
|
25835 |
|
25836 |
|
25837 | if (this.isFocused && e.keyCode === 13) {
|
25838 | e.stopPropagation();
|
25839 | }
|
25840 |
|
25841 | this.$emit('keydown', e);
|
25842 | }
|
25843 | }
|
25844 | }));
|
25845 |
|
25846 | }),
|
25847 |
|
25848 | "./src/components/VTextarea/index.ts":
|
25849 |
|
25850 |
|
25851 |
|
25852 |
|
25853 | (function(module, __webpack_exports__, __webpack_require__) {
|
25854 |
|
25855 | "use strict";
|
25856 | __webpack_require__.r(__webpack_exports__);
|
25857 | var _VTextarea__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VTextarea/VTextarea.ts");
|
25858 | __webpack_require__.d(__webpack_exports__, "VTextarea", function() { return _VTextarea__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
25859 |
|
25860 |
|
25861 |
|
25862 | __webpack_exports__["default"] = (_VTextarea__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
25863 |
|
25864 | }),
|
25865 |
|
25866 | "./src/components/VTimePicker/VTimePicker.ts":
|
25867 |
|
25868 |
|
25869 |
|
25870 |
|
25871 | (function(module, __webpack_exports__, __webpack_require__) {
|
25872 |
|
25873 | "use strict";
|
25874 | __webpack_require__.r(__webpack_exports__);
|
25875 | __webpack_require__.d(__webpack_exports__, "SelectingTimes", function() { return SelectingTimes; });
|
25876 | var _VTimePickerTitle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VTimePicker/VTimePickerTitle.ts");
|
25877 | var _VTimePickerClock__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VTimePicker/VTimePickerClock.ts");
|
25878 | var _mixins_picker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/picker/index.ts");
|
25879 | var _mixins_picker_button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/picker-button/index.ts");
|
25880 | var _util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/helpers.ts");
|
25881 | var _VDatePicker_util_pad__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/components/VDatePicker/util/pad.ts");
|
25882 | var _util_mixins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/util/mixins.ts");
|
25883 | var __read = undefined && undefined.__read || function (o, n) {
|
25884 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
25885 | if (!m) return o;
|
25886 | var i = m.call(o),
|
25887 | r,
|
25888 | ar = [],
|
25889 | e;
|
25890 |
|
25891 | try {
|
25892 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
25893 | ar.push(r.value);
|
25894 | }
|
25895 | } catch (error) {
|
25896 | e = {
|
25897 | error: error
|
25898 | };
|
25899 | } finally {
|
25900 | try {
|
25901 | if (r && !r.done && (m = i["return"])) m.call(i);
|
25902 | } finally {
|
25903 | if (e) throw e.error;
|
25904 | }
|
25905 | }
|
25906 |
|
25907 | return ar;
|
25908 | };
|
25909 |
|
25910 |
|
25911 |
|
25912 |
|
25913 |
|
25914 |
|
25915 |
|
25916 |
|
25917 |
|
25918 |
|
25919 |
|
25920 | var rangeHours24 = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["createRange"])(24);
|
25921 | var rangeHours12am = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["createRange"])(12);
|
25922 | var rangeHours12pm = rangeHours12am.map(function (v) {
|
25923 | return v + 12;
|
25924 | });
|
25925 | var range60 = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["createRange"])(60);
|
25926 | var SelectingTimes;
|
25927 |
|
25928 | (function (SelectingTimes) {
|
25929 | SelectingTimes[SelectingTimes["Hour"] = 1] = "Hour";
|
25930 | SelectingTimes[SelectingTimes["Minute"] = 2] = "Minute";
|
25931 | SelectingTimes[SelectingTimes["Second"] = 3] = "Second";
|
25932 | })(SelectingTimes || (SelectingTimes = {}));
|
25933 |
|
25934 | var selectingNames = {
|
25935 | 1: 'hour',
|
25936 | 2: 'minute',
|
25937 | 3: 'second'
|
25938 | };
|
25939 |
|
25940 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_6__["default"])(_mixins_picker__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_picker_button__WEBPACK_IMPORTED_MODULE_3__["default"]
|
25941 |
|
25942 | ).extend({
|
25943 | name: 'v-time-picker',
|
25944 | props: {
|
25945 | allowedHours: {
|
25946 | type: [Function, Array]
|
25947 | },
|
25948 | allowedMinutes: {
|
25949 | type: [Function, Array]
|
25950 | },
|
25951 | allowedSeconds: {
|
25952 | type: [Function, Array]
|
25953 | },
|
25954 | disabled: Boolean,
|
25955 | format: {
|
25956 | type: String,
|
25957 | default: 'ampm',
|
25958 | validator: function validator(val) {
|
25959 | return ['ampm', '24hr'].includes(val);
|
25960 | }
|
25961 | },
|
25962 | min: String,
|
25963 | max: String,
|
25964 | readonly: Boolean,
|
25965 | scrollable: Boolean,
|
25966 | useSeconds: Boolean,
|
25967 | value: null,
|
25968 | ampmInTitle: Boolean
|
25969 | },
|
25970 | data: function data() {
|
25971 | return {
|
25972 | inputHour: null,
|
25973 | inputMinute: null,
|
25974 | inputSecond: null,
|
25975 | lazyInputHour: null,
|
25976 | lazyInputMinute: null,
|
25977 | lazyInputSecond: null,
|
25978 | period: 'am',
|
25979 | selecting: SelectingTimes.Hour
|
25980 | };
|
25981 | },
|
25982 | computed: {
|
25983 | selectingHour: {
|
25984 | get: function get() {
|
25985 | return this.selecting === SelectingTimes.Hour;
|
25986 | },
|
25987 | set: function set(v) {
|
25988 | this.selecting = SelectingTimes.Hour;
|
25989 | }
|
25990 | },
|
25991 | selectingMinute: {
|
25992 | get: function get() {
|
25993 | return this.selecting === SelectingTimes.Minute;
|
25994 | },
|
25995 | set: function set(v) {
|
25996 | this.selecting = SelectingTimes.Minute;
|
25997 | }
|
25998 | },
|
25999 | selectingSecond: {
|
26000 | get: function get() {
|
26001 | return this.selecting === SelectingTimes.Second;
|
26002 | },
|
26003 | set: function set(v) {
|
26004 | this.selecting = SelectingTimes.Second;
|
26005 | }
|
26006 | },
|
26007 | isAllowedHourCb: function isAllowedHourCb() {
|
26008 | var _this = this;
|
26009 |
|
26010 | var cb;
|
26011 |
|
26012 | if (this.allowedHours instanceof Array) {
|
26013 | cb = function cb(val) {
|
26014 | return _this.allowedHours.includes(val);
|
26015 | };
|
26016 | } else {
|
26017 | cb = this.allowedHours;
|
26018 | }
|
26019 |
|
26020 | if (!this.min && !this.max) return cb;
|
26021 | var minHour = this.min ? Number(this.min.split(':')[0]) : 0;
|
26022 | var maxHour = this.max ? Number(this.max.split(':')[0]) : 23;
|
26023 | return function (val) {
|
26024 | return val >= minHour * 1 && val <= maxHour * 1 && (!cb || cb(val));
|
26025 | };
|
26026 | },
|
26027 | isAllowedMinuteCb: function isAllowedMinuteCb() {
|
26028 | var _this = this;
|
26029 |
|
26030 | var cb;
|
26031 | var isHourAllowed = !this.isAllowedHourCb || this.inputHour === null || this.isAllowedHourCb(this.inputHour);
|
26032 |
|
26033 | if (this.allowedMinutes instanceof Array) {
|
26034 | cb = function cb(val) {
|
26035 | return _this.allowedMinutes.includes(val);
|
26036 | };
|
26037 | } else {
|
26038 | cb = this.allowedMinutes;
|
26039 | }
|
26040 |
|
26041 | if (!this.min && !this.max) {
|
26042 | return isHourAllowed ? cb : function () {
|
26043 | return false;
|
26044 | };
|
26045 | }
|
26046 |
|
26047 | var _a = __read(this.min ? this.min.split(':').map(Number) : [0, 0], 2),
|
26048 | minHour = _a[0],
|
26049 | minMinute = _a[1];
|
26050 |
|
26051 | var _b = __read(this.max ? this.max.split(':').map(Number) : [23, 59], 2),
|
26052 | maxHour = _b[0],
|
26053 | maxMinute = _b[1];
|
26054 |
|
26055 | var minTime = minHour * 60 + minMinute * 1;
|
26056 | var maxTime = maxHour * 60 + maxMinute * 1;
|
26057 | return function (val) {
|
26058 | var time = 60 * _this.inputHour + val;
|
26059 | return time >= minTime && time <= maxTime && isHourAllowed && (!cb || cb(val));
|
26060 | };
|
26061 | },
|
26062 | isAllowedSecondCb: function isAllowedSecondCb() {
|
26063 | var _this = this;
|
26064 |
|
26065 | var cb;
|
26066 | var isHourAllowed = !this.isAllowedHourCb || this.inputHour === null || this.isAllowedHourCb(this.inputHour);
|
26067 | var isMinuteAllowed = isHourAllowed && (!this.isAllowedMinuteCb || this.inputMinute === null || this.isAllowedMinuteCb(this.inputMinute));
|
26068 |
|
26069 | if (this.allowedSeconds instanceof Array) {
|
26070 | cb = function cb(val) {
|
26071 | return _this.allowedSeconds.includes(val);
|
26072 | };
|
26073 | } else {
|
26074 | cb = this.allowedSeconds;
|
26075 | }
|
26076 |
|
26077 | if (!this.min && !this.max) {
|
26078 | return isMinuteAllowed ? cb : function () {
|
26079 | return false;
|
26080 | };
|
26081 | }
|
26082 |
|
26083 | var _a = __read(this.min ? this.min.split(':').map(Number) : [0, 0, 0], 3),
|
26084 | minHour = _a[0],
|
26085 | minMinute = _a[1],
|
26086 | minSecond = _a[2];
|
26087 |
|
26088 | var _b = __read(this.max ? this.max.split(':').map(Number) : [23, 59, 59], 3),
|
26089 | maxHour = _b[0],
|
26090 | maxMinute = _b[1],
|
26091 | maxSecond = _b[2];
|
26092 |
|
26093 | var minTime = minHour * 3600 + minMinute * 60 + (minSecond || 0) * 1;
|
26094 | var maxTime = maxHour * 3600 + maxMinute * 60 + (maxSecond || 0) * 1;
|
26095 | return function (val) {
|
26096 | var time = 3600 * _this.inputHour + 60 * _this.inputMinute + val;
|
26097 | return time >= minTime && time <= maxTime && isMinuteAllowed && (!cb || cb(val));
|
26098 | };
|
26099 | },
|
26100 | isAmPm: function isAmPm() {
|
26101 | return this.format === 'ampm';
|
26102 | }
|
26103 | },
|
26104 | watch: {
|
26105 | value: 'setInputData'
|
26106 | },
|
26107 | mounted: function mounted() {
|
26108 | this.setInputData(this.value);
|
26109 | this.$on('update:period', this.setPeriod);
|
26110 | },
|
26111 | methods: {
|
26112 | genValue: function genValue() {
|
26113 | if (this.inputHour != null && this.inputMinute != null && (!this.useSeconds || this.inputSecond != null)) {
|
26114 | return Object(_VDatePicker_util_pad__WEBPACK_IMPORTED_MODULE_5__["default"])(this.inputHour) + ":" + Object(_VDatePicker_util_pad__WEBPACK_IMPORTED_MODULE_5__["default"])(this.inputMinute) + (this.useSeconds ? ":" + Object(_VDatePicker_util_pad__WEBPACK_IMPORTED_MODULE_5__["default"])(this.inputSecond) : '');
|
26115 | }
|
26116 |
|
26117 | return null;
|
26118 | },
|
26119 | emitValue: function emitValue() {
|
26120 | var value = this.genValue();
|
26121 | if (value !== null) this.$emit('input', value);
|
26122 | },
|
26123 | setPeriod: function setPeriod(period) {
|
26124 | this.period = period;
|
26125 |
|
26126 | if (this.inputHour != null) {
|
26127 | var newHour = this.inputHour + (period === 'am' ? -12 : 12);
|
26128 | this.inputHour = this.firstAllowed('hour', newHour);
|
26129 | this.emitValue();
|
26130 | }
|
26131 | },
|
26132 | setInputData: function setInputData(value) {
|
26133 | if (value == null || value === '') {
|
26134 | this.inputHour = null;
|
26135 | this.inputMinute = null;
|
26136 | this.inputSecond = null;
|
26137 | } else if (value instanceof Date) {
|
26138 | this.inputHour = value.getHours();
|
26139 | this.inputMinute = value.getMinutes();
|
26140 | this.inputSecond = value.getSeconds();
|
26141 | } else {
|
26142 | var _a = __read(value.trim().toLowerCase().match(/^(\d+):(\d+)(:(\d+))?([ap]m)?$/) || new Array(6), 6),
|
26143 | hour = _a[1],
|
26144 | minute = _a[2],
|
26145 | second = _a[4],
|
26146 | period = _a[5];
|
26147 |
|
26148 | this.inputHour = period ? this.convert12to24(parseInt(hour, 10), period) : parseInt(hour, 10);
|
26149 | this.inputMinute = parseInt(minute, 10);
|
26150 | this.inputSecond = parseInt(second || 0, 10);
|
26151 | }
|
26152 |
|
26153 | this.period = this.inputHour == null || this.inputHour < 12 ? 'am' : 'pm';
|
26154 | },
|
26155 | convert24to12: function convert24to12(hour) {
|
26156 | return hour ? (hour - 1) % 12 + 1 : 12;
|
26157 | },
|
26158 | convert12to24: function convert12to24(hour, period) {
|
26159 | return hour % 12 + (period === 'pm' ? 12 : 0);
|
26160 | },
|
26161 | onInput: function onInput(value) {
|
26162 | if (this.selecting === SelectingTimes.Hour) {
|
26163 | this.inputHour = this.isAmPm ? this.convert12to24(value, this.period) : value;
|
26164 | } else if (this.selecting === SelectingTimes.Minute) {
|
26165 | this.inputMinute = value;
|
26166 | } else {
|
26167 | this.inputSecond = value;
|
26168 | }
|
26169 |
|
26170 | this.emitValue();
|
26171 | },
|
26172 | onChange: function onChange(value) {
|
26173 | this.$emit("click:" + selectingNames[this.selecting], value);
|
26174 | var emitChange = this.selecting === (this.useSeconds ? SelectingTimes.Second : SelectingTimes.Minute);
|
26175 |
|
26176 | if (this.selecting === SelectingTimes.Hour) {
|
26177 | this.selecting = SelectingTimes.Minute;
|
26178 | } else if (this.useSeconds && this.selecting === SelectingTimes.Minute) {
|
26179 | this.selecting = SelectingTimes.Second;
|
26180 | }
|
26181 |
|
26182 | if (this.inputHour === this.lazyInputHour && this.inputMinute === this.lazyInputMinute && (!this.useSeconds || this.inputSecond === this.lazyInputSecond)) return;
|
26183 | var time = this.genValue();
|
26184 | if (time === null) return;
|
26185 | this.lazyInputHour = this.inputHour;
|
26186 | this.lazyInputMinute = this.inputMinute;
|
26187 | this.useSeconds && (this.lazyInputSecond = this.inputSecond);
|
26188 | emitChange && this.$emit('change', time);
|
26189 | },
|
26190 | firstAllowed: function firstAllowed(type, value) {
|
26191 | var allowedFn = type === 'hour' ? this.isAllowedHourCb : type === 'minute' ? this.isAllowedMinuteCb : this.isAllowedSecondCb;
|
26192 | if (!allowedFn) return value;
|
26193 |
|
26194 | var range = type === 'minute' ? range60 : type === 'second' ? range60 : this.isAmPm ? value < 12 ? rangeHours12am : rangeHours12pm : rangeHours24;
|
26195 | var first = range.find(function (v) {
|
26196 | return allowedFn((v + value) % range.length + range[0]);
|
26197 | });
|
26198 | return ((first || 0) + value) % range.length + range[0];
|
26199 | },
|
26200 | genClock: function genClock() {
|
26201 | return this.$createElement(_VTimePickerClock__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
26202 | props: {
|
26203 | allowedValues: this.selecting === SelectingTimes.Hour ? this.isAllowedHourCb : this.selecting === SelectingTimes.Minute ? this.isAllowedMinuteCb : this.isAllowedSecondCb,
|
26204 | color: this.color,
|
26205 | dark: this.dark,
|
26206 | disabled: this.disabled,
|
26207 | double: this.selecting === SelectingTimes.Hour && !this.isAmPm,
|
26208 | format: this.selecting === SelectingTimes.Hour ? this.isAmPm ? this.convert24to12 : function (val) {
|
26209 | return val;
|
26210 | } : function (val) {
|
26211 | return Object(_VDatePicker_util_pad__WEBPACK_IMPORTED_MODULE_5__["default"])(val, 2);
|
26212 | },
|
26213 | light: this.light,
|
26214 | max: this.selecting === SelectingTimes.Hour ? this.isAmPm && this.period === 'am' ? 11 : 23 : 59,
|
26215 | min: this.selecting === SelectingTimes.Hour && this.isAmPm && this.period === 'pm' ? 12 : 0,
|
26216 | readonly: this.readonly,
|
26217 | scrollable: this.scrollable,
|
26218 | size: Number(this.width) - (!this.fullWidth && this.landscape ? 80 : 20),
|
26219 | step: this.selecting === SelectingTimes.Hour ? 1 : 5,
|
26220 | value: this.selecting === SelectingTimes.Hour ? this.inputHour : this.selecting === SelectingTimes.Minute ? this.inputMinute : this.inputSecond
|
26221 | },
|
26222 | on: {
|
26223 | input: this.onInput,
|
26224 | change: this.onChange
|
26225 | },
|
26226 | ref: 'clock'
|
26227 | });
|
26228 | },
|
26229 | genClockAmPm: function genClockAmPm() {
|
26230 | return this.$createElement('div', this.setTextColor(this.color || 'primary', {
|
26231 | staticClass: 'v-time-picker-clock__ampm'
|
26232 | }), [this.genPickerButton('period', 'am', this.$vuetify.lang.t('$vuetify.timePicker.am'), this.disabled || this.readonly), this.genPickerButton('period', 'pm', this.$vuetify.lang.t('$vuetify.timePicker.pm'), this.disabled || this.readonly)]);
|
26233 | },
|
26234 | genPickerBody: function genPickerBody() {
|
26235 | return this.$createElement('div', {
|
26236 | staticClass: 'v-time-picker-clock__container',
|
26237 | key: this.selecting
|
26238 | }, [!this.ampmInTitle && this.isAmPm && this.genClockAmPm(), this.genClock()]);
|
26239 | },
|
26240 | genPickerTitle: function genPickerTitle() {
|
26241 | var _this = this;
|
26242 |
|
26243 | return this.$createElement(_VTimePickerTitle__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
26244 | props: {
|
26245 | ampm: this.ampmInTitle && this.isAmPm,
|
26246 | disabled: this.disabled,
|
26247 | hour: this.inputHour,
|
26248 | minute: this.inputMinute,
|
26249 | second: this.inputSecond,
|
26250 | period: this.period,
|
26251 | readonly: this.readonly,
|
26252 | useSeconds: this.useSeconds,
|
26253 | selecting: this.selecting
|
26254 | },
|
26255 | on: {
|
26256 | 'update:selecting': function updateSelecting(value) {
|
26257 | return _this.selecting = value;
|
26258 | },
|
26259 | 'update:period': this.setPeriod
|
26260 | },
|
26261 | ref: 'title',
|
26262 | slot: 'title'
|
26263 | });
|
26264 | }
|
26265 | },
|
26266 | render: function render() {
|
26267 | return this.genPicker('v-picker--time');
|
26268 | }
|
26269 | }));
|
26270 |
|
26271 | }),
|
26272 |
|
26273 | "./src/components/VTimePicker/VTimePickerClock.sass":
|
26274 |
|
26275 |
|
26276 |
|
26277 |
|
26278 | (function(module, exports, __webpack_require__) {
|
26279 |
|
26280 |
|
26281 |
|
26282 | }),
|
26283 |
|
26284 | "./src/components/VTimePicker/VTimePickerClock.ts":
|
26285 |
|
26286 |
|
26287 |
|
26288 |
|
26289 | (function(module, __webpack_exports__, __webpack_require__) {
|
26290 |
|
26291 | "use strict";
|
26292 | __webpack_require__.r(__webpack_exports__);
|
26293 | var _VTimePickerClock_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VTimePicker/VTimePickerClock.sass");
|
26294 | var _VTimePickerClock_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VTimePickerClock_sass__WEBPACK_IMPORTED_MODULE_0__);
|
26295 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
26296 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
26297 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
26298 | var __assign = undefined && undefined.__assign || function () {
|
26299 | __assign = Object.assign || function (t) {
|
26300 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
26301 | s = arguments[i];
|
26302 |
|
26303 | for (var p in s) {
|
26304 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
26305 | }
|
26306 | }
|
26307 |
|
26308 | return t;
|
26309 | };
|
26310 |
|
26311 | return __assign.apply(this, arguments);
|
26312 | };
|
26313 |
|
26314 |
|
26315 |
|
26316 |
|
26317 |
|
26318 |
|
26319 |
|
26320 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]
|
26321 |
|
26322 | ).extend({
|
26323 | name: 'v-time-picker-clock',
|
26324 | props: {
|
26325 | allowedValues: Function,
|
26326 | ampm: Boolean,
|
26327 | disabled: Boolean,
|
26328 | double: Boolean,
|
26329 | format: {
|
26330 | type: Function,
|
26331 | default: function _default(val) {
|
26332 | return val;
|
26333 | }
|
26334 | },
|
26335 | max: {
|
26336 | type: Number,
|
26337 | required: true
|
26338 | },
|
26339 | min: {
|
26340 | type: Number,
|
26341 | required: true
|
26342 | },
|
26343 | scrollable: Boolean,
|
26344 | readonly: Boolean,
|
26345 | rotate: {
|
26346 | type: Number,
|
26347 | default: 0
|
26348 | },
|
26349 | step: {
|
26350 | type: Number,
|
26351 | default: 1
|
26352 | },
|
26353 | value: Number
|
26354 | },
|
26355 | data: function data() {
|
26356 | return {
|
26357 | inputValue: this.value,
|
26358 | isDragging: false,
|
26359 | valueOnMouseDown: null,
|
26360 | valueOnMouseUp: null
|
26361 | };
|
26362 | },
|
26363 | computed: {
|
26364 | count: function count() {
|
26365 | return this.max - this.min + 1;
|
26366 | },
|
26367 | degreesPerUnit: function degreesPerUnit() {
|
26368 | return 360 / this.roundCount;
|
26369 | },
|
26370 | degrees: function degrees() {
|
26371 | return this.degreesPerUnit * Math.PI / 180;
|
26372 | },
|
26373 | displayedValue: function displayedValue() {
|
26374 | return this.value == null ? this.min : this.value;
|
26375 | },
|
26376 | innerRadiusScale: function innerRadiusScale() {
|
26377 | return 0.62;
|
26378 | },
|
26379 | roundCount: function roundCount() {
|
26380 | return this.double ? this.count / 2 : this.count;
|
26381 | }
|
26382 | },
|
26383 | watch: {
|
26384 | value: function value(_value) {
|
26385 | this.inputValue = _value;
|
26386 | }
|
26387 | },
|
26388 | methods: {
|
26389 | wheel: function wheel(e) {
|
26390 | e.preventDefault();
|
26391 | var delta = Math.sign(-e.deltaY || 1);
|
26392 | var value = this.displayedValue;
|
26393 |
|
26394 | do {
|
26395 | value = value + delta;
|
26396 | value = (value - this.min + this.count) % this.count + this.min;
|
26397 | } while (!this.isAllowed(value) && value !== this.displayedValue);
|
26398 |
|
26399 | if (value !== this.displayedValue) {
|
26400 | this.update(value);
|
26401 | }
|
26402 | },
|
26403 | isInner: function isInner(value) {
|
26404 | return this.double && value - this.min >= this.roundCount;
|
26405 | },
|
26406 | handScale: function handScale(value) {
|
26407 | return this.isInner(value) ? this.innerRadiusScale : 1;
|
26408 | },
|
26409 | isAllowed: function isAllowed(value) {
|
26410 | return !this.allowedValues || this.allowedValues(value);
|
26411 | },
|
26412 | genValues: function genValues() {
|
26413 | var children = [];
|
26414 |
|
26415 | for (var value = this.min; value <= this.max; value = value + this.step) {
|
26416 | var color = value === this.value && (this.color || 'accent');
|
26417 | children.push(this.$createElement('span', this.setBackgroundColor(color, {
|
26418 | staticClass: 'v-time-picker-clock__item',
|
26419 | class: {
|
26420 | 'v-time-picker-clock__item--active': value === this.displayedValue,
|
26421 | 'v-time-picker-clock__item--disabled': this.disabled || !this.isAllowed(value)
|
26422 | },
|
26423 | style: this.getTransform(value),
|
26424 | domProps: {
|
26425 | innerHTML: "<span>" + this.format(value) + "</span>"
|
26426 | }
|
26427 | })));
|
26428 | }
|
26429 |
|
26430 | return children;
|
26431 | },
|
26432 | genHand: function genHand() {
|
26433 | var scale = "scaleY(" + this.handScale(this.displayedValue) + ")";
|
26434 | var angle = this.rotate + this.degreesPerUnit * (this.displayedValue - this.min);
|
26435 | var color = this.value != null && (this.color || 'accent');
|
26436 | return this.$createElement('div', this.setBackgroundColor(color, {
|
26437 | staticClass: 'v-time-picker-clock__hand',
|
26438 | class: {
|
26439 | 'v-time-picker-clock__hand--inner': this.isInner(this.value)
|
26440 | },
|
26441 | style: {
|
26442 | transform: "rotate(" + angle + "deg) " + scale
|
26443 | }
|
26444 | }));
|
26445 | },
|
26446 | getTransform: function getTransform(i) {
|
26447 | var _a = this.getPosition(i),
|
26448 | x = _a.x,
|
26449 | y = _a.y;
|
26450 |
|
26451 | return {
|
26452 | left: 50 + x * 50 + "%",
|
26453 | top: 50 + y * 50 + "%"
|
26454 | };
|
26455 | },
|
26456 | getPosition: function getPosition(value) {
|
26457 | var rotateRadians = this.rotate * Math.PI / 180;
|
26458 | return {
|
26459 | x: Math.sin((value - this.min) * this.degrees + rotateRadians) * this.handScale(value),
|
26460 | y: -Math.cos((value - this.min) * this.degrees + rotateRadians) * this.handScale(value)
|
26461 | };
|
26462 | },
|
26463 | onMouseDown: function onMouseDown(e) {
|
26464 | e.preventDefault();
|
26465 | this.valueOnMouseDown = null;
|
26466 | this.valueOnMouseUp = null;
|
26467 | this.isDragging = true;
|
26468 | this.onDragMove(e);
|
26469 | },
|
26470 | onMouseUp: function onMouseUp(e) {
|
26471 | e.stopPropagation();
|
26472 | this.isDragging = false;
|
26473 |
|
26474 | if (this.valueOnMouseUp !== null && this.isAllowed(this.valueOnMouseUp)) {
|
26475 | this.$emit('change', this.valueOnMouseUp);
|
26476 | }
|
26477 | },
|
26478 | onDragMove: function onDragMove(e) {
|
26479 | e.preventDefault();
|
26480 | if (!this.isDragging && e.type !== 'click') return;
|
26481 |
|
26482 | var _a = this.$refs.clock.getBoundingClientRect(),
|
26483 | width = _a.width,
|
26484 | top = _a.top,
|
26485 | left = _a.left;
|
26486 |
|
26487 | var innerWidth = this.$refs.innerClock.getBoundingClientRect().width;
|
26488 |
|
26489 | var _b = 'touches' in e ? e.touches[0] : e,
|
26490 | clientX = _b.clientX,
|
26491 | clientY = _b.clientY;
|
26492 |
|
26493 | var center = {
|
26494 | x: width / 2,
|
26495 | y: -width / 2
|
26496 | };
|
26497 | var coords = {
|
26498 | x: clientX - left,
|
26499 | y: top - clientY
|
26500 | };
|
26501 | var handAngle = Math.round(this.angle(center, coords) - this.rotate + 360) % 360;
|
26502 | var insideClick = this.double && this.euclidean(center, coords) < (innerWidth + innerWidth * this.innerRadiusScale) / 4;
|
26503 | var value = (Math.round(handAngle / this.degreesPerUnit) + (insideClick ? this.roundCount : 0)) % this.count + this.min;
|
26504 |
|
26505 | var newValue;
|
26506 |
|
26507 | if (handAngle >= 360 - this.degreesPerUnit / 2) {
|
26508 | newValue = insideClick ? this.max - this.roundCount + 1 : this.min;
|
26509 | } else {
|
26510 | newValue = value;
|
26511 | }
|
26512 |
|
26513 | if (this.isAllowed(value)) {
|
26514 | if (this.valueOnMouseDown === null) {
|
26515 | this.valueOnMouseDown = newValue;
|
26516 | }
|
26517 |
|
26518 | this.valueOnMouseUp = newValue;
|
26519 | this.update(newValue);
|
26520 | }
|
26521 | },
|
26522 | update: function update(value) {
|
26523 | if (this.inputValue !== value) {
|
26524 | this.inputValue = value;
|
26525 | this.$emit('input', value);
|
26526 | }
|
26527 | },
|
26528 | euclidean: function euclidean(p0, p1) {
|
26529 | var dx = p1.x - p0.x;
|
26530 | var dy = p1.y - p0.y;
|
26531 | return Math.sqrt(dx * dx + dy * dy);
|
26532 | },
|
26533 | angle: function angle(center, p1) {
|
26534 | var value = 2 * Math.atan2(p1.y - center.y - this.euclidean(center, p1), p1.x - center.x);
|
26535 | return Math.abs(value * 180 / Math.PI);
|
26536 | }
|
26537 | },
|
26538 | render: function render(h) {
|
26539 | var _this = this;
|
26540 |
|
26541 | var data = {
|
26542 | staticClass: 'v-time-picker-clock',
|
26543 | class: __assign({
|
26544 | 'v-time-picker-clock--indeterminate': this.value == null
|
26545 | }, this.themeClasses),
|
26546 | on: this.readonly || this.disabled ? undefined : Object.assign({
|
26547 | mousedown: this.onMouseDown,
|
26548 | mouseup: this.onMouseUp,
|
26549 | mouseleave: function mouseleave(e) {
|
26550 | return _this.isDragging && _this.onMouseUp(e);
|
26551 | },
|
26552 | touchstart: this.onMouseDown,
|
26553 | touchend: this.onMouseUp,
|
26554 | mousemove: this.onDragMove,
|
26555 | touchmove: this.onDragMove
|
26556 | }, this.scrollable ? {
|
26557 | wheel: this.wheel
|
26558 | } : {}),
|
26559 | ref: 'clock'
|
26560 | };
|
26561 | return h('div', data, [h('div', {
|
26562 | staticClass: 'v-time-picker-clock__inner',
|
26563 | ref: 'innerClock'
|
26564 | }, [this.genHand(), this.genValues()])]);
|
26565 | }
|
26566 | }));
|
26567 |
|
26568 | }),
|
26569 |
|
26570 | "./src/components/VTimePicker/VTimePickerTitle.sass":
|
26571 |
|
26572 |
|
26573 |
|
26574 |
|
26575 | (function(module, exports, __webpack_require__) {
|
26576 |
|
26577 |
|
26578 |
|
26579 | }),
|
26580 |
|
26581 | "./src/components/VTimePicker/VTimePickerTitle.ts":
|
26582 |
|
26583 |
|
26584 |
|
26585 |
|
26586 | (function(module, __webpack_exports__, __webpack_require__) {
|
26587 |
|
26588 | "use strict";
|
26589 | __webpack_require__.r(__webpack_exports__);
|
26590 | var _VTimePickerTitle_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VTimePicker/VTimePickerTitle.sass");
|
26591 | var _VTimePickerTitle_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VTimePickerTitle_sass__WEBPACK_IMPORTED_MODULE_0__);
|
26592 | var _mixins_picker_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/picker-button/index.ts");
|
26593 | var _VDatePicker_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VDatePicker/util/index.ts");
|
26594 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
26595 | var _VTimePicker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VTimePicker/VTimePicker.ts");
|
26596 |
|
26597 |
|
26598 |
|
26599 |
|
26600 |
|
26601 |
|
26602 |
|
26603 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_picker_button__WEBPACK_IMPORTED_MODULE_1__["default"]
|
26604 |
|
26605 | ).extend({
|
26606 | name: 'v-time-picker-title',
|
26607 | props: {
|
26608 | ampm: Boolean,
|
26609 | disabled: Boolean,
|
26610 | hour: Number,
|
26611 | minute: Number,
|
26612 | second: Number,
|
26613 | period: {
|
26614 | type: String,
|
26615 | validator: function validator(period) {
|
26616 | return period === 'am' || period === 'pm';
|
26617 | }
|
26618 | },
|
26619 | readonly: Boolean,
|
26620 | useSeconds: Boolean,
|
26621 | selecting: Number
|
26622 | },
|
26623 | methods: {
|
26624 | genTime: function genTime() {
|
26625 | var hour = this.hour;
|
26626 |
|
26627 | if (this.ampm) {
|
26628 | hour = hour ? (hour - 1) % 12 + 1 : 12;
|
26629 | }
|
26630 |
|
26631 | var displayedHour = this.hour == null ? '--' : this.ampm ? String(hour) : Object(_VDatePicker_util__WEBPACK_IMPORTED_MODULE_2__["pad"])(hour);
|
26632 | var displayedMinute = this.minute == null ? '--' : Object(_VDatePicker_util__WEBPACK_IMPORTED_MODULE_2__["pad"])(this.minute);
|
26633 | var titleContent = [this.genPickerButton('selecting', _VTimePicker__WEBPACK_IMPORTED_MODULE_4__["SelectingTimes"].Hour, displayedHour, this.disabled), this.$createElement('span', ':'), this.genPickerButton('selecting', _VTimePicker__WEBPACK_IMPORTED_MODULE_4__["SelectingTimes"].Minute, displayedMinute, this.disabled)];
|
26634 |
|
26635 | if (this.useSeconds) {
|
26636 | var displayedSecond = this.second == null ? '--' : Object(_VDatePicker_util__WEBPACK_IMPORTED_MODULE_2__["pad"])(this.second);
|
26637 | titleContent.push(this.$createElement('span', ':'));
|
26638 | titleContent.push(this.genPickerButton('selecting', _VTimePicker__WEBPACK_IMPORTED_MODULE_4__["SelectingTimes"].Second, displayedSecond, this.disabled));
|
26639 | }
|
26640 |
|
26641 | return this.$createElement('div', {
|
26642 | class: 'v-time-picker-title__time'
|
26643 | }, titleContent);
|
26644 | },
|
26645 | genAmPm: function genAmPm() {
|
26646 | return this.$createElement('div', {
|
26647 | staticClass: 'v-time-picker-title__ampm'
|
26648 | }, [this.genPickerButton('period', 'am', this.$vuetify.lang.t('$vuetify.timePicker.am'), this.disabled || this.readonly), this.genPickerButton('period', 'pm', this.$vuetify.lang.t('$vuetify.timePicker.pm'), this.disabled || this.readonly)]);
|
26649 | }
|
26650 | },
|
26651 | render: function render(h) {
|
26652 | var children = [this.genTime()];
|
26653 | this.ampm && children.push(this.genAmPm());
|
26654 | return h('div', {
|
26655 | staticClass: 'v-time-picker-title'
|
26656 | }, children);
|
26657 | }
|
26658 | }));
|
26659 |
|
26660 | }),
|
26661 |
|
26662 | "./src/components/VTimePicker/index.ts":
|
26663 |
|
26664 |
|
26665 |
|
26666 |
|
26667 | (function(module, __webpack_exports__, __webpack_require__) {
|
26668 |
|
26669 | "use strict";
|
26670 | __webpack_require__.r(__webpack_exports__);
|
26671 | var _VTimePicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VTimePicker/VTimePicker.ts");
|
26672 | __webpack_require__.d(__webpack_exports__, "VTimePicker", function() { return _VTimePicker__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
26673 |
|
26674 | var _VTimePickerClock__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VTimePicker/VTimePickerClock.ts");
|
26675 | __webpack_require__.d(__webpack_exports__, "VTimePickerClock", function() { return _VTimePickerClock__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
26676 |
|
26677 | var _VTimePickerTitle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VTimePicker/VTimePickerTitle.ts");
|
26678 | __webpack_require__.d(__webpack_exports__, "VTimePickerTitle", function() { return _VTimePickerTitle__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
26679 |
|
26680 |
|
26681 |
|
26682 |
|
26683 |
|
26684 | __webpack_exports__["default"] = ({
|
26685 | $_vuetify_subcomponents: {
|
26686 | VTimePicker: _VTimePicker__WEBPACK_IMPORTED_MODULE_0__["default"],
|
26687 | VTimePickerClock: _VTimePickerClock__WEBPACK_IMPORTED_MODULE_1__["default"],
|
26688 | VTimePickerTitle: _VTimePickerTitle__WEBPACK_IMPORTED_MODULE_2__["default"]
|
26689 | }
|
26690 | });
|
26691 |
|
26692 | }),
|
26693 |
|
26694 | "./src/components/VTimeline/VTimeline.sass":
|
26695 |
|
26696 |
|
26697 |
|
26698 |
|
26699 | (function(module, exports, __webpack_require__) {
|
26700 |
|
26701 |
|
26702 |
|
26703 | }),
|
26704 |
|
26705 | "./src/components/VTimeline/VTimeline.ts":
|
26706 |
|
26707 |
|
26708 |
|
26709 |
|
26710 | (function(module, __webpack_exports__, __webpack_require__) {
|
26711 |
|
26712 | "use strict";
|
26713 | __webpack_require__.r(__webpack_exports__);
|
26714 | var _VTimeline_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VTimeline/VTimeline.sass");
|
26715 | var _VTimeline_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VTimeline_sass__WEBPACK_IMPORTED_MODULE_0__);
|
26716 | var _util_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/mixins.ts");
|
26717 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
26718 | var __assign = undefined && undefined.__assign || function () {
|
26719 | __assign = Object.assign || function (t) {
|
26720 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
26721 | s = arguments[i];
|
26722 |
|
26723 | for (var p in s) {
|
26724 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
26725 | }
|
26726 | }
|
26727 |
|
26728 | return t;
|
26729 | };
|
26730 |
|
26731 | return __assign.apply(this, arguments);
|
26732 | };
|
26733 |
|
26734 |
|
26735 |
|
26736 |
|
26737 |
|
26738 |
|
26739 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_1__["default"])(_mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]
|
26740 |
|
26741 | ).extend({
|
26742 | name: 'v-timeline',
|
26743 | provide: function provide() {
|
26744 | return {
|
26745 | timeline: this
|
26746 | };
|
26747 | },
|
26748 | props: {
|
26749 | alignTop: Boolean,
|
26750 | dense: Boolean,
|
26751 | reverse: Boolean
|
26752 | },
|
26753 | computed: {
|
26754 | classes: function classes() {
|
26755 | return __assign({
|
26756 | 'v-timeline--align-top': this.alignTop,
|
26757 | 'v-timeline--dense': this.dense,
|
26758 | 'v-timeline--reverse': this.reverse
|
26759 | }, this.themeClasses);
|
26760 | }
|
26761 | },
|
26762 | render: function render(h) {
|
26763 | return h('div', {
|
26764 | staticClass: 'v-timeline',
|
26765 | class: this.classes
|
26766 | }, this.$slots.default);
|
26767 | }
|
26768 | }));
|
26769 |
|
26770 | }),
|
26771 |
|
26772 | "./src/components/VTimeline/VTimelineItem.ts":
|
26773 |
|
26774 |
|
26775 |
|
26776 |
|
26777 | (function(module, __webpack_exports__, __webpack_require__) {
|
26778 |
|
26779 | "use strict";
|
26780 | __webpack_require__.r(__webpack_exports__);
|
26781 | var _util_mixins__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/mixins.ts");
|
26782 | var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
26783 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
26784 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
26785 | var __assign = undefined && undefined.__assign || function () {
|
26786 | __assign = Object.assign || function (t) {
|
26787 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
26788 | s = arguments[i];
|
26789 |
|
26790 | for (var p in s) {
|
26791 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
26792 | }
|
26793 | }
|
26794 |
|
26795 | return t;
|
26796 | };
|
26797 |
|
26798 | return __assign.apply(this, arguments);
|
26799 | };
|
26800 |
|
26801 |
|
26802 |
|
26803 |
|
26804 |
|
26805 |
|
26806 |
|
26807 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_0__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]
|
26808 |
|
26809 | );
|
26810 | __webpack_exports__["default"] = (baseMixins.extend().extend({
|
26811 | name: 'v-timeline-item',
|
26812 | inject: ['timeline'],
|
26813 | props: {
|
26814 | color: {
|
26815 | type: String,
|
26816 | default: 'primary'
|
26817 | },
|
26818 | fillDot: Boolean,
|
26819 | hideDot: Boolean,
|
26820 | icon: String,
|
26821 | iconColor: String,
|
26822 | large: Boolean,
|
26823 | left: Boolean,
|
26824 | right: Boolean,
|
26825 | small: Boolean
|
26826 | },
|
26827 | computed: {
|
26828 | hasIcon: function hasIcon() {
|
26829 | return !!this.icon || !!this.$slots.icon;
|
26830 | }
|
26831 | },
|
26832 | methods: {
|
26833 | genBody: function genBody() {
|
26834 | return this.$createElement('div', {
|
26835 | staticClass: 'v-timeline-item__body'
|
26836 | }, this.$slots.default);
|
26837 | },
|
26838 | genIcon: function genIcon() {
|
26839 | if (this.$slots.icon) {
|
26840 | return this.$slots.icon;
|
26841 | }
|
26842 |
|
26843 | return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
26844 | props: {
|
26845 | color: this.iconColor,
|
26846 | dark: !this.theme.isDark,
|
26847 | small: this.small
|
26848 | }
|
26849 | }, this.icon);
|
26850 | },
|
26851 | genInnerDot: function genInnerDot() {
|
26852 | var data = this.setBackgroundColor(this.color);
|
26853 | return this.$createElement('div', __assign({
|
26854 | staticClass: 'v-timeline-item__inner-dot'
|
26855 | }, data), [this.hasIcon && this.genIcon()]);
|
26856 | },
|
26857 | genDot: function genDot() {
|
26858 | return this.$createElement('div', {
|
26859 | staticClass: 'v-timeline-item__dot',
|
26860 | class: {
|
26861 | 'v-timeline-item__dot--small': this.small,
|
26862 | 'v-timeline-item__dot--large': this.large
|
26863 | }
|
26864 | }, [this.genInnerDot()]);
|
26865 | },
|
26866 | genDivider: function genDivider() {
|
26867 | var children = [];
|
26868 | if (!this.hideDot) children.push(this.genDot());
|
26869 | return this.$createElement('div', {
|
26870 | staticClass: 'v-timeline-item__divider'
|
26871 | }, children);
|
26872 | },
|
26873 | genOpposite: function genOpposite() {
|
26874 | return this.$createElement('div', {
|
26875 | staticClass: 'v-timeline-item__opposite'
|
26876 | }, this.$slots.opposite);
|
26877 | }
|
26878 | },
|
26879 | render: function render(h) {
|
26880 | var children = [this.genBody(), this.genDivider()];
|
26881 | if (this.$slots.opposite) children.push(this.genOpposite());
|
26882 | return h('div', {
|
26883 | staticClass: 'v-timeline-item',
|
26884 | class: __assign({
|
26885 | 'v-timeline-item--fill-dot': this.fillDot,
|
26886 | 'v-timeline-item--before': this.timeline.reverse ? this.right : this.left,
|
26887 | 'v-timeline-item--after': this.timeline.reverse ? this.left : this.right
|
26888 | }, this.themeClasses)
|
26889 | }, children);
|
26890 | }
|
26891 | }));
|
26892 |
|
26893 | }),
|
26894 |
|
26895 | "./src/components/VTimeline/index.ts":
|
26896 |
|
26897 |
|
26898 |
|
26899 |
|
26900 | (function(module, __webpack_exports__, __webpack_require__) {
|
26901 |
|
26902 | "use strict";
|
26903 | __webpack_require__.r(__webpack_exports__);
|
26904 | var _VTimeline__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VTimeline/VTimeline.ts");
|
26905 | __webpack_require__.d(__webpack_exports__, "VTimeline", function() { return _VTimeline__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
26906 |
|
26907 | var _VTimelineItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VTimeline/VTimelineItem.ts");
|
26908 | __webpack_require__.d(__webpack_exports__, "VTimelineItem", function() { return _VTimelineItem__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
26909 |
|
26910 |
|
26911 |
|
26912 |
|
26913 | __webpack_exports__["default"] = ({
|
26914 | $_vuetify_subcomponents: {
|
26915 | VTimeline: _VTimeline__WEBPACK_IMPORTED_MODULE_0__["default"],
|
26916 | VTimelineItem: _VTimelineItem__WEBPACK_IMPORTED_MODULE_1__["default"]
|
26917 | }
|
26918 | });
|
26919 |
|
26920 | }),
|
26921 |
|
26922 | "./src/components/VToolbar/VToolbar.sass":
|
26923 |
|
26924 |
|
26925 |
|
26926 |
|
26927 | (function(module, exports, __webpack_require__) {
|
26928 |
|
26929 |
|
26930 |
|
26931 | }),
|
26932 |
|
26933 | "./src/components/VToolbar/VToolbar.ts":
|
26934 |
|
26935 |
|
26936 |
|
26937 |
|
26938 | (function(module, __webpack_exports__, __webpack_require__) {
|
26939 |
|
26940 | "use strict";
|
26941 | __webpack_require__.r(__webpack_exports__);
|
26942 | var _VToolbar_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VToolbar/VToolbar.sass");
|
26943 | var _VToolbar_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VToolbar_sass__WEBPACK_IMPORTED_MODULE_0__);
|
26944 | var _VSheet_VSheet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VSheet/VSheet.ts");
|
26945 | var _VImg_VImg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VImg/VImg.ts");
|
26946 | var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/helpers.ts");
|
26947 | var _util_console__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/console.ts");
|
26948 | var __assign = undefined && undefined.__assign || function () {
|
26949 | __assign = Object.assign || function (t) {
|
26950 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
26951 | s = arguments[i];
|
26952 |
|
26953 | for (var p in s) {
|
26954 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
26955 | }
|
26956 | }
|
26957 |
|
26958 | return t;
|
26959 | };
|
26960 |
|
26961 | return __assign.apply(this, arguments);
|
26962 | };
|
26963 |
|
26964 | var __read = undefined && undefined.__read || function (o, n) {
|
26965 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
26966 | if (!m) return o;
|
26967 | var i = m.call(o),
|
26968 | r,
|
26969 | ar = [],
|
26970 | e;
|
26971 |
|
26972 | try {
|
26973 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
26974 | ar.push(r.value);
|
26975 | }
|
26976 | } catch (error) {
|
26977 | e = {
|
26978 | error: error
|
26979 | };
|
26980 | } finally {
|
26981 | try {
|
26982 | if (r && !r.done && (m = i["return"])) m.call(i);
|
26983 | } finally {
|
26984 | if (e) throw e.error;
|
26985 | }
|
26986 | }
|
26987 |
|
26988 | return ar;
|
26989 | };
|
26990 |
|
26991 |
|
26992 |
|
26993 |
|
26994 |
|
26995 |
|
26996 |
|
26997 |
|
26998 |
|
26999 |
|
27000 |
|
27001 |
|
27002 | __webpack_exports__["default"] = (_VSheet_VSheet__WEBPACK_IMPORTED_MODULE_1__["default"].extend({
|
27003 | name: 'v-toolbar',
|
27004 | props: {
|
27005 | absolute: Boolean,
|
27006 | bottom: Boolean,
|
27007 | collapse: Boolean,
|
27008 | dense: Boolean,
|
27009 | extended: Boolean,
|
27010 | extensionHeight: {
|
27011 | default: 48,
|
27012 | type: [Number, String]
|
27013 | },
|
27014 | flat: Boolean,
|
27015 | floating: Boolean,
|
27016 | prominent: Boolean,
|
27017 | short: Boolean,
|
27018 | src: {
|
27019 | type: [String, Object],
|
27020 | default: ''
|
27021 | },
|
27022 | tag: {
|
27023 | type: String,
|
27024 | default: 'header'
|
27025 | },
|
27026 | tile: {
|
27027 | type: Boolean,
|
27028 | default: true
|
27029 | }
|
27030 | },
|
27031 | data: function data() {
|
27032 | return {
|
27033 | isExtended: false
|
27034 | };
|
27035 | },
|
27036 | computed: {
|
27037 | computedHeight: function computedHeight() {
|
27038 | var height = this.computedContentHeight;
|
27039 | if (!this.isExtended) return height;
|
27040 | var extensionHeight = parseInt(this.extensionHeight);
|
27041 | return this.isCollapsed ? height : height + (!isNaN(extensionHeight) ? extensionHeight : 0);
|
27042 | },
|
27043 | computedContentHeight: function computedContentHeight() {
|
27044 | if (this.height) return parseInt(this.height);
|
27045 | if (this.isProminent && this.dense) return 96;
|
27046 | if (this.isProminent && this.short) return 112;
|
27047 | if (this.isProminent) return 128;
|
27048 | if (this.dense) return 48;
|
27049 | if (this.short || this.$vuetify.breakpoint.smAndDown) return 56;
|
27050 | return 64;
|
27051 | },
|
27052 | classes: function classes() {
|
27053 | return __assign({}, _VSheet_VSheet__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this), {
|
27054 | 'v-toolbar': true,
|
27055 | 'v-toolbar--absolute': this.absolute,
|
27056 | 'v-toolbar--bottom': this.bottom,
|
27057 | 'v-toolbar--collapse': this.collapse,
|
27058 | 'v-toolbar--collapsed': this.isCollapsed,
|
27059 | 'v-toolbar--dense': this.dense,
|
27060 | 'v-toolbar--extended': this.isExtended,
|
27061 | 'v-toolbar--flat': this.flat,
|
27062 | 'v-toolbar--floating': this.floating,
|
27063 | 'v-toolbar--prominent': this.isProminent
|
27064 | });
|
27065 | },
|
27066 | isCollapsed: function isCollapsed() {
|
27067 | return this.collapse;
|
27068 | },
|
27069 | isProminent: function isProminent() {
|
27070 | return this.prominent;
|
27071 | },
|
27072 | styles: function styles() {
|
27073 | return __assign({}, this.measurableStyles, {
|
27074 | height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["convertToUnit"])(this.computedHeight)
|
27075 | });
|
27076 | }
|
27077 | },
|
27078 | created: function created() {
|
27079 | var _this = this;
|
27080 |
|
27081 | var breakingProps = [['app', '<v-app-bar app>'], ['manual-scroll', '<v-app-bar :value="false">'], ['clipped-left', '<v-app-bar clipped-left>'], ['clipped-right', '<v-app-bar clipped-right>'], ['inverted-scroll', '<v-app-bar inverted-scroll>'], ['scroll-off-screen', '<v-app-bar scroll-off-screen>'], ['scroll-target', '<v-app-bar scroll-target>'], ['scroll-threshold', '<v-app-bar scroll-threshold>'], ['card', '<v-app-bar flat>']];
|
27082 |
|
27083 |
|
27084 | breakingProps.forEach(function (_a) {
|
27085 | var _b = __read(_a, 2),
|
27086 | original = _b[0],
|
27087 | replacement = _b[1];
|
27088 |
|
27089 | if (_this.$attrs.hasOwnProperty(original)) Object(_util_console__WEBPACK_IMPORTED_MODULE_4__["breaking"])(original, replacement, _this);
|
27090 | });
|
27091 | },
|
27092 | methods: {
|
27093 | genBackground: function genBackground() {
|
27094 | var props = {
|
27095 | height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["convertToUnit"])(this.computedHeight),
|
27096 | src: this.src
|
27097 | };
|
27098 | var image = this.$scopedSlots.img ? this.$scopedSlots.img({
|
27099 | props: props
|
27100 | }) : this.$createElement(_VImg_VImg__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
27101 | props: props
|
27102 | });
|
27103 | return this.$createElement('div', {
|
27104 | staticClass: 'v-toolbar__image'
|
27105 | }, [image]);
|
27106 | },
|
27107 | genContent: function genContent() {
|
27108 | return this.$createElement('div', {
|
27109 | staticClass: 'v-toolbar__content',
|
27110 | style: {
|
27111 | height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["convertToUnit"])(this.computedContentHeight)
|
27112 | }
|
27113 | }, Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getSlot"])(this));
|
27114 | },
|
27115 | genExtension: function genExtension() {
|
27116 | return this.$createElement('div', {
|
27117 | staticClass: 'v-toolbar__extension',
|
27118 | style: {
|
27119 | height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["convertToUnit"])(this.extensionHeight)
|
27120 | }
|
27121 | }, Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getSlot"])(this, 'extension'));
|
27122 | }
|
27123 | },
|
27124 | render: function render(h) {
|
27125 | this.isExtended = this.extended || !!this.$scopedSlots.extension;
|
27126 | var children = [this.genContent()];
|
27127 | var data = this.setBackgroundColor(this.color, {
|
27128 | class: this.classes,
|
27129 | style: this.styles,
|
27130 | on: this.$listeners
|
27131 | });
|
27132 | if (this.isExtended) children.push(this.genExtension());
|
27133 | if (this.src || this.$scopedSlots.img) children.unshift(this.genBackground());
|
27134 | return h(this.tag, data, children);
|
27135 | }
|
27136 | }));
|
27137 |
|
27138 | }),
|
27139 |
|
27140 | "./src/components/VToolbar/index.ts":
|
27141 |
|
27142 |
|
27143 |
|
27144 |
|
27145 | (function(module, __webpack_exports__, __webpack_require__) {
|
27146 |
|
27147 | "use strict";
|
27148 | __webpack_require__.r(__webpack_exports__);
|
27149 | __webpack_require__.d(__webpack_exports__, "VToolbarItems", function() { return VToolbarItems; });
|
27150 | __webpack_require__.d(__webpack_exports__, "VToolbarTitle", function() { return VToolbarTitle; });
|
27151 | var _VToolbar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VToolbar/VToolbar.ts");
|
27152 | __webpack_require__.d(__webpack_exports__, "VToolbar", function() { return _VToolbar__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
27153 |
|
27154 | var _util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/helpers.ts");
|
27155 |
|
27156 |
|
27157 |
|
27158 |
|
27159 | var VToolbarTitle = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["createSimpleFunctional"])('v-toolbar__title');
|
27160 | var VToolbarItems = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["createSimpleFunctional"])('v-toolbar__items');
|
27161 |
|
27162 | __webpack_exports__["default"] = ({
|
27163 | $_vuetify_subcomponents: {
|
27164 | VToolbar: _VToolbar__WEBPACK_IMPORTED_MODULE_0__["default"],
|
27165 | VToolbarItems: VToolbarItems,
|
27166 | VToolbarTitle: VToolbarTitle
|
27167 | }
|
27168 | });
|
27169 |
|
27170 | }),
|
27171 |
|
27172 | "./src/components/VTooltip/VTooltip.sass":
|
27173 |
|
27174 |
|
27175 |
|
27176 |
|
27177 | (function(module, exports, __webpack_require__) {
|
27178 |
|
27179 |
|
27180 |
|
27181 | }),
|
27182 |
|
27183 | "./src/components/VTooltip/VTooltip.ts":
|
27184 |
|
27185 |
|
27186 |
|
27187 |
|
27188 | (function(module, __webpack_exports__, __webpack_require__) {
|
27189 |
|
27190 | "use strict";
|
27191 | __webpack_require__.r(__webpack_exports__);
|
27192 | var _VTooltip_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VTooltip/VTooltip.sass");
|
27193 | var _VTooltip_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VTooltip_sass__WEBPACK_IMPORTED_MODULE_0__);
|
27194 | var _mixins_activatable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/activatable/index.ts");
|
27195 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
27196 | var _mixins_delayable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/delayable/index.ts");
|
27197 | var _mixins_dependent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/dependent/index.ts");
|
27198 | var _mixins_detachable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/mixins/detachable/index.ts");
|
27199 | var _mixins_menuable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/mixins/menuable/index.ts");
|
27200 | var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/mixins/toggleable/index.ts");
|
27201 | var _util_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/util/helpers.ts");
|
27202 | var _util_console__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__( "./src/util/console.ts");
|
27203 | var _util_mixins__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__( "./src/util/mixins.ts");
|
27204 |
|
27205 |
|
27206 |
|
27207 |
|
27208 |
|
27209 |
|
27210 |
|
27211 |
|
27212 |
|
27213 |
|
27214 |
|
27215 |
|
27216 |
|
27217 |
|
27218 |
|
27219 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_10__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_delayable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_dependent__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_detachable__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_menuable__WEBPACK_IMPORTED_MODULE_6__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_7__["default"]).extend({
|
27220 | name: 'v-tooltip',
|
27221 | props: {
|
27222 | closeDelay: {
|
27223 | type: [Number, String],
|
27224 | default: 0
|
27225 | },
|
27226 | disabled: Boolean,
|
27227 | fixed: {
|
27228 | type: Boolean,
|
27229 | default: true
|
27230 | },
|
27231 | openDelay: {
|
27232 | type: [Number, String],
|
27233 | default: 0
|
27234 | },
|
27235 | openOnHover: {
|
27236 | type: Boolean,
|
27237 | default: true
|
27238 | },
|
27239 | tag: {
|
27240 | type: String,
|
27241 | default: 'span'
|
27242 | },
|
27243 | transition: String,
|
27244 | zIndex: {
|
27245 | default: null
|
27246 | }
|
27247 | },
|
27248 | data: function data() {
|
27249 | return {
|
27250 | calculatedMinWidth: 0,
|
27251 | closeDependents: false
|
27252 | };
|
27253 | },
|
27254 | computed: {
|
27255 | calculatedLeft: function calculatedLeft() {
|
27256 | var _a = this.dimensions,
|
27257 | activator = _a.activator,
|
27258 | content = _a.content;
|
27259 | var unknown = !this.bottom && !this.left && !this.top && !this.right;
|
27260 | var activatorLeft = this.attach !== false ? activator.offsetLeft : activator.left;
|
27261 | var left = 0;
|
27262 |
|
27263 | if (this.top || this.bottom || unknown) {
|
27264 | left = activatorLeft + activator.width / 2 - content.width / 2;
|
27265 | } else if (this.left || this.right) {
|
27266 | left = activatorLeft + (this.right ? activator.width : -content.width) + (this.right ? 10 : -10);
|
27267 | }
|
27268 |
|
27269 | if (this.nudgeLeft) left -= parseInt(this.nudgeLeft);
|
27270 | if (this.nudgeRight) left += parseInt(this.nudgeRight);
|
27271 | return this.calcXOverflow(left, this.dimensions.content.width) + "px";
|
27272 | },
|
27273 | calculatedTop: function calculatedTop() {
|
27274 | var _a = this.dimensions,
|
27275 | activator = _a.activator,
|
27276 | content = _a.content;
|
27277 | var activatorTop = this.attach !== false ? activator.offsetTop : activator.top;
|
27278 | var top = 0;
|
27279 |
|
27280 | if (this.top || this.bottom) {
|
27281 | top = activatorTop + (this.bottom ? activator.height : -content.height) + (this.bottom ? 10 : -10);
|
27282 | } else if (this.left || this.right) {
|
27283 | top = activatorTop + activator.height / 2 - content.height / 2;
|
27284 | }
|
27285 |
|
27286 | if (this.nudgeTop) top -= parseInt(this.nudgeTop);
|
27287 | if (this.nudgeBottom) top += parseInt(this.nudgeBottom);
|
27288 | return this.calcYOverflow(top + this.pageYOffset) + "px";
|
27289 | },
|
27290 | classes: function classes() {
|
27291 | return {
|
27292 | 'v-tooltip--top': this.top,
|
27293 | 'v-tooltip--right': this.right,
|
27294 | 'v-tooltip--bottom': this.bottom,
|
27295 | 'v-tooltip--left': this.left,
|
27296 | 'v-tooltip--attached': this.attach === '' || this.attach === true || this.attach === 'attach'
|
27297 | };
|
27298 | },
|
27299 | computedTransition: function computedTransition() {
|
27300 | if (this.transition) return this.transition;
|
27301 | return this.isActive ? 'scale-transition' : 'fade-transition';
|
27302 | },
|
27303 | offsetY: function offsetY() {
|
27304 | return this.top || this.bottom;
|
27305 | },
|
27306 | offsetX: function offsetX() {
|
27307 | return this.left || this.right;
|
27308 | },
|
27309 | styles: function styles() {
|
27310 | return {
|
27311 | left: this.calculatedLeft,
|
27312 | maxWidth: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["convertToUnit"])(this.maxWidth),
|
27313 | minWidth: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["convertToUnit"])(this.minWidth),
|
27314 | opacity: this.isActive ? 0.9 : 0,
|
27315 | top: this.calculatedTop,
|
27316 | zIndex: this.zIndex || this.activeZIndex
|
27317 | };
|
27318 | }
|
27319 | },
|
27320 | beforeMount: function beforeMount() {
|
27321 | var _this = this;
|
27322 |
|
27323 | this.$nextTick(function () {
|
27324 | _this.value && _this.callActivate();
|
27325 | });
|
27326 | },
|
27327 | mounted: function mounted() {
|
27328 | if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["getSlotType"])(this, 'activator', true) === 'v-slot') {
|
27329 | Object(_util_console__WEBPACK_IMPORTED_MODULE_9__["consoleError"])("v-tooltip's activator slot must be bound, try '<template #activator=\"data\"><v-btn v-on=\"data.on>'", this);
|
27330 | }
|
27331 | },
|
27332 | methods: {
|
27333 | activate: function activate() {
|
27334 |
|
27335 |
|
27336 | this.updateDimensions();
|
27337 |
|
27338 | requestAnimationFrame(this.startTransition);
|
27339 | },
|
27340 | deactivate: function deactivate() {
|
27341 | this.runDelay('close');
|
27342 | },
|
27343 | genActivatorListeners: function genActivatorListeners() {
|
27344 | var _this = this;
|
27345 |
|
27346 | var listeners = _mixins_activatable__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genActivatorListeners.call(this);
|
27347 |
|
27348 | listeners.focus = function (e) {
|
27349 | _this.getActivator(e);
|
27350 |
|
27351 | _this.runDelay('open');
|
27352 | };
|
27353 |
|
27354 | listeners.blur = function (e) {
|
27355 | _this.getActivator(e);
|
27356 |
|
27357 | _this.runDelay('close');
|
27358 | };
|
27359 |
|
27360 | listeners.keydown = function (e) {
|
27361 | if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_8__["keyCodes"].esc) {
|
27362 | _this.getActivator(e);
|
27363 |
|
27364 | _this.runDelay('close');
|
27365 | }
|
27366 | };
|
27367 |
|
27368 | return listeners;
|
27369 | }
|
27370 | },
|
27371 | render: function render(h) {
|
27372 | var _a;
|
27373 |
|
27374 | var tooltip = h('div', this.setBackgroundColor(this.color, {
|
27375 | staticClass: 'v-tooltip__content',
|
27376 | class: (_a = {}, _a[this.contentClass] = true, _a.menuable__content__active = this.isActive, _a['v-tooltip__content--fixed'] = this.activatorFixed, _a),
|
27377 | style: this.styles,
|
27378 | attrs: this.getScopeIdAttrs(),
|
27379 | directives: [{
|
27380 | name: 'show',
|
27381 | value: this.isContentActive
|
27382 | }],
|
27383 | ref: 'content'
|
27384 | }), this.showLazyContent(this.getContentSlot()));
|
27385 | return h(this.tag, {
|
27386 | staticClass: 'v-tooltip',
|
27387 | class: this.classes
|
27388 | }, [h('transition', {
|
27389 | props: {
|
27390 | name: this.computedTransition
|
27391 | }
|
27392 | }, [tooltip]), this.genActivator()]);
|
27393 | }
|
27394 | }));
|
27395 |
|
27396 | }),
|
27397 |
|
27398 | "./src/components/VTooltip/index.ts":
|
27399 |
|
27400 |
|
27401 |
|
27402 |
|
27403 | (function(module, __webpack_exports__, __webpack_require__) {
|
27404 |
|
27405 | "use strict";
|
27406 | __webpack_require__.r(__webpack_exports__);
|
27407 | var _VTooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VTooltip/VTooltip.ts");
|
27408 | __webpack_require__.d(__webpack_exports__, "VTooltip", function() { return _VTooltip__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
27409 |
|
27410 |
|
27411 |
|
27412 | __webpack_exports__["default"] = (_VTooltip__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
27413 |
|
27414 | }),
|
27415 |
|
27416 | "./src/components/VTreeview/VTreeview.sass":
|
27417 |
|
27418 |
|
27419 |
|
27420 |
|
27421 | (function(module, exports, __webpack_require__) {
|
27422 |
|
27423 |
|
27424 |
|
27425 | }),
|
27426 |
|
27427 | "./src/components/VTreeview/VTreeview.ts":
|
27428 |
|
27429 |
|
27430 |
|
27431 |
|
27432 | (function(module, __webpack_exports__, __webpack_require__) {
|
27433 |
|
27434 | "use strict";
|
27435 | __webpack_require__.r(__webpack_exports__);
|
27436 | var _VTreeview_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VTreeview/VTreeview.sass");
|
27437 | var _VTreeview_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VTreeview_sass__WEBPACK_IMPORTED_MODULE_0__);
|
27438 | var _VTreeviewNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VTreeview/VTreeviewNode.ts");
|
27439 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
27440 | var _mixins_registrable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/registrable/index.ts");
|
27441 | var _util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/helpers.ts");
|
27442 | var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/util/mixins.ts");
|
27443 | var _util_console__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/util/console.ts");
|
27444 | var _util_filterTreeItems__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/components/VTreeview/util/filterTreeItems.ts");
|
27445 | var __assign = undefined && undefined.__assign || function () {
|
27446 | __assign = Object.assign || function (t) {
|
27447 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
27448 | s = arguments[i];
|
27449 |
|
27450 | for (var p in s) {
|
27451 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
27452 | }
|
27453 | }
|
27454 |
|
27455 | return t;
|
27456 | };
|
27457 |
|
27458 | return __assign.apply(this, arguments);
|
27459 | };
|
27460 |
|
27461 | var __read = undefined && undefined.__read || function (o, n) {
|
27462 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
27463 | if (!m) return o;
|
27464 | var i = m.call(o),
|
27465 | r,
|
27466 | ar = [],
|
27467 | e;
|
27468 |
|
27469 | try {
|
27470 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
27471 | ar.push(r.value);
|
27472 | }
|
27473 | } catch (error) {
|
27474 | e = {
|
27475 | error: error
|
27476 | };
|
27477 | } finally {
|
27478 | try {
|
27479 | if (r && !r.done && (m = i["return"])) m.call(i);
|
27480 | } finally {
|
27481 | if (e) throw e.error;
|
27482 | }
|
27483 | }
|
27484 |
|
27485 | return ar;
|
27486 | };
|
27487 |
|
27488 | var __spread = undefined && undefined.__spread || function () {
|
27489 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
27490 | ar = ar.concat(__read(arguments[i]));
|
27491 | }
|
27492 |
|
27493 | return ar;
|
27494 | };
|
27495 |
|
27496 | var __values = undefined && undefined.__values || function (o) {
|
27497 | var m = typeof Symbol === "function" && o[Symbol.iterator],
|
27498 | i = 0;
|
27499 | if (m) return m.call(o);
|
27500 | return {
|
27501 | next: function next() {
|
27502 | if (o && i >= o.length) o = void 0;
|
27503 | return {
|
27504 | value: o && o[i++],
|
27505 | done: !o
|
27506 | };
|
27507 | }
|
27508 | };
|
27509 | };
|
27510 |
|
27511 |
|
27512 |
|
27513 |
|
27514 |
|
27515 |
|
27516 |
|
27517 |
|
27518 |
|
27519 |
|
27520 |
|
27521 |
|
27522 |
|
27523 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_3__["provide"])('treeview'), _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]
|
27524 |
|
27525 | ).extend({
|
27526 | name: 'v-treeview',
|
27527 | provide: function provide() {
|
27528 | return {
|
27529 | treeview: this
|
27530 | };
|
27531 | },
|
27532 | props: __assign({
|
27533 | active: {
|
27534 | type: Array,
|
27535 | default: function _default() {
|
27536 | return [];
|
27537 | }
|
27538 | },
|
27539 | dense: Boolean,
|
27540 | filter: Function,
|
27541 | hoverable: Boolean,
|
27542 | items: {
|
27543 | type: Array,
|
27544 | default: function _default() {
|
27545 | return [];
|
27546 | }
|
27547 | },
|
27548 | multipleActive: Boolean,
|
27549 | open: {
|
27550 | type: Array,
|
27551 | default: function _default() {
|
27552 | return [];
|
27553 | }
|
27554 | },
|
27555 | openAll: Boolean,
|
27556 | returnObject: {
|
27557 | type: Boolean,
|
27558 | default: false
|
27559 | },
|
27560 | search: String,
|
27561 | selectionType: {
|
27562 | type: String,
|
27563 | default: 'leaf',
|
27564 | validator: function validator(v) {
|
27565 | return ['leaf', 'independent'].includes(v);
|
27566 | }
|
27567 | },
|
27568 | value: {
|
27569 | type: Array,
|
27570 | default: function _default() {
|
27571 | return [];
|
27572 | }
|
27573 | }
|
27574 | }, _VTreeviewNode__WEBPACK_IMPORTED_MODULE_1__["VTreeviewNodeProps"]),
|
27575 | data: function data() {
|
27576 | return {
|
27577 | activeCache: new Set(),
|
27578 | nodes: {},
|
27579 | openCache: new Set(),
|
27580 | selectedCache: new Set()
|
27581 | };
|
27582 | },
|
27583 | computed: {
|
27584 | excludedItems: function excludedItems() {
|
27585 | var excluded = new Set();
|
27586 | if (!this.search) return excluded;
|
27587 |
|
27588 | for (var i = 0; i < this.items.length; i++) {
|
27589 | Object(_util_filterTreeItems__WEBPACK_IMPORTED_MODULE_7__["filterTreeItems"])(this.filter || _util_filterTreeItems__WEBPACK_IMPORTED_MODULE_7__["filterTreeItem"], this.items[i], this.search, this.itemKey, this.itemText, this.itemChildren, excluded);
|
27590 | }
|
27591 |
|
27592 | return excluded;
|
27593 | }
|
27594 | },
|
27595 | watch: {
|
27596 | items: {
|
27597 | handler: function handler() {
|
27598 | var _this = this;
|
27599 |
|
27600 | var oldKeys = Object.keys(this.nodes).map(function (k) {
|
27601 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(_this.nodes[k].item, _this.itemKey);
|
27602 | });
|
27603 | var newKeys = this.getKeys(this.items);
|
27604 | var diff = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["arrayDiff"])(newKeys, oldKeys);
|
27605 |
|
27606 | if (!diff.length && newKeys.length < oldKeys.length) return;
|
27607 |
|
27608 | diff.forEach(function (k) {
|
27609 | return delete _this.nodes[k];
|
27610 | });
|
27611 |
|
27612 | var oldSelectedCache = __spread(this.selectedCache);
|
27613 |
|
27614 | this.selectedCache = new Set();
|
27615 | this.activeCache = new Set();
|
27616 | this.openCache = new Set();
|
27617 | this.buildTree(this.items);
|
27618 |
|
27619 |
|
27620 |
|
27621 |
|
27622 | if (!Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["deepEqual"])(oldSelectedCache, __spread(this.selectedCache))) this.emitSelected();
|
27623 | },
|
27624 | deep: true
|
27625 | },
|
27626 | active: function active(value) {
|
27627 | this.handleNodeCacheWatcher(value, this.activeCache, this.updateActive, this.emitActive);
|
27628 | },
|
27629 | value: function value(_value) {
|
27630 | this.handleNodeCacheWatcher(_value, this.selectedCache, this.updateSelected, this.emitSelected);
|
27631 | },
|
27632 | open: function open(value) {
|
27633 | this.handleNodeCacheWatcher(value, this.openCache, this.updateOpen, this.emitOpen);
|
27634 | }
|
27635 | },
|
27636 | created: function created() {
|
27637 | var _this = this;
|
27638 |
|
27639 | this.buildTree(this.items);
|
27640 | this.value.forEach(function (key) {
|
27641 | return _this.updateSelected(key, true);
|
27642 | });
|
27643 | this.active.forEach(function (key) {
|
27644 | return _this.updateActive(key, true);
|
27645 | });
|
27646 | },
|
27647 | mounted: function mounted() {
|
27648 | var _this = this;
|
27649 |
|
27650 |
|
27651 | if (this.$slots.prepend || this.$slots.append) {
|
27652 | Object(_util_console__WEBPACK_IMPORTED_MODULE_6__["consoleWarn"])('The prepend and append slots require a slot-scope attribute', this);
|
27653 | }
|
27654 |
|
27655 | if (this.openAll) {
|
27656 | this.updateAll(true);
|
27657 | } else {
|
27658 | this.open.forEach(function (key) {
|
27659 | return _this.updateOpen(key, true);
|
27660 | });
|
27661 | this.emitOpen();
|
27662 | }
|
27663 | },
|
27664 | methods: {
|
27665 |
|
27666 | updateAll: function updateAll(value) {
|
27667 | var _this = this;
|
27668 |
|
27669 | Object.keys(this.nodes).forEach(function (key) {
|
27670 | return _this.updateOpen(Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(_this.nodes[key].item, _this.itemKey), value);
|
27671 | });
|
27672 | this.emitOpen();
|
27673 | },
|
27674 | getKeys: function getKeys(items, keys) {
|
27675 | if (keys === void 0) {
|
27676 | keys = [];
|
27677 | }
|
27678 |
|
27679 | for (var i = 0; i < items.length; i++) {
|
27680 | var key = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(items[i], this.itemKey);
|
27681 | keys.push(key);
|
27682 | var children = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(items[i], this.itemChildren);
|
27683 |
|
27684 | if (children) {
|
27685 | keys.push.apply(keys, __spread(this.getKeys(children)));
|
27686 | }
|
27687 | }
|
27688 |
|
27689 | return keys;
|
27690 | },
|
27691 | buildTree: function buildTree(items, parent) {
|
27692 | var _this = this;
|
27693 |
|
27694 | if (parent === void 0) {
|
27695 | parent = null;
|
27696 | }
|
27697 |
|
27698 | for (var i = 0; i < items.length; i++) {
|
27699 | var item = items[i];
|
27700 | var key = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(item, this.itemKey);
|
27701 | var children = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(item, this.itemChildren, []);
|
27702 | var oldNode = this.nodes.hasOwnProperty(key) ? this.nodes[key] : {
|
27703 | isSelected: false,
|
27704 | isIndeterminate: false,
|
27705 | isActive: false,
|
27706 | isOpen: false,
|
27707 | vnode: null
|
27708 | };
|
27709 | var node = {
|
27710 | vnode: oldNode.vnode,
|
27711 | parent: parent,
|
27712 | children: children.map(function (c) {
|
27713 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(c, _this.itemKey);
|
27714 | }),
|
27715 | item: item
|
27716 | };
|
27717 | this.buildTree(children, key);
|
27718 |
|
27719 | if (!this.nodes.hasOwnProperty(key) && parent !== null && this.nodes.hasOwnProperty(parent)) {
|
27720 | node.isSelected = this.nodes[parent].isSelected;
|
27721 | node.isIndeterminate = this.nodes[parent].isIndeterminate;
|
27722 | } else {
|
27723 | node.isSelected = oldNode.isSelected;
|
27724 | node.isIndeterminate = oldNode.isIndeterminate;
|
27725 | }
|
27726 |
|
27727 | node.isActive = oldNode.isActive;
|
27728 | node.isOpen = oldNode.isOpen;
|
27729 | this.nodes[key] = !children.length ? node : this.calculateState(node, this.nodes);
|
27730 |
|
27731 | if (this.nodes[key].isSelected) this.selectedCache.add(key);
|
27732 | if (this.nodes[key].isActive) this.activeCache.add(key);
|
27733 | if (this.nodes[key].isOpen) this.openCache.add(key);
|
27734 | this.updateVnodeState(key);
|
27735 | }
|
27736 | },
|
27737 | calculateState: function calculateState(node, state) {
|
27738 | var counts = node.children.reduce(function (counts, child) {
|
27739 | counts[0] += +Boolean(state[child].isSelected);
|
27740 | counts[1] += +Boolean(state[child].isIndeterminate);
|
27741 | return counts;
|
27742 | }, [0, 0]);
|
27743 | node.isSelected = !!node.children.length && counts[0] === node.children.length;
|
27744 | node.isIndeterminate = !node.isSelected && (counts[0] > 0 || counts[1] > 0);
|
27745 | return node;
|
27746 | },
|
27747 | emitOpen: function emitOpen() {
|
27748 | this.emitNodeCache('update:open', this.openCache);
|
27749 | },
|
27750 | emitSelected: function emitSelected() {
|
27751 | this.emitNodeCache('input', this.selectedCache);
|
27752 | },
|
27753 | emitActive: function emitActive() {
|
27754 | this.emitNodeCache('update:active', this.activeCache);
|
27755 | },
|
27756 | emitNodeCache: function emitNodeCache(event, cache) {
|
27757 | var _this = this;
|
27758 |
|
27759 | this.$emit(event, this.returnObject ? __spread(cache).map(function (key) {
|
27760 | return _this.nodes[key].item;
|
27761 | }) : __spread(cache));
|
27762 | },
|
27763 | handleNodeCacheWatcher: function handleNodeCacheWatcher(value, cache, updateFn, emitFn) {
|
27764 | var _this = this;
|
27765 |
|
27766 | value = this.returnObject ? value.map(function (v) {
|
27767 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(v, _this.itemKey);
|
27768 | }) : value;
|
27769 |
|
27770 | var old = __spread(cache);
|
27771 |
|
27772 | if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["deepEqual"])(old, value)) return;
|
27773 | old.forEach(function (key) {
|
27774 | return updateFn(key, false);
|
27775 | });
|
27776 | value.forEach(function (key) {
|
27777 | return updateFn(key, true);
|
27778 | });
|
27779 | emitFn();
|
27780 | },
|
27781 | getDescendants: function getDescendants(key, descendants) {
|
27782 | if (descendants === void 0) {
|
27783 | descendants = [];
|
27784 | }
|
27785 |
|
27786 | var children = this.nodes[key].children;
|
27787 | descendants.push.apply(descendants, __spread(children));
|
27788 |
|
27789 | for (var i = 0; i < children.length; i++) {
|
27790 | descendants = this.getDescendants(children[i], descendants);
|
27791 | }
|
27792 |
|
27793 | return descendants;
|
27794 | },
|
27795 | getParents: function getParents(key) {
|
27796 | var parent = this.nodes[key].parent;
|
27797 | var parents = [];
|
27798 |
|
27799 | while (parent !== null) {
|
27800 | parents.push(parent);
|
27801 | parent = this.nodes[parent].parent;
|
27802 | }
|
27803 |
|
27804 | return parents;
|
27805 | },
|
27806 | register: function register(node) {
|
27807 | var key = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(node.item, this.itemKey);
|
27808 | this.nodes[key].vnode = node;
|
27809 | this.updateVnodeState(key);
|
27810 | },
|
27811 | unregister: function unregister(node) {
|
27812 | var key = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(node.item, this.itemKey);
|
27813 | if (this.nodes[key]) this.nodes[key].vnode = null;
|
27814 | },
|
27815 | isParent: function isParent(key) {
|
27816 | return this.nodes[key].children && this.nodes[key].children.length;
|
27817 | },
|
27818 | updateActive: function updateActive(key, isActive) {
|
27819 | var _this = this;
|
27820 |
|
27821 | if (!this.nodes.hasOwnProperty(key)) return;
|
27822 |
|
27823 | if (!this.multipleActive) {
|
27824 | this.activeCache.forEach(function (active) {
|
27825 | _this.nodes[active].isActive = false;
|
27826 |
|
27827 | _this.updateVnodeState(active);
|
27828 |
|
27829 | _this.activeCache.delete(active);
|
27830 | });
|
27831 | }
|
27832 |
|
27833 | var node = this.nodes[key];
|
27834 | if (!node) return;
|
27835 | if (isActive) this.activeCache.add(key);else this.activeCache.delete(key);
|
27836 | node.isActive = isActive;
|
27837 | this.updateVnodeState(key);
|
27838 | },
|
27839 | updateSelected: function updateSelected(key, isSelected) {
|
27840 | var e_1, _a;
|
27841 |
|
27842 | var _this = this;
|
27843 |
|
27844 | if (!this.nodes.hasOwnProperty(key)) return;
|
27845 | var changed = new Map();
|
27846 |
|
27847 | if (this.selectionType !== 'independent') {
|
27848 | var descendants = __spread([key], this.getDescendants(key));
|
27849 |
|
27850 | descendants.forEach(function (descendant) {
|
27851 | _this.nodes[descendant].isSelected = isSelected;
|
27852 | _this.nodes[descendant].isIndeterminate = false;
|
27853 | changed.set(descendant, isSelected);
|
27854 | });
|
27855 | var parents = this.getParents(key);
|
27856 | parents.forEach(function (parent) {
|
27857 | _this.nodes[parent] = _this.calculateState(_this.nodes[parent], _this.nodes);
|
27858 | changed.set(parent, _this.nodes[parent].isSelected);
|
27859 | });
|
27860 | } else {
|
27861 | this.nodes[key].isSelected = isSelected;
|
27862 | this.nodes[key].isIndeterminate = false;
|
27863 | changed.set(key, isSelected);
|
27864 | }
|
27865 |
|
27866 | try {
|
27867 | for (var _b = __values(changed.entries()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
27868 | var _d = __read(_c.value, 2),
|
27869 | key_1 = _d[0],
|
27870 | value = _d[1];
|
27871 |
|
27872 | this.updateVnodeState(key_1);
|
27873 | if (this.selectionType === 'leaf' && this.isParent(key_1)) continue;
|
27874 | value === true ? this.selectedCache.add(key_1) : this.selectedCache.delete(key_1);
|
27875 | }
|
27876 | } catch (e_1_1) {
|
27877 | e_1 = {
|
27878 | error: e_1_1
|
27879 | };
|
27880 | } finally {
|
27881 | try {
|
27882 | if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
27883 | } finally {
|
27884 | if (e_1) throw e_1.error;
|
27885 | }
|
27886 | }
|
27887 | },
|
27888 | updateOpen: function updateOpen(key, isOpen) {
|
27889 | var _this = this;
|
27890 |
|
27891 | if (!this.nodes.hasOwnProperty(key)) return;
|
27892 | var node = this.nodes[key];
|
27893 | var children = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(node.item, this.itemChildren);
|
27894 |
|
27895 | if (children && !children.length && node.vnode && !node.vnode.hasLoaded) {
|
27896 | node.vnode.checkChildren().then(function () {
|
27897 | return _this.updateOpen(key, isOpen);
|
27898 | });
|
27899 | } else if (children && children.length) {
|
27900 | node.isOpen = isOpen;
|
27901 | node.isOpen ? this.openCache.add(key) : this.openCache.delete(key);
|
27902 | this.updateVnodeState(key);
|
27903 | }
|
27904 | },
|
27905 | updateVnodeState: function updateVnodeState(key) {
|
27906 | var node = this.nodes[key];
|
27907 |
|
27908 | if (node && node.vnode) {
|
27909 | node.vnode.isSelected = node.isSelected;
|
27910 | node.vnode.isIndeterminate = node.isIndeterminate;
|
27911 | node.vnode.isActive = node.isActive;
|
27912 | node.vnode.isOpen = node.isOpen;
|
27913 | }
|
27914 | },
|
27915 | isExcluded: function isExcluded(key) {
|
27916 | return !!this.search && this.excludedItems.has(key);
|
27917 | }
|
27918 | },
|
27919 | render: function render(h) {
|
27920 | var children = this.items.length ? this.items.map(_VTreeviewNode__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genChild.bind(this))
|
27921 |
|
27922 | : this.$slots.default;
|
27923 |
|
27924 | return h('div', {
|
27925 | staticClass: 'v-treeview',
|
27926 | class: __assign({
|
27927 | 'v-treeview--hoverable': this.hoverable,
|
27928 | 'v-treeview--dense': this.dense
|
27929 | }, this.themeClasses)
|
27930 | }, children);
|
27931 | }
|
27932 | }));
|
27933 |
|
27934 | }),
|
27935 |
|
27936 | "./src/components/VTreeview/VTreeviewNode.ts":
|
27937 |
|
27938 |
|
27939 |
|
27940 |
|
27941 | (function(module, __webpack_exports__, __webpack_require__) {
|
27942 |
|
27943 | "use strict";
|
27944 | __webpack_require__.r(__webpack_exports__);
|
27945 | __webpack_require__.d(__webpack_exports__, "VTreeviewNodeProps", function() { return VTreeviewNodeProps; });
|
27946 | var _transitions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/transitions/index.ts");
|
27947 | var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
27948 | var _VTreeviewNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VTreeview/VTreeviewNode.ts");
|
27949 | var _mixins_registrable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/mixins/registrable/index.ts");
|
27950 | var _mixins_colorable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
27951 | var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/util/mixins.ts");
|
27952 | var _util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/util/helpers.ts");
|
27953 | var __assign = undefined && undefined.__assign || function () {
|
27954 | __assign = Object.assign || function (t) {
|
27955 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
27956 | s = arguments[i];
|
27957 |
|
27958 | for (var p in s) {
|
27959 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
27960 | }
|
27961 | }
|
27962 |
|
27963 | return t;
|
27964 | };
|
27965 |
|
27966 | return __assign.apply(this, arguments);
|
27967 | };
|
27968 |
|
27969 |
|
27970 |
|
27971 |
|
27972 |
|
27973 |
|
27974 |
|
27975 |
|
27976 |
|
27977 |
|
27978 |
|
27979 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_4__["default"], Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_3__["inject"])('treeview'));
|
27980 | var VTreeviewNodeProps = {
|
27981 | activatable: Boolean,
|
27982 | activeClass: {
|
27983 | type: String,
|
27984 | default: 'v-treeview-node--active'
|
27985 | },
|
27986 | color: {
|
27987 | type: String,
|
27988 | default: 'primary'
|
27989 | },
|
27990 | expandIcon: {
|
27991 | type: String,
|
27992 | default: '$subgroup'
|
27993 | },
|
27994 | indeterminateIcon: {
|
27995 | type: String,
|
27996 | default: '$checkboxIndeterminate'
|
27997 | },
|
27998 | itemChildren: {
|
27999 | type: String,
|
28000 | default: 'children'
|
28001 | },
|
28002 | itemDisabled: {
|
28003 | type: String,
|
28004 | default: 'disabled'
|
28005 | },
|
28006 | itemKey: {
|
28007 | type: String,
|
28008 | default: 'id'
|
28009 | },
|
28010 | itemText: {
|
28011 | type: String,
|
28012 | default: 'name'
|
28013 | },
|
28014 | loadChildren: Function,
|
28015 | loadingIcon: {
|
28016 | type: String,
|
28017 | default: '$loading'
|
28018 | },
|
28019 | offIcon: {
|
28020 | type: String,
|
28021 | default: '$checkboxOff'
|
28022 | },
|
28023 | onIcon: {
|
28024 | type: String,
|
28025 | default: '$checkboxOn'
|
28026 | },
|
28027 | openOnClick: Boolean,
|
28028 | rounded: Boolean,
|
28029 | selectable: Boolean,
|
28030 | selectedColor: {
|
28031 | type: String,
|
28032 | default: 'accent'
|
28033 | },
|
28034 | shaped: Boolean,
|
28035 | transition: Boolean
|
28036 | };
|
28037 |
|
28038 |
|
28039 | __webpack_exports__["default"] = (baseMixins.extend().extend({
|
28040 | name: 'v-treeview-node',
|
28041 | inject: {
|
28042 | treeview: {
|
28043 | default: null
|
28044 | }
|
28045 | },
|
28046 | props: __assign({
|
28047 | item: {
|
28048 | type: Object,
|
28049 | default: function _default() {
|
28050 | return null;
|
28051 | }
|
28052 | }
|
28053 | }, VTreeviewNodeProps),
|
28054 | data: function data() {
|
28055 | return {
|
28056 | hasLoaded: false,
|
28057 | isActive: false,
|
28058 | isIndeterminate: false,
|
28059 | isLoading: false,
|
28060 | isOpen: false,
|
28061 | isSelected: false
|
28062 | };
|
28063 | },
|
28064 | computed: {
|
28065 | disabled: function disabled() {
|
28066 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["getObjectValueByPath"])(this.item, this.itemDisabled);
|
28067 | },
|
28068 | key: function key() {
|
28069 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["getObjectValueByPath"])(this.item, this.itemKey);
|
28070 | },
|
28071 | children: function children() {
|
28072 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["getObjectValueByPath"])(this.item, this.itemChildren);
|
28073 | },
|
28074 | text: function text() {
|
28075 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["getObjectValueByPath"])(this.item, this.itemText);
|
28076 | },
|
28077 | scopedProps: function scopedProps() {
|
28078 | return {
|
28079 | item: this.item,
|
28080 | leaf: !this.children,
|
28081 | selected: this.isSelected,
|
28082 | indeterminate: this.isIndeterminate,
|
28083 | active: this.isActive,
|
28084 | open: this.isOpen
|
28085 | };
|
28086 | },
|
28087 | computedIcon: function computedIcon() {
|
28088 | if (this.isIndeterminate) return this.indeterminateIcon;else if (this.isSelected) return this.onIcon;else return this.offIcon;
|
28089 | },
|
28090 | hasChildren: function hasChildren() {
|
28091 | return !!this.children && (!!this.children.length || !!this.loadChildren);
|
28092 | }
|
28093 | },
|
28094 | created: function created() {
|
28095 | this.treeview.register(this);
|
28096 | },
|
28097 | beforeDestroy: function beforeDestroy() {
|
28098 | this.treeview.unregister(this);
|
28099 | },
|
28100 | methods: {
|
28101 | checkChildren: function checkChildren() {
|
28102 | var _this = this;
|
28103 |
|
28104 | return new Promise(function (resolve) {
|
28105 |
|
28106 |
|
28107 | if (!_this.children || _this.children.length || !_this.loadChildren || _this.hasLoaded) return resolve();
|
28108 | _this.isLoading = true;
|
28109 | resolve(_this.loadChildren(_this.item));
|
28110 | }).then(function () {
|
28111 | _this.isLoading = false;
|
28112 | _this.hasLoaded = true;
|
28113 | });
|
28114 | },
|
28115 | open: function open() {
|
28116 | this.isOpen = !this.isOpen;
|
28117 | this.treeview.updateOpen(this.key, this.isOpen);
|
28118 | this.treeview.emitOpen();
|
28119 | },
|
28120 | genLabel: function genLabel() {
|
28121 | var children = [];
|
28122 | if (this.$scopedSlots.label) children.push(this.$scopedSlots.label(this.scopedProps));else children.push(this.text);
|
28123 | return this.$createElement('div', {
|
28124 | slot: 'label',
|
28125 | staticClass: 'v-treeview-node__label'
|
28126 | }, children);
|
28127 | },
|
28128 | genContent: function genContent() {
|
28129 | var children = [this.$scopedSlots.prepend && this.$scopedSlots.prepend(this.scopedProps), this.genLabel(), this.$scopedSlots.append && this.$scopedSlots.append(this.scopedProps)];
|
28130 | return this.$createElement('div', {
|
28131 | staticClass: 'v-treeview-node__content'
|
28132 | }, children);
|
28133 | },
|
28134 | genToggle: function genToggle() {
|
28135 | var _this = this;
|
28136 |
|
28137 | return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["VIcon"], {
|
28138 | staticClass: 'v-treeview-node__toggle',
|
28139 | class: {
|
28140 | 'v-treeview-node__toggle--open': this.isOpen,
|
28141 | 'v-treeview-node__toggle--loading': this.isLoading
|
28142 | },
|
28143 | slot: 'prepend',
|
28144 | on: {
|
28145 | click: function click(e) {
|
28146 | if (_this.disabled) return;
|
28147 | e.stopPropagation();
|
28148 | if (_this.isLoading) return;
|
28149 |
|
28150 | _this.checkChildren().then(function () {
|
28151 | return _this.open();
|
28152 | });
|
28153 | }
|
28154 | }
|
28155 | }, [this.isLoading ? this.loadingIcon : this.expandIcon]);
|
28156 | },
|
28157 | genCheckbox: function genCheckbox() {
|
28158 | var _this = this;
|
28159 |
|
28160 | return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["VIcon"], {
|
28161 | staticClass: 'v-treeview-node__checkbox',
|
28162 | props: {
|
28163 | color: this.isSelected ? this.selectedColor : undefined
|
28164 | },
|
28165 | on: {
|
28166 | click: function click(e) {
|
28167 | if (_this.disabled) return;
|
28168 | e.stopPropagation();
|
28169 | if (_this.isLoading) return;
|
28170 |
|
28171 | _this.checkChildren().then(function () {
|
28172 |
|
28173 | _this.$nextTick(function () {
|
28174 | _this.isSelected = !_this.isSelected;
|
28175 | _this.isIndeterminate = false;
|
28176 |
|
28177 | _this.treeview.updateSelected(_this.key, _this.isSelected);
|
28178 |
|
28179 | _this.treeview.emitSelected();
|
28180 | });
|
28181 | });
|
28182 | }
|
28183 | }
|
28184 | }, [this.computedIcon]);
|
28185 | },
|
28186 | genNode: function genNode() {
|
28187 | var _a;
|
28188 |
|
28189 | var _this = this;
|
28190 |
|
28191 | var children = [this.genContent()];
|
28192 | if (this.selectable) children.unshift(this.genCheckbox());
|
28193 | if (this.hasChildren) children.unshift(this.genToggle());
|
28194 | return this.$createElement('div', this.setTextColor(this.isActive && this.color, {
|
28195 | staticClass: 'v-treeview-node__root',
|
28196 | class: (_a = {}, _a[this.activeClass] = this.isActive, _a),
|
28197 | on: {
|
28198 | click: function click() {
|
28199 | if (_this.disabled) return;
|
28200 |
|
28201 | if (_this.openOnClick && _this.hasChildren) {
|
28202 | _this.open();
|
28203 | } else if (_this.activatable) {
|
28204 | _this.isActive = !_this.isActive;
|
28205 |
|
28206 | _this.treeview.updateActive(_this.key, _this.isActive);
|
28207 |
|
28208 | _this.treeview.emitActive();
|
28209 | }
|
28210 | }
|
28211 | }
|
28212 | }), children);
|
28213 | },
|
28214 | genChild: function genChild(item) {
|
28215 | return this.$createElement(_VTreeviewNode__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
28216 | key: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["getObjectValueByPath"])(item, this.itemKey),
|
28217 | props: {
|
28218 | activatable: this.activatable,
|
28219 | activeClass: this.activeClass,
|
28220 | item: item,
|
28221 | selectable: this.selectable,
|
28222 | selectedColor: this.selectedColor,
|
28223 | color: this.color,
|
28224 | expandIcon: this.expandIcon,
|
28225 | indeterminateIcon: this.indeterminateIcon,
|
28226 | offIcon: this.offIcon,
|
28227 | onIcon: this.onIcon,
|
28228 | loadingIcon: this.loadingIcon,
|
28229 | itemKey: this.itemKey,
|
28230 | itemText: this.itemText,
|
28231 | itemDisabled: this.itemDisabled,
|
28232 | itemChildren: this.itemChildren,
|
28233 | loadChildren: this.loadChildren,
|
28234 | transition: this.transition,
|
28235 | openOnClick: this.openOnClick,
|
28236 | rounded: this.rounded,
|
28237 | shaped: this.shaped
|
28238 | },
|
28239 | scopedSlots: this.$scopedSlots
|
28240 | });
|
28241 | },
|
28242 | genChildrenWrapper: function genChildrenWrapper() {
|
28243 | if (!this.isOpen || !this.children) return null;
|
28244 | var children = [this.children.map(this.genChild)];
|
28245 | return this.$createElement('div', {
|
28246 | staticClass: 'v-treeview-node__children'
|
28247 | }, children);
|
28248 | },
|
28249 | genTransition: function genTransition() {
|
28250 | return this.$createElement(_transitions__WEBPACK_IMPORTED_MODULE_0__["VExpandTransition"], [this.genChildrenWrapper()]);
|
28251 | }
|
28252 | },
|
28253 | render: function render(h) {
|
28254 | var children = [this.genNode()];
|
28255 | if (this.transition) children.push(this.genTransition());else children.push(this.genChildrenWrapper());
|
28256 | return h('div', {
|
28257 | staticClass: 'v-treeview-node',
|
28258 | class: {
|
28259 | 'v-treeview-node--leaf': !this.hasChildren,
|
28260 | 'v-treeview-node--click': this.openOnClick,
|
28261 | 'v-treeview-node--disabled': this.disabled,
|
28262 | 'v-treeview-node--rounded': this.rounded,
|
28263 | 'v-treeview-node--shaped': this.shaped,
|
28264 | 'v-treeview-node--selected': this.isSelected,
|
28265 | 'v-treeview-node--excluded': this.treeview.isExcluded(this.key)
|
28266 | },
|
28267 | attrs: {
|
28268 | 'aria-expanded': String(this.isOpen)
|
28269 | }
|
28270 | }, children);
|
28271 | }
|
28272 | }));
|
28273 |
|
28274 | }),
|
28275 |
|
28276 | "./src/components/VTreeview/index.ts":
|
28277 |
|
28278 |
|
28279 |
|
28280 |
|
28281 | (function(module, __webpack_exports__, __webpack_require__) {
|
28282 |
|
28283 | "use strict";
|
28284 | __webpack_require__.r(__webpack_exports__);
|
28285 | var _VTreeview__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VTreeview/VTreeview.ts");
|
28286 | __webpack_require__.d(__webpack_exports__, "VTreeview", function() { return _VTreeview__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
28287 |
|
28288 | var _VTreeviewNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VTreeview/VTreeviewNode.ts");
|
28289 | __webpack_require__.d(__webpack_exports__, "VTreeviewNode", function() { return _VTreeviewNode__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
28290 |
|
28291 |
|
28292 |
|
28293 |
|
28294 | __webpack_exports__["default"] = ({
|
28295 | $_vuetify_subcomponents: {
|
28296 | VTreeview: _VTreeview__WEBPACK_IMPORTED_MODULE_0__["default"],
|
28297 | VTreeviewNode: _VTreeviewNode__WEBPACK_IMPORTED_MODULE_1__["default"]
|
28298 | }
|
28299 | });
|
28300 |
|
28301 | }),
|
28302 |
|
28303 | "./src/components/VTreeview/util/filterTreeItems.ts":
|
28304 |
|
28305 |
|
28306 |
|
28307 |
|
28308 | (function(module, __webpack_exports__, __webpack_require__) {
|
28309 |
|
28310 | "use strict";
|
28311 | __webpack_require__.r(__webpack_exports__);
|
28312 | __webpack_require__.d(__webpack_exports__, "filterTreeItem", function() { return filterTreeItem; });
|
28313 | __webpack_require__.d(__webpack_exports__, "filterTreeItems", function() { return filterTreeItems; });
|
28314 | var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/helpers.ts");
|
28315 |
|
28316 | function filterTreeItem(item, search, textKey) {
|
28317 | var text = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["getObjectValueByPath"])(item, textKey);
|
28318 | return text.toLocaleLowerCase().indexOf(search.toLocaleLowerCase()) > -1;
|
28319 | }
|
28320 | function filterTreeItems(filter, item, search, idKey, textKey, childrenKey, excluded) {
|
28321 | if (filter(item, search, textKey)) {
|
28322 | return true;
|
28323 | }
|
28324 |
|
28325 | var children = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["getObjectValueByPath"])(item, childrenKey);
|
28326 |
|
28327 | if (children) {
|
28328 | var match = false;
|
28329 |
|
28330 | for (var i = 0; i < children.length; i++) {
|
28331 | if (filterTreeItems(filter, children[i], search, idKey, textKey, childrenKey, excluded)) {
|
28332 | match = true;
|
28333 | }
|
28334 | }
|
28335 |
|
28336 | if (match) return true;
|
28337 | }
|
28338 |
|
28339 | excluded.add(Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["getObjectValueByPath"])(item, idKey));
|
28340 | return false;
|
28341 | }
|
28342 |
|
28343 | }),
|
28344 |
|
28345 | "./src/components/VWindow/VWindow.sass":
|
28346 |
|
28347 |
|
28348 |
|
28349 |
|
28350 | (function(module, exports, __webpack_require__) {
|
28351 |
|
28352 |
|
28353 |
|
28354 | }),
|
28355 |
|
28356 | "./src/components/VWindow/VWindow.ts":
|
28357 |
|
28358 |
|
28359 |
|
28360 |
|
28361 | (function(module, __webpack_exports__, __webpack_require__) {
|
28362 |
|
28363 | "use strict";
|
28364 | __webpack_require__.r(__webpack_exports__);
|
28365 | var _VWindow_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VWindow/VWindow.sass");
|
28366 | var _VWindow_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VWindow_sass__WEBPACK_IMPORTED_MODULE_0__);
|
28367 | var _VBtn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VBtn/index.ts");
|
28368 | var _VIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
28369 | var _VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VItemGroup/VItemGroup.ts");
|
28370 | var _directives_touch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/directives/touch/index.ts");
|
28371 | var __assign = undefined && undefined.__assign || function () {
|
28372 | __assign = Object.assign || function (t) {
|
28373 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
28374 | s = arguments[i];
|
28375 |
|
28376 | for (var p in s) {
|
28377 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
28378 | }
|
28379 | }
|
28380 |
|
28381 | return t;
|
28382 | };
|
28383 |
|
28384 | return __assign.apply(this, arguments);
|
28385 | };
|
28386 |
|
28387 |
|
28388 |
|
28389 |
|
28390 |
|
28391 |
|
28392 |
|
28393 |
|
28394 |
|
28395 |
|
28396 |
|
28397 | __webpack_exports__["default"] = (_VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_3__["BaseItemGroup"].extend({
|
28398 | name: 'v-window',
|
28399 | provide: function provide() {
|
28400 | return {
|
28401 | windowGroup: this
|
28402 | };
|
28403 | },
|
28404 | directives: {
|
28405 | Touch: _directives_touch__WEBPACK_IMPORTED_MODULE_4__["default"]
|
28406 | },
|
28407 | props: {
|
28408 | activeClass: {
|
28409 | type: String,
|
28410 | default: 'v-window-item--active'
|
28411 | },
|
28412 | continuous: Boolean,
|
28413 | mandatory: {
|
28414 | type: Boolean,
|
28415 | default: true
|
28416 | },
|
28417 | nextIcon: {
|
28418 | type: [Boolean, String],
|
28419 | default: '$next'
|
28420 | },
|
28421 | prevIcon: {
|
28422 | type: [Boolean, String],
|
28423 | default: '$prev'
|
28424 | },
|
28425 | reverse: {
|
28426 | type: Boolean,
|
28427 | default: undefined
|
28428 | },
|
28429 | showArrows: Boolean,
|
28430 | showArrowsOnHover: Boolean,
|
28431 | touch: Object,
|
28432 | touchless: Boolean,
|
28433 | value: {
|
28434 | required: false
|
28435 | },
|
28436 | vertical: Boolean
|
28437 | },
|
28438 | data: function data() {
|
28439 | return {
|
28440 | changedByDelimiters: false,
|
28441 | internalHeight: undefined,
|
28442 | transitionHeight: undefined,
|
28443 | transitionCount: 0,
|
28444 | isBooted: false,
|
28445 | isReverse: false
|
28446 | };
|
28447 | },
|
28448 | computed: {
|
28449 | isActive: function isActive() {
|
28450 | return this.transitionCount > 0;
|
28451 | },
|
28452 | classes: function classes() {
|
28453 | return __assign({}, _VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_3__["BaseItemGroup"].options.computed.classes.call(this), {
|
28454 | 'v-window--show-arrows-on-hover': this.showArrowsOnHover
|
28455 | });
|
28456 | },
|
28457 | computedTransition: function computedTransition() {
|
28458 | if (!this.isBooted) return '';
|
28459 | var axis = this.vertical ? 'y' : 'x';
|
28460 | var direction = this.internalReverse ? '-reverse' : '';
|
28461 | return "v-window-" + axis + direction + "-transition";
|
28462 | },
|
28463 | hasActiveItems: function hasActiveItems() {
|
28464 | return Boolean(this.items.find(function (item) {
|
28465 | return !item.disabled;
|
28466 | }));
|
28467 | },
|
28468 | hasNext: function hasNext() {
|
28469 | return this.continuous || this.internalIndex < this.items.length - 1;
|
28470 | },
|
28471 | hasPrev: function hasPrev() {
|
28472 | return this.continuous || this.internalIndex > 0;
|
28473 | },
|
28474 | internalIndex: function internalIndex() {
|
28475 | var _this = this;
|
28476 |
|
28477 | return this.items.findIndex(function (item, i) {
|
28478 | return _this.internalValue === _this.getValue(item, i);
|
28479 | });
|
28480 | },
|
28481 | internalReverse: function internalReverse() {
|
28482 | if (this.reverse !== undefined) return this.reverse;
|
28483 | return this.isReverse;
|
28484 | }
|
28485 | },
|
28486 | watch: {
|
28487 | internalIndex: 'updateReverse'
|
28488 | },
|
28489 | mounted: function mounted() {
|
28490 | var _this = this;
|
28491 |
|
28492 | window.requestAnimationFrame(function () {
|
28493 | return _this.isBooted = true;
|
28494 | });
|
28495 | },
|
28496 | methods: {
|
28497 | genContainer: function genContainer() {
|
28498 | var children = [this.$slots.default];
|
28499 |
|
28500 | if (this.showArrows) {
|
28501 | children.push(this.genControlIcons());
|
28502 | }
|
28503 |
|
28504 | return this.$createElement('div', {
|
28505 | staticClass: 'v-window__container',
|
28506 | class: {
|
28507 | 'v-window__container--is-active': this.isActive
|
28508 | },
|
28509 | style: {
|
28510 | height: this.internalHeight || this.transitionHeight
|
28511 | }
|
28512 | }, children);
|
28513 | },
|
28514 | genIcon: function genIcon(direction, icon, fn) {
|
28515 | var _this = this;
|
28516 |
|
28517 | return this.$createElement('div', {
|
28518 | staticClass: "v-window__" + direction
|
28519 | }, [this.$createElement(_VBtn__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
28520 | props: {
|
28521 | icon: true
|
28522 | },
|
28523 | attrs: {
|
28524 | 'aria-label': this.$vuetify.lang.t("$vuetify.carousel." + direction)
|
28525 | },
|
28526 | on: {
|
28527 | click: function click() {
|
28528 | _this.changedByDelimiters = true;
|
28529 | fn();
|
28530 | }
|
28531 | }
|
28532 | }, [this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
28533 | props: {
|
28534 | large: true
|
28535 | }
|
28536 | }, icon)])]);
|
28537 | },
|
28538 | genControlIcons: function genControlIcons() {
|
28539 | var icons = [];
|
28540 | var prevIcon = this.$vuetify.rtl ? this.nextIcon : this.prevIcon;
|
28541 |
|
28542 |
|
28543 | if (this.hasPrev && prevIcon && typeof prevIcon === 'string') {
|
28544 | var icon = this.genIcon('prev', prevIcon, this.prev);
|
28545 | icon && icons.push(icon);
|
28546 | }
|
28547 |
|
28548 | var nextIcon = this.$vuetify.rtl ? this.prevIcon : this.nextIcon;
|
28549 |
|
28550 |
|
28551 | if (this.hasNext && nextIcon && typeof nextIcon === 'string') {
|
28552 | var icon = this.genIcon('next', nextIcon, this.next);
|
28553 | icon && icons.push(icon);
|
28554 | }
|
28555 |
|
28556 | return icons;
|
28557 | },
|
28558 | getNextIndex: function getNextIndex(index) {
|
28559 | var nextIndex = (index + 1) % this.items.length;
|
28560 | var item = this.items[nextIndex];
|
28561 | if (item.disabled) return this.getNextIndex(nextIndex);
|
28562 | return nextIndex;
|
28563 | },
|
28564 | getPrevIndex: function getPrevIndex(index) {
|
28565 | var prevIndex = (index + this.items.length - 1) % this.items.length;
|
28566 | var item = this.items[prevIndex];
|
28567 | if (item.disabled) return this.getPrevIndex(prevIndex);
|
28568 | return prevIndex;
|
28569 | },
|
28570 | next: function next() {
|
28571 | this.isReverse = this.$vuetify.rtl;
|
28572 |
|
28573 |
|
28574 | if (!this.hasActiveItems || !this.hasNext) return;
|
28575 | var nextIndex = this.getNextIndex(this.internalIndex);
|
28576 | var item = this.items[nextIndex];
|
28577 | this.internalValue = this.getValue(item, nextIndex);
|
28578 | },
|
28579 | prev: function prev() {
|
28580 | this.isReverse = !this.$vuetify.rtl;
|
28581 |
|
28582 |
|
28583 | if (!this.hasActiveItems || !this.hasPrev) return;
|
28584 | var lastIndex = this.getPrevIndex(this.internalIndex);
|
28585 | var item = this.items[lastIndex];
|
28586 | this.internalValue = this.getValue(item, lastIndex);
|
28587 | },
|
28588 | updateReverse: function updateReverse(val, oldVal) {
|
28589 | if (this.changedByDelimiters) {
|
28590 | this.changedByDelimiters = false;
|
28591 | return;
|
28592 | }
|
28593 |
|
28594 | this.isReverse = val < oldVal;
|
28595 | }
|
28596 | },
|
28597 | render: function render(h) {
|
28598 | var _this = this;
|
28599 |
|
28600 | var data = {
|
28601 | staticClass: 'v-window',
|
28602 | class: this.classes,
|
28603 | directives: []
|
28604 | };
|
28605 |
|
28606 | if (!this.touchless) {
|
28607 | var value = this.touch || {
|
28608 | left: function left() {
|
28609 | _this.$vuetify.rtl ? _this.prev() : _this.next();
|
28610 | },
|
28611 | right: function right() {
|
28612 | _this.$vuetify.rtl ? _this.next() : _this.prev();
|
28613 | },
|
28614 | end: function end(e) {
|
28615 | e.stopPropagation();
|
28616 | },
|
28617 | start: function start(e) {
|
28618 | e.stopPropagation();
|
28619 | }
|
28620 | };
|
28621 | data.directives.push({
|
28622 | name: 'touch',
|
28623 | value: value
|
28624 | });
|
28625 | }
|
28626 |
|
28627 | return h('div', data, [this.genContainer()]);
|
28628 | }
|
28629 | }));
|
28630 |
|
28631 | }),
|
28632 |
|
28633 | "./src/components/VWindow/VWindowItem.ts":
|
28634 |
|
28635 |
|
28636 |
|
28637 |
|
28638 | (function(module, __webpack_exports__, __webpack_require__) {
|
28639 |
|
28640 | "use strict";
|
28641 | __webpack_require__.r(__webpack_exports__);
|
28642 | var _mixins_bootable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/mixins/bootable/index.ts");
|
28643 | var _mixins_groupable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/groupable/index.ts");
|
28644 | var _directives_touch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/directives/touch/index.ts");
|
28645 | var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/helpers.ts");
|
28646 | var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/mixins.ts");
|
28647 |
|
28648 |
|
28649 |
|
28650 |
|
28651 |
|
28652 |
|
28653 |
|
28654 |
|
28655 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_mixins_bootable__WEBPACK_IMPORTED_MODULE_0__["default"], Object(_mixins_groupable__WEBPACK_IMPORTED_MODULE_1__["factory"])('windowGroup', 'v-window-item', 'v-window'));
|
28656 | __webpack_exports__["default"] = (baseMixins.extend().extend().extend({
|
28657 | name: 'v-window-item',
|
28658 | directives: {
|
28659 | Touch: _directives_touch__WEBPACK_IMPORTED_MODULE_2__["default"]
|
28660 | },
|
28661 | props: {
|
28662 | disabled: Boolean,
|
28663 | reverseTransition: {
|
28664 | type: [Boolean, String],
|
28665 | default: undefined
|
28666 | },
|
28667 | transition: {
|
28668 | type: [Boolean, String],
|
28669 | default: undefined
|
28670 | },
|
28671 | value: {
|
28672 | required: false
|
28673 | }
|
28674 | },
|
28675 | data: function data() {
|
28676 | return {
|
28677 | isActive: false,
|
28678 | inTransition: false
|
28679 | };
|
28680 | },
|
28681 | computed: {
|
28682 | classes: function classes() {
|
28683 | return this.groupClasses;
|
28684 | },
|
28685 | computedTransition: function computedTransition() {
|
28686 | if (!this.windowGroup.internalReverse) {
|
28687 | return typeof this.transition !== 'undefined' ? this.transition || '' : this.windowGroup.computedTransition;
|
28688 | }
|
28689 |
|
28690 | return typeof this.reverseTransition !== 'undefined' ? this.reverseTransition || '' : this.windowGroup.computedTransition;
|
28691 | }
|
28692 | },
|
28693 | methods: {
|
28694 | genDefaultSlot: function genDefaultSlot() {
|
28695 | return this.$slots.default;
|
28696 | },
|
28697 | genWindowItem: function genWindowItem() {
|
28698 | return this.$createElement('div', {
|
28699 | staticClass: 'v-window-item',
|
28700 | class: this.classes,
|
28701 | directives: [{
|
28702 | name: 'show',
|
28703 | value: this.isActive
|
28704 | }],
|
28705 | on: this.$listeners
|
28706 | }, this.showLazyContent(this.genDefaultSlot()));
|
28707 | },
|
28708 | onAfterTransition: function onAfterTransition() {
|
28709 | if (!this.inTransition) {
|
28710 | return;
|
28711 | }
|
28712 |
|
28713 |
|
28714 | this.inTransition = false;
|
28715 |
|
28716 | if (this.windowGroup.transitionCount > 0) {
|
28717 | this.windowGroup.transitionCount--;
|
28718 |
|
28719 | if (this.windowGroup.transitionCount === 0) {
|
28720 | this.windowGroup.transitionHeight = undefined;
|
28721 | }
|
28722 | }
|
28723 | },
|
28724 | onBeforeTransition: function onBeforeTransition() {
|
28725 | if (this.inTransition) {
|
28726 | return;
|
28727 | }
|
28728 |
|
28729 |
|
28730 | this.inTransition = true;
|
28731 |
|
28732 | if (this.windowGroup.transitionCount === 0) {
|
28733 |
|
28734 | this.windowGroup.transitionHeight = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["convertToUnit"])(this.windowGroup.$el.clientHeight);
|
28735 | }
|
28736 |
|
28737 | this.windowGroup.transitionCount++;
|
28738 | },
|
28739 | onTransitionCancelled: function onTransitionCancelled() {
|
28740 | this.onAfterTransition();
|
28741 | },
|
28742 | onEnter: function onEnter(el) {
|
28743 | var _this = this;
|
28744 |
|
28745 | if (!this.inTransition) {
|
28746 | return;
|
28747 | }
|
28748 |
|
28749 | this.$nextTick(function () {
|
28750 |
|
28751 | if (!_this.computedTransition || !_this.inTransition) {
|
28752 | return;
|
28753 | }
|
28754 |
|
28755 |
|
28756 | _this.windowGroup.transitionHeight = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["convertToUnit"])(el.clientHeight);
|
28757 | });
|
28758 | }
|
28759 | },
|
28760 | render: function render(h) {
|
28761 | return h('transition', {
|
28762 | props: {
|
28763 | name: this.computedTransition
|
28764 | },
|
28765 | on: {
|
28766 |
|
28767 | beforeEnter: this.onBeforeTransition,
|
28768 | afterEnter: this.onAfterTransition,
|
28769 | enterCancelled: this.onTransitionCancelled,
|
28770 |
|
28771 | beforeLeave: this.onBeforeTransition,
|
28772 | afterLeave: this.onAfterTransition,
|
28773 | leaveCancelled: this.onTransitionCancelled,
|
28774 |
|
28775 | enter: this.onEnter
|
28776 | }
|
28777 | }, [this.genWindowItem()]);
|
28778 | }
|
28779 | }));
|
28780 |
|
28781 | }),
|
28782 |
|
28783 | "./src/components/VWindow/index.ts":
|
28784 |
|
28785 |
|
28786 |
|
28787 |
|
28788 | (function(module, __webpack_exports__, __webpack_require__) {
|
28789 |
|
28790 | "use strict";
|
28791 | __webpack_require__.r(__webpack_exports__);
|
28792 | var _VWindow__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VWindow/VWindow.ts");
|
28793 | __webpack_require__.d(__webpack_exports__, "VWindow", function() { return _VWindow__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
28794 |
|
28795 | var _VWindowItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VWindow/VWindowItem.ts");
|
28796 | __webpack_require__.d(__webpack_exports__, "VWindowItem", function() { return _VWindowItem__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
28797 |
|
28798 |
|
28799 |
|
28800 |
|
28801 | __webpack_exports__["default"] = ({
|
28802 | $_vuetify_subcomponents: {
|
28803 | VWindow: _VWindow__WEBPACK_IMPORTED_MODULE_0__["default"],
|
28804 | VWindowItem: _VWindowItem__WEBPACK_IMPORTED_MODULE_1__["default"]
|
28805 | }
|
28806 | });
|
28807 |
|
28808 | }),
|
28809 |
|
28810 | "./src/components/index.ts":
|
28811 |
|
28812 |
|
28813 |
|
28814 |
|
28815 | (function(module, __webpack_exports__, __webpack_require__) {
|
28816 |
|
28817 | "use strict";
|
28818 | __webpack_require__.r(__webpack_exports__);
|
28819 | var _VApp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VApp/index.ts");
|
28820 | __webpack_require__.d(__webpack_exports__, "VApp", function() { return _VApp__WEBPACK_IMPORTED_MODULE_0__["VApp"]; });
|
28821 |
|
28822 | var _VAppBar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VAppBar/index.ts");
|
28823 | __webpack_require__.d(__webpack_exports__, "VAppBar", function() { return _VAppBar__WEBPACK_IMPORTED_MODULE_1__["VAppBar"]; });
|
28824 |
|
28825 | __webpack_require__.d(__webpack_exports__, "VAppBarNavIcon", function() { return _VAppBar__WEBPACK_IMPORTED_MODULE_1__["VAppBarNavIcon"]; });
|
28826 |
|
28827 | var _VAlert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/components/VAlert/index.ts");
|
28828 | __webpack_require__.d(__webpack_exports__, "VAlert", function() { return _VAlert__WEBPACK_IMPORTED_MODULE_2__["VAlert"]; });
|
28829 |
|
28830 | var _VAutocomplete__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/components/VAutocomplete/index.ts");
|
28831 | __webpack_require__.d(__webpack_exports__, "VAutocomplete", function() { return _VAutocomplete__WEBPACK_IMPORTED_MODULE_3__["VAutocomplete"]; });
|
28832 |
|
28833 | var _VAvatar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/components/VAvatar/index.ts");
|
28834 | __webpack_require__.d(__webpack_exports__, "VAvatar", function() { return _VAvatar__WEBPACK_IMPORTED_MODULE_4__["VAvatar"]; });
|
28835 |
|
28836 | var _VBadge__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/components/VBadge/index.ts");
|
28837 | __webpack_require__.d(__webpack_exports__, "VBadge", function() { return _VBadge__WEBPACK_IMPORTED_MODULE_5__["VBadge"]; });
|
28838 |
|
28839 | var _VBanner__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/components/VBanner/index.ts");
|
28840 | __webpack_require__.d(__webpack_exports__, "VBanner", function() { return _VBanner__WEBPACK_IMPORTED_MODULE_6__["VBanner"]; });
|
28841 |
|
28842 | var _VBottomNavigation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( "./src/components/VBottomNavigation/index.ts");
|
28843 | __webpack_require__.d(__webpack_exports__, "VBottomNavigation", function() { return _VBottomNavigation__WEBPACK_IMPORTED_MODULE_7__["VBottomNavigation"]; });
|
28844 |
|
28845 | var _VBottomSheet__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( "./src/components/VBottomSheet/index.ts");
|
28846 | __webpack_require__.d(__webpack_exports__, "VBottomSheet", function() { return _VBottomSheet__WEBPACK_IMPORTED_MODULE_8__["VBottomSheet"]; });
|
28847 |
|
28848 | var _VBreadcrumbs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__( "./src/components/VBreadcrumbs/index.ts");
|
28849 | __webpack_require__.d(__webpack_exports__, "VBreadcrumbs", function() { return _VBreadcrumbs__WEBPACK_IMPORTED_MODULE_9__["VBreadcrumbs"]; });
|
28850 |
|
28851 | __webpack_require__.d(__webpack_exports__, "VBreadcrumbsItem", function() { return _VBreadcrumbs__WEBPACK_IMPORTED_MODULE_9__["VBreadcrumbsItem"]; });
|
28852 |
|
28853 | __webpack_require__.d(__webpack_exports__, "VBreadcrumbsDivider", function() { return _VBreadcrumbs__WEBPACK_IMPORTED_MODULE_9__["VBreadcrumbsDivider"]; });
|
28854 |
|
28855 | var _VBtn__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__( "./src/components/VBtn/index.ts");
|
28856 | __webpack_require__.d(__webpack_exports__, "VBtn", function() { return _VBtn__WEBPACK_IMPORTED_MODULE_10__["VBtn"]; });
|
28857 |
|
28858 | var _VBtnToggle__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__( "./src/components/VBtnToggle/index.ts");
|
28859 | __webpack_require__.d(__webpack_exports__, "VBtnToggle", function() { return _VBtnToggle__WEBPACK_IMPORTED_MODULE_11__["VBtnToggle"]; });
|
28860 |
|
28861 | var _VCalendar__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__( "./src/components/VCalendar/index.ts");
|
28862 | __webpack_require__.d(__webpack_exports__, "VCalendar", function() { return _VCalendar__WEBPACK_IMPORTED_MODULE_12__["VCalendar"]; });
|
28863 |
|
28864 | __webpack_require__.d(__webpack_exports__, "VCalendarDaily", function() { return _VCalendar__WEBPACK_IMPORTED_MODULE_12__["VCalendarDaily"]; });
|
28865 |
|
28866 | __webpack_require__.d(__webpack_exports__, "VCalendarWeekly", function() { return _VCalendar__WEBPACK_IMPORTED_MODULE_12__["VCalendarWeekly"]; });
|
28867 |
|
28868 | __webpack_require__.d(__webpack_exports__, "VCalendarMonthly", function() { return _VCalendar__WEBPACK_IMPORTED_MODULE_12__["VCalendarMonthly"]; });
|
28869 |
|
28870 | var _VCard__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__( "./src/components/VCard/index.ts");
|
28871 | __webpack_require__.d(__webpack_exports__, "VCard", function() { return _VCard__WEBPACK_IMPORTED_MODULE_13__["VCard"]; });
|
28872 |
|
28873 | __webpack_require__.d(__webpack_exports__, "VCardActions", function() { return _VCard__WEBPACK_IMPORTED_MODULE_13__["VCardActions"]; });
|
28874 |
|
28875 | __webpack_require__.d(__webpack_exports__, "VCardSubtitle", function() { return _VCard__WEBPACK_IMPORTED_MODULE_13__["VCardSubtitle"]; });
|
28876 |
|
28877 | __webpack_require__.d(__webpack_exports__, "VCardText", function() { return _VCard__WEBPACK_IMPORTED_MODULE_13__["VCardText"]; });
|
28878 |
|
28879 | __webpack_require__.d(__webpack_exports__, "VCardTitle", function() { return _VCard__WEBPACK_IMPORTED_MODULE_13__["VCardTitle"]; });
|
28880 |
|
28881 | var _VCarousel__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__( "./src/components/VCarousel/index.ts");
|
28882 | __webpack_require__.d(__webpack_exports__, "VCarousel", function() { return _VCarousel__WEBPACK_IMPORTED_MODULE_14__["VCarousel"]; });
|
28883 |
|
28884 | __webpack_require__.d(__webpack_exports__, "VCarouselItem", function() { return _VCarousel__WEBPACK_IMPORTED_MODULE_14__["VCarouselItem"]; });
|
28885 |
|
28886 | var _VCheckbox__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__( "./src/components/VCheckbox/index.ts");
|
28887 | __webpack_require__.d(__webpack_exports__, "VCheckbox", function() { return _VCheckbox__WEBPACK_IMPORTED_MODULE_15__["VCheckbox"]; });
|
28888 |
|
28889 | __webpack_require__.d(__webpack_exports__, "VSimpleCheckbox", function() { return _VCheckbox__WEBPACK_IMPORTED_MODULE_15__["VSimpleCheckbox"]; });
|
28890 |
|
28891 | var _VChip__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__( "./src/components/VChip/index.ts");
|
28892 | __webpack_require__.d(__webpack_exports__, "VChip", function() { return _VChip__WEBPACK_IMPORTED_MODULE_16__["VChip"]; });
|
28893 |
|
28894 | var _VChipGroup__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__( "./src/components/VChipGroup/index.ts");
|
28895 | __webpack_require__.d(__webpack_exports__, "VChipGroup", function() { return _VChipGroup__WEBPACK_IMPORTED_MODULE_17__["VChipGroup"]; });
|
28896 |
|
28897 | var _VColorPicker__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__( "./src/components/VColorPicker/index.ts");
|
28898 | __webpack_require__.d(__webpack_exports__, "VColorPicker", function() { return _VColorPicker__WEBPACK_IMPORTED_MODULE_18__["VColorPicker"]; });
|
28899 |
|
28900 | __webpack_require__.d(__webpack_exports__, "VColorPickerSwatches", function() { return _VColorPicker__WEBPACK_IMPORTED_MODULE_18__["VColorPickerSwatches"]; });
|
28901 |
|
28902 | __webpack_require__.d(__webpack_exports__, "VColorPickerCanvas", function() { return _VColorPicker__WEBPACK_IMPORTED_MODULE_18__["VColorPickerCanvas"]; });
|
28903 |
|
28904 | var _VContent__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__( "./src/components/VContent/index.ts");
|
28905 | __webpack_require__.d(__webpack_exports__, "VContent", function() { return _VContent__WEBPACK_IMPORTED_MODULE_19__["VContent"]; });
|
28906 |
|
28907 | var _VCombobox__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__( "./src/components/VCombobox/index.ts");
|
28908 | __webpack_require__.d(__webpack_exports__, "VCombobox", function() { return _VCombobox__WEBPACK_IMPORTED_MODULE_20__["VCombobox"]; });
|
28909 |
|
28910 | var _VCounter__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__( "./src/components/VCounter/index.ts");
|
28911 | __webpack_require__.d(__webpack_exports__, "VCounter", function() { return _VCounter__WEBPACK_IMPORTED_MODULE_21__["VCounter"]; });
|
28912 |
|
28913 | var _VData__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__( "./src/components/VData/index.ts");
|
28914 | __webpack_require__.d(__webpack_exports__, "VData", function() { return _VData__WEBPACK_IMPORTED_MODULE_22__["VData"]; });
|
28915 |
|
28916 | var _VDataIterator__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__( "./src/components/VDataIterator/index.ts");
|
28917 | __webpack_require__.d(__webpack_exports__, "VDataIterator", function() { return _VDataIterator__WEBPACK_IMPORTED_MODULE_23__["VDataIterator"]; });
|
28918 |
|
28919 | __webpack_require__.d(__webpack_exports__, "VDataFooter", function() { return _VDataIterator__WEBPACK_IMPORTED_MODULE_23__["VDataFooter"]; });
|
28920 |
|
28921 | var _VDataTable__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__( "./src/components/VDataTable/index.ts");
|
28922 | __webpack_require__.d(__webpack_exports__, "VDataTable", function() { return _VDataTable__WEBPACK_IMPORTED_MODULE_24__["VDataTable"]; });
|
28923 |
|
28924 | __webpack_require__.d(__webpack_exports__, "VEditDialog", function() { return _VDataTable__WEBPACK_IMPORTED_MODULE_24__["VEditDialog"]; });
|
28925 |
|
28926 | __webpack_require__.d(__webpack_exports__, "VTableOverflow", function() { return _VDataTable__WEBPACK_IMPORTED_MODULE_24__["VTableOverflow"]; });
|
28927 |
|
28928 | __webpack_require__.d(__webpack_exports__, "VDataTableHeader", function() { return _VDataTable__WEBPACK_IMPORTED_MODULE_24__["VDataTableHeader"]; });
|
28929 |
|
28930 | __webpack_require__.d(__webpack_exports__, "VSimpleTable", function() { return _VDataTable__WEBPACK_IMPORTED_MODULE_24__["VSimpleTable"]; });
|
28931 |
|
28932 | __webpack_require__.d(__webpack_exports__, "VVirtualTable", function() { return _VDataTable__WEBPACK_IMPORTED_MODULE_24__["VVirtualTable"]; });
|
28933 |
|
28934 | var _VDatePicker__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__( "./src/components/VDatePicker/index.ts");
|
28935 | __webpack_require__.d(__webpack_exports__, "VDatePicker", function() { return _VDatePicker__WEBPACK_IMPORTED_MODULE_25__["VDatePicker"]; });
|
28936 |
|
28937 | __webpack_require__.d(__webpack_exports__, "VDatePickerTitle", function() { return _VDatePicker__WEBPACK_IMPORTED_MODULE_25__["VDatePickerTitle"]; });
|
28938 |
|
28939 | __webpack_require__.d(__webpack_exports__, "VDatePickerHeader", function() { return _VDatePicker__WEBPACK_IMPORTED_MODULE_25__["VDatePickerHeader"]; });
|
28940 |
|
28941 | __webpack_require__.d(__webpack_exports__, "VDatePickerDateTable", function() { return _VDatePicker__WEBPACK_IMPORTED_MODULE_25__["VDatePickerDateTable"]; });
|
28942 |
|
28943 | __webpack_require__.d(__webpack_exports__, "VDatePickerMonthTable", function() { return _VDatePicker__WEBPACK_IMPORTED_MODULE_25__["VDatePickerMonthTable"]; });
|
28944 |
|
28945 | __webpack_require__.d(__webpack_exports__, "VDatePickerYears", function() { return _VDatePicker__WEBPACK_IMPORTED_MODULE_25__["VDatePickerYears"]; });
|
28946 |
|
28947 | var _VDialog__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__( "./src/components/VDialog/index.ts");
|
28948 | __webpack_require__.d(__webpack_exports__, "VDialog", function() { return _VDialog__WEBPACK_IMPORTED_MODULE_26__["VDialog"]; });
|
28949 |
|
28950 | var _VDivider__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__( "./src/components/VDivider/index.ts");
|
28951 | __webpack_require__.d(__webpack_exports__, "VDivider", function() { return _VDivider__WEBPACK_IMPORTED_MODULE_27__["VDivider"]; });
|
28952 |
|
28953 | var _VExpansionPanel__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__( "./src/components/VExpansionPanel/index.ts");
|
28954 | __webpack_require__.d(__webpack_exports__, "VExpansionPanels", function() { return _VExpansionPanel__WEBPACK_IMPORTED_MODULE_28__["VExpansionPanels"]; });
|
28955 |
|
28956 | __webpack_require__.d(__webpack_exports__, "VExpansionPanel", function() { return _VExpansionPanel__WEBPACK_IMPORTED_MODULE_28__["VExpansionPanel"]; });
|
28957 |
|
28958 | __webpack_require__.d(__webpack_exports__, "VExpansionPanelHeader", function() { return _VExpansionPanel__WEBPACK_IMPORTED_MODULE_28__["VExpansionPanelHeader"]; });
|
28959 |
|
28960 | __webpack_require__.d(__webpack_exports__, "VExpansionPanelContent", function() { return _VExpansionPanel__WEBPACK_IMPORTED_MODULE_28__["VExpansionPanelContent"]; });
|
28961 |
|
28962 | var _VFileInput__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__( "./src/components/VFileInput/index.ts");
|
28963 | __webpack_require__.d(__webpack_exports__, "VFileInput", function() { return _VFileInput__WEBPACK_IMPORTED_MODULE_29__["VFileInput"]; });
|
28964 |
|
28965 | var _VFooter__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__( "./src/components/VFooter/index.ts");
|
28966 | __webpack_require__.d(__webpack_exports__, "VFooter", function() { return _VFooter__WEBPACK_IMPORTED_MODULE_30__["VFooter"]; });
|
28967 |
|
28968 | var _VForm__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__( "./src/components/VForm/index.ts");
|
28969 | __webpack_require__.d(__webpack_exports__, "VForm", function() { return _VForm__WEBPACK_IMPORTED_MODULE_31__["VForm"]; });
|
28970 |
|
28971 | var _VGrid__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__( "./src/components/VGrid/index.ts");
|
28972 | __webpack_require__.d(__webpack_exports__, "VContainer", function() { return _VGrid__WEBPACK_IMPORTED_MODULE_32__["VContainer"]; });
|
28973 |
|
28974 | __webpack_require__.d(__webpack_exports__, "VCol", function() { return _VGrid__WEBPACK_IMPORTED_MODULE_32__["VCol"]; });
|
28975 |
|
28976 | __webpack_require__.d(__webpack_exports__, "VRow", function() { return _VGrid__WEBPACK_IMPORTED_MODULE_32__["VRow"]; });
|
28977 |
|
28978 | __webpack_require__.d(__webpack_exports__, "VSpacer", function() { return _VGrid__WEBPACK_IMPORTED_MODULE_32__["VSpacer"]; });
|
28979 |
|
28980 | __webpack_require__.d(__webpack_exports__, "VLayout", function() { return _VGrid__WEBPACK_IMPORTED_MODULE_32__["VLayout"]; });
|
28981 |
|
28982 | __webpack_require__.d(__webpack_exports__, "VFlex", function() { return _VGrid__WEBPACK_IMPORTED_MODULE_32__["VFlex"]; });
|
28983 |
|
28984 | var _VHover__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__( "./src/components/VHover/index.ts");
|
28985 | __webpack_require__.d(__webpack_exports__, "VHover", function() { return _VHover__WEBPACK_IMPORTED_MODULE_33__["VHover"]; });
|
28986 |
|
28987 | var _VIcon__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__( "./src/components/VIcon/index.ts");
|
28988 | __webpack_require__.d(__webpack_exports__, "VIcon", function() { return _VIcon__WEBPACK_IMPORTED_MODULE_34__["VIcon"]; });
|
28989 |
|
28990 | var _VImg__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__( "./src/components/VImg/index.ts");
|
28991 | __webpack_require__.d(__webpack_exports__, "VImg", function() { return _VImg__WEBPACK_IMPORTED_MODULE_35__["VImg"]; });
|
28992 |
|
28993 | var _VInput__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__( "./src/components/VInput/index.ts");
|
28994 | __webpack_require__.d(__webpack_exports__, "VInput", function() { return _VInput__WEBPACK_IMPORTED_MODULE_36__["VInput"]; });
|
28995 |
|
28996 | var _VItemGroup__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__( "./src/components/VItemGroup/index.ts");
|
28997 | __webpack_require__.d(__webpack_exports__, "VItem", function() { return _VItemGroup__WEBPACK_IMPORTED_MODULE_37__["VItem"]; });
|
28998 |
|
28999 | __webpack_require__.d(__webpack_exports__, "VItemGroup", function() { return _VItemGroup__WEBPACK_IMPORTED_MODULE_37__["VItemGroup"]; });
|
29000 |
|
29001 | var _VLabel__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__( "./src/components/VLabel/index.ts");
|
29002 | __webpack_require__.d(__webpack_exports__, "VLabel", function() { return _VLabel__WEBPACK_IMPORTED_MODULE_38__["VLabel"]; });
|
29003 |
|
29004 | var _VLazy__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__( "./src/components/VLazy/index.ts");
|
29005 | __webpack_require__.d(__webpack_exports__, "VLazy", function() { return _VLazy__WEBPACK_IMPORTED_MODULE_39__["VLazy"]; });
|
29006 |
|
29007 | var _VList__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__( "./src/components/VList/index.ts");
|
29008 | __webpack_require__.d(__webpack_exports__, "VListItemActionText", function() { return _VList__WEBPACK_IMPORTED_MODULE_40__["VListItemActionText"]; });
|
29009 |
|
29010 | __webpack_require__.d(__webpack_exports__, "VListItemContent", function() { return _VList__WEBPACK_IMPORTED_MODULE_40__["VListItemContent"]; });
|
29011 |
|
29012 | __webpack_require__.d(__webpack_exports__, "VListItemTitle", function() { return _VList__WEBPACK_IMPORTED_MODULE_40__["VListItemTitle"]; });
|
29013 |
|
29014 | __webpack_require__.d(__webpack_exports__, "VListItemSubtitle", function() { return _VList__WEBPACK_IMPORTED_MODULE_40__["VListItemSubtitle"]; });
|
29015 |
|
29016 | __webpack_require__.d(__webpack_exports__, "VList", function() { return _VList__WEBPACK_IMPORTED_MODULE_40__["VList"]; });
|
29017 |
|
29018 | __webpack_require__.d(__webpack_exports__, "VListGroup", function() { return _VList__WEBPACK_IMPORTED_MODULE_40__["VListGroup"]; });
|
29019 |
|
29020 | __webpack_require__.d(__webpack_exports__, "VListItem", function() { return _VList__WEBPACK_IMPORTED_MODULE_40__["VListItem"]; });
|
29021 |
|
29022 | __webpack_require__.d(__webpack_exports__, "VListItemAction", function() { return _VList__WEBPACK_IMPORTED_MODULE_40__["VListItemAction"]; });
|
29023 |
|
29024 | __webpack_require__.d(__webpack_exports__, "VListItemAvatar", function() { return _VList__WEBPACK_IMPORTED_MODULE_40__["VListItemAvatar"]; });
|
29025 |
|
29026 | __webpack_require__.d(__webpack_exports__, "VListItemIcon", function() { return _VList__WEBPACK_IMPORTED_MODULE_40__["VListItemIcon"]; });
|
29027 |
|
29028 | __webpack_require__.d(__webpack_exports__, "VListItemGroup", function() { return _VList__WEBPACK_IMPORTED_MODULE_40__["VListItemGroup"]; });
|
29029 |
|
29030 | var _VMenu__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__( "./src/components/VMenu/index.ts");
|
29031 | __webpack_require__.d(__webpack_exports__, "VMenu", function() { return _VMenu__WEBPACK_IMPORTED_MODULE_41__["VMenu"]; });
|
29032 |
|
29033 | var _VMessages__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__( "./src/components/VMessages/index.ts");
|
29034 | __webpack_require__.d(__webpack_exports__, "VMessages", function() { return _VMessages__WEBPACK_IMPORTED_MODULE_42__["VMessages"]; });
|
29035 |
|
29036 | var _VNavigationDrawer__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__( "./src/components/VNavigationDrawer/index.ts");
|
29037 | __webpack_require__.d(__webpack_exports__, "VNavigationDrawer", function() { return _VNavigationDrawer__WEBPACK_IMPORTED_MODULE_43__["VNavigationDrawer"]; });
|
29038 |
|
29039 | var _VOverflowBtn__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__( "./src/components/VOverflowBtn/index.ts");
|
29040 | __webpack_require__.d(__webpack_exports__, "VOverflowBtn", function() { return _VOverflowBtn__WEBPACK_IMPORTED_MODULE_44__["VOverflowBtn"]; });
|
29041 |
|
29042 | var _VOverlay__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__( "./src/components/VOverlay/index.ts");
|
29043 | __webpack_require__.d(__webpack_exports__, "VOverlay", function() { return _VOverlay__WEBPACK_IMPORTED_MODULE_45__["VOverlay"]; });
|
29044 |
|
29045 | var _VPagination__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__( "./src/components/VPagination/index.ts");
|
29046 | __webpack_require__.d(__webpack_exports__, "VPagination", function() { return _VPagination__WEBPACK_IMPORTED_MODULE_46__["VPagination"]; });
|
29047 |
|
29048 | var _VSheet__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__( "./src/components/VSheet/index.ts");
|
29049 | __webpack_require__.d(__webpack_exports__, "VSheet", function() { return _VSheet__WEBPACK_IMPORTED_MODULE_47__["VSheet"]; });
|
29050 |
|
29051 | var _VParallax__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__( "./src/components/VParallax/index.ts");
|
29052 | __webpack_require__.d(__webpack_exports__, "VParallax", function() { return _VParallax__WEBPACK_IMPORTED_MODULE_48__["VParallax"]; });
|
29053 |
|
29054 | var _VPicker__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__( "./src/components/VPicker/index.ts");
|
29055 | __webpack_require__.d(__webpack_exports__, "VPicker", function() { return _VPicker__WEBPACK_IMPORTED_MODULE_49__["VPicker"]; });
|
29056 |
|
29057 | var _VProgressCircular__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__( "./src/components/VProgressCircular/index.ts");
|
29058 | __webpack_require__.d(__webpack_exports__, "VProgressCircular", function() { return _VProgressCircular__WEBPACK_IMPORTED_MODULE_50__["VProgressCircular"]; });
|
29059 |
|
29060 | var _VProgressLinear__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__( "./src/components/VProgressLinear/index.ts");
|
29061 | __webpack_require__.d(__webpack_exports__, "VProgressLinear", function() { return _VProgressLinear__WEBPACK_IMPORTED_MODULE_51__["VProgressLinear"]; });
|
29062 |
|
29063 | var _VRadioGroup__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__( "./src/components/VRadioGroup/index.ts");
|
29064 | __webpack_require__.d(__webpack_exports__, "VRadioGroup", function() { return _VRadioGroup__WEBPACK_IMPORTED_MODULE_52__["VRadioGroup"]; });
|
29065 |
|
29066 | __webpack_require__.d(__webpack_exports__, "VRadio", function() { return _VRadioGroup__WEBPACK_IMPORTED_MODULE_52__["VRadio"]; });
|
29067 |
|
29068 | var _VRangeSlider__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__( "./src/components/VRangeSlider/index.ts");
|
29069 | __webpack_require__.d(__webpack_exports__, "VRangeSlider", function() { return _VRangeSlider__WEBPACK_IMPORTED_MODULE_53__["VRangeSlider"]; });
|
29070 |
|
29071 | var _VRating__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__( "./src/components/VRating/index.ts");
|
29072 | __webpack_require__.d(__webpack_exports__, "VRating", function() { return _VRating__WEBPACK_IMPORTED_MODULE_54__["VRating"]; });
|
29073 |
|
29074 | var _VResponsive__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__( "./src/components/VResponsive/index.ts");
|
29075 | __webpack_require__.d(__webpack_exports__, "VResponsive", function() { return _VResponsive__WEBPACK_IMPORTED_MODULE_55__["VResponsive"]; });
|
29076 |
|
29077 | var _VSelect__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__( "./src/components/VSelect/index.ts");
|
29078 | __webpack_require__.d(__webpack_exports__, "VSelect", function() { return _VSelect__WEBPACK_IMPORTED_MODULE_56__["VSelect"]; });
|
29079 |
|
29080 | var _VSkeletonLoader__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__( "./src/components/VSkeletonLoader/index.ts");
|
29081 | __webpack_require__.d(__webpack_exports__, "VSkeletonLoader", function() { return _VSkeletonLoader__WEBPACK_IMPORTED_MODULE_57__["VSkeletonLoader"]; });
|
29082 |
|
29083 | var _VSlider__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__( "./src/components/VSlider/index.ts");
|
29084 | __webpack_require__.d(__webpack_exports__, "VSlider", function() { return _VSlider__WEBPACK_IMPORTED_MODULE_58__["VSlider"]; });
|
29085 |
|
29086 | var _VSlideGroup__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__( "./src/components/VSlideGroup/index.ts");
|
29087 | __webpack_require__.d(__webpack_exports__, "VSlideGroup", function() { return _VSlideGroup__WEBPACK_IMPORTED_MODULE_59__["VSlideGroup"]; });
|
29088 |
|
29089 | __webpack_require__.d(__webpack_exports__, "VSlideItem", function() { return _VSlideGroup__WEBPACK_IMPORTED_MODULE_59__["VSlideItem"]; });
|
29090 |
|
29091 | var _VSnackbar__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__( "./src/components/VSnackbar/index.ts");
|
29092 | __webpack_require__.d(__webpack_exports__, "VSnackbar", function() { return _VSnackbar__WEBPACK_IMPORTED_MODULE_60__["VSnackbar"]; });
|
29093 |
|
29094 | var _VSparkline__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__( "./src/components/VSparkline/index.ts");
|
29095 | __webpack_require__.d(__webpack_exports__, "VSparkline", function() { return _VSparkline__WEBPACK_IMPORTED_MODULE_61__["VSparkline"]; });
|
29096 |
|
29097 | var _VSpeedDial__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__( "./src/components/VSpeedDial/index.ts");
|
29098 | __webpack_require__.d(__webpack_exports__, "VSpeedDial", function() { return _VSpeedDial__WEBPACK_IMPORTED_MODULE_62__["VSpeedDial"]; });
|
29099 |
|
29100 | var _VStepper__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__( "./src/components/VStepper/index.ts");
|
29101 | __webpack_require__.d(__webpack_exports__, "VStepper", function() { return _VStepper__WEBPACK_IMPORTED_MODULE_63__["VStepper"]; });
|
29102 |
|
29103 | __webpack_require__.d(__webpack_exports__, "VStepperContent", function() { return _VStepper__WEBPACK_IMPORTED_MODULE_63__["VStepperContent"]; });
|
29104 |
|
29105 | __webpack_require__.d(__webpack_exports__, "VStepperStep", function() { return _VStepper__WEBPACK_IMPORTED_MODULE_63__["VStepperStep"]; });
|
29106 |
|
29107 | __webpack_require__.d(__webpack_exports__, "VStepperHeader", function() { return _VStepper__WEBPACK_IMPORTED_MODULE_63__["VStepperHeader"]; });
|
29108 |
|
29109 | __webpack_require__.d(__webpack_exports__, "VStepperItems", function() { return _VStepper__WEBPACK_IMPORTED_MODULE_63__["VStepperItems"]; });
|
29110 |
|
29111 | var _VSubheader__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__( "./src/components/VSubheader/index.ts");
|
29112 | __webpack_require__.d(__webpack_exports__, "VSubheader", function() { return _VSubheader__WEBPACK_IMPORTED_MODULE_64__["VSubheader"]; });
|
29113 |
|
29114 | var _VSwitch__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__( "./src/components/VSwitch/index.ts");
|
29115 | __webpack_require__.d(__webpack_exports__, "VSwitch", function() { return _VSwitch__WEBPACK_IMPORTED_MODULE_65__["VSwitch"]; });
|
29116 |
|
29117 | var _VSystemBar__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__( "./src/components/VSystemBar/index.ts");
|
29118 | __webpack_require__.d(__webpack_exports__, "VSystemBar", function() { return _VSystemBar__WEBPACK_IMPORTED_MODULE_66__["VSystemBar"]; });
|
29119 |
|
29120 | var _VTabs__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__( "./src/components/VTabs/index.ts");
|
29121 | __webpack_require__.d(__webpack_exports__, "VTabs", function() { return _VTabs__WEBPACK_IMPORTED_MODULE_67__["VTabs"]; });
|
29122 |
|
29123 | __webpack_require__.d(__webpack_exports__, "VTab", function() { return _VTabs__WEBPACK_IMPORTED_MODULE_67__["VTab"]; });
|
29124 |
|
29125 | __webpack_require__.d(__webpack_exports__, "VTabItem", function() { return _VTabs__WEBPACK_IMPORTED_MODULE_67__["VTabItem"]; });
|
29126 |
|
29127 | __webpack_require__.d(__webpack_exports__, "VTabsItems", function() { return _VTabs__WEBPACK_IMPORTED_MODULE_67__["VTabsItems"]; });
|
29128 |
|
29129 | __webpack_require__.d(__webpack_exports__, "VTabsSlider", function() { return _VTabs__WEBPACK_IMPORTED_MODULE_67__["VTabsSlider"]; });
|
29130 |
|
29131 | var _VTextarea__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__( "./src/components/VTextarea/index.ts");
|
29132 | __webpack_require__.d(__webpack_exports__, "VTextarea", function() { return _VTextarea__WEBPACK_IMPORTED_MODULE_68__["VTextarea"]; });
|
29133 |
|
29134 | var _VTextField__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__( "./src/components/VTextField/index.ts");
|
29135 | __webpack_require__.d(__webpack_exports__, "VTextField", function() { return _VTextField__WEBPACK_IMPORTED_MODULE_69__["VTextField"]; });
|
29136 |
|
29137 | var _VTimeline__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__( "./src/components/VTimeline/index.ts");
|
29138 | __webpack_require__.d(__webpack_exports__, "VTimeline", function() { return _VTimeline__WEBPACK_IMPORTED_MODULE_70__["VTimeline"]; });
|
29139 |
|
29140 | __webpack_require__.d(__webpack_exports__, "VTimelineItem", function() { return _VTimeline__WEBPACK_IMPORTED_MODULE_70__["VTimelineItem"]; });
|
29141 |
|
29142 | var _VTimePicker__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__( "./src/components/VTimePicker/index.ts");
|
29143 | __webpack_require__.d(__webpack_exports__, "VTimePicker", function() { return _VTimePicker__WEBPACK_IMPORTED_MODULE_71__["VTimePicker"]; });
|
29144 |
|
29145 | __webpack_require__.d(__webpack_exports__, "VTimePickerClock", function() { return _VTimePicker__WEBPACK_IMPORTED_MODULE_71__["VTimePickerClock"]; });
|
29146 |
|
29147 | __webpack_require__.d(__webpack_exports__, "VTimePickerTitle", function() { return _VTimePicker__WEBPACK_IMPORTED_MODULE_71__["VTimePickerTitle"]; });
|
29148 |
|
29149 | var _VToolbar__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__( "./src/components/VToolbar/index.ts");
|
29150 | __webpack_require__.d(__webpack_exports__, "VToolbar", function() { return _VToolbar__WEBPACK_IMPORTED_MODULE_72__["VToolbar"]; });
|
29151 |
|
29152 | __webpack_require__.d(__webpack_exports__, "VToolbarItems", function() { return _VToolbar__WEBPACK_IMPORTED_MODULE_72__["VToolbarItems"]; });
|
29153 |
|
29154 | __webpack_require__.d(__webpack_exports__, "VToolbarTitle", function() { return _VToolbar__WEBPACK_IMPORTED_MODULE_72__["VToolbarTitle"]; });
|
29155 |
|
29156 | var _VTooltip__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__( "./src/components/VTooltip/index.ts");
|
29157 | __webpack_require__.d(__webpack_exports__, "VTooltip", function() { return _VTooltip__WEBPACK_IMPORTED_MODULE_73__["VTooltip"]; });
|
29158 |
|
29159 | var _VTreeview__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__( "./src/components/VTreeview/index.ts");
|
29160 | __webpack_require__.d(__webpack_exports__, "VTreeview", function() { return _VTreeview__WEBPACK_IMPORTED_MODULE_74__["VTreeview"]; });
|
29161 |
|
29162 | __webpack_require__.d(__webpack_exports__, "VTreeviewNode", function() { return _VTreeview__WEBPACK_IMPORTED_MODULE_74__["VTreeviewNode"]; });
|
29163 |
|
29164 | var _VWindow__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__( "./src/components/VWindow/index.ts");
|
29165 | __webpack_require__.d(__webpack_exports__, "VWindow", function() { return _VWindow__WEBPACK_IMPORTED_MODULE_75__["VWindow"]; });
|
29166 |
|
29167 | __webpack_require__.d(__webpack_exports__, "VWindowItem", function() { return _VWindow__WEBPACK_IMPORTED_MODULE_75__["VWindowItem"]; });
|
29168 |
|
29169 | var _transitions__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__( "./src/components/transitions/index.ts");
|
29170 | __webpack_require__.d(__webpack_exports__, "VCarouselTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VCarouselTransition"]; });
|
29171 |
|
29172 | __webpack_require__.d(__webpack_exports__, "VCarouselReverseTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VCarouselReverseTransition"]; });
|
29173 |
|
29174 | __webpack_require__.d(__webpack_exports__, "VTabTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VTabTransition"]; });
|
29175 |
|
29176 | __webpack_require__.d(__webpack_exports__, "VTabReverseTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VTabReverseTransition"]; });
|
29177 |
|
29178 | __webpack_require__.d(__webpack_exports__, "VMenuTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VMenuTransition"]; });
|
29179 |
|
29180 | __webpack_require__.d(__webpack_exports__, "VFabTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VFabTransition"]; });
|
29181 |
|
29182 | __webpack_require__.d(__webpack_exports__, "VDialogTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VDialogTransition"]; });
|
29183 |
|
29184 | __webpack_require__.d(__webpack_exports__, "VDialogBottomTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VDialogBottomTransition"]; });
|
29185 |
|
29186 | __webpack_require__.d(__webpack_exports__, "VFadeTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VFadeTransition"]; });
|
29187 |
|
29188 | __webpack_require__.d(__webpack_exports__, "VScaleTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VScaleTransition"]; });
|
29189 |
|
29190 | __webpack_require__.d(__webpack_exports__, "VScrollXTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VScrollXTransition"]; });
|
29191 |
|
29192 | __webpack_require__.d(__webpack_exports__, "VScrollXReverseTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VScrollXReverseTransition"]; });
|
29193 |
|
29194 | __webpack_require__.d(__webpack_exports__, "VScrollYTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VScrollYTransition"]; });
|
29195 |
|
29196 | __webpack_require__.d(__webpack_exports__, "VScrollYReverseTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VScrollYReverseTransition"]; });
|
29197 |
|
29198 | __webpack_require__.d(__webpack_exports__, "VSlideXTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VSlideXTransition"]; });
|
29199 |
|
29200 | __webpack_require__.d(__webpack_exports__, "VSlideXReverseTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VSlideXReverseTransition"]; });
|
29201 |
|
29202 | __webpack_require__.d(__webpack_exports__, "VSlideYTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VSlideYTransition"]; });
|
29203 |
|
29204 | __webpack_require__.d(__webpack_exports__, "VSlideYReverseTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VSlideYReverseTransition"]; });
|
29205 |
|
29206 | __webpack_require__.d(__webpack_exports__, "VExpandTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VExpandTransition"]; });
|
29207 |
|
29208 | __webpack_require__.d(__webpack_exports__, "VExpandXTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_76__["VExpandXTransition"]; });
|
29209 |
|
29210 |
|
29211 |
|
29212 |
|
29213 |
|
29214 |
|
29215 |
|
29216 |
|
29217 |
|
29218 |
|
29219 |
|
29220 |
|
29221 |
|
29222 |
|
29223 |
|
29224 |
|
29225 |
|
29226 |
|
29227 |
|
29228 |
|
29229 |
|
29230 |
|
29231 |
|
29232 |
|
29233 |
|
29234 |
|
29235 |
|
29236 |
|
29237 |
|
29238 |
|
29239 |
|
29240 |
|
29241 |
|
29242 |
|
29243 |
|
29244 |
|
29245 |
|
29246 |
|
29247 |
|
29248 |
|
29249 |
|
29250 |
|
29251 |
|
29252 |
|
29253 |
|
29254 |
|
29255 |
|
29256 |
|
29257 |
|
29258 |
|
29259 |
|
29260 |
|
29261 |
|
29262 |
|
29263 |
|
29264 |
|
29265 |
|
29266 |
|
29267 |
|
29268 |
|
29269 |
|
29270 |
|
29271 |
|
29272 |
|
29273 |
|
29274 |
|
29275 |
|
29276 |
|
29277 |
|
29278 |
|
29279 |
|
29280 |
|
29281 |
|
29282 |
|
29283 |
|
29284 |
|
29285 |
|
29286 |
|
29287 |
|
29288 | }),
|
29289 |
|
29290 | "./src/components/transitions/expand-transition.ts":
|
29291 |
|
29292 |
|
29293 |
|
29294 |
|
29295 | (function(module, __webpack_exports__, __webpack_require__) {
|
29296 |
|
29297 | "use strict";
|
29298 | __webpack_require__.r(__webpack_exports__);
|
29299 | var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/helpers.ts");
|
29300 |
|
29301 | __webpack_exports__["default"] = (function (expandedParentClass, x) {
|
29302 | if (expandedParentClass === void 0) {
|
29303 | expandedParentClass = '';
|
29304 | }
|
29305 |
|
29306 | if (x === void 0) {
|
29307 | x = false;
|
29308 | }
|
29309 |
|
29310 | var sizeProperty = x ? 'width' : 'height';
|
29311 | var offsetProperty = "offset" + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["upperFirst"])(sizeProperty);
|
29312 | return {
|
29313 | beforeEnter: function beforeEnter(el) {
|
29314 | var _a;
|
29315 |
|
29316 | el._parent = el.parentNode;
|
29317 | el._initialStyle = (_a = {
|
29318 | transition: el.style.transition,
|
29319 | visibility: el.style.visibility,
|
29320 | overflow: el.style.overflow
|
29321 | }, _a[sizeProperty] = el.style[sizeProperty], _a);
|
29322 | },
|
29323 | enter: function enter(el) {
|
29324 | var initialStyle = el._initialStyle;
|
29325 | var offset = el[offsetProperty] + "px";
|
29326 | el.style.setProperty('transition', 'none', 'important');
|
29327 | el.style.visibility = 'hidden';
|
29328 | el.style.visibility = initialStyle.visibility;
|
29329 | el.style.overflow = 'hidden';
|
29330 | el.style[sizeProperty] = '0';
|
29331 | void el.offsetHeight;
|
29332 |
|
29333 | el.style.transition = initialStyle.transition;
|
29334 |
|
29335 | if (expandedParentClass && el._parent) {
|
29336 | el._parent.classList.add(expandedParentClass);
|
29337 | }
|
29338 |
|
29339 | requestAnimationFrame(function () {
|
29340 | el.style[sizeProperty] = offset;
|
29341 | });
|
29342 | },
|
29343 | afterEnter: resetStyles,
|
29344 | enterCancelled: resetStyles,
|
29345 | leave: function leave(el) {
|
29346 | var _a;
|
29347 |
|
29348 | el._initialStyle = (_a = {
|
29349 | transition: '',
|
29350 | visibility: '',
|
29351 | overflow: el.style.overflow
|
29352 | }, _a[sizeProperty] = el.style[sizeProperty], _a);
|
29353 | el.style.overflow = 'hidden';
|
29354 | el.style[sizeProperty] = el[offsetProperty] + "px";
|
29355 | void el.offsetHeight;
|
29356 |
|
29357 | requestAnimationFrame(function () {
|
29358 | return el.style[sizeProperty] = '0';
|
29359 | });
|
29360 | },
|
29361 | afterLeave: afterLeave,
|
29362 | leaveCancelled: afterLeave
|
29363 | };
|
29364 |
|
29365 | function afterLeave(el) {
|
29366 | if (expandedParentClass && el._parent) {
|
29367 | el._parent.classList.remove(expandedParentClass);
|
29368 | }
|
29369 |
|
29370 | resetStyles(el);
|
29371 | }
|
29372 |
|
29373 | function resetStyles(el) {
|
29374 | var size = el._initialStyle[sizeProperty];
|
29375 | el.style.overflow = el._initialStyle.overflow;
|
29376 | if (size != null) el.style[sizeProperty] = size;
|
29377 | delete el._initialStyle;
|
29378 | }
|
29379 | });
|
29380 |
|
29381 | }),
|
29382 |
|
29383 | "./src/components/transitions/index.ts":
|
29384 |
|
29385 |
|
29386 |
|
29387 |
|
29388 | (function(module, __webpack_exports__, __webpack_require__) {
|
29389 |
|
29390 | "use strict";
|
29391 | __webpack_require__.r(__webpack_exports__);
|
29392 | __webpack_require__.d(__webpack_exports__, "VCarouselTransition", function() { return VCarouselTransition; });
|
29393 | __webpack_require__.d(__webpack_exports__, "VCarouselReverseTransition", function() { return VCarouselReverseTransition; });
|
29394 | __webpack_require__.d(__webpack_exports__, "VTabTransition", function() { return VTabTransition; });
|
29395 | __webpack_require__.d(__webpack_exports__, "VTabReverseTransition", function() { return VTabReverseTransition; });
|
29396 | __webpack_require__.d(__webpack_exports__, "VMenuTransition", function() { return VMenuTransition; });
|
29397 | __webpack_require__.d(__webpack_exports__, "VFabTransition", function() { return VFabTransition; });
|
29398 | __webpack_require__.d(__webpack_exports__, "VDialogTransition", function() { return VDialogTransition; });
|
29399 | __webpack_require__.d(__webpack_exports__, "VDialogBottomTransition", function() { return VDialogBottomTransition; });
|
29400 | __webpack_require__.d(__webpack_exports__, "VFadeTransition", function() { return VFadeTransition; });
|
29401 | __webpack_require__.d(__webpack_exports__, "VScaleTransition", function() { return VScaleTransition; });
|
29402 | __webpack_require__.d(__webpack_exports__, "VScrollXTransition", function() { return VScrollXTransition; });
|
29403 | __webpack_require__.d(__webpack_exports__, "VScrollXReverseTransition", function() { return VScrollXReverseTransition; });
|
29404 | __webpack_require__.d(__webpack_exports__, "VScrollYTransition", function() { return VScrollYTransition; });
|
29405 | __webpack_require__.d(__webpack_exports__, "VScrollYReverseTransition", function() { return VScrollYReverseTransition; });
|
29406 | __webpack_require__.d(__webpack_exports__, "VSlideXTransition", function() { return VSlideXTransition; });
|
29407 | __webpack_require__.d(__webpack_exports__, "VSlideXReverseTransition", function() { return VSlideXReverseTransition; });
|
29408 | __webpack_require__.d(__webpack_exports__, "VSlideYTransition", function() { return VSlideYTransition; });
|
29409 | __webpack_require__.d(__webpack_exports__, "VSlideYReverseTransition", function() { return VSlideYReverseTransition; });
|
29410 | __webpack_require__.d(__webpack_exports__, "VExpandTransition", function() { return VExpandTransition; });
|
29411 | __webpack_require__.d(__webpack_exports__, "VExpandXTransition", function() { return VExpandXTransition; });
|
29412 | var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/helpers.ts");
|
29413 | var _expand_transition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/transitions/expand-transition.ts");
|
29414 |
|
29415 |
|
29416 |
|
29417 | var VCarouselTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('carousel-transition');
|
29418 | var VCarouselReverseTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('carousel-reverse-transition');
|
29419 | var VTabTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('tab-transition');
|
29420 | var VTabReverseTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('tab-reverse-transition');
|
29421 | var VMenuTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('menu-transition');
|
29422 | var VFabTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('fab-transition', 'center center', 'out-in');
|
29423 |
|
29424 | var VDialogTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('dialog-transition');
|
29425 | var VDialogBottomTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('dialog-bottom-transition');
|
29426 | var VFadeTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('fade-transition');
|
29427 | var VScaleTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('scale-transition');
|
29428 | var VScrollXTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('scroll-x-transition');
|
29429 | var VScrollXReverseTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('scroll-x-reverse-transition');
|
29430 | var VScrollYTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('scroll-y-transition');
|
29431 | var VScrollYReverseTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('scroll-y-reverse-transition');
|
29432 | var VSlideXTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('slide-x-transition');
|
29433 | var VSlideXReverseTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('slide-x-reverse-transition');
|
29434 | var VSlideYTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('slide-y-transition');
|
29435 | var VSlideYReverseTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('slide-y-reverse-transition');
|
29436 |
|
29437 | var VExpandTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createJavaScriptTransition"])('expand-transition', Object(_expand_transition__WEBPACK_IMPORTED_MODULE_1__["default"])());
|
29438 | var VExpandXTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createJavaScriptTransition"])('expand-x-transition', Object(_expand_transition__WEBPACK_IMPORTED_MODULE_1__["default"])('', true));
|
29439 | __webpack_exports__["default"] = ({
|
29440 | $_vuetify_subcomponents: {
|
29441 | VCarouselTransition: VCarouselTransition,
|
29442 | VCarouselReverseTransition: VCarouselReverseTransition,
|
29443 | VDialogTransition: VDialogTransition,
|
29444 | VDialogBottomTransition: VDialogBottomTransition,
|
29445 | VFabTransition: VFabTransition,
|
29446 | VFadeTransition: VFadeTransition,
|
29447 | VMenuTransition: VMenuTransition,
|
29448 | VScaleTransition: VScaleTransition,
|
29449 | VScrollXTransition: VScrollXTransition,
|
29450 | VScrollXReverseTransition: VScrollXReverseTransition,
|
29451 | VScrollYTransition: VScrollYTransition,
|
29452 | VScrollYReverseTransition: VScrollYReverseTransition,
|
29453 | VSlideXTransition: VSlideXTransition,
|
29454 | VSlideXReverseTransition: VSlideXReverseTransition,
|
29455 | VSlideYTransition: VSlideYTransition,
|
29456 | VSlideYReverseTransition: VSlideYReverseTransition,
|
29457 | VTabReverseTransition: VTabReverseTransition,
|
29458 | VTabTransition: VTabTransition,
|
29459 | VExpandTransition: VExpandTransition,
|
29460 | VExpandXTransition: VExpandXTransition
|
29461 | }
|
29462 | });
|
29463 |
|
29464 | }),
|
29465 |
|
29466 | "./src/directives/click-outside/index.ts":
|
29467 |
|
29468 |
|
29469 |
|
29470 |
|
29471 | (function(module, __webpack_exports__, __webpack_require__) {
|
29472 |
|
29473 | "use strict";
|
29474 | __webpack_require__.r(__webpack_exports__);
|
29475 | __webpack_require__.d(__webpack_exports__, "ClickOutside", function() { return ClickOutside; });
|
29476 | function closeConditional() {
|
29477 | return false;
|
29478 | }
|
29479 |
|
29480 | function directive(e, el, binding) {
|
29481 |
|
29482 | binding.args = binding.args || {};
|
29483 |
|
29484 | var isActive = binding.args.closeConditional || closeConditional;
|
29485 |
|
29486 |
|
29487 |
|
29488 |
|
29489 | if (!e || isActive(e) === false) return;
|
29490 |
|
29491 |
|
29492 |
|
29493 |
|
29494 |
|
29495 | if ('isTrusted' in e && !e.isTrusted || 'pointerType' in e && !e.pointerType) return;
|
29496 |
|
29497 |
|
29498 | var elements = (binding.args.include || function () {
|
29499 | return [];
|
29500 | })();
|
29501 |
|
29502 |
|
29503 | elements.push(el);
|
29504 |
|
29505 |
|
29506 |
|
29507 |
|
29508 |
|
29509 | !elements.some(function (el) {
|
29510 | return el.contains(e.target);
|
29511 | }) && setTimeout(function () {
|
29512 | isActive(e) && binding.value && binding.value(e);
|
29513 | }, 0);
|
29514 | }
|
29515 |
|
29516 | var ClickOutside = {
|
29517 |
|
29518 |
|
29519 |
|
29520 |
|
29521 |
|
29522 | inserted: function inserted(el, binding) {
|
29523 | var onClick = function onClick(e) {
|
29524 | return directive(e, el, binding);
|
29525 | };
|
29526 |
|
29527 |
|
29528 |
|
29529 |
|
29530 | var app = document.querySelector('[data-app]') || document.body;
|
29531 |
|
29532 | app.addEventListener('click', onClick, true);
|
29533 | el._clickOutside = onClick;
|
29534 | },
|
29535 | unbind: function unbind(el) {
|
29536 | if (!el._clickOutside) return;
|
29537 | var app = document.querySelector('[data-app]') || document.body;
|
29538 |
|
29539 | app && app.removeEventListener('click', el._clickOutside, true);
|
29540 | delete el._clickOutside;
|
29541 | }
|
29542 | };
|
29543 | __webpack_exports__["default"] = (ClickOutside);
|
29544 |
|
29545 | }),
|
29546 |
|
29547 | "./src/directives/index.ts":
|
29548 |
|
29549 |
|
29550 |
|
29551 |
|
29552 | (function(module, __webpack_exports__, __webpack_require__) {
|
29553 |
|
29554 | "use strict";
|
29555 | __webpack_require__.r(__webpack_exports__);
|
29556 | var _click_outside__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/directives/click-outside/index.ts");
|
29557 | __webpack_require__.d(__webpack_exports__, "ClickOutside", function() { return _click_outside__WEBPACK_IMPORTED_MODULE_0__["ClickOutside"]; });
|
29558 |
|
29559 | var _intersect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/directives/intersect/index.ts");
|
29560 | __webpack_require__.d(__webpack_exports__, "Intersect", function() { return _intersect__WEBPACK_IMPORTED_MODULE_1__["Intersect"]; });
|
29561 |
|
29562 | var _mutate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/directives/mutate/index.ts");
|
29563 | __webpack_require__.d(__webpack_exports__, "Mutate", function() { return _mutate__WEBPACK_IMPORTED_MODULE_2__["Mutate"]; });
|
29564 |
|
29565 | var _resize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/directives/resize/index.ts");
|
29566 | __webpack_require__.d(__webpack_exports__, "Resize", function() { return _resize__WEBPACK_IMPORTED_MODULE_3__["Resize"]; });
|
29567 |
|
29568 | var _ripple__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/directives/ripple/index.ts");
|
29569 | __webpack_require__.d(__webpack_exports__, "Ripple", function() { return _ripple__WEBPACK_IMPORTED_MODULE_4__["Ripple"]; });
|
29570 |
|
29571 | var _scroll__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/directives/scroll/index.ts");
|
29572 | __webpack_require__.d(__webpack_exports__, "Scroll", function() { return _scroll__WEBPACK_IMPORTED_MODULE_5__["Scroll"]; });
|
29573 |
|
29574 | var _touch__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( "./src/directives/touch/index.ts");
|
29575 | __webpack_require__.d(__webpack_exports__, "Touch", function() { return _touch__WEBPACK_IMPORTED_MODULE_6__["Touch"]; });
|
29576 |
|
29577 |
|
29578 |
|
29579 |
|
29580 |
|
29581 |
|
29582 |
|
29583 |
|
29584 |
|
29585 | }),
|
29586 |
|
29587 | "./src/directives/intersect/index.ts":
|
29588 |
|
29589 |
|
29590 |
|
29591 |
|
29592 | (function(module, __webpack_exports__, __webpack_require__) {
|
29593 |
|
29594 | "use strict";
|
29595 | __webpack_require__.r(__webpack_exports__);
|
29596 | __webpack_require__.d(__webpack_exports__, "Intersect", function() { return Intersect; });
|
29597 | 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); }
|
29598 |
|
29599 | function inserted(el, binding) {
|
29600 | var modifiers = binding.modifiers ||
|
29601 |
|
29602 | {};
|
29603 | var value = binding.value;
|
29604 | var isObject = _typeof(value) === 'object';
|
29605 | var callback = isObject ? value.handler : value;
|
29606 | var observer = new IntersectionObserver(function (entries, observer) {
|
29607 | if (entries === void 0) {
|
29608 | entries = [];
|
29609 | }
|
29610 |
|
29611 |
|
29612 |
|
29613 | if (!el._observe) return;
|
29614 |
|
29615 |
|
29616 |
|
29617 | if (callback && (!modifiers.quiet || el._observe.init)) {
|
29618 | var isIntersecting = Boolean(entries.find(function (entry) {
|
29619 | return entry.isIntersecting;
|
29620 | }));
|
29621 | callback(entries, observer, isIntersecting);
|
29622 | }
|
29623 |
|
29624 |
|
29625 |
|
29626 | if (el._observe.init && modifiers.once) unbind(el);
|
29627 | else el._observe.init = true;
|
29628 | }, value.options || {});
|
29629 | el._observe = {
|
29630 | init: false,
|
29631 | observer: observer
|
29632 | };
|
29633 | observer.observe(el);
|
29634 | }
|
29635 |
|
29636 | function unbind(el) {
|
29637 |
|
29638 | if (!el._observe) return;
|
29639 |
|
29640 | el._observe.observer.unobserve(el);
|
29641 |
|
29642 | delete el._observe;
|
29643 | }
|
29644 |
|
29645 | var Intersect = {
|
29646 | inserted: inserted,
|
29647 | unbind: unbind
|
29648 | };
|
29649 | __webpack_exports__["default"] = (Intersect);
|
29650 |
|
29651 | }),
|
29652 |
|
29653 | "./src/directives/mutate/index.ts":
|
29654 |
|
29655 |
|
29656 |
|
29657 |
|
29658 | (function(module, __webpack_exports__, __webpack_require__) {
|
29659 |
|
29660 | "use strict";
|
29661 | __webpack_require__.r(__webpack_exports__);
|
29662 | __webpack_require__.d(__webpack_exports__, "Mutate", function() { return Mutate; });
|
29663 | 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); }
|
29664 |
|
29665 | var __rest = undefined && undefined.__rest || function (s, e) {
|
29666 | var t = {};
|
29667 |
|
29668 | for (var p in s) {
|
29669 | if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
29670 | }
|
29671 |
|
29672 | if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
29673 | if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
29674 | }
|
29675 | return t;
|
29676 | };
|
29677 |
|
29678 | function inserted(el, binding) {
|
29679 | var modifiers = binding.modifiers ||
|
29680 |
|
29681 | {};
|
29682 | var value = binding.value;
|
29683 | var isObject = _typeof(value) === 'object';
|
29684 | var callback = isObject ? value.handler : value;
|
29685 |
|
29686 | var once = modifiers.once,
|
29687 | modifierKeys = __rest(modifiers, ["once"]);
|
29688 |
|
29689 | var hasModifiers = Object.keys(modifierKeys).length > 0;
|
29690 | var hasOptions = isObject && value.options;
|
29691 |
|
29692 | var options = hasOptions ? value.options : hasModifiers
|
29693 | ? {
|
29694 | attributes: modifierKeys.attr,
|
29695 | childList: modifierKeys.child,
|
29696 | subtree: modifierKeys.sub,
|
29697 | characterData: modifierKeys.char
|
29698 |
|
29699 | } : {
|
29700 | attributes: true,
|
29701 | childList: true,
|
29702 | subtree: true,
|
29703 | characterData: true
|
29704 | };
|
29705 | var observer = new MutationObserver(function (mutationsList, observer) {
|
29706 |
|
29707 | if (!el._mutate) return;
|
29708 |
|
29709 | callback(mutationsList, observer);
|
29710 |
|
29711 | once && unbind(el);
|
29712 | });
|
29713 | observer.observe(el, options);
|
29714 | el._mutate = {
|
29715 | observer: observer
|
29716 | };
|
29717 | }
|
29718 |
|
29719 | function unbind(el) {
|
29720 |
|
29721 | if (!el._mutate) return;
|
29722 |
|
29723 | el._mutate.observer.disconnect();
|
29724 |
|
29725 | delete el._mutate;
|
29726 | }
|
29727 |
|
29728 | var Mutate = {
|
29729 | inserted: inserted,
|
29730 | unbind: unbind
|
29731 | };
|
29732 | __webpack_exports__["default"] = (Mutate);
|
29733 |
|
29734 | }),
|
29735 |
|
29736 | "./src/directives/resize/index.ts":
|
29737 |
|
29738 |
|
29739 |
|
29740 |
|
29741 | (function(module, __webpack_exports__, __webpack_require__) {
|
29742 |
|
29743 | "use strict";
|
29744 | __webpack_require__.r(__webpack_exports__);
|
29745 | __webpack_require__.d(__webpack_exports__, "Resize", function() { return Resize; });
|
29746 | function inserted(el, binding) {
|
29747 | var callback = binding.value;
|
29748 | var options = binding.options || {
|
29749 | passive: true
|
29750 | };
|
29751 | window.addEventListener('resize', callback, options);
|
29752 | el._onResize = {
|
29753 | callback: callback,
|
29754 | options: options
|
29755 | };
|
29756 |
|
29757 | if (!binding.modifiers || !binding.modifiers.quiet) {
|
29758 | callback();
|
29759 | }
|
29760 | }
|
29761 |
|
29762 | function unbind(el) {
|
29763 | if (!el._onResize) return;
|
29764 | var _a = el._onResize,
|
29765 | callback = _a.callback,
|
29766 | options = _a.options;
|
29767 | window.removeEventListener('resize', callback, options);
|
29768 | delete el._onResize;
|
29769 | }
|
29770 |
|
29771 | var Resize = {
|
29772 | inserted: inserted,
|
29773 | unbind: unbind
|
29774 | };
|
29775 | __webpack_exports__["default"] = (Resize);
|
29776 |
|
29777 | }),
|
29778 |
|
29779 | "./src/directives/ripple/VRipple.sass":
|
29780 |
|
29781 |
|
29782 |
|
29783 |
|
29784 | (function(module, exports, __webpack_require__) {
|
29785 |
|
29786 |
|
29787 |
|
29788 | }),
|
29789 |
|
29790 | "./src/directives/ripple/index.ts":
|
29791 |
|
29792 |
|
29793 |
|
29794 |
|
29795 | (function(module, __webpack_exports__, __webpack_require__) {
|
29796 |
|
29797 | "use strict";
|
29798 | __webpack_require__.r(__webpack_exports__);
|
29799 | __webpack_require__.d(__webpack_exports__, "Ripple", function() { return Ripple; });
|
29800 | var _VRipple_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/directives/ripple/VRipple.sass");
|
29801 | var _VRipple_sass__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_VRipple_sass__WEBPACK_IMPORTED_MODULE_0__);
|
29802 | var _util_console__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/console.ts");
|
29803 | var __read = undefined && undefined.__read || function (o, n) {
|
29804 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
29805 | if (!m) return o;
|
29806 | var i = m.call(o),
|
29807 | r,
|
29808 | ar = [],
|
29809 | e;
|
29810 |
|
29811 | try {
|
29812 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
29813 | ar.push(r.value);
|
29814 | }
|
29815 | } catch (error) {
|
29816 | e = {
|
29817 | error: error
|
29818 | };
|
29819 | } finally {
|
29820 | try {
|
29821 | if (r && !r.done && (m = i["return"])) m.call(i);
|
29822 | } finally {
|
29823 | if (e) throw e.error;
|
29824 | }
|
29825 | }
|
29826 |
|
29827 | return ar;
|
29828 | };
|
29829 |
|
29830 | var __spread = undefined && undefined.__spread || function () {
|
29831 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
29832 | ar = ar.concat(__read(arguments[i]));
|
29833 | }
|
29834 |
|
29835 | return ar;
|
29836 | };
|
29837 |
|
29838 |
|
29839 |
|
29840 |
|
29841 |
|
29842 | function transform(el, value) {
|
29843 | el.style['transform'] = value;
|
29844 | el.style['webkitTransform'] = value;
|
29845 | }
|
29846 |
|
29847 | function opacity(el, value) {
|
29848 | el.style['opacity'] = value.toString();
|
29849 | }
|
29850 |
|
29851 | function isTouchEvent(e) {
|
29852 | return e.constructor.name === 'TouchEvent';
|
29853 | }
|
29854 |
|
29855 | var calculate = function calculate(e, el, value) {
|
29856 | if (value === void 0) {
|
29857 | value = {};
|
29858 | }
|
29859 |
|
29860 | var offset = el.getBoundingClientRect();
|
29861 | var target = isTouchEvent(e) ? e.touches[e.touches.length - 1] : e;
|
29862 | var localX = target.clientX - offset.left;
|
29863 | var localY = target.clientY - offset.top;
|
29864 | var radius = 0;
|
29865 | var scale = 0.3;
|
29866 |
|
29867 | if (el._ripple && el._ripple.circle) {
|
29868 | scale = 0.15;
|
29869 | radius = el.clientWidth / 2;
|
29870 | radius = value.center ? radius : radius + Math.sqrt(Math.pow(localX - radius, 2) + Math.pow(localY - radius, 2)) / 4;
|
29871 | } else {
|
29872 | radius = Math.sqrt(Math.pow(el.clientWidth, 2) + Math.pow(el.clientHeight, 2)) / 2;
|
29873 | }
|
29874 |
|
29875 | var centerX = (el.clientWidth - radius * 2) / 2 + "px";
|
29876 | var centerY = (el.clientHeight - radius * 2) / 2 + "px";
|
29877 | var x = value.center ? centerX : localX - radius + "px";
|
29878 | var y = value.center ? centerY : localY - radius + "px";
|
29879 | return {
|
29880 | radius: radius,
|
29881 | scale: scale,
|
29882 | x: x,
|
29883 | y: y,
|
29884 | centerX: centerX,
|
29885 | centerY: centerY
|
29886 | };
|
29887 | };
|
29888 |
|
29889 | var ripples = {
|
29890 |
|
29891 | show: function show(e, el, value) {
|
29892 | if (value === void 0) {
|
29893 | value = {};
|
29894 | }
|
29895 |
|
29896 | if (!el._ripple || !el._ripple.enabled) {
|
29897 | return;
|
29898 | }
|
29899 |
|
29900 | var container = document.createElement('span');
|
29901 | var animation = document.createElement('span');
|
29902 | container.appendChild(animation);
|
29903 | container.className = 'v-ripple__container';
|
29904 |
|
29905 | if (value.class) {
|
29906 | container.className += " " + value.class;
|
29907 | }
|
29908 |
|
29909 | var _a = calculate(e, el, value),
|
29910 | radius = _a.radius,
|
29911 | scale = _a.scale,
|
29912 | x = _a.x,
|
29913 | y = _a.y,
|
29914 | centerX = _a.centerX,
|
29915 | centerY = _a.centerY;
|
29916 |
|
29917 | var size = radius * 2 + "px";
|
29918 | animation.className = 'v-ripple__animation';
|
29919 | animation.style.width = size;
|
29920 | animation.style.height = size;
|
29921 | el.appendChild(container);
|
29922 | var computed = window.getComputedStyle(el);
|
29923 |
|
29924 | if (computed && computed.position === 'static') {
|
29925 | el.style.position = 'relative';
|
29926 | el.dataset.previousPosition = 'static';
|
29927 | }
|
29928 |
|
29929 | animation.classList.add('v-ripple__animation--enter');
|
29930 | animation.classList.add('v-ripple__animation--visible');
|
29931 | transform(animation, "translate(" + x + ", " + y + ") scale3d(" + scale + "," + scale + "," + scale + ")");
|
29932 | opacity(animation, 0);
|
29933 | animation.dataset.activated = String(performance.now());
|
29934 | setTimeout(function () {
|
29935 | animation.classList.remove('v-ripple__animation--enter');
|
29936 | animation.classList.add('v-ripple__animation--in');
|
29937 | transform(animation, "translate(" + centerX + ", " + centerY + ") scale3d(1,1,1)");
|
29938 | opacity(animation, 0.25);
|
29939 | }, 0);
|
29940 | },
|
29941 | hide: function hide(el) {
|
29942 | if (!el || !el._ripple || !el._ripple.enabled) return;
|
29943 | var ripples = el.getElementsByClassName('v-ripple__animation');
|
29944 | if (ripples.length === 0) return;
|
29945 | var animation = ripples[ripples.length - 1];
|
29946 | if (animation.dataset.isHiding) return;else animation.dataset.isHiding = 'true';
|
29947 | var diff = performance.now() - Number(animation.dataset.activated);
|
29948 | var delay = Math.max(250 - diff, 0);
|
29949 | setTimeout(function () {
|
29950 | animation.classList.remove('v-ripple__animation--in');
|
29951 | animation.classList.add('v-ripple__animation--out');
|
29952 | opacity(animation, 0);
|
29953 | setTimeout(function () {
|
29954 | var ripples = el.getElementsByClassName('v-ripple__animation');
|
29955 |
|
29956 | if (ripples.length === 1 && el.dataset.previousPosition) {
|
29957 | el.style.position = el.dataset.previousPosition;
|
29958 | delete el.dataset.previousPosition;
|
29959 | }
|
29960 |
|
29961 | animation.parentNode && el.removeChild(animation.parentNode);
|
29962 | }, 300);
|
29963 | }, delay);
|
29964 | }
|
29965 | };
|
29966 |
|
29967 | function isRippleEnabled(value) {
|
29968 | return typeof value === 'undefined' || !!value;
|
29969 | }
|
29970 |
|
29971 | function rippleShow(e) {
|
29972 | var value = {};
|
29973 | var element = e.currentTarget;
|
29974 | if (!element || !element._ripple || element._ripple.touched) return;
|
29975 |
|
29976 | if (isTouchEvent(e)) {
|
29977 | element._ripple.touched = true;
|
29978 | element._ripple.isTouch = true;
|
29979 | } else {
|
29980 |
|
29981 |
|
29982 |
|
29983 |
|
29984 | if (element._ripple.isTouch) return;
|
29985 | }
|
29986 |
|
29987 | value.center = element._ripple.centered;
|
29988 |
|
29989 | if (element._ripple.class) {
|
29990 | value.class = element._ripple.class;
|
29991 | }
|
29992 |
|
29993 | ripples.show(e, element, value);
|
29994 | }
|
29995 |
|
29996 | function rippleHide(e) {
|
29997 | var element = e.currentTarget;
|
29998 | if (!element) return;
|
29999 | window.setTimeout(function () {
|
30000 | if (element._ripple) {
|
30001 | element._ripple.touched = false;
|
30002 | }
|
30003 | });
|
30004 | ripples.hide(element);
|
30005 | }
|
30006 |
|
30007 | function updateRipple(el, binding, wasEnabled) {
|
30008 | var enabled = isRippleEnabled(binding.value);
|
30009 |
|
30010 | if (!enabled) {
|
30011 | ripples.hide(el);
|
30012 | }
|
30013 |
|
30014 | el._ripple = el._ripple || {};
|
30015 | el._ripple.enabled = enabled;
|
30016 | var value = binding.value || {};
|
30017 |
|
30018 | if (value.center) {
|
30019 | el._ripple.centered = true;
|
30020 | }
|
30021 |
|
30022 | if (value.class) {
|
30023 | el._ripple.class = binding.value.class;
|
30024 | }
|
30025 |
|
30026 | if (value.circle) {
|
30027 | el._ripple.circle = value.circle;
|
30028 | }
|
30029 |
|
30030 | if (enabled && !wasEnabled) {
|
30031 | el.addEventListener('touchstart', rippleShow, {
|
30032 | passive: true
|
30033 | });
|
30034 | el.addEventListener('touchend', rippleHide, {
|
30035 | passive: true
|
30036 | });
|
30037 | el.addEventListener('touchcancel', rippleHide);
|
30038 | el.addEventListener('mousedown', rippleShow);
|
30039 | el.addEventListener('mouseup', rippleHide);
|
30040 | el.addEventListener('mouseleave', rippleHide);
|
30041 |
|
30042 | el.addEventListener('dragstart', rippleHide, {
|
30043 | passive: true
|
30044 | });
|
30045 | } else if (!enabled && wasEnabled) {
|
30046 | removeListeners(el);
|
30047 | }
|
30048 | }
|
30049 |
|
30050 | function removeListeners(el) {
|
30051 | el.removeEventListener('mousedown', rippleShow);
|
30052 | el.removeEventListener('touchstart', rippleHide);
|
30053 | el.removeEventListener('touchend', rippleHide);
|
30054 | el.removeEventListener('touchcancel', rippleHide);
|
30055 | el.removeEventListener('mouseup', rippleHide);
|
30056 | el.removeEventListener('mouseleave', rippleHide);
|
30057 | el.removeEventListener('dragstart', rippleHide);
|
30058 | }
|
30059 |
|
30060 | function directive(el, binding, node) {
|
30061 | updateRipple(el, binding, false);
|
30062 |
|
30063 | if (true) {
|
30064 |
|
30065 | node.context && node.context.$nextTick(function () {
|
30066 | var computed = window.getComputedStyle(el);
|
30067 |
|
30068 | if (computed && computed.display === 'inline') {
|
30069 | var context = node.fnOptions ? [node.fnOptions, node.context] : [node.componentInstance];
|
30070 | _util_console__WEBPACK_IMPORTED_MODULE_1__["consoleWarn"].apply(void 0, __spread(['v-ripple can only be used on block-level elements'], context));
|
30071 | }
|
30072 | });
|
30073 | }
|
30074 | }
|
30075 |
|
30076 | function unbind(el) {
|
30077 | delete el._ripple;
|
30078 | removeListeners(el);
|
30079 | }
|
30080 |
|
30081 | function update(el, binding) {
|
30082 | if (binding.value === binding.oldValue) {
|
30083 | return;
|
30084 | }
|
30085 |
|
30086 | var wasEnabled = isRippleEnabled(binding.oldValue);
|
30087 | updateRipple(el, binding, wasEnabled);
|
30088 | }
|
30089 |
|
30090 | var Ripple = {
|
30091 | bind: directive,
|
30092 | unbind: unbind,
|
30093 | update: update
|
30094 | };
|
30095 | __webpack_exports__["default"] = (Ripple);
|
30096 |
|
30097 | }),
|
30098 |
|
30099 | "./src/directives/scroll/index.ts":
|
30100 |
|
30101 |
|
30102 |
|
30103 |
|
30104 | (function(module, __webpack_exports__, __webpack_require__) {
|
30105 |
|
30106 | "use strict";
|
30107 | __webpack_require__.r(__webpack_exports__);
|
30108 | __webpack_require__.d(__webpack_exports__, "Scroll", function() { return Scroll; });
|
30109 | function inserted(el, binding) {
|
30110 | var callback = binding.value;
|
30111 | var options = binding.options || {
|
30112 | passive: true
|
30113 | };
|
30114 | var target = binding.arg ? document.querySelector(binding.arg) : window;
|
30115 | if (!target) return;
|
30116 | target.addEventListener('scroll', callback, options);
|
30117 | el._onScroll = {
|
30118 | callback: callback,
|
30119 | options: options,
|
30120 | target: target
|
30121 | };
|
30122 | }
|
30123 |
|
30124 | function unbind(el) {
|
30125 | if (!el._onScroll) return;
|
30126 | var _a = el._onScroll,
|
30127 | callback = _a.callback,
|
30128 | options = _a.options,
|
30129 | target = _a.target;
|
30130 | target.removeEventListener('scroll', callback, options);
|
30131 | delete el._onScroll;
|
30132 | }
|
30133 |
|
30134 | var Scroll = {
|
30135 | inserted: inserted,
|
30136 | unbind: unbind
|
30137 | };
|
30138 | __webpack_exports__["default"] = (Scroll);
|
30139 |
|
30140 | }),
|
30141 |
|
30142 | "./src/directives/touch/index.ts":
|
30143 |
|
30144 |
|
30145 |
|
30146 |
|
30147 | (function(module, __webpack_exports__, __webpack_require__) {
|
30148 |
|
30149 | "use strict";
|
30150 | __webpack_require__.r(__webpack_exports__);
|
30151 | __webpack_require__.d(__webpack_exports__, "Touch", function() { return Touch; });
|
30152 | var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/helpers.ts");
|
30153 |
|
30154 |
|
30155 | var handleGesture = function handleGesture(wrapper) {
|
30156 | var touchstartX = wrapper.touchstartX,
|
30157 | touchendX = wrapper.touchendX,
|
30158 | touchstartY = wrapper.touchstartY,
|
30159 | touchendY = wrapper.touchendY;
|
30160 | var dirRatio = 0.5;
|
30161 | var minDistance = 16;
|
30162 | wrapper.offsetX = touchendX - touchstartX;
|
30163 | wrapper.offsetY = touchendY - touchstartY;
|
30164 |
|
30165 | if (Math.abs(wrapper.offsetY) < dirRatio * Math.abs(wrapper.offsetX)) {
|
30166 | wrapper.left && touchendX < touchstartX - minDistance && wrapper.left(wrapper);
|
30167 | wrapper.right && touchendX > touchstartX + minDistance && wrapper.right(wrapper);
|
30168 | }
|
30169 |
|
30170 | if (Math.abs(wrapper.offsetX) < dirRatio * Math.abs(wrapper.offsetY)) {
|
30171 | wrapper.up && touchendY < touchstartY - minDistance && wrapper.up(wrapper);
|
30172 | wrapper.down && touchendY > touchstartY + minDistance && wrapper.down(wrapper);
|
30173 | }
|
30174 | };
|
30175 |
|
30176 | function _touchstart(event, wrapper) {
|
30177 | var touch = event.changedTouches[0];
|
30178 | wrapper.touchstartX = touch.clientX;
|
30179 | wrapper.touchstartY = touch.clientY;
|
30180 | wrapper.start && wrapper.start(Object.assign(event, wrapper));
|
30181 | }
|
30182 |
|
30183 | function _touchend(event, wrapper) {
|
30184 | var touch = event.changedTouches[0];
|
30185 | wrapper.touchendX = touch.clientX;
|
30186 | wrapper.touchendY = touch.clientY;
|
30187 | wrapper.end && wrapper.end(Object.assign(event, wrapper));
|
30188 | handleGesture(wrapper);
|
30189 | }
|
30190 |
|
30191 | function _touchmove(event, wrapper) {
|
30192 | var touch = event.changedTouches[0];
|
30193 | wrapper.touchmoveX = touch.clientX;
|
30194 | wrapper.touchmoveY = touch.clientY;
|
30195 | wrapper.move && wrapper.move(Object.assign(event, wrapper));
|
30196 | }
|
30197 |
|
30198 | function createHandlers(value) {
|
30199 | var wrapper = {
|
30200 | touchstartX: 0,
|
30201 | touchstartY: 0,
|
30202 | touchendX: 0,
|
30203 | touchendY: 0,
|
30204 | touchmoveX: 0,
|
30205 | touchmoveY: 0,
|
30206 | offsetX: 0,
|
30207 | offsetY: 0,
|
30208 | left: value.left,
|
30209 | right: value.right,
|
30210 | up: value.up,
|
30211 | down: value.down,
|
30212 | start: value.start,
|
30213 | move: value.move,
|
30214 | end: value.end
|
30215 | };
|
30216 | return {
|
30217 | touchstart: function touchstart(e) {
|
30218 | return _touchstart(e, wrapper);
|
30219 | },
|
30220 | touchend: function touchend(e) {
|
30221 | return _touchend(e, wrapper);
|
30222 | },
|
30223 | touchmove: function touchmove(e) {
|
30224 | return _touchmove(e, wrapper);
|
30225 | }
|
30226 | };
|
30227 | }
|
30228 |
|
30229 | function inserted(el, binding, vnode) {
|
30230 | var value = binding.value;
|
30231 | var target = value.parent ? el.parentElement : el;
|
30232 | var options = value.options || {
|
30233 | passive: true
|
30234 | };
|
30235 |
|
30236 | if (!target) return;
|
30237 | var handlers = createHandlers(binding.value);
|
30238 | target._touchHandlers = Object(target._touchHandlers);
|
30239 | target._touchHandlers[vnode.context._uid] = handlers;
|
30240 | Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["keys"])(handlers).forEach(function (eventName) {
|
30241 | target.addEventListener(eventName, handlers[eventName], options);
|
30242 | });
|
30243 | }
|
30244 |
|
30245 | function unbind(el, binding, vnode) {
|
30246 | var target = binding.value.parent ? el.parentElement : el;
|
30247 | if (!target || !target._touchHandlers) return;
|
30248 | var handlers = target._touchHandlers[vnode.context._uid];
|
30249 | Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["keys"])(handlers).forEach(function (eventName) {
|
30250 | target.removeEventListener(eventName, handlers[eventName]);
|
30251 | });
|
30252 | delete target._touchHandlers[vnode.context._uid];
|
30253 | }
|
30254 |
|
30255 | var Touch = {
|
30256 | inserted: inserted,
|
30257 | unbind: unbind
|
30258 | };
|
30259 | __webpack_exports__["default"] = (Touch);
|
30260 |
|
30261 | }),
|
30262 |
|
30263 | "./src/framework.ts":
|
30264 |
|
30265 |
|
30266 |
|
30267 |
|
30268 | (function(module, __webpack_exports__, __webpack_require__) {
|
30269 |
|
30270 | "use strict";
|
30271 | __webpack_require__.r(__webpack_exports__);
|
30272 | var _install__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/install.ts");
|
30273 | var _services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/services/index.ts");
|
30274 | var _styles_main_sass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/styles/main.sass");
|
30275 | var _styles_main_sass__WEBPACK_IMPORTED_MODULE_2___default = __webpack_require__.n(_styles_main_sass__WEBPACK_IMPORTED_MODULE_2__);
|
30276 |
|
30277 |
|
30278 |
|
30279 |
|
30280 |
|
30281 |
|
30282 | var Vuetify =
|
30283 |
|
30284 | function () {
|
30285 | function Vuetify(preset) {
|
30286 | if (preset === void 0) {
|
30287 | preset = {};
|
30288 | }
|
30289 |
|
30290 | this.framework = {};
|
30291 | this.installed = [];
|
30292 | this.preset = {};
|
30293 | this.preset = preset;
|
30294 | this.use(_services__WEBPACK_IMPORTED_MODULE_1__["Application"]);
|
30295 | this.use(_services__WEBPACK_IMPORTED_MODULE_1__["Breakpoint"]);
|
30296 | this.use(_services__WEBPACK_IMPORTED_MODULE_1__["Goto"]);
|
30297 | this.use(_services__WEBPACK_IMPORTED_MODULE_1__["Icons"]);
|
30298 | this.use(_services__WEBPACK_IMPORTED_MODULE_1__["Lang"]);
|
30299 | this.use(_services__WEBPACK_IMPORTED_MODULE_1__["Theme"]);
|
30300 | }
|
30301 |
|
30302 |
|
30303 |
|
30304 |
|
30305 | Vuetify.prototype.init = function (root, ssrContext) {
|
30306 | var _this = this;
|
30307 |
|
30308 | this.installed.forEach(function (property) {
|
30309 | var service = _this.framework[property];
|
30310 | service.framework = _this.framework;
|
30311 | service.init(root, ssrContext);
|
30312 | });
|
30313 |
|
30314 |
|
30315 |
|
30316 | this.framework.rtl = Boolean(this.preset.rtl);
|
30317 | };
|
30318 |
|
30319 |
|
30320 | Vuetify.prototype.use = function (Service) {
|
30321 | var property = Service.property;
|
30322 | if (this.installed.includes(property)) return;
|
30323 | this.framework[property] = new Service(this.preset[property]);
|
30324 | this.installed.push(property);
|
30325 | };
|
30326 |
|
30327 | Vuetify.install = _install__WEBPACK_IMPORTED_MODULE_0__["install"];
|
30328 | Vuetify.installed = false;
|
30329 | Vuetify.version = "2.1.4";
|
30330 | return Vuetify;
|
30331 | }();
|
30332 |
|
30333 | __webpack_exports__["default"] = (Vuetify);
|
30334 |
|
30335 | }),
|
30336 |
|
30337 | "./src/index.ts":
|
30338 |
|
30339 |
|
30340 |
|
30341 |
|
30342 | (function(module, __webpack_exports__, __webpack_require__) {
|
30343 |
|
30344 | "use strict";
|
30345 | __webpack_require__.r(__webpack_exports__);
|
30346 | var _components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/index.ts");
|
30347 | var _directives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/directives/index.ts");
|
30348 | var _framework__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/framework.ts");
|
30349 | var __assign = undefined && undefined.__assign || function () {
|
30350 | __assign = Object.assign || function (t) {
|
30351 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
30352 | s = arguments[i];
|
30353 |
|
30354 | for (var p in s) {
|
30355 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
30356 | }
|
30357 | }
|
30358 |
|
30359 | return t;
|
30360 | };
|
30361 |
|
30362 | return __assign.apply(this, arguments);
|
30363 | };
|
30364 |
|
30365 |
|
30366 |
|
30367 |
|
30368 | __webpack_exports__["default"] = (_framework__WEBPACK_IMPORTED_MODULE_2__["default"]);
|
30369 | var install = _framework__WEBPACK_IMPORTED_MODULE_2__["default"].install;
|
30370 |
|
30371 | _framework__WEBPACK_IMPORTED_MODULE_2__["default"].install = function (Vue, args) {
|
30372 | install.call(_framework__WEBPACK_IMPORTED_MODULE_2__["default"], Vue, __assign({
|
30373 | components: _components__WEBPACK_IMPORTED_MODULE_0__,
|
30374 | directives: _directives__WEBPACK_IMPORTED_MODULE_1__
|
30375 | }, args));
|
30376 | };
|
30377 |
|
30378 | if (typeof window !== 'undefined' && window.Vue) {
|
30379 | window.Vue.use(_framework__WEBPACK_IMPORTED_MODULE_2__["default"]);
|
30380 | }
|
30381 |
|
30382 | }),
|
30383 |
|
30384 | "./src/install.ts":
|
30385 |
|
30386 |
|
30387 |
|
30388 |
|
30389 | (function(module, __webpack_exports__, __webpack_require__) {
|
30390 |
|
30391 | "use strict";
|
30392 | __webpack_require__.r(__webpack_exports__);
|
30393 | __webpack_require__.d(__webpack_exports__, "install", function() { return install; });
|
30394 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
30395 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
30396 | var _util_console__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/console.ts");
|
30397 |
|
30398 |
|
30399 | function install(Vue, args) {
|
30400 | if (args === void 0) {
|
30401 | args = {};
|
30402 | }
|
30403 |
|
30404 | if (install.installed) return;
|
30405 | install.installed = true;
|
30406 |
|
30407 | if (vue__WEBPACK_IMPORTED_MODULE_0___default.a !== Vue) {
|
30408 | Object(_util_console__WEBPACK_IMPORTED_MODULE_1__["consoleError"])('Multiple instances of Vue detected\nSee https://github.com/vuetifyjs/vuetify/issues/4068\n\nIf you\'re seeing "$attrs is readonly", it\'s caused by this');
|
30409 | }
|
30410 |
|
30411 | var components = args.components || {};
|
30412 | var directives = args.directives || {};
|
30413 |
|
30414 | for (var name in directives) {
|
30415 | var directive = directives[name];
|
30416 | Vue.directive(name, directive);
|
30417 | }
|
30418 |
|
30419 | (function registerComponents(components) {
|
30420 | if (components) {
|
30421 | for (var key in components) {
|
30422 | var component = components[key];
|
30423 |
|
30424 | if (component && !registerComponents(component.$_vuetify_subcomponents)) {
|
30425 | Vue.component(key, component);
|
30426 | }
|
30427 | }
|
30428 |
|
30429 | return true;
|
30430 | }
|
30431 |
|
30432 | return false;
|
30433 | })(components);
|
30434 |
|
30435 |
|
30436 |
|
30437 |
|
30438 | if (Vue.$_vuetify_installed) return;
|
30439 | Vue.$_vuetify_installed = true;
|
30440 | Vue.mixin({
|
30441 | beforeCreate: function beforeCreate() {
|
30442 | var options = this.$options;
|
30443 |
|
30444 | if (options.vuetify) {
|
30445 | options.vuetify.init(this, options.ssrContext);
|
30446 | this.$vuetify = Vue.observable(options.vuetify.framework);
|
30447 | } else {
|
30448 | this.$vuetify = options.parent && options.parent.$vuetify || this;
|
30449 | }
|
30450 | }
|
30451 | });
|
30452 | }
|
30453 |
|
30454 | }),
|
30455 |
|
30456 | "./src/locale/en.ts":
|
30457 |
|
30458 |
|
30459 |
|
30460 |
|
30461 | (function(module, __webpack_exports__, __webpack_require__) {
|
30462 |
|
30463 | "use strict";
|
30464 | __webpack_require__.r(__webpack_exports__);
|
30465 | __webpack_exports__["default"] = ({
|
30466 | close: 'Close',
|
30467 | dataIterator: {
|
30468 | noResultsText: 'No matching records found',
|
30469 | loadingText: 'Loading items...'
|
30470 | },
|
30471 | dataTable: {
|
30472 | itemsPerPageText: 'Rows per page:',
|
30473 | ariaLabel: {
|
30474 | sortDescending: ': Sorted descending. Activate to remove sorting.',
|
30475 | sortAscending: ': Sorted ascending. Activate to sort descending.',
|
30476 | sortNone: ': Not sorted. Activate to sort ascending.'
|
30477 | },
|
30478 | sortBy: 'Sort by'
|
30479 | },
|
30480 | dataFooter: {
|
30481 | itemsPerPageText: 'Items per page:',
|
30482 | itemsPerPageAll: 'All',
|
30483 | nextPage: 'Next page',
|
30484 | prevPage: 'Previous page',
|
30485 | firstPage: 'First page',
|
30486 | lastPage: 'Last page',
|
30487 | pageText: '{0}-{1} of {2}'
|
30488 | },
|
30489 | datePicker: {
|
30490 | itemsSelected: '{0} selected'
|
30491 | },
|
30492 | noDataText: 'No data available',
|
30493 | carousel: {
|
30494 | prev: 'Previous visual',
|
30495 | next: 'Next visual',
|
30496 | ariaLabel: {
|
30497 | delimiter: 'Carousel slide {0} of {1}'
|
30498 | }
|
30499 | },
|
30500 | calendar: {
|
30501 | moreEvents: '{0} more'
|
30502 | },
|
30503 | fileInput: {
|
30504 | counter: '{0} files',
|
30505 | counterSize: '{0} files ({1} in total)'
|
30506 | },
|
30507 | timePicker: {
|
30508 | am: 'AM',
|
30509 | pm: 'PM'
|
30510 | }
|
30511 | });
|
30512 |
|
30513 | }),
|
30514 |
|
30515 | "./src/mixins/activatable/index.ts":
|
30516 |
|
30517 |
|
30518 |
|
30519 |
|
30520 | (function(module, __webpack_exports__, __webpack_require__) {
|
30521 |
|
30522 | "use strict";
|
30523 | __webpack_require__.r(__webpack_exports__);
|
30524 | var _delayable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/mixins/delayable/index.ts");
|
30525 | var _toggleable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/toggleable/index.ts");
|
30526 | var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/mixins.ts");
|
30527 | var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/helpers.ts");
|
30528 | var _util_console__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/console.ts");
|
30529 | 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); }
|
30530 |
|
30531 | var __values = undefined && undefined.__values || function (o) {
|
30532 | var m = typeof Symbol === "function" && o[Symbol.iterator],
|
30533 | i = 0;
|
30534 | if (m) return m.call(o);
|
30535 | return {
|
30536 | next: function next() {
|
30537 | if (o && i >= o.length) o = void 0;
|
30538 | return {
|
30539 | value: o && o[i++],
|
30540 | done: !o
|
30541 | };
|
30542 | }
|
30543 | };
|
30544 | };
|
30545 |
|
30546 |
|
30547 |
|
30548 |
|
30549 |
|
30550 |
|
30551 |
|
30552 |
|
30553 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_delayable__WEBPACK_IMPORTED_MODULE_0__["default"], _toggleable__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
30554 |
|
30555 |
|
30556 | __webpack_exports__["default"] = (baseMixins.extend({
|
30557 | name: 'activatable',
|
30558 | props: {
|
30559 | activator: {
|
30560 | default: null,
|
30561 | validator: function validator(val) {
|
30562 | return ['string', 'object'].includes(_typeof(val));
|
30563 | }
|
30564 | },
|
30565 | disabled: Boolean,
|
30566 | internalActivator: Boolean,
|
30567 | openOnHover: Boolean
|
30568 | },
|
30569 | data: function data() {
|
30570 | return {
|
30571 |
|
30572 | activatorElement: null,
|
30573 | activatorNode: [],
|
30574 | events: ['click', 'mouseenter', 'mouseleave'],
|
30575 | listeners: {}
|
30576 | };
|
30577 | },
|
30578 | watch: {
|
30579 | activator: 'resetActivator',
|
30580 | openOnHover: 'resetActivator'
|
30581 | },
|
30582 | mounted: function mounted() {
|
30583 | var slotType = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getSlotType"])(this, 'activator', true);
|
30584 |
|
30585 | if (slotType && ['v-slot', 'normal'].includes(slotType)) {
|
30586 | Object(_util_console__WEBPACK_IMPORTED_MODULE_4__["consoleError"])("The activator slot must be bound, try '<template v-slot:activator=\"{ on }\"><v-btn v-on=\"on\">'", this);
|
30587 | }
|
30588 |
|
30589 | this.addActivatorEvents();
|
30590 | },
|
30591 | beforeDestroy: function beforeDestroy() {
|
30592 | this.removeActivatorEvents();
|
30593 | },
|
30594 | methods: {
|
30595 | addActivatorEvents: function addActivatorEvents() {
|
30596 | var e_1, _a;
|
30597 |
|
30598 | if (!this.activator || this.disabled || !this.getActivator()) return;
|
30599 | this.listeners = this.genActivatorListeners();
|
30600 | var keys = Object.keys(this.listeners);
|
30601 |
|
30602 | try {
|
30603 | for (var keys_1 = __values(keys), keys_1_1 = keys_1.next(); !keys_1_1.done; keys_1_1 = keys_1.next()) {
|
30604 | var key = keys_1_1.value;
|
30605 | this.getActivator().addEventListener(key, this.listeners[key]);
|
30606 | }
|
30607 | } catch (e_1_1) {
|
30608 | e_1 = {
|
30609 | error: e_1_1
|
30610 | };
|
30611 | } finally {
|
30612 | try {
|
30613 | if (keys_1_1 && !keys_1_1.done && (_a = keys_1.return)) _a.call(keys_1);
|
30614 | } finally {
|
30615 | if (e_1) throw e_1.error;
|
30616 | }
|
30617 | }
|
30618 | },
|
30619 | genActivator: function genActivator() {
|
30620 | var node = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getSlot"])(this, 'activator', Object.assign(this.getValueProxy(), {
|
30621 | on: this.genActivatorListeners(),
|
30622 | attrs: this.genActivatorAttributes()
|
30623 | })) || [];
|
30624 | this.activatorNode = node;
|
30625 | return node;
|
30626 | },
|
30627 | genActivatorAttributes: function genActivatorAttributes() {
|
30628 | return {
|
30629 | role: 'button',
|
30630 | 'aria-haspopup': true,
|
30631 | 'aria-expanded': String(this.isActive)
|
30632 | };
|
30633 | },
|
30634 | genActivatorListeners: function genActivatorListeners() {
|
30635 | var _this = this;
|
30636 |
|
30637 | if (this.disabled) return {};
|
30638 | var listeners = {};
|
30639 |
|
30640 | if (this.openOnHover) {
|
30641 | listeners.mouseenter = function (e) {
|
30642 | _this.getActivator(e);
|
30643 |
|
30644 | _this.runDelay('open');
|
30645 | };
|
30646 |
|
30647 | listeners.mouseleave = function (e) {
|
30648 | _this.getActivator(e);
|
30649 |
|
30650 | _this.runDelay('close');
|
30651 | };
|
30652 | } else {
|
30653 | listeners.click = function (e) {
|
30654 | var activator = _this.getActivator(e);
|
30655 |
|
30656 | if (activator) activator.focus();
|
30657 | _this.isActive = !_this.isActive;
|
30658 | };
|
30659 | }
|
30660 |
|
30661 | return listeners;
|
30662 | },
|
30663 | getActivator: function getActivator(e) {
|
30664 |
|
30665 | if (this.activatorElement) return this.activatorElement;
|
30666 | var activator = null;
|
30667 |
|
30668 | if (this.activator) {
|
30669 | var target = this.internalActivator ? this.$el : document;
|
30670 |
|
30671 | if (typeof this.activator === 'string') {
|
30672 |
|
30673 | activator = target.querySelector(this.activator);
|
30674 | } else if (this.activator.$el) {
|
30675 |
|
30676 | activator = this.activator.$el;
|
30677 | } else {
|
30678 |
|
30679 | activator = this.activator;
|
30680 | }
|
30681 | } else if (e) {
|
30682 |
|
30683 | activator = e.currentTarget || e.target;
|
30684 | } else if (this.activatorNode.length) {
|
30685 |
|
30686 | var vm = this.activatorNode[0].componentInstance;
|
30687 |
|
30688 | if (vm && vm.$options.mixins &&
|
30689 | vm.$options.mixins.some(function (m) {
|
30690 | return m.options && ['activatable', 'menuable'].includes(m.options.name);
|
30691 | })) {
|
30692 |
|
30693 | activator = vm.getActivator();
|
30694 | } else {
|
30695 | activator = this.activatorNode[0].elm;
|
30696 | }
|
30697 | }
|
30698 |
|
30699 | this.activatorElement = activator;
|
30700 | return this.activatorElement;
|
30701 | },
|
30702 | getContentSlot: function getContentSlot() {
|
30703 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getSlot"])(this, 'default', this.getValueProxy(), true);
|
30704 | },
|
30705 | getValueProxy: function getValueProxy() {
|
30706 | var self = this;
|
30707 | return {
|
30708 | get value() {
|
30709 | return self.isActive;
|
30710 | },
|
30711 |
|
30712 | set value(isActive) {
|
30713 | self.isActive = isActive;
|
30714 | }
|
30715 |
|
30716 | };
|
30717 | },
|
30718 | removeActivatorEvents: function removeActivatorEvents() {
|
30719 | var e_2, _a;
|
30720 |
|
30721 | if (!this.activator || !this.activatorElement) return;
|
30722 | var keys = Object.keys(this.listeners);
|
30723 |
|
30724 | try {
|
30725 | for (var keys_2 = __values(keys), keys_2_1 = keys_2.next(); !keys_2_1.done; keys_2_1 = keys_2.next()) {
|
30726 | var key = keys_2_1.value;
|
30727 | this.activatorElement.removeEventListener(key, this.listeners[key]);
|
30728 | }
|
30729 | } catch (e_2_1) {
|
30730 | e_2 = {
|
30731 | error: e_2_1
|
30732 | };
|
30733 | } finally {
|
30734 | try {
|
30735 | if (keys_2_1 && !keys_2_1.done && (_a = keys_2.return)) _a.call(keys_2);
|
30736 | } finally {
|
30737 | if (e_2) throw e_2.error;
|
30738 | }
|
30739 | }
|
30740 |
|
30741 | this.listeners = {};
|
30742 | },
|
30743 | resetActivator: function resetActivator() {
|
30744 | this.activatorElement = null;
|
30745 | this.getActivator();
|
30746 | this.addActivatorEvents();
|
30747 | }
|
30748 | }
|
30749 | }));
|
30750 |
|
30751 | }),
|
30752 |
|
30753 | "./src/mixins/applicationable/index.ts":
|
30754 |
|
30755 |
|
30756 |
|
30757 |
|
30758 | (function(module, __webpack_exports__, __webpack_require__) {
|
30759 |
|
30760 | "use strict";
|
30761 | __webpack_require__.r(__webpack_exports__);
|
30762 | __webpack_require__.d(__webpack_exports__, "default", function() { return applicationable; });
|
30763 | var _positionable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/mixins/positionable/index.ts");
|
30764 | var _util_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/mixins.ts");
|
30765 |
|
30766 |
|
30767 |
|
30768 | function applicationable(value, events) {
|
30769 | if (events === void 0) {
|
30770 | events = [];
|
30771 | }
|
30772 |
|
30773 |
|
30774 |
|
30775 | return Object(_util_mixins__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_positionable__WEBPACK_IMPORTED_MODULE_0__["factory"])(['absolute', 'fixed'])).extend({
|
30776 | name: 'applicationable',
|
30777 | props: {
|
30778 | app: Boolean
|
30779 | },
|
30780 | computed: {
|
30781 | applicationProperty: function applicationProperty() {
|
30782 | return value;
|
30783 | }
|
30784 | },
|
30785 | watch: {
|
30786 |
|
30787 |
|
30788 | app: function app(x, prev) {
|
30789 | prev ? this.removeApplication(true) : this.callUpdate();
|
30790 | },
|
30791 | applicationProperty: function applicationProperty(newVal, oldVal) {
|
30792 | this.$vuetify.application.unregister(this._uid, oldVal);
|
30793 | }
|
30794 | },
|
30795 | activated: function activated() {
|
30796 | this.callUpdate();
|
30797 | },
|
30798 | created: function created() {
|
30799 | for (var i = 0, length = events.length; i < length; i++) {
|
30800 | this.$watch(events[i], this.callUpdate);
|
30801 | }
|
30802 |
|
30803 | this.callUpdate();
|
30804 | },
|
30805 | mounted: function mounted() {
|
30806 | this.callUpdate();
|
30807 | },
|
30808 | deactivated: function deactivated() {
|
30809 | this.removeApplication();
|
30810 | },
|
30811 | destroyed: function destroyed() {
|
30812 | this.removeApplication();
|
30813 | },
|
30814 | methods: {
|
30815 | callUpdate: function callUpdate() {
|
30816 | if (!this.app) return;
|
30817 | this.$vuetify.application.register(this._uid, this.applicationProperty, this.updateApplication());
|
30818 | },
|
30819 | removeApplication: function removeApplication(force) {
|
30820 | if (force === void 0) {
|
30821 | force = false;
|
30822 | }
|
30823 |
|
30824 | if (!force && !this.app) return;
|
30825 | this.$vuetify.application.unregister(this._uid, this.applicationProperty);
|
30826 | },
|
30827 | updateApplication: function updateApplication() {
|
30828 | return 0;
|
30829 | }
|
30830 | }
|
30831 | });
|
30832 | }
|
30833 |
|
30834 | }),
|
30835 |
|
30836 | "./src/mixins/binds-attrs/index.ts":
|
30837 |
|
30838 |
|
30839 |
|
30840 |
|
30841 | (function(module, __webpack_exports__, __webpack_require__) {
|
30842 |
|
30843 | "use strict";
|
30844 | __webpack_require__.r(__webpack_exports__);
|
30845 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
30846 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
30847 |
|
30848 |
|
30849 |
|
30850 |
|
30851 |
|
30852 |
|
30853 | function makeWatcher(property) {
|
30854 | return function (val, oldVal) {
|
30855 | for (var attr in oldVal) {
|
30856 | if (!Object.prototype.hasOwnProperty.call(val, attr)) {
|
30857 | this.$delete(this.$data[property], attr);
|
30858 | }
|
30859 | }
|
30860 |
|
30861 | for (var attr in val) {
|
30862 | this.$set(this.$data[property], attr, val[attr]);
|
30863 | }
|
30864 | };
|
30865 | }
|
30866 |
|
30867 | /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
30868 | data: function data() {
|
30869 | return {
|
30870 | attrs$: {},
|
30871 | listeners$: {}
|
30872 | };
|
30873 | },
|
30874 | created: function created() {
|
30875 |
|
30876 |
|
30877 | this.$watch('$attrs', makeWatcher('attrs$'), {
|
30878 | immediate: true
|
30879 | });
|
30880 | this.$watch('$listeners', makeWatcher('listeners$'), {
|
30881 | immediate: true
|
30882 | });
|
30883 | }
|
30884 | }));
|
30885 |
|
30886 | }),
|
30887 |
|
30888 | "./src/mixins/bootable/index.ts":
|
30889 |
|
30890 |
|
30891 |
|
30892 |
|
30893 | (function(module, __webpack_exports__, __webpack_require__) {
|
30894 |
|
30895 | "use strict";
|
30896 | __webpack_require__.r(__webpack_exports__);
|
30897 | var _util_console__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/console.ts");
|
30898 | var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "vue");
|
30899 | var vue__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
|
30900 |
|
30901 |
|
30902 |
|
30903 |
|
30904 |
|
30905 |
|
30906 |
|
30907 |
|
30908 |
|
30909 |
|
30910 |
|
30911 |
|
30912 |
|
30913 |
|
30914 |
|
30915 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_1___default.a.extend().extend({
|
30916 | name: 'bootable',
|
30917 | props: {
|
30918 | eager: Boolean
|
30919 | },
|
30920 | data: function data() {
|
30921 | return {
|
30922 | isBooted: false
|
30923 | };
|
30924 | },
|
30925 | computed: {
|
30926 | hasContent: function hasContent() {
|
30927 | return this.isBooted || this.eager || this.isActive;
|
30928 | }
|
30929 | },
|
30930 | watch: {
|
30931 | isActive: function isActive() {
|
30932 | this.isBooted = true;
|
30933 | }
|
30934 | },
|
30935 | created: function created() {
|
30936 |
|
30937 | if ('lazy' in this.$attrs) {
|
30938 | Object(_util_console__WEBPACK_IMPORTED_MODULE_0__["removed"])('lazy', this);
|
30939 | }
|
30940 | },
|
30941 | methods: {
|
30942 | showLazyContent: function showLazyContent(content) {
|
30943 | return this.hasContent ? content : undefined;
|
30944 | }
|
30945 | }
|
30946 | }));
|
30947 |
|
30948 | }),
|
30949 |
|
30950 | "./src/mixins/button-group/index.ts":
|
30951 |
|
30952 |
|
30953 |
|
30954 |
|
30955 | (function(module, __webpack_exports__, __webpack_require__) {
|
30956 |
|
30957 | "use strict";
|
30958 | __webpack_require__.r(__webpack_exports__);
|
30959 | var _components_VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VItemGroup/VItemGroup.ts");
|
30960 |
|
30961 |
|
30962 |
|
30963 |
|
30964 | __webpack_exports__["default"] = (_components_VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_0__["BaseItemGroup"].extend({
|
30965 | name: 'button-group',
|
30966 | provide: function provide() {
|
30967 | return {
|
30968 | btnToggle: this
|
30969 | };
|
30970 | },
|
30971 | computed: {
|
30972 | classes: function classes() {
|
30973 | return _components_VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_0__["BaseItemGroup"].options.computed.classes.call(this);
|
30974 | }
|
30975 | },
|
30976 | methods: {
|
30977 |
|
30978 | genData: _components_VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_0__["BaseItemGroup"].options.methods.genData
|
30979 | }
|
30980 | }));
|
30981 |
|
30982 | }),
|
30983 |
|
30984 | "./src/mixins/colorable/index.ts":
|
30985 |
|
30986 |
|
30987 |
|
30988 |
|
30989 | (function(module, __webpack_exports__, __webpack_require__) {
|
30990 |
|
30991 | "use strict";
|
30992 | __webpack_require__.r(__webpack_exports__);
|
30993 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
30994 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
30995 | var _util_console__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/console.ts");
|
30996 | var __assign = undefined && undefined.__assign || function () {
|
30997 | __assign = Object.assign || function (t) {
|
30998 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
30999 | s = arguments[i];
|
31000 |
|
31001 | for (var p in s) {
|
31002 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
31003 | }
|
31004 | }
|
31005 |
|
31006 | return t;
|
31007 | };
|
31008 |
|
31009 | return __assign.apply(this, arguments);
|
31010 | };
|
31011 |
|
31012 | var __read = undefined && undefined.__read || function (o, n) {
|
31013 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
31014 | if (!m) return o;
|
31015 | var i = m.call(o),
|
31016 | r,
|
31017 | ar = [],
|
31018 | e;
|
31019 |
|
31020 | try {
|
31021 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
31022 | ar.push(r.value);
|
31023 | }
|
31024 | } catch (error) {
|
31025 | e = {
|
31026 | error: error
|
31027 | };
|
31028 | } finally {
|
31029 | try {
|
31030 | if (r && !r.done && (m = i["return"])) m.call(i);
|
31031 | } finally {
|
31032 | if (e) throw e.error;
|
31033 | }
|
31034 | }
|
31035 |
|
31036 | return ar;
|
31037 | };
|
31038 |
|
31039 |
|
31040 |
|
31041 |
|
31042 | function isCssColor(color) {
|
31043 | return !!color && !!color.match(/^(#|(rgb|hsl)a?\()/);
|
31044 | }
|
31045 |
|
31046 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
31047 | name: 'colorable',
|
31048 | props: {
|
31049 | color: String
|
31050 | },
|
31051 | methods: {
|
31052 | setBackgroundColor: function setBackgroundColor(color, data) {
|
31053 | var _a;
|
31054 |
|
31055 | if (data === void 0) {
|
31056 | data = {};
|
31057 | }
|
31058 |
|
31059 | if (typeof data.style === 'string') {
|
31060 |
|
31061 | Object(_util_console__WEBPACK_IMPORTED_MODULE_1__["consoleError"])('style must be an object', this);
|
31062 |
|
31063 | return data;
|
31064 | }
|
31065 |
|
31066 | if (typeof data.class === 'string') {
|
31067 |
|
31068 | Object(_util_console__WEBPACK_IMPORTED_MODULE_1__["consoleError"])('class must be an object', this);
|
31069 |
|
31070 | return data;
|
31071 | }
|
31072 |
|
31073 | if (isCssColor(color)) {
|
31074 | data.style = __assign({}, data.style, {
|
31075 | 'background-color': "" + color,
|
31076 | 'border-color': "" + color
|
31077 | });
|
31078 | } else if (color) {
|
31079 | data.class = __assign({}, data.class, (_a = {}, _a[color] = true, _a));
|
31080 | }
|
31081 |
|
31082 | return data;
|
31083 | },
|
31084 | setTextColor: function setTextColor(color, data) {
|
31085 | var _a;
|
31086 |
|
31087 | if (data === void 0) {
|
31088 | data = {};
|
31089 | }
|
31090 |
|
31091 | if (typeof data.style === 'string') {
|
31092 |
|
31093 | Object(_util_console__WEBPACK_IMPORTED_MODULE_1__["consoleError"])('style must be an object', this);
|
31094 |
|
31095 | return data;
|
31096 | }
|
31097 |
|
31098 | if (typeof data.class === 'string') {
|
31099 |
|
31100 | Object(_util_console__WEBPACK_IMPORTED_MODULE_1__["consoleError"])('class must be an object', this);
|
31101 |
|
31102 | return data;
|
31103 | }
|
31104 |
|
31105 | if (isCssColor(color)) {
|
31106 | data.style = __assign({}, data.style, {
|
31107 | color: "" + color,
|
31108 | 'caret-color': "" + color
|
31109 | });
|
31110 | } else if (color) {
|
31111 | var _b = __read(color.toString().trim().split(' ', 2), 2),
|
31112 | colorName = _b[0],
|
31113 | colorModifier = _b[1];
|
31114 |
|
31115 | data.class = __assign({}, data.class, (_a = {}, _a[colorName + '--text'] = true, _a));
|
31116 |
|
31117 | if (colorModifier) {
|
31118 | data.class['text--' + colorModifier] = true;
|
31119 | }
|
31120 | }
|
31121 |
|
31122 | return data;
|
31123 | }
|
31124 | }
|
31125 | }));
|
31126 |
|
31127 | }),
|
31128 |
|
31129 | "./src/mixins/comparable/index.ts":
|
31130 |
|
31131 |
|
31132 |
|
31133 |
|
31134 | (function(module, __webpack_exports__, __webpack_require__) {
|
31135 |
|
31136 | "use strict";
|
31137 | __webpack_require__.r(__webpack_exports__);
|
31138 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
31139 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
31140 | var _util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/helpers.ts");
|
31141 |
|
31142 |
|
31143 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
31144 | name: 'comparable',
|
31145 | props: {
|
31146 | valueComparator: {
|
31147 | type: Function,
|
31148 | default: _util_helpers__WEBPACK_IMPORTED_MODULE_1__["deepEqual"]
|
31149 | }
|
31150 | }
|
31151 | }));
|
31152 |
|
31153 | }),
|
31154 |
|
31155 | "./src/mixins/delayable/index.ts":
|
31156 |
|
31157 |
|
31158 |
|
31159 |
|
31160 | (function(module, __webpack_exports__, __webpack_require__) {
|
31161 |
|
31162 | "use strict";
|
31163 | __webpack_require__.r(__webpack_exports__);
|
31164 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
31165 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
31166 |
|
31167 |
|
31168 |
|
31169 |
|
31170 |
|
31171 |
|
31172 |
|
31173 |
|
31174 |
|
31175 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend().extend({
|
31176 | name: 'delayable',
|
31177 | props: {
|
31178 | openDelay: {
|
31179 | type: [Number, String],
|
31180 | default: 0
|
31181 | },
|
31182 | closeDelay: {
|
31183 | type: [Number, String],
|
31184 | default: 0
|
31185 | }
|
31186 | },
|
31187 | data: function data() {
|
31188 | return {
|
31189 | openTimeout: undefined,
|
31190 | closeTimeout: undefined
|
31191 | };
|
31192 | },
|
31193 | methods: {
|
31194 | |
31195 |
|
31196 |
|
31197 | clearDelay: function clearDelay() {
|
31198 | clearTimeout(this.openTimeout);
|
31199 | clearTimeout(this.closeTimeout);
|
31200 | },
|
31201 |
|
31202 | |
31203 |
|
31204 |
|
31205 | runDelay: function runDelay(type, cb) {
|
31206 | var _this = this;
|
31207 |
|
31208 | this.clearDelay();
|
31209 | var delay = parseInt(this[type + "Delay"], 10);
|
31210 | this[type + "Timeout"] = setTimeout(cb || function () {
|
31211 | _this.isActive = {
|
31212 | open: true,
|
31213 | close: false
|
31214 | }[type];
|
31215 | }, delay);
|
31216 | }
|
31217 | }
|
31218 | }));
|
31219 |
|
31220 | }),
|
31221 |
|
31222 | "./src/mixins/dependent/index.ts":
|
31223 |
|
31224 |
|
31225 |
|
31226 |
|
31227 | (function(module, __webpack_exports__, __webpack_require__) {
|
31228 |
|
31229 | "use strict";
|
31230 | __webpack_require__.r(__webpack_exports__);
|
31231 | var _util_mixins__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/mixins.ts");
|
31232 | var __read = undefined && undefined.__read || function (o, n) {
|
31233 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
31234 | if (!m) return o;
|
31235 | var i = m.call(o),
|
31236 | r,
|
31237 | ar = [],
|
31238 | e;
|
31239 |
|
31240 | try {
|
31241 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
31242 | ar.push(r.value);
|
31243 | }
|
31244 | } catch (error) {
|
31245 | e = {
|
31246 | error: error
|
31247 | };
|
31248 | } finally {
|
31249 | try {
|
31250 | if (r && !r.done && (m = i["return"])) m.call(i);
|
31251 | } finally {
|
31252 | if (e) throw e.error;
|
31253 | }
|
31254 | }
|
31255 |
|
31256 | return ar;
|
31257 | };
|
31258 |
|
31259 | var __spread = undefined && undefined.__spread || function () {
|
31260 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
31261 | ar = ar.concat(__read(arguments[i]));
|
31262 | }
|
31263 |
|
31264 | return ar;
|
31265 | };
|
31266 |
|
31267 |
|
31268 |
|
31269 | function searchChildren(children) {
|
31270 | var results = [];
|
31271 |
|
31272 | for (var index = 0; index < children.length; index++) {
|
31273 | var child = children[index];
|
31274 |
|
31275 | if (child.isActive && child.isDependent) {
|
31276 | results.push(child);
|
31277 | } else {
|
31278 | results.push.apply(results, __spread(searchChildren(child.$children)));
|
31279 | }
|
31280 | }
|
31281 |
|
31282 | return results;
|
31283 | }
|
31284 |
|
31285 |
|
31286 |
|
31287 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_0__["default"])().extend({
|
31288 | name: 'dependent',
|
31289 | data: function data() {
|
31290 | return {
|
31291 | closeDependents: true,
|
31292 | isActive: false,
|
31293 | isDependent: true
|
31294 | };
|
31295 | },
|
31296 | watch: {
|
31297 | isActive: function isActive(val) {
|
31298 | if (val) return;
|
31299 | var openDependents = this.getOpenDependents();
|
31300 |
|
31301 | for (var index = 0; index < openDependents.length; index++) {
|
31302 | openDependents[index].isActive = false;
|
31303 | }
|
31304 | }
|
31305 | },
|
31306 | methods: {
|
31307 | getOpenDependents: function getOpenDependents() {
|
31308 | if (this.closeDependents) return searchChildren(this.$children);
|
31309 | return [];
|
31310 | },
|
31311 | getOpenDependentElements: function getOpenDependentElements() {
|
31312 | var result = [];
|
31313 | var openDependents = this.getOpenDependents();
|
31314 |
|
31315 | for (var index = 0; index < openDependents.length; index++) {
|
31316 | result.push.apply(result, __spread(openDependents[index].getClickableDependentElements()));
|
31317 | }
|
31318 |
|
31319 | return result;
|
31320 | },
|
31321 | getClickableDependentElements: function getClickableDependentElements() {
|
31322 | var result = [this.$el];
|
31323 | if (this.$refs.content) result.push(this.$refs.content);
|
31324 | if (this.overlay) result.push(this.overlay.$el);
|
31325 | result.push.apply(result, __spread(this.getOpenDependentElements()));
|
31326 | return result;
|
31327 | }
|
31328 | }
|
31329 | }));
|
31330 |
|
31331 | }),
|
31332 |
|
31333 | "./src/mixins/detachable/index.ts":
|
31334 |
|
31335 |
|
31336 |
|
31337 |
|
31338 | (function(module, __webpack_exports__, __webpack_require__) {
|
31339 |
|
31340 | "use strict";
|
31341 | __webpack_require__.r(__webpack_exports__);
|
31342 | var _bootable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/mixins/bootable/index.ts");
|
31343 | var _util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/helpers.ts");
|
31344 | var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/mixins.ts");
|
31345 | var _util_console__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/console.ts");
|
31346 | 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); }
|
31347 |
|
31348 |
|
31349 |
|
31350 |
|
31351 |
|
31352 |
|
31353 |
|
31354 |
|
31355 | function validateAttachTarget(val) {
|
31356 | var type = _typeof(val);
|
31357 |
|
31358 | if (type === 'boolean' || type === 'string') return true;
|
31359 | return val.nodeType === Node.ELEMENT_NODE;
|
31360 | }
|
31361 |
|
31362 |
|
31363 |
|
31364 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_bootable__WEBPACK_IMPORTED_MODULE_0__["default"]).extend({
|
31365 | name: 'detachable',
|
31366 | props: {
|
31367 | attach: {
|
31368 | default: false,
|
31369 | validator: validateAttachTarget
|
31370 | },
|
31371 | contentClass: {
|
31372 | type: String,
|
31373 | default: ''
|
31374 | }
|
31375 | },
|
31376 | data: function data() {
|
31377 | return {
|
31378 | activatorNode: null,
|
31379 | hasDetached: false
|
31380 | };
|
31381 | },
|
31382 | watch: {
|
31383 | attach: function attach() {
|
31384 | this.hasDetached = false;
|
31385 | this.initDetach();
|
31386 | },
|
31387 | hasContent: 'initDetach'
|
31388 | },
|
31389 | beforeMount: function beforeMount() {
|
31390 | var _this = this;
|
31391 |
|
31392 | this.$nextTick(function () {
|
31393 | if (_this.activatorNode) {
|
31394 | var activator = Array.isArray(_this.activatorNode) ? _this.activatorNode : [_this.activatorNode];
|
31395 | activator.forEach(function (node) {
|
31396 | if (!node.elm) return;
|
31397 | if (!_this.$el.parentNode) return;
|
31398 | var target = _this.$el === _this.$el.parentNode.firstChild ? _this.$el : _this.$el.nextSibling;
|
31399 |
|
31400 | _this.$el.parentNode.insertBefore(node.elm, target);
|
31401 | });
|
31402 | }
|
31403 | });
|
31404 | },
|
31405 | mounted: function mounted() {
|
31406 | this.hasContent && this.initDetach();
|
31407 | },
|
31408 | deactivated: function deactivated() {
|
31409 | this.isActive = false;
|
31410 | },
|
31411 | beforeDestroy: function beforeDestroy() {
|
31412 |
|
31413 | try {
|
31414 | if (this.$refs.content && this.$refs.content.parentNode) {
|
31415 | this.$refs.content.parentNode.removeChild(this.$refs.content);
|
31416 | }
|
31417 |
|
31418 | if (this.activatorNode) {
|
31419 | var activator = Array.isArray(this.activatorNode) ? this.activatorNode : [this.activatorNode];
|
31420 | activator.forEach(function (node) {
|
31421 | node.elm && node.elm.parentNode && node.elm.parentNode.removeChild(node.elm);
|
31422 | });
|
31423 | }
|
31424 | } catch (e) {
|
31425 | console.log(e);
|
31426 | }
|
31427 | },
|
31428 | methods: {
|
31429 | getScopeIdAttrs: function getScopeIdAttrs() {
|
31430 | var _a;
|
31431 |
|
31432 | var scopeId = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["getObjectValueByPath"])(this.$vnode, 'context.$options._scopeId');
|
31433 | return scopeId && (_a = {}, _a[scopeId] = '', _a);
|
31434 | },
|
31435 | initDetach: function initDetach() {
|
31436 | if (this._isDestroyed || !this.$refs.content || this.hasDetached ||
|
31437 |
|
31438 | this.attach === '' ||
|
31439 | this.attach === true ||
|
31440 | this.attach === 'attach'
|
31441 | ) return;
|
31442 | var target;
|
31443 |
|
31444 | if (this.attach === false) {
|
31445 |
|
31446 | target = document.querySelector('[data-app]');
|
31447 | } else if (typeof this.attach === 'string') {
|
31448 |
|
31449 | target = document.querySelector(this.attach);
|
31450 | } else {
|
31451 |
|
31452 | target = this.attach;
|
31453 | }
|
31454 |
|
31455 | if (!target) {
|
31456 | Object(_util_console__WEBPACK_IMPORTED_MODULE_3__["consoleWarn"])("Unable to locate target " + (this.attach || '[data-app]'), this);
|
31457 | return;
|
31458 | }
|
31459 |
|
31460 | target.insertBefore(this.$refs.content, target.firstChild);
|
31461 | this.hasDetached = true;
|
31462 | }
|
31463 | }
|
31464 | }));
|
31465 |
|
31466 | }),
|
31467 |
|
31468 | "./src/mixins/elevatable/index.ts":
|
31469 |
|
31470 |
|
31471 |
|
31472 |
|
31473 | (function(module, __webpack_exports__, __webpack_require__) {
|
31474 |
|
31475 | "use strict";
|
31476 | __webpack_require__.r(__webpack_exports__);
|
31477 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
31478 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
31479 |
|
31480 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
31481 | name: 'elevatable',
|
31482 | props: {
|
31483 | elevation: [Number, String]
|
31484 | },
|
31485 | computed: {
|
31486 | computedElevation: function computedElevation() {
|
31487 | return this.elevation;
|
31488 | },
|
31489 | elevationClasses: function elevationClasses() {
|
31490 | var _a;
|
31491 |
|
31492 | var elevation = this.computedElevation;
|
31493 | if (elevation == null) return {};
|
31494 | if (isNaN(parseInt(elevation))) return {};
|
31495 | return _a = {}, _a["elevation-" + this.elevation] = true, _a;
|
31496 | }
|
31497 | }
|
31498 | }));
|
31499 |
|
31500 | }),
|
31501 |
|
31502 | "./src/mixins/filterable/index.ts":
|
31503 |
|
31504 |
|
31505 |
|
31506 |
|
31507 | (function(module, __webpack_exports__, __webpack_require__) {
|
31508 |
|
31509 | "use strict";
|
31510 | __webpack_require__.r(__webpack_exports__);
|
31511 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
31512 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
31513 |
|
31514 |
|
31515 |
|
31516 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
31517 | name: 'filterable',
|
31518 | props: {
|
31519 | noDataText: {
|
31520 | type: String,
|
31521 | default: '$vuetify.noDataText'
|
31522 | }
|
31523 | }
|
31524 | }));
|
31525 |
|
31526 | }),
|
31527 |
|
31528 | "./src/mixins/groupable/index.ts":
|
31529 |
|
31530 |
|
31531 |
|
31532 |
|
31533 | (function(module, __webpack_exports__, __webpack_require__) {
|
31534 |
|
31535 | "use strict";
|
31536 | __webpack_require__.r(__webpack_exports__);
|
31537 | __webpack_require__.d(__webpack_exports__, "factory", function() { return factory; });
|
31538 | var _registrable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/mixins/registrable/index.ts");
|
31539 |
|
31540 |
|
31541 | function factory(namespace, child, parent) {
|
31542 |
|
31543 | var R = Object(_registrable__WEBPACK_IMPORTED_MODULE_0__["inject"])(namespace, child, parent).extend({
|
31544 | name: 'groupable',
|
31545 | props: {
|
31546 | activeClass: {
|
31547 | type: String,
|
31548 | default: function _default() {
|
31549 | if (!this[namespace]) return undefined;
|
31550 | return this[namespace].activeClass;
|
31551 | }
|
31552 | },
|
31553 | disabled: Boolean
|
31554 | },
|
31555 | data: function data() {
|
31556 | return {
|
31557 | isActive: false
|
31558 | };
|
31559 | },
|
31560 | computed: {
|
31561 | groupClasses: function groupClasses() {
|
31562 | var _a;
|
31563 |
|
31564 | if (!this.activeClass) return {};
|
31565 | return _a = {}, _a[this.activeClass] = this.isActive, _a;
|
31566 | }
|
31567 | },
|
31568 | created: function created() {
|
31569 | this[namespace] && this[namespace].register(this);
|
31570 | },
|
31571 | beforeDestroy: function beforeDestroy() {
|
31572 | this[namespace] && this[namespace].unregister(this);
|
31573 | },
|
31574 | methods: {
|
31575 | toggle: function toggle() {
|
31576 | this.$emit('change');
|
31577 | }
|
31578 | }
|
31579 | });
|
31580 | return R;
|
31581 | }
|
31582 |
|
31583 |
|
31584 | var Groupable = factory('itemGroup');
|
31585 | __webpack_exports__["default"] = (Groupable);
|
31586 |
|
31587 | }),
|
31588 |
|
31589 | "./src/mixins/loadable/index.ts":
|
31590 |
|
31591 |
|
31592 |
|
31593 |
|
31594 | (function(module, __webpack_exports__, __webpack_require__) {
|
31595 |
|
31596 | "use strict";
|
31597 | __webpack_require__.r(__webpack_exports__);
|
31598 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
31599 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
31600 | var _components_VProgressLinear__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/components/VProgressLinear/index.ts");
|
31601 |
|
31602 |
|
31603 |
|
31604 |
|
31605 |
|
31606 |
|
31607 |
|
31608 |
|
31609 |
|
31610 |
|
31611 |
|
31612 |
|
31613 |
|
31614 |
|
31615 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend().extend({
|
31616 | name: 'loadable',
|
31617 | props: {
|
31618 | loading: {
|
31619 | type: [Boolean, String],
|
31620 | default: false
|
31621 | },
|
31622 | loaderHeight: {
|
31623 | type: [Number, String],
|
31624 | default: 2
|
31625 | }
|
31626 | },
|
31627 | methods: {
|
31628 | genProgress: function genProgress() {
|
31629 | if (this.loading === false) return null;
|
31630 | return this.$slots.progress || this.$createElement(_components_VProgressLinear__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
31631 | props: {
|
31632 | absolute: true,
|
31633 | color: this.loading === true || this.loading === '' ? this.color || 'primary' : this.loading,
|
31634 | height: this.loaderHeight,
|
31635 | indeterminate: true
|
31636 | }
|
31637 | });
|
31638 | }
|
31639 | }
|
31640 | }));
|
31641 |
|
31642 | }),
|
31643 |
|
31644 | "./src/mixins/localable/index.ts":
|
31645 |
|
31646 |
|
31647 |
|
31648 |
|
31649 | (function(module, __webpack_exports__, __webpack_require__) {
|
31650 |
|
31651 | "use strict";
|
31652 | __webpack_require__.r(__webpack_exports__);
|
31653 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
31654 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
31655 |
|
31656 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
31657 | name: 'localable',
|
31658 | props: {
|
31659 | locale: String
|
31660 | },
|
31661 | computed: {
|
31662 | currentLocale: function currentLocale() {
|
31663 | return this.locale || this.$vuetify.lang.current;
|
31664 | }
|
31665 | }
|
31666 | }));
|
31667 |
|
31668 | }),
|
31669 |
|
31670 | "./src/mixins/measurable/index.ts":
|
31671 |
|
31672 |
|
31673 |
|
31674 |
|
31675 | (function(module, __webpack_exports__, __webpack_require__) {
|
31676 |
|
31677 | "use strict";
|
31678 | __webpack_require__.r(__webpack_exports__);
|
31679 | var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/helpers.ts");
|
31680 | var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "vue");
|
31681 | var vue__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
|
31682 |
|
31683 |
|
31684 |
|
31685 |
|
31686 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_1___default.a.extend({
|
31687 | name: 'measurable',
|
31688 | props: {
|
31689 | height: [Number, String],
|
31690 | maxHeight: [Number, String],
|
31691 | maxWidth: [Number, String],
|
31692 | minHeight: [Number, String],
|
31693 | minWidth: [Number, String],
|
31694 | width: [Number, String]
|
31695 | },
|
31696 | computed: {
|
31697 | measurableStyles: function measurableStyles() {
|
31698 | var styles = {};
|
31699 | var height = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["convertToUnit"])(this.height);
|
31700 | var minHeight = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["convertToUnit"])(this.minHeight);
|
31701 | var minWidth = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["convertToUnit"])(this.minWidth);
|
31702 | var maxHeight = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["convertToUnit"])(this.maxHeight);
|
31703 | var maxWidth = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["convertToUnit"])(this.maxWidth);
|
31704 | var width = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["convertToUnit"])(this.width);
|
31705 | if (height) styles.height = height;
|
31706 | if (minHeight) styles.minHeight = minHeight;
|
31707 | if (minWidth) styles.minWidth = minWidth;
|
31708 | if (maxHeight) styles.maxHeight = maxHeight;
|
31709 | if (maxWidth) styles.maxWidth = maxWidth;
|
31710 | if (width) styles.width = width;
|
31711 | return styles;
|
31712 | }
|
31713 | }
|
31714 | }));
|
31715 |
|
31716 | }),
|
31717 |
|
31718 | "./src/mixins/menuable/index.ts":
|
31719 |
|
31720 |
|
31721 |
|
31722 |
|
31723 | (function(module, __webpack_exports__, __webpack_require__) {
|
31724 |
|
31725 | "use strict";
|
31726 | __webpack_require__.r(__webpack_exports__);
|
31727 | var _positionable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/mixins/positionable/index.ts");
|
31728 | var _stackable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/stackable/index.ts");
|
31729 | var _activatable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/activatable/index.ts");
|
31730 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
31731 | var _util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/helpers.ts");
|
31732 |
|
31733 |
|
31734 |
|
31735 |
|
31736 |
|
31737 |
|
31738 |
|
31739 |
|
31740 | var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_stackable__WEBPACK_IMPORTED_MODULE_1__["default"], _positionable__WEBPACK_IMPORTED_MODULE_0__["default"], _activatable__WEBPACK_IMPORTED_MODULE_2__["default"]);
|
31741 |
|
31742 |
|
31743 | __webpack_exports__["default"] = (baseMixins.extend().extend({
|
31744 | name: 'menuable',
|
31745 | props: {
|
31746 | allowOverflow: Boolean,
|
31747 | light: Boolean,
|
31748 | dark: Boolean,
|
31749 | maxWidth: {
|
31750 | type: [Number, String],
|
31751 | default: 'auto'
|
31752 | },
|
31753 | minWidth: [Number, String],
|
31754 | nudgeBottom: {
|
31755 | type: [Number, String],
|
31756 | default: 0
|
31757 | },
|
31758 | nudgeLeft: {
|
31759 | type: [Number, String],
|
31760 | default: 0
|
31761 | },
|
31762 | nudgeRight: {
|
31763 | type: [Number, String],
|
31764 | default: 0
|
31765 | },
|
31766 | nudgeTop: {
|
31767 | type: [Number, String],
|
31768 | default: 0
|
31769 | },
|
31770 | nudgeWidth: {
|
31771 | type: [Number, String],
|
31772 | default: 0
|
31773 | },
|
31774 | offsetOverflow: Boolean,
|
31775 | openOnClick: Boolean,
|
31776 | positionX: {
|
31777 | type: Number,
|
31778 | default: null
|
31779 | },
|
31780 | positionY: {
|
31781 | type: Number,
|
31782 | default: null
|
31783 | },
|
31784 | zIndex: {
|
31785 | type: [Number, String],
|
31786 | default: null
|
31787 | }
|
31788 | },
|
31789 | data: function data() {
|
31790 | return {
|
31791 | absoluteX: 0,
|
31792 | absoluteY: 0,
|
31793 | activatedBy: null,
|
31794 | activatorFixed: false,
|
31795 | dimensions: {
|
31796 | activator: {
|
31797 | top: 0,
|
31798 | left: 0,
|
31799 | bottom: 0,
|
31800 | right: 0,
|
31801 | width: 0,
|
31802 | height: 0,
|
31803 | offsetTop: 0,
|
31804 | scrollHeight: 0,
|
31805 | offsetLeft: 0
|
31806 | },
|
31807 | content: {
|
31808 | top: 0,
|
31809 | left: 0,
|
31810 | bottom: 0,
|
31811 | right: 0,
|
31812 | width: 0,
|
31813 | height: 0,
|
31814 | offsetTop: 0,
|
31815 | scrollHeight: 0
|
31816 | }
|
31817 | },
|
31818 | hasJustFocused: false,
|
31819 | hasWindow: false,
|
31820 | inputActivator: false,
|
31821 | isContentActive: false,
|
31822 | pageWidth: 0,
|
31823 | pageYOffset: 0,
|
31824 | stackClass: 'v-menu__content--active',
|
31825 | stackMinZIndex: 6
|
31826 | };
|
31827 | },
|
31828 | computed: {
|
31829 | computedLeft: function computedLeft() {
|
31830 | var a = this.dimensions.activator;
|
31831 | var c = this.dimensions.content;
|
31832 | var activatorLeft = (this.attach !== false ? a.offsetLeft : a.left) || 0;
|
31833 | var minWidth = Math.max(a.width, c.width);
|
31834 | var left = 0;
|
31835 | left += this.left ? activatorLeft - (minWidth - a.width) : activatorLeft;
|
31836 |
|
31837 | if (this.offsetX) {
|
31838 | var maxWidth = isNaN(Number(this.maxWidth)) ? a.width : Math.min(a.width, Number(this.maxWidth));
|
31839 | left += this.left ? -maxWidth : a.width;
|
31840 | }
|
31841 |
|
31842 | if (this.nudgeLeft) left -= parseInt(this.nudgeLeft);
|
31843 | if (this.nudgeRight) left += parseInt(this.nudgeRight);
|
31844 | return left;
|
31845 | },
|
31846 | computedTop: function computedTop() {
|
31847 | var a = this.dimensions.activator;
|
31848 | var c = this.dimensions.content;
|
31849 | var top = 0;
|
31850 | if (this.top) top += a.height - c.height;
|
31851 | if (this.attach !== false) top += a.offsetTop;else top += a.top + this.pageYOffset;
|
31852 | if (this.offsetY) top += this.top ? -a.height : a.height;
|
31853 | if (this.nudgeTop) top -= parseInt(this.nudgeTop);
|
31854 | if (this.nudgeBottom) top += parseInt(this.nudgeBottom);
|
31855 | return top;
|
31856 | },
|
31857 | hasActivator: function hasActivator() {
|
31858 | return !!this.$slots.activator || !!this.$scopedSlots.activator || !!this.activator || !!this.inputActivator;
|
31859 | }
|
31860 | },
|
31861 | watch: {
|
31862 | disabled: function disabled(val) {
|
31863 | val && this.callDeactivate();
|
31864 | },
|
31865 | isActive: function isActive(val) {
|
31866 | if (this.disabled) return;
|
31867 | val ? this.callActivate() : this.callDeactivate();
|
31868 | },
|
31869 | positionX: 'updateDimensions',
|
31870 | positionY: 'updateDimensions'
|
31871 | },
|
31872 | beforeMount: function beforeMount() {
|
31873 | this.hasWindow = typeof window !== 'undefined';
|
31874 | },
|
31875 | methods: {
|
31876 | absolutePosition: function absolutePosition() {
|
31877 | return {
|
31878 | offsetTop: 0,
|
31879 | offsetLeft: 0,
|
31880 | scrollHeight: 0,
|
31881 | top: this.positionY || this.absoluteY,
|
31882 | bottom: this.positionY || this.absoluteY,
|
31883 | left: this.positionX || this.absoluteX,
|
31884 | right: this.positionX || this.absoluteX,
|
31885 | height: 0,
|
31886 | width: 0
|
31887 | };
|
31888 | },
|
31889 | activate: function activate() {},
|
31890 | calcLeft: function calcLeft(menuWidth) {
|
31891 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["convertToUnit"])(this.attach !== false ? this.computedLeft : this.calcXOverflow(this.computedLeft, menuWidth));
|
31892 | },
|
31893 | calcTop: function calcTop() {
|
31894 | return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["convertToUnit"])(this.attach !== false ? this.computedTop : this.calcYOverflow(this.computedTop));
|
31895 | },
|
31896 | calcXOverflow: function calcXOverflow(left, menuWidth) {
|
31897 | var xOverflow = left + menuWidth - this.pageWidth + 12;
|
31898 |
|
31899 | if ((!this.left || this.right) && xOverflow > 0) {
|
31900 | left = Math.max(left - xOverflow, 0);
|
31901 | } else {
|
31902 | left = Math.max(left, 12);
|
31903 | }
|
31904 |
|
31905 | return left + this.getOffsetLeft();
|
31906 | },
|
31907 | calcYOverflow: function calcYOverflow(top) {
|
31908 | var documentHeight = this.getInnerHeight();
|
31909 | var toTop = this.pageYOffset + documentHeight;
|
31910 | var activator = this.dimensions.activator;
|
31911 | var contentHeight = this.dimensions.content.height;
|
31912 | var totalHeight = top + contentHeight;
|
31913 | var isOverflowing = toTop < totalHeight;
|
31914 |
|
31915 |
|
31916 | if (isOverflowing && this.offsetOverflow &&
|
31917 |
|
31918 | activator.top > contentHeight) {
|
31919 | top = this.pageYOffset + (activator.top - contentHeight);
|
31920 | } else if (isOverflowing && !this.allowOverflow) {
|
31921 | top = toTop - contentHeight - 12;
|
31922 | } else if (top < this.pageYOffset && !this.allowOverflow) {
|
31923 | top = this.pageYOffset + 12;
|
31924 | }
|
31925 |
|
31926 | return top < 12 ? 12 : top;
|
31927 | },
|
31928 | callActivate: function callActivate() {
|
31929 | if (!this.hasWindow) return;
|
31930 | this.activate();
|
31931 | },
|
31932 | callDeactivate: function callDeactivate() {
|
31933 | this.isContentActive = false;
|
31934 | this.deactivate();
|
31935 | },
|
31936 | checkForPageYOffset: function checkForPageYOffset() {
|
31937 | if (this.hasWindow) {
|
31938 | this.pageYOffset = this.activatorFixed ? 0 : this.getOffsetTop();
|
31939 | }
|
31940 | },
|
31941 | checkActivatorFixed: function checkActivatorFixed() {
|
31942 | if (this.attach !== false) return;
|
31943 | var el = this.getActivator();
|
31944 |
|
31945 | while (el) {
|
31946 | if (window.getComputedStyle(el).position === 'fixed') {
|
31947 | this.activatorFixed = true;
|
31948 | return;
|
31949 | }
|
31950 |
|
31951 | el = el.offsetParent;
|
31952 | }
|
31953 |
|
31954 | this.activatorFixed = false;
|
31955 | },
|
31956 | deactivate: function deactivate() {},
|
31957 | genActivatorListeners: function genActivatorListeners() {
|
31958 | var _this = this;
|
31959 |
|
31960 | var listeners = _activatable__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.genActivatorListeners.call(this);
|
31961 | var onClick = listeners.click;
|
31962 |
|
31963 | listeners.click = function (e) {
|
31964 | if (_this.openOnClick) {
|
31965 | onClick && onClick(e);
|
31966 | }
|
31967 |
|
31968 | _this.absoluteX = e.clientX;
|
31969 | _this.absoluteY = e.clientY;
|
31970 | };
|
31971 |
|
31972 | return listeners;
|
31973 | },
|
31974 | getInnerHeight: function getInnerHeight() {
|
31975 | if (!this.hasWindow) return 0;
|
31976 | return window.innerHeight || document.documentElement.clientHeight;
|
31977 | },
|
31978 | getOffsetLeft: function getOffsetLeft() {
|
31979 | if (!this.hasWindow) return 0;
|
31980 | return window.pageXOffset || document.documentElement.scrollLeft;
|
31981 | },
|
31982 | getOffsetTop: function getOffsetTop() {
|
31983 | if (!this.hasWindow) return 0;
|
31984 | return window.pageYOffset || document.documentElement.scrollTop;
|
31985 | },
|
31986 | getRoundedBoundedClientRect: function getRoundedBoundedClientRect(el) {
|
31987 | var rect = el.getBoundingClientRect();
|
31988 | return {
|
31989 | top: Math.round(rect.top),
|
31990 | left: Math.round(rect.left),
|
31991 | bottom: Math.round(rect.bottom),
|
31992 | right: Math.round(rect.right),
|
31993 | width: Math.round(rect.width),
|
31994 | height: Math.round(rect.height)
|
31995 | };
|
31996 | },
|
31997 | measure: function measure(el) {
|
31998 | if (!el || !this.hasWindow) return null;
|
31999 | var rect = this.getRoundedBoundedClientRect(el);
|
32000 |
|
32001 | if (this.attach !== false) {
|
32002 | var style = window.getComputedStyle(el);
|
32003 | rect.left = parseInt(style.marginLeft);
|
32004 | rect.top = parseInt(style.marginTop);
|
32005 | }
|
32006 |
|
32007 | return rect;
|
32008 | },
|
32009 | sneakPeek: function sneakPeek(cb) {
|
32010 | var _this = this;
|
32011 |
|
32012 | requestAnimationFrame(function () {
|
32013 | var el = _this.$refs.content;
|
32014 |
|
32015 | if (!el || el.style.display !== 'none') {
|
32016 | cb();
|
32017 | return;
|
32018 | }
|
32019 |
|
32020 | el.style.display = 'inline-block';
|
32021 | cb();
|
32022 | el.style.display = 'none';
|
32023 | });
|
32024 | },
|
32025 | startTransition: function startTransition() {
|
32026 | var _this = this;
|
32027 |
|
32028 | return new Promise(function (resolve) {
|
32029 | return requestAnimationFrame(function () {
|
32030 | _this.isContentActive = _this.hasJustFocused = _this.isActive;
|
32031 | resolve();
|
32032 | });
|
32033 | });
|
32034 | },
|
32035 | updateDimensions: function updateDimensions() {
|
32036 | var _this = this;
|
32037 |
|
32038 | this.hasWindow = typeof window !== 'undefined';
|
32039 | this.checkActivatorFixed();
|
32040 | this.checkForPageYOffset();
|
32041 | this.pageWidth = document.documentElement.clientWidth;
|
32042 | var dimensions = {};
|
32043 |
|
32044 | if (!this.hasActivator || this.absolute) {
|
32045 | dimensions.activator = this.absolutePosition();
|
32046 | } else {
|
32047 | var activator = this.getActivator();
|
32048 | if (!activator) return;
|
32049 | dimensions.activator = this.measure(activator);
|
32050 | dimensions.activator.offsetLeft = activator.offsetLeft;
|
32051 |
|
32052 | if (this.attach !== false) {
|
32053 |
|
32054 |
|
32055 | dimensions.activator.offsetTop = activator.offsetTop;
|
32056 | } else {
|
32057 | dimensions.activator.offsetTop = 0;
|
32058 | }
|
32059 | }
|
32060 |
|
32061 |
|
32062 | this.sneakPeek(function () {
|
32063 | dimensions.content = _this.measure(_this.$refs.content);
|
32064 | _this.dimensions = dimensions;
|
32065 | });
|
32066 | }
|
32067 | }
|
32068 | }));
|
32069 |
|
32070 | }),
|
32071 |
|
32072 | "./src/mixins/overlayable/index.ts":
|
32073 |
|
32074 |
|
32075 |
|
32076 |
|
32077 | (function(module, __webpack_exports__, __webpack_require__) {
|
32078 |
|
32079 | "use strict";
|
32080 | __webpack_require__.r(__webpack_exports__);
|
32081 | var _components_VOverlay__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VOverlay/index.ts");
|
32082 | var _util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/helpers.ts");
|
32083 | var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "vue");
|
32084 | var vue__WEBPACK_IMPORTED_MODULE_2___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
|
32085 |
|
32086 |
|
32087 |
|
32088 |
|
32089 |
|
32090 |
|
32091 |
|
32092 |
|
32093 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_2___default.a.extend().extend({
|
32094 | name: 'overlayable',
|
32095 | props: {
|
32096 | hideOverlay: Boolean,
|
32097 | overlayColor: String,
|
32098 | overlayOpacity: [Number, String]
|
32099 | },
|
32100 | data: function data() {
|
32101 | return {
|
32102 | overlay: null
|
32103 | };
|
32104 | },
|
32105 | watch: {
|
32106 | hideOverlay: function hideOverlay(value) {
|
32107 | if (!this.isActive) return;
|
32108 | if (value) this.removeOverlay();else this.genOverlay();
|
32109 | }
|
32110 | },
|
32111 | beforeDestroy: function beforeDestroy() {
|
32112 | this.removeOverlay();
|
32113 | },
|
32114 | methods: {
|
32115 | createOverlay: function createOverlay() {
|
32116 | var overlay = new _components_VOverlay__WEBPACK_IMPORTED_MODULE_0__["default"]({
|
32117 | propsData: {
|
32118 | absolute: this.absolute,
|
32119 | value: false,
|
32120 | color: this.overlayColor,
|
32121 | opacity: this.overlayOpacity
|
32122 | }
|
32123 | });
|
32124 | overlay.$mount();
|
32125 | var parent = this.absolute ? this.$el.parentNode : document.querySelector('[data-app]');
|
32126 | parent && parent.insertBefore(overlay.$el, parent.firstChild);
|
32127 | this.overlay = overlay;
|
32128 | },
|
32129 | genOverlay: function genOverlay() {
|
32130 | var _this = this;
|
32131 |
|
32132 | this.hideScroll();
|
32133 | if (this.hideOverlay) return;
|
32134 | if (!this.overlay) this.createOverlay();
|
32135 | requestAnimationFrame(function () {
|
32136 | if (!_this.overlay) return;
|
32137 |
|
32138 | if (_this.activeZIndex !== undefined) {
|
32139 | _this.overlay.zIndex = String(_this.activeZIndex - 1);
|
32140 | } else if (_this.$el) {
|
32141 | _this.overlay.zIndex = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["getZIndex"])(_this.$el);
|
32142 | }
|
32143 |
|
32144 | _this.overlay.value = true;
|
32145 | });
|
32146 | return true;
|
32147 | },
|
32148 |
|
32149 |
|
32150 | removeOverlay: function removeOverlay(showScroll) {
|
32151 | var _this = this;
|
32152 |
|
32153 | if (showScroll === void 0) {
|
32154 | showScroll = true;
|
32155 | }
|
32156 |
|
32157 | if (this.overlay) {
|
32158 | Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["addOnceEventListener"])(this.overlay.$el, 'transitionend', function () {
|
32159 | if (!_this.overlay || !_this.overlay.$el || !_this.overlay.$el.parentNode || _this.overlay.value) return;
|
32160 |
|
32161 | _this.overlay.$el.parentNode.removeChild(_this.overlay.$el);
|
32162 |
|
32163 | _this.overlay.$destroy();
|
32164 |
|
32165 | _this.overlay = null;
|
32166 | });
|
32167 | this.overlay.value = false;
|
32168 | }
|
32169 |
|
32170 | showScroll && this.showScroll();
|
32171 | },
|
32172 | scrollListener: function scrollListener(e) {
|
32173 | if (e.type === 'keydown') {
|
32174 | if (['INPUT', 'TEXTAREA', 'SELECT'].includes(e.target.tagName) ||
|
32175 | e.target.isContentEditable) return;
|
32176 | var up = [_util_helpers__WEBPACK_IMPORTED_MODULE_1__["keyCodes"].up, _util_helpers__WEBPACK_IMPORTED_MODULE_1__["keyCodes"].pageup];
|
32177 | var down = [_util_helpers__WEBPACK_IMPORTED_MODULE_1__["keyCodes"].down, _util_helpers__WEBPACK_IMPORTED_MODULE_1__["keyCodes"].pagedown];
|
32178 |
|
32179 | if (up.includes(e.keyCode)) {
|
32180 | e.deltaY = -1;
|
32181 | } else if (down.includes(e.keyCode)) {
|
32182 | e.deltaY = 1;
|
32183 | } else {
|
32184 | return;
|
32185 | }
|
32186 | }
|
32187 |
|
32188 | if (e.target === this.overlay || e.type !== 'keydown' && e.target === document.body || this.checkPath(e)) e.preventDefault();
|
32189 | },
|
32190 | hasScrollbar: function hasScrollbar(el) {
|
32191 | if (!el || el.nodeType !== Node.ELEMENT_NODE) return false;
|
32192 | var style = window.getComputedStyle(el);
|
32193 | return ['auto', 'scroll'].includes(style.overflowY) && el.scrollHeight > el.clientHeight;
|
32194 | },
|
32195 | shouldScroll: function shouldScroll(el, delta) {
|
32196 | if (el.scrollTop === 0 && delta < 0) return true;
|
32197 | return el.scrollTop + el.clientHeight === el.scrollHeight && delta > 0;
|
32198 | },
|
32199 | isInside: function isInside(el, parent) {
|
32200 | if (el === parent) {
|
32201 | return true;
|
32202 | } else if (el === null || el === document.body) {
|
32203 | return false;
|
32204 | } else {
|
32205 | return this.isInside(el.parentNode, parent);
|
32206 | }
|
32207 | },
|
32208 | checkPath: function checkPath(e) {
|
32209 | var path = e.path || this.composedPath(e);
|
32210 | var delta = e.deltaY;
|
32211 |
|
32212 | if (e.type === 'keydown' && path[0] === document.body) {
|
32213 | var dialog = this.$refs.dialog;
|
32214 |
|
32215 | var selected = window.getSelection().anchorNode;
|
32216 |
|
32217 | if (dialog && this.hasScrollbar(dialog) && this.isInside(selected, dialog)) {
|
32218 | return this.shouldScroll(dialog, delta);
|
32219 | }
|
32220 |
|
32221 | return true;
|
32222 | }
|
32223 |
|
32224 | for (var index = 0; index < path.length; index++) {
|
32225 | var el = path[index];
|
32226 | if (el === document) return true;
|
32227 | if (el === document.documentElement) return true;
|
32228 | if (el === this.$refs.content) return true;
|
32229 | if (this.hasScrollbar(el)) return this.shouldScroll(el, delta);
|
32230 | }
|
32231 |
|
32232 | return true;
|
32233 | },
|
32234 |
|
32235 | |
32236 |
|
32237 |
|
32238 | composedPath: function composedPath(e) {
|
32239 | if (e.composedPath) return e.composedPath();
|
32240 | var path = [];
|
32241 | var el = e.target;
|
32242 |
|
32243 | while (el) {
|
32244 | path.push(el);
|
32245 |
|
32246 | if (el.tagName === 'HTML') {
|
32247 | path.push(document);
|
32248 | path.push(window);
|
32249 | return path;
|
32250 | }
|
32251 |
|
32252 | el = el.parentElement;
|
32253 | }
|
32254 |
|
32255 | return path;
|
32256 | },
|
32257 | hideScroll: function hideScroll() {
|
32258 | if (this.$vuetify.breakpoint.smAndDown) {
|
32259 | document.documentElement.classList.add('overflow-y-hidden');
|
32260 | } else {
|
32261 | Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["addPassiveEventListener"])(window, 'wheel', this.scrollListener, {
|
32262 | passive: false
|
32263 | });
|
32264 | window.addEventListener('keydown', this.scrollListener);
|
32265 | }
|
32266 | },
|
32267 | showScroll: function showScroll() {
|
32268 | document.documentElement.classList.remove('overflow-y-hidden');
|
32269 | window.removeEventListener('wheel', this.scrollListener);
|
32270 | window.removeEventListener('keydown', this.scrollListener);
|
32271 | }
|
32272 | }
|
32273 | }));
|
32274 |
|
32275 | }),
|
32276 |
|
32277 | "./src/mixins/picker-button/index.ts":
|
32278 |
|
32279 |
|
32280 |
|
32281 |
|
32282 | (function(module, __webpack_exports__, __webpack_require__) {
|
32283 |
|
32284 | "use strict";
|
32285 | __webpack_require__.r(__webpack_exports__);
|
32286 | var _colorable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
32287 | var _util_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/mixins.ts");
|
32288 | var _util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/helpers.ts");
|
32289 |
|
32290 |
|
32291 |
|
32292 |
|
32293 |
|
32294 |
|
32295 |
|
32296 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_1__["default"])(_colorable__WEBPACK_IMPORTED_MODULE_0__["default"]).extend({
|
32297 | methods: {
|
32298 | genPickerButton: function genPickerButton(prop, value, content, readonly, staticClass) {
|
32299 | var _this = this;
|
32300 |
|
32301 | if (readonly === void 0) {
|
32302 | readonly = false;
|
32303 | }
|
32304 |
|
32305 | if (staticClass === void 0) {
|
32306 | staticClass = '';
|
32307 | }
|
32308 |
|
32309 | var active = this[prop] === value;
|
32310 |
|
32311 | var click = function click(event) {
|
32312 | event.stopPropagation();
|
32313 |
|
32314 | _this.$emit("update:" + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["kebabCase"])(prop), value);
|
32315 | };
|
32316 |
|
32317 | return this.$createElement('div', {
|
32318 | staticClass: ("v-picker__title__btn " + staticClass).trim(),
|
32319 | class: {
|
32320 | 'v-picker__title__btn--active': active,
|
32321 | 'v-picker__title__btn--readonly': readonly
|
32322 | },
|
32323 | on: active || readonly ? undefined : {
|
32324 | click: click
|
32325 | }
|
32326 | }, Array.isArray(content) ? content : [content]);
|
32327 | }
|
32328 | }
|
32329 | }));
|
32330 |
|
32331 | }),
|
32332 |
|
32333 | "./src/mixins/picker/index.ts":
|
32334 |
|
32335 |
|
32336 |
|
32337 |
|
32338 | (function(module, __webpack_exports__, __webpack_require__) {
|
32339 |
|
32340 | "use strict";
|
32341 | __webpack_require__.r(__webpack_exports__);
|
32342 | var _components_VPicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VPicker/index.ts");
|
32343 | var _colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
32344 | var _themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
32345 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
32346 |
|
32347 |
|
32348 |
|
32349 |
|
32350 |
|
32351 |
|
32352 |
|
32353 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _themeable__WEBPACK_IMPORTED_MODULE_2__["default"]
|
32354 |
|
32355 | ).extend({
|
32356 | name: 'picker',
|
32357 | props: {
|
32358 | fullWidth: Boolean,
|
32359 | headerColor: String,
|
32360 | landscape: Boolean,
|
32361 | noTitle: Boolean,
|
32362 | width: {
|
32363 | type: [Number, String],
|
32364 | default: 290
|
32365 | }
|
32366 | },
|
32367 | methods: {
|
32368 | genPickerTitle: function genPickerTitle() {
|
32369 | return null;
|
32370 | },
|
32371 | genPickerBody: function genPickerBody() {
|
32372 | return null;
|
32373 | },
|
32374 | genPickerActionsSlot: function genPickerActionsSlot() {
|
32375 | return this.$scopedSlots.default ? this.$scopedSlots.default({
|
32376 | save: this.save,
|
32377 | cancel: this.cancel
|
32378 | }) : this.$slots.default;
|
32379 | },
|
32380 | genPicker: function genPicker(staticClass) {
|
32381 | var children = [];
|
32382 |
|
32383 | if (!this.noTitle) {
|
32384 | var title = this.genPickerTitle();
|
32385 | title && children.push(title);
|
32386 | }
|
32387 |
|
32388 | var body = this.genPickerBody();
|
32389 | body && children.push(body);
|
32390 | children.push(this.$createElement('template', {
|
32391 | slot: 'actions'
|
32392 | }, [this.genPickerActionsSlot()]));
|
32393 | return this.$createElement(_components_VPicker__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
32394 | staticClass: staticClass,
|
32395 | props: {
|
32396 | color: this.headerColor || this.color,
|
32397 | dark: this.dark,
|
32398 | fullWidth: this.fullWidth,
|
32399 | landscape: this.landscape,
|
32400 | light: this.light,
|
32401 | width: this.width,
|
32402 | noTitle: this.noTitle
|
32403 | }
|
32404 | }, children);
|
32405 | }
|
32406 | }
|
32407 | }));
|
32408 |
|
32409 | }),
|
32410 |
|
32411 | "./src/mixins/positionable/index.ts":
|
32412 |
|
32413 |
|
32414 |
|
32415 |
|
32416 | (function(module, __webpack_exports__, __webpack_require__) {
|
32417 |
|
32418 | "use strict";
|
32419 | __webpack_require__.r(__webpack_exports__);
|
32420 | __webpack_require__.d(__webpack_exports__, "factory", function() { return factory; });
|
32421 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
32422 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
32423 | var _util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/helpers.ts");
|
32424 |
|
32425 |
|
32426 | var availableProps = {
|
32427 | absolute: Boolean,
|
32428 | bottom: Boolean,
|
32429 | fixed: Boolean,
|
32430 | left: Boolean,
|
32431 | right: Boolean,
|
32432 | top: Boolean
|
32433 | };
|
32434 | function factory(selected) {
|
32435 | if (selected === void 0) {
|
32436 | selected = [];
|
32437 | }
|
32438 |
|
32439 | return vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
32440 | name: 'positionable',
|
32441 | props: selected.length ? Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["filterObjectOnKeys"])(availableProps, selected) : availableProps
|
32442 | });
|
32443 | }
|
32444 | __webpack_exports__["default"] = (factory());
|
32445 |
|
32446 |
|
32447 |
|
32448 |
|
32449 |
|
32450 |
|
32451 |
|
32452 |
|
32453 |
|
32454 |
|
32455 |
|
32456 |
|
32457 |
|
32458 |
|
32459 |
|
32460 |
|
32461 |
|
32462 |
|
32463 |
|
32464 |
|
32465 |
|
32466 |
|
32467 |
|
32468 |
|
32469 |
|
32470 |
|
32471 |
|
32472 |
|
32473 | }),
|
32474 |
|
32475 | "./src/mixins/proxyable/index.ts":
|
32476 |
|
32477 |
|
32478 |
|
32479 |
|
32480 | (function(module, __webpack_exports__, __webpack_require__) {
|
32481 |
|
32482 | "use strict";
|
32483 | __webpack_require__.r(__webpack_exports__);
|
32484 | __webpack_require__.d(__webpack_exports__, "factory", function() { return factory; });
|
32485 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
32486 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
32487 |
|
32488 | function factory(prop, event) {
|
32489 | var _a, _b;
|
32490 |
|
32491 | if (prop === void 0) {
|
32492 | prop = 'value';
|
32493 | }
|
32494 |
|
32495 | if (event === void 0) {
|
32496 | event = 'change';
|
32497 | }
|
32498 |
|
32499 | return vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
32500 | name: 'proxyable',
|
32501 | model: {
|
32502 | prop: prop,
|
32503 | event: event
|
32504 | },
|
32505 | props: (_a = {}, _a[prop] = {
|
32506 | required: false
|
32507 | }, _a),
|
32508 | data: function data() {
|
32509 | return {
|
32510 | internalLazyValue: this[prop]
|
32511 | };
|
32512 | },
|
32513 | computed: {
|
32514 | internalValue: {
|
32515 | get: function get() {
|
32516 | return this.internalLazyValue;
|
32517 | },
|
32518 | set: function set(val) {
|
32519 | if (val === this.internalLazyValue) return;
|
32520 | this.internalLazyValue = val;
|
32521 | this.$emit(event, val);
|
32522 | }
|
32523 | }
|
32524 | },
|
32525 | watch: (_b = {}, _b[prop] = function (val) {
|
32526 | this.internalLazyValue = val;
|
32527 | }, _b)
|
32528 | });
|
32529 | }
|
32530 |
|
32531 |
|
32532 | var Proxyable = factory();
|
32533 | __webpack_exports__["default"] = (Proxyable);
|
32534 |
|
32535 | }),
|
32536 |
|
32537 | "./src/mixins/registrable/index.ts":
|
32538 |
|
32539 |
|
32540 |
|
32541 |
|
32542 | (function(module, __webpack_exports__, __webpack_require__) {
|
32543 |
|
32544 | "use strict";
|
32545 | __webpack_require__.r(__webpack_exports__);
|
32546 | __webpack_require__.d(__webpack_exports__, "inject", function() { return inject; });
|
32547 | __webpack_require__.d(__webpack_exports__, "provide", function() { return provide; });
|
32548 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
32549 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
32550 | var _util_console__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/console.ts");
|
32551 |
|
32552 |
|
32553 |
|
32554 | function generateWarning(child, parent) {
|
32555 | return function () {
|
32556 | return Object(_util_console__WEBPACK_IMPORTED_MODULE_1__["consoleWarn"])("The " + child + " component must be used inside a " + parent);
|
32557 | };
|
32558 | }
|
32559 |
|
32560 | function inject(namespace, child, parent) {
|
32561 | var _a;
|
32562 |
|
32563 | var defaultImpl = child && parent ? {
|
32564 | register: generateWarning(child, parent),
|
32565 | unregister: generateWarning(child, parent)
|
32566 | } : null;
|
32567 | return vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
32568 | name: 'registrable-inject',
|
32569 | inject: (_a = {}, _a[namespace] = {
|
32570 | default: defaultImpl
|
32571 | }, _a)
|
32572 | });
|
32573 | }
|
32574 | function provide(namespace, self) {
|
32575 | if (self === void 0) {
|
32576 | self = false;
|
32577 | }
|
32578 |
|
32579 | return vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
32580 | name: 'registrable-provide',
|
32581 | methods: self ? {} : {
|
32582 | register: null,
|
32583 | unregister: null
|
32584 | },
|
32585 | provide: function provide() {
|
32586 | var _a;
|
32587 |
|
32588 | return _a = {}, _a[namespace] = self ? this : {
|
32589 | register: this.register,
|
32590 | unregister: this.unregister
|
32591 | }, _a;
|
32592 | }
|
32593 | });
|
32594 | }
|
32595 |
|
32596 | }),
|
32597 |
|
32598 | "./src/mixins/returnable/index.ts":
|
32599 |
|
32600 |
|
32601 |
|
32602 |
|
32603 | (function(module, __webpack_exports__, __webpack_require__) {
|
32604 |
|
32605 | "use strict";
|
32606 | __webpack_require__.r(__webpack_exports__);
|
32607 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
32608 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
32609 |
|
32610 |
|
32611 |
|
32612 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
32613 | name: 'returnable',
|
32614 | props: {
|
32615 | returnValue: null
|
32616 | },
|
32617 | data: function data() {
|
32618 | return {
|
32619 | isActive: false,
|
32620 | originalValue: null
|
32621 | };
|
32622 | },
|
32623 | watch: {
|
32624 | isActive: function isActive(val) {
|
32625 | if (val) {
|
32626 | this.originalValue = this.returnValue;
|
32627 | } else {
|
32628 | this.$emit('update:return-value', this.originalValue);
|
32629 | }
|
32630 | }
|
32631 | },
|
32632 | methods: {
|
32633 | save: function save(value) {
|
32634 | var _this = this;
|
32635 |
|
32636 | this.originalValue = value;
|
32637 | setTimeout(function () {
|
32638 | _this.isActive = false;
|
32639 | });
|
32640 | }
|
32641 | }
|
32642 | }));
|
32643 |
|
32644 | }),
|
32645 |
|
32646 | "./src/mixins/rippleable/index.ts":
|
32647 |
|
32648 |
|
32649 |
|
32650 |
|
32651 | (function(module, __webpack_exports__, __webpack_require__) {
|
32652 |
|
32653 | "use strict";
|
32654 | __webpack_require__.r(__webpack_exports__);
|
32655 | var _directives_ripple__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/directives/ripple/index.ts");
|
32656 | var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "vue");
|
32657 | var vue__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
|
32658 |
|
32659 |
|
32660 |
|
32661 |
|
32662 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_1___default.a.extend({
|
32663 | name: 'rippleable',
|
32664 | directives: {
|
32665 | ripple: _directives_ripple__WEBPACK_IMPORTED_MODULE_0__["default"]
|
32666 | },
|
32667 | props: {
|
32668 | ripple: {
|
32669 | type: [Boolean, Object],
|
32670 | default: true
|
32671 | }
|
32672 | },
|
32673 | methods: {
|
32674 | genRipple: function genRipple(data) {
|
32675 | if (data === void 0) {
|
32676 | data = {};
|
32677 | }
|
32678 |
|
32679 | if (!this.ripple) return null;
|
32680 | data.staticClass = 'v-input--selection-controls__ripple';
|
32681 | data.directives = data.directives || [];
|
32682 | data.directives.push({
|
32683 | name: 'ripple',
|
32684 | value: {
|
32685 | center: true
|
32686 | }
|
32687 | });
|
32688 | data.on = Object.assign({
|
32689 | click: this.onChange
|
32690 | }, this.$listeners);
|
32691 | return this.$createElement('div', data);
|
32692 | },
|
32693 | onChange: function onChange() {}
|
32694 | }
|
32695 | }));
|
32696 |
|
32697 | }),
|
32698 |
|
32699 | "./src/mixins/routable/index.ts":
|
32700 |
|
32701 |
|
32702 |
|
32703 |
|
32704 | (function(module, __webpack_exports__, __webpack_require__) {
|
32705 |
|
32706 | "use strict";
|
32707 | __webpack_require__.r(__webpack_exports__);
|
32708 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
32709 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
32710 | var _directives_ripple__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/directives/ripple/index.ts");
|
32711 | var _util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/helpers.ts");
|
32712 | var __assign = undefined && undefined.__assign || function () {
|
32713 | __assign = Object.assign || function (t) {
|
32714 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
32715 | s = arguments[i];
|
32716 |
|
32717 | for (var p in s) {
|
32718 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
32719 | }
|
32720 | }
|
32721 |
|
32722 | return t;
|
32723 | };
|
32724 |
|
32725 | return __assign.apply(this, arguments);
|
32726 | };
|
32727 |
|
32728 |
|
32729 |
|
32730 |
|
32731 |
|
32732 |
|
32733 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
32734 | name: 'routable',
|
32735 | directives: {
|
32736 | Ripple: _directives_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
|
32737 | },
|
32738 | props: {
|
32739 | activeClass: String,
|
32740 | append: Boolean,
|
32741 | disabled: Boolean,
|
32742 | exact: {
|
32743 | type: Boolean,
|
32744 | default: undefined
|
32745 | },
|
32746 | exactActiveClass: String,
|
32747 | link: Boolean,
|
32748 | href: [String, Object],
|
32749 | to: [String, Object],
|
32750 | nuxt: Boolean,
|
32751 | replace: Boolean,
|
32752 | ripple: {
|
32753 | type: [Boolean, Object],
|
32754 | default: null
|
32755 | },
|
32756 | tag: String,
|
32757 | target: String
|
32758 | },
|
32759 | data: function data() {
|
32760 | return {
|
32761 | isActive: false,
|
32762 | proxyClass: ''
|
32763 | };
|
32764 | },
|
32765 | computed: {
|
32766 | classes: function classes() {
|
32767 | var classes = {};
|
32768 | if (this.to) return classes;
|
32769 | if (this.activeClass) classes[this.activeClass] = this.isActive;
|
32770 | if (this.proxyClass) classes[this.proxyClass] = this.isActive;
|
32771 | return classes;
|
32772 | },
|
32773 | computedRipple: function computedRipple() {
|
32774 | return this.ripple != null ? this.ripple : !this.disabled && this.isClickable;
|
32775 | },
|
32776 | isClickable: function isClickable() {
|
32777 | if (this.disabled) return false;
|
32778 | return Boolean(this.isLink || this.$listeners.click || this.$listeners['!click'] || this.$attrs.tabindex);
|
32779 | },
|
32780 | isLink: function isLink() {
|
32781 | return this.to || this.href || this.link;
|
32782 | },
|
32783 | styles: function styles() {
|
32784 | return {};
|
32785 | }
|
32786 | },
|
32787 | watch: {
|
32788 | $route: 'onRouteChange'
|
32789 | },
|
32790 | methods: {
|
32791 | click: function click(e) {
|
32792 | this.$emit('click', e);
|
32793 | },
|
32794 | generateRouteLink: function generateRouteLink() {
|
32795 | var _a;
|
32796 |
|
32797 | var exact = this.exact;
|
32798 | var tag;
|
32799 | var data = (_a = {
|
32800 | attrs: {
|
32801 | tabindex: 'tabindex' in this.$attrs ? this.$attrs.tabindex : undefined
|
32802 | },
|
32803 | class: this.classes,
|
32804 | style: this.styles,
|
32805 | props: {},
|
32806 | directives: [{
|
32807 | name: 'ripple',
|
32808 | value: this.computedRipple
|
32809 | }]
|
32810 | }, _a[this.to ? 'nativeOn' : 'on'] = __assign({}, this.$listeners, {
|
32811 | click: this.click
|
32812 | }), _a.ref = 'link', _a);
|
32813 |
|
32814 | if (typeof this.exact === 'undefined') {
|
32815 | exact = this.to === '/' || this.to === Object(this.to) && this.to.path === '/';
|
32816 | }
|
32817 |
|
32818 | if (this.to) {
|
32819 |
|
32820 |
|
32821 | var activeClass = this.activeClass;
|
32822 | var exactActiveClass = this.exactActiveClass || activeClass;
|
32823 |
|
32824 | if (this.proxyClass) {
|
32825 | activeClass = (activeClass + " " + this.proxyClass).trim();
|
32826 | exactActiveClass = (exactActiveClass + " " + this.proxyClass).trim();
|
32827 | }
|
32828 |
|
32829 | tag = this.nuxt ? 'nuxt-link' : 'router-link';
|
32830 | Object.assign(data.props, {
|
32831 | to: this.to,
|
32832 | exact: exact,
|
32833 | activeClass: activeClass,
|
32834 | exactActiveClass: exactActiveClass,
|
32835 | append: this.append,
|
32836 | replace: this.replace
|
32837 | });
|
32838 | } else {
|
32839 | tag = this.href && 'a' || this.tag || 'div';
|
32840 | if (tag === 'a' && this.href) data.attrs.href = this.href;
|
32841 | }
|
32842 |
|
32843 | if (this.target) data.attrs.target = this.target;
|
32844 | return {
|
32845 | tag: tag,
|
32846 | data: data
|
32847 | };
|
32848 | },
|
32849 | onRouteChange: function onRouteChange() {
|
32850 | var _this = this;
|
32851 |
|
32852 | if (!this.to || !this.$refs.link || !this.$route) return;
|
32853 | var activeClass = (this.activeClass + " " + (this.proxyClass || '')).trim();
|
32854 | var path = "_vnode.data.class." + activeClass;
|
32855 | this.$nextTick(function () {
|
32856 |
|
32857 | if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["getObjectValueByPath"])(_this.$refs.link, path)) {
|
32858 | _this.toggle();
|
32859 | }
|
32860 | });
|
32861 | },
|
32862 | toggle: function toggle() {}
|
32863 | }
|
32864 | }));
|
32865 |
|
32866 | }),
|
32867 |
|
32868 | "./src/mixins/scrollable/index.ts":
|
32869 |
|
32870 |
|
32871 |
|
32872 |
|
32873 | (function(module, __webpack_exports__, __webpack_require__) {
|
32874 |
|
32875 | "use strict";
|
32876 | __webpack_require__.r(__webpack_exports__);
|
32877 | var _directives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/directives/index.ts");
|
32878 | var _util_console__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/console.ts");
|
32879 | var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "vue");
|
32880 | var vue__WEBPACK_IMPORTED_MODULE_2___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
|
32881 |
|
32882 |
|
32883 |
|
32884 |
|
32885 |
|
32886 |
|
32887 |
|
32888 |
|
32889 |
|
32890 |
|
32891 |
|
32892 |
|
32893 |
|
32894 |
|
32895 |
|
32896 |
|
32897 |
|
32898 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_2___default.a.extend({
|
32899 | name: 'scrollable',
|
32900 | directives: {
|
32901 | Scroll: _directives__WEBPACK_IMPORTED_MODULE_0__["Scroll"]
|
32902 | },
|
32903 | props: {
|
32904 | scrollTarget: String,
|
32905 | scrollThreshold: [String, Number]
|
32906 | },
|
32907 | data: function data() {
|
32908 | return {
|
32909 | currentScroll: 0,
|
32910 | currentThreshold: 0,
|
32911 | isActive: false,
|
32912 | isScrollingUp: false,
|
32913 | previousScroll: 0,
|
32914 | savedScroll: 0,
|
32915 | target: null
|
32916 | };
|
32917 | },
|
32918 | computed: {
|
32919 | |
32920 |
|
32921 |
|
32922 |
|
32923 |
|
32924 | canScroll: function canScroll() {
|
32925 | return typeof window !== 'undefined';
|
32926 | },
|
32927 |
|
32928 | |
32929 |
|
32930 |
|
32931 |
|
32932 | computedScrollThreshold: function computedScrollThreshold() {
|
32933 | return this.scrollThreshold ? Number(this.scrollThreshold) : 300;
|
32934 | }
|
32935 | },
|
32936 | watch: {
|
32937 | isScrollingUp: function isScrollingUp() {
|
32938 | this.savedScroll = this.savedScroll || this.currentScroll;
|
32939 | },
|
32940 | isActive: function isActive() {
|
32941 | this.savedScroll = 0;
|
32942 | }
|
32943 | },
|
32944 | mounted: function mounted() {
|
32945 | if (this.scrollTarget) {
|
32946 | this.target = document.querySelector(this.scrollTarget);
|
32947 |
|
32948 | if (!this.target) {
|
32949 | Object(_util_console__WEBPACK_IMPORTED_MODULE_1__["consoleWarn"])("Unable to locate element with identifier " + this.scrollTarget, this);
|
32950 | }
|
32951 | }
|
32952 | },
|
32953 | methods: {
|
32954 | onScroll: function onScroll() {
|
32955 | var _this = this;
|
32956 |
|
32957 | if (!this.canScroll) return;
|
32958 | this.previousScroll = this.currentScroll;
|
32959 | this.currentScroll = this.target ? this.target.scrollTop : window.pageYOffset;
|
32960 | this.isScrollingUp = this.currentScroll < this.previousScroll;
|
32961 | this.currentThreshold = Math.abs(this.currentScroll - this.computedScrollThreshold);
|
32962 | this.$nextTick(function () {
|
32963 | if (Math.abs(_this.currentScroll - _this.savedScroll) > _this.computedScrollThreshold) _this.thresholdMet();
|
32964 | });
|
32965 | },
|
32966 |
|
32967 | |
32968 |
|
32969 |
|
32970 |
|
32971 |
|
32972 | thresholdMet: function thresholdMet() {}
|
32973 | }
|
32974 | }));
|
32975 |
|
32976 | }),
|
32977 |
|
32978 | "./src/mixins/selectable/index.ts":
|
32979 |
|
32980 |
|
32981 |
|
32982 |
|
32983 | (function(module, __webpack_exports__, __webpack_require__) {
|
32984 |
|
32985 | "use strict";
|
32986 | __webpack_require__.r(__webpack_exports__);
|
32987 | var _components_VInput__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/components/VInput/index.ts");
|
32988 | var _rippleable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/rippleable/index.ts");
|
32989 | var _comparable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/comparable/index.ts");
|
32990 | var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/mixins.ts");
|
32991 |
|
32992 |
|
32993 |
|
32994 |
|
32995 |
|
32996 |
|
32997 |
|
32998 |
|
32999 |
|
33000 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_components_VInput__WEBPACK_IMPORTED_MODULE_0__["default"], _rippleable__WEBPACK_IMPORTED_MODULE_1__["default"], _comparable__WEBPACK_IMPORTED_MODULE_2__["default"]).extend({
|
33001 | name: 'selectable',
|
33002 | model: {
|
33003 | prop: 'inputValue',
|
33004 | event: 'change'
|
33005 | },
|
33006 | props: {
|
33007 | id: String,
|
33008 | inputValue: null,
|
33009 | falseValue: null,
|
33010 | trueValue: null,
|
33011 | multiple: {
|
33012 | type: Boolean,
|
33013 | default: null
|
33014 | },
|
33015 | label: String
|
33016 | },
|
33017 | data: function data() {
|
33018 | return {
|
33019 | hasColor: this.inputValue,
|
33020 | lazyValue: this.inputValue
|
33021 | };
|
33022 | },
|
33023 | computed: {
|
33024 | computedColor: function computedColor() {
|
33025 | if (!this.isActive) return undefined;
|
33026 | if (this.color) return this.color;
|
33027 | if (this.isDark && !this.appIsDark) return 'white';
|
33028 | return 'accent';
|
33029 | },
|
33030 | isMultiple: function isMultiple() {
|
33031 | return this.multiple === true || this.multiple === null && Array.isArray(this.internalValue);
|
33032 | },
|
33033 | isActive: function isActive() {
|
33034 | var _this = this;
|
33035 |
|
33036 | var value = this.value;
|
33037 | var input = this.internalValue;
|
33038 |
|
33039 | if (this.isMultiple) {
|
33040 | if (!Array.isArray(input)) return false;
|
33041 | return input.some(function (item) {
|
33042 | return _this.valueComparator(item, value);
|
33043 | });
|
33044 | }
|
33045 |
|
33046 | if (this.trueValue === undefined || this.falseValue === undefined) {
|
33047 | return value ? this.valueComparator(value, input) : Boolean(input);
|
33048 | }
|
33049 |
|
33050 | return this.valueComparator(input, this.trueValue);
|
33051 | },
|
33052 | isDirty: function isDirty() {
|
33053 | return this.isActive;
|
33054 | }
|
33055 | },
|
33056 | watch: {
|
33057 | inputValue: function inputValue(val) {
|
33058 | this.lazyValue = val;
|
33059 | this.hasColor = val;
|
33060 | }
|
33061 | },
|
33062 | methods: {
|
33063 | genLabel: function genLabel() {
|
33064 | var _this = this;
|
33065 |
|
33066 | var label = _components_VInput__WEBPACK_IMPORTED_MODULE_0__["default"].options.methods.genLabel.call(this);
|
33067 | if (!label) return label;
|
33068 | label.data.on = {
|
33069 | click: function click(e) {
|
33070 |
|
33071 |
|
33072 |
|
33073 | e.preventDefault();
|
33074 |
|
33075 | _this.onChange();
|
33076 | }
|
33077 | };
|
33078 | return label;
|
33079 | },
|
33080 | genInput: function genInput(type, attrs) {
|
33081 | return this.$createElement('input', {
|
33082 | attrs: Object.assign({
|
33083 | 'aria-checked': this.isActive.toString(),
|
33084 | disabled: this.isDisabled,
|
33085 | id: this.computedId,
|
33086 | role: type,
|
33087 | type: type
|
33088 | }, attrs),
|
33089 | domProps: {
|
33090 | value: this.value,
|
33091 | checked: this.isActive
|
33092 | },
|
33093 | on: {
|
33094 | blur: this.onBlur,
|
33095 | change: this.onChange,
|
33096 | focus: this.onFocus,
|
33097 | keydown: this.onKeydown
|
33098 | },
|
33099 | ref: 'input'
|
33100 | });
|
33101 | },
|
33102 | onBlur: function onBlur() {
|
33103 | this.isFocused = false;
|
33104 | },
|
33105 | onChange: function onChange() {
|
33106 | var _this = this;
|
33107 |
|
33108 | if (this.isDisabled) return;
|
33109 | var value = this.value;
|
33110 | var input = this.internalValue;
|
33111 |
|
33112 | if (this.isMultiple) {
|
33113 | if (!Array.isArray(input)) {
|
33114 | input = [];
|
33115 | }
|
33116 |
|
33117 | var length = input.length;
|
33118 | input = input.filter(function (item) {
|
33119 | return !_this.valueComparator(item, value);
|
33120 | });
|
33121 |
|
33122 | if (input.length === length) {
|
33123 | input.push(value);
|
33124 | }
|
33125 | } else if (this.trueValue !== undefined && this.falseValue !== undefined) {
|
33126 | input = this.valueComparator(input, this.trueValue) ? this.falseValue : this.trueValue;
|
33127 | } else if (value) {
|
33128 | input = this.valueComparator(input, value) ? null : value;
|
33129 | } else {
|
33130 | input = !input;
|
33131 | }
|
33132 |
|
33133 | this.validate(true, input);
|
33134 | this.internalValue = input;
|
33135 | this.hasColor = input;
|
33136 | },
|
33137 | onFocus: function onFocus() {
|
33138 | this.isFocused = true;
|
33139 | },
|
33140 |
|
33141 |
|
33142 | onKeydown: function onKeydown(e) {}
|
33143 | }
|
33144 | }));
|
33145 |
|
33146 | }),
|
33147 |
|
33148 | "./src/mixins/sizeable/index.ts":
|
33149 |
|
33150 |
|
33151 |
|
33152 |
|
33153 | (function(module, __webpack_exports__, __webpack_require__) {
|
33154 |
|
33155 | "use strict";
|
33156 | __webpack_require__.r(__webpack_exports__);
|
33157 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
33158 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
33159 |
|
33160 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
33161 | name: 'sizeable',
|
33162 | props: {
|
33163 | large: Boolean,
|
33164 | small: Boolean,
|
33165 | xLarge: Boolean,
|
33166 | xSmall: Boolean
|
33167 | },
|
33168 | computed: {
|
33169 | medium: function medium() {
|
33170 | return Boolean(!this.xSmall && !this.small && !this.large && !this.xLarge);
|
33171 | },
|
33172 | sizeableClasses: function sizeableClasses() {
|
33173 | return {
|
33174 | 'v-size--x-small': this.xSmall,
|
33175 | 'v-size--small': this.small,
|
33176 | 'v-size--default': this.medium,
|
33177 | 'v-size--large': this.large,
|
33178 | 'v-size--x-large': this.xLarge
|
33179 | };
|
33180 | }
|
33181 | }
|
33182 | }));
|
33183 |
|
33184 | }),
|
33185 |
|
33186 | "./src/mixins/ssr-bootable/index.ts":
|
33187 |
|
33188 |
|
33189 |
|
33190 |
|
33191 | (function(module, __webpack_exports__, __webpack_require__) {
|
33192 |
|
33193 | "use strict";
|
33194 | __webpack_require__.r(__webpack_exports__);
|
33195 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
33196 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
33197 |
|
33198 |
|
33199 |
|
33200 |
|
33201 |
|
33202 |
|
33203 |
|
33204 |
|
33205 |
|
33206 |
|
33207 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
33208 | name: 'ssr-bootable',
|
33209 | data: function data() {
|
33210 | return {
|
33211 | isBooted: false
|
33212 | };
|
33213 | },
|
33214 | mounted: function mounted() {
|
33215 | var _this = this;
|
33216 |
|
33217 |
|
33218 |
|
33219 |
|
33220 | window.requestAnimationFrame(function () {
|
33221 | _this.$el.setAttribute('data-booted', 'true');
|
33222 |
|
33223 | _this.isBooted = true;
|
33224 | });
|
33225 | }
|
33226 | }));
|
33227 |
|
33228 | }),
|
33229 |
|
33230 | "./src/mixins/stackable/index.ts":
|
33231 |
|
33232 |
|
33233 |
|
33234 |
|
33235 | (function(module, __webpack_exports__, __webpack_require__) {
|
33236 |
|
33237 | "use strict";
|
33238 | __webpack_require__.r(__webpack_exports__);
|
33239 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
33240 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
33241 | var _util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/helpers.ts");
|
33242 | var __read = undefined && undefined.__read || function (o, n) {
|
33243 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
33244 | if (!m) return o;
|
33245 | var i = m.call(o),
|
33246 | r,
|
33247 | ar = [],
|
33248 | e;
|
33249 |
|
33250 | try {
|
33251 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
33252 | ar.push(r.value);
|
33253 | }
|
33254 | } catch (error) {
|
33255 | e = {
|
33256 | error: error
|
33257 | };
|
33258 | } finally {
|
33259 | try {
|
33260 | if (r && !r.done && (m = i["return"])) m.call(i);
|
33261 | } finally {
|
33262 | if (e) throw e.error;
|
33263 | }
|
33264 | }
|
33265 |
|
33266 | return ar;
|
33267 | };
|
33268 |
|
33269 | var __spread = undefined && undefined.__spread || function () {
|
33270 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
33271 | ar = ar.concat(__read(arguments[i]));
|
33272 | }
|
33273 |
|
33274 | return ar;
|
33275 | };
|
33276 |
|
33277 |
|
33278 |
|
33279 |
|
33280 |
|
33281 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend().extend({
|
33282 | name: 'stackable',
|
33283 | data: function data() {
|
33284 | return {
|
33285 | stackElement: null,
|
33286 | stackExclude: null,
|
33287 | stackMinZIndex: 0,
|
33288 | isActive: false
|
33289 | };
|
33290 | },
|
33291 | computed: {
|
33292 | activeZIndex: function activeZIndex() {
|
33293 | if (typeof window === 'undefined') return 0;
|
33294 | var content = this.stackElement || this.$refs.content;
|
33295 |
|
33296 | var index = !this.isActive ? Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["getZIndex"])(content) : this.getMaxZIndex(this.stackExclude || [content]) + 2;
|
33297 | if (index == null) return index;
|
33298 |
|
33299 |
|
33300 | return parseInt(index);
|
33301 | }
|
33302 | },
|
33303 | methods: {
|
33304 | getMaxZIndex: function getMaxZIndex(exclude) {
|
33305 | if (exclude === void 0) {
|
33306 | exclude = [];
|
33307 | }
|
33308 |
|
33309 | var base = this.$el;
|
33310 |
|
33311 |
|
33312 | var zis = [this.stackMinZIndex, Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["getZIndex"])(base)];
|
33313 |
|
33314 |
|
33315 |
|
33316 | var activeElements = __spread(document.getElementsByClassName('v-menu__content--active'), document.getElementsByClassName('v-dialog__content--active'));
|
33317 |
|
33318 |
|
33319 | for (var index = 0; index < activeElements.length; index++) {
|
33320 | if (!exclude.includes(activeElements[index])) {
|
33321 | zis.push(Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["getZIndex"])(activeElements[index]));
|
33322 | }
|
33323 | }
|
33324 |
|
33325 | return Math.max.apply(Math, __spread(zis));
|
33326 | }
|
33327 | }
|
33328 | }));
|
33329 |
|
33330 | }),
|
33331 |
|
33332 | "./src/mixins/themeable/index.ts":
|
33333 |
|
33334 |
|
33335 |
|
33336 |
|
33337 | (function(module, __webpack_exports__, __webpack_require__) {
|
33338 |
|
33339 | "use strict";
|
33340 | __webpack_require__.r(__webpack_exports__);
|
33341 | __webpack_require__.d(__webpack_exports__, "functionalThemeClasses", function() { return functionalThemeClasses; });
|
33342 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
33343 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
33344 | var __assign = undefined && undefined.__assign || function () {
|
33345 | __assign = Object.assign || function (t) {
|
33346 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
33347 | s = arguments[i];
|
33348 |
|
33349 | for (var p in s) {
|
33350 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
33351 | }
|
33352 | }
|
33353 |
|
33354 | return t;
|
33355 | };
|
33356 |
|
33357 | return __assign.apply(this, arguments);
|
33358 | };
|
33359 |
|
33360 |
|
33361 | function functionalThemeClasses(context) {
|
33362 | var vm = __assign({}, context.props, context.injections);
|
33363 |
|
33364 | var isDark = Themeable.options.computed.isDark.call(vm);
|
33365 | return Themeable.options.computed.themeClasses.call({
|
33366 | isDark: isDark
|
33367 | });
|
33368 | }
|
33369 |
|
33370 |
|
33371 | var Themeable = vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend().extend({
|
33372 | name: 'themeable',
|
33373 | provide: function provide() {
|
33374 | return {
|
33375 | theme: this.themeableProvide
|
33376 | };
|
33377 | },
|
33378 | inject: {
|
33379 | theme: {
|
33380 | default: {
|
33381 | isDark: false
|
33382 | }
|
33383 | }
|
33384 | },
|
33385 | props: {
|
33386 | dark: {
|
33387 | type: Boolean,
|
33388 | default: null
|
33389 | },
|
33390 | light: {
|
33391 | type: Boolean,
|
33392 | default: null
|
33393 | }
|
33394 | },
|
33395 | data: function data() {
|
33396 | return {
|
33397 | themeableProvide: {
|
33398 | isDark: false
|
33399 | }
|
33400 | };
|
33401 | },
|
33402 | computed: {
|
33403 | appIsDark: function appIsDark() {
|
33404 | return this.$vuetify.theme.dark || false;
|
33405 | },
|
33406 | isDark: function isDark() {
|
33407 | if (this.dark === true) {
|
33408 |
|
33409 | return true;
|
33410 | } else if (this.light === true) {
|
33411 |
|
33412 | return false;
|
33413 | } else {
|
33414 |
|
33415 | return this.theme.isDark;
|
33416 | }
|
33417 | },
|
33418 | themeClasses: function themeClasses() {
|
33419 | return {
|
33420 | 'theme--dark': this.isDark,
|
33421 | 'theme--light': !this.isDark
|
33422 | };
|
33423 | },
|
33424 |
|
33425 |
|
33426 | rootIsDark: function rootIsDark() {
|
33427 | if (this.dark === true) {
|
33428 |
|
33429 | return true;
|
33430 | } else if (this.light === true) {
|
33431 |
|
33432 | return false;
|
33433 | } else {
|
33434 |
|
33435 | return this.appIsDark;
|
33436 | }
|
33437 | },
|
33438 | rootThemeClasses: function rootThemeClasses() {
|
33439 | return {
|
33440 | 'theme--dark': this.rootIsDark,
|
33441 | 'theme--light': !this.rootIsDark
|
33442 | };
|
33443 | }
|
33444 | },
|
33445 | watch: {
|
33446 | isDark: {
|
33447 | handler: function handler(newVal, oldVal) {
|
33448 | if (newVal !== oldVal) {
|
33449 | this.themeableProvide.isDark = this.isDark;
|
33450 | }
|
33451 | },
|
33452 | immediate: true
|
33453 | }
|
33454 | }
|
33455 | });
|
33456 | __webpack_exports__["default"] = (Themeable);
|
33457 |
|
33458 | }),
|
33459 |
|
33460 | "./src/mixins/toggleable/index.ts":
|
33461 |
|
33462 |
|
33463 |
|
33464 |
|
33465 | (function(module, __webpack_exports__, __webpack_require__) {
|
33466 |
|
33467 | "use strict";
|
33468 | __webpack_require__.r(__webpack_exports__);
|
33469 | __webpack_require__.d(__webpack_exports__, "factory", function() { return factory; });
|
33470 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
33471 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
33472 |
|
33473 | function factory(prop, event) {
|
33474 | var _a, _b;
|
33475 |
|
33476 | if (prop === void 0) {
|
33477 | prop = 'value';
|
33478 | }
|
33479 |
|
33480 | if (event === void 0) {
|
33481 | event = 'input';
|
33482 | }
|
33483 |
|
33484 | return vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
33485 | name: 'toggleable',
|
33486 | model: {
|
33487 | prop: prop,
|
33488 | event: event
|
33489 | },
|
33490 | props: (_a = {}, _a[prop] = {
|
33491 | required: false
|
33492 | }, _a),
|
33493 | data: function data() {
|
33494 | return {
|
33495 | isActive: !!this[prop]
|
33496 | };
|
33497 | },
|
33498 | watch: (_b = {}, _b[prop] = function (val) {
|
33499 | this.isActive = !!val;
|
33500 | }, _b.isActive = function (val) {
|
33501 | !!val !== this[prop] && this.$emit(event, val);
|
33502 | }, _b)
|
33503 | });
|
33504 | }
|
33505 |
|
33506 |
|
33507 | var Toggleable = factory();
|
33508 | __webpack_exports__["default"] = (Toggleable);
|
33509 |
|
33510 | }),
|
33511 |
|
33512 | "./src/mixins/transitionable/index.ts":
|
33513 |
|
33514 |
|
33515 |
|
33516 |
|
33517 | (function(module, __webpack_exports__, __webpack_require__) {
|
33518 |
|
33519 | "use strict";
|
33520 | __webpack_require__.r(__webpack_exports__);
|
33521 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
33522 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
33523 |
|
33524 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
33525 | name: 'transitionable',
|
33526 | props: {
|
33527 | mode: String,
|
33528 | origin: String,
|
33529 | transition: String
|
33530 | }
|
33531 | }));
|
33532 |
|
33533 | }),
|
33534 |
|
33535 | "./src/mixins/translatable/index.ts":
|
33536 |
|
33537 |
|
33538 |
|
33539 |
|
33540 | (function(module, __webpack_exports__, __webpack_require__) {
|
33541 |
|
33542 | "use strict";
|
33543 | __webpack_require__.r(__webpack_exports__);
|
33544 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
33545 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
33546 |
|
33547 | __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
33548 | name: 'translatable',
|
33549 | props: {
|
33550 | height: Number
|
33551 | },
|
33552 | data: function data() {
|
33553 | return {
|
33554 | elOffsetTop: 0,
|
33555 | parallax: 0,
|
33556 | parallaxDist: 0,
|
33557 | percentScrolled: 0,
|
33558 | scrollTop: 0,
|
33559 | windowHeight: 0,
|
33560 | windowBottom: 0
|
33561 | };
|
33562 | },
|
33563 | computed: {
|
33564 | imgHeight: function imgHeight() {
|
33565 | return this.objHeight();
|
33566 | }
|
33567 | },
|
33568 | beforeDestroy: function beforeDestroy() {
|
33569 | window.removeEventListener('scroll', this.translate, false);
|
33570 | window.removeEventListener('resize', this.translate, false);
|
33571 | },
|
33572 | methods: {
|
33573 | calcDimensions: function calcDimensions() {
|
33574 | var offset = this.$el.getBoundingClientRect();
|
33575 | this.scrollTop = window.pageYOffset;
|
33576 | this.parallaxDist = this.imgHeight - this.height;
|
33577 | this.elOffsetTop = offset.top + this.scrollTop;
|
33578 | this.windowHeight = window.innerHeight;
|
33579 | this.windowBottom = this.scrollTop + this.windowHeight;
|
33580 | },
|
33581 | listeners: function listeners() {
|
33582 | window.addEventListener('scroll', this.translate, false);
|
33583 | window.addEventListener('resize', this.translate, false);
|
33584 | },
|
33585 |
|
33586 |
|
33587 | objHeight: function objHeight() {
|
33588 | throw new Error('Not implemented !');
|
33589 | },
|
33590 | translate: function translate() {
|
33591 | this.calcDimensions();
|
33592 | this.percentScrolled = (this.windowBottom - this.elOffsetTop) / (parseInt(this.height) + this.windowHeight);
|
33593 | this.parallax = Math.round(this.parallaxDist * this.percentScrolled);
|
33594 | }
|
33595 | }
|
33596 | }));
|
33597 |
|
33598 | }),
|
33599 |
|
33600 | "./src/mixins/validatable/index.ts":
|
33601 |
|
33602 |
|
33603 |
|
33604 |
|
33605 | (function(module, __webpack_exports__, __webpack_require__) {
|
33606 |
|
33607 | "use strict";
|
33608 | __webpack_require__.r(__webpack_exports__);
|
33609 | var _colorable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/mixins/colorable/index.ts");
|
33610 | var _themeable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
33611 | var _registrable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/mixins/registrable/index.ts");
|
33612 | var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/helpers.ts");
|
33613 | var _util_console__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/util/console.ts");
|
33614 | var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/util/mixins.ts");
|
33615 | 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); }
|
33616 |
|
33617 |
|
33618 |
|
33619 |
|
33620 |
|
33621 |
|
33622 |
|
33623 |
|
33624 |
|
33625 |
|
33626 |
|
33627 | __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(_colorable__WEBPACK_IMPORTED_MODULE_0__["default"], Object(_registrable__WEBPACK_IMPORTED_MODULE_2__["inject"])('form'), _themeable__WEBPACK_IMPORTED_MODULE_1__["default"]).extend({
|
33628 | name: 'validatable',
|
33629 | props: {
|
33630 | disabled: Boolean,
|
33631 | error: Boolean,
|
33632 | errorCount: {
|
33633 | type: [Number, String],
|
33634 | default: 1
|
33635 | },
|
33636 | errorMessages: {
|
33637 | type: [String, Array],
|
33638 | default: function _default() {
|
33639 | return [];
|
33640 | }
|
33641 | },
|
33642 | messages: {
|
33643 | type: [String, Array],
|
33644 | default: function _default() {
|
33645 | return [];
|
33646 | }
|
33647 | },
|
33648 | readonly: Boolean,
|
33649 | rules: {
|
33650 | type: Array,
|
33651 | default: function _default() {
|
33652 | return [];
|
33653 | }
|
33654 | },
|
33655 | success: Boolean,
|
33656 | successMessages: {
|
33657 | type: [String, Array],
|
33658 | default: function _default() {
|
33659 | return [];
|
33660 | }
|
33661 | },
|
33662 | validateOnBlur: Boolean,
|
33663 | value: {
|
33664 | required: false
|
33665 | }
|
33666 | },
|
33667 | data: function data() {
|
33668 | return {
|
33669 | errorBucket: [],
|
33670 | hasColor: false,
|
33671 | hasFocused: false,
|
33672 | hasInput: false,
|
33673 | isFocused: false,
|
33674 | isResetting: false,
|
33675 | lazyValue: this.value,
|
33676 | valid: false
|
33677 | };
|
33678 | },
|
33679 | computed: {
|
33680 | computedColor: function computedColor() {
|
33681 | if (this.disabled) return undefined;
|
33682 | if (this.color) return this.color;
|
33683 |
|
33684 |
|
33685 |
|
33686 |
|
33687 |
|
33688 | if (this.isDark && !this.appIsDark) return 'white';else return 'primary';
|
33689 | },
|
33690 | hasError: function hasError() {
|
33691 | return this.internalErrorMessages.length > 0 || this.errorBucket.length > 0 || this.error;
|
33692 | },
|
33693 |
|
33694 |
|
33695 | hasSuccess: function hasSuccess() {
|
33696 | return this.internalSuccessMessages.length > 0 || this.success;
|
33697 | },
|
33698 | externalError: function externalError() {
|
33699 | return this.internalErrorMessages.length > 0 || this.error;
|
33700 | },
|
33701 | hasMessages: function hasMessages() {
|
33702 | return this.validationTarget.length > 0;
|
33703 | },
|
33704 | hasState: function hasState() {
|
33705 | if (this.disabled) return false;
|
33706 | return this.hasSuccess || this.shouldValidate && this.hasError;
|
33707 | },
|
33708 | internalErrorMessages: function internalErrorMessages() {
|
33709 | return this.genInternalMessages(this.errorMessages);
|
33710 | },
|
33711 | internalMessages: function internalMessages() {
|
33712 | return this.genInternalMessages(this.messages);
|
33713 | },
|
33714 | internalSuccessMessages: function internalSuccessMessages() {
|
33715 | return this.genInternalMessages(this.successMessages);
|
33716 | },
|
33717 | internalValue: {
|
33718 | get: function get() {
|
33719 | return this.lazyValue;
|
33720 | },
|
33721 | set: function set(val) {
|
33722 | this.lazyValue = val;
|
33723 | this.$emit('input', val);
|
33724 | }
|
33725 | },
|
33726 | shouldValidate: function shouldValidate() {
|
33727 | if (this.externalError) return true;
|
33728 | if (this.isResetting) return false;
|
33729 | return this.validateOnBlur ? this.hasFocused && !this.isFocused : this.hasInput || this.hasFocused;
|
33730 | },
|
33731 | validations: function validations() {
|
33732 | return this.validationTarget.slice(0, Number(this.errorCount));
|
33733 | },
|
33734 | validationState: function validationState() {
|
33735 | if (this.disabled) return undefined;
|
33736 | if (this.hasError && this.shouldValidate) return 'error';
|
33737 | if (this.hasSuccess) return 'success';
|
33738 | if (this.hasColor) return this.computedColor;
|
33739 | return undefined;
|
33740 | },
|
33741 | validationTarget: function validationTarget() {
|
33742 | if (this.internalErrorMessages.length > 0) {
|
33743 | return this.internalErrorMessages;
|
33744 | } else if (this.successMessages.length > 0) {
|
33745 | return this.internalSuccessMessages;
|
33746 | } else if (this.messages.length > 0) {
|
33747 | return this.internalMessages;
|
33748 | } else if (this.shouldValidate) {
|
33749 | return this.errorBucket;
|
33750 | } else return [];
|
33751 | }
|
33752 | },
|
33753 | watch: {
|
33754 | rules: {
|
33755 | handler: function handler(newVal, oldVal) {
|
33756 | if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["deepEqual"])(newVal, oldVal)) return;
|
33757 | this.validate();
|
33758 | },
|
33759 | deep: true
|
33760 | },
|
33761 | internalValue: function internalValue() {
|
33762 |
|
33763 |
|
33764 | this.hasInput = true;
|
33765 | this.validateOnBlur || this.$nextTick(this.validate);
|
33766 | },
|
33767 | isFocused: function isFocused(val) {
|
33768 |
|
33769 |
|
33770 | if (!val && !this.disabled) {
|
33771 | this.hasFocused = true;
|
33772 | this.validateOnBlur && this.validate();
|
33773 | }
|
33774 | },
|
33775 | isResetting: function isResetting() {
|
33776 | var _this = this;
|
33777 |
|
33778 | setTimeout(function () {
|
33779 | _this.hasInput = false;
|
33780 | _this.hasFocused = false;
|
33781 | _this.isResetting = false;
|
33782 |
|
33783 | _this.validate();
|
33784 | }, 0);
|
33785 | },
|
33786 | hasError: function hasError(val) {
|
33787 | if (this.shouldValidate) {
|
33788 | this.$emit('update:error', val);
|
33789 | }
|
33790 | },
|
33791 | value: function value(val) {
|
33792 | this.lazyValue = val;
|
33793 | }
|
33794 | },
|
33795 | beforeMount: function beforeMount() {
|
33796 | this.validate();
|
33797 | },
|
33798 | created: function created() {
|
33799 | this.form && this.form.register(this);
|
33800 | },
|
33801 | beforeDestroy: function beforeDestroy() {
|
33802 | this.form && this.form.unregister(this);
|
33803 | },
|
33804 | methods: {
|
33805 | genInternalMessages: function genInternalMessages(messages) {
|
33806 | if (!messages) return [];else if (Array.isArray(messages)) return messages;else return [messages];
|
33807 | },
|
33808 |
|
33809 |
|
33810 | reset: function reset() {
|
33811 | this.isResetting = true;
|
33812 | this.internalValue = Array.isArray(this.internalValue) ? [] : undefined;
|
33813 | },
|
33814 |
|
33815 |
|
33816 | resetValidation: function resetValidation() {
|
33817 | this.isResetting = true;
|
33818 | },
|
33819 |
|
33820 |
|
33821 | validate: function validate(force, value) {
|
33822 | if (force === void 0) {
|
33823 | force = false;
|
33824 | }
|
33825 |
|
33826 | var errorBucket = [];
|
33827 | value = value || this.internalValue;
|
33828 | if (force) this.hasInput = this.hasFocused = true;
|
33829 |
|
33830 | for (var index = 0; index < this.rules.length; index++) {
|
33831 | var rule = this.rules[index];
|
33832 | var valid = typeof rule === 'function' ? rule(value) : rule;
|
33833 |
|
33834 | if (typeof valid === 'string') {
|
33835 | errorBucket.push(valid);
|
33836 | } else if (typeof valid !== 'boolean') {
|
33837 | Object(_util_console__WEBPACK_IMPORTED_MODULE_4__["consoleError"])("Rules should return a string or boolean, received '" + _typeof(valid) + "' instead", this);
|
33838 | }
|
33839 | }
|
33840 |
|
33841 | this.errorBucket = errorBucket;
|
33842 | this.valid = errorBucket.length === 0;
|
33843 | return this.valid;
|
33844 | }
|
33845 | }
|
33846 | }));
|
33847 |
|
33848 | }),
|
33849 |
|
33850 | "./src/services/application/index.ts":
|
33851 |
|
33852 |
|
33853 |
|
33854 |
|
33855 | (function(module, __webpack_exports__, __webpack_require__) {
|
33856 |
|
33857 | "use strict";
|
33858 | __webpack_require__.r(__webpack_exports__);
|
33859 | __webpack_require__.d(__webpack_exports__, "Application", function() { return Application; });
|
33860 | var _service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/services/service/index.ts");
|
33861 | var __extends = undefined && undefined.__extends || function () {
|
33862 | var _extendStatics = function extendStatics(d, b) {
|
33863 | _extendStatics = Object.setPrototypeOf || {
|
33864 | __proto__: []
|
33865 | } instanceof Array && function (d, b) {
|
33866 | d.__proto__ = b;
|
33867 | } || function (d, b) {
|
33868 | for (var p in b) {
|
33869 | if (b.hasOwnProperty(p)) d[p] = b[p];
|
33870 | }
|
33871 | };
|
33872 |
|
33873 | return _extendStatics(d, b);
|
33874 | };
|
33875 |
|
33876 | return function (d, b) {
|
33877 | _extendStatics(d, b);
|
33878 |
|
33879 | function __() {
|
33880 | this.constructor = d;
|
33881 | }
|
33882 |
|
33883 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
33884 | };
|
33885 | }();
|
33886 |
|
33887 |
|
33888 |
|
33889 |
|
33890 | var Application =
|
33891 |
|
33892 | function (_super) {
|
33893 | __extends(Application, _super);
|
33894 |
|
33895 | function Application() {
|
33896 | var _this = _super !== null && _super.apply(this, arguments) || this;
|
33897 |
|
33898 | _this.bar = 0;
|
33899 | _this.top = 0;
|
33900 | _this.left = 0;
|
33901 | _this.insetFooter = 0;
|
33902 | _this.right = 0;
|
33903 | _this.bottom = 0;
|
33904 | _this.footer = 0;
|
33905 | _this.application = {
|
33906 | bar: {},
|
33907 | top: {},
|
33908 | left: {},
|
33909 | insetFooter: {},
|
33910 | right: {},
|
33911 | bottom: {},
|
33912 | footer: {}
|
33913 | };
|
33914 | return _this;
|
33915 | }
|
33916 |
|
33917 | Application.prototype.register = function (uid, location, size) {
|
33918 | this.application[location][uid] = size;
|
33919 | this.update(location);
|
33920 | };
|
33921 |
|
33922 | Application.prototype.unregister = function (uid, location) {
|
33923 | if (this.application[location][uid] == null) return;
|
33924 | delete this.application[location][uid];
|
33925 | this.update(location);
|
33926 | };
|
33927 |
|
33928 | Application.prototype.update = function (location) {
|
33929 | this[location] = Object.values(this.application[location]).reduce(function (acc, cur) {
|
33930 | return acc + cur;
|
33931 | }, 0);
|
33932 | };
|
33933 |
|
33934 | Application.property = 'application';
|
33935 | return Application;
|
33936 | }(_service__WEBPACK_IMPORTED_MODULE_0__["Service"]);
|
33937 |
|
33938 |
|
33939 |
|
33940 | }),
|
33941 |
|
33942 | "./src/services/breakpoint/index.ts":
|
33943 |
|
33944 |
|
33945 |
|
33946 |
|
33947 | (function(module, __webpack_exports__, __webpack_require__) {
|
33948 |
|
33949 | "use strict";
|
33950 | __webpack_require__.r(__webpack_exports__);
|
33951 | __webpack_require__.d(__webpack_exports__, "Breakpoint", function() { return Breakpoint; });
|
33952 | var _service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/services/service/index.ts");
|
33953 | var __extends = undefined && undefined.__extends || function () {
|
33954 | var _extendStatics = function extendStatics(d, b) {
|
33955 | _extendStatics = Object.setPrototypeOf || {
|
33956 | __proto__: []
|
33957 | } instanceof Array && function (d, b) {
|
33958 | d.__proto__ = b;
|
33959 | } || function (d, b) {
|
33960 | for (var p in b) {
|
33961 | if (b.hasOwnProperty(p)) d[p] = b[p];
|
33962 | }
|
33963 | };
|
33964 |
|
33965 | return _extendStatics(d, b);
|
33966 | };
|
33967 |
|
33968 | return function (d, b) {
|
33969 | _extendStatics(d, b);
|
33970 |
|
33971 | function __() {
|
33972 | this.constructor = d;
|
33973 | }
|
33974 |
|
33975 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
33976 | };
|
33977 | }();
|
33978 |
|
33979 | var __assign = undefined && undefined.__assign || function () {
|
33980 | __assign = Object.assign || function (t) {
|
33981 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
33982 | s = arguments[i];
|
33983 |
|
33984 | for (var p in s) {
|
33985 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
33986 | }
|
33987 | }
|
33988 |
|
33989 | return t;
|
33990 | };
|
33991 |
|
33992 | return __assign.apply(this, arguments);
|
33993 | };
|
33994 |
|
33995 |
|
33996 |
|
33997 |
|
33998 | var Breakpoint =
|
33999 |
|
34000 | function (_super) {
|
34001 | __extends(Breakpoint, _super);
|
34002 |
|
34003 | function Breakpoint(options) {
|
34004 | if (options === void 0) {
|
34005 | options = {};
|
34006 | }
|
34007 |
|
34008 | var _this = _super.call(this) || this;
|
34009 |
|
34010 |
|
34011 | _this.xs = false;
|
34012 | _this.sm = false;
|
34013 | _this.md = false;
|
34014 | _this.lg = false;
|
34015 | _this.xl = false;
|
34016 | _this.xsOnly = false;
|
34017 | _this.smOnly = false;
|
34018 | _this.smAndDown = false;
|
34019 | _this.smAndUp = false;
|
34020 | _this.mdOnly = false;
|
34021 | _this.mdAndDown = false;
|
34022 | _this.mdAndUp = false;
|
34023 | _this.lgOnly = false;
|
34024 | _this.lgAndDown = false;
|
34025 | _this.lgAndUp = false;
|
34026 | _this.xlOnly = false;
|
34027 | _this.name = '';
|
34028 | _this.height = 0;
|
34029 | _this.width = 0;
|
34030 | _this.thresholds = {
|
34031 | xs: 600,
|
34032 | sm: 960,
|
34033 | md: 1280,
|
34034 | lg: 1920
|
34035 | };
|
34036 | _this.scrollBarWidth = 16;
|
34037 | _this.resizeTimeout = 0;
|
34038 | _this.thresholds = __assign({}, _this.thresholds, options.thresholds);
|
34039 | _this.scrollBarWidth = options.scrollBarWidth || _this.scrollBarWidth;
|
34040 |
|
34041 | _this.init();
|
34042 |
|
34043 | return _this;
|
34044 | }
|
34045 |
|
34046 | Breakpoint.prototype.init = function () {
|
34047 |
|
34048 | if (typeof window === 'undefined') return;
|
34049 | window.addEventListener('resize', this.onResize.bind(this), {
|
34050 | passive: true
|
34051 | });
|
34052 | this.update();
|
34053 | };
|
34054 |
|
34055 | Breakpoint.prototype.onResize = function () {
|
34056 | clearTimeout(this.resizeTimeout);
|
34057 |
|
34058 |
|
34059 |
|
34060 |
|
34061 | this.resizeTimeout = window.setTimeout(this.update.bind(this), 200);
|
34062 | };
|
34063 |
|
34064 |
|
34065 |
|
34066 | Breakpoint.prototype.update = function () {
|
34067 | var height = this.getClientHeight();
|
34068 | var width = this.getClientWidth();
|
34069 | var xs = width < this.thresholds.xs;
|
34070 | var sm = width < this.thresholds.sm && !xs;
|
34071 | var md = width < this.thresholds.md - this.scrollBarWidth && !(sm || xs);
|
34072 | var lg = width < this.thresholds.lg - this.scrollBarWidth && !(md || sm || xs);
|
34073 | var xl = width >= this.thresholds.lg - this.scrollBarWidth;
|
34074 | this.height = height;
|
34075 | this.width = width;
|
34076 | this.xs = xs;
|
34077 | this.sm = sm;
|
34078 | this.md = md;
|
34079 | this.lg = lg;
|
34080 | this.xl = xl;
|
34081 | this.xsOnly = xs;
|
34082 | this.smOnly = sm;
|
34083 | this.smAndDown = (xs || sm) && !(md || lg || xl);
|
34084 | this.smAndUp = !xs && (sm || md || lg || xl);
|
34085 | this.mdOnly = md;
|
34086 | this.mdAndDown = (xs || sm || md) && !(lg || xl);
|
34087 | this.mdAndUp = !(xs || sm) && (md || lg || xl);
|
34088 | this.lgOnly = lg;
|
34089 | this.lgAndDown = (xs || sm || md || lg) && !xl;
|
34090 | this.lgAndUp = !(xs || sm || md) && (lg || xl);
|
34091 | this.xlOnly = xl;
|
34092 |
|
34093 | switch (true) {
|
34094 | case xs:
|
34095 | this.name = 'xs';
|
34096 | break;
|
34097 |
|
34098 | case sm:
|
34099 | this.name = 'sm';
|
34100 | break;
|
34101 |
|
34102 | case md:
|
34103 | this.name = 'md';
|
34104 | break;
|
34105 |
|
34106 | case lg:
|
34107 | this.name = 'lg';
|
34108 | break;
|
34109 |
|
34110 | default:
|
34111 | this.name = 'xl';
|
34112 | break;
|
34113 | }
|
34114 | };
|
34115 |
|
34116 |
|
34117 |
|
34118 | Breakpoint.prototype.getClientWidth = function () {
|
34119 |
|
34120 | if (typeof document === 'undefined') return 0;
|
34121 |
|
34122 | return Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
|
34123 | };
|
34124 |
|
34125 | Breakpoint.prototype.getClientHeight = function () {
|
34126 |
|
34127 | if (typeof document === 'undefined') return 0;
|
34128 |
|
34129 | return Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
|
34130 | };
|
34131 |
|
34132 | Breakpoint.property = 'breakpoint';
|
34133 | return Breakpoint;
|
34134 | }(_service__WEBPACK_IMPORTED_MODULE_0__["Service"]);
|
34135 |
|
34136 |
|
34137 |
|
34138 | }),
|
34139 |
|
34140 | "./src/services/goto/easing-patterns.ts":
|
34141 |
|
34142 |
|
34143 |
|
34144 |
|
34145 | (function(module, __webpack_exports__, __webpack_require__) {
|
34146 |
|
34147 | "use strict";
|
34148 | __webpack_require__.r(__webpack_exports__);
|
34149 | __webpack_require__.d(__webpack_exports__, "linear", function() { return linear; });
|
34150 | __webpack_require__.d(__webpack_exports__, "easeInQuad", function() { return easeInQuad; });
|
34151 | __webpack_require__.d(__webpack_exports__, "easeOutQuad", function() { return easeOutQuad; });
|
34152 | __webpack_require__.d(__webpack_exports__, "easeInOutQuad", function() { return easeInOutQuad; });
|
34153 | __webpack_require__.d(__webpack_exports__, "easeInCubic", function() { return easeInCubic; });
|
34154 | __webpack_require__.d(__webpack_exports__, "easeOutCubic", function() { return easeOutCubic; });
|
34155 | __webpack_require__.d(__webpack_exports__, "easeInOutCubic", function() { return easeInOutCubic; });
|
34156 | __webpack_require__.d(__webpack_exports__, "easeInQuart", function() { return easeInQuart; });
|
34157 | __webpack_require__.d(__webpack_exports__, "easeOutQuart", function() { return easeOutQuart; });
|
34158 | __webpack_require__.d(__webpack_exports__, "easeInOutQuart", function() { return easeInOutQuart; });
|
34159 | __webpack_require__.d(__webpack_exports__, "easeInQuint", function() { return easeInQuint; });
|
34160 | __webpack_require__.d(__webpack_exports__, "easeOutQuint", function() { return easeOutQuint; });
|
34161 | __webpack_require__.d(__webpack_exports__, "easeInOutQuint", function() { return easeInOutQuint; });
|
34162 |
|
34163 | var linear = function linear(t) {
|
34164 | return t;
|
34165 | };
|
34166 |
|
34167 | var easeInQuad = function easeInQuad(t) {
|
34168 | return Math.pow(t, 2);
|
34169 | };
|
34170 |
|
34171 | var easeOutQuad = function easeOutQuad(t) {
|
34172 | return t * (2 - t);
|
34173 | };
|
34174 |
|
34175 | var easeInOutQuad = function easeInOutQuad(t) {
|
34176 | return t < 0.5 ? 2 * Math.pow(t, 2) : -1 + (4 - 2 * t) * t;
|
34177 | };
|
34178 |
|
34179 | var easeInCubic = function easeInCubic(t) {
|
34180 | return Math.pow(t, 3);
|
34181 | };
|
34182 |
|
34183 | var easeOutCubic = function easeOutCubic(t) {
|
34184 | return Math.pow(--t, 3) + 1;
|
34185 | };
|
34186 |
|
34187 | var easeInOutCubic = function easeInOutCubic(t) {
|
34188 | return t < 0.5 ? 4 * Math.pow(t, 3) : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;
|
34189 | };
|
34190 |
|
34191 | var easeInQuart = function easeInQuart(t) {
|
34192 | return Math.pow(t, 4);
|
34193 | };
|
34194 |
|
34195 | var easeOutQuart = function easeOutQuart(t) {
|
34196 | return 1 - Math.pow(--t, 4);
|
34197 | };
|
34198 |
|
34199 | var easeInOutQuart = function easeInOutQuart(t) {
|
34200 | return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t;
|
34201 | };
|
34202 |
|
34203 | var easeInQuint = function easeInQuint(t) {
|
34204 | return Math.pow(t, 5);
|
34205 | };
|
34206 |
|
34207 | var easeOutQuint = function easeOutQuint(t) {
|
34208 | return 1 + Math.pow(--t, 5);
|
34209 | };
|
34210 |
|
34211 | var easeInOutQuint = function easeInOutQuint(t) {
|
34212 | return t < 0.5 ? 16 * Math.pow(t, 5) : 1 + 16 * Math.pow(--t, 5);
|
34213 | };
|
34214 |
|
34215 | }),
|
34216 |
|
34217 | "./src/services/goto/index.ts":
|
34218 |
|
34219 |
|
34220 |
|
34221 |
|
34222 | (function(module, __webpack_exports__, __webpack_require__) {
|
34223 |
|
34224 | "use strict";
|
34225 | __webpack_require__.r(__webpack_exports__);
|
34226 | __webpack_require__.d(__webpack_exports__, "default", function() { return goTo; });
|
34227 | __webpack_require__.d(__webpack_exports__, "Goto", function() { return Goto; });
|
34228 | var _service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/services/service/index.ts");
|
34229 | var _easing_patterns__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/services/goto/easing-patterns.ts");
|
34230 | var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/services/goto/util.ts");
|
34231 | var __extends = undefined && undefined.__extends || function () {
|
34232 | var _extendStatics = function extendStatics(d, b) {
|
34233 | _extendStatics = Object.setPrototypeOf || {
|
34234 | __proto__: []
|
34235 | } instanceof Array && function (d, b) {
|
34236 | d.__proto__ = b;
|
34237 | } || function (d, b) {
|
34238 | for (var p in b) {
|
34239 | if (b.hasOwnProperty(p)) d[p] = b[p];
|
34240 | }
|
34241 | };
|
34242 |
|
34243 | return _extendStatics(d, b);
|
34244 | };
|
34245 |
|
34246 | return function (d, b) {
|
34247 | _extendStatics(d, b);
|
34248 |
|
34249 | function __() {
|
34250 | this.constructor = d;
|
34251 | }
|
34252 |
|
34253 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
34254 | };
|
34255 | }();
|
34256 |
|
34257 | var __assign = undefined && undefined.__assign || function () {
|
34258 | __assign = Object.assign || function (t) {
|
34259 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
34260 | s = arguments[i];
|
34261 |
|
34262 | for (var p in s) {
|
34263 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
34264 | }
|
34265 | }
|
34266 |
|
34267 | return t;
|
34268 | };
|
34269 |
|
34270 | return __assign.apply(this, arguments);
|
34271 | };
|
34272 |
|
34273 |
|
34274 |
|
34275 |
|
34276 |
|
34277 |
|
34278 | function goTo(_target, _settings) {
|
34279 | if (_settings === void 0) {
|
34280 | _settings = {};
|
34281 | }
|
34282 |
|
34283 | var settings = __assign({
|
34284 | container: document.scrollingElement || document.body || document.documentElement,
|
34285 | duration: 500,
|
34286 | offset: 0,
|
34287 | easing: 'easeInOutCubic',
|
34288 | appOffset: true
|
34289 | }, _settings);
|
34290 |
|
34291 | var container = Object(_util__WEBPACK_IMPORTED_MODULE_2__["getContainer"])(settings.container);
|
34292 |
|
34293 |
|
34294 | if (settings.appOffset && goTo.framework.application) {
|
34295 | var isDrawer = container.classList.contains('v-navigation-drawer');
|
34296 | var isClipped = container.classList.contains('v-navigation-drawer--clipped');
|
34297 | var _a = goTo.framework.application,
|
34298 | bar = _a.bar,
|
34299 | top = _a.top;
|
34300 | settings.offset += bar;
|
34301 |
|
34302 |
|
34303 | if (!isDrawer || isClipped) settings.offset += top;
|
34304 | }
|
34305 |
|
34306 | var startTime = performance.now();
|
34307 | var targetLocation;
|
34308 |
|
34309 | if (typeof _target === 'number') {
|
34310 | targetLocation = Object(_util__WEBPACK_IMPORTED_MODULE_2__["getOffset"])(_target) - settings.offset;
|
34311 | } else {
|
34312 | targetLocation = Object(_util__WEBPACK_IMPORTED_MODULE_2__["getOffset"])(_target) - Object(_util__WEBPACK_IMPORTED_MODULE_2__["getOffset"])(container) - settings.offset;
|
34313 | }
|
34314 |
|
34315 | var startLocation = container.scrollTop;
|
34316 | if (targetLocation === startLocation) return Promise.resolve(targetLocation);
|
34317 | var ease = typeof settings.easing === 'function' ? settings.easing : _easing_patterns__WEBPACK_IMPORTED_MODULE_1__[settings.easing];
|
34318 |
|
34319 |
|
34320 | if (!ease) throw new TypeError("Easing function \"" + settings.easing + "\" not found.");
|
34321 |
|
34322 |
|
34323 |
|
34324 |
|
34325 | return new Promise(function (resolve) {
|
34326 | return requestAnimationFrame(function step(currentTime) {
|
34327 | var timeElapsed = currentTime - startTime;
|
34328 | var progress = Math.abs(settings.duration ? Math.min(timeElapsed / settings.duration, 1) : 1);
|
34329 | container.scrollTop = Math.floor(startLocation + (targetLocation - startLocation) * ease(progress));
|
34330 | var clientHeight = container === document.body ? document.documentElement.clientHeight : container.clientHeight;
|
34331 |
|
34332 | if (progress === 1 || clientHeight + container.scrollTop === container.scrollHeight) {
|
34333 | return resolve(targetLocation);
|
34334 | }
|
34335 |
|
34336 | requestAnimationFrame(step);
|
34337 | });
|
34338 | });
|
34339 | }
|
34340 | goTo.framework = {};
|
34341 |
|
34342 | goTo.init = function () {};
|
34343 |
|
34344 | var Goto =
|
34345 |
|
34346 | function (_super) {
|
34347 | __extends(Goto, _super);
|
34348 |
|
34349 | function Goto() {
|
34350 | var _this = _super.call(this) || this;
|
34351 |
|
34352 | return goTo;
|
34353 | }
|
34354 |
|
34355 | Goto.property = 'goTo';
|
34356 | return Goto;
|
34357 | }(_service__WEBPACK_IMPORTED_MODULE_0__["Service"]);
|
34358 |
|
34359 |
|
34360 |
|
34361 | }),
|
34362 |
|
34363 | "./src/services/goto/util.ts":
|
34364 |
|
34365 |
|
34366 |
|
34367 |
|
34368 | (function(module, __webpack_exports__, __webpack_require__) {
|
34369 |
|
34370 | "use strict";
|
34371 | __webpack_require__.r(__webpack_exports__);
|
34372 | __webpack_require__.d(__webpack_exports__, "getOffset", function() { return getOffset; });
|
34373 | __webpack_require__.d(__webpack_exports__, "getContainer", function() { return getContainer; });
|
34374 |
|
34375 | function getOffset(target) {
|
34376 | if (typeof target === 'number') {
|
34377 | return target;
|
34378 | }
|
34379 |
|
34380 | var el = $(target);
|
34381 |
|
34382 | if (!el) {
|
34383 | throw typeof target === 'string' ? new Error("Target element \"" + target + "\" not found.") : new TypeError("Target must be a Number/Selector/HTMLElement/VueComponent, received " + type(target) + " instead.");
|
34384 | }
|
34385 |
|
34386 | var totalOffset = 0;
|
34387 |
|
34388 | while (el) {
|
34389 | totalOffset += el.offsetTop;
|
34390 | el = el.offsetParent;
|
34391 | }
|
34392 |
|
34393 | return totalOffset;
|
34394 | }
|
34395 | function getContainer(container) {
|
34396 | var el = $(container);
|
34397 | if (el) return el;
|
34398 | throw typeof container === 'string' ? new Error("Container element \"" + container + "\" not found.") : new TypeError("Container must be a Selector/HTMLElement/VueComponent, received " + type(container) + " instead.");
|
34399 | }
|
34400 |
|
34401 | function type(el) {
|
34402 | return el == null ? el : el.constructor.name;
|
34403 | }
|
34404 |
|
34405 | function $(el) {
|
34406 | if (typeof el === 'string') {
|
34407 | return document.querySelector(el);
|
34408 | } else if (el && el._isVue) {
|
34409 | return el.$el;
|
34410 | } else if (el instanceof HTMLElement) {
|
34411 | return el;
|
34412 | } else {
|
34413 | return null;
|
34414 | }
|
34415 | }
|
34416 |
|
34417 | }),
|
34418 |
|
34419 | "./src/services/icons/index.ts":
|
34420 |
|
34421 |
|
34422 |
|
34423 |
|
34424 | (function(module, __webpack_exports__, __webpack_require__) {
|
34425 |
|
34426 | "use strict";
|
34427 | __webpack_require__.r(__webpack_exports__);
|
34428 | __webpack_require__.d(__webpack_exports__, "Icons", function() { return Icons; });
|
34429 | var _service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/services/service/index.ts");
|
34430 | var _presets__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/services/icons/presets/index.ts");
|
34431 | var __extends = undefined && undefined.__extends || function () {
|
34432 | var _extendStatics = function extendStatics(d, b) {
|
34433 | _extendStatics = Object.setPrototypeOf || {
|
34434 | __proto__: []
|
34435 | } instanceof Array && function (d, b) {
|
34436 | d.__proto__ = b;
|
34437 | } || function (d, b) {
|
34438 | for (var p in b) {
|
34439 | if (b.hasOwnProperty(p)) d[p] = b[p];
|
34440 | }
|
34441 | };
|
34442 |
|
34443 | return _extendStatics(d, b);
|
34444 | };
|
34445 |
|
34446 | return function (d, b) {
|
34447 | _extendStatics(d, b);
|
34448 |
|
34449 | function __() {
|
34450 | this.constructor = d;
|
34451 | }
|
34452 |
|
34453 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
34454 | };
|
34455 | }();
|
34456 |
|
34457 | var __assign = undefined && undefined.__assign || function () {
|
34458 | __assign = Object.assign || function (t) {
|
34459 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
34460 | s = arguments[i];
|
34461 |
|
34462 | for (var p in s) {
|
34463 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
34464 | }
|
34465 | }
|
34466 |
|
34467 | return t;
|
34468 | };
|
34469 |
|
34470 | return __assign.apply(this, arguments);
|
34471 | };
|
34472 |
|
34473 |
|
34474 |
|
34475 |
|
34476 |
|
34477 |
|
34478 | var Icons =
|
34479 |
|
34480 | function (_super) {
|
34481 | __extends(Icons, _super);
|
34482 |
|
34483 | function Icons(options) {
|
34484 | if (options === void 0) {
|
34485 | options = {};
|
34486 | }
|
34487 |
|
34488 | var _this = _super.call(this) || this;
|
34489 |
|
34490 | _this.iconfont = 'mdi';
|
34491 | _this.values = _presets__WEBPACK_IMPORTED_MODULE_1__["default"][_this.iconfont];
|
34492 | if (options.iconfont) _this.iconfont = options.iconfont;
|
34493 | _this.values = __assign({}, _presets__WEBPACK_IMPORTED_MODULE_1__["default"][_this.iconfont], options.values || {});
|
34494 | return _this;
|
34495 | }
|
34496 |
|
34497 | Icons.property = 'icons';
|
34498 | return Icons;
|
34499 | }(_service__WEBPACK_IMPORTED_MODULE_0__["Service"]);
|
34500 |
|
34501 |
|
34502 |
|
34503 | }),
|
34504 |
|
34505 | "./src/services/icons/presets/fa.ts":
|
34506 |
|
34507 |
|
34508 |
|
34509 |
|
34510 | (function(module, __webpack_exports__, __webpack_require__) {
|
34511 |
|
34512 | "use strict";
|
34513 | __webpack_require__.r(__webpack_exports__);
|
34514 | var icons = {
|
34515 | complete: 'fas fa-check',
|
34516 | cancel: 'fas fa-times-circle',
|
34517 | close: 'fas fa-times',
|
34518 | delete: 'fas fa-times-circle',
|
34519 | clear: 'fas fa-times-circle',
|
34520 | success: 'fas fa-check-circle',
|
34521 | info: 'fas fa-info-circle',
|
34522 | warning: 'fas fa-exclamation',
|
34523 | error: 'fas fa-exclamation-triangle',
|
34524 | prev: 'fas fa-chevron-left',
|
34525 | next: 'fas fa-chevron-right',
|
34526 | checkboxOn: 'fas fa-check-square',
|
34527 | checkboxOff: 'far fa-square',
|
34528 | checkboxIndeterminate: 'fas fa-minus-square',
|
34529 | delimiter: 'fas fa-circle',
|
34530 | sort: 'fas fa-sort-up',
|
34531 | expand: 'fas fa-chevron-down',
|
34532 | menu: 'fas fa-bars',
|
34533 | subgroup: 'fas fa-caret-down',
|
34534 | dropdown: 'fas fa-caret-down',
|
34535 | radioOn: 'far fa-dot-circle',
|
34536 | radioOff: 'far fa-circle',
|
34537 | edit: 'fas fa-edit',
|
34538 | ratingEmpty: 'far fa-star',
|
34539 | ratingFull: 'fas fa-star',
|
34540 | ratingHalf: 'fas fa-star-half',
|
34541 | loading: 'fas fa-sync',
|
34542 | first: 'fas fa-step-backward',
|
34543 | last: 'fas fa-step-forward',
|
34544 | unfold: 'fas fa-arrows-alt-v',
|
34545 | file: 'fas fa-paperclip',
|
34546 | plus: 'fas fa-plus',
|
34547 | minus: 'fas fa-minus'
|
34548 | };
|
34549 | __webpack_exports__["default"] = (icons);
|
34550 |
|
34551 | }),
|
34552 |
|
34553 | "./src/services/icons/presets/fa4.ts":
|
34554 |
|
34555 |
|
34556 |
|
34557 |
|
34558 | (function(module, __webpack_exports__, __webpack_require__) {
|
34559 |
|
34560 | "use strict";
|
34561 | __webpack_require__.r(__webpack_exports__);
|
34562 | var icons = {
|
34563 | complete: 'fa fa-check',
|
34564 | cancel: 'fa fa-times-circle',
|
34565 | close: 'fa fa-times',
|
34566 | delete: 'fa fa-times-circle',
|
34567 | clear: 'fa fa-times-circle',
|
34568 | success: 'fa fa-check-circle',
|
34569 | info: 'fa fa-info-circle',
|
34570 | warning: 'fa fa-exclamation',
|
34571 | error: 'fa fa-exclamation-triangle',
|
34572 | prev: 'fa fa-chevron-left',
|
34573 | next: 'fa fa-chevron-right',
|
34574 | checkboxOn: 'fa fa-check-square',
|
34575 | checkboxOff: 'far fa-square',
|
34576 | checkboxIndeterminate: 'fa fa-minus-square',
|
34577 | delimiter: 'fa fa-circle',
|
34578 | sort: 'fa fa-sort-up',
|
34579 | expand: 'fa fa-chevron-down',
|
34580 | menu: 'fa fa-bars',
|
34581 | subgroup: 'fa fa-caret-down',
|
34582 | dropdown: 'fa fa-caret-down',
|
34583 | radioOn: 'fa fa-dot-circle-o',
|
34584 | radioOff: 'fa fa-circle-o',
|
34585 | edit: 'fa fa-pencil',
|
34586 | ratingEmpty: 'fa fa-star-o',
|
34587 | ratingFull: 'fa fa-star',
|
34588 | ratingHalf: 'fa fa-star-half-o',
|
34589 | loading: 'fa fa-refresh',
|
34590 | first: 'fa fa-step-backward',
|
34591 | last: 'fa fa-step-forward',
|
34592 | unfold: 'fa fa-angle-double-down',
|
34593 | file: 'fa fa-paperclip',
|
34594 | plus: 'fa fa-plus',
|
34595 | minus: 'fa fa-minus'
|
34596 | };
|
34597 | __webpack_exports__["default"] = (icons);
|
34598 |
|
34599 | }),
|
34600 |
|
34601 | "./src/services/icons/presets/index.ts":
|
34602 |
|
34603 |
|
34604 |
|
34605 |
|
34606 | (function(module, __webpack_exports__, __webpack_require__) {
|
34607 |
|
34608 | "use strict";
|
34609 | __webpack_require__.r(__webpack_exports__);
|
34610 | var _mdi_svg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/services/icons/presets/mdi-svg.ts");
|
34611 | var _md__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/services/icons/presets/md.ts");
|
34612 | var _mdi__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/services/icons/presets/mdi.ts");
|
34613 | var _fa__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/services/icons/presets/fa.ts");
|
34614 | var _fa4__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/services/icons/presets/fa4.ts");
|
34615 |
|
34616 |
|
34617 |
|
34618 |
|
34619 |
|
34620 | __webpack_exports__["default"] = (Object.freeze({
|
34621 | mdiSvg: _mdi_svg__WEBPACK_IMPORTED_MODULE_0__["default"],
|
34622 | md: _md__WEBPACK_IMPORTED_MODULE_1__["default"],
|
34623 | mdi: _mdi__WEBPACK_IMPORTED_MODULE_2__["default"],
|
34624 | fa: _fa__WEBPACK_IMPORTED_MODULE_3__["default"],
|
34625 | fa4: _fa4__WEBPACK_IMPORTED_MODULE_4__["default"]
|
34626 | }));
|
34627 |
|
34628 | }),
|
34629 |
|
34630 | "./src/services/icons/presets/md.ts":
|
34631 |
|
34632 |
|
34633 |
|
34634 |
|
34635 | (function(module, __webpack_exports__, __webpack_require__) {
|
34636 |
|
34637 | "use strict";
|
34638 | __webpack_require__.r(__webpack_exports__);
|
34639 | var icons = {
|
34640 | complete: 'check',
|
34641 | cancel: 'cancel',
|
34642 | close: 'close',
|
34643 | delete: 'cancel',
|
34644 | clear: 'clear',
|
34645 | success: 'check_circle',
|
34646 | info: 'info',
|
34647 | warning: 'priority_high',
|
34648 | error: 'warning',
|
34649 | prev: 'chevron_left',
|
34650 | next: 'chevron_right',
|
34651 | checkboxOn: 'check_box',
|
34652 | checkboxOff: 'check_box_outline_blank',
|
34653 | checkboxIndeterminate: 'indeterminate_check_box',
|
34654 | delimiter: 'fiber_manual_record',
|
34655 | sort: 'arrow_upward',
|
34656 | expand: 'keyboard_arrow_down',
|
34657 | menu: 'menu',
|
34658 | subgroup: 'arrow_drop_down',
|
34659 | dropdown: 'arrow_drop_down',
|
34660 | radioOn: 'radio_button_checked',
|
34661 | radioOff: 'radio_button_unchecked',
|
34662 | edit: 'edit',
|
34663 | ratingEmpty: 'star_border',
|
34664 | ratingFull: 'star',
|
34665 | ratingHalf: 'star_half',
|
34666 | loading: 'cached',
|
34667 | first: 'first_page',
|
34668 | last: 'last_page',
|
34669 | unfold: 'unfold_more',
|
34670 | file: 'attach_file',
|
34671 | plus: 'add',
|
34672 | minus: 'remove'
|
34673 | };
|
34674 | __webpack_exports__["default"] = (icons);
|
34675 |
|
34676 | }),
|
34677 |
|
34678 | "./src/services/icons/presets/mdi-svg.ts":
|
34679 |
|
34680 |
|
34681 |
|
34682 |
|
34683 | (function(module, __webpack_exports__, __webpack_require__) {
|
34684 |
|
34685 | "use strict";
|
34686 | __webpack_require__.r(__webpack_exports__);
|
34687 | var icons = {
|
34688 | complete: 'M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z',
|
34689 | 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',
|
34690 | 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',
|
34691 | 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',
|
34692 | 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',
|
34693 | 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',
|
34694 | 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',
|
34695 | warning: 'M11,4.5H13V15.5H11V4.5M13,17.5V19.5H11V17.5H13Z',
|
34696 | error: 'M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z',
|
34697 | prev: 'M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z',
|
34698 | next: 'M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z',
|
34699 | 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',
|
34700 | 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',
|
34701 | 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',
|
34702 | 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',
|
34703 | sort: 'M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z',
|
34704 | expand: 'M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z',
|
34705 | menu: 'M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z',
|
34706 | subgroup: 'M7,10L12,15L17,10H7Z',
|
34707 | dropdown: 'M7,10L12,15L17,10H7Z',
|
34708 | 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',
|
34709 | 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',
|
34710 | 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',
|
34711 | 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',
|
34712 | 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',
|
34713 | 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',
|
34714 | 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',
|
34715 | first: 'M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z',
|
34716 | last: 'M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z',
|
34717 | 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',
|
34718 | 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',
|
34719 | plus: 'M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z',
|
34720 | minus: 'M19,13H5V11H19V13Z'
|
34721 | };
|
34722 | __webpack_exports__["default"] = (icons);
|
34723 |
|
34724 | }),
|
34725 |
|
34726 | "./src/services/icons/presets/mdi.ts":
|
34727 |
|
34728 |
|
34729 |
|
34730 |
|
34731 | (function(module, __webpack_exports__, __webpack_require__) {
|
34732 |
|
34733 | "use strict";
|
34734 | __webpack_require__.r(__webpack_exports__);
|
34735 | var icons = {
|
34736 | complete: 'mdi-check',
|
34737 | cancel: 'mdi-close-circle',
|
34738 | close: 'mdi-close',
|
34739 | delete: 'mdi-close-circle',
|
34740 | clear: 'mdi-close',
|
34741 | success: 'mdi-check-circle',
|
34742 | info: 'mdi-information',
|
34743 | warning: 'mdi-exclamation',
|
34744 | error: 'mdi-alert',
|
34745 | prev: 'mdi-chevron-left',
|
34746 | next: 'mdi-chevron-right',
|
34747 | checkboxOn: 'mdi-checkbox-marked',
|
34748 | checkboxOff: 'mdi-checkbox-blank-outline',
|
34749 | checkboxIndeterminate: 'mdi-minus-box',
|
34750 | delimiter: 'mdi-circle',
|
34751 | sort: 'mdi-arrow-up',
|
34752 | expand: 'mdi-chevron-down',
|
34753 | menu: 'mdi-menu',
|
34754 | subgroup: 'mdi-menu-down',
|
34755 | dropdown: 'mdi-menu-down',
|
34756 | radioOn: 'mdi-radiobox-marked',
|
34757 | radioOff: 'mdi-radiobox-blank',
|
34758 | edit: 'mdi-pencil',
|
34759 | ratingEmpty: 'mdi-star-outline',
|
34760 | ratingFull: 'mdi-star',
|
34761 | ratingHalf: 'mdi-star-half',
|
34762 | loading: 'mdi-cached',
|
34763 | first: 'mdi-page-first',
|
34764 | last: 'mdi-page-last',
|
34765 | unfold: 'mdi-unfold-more-horizontal',
|
34766 | file: 'mdi-paperclip',
|
34767 | plus: 'mdi-plus',
|
34768 | minus: 'mdi-minus'
|
34769 | };
|
34770 | __webpack_exports__["default"] = (icons);
|
34771 |
|
34772 | }),
|
34773 |
|
34774 | "./src/services/index.ts":
|
34775 |
|
34776 |
|
34777 |
|
34778 |
|
34779 | (function(module, __webpack_exports__, __webpack_require__) {
|
34780 |
|
34781 | "use strict";
|
34782 | __webpack_require__.r(__webpack_exports__);
|
34783 | var _application__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/services/application/index.ts");
|
34784 | __webpack_require__.d(__webpack_exports__, "Application", function() { return _application__WEBPACK_IMPORTED_MODULE_0__["Application"]; });
|
34785 |
|
34786 | var _breakpoint__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/services/breakpoint/index.ts");
|
34787 | __webpack_require__.d(__webpack_exports__, "Breakpoint", function() { return _breakpoint__WEBPACK_IMPORTED_MODULE_1__["Breakpoint"]; });
|
34788 |
|
34789 | var _goto__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/services/goto/index.ts");
|
34790 | __webpack_require__.d(__webpack_exports__, "Goto", function() { return _goto__WEBPACK_IMPORTED_MODULE_2__["Goto"]; });
|
34791 |
|
34792 | var _icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/services/icons/index.ts");
|
34793 | __webpack_require__.d(__webpack_exports__, "Icons", function() { return _icons__WEBPACK_IMPORTED_MODULE_3__["Icons"]; });
|
34794 |
|
34795 | var _lang__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( "./src/services/lang/index.ts");
|
34796 | __webpack_require__.d(__webpack_exports__, "Lang", function() { return _lang__WEBPACK_IMPORTED_MODULE_4__["Lang"]; });
|
34797 |
|
34798 | var _theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( "./src/services/theme/index.ts");
|
34799 | __webpack_require__.d(__webpack_exports__, "Theme", function() { return _theme__WEBPACK_IMPORTED_MODULE_5__["Theme"]; });
|
34800 |
|
34801 |
|
34802 |
|
34803 |
|
34804 |
|
34805 |
|
34806 |
|
34807 |
|
34808 | }),
|
34809 |
|
34810 | "./src/services/lang/index.ts":
|
34811 |
|
34812 |
|
34813 |
|
34814 |
|
34815 | (function(module, __webpack_exports__, __webpack_require__) {
|
34816 |
|
34817 | "use strict";
|
34818 | __webpack_require__.r(__webpack_exports__);
|
34819 | __webpack_require__.d(__webpack_exports__, "Lang", function() { return Lang; });
|
34820 | var _service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/services/service/index.ts");
|
34821 | var _locale_en__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/locale/en.ts");
|
34822 | var _util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/helpers.ts");
|
34823 | var _util_console__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( "./src/util/console.ts");
|
34824 | var __extends = undefined && undefined.__extends || function () {
|
34825 | var _extendStatics = function extendStatics(d, b) {
|
34826 | _extendStatics = Object.setPrototypeOf || {
|
34827 | __proto__: []
|
34828 | } instanceof Array && function (d, b) {
|
34829 | d.__proto__ = b;
|
34830 | } || function (d, b) {
|
34831 | for (var p in b) {
|
34832 | if (b.hasOwnProperty(p)) d[p] = b[p];
|
34833 | }
|
34834 | };
|
34835 |
|
34836 | return _extendStatics(d, b);
|
34837 | };
|
34838 |
|
34839 | return function (d, b) {
|
34840 | _extendStatics(d, b);
|
34841 |
|
34842 | function __() {
|
34843 | this.constructor = d;
|
34844 | }
|
34845 |
|
34846 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
34847 | };
|
34848 | }();
|
34849 |
|
34850 | var __read = undefined && undefined.__read || function (o, n) {
|
34851 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
34852 | if (!m) return o;
|
34853 | var i = m.call(o),
|
34854 | r,
|
34855 | ar = [],
|
34856 | e;
|
34857 |
|
34858 | try {
|
34859 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
34860 | ar.push(r.value);
|
34861 | }
|
34862 | } catch (error) {
|
34863 | e = {
|
34864 | error: error
|
34865 | };
|
34866 | } finally {
|
34867 | try {
|
34868 | if (r && !r.done && (m = i["return"])) m.call(i);
|
34869 | } finally {
|
34870 | if (e) throw e.error;
|
34871 | }
|
34872 | }
|
34873 |
|
34874 | return ar;
|
34875 | };
|
34876 |
|
34877 | var __spread = undefined && undefined.__spread || function () {
|
34878 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
34879 | ar = ar.concat(__read(arguments[i]));
|
34880 | }
|
34881 |
|
34882 | return ar;
|
34883 | };
|
34884 |
|
34885 |
|
34886 |
|
34887 |
|
34888 |
|
34889 |
|
34890 |
|
34891 |
|
34892 | var LANG_PREFIX = '$vuetify.';
|
34893 | var fallback = Symbol('Lang fallback');
|
34894 |
|
34895 | function getTranslation(locale, key, usingFallback) {
|
34896 | if (usingFallback === void 0) {
|
34897 | usingFallback = false;
|
34898 | }
|
34899 |
|
34900 | var shortKey = key.replace(LANG_PREFIX, '');
|
34901 | var translation = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["getObjectValueByPath"])(locale, shortKey, fallback);
|
34902 |
|
34903 | if (translation === fallback) {
|
34904 | if (usingFallback) {
|
34905 | Object(_util_console__WEBPACK_IMPORTED_MODULE_3__["consoleError"])("Translation key \"" + shortKey + "\" not found in fallback");
|
34906 | translation = key;
|
34907 | } else {
|
34908 | Object(_util_console__WEBPACK_IMPORTED_MODULE_3__["consoleWarn"])("Translation key \"" + shortKey + "\" not found, falling back to default");
|
34909 | translation = getTranslation(_locale_en__WEBPACK_IMPORTED_MODULE_1__["default"], key, true);
|
34910 | }
|
34911 | }
|
34912 |
|
34913 | return translation;
|
34914 | }
|
34915 |
|
34916 | var Lang =
|
34917 |
|
34918 | function (_super) {
|
34919 | __extends(Lang, _super);
|
34920 |
|
34921 | function Lang(options) {
|
34922 | if (options === void 0) {
|
34923 | options = {};
|
34924 | }
|
34925 |
|
34926 | var _this = _super.call(this) || this;
|
34927 |
|
34928 | _this.current = options.current || 'en';
|
34929 | _this.locales = Object.assign({
|
34930 | en: _locale_en__WEBPACK_IMPORTED_MODULE_1__["default"]
|
34931 | }, options.locales);
|
34932 | _this.translator = options.t;
|
34933 | return _this;
|
34934 | }
|
34935 |
|
34936 | Lang.prototype.t = function (key) {
|
34937 | var params = [];
|
34938 |
|
34939 | for (var _i = 1; _i < arguments.length; _i++) {
|
34940 | params[_i - 1] = arguments[_i];
|
34941 | }
|
34942 |
|
34943 | if (!key.startsWith(LANG_PREFIX)) return this.replace(key, params);
|
34944 | if (this.translator) return this.translator.apply(this, __spread([key], params));
|
34945 | var translation = getTranslation(this.locales[this.current], key);
|
34946 | return this.replace(translation, params);
|
34947 | };
|
34948 |
|
34949 | Lang.prototype.replace = function (str, params) {
|
34950 | return str.replace(/\{(\d+)\}/g, function (match, index) {
|
34951 |
|
34952 | return String(params[+index]);
|
34953 | });
|
34954 | };
|
34955 |
|
34956 | Lang.property = 'lang';
|
34957 | return Lang;
|
34958 | }(_service__WEBPACK_IMPORTED_MODULE_0__["Service"]);
|
34959 |
|
34960 |
|
34961 |
|
34962 | }),
|
34963 |
|
34964 | "./src/services/service/index.ts":
|
34965 |
|
34966 |
|
34967 |
|
34968 |
|
34969 | (function(module, __webpack_exports__, __webpack_require__) {
|
34970 |
|
34971 | "use strict";
|
34972 | __webpack_require__.r(__webpack_exports__);
|
34973 | __webpack_require__.d(__webpack_exports__, "Service", function() { return Service; });
|
34974 | var Service =
|
34975 |
|
34976 | function () {
|
34977 | function Service() {
|
34978 | this.framework = {};
|
34979 | }
|
34980 |
|
34981 | Service.prototype.init = function (root, ssrContext) {};
|
34982 |
|
34983 | return Service;
|
34984 | }();
|
34985 |
|
34986 |
|
34987 |
|
34988 | }),
|
34989 |
|
34990 | "./src/services/theme/index.ts":
|
34991 |
|
34992 |
|
34993 |
|
34994 |
|
34995 | (function(module, __webpack_exports__, __webpack_require__) {
|
34996 |
|
34997 | "use strict";
|
34998 | __webpack_require__.r(__webpack_exports__);
|
34999 | __webpack_require__.d(__webpack_exports__, "Theme", function() { return Theme; });
|
35000 | var _service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/services/service/index.ts");
|
35001 | var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/services/theme/utils.ts");
|
35002 | var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "vue");
|
35003 | var vue__WEBPACK_IMPORTED_MODULE_2___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
|
35004 | var __extends = undefined && undefined.__extends || function () {
|
35005 | var _extendStatics = function extendStatics(d, b) {
|
35006 | _extendStatics = Object.setPrototypeOf || {
|
35007 | __proto__: []
|
35008 | } instanceof Array && function (d, b) {
|
35009 | d.__proto__ = b;
|
35010 | } || function (d, b) {
|
35011 | for (var p in b) {
|
35012 | if (b.hasOwnProperty(p)) d[p] = b[p];
|
35013 | }
|
35014 | };
|
35015 |
|
35016 | return _extendStatics(d, b);
|
35017 | };
|
35018 |
|
35019 | return function (d, b) {
|
35020 | _extendStatics(d, b);
|
35021 |
|
35022 | function __() {
|
35023 | this.constructor = d;
|
35024 | }
|
35025 |
|
35026 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
35027 | };
|
35028 | }();
|
35029 |
|
35030 |
|
35031 |
|
35032 |
|
35033 |
|
35034 |
|
35035 |
|
35036 |
|
35037 |
|
35038 |
|
35039 | var Theme =
|
35040 |
|
35041 | function (_super) {
|
35042 | __extends(Theme, _super);
|
35043 |
|
35044 | function Theme(options) {
|
35045 | if (options === void 0) {
|
35046 | options = {};
|
35047 | }
|
35048 |
|
35049 | var _this = _super.call(this) || this;
|
35050 |
|
35051 | _this.disabled = false;
|
35052 | _this.themes = {
|
35053 | light: {
|
35054 | primary: '#1976D2',
|
35055 | secondary: '#424242',
|
35056 | accent: '#82B1FF',
|
35057 | error: '#FF5252',
|
35058 | info: '#2196F3',
|
35059 | success: '#4CAF50',
|
35060 | warning: '#FB8C00'
|
35061 | },
|
35062 | dark: {
|
35063 | primary: '#2196F3',
|
35064 | secondary: '#424242',
|
35065 | accent: '#FF4081',
|
35066 | error: '#FF5252',
|
35067 | info: '#2196F3',
|
35068 | success: '#4CAF50',
|
35069 | warning: '#FB8C00'
|
35070 | }
|
35071 | };
|
35072 | _this.defaults = _this.themes;
|
35073 | _this.isDark = null;
|
35074 | _this.vueInstance = null;
|
35075 | _this.vueMeta = false;
|
35076 |
|
35077 | if (options.disable) {
|
35078 | _this.disabled = true;
|
35079 | return _this;
|
35080 | }
|
35081 |
|
35082 | _this.options = options.options;
|
35083 | _this.dark = Boolean(options.dark);
|
35084 | var themes = options.themes || {};
|
35085 | _this.themes = {
|
35086 | dark: _this.fillVariant(themes.dark, true),
|
35087 | light: _this.fillVariant(themes.light, false)
|
35088 | };
|
35089 | return _this;
|
35090 | }
|
35091 |
|
35092 | Object.defineProperty(Theme.prototype, "css", {
|
35093 |
|
35094 |
|
35095 | set: function set(val) {
|
35096 | if (this.vueMeta) return;
|
35097 | this.checkOrCreateStyleElement() && (this.styleEl.innerHTML = val);
|
35098 | },
|
35099 | enumerable: true,
|
35100 | configurable: true
|
35101 | });
|
35102 | Object.defineProperty(Theme.prototype, "dark", {
|
35103 | get: function get() {
|
35104 | return Boolean(this.isDark);
|
35105 | },
|
35106 | set: function set(val) {
|
35107 | var oldDark = this.isDark;
|
35108 | this.isDark = val;
|
35109 |
|
35110 |
|
35111 | oldDark != null && this.applyTheme();
|
35112 | },
|
35113 | enumerable: true,
|
35114 | configurable: true
|
35115 | });
|
35116 |
|
35117 |
|
35118 | Theme.prototype.applyTheme = function () {
|
35119 | if (this.disabled) return this.clearCss();
|
35120 | this.css = this.generatedStyles;
|
35121 | };
|
35122 |
|
35123 | Theme.prototype.clearCss = function () {
|
35124 | this.css = '';
|
35125 | };
|
35126 |
|
35127 |
|
35128 |
|
35129 |
|
35130 | Theme.prototype.init = function (root, ssrContext) {
|
35131 | if (this.disabled) return;
|
35132 |
|
35133 |
|
35134 | if (root.$meta) {
|
35135 | this.initVueMeta(root);
|
35136 | } else if (ssrContext) {
|
35137 | this.initSSR(ssrContext);
|
35138 | }
|
35139 |
|
35140 | this.initTheme();
|
35141 | };
|
35142 |
|
35143 |
|
35144 | Theme.prototype.setTheme = function (theme, value) {
|
35145 | this.themes[theme] = Object.assign(this.themes[theme], value);
|
35146 | this.applyTheme();
|
35147 | };
|
35148 |
|
35149 |
|
35150 | Theme.prototype.resetThemes = function () {
|
35151 | this.themes.light = Object.assign({}, this.defaults.light);
|
35152 | this.themes.dark = Object.assign({}, this.defaults.dark);
|
35153 | this.applyTheme();
|
35154 | };
|
35155 |
|
35156 |
|
35157 | Theme.prototype.checkOrCreateStyleElement = function () {
|
35158 | this.styleEl = document.getElementById('vuetify-theme-stylesheet');
|
35159 |
|
35160 |
|
35161 | if (this.styleEl) return true;
|
35162 | this.genStyleElement();
|
35163 |
|
35164 | return Boolean(this.styleEl);
|
35165 | };
|
35166 |
|
35167 | Theme.prototype.fillVariant = function (theme, dark) {
|
35168 | if (theme === void 0) {
|
35169 | theme = {};
|
35170 | }
|
35171 |
|
35172 | var defaultTheme = this.themes[dark ? 'dark' : 'light'];
|
35173 | return Object.assign({}, defaultTheme, theme);
|
35174 | };
|
35175 |
|
35176 |
|
35177 |
|
35178 | Theme.prototype.genStyleElement = function () {
|
35179 | if (typeof document === 'undefined') return;
|
35180 |
|
35181 |
|
35182 | var options = this.options || {};
|
35183 | this.styleEl = document.createElement('style');
|
35184 | this.styleEl.type = 'text/css';
|
35185 | this.styleEl.id = 'vuetify-theme-stylesheet';
|
35186 |
|
35187 | if (options.cspNonce) {
|
35188 | this.styleEl.setAttribute('nonce', options.cspNonce);
|
35189 | }
|
35190 |
|
35191 | document.head.appendChild(this.styleEl);
|
35192 | };
|
35193 |
|
35194 | Theme.prototype.initVueMeta = function (root) {
|
35195 | var _this = this;
|
35196 |
|
35197 | this.vueMeta = true;
|
35198 | var meta = root.$meta();
|
35199 | var metaKeyName = typeof meta.getOptions === 'function' ? meta.getOptions().keyName : 'metaInfo';
|
35200 | var metaInfo = root.$options[metaKeyName] || {};
|
35201 |
|
35202 | root.$options[metaKeyName] = function () {
|
35203 | metaInfo.style = metaInfo.style || [];
|
35204 | var vuetifyStylesheet = metaInfo.style.find(function (s) {
|
35205 | return s.id === 'vuetify-theme-stylesheet';
|
35206 | });
|
35207 |
|
35208 | if (!vuetifyStylesheet) {
|
35209 | metaInfo.style.push({
|
35210 | cssText: _this.generatedStyles,
|
35211 | type: 'text/css',
|
35212 | id: 'vuetify-theme-stylesheet',
|
35213 | nonce: _this.options && _this.options.cspNonce || undefined
|
35214 | });
|
35215 | } else {
|
35216 | vuetifyStylesheet.cssText = _this.generatedStyles;
|
35217 | }
|
35218 |
|
35219 | return metaInfo;
|
35220 | };
|
35221 | };
|
35222 |
|
35223 | Theme.prototype.initSSR = function (ssrContext) {
|
35224 | var options = this.options || {};
|
35225 |
|
35226 | var nonce = options.cspNonce ? " nonce=\"" + options.cspNonce + "\"" : '';
|
35227 | ssrContext.head = ssrContext.head || '';
|
35228 | ssrContext.head += "<style type=\"text/css\" id=\"vuetify-theme-stylesheet\"" + nonce + ">" + this.generatedStyles + "</style>";
|
35229 | };
|
35230 |
|
35231 | Theme.prototype.initTheme = function () {
|
35232 | var _this = this;
|
35233 |
|
35234 |
|
35235 | if (typeof document === 'undefined') return;
|
35236 |
|
35237 |
|
35238 | if (this.vueInstance) this.vueInstance.$destroy();
|
35239 |
|
35240 |
|
35241 |
|
35242 | this.vueInstance = new vue__WEBPACK_IMPORTED_MODULE_2___default.a({
|
35243 | data: {
|
35244 | themes: this.themes
|
35245 | },
|
35246 | watch: {
|
35247 | themes: {
|
35248 | immediate: true,
|
35249 | deep: true,
|
35250 | handler: function handler() {
|
35251 | return _this.applyTheme();
|
35252 | }
|
35253 | }
|
35254 | }
|
35255 | });
|
35256 | };
|
35257 |
|
35258 | Object.defineProperty(Theme.prototype, "currentTheme", {
|
35259 | get: function get() {
|
35260 | var target = this.dark ? 'dark' : 'light';
|
35261 | return this.themes[target];
|
35262 | },
|
35263 | enumerable: true,
|
35264 | configurable: true
|
35265 | });
|
35266 | Object.defineProperty(Theme.prototype, "generatedStyles", {
|
35267 | get: function get() {
|
35268 | var theme = this.parsedTheme;
|
35269 |
|
35270 |
|
35271 | var options = this.options || {};
|
35272 | var css;
|
35273 |
|
35274 | if (options.themeCache != null) {
|
35275 | css = options.themeCache.get(theme);
|
35276 |
|
35277 |
|
35278 | if (css != null) return css;
|
35279 | }
|
35280 |
|
35281 | css = _utils__WEBPACK_IMPORTED_MODULE_1__["genStyles"](theme, options.customProperties);
|
35282 |
|
35283 | if (options.minifyTheme != null) {
|
35284 | css = options.minifyTheme(css);
|
35285 | }
|
35286 |
|
35287 | if (options.themeCache != null) {
|
35288 | options.themeCache.set(theme, css);
|
35289 | }
|
35290 |
|
35291 | return css;
|
35292 | },
|
35293 | enumerable: true,
|
35294 | configurable: true
|
35295 | });
|
35296 | Object.defineProperty(Theme.prototype, "parsedTheme", {
|
35297 | get: function get() {
|
35298 |
|
35299 | var theme = this.currentTheme || {};
|
35300 | return _utils__WEBPACK_IMPORTED_MODULE_1__["parse"](theme);
|
35301 | },
|
35302 | enumerable: true,
|
35303 | configurable: true
|
35304 | });
|
35305 | Theme.property = 'theme';
|
35306 | return Theme;
|
35307 | }(_service__WEBPACK_IMPORTED_MODULE_0__["Service"]);
|
35308 |
|
35309 |
|
35310 |
|
35311 | }),
|
35312 |
|
35313 | "./src/services/theme/utils.ts":
|
35314 |
|
35315 |
|
35316 |
|
35317 |
|
35318 | (function(module, __webpack_exports__, __webpack_require__) {
|
35319 |
|
35320 | "use strict";
|
35321 | __webpack_require__.r(__webpack_exports__);
|
35322 | __webpack_require__.d(__webpack_exports__, "parse", function() { return parse; });
|
35323 | __webpack_require__.d(__webpack_exports__, "genStyles", function() { return genStyles; });
|
35324 | __webpack_require__.d(__webpack_exports__, "genVariations", function() { return genVariations; });
|
35325 | var _util_colorUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/colorUtils.ts");
|
35326 | var _util_color_transformSRGB__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/color/transformSRGB.ts");
|
35327 | var _util_color_transformCIELAB__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/color/transformCIELAB.ts");
|
35328 | 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); }
|
35329 |
|
35330 | var __rest = undefined && undefined.__rest || function (s, e) {
|
35331 | var t = {};
|
35332 |
|
35333 | for (var p in s) {
|
35334 | if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
35335 | }
|
35336 |
|
35337 | if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
35338 | if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
35339 | }
|
35340 | return t;
|
35341 | };
|
35342 |
|
35343 | var __read = undefined && undefined.__read || function (o, n) {
|
35344 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
35345 | if (!m) return o;
|
35346 | var i = m.call(o),
|
35347 | r,
|
35348 | ar = [],
|
35349 | e;
|
35350 |
|
35351 | try {
|
35352 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
35353 | ar.push(r.value);
|
35354 | }
|
35355 | } catch (error) {
|
35356 | e = {
|
35357 | error: error
|
35358 | };
|
35359 | } finally {
|
35360 | try {
|
35361 | if (r && !r.done && (m = i["return"])) m.call(i);
|
35362 | } finally {
|
35363 | if (e) throw e.error;
|
35364 | }
|
35365 | }
|
35366 |
|
35367 | return ar;
|
35368 | };
|
35369 |
|
35370 |
|
35371 |
|
35372 |
|
35373 | function parse(theme, isItem) {
|
35374 | if (isItem === void 0) {
|
35375 | isItem = false;
|
35376 | }
|
35377 |
|
35378 | var anchor = theme.anchor,
|
35379 | variant = __rest(theme, ["anchor"]);
|
35380 |
|
35381 | var colors = Object.keys(variant);
|
35382 | var parsedTheme = {};
|
35383 |
|
35384 | for (var i = 0; i < colors.length; ++i) {
|
35385 | var name = colors[i];
|
35386 | var value = theme[name];
|
35387 | if (value == null) continue;
|
35388 |
|
35389 | if (isItem) {
|
35390 |
|
35391 | if (name === 'base' || name.startsWith('lighten') || name.startsWith('darken')) {
|
35392 | parsedTheme[name] = Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["colorToHex"])(value);
|
35393 | }
|
35394 | } else if (_typeof(value) === 'object') {
|
35395 | parsedTheme[name] = parse(value, true);
|
35396 | } else {
|
35397 | parsedTheme[name] = genVariations(name, Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["colorToInt"])(value));
|
35398 | }
|
35399 | }
|
35400 |
|
35401 | if (!isItem) {
|
35402 | parsedTheme.anchor = anchor || parsedTheme.base || parsedTheme.primary.base;
|
35403 | }
|
35404 |
|
35405 | return parsedTheme;
|
35406 | }
|
35407 |
|
35408 |
|
35409 |
|
35410 |
|
35411 | var genBaseColor = function genBaseColor(name, value) {
|
35412 | return "\n.v-application ." + name + " {\n background-color: " + value + " !important;\n border-color: " + value + " !important;\n}\n.v-application ." + name + "--text {\n color: " + value + " !important;\n caret-color: " + value + " !important;\n}";
|
35413 | };
|
35414 |
|
35415 |
|
35416 |
|
35417 |
|
35418 |
|
35419 | var genVariantColor = function genVariantColor(name, variant, value) {
|
35420 | var _a = __read(variant.split(/(\d)/, 2), 2),
|
35421 | type = _a[0],
|
35422 | n = _a[1];
|
35423 |
|
35424 | return "\n.v-application ." + name + "." + type + "-" + n + " {\n background-color: " + value + " !important;\n border-color: " + value + " !important;\n}\n.v-application ." + name + "--text.text--" + type + "-" + n + " {\n color: " + value + " !important;\n caret-color: " + value + " !important;\n}";
|
35425 | };
|
35426 |
|
35427 | var genColorVariableName = function genColorVariableName(name, variant) {
|
35428 | if (variant === void 0) {
|
35429 | variant = 'base';
|
35430 | }
|
35431 |
|
35432 | return "--v-" + name + "-" + variant;
|
35433 | };
|
35434 |
|
35435 | var genColorVariable = function genColorVariable(name, variant) {
|
35436 | if (variant === void 0) {
|
35437 | variant = 'base';
|
35438 | }
|
35439 |
|
35440 | return "var(" + genColorVariableName(name, variant) + ")";
|
35441 | };
|
35442 |
|
35443 | function genStyles(theme, cssVar) {
|
35444 | if (cssVar === void 0) {
|
35445 | cssVar = false;
|
35446 | }
|
35447 |
|
35448 | var anchor = theme.anchor,
|
35449 | variant = __rest(theme, ["anchor"]);
|
35450 |
|
35451 | var colors = Object.keys(variant);
|
35452 | if (!colors.length) return '';
|
35453 | var variablesCss = '';
|
35454 | var css = '';
|
35455 | var aColor = cssVar ? genColorVariable('anchor') : anchor;
|
35456 | css += ".v-application a { color: " + aColor + "; }";
|
35457 | cssVar && (variablesCss += " " + genColorVariableName('anchor') + ": " + anchor + ";\n");
|
35458 |
|
35459 | for (var i = 0; i < colors.length; ++i) {
|
35460 | var name = colors[i];
|
35461 | var value = theme[name];
|
35462 | css += genBaseColor(name, cssVar ? genColorVariable(name) : value.base);
|
35463 | cssVar && (variablesCss += " " + genColorVariableName(name) + ": " + value.base + ";\n");
|
35464 | var variants = Object.keys(value);
|
35465 |
|
35466 | for (var i_1 = 0; i_1 < variants.length; ++i_1) {
|
35467 | var variant_1 = variants[i_1];
|
35468 | var variantValue = value[variant_1];
|
35469 | if (variant_1 === 'base') continue;
|
35470 | css += genVariantColor(name, variant_1, cssVar ? genColorVariable(name, variant_1) : variantValue);
|
35471 | cssVar && (variablesCss += " " + genColorVariableName(name, variant_1) + ": " + variantValue + ";\n");
|
35472 | }
|
35473 | }
|
35474 |
|
35475 | if (cssVar) {
|
35476 | variablesCss = ":root {\n" + variablesCss + "}\n\n";
|
35477 | }
|
35478 |
|
35479 | return variablesCss + css;
|
35480 | }
|
35481 | function genVariations(name, value) {
|
35482 | var values = {
|
35483 | base: Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["intToHex"])(value)
|
35484 | };
|
35485 |
|
35486 | for (var i = 5; i > 0; --i) {
|
35487 | values["lighten" + i] = Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["intToHex"])(lighten(value, i));
|
35488 | }
|
35489 |
|
35490 | for (var i = 1; i <= 4; ++i) {
|
35491 | values["darken" + i] = Object(_util_colorUtils__WEBPACK_IMPORTED_MODULE_0__["intToHex"])(darken(value, i));
|
35492 | }
|
35493 |
|
35494 | return values;
|
35495 | }
|
35496 |
|
35497 | function lighten(value, amount) {
|
35498 | var lab = _util_color_transformCIELAB__WEBPACK_IMPORTED_MODULE_2__["fromXYZ"](_util_color_transformSRGB__WEBPACK_IMPORTED_MODULE_1__["toXYZ"](value));
|
35499 | lab[0] = lab[0] + amount * 10;
|
35500 | return _util_color_transformSRGB__WEBPACK_IMPORTED_MODULE_1__["fromXYZ"](_util_color_transformCIELAB__WEBPACK_IMPORTED_MODULE_2__["toXYZ"](lab));
|
35501 | }
|
35502 |
|
35503 | function darken(value, amount) {
|
35504 | var lab = _util_color_transformCIELAB__WEBPACK_IMPORTED_MODULE_2__["fromXYZ"](_util_color_transformSRGB__WEBPACK_IMPORTED_MODULE_1__["toXYZ"](value));
|
35505 | lab[0] = lab[0] - amount * 10;
|
35506 | return _util_color_transformSRGB__WEBPACK_IMPORTED_MODULE_1__["fromXYZ"](_util_color_transformCIELAB__WEBPACK_IMPORTED_MODULE_2__["toXYZ"](lab));
|
35507 | }
|
35508 |
|
35509 | }),
|
35510 |
|
35511 | "./src/styles/components/_selection-controls.sass":
|
35512 |
|
35513 |
|
35514 |
|
35515 |
|
35516 | (function(module, exports, __webpack_require__) {
|
35517 |
|
35518 |
|
35519 |
|
35520 | }),
|
35521 |
|
35522 | "./src/styles/main.sass":
|
35523 |
|
35524 |
|
35525 |
|
35526 |
|
35527 | (function(module, exports, __webpack_require__) {
|
35528 |
|
35529 |
|
35530 |
|
35531 | }),
|
35532 |
|
35533 | "./src/util/ThemeProvider.ts":
|
35534 |
|
35535 |
|
35536 |
|
35537 |
|
35538 | (function(module, __webpack_exports__, __webpack_require__) {
|
35539 |
|
35540 | "use strict";
|
35541 | __webpack_require__.r(__webpack_exports__);
|
35542 | var _mixins_themeable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/mixins/themeable/index.ts");
|
35543 | var _mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/mixins.ts");
|
35544 |
|
35545 |
|
35546 |
|
35547 |
|
35548 | __webpack_exports__["default"] = (Object(_mixins__WEBPACK_IMPORTED_MODULE_1__["default"])(_mixins_themeable__WEBPACK_IMPORTED_MODULE_0__["default"]).extend({
|
35549 | name: 'theme-provider',
|
35550 | props: {
|
35551 | root: Boolean
|
35552 | },
|
35553 | computed: {
|
35554 | isDark: function isDark() {
|
35555 | return this.root ? this.rootIsDark : _mixins_themeable__WEBPACK_IMPORTED_MODULE_0__["default"].options.computed.isDark.call(this);
|
35556 | }
|
35557 | },
|
35558 | render: function render() {
|
35559 | return this.$slots.default && this.$slots.default.find(function (node) {
|
35560 | return !node.isComment && node.text !== ' ';
|
35561 | });
|
35562 | }
|
35563 | }));
|
35564 |
|
35565 | }),
|
35566 |
|
35567 | "./src/util/color/transformCIELAB.ts":
|
35568 |
|
35569 |
|
35570 |
|
35571 |
|
35572 | (function(module, __webpack_exports__, __webpack_require__) {
|
35573 |
|
35574 | "use strict";
|
35575 | __webpack_require__.r(__webpack_exports__);
|
35576 | __webpack_require__.d(__webpack_exports__, "fromXYZ", function() { return fromXYZ; });
|
35577 | __webpack_require__.d(__webpack_exports__, "toXYZ", function() { return toXYZ; });
|
35578 | var delta = 0.20689655172413793;
|
35579 |
|
35580 | var cielabForwardTransform = function cielabForwardTransform(t) {
|
35581 | return t > Math.pow(delta, 3) ? Math.cbrt(t) : t / (3 * Math.pow(delta, 2)) + 4 / 29;
|
35582 | };
|
35583 |
|
35584 | var cielabReverseTransform = function cielabReverseTransform(t) {
|
35585 | return t > delta ? Math.pow(t, 3) : 3 * Math.pow(delta, 2) * (t - 4 / 29);
|
35586 | };
|
35587 |
|
35588 | function fromXYZ(xyz) {
|
35589 | var transform = cielabForwardTransform;
|
35590 | var transformedY = transform(xyz[1]);
|
35591 | return [116 * transformedY - 16, 500 * (transform(xyz[0] / 0.95047) - transformedY), 200 * (transformedY - transform(xyz[2] / 1.08883))];
|
35592 | }
|
35593 | function toXYZ(lab) {
|
35594 | var transform = cielabReverseTransform;
|
35595 | var Ln = (lab[0] + 16) / 116;
|
35596 | return [transform(Ln + lab[1] / 500) * 0.95047, transform(Ln), transform(Ln - lab[2] / 200) * 1.08883];
|
35597 | }
|
35598 |
|
35599 | }),
|
35600 |
|
35601 | "./src/util/color/transformSRGB.ts":
|
35602 |
|
35603 |
|
35604 |
|
35605 |
|
35606 | (function(module, __webpack_exports__, __webpack_require__) {
|
35607 |
|
35608 | "use strict";
|
35609 | __webpack_require__.r(__webpack_exports__);
|
35610 | __webpack_require__.d(__webpack_exports__, "fromXYZ", function() { return fromXYZ; });
|
35611 | __webpack_require__.d(__webpack_exports__, "toXYZ", function() { return toXYZ; });
|
35612 | var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/helpers.ts");
|
35613 |
|
35614 |
|
35615 | var srgbForwardMatrix = [[3.2406, -1.5372, -0.4986], [-0.9689, 1.8758, 0.0415], [0.0557, -0.2040, 1.0570]];
|
35616 |
|
35617 | var srgbForwardTransform = function srgbForwardTransform(C) {
|
35618 | return C <= 0.0031308 ? C * 12.92 : 1.055 * Math.pow(C, 1 / 2.4) - 0.055;
|
35619 | };
|
35620 |
|
35621 |
|
35622 | var srgbReverseMatrix = [[0.4124, 0.3576, 0.1805], [0.2126, 0.7152, 0.0722], [0.0193, 0.1192, 0.9505]];
|
35623 |
|
35624 | var srgbReverseTransform = function srgbReverseTransform(C) {
|
35625 | return C <= 0.04045 ? C / 12.92 : Math.pow((C + 0.055) / 1.055, 2.4);
|
35626 | };
|
35627 |
|
35628 | function fromXYZ(xyz) {
|
35629 | var rgb = Array(3);
|
35630 | var transform = srgbForwardTransform;
|
35631 | var matrix = srgbForwardMatrix;
|
35632 |
|
35633 | for (var i = 0; i < 3; ++i) {
|
35634 | rgb[i] = Math.round(Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["clamp"])(transform(matrix[i][0] * xyz[0] + matrix[i][1] * xyz[1] + matrix[i][2] * xyz[2])) * 255);
|
35635 | }
|
35636 |
|
35637 |
|
35638 | return (rgb[0] << 16) + (rgb[1] << 8) + (rgb[2] << 0);
|
35639 | }
|
35640 | function toXYZ(rgb) {
|
35641 | var xyz = [0, 0, 0];
|
35642 | var transform = srgbReverseTransform;
|
35643 | var matrix = srgbReverseMatrix;
|
35644 |
|
35645 | var r = transform((rgb >> 16 & 0xff) / 255);
|
35646 | var g = transform((rgb >> 8 & 0xff) / 255);
|
35647 | var b = transform((rgb >> 0 & 0xff) / 255);
|
35648 |
|
35649 | for (var i = 0; i < 3; ++i) {
|
35650 | xyz[i] = matrix[i][0] * r + matrix[i][1] * g + matrix[i][2] * b;
|
35651 | }
|
35652 |
|
35653 | return xyz;
|
35654 | }
|
35655 |
|
35656 | }),
|
35657 |
|
35658 | "./src/util/colorUtils.ts":
|
35659 |
|
35660 |
|
35661 |
|
35662 |
|
35663 | (function(module, __webpack_exports__, __webpack_require__) {
|
35664 |
|
35665 | "use strict";
|
35666 | __webpack_require__.r(__webpack_exports__);
|
35667 | __webpack_require__.d(__webpack_exports__, "colorToInt", function() { return colorToInt; });
|
35668 | __webpack_require__.d(__webpack_exports__, "intToHex", function() { return intToHex; });
|
35669 | __webpack_require__.d(__webpack_exports__, "colorToHex", function() { return colorToHex; });
|
35670 | __webpack_require__.d(__webpack_exports__, "HSVAtoRGBA", function() { return HSVAtoRGBA; });
|
35671 | __webpack_require__.d(__webpack_exports__, "RGBAtoHSVA", function() { return RGBAtoHSVA; });
|
35672 | __webpack_require__.d(__webpack_exports__, "HSVAtoHSLA", function() { return HSVAtoHSLA; });
|
35673 | __webpack_require__.d(__webpack_exports__, "HSLAtoHSVA", function() { return HSLAtoHSVA; });
|
35674 | __webpack_require__.d(__webpack_exports__, "RGBAtoCSS", function() { return RGBAtoCSS; });
|
35675 | __webpack_require__.d(__webpack_exports__, "RGBtoCSS", function() { return RGBtoCSS; });
|
35676 | __webpack_require__.d(__webpack_exports__, "RGBAtoHex", function() { return RGBAtoHex; });
|
35677 | __webpack_require__.d(__webpack_exports__, "HexToRGBA", function() { return HexToRGBA; });
|
35678 | __webpack_require__.d(__webpack_exports__, "HexToHSVA", function() { return HexToHSVA; });
|
35679 | __webpack_require__.d(__webpack_exports__, "HSVAtoHex", function() { return HSVAtoHex; });
|
35680 | __webpack_require__.d(__webpack_exports__, "parseHex", function() { return parseHex; });
|
35681 | __webpack_require__.d(__webpack_exports__, "RGBtoInt", function() { return RGBtoInt; });
|
35682 | __webpack_require__.d(__webpack_exports__, "contrastRatio", function() { return contrastRatio; });
|
35683 | var _console__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/util/console.ts");
|
35684 | var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( "./src/util/helpers.ts");
|
35685 | var _color_transformSRGB__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( "./src/util/color/transformSRGB.ts");
|
35686 | var __assign = undefined && undefined.__assign || function () {
|
35687 | __assign = Object.assign || function (t) {
|
35688 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
35689 | s = arguments[i];
|
35690 |
|
35691 | for (var p in s) {
|
35692 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
35693 | }
|
35694 | }
|
35695 |
|
35696 | return t;
|
35697 | };
|
35698 |
|
35699 | return __assign.apply(this, arguments);
|
35700 | };
|
35701 |
|
35702 | var __read = undefined && undefined.__read || function (o, n) {
|
35703 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
35704 | if (!m) return o;
|
35705 | var i = m.call(o),
|
35706 | r,
|
35707 | ar = [],
|
35708 | e;
|
35709 |
|
35710 | try {
|
35711 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
35712 | ar.push(r.value);
|
35713 | }
|
35714 | } catch (error) {
|
35715 | e = {
|
35716 | error: error
|
35717 | };
|
35718 | } finally {
|
35719 | try {
|
35720 | if (r && !r.done && (m = i["return"])) m.call(i);
|
35721 | } finally {
|
35722 | if (e) throw e.error;
|
35723 | }
|
35724 | }
|
35725 |
|
35726 | return ar;
|
35727 | };
|
35728 |
|
35729 |
|
35730 |
|
35731 |
|
35732 | function colorToInt(color) {
|
35733 | var rgb;
|
35734 |
|
35735 | if (typeof color === 'number') {
|
35736 | rgb = color;
|
35737 | } else if (typeof color === 'string') {
|
35738 | var c = color[0] === '#' ? color.substring(1) : color;
|
35739 |
|
35740 | if (c.length === 3) {
|
35741 | c = c.split('').map(function (char) {
|
35742 | return char + char;
|
35743 | }).join('');
|
35744 | }
|
35745 |
|
35746 | if (c.length !== 6) {
|
35747 | Object(_console__WEBPACK_IMPORTED_MODULE_0__["consoleWarn"])("'" + color + "' is not a valid rgb color");
|
35748 | }
|
35749 |
|
35750 | rgb = parseInt(c, 16);
|
35751 | } else {
|
35752 | throw new TypeError("Colors can only be numbers or strings, recieved " + (color == null ? color : color.constructor.name) + " instead");
|
35753 | }
|
35754 |
|
35755 | if (rgb < 0) {
|
35756 | Object(_console__WEBPACK_IMPORTED_MODULE_0__["consoleWarn"])("Colors cannot be negative: '" + color + "'");
|
35757 | rgb = 0;
|
35758 | } else if (rgb > 0xffffff || isNaN(rgb)) {
|
35759 | Object(_console__WEBPACK_IMPORTED_MODULE_0__["consoleWarn"])("'" + color + "' is not a valid rgb color");
|
35760 | rgb = 0xffffff;
|
35761 | }
|
35762 |
|
35763 | return rgb;
|
35764 | }
|
35765 | function intToHex(color) {
|
35766 | var hexColor = color.toString(16);
|
35767 | if (hexColor.length < 6) hexColor = '0'.repeat(6 - hexColor.length) + hexColor;
|
35768 | return '#' + hexColor;
|
35769 | }
|
35770 | function colorToHex(color) {
|
35771 | return intToHex(colorToInt(color));
|
35772 | }
|
35773 |
|
35774 |
|
35775 |
|
35776 |
|
35777 |
|
35778 |
|
35779 | function HSVAtoRGBA(hsva) {
|
35780 | var h = hsva.h,
|
35781 | s = hsva.s,
|
35782 | v = hsva.v,
|
35783 | a = hsva.a;
|
35784 |
|
35785 | var f = function f(n) {
|
35786 | var k = (n + h / 60) % 6;
|
35787 | return v - v * s * Math.max(Math.min(k, 4 - k, 1), 0);
|
35788 | };
|
35789 |
|
35790 | var rgb = [f(5), f(3), f(1)].map(function (v) {
|
35791 | return Math.round(v * 255);
|
35792 | });
|
35793 | return {
|
35794 | r: rgb[0],
|
35795 | g: rgb[1],
|
35796 | b: rgb[2],
|
35797 | a: a
|
35798 | };
|
35799 | }
|
35800 |
|
35801 |
|
35802 |
|
35803 |
|
35804 |
|
35805 |
|
35806 | function RGBAtoHSVA(rgba) {
|
35807 | if (!rgba) return {
|
35808 | h: 0,
|
35809 | s: 1,
|
35810 | v: 1,
|
35811 | a: 1
|
35812 | };
|
35813 | var r = rgba.r / 255;
|
35814 | var g = rgba.g / 255;
|
35815 | var b = rgba.b / 255;
|
35816 | var max = Math.max(r, g, b);
|
35817 | var min = Math.min(r, g, b);
|
35818 | var h = 0;
|
35819 |
|
35820 | if (max !== min) {
|
35821 | if (max === r) {
|
35822 | h = 60 * (0 + (g - b) / (max - min));
|
35823 | } else if (max === g) {
|
35824 | h = 60 * (2 + (b - r) / (max - min));
|
35825 | } else if (max === b) {
|
35826 | h = 60 * (4 + (r - g) / (max - min));
|
35827 | }
|
35828 | }
|
35829 |
|
35830 | if (h < 0) h = h + 360;
|
35831 | var s = max === 0 ? 0 : (max - min) / max;
|
35832 | var hsv = [h, s, max];
|
35833 | return {
|
35834 | h: hsv[0],
|
35835 | s: hsv[1],
|
35836 | v: hsv[2],
|
35837 | a: rgba.a
|
35838 | };
|
35839 | }
|
35840 | function HSVAtoHSLA(hsva) {
|
35841 | var h = hsva.h,
|
35842 | s = hsva.s,
|
35843 | v = hsva.v,
|
35844 | a = hsva.a;
|
35845 | var l = v - v * s / 2;
|
35846 | var sprime = l === 1 || l === 0 ? 0 : (v - l) / Math.min(l, 1 - l);
|
35847 | return {
|
35848 | h: h,
|
35849 | s: sprime,
|
35850 | l: l,
|
35851 | a: a
|
35852 | };
|
35853 | }
|
35854 | function HSLAtoHSVA(hsl) {
|
35855 | var h = hsl.h,
|
35856 | s = hsl.s,
|
35857 | l = hsl.l,
|
35858 | a = hsl.a;
|
35859 | var v = l + s * Math.min(l, 1 - l);
|
35860 | var sprime = v === 0 ? 0 : 2 - 2 * l / v;
|
35861 | return {
|
35862 | h: h,
|
35863 | s: sprime,
|
35864 | v: v,
|
35865 | a: a
|
35866 | };
|
35867 | }
|
35868 | function RGBAtoCSS(rgba) {
|
35869 | return "rgba(" + rgba.r + ", " + rgba.g + ", " + rgba.b + ", " + rgba.a + ")";
|
35870 | }
|
35871 | function RGBtoCSS(rgba) {
|
35872 | return RGBAtoCSS(__assign({}, rgba, {
|
35873 | a: 1
|
35874 | }));
|
35875 | }
|
35876 | function RGBAtoHex(rgba) {
|
35877 | var toHex = function toHex(v) {
|
35878 | var h = Math.round(v).toString(16);
|
35879 | return ('00'.substr(0, 2 - h.length) + h).toUpperCase();
|
35880 | };
|
35881 |
|
35882 | return "#" + [toHex(rgba.r), toHex(rgba.g), toHex(rgba.b), toHex(Math.round(rgba.a * 255))].join('');
|
35883 | }
|
35884 | function HexToRGBA(hex) {
|
35885 | var rgba = Object(_helpers__WEBPACK_IMPORTED_MODULE_1__["chunk"])(hex.slice(1), 2).map(function (c) {
|
35886 | return parseInt(c, 16);
|
35887 | });
|
35888 | return {
|
35889 | r: rgba[0],
|
35890 | g: rgba[1],
|
35891 | b: rgba[2],
|
35892 | a: Math.round(rgba[3] / 255 * 100) / 100
|
35893 | };
|
35894 | }
|
35895 | function HexToHSVA(hex) {
|
35896 | var rgb = HexToRGBA(hex);
|
35897 | return RGBAtoHSVA(rgb);
|
35898 | }
|
35899 | function HSVAtoHex(hsva) {
|
35900 | return RGBAtoHex(HSVAtoRGBA(hsva));
|
35901 | }
|
35902 | function parseHex(hex) {
|
35903 | if (hex.startsWith('#')) {
|
35904 | hex = hex.slice(1);
|
35905 | }
|
35906 |
|
35907 | hex = hex.replace(/([^0-9a-f])/gi, 'F');
|
35908 |
|
35909 | if (hex.length === 3) {
|
35910 | hex = hex.split('').map(function (x) {
|
35911 | return x + x;
|
35912 | }).join('');
|
35913 | }
|
35914 |
|
35915 | if (hex.length === 6) {
|
35916 | hex = Object(_helpers__WEBPACK_IMPORTED_MODULE_1__["padEnd"])(hex, 8, 'F');
|
35917 | } else {
|
35918 | hex = Object(_helpers__WEBPACK_IMPORTED_MODULE_1__["padEnd"])(Object(_helpers__WEBPACK_IMPORTED_MODULE_1__["padEnd"])(hex, 6), 8, 'F');
|
35919 | }
|
35920 |
|
35921 | return ("#" + hex).toUpperCase().substr(0, 9);
|
35922 | }
|
35923 | function RGBtoInt(rgba) {
|
35924 | return (rgba.r << 16) + (rgba.g << 8) + rgba.b;
|
35925 | }
|
35926 |
|
35927 |
|
35928 |
|
35929 |
|
35930 |
|
35931 |
|
35932 |
|
35933 | function contrastRatio(c1, c2) {
|
35934 | var _a = __read(Object(_color_transformSRGB__WEBPACK_IMPORTED_MODULE_2__["toXYZ"])(RGBtoInt(c1)), 2),
|
35935 | y1 = _a[1];
|
35936 |
|
35937 | var _b = __read(Object(_color_transformSRGB__WEBPACK_IMPORTED_MODULE_2__["toXYZ"])(RGBtoInt(c2)), 2),
|
35938 | y2 = _b[1];
|
35939 |
|
35940 | return (Math.max(y1, y2) + 0.05) / (Math.min(y1, y2) + 0.05);
|
35941 | }
|
35942 |
|
35943 | }),
|
35944 |
|
35945 | "./src/util/colors.ts":
|
35946 |
|
35947 |
|
35948 |
|
35949 |
|
35950 | (function(module, __webpack_exports__, __webpack_require__) {
|
35951 |
|
35952 | "use strict";
|
35953 | __webpack_require__.r(__webpack_exports__);
|
35954 | var red = Object.freeze({
|
35955 | base: '#f44336',
|
35956 | lighten5: '#ffebee',
|
35957 | lighten4: '#ffcdd2',
|
35958 | lighten3: '#ef9a9a',
|
35959 | lighten2: '#e57373',
|
35960 | lighten1: '#ef5350',
|
35961 | darken1: '#e53935',
|
35962 | darken2: '#d32f2f',
|
35963 | darken3: '#c62828',
|
35964 | darken4: '#b71c1c',
|
35965 | accent1: '#ff8a80',
|
35966 | accent2: '#ff5252',
|
35967 | accent3: '#ff1744',
|
35968 | accent4: '#d50000'
|
35969 | });
|
35970 | var pink = Object.freeze({
|
35971 | base: '#e91e63',
|
35972 | lighten5: '#fce4ec',
|
35973 | lighten4: '#f8bbd0',
|
35974 | lighten3: '#f48fb1',
|
35975 | lighten2: '#f06292',
|
35976 | lighten1: '#ec407a',
|
35977 | darken1: '#d81b60',
|
35978 | darken2: '#c2185b',
|
35979 | darken3: '#ad1457',
|
35980 | darken4: '#880e4f',
|
35981 | accent1: '#ff80ab',
|
35982 | accent2: '#ff4081',
|
35983 | accent3: '#f50057',
|
35984 | accent4: '#c51162'
|
35985 | });
|
35986 | var purple = Object.freeze({
|
35987 | base: '#9c27b0',
|
35988 | lighten5: '#f3e5f5',
|
35989 | lighten4: '#e1bee7',
|
35990 | lighten3: '#ce93d8',
|
35991 | lighten2: '#ba68c8',
|
35992 | lighten1: '#ab47bc',
|
35993 | darken1: '#8e24aa',
|
35994 | darken2: '#7b1fa2',
|
35995 | darken3: '#6a1b9a',
|
35996 | darken4: '#4a148c',
|
35997 | accent1: '#ea80fc',
|
35998 | accent2: '#e040fb',
|
35999 | accent3: '#d500f9',
|
36000 | accent4: '#aa00ff'
|
36001 | });
|
36002 | var deepPurple = Object.freeze({
|
36003 | base: '#673ab7',
|
36004 | lighten5: '#ede7f6',
|
36005 | lighten4: '#d1c4e9',
|
36006 | lighten3: '#b39ddb',
|
36007 | lighten2: '#9575cd',
|
36008 | lighten1: '#7e57c2',
|
36009 | darken1: '#5e35b1',
|
36010 | darken2: '#512da8',
|
36011 | darken3: '#4527a0',
|
36012 | darken4: '#311b92',
|
36013 | accent1: '#b388ff',
|
36014 | accent2: '#7c4dff',
|
36015 | accent3: '#651fff',
|
36016 | accent4: '#6200ea'
|
36017 | });
|
36018 | var indigo = Object.freeze({
|
36019 | base: '#3f51b5',
|
36020 | lighten5: '#e8eaf6',
|
36021 | lighten4: '#c5cae9',
|
36022 | lighten3: '#9fa8da',
|
36023 | lighten2: '#7986cb',
|
36024 | lighten1: '#5c6bc0',
|
36025 | darken1: '#3949ab',
|
36026 | darken2: '#303f9f',
|
36027 | darken3: '#283593',
|
36028 | darken4: '#1a237e',
|
36029 | accent1: '#8c9eff',
|
36030 | accent2: '#536dfe',
|
36031 | accent3: '#3d5afe',
|
36032 | accent4: '#304ffe'
|
36033 | });
|
36034 | var blue = Object.freeze({
|
36035 | base: '#2196f3',
|
36036 | lighten5: '#e3f2fd',
|
36037 | lighten4: '#bbdefb',
|
36038 | lighten3: '#90caf9',
|
36039 | lighten2: '#64b5f6',
|
36040 | lighten1: '#42a5f5',
|
36041 | darken1: '#1e88e5',
|
36042 | darken2: '#1976d2',
|
36043 | darken3: '#1565c0',
|
36044 | darken4: '#0d47a1',
|
36045 | accent1: '#82b1ff',
|
36046 | accent2: '#448aff',
|
36047 | accent3: '#2979ff',
|
36048 | accent4: '#2962ff'
|
36049 | });
|
36050 | var lightBlue = Object.freeze({
|
36051 | base: '#03a9f4',
|
36052 | lighten5: '#e1f5fe',
|
36053 | lighten4: '#b3e5fc',
|
36054 | lighten3: '#81d4fa',
|
36055 | lighten2: '#4fc3f7',
|
36056 | lighten1: '#29b6f6',
|
36057 | darken1: '#039be5',
|
36058 | darken2: '#0288d1',
|
36059 | darken3: '#0277bd',
|
36060 | darken4: '#01579b',
|
36061 | accent1: '#80d8ff',
|
36062 | accent2: '#40c4ff',
|
36063 | accent3: '#00b0ff',
|
36064 | accent4: '#0091ea'
|
36065 | });
|
36066 | var cyan = Object.freeze({
|
36067 | base: '#00bcd4',
|
36068 | lighten5: '#e0f7fa',
|
36069 | lighten4: '#b2ebf2',
|
36070 | lighten3: '#80deea',
|
36071 | lighten2: '#4dd0e1',
|
36072 | lighten1: '#26c6da',
|
36073 | darken1: '#00acc1',
|
36074 | darken2: '#0097a7',
|
36075 | darken3: '#00838f',
|
36076 | darken4: '#006064',
|
36077 | accent1: '#84ffff',
|
36078 | accent2: '#18ffff',
|
36079 | accent3: '#00e5ff',
|
36080 | accent4: '#00b8d4'
|
36081 | });
|
36082 | var teal = Object.freeze({
|
36083 | base: '#009688',
|
36084 | lighten5: '#e0f2f1',
|
36085 | lighten4: '#b2dfdb',
|
36086 | lighten3: '#80cbc4',
|
36087 | lighten2: '#4db6ac',
|
36088 | lighten1: '#26a69a',
|
36089 | darken1: '#00897b',
|
36090 | darken2: '#00796b',
|
36091 | darken3: '#00695c',
|
36092 | darken4: '#004d40',
|
36093 | accent1: '#a7ffeb',
|
36094 | accent2: '#64ffda',
|
36095 | accent3: '#1de9b6',
|
36096 | accent4: '#00bfa5'
|
36097 | });
|
36098 | var green = Object.freeze({
|
36099 | base: '#4caf50',
|
36100 | lighten5: '#e8f5e9',
|
36101 | lighten4: '#c8e6c9',
|
36102 | lighten3: '#a5d6a7',
|
36103 | lighten2: '#81c784',
|
36104 | lighten1: '#66bb6a',
|
36105 | darken1: '#43a047',
|
36106 | darken2: '#388e3c',
|
36107 | darken3: '#2e7d32',
|
36108 | darken4: '#1b5e20',
|
36109 | accent1: '#b9f6ca',
|
36110 | accent2: '#69f0ae',
|
36111 | accent3: '#00e676',
|
36112 | accent4: '#00c853'
|
36113 | });
|
36114 | var lightGreen = Object.freeze({
|
36115 | base: '#8bc34a',
|
36116 | lighten5: '#f1f8e9',
|
36117 | lighten4: '#dcedc8',
|
36118 | lighten3: '#c5e1a5',
|
36119 | lighten2: '#aed581',
|
36120 | lighten1: '#9ccc65',
|
36121 | darken1: '#7cb342',
|
36122 | darken2: '#689f38',
|
36123 | darken3: '#558b2f',
|
36124 | darken4: '#33691e',
|
36125 | accent1: '#ccff90',
|
36126 | accent2: '#b2ff59',
|
36127 | accent3: '#76ff03',
|
36128 | accent4: '#64dd17'
|
36129 | });
|
36130 | var lime = Object.freeze({
|
36131 | base: '#cddc39',
|
36132 | lighten5: '#f9fbe7',
|
36133 | lighten4: '#f0f4c3',
|
36134 | lighten3: '#e6ee9c',
|
36135 | lighten2: '#dce775',
|
36136 | lighten1: '#d4e157',
|
36137 | darken1: '#c0ca33',
|
36138 | darken2: '#afb42b',
|
36139 | darken3: '#9e9d24',
|
36140 | darken4: '#827717',
|
36141 | accent1: '#f4ff81',
|
36142 | accent2: '#eeff41',
|
36143 | accent3: '#c6ff00',
|
36144 | accent4: '#aeea00'
|
36145 | });
|
36146 | var yellow = Object.freeze({
|
36147 | base: '#ffeb3b',
|
36148 | lighten5: '#fffde7',
|
36149 | lighten4: '#fff9c4',
|
36150 | lighten3: '#fff59d',
|
36151 | lighten2: '#fff176',
|
36152 | lighten1: '#ffee58',
|
36153 | darken1: '#fdd835',
|
36154 | darken2: '#fbc02d',
|
36155 | darken3: '#f9a825',
|
36156 | darken4: '#f57f17',
|
36157 | accent1: '#ffff8d',
|
36158 | accent2: '#ffff00',
|
36159 | accent3: '#ffea00',
|
36160 | accent4: '#ffd600'
|
36161 | });
|
36162 | var amber = Object.freeze({
|
36163 | base: '#ffc107',
|
36164 | lighten5: '#fff8e1',
|
36165 | lighten4: '#ffecb3',
|
36166 | lighten3: '#ffe082',
|
36167 | lighten2: '#ffd54f',
|
36168 | lighten1: '#ffca28',
|
36169 | darken1: '#ffb300',
|
36170 | darken2: '#ffa000',
|
36171 | darken3: '#ff8f00',
|
36172 | darken4: '#ff6f00',
|
36173 | accent1: '#ffe57f',
|
36174 | accent2: '#ffd740',
|
36175 | accent3: '#ffc400',
|
36176 | accent4: '#ffab00'
|
36177 | });
|
36178 | var orange = Object.freeze({
|
36179 | base: '#ff9800',
|
36180 | lighten5: '#fff3e0',
|
36181 | lighten4: '#ffe0b2',
|
36182 | lighten3: '#ffcc80',
|
36183 | lighten2: '#ffb74d',
|
36184 | lighten1: '#ffa726',
|
36185 | darken1: '#fb8c00',
|
36186 | darken2: '#f57c00',
|
36187 | darken3: '#ef6c00',
|
36188 | darken4: '#e65100',
|
36189 | accent1: '#ffd180',
|
36190 | accent2: '#ffab40',
|
36191 | accent3: '#ff9100',
|
36192 | accent4: '#ff6d00'
|
36193 | });
|
36194 | var deepOrange = Object.freeze({
|
36195 | base: '#ff5722',
|
36196 | lighten5: '#fbe9e7',
|
36197 | lighten4: '#ffccbc',
|
36198 | lighten3: '#ffab91',
|
36199 | lighten2: '#ff8a65',
|
36200 | lighten1: '#ff7043',
|
36201 | darken1: '#f4511e',
|
36202 | darken2: '#e64a19',
|
36203 | darken3: '#d84315',
|
36204 | darken4: '#bf360c',
|
36205 | accent1: '#ff9e80',
|
36206 | accent2: '#ff6e40',
|
36207 | accent3: '#ff3d00',
|
36208 | accent4: '#dd2c00'
|
36209 | });
|
36210 | var brown = Object.freeze({
|
36211 | base: '#795548',
|
36212 | lighten5: '#efebe9',
|
36213 | lighten4: '#d7ccc8',
|
36214 | lighten3: '#bcaaa4',
|
36215 | lighten2: '#a1887f',
|
36216 | lighten1: '#8d6e63',
|
36217 | darken1: '#6d4c41',
|
36218 | darken2: '#5d4037',
|
36219 | darken3: '#4e342e',
|
36220 | darken4: '#3e2723'
|
36221 | });
|
36222 | var blueGrey = Object.freeze({
|
36223 | base: '#607d8b',
|
36224 | lighten5: '#eceff1',
|
36225 | lighten4: '#cfd8dc',
|
36226 | lighten3: '#b0bec5',
|
36227 | lighten2: '#90a4ae',
|
36228 | lighten1: '#78909c',
|
36229 | darken1: '#546e7a',
|
36230 | darken2: '#455a64',
|
36231 | darken3: '#37474f',
|
36232 | darken4: '#263238'
|
36233 | });
|
36234 | var grey = Object.freeze({
|
36235 | base: '#9e9e9e',
|
36236 | lighten5: '#fafafa',
|
36237 | lighten4: '#f5f5f5',
|
36238 | lighten3: '#eeeeee',
|
36239 | lighten2: '#e0e0e0',
|
36240 | lighten1: '#bdbdbd',
|
36241 | darken1: '#757575',
|
36242 | darken2: '#616161',
|
36243 | darken3: '#424242',
|
36244 | darken4: '#212121'
|
36245 | });
|
36246 | var shades = Object.freeze({
|
36247 | black: '#000000',
|
36248 | white: '#ffffff',
|
36249 | transparent: 'transparent'
|
36250 | });
|
36251 | __webpack_exports__["default"] = (Object.freeze({
|
36252 | red: red,
|
36253 | pink: pink,
|
36254 | purple: purple,
|
36255 | deepPurple: deepPurple,
|
36256 | indigo: indigo,
|
36257 | blue: blue,
|
36258 | lightBlue: lightBlue,
|
36259 | cyan: cyan,
|
36260 | teal: teal,
|
36261 | green: green,
|
36262 | lightGreen: lightGreen,
|
36263 | lime: lime,
|
36264 | yellow: yellow,
|
36265 | amber: amber,
|
36266 | orange: orange,
|
36267 | deepOrange: deepOrange,
|
36268 | brown: brown,
|
36269 | blueGrey: blueGrey,
|
36270 | grey: grey,
|
36271 | shades: shades
|
36272 | }));
|
36273 |
|
36274 | }),
|
36275 |
|
36276 | "./src/util/console.ts":
|
36277 |
|
36278 |
|
36279 |
|
36280 |
|
36281 | (function(module, __webpack_exports__, __webpack_require__) {
|
36282 |
|
36283 | "use strict";
|
36284 | __webpack_require__.r(__webpack_exports__);
|
36285 | __webpack_require__.d(__webpack_exports__, "consoleInfo", function() { return consoleInfo; });
|
36286 | __webpack_require__.d(__webpack_exports__, "consoleWarn", function() { return consoleWarn; });
|
36287 | __webpack_require__.d(__webpack_exports__, "consoleError", function() { return consoleError; });
|
36288 | __webpack_require__.d(__webpack_exports__, "deprecate", function() { return deprecate; });
|
36289 | __webpack_require__.d(__webpack_exports__, "breaking", function() { return breaking; });
|
36290 | __webpack_require__.d(__webpack_exports__, "removed", function() { return removed; });
|
36291 | function createMessage(message, vm, parent) {
|
36292 | if (parent) {
|
36293 | vm = {
|
36294 | _isVue: true,
|
36295 | $parent: parent,
|
36296 | $options: vm
|
36297 | };
|
36298 | }
|
36299 |
|
36300 | if (vm) {
|
36301 |
|
36302 | vm.$_alreadyWarned = vm.$_alreadyWarned || [];
|
36303 | if (vm.$_alreadyWarned.includes(message)) return;
|
36304 | vm.$_alreadyWarned.push(message);
|
36305 | }
|
36306 |
|
36307 | return "[Vuetify] " + message + (vm ? generateComponentTrace(vm) : '');
|
36308 | }
|
36309 |
|
36310 | function consoleInfo(message, vm, parent) {
|
36311 | var newMessage = createMessage(message, vm, parent);
|
36312 | newMessage != null && console.info(newMessage);
|
36313 | }
|
36314 | function consoleWarn(message, vm, parent) {
|
36315 | var newMessage = createMessage(message, vm, parent);
|
36316 | newMessage != null && console.warn(newMessage);
|
36317 | }
|
36318 | function consoleError(message, vm, parent) {
|
36319 | var newMessage = createMessage(message, vm, parent);
|
36320 | newMessage != null && console.error(newMessage);
|
36321 | }
|
36322 | function deprecate(original, replacement, vm, parent) {
|
36323 | consoleWarn("[UPGRADE] '" + original + "' is deprecated, use '" + replacement + "' instead.", vm, parent);
|
36324 | }
|
36325 | function breaking(original, replacement, vm, parent) {
|
36326 | consoleError("[BREAKING] '" + original + "' has been removed, use '" + replacement + "' instead. For more information, see the upgrade guide https://github.com/vuetifyjs/vuetify/releases/tag/v2.0.0#user-content-upgrade-guide", vm, parent);
|
36327 | }
|
36328 | function removed(original, vm, parent) {
|
36329 | consoleWarn("[REMOVED] '" + original + "' has been removed. You can safely omit it.", vm, parent);
|
36330 | }
|
36331 |
|
36332 |
|
36333 |
|
36334 |
|
36335 | var classifyRE = /(?:^|[-_])(\w)/g;
|
36336 |
|
36337 | var classify = function classify(str) {
|
36338 | return str.replace(classifyRE, function (c) {
|
36339 | return c.toUpperCase();
|
36340 | }).replace(/[-_]/g, '');
|
36341 | };
|
36342 |
|
36343 | function formatComponentName(vm, includeFile) {
|
36344 | if (vm.$root === vm) {
|
36345 | return '<Root>';
|
36346 | }
|
36347 |
|
36348 | var options = typeof vm === 'function' && vm.cid != null ? vm.options : vm._isVue ? vm.$options || vm.constructor.options : vm || {};
|
36349 | var name = options.name || options._componentTag;
|
36350 | var file = options.__file;
|
36351 |
|
36352 | if (!name && file) {
|
36353 | var match = file.match(/([^/\\]+)\.vue$/);
|
36354 | name = match && match[1];
|
36355 | }
|
36356 |
|
36357 | return (name ? "<" + classify(name) + ">" : "<Anonymous>") + (file && includeFile !== false ? " at " + file : '');
|
36358 | }
|
36359 |
|
36360 | function generateComponentTrace(vm) {
|
36361 | if (vm._isVue && vm.$parent) {
|
36362 | var tree = [];
|
36363 | var currentRecursiveSequence = 0;
|
36364 |
|
36365 | while (vm) {
|
36366 | if (tree.length > 0) {
|
36367 | var last = tree[tree.length - 1];
|
36368 |
|
36369 | if (last.constructor === vm.constructor) {
|
36370 | currentRecursiveSequence++;
|
36371 | vm = vm.$parent;
|
36372 | continue;
|
36373 | } else if (currentRecursiveSequence > 0) {
|
36374 | tree[tree.length - 1] = [last, currentRecursiveSequence];
|
36375 | currentRecursiveSequence = 0;
|
36376 | }
|
36377 | }
|
36378 |
|
36379 | tree.push(vm);
|
36380 | vm = vm.$parent;
|
36381 | }
|
36382 |
|
36383 | return '\n\nfound in\n\n' + tree.map(function (vm, i) {
|
36384 | return "" + (i === 0 ? '---> ' : ' '.repeat(5 + i * 2)) + (Array.isArray(vm) ? formatComponentName(vm[0]) + "... (" + vm[1] + " recursive calls)" : formatComponentName(vm));
|
36385 | }).join('\n');
|
36386 | } else {
|
36387 | return "\n\n(found in " + formatComponentName(vm) + ")";
|
36388 | }
|
36389 | }
|
36390 |
|
36391 | }),
|
36392 |
|
36393 | "./src/util/dedupeModelListeners.ts":
|
36394 |
|
36395 |
|
36396 |
|
36397 |
|
36398 | (function(module, __webpack_exports__, __webpack_require__) {
|
36399 |
|
36400 | "use strict";
|
36401 | __webpack_require__.r(__webpack_exports__);
|
36402 | __webpack_require__.d(__webpack_exports__, "default", function() { return dedupeModelListeners; });
|
36403 |
|
36404 |
|
36405 |
|
36406 |
|
36407 |
|
36408 |
|
36409 | function dedupeModelListeners(data) {
|
36410 | if (data.model && data.on && data.on.input) {
|
36411 | if (Array.isArray(data.on.input)) {
|
36412 | var i = data.on.input.indexOf(data.model.callback);
|
36413 | if (i > -1) data.on.input.splice(i, 1);
|
36414 | } else {
|
36415 | delete data.on.input;
|
36416 | }
|
36417 | }
|
36418 | }
|
36419 |
|
36420 | }),
|
36421 |
|
36422 | "./src/util/helpers.ts":
|
36423 |
|
36424 |
|
36425 |
|
36426 |
|
36427 | (function(module, __webpack_exports__, __webpack_require__) {
|
36428 |
|
36429 | "use strict";
|
36430 | __webpack_require__.r(__webpack_exports__);
|
36431 | __webpack_require__.d(__webpack_exports__, "createSimpleFunctional", function() { return createSimpleFunctional; });
|
36432 | __webpack_require__.d(__webpack_exports__, "createSimpleTransition", function() { return createSimpleTransition; });
|
36433 | __webpack_require__.d(__webpack_exports__, "createJavaScriptTransition", function() { return createJavaScriptTransition; });
|
36434 | __webpack_require__.d(__webpack_exports__, "directiveConfig", function() { return directiveConfig; });
|
36435 | __webpack_require__.d(__webpack_exports__, "addOnceEventListener", function() { return addOnceEventListener; });
|
36436 | __webpack_require__.d(__webpack_exports__, "passiveSupported", function() { return passiveSupported; });
|
36437 | __webpack_require__.d(__webpack_exports__, "addPassiveEventListener", function() { return addPassiveEventListener; });
|
36438 | __webpack_require__.d(__webpack_exports__, "getNestedValue", function() { return getNestedValue; });
|
36439 | __webpack_require__.d(__webpack_exports__, "deepEqual", function() { return deepEqual; });
|
36440 | __webpack_require__.d(__webpack_exports__, "getObjectValueByPath", function() { return getObjectValueByPath; });
|
36441 | __webpack_require__.d(__webpack_exports__, "getPropertyFromItem", function() { return getPropertyFromItem; });
|
36442 | __webpack_require__.d(__webpack_exports__, "createRange", function() { return createRange; });
|
36443 | __webpack_require__.d(__webpack_exports__, "getZIndex", function() { return getZIndex; });
|
36444 | __webpack_require__.d(__webpack_exports__, "escapeHTML", function() { return escapeHTML; });
|
36445 | __webpack_require__.d(__webpack_exports__, "filterObjectOnKeys", function() { return filterObjectOnKeys; });
|
36446 | __webpack_require__.d(__webpack_exports__, "convertToUnit", function() { return convertToUnit; });
|
36447 | __webpack_require__.d(__webpack_exports__, "kebabCase", function() { return kebabCase; });
|
36448 | __webpack_require__.d(__webpack_exports__, "isObject", function() { return isObject; });
|
36449 | __webpack_require__.d(__webpack_exports__, "keyCodes", function() { return keyCodes; });
|
36450 | __webpack_require__.d(__webpack_exports__, "remapInternalIcon", function() { return remapInternalIcon; });
|
36451 | __webpack_require__.d(__webpack_exports__, "keys", function() { return keys; });
|
36452 | __webpack_require__.d(__webpack_exports__, "camelize", function() { return camelize; });
|
36453 | __webpack_require__.d(__webpack_exports__, "arrayDiff", function() { return arrayDiff; });
|
36454 | __webpack_require__.d(__webpack_exports__, "upperFirst", function() { return upperFirst; });
|
36455 | __webpack_require__.d(__webpack_exports__, "groupByProperty", function() { return groupByProperty; });
|
36456 | __webpack_require__.d(__webpack_exports__, "wrapInArray", function() { return wrapInArray; });
|
36457 | __webpack_require__.d(__webpack_exports__, "sortItems", function() { return sortItems; });
|
36458 | __webpack_require__.d(__webpack_exports__, "defaultFilter", function() { return defaultFilter; });
|
36459 | __webpack_require__.d(__webpack_exports__, "searchItems", function() { return searchItems; });
|
36460 | __webpack_require__.d(__webpack_exports__, "getSlotType", function() { return getSlotType; });
|
36461 | __webpack_require__.d(__webpack_exports__, "debounce", function() { return debounce; });
|
36462 | __webpack_require__.d(__webpack_exports__, "getPrefixedScopedSlots", function() { return getPrefixedScopedSlots; });
|
36463 | __webpack_require__.d(__webpack_exports__, "getSlot", function() { return getSlot; });
|
36464 | __webpack_require__.d(__webpack_exports__, "clamp", function() { return clamp; });
|
36465 | __webpack_require__.d(__webpack_exports__, "padEnd", function() { return padEnd; });
|
36466 | __webpack_require__.d(__webpack_exports__, "chunk", function() { return chunk; });
|
36467 | __webpack_require__.d(__webpack_exports__, "humanReadableFileSize", function() { return humanReadableFileSize; });
|
36468 | __webpack_require__.d(__webpack_exports__, "camelizeObjectKeys", function() { return camelizeObjectKeys; });
|
36469 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
36470 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
36471 | 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); }
|
36472 |
|
36473 | var __assign = undefined && undefined.__assign || function () {
|
36474 | __assign = Object.assign || function (t) {
|
36475 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
36476 | s = arguments[i];
|
36477 |
|
36478 | for (var p in s) {
|
36479 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
36480 | }
|
36481 | }
|
36482 |
|
36483 | return t;
|
36484 | };
|
36485 |
|
36486 | return __assign.apply(this, arguments);
|
36487 | };
|
36488 |
|
36489 | var __read = undefined && undefined.__read || function (o, n) {
|
36490 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
36491 | if (!m) return o;
|
36492 | var i = m.call(o),
|
36493 | r,
|
36494 | ar = [],
|
36495 | e;
|
36496 |
|
36497 | try {
|
36498 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
36499 | ar.push(r.value);
|
36500 | }
|
36501 | } catch (error) {
|
36502 | e = {
|
36503 | error: error
|
36504 | };
|
36505 | } finally {
|
36506 | try {
|
36507 | if (r && !r.done && (m = i["return"])) m.call(i);
|
36508 | } finally {
|
36509 | if (e) throw e.error;
|
36510 | }
|
36511 | }
|
36512 |
|
36513 | return ar;
|
36514 | };
|
36515 |
|
36516 | var __spread = undefined && undefined.__spread || function () {
|
36517 | for (var ar = [], i = 0; i < arguments.length; i++) {
|
36518 | ar = ar.concat(__read(arguments[i]));
|
36519 | }
|
36520 |
|
36521 | return ar;
|
36522 | };
|
36523 |
|
36524 |
|
36525 | function createSimpleFunctional(c, el, name) {
|
36526 | if (el === void 0) {
|
36527 | el = 'div';
|
36528 | }
|
36529 |
|
36530 | return vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
36531 | name: name || c.replace(/__/g, '-'),
|
36532 | functional: true,
|
36533 | render: function render(h, _a) {
|
36534 | var data = _a.data,
|
36535 | children = _a.children;
|
36536 | data.staticClass = (c + " " + (data.staticClass || '')).trim();
|
36537 | return h(el, data, children);
|
36538 | }
|
36539 | });
|
36540 | }
|
36541 |
|
36542 | function mergeTransitions(transitions, array) {
|
36543 | if (Array.isArray(transitions)) return transitions.concat(array);
|
36544 | if (transitions) array.push(transitions);
|
36545 | return array;
|
36546 | }
|
36547 |
|
36548 | function createSimpleTransition(name, origin, mode) {
|
36549 | if (origin === void 0) {
|
36550 | origin = 'top center 0';
|
36551 | }
|
36552 |
|
36553 | return {
|
36554 | name: name,
|
36555 | functional: true,
|
36556 | props: {
|
36557 | group: {
|
36558 | type: Boolean,
|
36559 | default: false
|
36560 | },
|
36561 | hideOnLeave: {
|
36562 | type: Boolean,
|
36563 | default: false
|
36564 | },
|
36565 | leaveAbsolute: {
|
36566 | type: Boolean,
|
36567 | default: false
|
36568 | },
|
36569 | mode: {
|
36570 | type: String,
|
36571 | default: mode
|
36572 | },
|
36573 | origin: {
|
36574 | type: String,
|
36575 | default: origin
|
36576 | }
|
36577 | },
|
36578 | render: function render(h, context) {
|
36579 | var tag = "transition" + (context.props.group ? '-group' : '');
|
36580 | context.data = context.data || {};
|
36581 | context.data.props = {
|
36582 | name: name,
|
36583 | mode: context.props.mode
|
36584 | };
|
36585 | context.data.on = context.data.on || {};
|
36586 |
|
36587 | if (!Object.isExtensible(context.data.on)) {
|
36588 | context.data.on = __assign({}, context.data.on);
|
36589 | }
|
36590 |
|
36591 | var ourBeforeEnter = [];
|
36592 | var ourLeave = [];
|
36593 |
|
36594 | var absolute = function absolute(el) {
|
36595 | return el.style.position = 'absolute';
|
36596 | };
|
36597 |
|
36598 | ourBeforeEnter.push(function (el) {
|
36599 | el.style.transformOrigin = context.props.origin;
|
36600 | el.style.webkitTransformOrigin = context.props.origin;
|
36601 | });
|
36602 | if (context.props.leaveAbsolute) ourLeave.push(absolute);
|
36603 |
|
36604 | if (context.props.hideOnLeave) {
|
36605 | ourLeave.push(function (el) {
|
36606 | return el.style.display = 'none';
|
36607 | });
|
36608 | }
|
36609 |
|
36610 | var _a = context.data.on,
|
36611 | beforeEnter = _a.beforeEnter,
|
36612 | leave = _a.leave;
|
36613 |
|
36614 |
|
36615 | context.data.on.beforeEnter = function () {
|
36616 | return mergeTransitions(beforeEnter, ourBeforeEnter);
|
36617 | };
|
36618 |
|
36619 | context.data.on.leave = mergeTransitions(leave, ourLeave);
|
36620 | return h(tag, context.data, context.children);
|
36621 | }
|
36622 | };
|
36623 | }
|
36624 | function createJavaScriptTransition(name, functions, mode) {
|
36625 | if (mode === void 0) {
|
36626 | mode = 'in-out';
|
36627 | }
|
36628 |
|
36629 | return {
|
36630 | name: name,
|
36631 | functional: true,
|
36632 | props: {
|
36633 | mode: {
|
36634 | type: String,
|
36635 | default: mode
|
36636 | }
|
36637 | },
|
36638 | render: function render(h, context) {
|
36639 | var data = {
|
36640 | props: __assign({}, context.props, {
|
36641 | name: name
|
36642 | }),
|
36643 | on: functions
|
36644 | };
|
36645 | return h('transition', data, context.children);
|
36646 | }
|
36647 | };
|
36648 | }
|
36649 | function directiveConfig(binding, defaults) {
|
36650 | if (defaults === void 0) {
|
36651 | defaults = {};
|
36652 | }
|
36653 |
|
36654 | return __assign({}, defaults, binding.modifiers, {
|
36655 | value: binding.arg
|
36656 | }, binding.value || {});
|
36657 | }
|
36658 | function addOnceEventListener(el, eventName, cb, options) {
|
36659 | if (options === void 0) {
|
36660 | options = false;
|
36661 | }
|
36662 |
|
36663 | var once = function once(event) {
|
36664 | cb(event);
|
36665 | el.removeEventListener(eventName, once, options);
|
36666 | };
|
36667 |
|
36668 | el.addEventListener(eventName, once, options);
|
36669 | }
|
36670 | var passiveSupported = false;
|
36671 |
|
36672 | try {
|
36673 | if (typeof window !== 'undefined') {
|
36674 | var testListenerOpts = Object.defineProperty({}, 'passive', {
|
36675 | get: function get() {
|
36676 | passiveSupported = true;
|
36677 | }
|
36678 | });
|
36679 | window.addEventListener('testListener', testListenerOpts, testListenerOpts);
|
36680 | window.removeEventListener('testListener', testListenerOpts, testListenerOpts);
|
36681 | }
|
36682 | } catch (e) {
|
36683 | console.warn(e);
|
36684 | }
|
36685 |
|
36686 |
|
36687 | function addPassiveEventListener(el, event, cb, options) {
|
36688 | el.addEventListener(event, cb, passiveSupported ? options : false);
|
36689 | }
|
36690 | function getNestedValue(obj, path, fallback) {
|
36691 | var last = path.length - 1;
|
36692 | if (last < 0) return obj === undefined ? fallback : obj;
|
36693 |
|
36694 | for (var i = 0; i < last; i++) {
|
36695 | if (obj == null) {
|
36696 | return fallback;
|
36697 | }
|
36698 |
|
36699 | obj = obj[path[i]];
|
36700 | }
|
36701 |
|
36702 | if (obj == null) return fallback;
|
36703 | return obj[path[last]] === undefined ? fallback : obj[path[last]];
|
36704 | }
|
36705 | function deepEqual(a, b) {
|
36706 | if (a === b) return true;
|
36707 |
|
36708 | if (a instanceof Date && b instanceof Date) {
|
36709 |
|
36710 | if (a.getTime() !== b.getTime()) return false;
|
36711 | }
|
36712 |
|
36713 | if (a !== Object(a) || b !== Object(b)) {
|
36714 |
|
36715 | return false;
|
36716 | }
|
36717 |
|
36718 | var props = Object.keys(a);
|
36719 |
|
36720 | if (props.length !== Object.keys(b).length) {
|
36721 |
|
36722 | return false;
|
36723 | }
|
36724 |
|
36725 | return props.every(function (p) {
|
36726 | return deepEqual(a[p], b[p]);
|
36727 | });
|
36728 | }
|
36729 | function getObjectValueByPath(obj, path, fallback) {
|
36730 |
|
36731 | if (obj == null || !path || typeof path !== 'string') return fallback;
|
36732 | if (obj[path] !== undefined) return obj[path];
|
36733 | path = path.replace(/\[(\w+)\]/g, '.$1');
|
36734 |
|
36735 | path = path.replace(/^\./, '');
|
36736 |
|
36737 | return getNestedValue(obj, path.split('.'), fallback);
|
36738 | }
|
36739 | function getPropertyFromItem(item, property, fallback) {
|
36740 | if (property == null) return item === undefined ? fallback : item;
|
36741 | if (item !== Object(item)) return fallback === undefined ? item : fallback;
|
36742 | if (typeof property === 'string') return getObjectValueByPath(item, property, fallback);
|
36743 | if (Array.isArray(property)) return getNestedValue(item, property, fallback);
|
36744 | if (typeof property !== 'function') return fallback;
|
36745 | var value = property(item, fallback);
|
36746 | return typeof value === 'undefined' ? fallback : value;
|
36747 | }
|
36748 | function createRange(length) {
|
36749 | return Array.from({
|
36750 | length: length
|
36751 | }, function (v, k) {
|
36752 | return k;
|
36753 | });
|
36754 | }
|
36755 | function getZIndex(el) {
|
36756 | if (!el || el.nodeType !== Node.ELEMENT_NODE) return 0;
|
36757 | var index = +window.getComputedStyle(el).getPropertyValue('z-index');
|
36758 | if (!index) return getZIndex(el.parentNode);
|
36759 | return index;
|
36760 | }
|
36761 | var tagsToReplace = {
|
36762 | '&': '&',
|
36763 | '<': '<',
|
36764 | '>': '>'
|
36765 | };
|
36766 | function escapeHTML(str) {
|
36767 | return str.replace(/[&<>]/g, function (tag) {
|
36768 | return tagsToReplace[tag] || tag;
|
36769 | });
|
36770 | }
|
36771 | function filterObjectOnKeys(obj, keys) {
|
36772 | var filtered = {};
|
36773 |
|
36774 | for (var i = 0; i < keys.length; i++) {
|
36775 | var key = keys[i];
|
36776 |
|
36777 | if (typeof obj[key] !== 'undefined') {
|
36778 | filtered[key] = obj[key];
|
36779 | }
|
36780 | }
|
36781 |
|
36782 | return filtered;
|
36783 | }
|
36784 | function convertToUnit(str, unit) {
|
36785 | if (unit === void 0) {
|
36786 | unit = 'px';
|
36787 | }
|
36788 |
|
36789 | if (str == null || str === '') {
|
36790 | return undefined;
|
36791 | } else if (isNaN(+str)) {
|
36792 | return String(str);
|
36793 | } else {
|
36794 | return "" + Number(str) + unit;
|
36795 | }
|
36796 | }
|
36797 | function kebabCase(str) {
|
36798 | return (str || '').replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
36799 | }
|
36800 | function isObject(obj) {
|
36801 | return obj !== null && _typeof(obj) === 'object';
|
36802 | }
|
36803 |
|
36804 | var keyCodes = Object.freeze({
|
36805 | enter: 13,
|
36806 | tab: 9,
|
36807 | delete: 46,
|
36808 | esc: 27,
|
36809 | space: 32,
|
36810 | up: 38,
|
36811 | down: 40,
|
36812 | left: 37,
|
36813 | right: 39,
|
36814 | end: 35,
|
36815 | home: 36,
|
36816 | del: 46,
|
36817 | backspace: 8,
|
36818 | insert: 45,
|
36819 | pageup: 33,
|
36820 | pagedown: 34
|
36821 | });
|
36822 |
|
36823 |
|
36824 | function remapInternalIcon(vm, iconName) {
|
36825 | if (!iconName.startsWith('$')) {
|
36826 | return iconName;
|
36827 | }
|
36828 |
|
36829 |
|
36830 | var iconPath = "$vuetify.icons.values." + iconName.split('$').pop().split('.').pop();
|
36831 |
|
36832 |
|
36833 | return getObjectValueByPath(vm, iconPath, iconName);
|
36834 | }
|
36835 | function keys(o) {
|
36836 | return Object.keys(o);
|
36837 | }
|
36838 |
|
36839 |
|
36840 |
|
36841 |
|
36842 | var camelizeRE = /-(\w)/g;
|
36843 | var camelize = function camelize(str) {
|
36844 | return str.replace(camelizeRE, function (_, c) {
|
36845 | return c ? c.toUpperCase() : '';
|
36846 | });
|
36847 | };
|
36848 |
|
36849 |
|
36850 |
|
36851 |
|
36852 | function arrayDiff(a, b) {
|
36853 | var diff = [];
|
36854 |
|
36855 | for (var i = 0; i < b.length; i++) {
|
36856 | if (a.indexOf(b[i]) < 0) diff.push(b[i]);
|
36857 | }
|
36858 |
|
36859 | return diff;
|
36860 | }
|
36861 |
|
36862 |
|
36863 |
|
36864 |
|
36865 | function upperFirst(str) {
|
36866 | return str.charAt(0).toUpperCase() + str.slice(1);
|
36867 | }
|
36868 | function groupByProperty(xs, key) {
|
36869 | return xs.reduce(function (rv, x) {
|
36870 | (rv[x[key]] = rv[x[key]] || []).push(x);
|
36871 | return rv;
|
36872 | }, {});
|
36873 | }
|
36874 | function wrapInArray(v) {
|
36875 | return v != null ? Array.isArray(v) ? v : [v] : [];
|
36876 | }
|
36877 | function sortItems(items, sortBy, sortDesc, locale, customSorters) {
|
36878 | if (sortBy === null || !sortBy.length) return items;
|
36879 | return items.sort(function (a, b) {
|
36880 | var _a, _b;
|
36881 |
|
36882 | for (var i = 0; i < sortBy.length; i++) {
|
36883 | var sortKey = sortBy[i];
|
36884 | var sortA = getObjectValueByPath(a, sortKey);
|
36885 | var sortB = getObjectValueByPath(b, sortKey);
|
36886 |
|
36887 | if (sortDesc[i]) {
|
36888 | _a = __read([sortB, sortA], 2), sortA = _a[0], sortB = _a[1];
|
36889 | }
|
36890 |
|
36891 | if (customSorters && customSorters[sortKey]) {
|
36892 | var customResult = customSorters[sortKey](sortA, sortB);
|
36893 | if (!customResult) continue;
|
36894 | return customResult;
|
36895 | }
|
36896 |
|
36897 |
|
36898 | if (sortA === null && sortB === null) {
|
36899 | continue;
|
36900 | }
|
36901 |
|
36902 | _b = __read([sortA, sortB].map(function (s) {
|
36903 | return (s || '').toString().toLocaleLowerCase();
|
36904 | }), 2), sortA = _b[0], sortB = _b[1];
|
36905 |
|
36906 | if (sortA !== sortB) {
|
36907 | var sortResult = !isNaN(sortA) && !isNaN(sortB) ? Number(sortA) - Number(sortB) : sortA.localeCompare(sortB, locale);
|
36908 | if (sortResult) return sortResult;
|
36909 | }
|
36910 | }
|
36911 |
|
36912 | return 0;
|
36913 | });
|
36914 | }
|
36915 | function defaultFilter(value, search, item) {
|
36916 | return value != null && search != null && typeof value !== 'boolean' && value.toString().toLocaleLowerCase().indexOf(search.toLocaleLowerCase()) !== -1;
|
36917 | }
|
36918 | function searchItems(items, search) {
|
36919 | if (!search) return items;
|
36920 | search = search.toString().toLowerCase();
|
36921 | if (search.trim() === '') return items;
|
36922 | return items.filter(function (item) {
|
36923 | return Object.keys(item).some(function (key) {
|
36924 | return defaultFilter(getObjectValueByPath(item, key), search, item);
|
36925 | });
|
36926 | });
|
36927 | }
|
36928 |
|
36929 |
|
36930 |
|
36931 |
|
36932 |
|
36933 |
|
36934 |
|
36935 | function getSlotType(vm, name, split) {
|
36936 | if (vm.$slots[name] && vm.$scopedSlots[name] && vm.$scopedSlots[name].name) {
|
36937 | return split ? 'v-slot' : 'scoped';
|
36938 | }
|
36939 |
|
36940 | if (vm.$slots[name]) return 'normal';
|
36941 | if (vm.$scopedSlots[name]) return 'scoped';
|
36942 | }
|
36943 | function debounce(fn, delay) {
|
36944 | var timeoutId = 0;
|
36945 | return function () {
|
36946 | var args = [];
|
36947 |
|
36948 | for (var _i = 0; _i < arguments.length; _i++) {
|
36949 | args[_i] = arguments[_i];
|
36950 | }
|
36951 |
|
36952 | clearTimeout(timeoutId);
|
36953 | timeoutId = setTimeout(function () {
|
36954 | return fn.apply(void 0, __spread(args));
|
36955 | }, delay);
|
36956 | };
|
36957 | }
|
36958 | function getPrefixedScopedSlots(prefix, scopedSlots) {
|
36959 | return Object.keys(scopedSlots).filter(function (k) {
|
36960 | return k.startsWith(prefix);
|
36961 | }).reduce(function (obj, k) {
|
36962 | obj[k.replace(prefix, '')] = scopedSlots[k];
|
36963 | return obj;
|
36964 | }, {});
|
36965 | }
|
36966 | function getSlot(vm, name, data, optional) {
|
36967 | if (name === void 0) {
|
36968 | name = 'default';
|
36969 | }
|
36970 |
|
36971 | if (optional === void 0) {
|
36972 | optional = false;
|
36973 | }
|
36974 |
|
36975 | if (vm.$scopedSlots[name]) {
|
36976 | return vm.$scopedSlots[name](data);
|
36977 | } else if (vm.$slots[name] && (!data || optional)) {
|
36978 | return vm.$slots[name];
|
36979 | }
|
36980 |
|
36981 | return undefined;
|
36982 | }
|
36983 | function clamp(value, min, max) {
|
36984 | if (min === void 0) {
|
36985 | min = 0;
|
36986 | }
|
36987 |
|
36988 | if (max === void 0) {
|
36989 | max = 1;
|
36990 | }
|
36991 |
|
36992 | return Math.max(min, Math.min(max, value));
|
36993 | }
|
36994 | function padEnd(str, length, char) {
|
36995 | if (char === void 0) {
|
36996 | char = '0';
|
36997 | }
|
36998 |
|
36999 | return str + char.repeat(Math.max(0, length - str.length));
|
37000 | }
|
37001 | function chunk(str, size) {
|
37002 | if (size === void 0) {
|
37003 | size = 1;
|
37004 | }
|
37005 |
|
37006 | var chunked = [];
|
37007 | var index = 0;
|
37008 |
|
37009 | while (index < str.length) {
|
37010 | chunked.push(str.substr(index, size));
|
37011 | index += size;
|
37012 | }
|
37013 |
|
37014 | return chunked;
|
37015 | }
|
37016 | function humanReadableFileSize(bytes, binary) {
|
37017 | if (binary === void 0) {
|
37018 | binary = false;
|
37019 | }
|
37020 |
|
37021 | var base = binary ? 1024 : 1000;
|
37022 |
|
37023 | if (bytes < base) {
|
37024 | return bytes + " B";
|
37025 | }
|
37026 |
|
37027 | var prefix = binary ? ['Ki', 'Mi', 'Gi'] : ['k', 'M', 'G'];
|
37028 | var unit = -1;
|
37029 |
|
37030 | while (Math.abs(bytes) >= base && unit < prefix.length - 1) {
|
37031 | bytes /= base;
|
37032 | ++unit;
|
37033 | }
|
37034 |
|
37035 | return bytes.toFixed(1) + " " + prefix[unit] + "B";
|
37036 | }
|
37037 | function camelizeObjectKeys(obj) {
|
37038 | if (!obj) return {};
|
37039 | return Object.keys(obj).reduce(function (o, key) {
|
37040 | o[camelize(key)] = obj[key];
|
37041 | return o;
|
37042 | }, {});
|
37043 | }
|
37044 |
|
37045 | }),
|
37046 |
|
37047 | "./src/util/mergeData.ts":
|
37048 |
|
37049 |
|
37050 |
|
37051 |
|
37052 | (function(module, __webpack_exports__, __webpack_require__) {
|
37053 |
|
37054 | "use strict";
|
37055 | __webpack_require__.r(__webpack_exports__);
|
37056 | __webpack_require__.d(__webpack_exports__, "default", function() { return mergeData; });
|
37057 |
|
37058 |
|
37059 |
|
37060 |
|
37061 |
|
37062 | var __assign = undefined && undefined.__assign || function () {
|
37063 | __assign = Object.assign || function (t) {
|
37064 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
37065 | s = arguments[i];
|
37066 |
|
37067 | for (var p in s) {
|
37068 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
37069 | }
|
37070 | }
|
37071 |
|
37072 | return t;
|
37073 | };
|
37074 |
|
37075 | return __assign.apply(this, arguments);
|
37076 | };
|
37077 |
|
37078 | var __values = undefined && undefined.__values || function (o) {
|
37079 | var m = typeof Symbol === "function" && o[Symbol.iterator],
|
37080 | i = 0;
|
37081 | if (m) return m.call(o);
|
37082 | return {
|
37083 | next: function next() {
|
37084 | if (o && i >= o.length) o = void 0;
|
37085 | return {
|
37086 | value: o && o[i++],
|
37087 | done: !o
|
37088 | };
|
37089 | }
|
37090 | };
|
37091 | };
|
37092 |
|
37093 | function mergeData() {
|
37094 | var e_1, _a, e_2, _b;
|
37095 |
|
37096 | var mergeTarget = {};
|
37097 | var i = arguments.length;
|
37098 | var prop;
|
37099 | var event;
|
37100 |
|
37101 | while (i--) {
|
37102 | try {
|
37103 |
|
37104 |
|
37105 | for (var _c = (e_1 = void 0, __values(Object.keys(arguments[i]))), _d = _c.next(); !_d.done; _d = _c.next()) {
|
37106 | prop = _d.value;
|
37107 |
|
37108 | switch (prop) {
|
37109 |
|
37110 | case 'class':
|
37111 | case 'style':
|
37112 | case 'directives':
|
37113 | if (!Array.isArray(mergeTarget[prop])) {
|
37114 | mergeTarget[prop] = [];
|
37115 | }
|
37116 |
|
37117 |
|
37118 |
|
37119 | mergeTarget[prop] = mergeTarget[prop].concat(arguments[i][prop]);
|
37120 | break;
|
37121 |
|
37122 |
|
37123 | case 'staticClass':
|
37124 | if (!arguments[i][prop]) {
|
37125 | break;
|
37126 | }
|
37127 |
|
37128 | if (mergeTarget[prop] === undefined) {
|
37129 | mergeTarget[prop] = '';
|
37130 | }
|
37131 |
|
37132 | if (mergeTarget[prop]) {
|
37133 |
|
37134 | mergeTarget[prop] += ' ';
|
37135 | }
|
37136 |
|
37137 | mergeTarget[prop] += arguments[i][prop].trim();
|
37138 | break;
|
37139 |
|
37140 |
|
37141 |
|
37142 |
|
37143 |
|
37144 |
|
37145 | case 'on':
|
37146 | case 'nativeOn':
|
37147 | if (!mergeTarget[prop]) {
|
37148 | mergeTarget[prop] = {};
|
37149 | }
|
37150 |
|
37151 | var listeners = mergeTarget[prop];
|
37152 |
|
37153 | try {
|
37154 | for (var _e = (e_2 = void 0, __values(Object.keys(arguments[i][prop] || {}))), _f = _e.next(); !_f.done; _f = _e.next()) {
|
37155 | event = _f.value;
|
37156 |
|
37157 | if (listeners[event]) {
|
37158 |
|
37159 | listeners[event] = Array().concat(
|
37160 | listeners[event], arguments[i][prop][event]);
|
37161 | } else {
|
37162 |
|
37163 | listeners[event] = arguments[i][prop][event];
|
37164 | }
|
37165 | }
|
37166 | } catch (e_2_1) {
|
37167 | e_2 = {
|
37168 | error: e_2_1
|
37169 | };
|
37170 | } finally {
|
37171 | try {
|
37172 | if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
|
37173 | } finally {
|
37174 | if (e_2) throw e_2.error;
|
37175 | }
|
37176 | }
|
37177 |
|
37178 | break;
|
37179 |
|
37180 |
|
37181 | case 'attrs':
|
37182 | case 'props':
|
37183 | case 'domProps':
|
37184 | case 'scopedSlots':
|
37185 | case 'staticStyle':
|
37186 | case 'hook':
|
37187 | case 'transition':
|
37188 | if (!mergeTarget[prop]) {
|
37189 | mergeTarget[prop] = {};
|
37190 | }
|
37191 |
|
37192 | mergeTarget[prop] = __assign({}, arguments[i][prop], mergeTarget[prop]);
|
37193 | break;
|
37194 |
|
37195 |
|
37196 | case 'slot':
|
37197 | case 'key':
|
37198 | case 'ref':
|
37199 | case 'tag':
|
37200 | case 'show':
|
37201 | case 'keepAlive':
|
37202 | default:
|
37203 | if (!mergeTarget[prop]) {
|
37204 | mergeTarget[prop] = arguments[i][prop];
|
37205 | }
|
37206 |
|
37207 | }
|
37208 | }
|
37209 | } catch (e_1_1) {
|
37210 | e_1 = {
|
37211 | error: e_1_1
|
37212 | };
|
37213 | } finally {
|
37214 | try {
|
37215 | if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
37216 | } finally {
|
37217 | if (e_1) throw e_1.error;
|
37218 | }
|
37219 | }
|
37220 | }
|
37221 |
|
37222 | return mergeTarget;
|
37223 | }
|
37224 |
|
37225 | }),
|
37226 |
|
37227 | "./src/util/mixins.ts":
|
37228 |
|
37229 |
|
37230 |
|
37231 |
|
37232 | (function(module, __webpack_exports__, __webpack_require__) {
|
37233 |
|
37234 | "use strict";
|
37235 | __webpack_require__.r(__webpack_exports__);
|
37236 | __webpack_require__.d(__webpack_exports__, "default", function() { return mixins; });
|
37237 | var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "vue");
|
37238 | var vue__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
37239 |
|
37240 |
|
37241 | function mixins() {
|
37242 | var args = [];
|
37243 |
|
37244 | for (var _i = 0; _i < arguments.length; _i++) {
|
37245 | args[_i] = arguments[_i];
|
37246 | }
|
37247 |
|
37248 | return vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
|
37249 | mixins: args
|
37250 | });
|
37251 | }
|
37252 |
|
37253 | }),
|
37254 |
|
37255 | "./src/util/rebuildFunctionalSlots.ts":
|
37256 |
|
37257 |
|
37258 |
|
37259 |
|
37260 | (function(module, __webpack_exports__, __webpack_require__) {
|
37261 |
|
37262 | "use strict";
|
37263 | __webpack_require__.r(__webpack_exports__);
|
37264 | __webpack_require__.d(__webpack_exports__, "default", function() { return rebuildFunctionalSlots; });
|
37265 | function rebuildFunctionalSlots(slots, h) {
|
37266 | var children = [];
|
37267 |
|
37268 | for (var slot in slots) {
|
37269 | if (slots.hasOwnProperty(slot)) {
|
37270 | children.push(h('template', {
|
37271 | slot: slot
|
37272 | }, slots[slot]));
|
37273 | }
|
37274 | }
|
37275 |
|
37276 | return children;
|
37277 | }
|
37278 |
|
37279 | }),
|
37280 |
|
37281 | "vue":
|
37282 |
|
37283 |
|
37284 |
|
37285 |
|
37286 | (function(module, exports) {
|
37287 |
|
37288 | module.exports = __WEBPACK_EXTERNAL_MODULE_vue__;
|
37289 |
|
37290 | })
|
37291 |
|
37292 | })["default"];
|
37293 | });
|
37294 |
|
\ | No newline at end of file |