vuetify-swatches 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +2 -2
- package/dist/v-swatches.es.js +26651 -0
- package/dist/v-swatches.umd.js +23 -0
- package/package.json +36 -23
- package/src/components/VSwatches.vue +90 -69
- package/dist/VSwatches.es.js +0 -3144
- package/dist/VSwatches.umd.js +0 -33
- package/dist/components/VSwatches.vue.d.ts +0 -23
- package/dist/components/VSwatches.vue.d.ts.map +0 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +0 -1
- package/dist/index.esm.d.ts +0 -6
- package/dist/index.esm.d.ts.map +0 -1
package/dist/VSwatches.es.js
DELETED
|
@@ -1,3144 +0,0 @@
|
|
|
1
|
-
import { PropSync, Prop, Component, Vue as Vue$1 } from "vue-property-decorator";
|
|
2
|
-
import Vue from "vue";
|
|
3
|
-
const Themeable = Vue.extend().extend({
|
|
4
|
-
name: "themeable",
|
|
5
|
-
provide() {
|
|
6
|
-
return {
|
|
7
|
-
theme: this.themeableProvide
|
|
8
|
-
};
|
|
9
|
-
},
|
|
10
|
-
inject: {
|
|
11
|
-
theme: {
|
|
12
|
-
default: {
|
|
13
|
-
isDark: false
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
props: {
|
|
18
|
-
dark: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: null
|
|
21
|
-
},
|
|
22
|
-
light: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: null
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
data() {
|
|
28
|
-
return {
|
|
29
|
-
themeableProvide: {
|
|
30
|
-
isDark: false
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
},
|
|
34
|
-
computed: {
|
|
35
|
-
appIsDark() {
|
|
36
|
-
return this.$vuetify.theme.dark || false;
|
|
37
|
-
},
|
|
38
|
-
isDark() {
|
|
39
|
-
if (this.dark === true) {
|
|
40
|
-
return true;
|
|
41
|
-
} else if (this.light === true) {
|
|
42
|
-
return false;
|
|
43
|
-
} else {
|
|
44
|
-
return this.theme.isDark;
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
themeClasses() {
|
|
48
|
-
return {
|
|
49
|
-
"theme--dark": this.isDark,
|
|
50
|
-
"theme--light": !this.isDark
|
|
51
|
-
};
|
|
52
|
-
},
|
|
53
|
-
rootIsDark() {
|
|
54
|
-
if (this.dark === true) {
|
|
55
|
-
return true;
|
|
56
|
-
} else if (this.light === true) {
|
|
57
|
-
return false;
|
|
58
|
-
} else {
|
|
59
|
-
return this.appIsDark;
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
rootThemeClasses() {
|
|
63
|
-
return {
|
|
64
|
-
"theme--dark": this.rootIsDark,
|
|
65
|
-
"theme--light": !this.rootIsDark
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
watch: {
|
|
70
|
-
isDark: {
|
|
71
|
-
handler(newVal, oldVal) {
|
|
72
|
-
if (newVal !== oldVal) {
|
|
73
|
-
this.themeableProvide.isDark = this.isDark;
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
immediate: true
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
var Themeable$1 = Themeable;
|
|
81
|
-
function mixins(...args) {
|
|
82
|
-
return Vue.extend({
|
|
83
|
-
mixins: args
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
var VSheet = "";
|
|
87
|
-
function makeWatcher(property) {
|
|
88
|
-
return function(val, oldVal) {
|
|
89
|
-
for (const attr in oldVal) {
|
|
90
|
-
if (!Object.prototype.hasOwnProperty.call(val, attr)) {
|
|
91
|
-
this.$delete(this.$data[property], attr);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
for (const attr in val) {
|
|
95
|
-
this.$set(this.$data[property], attr, val[attr]);
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
var BindsAttrs = Vue.extend({
|
|
100
|
-
data: () => ({
|
|
101
|
-
attrs$: {},
|
|
102
|
-
listeners$: {}
|
|
103
|
-
}),
|
|
104
|
-
created() {
|
|
105
|
-
this.$watch("$attrs", makeWatcher("attrs$"), {
|
|
106
|
-
immediate: true
|
|
107
|
-
});
|
|
108
|
-
this.$watch("$listeners", makeWatcher("listeners$"), {
|
|
109
|
-
immediate: true
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
function install(Vue$12, args = {}) {
|
|
114
|
-
if (install.installed)
|
|
115
|
-
return;
|
|
116
|
-
install.installed = true;
|
|
117
|
-
if (Vue !== Vue$12) {
|
|
118
|
-
consoleError(`Multiple instances of Vue detected
|
|
119
|
-
See https://github.com/vuetifyjs/vuetify/issues/4068
|
|
120
|
-
|
|
121
|
-
If you're seeing "$attrs is readonly", it's caused by this`);
|
|
122
|
-
}
|
|
123
|
-
const components = args.components || {};
|
|
124
|
-
const directives = args.directives || {};
|
|
125
|
-
for (const name in directives) {
|
|
126
|
-
const directive2 = directives[name];
|
|
127
|
-
Vue$12.directive(name, directive2);
|
|
128
|
-
}
|
|
129
|
-
(function registerComponents(components2) {
|
|
130
|
-
if (components2) {
|
|
131
|
-
for (const key in components2) {
|
|
132
|
-
const component2 = components2[key];
|
|
133
|
-
if (component2 && !registerComponents(component2.$_vuetify_subcomponents)) {
|
|
134
|
-
Vue$12.component(key, component2);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
return true;
|
|
138
|
-
}
|
|
139
|
-
return false;
|
|
140
|
-
})(components);
|
|
141
|
-
if (Vue$12.$_vuetify_installed)
|
|
142
|
-
return;
|
|
143
|
-
Vue$12.$_vuetify_installed = true;
|
|
144
|
-
Vue$12.mixin({
|
|
145
|
-
beforeCreate() {
|
|
146
|
-
const options = this.$options;
|
|
147
|
-
if (options.vuetify) {
|
|
148
|
-
options.vuetify.init(this, this.$ssrContext);
|
|
149
|
-
this.$vuetify = Vue$12.observable(options.vuetify.framework);
|
|
150
|
-
} else {
|
|
151
|
-
this.$vuetify = options.parent && options.parent.$vuetify || this;
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
beforeMount() {
|
|
155
|
-
if (this.$options.vuetify && this.$el && this.$el.hasAttribute("data-server-rendered")) {
|
|
156
|
-
this.$vuetify.isHydrating = true;
|
|
157
|
-
this.$vuetify.breakpoint.update(true);
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
mounted() {
|
|
161
|
-
if (this.$options.vuetify && this.$vuetify.isHydrating) {
|
|
162
|
-
this.$vuetify.isHydrating = false;
|
|
163
|
-
this.$vuetify.breakpoint.update();
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
class Service {
|
|
169
|
-
constructor() {
|
|
170
|
-
this.framework = {};
|
|
171
|
-
}
|
|
172
|
-
init(root, ssrContext) {
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
class Application extends Service {
|
|
176
|
-
constructor() {
|
|
177
|
-
super(...arguments);
|
|
178
|
-
this.bar = 0;
|
|
179
|
-
this.top = 0;
|
|
180
|
-
this.left = 0;
|
|
181
|
-
this.insetFooter = 0;
|
|
182
|
-
this.right = 0;
|
|
183
|
-
this.bottom = 0;
|
|
184
|
-
this.footer = 0;
|
|
185
|
-
this.application = {
|
|
186
|
-
bar: {},
|
|
187
|
-
top: {},
|
|
188
|
-
left: {},
|
|
189
|
-
insetFooter: {},
|
|
190
|
-
right: {},
|
|
191
|
-
bottom: {},
|
|
192
|
-
footer: {}
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
register(uid, location, size) {
|
|
196
|
-
this.application[location][uid] = size;
|
|
197
|
-
this.update(location);
|
|
198
|
-
}
|
|
199
|
-
unregister(uid, location) {
|
|
200
|
-
if (this.application[location][uid] == null)
|
|
201
|
-
return;
|
|
202
|
-
delete this.application[location][uid];
|
|
203
|
-
this.update(location);
|
|
204
|
-
}
|
|
205
|
-
update(location) {
|
|
206
|
-
this[location] = Object.values(this.application[location]).reduce((acc, cur) => acc + cur, 0);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
Application.property = "application";
|
|
210
|
-
class Breakpoint extends Service {
|
|
211
|
-
constructor(preset2) {
|
|
212
|
-
super();
|
|
213
|
-
this.xs = false;
|
|
214
|
-
this.sm = false;
|
|
215
|
-
this.md = false;
|
|
216
|
-
this.lg = false;
|
|
217
|
-
this.xl = false;
|
|
218
|
-
this.xsOnly = false;
|
|
219
|
-
this.smOnly = false;
|
|
220
|
-
this.smAndDown = false;
|
|
221
|
-
this.smAndUp = false;
|
|
222
|
-
this.mdOnly = false;
|
|
223
|
-
this.mdAndDown = false;
|
|
224
|
-
this.mdAndUp = false;
|
|
225
|
-
this.lgOnly = false;
|
|
226
|
-
this.lgAndDown = false;
|
|
227
|
-
this.lgAndUp = false;
|
|
228
|
-
this.xlOnly = false;
|
|
229
|
-
this.name = "xs";
|
|
230
|
-
this.height = 0;
|
|
231
|
-
this.width = 0;
|
|
232
|
-
this.mobile = true;
|
|
233
|
-
this.resizeTimeout = 0;
|
|
234
|
-
const {
|
|
235
|
-
mobileBreakpoint,
|
|
236
|
-
scrollBarWidth,
|
|
237
|
-
thresholds
|
|
238
|
-
} = preset2[Breakpoint.property];
|
|
239
|
-
this.mobileBreakpoint = mobileBreakpoint;
|
|
240
|
-
this.scrollBarWidth = scrollBarWidth;
|
|
241
|
-
this.thresholds = thresholds;
|
|
242
|
-
}
|
|
243
|
-
init() {
|
|
244
|
-
this.update();
|
|
245
|
-
if (typeof window === "undefined")
|
|
246
|
-
return;
|
|
247
|
-
window.addEventListener("resize", this.onResize.bind(this), {
|
|
248
|
-
passive: true
|
|
249
|
-
});
|
|
250
|
-
}
|
|
251
|
-
update(ssr = false) {
|
|
252
|
-
const height = ssr ? 0 : this.getClientHeight();
|
|
253
|
-
const width = ssr ? 0 : this.getClientWidth();
|
|
254
|
-
const xs = width < this.thresholds.xs;
|
|
255
|
-
const sm = width < this.thresholds.sm && !xs;
|
|
256
|
-
const md2 = width < this.thresholds.md - this.scrollBarWidth && !(sm || xs);
|
|
257
|
-
const lg = width < this.thresholds.lg - this.scrollBarWidth && !(md2 || sm || xs);
|
|
258
|
-
const xl = width >= this.thresholds.lg - this.scrollBarWidth;
|
|
259
|
-
this.height = height;
|
|
260
|
-
this.width = width;
|
|
261
|
-
this.xs = xs;
|
|
262
|
-
this.sm = sm;
|
|
263
|
-
this.md = md2;
|
|
264
|
-
this.lg = lg;
|
|
265
|
-
this.xl = xl;
|
|
266
|
-
this.xsOnly = xs;
|
|
267
|
-
this.smOnly = sm;
|
|
268
|
-
this.smAndDown = (xs || sm) && !(md2 || lg || xl);
|
|
269
|
-
this.smAndUp = !xs && (sm || md2 || lg || xl);
|
|
270
|
-
this.mdOnly = md2;
|
|
271
|
-
this.mdAndDown = (xs || sm || md2) && !(lg || xl);
|
|
272
|
-
this.mdAndUp = !(xs || sm) && (md2 || lg || xl);
|
|
273
|
-
this.lgOnly = lg;
|
|
274
|
-
this.lgAndDown = (xs || sm || md2 || lg) && !xl;
|
|
275
|
-
this.lgAndUp = !(xs || sm || md2) && (lg || xl);
|
|
276
|
-
this.xlOnly = xl;
|
|
277
|
-
switch (true) {
|
|
278
|
-
case xs:
|
|
279
|
-
this.name = "xs";
|
|
280
|
-
break;
|
|
281
|
-
case sm:
|
|
282
|
-
this.name = "sm";
|
|
283
|
-
break;
|
|
284
|
-
case md2:
|
|
285
|
-
this.name = "md";
|
|
286
|
-
break;
|
|
287
|
-
case lg:
|
|
288
|
-
this.name = "lg";
|
|
289
|
-
break;
|
|
290
|
-
default:
|
|
291
|
-
this.name = "xl";
|
|
292
|
-
break;
|
|
293
|
-
}
|
|
294
|
-
if (typeof this.mobileBreakpoint === "number") {
|
|
295
|
-
this.mobile = width < parseInt(this.mobileBreakpoint, 10);
|
|
296
|
-
return;
|
|
297
|
-
}
|
|
298
|
-
const breakpoints = {
|
|
299
|
-
xs: 0,
|
|
300
|
-
sm: 1,
|
|
301
|
-
md: 2,
|
|
302
|
-
lg: 3,
|
|
303
|
-
xl: 4
|
|
304
|
-
};
|
|
305
|
-
const current = breakpoints[this.name];
|
|
306
|
-
const max = breakpoints[this.mobileBreakpoint];
|
|
307
|
-
this.mobile = current <= max;
|
|
308
|
-
}
|
|
309
|
-
onResize() {
|
|
310
|
-
clearTimeout(this.resizeTimeout);
|
|
311
|
-
this.resizeTimeout = window.setTimeout(this.update.bind(this), 200);
|
|
312
|
-
}
|
|
313
|
-
getClientWidth() {
|
|
314
|
-
if (typeof document === "undefined")
|
|
315
|
-
return 0;
|
|
316
|
-
return Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
|
|
317
|
-
}
|
|
318
|
-
getClientHeight() {
|
|
319
|
-
if (typeof document === "undefined")
|
|
320
|
-
return 0;
|
|
321
|
-
return Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
Breakpoint.property = "breakpoint";
|
|
325
|
-
const linear = (t) => t;
|
|
326
|
-
const easeInQuad = (t) => t ** 2;
|
|
327
|
-
const easeOutQuad = (t) => t * (2 - t);
|
|
328
|
-
const easeInOutQuad = (t) => t < 0.5 ? 2 * t ** 2 : -1 + (4 - 2 * t) * t;
|
|
329
|
-
const easeInCubic = (t) => t ** 3;
|
|
330
|
-
const easeOutCubic = (t) => --t ** 3 + 1;
|
|
331
|
-
const easeInOutCubic = (t) => t < 0.5 ? 4 * t ** 3 : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;
|
|
332
|
-
const easeInQuart = (t) => t ** 4;
|
|
333
|
-
const easeOutQuart = (t) => 1 - --t ** 4;
|
|
334
|
-
const easeInOutQuart = (t) => t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t;
|
|
335
|
-
const easeInQuint = (t) => t ** 5;
|
|
336
|
-
const easeOutQuint = (t) => 1 + --t ** 5;
|
|
337
|
-
const easeInOutQuint = (t) => t < 0.5 ? 16 * t ** 5 : 1 + 16 * --t ** 5;
|
|
338
|
-
var easingPatterns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
339
|
-
__proto__: null,
|
|
340
|
-
linear,
|
|
341
|
-
easeInQuad,
|
|
342
|
-
easeOutQuad,
|
|
343
|
-
easeInOutQuad,
|
|
344
|
-
easeInCubic,
|
|
345
|
-
easeOutCubic,
|
|
346
|
-
easeInOutCubic,
|
|
347
|
-
easeInQuart,
|
|
348
|
-
easeOutQuart,
|
|
349
|
-
easeInOutQuart,
|
|
350
|
-
easeInQuint,
|
|
351
|
-
easeOutQuint,
|
|
352
|
-
easeInOutQuint
|
|
353
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
354
|
-
function getOffset(target) {
|
|
355
|
-
if (typeof target === "number") {
|
|
356
|
-
return target;
|
|
357
|
-
}
|
|
358
|
-
let el = $(target);
|
|
359
|
-
if (!el) {
|
|
360
|
-
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.`);
|
|
361
|
-
}
|
|
362
|
-
let totalOffset = 0;
|
|
363
|
-
while (el) {
|
|
364
|
-
totalOffset += el.offsetTop;
|
|
365
|
-
el = el.offsetParent;
|
|
366
|
-
}
|
|
367
|
-
return totalOffset;
|
|
368
|
-
}
|
|
369
|
-
function getContainer(container) {
|
|
370
|
-
const el = $(container);
|
|
371
|
-
if (el)
|
|
372
|
-
return el;
|
|
373
|
-
throw typeof container === "string" ? new Error(`Container element "${container}" not found.`) : new TypeError(`Container must be a Selector/HTMLElement/VueComponent, received ${type(container)} instead.`);
|
|
374
|
-
}
|
|
375
|
-
function type(el) {
|
|
376
|
-
return el == null ? el : el.constructor.name;
|
|
377
|
-
}
|
|
378
|
-
function $(el) {
|
|
379
|
-
if (typeof el === "string") {
|
|
380
|
-
return document.querySelector(el);
|
|
381
|
-
} else if (el && el._isVue) {
|
|
382
|
-
return el.$el;
|
|
383
|
-
} else if (el instanceof HTMLElement) {
|
|
384
|
-
return el;
|
|
385
|
-
} else {
|
|
386
|
-
return null;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
function goTo(_target, _settings = {}) {
|
|
390
|
-
const settings = {
|
|
391
|
-
container: document.scrollingElement || document.body || document.documentElement,
|
|
392
|
-
duration: 500,
|
|
393
|
-
offset: 0,
|
|
394
|
-
easing: "easeInOutCubic",
|
|
395
|
-
appOffset: true,
|
|
396
|
-
..._settings
|
|
397
|
-
};
|
|
398
|
-
const container = getContainer(settings.container);
|
|
399
|
-
if (settings.appOffset && goTo.framework.application) {
|
|
400
|
-
const isDrawer = container.classList.contains("v-navigation-drawer");
|
|
401
|
-
const isClipped = container.classList.contains("v-navigation-drawer--clipped");
|
|
402
|
-
const {
|
|
403
|
-
bar,
|
|
404
|
-
top
|
|
405
|
-
} = goTo.framework.application;
|
|
406
|
-
settings.offset += bar;
|
|
407
|
-
if (!isDrawer || isClipped)
|
|
408
|
-
settings.offset += top;
|
|
409
|
-
}
|
|
410
|
-
const startTime = performance.now();
|
|
411
|
-
let targetLocation;
|
|
412
|
-
if (typeof _target === "number") {
|
|
413
|
-
targetLocation = getOffset(_target) - settings.offset;
|
|
414
|
-
} else {
|
|
415
|
-
targetLocation = getOffset(_target) - getOffset(container) - settings.offset;
|
|
416
|
-
}
|
|
417
|
-
const startLocation = container.scrollTop;
|
|
418
|
-
if (targetLocation === startLocation)
|
|
419
|
-
return Promise.resolve(targetLocation);
|
|
420
|
-
const ease = typeof settings.easing === "function" ? settings.easing : easingPatterns[settings.easing];
|
|
421
|
-
if (!ease)
|
|
422
|
-
throw new TypeError(`Easing function "${settings.easing}" not found.`);
|
|
423
|
-
return new Promise((resolve) => requestAnimationFrame(function step(currentTime) {
|
|
424
|
-
const timeElapsed = currentTime - startTime;
|
|
425
|
-
const progress = Math.abs(settings.duration ? Math.min(timeElapsed / settings.duration, 1) : 1);
|
|
426
|
-
container.scrollTop = Math.floor(startLocation + (targetLocation - startLocation) * ease(progress));
|
|
427
|
-
const clientHeight = container === document.body ? document.documentElement.clientHeight : container.clientHeight;
|
|
428
|
-
const reachBottom = clientHeight + container.scrollTop >= container.scrollHeight;
|
|
429
|
-
if (progress === 1 || targetLocation > container.scrollTop && reachBottom) {
|
|
430
|
-
return resolve(targetLocation);
|
|
431
|
-
}
|
|
432
|
-
requestAnimationFrame(step);
|
|
433
|
-
}));
|
|
434
|
-
}
|
|
435
|
-
goTo.framework = {};
|
|
436
|
-
goTo.init = () => {
|
|
437
|
-
};
|
|
438
|
-
class Goto extends Service {
|
|
439
|
-
constructor() {
|
|
440
|
-
super();
|
|
441
|
-
return goTo;
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
Goto.property = "goTo";
|
|
445
|
-
let passiveSupported = false;
|
|
446
|
-
try {
|
|
447
|
-
if (typeof window !== "undefined") {
|
|
448
|
-
const testListenerOpts = Object.defineProperty({}, "passive", {
|
|
449
|
-
get: () => {
|
|
450
|
-
passiveSupported = true;
|
|
451
|
-
}
|
|
452
|
-
});
|
|
453
|
-
window.addEventListener("testListener", testListenerOpts, testListenerOpts);
|
|
454
|
-
window.removeEventListener("testListener", testListenerOpts, testListenerOpts);
|
|
455
|
-
}
|
|
456
|
-
} catch (e) {
|
|
457
|
-
console.warn(e);
|
|
458
|
-
}
|
|
459
|
-
function getNestedValue(obj, path, fallback2) {
|
|
460
|
-
const last = path.length - 1;
|
|
461
|
-
if (last < 0)
|
|
462
|
-
return obj === void 0 ? fallback2 : obj;
|
|
463
|
-
for (let i = 0; i < last; i++) {
|
|
464
|
-
if (obj == null) {
|
|
465
|
-
return fallback2;
|
|
466
|
-
}
|
|
467
|
-
obj = obj[path[i]];
|
|
468
|
-
}
|
|
469
|
-
if (obj == null)
|
|
470
|
-
return fallback2;
|
|
471
|
-
return obj[path[last]] === void 0 ? fallback2 : obj[path[last]];
|
|
472
|
-
}
|
|
473
|
-
function getObjectValueByPath(obj, path, fallback2) {
|
|
474
|
-
if (obj == null || !path || typeof path !== "string")
|
|
475
|
-
return fallback2;
|
|
476
|
-
if (obj[path] !== void 0)
|
|
477
|
-
return obj[path];
|
|
478
|
-
path = path.replace(/\[(\w+)\]/g, ".$1");
|
|
479
|
-
path = path.replace(/^\./, "");
|
|
480
|
-
return getNestedValue(obj, path.split("."), fallback2);
|
|
481
|
-
}
|
|
482
|
-
function filterObjectOnKeys(obj, keys2) {
|
|
483
|
-
const filtered = {};
|
|
484
|
-
for (let i = 0; i < keys2.length; i++) {
|
|
485
|
-
const key = keys2[i];
|
|
486
|
-
if (typeof obj[key] !== "undefined") {
|
|
487
|
-
filtered[key] = obj[key];
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
return filtered;
|
|
491
|
-
}
|
|
492
|
-
function convertToUnit(str, unit = "px") {
|
|
493
|
-
if (str == null || str === "") {
|
|
494
|
-
return void 0;
|
|
495
|
-
} else if (isNaN(+str)) {
|
|
496
|
-
return String(str);
|
|
497
|
-
} else {
|
|
498
|
-
return `${Number(str)}${unit}`;
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
function isObject(obj) {
|
|
502
|
-
return obj !== null && typeof obj === "object";
|
|
503
|
-
}
|
|
504
|
-
const keyCodes = Object.freeze({
|
|
505
|
-
enter: 13,
|
|
506
|
-
tab: 9,
|
|
507
|
-
delete: 46,
|
|
508
|
-
esc: 27,
|
|
509
|
-
space: 32,
|
|
510
|
-
up: 38,
|
|
511
|
-
down: 40,
|
|
512
|
-
left: 37,
|
|
513
|
-
right: 39,
|
|
514
|
-
end: 35,
|
|
515
|
-
home: 36,
|
|
516
|
-
del: 46,
|
|
517
|
-
backspace: 8,
|
|
518
|
-
insert: 45,
|
|
519
|
-
pageup: 33,
|
|
520
|
-
pagedown: 34,
|
|
521
|
-
shift: 16
|
|
522
|
-
});
|
|
523
|
-
function remapInternalIcon(vm, iconName) {
|
|
524
|
-
const component2 = vm.$vuetify.icons.component;
|
|
525
|
-
if (iconName.startsWith("$")) {
|
|
526
|
-
const iconPath = `$vuetify.icons.values.${iconName.split("$").pop().split(".").pop()}`;
|
|
527
|
-
const override = getObjectValueByPath(vm, iconPath, iconName);
|
|
528
|
-
if (typeof override === "string")
|
|
529
|
-
iconName = override;
|
|
530
|
-
else
|
|
531
|
-
return override;
|
|
532
|
-
}
|
|
533
|
-
if (component2 == null) {
|
|
534
|
-
return iconName;
|
|
535
|
-
}
|
|
536
|
-
return {
|
|
537
|
-
component: component2,
|
|
538
|
-
props: {
|
|
539
|
-
icon: iconName
|
|
540
|
-
}
|
|
541
|
-
};
|
|
542
|
-
}
|
|
543
|
-
function keys(o) {
|
|
544
|
-
return Object.keys(o);
|
|
545
|
-
}
|
|
546
|
-
function clamp(value, min = 0, max = 1) {
|
|
547
|
-
return Math.max(min, Math.min(max, value));
|
|
548
|
-
}
|
|
549
|
-
function mergeDeep(source = {}, target = {}) {
|
|
550
|
-
for (const key in target) {
|
|
551
|
-
const sourceProperty = source[key];
|
|
552
|
-
const targetProperty = target[key];
|
|
553
|
-
if (isObject(sourceProperty) && isObject(targetProperty)) {
|
|
554
|
-
source[key] = mergeDeep(sourceProperty, targetProperty);
|
|
555
|
-
continue;
|
|
556
|
-
}
|
|
557
|
-
source[key] = targetProperty;
|
|
558
|
-
}
|
|
559
|
-
return source;
|
|
560
|
-
}
|
|
561
|
-
const icons$4 = {
|
|
562
|
-
complete: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",
|
|
563
|
-
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",
|
|
564
|
-
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",
|
|
565
|
-
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",
|
|
566
|
-
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",
|
|
567
|
-
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",
|
|
568
|
-
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",
|
|
569
|
-
warning: "M11,4.5H13V15.5H11V4.5M13,17.5V19.5H11V17.5H13Z",
|
|
570
|
-
error: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z",
|
|
571
|
-
prev: "M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",
|
|
572
|
-
next: "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",
|
|
573
|
-
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",
|
|
574
|
-
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",
|
|
575
|
-
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",
|
|
576
|
-
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",
|
|
577
|
-
sort: "M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",
|
|
578
|
-
expand: "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",
|
|
579
|
-
menu: "M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",
|
|
580
|
-
subgroup: "M7,10L12,15L17,10H7Z",
|
|
581
|
-
dropdown: "M7,10L12,15L17,10H7Z",
|
|
582
|
-
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",
|
|
583
|
-
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",
|
|
584
|
-
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",
|
|
585
|
-
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",
|
|
586
|
-
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",
|
|
587
|
-
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",
|
|
588
|
-
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",
|
|
589
|
-
first: "M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z",
|
|
590
|
-
last: "M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z",
|
|
591
|
-
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",
|
|
592
|
-
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",
|
|
593
|
-
plus: "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",
|
|
594
|
-
minus: "M19,13H5V11H19V13Z"
|
|
595
|
-
};
|
|
596
|
-
var mdiSvg = icons$4;
|
|
597
|
-
const icons$3 = {
|
|
598
|
-
complete: "check",
|
|
599
|
-
cancel: "cancel",
|
|
600
|
-
close: "close",
|
|
601
|
-
delete: "cancel",
|
|
602
|
-
clear: "clear",
|
|
603
|
-
success: "check_circle",
|
|
604
|
-
info: "info",
|
|
605
|
-
warning: "priority_high",
|
|
606
|
-
error: "warning",
|
|
607
|
-
prev: "chevron_left",
|
|
608
|
-
next: "chevron_right",
|
|
609
|
-
checkboxOn: "check_box",
|
|
610
|
-
checkboxOff: "check_box_outline_blank",
|
|
611
|
-
checkboxIndeterminate: "indeterminate_check_box",
|
|
612
|
-
delimiter: "fiber_manual_record",
|
|
613
|
-
sort: "arrow_upward",
|
|
614
|
-
expand: "keyboard_arrow_down",
|
|
615
|
-
menu: "menu",
|
|
616
|
-
subgroup: "arrow_drop_down",
|
|
617
|
-
dropdown: "arrow_drop_down",
|
|
618
|
-
radioOn: "radio_button_checked",
|
|
619
|
-
radioOff: "radio_button_unchecked",
|
|
620
|
-
edit: "edit",
|
|
621
|
-
ratingEmpty: "star_border",
|
|
622
|
-
ratingFull: "star",
|
|
623
|
-
ratingHalf: "star_half",
|
|
624
|
-
loading: "cached",
|
|
625
|
-
first: "first_page",
|
|
626
|
-
last: "last_page",
|
|
627
|
-
unfold: "unfold_more",
|
|
628
|
-
file: "attach_file",
|
|
629
|
-
plus: "add",
|
|
630
|
-
minus: "remove"
|
|
631
|
-
};
|
|
632
|
-
var md = icons$3;
|
|
633
|
-
const icons$2 = {
|
|
634
|
-
complete: "mdi-check",
|
|
635
|
-
cancel: "mdi-close-circle",
|
|
636
|
-
close: "mdi-close",
|
|
637
|
-
delete: "mdi-close-circle",
|
|
638
|
-
clear: "mdi-close",
|
|
639
|
-
success: "mdi-check-circle",
|
|
640
|
-
info: "mdi-information",
|
|
641
|
-
warning: "mdi-exclamation",
|
|
642
|
-
error: "mdi-alert",
|
|
643
|
-
prev: "mdi-chevron-left",
|
|
644
|
-
next: "mdi-chevron-right",
|
|
645
|
-
checkboxOn: "mdi-checkbox-marked",
|
|
646
|
-
checkboxOff: "mdi-checkbox-blank-outline",
|
|
647
|
-
checkboxIndeterminate: "mdi-minus-box",
|
|
648
|
-
delimiter: "mdi-circle",
|
|
649
|
-
sort: "mdi-arrow-up",
|
|
650
|
-
expand: "mdi-chevron-down",
|
|
651
|
-
menu: "mdi-menu",
|
|
652
|
-
subgroup: "mdi-menu-down",
|
|
653
|
-
dropdown: "mdi-menu-down",
|
|
654
|
-
radioOn: "mdi-radiobox-marked",
|
|
655
|
-
radioOff: "mdi-radiobox-blank",
|
|
656
|
-
edit: "mdi-pencil",
|
|
657
|
-
ratingEmpty: "mdi-star-outline",
|
|
658
|
-
ratingFull: "mdi-star",
|
|
659
|
-
ratingHalf: "mdi-star-half-full",
|
|
660
|
-
loading: "mdi-cached",
|
|
661
|
-
first: "mdi-page-first",
|
|
662
|
-
last: "mdi-page-last",
|
|
663
|
-
unfold: "mdi-unfold-more-horizontal",
|
|
664
|
-
file: "mdi-paperclip",
|
|
665
|
-
plus: "mdi-plus",
|
|
666
|
-
minus: "mdi-minus"
|
|
667
|
-
};
|
|
668
|
-
var mdi = icons$2;
|
|
669
|
-
const icons$1 = {
|
|
670
|
-
complete: "fas fa-check",
|
|
671
|
-
cancel: "fas fa-times-circle",
|
|
672
|
-
close: "fas fa-times",
|
|
673
|
-
delete: "fas fa-times-circle",
|
|
674
|
-
clear: "fas fa-times-circle",
|
|
675
|
-
success: "fas fa-check-circle",
|
|
676
|
-
info: "fas fa-info-circle",
|
|
677
|
-
warning: "fas fa-exclamation",
|
|
678
|
-
error: "fas fa-exclamation-triangle",
|
|
679
|
-
prev: "fas fa-chevron-left",
|
|
680
|
-
next: "fas fa-chevron-right",
|
|
681
|
-
checkboxOn: "fas fa-check-square",
|
|
682
|
-
checkboxOff: "far fa-square",
|
|
683
|
-
checkboxIndeterminate: "fas fa-minus-square",
|
|
684
|
-
delimiter: "fas fa-circle",
|
|
685
|
-
sort: "fas fa-sort-up",
|
|
686
|
-
expand: "fas fa-chevron-down",
|
|
687
|
-
menu: "fas fa-bars",
|
|
688
|
-
subgroup: "fas fa-caret-down",
|
|
689
|
-
dropdown: "fas fa-caret-down",
|
|
690
|
-
radioOn: "far fa-dot-circle",
|
|
691
|
-
radioOff: "far fa-circle",
|
|
692
|
-
edit: "fas fa-edit",
|
|
693
|
-
ratingEmpty: "far fa-star",
|
|
694
|
-
ratingFull: "fas fa-star",
|
|
695
|
-
ratingHalf: "fas fa-star-half",
|
|
696
|
-
loading: "fas fa-sync",
|
|
697
|
-
first: "fas fa-step-backward",
|
|
698
|
-
last: "fas fa-step-forward",
|
|
699
|
-
unfold: "fas fa-arrows-alt-v",
|
|
700
|
-
file: "fas fa-paperclip",
|
|
701
|
-
plus: "fas fa-plus",
|
|
702
|
-
minus: "fas fa-minus"
|
|
703
|
-
};
|
|
704
|
-
var fa = icons$1;
|
|
705
|
-
const icons = {
|
|
706
|
-
complete: "fa fa-check",
|
|
707
|
-
cancel: "fa fa-times-circle",
|
|
708
|
-
close: "fa fa-times",
|
|
709
|
-
delete: "fa fa-times-circle",
|
|
710
|
-
clear: "fa fa-times-circle",
|
|
711
|
-
success: "fa fa-check-circle",
|
|
712
|
-
info: "fa fa-info-circle",
|
|
713
|
-
warning: "fa fa-exclamation",
|
|
714
|
-
error: "fa fa-exclamation-triangle",
|
|
715
|
-
prev: "fa fa-chevron-left",
|
|
716
|
-
next: "fa fa-chevron-right",
|
|
717
|
-
checkboxOn: "fa fa-check-square",
|
|
718
|
-
checkboxOff: "fa fa-square-o",
|
|
719
|
-
checkboxIndeterminate: "fa fa-minus-square",
|
|
720
|
-
delimiter: "fa fa-circle",
|
|
721
|
-
sort: "fa fa-sort-up",
|
|
722
|
-
expand: "fa fa-chevron-down",
|
|
723
|
-
menu: "fa fa-bars",
|
|
724
|
-
subgroup: "fa fa-caret-down",
|
|
725
|
-
dropdown: "fa fa-caret-down",
|
|
726
|
-
radioOn: "fa fa-dot-circle-o",
|
|
727
|
-
radioOff: "fa fa-circle-o",
|
|
728
|
-
edit: "fa fa-pencil",
|
|
729
|
-
ratingEmpty: "fa fa-star-o",
|
|
730
|
-
ratingFull: "fa fa-star",
|
|
731
|
-
ratingHalf: "fa fa-star-half-o",
|
|
732
|
-
loading: "fa fa-refresh",
|
|
733
|
-
first: "fa fa-step-backward",
|
|
734
|
-
last: "fa fa-step-forward",
|
|
735
|
-
unfold: "fa fa-angle-double-down",
|
|
736
|
-
file: "fa fa-paperclip",
|
|
737
|
-
plus: "fa fa-plus",
|
|
738
|
-
minus: "fa fa-minus"
|
|
739
|
-
};
|
|
740
|
-
var fa4 = icons;
|
|
741
|
-
function convertToComponentDeclarations(component2, iconSet) {
|
|
742
|
-
const result = {};
|
|
743
|
-
for (const key in iconSet) {
|
|
744
|
-
result[key] = {
|
|
745
|
-
component: component2,
|
|
746
|
-
props: {
|
|
747
|
-
icon: iconSet[key].split(" fa-")
|
|
748
|
-
}
|
|
749
|
-
};
|
|
750
|
-
}
|
|
751
|
-
return result;
|
|
752
|
-
}
|
|
753
|
-
var faSvg = convertToComponentDeclarations("font-awesome-icon", fa);
|
|
754
|
-
var presets = Object.freeze({
|
|
755
|
-
mdiSvg,
|
|
756
|
-
md,
|
|
757
|
-
mdi,
|
|
758
|
-
fa,
|
|
759
|
-
fa4,
|
|
760
|
-
faSvg
|
|
761
|
-
});
|
|
762
|
-
class Icons extends Service {
|
|
763
|
-
constructor(preset2) {
|
|
764
|
-
super();
|
|
765
|
-
const {
|
|
766
|
-
iconfont,
|
|
767
|
-
values,
|
|
768
|
-
component: component2
|
|
769
|
-
} = preset2[Icons.property];
|
|
770
|
-
this.component = component2;
|
|
771
|
-
this.iconfont = iconfont;
|
|
772
|
-
this.values = mergeDeep(presets[iconfont], values);
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
Icons.property = "icons";
|
|
776
|
-
const LANG_PREFIX = "$vuetify.";
|
|
777
|
-
const fallback = Symbol("Lang fallback");
|
|
778
|
-
function getTranslation(locale, key, usingDefault = false, defaultLocale) {
|
|
779
|
-
const shortKey = key.replace(LANG_PREFIX, "");
|
|
780
|
-
let translation = getObjectValueByPath(locale, shortKey, fallback);
|
|
781
|
-
if (translation === fallback) {
|
|
782
|
-
if (usingDefault) {
|
|
783
|
-
consoleError(`Translation key "${shortKey}" not found in fallback`);
|
|
784
|
-
translation = key;
|
|
785
|
-
} else {
|
|
786
|
-
consoleWarn(`Translation key "${shortKey}" not found, falling back to default`);
|
|
787
|
-
translation = getTranslation(defaultLocale, key, true, defaultLocale);
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
return translation;
|
|
791
|
-
}
|
|
792
|
-
class Lang extends Service {
|
|
793
|
-
constructor(preset2) {
|
|
794
|
-
super();
|
|
795
|
-
this.defaultLocale = "en";
|
|
796
|
-
const {
|
|
797
|
-
current,
|
|
798
|
-
locales,
|
|
799
|
-
t
|
|
800
|
-
} = preset2[Lang.property];
|
|
801
|
-
this.current = current;
|
|
802
|
-
this.locales = locales;
|
|
803
|
-
this.translator = t || this.defaultTranslator;
|
|
804
|
-
}
|
|
805
|
-
currentLocale(key) {
|
|
806
|
-
const translation = this.locales[this.current];
|
|
807
|
-
const defaultLocale = this.locales[this.defaultLocale];
|
|
808
|
-
return getTranslation(translation, key, false, defaultLocale);
|
|
809
|
-
}
|
|
810
|
-
t(key, ...params) {
|
|
811
|
-
if (!key.startsWith(LANG_PREFIX))
|
|
812
|
-
return this.replace(key, params);
|
|
813
|
-
return this.translator(key, ...params);
|
|
814
|
-
}
|
|
815
|
-
defaultTranslator(key, ...params) {
|
|
816
|
-
return this.replace(this.currentLocale(key), params);
|
|
817
|
-
}
|
|
818
|
-
replace(str, params) {
|
|
819
|
-
return str.replace(/\{(\d+)\}/g, (match, index) => {
|
|
820
|
-
return String(params[+index]);
|
|
821
|
-
});
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
Lang.property = "lang";
|
|
825
|
-
var main = "";
|
|
826
|
-
var en = {
|
|
827
|
-
badge: "Badge",
|
|
828
|
-
close: "Close",
|
|
829
|
-
dataIterator: {
|
|
830
|
-
noResultsText: "No matching records found",
|
|
831
|
-
loadingText: "Loading items..."
|
|
832
|
-
},
|
|
833
|
-
dataTable: {
|
|
834
|
-
itemsPerPageText: "Rows per page:",
|
|
835
|
-
ariaLabel: {
|
|
836
|
-
sortDescending: "Sorted descending.",
|
|
837
|
-
sortAscending: "Sorted ascending.",
|
|
838
|
-
sortNone: "Not sorted.",
|
|
839
|
-
activateNone: "Activate to remove sorting.",
|
|
840
|
-
activateDescending: "Activate to sort descending.",
|
|
841
|
-
activateAscending: "Activate to sort ascending."
|
|
842
|
-
},
|
|
843
|
-
sortBy: "Sort by"
|
|
844
|
-
},
|
|
845
|
-
dataFooter: {
|
|
846
|
-
itemsPerPageText: "Items per page:",
|
|
847
|
-
itemsPerPageAll: "All",
|
|
848
|
-
nextPage: "Next page",
|
|
849
|
-
prevPage: "Previous page",
|
|
850
|
-
firstPage: "First page",
|
|
851
|
-
lastPage: "Last page",
|
|
852
|
-
pageText: "{0}-{1} of {2}"
|
|
853
|
-
},
|
|
854
|
-
datePicker: {
|
|
855
|
-
itemsSelected: "{0} selected",
|
|
856
|
-
nextMonthAriaLabel: "Next month",
|
|
857
|
-
nextYearAriaLabel: "Next year",
|
|
858
|
-
prevMonthAriaLabel: "Previous month",
|
|
859
|
-
prevYearAriaLabel: "Previous year"
|
|
860
|
-
},
|
|
861
|
-
noDataText: "No data available",
|
|
862
|
-
carousel: {
|
|
863
|
-
prev: "Previous visual",
|
|
864
|
-
next: "Next visual",
|
|
865
|
-
ariaLabel: {
|
|
866
|
-
delimiter: "Carousel slide {0} of {1}"
|
|
867
|
-
}
|
|
868
|
-
},
|
|
869
|
-
calendar: {
|
|
870
|
-
moreEvents: "{0} more"
|
|
871
|
-
},
|
|
872
|
-
fileInput: {
|
|
873
|
-
counter: "{0} files",
|
|
874
|
-
counterSize: "{0} files ({1} in total)"
|
|
875
|
-
},
|
|
876
|
-
timePicker: {
|
|
877
|
-
am: "AM",
|
|
878
|
-
pm: "PM"
|
|
879
|
-
},
|
|
880
|
-
pagination: {
|
|
881
|
-
ariaLabel: {
|
|
882
|
-
wrapper: "Pagination Navigation",
|
|
883
|
-
next: "Next page",
|
|
884
|
-
previous: "Previous page",
|
|
885
|
-
page: "Goto Page {0}",
|
|
886
|
-
currentPage: "Current Page, Page {0}"
|
|
887
|
-
}
|
|
888
|
-
},
|
|
889
|
-
rating: {
|
|
890
|
-
ariaLabel: {
|
|
891
|
-
icon: "Rating {0} of {1}"
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
};
|
|
895
|
-
const preset = {
|
|
896
|
-
breakpoint: {
|
|
897
|
-
mobileBreakpoint: 1264,
|
|
898
|
-
scrollBarWidth: 16,
|
|
899
|
-
thresholds: {
|
|
900
|
-
xs: 600,
|
|
901
|
-
sm: 960,
|
|
902
|
-
md: 1280,
|
|
903
|
-
lg: 1920
|
|
904
|
-
}
|
|
905
|
-
},
|
|
906
|
-
icons: {
|
|
907
|
-
iconfont: "mdi",
|
|
908
|
-
values: {}
|
|
909
|
-
},
|
|
910
|
-
lang: {
|
|
911
|
-
current: "en",
|
|
912
|
-
locales: {
|
|
913
|
-
en
|
|
914
|
-
},
|
|
915
|
-
t: void 0
|
|
916
|
-
},
|
|
917
|
-
rtl: false,
|
|
918
|
-
theme: {
|
|
919
|
-
dark: false,
|
|
920
|
-
default: "light",
|
|
921
|
-
disable: false,
|
|
922
|
-
options: {
|
|
923
|
-
cspNonce: void 0,
|
|
924
|
-
customProperties: void 0,
|
|
925
|
-
minifyTheme: void 0,
|
|
926
|
-
themeCache: void 0,
|
|
927
|
-
variations: true
|
|
928
|
-
},
|
|
929
|
-
themes: {
|
|
930
|
-
light: {
|
|
931
|
-
primary: "#1976D2",
|
|
932
|
-
secondary: "#424242",
|
|
933
|
-
accent: "#82B1FF",
|
|
934
|
-
error: "#FF5252",
|
|
935
|
-
info: "#2196F3",
|
|
936
|
-
success: "#4CAF50",
|
|
937
|
-
warning: "#FB8C00"
|
|
938
|
-
},
|
|
939
|
-
dark: {
|
|
940
|
-
primary: "#2196F3",
|
|
941
|
-
secondary: "#424242",
|
|
942
|
-
accent: "#FF4081",
|
|
943
|
-
error: "#FF5252",
|
|
944
|
-
info: "#2196F3",
|
|
945
|
-
success: "#4CAF50",
|
|
946
|
-
warning: "#FB8C00"
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
};
|
|
951
|
-
class Presets extends Service {
|
|
952
|
-
constructor(parentPreset, parent) {
|
|
953
|
-
super();
|
|
954
|
-
const defaultPreset = mergeDeep({}, preset);
|
|
955
|
-
const {
|
|
956
|
-
userPreset
|
|
957
|
-
} = parent;
|
|
958
|
-
const {
|
|
959
|
-
preset: globalPreset = {},
|
|
960
|
-
...preset$1
|
|
961
|
-
} = userPreset;
|
|
962
|
-
if (globalPreset.preset != null) {
|
|
963
|
-
consoleWarn("Global presets do not support the **preset** option, it can be safely omitted");
|
|
964
|
-
}
|
|
965
|
-
parent.preset = mergeDeep(mergeDeep(defaultPreset, globalPreset), preset$1);
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
Presets.property = "presets";
|
|
969
|
-
const srgbForwardMatrix = [[3.2406, -1.5372, -0.4986], [-0.9689, 1.8758, 0.0415], [0.0557, -0.204, 1.057]];
|
|
970
|
-
const srgbForwardTransform = (C) => C <= 31308e-7 ? C * 12.92 : 1.055 * C ** (1 / 2.4) - 0.055;
|
|
971
|
-
const srgbReverseMatrix = [[0.4124, 0.3576, 0.1805], [0.2126, 0.7152, 0.0722], [0.0193, 0.1192, 0.9505]];
|
|
972
|
-
const srgbReverseTransform = (C) => C <= 0.04045 ? C / 12.92 : ((C + 0.055) / 1.055) ** 2.4;
|
|
973
|
-
function fromXYZ$1(xyz) {
|
|
974
|
-
const rgb = Array(3);
|
|
975
|
-
const transform2 = srgbForwardTransform;
|
|
976
|
-
const matrix = srgbForwardMatrix;
|
|
977
|
-
for (let i = 0; i < 3; ++i) {
|
|
978
|
-
rgb[i] = Math.round(clamp(transform2(matrix[i][0] * xyz[0] + matrix[i][1] * xyz[1] + matrix[i][2] * xyz[2])) * 255);
|
|
979
|
-
}
|
|
980
|
-
return (rgb[0] << 16) + (rgb[1] << 8) + (rgb[2] << 0);
|
|
981
|
-
}
|
|
982
|
-
function toXYZ$1(rgb) {
|
|
983
|
-
const xyz = [0, 0, 0];
|
|
984
|
-
const transform2 = srgbReverseTransform;
|
|
985
|
-
const matrix = srgbReverseMatrix;
|
|
986
|
-
const r = transform2((rgb >> 16 & 255) / 255);
|
|
987
|
-
const g = transform2((rgb >> 8 & 255) / 255);
|
|
988
|
-
const b = transform2((rgb >> 0 & 255) / 255);
|
|
989
|
-
for (let i = 0; i < 3; ++i) {
|
|
990
|
-
xyz[i] = matrix[i][0] * r + matrix[i][1] * g + matrix[i][2] * b;
|
|
991
|
-
}
|
|
992
|
-
return xyz;
|
|
993
|
-
}
|
|
994
|
-
function isCssColor(color) {
|
|
995
|
-
return !!color && !!color.match(/^(#|var\(--|(rgb|hsl)a?\()/);
|
|
996
|
-
}
|
|
997
|
-
function colorToInt(color) {
|
|
998
|
-
let rgb;
|
|
999
|
-
if (typeof color === "number") {
|
|
1000
|
-
rgb = color;
|
|
1001
|
-
} else if (typeof color === "string") {
|
|
1002
|
-
let c = color[0] === "#" ? color.substring(1) : color;
|
|
1003
|
-
if (c.length === 3) {
|
|
1004
|
-
c = c.split("").map((char) => char + char).join("");
|
|
1005
|
-
}
|
|
1006
|
-
if (c.length !== 6) {
|
|
1007
|
-
consoleWarn(`'${color}' is not a valid rgb color`);
|
|
1008
|
-
}
|
|
1009
|
-
rgb = parseInt(c, 16);
|
|
1010
|
-
} else {
|
|
1011
|
-
throw new TypeError(`Colors can only be numbers or strings, recieved ${color == null ? color : color.constructor.name} instead`);
|
|
1012
|
-
}
|
|
1013
|
-
if (rgb < 0) {
|
|
1014
|
-
consoleWarn(`Colors cannot be negative: '${color}'`);
|
|
1015
|
-
rgb = 0;
|
|
1016
|
-
} else if (rgb > 16777215 || isNaN(rgb)) {
|
|
1017
|
-
consoleWarn(`'${color}' is not a valid rgb color`);
|
|
1018
|
-
rgb = 16777215;
|
|
1019
|
-
}
|
|
1020
|
-
return rgb;
|
|
1021
|
-
}
|
|
1022
|
-
function intToHex(color) {
|
|
1023
|
-
let hexColor = color.toString(16);
|
|
1024
|
-
if (hexColor.length < 6)
|
|
1025
|
-
hexColor = "0".repeat(6 - hexColor.length) + hexColor;
|
|
1026
|
-
return "#" + hexColor;
|
|
1027
|
-
}
|
|
1028
|
-
function colorToHex(color) {
|
|
1029
|
-
return intToHex(colorToInt(color));
|
|
1030
|
-
}
|
|
1031
|
-
const delta = 0.20689655172413793;
|
|
1032
|
-
const cielabForwardTransform = (t) => t > delta ** 3 ? Math.cbrt(t) : t / (3 * delta ** 2) + 4 / 29;
|
|
1033
|
-
const cielabReverseTransform = (t) => t > delta ? t ** 3 : 3 * delta ** 2 * (t - 4 / 29);
|
|
1034
|
-
function fromXYZ(xyz) {
|
|
1035
|
-
const transform2 = cielabForwardTransform;
|
|
1036
|
-
const transformedY = transform2(xyz[1]);
|
|
1037
|
-
return [116 * transformedY - 16, 500 * (transform2(xyz[0] / 0.95047) - transformedY), 200 * (transformedY - transform2(xyz[2] / 1.08883))];
|
|
1038
|
-
}
|
|
1039
|
-
function toXYZ(lab) {
|
|
1040
|
-
const transform2 = cielabReverseTransform;
|
|
1041
|
-
const Ln = (lab[0] + 16) / 116;
|
|
1042
|
-
return [transform2(Ln + lab[1] / 500) * 0.95047, transform2(Ln), transform2(Ln - lab[2] / 200) * 1.08883];
|
|
1043
|
-
}
|
|
1044
|
-
function parse(theme, isItem = false, variations = true) {
|
|
1045
|
-
const {
|
|
1046
|
-
anchor,
|
|
1047
|
-
...variant
|
|
1048
|
-
} = theme;
|
|
1049
|
-
const colors2 = Object.keys(variant);
|
|
1050
|
-
const parsedTheme = {};
|
|
1051
|
-
for (let i = 0; i < colors2.length; ++i) {
|
|
1052
|
-
const name = colors2[i];
|
|
1053
|
-
const value = theme[name];
|
|
1054
|
-
if (value == null)
|
|
1055
|
-
continue;
|
|
1056
|
-
if (!variations) {
|
|
1057
|
-
parsedTheme[name] = {
|
|
1058
|
-
base: intToHex(colorToInt(value))
|
|
1059
|
-
};
|
|
1060
|
-
} else if (isItem) {
|
|
1061
|
-
if (name === "base" || name.startsWith("lighten") || name.startsWith("darken")) {
|
|
1062
|
-
parsedTheme[name] = colorToHex(value);
|
|
1063
|
-
}
|
|
1064
|
-
} else if (typeof value === "object") {
|
|
1065
|
-
parsedTheme[name] = parse(value, true, variations);
|
|
1066
|
-
} else {
|
|
1067
|
-
parsedTheme[name] = genVariations(name, colorToInt(value));
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
if (!isItem) {
|
|
1071
|
-
parsedTheme.anchor = anchor || parsedTheme.base || parsedTheme.primary.base;
|
|
1072
|
-
}
|
|
1073
|
-
return parsedTheme;
|
|
1074
|
-
}
|
|
1075
|
-
const genBaseColor = (name, value) => {
|
|
1076
|
-
return `
|
|
1077
|
-
.v-application .${name} {
|
|
1078
|
-
background-color: ${value} !important;
|
|
1079
|
-
border-color: ${value} !important;
|
|
1080
|
-
}
|
|
1081
|
-
.v-application .${name}--text {
|
|
1082
|
-
color: ${value} !important;
|
|
1083
|
-
caret-color: ${value} !important;
|
|
1084
|
-
}`;
|
|
1085
|
-
};
|
|
1086
|
-
const genVariantColor = (name, variant, value) => {
|
|
1087
|
-
const [type2, n] = variant.split(/(\d)/, 2);
|
|
1088
|
-
return `
|
|
1089
|
-
.v-application .${name}.${type2}-${n} {
|
|
1090
|
-
background-color: ${value} !important;
|
|
1091
|
-
border-color: ${value} !important;
|
|
1092
|
-
}
|
|
1093
|
-
.v-application .${name}--text.text--${type2}-${n} {
|
|
1094
|
-
color: ${value} !important;
|
|
1095
|
-
caret-color: ${value} !important;
|
|
1096
|
-
}`;
|
|
1097
|
-
};
|
|
1098
|
-
const genColorVariableName = (name, variant = "base") => `--v-${name}-${variant}`;
|
|
1099
|
-
const genColorVariable = (name, variant = "base") => `var(${genColorVariableName(name, variant)})`;
|
|
1100
|
-
function genStyles(theme, cssVar = false) {
|
|
1101
|
-
const {
|
|
1102
|
-
anchor,
|
|
1103
|
-
...variant
|
|
1104
|
-
} = theme;
|
|
1105
|
-
const colors2 = Object.keys(variant);
|
|
1106
|
-
if (!colors2.length)
|
|
1107
|
-
return "";
|
|
1108
|
-
let variablesCss = "";
|
|
1109
|
-
let css = "";
|
|
1110
|
-
const aColor = cssVar ? genColorVariable("anchor") : anchor;
|
|
1111
|
-
css += `.v-application a { color: ${aColor}; }`;
|
|
1112
|
-
cssVar && (variablesCss += ` ${genColorVariableName("anchor")}: ${anchor};
|
|
1113
|
-
`);
|
|
1114
|
-
for (let i = 0; i < colors2.length; ++i) {
|
|
1115
|
-
const name = colors2[i];
|
|
1116
|
-
const value = theme[name];
|
|
1117
|
-
css += genBaseColor(name, cssVar ? genColorVariable(name) : value.base);
|
|
1118
|
-
cssVar && (variablesCss += ` ${genColorVariableName(name)}: ${value.base};
|
|
1119
|
-
`);
|
|
1120
|
-
const variants = keys(value);
|
|
1121
|
-
for (let i2 = 0; i2 < variants.length; ++i2) {
|
|
1122
|
-
const variant2 = variants[i2];
|
|
1123
|
-
const variantValue = value[variant2];
|
|
1124
|
-
if (variant2 === "base")
|
|
1125
|
-
continue;
|
|
1126
|
-
css += genVariantColor(name, variant2, cssVar ? genColorVariable(name, variant2) : variantValue);
|
|
1127
|
-
cssVar && (variablesCss += ` ${genColorVariableName(name, variant2)}: ${variantValue};
|
|
1128
|
-
`);
|
|
1129
|
-
}
|
|
1130
|
-
}
|
|
1131
|
-
if (cssVar) {
|
|
1132
|
-
variablesCss = `:root {
|
|
1133
|
-
${variablesCss}}
|
|
1134
|
-
|
|
1135
|
-
`;
|
|
1136
|
-
}
|
|
1137
|
-
return variablesCss + css;
|
|
1138
|
-
}
|
|
1139
|
-
function genVariations(name, value) {
|
|
1140
|
-
const values = {
|
|
1141
|
-
base: intToHex(value)
|
|
1142
|
-
};
|
|
1143
|
-
for (let i = 5; i > 0; --i) {
|
|
1144
|
-
values[`lighten${i}`] = intToHex(lighten(value, i));
|
|
1145
|
-
}
|
|
1146
|
-
for (let i = 1; i <= 4; ++i) {
|
|
1147
|
-
values[`darken${i}`] = intToHex(darken(value, i));
|
|
1148
|
-
}
|
|
1149
|
-
return values;
|
|
1150
|
-
}
|
|
1151
|
-
function lighten(value, amount) {
|
|
1152
|
-
const lab = fromXYZ(toXYZ$1(value));
|
|
1153
|
-
lab[0] = lab[0] + amount * 10;
|
|
1154
|
-
return fromXYZ$1(toXYZ(lab));
|
|
1155
|
-
}
|
|
1156
|
-
function darken(value, amount) {
|
|
1157
|
-
const lab = fromXYZ(toXYZ$1(value));
|
|
1158
|
-
lab[0] = lab[0] - amount * 10;
|
|
1159
|
-
return fromXYZ$1(toXYZ(lab));
|
|
1160
|
-
}
|
|
1161
|
-
class Theme extends Service {
|
|
1162
|
-
constructor(preset2) {
|
|
1163
|
-
super();
|
|
1164
|
-
this.disabled = false;
|
|
1165
|
-
this.isDark = null;
|
|
1166
|
-
this.unwatch = null;
|
|
1167
|
-
this.vueMeta = null;
|
|
1168
|
-
const {
|
|
1169
|
-
dark,
|
|
1170
|
-
disable,
|
|
1171
|
-
options,
|
|
1172
|
-
themes
|
|
1173
|
-
} = preset2[Theme.property];
|
|
1174
|
-
this.dark = Boolean(dark);
|
|
1175
|
-
this.defaults = this.themes = themes;
|
|
1176
|
-
this.options = options;
|
|
1177
|
-
if (disable) {
|
|
1178
|
-
this.disabled = true;
|
|
1179
|
-
return;
|
|
1180
|
-
}
|
|
1181
|
-
this.themes = {
|
|
1182
|
-
dark: this.fillVariant(themes.dark, true),
|
|
1183
|
-
light: this.fillVariant(themes.light, false)
|
|
1184
|
-
};
|
|
1185
|
-
}
|
|
1186
|
-
set css(val) {
|
|
1187
|
-
if (this.vueMeta) {
|
|
1188
|
-
if (this.isVueMeta23) {
|
|
1189
|
-
this.applyVueMeta23();
|
|
1190
|
-
}
|
|
1191
|
-
return;
|
|
1192
|
-
}
|
|
1193
|
-
this.checkOrCreateStyleElement() && (this.styleEl.innerHTML = val);
|
|
1194
|
-
}
|
|
1195
|
-
set dark(val) {
|
|
1196
|
-
const oldDark = this.isDark;
|
|
1197
|
-
this.isDark = val;
|
|
1198
|
-
oldDark != null && this.applyTheme();
|
|
1199
|
-
}
|
|
1200
|
-
get dark() {
|
|
1201
|
-
return Boolean(this.isDark);
|
|
1202
|
-
}
|
|
1203
|
-
applyTheme() {
|
|
1204
|
-
if (this.disabled)
|
|
1205
|
-
return this.clearCss();
|
|
1206
|
-
this.css = this.generatedStyles;
|
|
1207
|
-
}
|
|
1208
|
-
clearCss() {
|
|
1209
|
-
this.css = "";
|
|
1210
|
-
}
|
|
1211
|
-
init(root, ssrContext) {
|
|
1212
|
-
if (this.disabled)
|
|
1213
|
-
return;
|
|
1214
|
-
if (root.$meta) {
|
|
1215
|
-
this.initVueMeta(root);
|
|
1216
|
-
} else if (ssrContext) {
|
|
1217
|
-
this.initSSR(ssrContext);
|
|
1218
|
-
}
|
|
1219
|
-
this.initTheme(root);
|
|
1220
|
-
}
|
|
1221
|
-
setTheme(theme, value) {
|
|
1222
|
-
this.themes[theme] = Object.assign(this.themes[theme], value);
|
|
1223
|
-
this.applyTheme();
|
|
1224
|
-
}
|
|
1225
|
-
resetThemes() {
|
|
1226
|
-
this.themes.light = Object.assign({}, this.defaults.light);
|
|
1227
|
-
this.themes.dark = Object.assign({}, this.defaults.dark);
|
|
1228
|
-
this.applyTheme();
|
|
1229
|
-
}
|
|
1230
|
-
checkOrCreateStyleElement() {
|
|
1231
|
-
this.styleEl = document.getElementById("vuetify-theme-stylesheet");
|
|
1232
|
-
if (this.styleEl)
|
|
1233
|
-
return true;
|
|
1234
|
-
this.genStyleElement();
|
|
1235
|
-
return Boolean(this.styleEl);
|
|
1236
|
-
}
|
|
1237
|
-
fillVariant(theme = {}, dark) {
|
|
1238
|
-
const defaultTheme = this.themes[dark ? "dark" : "light"];
|
|
1239
|
-
return Object.assign({}, defaultTheme, theme);
|
|
1240
|
-
}
|
|
1241
|
-
genStyleElement() {
|
|
1242
|
-
if (typeof document === "undefined")
|
|
1243
|
-
return;
|
|
1244
|
-
this.styleEl = document.createElement("style");
|
|
1245
|
-
this.styleEl.type = "text/css";
|
|
1246
|
-
this.styleEl.id = "vuetify-theme-stylesheet";
|
|
1247
|
-
if (this.options.cspNonce) {
|
|
1248
|
-
this.styleEl.setAttribute("nonce", this.options.cspNonce);
|
|
1249
|
-
}
|
|
1250
|
-
document.head.appendChild(this.styleEl);
|
|
1251
|
-
}
|
|
1252
|
-
initVueMeta(root) {
|
|
1253
|
-
this.vueMeta = root.$meta();
|
|
1254
|
-
if (this.isVueMeta23) {
|
|
1255
|
-
root.$nextTick(() => {
|
|
1256
|
-
this.applyVueMeta23();
|
|
1257
|
-
});
|
|
1258
|
-
return;
|
|
1259
|
-
}
|
|
1260
|
-
const metaKeyName = typeof this.vueMeta.getOptions === "function" ? this.vueMeta.getOptions().keyName : "metaInfo";
|
|
1261
|
-
const metaInfo = root.$options[metaKeyName] || {};
|
|
1262
|
-
root.$options[metaKeyName] = () => {
|
|
1263
|
-
metaInfo.style = metaInfo.style || [];
|
|
1264
|
-
const vuetifyStylesheet = metaInfo.style.find((s) => s.id === "vuetify-theme-stylesheet");
|
|
1265
|
-
if (!vuetifyStylesheet) {
|
|
1266
|
-
metaInfo.style.push({
|
|
1267
|
-
cssText: this.generatedStyles,
|
|
1268
|
-
type: "text/css",
|
|
1269
|
-
id: "vuetify-theme-stylesheet",
|
|
1270
|
-
nonce: (this.options || {}).cspNonce
|
|
1271
|
-
});
|
|
1272
|
-
} else {
|
|
1273
|
-
vuetifyStylesheet.cssText = this.generatedStyles;
|
|
1274
|
-
}
|
|
1275
|
-
return metaInfo;
|
|
1276
|
-
};
|
|
1277
|
-
}
|
|
1278
|
-
applyVueMeta23() {
|
|
1279
|
-
const {
|
|
1280
|
-
set
|
|
1281
|
-
} = this.vueMeta.addApp("vuetify");
|
|
1282
|
-
set({
|
|
1283
|
-
style: [{
|
|
1284
|
-
cssText: this.generatedStyles,
|
|
1285
|
-
type: "text/css",
|
|
1286
|
-
id: "vuetify-theme-stylesheet",
|
|
1287
|
-
nonce: this.options.cspNonce
|
|
1288
|
-
}]
|
|
1289
|
-
});
|
|
1290
|
-
}
|
|
1291
|
-
initSSR(ssrContext) {
|
|
1292
|
-
const nonce = this.options.cspNonce ? ` nonce="${this.options.cspNonce}"` : "";
|
|
1293
|
-
ssrContext.head = ssrContext.head || "";
|
|
1294
|
-
ssrContext.head += `<style type="text/css" id="vuetify-theme-stylesheet"${nonce}>${this.generatedStyles}</style>`;
|
|
1295
|
-
}
|
|
1296
|
-
initTheme(root) {
|
|
1297
|
-
if (typeof document === "undefined")
|
|
1298
|
-
return;
|
|
1299
|
-
if (this.unwatch) {
|
|
1300
|
-
this.unwatch();
|
|
1301
|
-
this.unwatch = null;
|
|
1302
|
-
}
|
|
1303
|
-
root.$once("hook:created", () => {
|
|
1304
|
-
const obs = Vue.observable({
|
|
1305
|
-
themes: this.themes
|
|
1306
|
-
});
|
|
1307
|
-
this.unwatch = root.$watch(() => obs.themes, () => this.applyTheme(), {
|
|
1308
|
-
deep: true
|
|
1309
|
-
});
|
|
1310
|
-
});
|
|
1311
|
-
this.applyTheme();
|
|
1312
|
-
}
|
|
1313
|
-
get currentTheme() {
|
|
1314
|
-
const target = this.dark ? "dark" : "light";
|
|
1315
|
-
return this.themes[target];
|
|
1316
|
-
}
|
|
1317
|
-
get generatedStyles() {
|
|
1318
|
-
const theme = this.parsedTheme;
|
|
1319
|
-
const options = this.options || {};
|
|
1320
|
-
let css;
|
|
1321
|
-
if (options.themeCache != null) {
|
|
1322
|
-
css = options.themeCache.get(theme);
|
|
1323
|
-
if (css != null)
|
|
1324
|
-
return css;
|
|
1325
|
-
}
|
|
1326
|
-
css = genStyles(theme, options.customProperties);
|
|
1327
|
-
if (options.minifyTheme != null) {
|
|
1328
|
-
css = options.minifyTheme(css);
|
|
1329
|
-
}
|
|
1330
|
-
if (options.themeCache != null) {
|
|
1331
|
-
options.themeCache.set(theme, css);
|
|
1332
|
-
}
|
|
1333
|
-
return css;
|
|
1334
|
-
}
|
|
1335
|
-
get parsedTheme() {
|
|
1336
|
-
return parse(this.currentTheme || {}, void 0, getNestedValue(this.options, ["variations"], true));
|
|
1337
|
-
}
|
|
1338
|
-
get isVueMeta23() {
|
|
1339
|
-
return typeof this.vueMeta.addApp === "function";
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
Theme.property = "theme";
|
|
1343
|
-
class Vuetify {
|
|
1344
|
-
constructor(userPreset = {}) {
|
|
1345
|
-
this.framework = {
|
|
1346
|
-
isHydrating: false
|
|
1347
|
-
};
|
|
1348
|
-
this.installed = [];
|
|
1349
|
-
this.preset = {};
|
|
1350
|
-
this.userPreset = {};
|
|
1351
|
-
this.userPreset = userPreset;
|
|
1352
|
-
this.use(Presets);
|
|
1353
|
-
this.use(Application);
|
|
1354
|
-
this.use(Breakpoint);
|
|
1355
|
-
this.use(Goto);
|
|
1356
|
-
this.use(Icons);
|
|
1357
|
-
this.use(Lang);
|
|
1358
|
-
this.use(Theme);
|
|
1359
|
-
}
|
|
1360
|
-
init(root, ssrContext) {
|
|
1361
|
-
this.installed.forEach((property) => {
|
|
1362
|
-
const service = this.framework[property];
|
|
1363
|
-
service.framework = this.framework;
|
|
1364
|
-
service.init(root, ssrContext);
|
|
1365
|
-
});
|
|
1366
|
-
this.framework.rtl = Boolean(this.preset.rtl);
|
|
1367
|
-
}
|
|
1368
|
-
use(Service2) {
|
|
1369
|
-
const property = Service2.property;
|
|
1370
|
-
if (this.installed.includes(property))
|
|
1371
|
-
return;
|
|
1372
|
-
this.framework[property] = new Service2(this.preset, this);
|
|
1373
|
-
this.installed.push(property);
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
Vuetify.install = install;
|
|
1377
|
-
Vuetify.installed = false;
|
|
1378
|
-
Vuetify.version = "2.6.4";
|
|
1379
|
-
Vuetify.config = {
|
|
1380
|
-
silent: false
|
|
1381
|
-
};
|
|
1382
|
-
function createMessage(message, vm, parent) {
|
|
1383
|
-
if (Vuetify.config.silent)
|
|
1384
|
-
return;
|
|
1385
|
-
if (parent) {
|
|
1386
|
-
vm = {
|
|
1387
|
-
_isVue: true,
|
|
1388
|
-
$parent: parent,
|
|
1389
|
-
$options: vm
|
|
1390
|
-
};
|
|
1391
|
-
}
|
|
1392
|
-
if (vm) {
|
|
1393
|
-
vm.$_alreadyWarned = vm.$_alreadyWarned || [];
|
|
1394
|
-
if (vm.$_alreadyWarned.includes(message))
|
|
1395
|
-
return;
|
|
1396
|
-
vm.$_alreadyWarned.push(message);
|
|
1397
|
-
}
|
|
1398
|
-
return `[Vuetify] ${message}` + (vm ? generateComponentTrace(vm) : "");
|
|
1399
|
-
}
|
|
1400
|
-
function consoleWarn(message, vm, parent) {
|
|
1401
|
-
const newMessage = createMessage(message, vm, parent);
|
|
1402
|
-
newMessage != null && console.warn(newMessage);
|
|
1403
|
-
}
|
|
1404
|
-
function consoleError(message, vm, parent) {
|
|
1405
|
-
const newMessage = createMessage(message, vm, parent);
|
|
1406
|
-
newMessage != null && console.error(newMessage);
|
|
1407
|
-
}
|
|
1408
|
-
function breaking(original, replacement, vm, parent) {
|
|
1409
|
-
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);
|
|
1410
|
-
}
|
|
1411
|
-
const classifyRE = /(?:^|[-_])(\w)/g;
|
|
1412
|
-
const classify = (str) => str.replace(classifyRE, (c) => c.toUpperCase()).replace(/[-_]/g, "");
|
|
1413
|
-
function formatComponentName(vm, includeFile) {
|
|
1414
|
-
if (vm.$root === vm) {
|
|
1415
|
-
return "<Root>";
|
|
1416
|
-
}
|
|
1417
|
-
const options = typeof vm === "function" && vm.cid != null ? vm.options : vm._isVue ? vm.$options || vm.constructor.options : vm || {};
|
|
1418
|
-
let name = options.name || options._componentTag;
|
|
1419
|
-
const file = options.__file;
|
|
1420
|
-
if (!name && file) {
|
|
1421
|
-
const match = file.match(/([^/\\]+)\.vue$/);
|
|
1422
|
-
name = match && match[1];
|
|
1423
|
-
}
|
|
1424
|
-
return (name ? `<${classify(name)}>` : `<Anonymous>`) + (file && includeFile !== false ? ` at ${file}` : "");
|
|
1425
|
-
}
|
|
1426
|
-
function generateComponentTrace(vm) {
|
|
1427
|
-
if (vm._isVue && vm.$parent) {
|
|
1428
|
-
const tree = [];
|
|
1429
|
-
let currentRecursiveSequence = 0;
|
|
1430
|
-
while (vm) {
|
|
1431
|
-
if (tree.length > 0) {
|
|
1432
|
-
const last = tree[tree.length - 1];
|
|
1433
|
-
if (last.constructor === vm.constructor) {
|
|
1434
|
-
currentRecursiveSequence++;
|
|
1435
|
-
vm = vm.$parent;
|
|
1436
|
-
continue;
|
|
1437
|
-
} else if (currentRecursiveSequence > 0) {
|
|
1438
|
-
tree[tree.length - 1] = [last, currentRecursiveSequence];
|
|
1439
|
-
currentRecursiveSequence = 0;
|
|
1440
|
-
}
|
|
1441
|
-
}
|
|
1442
|
-
tree.push(vm);
|
|
1443
|
-
vm = vm.$parent;
|
|
1444
|
-
}
|
|
1445
|
-
return "\n\nfound in\n\n" + tree.map((vm2, i) => `${i === 0 ? "---> " : " ".repeat(5 + i * 2)}${Array.isArray(vm2) ? `${formatComponentName(vm2[0])}... (${vm2[1]} recursive calls)` : formatComponentName(vm2)}`).join("\n");
|
|
1446
|
-
} else {
|
|
1447
|
-
return `
|
|
1448
|
-
|
|
1449
|
-
(found in ${formatComponentName(vm)})`;
|
|
1450
|
-
}
|
|
1451
|
-
}
|
|
1452
|
-
var Colorable = Vue.extend({
|
|
1453
|
-
name: "colorable",
|
|
1454
|
-
props: {
|
|
1455
|
-
color: String
|
|
1456
|
-
},
|
|
1457
|
-
methods: {
|
|
1458
|
-
setBackgroundColor(color, data = {}) {
|
|
1459
|
-
if (typeof data.style === "string") {
|
|
1460
|
-
consoleError("style must be an object", this);
|
|
1461
|
-
return data;
|
|
1462
|
-
}
|
|
1463
|
-
if (typeof data.class === "string") {
|
|
1464
|
-
consoleError("class must be an object", this);
|
|
1465
|
-
return data;
|
|
1466
|
-
}
|
|
1467
|
-
if (isCssColor(color)) {
|
|
1468
|
-
data.style = {
|
|
1469
|
-
...data.style,
|
|
1470
|
-
"background-color": `${color}`,
|
|
1471
|
-
"border-color": `${color}`
|
|
1472
|
-
};
|
|
1473
|
-
} else if (color) {
|
|
1474
|
-
data.class = {
|
|
1475
|
-
...data.class,
|
|
1476
|
-
[color]: true
|
|
1477
|
-
};
|
|
1478
|
-
}
|
|
1479
|
-
return data;
|
|
1480
|
-
},
|
|
1481
|
-
setTextColor(color, data = {}) {
|
|
1482
|
-
if (typeof data.style === "string") {
|
|
1483
|
-
consoleError("style must be an object", this);
|
|
1484
|
-
return data;
|
|
1485
|
-
}
|
|
1486
|
-
if (typeof data.class === "string") {
|
|
1487
|
-
consoleError("class must be an object", this);
|
|
1488
|
-
return data;
|
|
1489
|
-
}
|
|
1490
|
-
if (isCssColor(color)) {
|
|
1491
|
-
data.style = {
|
|
1492
|
-
...data.style,
|
|
1493
|
-
color: `${color}`,
|
|
1494
|
-
"caret-color": `${color}`
|
|
1495
|
-
};
|
|
1496
|
-
} else if (color) {
|
|
1497
|
-
const [colorName, colorModifier] = color.toString().trim().split(" ", 2);
|
|
1498
|
-
data.class = {
|
|
1499
|
-
...data.class,
|
|
1500
|
-
[colorName + "--text"]: true
|
|
1501
|
-
};
|
|
1502
|
-
if (colorModifier) {
|
|
1503
|
-
data.class["text--" + colorModifier] = true;
|
|
1504
|
-
}
|
|
1505
|
-
}
|
|
1506
|
-
return data;
|
|
1507
|
-
}
|
|
1508
|
-
}
|
|
1509
|
-
});
|
|
1510
|
-
var Elevatable = Vue.extend({
|
|
1511
|
-
name: "elevatable",
|
|
1512
|
-
props: {
|
|
1513
|
-
elevation: [Number, String]
|
|
1514
|
-
},
|
|
1515
|
-
computed: {
|
|
1516
|
-
computedElevation() {
|
|
1517
|
-
return this.elevation;
|
|
1518
|
-
},
|
|
1519
|
-
elevationClasses() {
|
|
1520
|
-
const elevation = this.computedElevation;
|
|
1521
|
-
if (elevation == null)
|
|
1522
|
-
return {};
|
|
1523
|
-
if (isNaN(parseInt(elevation)))
|
|
1524
|
-
return {};
|
|
1525
|
-
return {
|
|
1526
|
-
[`elevation-${this.elevation}`]: true
|
|
1527
|
-
};
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
});
|
|
1531
|
-
var Measurable = Vue.extend({
|
|
1532
|
-
name: "measurable",
|
|
1533
|
-
props: {
|
|
1534
|
-
height: [Number, String],
|
|
1535
|
-
maxHeight: [Number, String],
|
|
1536
|
-
maxWidth: [Number, String],
|
|
1537
|
-
minHeight: [Number, String],
|
|
1538
|
-
minWidth: [Number, String],
|
|
1539
|
-
width: [Number, String]
|
|
1540
|
-
},
|
|
1541
|
-
computed: {
|
|
1542
|
-
measurableStyles() {
|
|
1543
|
-
const styles = {};
|
|
1544
|
-
const height = convertToUnit(this.height);
|
|
1545
|
-
const minHeight = convertToUnit(this.minHeight);
|
|
1546
|
-
const minWidth = convertToUnit(this.minWidth);
|
|
1547
|
-
const maxHeight = convertToUnit(this.maxHeight);
|
|
1548
|
-
const maxWidth = convertToUnit(this.maxWidth);
|
|
1549
|
-
const width = convertToUnit(this.width);
|
|
1550
|
-
if (height)
|
|
1551
|
-
styles.height = height;
|
|
1552
|
-
if (minHeight)
|
|
1553
|
-
styles.minHeight = minHeight;
|
|
1554
|
-
if (minWidth)
|
|
1555
|
-
styles.minWidth = minWidth;
|
|
1556
|
-
if (maxHeight)
|
|
1557
|
-
styles.maxHeight = maxHeight;
|
|
1558
|
-
if (maxWidth)
|
|
1559
|
-
styles.maxWidth = maxWidth;
|
|
1560
|
-
if (width)
|
|
1561
|
-
styles.width = width;
|
|
1562
|
-
return styles;
|
|
1563
|
-
}
|
|
1564
|
-
}
|
|
1565
|
-
});
|
|
1566
|
-
var Roundable = Vue.extend({
|
|
1567
|
-
name: "roundable",
|
|
1568
|
-
props: {
|
|
1569
|
-
rounded: [Boolean, String],
|
|
1570
|
-
tile: Boolean
|
|
1571
|
-
},
|
|
1572
|
-
computed: {
|
|
1573
|
-
roundedClasses() {
|
|
1574
|
-
const composite = [];
|
|
1575
|
-
const rounded = typeof this.rounded === "string" ? String(this.rounded) : this.rounded === true;
|
|
1576
|
-
if (this.tile) {
|
|
1577
|
-
composite.push("rounded-0");
|
|
1578
|
-
} else if (typeof rounded === "string") {
|
|
1579
|
-
const values = rounded.split(" ");
|
|
1580
|
-
for (const value of values) {
|
|
1581
|
-
composite.push(`rounded-${value}`);
|
|
1582
|
-
}
|
|
1583
|
-
} else if (rounded) {
|
|
1584
|
-
composite.push("rounded");
|
|
1585
|
-
}
|
|
1586
|
-
return composite.length > 0 ? {
|
|
1587
|
-
[composite.join(" ")]: true
|
|
1588
|
-
} : {};
|
|
1589
|
-
}
|
|
1590
|
-
}
|
|
1591
|
-
});
|
|
1592
|
-
var __unplugin_components_0 = mixins(BindsAttrs, Colorable, Elevatable, Measurable, Roundable, Themeable$1).extend({
|
|
1593
|
-
name: "v-sheet",
|
|
1594
|
-
props: {
|
|
1595
|
-
outlined: Boolean,
|
|
1596
|
-
shaped: Boolean,
|
|
1597
|
-
tag: {
|
|
1598
|
-
type: String,
|
|
1599
|
-
default: "div"
|
|
1600
|
-
}
|
|
1601
|
-
},
|
|
1602
|
-
computed: {
|
|
1603
|
-
classes() {
|
|
1604
|
-
return {
|
|
1605
|
-
"v-sheet": true,
|
|
1606
|
-
"v-sheet--outlined": this.outlined,
|
|
1607
|
-
"v-sheet--shaped": this.shaped,
|
|
1608
|
-
...this.themeClasses,
|
|
1609
|
-
...this.elevationClasses,
|
|
1610
|
-
...this.roundedClasses
|
|
1611
|
-
};
|
|
1612
|
-
},
|
|
1613
|
-
styles() {
|
|
1614
|
-
return this.measurableStyles;
|
|
1615
|
-
}
|
|
1616
|
-
},
|
|
1617
|
-
render(h) {
|
|
1618
|
-
const data = {
|
|
1619
|
-
class: this.classes,
|
|
1620
|
-
style: this.styles,
|
|
1621
|
-
on: this.listeners$
|
|
1622
|
-
};
|
|
1623
|
-
return h(this.tag, this.setBackgroundColor(this.color, data), this.$slots.default);
|
|
1624
|
-
}
|
|
1625
|
-
});
|
|
1626
|
-
function inserted(el, binding, vnode) {
|
|
1627
|
-
if (typeof window === "undefined" || !("IntersectionObserver" in window))
|
|
1628
|
-
return;
|
|
1629
|
-
const modifiers = binding.modifiers || {};
|
|
1630
|
-
const value = binding.value;
|
|
1631
|
-
const {
|
|
1632
|
-
handler,
|
|
1633
|
-
options
|
|
1634
|
-
} = typeof value === "object" ? value : {
|
|
1635
|
-
handler: value,
|
|
1636
|
-
options: {}
|
|
1637
|
-
};
|
|
1638
|
-
const observer = new IntersectionObserver((entries = [], observer2) => {
|
|
1639
|
-
var _el$_observe;
|
|
1640
|
-
const _observe = (_el$_observe = el._observe) == null ? void 0 : _el$_observe[vnode.context._uid];
|
|
1641
|
-
if (!_observe)
|
|
1642
|
-
return;
|
|
1643
|
-
const isIntersecting = entries.some((entry) => entry.isIntersecting);
|
|
1644
|
-
if (handler && (!modifiers.quiet || _observe.init) && (!modifiers.once || isIntersecting || _observe.init)) {
|
|
1645
|
-
handler(entries, observer2, isIntersecting);
|
|
1646
|
-
}
|
|
1647
|
-
if (isIntersecting && modifiers.once)
|
|
1648
|
-
unbind$1(el, binding, vnode);
|
|
1649
|
-
else
|
|
1650
|
-
_observe.init = true;
|
|
1651
|
-
}, options);
|
|
1652
|
-
el._observe = Object(el._observe);
|
|
1653
|
-
el._observe[vnode.context._uid] = {
|
|
1654
|
-
init: false,
|
|
1655
|
-
observer
|
|
1656
|
-
};
|
|
1657
|
-
observer.observe(el);
|
|
1658
|
-
}
|
|
1659
|
-
function unbind$1(el, binding, vnode) {
|
|
1660
|
-
var _el$_observe2;
|
|
1661
|
-
const observe = (_el$_observe2 = el._observe) == null ? void 0 : _el$_observe2[vnode.context._uid];
|
|
1662
|
-
if (!observe)
|
|
1663
|
-
return;
|
|
1664
|
-
observe.observer.unobserve(el);
|
|
1665
|
-
delete el._observe[vnode.context._uid];
|
|
1666
|
-
}
|
|
1667
|
-
const Intersect = {
|
|
1668
|
-
inserted,
|
|
1669
|
-
unbind: unbind$1
|
|
1670
|
-
};
|
|
1671
|
-
var intersect = Intersect;
|
|
1672
|
-
const availableProps = {
|
|
1673
|
-
absolute: Boolean,
|
|
1674
|
-
bottom: Boolean,
|
|
1675
|
-
fixed: Boolean,
|
|
1676
|
-
left: Boolean,
|
|
1677
|
-
right: Boolean,
|
|
1678
|
-
top: Boolean
|
|
1679
|
-
};
|
|
1680
|
-
function factory$2(selected = []) {
|
|
1681
|
-
return Vue.extend({
|
|
1682
|
-
name: "positionable",
|
|
1683
|
-
props: selected.length ? filterObjectOnKeys(availableProps, selected) : availableProps
|
|
1684
|
-
});
|
|
1685
|
-
}
|
|
1686
|
-
var Positionable = factory$2();
|
|
1687
|
-
var VRipple = "";
|
|
1688
|
-
const DELAY_RIPPLE = 80;
|
|
1689
|
-
function transform(el, value) {
|
|
1690
|
-
el.style.transform = value;
|
|
1691
|
-
el.style.webkitTransform = value;
|
|
1692
|
-
}
|
|
1693
|
-
function isTouchEvent(e) {
|
|
1694
|
-
return e.constructor.name === "TouchEvent";
|
|
1695
|
-
}
|
|
1696
|
-
function isKeyboardEvent(e) {
|
|
1697
|
-
return e.constructor.name === "KeyboardEvent";
|
|
1698
|
-
}
|
|
1699
|
-
const calculate = (e, el, value = {}) => {
|
|
1700
|
-
let localX = 0;
|
|
1701
|
-
let localY = 0;
|
|
1702
|
-
if (!isKeyboardEvent(e)) {
|
|
1703
|
-
const offset = el.getBoundingClientRect();
|
|
1704
|
-
const target = isTouchEvent(e) ? e.touches[e.touches.length - 1] : e;
|
|
1705
|
-
localX = target.clientX - offset.left;
|
|
1706
|
-
localY = target.clientY - offset.top;
|
|
1707
|
-
}
|
|
1708
|
-
let radius = 0;
|
|
1709
|
-
let scale = 0.3;
|
|
1710
|
-
if (el._ripple && el._ripple.circle) {
|
|
1711
|
-
scale = 0.15;
|
|
1712
|
-
radius = el.clientWidth / 2;
|
|
1713
|
-
radius = value.center ? radius : radius + Math.sqrt((localX - radius) ** 2 + (localY - radius) ** 2) / 4;
|
|
1714
|
-
} else {
|
|
1715
|
-
radius = Math.sqrt(el.clientWidth ** 2 + el.clientHeight ** 2) / 2;
|
|
1716
|
-
}
|
|
1717
|
-
const centerX = `${(el.clientWidth - radius * 2) / 2}px`;
|
|
1718
|
-
const centerY = `${(el.clientHeight - radius * 2) / 2}px`;
|
|
1719
|
-
const x = value.center ? centerX : `${localX - radius}px`;
|
|
1720
|
-
const y = value.center ? centerY : `${localY - radius}px`;
|
|
1721
|
-
return {
|
|
1722
|
-
radius,
|
|
1723
|
-
scale,
|
|
1724
|
-
x,
|
|
1725
|
-
y,
|
|
1726
|
-
centerX,
|
|
1727
|
-
centerY
|
|
1728
|
-
};
|
|
1729
|
-
};
|
|
1730
|
-
const ripples = {
|
|
1731
|
-
show(e, el, value = {}) {
|
|
1732
|
-
if (!el._ripple || !el._ripple.enabled) {
|
|
1733
|
-
return;
|
|
1734
|
-
}
|
|
1735
|
-
const container = document.createElement("span");
|
|
1736
|
-
const animation = document.createElement("span");
|
|
1737
|
-
container.appendChild(animation);
|
|
1738
|
-
container.className = "v-ripple__container";
|
|
1739
|
-
if (value.class) {
|
|
1740
|
-
container.className += ` ${value.class}`;
|
|
1741
|
-
}
|
|
1742
|
-
const {
|
|
1743
|
-
radius,
|
|
1744
|
-
scale,
|
|
1745
|
-
x,
|
|
1746
|
-
y,
|
|
1747
|
-
centerX,
|
|
1748
|
-
centerY
|
|
1749
|
-
} = calculate(e, el, value);
|
|
1750
|
-
const size = `${radius * 2}px`;
|
|
1751
|
-
animation.className = "v-ripple__animation";
|
|
1752
|
-
animation.style.width = size;
|
|
1753
|
-
animation.style.height = size;
|
|
1754
|
-
el.appendChild(container);
|
|
1755
|
-
const computed = window.getComputedStyle(el);
|
|
1756
|
-
if (computed && computed.position === "static") {
|
|
1757
|
-
el.style.position = "relative";
|
|
1758
|
-
el.dataset.previousPosition = "static";
|
|
1759
|
-
}
|
|
1760
|
-
animation.classList.add("v-ripple__animation--enter");
|
|
1761
|
-
animation.classList.add("v-ripple__animation--visible");
|
|
1762
|
-
transform(animation, `translate(${x}, ${y}) scale3d(${scale},${scale},${scale})`);
|
|
1763
|
-
animation.dataset.activated = String(performance.now());
|
|
1764
|
-
setTimeout(() => {
|
|
1765
|
-
animation.classList.remove("v-ripple__animation--enter");
|
|
1766
|
-
animation.classList.add("v-ripple__animation--in");
|
|
1767
|
-
transform(animation, `translate(${centerX}, ${centerY}) scale3d(1,1,1)`);
|
|
1768
|
-
}, 0);
|
|
1769
|
-
},
|
|
1770
|
-
hide(el) {
|
|
1771
|
-
if (!el || !el._ripple || !el._ripple.enabled)
|
|
1772
|
-
return;
|
|
1773
|
-
const ripples2 = el.getElementsByClassName("v-ripple__animation");
|
|
1774
|
-
if (ripples2.length === 0)
|
|
1775
|
-
return;
|
|
1776
|
-
const animation = ripples2[ripples2.length - 1];
|
|
1777
|
-
if (animation.dataset.isHiding)
|
|
1778
|
-
return;
|
|
1779
|
-
else
|
|
1780
|
-
animation.dataset.isHiding = "true";
|
|
1781
|
-
const diff = performance.now() - Number(animation.dataset.activated);
|
|
1782
|
-
const delay = Math.max(250 - diff, 0);
|
|
1783
|
-
setTimeout(() => {
|
|
1784
|
-
animation.classList.remove("v-ripple__animation--in");
|
|
1785
|
-
animation.classList.add("v-ripple__animation--out");
|
|
1786
|
-
setTimeout(() => {
|
|
1787
|
-
const ripples3 = el.getElementsByClassName("v-ripple__animation");
|
|
1788
|
-
if (ripples3.length === 1 && el.dataset.previousPosition) {
|
|
1789
|
-
el.style.position = el.dataset.previousPosition;
|
|
1790
|
-
delete el.dataset.previousPosition;
|
|
1791
|
-
}
|
|
1792
|
-
animation.parentNode && el.removeChild(animation.parentNode);
|
|
1793
|
-
}, 300);
|
|
1794
|
-
}, delay);
|
|
1795
|
-
}
|
|
1796
|
-
};
|
|
1797
|
-
function isRippleEnabled(value) {
|
|
1798
|
-
return typeof value === "undefined" || !!value;
|
|
1799
|
-
}
|
|
1800
|
-
function rippleShow(e) {
|
|
1801
|
-
const value = {};
|
|
1802
|
-
const element = e.currentTarget;
|
|
1803
|
-
if (!element || !element._ripple || element._ripple.touched || e.rippleStop)
|
|
1804
|
-
return;
|
|
1805
|
-
e.rippleStop = true;
|
|
1806
|
-
if (isTouchEvent(e)) {
|
|
1807
|
-
element._ripple.touched = true;
|
|
1808
|
-
element._ripple.isTouch = true;
|
|
1809
|
-
} else {
|
|
1810
|
-
if (element._ripple.isTouch)
|
|
1811
|
-
return;
|
|
1812
|
-
}
|
|
1813
|
-
value.center = element._ripple.centered || isKeyboardEvent(e);
|
|
1814
|
-
if (element._ripple.class) {
|
|
1815
|
-
value.class = element._ripple.class;
|
|
1816
|
-
}
|
|
1817
|
-
if (isTouchEvent(e)) {
|
|
1818
|
-
if (element._ripple.showTimerCommit)
|
|
1819
|
-
return;
|
|
1820
|
-
element._ripple.showTimerCommit = () => {
|
|
1821
|
-
ripples.show(e, element, value);
|
|
1822
|
-
};
|
|
1823
|
-
element._ripple.showTimer = window.setTimeout(() => {
|
|
1824
|
-
if (element && element._ripple && element._ripple.showTimerCommit) {
|
|
1825
|
-
element._ripple.showTimerCommit();
|
|
1826
|
-
element._ripple.showTimerCommit = null;
|
|
1827
|
-
}
|
|
1828
|
-
}, DELAY_RIPPLE);
|
|
1829
|
-
} else {
|
|
1830
|
-
ripples.show(e, element, value);
|
|
1831
|
-
}
|
|
1832
|
-
}
|
|
1833
|
-
function rippleHide(e) {
|
|
1834
|
-
const element = e.currentTarget;
|
|
1835
|
-
if (!element || !element._ripple)
|
|
1836
|
-
return;
|
|
1837
|
-
window.clearTimeout(element._ripple.showTimer);
|
|
1838
|
-
if (e.type === "touchend" && element._ripple.showTimerCommit) {
|
|
1839
|
-
element._ripple.showTimerCommit();
|
|
1840
|
-
element._ripple.showTimerCommit = null;
|
|
1841
|
-
element._ripple.showTimer = setTimeout(() => {
|
|
1842
|
-
rippleHide(e);
|
|
1843
|
-
});
|
|
1844
|
-
return;
|
|
1845
|
-
}
|
|
1846
|
-
window.setTimeout(() => {
|
|
1847
|
-
if (element._ripple) {
|
|
1848
|
-
element._ripple.touched = false;
|
|
1849
|
-
}
|
|
1850
|
-
});
|
|
1851
|
-
ripples.hide(element);
|
|
1852
|
-
}
|
|
1853
|
-
function rippleCancelShow(e) {
|
|
1854
|
-
const element = e.currentTarget;
|
|
1855
|
-
if (!element || !element._ripple)
|
|
1856
|
-
return;
|
|
1857
|
-
if (element._ripple.showTimerCommit) {
|
|
1858
|
-
element._ripple.showTimerCommit = null;
|
|
1859
|
-
}
|
|
1860
|
-
window.clearTimeout(element._ripple.showTimer);
|
|
1861
|
-
}
|
|
1862
|
-
let keyboardRipple = false;
|
|
1863
|
-
function keyboardRippleShow(e) {
|
|
1864
|
-
if (!keyboardRipple && (e.keyCode === keyCodes.enter || e.keyCode === keyCodes.space)) {
|
|
1865
|
-
keyboardRipple = true;
|
|
1866
|
-
rippleShow(e);
|
|
1867
|
-
}
|
|
1868
|
-
}
|
|
1869
|
-
function keyboardRippleHide(e) {
|
|
1870
|
-
keyboardRipple = false;
|
|
1871
|
-
rippleHide(e);
|
|
1872
|
-
}
|
|
1873
|
-
function focusRippleHide(e) {
|
|
1874
|
-
if (keyboardRipple === true) {
|
|
1875
|
-
keyboardRipple = false;
|
|
1876
|
-
rippleHide(e);
|
|
1877
|
-
}
|
|
1878
|
-
}
|
|
1879
|
-
function updateRipple(el, binding, wasEnabled) {
|
|
1880
|
-
const enabled = isRippleEnabled(binding.value);
|
|
1881
|
-
if (!enabled) {
|
|
1882
|
-
ripples.hide(el);
|
|
1883
|
-
}
|
|
1884
|
-
el._ripple = el._ripple || {};
|
|
1885
|
-
el._ripple.enabled = enabled;
|
|
1886
|
-
const value = binding.value || {};
|
|
1887
|
-
if (value.center) {
|
|
1888
|
-
el._ripple.centered = true;
|
|
1889
|
-
}
|
|
1890
|
-
if (value.class) {
|
|
1891
|
-
el._ripple.class = binding.value.class;
|
|
1892
|
-
}
|
|
1893
|
-
if (value.circle) {
|
|
1894
|
-
el._ripple.circle = value.circle;
|
|
1895
|
-
}
|
|
1896
|
-
if (enabled && !wasEnabled) {
|
|
1897
|
-
el.addEventListener("touchstart", rippleShow, {
|
|
1898
|
-
passive: true
|
|
1899
|
-
});
|
|
1900
|
-
el.addEventListener("touchend", rippleHide, {
|
|
1901
|
-
passive: true
|
|
1902
|
-
});
|
|
1903
|
-
el.addEventListener("touchmove", rippleCancelShow, {
|
|
1904
|
-
passive: true
|
|
1905
|
-
});
|
|
1906
|
-
el.addEventListener("touchcancel", rippleHide);
|
|
1907
|
-
el.addEventListener("mousedown", rippleShow);
|
|
1908
|
-
el.addEventListener("mouseup", rippleHide);
|
|
1909
|
-
el.addEventListener("mouseleave", rippleHide);
|
|
1910
|
-
el.addEventListener("keydown", keyboardRippleShow);
|
|
1911
|
-
el.addEventListener("keyup", keyboardRippleHide);
|
|
1912
|
-
el.addEventListener("blur", focusRippleHide);
|
|
1913
|
-
el.addEventListener("dragstart", rippleHide, {
|
|
1914
|
-
passive: true
|
|
1915
|
-
});
|
|
1916
|
-
} else if (!enabled && wasEnabled) {
|
|
1917
|
-
removeListeners(el);
|
|
1918
|
-
}
|
|
1919
|
-
}
|
|
1920
|
-
function removeListeners(el) {
|
|
1921
|
-
el.removeEventListener("mousedown", rippleShow);
|
|
1922
|
-
el.removeEventListener("touchstart", rippleShow);
|
|
1923
|
-
el.removeEventListener("touchend", rippleHide);
|
|
1924
|
-
el.removeEventListener("touchmove", rippleCancelShow);
|
|
1925
|
-
el.removeEventListener("touchcancel", rippleHide);
|
|
1926
|
-
el.removeEventListener("mouseup", rippleHide);
|
|
1927
|
-
el.removeEventListener("mouseleave", rippleHide);
|
|
1928
|
-
el.removeEventListener("keydown", keyboardRippleShow);
|
|
1929
|
-
el.removeEventListener("keyup", keyboardRippleHide);
|
|
1930
|
-
el.removeEventListener("dragstart", rippleHide);
|
|
1931
|
-
el.removeEventListener("blur", focusRippleHide);
|
|
1932
|
-
}
|
|
1933
|
-
function directive(el, binding, node) {
|
|
1934
|
-
updateRipple(el, binding, false);
|
|
1935
|
-
}
|
|
1936
|
-
function unbind(el) {
|
|
1937
|
-
delete el._ripple;
|
|
1938
|
-
removeListeners(el);
|
|
1939
|
-
}
|
|
1940
|
-
function update(el, binding) {
|
|
1941
|
-
if (binding.value === binding.oldValue) {
|
|
1942
|
-
return;
|
|
1943
|
-
}
|
|
1944
|
-
const wasEnabled = isRippleEnabled(binding.oldValue);
|
|
1945
|
-
updateRipple(el, binding, wasEnabled);
|
|
1946
|
-
}
|
|
1947
|
-
const Ripple = {
|
|
1948
|
-
bind: directive,
|
|
1949
|
-
unbind,
|
|
1950
|
-
update
|
|
1951
|
-
};
|
|
1952
|
-
var ripple = Ripple;
|
|
1953
|
-
function factory$1(prop = "value", event = "input") {
|
|
1954
|
-
return Vue.extend({
|
|
1955
|
-
name: "toggleable",
|
|
1956
|
-
model: {
|
|
1957
|
-
prop,
|
|
1958
|
-
event
|
|
1959
|
-
},
|
|
1960
|
-
props: {
|
|
1961
|
-
[prop]: {
|
|
1962
|
-
required: false
|
|
1963
|
-
}
|
|
1964
|
-
},
|
|
1965
|
-
data() {
|
|
1966
|
-
return {
|
|
1967
|
-
isActive: !!this[prop]
|
|
1968
|
-
};
|
|
1969
|
-
},
|
|
1970
|
-
watch: {
|
|
1971
|
-
[prop](val) {
|
|
1972
|
-
this.isActive = !!val;
|
|
1973
|
-
},
|
|
1974
|
-
isActive(val) {
|
|
1975
|
-
!!val !== this[prop] && this.$emit(event, val);
|
|
1976
|
-
}
|
|
1977
|
-
}
|
|
1978
|
-
});
|
|
1979
|
-
}
|
|
1980
|
-
factory$1();
|
|
1981
|
-
var VIcon$1 = "";
|
|
1982
|
-
var Sizeable = Vue.extend({
|
|
1983
|
-
name: "sizeable",
|
|
1984
|
-
props: {
|
|
1985
|
-
large: Boolean,
|
|
1986
|
-
small: Boolean,
|
|
1987
|
-
xLarge: Boolean,
|
|
1988
|
-
xSmall: Boolean
|
|
1989
|
-
},
|
|
1990
|
-
computed: {
|
|
1991
|
-
medium() {
|
|
1992
|
-
return Boolean(!this.xSmall && !this.small && !this.large && !this.xLarge);
|
|
1993
|
-
},
|
|
1994
|
-
sizeableClasses() {
|
|
1995
|
-
return {
|
|
1996
|
-
"v-size--x-small": this.xSmall,
|
|
1997
|
-
"v-size--small": this.small,
|
|
1998
|
-
"v-size--default": this.medium,
|
|
1999
|
-
"v-size--large": this.large,
|
|
2000
|
-
"v-size--x-large": this.xLarge
|
|
2001
|
-
};
|
|
2002
|
-
}
|
|
2003
|
-
}
|
|
2004
|
-
});
|
|
2005
|
-
var SIZE_MAP;
|
|
2006
|
-
(function(SIZE_MAP2) {
|
|
2007
|
-
SIZE_MAP2["xSmall"] = "12px";
|
|
2008
|
-
SIZE_MAP2["small"] = "16px";
|
|
2009
|
-
SIZE_MAP2["default"] = "24px";
|
|
2010
|
-
SIZE_MAP2["medium"] = "28px";
|
|
2011
|
-
SIZE_MAP2["large"] = "36px";
|
|
2012
|
-
SIZE_MAP2["xLarge"] = "40px";
|
|
2013
|
-
})(SIZE_MAP || (SIZE_MAP = {}));
|
|
2014
|
-
function isFontAwesome5(iconType) {
|
|
2015
|
-
return ["fas", "far", "fal", "fab", "fad", "fak"].some((val) => iconType.includes(val));
|
|
2016
|
-
}
|
|
2017
|
-
function isSvgPath(icon) {
|
|
2018
|
-
return /^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(icon) && /[\dz]$/i.test(icon) && icon.length > 4;
|
|
2019
|
-
}
|
|
2020
|
-
const VIcon = mixins(BindsAttrs, Colorable, Sizeable, Themeable$1).extend({
|
|
2021
|
-
name: "v-icon",
|
|
2022
|
-
props: {
|
|
2023
|
-
dense: Boolean,
|
|
2024
|
-
disabled: Boolean,
|
|
2025
|
-
left: Boolean,
|
|
2026
|
-
right: Boolean,
|
|
2027
|
-
size: [Number, String],
|
|
2028
|
-
tag: {
|
|
2029
|
-
type: String,
|
|
2030
|
-
required: false,
|
|
2031
|
-
default: "i"
|
|
2032
|
-
}
|
|
2033
|
-
},
|
|
2034
|
-
computed: {
|
|
2035
|
-
medium() {
|
|
2036
|
-
return false;
|
|
2037
|
-
},
|
|
2038
|
-
hasClickListener() {
|
|
2039
|
-
return Boolean(this.listeners$.click || this.listeners$["!click"]);
|
|
2040
|
-
}
|
|
2041
|
-
},
|
|
2042
|
-
methods: {
|
|
2043
|
-
getIcon() {
|
|
2044
|
-
let iconName = "";
|
|
2045
|
-
if (this.$slots.default)
|
|
2046
|
-
iconName = this.$slots.default[0].text.trim();
|
|
2047
|
-
return remapInternalIcon(this, iconName);
|
|
2048
|
-
},
|
|
2049
|
-
getSize() {
|
|
2050
|
-
const sizes = {
|
|
2051
|
-
xSmall: this.xSmall,
|
|
2052
|
-
small: this.small,
|
|
2053
|
-
medium: this.medium,
|
|
2054
|
-
large: this.large,
|
|
2055
|
-
xLarge: this.xLarge
|
|
2056
|
-
};
|
|
2057
|
-
const explicitSize = keys(sizes).find((key) => sizes[key]);
|
|
2058
|
-
return explicitSize && SIZE_MAP[explicitSize] || convertToUnit(this.size);
|
|
2059
|
-
},
|
|
2060
|
-
getDefaultData() {
|
|
2061
|
-
return {
|
|
2062
|
-
staticClass: "v-icon notranslate",
|
|
2063
|
-
class: {
|
|
2064
|
-
"v-icon--disabled": this.disabled,
|
|
2065
|
-
"v-icon--left": this.left,
|
|
2066
|
-
"v-icon--link": this.hasClickListener,
|
|
2067
|
-
"v-icon--right": this.right,
|
|
2068
|
-
"v-icon--dense": this.dense
|
|
2069
|
-
},
|
|
2070
|
-
attrs: {
|
|
2071
|
-
"aria-hidden": !this.hasClickListener,
|
|
2072
|
-
disabled: this.hasClickListener && this.disabled,
|
|
2073
|
-
type: this.hasClickListener ? "button" : void 0,
|
|
2074
|
-
...this.attrs$
|
|
2075
|
-
},
|
|
2076
|
-
on: this.listeners$
|
|
2077
|
-
};
|
|
2078
|
-
},
|
|
2079
|
-
getSvgWrapperData() {
|
|
2080
|
-
const fontSize = this.getSize();
|
|
2081
|
-
const wrapperData = {
|
|
2082
|
-
...this.getDefaultData(),
|
|
2083
|
-
style: fontSize ? {
|
|
2084
|
-
fontSize,
|
|
2085
|
-
height: fontSize,
|
|
2086
|
-
width: fontSize
|
|
2087
|
-
} : void 0
|
|
2088
|
-
};
|
|
2089
|
-
this.applyColors(wrapperData);
|
|
2090
|
-
return wrapperData;
|
|
2091
|
-
},
|
|
2092
|
-
applyColors(data) {
|
|
2093
|
-
data.class = {
|
|
2094
|
-
...data.class,
|
|
2095
|
-
...this.themeClasses
|
|
2096
|
-
};
|
|
2097
|
-
this.setTextColor(this.color, data);
|
|
2098
|
-
},
|
|
2099
|
-
renderFontIcon(icon, h) {
|
|
2100
|
-
const newChildren = [];
|
|
2101
|
-
const data = this.getDefaultData();
|
|
2102
|
-
let iconType = "material-icons";
|
|
2103
|
-
const delimiterIndex = icon.indexOf("-");
|
|
2104
|
-
const isMaterialIcon = delimiterIndex <= -1;
|
|
2105
|
-
if (isMaterialIcon) {
|
|
2106
|
-
newChildren.push(icon);
|
|
2107
|
-
} else {
|
|
2108
|
-
iconType = icon.slice(0, delimiterIndex);
|
|
2109
|
-
if (isFontAwesome5(iconType))
|
|
2110
|
-
iconType = "";
|
|
2111
|
-
}
|
|
2112
|
-
data.class[iconType] = true;
|
|
2113
|
-
data.class[icon] = !isMaterialIcon;
|
|
2114
|
-
const fontSize = this.getSize();
|
|
2115
|
-
if (fontSize)
|
|
2116
|
-
data.style = {
|
|
2117
|
-
fontSize
|
|
2118
|
-
};
|
|
2119
|
-
this.applyColors(data);
|
|
2120
|
-
return h(this.hasClickListener ? "button" : this.tag, data, newChildren);
|
|
2121
|
-
},
|
|
2122
|
-
renderSvgIcon(icon, h) {
|
|
2123
|
-
const svgData = {
|
|
2124
|
-
class: "v-icon__svg",
|
|
2125
|
-
attrs: {
|
|
2126
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2127
|
-
viewBox: "0 0 24 24",
|
|
2128
|
-
role: "img",
|
|
2129
|
-
"aria-hidden": true
|
|
2130
|
-
}
|
|
2131
|
-
};
|
|
2132
|
-
const size = this.getSize();
|
|
2133
|
-
if (size) {
|
|
2134
|
-
svgData.style = {
|
|
2135
|
-
fontSize: size,
|
|
2136
|
-
height: size,
|
|
2137
|
-
width: size
|
|
2138
|
-
};
|
|
2139
|
-
}
|
|
2140
|
-
return h(this.hasClickListener ? "button" : "span", this.getSvgWrapperData(), [h("svg", svgData, [h("path", {
|
|
2141
|
-
attrs: {
|
|
2142
|
-
d: icon
|
|
2143
|
-
}
|
|
2144
|
-
})])]);
|
|
2145
|
-
},
|
|
2146
|
-
renderSvgIconComponent(icon, h) {
|
|
2147
|
-
const data = {
|
|
2148
|
-
class: {
|
|
2149
|
-
"v-icon__component": true
|
|
2150
|
-
}
|
|
2151
|
-
};
|
|
2152
|
-
const size = this.getSize();
|
|
2153
|
-
if (size) {
|
|
2154
|
-
data.style = {
|
|
2155
|
-
fontSize: size,
|
|
2156
|
-
height: size,
|
|
2157
|
-
width: size
|
|
2158
|
-
};
|
|
2159
|
-
}
|
|
2160
|
-
this.applyColors(data);
|
|
2161
|
-
const component2 = icon.component;
|
|
2162
|
-
data.props = icon.props;
|
|
2163
|
-
data.nativeOn = data.on;
|
|
2164
|
-
return h(this.hasClickListener ? "button" : "span", this.getSvgWrapperData(), [h(component2, data)]);
|
|
2165
|
-
}
|
|
2166
|
-
},
|
|
2167
|
-
render(h) {
|
|
2168
|
-
const icon = this.getIcon();
|
|
2169
|
-
if (typeof icon === "string") {
|
|
2170
|
-
if (isSvgPath(icon)) {
|
|
2171
|
-
return this.renderSvgIcon(icon, h);
|
|
2172
|
-
}
|
|
2173
|
-
return this.renderFontIcon(icon, h);
|
|
2174
|
-
}
|
|
2175
|
-
return this.renderSvgIconComponent(icon, h);
|
|
2176
|
-
}
|
|
2177
|
-
});
|
|
2178
|
-
var __unplugin_components_2 = Vue.extend({
|
|
2179
|
-
name: "v-icon",
|
|
2180
|
-
$_wrapperFor: VIcon,
|
|
2181
|
-
functional: true,
|
|
2182
|
-
render(h, {
|
|
2183
|
-
data,
|
|
2184
|
-
children
|
|
2185
|
-
}) {
|
|
2186
|
-
let iconName = "";
|
|
2187
|
-
if (data.domProps) {
|
|
2188
|
-
iconName = data.domProps.textContent || data.domProps.innerHTML || iconName;
|
|
2189
|
-
delete data.domProps.textContent;
|
|
2190
|
-
delete data.domProps.innerHTML;
|
|
2191
|
-
}
|
|
2192
|
-
return h(VIcon, data, iconName ? [iconName] : children);
|
|
2193
|
-
}
|
|
2194
|
-
});
|
|
2195
|
-
var VBtn = "";
|
|
2196
|
-
var VProgressCircular$1 = "";
|
|
2197
|
-
var VProgressCircular = Colorable.extend({
|
|
2198
|
-
name: "v-progress-circular",
|
|
2199
|
-
directives: {
|
|
2200
|
-
intersect
|
|
2201
|
-
},
|
|
2202
|
-
props: {
|
|
2203
|
-
button: Boolean,
|
|
2204
|
-
indeterminate: Boolean,
|
|
2205
|
-
rotate: {
|
|
2206
|
-
type: [Number, String],
|
|
2207
|
-
default: 0
|
|
2208
|
-
},
|
|
2209
|
-
size: {
|
|
2210
|
-
type: [Number, String],
|
|
2211
|
-
default: 32
|
|
2212
|
-
},
|
|
2213
|
-
width: {
|
|
2214
|
-
type: [Number, String],
|
|
2215
|
-
default: 4
|
|
2216
|
-
},
|
|
2217
|
-
value: {
|
|
2218
|
-
type: [Number, String],
|
|
2219
|
-
default: 0
|
|
2220
|
-
}
|
|
2221
|
-
},
|
|
2222
|
-
data: () => ({
|
|
2223
|
-
radius: 20,
|
|
2224
|
-
isVisible: true
|
|
2225
|
-
}),
|
|
2226
|
-
computed: {
|
|
2227
|
-
calculatedSize() {
|
|
2228
|
-
return Number(this.size) + (this.button ? 8 : 0);
|
|
2229
|
-
},
|
|
2230
|
-
circumference() {
|
|
2231
|
-
return 2 * Math.PI * this.radius;
|
|
2232
|
-
},
|
|
2233
|
-
classes() {
|
|
2234
|
-
return {
|
|
2235
|
-
"v-progress-circular--visible": this.isVisible,
|
|
2236
|
-
"v-progress-circular--indeterminate": this.indeterminate,
|
|
2237
|
-
"v-progress-circular--button": this.button
|
|
2238
|
-
};
|
|
2239
|
-
},
|
|
2240
|
-
normalizedValue() {
|
|
2241
|
-
if (this.value < 0) {
|
|
2242
|
-
return 0;
|
|
2243
|
-
}
|
|
2244
|
-
if (this.value > 100) {
|
|
2245
|
-
return 100;
|
|
2246
|
-
}
|
|
2247
|
-
return parseFloat(this.value);
|
|
2248
|
-
},
|
|
2249
|
-
strokeDashArray() {
|
|
2250
|
-
return Math.round(this.circumference * 1e3) / 1e3;
|
|
2251
|
-
},
|
|
2252
|
-
strokeDashOffset() {
|
|
2253
|
-
return (100 - this.normalizedValue) / 100 * this.circumference + "px";
|
|
2254
|
-
},
|
|
2255
|
-
strokeWidth() {
|
|
2256
|
-
return Number(this.width) / +this.size * this.viewBoxSize * 2;
|
|
2257
|
-
},
|
|
2258
|
-
styles() {
|
|
2259
|
-
return {
|
|
2260
|
-
height: convertToUnit(this.calculatedSize),
|
|
2261
|
-
width: convertToUnit(this.calculatedSize)
|
|
2262
|
-
};
|
|
2263
|
-
},
|
|
2264
|
-
svgStyles() {
|
|
2265
|
-
return {
|
|
2266
|
-
transform: `rotate(${Number(this.rotate)}deg)`
|
|
2267
|
-
};
|
|
2268
|
-
},
|
|
2269
|
-
viewBoxSize() {
|
|
2270
|
-
return this.radius / (1 - Number(this.width) / +this.size);
|
|
2271
|
-
}
|
|
2272
|
-
},
|
|
2273
|
-
methods: {
|
|
2274
|
-
genCircle(name, offset) {
|
|
2275
|
-
return this.$createElement("circle", {
|
|
2276
|
-
class: `v-progress-circular__${name}`,
|
|
2277
|
-
attrs: {
|
|
2278
|
-
fill: "transparent",
|
|
2279
|
-
cx: 2 * this.viewBoxSize,
|
|
2280
|
-
cy: 2 * this.viewBoxSize,
|
|
2281
|
-
r: this.radius,
|
|
2282
|
-
"stroke-width": this.strokeWidth,
|
|
2283
|
-
"stroke-dasharray": this.strokeDashArray,
|
|
2284
|
-
"stroke-dashoffset": offset
|
|
2285
|
-
}
|
|
2286
|
-
});
|
|
2287
|
-
},
|
|
2288
|
-
genSvg() {
|
|
2289
|
-
const children = [this.indeterminate || this.genCircle("underlay", 0), this.genCircle("overlay", this.strokeDashOffset)];
|
|
2290
|
-
return this.$createElement("svg", {
|
|
2291
|
-
style: this.svgStyles,
|
|
2292
|
-
attrs: {
|
|
2293
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2294
|
-
viewBox: `${this.viewBoxSize} ${this.viewBoxSize} ${2 * this.viewBoxSize} ${2 * this.viewBoxSize}`
|
|
2295
|
-
}
|
|
2296
|
-
}, children);
|
|
2297
|
-
},
|
|
2298
|
-
genInfo() {
|
|
2299
|
-
return this.$createElement("div", {
|
|
2300
|
-
staticClass: "v-progress-circular__info"
|
|
2301
|
-
}, this.$slots.default);
|
|
2302
|
-
},
|
|
2303
|
-
onObserve(entries, observer, isIntersecting) {
|
|
2304
|
-
this.isVisible = isIntersecting;
|
|
2305
|
-
}
|
|
2306
|
-
},
|
|
2307
|
-
render(h) {
|
|
2308
|
-
return h("div", this.setTextColor(this.color, {
|
|
2309
|
-
staticClass: "v-progress-circular",
|
|
2310
|
-
attrs: {
|
|
2311
|
-
role: "progressbar",
|
|
2312
|
-
"aria-valuemin": 0,
|
|
2313
|
-
"aria-valuemax": 100,
|
|
2314
|
-
"aria-valuenow": this.indeterminate ? void 0 : this.normalizedValue
|
|
2315
|
-
},
|
|
2316
|
-
class: this.classes,
|
|
2317
|
-
directives: [{
|
|
2318
|
-
name: "intersect",
|
|
2319
|
-
value: this.onObserve
|
|
2320
|
-
}],
|
|
2321
|
-
style: this.styles,
|
|
2322
|
-
on: this.$listeners
|
|
2323
|
-
}), [this.genSvg(), this.genInfo()]);
|
|
2324
|
-
}
|
|
2325
|
-
});
|
|
2326
|
-
function generateWarning(child, parent) {
|
|
2327
|
-
return () => consoleWarn(`The ${child} component must be used inside a ${parent}`);
|
|
2328
|
-
}
|
|
2329
|
-
function inject(namespace, child, parent) {
|
|
2330
|
-
const defaultImpl = child && parent ? {
|
|
2331
|
-
register: generateWarning(child, parent),
|
|
2332
|
-
unregister: generateWarning(child, parent)
|
|
2333
|
-
} : null;
|
|
2334
|
-
return Vue.extend({
|
|
2335
|
-
name: "registrable-inject",
|
|
2336
|
-
inject: {
|
|
2337
|
-
[namespace]: {
|
|
2338
|
-
default: defaultImpl
|
|
2339
|
-
}
|
|
2340
|
-
}
|
|
2341
|
-
});
|
|
2342
|
-
}
|
|
2343
|
-
function factory(namespace, child, parent) {
|
|
2344
|
-
return inject(namespace, child, parent).extend({
|
|
2345
|
-
name: "groupable",
|
|
2346
|
-
props: {
|
|
2347
|
-
activeClass: {
|
|
2348
|
-
type: String,
|
|
2349
|
-
default() {
|
|
2350
|
-
if (!this[namespace])
|
|
2351
|
-
return void 0;
|
|
2352
|
-
return this[namespace].activeClass;
|
|
2353
|
-
}
|
|
2354
|
-
},
|
|
2355
|
-
disabled: Boolean
|
|
2356
|
-
},
|
|
2357
|
-
data() {
|
|
2358
|
-
return {
|
|
2359
|
-
isActive: false
|
|
2360
|
-
};
|
|
2361
|
-
},
|
|
2362
|
-
computed: {
|
|
2363
|
-
groupClasses() {
|
|
2364
|
-
if (!this.activeClass)
|
|
2365
|
-
return {};
|
|
2366
|
-
return {
|
|
2367
|
-
[this.activeClass]: this.isActive
|
|
2368
|
-
};
|
|
2369
|
-
}
|
|
2370
|
-
},
|
|
2371
|
-
created() {
|
|
2372
|
-
this[namespace] && this[namespace].register(this);
|
|
2373
|
-
},
|
|
2374
|
-
beforeDestroy() {
|
|
2375
|
-
this[namespace] && this[namespace].unregister(this);
|
|
2376
|
-
},
|
|
2377
|
-
methods: {
|
|
2378
|
-
toggle() {
|
|
2379
|
-
this.$emit("change");
|
|
2380
|
-
}
|
|
2381
|
-
}
|
|
2382
|
-
});
|
|
2383
|
-
}
|
|
2384
|
-
factory("itemGroup");
|
|
2385
|
-
var Routable = Vue.extend({
|
|
2386
|
-
name: "routable",
|
|
2387
|
-
directives: {
|
|
2388
|
-
Ripple: ripple
|
|
2389
|
-
},
|
|
2390
|
-
props: {
|
|
2391
|
-
activeClass: String,
|
|
2392
|
-
append: Boolean,
|
|
2393
|
-
disabled: Boolean,
|
|
2394
|
-
exact: {
|
|
2395
|
-
type: Boolean,
|
|
2396
|
-
default: void 0
|
|
2397
|
-
},
|
|
2398
|
-
exactPath: Boolean,
|
|
2399
|
-
exactActiveClass: String,
|
|
2400
|
-
link: Boolean,
|
|
2401
|
-
href: [String, Object],
|
|
2402
|
-
to: [String, Object],
|
|
2403
|
-
nuxt: Boolean,
|
|
2404
|
-
replace: Boolean,
|
|
2405
|
-
ripple: {
|
|
2406
|
-
type: [Boolean, Object],
|
|
2407
|
-
default: null
|
|
2408
|
-
},
|
|
2409
|
-
tag: String,
|
|
2410
|
-
target: String
|
|
2411
|
-
},
|
|
2412
|
-
data: () => ({
|
|
2413
|
-
isActive: false,
|
|
2414
|
-
proxyClass: ""
|
|
2415
|
-
}),
|
|
2416
|
-
computed: {
|
|
2417
|
-
classes() {
|
|
2418
|
-
const classes = {};
|
|
2419
|
-
if (this.to)
|
|
2420
|
-
return classes;
|
|
2421
|
-
if (this.activeClass)
|
|
2422
|
-
classes[this.activeClass] = this.isActive;
|
|
2423
|
-
if (this.proxyClass)
|
|
2424
|
-
classes[this.proxyClass] = this.isActive;
|
|
2425
|
-
return classes;
|
|
2426
|
-
},
|
|
2427
|
-
computedRipple() {
|
|
2428
|
-
var _this$ripple;
|
|
2429
|
-
return (_this$ripple = this.ripple) != null ? _this$ripple : !this.disabled && this.isClickable;
|
|
2430
|
-
},
|
|
2431
|
-
isClickable() {
|
|
2432
|
-
if (this.disabled)
|
|
2433
|
-
return false;
|
|
2434
|
-
return Boolean(this.isLink || this.$listeners.click || this.$listeners["!click"] || this.$attrs.tabindex);
|
|
2435
|
-
},
|
|
2436
|
-
isLink() {
|
|
2437
|
-
return this.to || this.href || this.link;
|
|
2438
|
-
},
|
|
2439
|
-
styles: () => ({})
|
|
2440
|
-
},
|
|
2441
|
-
watch: {
|
|
2442
|
-
$route: "onRouteChange"
|
|
2443
|
-
},
|
|
2444
|
-
mounted() {
|
|
2445
|
-
this.onRouteChange();
|
|
2446
|
-
},
|
|
2447
|
-
methods: {
|
|
2448
|
-
generateRouteLink() {
|
|
2449
|
-
let exact = this.exact;
|
|
2450
|
-
let tag;
|
|
2451
|
-
const data = {
|
|
2452
|
-
attrs: {
|
|
2453
|
-
tabindex: "tabindex" in this.$attrs ? this.$attrs.tabindex : void 0
|
|
2454
|
-
},
|
|
2455
|
-
class: this.classes,
|
|
2456
|
-
style: this.styles,
|
|
2457
|
-
props: {},
|
|
2458
|
-
directives: [{
|
|
2459
|
-
name: "ripple",
|
|
2460
|
-
value: this.computedRipple
|
|
2461
|
-
}],
|
|
2462
|
-
[this.to ? "nativeOn" : "on"]: {
|
|
2463
|
-
...this.$listeners,
|
|
2464
|
-
..."click" in this ? {
|
|
2465
|
-
click: this.click
|
|
2466
|
-
} : void 0
|
|
2467
|
-
},
|
|
2468
|
-
ref: "link"
|
|
2469
|
-
};
|
|
2470
|
-
if (typeof this.exact === "undefined") {
|
|
2471
|
-
exact = this.to === "/" || this.to === Object(this.to) && this.to.path === "/";
|
|
2472
|
-
}
|
|
2473
|
-
if (this.to) {
|
|
2474
|
-
let activeClass = this.activeClass;
|
|
2475
|
-
let exactActiveClass = this.exactActiveClass || activeClass;
|
|
2476
|
-
if (this.proxyClass) {
|
|
2477
|
-
activeClass = `${activeClass} ${this.proxyClass}`.trim();
|
|
2478
|
-
exactActiveClass = `${exactActiveClass} ${this.proxyClass}`.trim();
|
|
2479
|
-
}
|
|
2480
|
-
tag = this.nuxt ? "nuxt-link" : "router-link";
|
|
2481
|
-
Object.assign(data.props, {
|
|
2482
|
-
to: this.to,
|
|
2483
|
-
exact,
|
|
2484
|
-
exactPath: this.exactPath,
|
|
2485
|
-
activeClass,
|
|
2486
|
-
exactActiveClass,
|
|
2487
|
-
append: this.append,
|
|
2488
|
-
replace: this.replace
|
|
2489
|
-
});
|
|
2490
|
-
} else {
|
|
2491
|
-
tag = this.href && "a" || this.tag || "div";
|
|
2492
|
-
if (tag === "a" && this.href)
|
|
2493
|
-
data.attrs.href = this.href;
|
|
2494
|
-
}
|
|
2495
|
-
if (this.target)
|
|
2496
|
-
data.attrs.target = this.target;
|
|
2497
|
-
return {
|
|
2498
|
-
tag,
|
|
2499
|
-
data
|
|
2500
|
-
};
|
|
2501
|
-
},
|
|
2502
|
-
onRouteChange() {
|
|
2503
|
-
if (!this.to || !this.$refs.link || !this.$route)
|
|
2504
|
-
return;
|
|
2505
|
-
const activeClass = `${this.activeClass || ""} ${this.proxyClass || ""}`.trim();
|
|
2506
|
-
const exactActiveClass = `${this.exactActiveClass || ""} ${this.proxyClass || ""}`.trim() || activeClass;
|
|
2507
|
-
const path = "_vnode.data.class." + (this.exact ? exactActiveClass : activeClass);
|
|
2508
|
-
this.$nextTick(() => {
|
|
2509
|
-
if (!getObjectValueByPath(this.$refs.link, path) === this.isActive) {
|
|
2510
|
-
this.toggle();
|
|
2511
|
-
}
|
|
2512
|
-
});
|
|
2513
|
-
},
|
|
2514
|
-
toggle() {
|
|
2515
|
-
this.isActive = !this.isActive;
|
|
2516
|
-
}
|
|
2517
|
-
}
|
|
2518
|
-
});
|
|
2519
|
-
const baseMixins = mixins(__unplugin_components_0, Routable, Positionable, Sizeable, factory("btnToggle"), factory$1("inputValue"));
|
|
2520
|
-
var __unplugin_components_1 = baseMixins.extend().extend({
|
|
2521
|
-
name: "v-btn",
|
|
2522
|
-
props: {
|
|
2523
|
-
activeClass: {
|
|
2524
|
-
type: String,
|
|
2525
|
-
default() {
|
|
2526
|
-
if (!this.btnToggle)
|
|
2527
|
-
return "";
|
|
2528
|
-
return this.btnToggle.activeClass;
|
|
2529
|
-
}
|
|
2530
|
-
},
|
|
2531
|
-
block: Boolean,
|
|
2532
|
-
depressed: Boolean,
|
|
2533
|
-
fab: Boolean,
|
|
2534
|
-
icon: Boolean,
|
|
2535
|
-
loading: Boolean,
|
|
2536
|
-
outlined: Boolean,
|
|
2537
|
-
plain: Boolean,
|
|
2538
|
-
retainFocusOnClick: Boolean,
|
|
2539
|
-
rounded: Boolean,
|
|
2540
|
-
tag: {
|
|
2541
|
-
type: String,
|
|
2542
|
-
default: "button"
|
|
2543
|
-
},
|
|
2544
|
-
text: Boolean,
|
|
2545
|
-
tile: Boolean,
|
|
2546
|
-
type: {
|
|
2547
|
-
type: String,
|
|
2548
|
-
default: "button"
|
|
2549
|
-
},
|
|
2550
|
-
value: null
|
|
2551
|
-
},
|
|
2552
|
-
data: () => ({
|
|
2553
|
-
proxyClass: "v-btn--active"
|
|
2554
|
-
}),
|
|
2555
|
-
computed: {
|
|
2556
|
-
classes() {
|
|
2557
|
-
return {
|
|
2558
|
-
"v-btn": true,
|
|
2559
|
-
...Routable.options.computed.classes.call(this),
|
|
2560
|
-
"v-btn--absolute": this.absolute,
|
|
2561
|
-
"v-btn--block": this.block,
|
|
2562
|
-
"v-btn--bottom": this.bottom,
|
|
2563
|
-
"v-btn--disabled": this.disabled,
|
|
2564
|
-
"v-btn--is-elevated": this.isElevated,
|
|
2565
|
-
"v-btn--fab": this.fab,
|
|
2566
|
-
"v-btn--fixed": this.fixed,
|
|
2567
|
-
"v-btn--has-bg": this.hasBg,
|
|
2568
|
-
"v-btn--icon": this.icon,
|
|
2569
|
-
"v-btn--left": this.left,
|
|
2570
|
-
"v-btn--loading": this.loading,
|
|
2571
|
-
"v-btn--outlined": this.outlined,
|
|
2572
|
-
"v-btn--plain": this.plain,
|
|
2573
|
-
"v-btn--right": this.right,
|
|
2574
|
-
"v-btn--round": this.isRound,
|
|
2575
|
-
"v-btn--rounded": this.rounded,
|
|
2576
|
-
"v-btn--router": this.to,
|
|
2577
|
-
"v-btn--text": this.text,
|
|
2578
|
-
"v-btn--tile": this.tile,
|
|
2579
|
-
"v-btn--top": this.top,
|
|
2580
|
-
...this.themeClasses,
|
|
2581
|
-
...this.groupClasses,
|
|
2582
|
-
...this.elevationClasses,
|
|
2583
|
-
...this.sizeableClasses
|
|
2584
|
-
};
|
|
2585
|
-
},
|
|
2586
|
-
computedElevation() {
|
|
2587
|
-
if (this.disabled)
|
|
2588
|
-
return void 0;
|
|
2589
|
-
return Elevatable.options.computed.computedElevation.call(this);
|
|
2590
|
-
},
|
|
2591
|
-
computedRipple() {
|
|
2592
|
-
var _this$ripple;
|
|
2593
|
-
const defaultRipple = this.icon || this.fab ? {
|
|
2594
|
-
circle: true
|
|
2595
|
-
} : true;
|
|
2596
|
-
if (this.disabled)
|
|
2597
|
-
return false;
|
|
2598
|
-
else
|
|
2599
|
-
return (_this$ripple = this.ripple) != null ? _this$ripple : defaultRipple;
|
|
2600
|
-
},
|
|
2601
|
-
hasBg() {
|
|
2602
|
-
return !this.text && !this.plain && !this.outlined && !this.icon;
|
|
2603
|
-
},
|
|
2604
|
-
isElevated() {
|
|
2605
|
-
return Boolean(!this.icon && !this.text && !this.outlined && !this.depressed && !this.disabled && !this.plain && (this.elevation == null || Number(this.elevation) > 0));
|
|
2606
|
-
},
|
|
2607
|
-
isRound() {
|
|
2608
|
-
return Boolean(this.icon || this.fab);
|
|
2609
|
-
},
|
|
2610
|
-
styles() {
|
|
2611
|
-
return {
|
|
2612
|
-
...this.measurableStyles
|
|
2613
|
-
};
|
|
2614
|
-
}
|
|
2615
|
-
},
|
|
2616
|
-
created() {
|
|
2617
|
-
const breakingProps = [["flat", "text"], ["outline", "outlined"], ["round", "rounded"]];
|
|
2618
|
-
breakingProps.forEach(([original, replacement]) => {
|
|
2619
|
-
if (this.$attrs.hasOwnProperty(original))
|
|
2620
|
-
breaking(original, replacement, this);
|
|
2621
|
-
});
|
|
2622
|
-
},
|
|
2623
|
-
methods: {
|
|
2624
|
-
click(e) {
|
|
2625
|
-
!this.retainFocusOnClick && !this.fab && e.detail && this.$el.blur();
|
|
2626
|
-
this.$emit("click", e);
|
|
2627
|
-
this.btnToggle && this.toggle();
|
|
2628
|
-
},
|
|
2629
|
-
genContent() {
|
|
2630
|
-
return this.$createElement("span", {
|
|
2631
|
-
staticClass: "v-btn__content"
|
|
2632
|
-
}, this.$slots.default);
|
|
2633
|
-
},
|
|
2634
|
-
genLoader() {
|
|
2635
|
-
return this.$createElement("span", {
|
|
2636
|
-
class: "v-btn__loader"
|
|
2637
|
-
}, this.$slots.loader || [this.$createElement(VProgressCircular, {
|
|
2638
|
-
props: {
|
|
2639
|
-
indeterminate: true,
|
|
2640
|
-
size: 23,
|
|
2641
|
-
width: 2
|
|
2642
|
-
}
|
|
2643
|
-
})]);
|
|
2644
|
-
}
|
|
2645
|
-
},
|
|
2646
|
-
render(h) {
|
|
2647
|
-
const children = [this.genContent(), this.loading && this.genLoader()];
|
|
2648
|
-
const {
|
|
2649
|
-
tag,
|
|
2650
|
-
data
|
|
2651
|
-
} = this.generateRouteLink();
|
|
2652
|
-
const setColor = this.hasBg ? this.setBackgroundColor : this.setTextColor;
|
|
2653
|
-
if (tag === "button") {
|
|
2654
|
-
data.attrs.type = this.type;
|
|
2655
|
-
data.attrs.disabled = this.disabled;
|
|
2656
|
-
}
|
|
2657
|
-
data.attrs.value = ["string", "number"].includes(typeof this.value) ? this.value : JSON.stringify(this.value);
|
|
2658
|
-
return h(tag, this.disabled ? data : setColor(this.color, data), children);
|
|
2659
|
-
}
|
|
2660
|
-
});
|
|
2661
|
-
const red = Object.freeze({
|
|
2662
|
-
base: "#f44336",
|
|
2663
|
-
lighten5: "#ffebee",
|
|
2664
|
-
lighten4: "#ffcdd2",
|
|
2665
|
-
lighten3: "#ef9a9a",
|
|
2666
|
-
lighten2: "#e57373",
|
|
2667
|
-
lighten1: "#ef5350",
|
|
2668
|
-
darken1: "#e53935",
|
|
2669
|
-
darken2: "#d32f2f",
|
|
2670
|
-
darken3: "#c62828",
|
|
2671
|
-
darken4: "#b71c1c",
|
|
2672
|
-
accent1: "#ff8a80",
|
|
2673
|
-
accent2: "#ff5252",
|
|
2674
|
-
accent3: "#ff1744",
|
|
2675
|
-
accent4: "#d50000"
|
|
2676
|
-
});
|
|
2677
|
-
const pink = Object.freeze({
|
|
2678
|
-
base: "#e91e63",
|
|
2679
|
-
lighten5: "#fce4ec",
|
|
2680
|
-
lighten4: "#f8bbd0",
|
|
2681
|
-
lighten3: "#f48fb1",
|
|
2682
|
-
lighten2: "#f06292",
|
|
2683
|
-
lighten1: "#ec407a",
|
|
2684
|
-
darken1: "#d81b60",
|
|
2685
|
-
darken2: "#c2185b",
|
|
2686
|
-
darken3: "#ad1457",
|
|
2687
|
-
darken4: "#880e4f",
|
|
2688
|
-
accent1: "#ff80ab",
|
|
2689
|
-
accent2: "#ff4081",
|
|
2690
|
-
accent3: "#f50057",
|
|
2691
|
-
accent4: "#c51162"
|
|
2692
|
-
});
|
|
2693
|
-
const purple = Object.freeze({
|
|
2694
|
-
base: "#9c27b0",
|
|
2695
|
-
lighten5: "#f3e5f5",
|
|
2696
|
-
lighten4: "#e1bee7",
|
|
2697
|
-
lighten3: "#ce93d8",
|
|
2698
|
-
lighten2: "#ba68c8",
|
|
2699
|
-
lighten1: "#ab47bc",
|
|
2700
|
-
darken1: "#8e24aa",
|
|
2701
|
-
darken2: "#7b1fa2",
|
|
2702
|
-
darken3: "#6a1b9a",
|
|
2703
|
-
darken4: "#4a148c",
|
|
2704
|
-
accent1: "#ea80fc",
|
|
2705
|
-
accent2: "#e040fb",
|
|
2706
|
-
accent3: "#d500f9",
|
|
2707
|
-
accent4: "#aa00ff"
|
|
2708
|
-
});
|
|
2709
|
-
const deepPurple = Object.freeze({
|
|
2710
|
-
base: "#673ab7",
|
|
2711
|
-
lighten5: "#ede7f6",
|
|
2712
|
-
lighten4: "#d1c4e9",
|
|
2713
|
-
lighten3: "#b39ddb",
|
|
2714
|
-
lighten2: "#9575cd",
|
|
2715
|
-
lighten1: "#7e57c2",
|
|
2716
|
-
darken1: "#5e35b1",
|
|
2717
|
-
darken2: "#512da8",
|
|
2718
|
-
darken3: "#4527a0",
|
|
2719
|
-
darken4: "#311b92",
|
|
2720
|
-
accent1: "#b388ff",
|
|
2721
|
-
accent2: "#7c4dff",
|
|
2722
|
-
accent3: "#651fff",
|
|
2723
|
-
accent4: "#6200ea"
|
|
2724
|
-
});
|
|
2725
|
-
const indigo = Object.freeze({
|
|
2726
|
-
base: "#3f51b5",
|
|
2727
|
-
lighten5: "#e8eaf6",
|
|
2728
|
-
lighten4: "#c5cae9",
|
|
2729
|
-
lighten3: "#9fa8da",
|
|
2730
|
-
lighten2: "#7986cb",
|
|
2731
|
-
lighten1: "#5c6bc0",
|
|
2732
|
-
darken1: "#3949ab",
|
|
2733
|
-
darken2: "#303f9f",
|
|
2734
|
-
darken3: "#283593",
|
|
2735
|
-
darken4: "#1a237e",
|
|
2736
|
-
accent1: "#8c9eff",
|
|
2737
|
-
accent2: "#536dfe",
|
|
2738
|
-
accent3: "#3d5afe",
|
|
2739
|
-
accent4: "#304ffe"
|
|
2740
|
-
});
|
|
2741
|
-
const blue = Object.freeze({
|
|
2742
|
-
base: "#2196f3",
|
|
2743
|
-
lighten5: "#e3f2fd",
|
|
2744
|
-
lighten4: "#bbdefb",
|
|
2745
|
-
lighten3: "#90caf9",
|
|
2746
|
-
lighten2: "#64b5f6",
|
|
2747
|
-
lighten1: "#42a5f5",
|
|
2748
|
-
darken1: "#1e88e5",
|
|
2749
|
-
darken2: "#1976d2",
|
|
2750
|
-
darken3: "#1565c0",
|
|
2751
|
-
darken4: "#0d47a1",
|
|
2752
|
-
accent1: "#82b1ff",
|
|
2753
|
-
accent2: "#448aff",
|
|
2754
|
-
accent3: "#2979ff",
|
|
2755
|
-
accent4: "#2962ff"
|
|
2756
|
-
});
|
|
2757
|
-
const lightBlue = Object.freeze({
|
|
2758
|
-
base: "#03a9f4",
|
|
2759
|
-
lighten5: "#e1f5fe",
|
|
2760
|
-
lighten4: "#b3e5fc",
|
|
2761
|
-
lighten3: "#81d4fa",
|
|
2762
|
-
lighten2: "#4fc3f7",
|
|
2763
|
-
lighten1: "#29b6f6",
|
|
2764
|
-
darken1: "#039be5",
|
|
2765
|
-
darken2: "#0288d1",
|
|
2766
|
-
darken3: "#0277bd",
|
|
2767
|
-
darken4: "#01579b",
|
|
2768
|
-
accent1: "#80d8ff",
|
|
2769
|
-
accent2: "#40c4ff",
|
|
2770
|
-
accent3: "#00b0ff",
|
|
2771
|
-
accent4: "#0091ea"
|
|
2772
|
-
});
|
|
2773
|
-
const cyan = Object.freeze({
|
|
2774
|
-
base: "#00bcd4",
|
|
2775
|
-
lighten5: "#e0f7fa",
|
|
2776
|
-
lighten4: "#b2ebf2",
|
|
2777
|
-
lighten3: "#80deea",
|
|
2778
|
-
lighten2: "#4dd0e1",
|
|
2779
|
-
lighten1: "#26c6da",
|
|
2780
|
-
darken1: "#00acc1",
|
|
2781
|
-
darken2: "#0097a7",
|
|
2782
|
-
darken3: "#00838f",
|
|
2783
|
-
darken4: "#006064",
|
|
2784
|
-
accent1: "#84ffff",
|
|
2785
|
-
accent2: "#18ffff",
|
|
2786
|
-
accent3: "#00e5ff",
|
|
2787
|
-
accent4: "#00b8d4"
|
|
2788
|
-
});
|
|
2789
|
-
const teal = Object.freeze({
|
|
2790
|
-
base: "#009688",
|
|
2791
|
-
lighten5: "#e0f2f1",
|
|
2792
|
-
lighten4: "#b2dfdb",
|
|
2793
|
-
lighten3: "#80cbc4",
|
|
2794
|
-
lighten2: "#4db6ac",
|
|
2795
|
-
lighten1: "#26a69a",
|
|
2796
|
-
darken1: "#00897b",
|
|
2797
|
-
darken2: "#00796b",
|
|
2798
|
-
darken3: "#00695c",
|
|
2799
|
-
darken4: "#004d40",
|
|
2800
|
-
accent1: "#a7ffeb",
|
|
2801
|
-
accent2: "#64ffda",
|
|
2802
|
-
accent3: "#1de9b6",
|
|
2803
|
-
accent4: "#00bfa5"
|
|
2804
|
-
});
|
|
2805
|
-
const green = Object.freeze({
|
|
2806
|
-
base: "#4caf50",
|
|
2807
|
-
lighten5: "#e8f5e9",
|
|
2808
|
-
lighten4: "#c8e6c9",
|
|
2809
|
-
lighten3: "#a5d6a7",
|
|
2810
|
-
lighten2: "#81c784",
|
|
2811
|
-
lighten1: "#66bb6a",
|
|
2812
|
-
darken1: "#43a047",
|
|
2813
|
-
darken2: "#388e3c",
|
|
2814
|
-
darken3: "#2e7d32",
|
|
2815
|
-
darken4: "#1b5e20",
|
|
2816
|
-
accent1: "#b9f6ca",
|
|
2817
|
-
accent2: "#69f0ae",
|
|
2818
|
-
accent3: "#00e676",
|
|
2819
|
-
accent4: "#00c853"
|
|
2820
|
-
});
|
|
2821
|
-
const lightGreen = Object.freeze({
|
|
2822
|
-
base: "#8bc34a",
|
|
2823
|
-
lighten5: "#f1f8e9",
|
|
2824
|
-
lighten4: "#dcedc8",
|
|
2825
|
-
lighten3: "#c5e1a5",
|
|
2826
|
-
lighten2: "#aed581",
|
|
2827
|
-
lighten1: "#9ccc65",
|
|
2828
|
-
darken1: "#7cb342",
|
|
2829
|
-
darken2: "#689f38",
|
|
2830
|
-
darken3: "#558b2f",
|
|
2831
|
-
darken4: "#33691e",
|
|
2832
|
-
accent1: "#ccff90",
|
|
2833
|
-
accent2: "#b2ff59",
|
|
2834
|
-
accent3: "#76ff03",
|
|
2835
|
-
accent4: "#64dd17"
|
|
2836
|
-
});
|
|
2837
|
-
const lime = Object.freeze({
|
|
2838
|
-
base: "#cddc39",
|
|
2839
|
-
lighten5: "#f9fbe7",
|
|
2840
|
-
lighten4: "#f0f4c3",
|
|
2841
|
-
lighten3: "#e6ee9c",
|
|
2842
|
-
lighten2: "#dce775",
|
|
2843
|
-
lighten1: "#d4e157",
|
|
2844
|
-
darken1: "#c0ca33",
|
|
2845
|
-
darken2: "#afb42b",
|
|
2846
|
-
darken3: "#9e9d24",
|
|
2847
|
-
darken4: "#827717",
|
|
2848
|
-
accent1: "#f4ff81",
|
|
2849
|
-
accent2: "#eeff41",
|
|
2850
|
-
accent3: "#c6ff00",
|
|
2851
|
-
accent4: "#aeea00"
|
|
2852
|
-
});
|
|
2853
|
-
const yellow = Object.freeze({
|
|
2854
|
-
base: "#ffeb3b",
|
|
2855
|
-
lighten5: "#fffde7",
|
|
2856
|
-
lighten4: "#fff9c4",
|
|
2857
|
-
lighten3: "#fff59d",
|
|
2858
|
-
lighten2: "#fff176",
|
|
2859
|
-
lighten1: "#ffee58",
|
|
2860
|
-
darken1: "#fdd835",
|
|
2861
|
-
darken2: "#fbc02d",
|
|
2862
|
-
darken3: "#f9a825",
|
|
2863
|
-
darken4: "#f57f17",
|
|
2864
|
-
accent1: "#ffff8d",
|
|
2865
|
-
accent2: "#ffff00",
|
|
2866
|
-
accent3: "#ffea00",
|
|
2867
|
-
accent4: "#ffd600"
|
|
2868
|
-
});
|
|
2869
|
-
const amber = Object.freeze({
|
|
2870
|
-
base: "#ffc107",
|
|
2871
|
-
lighten5: "#fff8e1",
|
|
2872
|
-
lighten4: "#ffecb3",
|
|
2873
|
-
lighten3: "#ffe082",
|
|
2874
|
-
lighten2: "#ffd54f",
|
|
2875
|
-
lighten1: "#ffca28",
|
|
2876
|
-
darken1: "#ffb300",
|
|
2877
|
-
darken2: "#ffa000",
|
|
2878
|
-
darken3: "#ff8f00",
|
|
2879
|
-
darken4: "#ff6f00",
|
|
2880
|
-
accent1: "#ffe57f",
|
|
2881
|
-
accent2: "#ffd740",
|
|
2882
|
-
accent3: "#ffc400",
|
|
2883
|
-
accent4: "#ffab00"
|
|
2884
|
-
});
|
|
2885
|
-
const orange = Object.freeze({
|
|
2886
|
-
base: "#ff9800",
|
|
2887
|
-
lighten5: "#fff3e0",
|
|
2888
|
-
lighten4: "#ffe0b2",
|
|
2889
|
-
lighten3: "#ffcc80",
|
|
2890
|
-
lighten2: "#ffb74d",
|
|
2891
|
-
lighten1: "#ffa726",
|
|
2892
|
-
darken1: "#fb8c00",
|
|
2893
|
-
darken2: "#f57c00",
|
|
2894
|
-
darken3: "#ef6c00",
|
|
2895
|
-
darken4: "#e65100",
|
|
2896
|
-
accent1: "#ffd180",
|
|
2897
|
-
accent2: "#ffab40",
|
|
2898
|
-
accent3: "#ff9100",
|
|
2899
|
-
accent4: "#ff6d00"
|
|
2900
|
-
});
|
|
2901
|
-
const deepOrange = Object.freeze({
|
|
2902
|
-
base: "#ff5722",
|
|
2903
|
-
lighten5: "#fbe9e7",
|
|
2904
|
-
lighten4: "#ffccbc",
|
|
2905
|
-
lighten3: "#ffab91",
|
|
2906
|
-
lighten2: "#ff8a65",
|
|
2907
|
-
lighten1: "#ff7043",
|
|
2908
|
-
darken1: "#f4511e",
|
|
2909
|
-
darken2: "#e64a19",
|
|
2910
|
-
darken3: "#d84315",
|
|
2911
|
-
darken4: "#bf360c",
|
|
2912
|
-
accent1: "#ff9e80",
|
|
2913
|
-
accent2: "#ff6e40",
|
|
2914
|
-
accent3: "#ff3d00",
|
|
2915
|
-
accent4: "#dd2c00"
|
|
2916
|
-
});
|
|
2917
|
-
const brown = Object.freeze({
|
|
2918
|
-
base: "#795548",
|
|
2919
|
-
lighten5: "#efebe9",
|
|
2920
|
-
lighten4: "#d7ccc8",
|
|
2921
|
-
lighten3: "#bcaaa4",
|
|
2922
|
-
lighten2: "#a1887f",
|
|
2923
|
-
lighten1: "#8d6e63",
|
|
2924
|
-
darken1: "#6d4c41",
|
|
2925
|
-
darken2: "#5d4037",
|
|
2926
|
-
darken3: "#4e342e",
|
|
2927
|
-
darken4: "#3e2723"
|
|
2928
|
-
});
|
|
2929
|
-
const blueGrey = Object.freeze({
|
|
2930
|
-
base: "#607d8b",
|
|
2931
|
-
lighten5: "#eceff1",
|
|
2932
|
-
lighten4: "#cfd8dc",
|
|
2933
|
-
lighten3: "#b0bec5",
|
|
2934
|
-
lighten2: "#90a4ae",
|
|
2935
|
-
lighten1: "#78909c",
|
|
2936
|
-
darken1: "#546e7a",
|
|
2937
|
-
darken2: "#455a64",
|
|
2938
|
-
darken3: "#37474f",
|
|
2939
|
-
darken4: "#263238"
|
|
2940
|
-
});
|
|
2941
|
-
const grey = Object.freeze({
|
|
2942
|
-
base: "#9e9e9e",
|
|
2943
|
-
lighten5: "#fafafa",
|
|
2944
|
-
lighten4: "#f5f5f5",
|
|
2945
|
-
lighten3: "#eeeeee",
|
|
2946
|
-
lighten2: "#e0e0e0",
|
|
2947
|
-
lighten1: "#bdbdbd",
|
|
2948
|
-
darken1: "#757575",
|
|
2949
|
-
darken2: "#616161",
|
|
2950
|
-
darken3: "#424242",
|
|
2951
|
-
darken4: "#212121"
|
|
2952
|
-
});
|
|
2953
|
-
const shades = Object.freeze({
|
|
2954
|
-
black: "#000000",
|
|
2955
|
-
white: "#ffffff",
|
|
2956
|
-
transparent: "transparent"
|
|
2957
|
-
});
|
|
2958
|
-
var colors = Object.freeze({
|
|
2959
|
-
red,
|
|
2960
|
-
pink,
|
|
2961
|
-
purple,
|
|
2962
|
-
deepPurple,
|
|
2963
|
-
indigo,
|
|
2964
|
-
blue,
|
|
2965
|
-
lightBlue,
|
|
2966
|
-
cyan,
|
|
2967
|
-
teal,
|
|
2968
|
-
green,
|
|
2969
|
-
lightGreen,
|
|
2970
|
-
lime,
|
|
2971
|
-
yellow,
|
|
2972
|
-
amber,
|
|
2973
|
-
orange,
|
|
2974
|
-
deepOrange,
|
|
2975
|
-
brown,
|
|
2976
|
-
blueGrey,
|
|
2977
|
-
grey,
|
|
2978
|
-
shades
|
|
2979
|
-
});
|
|
2980
|
-
var __defProp = Object.defineProperty;
|
|
2981
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
2982
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
2983
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
2984
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
2985
|
-
if (decorator = decorators[i])
|
|
2986
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2987
|
-
if (kind && result)
|
|
2988
|
-
__defProp(target, key, result);
|
|
2989
|
-
return result;
|
|
2990
|
-
};
|
|
2991
|
-
let VSwatches = class extends Vue$1 {
|
|
2992
|
-
constructor() {
|
|
2993
|
-
super(...arguments);
|
|
2994
|
-
this.checkedVisibilty = false;
|
|
2995
|
-
}
|
|
2996
|
-
onSwatchClick(e) {
|
|
2997
|
-
const value = e.target.value;
|
|
2998
|
-
if (!value || this.selected === value) {
|
|
2999
|
-
return;
|
|
3000
|
-
}
|
|
3001
|
-
this.selected = value;
|
|
3002
|
-
this.$emit("input", value);
|
|
3003
|
-
}
|
|
3004
|
-
};
|
|
3005
|
-
__decorateClass([
|
|
3006
|
-
PropSync("swatches", {
|
|
3007
|
-
type: Array,
|
|
3008
|
-
default: () => [
|
|
3009
|
-
[colors.shades.black, colors.shades.white],
|
|
3010
|
-
[
|
|
3011
|
-
colors.red.base,
|
|
3012
|
-
colors.pink.base,
|
|
3013
|
-
colors.purple.base,
|
|
3014
|
-
colors.deepPurple.base,
|
|
3015
|
-
colors.indigo.base,
|
|
3016
|
-
colors.blue.base,
|
|
3017
|
-
colors.lightBlue.base,
|
|
3018
|
-
colors.cyan.base
|
|
3019
|
-
],
|
|
3020
|
-
[
|
|
3021
|
-
colors.teal.base,
|
|
3022
|
-
colors.green.base,
|
|
3023
|
-
colors.lightGreen.base,
|
|
3024
|
-
colors.lime.base,
|
|
3025
|
-
colors.yellow.base,
|
|
3026
|
-
colors.amber.base,
|
|
3027
|
-
colors.orange.base,
|
|
3028
|
-
colors.deepOrange.base
|
|
3029
|
-
],
|
|
3030
|
-
[colors.brown.base, colors.blueGrey.base, colors.grey.base]
|
|
3031
|
-
]
|
|
3032
|
-
})
|
|
3033
|
-
], VSwatches.prototype, "palette", 2);
|
|
3034
|
-
__decorateClass([
|
|
3035
|
-
PropSync("value", { required: true, type: String })
|
|
3036
|
-
], VSwatches.prototype, "selected", 2);
|
|
3037
|
-
__decorateClass([
|
|
3038
|
-
Prop({ default: "2rem", type: String })
|
|
3039
|
-
], VSwatches.prototype, "size", 2);
|
|
3040
|
-
__decorateClass([
|
|
3041
|
-
Prop({ default: "mdi-checkbox-marked-circle", type: String })
|
|
3042
|
-
], VSwatches.prototype, "icon", 2);
|
|
3043
|
-
__decorateClass([
|
|
3044
|
-
Prop({ default: "1rem", type: String })
|
|
3045
|
-
], VSwatches.prototype, "iconSize", 2);
|
|
3046
|
-
VSwatches = __decorateClass([
|
|
3047
|
-
Component({
|
|
3048
|
-
name: "VSwatches",
|
|
3049
|
-
components: {
|
|
3050
|
-
VSheet: __unplugin_components_0,
|
|
3051
|
-
VBtn: __unplugin_components_1,
|
|
3052
|
-
VIcon: __unplugin_components_2
|
|
3053
|
-
}
|
|
3054
|
-
})
|
|
3055
|
-
], VSwatches);
|
|
3056
|
-
var render = function() {
|
|
3057
|
-
var _vm = this;
|
|
3058
|
-
var _h = _vm.$createElement;
|
|
3059
|
-
var _c = _vm._self._c || _h;
|
|
3060
|
-
return _c(__unplugin_components_0, { staticClass: "v-swatches" }, _vm._l(_vm.palette, function(colors2, rows) {
|
|
3061
|
-
return _c("div", { key: rows }, _vm._l(colors2, function(color) {
|
|
3062
|
-
return _c(__unplugin_components_1, { key: color, attrs: { "elevation": "1", "width": _vm.size, "height": _vm.size, "color": color, "value": color, "min-width": "auto" }, on: { "click": _vm.onSwatchClick } }, [color === _vm.selected ? _c(__unplugin_components_2, { attrs: { "size": _vm.iconSize, "color": color }, domProps: { "textContent": _vm._s(_vm.icon) } }) : _vm._e()], 1);
|
|
3063
|
-
}), 1);
|
|
3064
|
-
}), 0);
|
|
3065
|
-
};
|
|
3066
|
-
var staticRenderFns = [];
|
|
3067
|
-
var VSwatches_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
3068
|
-
function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
3069
|
-
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
3070
|
-
if (render2) {
|
|
3071
|
-
options.render = render2;
|
|
3072
|
-
options.staticRenderFns = staticRenderFns2;
|
|
3073
|
-
options._compiled = true;
|
|
3074
|
-
}
|
|
3075
|
-
if (functionalTemplate) {
|
|
3076
|
-
options.functional = true;
|
|
3077
|
-
}
|
|
3078
|
-
if (scopeId) {
|
|
3079
|
-
options._scopeId = "data-v-" + scopeId;
|
|
3080
|
-
}
|
|
3081
|
-
var hook;
|
|
3082
|
-
if (moduleIdentifier) {
|
|
3083
|
-
hook = function(context) {
|
|
3084
|
-
context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
|
|
3085
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
|
|
3086
|
-
context = __VUE_SSR_CONTEXT__;
|
|
3087
|
-
}
|
|
3088
|
-
if (injectStyles) {
|
|
3089
|
-
injectStyles.call(this, context);
|
|
3090
|
-
}
|
|
3091
|
-
if (context && context._registeredComponents) {
|
|
3092
|
-
context._registeredComponents.add(moduleIdentifier);
|
|
3093
|
-
}
|
|
3094
|
-
};
|
|
3095
|
-
options._ssrRegister = hook;
|
|
3096
|
-
} else if (injectStyles) {
|
|
3097
|
-
hook = shadowMode ? function() {
|
|
3098
|
-
injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
|
|
3099
|
-
} : injectStyles;
|
|
3100
|
-
}
|
|
3101
|
-
if (hook) {
|
|
3102
|
-
if (options.functional) {
|
|
3103
|
-
options._injectStyles = hook;
|
|
3104
|
-
var originalRender = options.render;
|
|
3105
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
3106
|
-
hook.call(context);
|
|
3107
|
-
return originalRender(h, context);
|
|
3108
|
-
};
|
|
3109
|
-
} else {
|
|
3110
|
-
var existing = options.beforeCreate;
|
|
3111
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
3112
|
-
}
|
|
3113
|
-
}
|
|
3114
|
-
return {
|
|
3115
|
-
exports: scriptExports,
|
|
3116
|
-
options
|
|
3117
|
-
};
|
|
3118
|
-
}
|
|
3119
|
-
const __cssModules = {};
|
|
3120
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(VSwatches, render, staticRenderFns, false, __vue2_injectStyles, "63c58912", null, null);
|
|
3121
|
-
function __vue2_injectStyles(context) {
|
|
3122
|
-
for (let o in __cssModules) {
|
|
3123
|
-
this[o] = __cssModules[o];
|
|
3124
|
-
}
|
|
3125
|
-
}
|
|
3126
|
-
var component$1 = /* @__PURE__ */ function() {
|
|
3127
|
-
return __component__.exports;
|
|
3128
|
-
}();
|
|
3129
|
-
var component = /* @__PURE__ */ (() => {
|
|
3130
|
-
const installable = component$1;
|
|
3131
|
-
installable.install = (Vue2) => {
|
|
3132
|
-
Vue2.component("VSwatches", installable);
|
|
3133
|
-
};
|
|
3134
|
-
return installable;
|
|
3135
|
-
})();
|
|
3136
|
-
var namedExports = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3137
|
-
__proto__: null,
|
|
3138
|
-
"default": component
|
|
3139
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
3140
|
-
Object.entries(namedExports).forEach(([exportName, exported]) => {
|
|
3141
|
-
if (exportName !== "default")
|
|
3142
|
-
component[exportName] = exported;
|
|
3143
|
-
});
|
|
3144
|
-
export { component as default };
|