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