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