@dynamicforms/vuetify-inputs 0.10.1 → 0.10.2
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.
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var e in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
1
|
+
var Pt = Object.defineProperty, Nt = Object.defineProperties;
|
|
2
|
+
var Et = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var et = Object.getOwnPropertySymbols;
|
|
4
|
+
var Ut = Object.prototype.hasOwnProperty, zt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Oe = (t, n, e) => n in t ? Pt(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, z = (t, n) => {
|
|
6
|
+
for (var e in n || (n = {}))
|
|
7
|
+
Ut.call(n, e) && Oe(t, e, n[e]);
|
|
8
|
+
if (et)
|
|
9
|
+
for (var e of et(n))
|
|
10
|
+
zt.call(n, e) && Oe(t, e, n[e]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var ge = (t,
|
|
15
|
-
var
|
|
12
|
+
}, ee = (t, n) => Nt(t, Et(n));
|
|
13
|
+
var xe = (t, n, e) => Oe(t, typeof n != "symbol" ? n + "" : n, e);
|
|
14
|
+
var ge = (t, n, e) => new Promise((a, r) => {
|
|
15
|
+
var u = (k) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
h(e.next(k));
|
|
18
18
|
} catch (f) {
|
|
19
19
|
r(f);
|
|
20
20
|
}
|
|
21
|
-
}, d = (
|
|
21
|
+
}, d = (k) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
h(e.throw(k));
|
|
24
24
|
} catch (f) {
|
|
25
25
|
r(f);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, h = (k) => k.done ? a(k.value) : Promise.resolve(k.value).then(u, d);
|
|
28
|
+
h((e = e.apply(t, n)).next());
|
|
29
29
|
});
|
|
30
|
-
import { ref as M, isRef as Ce, defineComponent as
|
|
31
|
-
import Ae, { MessagesWidget as
|
|
32
|
-
import { CachedIcon as
|
|
33
|
-
import
|
|
34
|
-
import { isString as he, isEmpty as Me, isPlainObject as
|
|
35
|
-
import { useDisplay as
|
|
36
|
-
import { parse as
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import { Table as
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import { NodeSelection as
|
|
45
|
-
import
|
|
46
|
-
import { useEditor as
|
|
47
|
-
import { BubbleMenu as
|
|
48
|
-
import { Extension as
|
|
49
|
-
import { Slice as
|
|
50
|
-
import
|
|
51
|
-
import { VAutocomplete as
|
|
52
|
-
import { VBtn as
|
|
53
|
-
import { VCheckbox as
|
|
54
|
-
import { VChip as
|
|
55
|
-
import { VCombobox as
|
|
56
|
-
import { VColorPicker as
|
|
57
|
-
import { VConfirmEdit as
|
|
58
|
-
import { VDatePicker as
|
|
59
|
-
import { VField as
|
|
60
|
-
import { VFileInput as
|
|
61
|
-
import { VCol as
|
|
62
|
-
import { VIcon as
|
|
63
|
-
import { VImg as
|
|
64
|
-
import { VInput as
|
|
65
|
-
import { VListItem as
|
|
66
|
-
import { VMenu as
|
|
67
|
-
import { VNumberInput as
|
|
68
|
-
import { VProgressLinear as
|
|
69
|
-
import { VSelect as
|
|
70
|
-
import { VSwitch as
|
|
71
|
-
import { VTextarea as
|
|
72
|
-
import { VTextField as
|
|
73
|
-
import { VTimePicker as
|
|
74
|
-
function
|
|
30
|
+
import { ref as M, isRef as Ce, defineComponent as te, computed as x, openBlock as V, createBlock as F, unref as l, resolveComponent as R, createElementBlock as Z, normalizeClass as ue, Fragment as Se, resolveDynamicComponent as Ue, createCommentVNode as Y, createTextVNode as J, toDisplayString as G, inject as Pe, shallowRef as Ft, toRaw as tt, nextTick as Ke, createSlots as Ge, withCtx as s, createVNode as i, renderSlot as _e, normalizeProps as ye, guardReactiveProps as ke, createElementVNode as oe, onBeforeUnmount as Ye, watch as me, renderList as Xe, mergeProps as X, withModifiers as Te, mergeDefaults as pe, normalizeStyle as st, toRefs as Fe, withKeys as De, useId as Ht, useCssVars as Ot } from "vue";
|
|
31
|
+
import Ae, { MessagesWidget as Wt, MdString as qt, ValidationErrorRenderContent as ut, Action as Kt, DisplayMode as We } from "@dynamicforms/vue-forms";
|
|
32
|
+
import { CachedIcon as B } from "vue-cached-icon";
|
|
33
|
+
import Gt from "vue-markdown-render";
|
|
34
|
+
import { isString as he, isEmpty as Me, isPlainObject as ct, isObjectLike as Xt, isBoolean as Re, clone as Yt, toNumber as nt, isNaN as lt, isArray as at, castArray as dt, first as mt, isEqual as Jt, unionBy as Qt } from "lodash-es";
|
|
35
|
+
import { useDisplay as Zt } from "vuetify";
|
|
36
|
+
import { parse as en, format as je } from "date-fns";
|
|
37
|
+
import tn from "@tiptap/extension-image";
|
|
38
|
+
import nn from "@tiptap/extension-placeholder";
|
|
39
|
+
import { Table as ln } from "@tiptap/extension-table";
|
|
40
|
+
import an from "@tiptap/extension-table-cell";
|
|
41
|
+
import on from "@tiptap/extension-table-header";
|
|
42
|
+
import rn from "@tiptap/extension-table-row";
|
|
43
|
+
import sn from "@tiptap/extension-text-align";
|
|
44
|
+
import { NodeSelection as un } from "@tiptap/pm/state";
|
|
45
|
+
import cn from "@tiptap/starter-kit";
|
|
46
|
+
import { useEditor as dn, EditorContent as mn } from "@tiptap/vue-3";
|
|
47
|
+
import { BubbleMenu as vn } from "@tiptap/vue-3/menus";
|
|
48
|
+
import { Extension as fn, Mark as pn, mergeAttributes as vt, Node as bn } from "@tiptap/core";
|
|
49
|
+
import { Slice as hn, Fragment as gn } from "@tiptap/pm/model";
|
|
50
|
+
import yn from "@tiptap/extension-link";
|
|
51
|
+
import { VAutocomplete as kn } from "vuetify/components/VAutocomplete";
|
|
52
|
+
import { VBtn as wn } from "vuetify/components/VBtn";
|
|
53
|
+
import { VCheckbox as Cn } from "vuetify/components/VCheckbox";
|
|
54
|
+
import { VChip as xn } from "vuetify/components/VChip";
|
|
55
|
+
import { VCombobox as An } from "vuetify/components/VCombobox";
|
|
56
|
+
import { VColorPicker as Tn } from "vuetify/components/VColorPicker";
|
|
57
|
+
import { VConfirmEdit as _n } from "vuetify/components/VConfirmEdit";
|
|
58
|
+
import { VDatePicker as Vn } from "vuetify/components/VDatePicker";
|
|
59
|
+
import { VField as jn } from "vuetify/components/VField";
|
|
60
|
+
import { VFileInput as Bn } from "vuetify/components/VFileInput";
|
|
61
|
+
import { VCol as Ln, VRow as In } from "vuetify/components/VGrid";
|
|
62
|
+
import { VIcon as $n } from "vuetify/components/VIcon";
|
|
63
|
+
import { VImg as Dn } from "vuetify/components/VImg";
|
|
64
|
+
import { VInput as Sn } from "vuetify/components/VInput";
|
|
65
|
+
import { VListItem as Mn } from "vuetify/components/VList";
|
|
66
|
+
import { VMenu as Rn } from "vuetify/components/VMenu";
|
|
67
|
+
import { VNumberInput as Pn } from "vuetify/components/VNumberInput";
|
|
68
|
+
import { VProgressLinear as Nn } from "vuetify/components/VProgressLinear";
|
|
69
|
+
import { VSelect as En } from "vuetify/components/VSelect";
|
|
70
|
+
import { VSwitch as Un } from "vuetify/components/VSwitch";
|
|
71
|
+
import { VTextarea as zn } from "vuetify/components/VTextarea";
|
|
72
|
+
import { VTextField as Fn } from "vuetify/components/VTextField";
|
|
73
|
+
import { VTimePicker as Hn } from "vuetify/components/VTimePicker";
|
|
74
|
+
function On(t) {
|
|
75
75
|
return t.one !== void 0;
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const Wn = {
|
|
78
78
|
lessThanXSeconds: {
|
|
79
79
|
present: {
|
|
80
80
|
one: "manj kot {{count}} sekunda",
|
|
@@ -351,7 +351,7 @@ const Fl = {
|
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
};
|
|
354
|
-
function
|
|
354
|
+
function qn(t) {
|
|
355
355
|
switch (t % 100) {
|
|
356
356
|
case 1:
|
|
357
357
|
return "one";
|
|
@@ -364,53 +364,53 @@ function Hl(t) {
|
|
|
364
364
|
return "other";
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
const
|
|
367
|
+
const Kn = (t, n, e) => {
|
|
368
368
|
let a = "", r = "present";
|
|
369
369
|
e != null && e.addSuffix && (e.comparison && e.comparison > 0 ? (r = "future", a = "čez ") : (r = "past", a = "pred "));
|
|
370
|
-
const
|
|
371
|
-
if (typeof
|
|
372
|
-
a +=
|
|
370
|
+
const u = Wn[t];
|
|
371
|
+
if (typeof u == "string")
|
|
372
|
+
a += u;
|
|
373
373
|
else {
|
|
374
|
-
const d =
|
|
375
|
-
|
|
374
|
+
const d = qn(n);
|
|
375
|
+
On(u) ? a += u[d].replace("{{count}}", String(n)) : a += u[r][d].replace("{{count}}", String(n));
|
|
376
376
|
}
|
|
377
377
|
return a;
|
|
378
378
|
};
|
|
379
379
|
function qe(t) {
|
|
380
|
-
return (
|
|
381
|
-
const e =
|
|
380
|
+
return (n = {}) => {
|
|
381
|
+
const e = n.width ? String(n.width) : t.defaultWidth;
|
|
382
382
|
return t.formats[e] || t.formats[t.defaultWidth];
|
|
383
383
|
};
|
|
384
384
|
}
|
|
385
|
-
const
|
|
385
|
+
const Gn = {
|
|
386
386
|
full: "EEEE, dd. MMMM y",
|
|
387
387
|
long: "dd. MMMM y",
|
|
388
388
|
medium: "d. MMM y",
|
|
389
389
|
short: "d. MM. yy"
|
|
390
|
-
},
|
|
390
|
+
}, Xn = {
|
|
391
391
|
full: "HH:mm:ss zzzz",
|
|
392
392
|
long: "HH:mm:ss z",
|
|
393
393
|
medium: "HH:mm:ss",
|
|
394
394
|
short: "HH:mm"
|
|
395
|
-
},
|
|
395
|
+
}, Yn = {
|
|
396
396
|
full: "{{date}} {{time}}",
|
|
397
397
|
long: "{{date}} {{time}}",
|
|
398
398
|
medium: "{{date}} {{time}}",
|
|
399
399
|
short: "{{date}} {{time}}"
|
|
400
|
-
},
|
|
400
|
+
}, Jn = {
|
|
401
401
|
date: qe({
|
|
402
|
-
formats:
|
|
402
|
+
formats: Gn,
|
|
403
403
|
defaultWidth: "full"
|
|
404
404
|
}),
|
|
405
405
|
time: qe({
|
|
406
|
-
formats:
|
|
406
|
+
formats: Xn,
|
|
407
407
|
defaultWidth: "full"
|
|
408
408
|
}),
|
|
409
409
|
dateTime: qe({
|
|
410
|
-
formats:
|
|
410
|
+
formats: Yn,
|
|
411
411
|
defaultWidth: "full"
|
|
412
412
|
})
|
|
413
|
-
},
|
|
413
|
+
}, Qn = {
|
|
414
414
|
lastWeek: (t) => {
|
|
415
415
|
switch (t.getDay()) {
|
|
416
416
|
case 0:
|
|
@@ -439,34 +439,34 @@ const Wl = {
|
|
|
439
439
|
}
|
|
440
440
|
},
|
|
441
441
|
other: "P"
|
|
442
|
-
},
|
|
443
|
-
const r =
|
|
444
|
-
return typeof r == "function" ? r(
|
|
442
|
+
}, Zn = (t, n, e, a) => {
|
|
443
|
+
const r = Qn[t];
|
|
444
|
+
return typeof r == "function" ? r(n) : r;
|
|
445
445
|
};
|
|
446
446
|
function Be(t) {
|
|
447
|
-
return (
|
|
447
|
+
return (n, e) => {
|
|
448
448
|
const a = e != null && e.context ? String(e.context) : "standalone";
|
|
449
449
|
let r;
|
|
450
450
|
if (a === "formatting" && t.formattingValues) {
|
|
451
|
-
const d = t.defaultFormattingWidth || t.defaultWidth,
|
|
452
|
-
r = t.formattingValues[
|
|
451
|
+
const d = t.defaultFormattingWidth || t.defaultWidth, h = e != null && e.width ? String(e.width) : d;
|
|
452
|
+
r = t.formattingValues[h] || t.formattingValues[d];
|
|
453
453
|
} else {
|
|
454
|
-
const d = t.defaultWidth,
|
|
455
|
-
r = t.values[
|
|
454
|
+
const d = t.defaultWidth, h = e != null && e.width ? String(e.width) : t.defaultWidth;
|
|
455
|
+
r = t.values[h] || t.values[d];
|
|
456
456
|
}
|
|
457
|
-
const
|
|
458
|
-
return r[
|
|
457
|
+
const u = t.argumentCallback ? t.argumentCallback(n) : n;
|
|
458
|
+
return r[u];
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
|
-
const
|
|
461
|
+
const el = {
|
|
462
462
|
narrow: ["pr. n. št.", "po n. št."],
|
|
463
463
|
abbreviated: ["pr. n. št.", "po n. št."],
|
|
464
464
|
wide: ["pred našim štetjem", "po našem štetju"]
|
|
465
|
-
},
|
|
465
|
+
}, tl = {
|
|
466
466
|
narrow: ["1", "2", "3", "4"],
|
|
467
467
|
abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."],
|
|
468
468
|
wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"]
|
|
469
|
-
},
|
|
469
|
+
}, nl = {
|
|
470
470
|
narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
|
471
471
|
abbreviated: [
|
|
472
472
|
"jan.",
|
|
@@ -496,7 +496,7 @@ const Jl = {
|
|
|
496
496
|
"november",
|
|
497
497
|
"december"
|
|
498
498
|
]
|
|
499
|
-
},
|
|
499
|
+
}, ll = {
|
|
500
500
|
narrow: ["n", "p", "t", "s", "č", "p", "s"],
|
|
501
501
|
short: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
|
502
502
|
abbreviated: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
|
@@ -509,7 +509,7 @@ const Jl = {
|
|
|
509
509
|
"petek",
|
|
510
510
|
"sobota"
|
|
511
511
|
]
|
|
512
|
-
},
|
|
512
|
+
}, al = {
|
|
513
513
|
narrow: {
|
|
514
514
|
am: "d",
|
|
515
515
|
pm: "p",
|
|
@@ -540,7 +540,7 @@ const Jl = {
|
|
|
540
540
|
evening: "večer",
|
|
541
541
|
night: "noč"
|
|
542
542
|
}
|
|
543
|
-
},
|
|
543
|
+
}, ol = {
|
|
544
544
|
narrow: {
|
|
545
545
|
am: "d",
|
|
546
546
|
pm: "p",
|
|
@@ -571,88 +571,88 @@ const Jl = {
|
|
|
571
571
|
evening: "zvečer",
|
|
572
572
|
night: "ponoči"
|
|
573
573
|
}
|
|
574
|
-
},
|
|
575
|
-
ordinalNumber:
|
|
574
|
+
}, il = (t, n) => Number(t) + ".", rl = {
|
|
575
|
+
ordinalNumber: il,
|
|
576
576
|
era: Be({
|
|
577
|
-
values:
|
|
577
|
+
values: el,
|
|
578
578
|
defaultWidth: "wide"
|
|
579
579
|
}),
|
|
580
580
|
quarter: Be({
|
|
581
|
-
values:
|
|
581
|
+
values: tl,
|
|
582
582
|
defaultWidth: "wide",
|
|
583
583
|
argumentCallback: (t) => t - 1
|
|
584
584
|
}),
|
|
585
585
|
month: Be({
|
|
586
|
-
values:
|
|
586
|
+
values: nl,
|
|
587
587
|
defaultWidth: "wide"
|
|
588
588
|
}),
|
|
589
589
|
day: Be({
|
|
590
|
-
values:
|
|
590
|
+
values: ll,
|
|
591
591
|
defaultWidth: "wide"
|
|
592
592
|
}),
|
|
593
593
|
dayPeriod: Be({
|
|
594
|
-
values:
|
|
594
|
+
values: al,
|
|
595
595
|
defaultWidth: "wide",
|
|
596
|
-
formattingValues:
|
|
596
|
+
formattingValues: ol,
|
|
597
597
|
defaultFormattingWidth: "wide"
|
|
598
598
|
})
|
|
599
599
|
};
|
|
600
600
|
function Le(t) {
|
|
601
|
-
return (
|
|
602
|
-
const a = e.width, r = a && t.matchPatterns[a] || t.matchPatterns[t.defaultMatchWidth],
|
|
603
|
-
if (!
|
|
601
|
+
return (n, e = {}) => {
|
|
602
|
+
const a = e.width, r = a && t.matchPatterns[a] || t.matchPatterns[t.defaultMatchWidth], u = n.match(r);
|
|
603
|
+
if (!u)
|
|
604
604
|
return null;
|
|
605
|
-
const d =
|
|
605
|
+
const d = u[0], h = a && t.parsePatterns[a] || t.parsePatterns[t.defaultParseWidth], k = Array.isArray(h) ? ul(h, (g) => g.test(d)) : (
|
|
606
606
|
// [TODO] -- I challenge you to fix the type
|
|
607
|
-
|
|
607
|
+
sl(h, (g) => g.test(d))
|
|
608
608
|
);
|
|
609
609
|
let f;
|
|
610
|
-
f = t.valueCallback ? t.valueCallback(
|
|
610
|
+
f = t.valueCallback ? t.valueCallback(k) : k, f = e.valueCallback ? (
|
|
611
611
|
// [TODO] -- I challenge you to fix the type
|
|
612
612
|
e.valueCallback(f)
|
|
613
613
|
) : f;
|
|
614
|
-
const v =
|
|
614
|
+
const v = n.slice(d.length);
|
|
615
615
|
return { value: f, rest: v };
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function sl(t, n) {
|
|
619
619
|
for (const e in t)
|
|
620
|
-
if (Object.prototype.hasOwnProperty.call(t, e) &&
|
|
620
|
+
if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
|
|
621
621
|
return e;
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function ul(t, n) {
|
|
624
624
|
for (let e = 0; e < t.length; e++)
|
|
625
|
-
if (
|
|
625
|
+
if (n(t[e]))
|
|
626
626
|
return e;
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
return (
|
|
630
|
-
const a =
|
|
628
|
+
function cl(t) {
|
|
629
|
+
return (n, e = {}) => {
|
|
630
|
+
const a = n.match(t.matchPattern);
|
|
631
631
|
if (!a) return null;
|
|
632
|
-
const r = a[0],
|
|
633
|
-
if (!
|
|
634
|
-
let d = t.valueCallback ? t.valueCallback(
|
|
632
|
+
const r = a[0], u = n.match(t.parsePattern);
|
|
633
|
+
if (!u) return null;
|
|
634
|
+
let d = t.valueCallback ? t.valueCallback(u[0]) : u[0];
|
|
635
635
|
d = e.valueCallback ? e.valueCallback(d) : d;
|
|
636
|
-
const
|
|
637
|
-
return { value: d, rest:
|
|
636
|
+
const h = n.slice(r.length);
|
|
637
|
+
return { value: d, rest: h };
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
|
-
const
|
|
640
|
+
const dl = /^(\d+)\./i, ml = /\d+/i, vl = {
|
|
641
641
|
abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
|
|
642
642
|
wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
|
|
643
|
-
},
|
|
643
|
+
}, fl = {
|
|
644
644
|
any: [/^pr/i, /^(po|na[sš]em)/i]
|
|
645
|
-
},
|
|
645
|
+
}, pl = {
|
|
646
646
|
narrow: /^[1234]/i,
|
|
647
647
|
abbreviated: /^[1234]\.\s?[čc]et\.?/i,
|
|
648
648
|
wide: /^[1234]\. [čc]etrtletje/i
|
|
649
|
-
},
|
|
649
|
+
}, bl = {
|
|
650
650
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
651
|
-
},
|
|
651
|
+
}, hl = {
|
|
652
652
|
narrow: /^[jfmasond]/i,
|
|
653
653
|
abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,
|
|
654
654
|
wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i
|
|
655
|
-
},
|
|
655
|
+
}, gl = {
|
|
656
656
|
narrow: [
|
|
657
657
|
/^j/i,
|
|
658
658
|
/^f/i,
|
|
@@ -695,18 +695,18 @@ const un = /^(\d+)\./i, cn = /\d+/i, dn = {
|
|
|
695
695
|
/^n/i,
|
|
696
696
|
/^d/i
|
|
697
697
|
]
|
|
698
|
-
},
|
|
698
|
+
}, yl = {
|
|
699
699
|
narrow: /^[nptsčc]/i,
|
|
700
700
|
short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
701
701
|
abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
702
702
|
wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i
|
|
703
|
-
},
|
|
703
|
+
}, kl = {
|
|
704
704
|
narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i],
|
|
705
705
|
any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i]
|
|
706
|
-
},
|
|
706
|
+
}, wl = {
|
|
707
707
|
narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
|
|
708
708
|
any: /^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i
|
|
709
|
-
},
|
|
709
|
+
}, Cl = {
|
|
710
710
|
narrow: {
|
|
711
711
|
am: /^d/i,
|
|
712
712
|
pm: /^p/i,
|
|
@@ -727,60 +727,68 @@ const un = /^(\d+)\./i, cn = /\d+/i, dn = {
|
|
|
727
727
|
evening: /^z?ve/i,
|
|
728
728
|
night: /(po)?no/i
|
|
729
729
|
}
|
|
730
|
-
},
|
|
731
|
-
ordinalNumber:
|
|
732
|
-
matchPattern:
|
|
733
|
-
parsePattern:
|
|
730
|
+
}, xl = {
|
|
731
|
+
ordinalNumber: cl({
|
|
732
|
+
matchPattern: dl,
|
|
733
|
+
parsePattern: ml,
|
|
734
734
|
valueCallback: (t) => parseInt(t, 10)
|
|
735
735
|
}),
|
|
736
736
|
era: Le({
|
|
737
|
-
matchPatterns:
|
|
737
|
+
matchPatterns: vl,
|
|
738
738
|
defaultMatchWidth: "wide",
|
|
739
|
-
parsePatterns:
|
|
739
|
+
parsePatterns: fl,
|
|
740
740
|
defaultParseWidth: "any"
|
|
741
741
|
}),
|
|
742
742
|
quarter: Le({
|
|
743
|
-
matchPatterns:
|
|
743
|
+
matchPatterns: pl,
|
|
744
744
|
defaultMatchWidth: "wide",
|
|
745
|
-
parsePatterns:
|
|
745
|
+
parsePatterns: bl,
|
|
746
746
|
defaultParseWidth: "any",
|
|
747
747
|
valueCallback: (t) => t + 1
|
|
748
748
|
}),
|
|
749
749
|
month: Le({
|
|
750
|
-
matchPatterns:
|
|
750
|
+
matchPatterns: hl,
|
|
751
751
|
defaultMatchWidth: "wide",
|
|
752
|
-
parsePatterns:
|
|
752
|
+
parsePatterns: gl,
|
|
753
753
|
defaultParseWidth: "wide"
|
|
754
754
|
}),
|
|
755
755
|
day: Le({
|
|
756
|
-
matchPatterns:
|
|
756
|
+
matchPatterns: yl,
|
|
757
757
|
defaultMatchWidth: "wide",
|
|
758
|
-
parsePatterns:
|
|
758
|
+
parsePatterns: kl,
|
|
759
759
|
defaultParseWidth: "any"
|
|
760
760
|
}),
|
|
761
761
|
dayPeriod: Le({
|
|
762
|
-
matchPatterns:
|
|
762
|
+
matchPatterns: wl,
|
|
763
763
|
defaultMatchWidth: "any",
|
|
764
|
-
parsePatterns:
|
|
764
|
+
parsePatterns: Cl,
|
|
765
765
|
defaultParseWidth: "any"
|
|
766
766
|
})
|
|
767
|
-
},
|
|
767
|
+
}, Al = {
|
|
768
768
|
code: "sl",
|
|
769
|
-
formatDistance:
|
|
770
|
-
formatLong:
|
|
771
|
-
formatRelative:
|
|
772
|
-
localize:
|
|
773
|
-
match:
|
|
769
|
+
formatDistance: Kn,
|
|
770
|
+
formatLong: Jn,
|
|
771
|
+
formatRelative: Zn,
|
|
772
|
+
localize: rl,
|
|
773
|
+
match: xl,
|
|
774
774
|
options: {
|
|
775
775
|
weekStartsOn: 1,
|
|
776
776
|
firstWeekContainsDate: 1
|
|
777
777
|
}
|
|
778
|
-
},
|
|
779
|
-
dateTimeLocale: M(
|
|
778
|
+
}, Tl = {
|
|
779
|
+
dateTimeLocale: M(Al),
|
|
780
780
|
setDateTimeLocale(t) {
|
|
781
781
|
Ce(t) ? this.dateTimeLocale = t : this.dateTimeLocale.value = t;
|
|
782
782
|
}
|
|
783
|
-
}
|
|
783
|
+
};
|
|
784
|
+
class _l extends Error {
|
|
785
|
+
constructor(e) {
|
|
786
|
+
super(e);
|
|
787
|
+
xe(this, "errorText");
|
|
788
|
+
this.errorText = e;
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
const ve = /* @__PURE__ */ te({
|
|
784
792
|
__name: "df-input-hint",
|
|
785
793
|
props: {
|
|
786
794
|
errors: { default: "" },
|
|
@@ -789,13 +797,13 @@ const un = /^(\d+)\./i, cn = /\d+/i, dn = {
|
|
|
789
797
|
messageClasses: { default: "" }
|
|
790
798
|
},
|
|
791
799
|
setup(t) {
|
|
792
|
-
const
|
|
793
|
-
return (
|
|
800
|
+
const n = t, e = x(() => n.errors ? typeof n.errors == "string" ? n.errors.trim().length > 0 : n.errors.length > 0 : !1), a = x(() => e.value ? n.errors : n.message), r = x(() => e.value ? n.errorClasses : n.messageClasses);
|
|
801
|
+
return (u, d) => (V(), F(l(Wt), {
|
|
794
802
|
message: a.value,
|
|
795
803
|
classes: r.value
|
|
796
804
|
}, null, 8, ["message", "classes"]));
|
|
797
805
|
}
|
|
798
|
-
}), fe = /* @__PURE__ */
|
|
806
|
+
}), fe = /* @__PURE__ */ te({
|
|
799
807
|
__name: "df-label",
|
|
800
808
|
props: {
|
|
801
809
|
data: {},
|
|
@@ -803,146 +811,146 @@ const un = /^(\d+)\./i, cn = /\d+/i, dn = {
|
|
|
803
811
|
allowWrap: { type: Boolean }
|
|
804
812
|
},
|
|
805
813
|
setup(t) {
|
|
806
|
-
const
|
|
814
|
+
const n = t, e = x(() => n.data ? n.data.label : n.label.text);
|
|
807
815
|
return (a, r) => {
|
|
808
|
-
const
|
|
809
|
-
return
|
|
816
|
+
const u = R("v-img");
|
|
817
|
+
return V(), Z("div", {
|
|
810
818
|
class: ue(["df-label", { "allow-wrap": t.allowWrap }])
|
|
811
819
|
}, [
|
|
812
|
-
t.label.icon ? (
|
|
813
|
-
t.label.iconComponent === "v-icon" ? (
|
|
820
|
+
t.label.icon ? (V(), Z(Se, { key: 0 }, [
|
|
821
|
+
t.label.iconComponent === "v-icon" ? (V(), F(l(B), {
|
|
814
822
|
key: 0,
|
|
815
823
|
name: t.label.icon,
|
|
816
824
|
size: "1.25em"
|
|
817
|
-
}, null, 8, ["name"])) : t.label.iconComponent === "v-img" ? (
|
|
825
|
+
}, null, 8, ["name"])) : t.label.iconComponent === "v-img" ? (V(), F(u, {
|
|
818
826
|
key: 1,
|
|
819
827
|
class: "icon",
|
|
820
828
|
src: t.label.icon
|
|
821
|
-
}, null, 8, ["src"])) : (
|
|
829
|
+
}, null, 8, ["src"])) : (V(), F(Ue(t.label.iconComponent), {
|
|
822
830
|
key: 2,
|
|
823
831
|
src: t.label.icon
|
|
824
832
|
}, null, 8, ["src"]))
|
|
825
|
-
], 64)) :
|
|
826
|
-
e.value instanceof
|
|
833
|
+
], 64)) : Y("", !0),
|
|
834
|
+
e.value instanceof l(qt) ? (V(), F(l(Gt), {
|
|
827
835
|
key: 1,
|
|
828
836
|
class: "markdown",
|
|
829
837
|
source: e.value.toString(),
|
|
830
838
|
options: e.value.options,
|
|
831
839
|
plugins: e.value.plugins
|
|
832
|
-
}, null, 8, ["source", "options", "plugins"])) : (
|
|
833
|
-
|
|
840
|
+
}, null, 8, ["source", "options", "plugins"])) : (V(), Z(Se, { key: 2 }, [
|
|
841
|
+
J(G(e.value), 1)
|
|
834
842
|
], 64))
|
|
835
843
|
], 2);
|
|
836
844
|
};
|
|
837
845
|
}
|
|
838
|
-
}),
|
|
839
|
-
class
|
|
840
|
-
constructor(
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
this.text =
|
|
846
|
+
}), Je = /* @__PURE__ */ Symbol("vuetifyInputsSettingsKey");
|
|
847
|
+
class Vl {
|
|
848
|
+
constructor(n, e, a = "v-icon") {
|
|
849
|
+
xe(this, "text");
|
|
850
|
+
xe(this, "icon");
|
|
851
|
+
xe(this, "iconComponent");
|
|
852
|
+
this.text = n, this.icon = e, this.iconComponent = a;
|
|
845
853
|
}
|
|
846
854
|
}
|
|
847
855
|
const be = { enabled: void 0, clearable: !0 };
|
|
848
|
-
function ce(t,
|
|
849
|
-
const e =
|
|
856
|
+
function ce(t, n) {
|
|
857
|
+
const e = Pe(Je, {}), a = Pe("field-density", null), r = Pe("field-variant", null), u = M(null), d = Ft(null), h = x({
|
|
850
858
|
get() {
|
|
851
|
-
return d.value ? d.value.value : t.control ? t.control.value : t.modelValue === void 0 ?
|
|
859
|
+
return d.value ? d.value.value : t.control ? t.control.value : t.modelValue === void 0 ? u.value : t.modelValue;
|
|
852
860
|
},
|
|
853
861
|
set(m) {
|
|
854
862
|
try {
|
|
855
863
|
t.control && (t.control.value = m);
|
|
856
864
|
} finally {
|
|
857
|
-
t.control && !Object.is(
|
|
865
|
+
t.control && !Object.is(tt(t.control.value), tt(m)) && (d.value = { value: m }, Ke(() => {
|
|
858
866
|
d.value = null;
|
|
859
867
|
}));
|
|
860
868
|
}
|
|
861
|
-
t.modelValue === void 0 && (
|
|
869
|
+
t.modelValue === void 0 && (u.value = m), n("update:modelValue", t.control ? t.control.value : m);
|
|
862
870
|
}
|
|
863
871
|
});
|
|
864
872
|
if (t.control && !(t.control instanceof Ae.FieldBase))
|
|
865
873
|
throw new Error("control prop is not a vue-form control instance");
|
|
866
|
-
const
|
|
874
|
+
const k = x({
|
|
867
875
|
get() {
|
|
868
876
|
return t.control.touched;
|
|
869
877
|
},
|
|
870
878
|
set(m) {
|
|
871
879
|
t.control.touched = m;
|
|
872
880
|
}
|
|
873
|
-
}), f = t.control ?
|
|
874
|
-
() => t.control ? t.control.errors : (t.errors || []).map((m) => new
|
|
875
|
-
),
|
|
876
|
-
"d-none":
|
|
877
|
-
invisible:
|
|
878
|
-
})),
|
|
881
|
+
}), f = t.control ? k : M(!1), v = x(() => t.control ? t.control.valid : !0), g = x(
|
|
882
|
+
() => t.control ? t.control.errors : (t.errors || []).map((m) => new ut(m))
|
|
883
|
+
), T = x(() => f.value && g.value.length > 0 ? " " : void 0), $ = x(() => f.value ? g.value : void 0), C = x(() => t.control ? t.control.effectiveEnabled : t.enabled !== !1), j = x(() => t.control ? t.control.visibility : t.visibility == null ? Ae.DisplayMode.FULL : Ae.DisplayMode.fromAny(t.visibility)), P = x(() => j.value !== Ae.DisplayMode.SUPPRESS), D = x(() => ({
|
|
884
|
+
"d-none": j.value === Ae.DisplayMode.HIDDEN,
|
|
885
|
+
invisible: j.value === Ae.DisplayMode.INVISIBLE
|
|
886
|
+
})), b = x(() => {
|
|
879
887
|
var m, _;
|
|
880
888
|
return (_ = (m = t.control) == null ? void 0 : m.extra) != null ? _ : {};
|
|
881
|
-
}), S =
|
|
889
|
+
}), S = x(() => {
|
|
882
890
|
var _;
|
|
883
|
-
const m = (_ = t.label) != null ? _ :
|
|
884
|
-
return he(m || "") ? new
|
|
885
|
-
}),
|
|
891
|
+
const m = (_ = t.label) != null ? _ : b.value.label;
|
|
892
|
+
return he(m || "") ? new Vl(m || "") : m;
|
|
893
|
+
}), H = x(() => {
|
|
886
894
|
var m, _;
|
|
887
|
-
return (_ = (m = t.placeholder) != null ? m :
|
|
888
|
-
}),
|
|
895
|
+
return (_ = (m = t.placeholder) != null ? m : b.value.placeholder) != null ? _ : "";
|
|
896
|
+
}), K = x(() => {
|
|
889
897
|
var m, _;
|
|
890
|
-
return (_ = (m = t.helpText) != null ? m :
|
|
891
|
-
}),
|
|
898
|
+
return (_ = (m = t.helpText) != null ? m : b.value.helpText) != null ? _ : "";
|
|
899
|
+
}), W = x(() => {
|
|
892
900
|
var m, _;
|
|
893
|
-
return (_ = (m = t.hint) != null ? m :
|
|
894
|
-
}),
|
|
901
|
+
return (_ = (m = t.hint) != null ? m : b.value.hint) != null ? _ : "";
|
|
902
|
+
}), L = x(() => {
|
|
895
903
|
var m, _;
|
|
896
|
-
return (_ = (m = t.cssClass) != null ? m :
|
|
897
|
-
}),
|
|
904
|
+
return (_ = (m = t.cssClass) != null ? m : b.value.cssClass) != null ? _ : "";
|
|
905
|
+
}), w = x(
|
|
898
906
|
() => {
|
|
899
|
-
var m, _,
|
|
900
|
-
return (
|
|
907
|
+
var m, _, N, O;
|
|
908
|
+
return (O = (N = (_ = (m = t.density) != null ? m : b.value.density) != null ? _ : a) != null ? N : e.defaultDensity) != null ? O : "default";
|
|
901
909
|
}
|
|
902
|
-
), o =
|
|
910
|
+
), o = x(() => w.value === "inline" ? "default" : w.value), c = x(
|
|
903
911
|
() => {
|
|
904
|
-
var m, _,
|
|
905
|
-
return (
|
|
912
|
+
var m, _, N, O;
|
|
913
|
+
return (O = (N = (_ = (m = t.variant) != null ? m : b.value.variant) != null ? _ : r) != null ? N : e.defaultVariant) != null ? O : "underlined";
|
|
906
914
|
}
|
|
907
915
|
);
|
|
908
916
|
return {
|
|
909
|
-
value:
|
|
917
|
+
value: h,
|
|
910
918
|
valid: v,
|
|
911
|
-
enabled:
|
|
912
|
-
errors:
|
|
913
|
-
showErrors:
|
|
914
|
-
visibility:
|
|
915
|
-
isRendered:
|
|
916
|
-
visibilityClass:
|
|
919
|
+
enabled: C,
|
|
920
|
+
errors: g,
|
|
921
|
+
showErrors: $,
|
|
922
|
+
visibility: j,
|
|
923
|
+
isRendered: P,
|
|
924
|
+
visibilityClass: D,
|
|
917
925
|
label: S,
|
|
918
926
|
touched: f,
|
|
919
|
-
density:
|
|
920
|
-
densityClass:
|
|
921
|
-
vuetifyBindings:
|
|
927
|
+
density: w,
|
|
928
|
+
densityClass: x(() => `df-density-${w.value}`),
|
|
929
|
+
vuetifyBindings: x(() => {
|
|
922
930
|
var m;
|
|
923
|
-
return
|
|
931
|
+
return z({
|
|
924
932
|
name: (m = t.control) == null ? void 0 : m.fieldName,
|
|
925
|
-
class:
|
|
933
|
+
class: L.value,
|
|
926
934
|
density: o.value,
|
|
927
|
-
variant:
|
|
935
|
+
variant: c.value,
|
|
928
936
|
label: S.value.text,
|
|
929
|
-
errorMessages:
|
|
937
|
+
errorMessages: T.value,
|
|
930
938
|
// 'error-count': errors?.value.length || 0,
|
|
931
|
-
readonly: !
|
|
932
|
-
disabled: !
|
|
933
|
-
placeholder:
|
|
934
|
-
"persistent-placeholder": !Me(
|
|
935
|
-
hint:
|
|
939
|
+
readonly: !C.value,
|
|
940
|
+
disabled: !C.value,
|
|
941
|
+
placeholder: H.value,
|
|
942
|
+
"persistent-placeholder": !Me(H.value),
|
|
943
|
+
hint: W.value,
|
|
936
944
|
persistentHint: !0,
|
|
937
945
|
// we want persistent hint always
|
|
938
946
|
hideDetails: "auto",
|
|
939
947
|
// we want to hide the hint element when hint isn't there
|
|
940
|
-
helpText:
|
|
948
|
+
helpText: K.value
|
|
941
949
|
}, t.passthroughAttrs || {});
|
|
942
950
|
})
|
|
943
951
|
};
|
|
944
952
|
}
|
|
945
|
-
const
|
|
953
|
+
const jl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @__PURE__ */ te({
|
|
946
954
|
__name: "input-base",
|
|
947
955
|
props: {
|
|
948
956
|
control: {},
|
|
@@ -962,63 +970,63 @@ const _n = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Fe = /* @_
|
|
|
962
970
|
loading: { type: Boolean }
|
|
963
971
|
},
|
|
964
972
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
965
|
-
setup(t, { emit:
|
|
966
|
-
const e = t, a =
|
|
967
|
-
function
|
|
968
|
-
|
|
969
|
-
}
|
|
970
|
-
return (
|
|
971
|
-
const
|
|
972
|
-
return
|
|
973
|
+
setup(t, { emit: n }) {
|
|
974
|
+
const e = t, a = n, { isRendered: r, label: u, showErrors: d, touched: h, value: k, visibilityClass: f, vuetifyBindings: v } = ce(e, a), g = x(() => !!(l(e.clearable) && l(k))), T = M(!1);
|
|
975
|
+
function $(C) {
|
|
976
|
+
T.value = C, C || (h.value = !0, a("blur"));
|
|
977
|
+
}
|
|
978
|
+
return (C, j) => {
|
|
979
|
+
const P = R("v-field"), D = R("v-input");
|
|
980
|
+
return l(r) ? (V(), F(D, {
|
|
973
981
|
key: 0,
|
|
974
|
-
name:
|
|
975
|
-
density:
|
|
976
|
-
hint:
|
|
977
|
-
"persistent-hint":
|
|
978
|
-
"hide-details":
|
|
979
|
-
"error-messages":
|
|
980
|
-
class: ue([t.cssClass,
|
|
981
|
-
},
|
|
982
|
-
message: s(({ message:
|
|
982
|
+
name: l(v).name,
|
|
983
|
+
density: l(v).density,
|
|
984
|
+
hint: l(v).hint,
|
|
985
|
+
"persistent-hint": l(v).persistentHint,
|
|
986
|
+
"hide-details": l(v).hideDetails,
|
|
987
|
+
"error-messages": l(v).errorMessages,
|
|
988
|
+
class: ue([t.cssClass, l(f)])
|
|
989
|
+
}, Ge({
|
|
990
|
+
message: s(({ message: b }) => [
|
|
983
991
|
i(ve, {
|
|
984
|
-
message:
|
|
985
|
-
errors:
|
|
992
|
+
message: b,
|
|
993
|
+
errors: l(d)
|
|
986
994
|
}, null, 8, ["message", "errors"])
|
|
987
995
|
]),
|
|
988
996
|
default: s(() => [
|
|
989
|
-
i(
|
|
990
|
-
variant:
|
|
991
|
-
density:
|
|
992
|
-
label:
|
|
993
|
-
disabled:
|
|
994
|
-
clearable:
|
|
997
|
+
i(P, {
|
|
998
|
+
variant: l(v).variant,
|
|
999
|
+
density: l(v).density,
|
|
1000
|
+
label: l(v).label,
|
|
1001
|
+
disabled: l(v).disabled,
|
|
1002
|
+
clearable: g.value,
|
|
995
1003
|
"persistent-clear": !0,
|
|
996
|
-
dirty: !!
|
|
997
|
-
active:
|
|
1004
|
+
dirty: !!l(k) || !!l(v).placeholder,
|
|
1005
|
+
active: T.value,
|
|
998
1006
|
loading: t.loading,
|
|
999
|
-
"onClick:clear":
|
|
1000
|
-
"onUpdate:focused":
|
|
1001
|
-
},
|
|
1002
|
-
label: s((
|
|
1007
|
+
"onClick:clear": j[0] || (j[0] = (b) => a("click:clear")),
|
|
1008
|
+
"onUpdate:focused": j[1] || (j[1] = (b) => $(b))
|
|
1009
|
+
}, Ge({
|
|
1010
|
+
label: s((b) => [
|
|
1003
1011
|
i(fe, {
|
|
1004
|
-
data:
|
|
1005
|
-
label:
|
|
1012
|
+
data: b,
|
|
1013
|
+
label: l(u)
|
|
1006
1014
|
}, null, 8, ["data", "label"])
|
|
1007
1015
|
]),
|
|
1008
|
-
default: s((
|
|
1009
|
-
|
|
1010
|
-
_e(
|
|
1016
|
+
default: s((b) => [
|
|
1017
|
+
oe("div", jl, [
|
|
1018
|
+
_e(C.$slots, "default", ye(ke(b)))
|
|
1011
1019
|
])
|
|
1012
1020
|
]),
|
|
1013
|
-
loader: s((
|
|
1014
|
-
_e(
|
|
1021
|
+
loader: s((b) => [
|
|
1022
|
+
_e(C.$slots, "loader", ye(ke(b)))
|
|
1015
1023
|
]),
|
|
1016
1024
|
_: 2
|
|
1017
1025
|
}, [
|
|
1018
|
-
|
|
1026
|
+
C.$slots["prepend-inner"] ? {
|
|
1019
1027
|
name: "prepend-inner",
|
|
1020
|
-
fn: s((
|
|
1021
|
-
_e(
|
|
1028
|
+
fn: s((b) => [
|
|
1029
|
+
_e(C.$slots, "prepend-inner", ye(ke(b)))
|
|
1022
1030
|
]),
|
|
1023
1031
|
key: "0"
|
|
1024
1032
|
} : void 0
|
|
@@ -1026,14 +1034,14 @@ const _n = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Fe = /* @_
|
|
|
1026
1034
|
]),
|
|
1027
1035
|
_: 2
|
|
1028
1036
|
}, [
|
|
1029
|
-
|
|
1037
|
+
C.$slots.prepend ? {
|
|
1030
1038
|
name: "prepend",
|
|
1031
|
-
fn: s((
|
|
1032
|
-
_e(
|
|
1039
|
+
fn: s((b) => [
|
|
1040
|
+
_e(C.$slots, "prepend", ye(ke(b)))
|
|
1033
1041
|
]),
|
|
1034
1042
|
key: "0"
|
|
1035
1043
|
} : void 0
|
|
1036
|
-
]), 1032, ["name", "density", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) :
|
|
1044
|
+
]), 1032, ["name", "density", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : Y("", !0);
|
|
1037
1045
|
};
|
|
1038
1046
|
}
|
|
1039
1047
|
}), we = {
|
|
@@ -1097,70 +1105,70 @@ const _n = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Fe = /* @_
|
|
|
1097
1105
|
MediaEmbedUrl: "Video URL",
|
|
1098
1106
|
MediaEmbedInsert: "Insert"
|
|
1099
1107
|
};
|
|
1100
|
-
function
|
|
1101
|
-
Object.keys(we).forEach((
|
|
1102
|
-
const e = t(
|
|
1103
|
-
e != null && (we[
|
|
1108
|
+
function io(t) {
|
|
1109
|
+
Object.keys(we).forEach((n) => {
|
|
1110
|
+
const e = t(n);
|
|
1111
|
+
e != null && (we[n] = e);
|
|
1104
1112
|
});
|
|
1105
1113
|
}
|
|
1106
1114
|
var se = /* @__PURE__ */ ((t) => (t[t.BUTTON = 0] = "BUTTON", t[t.TEXT = 1] = "TEXT", t))(se || {});
|
|
1107
|
-
const
|
|
1115
|
+
const ot = 0;
|
|
1108
1116
|
((t) => {
|
|
1109
|
-
function
|
|
1110
|
-
return r.toUpperCase() === "BUTTON" ? 0 : r.toUpperCase() === "TEXT" ? 1 :
|
|
1117
|
+
function n(r) {
|
|
1118
|
+
return r.toUpperCase() === "BUTTON" ? 0 : r.toUpperCase() === "TEXT" ? 1 : ot;
|
|
1111
1119
|
}
|
|
1112
|
-
t.fromString =
|
|
1120
|
+
t.fromString = n;
|
|
1113
1121
|
function e(r) {
|
|
1114
|
-
const
|
|
1115
|
-
return Object.values(t).includes(
|
|
1122
|
+
const u = typeof r == "number" ? r : t.fromString(r);
|
|
1123
|
+
return Object.values(t).includes(u) ? u : ot;
|
|
1116
1124
|
}
|
|
1117
1125
|
t.fromAny = e;
|
|
1118
1126
|
function a(r) {
|
|
1119
|
-
const
|
|
1120
|
-
return Object.values(t).includes(
|
|
1127
|
+
const u = typeof r == "number" ? r : t.fromString(r);
|
|
1128
|
+
return Object.values(t).includes(u);
|
|
1121
1129
|
}
|
|
1122
1130
|
t.isDefined = a;
|
|
1123
1131
|
})(se || (se = {}));
|
|
1124
1132
|
Object.freeze(se);
|
|
1125
|
-
const
|
|
1126
|
-
class
|
|
1127
|
-
constructor(
|
|
1128
|
-
|
|
1129
|
-
this._value = this.cleanBreakpoint(
|
|
1130
|
-
const a = this.cleanBreakpoint(
|
|
1133
|
+
const it = ["xs", "sm", "md", "lg", "xl"];
|
|
1134
|
+
class Bl {
|
|
1135
|
+
constructor(n) {
|
|
1136
|
+
xe(this, "_value");
|
|
1137
|
+
this._value = this.cleanBreakpoint(n, !0), n && it.forEach((e) => {
|
|
1138
|
+
const a = this.cleanBreakpoint(n[e]);
|
|
1131
1139
|
a && (this._value[e] = a);
|
|
1132
1140
|
});
|
|
1133
1141
|
}
|
|
1134
|
-
getOptionsForBreakpoint(
|
|
1142
|
+
getOptionsForBreakpoint(n) {
|
|
1135
1143
|
var a, r;
|
|
1136
1144
|
const e = (a = this.cleanBreakpoint(this._value)) != null ? a : {};
|
|
1137
|
-
for (const
|
|
1138
|
-
const d = (r = this._value[
|
|
1139
|
-
for (const
|
|
1140
|
-
const
|
|
1141
|
-
|
|
1145
|
+
for (const u of it) {
|
|
1146
|
+
const d = (r = this._value[u]) != null ? r : {};
|
|
1147
|
+
for (const h of Object.keys(d)) {
|
|
1148
|
+
const k = d[h];
|
|
1149
|
+
k != null && (ct(k) ? e[h] = z(z({}, e[h]), k) : e[h] = k);
|
|
1142
1150
|
}
|
|
1143
|
-
if (
|
|
1151
|
+
if (u === n) break;
|
|
1144
1152
|
}
|
|
1145
1153
|
return e;
|
|
1146
1154
|
}
|
|
1147
1155
|
}
|
|
1148
|
-
function
|
|
1156
|
+
function Ll(t) {
|
|
1149
1157
|
return t.xlAndUp.value ? "xl" : t.lgAndUp.value ? "lg" : t.mdAndUp.value ? "md" : t.smAndUp.value ? "sm" : "xs";
|
|
1150
1158
|
}
|
|
1151
|
-
function
|
|
1152
|
-
const t =
|
|
1153
|
-
return
|
|
1159
|
+
function Il() {
|
|
1160
|
+
const t = Zt();
|
|
1161
|
+
return x(() => Ll(t));
|
|
1154
1162
|
}
|
|
1155
|
-
class
|
|
1156
|
-
cleanBreakpoint(
|
|
1157
|
-
if ((!
|
|
1163
|
+
class $l extends Bl {
|
|
1164
|
+
cleanBreakpoint(n, e = !1) {
|
|
1165
|
+
if ((!n || !Xt(n)) && !e) return null;
|
|
1158
1166
|
const a = {};
|
|
1159
|
-
return e && (a.renderAs = se.BUTTON, a.showLabel = !0, a.showIcon = !0),
|
|
1167
|
+
return e && (a.renderAs = se.BUTTON, a.showLabel = !0, a.showIcon = !0), n && (n.renderAs != null && (a.renderAs = se.fromAny(n.renderAs)), he(n.label) && (a.label = n.label), he(n.icon) && (a.icon = n.icon), Re(n.showLabel) && (a.showLabel = n.showLabel), Re(n.showIcon) && (a.showIcon = n.showIcon), he(n.name) && (a.name = n.name), Re(n.defaultConfirm) && (a.defaultConfirm = n.defaultConfirm), Re(n.defaultReject) && (a.defaultReject = n.defaultReject), ct(n.passthroughAttrs) && (a.passthroughAttrs = z({}, n.passthroughAttrs))), Object.keys(a).length ? a : null;
|
|
1160
1168
|
}
|
|
1161
1169
|
}
|
|
1162
|
-
function
|
|
1163
|
-
const a = new
|
|
1170
|
+
function ft(t, n) {
|
|
1171
|
+
const a = new $l(t).getOptionsForBreakpoint(n);
|
|
1164
1172
|
return {
|
|
1165
1173
|
name: a.name,
|
|
1166
1174
|
label: a.showLabel ? a.label : void 0,
|
|
@@ -1173,10 +1181,10 @@ function vt(t, l) {
|
|
|
1173
1181
|
passthroughAttrs: a.passthroughAttrs
|
|
1174
1182
|
};
|
|
1175
1183
|
}
|
|
1176
|
-
class
|
|
1184
|
+
class Ne extends Kt {
|
|
1177
1185
|
/** @see getRenderOptionsForBreakpoint, which answers the same for the value of any `Action` */
|
|
1178
|
-
getBreakpointValue(
|
|
1179
|
-
return
|
|
1186
|
+
getBreakpointValue(n) {
|
|
1187
|
+
return x(() => ft(this.value, n.value));
|
|
1180
1188
|
}
|
|
1181
1189
|
/** @see ActionRenderOptions.name */
|
|
1182
1190
|
get name() {
|
|
@@ -1220,9 +1228,9 @@ class Pe extends Wt {
|
|
|
1220
1228
|
get passthroughAttrs() {
|
|
1221
1229
|
return this.value.passthroughAttrs;
|
|
1222
1230
|
}
|
|
1223
|
-
static closeAction(
|
|
1231
|
+
static closeAction(n) {
|
|
1224
1232
|
var a;
|
|
1225
|
-
const e =
|
|
1233
|
+
const e = ee(z({}, n != null ? n : {}), {
|
|
1226
1234
|
// any properties in data should overwrite properties in the constant
|
|
1227
1235
|
value: {
|
|
1228
1236
|
name: "close",
|
|
@@ -1233,11 +1241,11 @@ class Pe extends Wt {
|
|
|
1233
1241
|
showIcon: !0
|
|
1234
1242
|
}
|
|
1235
1243
|
});
|
|
1236
|
-
return e.value =
|
|
1244
|
+
return e.value = z(z({}, e.value), (a = n == null ? void 0 : n.value) != null ? a : {}), new Ne(e);
|
|
1237
1245
|
}
|
|
1238
|
-
static yesAction(
|
|
1246
|
+
static yesAction(n) {
|
|
1239
1247
|
var a;
|
|
1240
|
-
const e =
|
|
1248
|
+
const e = ee(z({}, n != null ? n : {}), {
|
|
1241
1249
|
// any properties in data should overwrite properties in the constant
|
|
1242
1250
|
value: {
|
|
1243
1251
|
name: "yes",
|
|
@@ -1248,11 +1256,11 @@ class Pe extends Wt {
|
|
|
1248
1256
|
showIcon: !0
|
|
1249
1257
|
}
|
|
1250
1258
|
});
|
|
1251
|
-
return e.value =
|
|
1259
|
+
return e.value = z(z({}, e.value), (a = n == null ? void 0 : n.value) != null ? a : {}), new Ne(e);
|
|
1252
1260
|
}
|
|
1253
|
-
static noAction(
|
|
1261
|
+
static noAction(n) {
|
|
1254
1262
|
var a;
|
|
1255
|
-
const e =
|
|
1263
|
+
const e = ee(z({}, n != null ? n : {}), {
|
|
1256
1264
|
// any properties in data should overwrite properties in the constant
|
|
1257
1265
|
value: {
|
|
1258
1266
|
name: "no",
|
|
@@ -1263,13 +1271,33 @@ class Pe extends Wt {
|
|
|
1263
1271
|
showIcon: !0
|
|
1264
1272
|
}
|
|
1265
1273
|
});
|
|
1266
|
-
return e.value =
|
|
1274
|
+
return e.value = z(z({}, e.value), (a = n == null ? void 0 : n.value) != null ? a : {}), new Ne(e);
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
function pt(t, n, e, a) {
|
|
1278
|
+
const r = Pe(Je, {}), u = M(null);
|
|
1279
|
+
function d() {
|
|
1280
|
+
u.value && window.clearInterval(u.value);
|
|
1281
|
+
}
|
|
1282
|
+
function h() {
|
|
1283
|
+
var f, v;
|
|
1284
|
+
d();
|
|
1285
|
+
const k = (v = (f = e()) != null ? f : r.defaultTouchInterval) != null ? v : 6e4;
|
|
1286
|
+
u.value = window.setInterval(() => {
|
|
1287
|
+
t.value && n().touch(t.value).catch((g) => {
|
|
1288
|
+
g instanceof _l && a(g.errorText);
|
|
1289
|
+
});
|
|
1290
|
+
}, k);
|
|
1267
1291
|
}
|
|
1292
|
+
return Ye(() => d()), me(t, (k) => k ? h() : d()), { setupTouchInterval: h, clearTouchInterval: d };
|
|
1268
1293
|
}
|
|
1269
|
-
|
|
1294
|
+
function bt(t, n) {
|
|
1295
|
+
t && (t.errors = [new ut(n)]);
|
|
1296
|
+
}
|
|
1297
|
+
const Dl = {
|
|
1270
1298
|
key: 1,
|
|
1271
1299
|
style: { width: "0.5rem" }
|
|
1272
|
-
},
|
|
1300
|
+
}, Sl = { key: 2 }, ht = /* @__PURE__ */ te({
|
|
1273
1301
|
__name: "df-actions",
|
|
1274
1302
|
props: {
|
|
1275
1303
|
actions: {},
|
|
@@ -1277,53 +1305,53 @@ const Ln = {
|
|
|
1277
1305
|
showAsGroup: { default: "no" }
|
|
1278
1306
|
},
|
|
1279
1307
|
setup(t) {
|
|
1280
|
-
const
|
|
1281
|
-
() => a.value.map((d) =>
|
|
1308
|
+
const n = t, e = Il(), a = x(() => l(n.actions).filter((d) => d.visibility !== We.SUPPRESS)), r = x(
|
|
1309
|
+
() => a.value.map((d) => z({
|
|
1282
1310
|
action: d
|
|
1283
|
-
},
|
|
1311
|
+
}, ft(d.value, e.value)))
|
|
1284
1312
|
);
|
|
1285
|
-
function
|
|
1313
|
+
function u(d) {
|
|
1286
1314
|
if (d.defaultConfirm) return "primary";
|
|
1287
1315
|
if (d.defaultReject) return "secondary";
|
|
1288
1316
|
}
|
|
1289
|
-
return (d,
|
|
1290
|
-
const
|
|
1291
|
-
return a.value.length > 0 ? (
|
|
1317
|
+
return (d, h) => {
|
|
1318
|
+
const k = R("v-btn");
|
|
1319
|
+
return a.value.length > 0 ? (V(), Z("div", {
|
|
1292
1320
|
key: 0,
|
|
1293
1321
|
class: ue(["text-end df-actions", {
|
|
1294
1322
|
"button-group": t.showAsGroup === "grouped" || t.showAsGroup === "grouped-no-borders",
|
|
1295
1323
|
"with-border": t.showAsGroup === "grouped"
|
|
1296
1324
|
}])
|
|
1297
1325
|
}, [
|
|
1298
|
-
(
|
|
1326
|
+
(V(!0), Z(Se, null, Xe(r.value, (f, v) => (V(), F(k, X({
|
|
1299
1327
|
key: v,
|
|
1300
|
-
variant: f.renderAs ===
|
|
1301
|
-
color:
|
|
1328
|
+
variant: f.renderAs === l(se).BUTTON ? "tonal" : "text",
|
|
1329
|
+
color: u(f),
|
|
1302
1330
|
disabled: !f.action.effectiveEnabled || f.action.busy,
|
|
1303
1331
|
loading: f.action.busy,
|
|
1304
1332
|
elevation: 0,
|
|
1305
1333
|
size: t.buttonSize,
|
|
1306
1334
|
class: {
|
|
1307
|
-
"d-none": f.action.visibility ===
|
|
1308
|
-
invisible: f.action.visibility ===
|
|
1335
|
+
"d-none": f.action.visibility === l(We).HIDDEN,
|
|
1336
|
+
invisible: f.action.visibility === l(We).INVISIBLE
|
|
1309
1337
|
}
|
|
1310
1338
|
}, { ref_for: !0 }, f.passthroughAttrs, {
|
|
1311
|
-
onClick:
|
|
1339
|
+
onClick: Te((g) => f.action.execute(g), ["stop"])
|
|
1312
1340
|
}), {
|
|
1313
1341
|
default: s(() => [
|
|
1314
|
-
f.icon ? (
|
|
1342
|
+
f.icon ? (V(), F(l(B), {
|
|
1315
1343
|
key: 0,
|
|
1316
1344
|
name: f.icon
|
|
1317
|
-
}, null, 8, ["name"])) :
|
|
1318
|
-
f.icon && f.label ? (
|
|
1319
|
-
f.label ? (
|
|
1345
|
+
}, null, 8, ["name"])) : Y("", !0),
|
|
1346
|
+
f.icon && f.label ? (V(), Z("span", Dl)) : Y("", !0),
|
|
1347
|
+
f.label ? (V(), Z("span", Sl, G(f.label), 1)) : Y("", !0)
|
|
1320
1348
|
]),
|
|
1321
1349
|
_: 2
|
|
1322
1350
|
}, 1040, ["variant", "color", "disabled", "loading", "size", "class", "onClick"]))), 128))
|
|
1323
|
-
], 2)) :
|
|
1351
|
+
], 2)) : Y("", !0);
|
|
1324
1352
|
};
|
|
1325
1353
|
}
|
|
1326
|
-
}),
|
|
1354
|
+
}), gt = /* @__PURE__ */ te({
|
|
1327
1355
|
__name: "df-checkbox",
|
|
1328
1356
|
props: /* @__PURE__ */ pe({
|
|
1329
1357
|
allowNull: { type: Boolean },
|
|
@@ -1341,56 +1369,56 @@ const Ln = {
|
|
|
1341
1369
|
passthroughAttrs: {},
|
|
1342
1370
|
density: {},
|
|
1343
1371
|
variant: {}
|
|
1344
|
-
},
|
|
1372
|
+
}, ee(z({}, be), { allowNull: !1 })),
|
|
1345
1373
|
emits: ["update:modelValue", "click:clear"],
|
|
1346
|
-
setup(t, { emit:
|
|
1347
|
-
const e = t, a =
|
|
1374
|
+
setup(t, { emit: n }) {
|
|
1375
|
+
const e = t, a = n, { densityClass: r, isRendered: u, label: d, showErrors: h, touched: k, value: f, visibilityClass: v, vuetifyBindings: g } = ce(
|
|
1348
1376
|
e,
|
|
1349
1377
|
a
|
|
1350
|
-
),
|
|
1378
|
+
), T = x(() => e.allowNull && f.value == null), $ = x({
|
|
1351
1379
|
get() {
|
|
1352
1380
|
return f.value;
|
|
1353
1381
|
},
|
|
1354
1382
|
set() {
|
|
1355
1383
|
}
|
|
1356
1384
|
});
|
|
1357
|
-
function
|
|
1358
|
-
const
|
|
1359
|
-
|
|
1385
|
+
function C() {
|
|
1386
|
+
const j = Yt(f.value);
|
|
1387
|
+
j === !0 ? f.value = e.allowNull ? null : !1 : f.value = j === !1;
|
|
1360
1388
|
}
|
|
1361
|
-
return (
|
|
1362
|
-
const
|
|
1363
|
-
return
|
|
1389
|
+
return (j, P) => {
|
|
1390
|
+
const D = R("v-checkbox");
|
|
1391
|
+
return l(u) ? (V(), F(D, X({
|
|
1364
1392
|
key: 0,
|
|
1365
|
-
modelValue:
|
|
1366
|
-
"onUpdate:modelValue":
|
|
1393
|
+
modelValue: $.value,
|
|
1394
|
+
"onUpdate:modelValue": P[0] || (P[0] = (b) => $.value = b),
|
|
1367
1395
|
density: "compact",
|
|
1368
|
-
class: [
|
|
1369
|
-
indeterminate:
|
|
1396
|
+
class: [l(r), l(v)],
|
|
1397
|
+
indeterminate: T.value,
|
|
1370
1398
|
"false-value": !1,
|
|
1371
1399
|
"true-value": !0
|
|
1372
|
-
},
|
|
1373
|
-
onChange:
|
|
1374
|
-
onBlur:
|
|
1400
|
+
}, l(g), {
|
|
1401
|
+
onChange: C,
|
|
1402
|
+
onBlur: P[1] || (P[1] = (b) => k.value = !0)
|
|
1375
1403
|
}), {
|
|
1376
|
-
label: s((
|
|
1377
|
-
i(
|
|
1404
|
+
label: s((b) => [
|
|
1405
|
+
i(l(fe), {
|
|
1378
1406
|
"allow-wrap": !0,
|
|
1379
|
-
data:
|
|
1380
|
-
label:
|
|
1407
|
+
data: b,
|
|
1408
|
+
label: l(d)
|
|
1381
1409
|
}, null, 8, ["data", "label"])
|
|
1382
1410
|
]),
|
|
1383
|
-
message: s(({ message:
|
|
1384
|
-
i(
|
|
1385
|
-
message:
|
|
1386
|
-
errors:
|
|
1411
|
+
message: s(({ message: b }) => [
|
|
1412
|
+
i(l(ve), {
|
|
1413
|
+
message: b,
|
|
1414
|
+
errors: l(h)
|
|
1387
1415
|
}, null, 8, ["message", "errors"])
|
|
1388
1416
|
]),
|
|
1389
1417
|
_: 1
|
|
1390
|
-
}, 16, ["modelValue", "class", "indeterminate"])) :
|
|
1418
|
+
}, 16, ["modelValue", "class", "indeterminate"])) : Y("", !0);
|
|
1391
1419
|
};
|
|
1392
1420
|
}
|
|
1393
|
-
}),
|
|
1421
|
+
}), yt = /* @__PURE__ */ te({
|
|
1394
1422
|
__name: "df-color",
|
|
1395
1423
|
props: /* @__PURE__ */ pe({
|
|
1396
1424
|
allowNull: { type: Boolean },
|
|
@@ -1408,56 +1436,56 @@ const Ln = {
|
|
|
1408
1436
|
passthroughAttrs: {},
|
|
1409
1437
|
density: {},
|
|
1410
1438
|
variant: {}
|
|
1411
|
-
},
|
|
1439
|
+
}, ee(z({}, be), { allowNull: !1 })),
|
|
1412
1440
|
emits: ["update:modelValue", "click:clear"],
|
|
1413
|
-
setup(t, { emit:
|
|
1414
|
-
const e = t, a =
|
|
1441
|
+
setup(t, { emit: n }) {
|
|
1442
|
+
const e = t, a = n, { densityClass: r, isRendered: u, label: d, showErrors: h, touched: k, value: f, visibilityClass: v, vuetifyBindings: g } = ce(
|
|
1415
1443
|
e,
|
|
1416
1444
|
a
|
|
1417
|
-
),
|
|
1418
|
-
(
|
|
1445
|
+
), T = M(!1), $ = x(() => [
|
|
1446
|
+
(C) => e.control || !C && e.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(C) ? !0 : "Not a valid hex string."
|
|
1419
1447
|
]);
|
|
1420
|
-
return (
|
|
1421
|
-
const
|
|
1422
|
-
return
|
|
1448
|
+
return (C, j) => {
|
|
1449
|
+
const P = R("v-color-picker"), D = R("v-menu"), b = R("v-text-field");
|
|
1450
|
+
return l(u) ? (V(), F(b, X({
|
|
1423
1451
|
key: 0,
|
|
1424
|
-
modelValue:
|
|
1425
|
-
"onUpdate:modelValue":
|
|
1426
|
-
class: [
|
|
1452
|
+
modelValue: l(f),
|
|
1453
|
+
"onUpdate:modelValue": j[2] || (j[2] = (S) => Ce(f) ? f.value = S : null),
|
|
1454
|
+
class: [l(r), l(v)],
|
|
1427
1455
|
clearable: t.allowNull,
|
|
1428
1456
|
type: "text",
|
|
1429
|
-
rules:
|
|
1430
|
-
},
|
|
1431
|
-
onBlur:
|
|
1457
|
+
rules: $.value
|
|
1458
|
+
}, l(g), {
|
|
1459
|
+
onBlur: j[3] || (j[3] = (S) => k.value = !0)
|
|
1432
1460
|
}), {
|
|
1433
1461
|
label: s((S) => [
|
|
1434
|
-
i(
|
|
1462
|
+
i(l(fe), {
|
|
1435
1463
|
data: S,
|
|
1436
|
-
label:
|
|
1464
|
+
label: l(d)
|
|
1437
1465
|
}, null, 8, ["data", "label"])
|
|
1438
1466
|
]),
|
|
1439
1467
|
message: s(({ message: S }) => [
|
|
1440
|
-
i(
|
|
1468
|
+
i(l(ve), {
|
|
1441
1469
|
message: S,
|
|
1442
|
-
errors:
|
|
1470
|
+
errors: l(h)
|
|
1443
1471
|
}, null, 8, ["message", "errors"])
|
|
1444
1472
|
]),
|
|
1445
1473
|
"prepend-inner": s(() => [
|
|
1446
|
-
|
|
1447
|
-
style:
|
|
1474
|
+
oe("div", {
|
|
1475
|
+
style: st([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: l(f) }])
|
|
1448
1476
|
}, null, 4)
|
|
1449
1477
|
]),
|
|
1450
1478
|
default: s(() => [
|
|
1451
|
-
i(
|
|
1452
|
-
modelValue:
|
|
1453
|
-
"onUpdate:modelValue":
|
|
1479
|
+
i(D, {
|
|
1480
|
+
modelValue: T.value,
|
|
1481
|
+
"onUpdate:modelValue": j[1] || (j[1] = (S) => T.value = S),
|
|
1454
1482
|
"close-on-content-click": !1,
|
|
1455
1483
|
activator: "parent"
|
|
1456
1484
|
}, {
|
|
1457
1485
|
default: s(() => [
|
|
1458
|
-
i(
|
|
1459
|
-
modelValue:
|
|
1460
|
-
"onUpdate:modelValue":
|
|
1486
|
+
i(P, {
|
|
1487
|
+
modelValue: l(f),
|
|
1488
|
+
"onUpdate:modelValue": j[0] || (j[0] = (S) => Ce(f) ? f.value = S : null),
|
|
1461
1489
|
mode: "hexa"
|
|
1462
1490
|
}, null, 8, ["modelValue"])
|
|
1463
1491
|
]),
|
|
@@ -1465,10 +1493,10 @@ const Ln = {
|
|
|
1465
1493
|
}, 8, ["modelValue"])
|
|
1466
1494
|
]),
|
|
1467
1495
|
_: 1
|
|
1468
|
-
}, 16, ["modelValue", "class", "clearable", "rules"])) :
|
|
1496
|
+
}, 16, ["modelValue", "class", "clearable", "rules"])) : Y("", !0);
|
|
1469
1497
|
};
|
|
1470
1498
|
}
|
|
1471
|
-
}),
|
|
1499
|
+
}), kt = /* @__PURE__ */ te({
|
|
1472
1500
|
__name: "df-datetime",
|
|
1473
1501
|
props: /* @__PURE__ */ pe({
|
|
1474
1502
|
inputType: {},
|
|
@@ -1489,157 +1517,157 @@ const Ln = {
|
|
|
1489
1517
|
passthroughAttrs: {},
|
|
1490
1518
|
density: {},
|
|
1491
1519
|
variant: {}
|
|
1492
|
-
},
|
|
1520
|
+
}, ee(z({}, be), {
|
|
1493
1521
|
inputType: "datetime",
|
|
1494
1522
|
displayFormatDate: "P",
|
|
1495
1523
|
displayFormatTime: "p"
|
|
1496
1524
|
})),
|
|
1497
1525
|
emits: ["update:modelValue", "click:clear"],
|
|
1498
|
-
setup(t, { emit:
|
|
1499
|
-
const e = t, a =
|
|
1500
|
-
var
|
|
1501
|
-
return (
|
|
1502
|
-
}),
|
|
1503
|
-
var
|
|
1504
|
-
return (o = (
|
|
1505
|
-
}), { density: d, densityClass:
|
|
1526
|
+
setup(t, { emit: n }) {
|
|
1527
|
+
const e = t, a = n, r = x(() => {
|
|
1528
|
+
var w;
|
|
1529
|
+
return (w = e.locale) != null ? w : l(Tl.dateTimeLocale);
|
|
1530
|
+
}), u = x(() => {
|
|
1531
|
+
var w, o;
|
|
1532
|
+
return (o = (w = r.value.options) == null ? void 0 : w.weekStartsOn) != null ? o : 1;
|
|
1533
|
+
}), { density: d, densityClass: h, touched: k, value: f, vuetifyBindings: v } = ce(e, a), { inputType: g, displayFormatDate: T, displayFormatTime: $ } = Fe(e), C = M(""), j = x({
|
|
1506
1534
|
get() {
|
|
1507
|
-
return
|
|
1535
|
+
return l(C) === "date";
|
|
1508
1536
|
},
|
|
1509
|
-
set(
|
|
1510
|
-
|
|
1537
|
+
set(w) {
|
|
1538
|
+
C.value = w ? "date" : "";
|
|
1511
1539
|
}
|
|
1512
|
-
}),
|
|
1540
|
+
}), P = x({
|
|
1513
1541
|
get() {
|
|
1514
|
-
return
|
|
1542
|
+
return l(C) === "time";
|
|
1515
1543
|
},
|
|
1516
|
-
set(
|
|
1517
|
-
|
|
1544
|
+
set(w) {
|
|
1545
|
+
C.value = w ? "time" : "";
|
|
1518
1546
|
}
|
|
1519
|
-
}),
|
|
1520
|
-
function S(
|
|
1521
|
-
if (
|
|
1522
|
-
|
|
1547
|
+
}), D = (w) => `${je(w, "yyyy-MM-dd")}T${je(w, "HH:mm")}:00`, b = M(null);
|
|
1548
|
+
function S(w, o) {
|
|
1549
|
+
if (w == null)
|
|
1550
|
+
b.value = null;
|
|
1523
1551
|
else if (o === -1)
|
|
1524
|
-
if (
|
|
1525
|
-
|
|
1552
|
+
if (l(g) === "time")
|
|
1553
|
+
b.value = D(/* @__PURE__ */ new Date()), S(`T${w}`, 1);
|
|
1526
1554
|
else {
|
|
1527
|
-
const
|
|
1528
|
-
S(
|
|
1555
|
+
const c = D(new Date(w));
|
|
1556
|
+
S(c, 0), S(c, 1);
|
|
1529
1557
|
}
|
|
1530
1558
|
else {
|
|
1531
|
-
|
|
1532
|
-
const
|
|
1533
|
-
|
|
1559
|
+
b.value == null && (b.value = D(/* @__PURE__ */ new Date()));
|
|
1560
|
+
const c = b.value.split(/[TZ]/g), m = w.split(/[TZ]/g);
|
|
1561
|
+
c[o] = m[o], b.value = D(/* @__PURE__ */ new Date(`${c[0]}T${c[1].split(".")[0]}`)), l(g) === "date" ? f.value = c[0] : l(g) === "time" ? f.value = c[1] : f.value = l(b) + je(/* @__PURE__ */ new Date(), "XXX");
|
|
1534
1562
|
}
|
|
1535
1563
|
}
|
|
1536
|
-
|
|
1537
|
-
const
|
|
1564
|
+
me(f, (w) => S(w, -1), { immediate: !0 });
|
|
1565
|
+
const H = x({
|
|
1538
1566
|
get() {
|
|
1539
|
-
const
|
|
1540
|
-
if (
|
|
1541
|
-
const o = new Date(
|
|
1567
|
+
const w = l(b);
|
|
1568
|
+
if (w == null) return null;
|
|
1569
|
+
const o = new Date(w);
|
|
1542
1570
|
return Number.isNaN(o.getTime()) ? null : o;
|
|
1543
1571
|
},
|
|
1544
|
-
set(
|
|
1545
|
-
S(
|
|
1572
|
+
set(w) {
|
|
1573
|
+
S(D(w), 0);
|
|
1546
1574
|
}
|
|
1547
|
-
}),
|
|
1575
|
+
}), K = x({
|
|
1548
1576
|
get() {
|
|
1549
|
-
const
|
|
1550
|
-
return
|
|
1577
|
+
const w = l(b);
|
|
1578
|
+
return w == null ? "" : w.split(/[TZ]/g)[1].split(".")[0];
|
|
1551
1579
|
},
|
|
1552
|
-
set(
|
|
1553
|
-
S(`T${
|
|
1580
|
+
set(w) {
|
|
1581
|
+
S(`T${w}`, 1);
|
|
1554
1582
|
}
|
|
1555
|
-
}),
|
|
1583
|
+
}), W = x({
|
|
1556
1584
|
get() {
|
|
1557
|
-
const
|
|
1558
|
-
return
|
|
1585
|
+
const w = l(H);
|
|
1586
|
+
return w == null ? "" : je(w, l(T), { locale: r.value });
|
|
1559
1587
|
},
|
|
1560
|
-
set(
|
|
1588
|
+
set(w) {
|
|
1561
1589
|
try {
|
|
1562
|
-
const o =
|
|
1563
|
-
S(
|
|
1590
|
+
const o = en(w, l(T), /* @__PURE__ */ new Date(), { locale: r.value });
|
|
1591
|
+
S(D(o), 0);
|
|
1564
1592
|
} catch (o) {
|
|
1565
1593
|
console.error(o);
|
|
1566
1594
|
}
|
|
1567
1595
|
}
|
|
1568
|
-
}),
|
|
1596
|
+
}), L = x({
|
|
1569
1597
|
get() {
|
|
1570
|
-
const
|
|
1571
|
-
return
|
|
1598
|
+
const w = l(H);
|
|
1599
|
+
return w == null ? "" : je(w, l($), { locale: r.value });
|
|
1572
1600
|
},
|
|
1573
|
-
set(
|
|
1574
|
-
const o =
|
|
1601
|
+
set(w) {
|
|
1602
|
+
const o = w.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
1575
1603
|
if (o == null) return;
|
|
1576
|
-
let
|
|
1577
|
-
const m =
|
|
1578
|
-
lt(
|
|
1604
|
+
let c = nt(o[1]);
|
|
1605
|
+
const m = nt(o[2]);
|
|
1606
|
+
lt(c) || lt(m) || (o[3] && o[3].toLowerCase() === "pm" && c < 13 && (c += 12), S(`T${c.toString().padStart(2, "0")}:${m.toString().padStart(2, "0")}:00`, 1));
|
|
1579
1607
|
}
|
|
1580
1608
|
});
|
|
1581
|
-
return (
|
|
1582
|
-
const
|
|
1583
|
-
return
|
|
1584
|
-
class:
|
|
1609
|
+
return (w, o) => {
|
|
1610
|
+
const c = R("v-date-picker"), m = R("v-confirm-edit"), _ = R("v-menu"), N = R("v-text-field"), O = R("v-time-picker");
|
|
1611
|
+
return V(), F(l(He), X(e, {
|
|
1612
|
+
class: l(h),
|
|
1585
1613
|
clearable: t.clearable,
|
|
1586
|
-
"onClick:clear": o[14] || (o[14] = (
|
|
1587
|
-
onBlur: o[15] || (o[15] = (
|
|
1614
|
+
"onClick:clear": o[14] || (o[14] = (ne) => f.value = null),
|
|
1615
|
+
onBlur: o[15] || (o[15] = (ne) => k.value = !0)
|
|
1588
1616
|
}), {
|
|
1589
|
-
default: s((
|
|
1590
|
-
|
|
1617
|
+
default: s((ne) => [
|
|
1618
|
+
oe("div", {
|
|
1591
1619
|
class: ue([
|
|
1592
1620
|
"d-flex",
|
|
1593
1621
|
"w-100",
|
|
1594
|
-
["plain", "underlined"].includes(
|
|
1622
|
+
["plain", "underlined"].includes(l(v).variant) ? void 0 : "ml-4",
|
|
1595
1623
|
"df-input-wrapper",
|
|
1596
|
-
|
|
1624
|
+
l(d)
|
|
1597
1625
|
])
|
|
1598
1626
|
}, [
|
|
1599
|
-
["date", "datetime"].includes(
|
|
1627
|
+
["date", "datetime"].includes(l(g)) ? (V(), F(N, X({
|
|
1600
1628
|
key: 0,
|
|
1601
|
-
modelValue:
|
|
1602
|
-
"onUpdate:modelValue": o[4] || (o[4] = (
|
|
1629
|
+
modelValue: W.value,
|
|
1630
|
+
"onUpdate:modelValue": o[4] || (o[4] = (A) => W.value = A),
|
|
1603
1631
|
style: { "flex-grow": "4" },
|
|
1604
1632
|
density: "compact",
|
|
1605
1633
|
variant: "plain",
|
|
1606
1634
|
clearable: !1,
|
|
1607
1635
|
"hide-details": !0,
|
|
1608
|
-
readonly:
|
|
1609
|
-
disabled:
|
|
1610
|
-
name: `${
|
|
1611
|
-
placeholder:
|
|
1636
|
+
readonly: l(v).readonly,
|
|
1637
|
+
disabled: l(v).disabled,
|
|
1638
|
+
name: `${l(v).name}-date`,
|
|
1639
|
+
placeholder: l(v).placeholder
|
|
1612
1640
|
}, t.passthroughAttrs, {
|
|
1613
|
-
onClick: o[5] || (o[5] = (
|
|
1614
|
-
onKeydown: o[6] || (o[6] = De((
|
|
1615
|
-
onFocus: (
|
|
1616
|
-
onBlur: (
|
|
1641
|
+
onClick: o[5] || (o[5] = (A) => C.value = "date"),
|
|
1642
|
+
onKeydown: o[6] || (o[6] = De((A) => C.value = "date", ["space"])),
|
|
1643
|
+
onFocus: (A) => ne.focus(),
|
|
1644
|
+
onBlur: (A) => ne.blur()
|
|
1617
1645
|
}), {
|
|
1618
1646
|
default: s(() => [
|
|
1619
1647
|
i(_, {
|
|
1620
|
-
modelValue:
|
|
1621
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
|
1648
|
+
modelValue: j.value,
|
|
1649
|
+
"onUpdate:modelValue": o[3] || (o[3] = (A) => j.value = A),
|
|
1622
1650
|
"close-on-content-click": !1,
|
|
1623
1651
|
activator: "parent"
|
|
1624
1652
|
}, {
|
|
1625
1653
|
default: s(() => [
|
|
1626
1654
|
i(m, {
|
|
1627
|
-
modelValue:
|
|
1628
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1629
|
-
onCancel: o[1] || (o[1] = (
|
|
1630
|
-
onSave: o[2] || (o[2] = (
|
|
1655
|
+
modelValue: H.value,
|
|
1656
|
+
"onUpdate:modelValue": o[0] || (o[0] = (A) => H.value = A),
|
|
1657
|
+
onCancel: o[1] || (o[1] = (A) => C.value = ""),
|
|
1658
|
+
onSave: o[2] || (o[2] = (A) => C.value = "")
|
|
1631
1659
|
}, {
|
|
1632
|
-
default: s(({ model:
|
|
1633
|
-
i(
|
|
1634
|
-
modelValue:
|
|
1635
|
-
"onUpdate:modelValue": (
|
|
1660
|
+
default: s(({ model: A, actions: q }) => [
|
|
1661
|
+
i(c, {
|
|
1662
|
+
modelValue: A.value,
|
|
1663
|
+
"onUpdate:modelValue": (Q) => A.value = Q,
|
|
1636
1664
|
"hide-header": !0,
|
|
1637
|
-
"first-day-of-week":
|
|
1665
|
+
"first-day-of-week": u.value,
|
|
1638
1666
|
"show-adjacent-months": !0,
|
|
1639
1667
|
"show-week": !0
|
|
1640
1668
|
}, {
|
|
1641
1669
|
actions: s(() => [
|
|
1642
|
-
(
|
|
1670
|
+
(V(), F(Ue(q)))
|
|
1643
1671
|
]),
|
|
1644
1672
|
_: 2
|
|
1645
1673
|
}, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
|
|
@@ -1651,49 +1679,49 @@ const Ln = {
|
|
|
1651
1679
|
}, 8, ["modelValue"])
|
|
1652
1680
|
]),
|
|
1653
1681
|
_: 1
|
|
1654
|
-
}, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) :
|
|
1655
|
-
["time", "datetime"].includes(
|
|
1682
|
+
}, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : Y("", !0),
|
|
1683
|
+
["time", "datetime"].includes(l(g)) ? (V(), F(N, X({
|
|
1656
1684
|
key: 1,
|
|
1657
|
-
modelValue:
|
|
1658
|
-
"onUpdate:modelValue": o[11] || (o[11] = (
|
|
1685
|
+
modelValue: L.value,
|
|
1686
|
+
"onUpdate:modelValue": o[11] || (o[11] = (A) => L.value = A),
|
|
1659
1687
|
style: { "flex-grow": "3" },
|
|
1660
1688
|
density: "compact",
|
|
1661
1689
|
variant: "plain",
|
|
1662
1690
|
clearable: !1,
|
|
1663
1691
|
"hide-details": !0,
|
|
1664
|
-
readonly:
|
|
1665
|
-
disabled:
|
|
1666
|
-
name: `${
|
|
1667
|
-
placeholder:
|
|
1692
|
+
readonly: l(v).readonly,
|
|
1693
|
+
disabled: l(v).disabled,
|
|
1694
|
+
name: `${l(v).name}-time`,
|
|
1695
|
+
placeholder: l(g) === "time" ? l(v).placeholder : void 0
|
|
1668
1696
|
}, t.passthroughAttrs, {
|
|
1669
|
-
onClick: o[12] || (o[12] = (
|
|
1670
|
-
onKeydown: o[13] || (o[13] = De((
|
|
1671
|
-
onFocus: (
|
|
1672
|
-
onBlur: (
|
|
1697
|
+
onClick: o[12] || (o[12] = (A) => C.value = "time"),
|
|
1698
|
+
onKeydown: o[13] || (o[13] = De((A) => C.value = "time", ["space"])),
|
|
1699
|
+
onFocus: (A) => ne.focus(),
|
|
1700
|
+
onBlur: (A) => ne.blur()
|
|
1673
1701
|
}), {
|
|
1674
1702
|
default: s(() => [
|
|
1675
1703
|
i(_, {
|
|
1676
|
-
modelValue:
|
|
1677
|
-
"onUpdate:modelValue": o[10] || (o[10] = (
|
|
1704
|
+
modelValue: P.value,
|
|
1705
|
+
"onUpdate:modelValue": o[10] || (o[10] = (A) => P.value = A),
|
|
1678
1706
|
"close-on-content-click": !1,
|
|
1679
1707
|
activator: "parent"
|
|
1680
1708
|
}, {
|
|
1681
1709
|
default: s(() => [
|
|
1682
1710
|
i(m, {
|
|
1683
|
-
modelValue:
|
|
1684
|
-
"onUpdate:modelValue": o[7] || (o[7] = (
|
|
1685
|
-
onCancel: o[8] || (o[8] = (
|
|
1686
|
-
onSave: o[9] || (o[9] = (
|
|
1711
|
+
modelValue: K.value,
|
|
1712
|
+
"onUpdate:modelValue": o[7] || (o[7] = (A) => K.value = A),
|
|
1713
|
+
onCancel: o[8] || (o[8] = (A) => C.value = ""),
|
|
1714
|
+
onSave: o[9] || (o[9] = (A) => C.value = "")
|
|
1687
1715
|
}, {
|
|
1688
|
-
default: s(({ model:
|
|
1689
|
-
i(
|
|
1690
|
-
modelValue:
|
|
1691
|
-
"onUpdate:modelValue": (
|
|
1716
|
+
default: s(({ model: A, actions: q }) => [
|
|
1717
|
+
i(O, {
|
|
1718
|
+
modelValue: A.value,
|
|
1719
|
+
"onUpdate:modelValue": (Q) => A.value = Q,
|
|
1692
1720
|
"hide-header": !0,
|
|
1693
1721
|
format: "24hr"
|
|
1694
1722
|
}, {
|
|
1695
1723
|
actions: s(() => [
|
|
1696
|
-
(
|
|
1724
|
+
(V(), F(Ue(q)))
|
|
1697
1725
|
]),
|
|
1698
1726
|
_: 2
|
|
1699
1727
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1705,17 +1733,18 @@ const Ln = {
|
|
|
1705
1733
|
}, 8, ["modelValue"])
|
|
1706
1734
|
]),
|
|
1707
1735
|
_: 1
|
|
1708
|
-
}, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) :
|
|
1736
|
+
}, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : Y("", !0)
|
|
1709
1737
|
], 2)
|
|
1710
1738
|
]),
|
|
1711
1739
|
_: 1
|
|
1712
1740
|
}, 16, ["class", "clearable"]);
|
|
1713
1741
|
};
|
|
1714
1742
|
}
|
|
1715
|
-
}),
|
|
1743
|
+
}), wt = /* @__PURE__ */ te({
|
|
1716
1744
|
__name: "df-file",
|
|
1717
1745
|
props: /* @__PURE__ */ pe({
|
|
1718
1746
|
comms: {},
|
|
1747
|
+
touchInterval: {},
|
|
1719
1748
|
control: {},
|
|
1720
1749
|
modelValue: {},
|
|
1721
1750
|
label: {},
|
|
@@ -1732,80 +1761,81 @@ const Ln = {
|
|
|
1732
1761
|
variant: {}
|
|
1733
1762
|
}, be),
|
|
1734
1763
|
emits: ["update:modelValue", "click:clear"],
|
|
1735
|
-
setup(t, { emit:
|
|
1736
|
-
const e = t, a =
|
|
1737
|
-
function
|
|
1738
|
-
|
|
1739
|
-
}
|
|
1740
|
-
function
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1764
|
+
setup(t, { emit: n }) {
|
|
1765
|
+
const e = t, a = n, { density: r, densityClass: u, touched: d, value: h, vuetifyBindings: k } = ce(e, a), f = M(null), v = M(0), g = M(Math.round(Math.random() * 1e3)), T = M(), $ = x(() => f.value && v.value < 100), C = x(() => !T.value && h.value ? e.modelValue : "");
|
|
1766
|
+
function j() {
|
|
1767
|
+
h.value = null, v.value = 0, g.value = Math.round(Math.random() * 1e3), f.value = null, T.value = null, b();
|
|
1768
|
+
}
|
|
1769
|
+
function P(W) {
|
|
1770
|
+
j(), bt(e.control, W);
|
|
1771
|
+
}
|
|
1772
|
+
const { setupTouchInterval: D, clearTouchInterval: b } = pt(
|
|
1773
|
+
h,
|
|
1774
|
+
() => e.comms,
|
|
1775
|
+
() => e.touchInterval,
|
|
1776
|
+
P
|
|
1777
|
+
);
|
|
1778
|
+
function S() {
|
|
1749
1779
|
return ge(this, null, function* () {
|
|
1750
|
-
|
|
1780
|
+
h.value && (yield e.comms.delete(h.value)), j();
|
|
1751
1781
|
});
|
|
1752
1782
|
}
|
|
1753
|
-
function
|
|
1783
|
+
function H(W) {
|
|
1754
1784
|
return ge(this, null, function* () {
|
|
1755
|
-
|
|
1785
|
+
v.value = -1, f.value = W;
|
|
1756
1786
|
try {
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
}),
|
|
1760
|
-
} catch (
|
|
1761
|
-
throw
|
|
1787
|
+
h.value = yield e.comms.upload(W, (L, w) => {
|
|
1788
|
+
v.value = Math.round(L * 100 / w);
|
|
1789
|
+
}), v.value = 100, D();
|
|
1790
|
+
} catch (L) {
|
|
1791
|
+
throw v.value = 0, f.value = null, g.value = Math.round(Math.random() * 1e3), T.value = null, L;
|
|
1762
1792
|
}
|
|
1763
1793
|
});
|
|
1764
1794
|
}
|
|
1765
|
-
function W
|
|
1766
|
-
|
|
1795
|
+
function K(W) {
|
|
1796
|
+
W && (Array.isArray(W) ? console.error("Uploading multiple files not supported right now") : H(W));
|
|
1767
1797
|
}
|
|
1768
|
-
return (
|
|
1769
|
-
const
|
|
1770
|
-
return
|
|
1771
|
-
class:
|
|
1798
|
+
return (W, L) => {
|
|
1799
|
+
const w = R("v-progress-linear"), o = R("v-file-input");
|
|
1800
|
+
return V(), F(l(He), X(ee(z({}, e), { loading: $.value }), {
|
|
1801
|
+
class: l(u),
|
|
1772
1802
|
clearable: "",
|
|
1773
|
-
"onClick:clear":
|
|
1774
|
-
onBlur:
|
|
1803
|
+
"onClick:clear": S,
|
|
1804
|
+
onBlur: L[1] || (L[1] = (c) => d.value = !0)
|
|
1775
1805
|
}), {
|
|
1776
1806
|
"prepend-inner": s(() => [
|
|
1777
|
-
i(
|
|
1807
|
+
i(l(B), { name: "mdi-paperclip" })
|
|
1778
1808
|
]),
|
|
1779
1809
|
loader: s(() => [
|
|
1780
|
-
|
|
1810
|
+
f.value && v.value < 100 ? (V(), F(w, {
|
|
1781
1811
|
key: 0,
|
|
1782
|
-
"model-value":
|
|
1783
|
-
indeterminate:
|
|
1784
|
-
}, null, 8, ["model-value", "indeterminate"])) :
|
|
1812
|
+
"model-value": v.value,
|
|
1813
|
+
indeterminate: v.value === -1
|
|
1814
|
+
}, null, 8, ["model-value", "indeterminate"])) : Y("", !0)
|
|
1785
1815
|
]),
|
|
1786
|
-
default: s((
|
|
1787
|
-
|
|
1788
|
-
class: ue(["d-flex w-100 position-relative df-input-wrapper",
|
|
1816
|
+
default: s((c) => [
|
|
1817
|
+
oe("div", {
|
|
1818
|
+
class: ue(["d-flex w-100 position-relative df-input-wrapper", l(r)])
|
|
1789
1819
|
}, [
|
|
1790
|
-
i(
|
|
1791
|
-
modelValue:
|
|
1792
|
-
"onUpdate:modelValue":
|
|
1793
|
-
label:
|
|
1820
|
+
i(o, X({
|
|
1821
|
+
modelValue: T.value,
|
|
1822
|
+
"onUpdate:modelValue": L[0] || (L[0] = (m) => T.value = m),
|
|
1823
|
+
label: C.value,
|
|
1794
1824
|
density: "compact",
|
|
1795
1825
|
variant: "plain",
|
|
1796
|
-
readonly:
|
|
1797
|
-
disabled:
|
|
1798
|
-
name:
|
|
1826
|
+
readonly: l(k).readonly,
|
|
1827
|
+
disabled: l(k).disabled,
|
|
1828
|
+
name: l(k).name,
|
|
1799
1829
|
"hide-details": !0,
|
|
1800
1830
|
"show-size": !0,
|
|
1801
1831
|
multiple: !1,
|
|
1802
|
-
style:
|
|
1832
|
+
style: f.value && v.value < 100 ? "visibility: hidden" : "",
|
|
1803
1833
|
clearable: !1
|
|
1804
1834
|
}, t.passthroughAttrs, {
|
|
1805
1835
|
"prepend-icon": "",
|
|
1806
|
-
"onUpdate:modelValue":
|
|
1807
|
-
onFocus: (
|
|
1808
|
-
onBlur: (
|
|
1836
|
+
"onUpdate:modelValue": K,
|
|
1837
|
+
onFocus: (m) => c.focus(),
|
|
1838
|
+
onBlur: (m) => c.blur()
|
|
1809
1839
|
}), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
|
|
1810
1840
|
], 2)
|
|
1811
1841
|
]),
|
|
@@ -1813,10 +1843,11 @@ const Ln = {
|
|
|
1813
1843
|
}, 16, ["class"]);
|
|
1814
1844
|
};
|
|
1815
1845
|
}
|
|
1816
|
-
}),
|
|
1846
|
+
}), Ml = ["id", "disabled", "name", "onFocus", "onBlur"], Rl = ["for"], Pl = ["for"], Nl = ["for", "title"], Ct = /* @__PURE__ */ te({
|
|
1817
1847
|
__name: "df-image",
|
|
1818
1848
|
props: /* @__PURE__ */ pe({
|
|
1819
1849
|
comms: {},
|
|
1850
|
+
touchInterval: {},
|
|
1820
1851
|
control: {},
|
|
1821
1852
|
modelValue: {},
|
|
1822
1853
|
label: {},
|
|
@@ -1833,142 +1864,142 @@ const Ln = {
|
|
|
1833
1864
|
variant: {}
|
|
1834
1865
|
}, be),
|
|
1835
1866
|
emits: ["update:modelValue", "click:clear"],
|
|
1836
|
-
setup(t, { emit:
|
|
1837
|
-
const e = t, a =
|
|
1838
|
-
var
|
|
1839
|
-
return (
|
|
1867
|
+
setup(t, { emit: n }) {
|
|
1868
|
+
const e = t, a = n, { density: r, densityClass: u, touched: d, value: h, vuetifyBindings: k } = ce(e, a), f = we, v = Ht(), g = M(null), T = M(0), $ = M(null), C = M(0), j = M(null), P = x(() => g.value && T.value < 100), D = x(() => !!(k.value.disabled || k.value.readonly)), b = x(() => C.value > 0), S = x(() => {
|
|
1869
|
+
var A;
|
|
1870
|
+
return (A = $.value) != null ? A : h.value ? h.value : null;
|
|
1840
1871
|
});
|
|
1841
|
-
function
|
|
1842
|
-
|
|
1872
|
+
function H() {
|
|
1873
|
+
$.value && (URL.revokeObjectURL($.value), $.value = null);
|
|
1843
1874
|
}
|
|
1844
1875
|
function K() {
|
|
1845
|
-
|
|
1846
|
-
g.value && e.comms.touch(g.value);
|
|
1847
|
-
}, 60 * 1e3);
|
|
1876
|
+
h.value = null, T.value = 0, g.value = null, H(), w();
|
|
1848
1877
|
}
|
|
1849
|
-
function
|
|
1850
|
-
|
|
1878
|
+
function W(A) {
|
|
1879
|
+
K(), bt(e.control, A);
|
|
1851
1880
|
}
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1881
|
+
const { setupTouchInterval: L, clearTouchInterval: w } = pt(
|
|
1882
|
+
h,
|
|
1883
|
+
() => e.comms,
|
|
1884
|
+
() => e.touchInterval,
|
|
1885
|
+
W
|
|
1886
|
+
);
|
|
1887
|
+
Ye(() => H());
|
|
1888
|
+
function o() {
|
|
1858
1889
|
return ge(this, null, function* () {
|
|
1859
|
-
|
|
1890
|
+
h.value && (yield e.comms.delete(h.value)), K();
|
|
1860
1891
|
});
|
|
1861
1892
|
}
|
|
1862
|
-
function
|
|
1893
|
+
function c(A) {
|
|
1863
1894
|
return ge(this, null, function* () {
|
|
1864
|
-
|
|
1895
|
+
T.value = -1, g.value = A, H(), $.value = URL.createObjectURL(A);
|
|
1865
1896
|
try {
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
}),
|
|
1869
|
-
} catch (
|
|
1870
|
-
throw
|
|
1897
|
+
h.value = yield e.comms.upload(A, (q, Q) => {
|
|
1898
|
+
T.value = Math.round(q * 100 / Q);
|
|
1899
|
+
}), T.value = 100, L();
|
|
1900
|
+
} catch (q) {
|
|
1901
|
+
throw T.value = 0, g.value = null, H(), q;
|
|
1871
1902
|
}
|
|
1872
1903
|
});
|
|
1873
1904
|
}
|
|
1874
|
-
function
|
|
1875
|
-
if (!
|
|
1905
|
+
function m(A) {
|
|
1906
|
+
if (!A.type.startsWith("image/")) {
|
|
1876
1907
|
console.error("Only image files are supported");
|
|
1877
1908
|
return;
|
|
1878
1909
|
}
|
|
1879
|
-
|
|
1910
|
+
c(A);
|
|
1880
1911
|
}
|
|
1881
|
-
function
|
|
1882
|
-
var
|
|
1883
|
-
const
|
|
1884
|
-
|
|
1912
|
+
function _(A) {
|
|
1913
|
+
var le;
|
|
1914
|
+
const q = A.target, Q = (le = q.files) == null ? void 0 : le[0];
|
|
1915
|
+
q.value = "", Q && m(Q);
|
|
1885
1916
|
}
|
|
1886
|
-
function
|
|
1887
|
-
|
|
1917
|
+
function N() {
|
|
1918
|
+
D.value || (C.value += 1);
|
|
1888
1919
|
}
|
|
1889
|
-
function
|
|
1890
|
-
|
|
1920
|
+
function O() {
|
|
1921
|
+
C.value = Math.max(0, C.value - 1);
|
|
1891
1922
|
}
|
|
1892
|
-
function
|
|
1893
|
-
var
|
|
1894
|
-
if (
|
|
1895
|
-
const
|
|
1896
|
-
|
|
1923
|
+
function ne(A) {
|
|
1924
|
+
var Q, le;
|
|
1925
|
+
if (C.value = 0, D.value) return;
|
|
1926
|
+
const q = (le = (Q = A.dataTransfer) == null ? void 0 : Q.files) == null ? void 0 : le[0];
|
|
1927
|
+
q && m(q);
|
|
1897
1928
|
}
|
|
1898
|
-
return (
|
|
1899
|
-
const
|
|
1900
|
-
return
|
|
1901
|
-
class: ["df-image-field",
|
|
1929
|
+
return (A, q) => {
|
|
1930
|
+
const Q = R("v-progress-linear"), le = R("v-img");
|
|
1931
|
+
return V(), F(l(He), X(ee(z({}, e), { loading: P.value }), {
|
|
1932
|
+
class: ["df-image-field", l(u)],
|
|
1902
1933
|
clearable: "",
|
|
1903
|
-
"onClick:clear":
|
|
1904
|
-
onBlur:
|
|
1934
|
+
"onClick:clear": o,
|
|
1935
|
+
onBlur: q[1] || (q[1] = (y) => d.value = !0)
|
|
1905
1936
|
}), {
|
|
1906
1937
|
"prepend-inner": s(() => [
|
|
1907
|
-
i(
|
|
1938
|
+
i(l(B), { name: "mdi-image" })
|
|
1908
1939
|
]),
|
|
1909
1940
|
loader: s(() => [
|
|
1910
|
-
|
|
1941
|
+
g.value && T.value < 100 ? (V(), F(Q, {
|
|
1911
1942
|
key: 0,
|
|
1912
|
-
"model-value":
|
|
1913
|
-
indeterminate:
|
|
1914
|
-
}, null, 8, ["model-value", "indeterminate"])) :
|
|
1943
|
+
"model-value": T.value,
|
|
1944
|
+
indeterminate: T.value === -1
|
|
1945
|
+
}, null, 8, ["model-value", "indeterminate"])) : Y("", !0)
|
|
1915
1946
|
]),
|
|
1916
|
-
default: s((
|
|
1917
|
-
|
|
1918
|
-
class: ue(["d-flex w-100 position-relative df-input-wrapper df-image-wrapper", [
|
|
1919
|
-
onDragenter:
|
|
1920
|
-
onDragover:
|
|
1921
|
-
onDragleave:
|
|
1922
|
-
onDrop:
|
|
1923
|
-
onClick:
|
|
1947
|
+
default: s((y) => [
|
|
1948
|
+
oe("div", {
|
|
1949
|
+
class: ue(["d-flex w-100 position-relative df-input-wrapper df-image-wrapper", [l(r), { "df-image-dragging": b.value, "df-image-disabled": D.value }]]),
|
|
1950
|
+
onDragenter: Te(N, ["prevent"]),
|
|
1951
|
+
onDragover: Te(N, ["prevent"]),
|
|
1952
|
+
onDragleave: Te(O, ["prevent"]),
|
|
1953
|
+
onDrop: Te(ne, ["prevent"]),
|
|
1954
|
+
onClick: q[0] || (q[0] = Te(() => {
|
|
1924
1955
|
}, ["stop"]))
|
|
1925
1956
|
}, [
|
|
1926
|
-
|
|
1927
|
-
id:
|
|
1957
|
+
oe("input", {
|
|
1958
|
+
id: l(v),
|
|
1928
1959
|
ref_key: "fileInputRef",
|
|
1929
|
-
ref:
|
|
1960
|
+
ref: j,
|
|
1930
1961
|
type: "file",
|
|
1931
1962
|
accept: "image/*",
|
|
1932
1963
|
class: "df-image-native-input",
|
|
1933
|
-
disabled:
|
|
1934
|
-
name:
|
|
1935
|
-
onChange:
|
|
1936
|
-
onFocus: (
|
|
1937
|
-
onBlur: (
|
|
1938
|
-
}, null, 40,
|
|
1939
|
-
|
|
1964
|
+
disabled: D.value,
|
|
1965
|
+
name: l(k).name,
|
|
1966
|
+
onChange: _,
|
|
1967
|
+
onFocus: (p) => y.focus(),
|
|
1968
|
+
onBlur: (p) => y.blur()
|
|
1969
|
+
}, null, 40, Ml),
|
|
1970
|
+
S.value ? (V(), Z("label", {
|
|
1940
1971
|
key: 0,
|
|
1941
|
-
for:
|
|
1972
|
+
for: l(v),
|
|
1942
1973
|
class: "df-image-preview-label"
|
|
1943
1974
|
}, [
|
|
1944
|
-
i(
|
|
1945
|
-
src:
|
|
1975
|
+
i(le, {
|
|
1976
|
+
src: S.value,
|
|
1946
1977
|
class: "df-image-preview",
|
|
1947
|
-
style:
|
|
1978
|
+
style: st(g.value && T.value < 100 ? "visibility: hidden" : "")
|
|
1948
1979
|
}, null, 8, ["src", "style"])
|
|
1949
|
-
], 8,
|
|
1980
|
+
], 8, Rl)) : (V(), Z("label", {
|
|
1950
1981
|
key: 1,
|
|
1951
|
-
for:
|
|
1982
|
+
for: l(v),
|
|
1952
1983
|
class: "df-image-placeholder"
|
|
1953
1984
|
}, [
|
|
1954
|
-
i(
|
|
1955
|
-
|
|
1956
|
-
], 8,
|
|
1957
|
-
|
|
1985
|
+
i(l(B), { name: "mdi-tray-arrow-up" }),
|
|
1986
|
+
oe("span", null, G(l(f).ImageDropHint), 1)
|
|
1987
|
+
], 8, Pl)),
|
|
1988
|
+
S.value && !D.value ? (V(), Z("label", {
|
|
1958
1989
|
key: 2,
|
|
1959
|
-
for:
|
|
1990
|
+
for: l(v),
|
|
1960
1991
|
class: "df-image-replace-btn",
|
|
1961
|
-
title:
|
|
1992
|
+
title: l(f).ImageReplace
|
|
1962
1993
|
}, [
|
|
1963
|
-
i(
|
|
1964
|
-
], 8,
|
|
1994
|
+
i(l(B), { name: "mdi-pencil" })
|
|
1995
|
+
], 8, Nl)) : Y("", !0)
|
|
1965
1996
|
], 34)
|
|
1966
1997
|
]),
|
|
1967
1998
|
_: 1
|
|
1968
1999
|
}, 16, ["class"]);
|
|
1969
2000
|
};
|
|
1970
2001
|
}
|
|
1971
|
-
}),
|
|
2002
|
+
}), xt = /* @__PURE__ */ te({
|
|
1972
2003
|
__name: "df-input",
|
|
1973
2004
|
props: /* @__PURE__ */ pe({
|
|
1974
2005
|
inputType: {},
|
|
@@ -1990,7 +2021,7 @@ const Ln = {
|
|
|
1990
2021
|
passthroughAttrs: {},
|
|
1991
2022
|
density: {},
|
|
1992
2023
|
variant: {}
|
|
1993
|
-
},
|
|
2024
|
+
}, ee(z({}, be), {
|
|
1994
2025
|
inputType: "text",
|
|
1995
2026
|
precision: null,
|
|
1996
2027
|
step: void 0,
|
|
@@ -1998,65 +2029,65 @@ const Ln = {
|
|
|
1998
2029
|
max: void 0
|
|
1999
2030
|
})),
|
|
2000
2031
|
emits: ["update:modelValue", "click:clear"],
|
|
2001
|
-
setup(t, { emit:
|
|
2002
|
-
const e = t, a =
|
|
2032
|
+
setup(t, { emit: n }) {
|
|
2033
|
+
const e = t, a = n, { densityClass: r, isRendered: u, label: d, showErrors: h, touched: k, value: f, visibilityClass: v, vuetifyBindings: g } = ce(
|
|
2003
2034
|
e,
|
|
2004
2035
|
a
|
|
2005
|
-
), { inputType:
|
|
2006
|
-
() =>
|
|
2036
|
+
), { inputType: T, max: $, min: C, precision: j, step: P } = Fe(e), D = x(() => T.value === "number"), b = x(
|
|
2037
|
+
() => D.value ? { min: l(C), max: l($), precision: l(j), step: l(P) } : {}
|
|
2007
2038
|
);
|
|
2008
|
-
return (S,
|
|
2009
|
-
const
|
|
2010
|
-
return
|
|
2039
|
+
return (S, H) => {
|
|
2040
|
+
const K = R("v-text-field"), W = R("v-number-input");
|
|
2041
|
+
return l(u) ? (V(), Z("div", {
|
|
2011
2042
|
key: 0,
|
|
2012
|
-
class: ue(["df-input-container", [
|
|
2043
|
+
class: ue(["df-input-container", [l(r), l(v)]])
|
|
2013
2044
|
}, [
|
|
2014
|
-
|
|
2045
|
+
D.value ? (V(), F(W, X({
|
|
2015
2046
|
key: 1,
|
|
2016
|
-
modelValue:
|
|
2017
|
-
"onUpdate:modelValue":
|
|
2047
|
+
modelValue: l(f),
|
|
2048
|
+
"onUpdate:modelValue": H[2] || (H[2] = (L) => Ce(f) ? f.value = L : null),
|
|
2018
2049
|
density: "compact",
|
|
2019
2050
|
"control-variant": "stacked"
|
|
2020
|
-
},
|
|
2021
|
-
label: s((
|
|
2022
|
-
i(
|
|
2023
|
-
data:
|
|
2024
|
-
label:
|
|
2051
|
+
}, z(z({}, l(g)), b.value)), {
|
|
2052
|
+
label: s((L) => [
|
|
2053
|
+
i(l(fe), {
|
|
2054
|
+
data: L,
|
|
2055
|
+
label: l(d)
|
|
2025
2056
|
}, null, 8, ["data", "label"])
|
|
2026
2057
|
]),
|
|
2027
|
-
message: s(({ message:
|
|
2028
|
-
i(
|
|
2029
|
-
message:
|
|
2030
|
-
errors:
|
|
2058
|
+
message: s(({ message: L }) => [
|
|
2059
|
+
i(l(ve), {
|
|
2060
|
+
message: L,
|
|
2061
|
+
errors: l(h)
|
|
2031
2062
|
}, null, 8, ["message", "errors"])
|
|
2032
2063
|
]),
|
|
2033
2064
|
_: 1
|
|
2034
|
-
}, 16, ["modelValue"])) : (
|
|
2065
|
+
}, 16, ["modelValue"])) : (V(), F(K, X({
|
|
2035
2066
|
key: 0,
|
|
2036
|
-
modelValue:
|
|
2037
|
-
"onUpdate:modelValue":
|
|
2038
|
-
type:
|
|
2039
|
-
},
|
|
2040
|
-
onBlur:
|
|
2067
|
+
modelValue: l(f),
|
|
2068
|
+
"onUpdate:modelValue": H[0] || (H[0] = (L) => Ce(f) ? f.value = L : null),
|
|
2069
|
+
type: l(T)
|
|
2070
|
+
}, l(g), {
|
|
2071
|
+
onBlur: H[1] || (H[1] = (L) => k.value = !0)
|
|
2041
2072
|
}), {
|
|
2042
|
-
label: s((
|
|
2043
|
-
i(
|
|
2044
|
-
data:
|
|
2045
|
-
label:
|
|
2073
|
+
label: s((L) => [
|
|
2074
|
+
i(l(fe), {
|
|
2075
|
+
data: L,
|
|
2076
|
+
label: l(d)
|
|
2046
2077
|
}, null, 8, ["data", "label"])
|
|
2047
2078
|
]),
|
|
2048
|
-
message: s(({ message:
|
|
2049
|
-
i(
|
|
2050
|
-
message:
|
|
2051
|
-
errors:
|
|
2079
|
+
message: s(({ message: L }) => [
|
|
2080
|
+
i(l(ve), {
|
|
2081
|
+
message: L,
|
|
2082
|
+
errors: l(h)
|
|
2052
2083
|
}, null, 8, ["message", "errors"])
|
|
2053
2084
|
]),
|
|
2054
2085
|
_: 1
|
|
2055
2086
|
}, 16, ["modelValue", "type"]))
|
|
2056
|
-
], 2)) :
|
|
2087
|
+
], 2)) : Y("", !0);
|
|
2057
2088
|
};
|
|
2058
2089
|
}
|
|
2059
|
-
}),
|
|
2090
|
+
}), El = fn.create({
|
|
2060
2091
|
name: "classAttribute",
|
|
2061
2092
|
addGlobalAttributes() {
|
|
2062
2093
|
return [
|
|
@@ -2073,18 +2104,18 @@ const Ln = {
|
|
|
2073
2104
|
];
|
|
2074
2105
|
}
|
|
2075
2106
|
});
|
|
2076
|
-
function
|
|
2077
|
-
return
|
|
2107
|
+
function At(t, n) {
|
|
2108
|
+
return pn.create({
|
|
2078
2109
|
name: t,
|
|
2079
2110
|
parseHTML() {
|
|
2080
|
-
return [{ tag: `span.${
|
|
2111
|
+
return [{ tag: `span.${n}` }];
|
|
2081
2112
|
},
|
|
2082
2113
|
renderHTML({ HTMLAttributes: e }) {
|
|
2083
|
-
return ["span",
|
|
2114
|
+
return ["span", vt(e, { class: n }), 0];
|
|
2084
2115
|
}
|
|
2085
2116
|
});
|
|
2086
2117
|
}
|
|
2087
|
-
const
|
|
2118
|
+
const Ul = At("marker", "marker"), zl = At("spoiler", "spoiler"), Fl = [
|
|
2088
2119
|
{ key: "ArticleCategory", kind: "heading", level: 3, className: "category" },
|
|
2089
2120
|
{ key: "Title", kind: "heading", level: 2, className: "document-title" },
|
|
2090
2121
|
{ key: "Subtitle", kind: "heading", level: 3, className: "document-subtitle" },
|
|
@@ -2095,147 +2126,147 @@ const Pn = wt("marker", "marker"), Nn = wt("spoiler", "spoiler"), Un = [
|
|
|
2095
2126
|
{ key: "CodeDark", kind: "codeBlock", className: "fancy-code fancy-code-dark" },
|
|
2096
2127
|
{ key: "CodeBright", kind: "codeBlock", className: "fancy-code fancy-code-bright" }
|
|
2097
2128
|
];
|
|
2098
|
-
function
|
|
2099
|
-
const { state:
|
|
2100
|
-
return e.depth > 0 ||
|
|
2129
|
+
function Qe(t) {
|
|
2130
|
+
const { state: n } = t, { $from: e } = n.selection;
|
|
2131
|
+
return e.depth > 0 || n.doc.content.size === 0 ? e : n.doc.resolve(Math.min(1, n.doc.content.size));
|
|
2101
2132
|
}
|
|
2102
|
-
function
|
|
2103
|
-
return
|
|
2133
|
+
function Ee(t) {
|
|
2134
|
+
return Qe(t).parent;
|
|
2104
2135
|
}
|
|
2105
|
-
function
|
|
2106
|
-
const e =
|
|
2136
|
+
function Tt(t, n) {
|
|
2137
|
+
const e = Qe(t);
|
|
2107
2138
|
for (let a = e.depth; a >= 0; a -= 1)
|
|
2108
|
-
if (e.node(a).type.name ===
|
|
2139
|
+
if (e.node(a).type.name === n) return e.node(a);
|
|
2109
2140
|
return null;
|
|
2110
2141
|
}
|
|
2111
|
-
function
|
|
2112
|
-
switch (
|
|
2142
|
+
function $e(t, n) {
|
|
2143
|
+
switch (n.kind) {
|
|
2113
2144
|
case "heading": {
|
|
2114
|
-
const e =
|
|
2115
|
-
return e.type.name === "heading" && e.attrs.level ===
|
|
2145
|
+
const e = Ee(t);
|
|
2146
|
+
return e.type.name === "heading" && e.attrs.level === n.level && e.attrs.class === n.className;
|
|
2116
2147
|
}
|
|
2117
2148
|
case "paragraph": {
|
|
2118
|
-
const e =
|
|
2119
|
-
return e.type.name === "paragraph" && e.attrs.class ===
|
|
2149
|
+
const e = Ee(t);
|
|
2150
|
+
return e.type.name === "paragraph" && e.attrs.class === n.className;
|
|
2120
2151
|
}
|
|
2121
2152
|
case "codeBlock": {
|
|
2122
|
-
const e =
|
|
2123
|
-
return e.type.name === "codeBlock" && e.attrs.class ===
|
|
2153
|
+
const e = Ee(t);
|
|
2154
|
+
return e.type.name === "codeBlock" && e.attrs.class === n.className;
|
|
2124
2155
|
}
|
|
2125
2156
|
case "blockquote": {
|
|
2126
|
-
const e =
|
|
2127
|
-
return !!e && e.attrs.class ===
|
|
2157
|
+
const e = Tt(t, "blockquote");
|
|
2158
|
+
return !!e && e.attrs.class === n.className;
|
|
2128
2159
|
}
|
|
2129
2160
|
case "mark":
|
|
2130
|
-
return t.isActive(
|
|
2161
|
+
return t.isActive(n.markName);
|
|
2131
2162
|
default:
|
|
2132
2163
|
return !1;
|
|
2133
2164
|
}
|
|
2134
2165
|
}
|
|
2135
|
-
function
|
|
2166
|
+
function Hl(t, n) {
|
|
2136
2167
|
const e = t.chain().focus(), { $from: a } = t.state.selection;
|
|
2137
|
-
switch (
|
|
2168
|
+
switch (n.kind !== "mark" && a.depth === 0 && t.state.doc.content.size > 0 && e.setTextSelection(Qe(t).pos), n.kind) {
|
|
2138
2169
|
case "heading":
|
|
2139
|
-
|
|
2170
|
+
$e(t, n) ? e.setParagraph().updateAttributes("paragraph", { class: null }).run() : e.setNode("heading", { level: n.level }).updateAttributes("heading", { class: n.className }).run();
|
|
2140
2171
|
break;
|
|
2141
2172
|
case "paragraph":
|
|
2142
|
-
|
|
2173
|
+
$e(t, n) ? e.setParagraph().updateAttributes("paragraph", { class: null }).run() : e.setParagraph().updateAttributes("paragraph", { class: n.className }).run();
|
|
2143
2174
|
break;
|
|
2144
2175
|
case "blockquote":
|
|
2145
|
-
|
|
2176
|
+
$e(t, n) ? e.unsetBlockquote().run() : Tt(t, "blockquote") ? e.updateAttributes("blockquote", { class: n.className }).run() : e.setBlockquote().updateAttributes("blockquote", { class: n.className }).run();
|
|
2146
2177
|
break;
|
|
2147
2178
|
case "codeBlock":
|
|
2148
|
-
|
|
2179
|
+
$e(t, n) ? e.toggleCodeBlock().updateAttributes("paragraph", { class: null }).run() : Ee(t).type.name === "codeBlock" ? e.updateAttributes("codeBlock", { class: n.className }).run() : e.setCodeBlock().updateAttributes("codeBlock", { class: n.className }).run();
|
|
2149
2180
|
break;
|
|
2150
2181
|
case "mark":
|
|
2151
|
-
e.toggleMark(
|
|
2182
|
+
e.toggleMark(n.markName).run();
|
|
2152
2183
|
break;
|
|
2153
2184
|
}
|
|
2154
2185
|
}
|
|
2155
|
-
function
|
|
2156
|
-
return new Promise((
|
|
2186
|
+
function _t(t) {
|
|
2187
|
+
return new Promise((n, e) => {
|
|
2157
2188
|
const a = new FileReader();
|
|
2158
|
-
a.onload = () =>
|
|
2189
|
+
a.onload = () => n(a.result), a.onerror = () => e(a.error), a.readAsDataURL(t);
|
|
2159
2190
|
});
|
|
2160
2191
|
}
|
|
2161
|
-
function
|
|
2192
|
+
function Ol(t) {
|
|
2162
2193
|
if (!t) return [];
|
|
2163
|
-
const
|
|
2194
|
+
const n = [];
|
|
2164
2195
|
return Array.from(t.items || []).forEach((e) => {
|
|
2165
2196
|
if (e.kind === "file") {
|
|
2166
2197
|
const a = e.getAsFile();
|
|
2167
|
-
a && a.type.startsWith("image/") &&
|
|
2198
|
+
a && a.type.startsWith("image/") && n.push(a);
|
|
2168
2199
|
}
|
|
2169
|
-
}),
|
|
2170
|
-
e.type.startsWith("image/") &&
|
|
2171
|
-
}),
|
|
2200
|
+
}), n.length === 0 && Array.from(t.files || []).forEach((e) => {
|
|
2201
|
+
e.type.startsWith("image/") && n.push(e);
|
|
2202
|
+
}), n;
|
|
2172
2203
|
}
|
|
2173
|
-
function
|
|
2174
|
-
let
|
|
2204
|
+
function Vt(t) {
|
|
2205
|
+
let n = 0;
|
|
2175
2206
|
return t.forEach((e) => {
|
|
2176
|
-
e.type.name === "image" ?
|
|
2177
|
-
}),
|
|
2207
|
+
e.type.name === "image" ? n += 1 : e.content.size && (n += Vt(e.content));
|
|
2208
|
+
}), n;
|
|
2178
2209
|
}
|
|
2179
|
-
function
|
|
2210
|
+
function jt(t, n, e) {
|
|
2180
2211
|
const a = [];
|
|
2181
2212
|
return t.forEach((r) => {
|
|
2182
|
-
r.type.name === "image" && e.index <
|
|
2183
|
-
}),
|
|
2213
|
+
r.type.name === "image" && e.index < n.length ? (a.push(r.type.create(ee(z({}, r.attrs), { src: n[e.index] }), r.content, r.marks)), e.index += 1) : r.content.size ? a.push(r.copy(jt(r.content, n, e))) : a.push(r);
|
|
2214
|
+
}), gn.fromArray(a);
|
|
2184
2215
|
}
|
|
2185
|
-
function
|
|
2186
|
-
return (
|
|
2187
|
-
const r =
|
|
2188
|
-
return r.length === 0 ? !1 : (e.preventDefault(), Promise.all(r.map(
|
|
2216
|
+
function Wl(t) {
|
|
2217
|
+
return (n, e, a) => {
|
|
2218
|
+
const r = Ol(e.clipboardData);
|
|
2219
|
+
return r.length === 0 ? !1 : (e.preventDefault(), Promise.all(r.map(_t)).then((u) => {
|
|
2189
2220
|
var d;
|
|
2190
|
-
if (
|
|
2191
|
-
const
|
|
2192
|
-
|
|
2221
|
+
if (Vt(a.content) > 0) {
|
|
2222
|
+
const h = jt(a.content, u, { index: 0 }), k = new hn(h, a.openStart, a.openEnd);
|
|
2223
|
+
n.dispatch(n.state.tr.replaceSelection(k).scrollIntoView());
|
|
2193
2224
|
return;
|
|
2194
2225
|
}
|
|
2195
|
-
(d = t()) == null || d.chain().focus().insertContent(
|
|
2226
|
+
(d = t()) == null || d.chain().focus().insertContent(u.map((h) => ({ type: "image", attrs: { src: h } }))).run();
|
|
2196
2227
|
}), !0);
|
|
2197
2228
|
};
|
|
2198
2229
|
}
|
|
2199
|
-
const
|
|
2230
|
+
const ql = yn.extend({
|
|
2200
2231
|
name: "link",
|
|
2201
2232
|
addAttributes() {
|
|
2202
2233
|
var t;
|
|
2203
|
-
return
|
|
2234
|
+
return ee(z({}, (t = this.parent) == null ? void 0 : t.call(this)), {
|
|
2204
2235
|
download: {
|
|
2205
2236
|
default: null,
|
|
2206
|
-
parseHTML: (
|
|
2207
|
-
renderHTML: (
|
|
2237
|
+
parseHTML: (n) => n.getAttribute("download"),
|
|
2238
|
+
renderHTML: (n) => n.download ? { download: n.download } : {}
|
|
2208
2239
|
}
|
|
2209
2240
|
});
|
|
2210
2241
|
}
|
|
2211
2242
|
});
|
|
2212
|
-
function
|
|
2213
|
-
let
|
|
2243
|
+
function Kl(t) {
|
|
2244
|
+
let n;
|
|
2214
2245
|
try {
|
|
2215
|
-
|
|
2246
|
+
n = new URL(t);
|
|
2216
2247
|
} catch (a) {
|
|
2217
2248
|
return null;
|
|
2218
2249
|
}
|
|
2219
|
-
const e =
|
|
2250
|
+
const e = n.hostname.replace(/^www\.|^m\./, "");
|
|
2220
2251
|
if (e === "youtube.com") {
|
|
2221
|
-
const a =
|
|
2252
|
+
const a = n.searchParams.get("v");
|
|
2222
2253
|
if (a) return `https://www.youtube.com/embed/${a}`;
|
|
2223
|
-
const r =
|
|
2254
|
+
const r = n.pathname.match(/^\/embed\/([\w-]+)/);
|
|
2224
2255
|
if (r) return `https://www.youtube.com/embed/${r[1]}`;
|
|
2225
|
-
const
|
|
2226
|
-
return
|
|
2256
|
+
const u = n.pathname.match(/^\/shorts\/([\w-]+)/);
|
|
2257
|
+
return u ? `https://www.youtube.com/embed/${u[1]}` : null;
|
|
2227
2258
|
}
|
|
2228
2259
|
if (e === "youtu.be") {
|
|
2229
|
-
const a =
|
|
2260
|
+
const a = n.pathname.slice(1);
|
|
2230
2261
|
return a ? `https://www.youtube.com/embed/${a}` : null;
|
|
2231
2262
|
}
|
|
2232
2263
|
if (e === "vimeo.com") {
|
|
2233
|
-
const a =
|
|
2264
|
+
const a = n.pathname.split("/").filter(Boolean).pop();
|
|
2234
2265
|
return a && /^\d+$/.test(a) ? `https://player.vimeo.com/video/${a}` : null;
|
|
2235
2266
|
}
|
|
2236
2267
|
return null;
|
|
2237
2268
|
}
|
|
2238
|
-
const
|
|
2269
|
+
const Gl = bn.create({
|
|
2239
2270
|
name: "mediaEmbed",
|
|
2240
2271
|
group: "block",
|
|
2241
2272
|
atom: !0,
|
|
@@ -2251,7 +2282,7 @@ const Wn = vl.create({
|
|
|
2251
2282
|
renderHTML({ HTMLAttributes: t }) {
|
|
2252
2283
|
return [
|
|
2253
2284
|
"iframe",
|
|
2254
|
-
|
|
2285
|
+
vt(
|
|
2255
2286
|
{
|
|
2256
2287
|
class: "media-embed",
|
|
2257
2288
|
frameborder: "0",
|
|
@@ -2263,28 +2294,28 @@ const Wn = vl.create({
|
|
|
2263
2294
|
];
|
|
2264
2295
|
}
|
|
2265
2296
|
});
|
|
2266
|
-
function
|
|
2267
|
-
const
|
|
2297
|
+
function Bt(t) {
|
|
2298
|
+
const n = M(0);
|
|
2268
2299
|
let e;
|
|
2269
2300
|
const a = () => {
|
|
2270
|
-
|
|
2271
|
-
}, r = (
|
|
2272
|
-
e == null || e.off("transaction", a), e =
|
|
2301
|
+
n.value += 1;
|
|
2302
|
+
}, r = (u) => {
|
|
2303
|
+
e == null || e.off("transaction", a), e = u, e == null || e.on("transaction", a);
|
|
2273
2304
|
};
|
|
2274
|
-
return
|
|
2305
|
+
return me(t, r, { immediate: !0 }), Ye(() => r(void 0)), n;
|
|
2275
2306
|
}
|
|
2276
|
-
const
|
|
2307
|
+
const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex justify-space-between align-center ga-2 mt-2" }, Jl = { class: "d-flex justify-end mt-2" }, Ql = /* @__PURE__ */ te({
|
|
2277
2308
|
__name: "rtf-toolbar",
|
|
2278
2309
|
props: {
|
|
2279
2310
|
editor: {}
|
|
2280
2311
|
},
|
|
2281
2312
|
setup(t) {
|
|
2282
|
-
const
|
|
2313
|
+
const n = t, e = we, a = x(() => n.editor), r = Bt(a), u = x(() => {
|
|
2283
2314
|
var o;
|
|
2284
|
-
return !!((o =
|
|
2285
|
-
}), d =
|
|
2315
|
+
return !!((o = n.editor) != null && o.isEditable);
|
|
2316
|
+
}), d = x(() => {
|
|
2286
2317
|
r.value;
|
|
2287
|
-
const o =
|
|
2318
|
+
const o = n.editor;
|
|
2288
2319
|
return {
|
|
2289
2320
|
canUndo: !!(o != null && o.can().undo()),
|
|
2290
2321
|
canRedo: !!(o != null && o.can().redo()),
|
|
@@ -2302,7 +2333,7 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
2302
2333
|
canLift: !!(o != null && o.can().liftListItem("listItem")),
|
|
2303
2334
|
canSink: !!(o != null && o.can().sinkListItem("listItem"))
|
|
2304
2335
|
};
|
|
2305
|
-
}),
|
|
2336
|
+
}), h = [
|
|
2306
2337
|
{ level: 0, label: e.Paragraph },
|
|
2307
2338
|
{ level: 1, label: e.Heading1 },
|
|
2308
2339
|
{ level: 2, label: e.Heading2 },
|
|
@@ -2311,82 +2342,82 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
2311
2342
|
{ level: 5, label: e.Heading5 },
|
|
2312
2343
|
{ level: 6, label: e.Heading6 }
|
|
2313
2344
|
];
|
|
2314
|
-
function
|
|
2315
|
-
var
|
|
2316
|
-
return r.value, o === 0 ? !!((
|
|
2345
|
+
function k(o) {
|
|
2346
|
+
var c, m;
|
|
2347
|
+
return r.value, o === 0 ? !!((c = a.value) != null && c.isActive("paragraph")) : !!((m = a.value) != null && m.isActive("heading", { level: o }));
|
|
2317
2348
|
}
|
|
2318
|
-
const f =
|
|
2349
|
+
const f = x(
|
|
2319
2350
|
() => {
|
|
2320
|
-
var o,
|
|
2321
|
-
return (
|
|
2351
|
+
var o, c;
|
|
2352
|
+
return (c = (o = h.find((m) => k(m.level))) == null ? void 0 : o.label) != null ? c : e.Paragraph;
|
|
2322
2353
|
}
|
|
2323
2354
|
);
|
|
2324
2355
|
function v(o) {
|
|
2325
2356
|
var m;
|
|
2326
|
-
const
|
|
2327
|
-
|
|
2357
|
+
const c = (m = a.value) == null ? void 0 : m.chain().focus();
|
|
2358
|
+
c && (o === 0 ? c.setParagraph().run() : c.toggleHeading({ level: o }).run());
|
|
2328
2359
|
}
|
|
2329
|
-
const
|
|
2330
|
-
function
|
|
2331
|
-
return r.value, !!a.value &&
|
|
2360
|
+
const g = Fl;
|
|
2361
|
+
function T(o) {
|
|
2362
|
+
return r.value, !!a.value && $e(a.value, o);
|
|
2332
2363
|
}
|
|
2333
|
-
const
|
|
2334
|
-
function
|
|
2335
|
-
var
|
|
2336
|
-
const o = (m = (
|
|
2337
|
-
|
|
2364
|
+
const $ = M(""), C = M(!1);
|
|
2365
|
+
function j() {
|
|
2366
|
+
var c, m, _;
|
|
2367
|
+
const o = (m = (c = a.value) == null ? void 0 : c.getAttributes("link")) != null ? m : {};
|
|
2368
|
+
$.value = (_ = o.href) != null ? _ : "", C.value = !!o.download;
|
|
2338
2369
|
}
|
|
2339
|
-
function
|
|
2370
|
+
function P() {
|
|
2340
2371
|
var o;
|
|
2341
|
-
|
|
2372
|
+
$.value && ((o = a.value) == null || o.chain().focus().extendMarkRange("link").setLink({ href: $.value }).updateAttributes("link", { download: C.value ? "file" : null }).run());
|
|
2342
2373
|
}
|
|
2343
|
-
function
|
|
2374
|
+
function D() {
|
|
2344
2375
|
var o;
|
|
2345
2376
|
(o = a.value) == null || o.chain().focus().unsetLink().run();
|
|
2346
2377
|
}
|
|
2347
|
-
const
|
|
2348
|
-
function
|
|
2378
|
+
const b = M(""), S = M();
|
|
2379
|
+
function H() {
|
|
2349
2380
|
var o;
|
|
2350
|
-
|
|
2381
|
+
b.value && ((o = a.value) == null || o.chain().focus().setImage({ src: b.value }).run(), b.value = "");
|
|
2351
2382
|
}
|
|
2352
|
-
function
|
|
2383
|
+
function K() {
|
|
2353
2384
|
var o;
|
|
2354
2385
|
(o = S.value) == null || o.click();
|
|
2355
2386
|
}
|
|
2356
|
-
function
|
|
2387
|
+
function W(o) {
|
|
2357
2388
|
return ge(this, null, function* () {
|
|
2358
|
-
var _,
|
|
2359
|
-
const
|
|
2360
|
-
if (!
|
|
2361
|
-
const m = yield
|
|
2362
|
-
(
|
|
2389
|
+
var _, N;
|
|
2390
|
+
const c = (_ = o.target.files) == null ? void 0 : _[0];
|
|
2391
|
+
if (!c) return;
|
|
2392
|
+
const m = yield _t(c);
|
|
2393
|
+
(N = a.value) == null || N.chain().focus().setImage({ src: m }).run(), o.target.value = "";
|
|
2363
2394
|
});
|
|
2364
2395
|
}
|
|
2365
|
-
const
|
|
2366
|
-
function
|
|
2396
|
+
const L = M("");
|
|
2397
|
+
function w() {
|
|
2367
2398
|
var m;
|
|
2368
|
-
if (!
|
|
2369
|
-
const o =
|
|
2370
|
-
|
|
2371
|
-
}
|
|
2372
|
-
return (o,
|
|
2373
|
-
const m =
|
|
2374
|
-
return
|
|
2375
|
-
class: ue(["rtf-toolbar", { "rtf-toolbar--disabled": !
|
|
2399
|
+
if (!L.value) return;
|
|
2400
|
+
const o = Kl(L.value), c = (m = a.value) == null ? void 0 : m.chain().focus();
|
|
2401
|
+
c && (o ? c.insertContent({ type: "mediaEmbed", attrs: { src: o } }).run() : c.insertContent({ type: "text", text: L.value, marks: [{ type: "link", attrs: { href: L.value } }] }).run(), L.value = "");
|
|
2402
|
+
}
|
|
2403
|
+
return (o, c) => {
|
|
2404
|
+
const m = R("v-btn"), _ = R("v-divider"), N = R("v-list-item-title"), O = R("v-list-item"), ne = R("v-list"), A = R("v-menu"), q = R("v-text-field"), Q = R("v-checkbox"), le = R("v-card");
|
|
2405
|
+
return V(), Z("div", {
|
|
2406
|
+
class: ue(["rtf-toolbar", { "rtf-toolbar--disabled": !u.value }])
|
|
2376
2407
|
}, [
|
|
2377
2408
|
i(m, {
|
|
2378
2409
|
icon: "",
|
|
2379
2410
|
size: "small",
|
|
2380
2411
|
variant: "text",
|
|
2381
|
-
title:
|
|
2382
|
-
disabled: !
|
|
2383
|
-
onClick:
|
|
2384
|
-
var
|
|
2385
|
-
return (
|
|
2412
|
+
title: l(e).Undo,
|
|
2413
|
+
disabled: !u.value || !d.value.canUndo,
|
|
2414
|
+
onClick: c[0] || (c[0] = (y) => {
|
|
2415
|
+
var p;
|
|
2416
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().undo().run();
|
|
2386
2417
|
})
|
|
2387
2418
|
}, {
|
|
2388
2419
|
default: s(() => [
|
|
2389
|
-
i(
|
|
2420
|
+
i(l(B), { name: "mdi-undo" })
|
|
2390
2421
|
]),
|
|
2391
2422
|
_: 1
|
|
2392
2423
|
}, 8, ["title", "disabled"]),
|
|
@@ -2394,15 +2425,15 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
2394
2425
|
icon: "",
|
|
2395
2426
|
size: "small",
|
|
2396
2427
|
variant: "text",
|
|
2397
|
-
title:
|
|
2398
|
-
disabled: !
|
|
2399
|
-
onClick:
|
|
2400
|
-
var
|
|
2401
|
-
return (
|
|
2428
|
+
title: l(e).Redo,
|
|
2429
|
+
disabled: !u.value || !d.value.canRedo,
|
|
2430
|
+
onClick: c[1] || (c[1] = (y) => {
|
|
2431
|
+
var p;
|
|
2432
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().redo().run();
|
|
2402
2433
|
})
|
|
2403
2434
|
}, {
|
|
2404
2435
|
default: s(() => [
|
|
2405
|
-
i(
|
|
2436
|
+
i(l(B), { name: "mdi-redo" })
|
|
2406
2437
|
]),
|
|
2407
2438
|
_: 1
|
|
2408
2439
|
}, 8, ["title", "disabled"]),
|
|
@@ -2415,15 +2446,15 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
2415
2446
|
icon: "",
|
|
2416
2447
|
size: "small",
|
|
2417
2448
|
variant: "text",
|
|
2418
|
-
title:
|
|
2419
|
-
disabled: !
|
|
2420
|
-
onClick:
|
|
2421
|
-
var
|
|
2422
|
-
return (
|
|
2449
|
+
title: l(e).SelectAll,
|
|
2450
|
+
disabled: !u.value,
|
|
2451
|
+
onClick: c[2] || (c[2] = (y) => {
|
|
2452
|
+
var p;
|
|
2453
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().selectAll().run();
|
|
2423
2454
|
})
|
|
2424
2455
|
}, {
|
|
2425
2456
|
default: s(() => [
|
|
2426
|
-
i(
|
|
2457
|
+
i(l(B), { name: "mdi-select-all" })
|
|
2427
2458
|
]),
|
|
2428
2459
|
_: 1
|
|
2429
2460
|
}, 8, ["title", "disabled"]),
|
|
@@ -2432,31 +2463,31 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
2432
2463
|
inset: "",
|
|
2433
2464
|
class: "mx-1"
|
|
2434
2465
|
}),
|
|
2435
|
-
i(
|
|
2466
|
+
i(A, null, {
|
|
2436
2467
|
activator: s(({ props: y }) => [
|
|
2437
|
-
i(m,
|
|
2468
|
+
i(m, X({
|
|
2438
2469
|
size: "small",
|
|
2439
2470
|
variant: "text",
|
|
2440
|
-
disabled: !
|
|
2471
|
+
disabled: !u.value
|
|
2441
2472
|
}, y, { "append-icon": "mdi-chevron-down" }), {
|
|
2442
2473
|
default: s(() => [
|
|
2443
|
-
|
|
2474
|
+
J(G(f.value), 1)
|
|
2444
2475
|
]),
|
|
2445
2476
|
_: 1
|
|
2446
2477
|
}, 16, ["disabled"])
|
|
2447
2478
|
]),
|
|
2448
2479
|
default: s(() => [
|
|
2449
|
-
i(
|
|
2480
|
+
i(ne, { density: "compact" }, {
|
|
2450
2481
|
default: s(() => [
|
|
2451
|
-
(
|
|
2482
|
+
(V(), Z(Se, null, Xe(h, (y) => i(O, {
|
|
2452
2483
|
key: y.level,
|
|
2453
|
-
active:
|
|
2454
|
-
onClick: (
|
|
2484
|
+
active: k(y.level),
|
|
2485
|
+
onClick: (p) => v(y.level)
|
|
2455
2486
|
}, {
|
|
2456
2487
|
default: s(() => [
|
|
2457
|
-
i(
|
|
2488
|
+
i(N, null, {
|
|
2458
2489
|
default: s(() => [
|
|
2459
|
-
|
|
2490
|
+
J(G(y.label), 1)
|
|
2460
2491
|
]),
|
|
2461
2492
|
_: 2
|
|
2462
2493
|
}, 1024)
|
|
@@ -2469,31 +2500,31 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
2469
2500
|
]),
|
|
2470
2501
|
_: 1
|
|
2471
2502
|
}),
|
|
2472
|
-
i(
|
|
2503
|
+
i(A, null, {
|
|
2473
2504
|
activator: s(({ props: y }) => [
|
|
2474
|
-
i(m,
|
|
2505
|
+
i(m, X({
|
|
2475
2506
|
size: "small",
|
|
2476
2507
|
variant: "text",
|
|
2477
|
-
disabled: !
|
|
2508
|
+
disabled: !u.value
|
|
2478
2509
|
}, y, { "append-icon": "mdi-chevron-down" }), {
|
|
2479
2510
|
default: s(() => [
|
|
2480
|
-
|
|
2511
|
+
J(G(l(e).Style), 1)
|
|
2481
2512
|
]),
|
|
2482
2513
|
_: 1
|
|
2483
2514
|
}, 16, ["disabled"])
|
|
2484
2515
|
]),
|
|
2485
2516
|
default: s(() => [
|
|
2486
|
-
i(
|
|
2517
|
+
i(ne, { density: "compact" }, {
|
|
2487
2518
|
default: s(() => [
|
|
2488
|
-
(
|
|
2519
|
+
(V(!0), Z(Se, null, Xe(l(g), (y) => (V(), F(O, {
|
|
2489
2520
|
key: y.key,
|
|
2490
|
-
active:
|
|
2491
|
-
onClick: (
|
|
2521
|
+
active: T(y),
|
|
2522
|
+
onClick: (p) => a.value && l(Hl)(a.value, y)
|
|
2492
2523
|
}, {
|
|
2493
2524
|
default: s(() => [
|
|
2494
|
-
i(
|
|
2525
|
+
i(N, null, {
|
|
2495
2526
|
default: s(() => [
|
|
2496
|
-
|
|
2527
|
+
J(G(l(e)[y.key]), 1)
|
|
2497
2528
|
]),
|
|
2498
2529
|
_: 2
|
|
2499
2530
|
}, 1024)
|
|
@@ -2515,16 +2546,16 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
2515
2546
|
icon: "",
|
|
2516
2547
|
size: "small",
|
|
2517
2548
|
variant: "text",
|
|
2518
|
-
title:
|
|
2519
|
-
disabled: !
|
|
2549
|
+
title: l(e).Bold,
|
|
2550
|
+
disabled: !u.value,
|
|
2520
2551
|
active: d.value.bold,
|
|
2521
|
-
onClick:
|
|
2522
|
-
var
|
|
2523
|
-
return (
|
|
2552
|
+
onClick: c[3] || (c[3] = (y) => {
|
|
2553
|
+
var p;
|
|
2554
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().toggleBold().run();
|
|
2524
2555
|
})
|
|
2525
2556
|
}, {
|
|
2526
2557
|
default: s(() => [
|
|
2527
|
-
i(
|
|
2558
|
+
i(l(B), { name: "mdi-format-bold" })
|
|
2528
2559
|
]),
|
|
2529
2560
|
_: 1
|
|
2530
2561
|
}, 8, ["title", "disabled", "active"]),
|
|
@@ -2532,16 +2563,16 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
2532
2563
|
icon: "",
|
|
2533
2564
|
size: "small",
|
|
2534
2565
|
variant: "text",
|
|
2535
|
-
title:
|
|
2536
|
-
disabled: !
|
|
2566
|
+
title: l(e).Italic,
|
|
2567
|
+
disabled: !u.value,
|
|
2537
2568
|
active: d.value.italic,
|
|
2538
|
-
onClick:
|
|
2539
|
-
var
|
|
2540
|
-
return (
|
|
2569
|
+
onClick: c[4] || (c[4] = (y) => {
|
|
2570
|
+
var p;
|
|
2571
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().toggleItalic().run();
|
|
2541
2572
|
})
|
|
2542
2573
|
}, {
|
|
2543
2574
|
default: s(() => [
|
|
2544
|
-
i(
|
|
2575
|
+
i(l(B), { name: "mdi-format-italic" })
|
|
2545
2576
|
]),
|
|
2546
2577
|
_: 1
|
|
2547
2578
|
}, 8, ["title", "disabled", "active"]),
|
|
@@ -2554,80 +2585,80 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
2554
2585
|
icon: "",
|
|
2555
2586
|
size: "small",
|
|
2556
2587
|
variant: "text",
|
|
2557
|
-
title:
|
|
2558
|
-
disabled: !
|
|
2559
|
-
onClick:
|
|
2560
|
-
var
|
|
2561
|
-
return (
|
|
2588
|
+
title: l(e).HorizontalLine,
|
|
2589
|
+
disabled: !u.value,
|
|
2590
|
+
onClick: c[5] || (c[5] = (y) => {
|
|
2591
|
+
var p;
|
|
2592
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().setHorizontalRule().run();
|
|
2562
2593
|
})
|
|
2563
2594
|
}, {
|
|
2564
2595
|
default: s(() => [
|
|
2565
|
-
i(
|
|
2596
|
+
i(l(B), { name: "mdi-minus" })
|
|
2566
2597
|
]),
|
|
2567
2598
|
_: 1
|
|
2568
2599
|
}, 8, ["title", "disabled"]),
|
|
2569
|
-
i(
|
|
2600
|
+
i(A, {
|
|
2570
2601
|
"close-on-content-click": !1,
|
|
2571
|
-
"onUpdate:modelValue":
|
|
2602
|
+
"onUpdate:modelValue": c[8] || (c[8] = (y) => y && j())
|
|
2572
2603
|
}, {
|
|
2573
2604
|
activator: s(({ props: y }) => [
|
|
2574
|
-
i(m,
|
|
2605
|
+
i(m, X({
|
|
2575
2606
|
icon: "",
|
|
2576
2607
|
size: "small",
|
|
2577
2608
|
variant: "text",
|
|
2578
|
-
title:
|
|
2579
|
-
disabled: !
|
|
2609
|
+
title: l(e).Link,
|
|
2610
|
+
disabled: !u.value,
|
|
2580
2611
|
active: d.value.link
|
|
2581
2612
|
}, y), {
|
|
2582
2613
|
default: s(() => [
|
|
2583
|
-
i(
|
|
2614
|
+
i(l(B), { name: "mdi-link-variant" })
|
|
2584
2615
|
]),
|
|
2585
2616
|
_: 1
|
|
2586
2617
|
}, 16, ["title", "disabled", "active"])
|
|
2587
2618
|
]),
|
|
2588
2619
|
default: s(() => [
|
|
2589
|
-
i(
|
|
2620
|
+
i(le, {
|
|
2590
2621
|
"min-width": "280",
|
|
2591
2622
|
class: "pa-3"
|
|
2592
2623
|
}, {
|
|
2593
2624
|
default: s(() => [
|
|
2594
|
-
i(
|
|
2595
|
-
modelValue:
|
|
2596
|
-
"onUpdate:modelValue":
|
|
2597
|
-
label:
|
|
2625
|
+
i(q, {
|
|
2626
|
+
modelValue: $.value,
|
|
2627
|
+
"onUpdate:modelValue": c[6] || (c[6] = (y) => $.value = y),
|
|
2628
|
+
label: l(e).LinkUrl,
|
|
2598
2629
|
density: "compact",
|
|
2599
2630
|
"hide-details": "",
|
|
2600
2631
|
autofocus: "",
|
|
2601
|
-
onKeydown: De(
|
|
2632
|
+
onKeydown: De(P, ["enter"])
|
|
2602
2633
|
}, null, 8, ["modelValue", "label"]),
|
|
2603
|
-
i(
|
|
2604
|
-
modelValue:
|
|
2605
|
-
"onUpdate:modelValue":
|
|
2606
|
-
label:
|
|
2634
|
+
i(Q, {
|
|
2635
|
+
modelValue: C.value,
|
|
2636
|
+
"onUpdate:modelValue": c[7] || (c[7] = (y) => C.value = y),
|
|
2637
|
+
label: l(e).Downloadable,
|
|
2607
2638
|
density: "compact",
|
|
2608
2639
|
"hide-details": "",
|
|
2609
2640
|
class: "mt-1"
|
|
2610
2641
|
}, null, 8, ["modelValue", "label"]),
|
|
2611
|
-
|
|
2612
|
-
d.value.link ? (
|
|
2642
|
+
oe("div", Xl, [
|
|
2643
|
+
d.value.link ? (V(), F(m, {
|
|
2613
2644
|
key: 0,
|
|
2614
2645
|
size: "small",
|
|
2615
2646
|
variant: "text",
|
|
2616
|
-
onClick:
|
|
2647
|
+
onClick: D
|
|
2617
2648
|
}, {
|
|
2618
2649
|
default: s(() => [
|
|
2619
|
-
|
|
2650
|
+
J(G(l(e).LinkRemove), 1)
|
|
2620
2651
|
]),
|
|
2621
2652
|
_: 1
|
|
2622
|
-
})) :
|
|
2653
|
+
})) : Y("", !0),
|
|
2623
2654
|
i(m, {
|
|
2624
2655
|
size: "small",
|
|
2625
2656
|
color: "primary",
|
|
2626
2657
|
variant: "tonal",
|
|
2627
|
-
onClick:
|
|
2658
|
+
onClick: P
|
|
2628
2659
|
}, {
|
|
2629
2660
|
default: s(() => [
|
|
2630
|
-
|
|
2661
|
+
J(G(l(e).LinkApply), 1)
|
|
2631
2662
|
]),
|
|
2632
2663
|
_: 1
|
|
2633
2664
|
})
|
|
@@ -2638,45 +2669,45 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
2638
2669
|
]),
|
|
2639
2670
|
_: 1
|
|
2640
2671
|
}),
|
|
2641
|
-
i(
|
|
2672
|
+
i(A, { "close-on-content-click": !1 }, {
|
|
2642
2673
|
activator: s(({ props: y }) => [
|
|
2643
|
-
i(m,
|
|
2674
|
+
i(m, X({
|
|
2644
2675
|
icon: "",
|
|
2645
2676
|
size: "small",
|
|
2646
2677
|
variant: "text",
|
|
2647
|
-
title:
|
|
2648
|
-
disabled: !
|
|
2678
|
+
title: l(e).Image,
|
|
2679
|
+
disabled: !u.value
|
|
2649
2680
|
}, y), {
|
|
2650
2681
|
default: s(() => [
|
|
2651
|
-
i(
|
|
2682
|
+
i(l(B), { name: "mdi-image-plus" })
|
|
2652
2683
|
]),
|
|
2653
2684
|
_: 1
|
|
2654
2685
|
}, 16, ["title", "disabled"])
|
|
2655
2686
|
]),
|
|
2656
2687
|
default: s(() => [
|
|
2657
|
-
i(
|
|
2688
|
+
i(le, {
|
|
2658
2689
|
"min-width": "280",
|
|
2659
2690
|
class: "pa-3"
|
|
2660
2691
|
}, {
|
|
2661
2692
|
default: s(() => [
|
|
2662
|
-
i(
|
|
2663
|
-
modelValue:
|
|
2664
|
-
"onUpdate:modelValue":
|
|
2665
|
-
label:
|
|
2693
|
+
i(q, {
|
|
2694
|
+
modelValue: b.value,
|
|
2695
|
+
"onUpdate:modelValue": c[9] || (c[9] = (y) => b.value = y),
|
|
2696
|
+
label: l(e).ImageUrl,
|
|
2666
2697
|
density: "compact",
|
|
2667
2698
|
"hide-details": "",
|
|
2668
2699
|
autofocus: "",
|
|
2669
|
-
onKeydown: De(
|
|
2700
|
+
onKeydown: De(H, ["enter"])
|
|
2670
2701
|
}, null, 8, ["modelValue", "label"]),
|
|
2671
|
-
|
|
2702
|
+
oe("div", Yl, [
|
|
2672
2703
|
i(m, {
|
|
2673
2704
|
size: "small",
|
|
2674
2705
|
variant: "text",
|
|
2675
2706
|
"prepend-icon": "mdi-upload",
|
|
2676
|
-
onClick:
|
|
2707
|
+
onClick: K
|
|
2677
2708
|
}, {
|
|
2678
2709
|
default: s(() => [
|
|
2679
|
-
|
|
2710
|
+
J(G(l(e).ImageUpload), 1)
|
|
2680
2711
|
]),
|
|
2681
2712
|
_: 1
|
|
2682
2713
|
}),
|
|
@@ -2684,10 +2715,10 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
2684
2715
|
size: "small",
|
|
2685
2716
|
color: "primary",
|
|
2686
2717
|
variant: "tonal",
|
|
2687
|
-
onClick:
|
|
2718
|
+
onClick: H
|
|
2688
2719
|
}, {
|
|
2689
2720
|
default: s(() => [
|
|
2690
|
-
|
|
2721
|
+
J(G(l(e).ImageInsert), 1)
|
|
2691
2722
|
]),
|
|
2692
2723
|
_: 1
|
|
2693
2724
|
})
|
|
@@ -2698,53 +2729,53 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
2698
2729
|
]),
|
|
2699
2730
|
_: 1
|
|
2700
2731
|
}),
|
|
2701
|
-
|
|
2732
|
+
oe("input", {
|
|
2702
2733
|
ref_key: "imageInput",
|
|
2703
2734
|
ref: S,
|
|
2704
2735
|
type: "file",
|
|
2705
2736
|
accept: "image/*",
|
|
2706
2737
|
class: "d-none",
|
|
2707
|
-
onChange:
|
|
2738
|
+
onChange: W
|
|
2708
2739
|
}, null, 544),
|
|
2709
|
-
i(
|
|
2740
|
+
i(A, { "close-on-content-click": !1 }, {
|
|
2710
2741
|
activator: s(({ props: y }) => [
|
|
2711
|
-
i(m,
|
|
2742
|
+
i(m, X({
|
|
2712
2743
|
icon: "",
|
|
2713
2744
|
size: "small",
|
|
2714
2745
|
variant: "text",
|
|
2715
|
-
title:
|
|
2716
|
-
disabled: !
|
|
2746
|
+
title: l(e).MediaEmbed,
|
|
2747
|
+
disabled: !u.value
|
|
2717
2748
|
}, y), {
|
|
2718
2749
|
default: s(() => [
|
|
2719
|
-
i(
|
|
2750
|
+
i(l(B), { name: "mdi-video-plus" })
|
|
2720
2751
|
]),
|
|
2721
2752
|
_: 1
|
|
2722
2753
|
}, 16, ["title", "disabled"])
|
|
2723
2754
|
]),
|
|
2724
2755
|
default: s(() => [
|
|
2725
|
-
i(
|
|
2756
|
+
i(le, {
|
|
2726
2757
|
"min-width": "280",
|
|
2727
2758
|
class: "pa-3"
|
|
2728
2759
|
}, {
|
|
2729
2760
|
default: s(() => [
|
|
2730
|
-
i(
|
|
2731
|
-
modelValue:
|
|
2732
|
-
"onUpdate:modelValue":
|
|
2733
|
-
label:
|
|
2761
|
+
i(q, {
|
|
2762
|
+
modelValue: L.value,
|
|
2763
|
+
"onUpdate:modelValue": c[10] || (c[10] = (y) => L.value = y),
|
|
2764
|
+
label: l(e).MediaEmbedUrl,
|
|
2734
2765
|
density: "compact",
|
|
2735
2766
|
"hide-details": "",
|
|
2736
2767
|
autofocus: "",
|
|
2737
|
-
onKeydown: De(
|
|
2768
|
+
onKeydown: De(w, ["enter"])
|
|
2738
2769
|
}, null, 8, ["modelValue", "label"]),
|
|
2739
|
-
|
|
2770
|
+
oe("div", Jl, [
|
|
2740
2771
|
i(m, {
|
|
2741
2772
|
size: "small",
|
|
2742
2773
|
color: "primary",
|
|
2743
2774
|
variant: "tonal",
|
|
2744
|
-
onClick:
|
|
2775
|
+
onClick: w
|
|
2745
2776
|
}, {
|
|
2746
2777
|
default: s(() => [
|
|
2747
|
-
|
|
2778
|
+
J(G(l(e).MediaEmbedInsert), 1)
|
|
2748
2779
|
]),
|
|
2749
2780
|
_: 1
|
|
2750
2781
|
})
|
|
@@ -2755,37 +2786,37 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
2755
2786
|
]),
|
|
2756
2787
|
_: 1
|
|
2757
2788
|
}),
|
|
2758
|
-
i(
|
|
2789
|
+
i(A, null, {
|
|
2759
2790
|
activator: s(({ props: y }) => [
|
|
2760
|
-
i(m,
|
|
2791
|
+
i(m, X({
|
|
2761
2792
|
icon: "",
|
|
2762
2793
|
size: "small",
|
|
2763
2794
|
variant: "text",
|
|
2764
|
-
title:
|
|
2765
|
-
disabled: !
|
|
2795
|
+
title: l(e).Table,
|
|
2796
|
+
disabled: !u.value
|
|
2766
2797
|
}, y), {
|
|
2767
2798
|
default: s(() => [
|
|
2768
|
-
i(
|
|
2799
|
+
i(l(B), { name: "mdi-table" })
|
|
2769
2800
|
]),
|
|
2770
2801
|
_: 1
|
|
2771
2802
|
}, 16, ["title", "disabled"])
|
|
2772
2803
|
]),
|
|
2773
2804
|
default: s(() => [
|
|
2774
|
-
i(
|
|
2805
|
+
i(ne, { density: "compact" }, {
|
|
2775
2806
|
default: s(() => [
|
|
2776
|
-
i(
|
|
2777
|
-
onClick:
|
|
2778
|
-
var
|
|
2779
|
-
return (
|
|
2807
|
+
i(O, {
|
|
2808
|
+
onClick: c[11] || (c[11] = (y) => {
|
|
2809
|
+
var p;
|
|
2810
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: !0 }).run();
|
|
2780
2811
|
})
|
|
2781
2812
|
}, {
|
|
2782
2813
|
prepend: s(() => [
|
|
2783
|
-
i(
|
|
2814
|
+
i(l(B), { name: "mdi-table-plus" })
|
|
2784
2815
|
]),
|
|
2785
2816
|
default: s(() => [
|
|
2786
|
-
i(
|
|
2817
|
+
i(N, null, {
|
|
2787
2818
|
default: s(() => [
|
|
2788
|
-
|
|
2819
|
+
J(G(l(e).TableInsert), 1)
|
|
2789
2820
|
]),
|
|
2790
2821
|
_: 1
|
|
2791
2822
|
})
|
|
@@ -2793,60 +2824,60 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
2793
2824
|
_: 1
|
|
2794
2825
|
}),
|
|
2795
2826
|
i(_),
|
|
2796
|
-
i(
|
|
2827
|
+
i(O, {
|
|
2797
2828
|
disabled: !d.value.inTable,
|
|
2798
|
-
onClick:
|
|
2799
|
-
var
|
|
2800
|
-
return (
|
|
2829
|
+
onClick: c[12] || (c[12] = (y) => {
|
|
2830
|
+
var p;
|
|
2831
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().addRowBefore().run();
|
|
2801
2832
|
})
|
|
2802
2833
|
}, {
|
|
2803
2834
|
prepend: s(() => [
|
|
2804
|
-
i(
|
|
2835
|
+
i(l(B), { name: "mdi-table-row-plus-before" })
|
|
2805
2836
|
]),
|
|
2806
2837
|
default: s(() => [
|
|
2807
|
-
i(
|
|
2838
|
+
i(N, null, {
|
|
2808
2839
|
default: s(() => [
|
|
2809
|
-
|
|
2840
|
+
J(G(l(e).TableAddRowAbove), 1)
|
|
2810
2841
|
]),
|
|
2811
2842
|
_: 1
|
|
2812
2843
|
})
|
|
2813
2844
|
]),
|
|
2814
2845
|
_: 1
|
|
2815
2846
|
}, 8, ["disabled"]),
|
|
2816
|
-
i(
|
|
2847
|
+
i(O, {
|
|
2817
2848
|
disabled: !d.value.inTable,
|
|
2818
|
-
onClick:
|
|
2819
|
-
var
|
|
2820
|
-
return (
|
|
2849
|
+
onClick: c[13] || (c[13] = (y) => {
|
|
2850
|
+
var p;
|
|
2851
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().addRowAfter().run();
|
|
2821
2852
|
})
|
|
2822
2853
|
}, {
|
|
2823
2854
|
prepend: s(() => [
|
|
2824
|
-
i(
|
|
2855
|
+
i(l(B), { name: "mdi-table-row-plus-after" })
|
|
2825
2856
|
]),
|
|
2826
2857
|
default: s(() => [
|
|
2827
|
-
i(
|
|
2858
|
+
i(N, null, {
|
|
2828
2859
|
default: s(() => [
|
|
2829
|
-
|
|
2860
|
+
J(G(l(e).TableAddRowBelow), 1)
|
|
2830
2861
|
]),
|
|
2831
2862
|
_: 1
|
|
2832
2863
|
})
|
|
2833
2864
|
]),
|
|
2834
2865
|
_: 1
|
|
2835
2866
|
}, 8, ["disabled"]),
|
|
2836
|
-
i(
|
|
2867
|
+
i(O, {
|
|
2837
2868
|
disabled: !d.value.inTable,
|
|
2838
|
-
onClick:
|
|
2839
|
-
var
|
|
2840
|
-
return (
|
|
2869
|
+
onClick: c[14] || (c[14] = (y) => {
|
|
2870
|
+
var p;
|
|
2871
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().deleteRow().run();
|
|
2841
2872
|
})
|
|
2842
2873
|
}, {
|
|
2843
2874
|
prepend: s(() => [
|
|
2844
|
-
i(
|
|
2875
|
+
i(l(B), { name: "mdi-table-row-remove" })
|
|
2845
2876
|
]),
|
|
2846
2877
|
default: s(() => [
|
|
2847
|
-
i(
|
|
2878
|
+
i(N, null, {
|
|
2848
2879
|
default: s(() => [
|
|
2849
|
-
|
|
2880
|
+
J(G(l(e).TableDeleteRow), 1)
|
|
2850
2881
|
]),
|
|
2851
2882
|
_: 1
|
|
2852
2883
|
})
|
|
@@ -2854,60 +2885,60 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
2854
2885
|
_: 1
|
|
2855
2886
|
}, 8, ["disabled"]),
|
|
2856
2887
|
i(_),
|
|
2857
|
-
i(
|
|
2888
|
+
i(O, {
|
|
2858
2889
|
disabled: !d.value.inTable,
|
|
2859
|
-
onClick:
|
|
2860
|
-
var
|
|
2861
|
-
return (
|
|
2890
|
+
onClick: c[15] || (c[15] = (y) => {
|
|
2891
|
+
var p;
|
|
2892
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().addColumnBefore().run();
|
|
2862
2893
|
})
|
|
2863
2894
|
}, {
|
|
2864
2895
|
prepend: s(() => [
|
|
2865
|
-
i(
|
|
2896
|
+
i(l(B), { name: "mdi-table-column-plus-before" })
|
|
2866
2897
|
]),
|
|
2867
2898
|
default: s(() => [
|
|
2868
|
-
i(
|
|
2899
|
+
i(N, null, {
|
|
2869
2900
|
default: s(() => [
|
|
2870
|
-
|
|
2901
|
+
J(G(l(e).TableAddColumnBefore), 1)
|
|
2871
2902
|
]),
|
|
2872
2903
|
_: 1
|
|
2873
2904
|
})
|
|
2874
2905
|
]),
|
|
2875
2906
|
_: 1
|
|
2876
2907
|
}, 8, ["disabled"]),
|
|
2877
|
-
i(
|
|
2908
|
+
i(O, {
|
|
2878
2909
|
disabled: !d.value.inTable,
|
|
2879
|
-
onClick:
|
|
2880
|
-
var
|
|
2881
|
-
return (
|
|
2910
|
+
onClick: c[16] || (c[16] = (y) => {
|
|
2911
|
+
var p;
|
|
2912
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().addColumnAfter().run();
|
|
2882
2913
|
})
|
|
2883
2914
|
}, {
|
|
2884
2915
|
prepend: s(() => [
|
|
2885
|
-
i(
|
|
2916
|
+
i(l(B), { name: "mdi-table-column-plus-after" })
|
|
2886
2917
|
]),
|
|
2887
2918
|
default: s(() => [
|
|
2888
|
-
i(
|
|
2919
|
+
i(N, null, {
|
|
2889
2920
|
default: s(() => [
|
|
2890
|
-
|
|
2921
|
+
J(G(l(e).TableAddColumnAfter), 1)
|
|
2891
2922
|
]),
|
|
2892
2923
|
_: 1
|
|
2893
2924
|
})
|
|
2894
2925
|
]),
|
|
2895
2926
|
_: 1
|
|
2896
2927
|
}, 8, ["disabled"]),
|
|
2897
|
-
i(
|
|
2928
|
+
i(O, {
|
|
2898
2929
|
disabled: !d.value.inTable,
|
|
2899
|
-
onClick:
|
|
2900
|
-
var
|
|
2901
|
-
return (
|
|
2930
|
+
onClick: c[17] || (c[17] = (y) => {
|
|
2931
|
+
var p;
|
|
2932
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().deleteColumn().run();
|
|
2902
2933
|
})
|
|
2903
2934
|
}, {
|
|
2904
2935
|
prepend: s(() => [
|
|
2905
|
-
i(
|
|
2936
|
+
i(l(B), { name: "mdi-table-column-remove" })
|
|
2906
2937
|
]),
|
|
2907
2938
|
default: s(() => [
|
|
2908
|
-
i(
|
|
2939
|
+
i(N, null, {
|
|
2909
2940
|
default: s(() => [
|
|
2910
|
-
|
|
2941
|
+
J(G(l(e).TableDeleteColumn), 1)
|
|
2911
2942
|
]),
|
|
2912
2943
|
_: 1
|
|
2913
2944
|
})
|
|
@@ -2915,40 +2946,40 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
2915
2946
|
_: 1
|
|
2916
2947
|
}, 8, ["disabled"]),
|
|
2917
2948
|
i(_),
|
|
2918
|
-
i(
|
|
2949
|
+
i(O, {
|
|
2919
2950
|
disabled: !d.value.inTable,
|
|
2920
|
-
onClick:
|
|
2921
|
-
var
|
|
2922
|
-
return (
|
|
2951
|
+
onClick: c[18] || (c[18] = (y) => {
|
|
2952
|
+
var p;
|
|
2953
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().toggleHeaderRow().run();
|
|
2923
2954
|
})
|
|
2924
2955
|
}, {
|
|
2925
2956
|
prepend: s(() => [
|
|
2926
|
-
i(
|
|
2957
|
+
i(l(B), { name: "mdi-table-row" })
|
|
2927
2958
|
]),
|
|
2928
2959
|
default: s(() => [
|
|
2929
|
-
i(
|
|
2960
|
+
i(N, null, {
|
|
2930
2961
|
default: s(() => [
|
|
2931
|
-
|
|
2962
|
+
J(G(l(e).TableToggleHeaderRow), 1)
|
|
2932
2963
|
]),
|
|
2933
2964
|
_: 1
|
|
2934
2965
|
})
|
|
2935
2966
|
]),
|
|
2936
2967
|
_: 1
|
|
2937
2968
|
}, 8, ["disabled"]),
|
|
2938
|
-
i(
|
|
2969
|
+
i(O, {
|
|
2939
2970
|
disabled: !d.value.inTable,
|
|
2940
|
-
onClick:
|
|
2941
|
-
var
|
|
2942
|
-
return (
|
|
2971
|
+
onClick: c[19] || (c[19] = (y) => {
|
|
2972
|
+
var p;
|
|
2973
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().deleteTable().run();
|
|
2943
2974
|
})
|
|
2944
2975
|
}, {
|
|
2945
2976
|
prepend: s(() => [
|
|
2946
|
-
i(
|
|
2977
|
+
i(l(B), { name: "mdi-table-remove" })
|
|
2947
2978
|
]),
|
|
2948
2979
|
default: s(() => [
|
|
2949
|
-
i(
|
|
2980
|
+
i(N, null, {
|
|
2950
2981
|
default: s(() => [
|
|
2951
|
-
|
|
2982
|
+
J(G(l(e).TableDeleteTable), 1)
|
|
2952
2983
|
]),
|
|
2953
2984
|
_: 1
|
|
2954
2985
|
})
|
|
@@ -2965,16 +2996,16 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
2965
2996
|
icon: "",
|
|
2966
2997
|
size: "small",
|
|
2967
2998
|
variant: "text",
|
|
2968
|
-
title:
|
|
2969
|
-
disabled: !
|
|
2999
|
+
title: l(e).Blockquote,
|
|
3000
|
+
disabled: !u.value,
|
|
2970
3001
|
active: d.value.blockquote,
|
|
2971
|
-
onClick:
|
|
2972
|
-
var
|
|
2973
|
-
return (
|
|
3002
|
+
onClick: c[20] || (c[20] = (y) => {
|
|
3003
|
+
var p;
|
|
3004
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().toggleBlockquote().run();
|
|
2974
3005
|
})
|
|
2975
3006
|
}, {
|
|
2976
3007
|
default: s(() => [
|
|
2977
|
-
i(
|
|
3008
|
+
i(l(B), { name: "mdi-format-quote-close" })
|
|
2978
3009
|
]),
|
|
2979
3010
|
_: 1
|
|
2980
3011
|
}, 8, ["title", "disabled", "active"]),
|
|
@@ -2987,16 +3018,16 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
2987
3018
|
icon: "",
|
|
2988
3019
|
size: "small",
|
|
2989
3020
|
variant: "text",
|
|
2990
|
-
title:
|
|
2991
|
-
disabled: !
|
|
3021
|
+
title: l(e).AlignLeft,
|
|
3022
|
+
disabled: !u.value,
|
|
2992
3023
|
active: d.value.alignLeft,
|
|
2993
|
-
onClick:
|
|
2994
|
-
var
|
|
2995
|
-
return (
|
|
3024
|
+
onClick: c[21] || (c[21] = (y) => {
|
|
3025
|
+
var p;
|
|
3026
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("left").run();
|
|
2996
3027
|
})
|
|
2997
3028
|
}, {
|
|
2998
3029
|
default: s(() => [
|
|
2999
|
-
i(
|
|
3030
|
+
i(l(B), { name: "mdi-format-align-left" })
|
|
3000
3031
|
]),
|
|
3001
3032
|
_: 1
|
|
3002
3033
|
}, 8, ["title", "disabled", "active"]),
|
|
@@ -3004,16 +3035,16 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
3004
3035
|
icon: "",
|
|
3005
3036
|
size: "small",
|
|
3006
3037
|
variant: "text",
|
|
3007
|
-
title:
|
|
3008
|
-
disabled: !
|
|
3038
|
+
title: l(e).AlignCenter,
|
|
3039
|
+
disabled: !u.value,
|
|
3009
3040
|
active: d.value.alignCenter,
|
|
3010
|
-
onClick:
|
|
3011
|
-
var
|
|
3012
|
-
return (
|
|
3041
|
+
onClick: c[22] || (c[22] = (y) => {
|
|
3042
|
+
var p;
|
|
3043
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("center").run();
|
|
3013
3044
|
})
|
|
3014
3045
|
}, {
|
|
3015
3046
|
default: s(() => [
|
|
3016
|
-
i(
|
|
3047
|
+
i(l(B), { name: "mdi-format-align-center" })
|
|
3017
3048
|
]),
|
|
3018
3049
|
_: 1
|
|
3019
3050
|
}, 8, ["title", "disabled", "active"]),
|
|
@@ -3021,16 +3052,16 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
3021
3052
|
icon: "",
|
|
3022
3053
|
size: "small",
|
|
3023
3054
|
variant: "text",
|
|
3024
|
-
title:
|
|
3025
|
-
disabled: !
|
|
3055
|
+
title: l(e).AlignRight,
|
|
3056
|
+
disabled: !u.value,
|
|
3026
3057
|
active: d.value.alignRight,
|
|
3027
|
-
onClick:
|
|
3028
|
-
var
|
|
3029
|
-
return (
|
|
3058
|
+
onClick: c[23] || (c[23] = (y) => {
|
|
3059
|
+
var p;
|
|
3060
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("right").run();
|
|
3030
3061
|
})
|
|
3031
3062
|
}, {
|
|
3032
3063
|
default: s(() => [
|
|
3033
|
-
i(
|
|
3064
|
+
i(l(B), { name: "mdi-format-align-right" })
|
|
3034
3065
|
]),
|
|
3035
3066
|
_: 1
|
|
3036
3067
|
}, 8, ["title", "disabled", "active"]),
|
|
@@ -3038,16 +3069,16 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
3038
3069
|
icon: "",
|
|
3039
3070
|
size: "small",
|
|
3040
3071
|
variant: "text",
|
|
3041
|
-
title:
|
|
3042
|
-
disabled: !
|
|
3072
|
+
title: l(e).AlignJustify,
|
|
3073
|
+
disabled: !u.value,
|
|
3043
3074
|
active: d.value.alignJustify,
|
|
3044
|
-
onClick:
|
|
3045
|
-
var
|
|
3046
|
-
return (
|
|
3075
|
+
onClick: c[24] || (c[24] = (y) => {
|
|
3076
|
+
var p;
|
|
3077
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("justify").run();
|
|
3047
3078
|
})
|
|
3048
3079
|
}, {
|
|
3049
3080
|
default: s(() => [
|
|
3050
|
-
i(
|
|
3081
|
+
i(l(B), { name: "mdi-format-align-justify" })
|
|
3051
3082
|
]),
|
|
3052
3083
|
_: 1
|
|
3053
3084
|
}, 8, ["title", "disabled", "active"]),
|
|
@@ -3060,16 +3091,16 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
3060
3091
|
icon: "",
|
|
3061
3092
|
size: "small",
|
|
3062
3093
|
variant: "text",
|
|
3063
|
-
title:
|
|
3064
|
-
disabled: !
|
|
3094
|
+
title: l(e).BulletedList,
|
|
3095
|
+
disabled: !u.value,
|
|
3065
3096
|
active: d.value.bulletList,
|
|
3066
|
-
onClick:
|
|
3067
|
-
var
|
|
3068
|
-
return (
|
|
3097
|
+
onClick: c[25] || (c[25] = (y) => {
|
|
3098
|
+
var p;
|
|
3099
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().toggleBulletList().run();
|
|
3069
3100
|
})
|
|
3070
3101
|
}, {
|
|
3071
3102
|
default: s(() => [
|
|
3072
|
-
i(
|
|
3103
|
+
i(l(B), { name: "mdi-format-list-bulleted" })
|
|
3073
3104
|
]),
|
|
3074
3105
|
_: 1
|
|
3075
3106
|
}, 8, ["title", "disabled", "active"]),
|
|
@@ -3077,16 +3108,16 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
3077
3108
|
icon: "",
|
|
3078
3109
|
size: "small",
|
|
3079
3110
|
variant: "text",
|
|
3080
|
-
title:
|
|
3081
|
-
disabled: !
|
|
3111
|
+
title: l(e).NumberedList,
|
|
3112
|
+
disabled: !u.value,
|
|
3082
3113
|
active: d.value.orderedList,
|
|
3083
|
-
onClick:
|
|
3084
|
-
var
|
|
3085
|
-
return (
|
|
3114
|
+
onClick: c[26] || (c[26] = (y) => {
|
|
3115
|
+
var p;
|
|
3116
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().toggleOrderedList().run();
|
|
3086
3117
|
})
|
|
3087
3118
|
}, {
|
|
3088
3119
|
default: s(() => [
|
|
3089
|
-
i(
|
|
3120
|
+
i(l(B), { name: "mdi-format-list-numbered" })
|
|
3090
3121
|
]),
|
|
3091
3122
|
_: 1
|
|
3092
3123
|
}, 8, ["title", "disabled", "active"]),
|
|
@@ -3094,15 +3125,15 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
3094
3125
|
icon: "",
|
|
3095
3126
|
size: "small",
|
|
3096
3127
|
variant: "text",
|
|
3097
|
-
title:
|
|
3098
|
-
disabled: !
|
|
3099
|
-
onClick:
|
|
3100
|
-
var
|
|
3101
|
-
return (
|
|
3128
|
+
title: l(e).Outdent,
|
|
3129
|
+
disabled: !u.value || !d.value.canLift,
|
|
3130
|
+
onClick: c[27] || (c[27] = (y) => {
|
|
3131
|
+
var p;
|
|
3132
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().liftListItem("listItem").run();
|
|
3102
3133
|
})
|
|
3103
3134
|
}, {
|
|
3104
3135
|
default: s(() => [
|
|
3105
|
-
i(
|
|
3136
|
+
i(l(B), { name: "mdi-format-indent-decrease" })
|
|
3106
3137
|
]),
|
|
3107
3138
|
_: 1
|
|
3108
3139
|
}, 8, ["title", "disabled"]),
|
|
@@ -3110,64 +3141,64 @@ const qn = { class: "d-flex justify-end ga-2 mt-2" }, Kn = { class: "d-flex just
|
|
|
3110
3141
|
icon: "",
|
|
3111
3142
|
size: "small",
|
|
3112
3143
|
variant: "text",
|
|
3113
|
-
title:
|
|
3114
|
-
disabled: !
|
|
3115
|
-
onClick:
|
|
3116
|
-
var
|
|
3117
|
-
return (
|
|
3144
|
+
title: l(e).Indent,
|
|
3145
|
+
disabled: !u.value || !d.value.canSink,
|
|
3146
|
+
onClick: c[28] || (c[28] = (y) => {
|
|
3147
|
+
var p;
|
|
3148
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().sinkListItem("listItem").run();
|
|
3118
3149
|
})
|
|
3119
3150
|
}, {
|
|
3120
3151
|
default: s(() => [
|
|
3121
|
-
i(
|
|
3152
|
+
i(l(B), { name: "mdi-format-indent-increase" })
|
|
3122
3153
|
]),
|
|
3123
3154
|
_: 1
|
|
3124
3155
|
}, 8, ["title", "disabled"])
|
|
3125
3156
|
], 2);
|
|
3126
3157
|
};
|
|
3127
3158
|
}
|
|
3128
|
-
}),
|
|
3129
|
-
function
|
|
3130
|
-
const
|
|
3131
|
-
for (let a =
|
|
3159
|
+
}), Zl = /^[a-z][a-z0-9]*:[a-z]/i, ea = /mso-[a-z-]+\s*:[^;]+;?/gi, ta = /^Mso/i, na = /background(?:-color)?\s*:[^;]+;?/gi;
|
|
3160
|
+
function la(t) {
|
|
3161
|
+
const n = document.createTreeWalker(t, NodeFilter.SHOW_COMMENT), e = [];
|
|
3162
|
+
for (let a = n.nextNode(); a; a = n.nextNode()) e.push(a);
|
|
3132
3163
|
e.forEach((a) => {
|
|
3133
3164
|
var r;
|
|
3134
3165
|
return (r = a.parentNode) == null ? void 0 : r.removeChild(a);
|
|
3135
3166
|
});
|
|
3136
3167
|
}
|
|
3137
|
-
function
|
|
3138
|
-
const
|
|
3139
|
-
if (
|
|
3140
|
-
for (; t.firstChild; )
|
|
3141
|
-
|
|
3168
|
+
function rt(t) {
|
|
3169
|
+
const n = t.parentNode;
|
|
3170
|
+
if (n) {
|
|
3171
|
+
for (; t.firstChild; ) n.insertBefore(t.firstChild, t);
|
|
3172
|
+
n.removeChild(t);
|
|
3142
3173
|
}
|
|
3143
3174
|
}
|
|
3144
|
-
function
|
|
3145
|
-
const
|
|
3146
|
-
if (
|
|
3147
|
-
const a =
|
|
3175
|
+
function aa(t) {
|
|
3176
|
+
const n = t.getAttribute("style");
|
|
3177
|
+
if (n != null) {
|
|
3178
|
+
const a = n.replace(ea, "").replace(na, "").trim();
|
|
3148
3179
|
a ? t.setAttribute("style", a) : t.removeAttribute("style");
|
|
3149
3180
|
}
|
|
3150
3181
|
const e = t.getAttribute("class");
|
|
3151
3182
|
if (e != null) {
|
|
3152
|
-
const a = e.split(/\s+/).filter((r) => r && !
|
|
3183
|
+
const a = e.split(/\s+/).filter((r) => r && !ta.test(r)).join(" ");
|
|
3153
3184
|
a ? t.setAttribute("class", a) : t.removeAttribute("class");
|
|
3154
3185
|
}
|
|
3155
3186
|
t.removeAttribute("lang"), t.removeAttribute("xml:lang"), t.removeAttribute("id"), t.removeAttribute("align"), t.removeAttribute("bgcolor");
|
|
3156
3187
|
}
|
|
3157
|
-
function
|
|
3188
|
+
function oa(t) {
|
|
3158
3189
|
if (!t || typeof DOMParser == "undefined") return t;
|
|
3159
3190
|
const e = new DOMParser().parseFromString(t, "text/html").body;
|
|
3160
|
-
return e ? (
|
|
3161
|
-
if (
|
|
3162
|
-
|
|
3191
|
+
return e ? (la(e), e.querySelectorAll("xml, style, script, meta, link").forEach((a) => a.remove()), Array.from(e.querySelectorAll("*")).forEach((a) => {
|
|
3192
|
+
if (Zl.test(a.tagName) || a.tagName === "FONT") {
|
|
3193
|
+
rt(a);
|
|
3163
3194
|
return;
|
|
3164
3195
|
}
|
|
3165
|
-
|
|
3196
|
+
aa(a);
|
|
3166
3197
|
}), Array.from(e.querySelectorAll("span, div")).forEach((a) => {
|
|
3167
|
-
a.attributes.length === 0 &&
|
|
3198
|
+
a.attributes.length === 0 && rt(a);
|
|
3168
3199
|
}), e.innerHTML) : t;
|
|
3169
3200
|
}
|
|
3170
|
-
const
|
|
3201
|
+
const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa = /* @__PURE__ */ te({
|
|
3171
3202
|
__name: "editor-core",
|
|
3172
3203
|
props: {
|
|
3173
3204
|
modelValue: { default: "" },
|
|
@@ -3175,17 +3206,17 @@ const na = { class: "editor-container" }, aa = { class: "rtf-bubble-menu" }, oa
|
|
|
3175
3206
|
disabled: { type: Boolean, default: !1 }
|
|
3176
3207
|
},
|
|
3177
3208
|
emits: ["update:modelValue"],
|
|
3178
|
-
setup(t, { emit:
|
|
3179
|
-
|
|
3209
|
+
setup(t, { emit: n }) {
|
|
3210
|
+
Ot((v) => ({
|
|
3180
3211
|
v3d306a89: v.minHeight
|
|
3181
3212
|
}));
|
|
3182
|
-
const e = t, a =
|
|
3213
|
+
const e = t, a = n, r = dn({
|
|
3183
3214
|
content: e.modelValue,
|
|
3184
3215
|
editable: !e.disabled,
|
|
3185
3216
|
extensions: [
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3217
|
+
cn.configure({ link: !1 }),
|
|
3218
|
+
ql.configure({ openOnClick: !1, autolink: !0, defaultProtocol: "https" }),
|
|
3219
|
+
tn.configure({
|
|
3189
3220
|
inline: !0,
|
|
3190
3221
|
allowBase64: !0,
|
|
3191
3222
|
resize: {
|
|
@@ -3195,57 +3226,57 @@ const na = { class: "editor-container" }, aa = { class: "rtf-bubble-menu" }, oa
|
|
|
3195
3226
|
minHeight: 24
|
|
3196
3227
|
}
|
|
3197
3228
|
}),
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3229
|
+
sn.configure({ types: ["heading", "paragraph"] }),
|
|
3230
|
+
ln.configure({ resizable: !0 }),
|
|
3231
|
+
rn,
|
|
3232
|
+
on,
|
|
3233
|
+
an,
|
|
3234
|
+
nn.configure({ placeholder: "" }),
|
|
3235
|
+
El,
|
|
3236
|
+
Ul,
|
|
3237
|
+
zl,
|
|
3238
|
+
Gl
|
|
3208
3239
|
],
|
|
3209
3240
|
editorProps: {
|
|
3210
3241
|
attributes: { class: "rtf-content" },
|
|
3211
|
-
transformPastedHTML: (v) =>
|
|
3212
|
-
handlePaste:
|
|
3242
|
+
transformPastedHTML: (v) => oa(v),
|
|
3243
|
+
handlePaste: Wl(() => r.value)
|
|
3213
3244
|
},
|
|
3214
3245
|
onUpdate: ({ editor: v }) => {
|
|
3215
3246
|
a("update:modelValue", v.getHTML());
|
|
3216
3247
|
}
|
|
3217
3248
|
});
|
|
3218
|
-
|
|
3249
|
+
me(
|
|
3219
3250
|
() => e.modelValue,
|
|
3220
3251
|
(v) => {
|
|
3221
|
-
const
|
|
3222
|
-
if (!
|
|
3223
|
-
const
|
|
3224
|
-
|
|
3252
|
+
const g = r.value;
|
|
3253
|
+
if (!g) return;
|
|
3254
|
+
const T = v != null ? v : "";
|
|
3255
|
+
T !== g.getHTML() && g.commands.setContent(T, { emitUpdate: !1 });
|
|
3225
3256
|
}
|
|
3226
|
-
),
|
|
3257
|
+
), me(
|
|
3227
3258
|
() => e.disabled,
|
|
3228
3259
|
(v) => {
|
|
3229
|
-
var
|
|
3230
|
-
return (
|
|
3260
|
+
var g;
|
|
3261
|
+
return (g = r.value) == null ? void 0 : g.setEditable(!v);
|
|
3231
3262
|
}
|
|
3232
|
-
),
|
|
3233
|
-
const
|
|
3234
|
-
var v,
|
|
3235
|
-
return
|
|
3263
|
+
), me(r, (v) => v == null ? void 0 : v.setEditable(!e.disabled));
|
|
3264
|
+
const u = Bt(r), d = x(() => {
|
|
3265
|
+
var v, g, T, $, C;
|
|
3266
|
+
return u.value, {
|
|
3236
3267
|
bold: !!((v = r.value) != null && v.isActive("bold")),
|
|
3237
|
-
italic: !!((
|
|
3238
|
-
link: !!((
|
|
3239
|
-
bulletList: !!((
|
|
3240
|
-
orderedList: !!((
|
|
3268
|
+
italic: !!((g = r.value) != null && g.isActive("italic")),
|
|
3269
|
+
link: !!((T = r.value) != null && T.isActive("link")),
|
|
3270
|
+
bulletList: !!(($ = r.value) != null && $.isActive("bulletList")),
|
|
3271
|
+
orderedList: !!((C = r.value) != null && C.isActive("orderedList"))
|
|
3241
3272
|
};
|
|
3242
3273
|
});
|
|
3243
|
-
function
|
|
3244
|
-
return !v.selection.empty && !(v.selection instanceof
|
|
3274
|
+
function h({ state: v }) {
|
|
3275
|
+
return !v.selection.empty && !(v.selection instanceof un);
|
|
3245
3276
|
}
|
|
3246
|
-
function
|
|
3247
|
-
var
|
|
3248
|
-
(
|
|
3277
|
+
function k(v) {
|
|
3278
|
+
var g;
|
|
3279
|
+
(g = r.value) == null || g.chain().focus()[v]().run();
|
|
3249
3280
|
}
|
|
3250
3281
|
function f() {
|
|
3251
3282
|
const v = r.value;
|
|
@@ -3254,49 +3285,49 @@ const na = { class: "editor-container" }, aa = { class: "rtf-bubble-menu" }, oa
|
|
|
3254
3285
|
v.chain().focus().unsetLink().run();
|
|
3255
3286
|
return;
|
|
3256
3287
|
}
|
|
3257
|
-
const
|
|
3258
|
-
|
|
3259
|
-
}
|
|
3260
|
-
return (v,
|
|
3261
|
-
const
|
|
3262
|
-
return
|
|
3263
|
-
i(
|
|
3264
|
-
i(
|
|
3288
|
+
const g = window.prompt("URL");
|
|
3289
|
+
g && v.chain().focus().extendMarkRange("link").setLink({ href: g }).run();
|
|
3290
|
+
}
|
|
3291
|
+
return (v, g) => {
|
|
3292
|
+
const T = R("v-btn");
|
|
3293
|
+
return V(), Z("div", ia, [
|
|
3294
|
+
i(Ql, { editor: l(r) }, null, 8, ["editor"]),
|
|
3295
|
+
i(l(mn), {
|
|
3265
3296
|
class: "editor-container__editor",
|
|
3266
|
-
editor:
|
|
3297
|
+
editor: l(r)
|
|
3267
3298
|
}, null, 8, ["editor"]),
|
|
3268
|
-
|
|
3299
|
+
l(r) ? (V(), F(l(vn), {
|
|
3269
3300
|
key: 0,
|
|
3270
|
-
editor:
|
|
3271
|
-
"should-show":
|
|
3301
|
+
editor: l(r),
|
|
3302
|
+
"should-show": h
|
|
3272
3303
|
}, {
|
|
3273
3304
|
default: s(() => [
|
|
3274
|
-
|
|
3275
|
-
i(
|
|
3305
|
+
oe("div", ra, [
|
|
3306
|
+
i(T, {
|
|
3276
3307
|
icon: "",
|
|
3277
3308
|
size: "small",
|
|
3278
3309
|
variant: "text",
|
|
3279
3310
|
active: d.value.bold,
|
|
3280
|
-
onClick:
|
|
3311
|
+
onClick: g[0] || (g[0] = ($) => k("toggleBold"))
|
|
3281
3312
|
}, {
|
|
3282
3313
|
default: s(() => [
|
|
3283
|
-
i(
|
|
3314
|
+
i(l(B), { name: "mdi-format-bold" })
|
|
3284
3315
|
]),
|
|
3285
3316
|
_: 1
|
|
3286
3317
|
}, 8, ["active"]),
|
|
3287
|
-
i(
|
|
3318
|
+
i(T, {
|
|
3288
3319
|
icon: "",
|
|
3289
3320
|
size: "small",
|
|
3290
3321
|
variant: "text",
|
|
3291
3322
|
active: d.value.italic,
|
|
3292
|
-
onClick:
|
|
3323
|
+
onClick: g[1] || (g[1] = ($) => k("toggleItalic"))
|
|
3293
3324
|
}, {
|
|
3294
3325
|
default: s(() => [
|
|
3295
|
-
i(
|
|
3326
|
+
i(l(B), { name: "mdi-format-italic" })
|
|
3296
3327
|
]),
|
|
3297
3328
|
_: 1
|
|
3298
3329
|
}, 8, ["active"]),
|
|
3299
|
-
i(
|
|
3330
|
+
i(T, {
|
|
3300
3331
|
icon: "",
|
|
3301
3332
|
size: "small",
|
|
3302
3333
|
variant: "text",
|
|
@@ -3304,42 +3335,42 @@ const na = { class: "editor-container" }, aa = { class: "rtf-bubble-menu" }, oa
|
|
|
3304
3335
|
onClick: f
|
|
3305
3336
|
}, {
|
|
3306
3337
|
default: s(() => [
|
|
3307
|
-
i(
|
|
3338
|
+
i(l(B), { name: "mdi-link-variant" })
|
|
3308
3339
|
]),
|
|
3309
3340
|
_: 1
|
|
3310
3341
|
}, 8, ["active"]),
|
|
3311
|
-
i(
|
|
3342
|
+
i(T, {
|
|
3312
3343
|
icon: "",
|
|
3313
3344
|
size: "small",
|
|
3314
3345
|
variant: "text",
|
|
3315
3346
|
active: d.value.bulletList,
|
|
3316
|
-
onClick:
|
|
3347
|
+
onClick: g[2] || (g[2] = ($) => k("toggleBulletList"))
|
|
3317
3348
|
}, {
|
|
3318
3349
|
default: s(() => [
|
|
3319
|
-
i(
|
|
3350
|
+
i(l(B), { name: "mdi-format-list-bulleted" })
|
|
3320
3351
|
]),
|
|
3321
3352
|
_: 1
|
|
3322
3353
|
}, 8, ["active"]),
|
|
3323
|
-
i(
|
|
3354
|
+
i(T, {
|
|
3324
3355
|
icon: "",
|
|
3325
3356
|
size: "small",
|
|
3326
3357
|
variant: "text",
|
|
3327
3358
|
active: d.value.orderedList,
|
|
3328
|
-
onClick:
|
|
3359
|
+
onClick: g[3] || (g[3] = ($) => k("toggleOrderedList"))
|
|
3329
3360
|
}, {
|
|
3330
3361
|
default: s(() => [
|
|
3331
|
-
i(
|
|
3362
|
+
i(l(B), { name: "mdi-format-list-numbered" })
|
|
3332
3363
|
]),
|
|
3333
3364
|
_: 1
|
|
3334
3365
|
}, 8, ["active"])
|
|
3335
3366
|
])
|
|
3336
3367
|
]),
|
|
3337
3368
|
_: 1
|
|
3338
|
-
}, 8, ["editor"])) :
|
|
3369
|
+
}, 8, ["editor"])) : Y("", !0)
|
|
3339
3370
|
]);
|
|
3340
3371
|
};
|
|
3341
3372
|
}
|
|
3342
|
-
}),
|
|
3373
|
+
}), Lt = /* @__PURE__ */ te({
|
|
3343
3374
|
__name: "df-rtf-editor",
|
|
3344
3375
|
props: /* @__PURE__ */ pe({
|
|
3345
3376
|
minHeight: {},
|
|
@@ -3357,21 +3388,21 @@ const na = { class: "editor-container" }, aa = { class: "rtf-bubble-menu" }, oa
|
|
|
3357
3388
|
passthroughAttrs: {},
|
|
3358
3389
|
density: {},
|
|
3359
3390
|
variant: {}
|
|
3360
|
-
},
|
|
3391
|
+
}, ee(z({}, be), { minHeight: void 0 })),
|
|
3361
3392
|
emits: ["update:modelValue", "click:clear"],
|
|
3362
|
-
setup(t, { emit:
|
|
3363
|
-
const e = t, a =
|
|
3364
|
-
return (
|
|
3365
|
-
class: ["rtf-editor",
|
|
3393
|
+
setup(t, { emit: n }) {
|
|
3394
|
+
const e = t, a = n, { densityClass: r, value: u, vuetifyBindings: d } = ce(e, a);
|
|
3395
|
+
return (h, k) => (V(), F(l(He), X(e, {
|
|
3396
|
+
class: ["rtf-editor", l(r)]
|
|
3366
3397
|
}), {
|
|
3367
3398
|
default: s((f) => [
|
|
3368
|
-
i(
|
|
3399
|
+
i(sa, X({
|
|
3369
3400
|
ref: "$editor",
|
|
3370
|
-
modelValue:
|
|
3371
|
-
"onUpdate:modelValue":
|
|
3401
|
+
modelValue: l(u),
|
|
3402
|
+
"onUpdate:modelValue": k[0] || (k[0] = (v) => Ce(u) ? u.value = v : null),
|
|
3372
3403
|
class: { "mt-6": !!t.label },
|
|
3373
3404
|
"min-height": t.minHeight,
|
|
3374
|
-
disabled:
|
|
3405
|
+
disabled: l(d).disabled
|
|
3375
3406
|
}, t.passthroughAttrs, {
|
|
3376
3407
|
onFocusin: (v) => f.focus(),
|
|
3377
3408
|
onFocusout: (v) => f.blur()
|
|
@@ -3381,38 +3412,38 @@ const na = { class: "editor-container" }, aa = { class: "rtf-bubble-menu" }, oa
|
|
|
3381
3412
|
}, 16, ["class"]));
|
|
3382
3413
|
}
|
|
3383
3414
|
});
|
|
3384
|
-
function
|
|
3385
|
-
return t.map((
|
|
3415
|
+
function ua(t) {
|
|
3416
|
+
return t.map((n) => ({ value: n.id, title: n.text, icon: n.icon }));
|
|
3386
3417
|
}
|
|
3387
|
-
function
|
|
3418
|
+
function de(t, n) {
|
|
3388
3419
|
var e;
|
|
3389
|
-
return t == null ||
|
|
3420
|
+
return t == null || at(t) && t.length === 0 ? null : n ? dt(t) : at(t) ? (e = mt(t)) != null ? e : null : t;
|
|
3390
3421
|
}
|
|
3391
|
-
function ze(t,
|
|
3392
|
-
if (
|
|
3393
|
-
const e =
|
|
3422
|
+
function ze(t, n) {
|
|
3423
|
+
if (n == null) return [];
|
|
3424
|
+
const e = dt(n);
|
|
3394
3425
|
return t.filter((a) => e.some((r) => r === a.id));
|
|
3395
3426
|
}
|
|
3396
|
-
function
|
|
3427
|
+
function Ie(t, n, e, a, r) {
|
|
3397
3428
|
var d;
|
|
3398
|
-
const
|
|
3399
|
-
if (
|
|
3400
|
-
|
|
3429
|
+
const u = de(t, e);
|
|
3430
|
+
if (u == null) {
|
|
3431
|
+
n.value = e ? [] : null;
|
|
3401
3432
|
return;
|
|
3402
3433
|
}
|
|
3403
3434
|
if (e)
|
|
3404
|
-
a ?
|
|
3435
|
+
a ? n.value = u : n.value = ze(r, u).map((h) => h.id);
|
|
3405
3436
|
else if (a)
|
|
3406
|
-
|
|
3437
|
+
n.value = u;
|
|
3407
3438
|
else {
|
|
3408
|
-
const
|
|
3409
|
-
|
|
3439
|
+
const h = mt(ze(r, u));
|
|
3440
|
+
n.value = (d = h == null ? void 0 : h.id) != null ? d : null;
|
|
3410
3441
|
}
|
|
3411
3442
|
}
|
|
3412
|
-
const
|
|
3443
|
+
const ca = {
|
|
3413
3444
|
key: 0,
|
|
3414
3445
|
class: "me-1"
|
|
3415
|
-
},
|
|
3446
|
+
}, da = /* @__PURE__ */ te({
|
|
3416
3447
|
__name: "df-select",
|
|
3417
3448
|
props: /* @__PURE__ */ pe({
|
|
3418
3449
|
choices: {},
|
|
@@ -3434,7 +3465,7 @@ const ra = {
|
|
|
3434
3465
|
passthroughAttrs: {},
|
|
3435
3466
|
density: {},
|
|
3436
3467
|
variant: {}
|
|
3437
|
-
},
|
|
3468
|
+
}, ee(z({}, be), {
|
|
3438
3469
|
choices: void 0,
|
|
3439
3470
|
multiple: !1,
|
|
3440
3471
|
allowTags: !1,
|
|
@@ -3442,233 +3473,233 @@ const ra = {
|
|
|
3442
3473
|
fetchChoices: void 0
|
|
3443
3474
|
})),
|
|
3444
3475
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
3445
|
-
setup(t, { emit:
|
|
3446
|
-
var
|
|
3447
|
-
const e = t, { choices: a, multiple: r, allowTags:
|
|
3476
|
+
setup(t, { emit: n }) {
|
|
3477
|
+
var Ze;
|
|
3478
|
+
const e = t, { choices: a, multiple: r, allowTags: u, allowNull: d, cssClass: h } = Fe(e), k = n, f = M(null), {
|
|
3448
3479
|
densityClass: v,
|
|
3449
|
-
isRendered:
|
|
3450
|
-
label:
|
|
3451
|
-
showErrors:
|
|
3452
|
-
touched:
|
|
3453
|
-
value:
|
|
3454
|
-
visibilityClass:
|
|
3455
|
-
vuetifyBindings:
|
|
3456
|
-
} = ce(e,
|
|
3457
|
-
(
|
|
3458
|
-
function m(
|
|
3459
|
-
|
|
3480
|
+
isRendered: g,
|
|
3481
|
+
label: T,
|
|
3482
|
+
showErrors: $,
|
|
3483
|
+
touched: C,
|
|
3484
|
+
value: j,
|
|
3485
|
+
visibilityClass: P,
|
|
3486
|
+
vuetifyBindings: D
|
|
3487
|
+
} = ce(e, k), b = M(null), S = M(!1), H = M([]), K = x(() => l(S) ? l(H) : l(a) || []), W = M(!1), L = x(() => ua(K.value)), w = M(null), o = M(0), c = M(!1);
|
|
3488
|
+
(Ze = a.value) != null && Ze.length && e.fetchChoices !== void 0 && console.warn("Both choices and fetchChoices are set. Only one of them should be set.");
|
|
3489
|
+
function m(I) {
|
|
3490
|
+
k("update:modelValueDisplay", ze(K.value, I));
|
|
3460
3491
|
}
|
|
3461
3492
|
const _ = M(!1);
|
|
3462
|
-
function
|
|
3493
|
+
function N(I) {
|
|
3463
3494
|
_.value = !0;
|
|
3464
3495
|
try {
|
|
3465
|
-
|
|
3496
|
+
j.value = I;
|
|
3466
3497
|
} finally {
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3498
|
+
Jt(de(j.value, r.value), I) || Ie(
|
|
3499
|
+
de(j.value, r.value),
|
|
3500
|
+
b,
|
|
3470
3501
|
r.value,
|
|
3471
|
-
|
|
3472
|
-
|
|
3502
|
+
u.value,
|
|
3503
|
+
K.value
|
|
3473
3504
|
), Ke(() => {
|
|
3474
3505
|
_.value = !1;
|
|
3475
3506
|
});
|
|
3476
3507
|
}
|
|
3477
3508
|
}
|
|
3478
|
-
function
|
|
3479
|
-
if (
|
|
3480
|
-
const
|
|
3481
|
-
return
|
|
3482
|
-
}
|
|
3483
|
-
function
|
|
3484
|
-
var
|
|
3485
|
-
if (r.value && d.value &&
|
|
3486
|
-
const
|
|
3487
|
-
let
|
|
3488
|
-
|
|
3489
|
-
|
|
3509
|
+
function O(I) {
|
|
3510
|
+
if (!I) return 0;
|
|
3511
|
+
const E = I.getBoundingClientRect(), ae = window.getComputedStyle(I);
|
|
3512
|
+
return E.width + parseFloat(ae.marginLeft) + parseFloat(ae.marginRight);
|
|
3513
|
+
}
|
|
3514
|
+
function ne() {
|
|
3515
|
+
var I;
|
|
3516
|
+
if (r.value && d.value && b.value != null && b.value.length > 0 && f.value) {
|
|
3517
|
+
const E = f.value.$el, ae = (I = E.querySelector(".v-input__control")) == null ? void 0 : I.clientWidth, ie = E.querySelector(".v-field__input"), U = ie.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), re = window.getComputedStyle(ie);
|
|
3518
|
+
let Ve = parseFloat(re.paddingLeft) + parseFloat(re.paddingRight);
|
|
3519
|
+
U.forEach((Rt) => {
|
|
3520
|
+
Ve += O(Rt);
|
|
3490
3521
|
});
|
|
3491
|
-
const
|
|
3492
|
-
|
|
3522
|
+
const Dt = O(E.querySelector(".v-field .v-field__clearable")), St = O(E.querySelector(".v-field .v-field__append-inner")), Mt = 2;
|
|
3523
|
+
c.value = ae - Ve - U.length * Mt - St < Dt;
|
|
3493
3524
|
} else
|
|
3494
|
-
|
|
3495
|
-
}
|
|
3496
|
-
function
|
|
3497
|
-
const
|
|
3498
|
-
|
|
3499
|
-
}
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
(
|
|
3503
|
-
|
|
3504
|
-
const
|
|
3505
|
-
m(
|
|
3525
|
+
c.value = !1;
|
|
3526
|
+
}
|
|
3527
|
+
function A(I) {
|
|
3528
|
+
const E = I.target;
|
|
3529
|
+
E instanceof HTMLElement && E.closest(".v-chip__close") && (I.stopPropagation(), I.preventDefault());
|
|
3530
|
+
}
|
|
3531
|
+
me(
|
|
3532
|
+
b,
|
|
3533
|
+
(I) => {
|
|
3534
|
+
D.value.readonly || Ke(() => {
|
|
3535
|
+
const E = de(I, r.value);
|
|
3536
|
+
m(E), N(E);
|
|
3506
3537
|
});
|
|
3507
3538
|
},
|
|
3508
3539
|
{ deep: !0 }
|
|
3509
|
-
),
|
|
3510
|
-
|
|
3511
|
-
(
|
|
3540
|
+
), me(
|
|
3541
|
+
j,
|
|
3542
|
+
(I) => {
|
|
3512
3543
|
if (!_.value) {
|
|
3513
|
-
const
|
|
3514
|
-
|
|
3544
|
+
const E = de(I, r.value);
|
|
3545
|
+
Ie(E, b, r.value, !1, K.value);
|
|
3515
3546
|
}
|
|
3516
3547
|
},
|
|
3517
3548
|
{ deep: !0 }
|
|
3518
|
-
),
|
|
3519
|
-
_.value ||
|
|
3549
|
+
), me(_, () => {
|
|
3550
|
+
_.value || ne();
|
|
3520
3551
|
});
|
|
3521
|
-
function
|
|
3522
|
-
|
|
3552
|
+
function q() {
|
|
3553
|
+
w.value != null && w.value.length > 0 && (w.value = null, y());
|
|
3523
3554
|
}
|
|
3524
|
-
function
|
|
3525
|
-
if (
|
|
3526
|
-
const
|
|
3527
|
-
|
|
3555
|
+
function Q() {
|
|
3556
|
+
if (q(), D.value.readonly || u.value) return;
|
|
3557
|
+
const I = de(b.value, r.value);
|
|
3558
|
+
Ie(I, b, r.value, !1, K.value), N(I);
|
|
3528
3559
|
}
|
|
3529
|
-
function
|
|
3530
|
-
if (
|
|
3531
|
-
|
|
3560
|
+
function le(I, E) {
|
|
3561
|
+
if (I.stopPropagation(), D.value.readonly || u.value) {
|
|
3562
|
+
u.value && (b.value = b.value.filter((ie) => ie !== E));
|
|
3532
3563
|
return;
|
|
3533
3564
|
}
|
|
3534
|
-
let
|
|
3535
|
-
r.value && Array.isArray(
|
|
3536
|
-
|
|
3565
|
+
let ae;
|
|
3566
|
+
r.value && Array.isArray(b.value) ? ae = de(
|
|
3567
|
+
b.value.filter((ie) => ie !== E),
|
|
3537
3568
|
r.value
|
|
3538
|
-
) :
|
|
3569
|
+
) : ae = null, Ie(ae, b, r.value, !1, K.value), N(ae);
|
|
3539
3570
|
}
|
|
3540
|
-
function y(
|
|
3571
|
+
function y(I, E) {
|
|
3541
3572
|
return ge(this, null, function* () {
|
|
3542
|
-
if (
|
|
3543
|
-
const
|
|
3544
|
-
|
|
3573
|
+
if (D.value.readonly || (w.value = I, a.value || e.fetchChoices === void 0)) return;
|
|
3574
|
+
const ae = ++o.value;
|
|
3575
|
+
W.value = !0;
|
|
3545
3576
|
try {
|
|
3546
|
-
const
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
),
|
|
3550
|
-
if (
|
|
3551
|
-
|
|
3577
|
+
const ie = ze(
|
|
3578
|
+
K.value,
|
|
3579
|
+
de(b.value, r.value)
|
|
3580
|
+
), U = yield e.fetchChoices(I, E);
|
|
3581
|
+
if (ae !== o.value) return;
|
|
3582
|
+
H.value = Qt([...ie, ...U], "id"), S.value = !0;
|
|
3552
3583
|
} finally {
|
|
3553
|
-
|
|
3584
|
+
W.value = !1;
|
|
3554
3585
|
}
|
|
3555
3586
|
});
|
|
3556
3587
|
}
|
|
3557
|
-
function
|
|
3558
|
-
let
|
|
3559
|
-
!d.value &&
|
|
3560
|
-
}
|
|
3561
|
-
return
|
|
3562
|
-
|
|
3563
|
-
}), (
|
|
3564
|
-
const
|
|
3565
|
-
return
|
|
3588
|
+
function p() {
|
|
3589
|
+
let I = j.value;
|
|
3590
|
+
!d.value && I == null && L.value.length && (I = L.value[0].value), I = de(I, r.value), Ie(I, b, r.value, u.value, K.value), m(I), N(I);
|
|
3591
|
+
}
|
|
3592
|
+
return p(), e.fetchChoices !== void 0 && y(void 0, j.value).then(() => {
|
|
3593
|
+
p();
|
|
3594
|
+
}), (I, E) => {
|
|
3595
|
+
const ae = R("v-chip"), ie = R("v-list-item");
|
|
3596
|
+
return l(g) ? (V(), F(Ue(l(u) ? "v-combobox" : "v-autocomplete"), X({
|
|
3566
3597
|
key: 0,
|
|
3567
3598
|
ref_key: "dfSelectRef",
|
|
3568
3599
|
ref: f,
|
|
3569
|
-
modelValue:
|
|
3570
|
-
"onUpdate:modelValue":
|
|
3571
|
-
class: [
|
|
3572
|
-
items:
|
|
3600
|
+
modelValue: b.value,
|
|
3601
|
+
"onUpdate:modelValue": E[0] || (E[0] = (U) => b.value = U),
|
|
3602
|
+
class: [l(h), l(v), l(P), { "df-select-multirow": c.value }],
|
|
3603
|
+
items: L.value,
|
|
3573
3604
|
"return-object": !1,
|
|
3574
3605
|
chips: "",
|
|
3575
3606
|
"auto-select-first": !0,
|
|
3576
|
-
"closable-chips":
|
|
3577
|
-
clearable:
|
|
3578
|
-
multiple:
|
|
3579
|
-
loading:
|
|
3607
|
+
"closable-chips": l(d) || l(r) && b.value.length > 1,
|
|
3608
|
+
clearable: l(d),
|
|
3609
|
+
multiple: l(r),
|
|
3610
|
+
loading: W.value,
|
|
3580
3611
|
"hide-selected": !1,
|
|
3581
|
-
"aria-describedby":
|
|
3612
|
+
"aria-describedby": l(D).helpText ? `${l(D).name}-help` : null,
|
|
3582
3613
|
"menu-props": { maxHeight: "400" },
|
|
3583
|
-
search:
|
|
3584
|
-
},
|
|
3585
|
-
"onUpdate:search":
|
|
3586
|
-
"onUpdate:modelValue":
|
|
3587
|
-
"onClick:clear":
|
|
3588
|
-
onBlur:
|
|
3589
|
-
onMousedownCapture:
|
|
3590
|
-
}),
|
|
3591
|
-
chip: s(({ item:
|
|
3592
|
-
(
|
|
3593
|
-
key:
|
|
3614
|
+
search: w.value
|
|
3615
|
+
}, l(D), {
|
|
3616
|
+
"onUpdate:search": E[1] || (E[1] = (U) => y(U, void 0)),
|
|
3617
|
+
"onUpdate:modelValue": Q,
|
|
3618
|
+
"onClick:clear": E[2] || (E[2] = (U) => b.value = null),
|
|
3619
|
+
onBlur: E[3] || (E[3] = (U) => C.value = !0),
|
|
3620
|
+
onMousedownCapture: E[4] || (E[4] = (U) => A(U))
|
|
3621
|
+
}), Ge({
|
|
3622
|
+
chip: s(({ item: U }) => [
|
|
3623
|
+
(V(), F(ae, {
|
|
3624
|
+
key: U.value,
|
|
3594
3625
|
label: "",
|
|
3595
3626
|
size: "small",
|
|
3596
3627
|
class: "d-flex align-middle",
|
|
3597
|
-
variant:
|
|
3598
|
-
closable:
|
|
3599
|
-
"onClick:close": (
|
|
3628
|
+
variant: l(r) ? "tonal" : "text",
|
|
3629
|
+
closable: l(r),
|
|
3630
|
+
"onClick:close": (re) => le(re, U.value)
|
|
3600
3631
|
}, {
|
|
3601
3632
|
prepend: s(() => {
|
|
3602
|
-
var
|
|
3633
|
+
var re;
|
|
3603
3634
|
return [
|
|
3604
|
-
(
|
|
3635
|
+
(re = U.raw) != null && re.icon ? (V(), F(l(B), {
|
|
3605
3636
|
key: 0,
|
|
3606
3637
|
class: "me-1",
|
|
3607
|
-
name:
|
|
3608
|
-
}, null, 8, ["name"])) :
|
|
3638
|
+
name: U.raw.icon
|
|
3639
|
+
}, null, 8, ["name"])) : Y("", !0)
|
|
3609
3640
|
];
|
|
3610
3641
|
}),
|
|
3611
3642
|
default: s(() => [
|
|
3612
|
-
|
|
3613
|
-
class: ue({ "text-body-1": !
|
|
3614
|
-
},
|
|
3643
|
+
oe("span", {
|
|
3644
|
+
class: ue({ "text-body-1": !l(r) })
|
|
3645
|
+
}, G(U.title), 3)
|
|
3615
3646
|
]),
|
|
3616
3647
|
_: 2
|
|
3617
3648
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
3618
3649
|
]),
|
|
3619
|
-
label: s((
|
|
3620
|
-
i(
|
|
3621
|
-
data:
|
|
3622
|
-
label:
|
|
3650
|
+
label: s((U) => [
|
|
3651
|
+
i(l(fe), {
|
|
3652
|
+
data: U,
|
|
3653
|
+
label: l(T)
|
|
3623
3654
|
}, null, 8, ["data", "label"])
|
|
3624
3655
|
]),
|
|
3625
|
-
item: s(({ props:
|
|
3626
|
-
i(
|
|
3656
|
+
item: s(({ props: U, item: re }) => [
|
|
3657
|
+
i(ie, ye(ke(U)), {
|
|
3627
3658
|
prepend: s(() => {
|
|
3628
|
-
var
|
|
3659
|
+
var Ve;
|
|
3629
3660
|
return [
|
|
3630
|
-
(
|
|
3631
|
-
i(
|
|
3661
|
+
(Ve = re.raw) != null && Ve.icon ? (V(), Z("span", ca, [
|
|
3662
|
+
i(l(B), {
|
|
3632
3663
|
class: "action-icon",
|
|
3633
|
-
name:
|
|
3664
|
+
name: re.raw.icon
|
|
3634
3665
|
}, null, 8, ["name"])
|
|
3635
|
-
])) :
|
|
3666
|
+
])) : Y("", !0)
|
|
3636
3667
|
];
|
|
3637
3668
|
}),
|
|
3638
3669
|
_: 2
|
|
3639
3670
|
}, 1040)
|
|
3640
3671
|
]),
|
|
3641
|
-
message: s(({ message:
|
|
3642
|
-
i(
|
|
3643
|
-
message:
|
|
3644
|
-
errors:
|
|
3672
|
+
message: s(({ message: U }) => [
|
|
3673
|
+
i(l(ve), {
|
|
3674
|
+
message: U,
|
|
3675
|
+
errors: l($)
|
|
3645
3676
|
}, null, 8, ["message", "errors"])
|
|
3646
3677
|
]),
|
|
3647
3678
|
_: 2
|
|
3648
3679
|
}, [
|
|
3649
|
-
|
|
3680
|
+
I.$slots["append-inner"] ? {
|
|
3650
3681
|
name: "append-inner",
|
|
3651
|
-
fn: s((
|
|
3652
|
-
_e(
|
|
3682
|
+
fn: s((U) => [
|
|
3683
|
+
_e(I.$slots, "append-inner", ye(ke(U)), void 0, !0)
|
|
3653
3684
|
]),
|
|
3654
3685
|
key: "0"
|
|
3655
3686
|
} : void 0,
|
|
3656
|
-
|
|
3687
|
+
I.$slots["prepend-inner"] ? {
|
|
3657
3688
|
name: "prepend-inner",
|
|
3658
|
-
fn: s((
|
|
3659
|
-
_e(
|
|
3689
|
+
fn: s((U) => [
|
|
3690
|
+
_e(I.$slots, "prepend-inner", ye(ke(U)), void 0, !0)
|
|
3660
3691
|
]),
|
|
3661
3692
|
key: "1"
|
|
3662
3693
|
} : void 0
|
|
3663
|
-
]), 1040, ["modelValue", "class", "items", "closable-chips", "clearable", "multiple", "loading", "aria-describedby", "search"])) :
|
|
3694
|
+
]), 1040, ["modelValue", "class", "items", "closable-chips", "clearable", "multiple", "loading", "aria-describedby", "search"])) : Y("", !0);
|
|
3664
3695
|
};
|
|
3665
3696
|
}
|
|
3666
|
-
}),
|
|
3697
|
+
}), ma = (t, n) => {
|
|
3667
3698
|
const e = t.__vccOpts || t;
|
|
3668
|
-
for (const [a, r] of
|
|
3699
|
+
for (const [a, r] of n)
|
|
3669
3700
|
e[a] = r;
|
|
3670
3701
|
return e;
|
|
3671
|
-
},
|
|
3702
|
+
}, It = /* @__PURE__ */ ma(da, [["__scopeId", "data-v-7e5aa3b6"]]), $t = /* @__PURE__ */ te({
|
|
3672
3703
|
__name: "df-text-area",
|
|
3673
3704
|
props: /* @__PURE__ */ pe({
|
|
3674
3705
|
rows: {},
|
|
@@ -3687,144 +3718,147 @@ const ra = {
|
|
|
3687
3718
|
passthroughAttrs: {},
|
|
3688
3719
|
density: {},
|
|
3689
3720
|
variant: {}
|
|
3690
|
-
},
|
|
3721
|
+
}, ee(z({}, be), {
|
|
3691
3722
|
rows: void 0,
|
|
3692
3723
|
maxRows: void 0
|
|
3693
3724
|
})),
|
|
3694
3725
|
emits: ["update:modelValue", "click:clear"],
|
|
3695
|
-
setup(t, { emit:
|
|
3696
|
-
const e = t, a =
|
|
3726
|
+
setup(t, { emit: n }) {
|
|
3727
|
+
const e = t, a = n, { densityClass: r, isRendered: u, label: d, showErrors: h, touched: k, value: f, visibilityClass: v, vuetifyBindings: g } = ce(
|
|
3697
3728
|
e,
|
|
3698
3729
|
a
|
|
3699
|
-
), { cssClass:
|
|
3700
|
-
return (
|
|
3701
|
-
const
|
|
3702
|
-
return
|
|
3730
|
+
), { cssClass: T } = Fe(e);
|
|
3731
|
+
return ($, C) => {
|
|
3732
|
+
const j = R("v-textarea");
|
|
3733
|
+
return l(u) ? (V(), Z("div", {
|
|
3703
3734
|
key: 0,
|
|
3704
|
-
class: ue(["df-textarea-container", [
|
|
3735
|
+
class: ue(["df-textarea-container", [l(r), l(v)]])
|
|
3705
3736
|
}, [
|
|
3706
|
-
i(
|
|
3707
|
-
modelValue:
|
|
3708
|
-
"onUpdate:modelValue":
|
|
3709
|
-
class:
|
|
3737
|
+
i(j, X({
|
|
3738
|
+
modelValue: l(f),
|
|
3739
|
+
"onUpdate:modelValue": C[0] || (C[0] = (P) => Ce(f) ? f.value = P : null),
|
|
3740
|
+
class: l(T),
|
|
3710
3741
|
rows: t.rows,
|
|
3711
3742
|
"auto-grow": (t.maxRows || 0) > 0,
|
|
3712
3743
|
"max-rows": t.maxRows
|
|
3713
|
-
},
|
|
3714
|
-
onBlur:
|
|
3744
|
+
}, l(g), {
|
|
3745
|
+
onBlur: C[1] || (C[1] = (P) => k.value = !0)
|
|
3715
3746
|
}), {
|
|
3716
|
-
label: s((
|
|
3717
|
-
i(
|
|
3718
|
-
data:
|
|
3719
|
-
label:
|
|
3747
|
+
label: s((P) => [
|
|
3748
|
+
i(l(fe), {
|
|
3749
|
+
data: P,
|
|
3750
|
+
label: l(d)
|
|
3720
3751
|
}, null, 8, ["data", "label"])
|
|
3721
3752
|
]),
|
|
3722
|
-
message: s(({ message:
|
|
3723
|
-
i(
|
|
3724
|
-
message:
|
|
3725
|
-
errors:
|
|
3753
|
+
message: s(({ message: P }) => [
|
|
3754
|
+
i(l(ve), {
|
|
3755
|
+
message: P,
|
|
3756
|
+
errors: l(h)
|
|
3726
3757
|
}, null, 8, ["message", "errors"])
|
|
3727
3758
|
]),
|
|
3728
3759
|
_: 1
|
|
3729
3760
|
}, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])
|
|
3730
|
-
], 2)) :
|
|
3761
|
+
], 2)) : Y("", !0);
|
|
3731
3762
|
};
|
|
3732
3763
|
}
|
|
3733
|
-
}),
|
|
3764
|
+
}), va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3734
3765
|
__proto__: null,
|
|
3735
|
-
DfActions:
|
|
3736
|
-
DfCheckbox:
|
|
3737
|
-
DfColor:
|
|
3738
|
-
DfDateTime:
|
|
3739
|
-
DfFile:
|
|
3740
|
-
DfImage:
|
|
3741
|
-
DfInput:
|
|
3766
|
+
DfActions: ht,
|
|
3767
|
+
DfCheckbox: gt,
|
|
3768
|
+
DfColor: yt,
|
|
3769
|
+
DfDateTime: kt,
|
|
3770
|
+
DfFile: wt,
|
|
3771
|
+
DfImage: Ct,
|
|
3772
|
+
DfInput: xt,
|
|
3742
3773
|
DfInputHint: ve,
|
|
3743
3774
|
DfLabel: fe,
|
|
3744
|
-
DfRtfEditor:
|
|
3745
|
-
DfSelect:
|
|
3746
|
-
DfTextArea:
|
|
3747
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3775
|
+
DfRtfEditor: Lt,
|
|
3776
|
+
DfSelect: It,
|
|
3777
|
+
DfTextArea: $t
|
|
3778
|
+
}, Symbol.toStringTag, { value: "Module" })), fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3748
3779
|
__proto__: null,
|
|
3749
|
-
VAutocomplete:
|
|
3750
|
-
VBtn:
|
|
3751
|
-
VCheckbox:
|
|
3752
|
-
VChip:
|
|
3753
|
-
VCol:
|
|
3754
|
-
VColorPicker:
|
|
3755
|
-
VCombobox:
|
|
3756
|
-
VConfirmEdit:
|
|
3757
|
-
VDatePicker:
|
|
3758
|
-
VField:
|
|
3759
|
-
VFileInput:
|
|
3760
|
-
VIcon:
|
|
3761
|
-
VImg:
|
|
3762
|
-
VInput:
|
|
3763
|
-
VListItem:
|
|
3764
|
-
VMenu:
|
|
3765
|
-
VNumberInput:
|
|
3766
|
-
VProgressLinear:
|
|
3767
|
-
VRow:
|
|
3768
|
-
VSelect:
|
|
3769
|
-
VSwitch:
|
|
3770
|
-
VTextField:
|
|
3771
|
-
VTextarea:
|
|
3772
|
-
VTimePicker:
|
|
3773
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3774
|
-
"df-actions":
|
|
3775
|
-
"df-checkbox":
|
|
3776
|
-
"df-color":
|
|
3777
|
-
"df-date-time":
|
|
3778
|
-
"df-file":
|
|
3779
|
-
"df-image":
|
|
3780
|
-
"df-input":
|
|
3780
|
+
VAutocomplete: kn,
|
|
3781
|
+
VBtn: wn,
|
|
3782
|
+
VCheckbox: Cn,
|
|
3783
|
+
VChip: xn,
|
|
3784
|
+
VCol: Ln,
|
|
3785
|
+
VColorPicker: Tn,
|
|
3786
|
+
VCombobox: An,
|
|
3787
|
+
VConfirmEdit: _n,
|
|
3788
|
+
VDatePicker: Vn,
|
|
3789
|
+
VField: jn,
|
|
3790
|
+
VFileInput: Bn,
|
|
3791
|
+
VIcon: $n,
|
|
3792
|
+
VImg: Dn,
|
|
3793
|
+
VInput: Sn,
|
|
3794
|
+
VListItem: Mn,
|
|
3795
|
+
VMenu: Rn,
|
|
3796
|
+
VNumberInput: Pn,
|
|
3797
|
+
VProgressLinear: Nn,
|
|
3798
|
+
VRow: In,
|
|
3799
|
+
VSelect: En,
|
|
3800
|
+
VSwitch: Un,
|
|
3801
|
+
VTextField: Fn,
|
|
3802
|
+
VTextarea: zn,
|
|
3803
|
+
VTimePicker: Hn
|
|
3804
|
+
}, Symbol.toStringTag, { value: "Module" })), ro = {
|
|
3805
|
+
"df-actions": ht,
|
|
3806
|
+
"df-checkbox": gt,
|
|
3807
|
+
"df-color": yt,
|
|
3808
|
+
"df-date-time": kt,
|
|
3809
|
+
"df-file": wt,
|
|
3810
|
+
"df-image": Ct,
|
|
3811
|
+
"df-input": xt,
|
|
3781
3812
|
"df-input-hint": ve,
|
|
3782
3813
|
"df-label": fe,
|
|
3783
|
-
"df-rtf-editor":
|
|
3784
|
-
"df-select":
|
|
3785
|
-
"df-text-area":
|
|
3786
|
-
},
|
|
3814
|
+
"df-rtf-editor": Lt,
|
|
3815
|
+
"df-select": It,
|
|
3816
|
+
"df-text-area": $t
|
|
3817
|
+
}, so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3787
3818
|
__proto__: null
|
|
3788
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3789
|
-
install: (t,
|
|
3819
|
+
}, Symbol.toStringTag, { value: "Module" })), uo = {
|
|
3820
|
+
install: (t, n) => {
|
|
3790
3821
|
var e, a;
|
|
3791
|
-
t.provide(
|
|
3822
|
+
t.provide(Je, n != null ? n : {}), (e = n == null ? void 0 : n.registerComponents) != null && e && Object.entries(va).map(([r, u]) => t.component(r, u)), (a = n == null ? void 0 : n.registerVuetifyComponents) != null && a && Object.entries(fa).map(([r, u]) => t.component(r, u));
|
|
3792
3823
|
}
|
|
3793
3824
|
};
|
|
3794
3825
|
export {
|
|
3795
|
-
|
|
3826
|
+
Ne as Action,
|
|
3796
3827
|
se as ActionDisplayStyle,
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3828
|
+
Tl as DateTimeLocaleConfig,
|
|
3829
|
+
ht as DfActions,
|
|
3830
|
+
gt as DfCheckbox,
|
|
3831
|
+
yt as DfColor,
|
|
3832
|
+
kt as DfDateTime,
|
|
3833
|
+
wt as DfFile,
|
|
3834
|
+
Ct as DfImage,
|
|
3835
|
+
xt as DfInput,
|
|
3836
|
+
so as DfInputComponentProps,
|
|
3837
|
+
va as DfInputComponents,
|
|
3807
3838
|
ve as DfInputHint,
|
|
3808
3839
|
fe as DfLabel,
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3840
|
+
Lt as DfRtfEditor,
|
|
3841
|
+
It as DfSelect,
|
|
3842
|
+
$t as DfTextArea,
|
|
3843
|
+
uo as DynamicFormsInputs,
|
|
3844
|
+
_l as FileGoneError,
|
|
3845
|
+
He as InputBase,
|
|
3846
|
+
Vl as Label,
|
|
3847
|
+
$l as ResponsiveActionRenderOptions,
|
|
3848
|
+
Bl as ResponsiveRenderOptions,
|
|
3849
|
+
fa as VuetifyComponents,
|
|
3818
3850
|
be as defaultBaseProps,
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3851
|
+
ot as defaultDisplayStyle,
|
|
3852
|
+
ro as dfInputComponentsByTag,
|
|
3853
|
+
Ll as getBreakpointName,
|
|
3854
|
+
ft as getRenderOptionsForBreakpoint,
|
|
3855
|
+
it as responsiveBreakpoints,
|
|
3856
|
+
bt as setFileGoneError,
|
|
3824
3857
|
we as translatableStrings,
|
|
3825
|
-
|
|
3826
|
-
|
|
3858
|
+
io as translateStrings,
|
|
3859
|
+
Il as useBreakpoint,
|
|
3860
|
+
pt as useFileTouchKeepAlive,
|
|
3827
3861
|
ce as useInputBase,
|
|
3828
|
-
|
|
3862
|
+
Je as vuetifyInputsSettingsKey
|
|
3829
3863
|
};
|
|
3830
3864
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|