@dynamicforms/vuetify-inputs 0.11.5 → 0.11.7
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.
|
@@ -2,88 +2,88 @@ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r
|
|
|
2
2
|
import L, { Action as R, DisplayMode as z, ExecuteAction as ne, MdString as re, MessagesWidget as B, ValidationErrorRenderContent as ie } from "@dynamicforms/vue-forms";
|
|
3
3
|
import { CachedIcon as V } from "vue-cached-icon";
|
|
4
4
|
import H from "vue-markdown-render";
|
|
5
|
-
import { castArray as U, clone as ae, first as oe, isArray as se, isBoolean as W, isEmpty as
|
|
6
|
-
import { createTranslatable as
|
|
7
|
-
import { useDisplay as
|
|
8
|
-
import { format as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { Table as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { NodeSelection as
|
|
17
|
-
import
|
|
18
|
-
import { EditorContent as
|
|
19
|
-
import { BubbleMenu as
|
|
20
|
-
import { Extension as
|
|
21
|
-
import { Fragment as
|
|
22
|
-
import
|
|
23
|
-
import { VAutocomplete as
|
|
24
|
-
import { VBtn as
|
|
25
|
-
import { VCheckbox as
|
|
26
|
-
import { VChip as
|
|
27
|
-
import { VCombobox as
|
|
28
|
-
import { VColorPicker as
|
|
29
|
-
import { VConfirmEdit as
|
|
30
|
-
import { VDatePicker as
|
|
31
|
-
import { VField as
|
|
32
|
-
import { VFileInput as
|
|
33
|
-
import { VCol as
|
|
34
|
-
import { VIcon as
|
|
35
|
-
import { VImg as
|
|
36
|
-
import { VInput as
|
|
37
|
-
import { VListItem as
|
|
38
|
-
import { VMenu as
|
|
39
|
-
import { VNumberInput as
|
|
40
|
-
import { VProgressLinear as
|
|
41
|
-
import { VSelect as
|
|
42
|
-
import { VSwitch as
|
|
43
|
-
import { VTextarea as
|
|
44
|
-
import { VTextField as
|
|
45
|
-
import { VTimePicker as
|
|
5
|
+
import { castArray as U, clone as ae, first as oe, isArray as se, isBoolean as W, isEmpty as ce, isEqual as le, isNaN as ue, isObjectLike as de, isPlainObject as fe, isString as G, toNumber as K, unionBy as pe } from "lodash-es";
|
|
6
|
+
import { createTranslatable as me } from "@dynamicforms/translatable";
|
|
7
|
+
import { useDisplay as he } from "vuetify";
|
|
8
|
+
import { format as ge, parse as _e } from "date-fns";
|
|
9
|
+
import ve from "@tiptap/extension-image";
|
|
10
|
+
import ye from "@tiptap/extension-placeholder";
|
|
11
|
+
import { Table as be } from "@tiptap/extension-table";
|
|
12
|
+
import xe from "@tiptap/extension-table-cell";
|
|
13
|
+
import Se from "@tiptap/extension-table-header";
|
|
14
|
+
import Ce from "@tiptap/extension-table-row";
|
|
15
|
+
import we from "@tiptap/extension-text-align";
|
|
16
|
+
import { NodeSelection as Te } from "@tiptap/pm/state";
|
|
17
|
+
import Ee from "@tiptap/starter-kit";
|
|
18
|
+
import { EditorContent as De, useEditor as Oe } from "@tiptap/vue-3";
|
|
19
|
+
import { BubbleMenu as ke } from "@tiptap/vue-3/menus";
|
|
20
|
+
import { Extension as Ae, Mark as je, Node as Me, mergeAttributes as Ne } from "@tiptap/core";
|
|
21
|
+
import { Fragment as Pe, Slice as Fe } from "@tiptap/pm/model";
|
|
22
|
+
import Ie from "@tiptap/extension-link";
|
|
23
|
+
import { VAutocomplete as Le } from "vuetify/components/VAutocomplete";
|
|
24
|
+
import { VBtn as Re } from "vuetify/components/VBtn";
|
|
25
|
+
import { VCheckbox as ze } from "vuetify/components/VCheckbox";
|
|
26
|
+
import { VChip as Be } from "vuetify/components/VChip";
|
|
27
|
+
import { VCombobox as Ve } from "vuetify/components/VCombobox";
|
|
28
|
+
import { VColorPicker as He } from "vuetify/components/VColorPicker";
|
|
29
|
+
import { VConfirmEdit as Ue } from "vuetify/components/VConfirmEdit";
|
|
30
|
+
import { VDatePicker as We } from "vuetify/components/VDatePicker";
|
|
31
|
+
import { VField as Ge } from "vuetify/components/VField";
|
|
32
|
+
import { VFileInput as Ke } from "vuetify/components/VFileInput";
|
|
33
|
+
import { VCol as qe, VRow as Je } from "vuetify/components/VGrid";
|
|
34
|
+
import { VIcon as Ye } from "vuetify/components/VIcon";
|
|
35
|
+
import { VImg as Xe } from "vuetify/components/VImg";
|
|
36
|
+
import { VInput as Ze } from "vuetify/components/VInput";
|
|
37
|
+
import { VListItem as Qe } from "vuetify/components/VList";
|
|
38
|
+
import { VMenu as $e } from "vuetify/components/VMenu";
|
|
39
|
+
import { VNumberInput as et } from "vuetify/components/VNumberInput";
|
|
40
|
+
import { VProgressLinear as tt } from "vuetify/components/VProgressLinear";
|
|
41
|
+
import { VSelect as nt } from "vuetify/components/VSelect";
|
|
42
|
+
import { VSwitch as rt } from "vuetify/components/VSwitch";
|
|
43
|
+
import { VTextarea as it } from "vuetify/components/VTextarea";
|
|
44
|
+
import { VTextField as at } from "vuetify/components/VTextField";
|
|
45
|
+
import { VTimePicker as ot } from "vuetify/components/VTimePicker";
|
|
46
46
|
//#region \0rolldown/runtime.js
|
|
47
|
-
var
|
|
47
|
+
var st = Object.defineProperty, ct = (e, t) => {
|
|
48
48
|
let n = {};
|
|
49
|
-
for (var r in e)
|
|
49
|
+
for (var r in e) st(n, r, {
|
|
50
50
|
get: e[r],
|
|
51
51
|
enumerable: !0
|
|
52
52
|
});
|
|
53
|
-
return t ||
|
|
53
|
+
return t || st(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
54
54
|
};
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/typeof.js
|
|
57
|
-
function
|
|
57
|
+
function lt(e) {
|
|
58
58
|
"@babel/helpers - typeof";
|
|
59
|
-
return
|
|
59
|
+
return lt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
60
60
|
return typeof e;
|
|
61
61
|
} : function(e) {
|
|
62
62
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
63
|
-
},
|
|
63
|
+
}, lt(e);
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPrimitive.js
|
|
67
|
-
function
|
|
68
|
-
if (
|
|
67
|
+
function ut(e, t) {
|
|
68
|
+
if (lt(e) != "object" || !e) return e;
|
|
69
69
|
var n = e[Symbol.toPrimitive];
|
|
70
70
|
if (n !== void 0) {
|
|
71
71
|
var r = n.call(e, t || "default");
|
|
72
|
-
if (
|
|
72
|
+
if (lt(r) != "object") return r;
|
|
73
73
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
74
74
|
}
|
|
75
75
|
return (t === "string" ? String : Number)(e);
|
|
76
76
|
}
|
|
77
77
|
//#endregion
|
|
78
78
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPropertyKey.js
|
|
79
|
-
function
|
|
80
|
-
var t =
|
|
81
|
-
return
|
|
79
|
+
function dt(e) {
|
|
80
|
+
var t = ut(e, "string");
|
|
81
|
+
return lt(t) == "symbol" ? t : t + "";
|
|
82
82
|
}
|
|
83
83
|
//#endregion
|
|
84
84
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/defineProperty.js
|
|
85
|
-
function
|
|
86
|
-
return (t =
|
|
85
|
+
function ft(e, t, n) {
|
|
86
|
+
return (t = dt(t)) in e ? Object.defineProperty(e, t, {
|
|
87
87
|
value: n,
|
|
88
88
|
enumerable: !0,
|
|
89
89
|
configurable: !0,
|
|
@@ -92,7 +92,7 @@ function dt(e, t, n) {
|
|
|
92
92
|
}
|
|
93
93
|
//#endregion
|
|
94
94
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/objectSpread2.js
|
|
95
|
-
function
|
|
95
|
+
function pt(e, t) {
|
|
96
96
|
var n = Object.keys(e);
|
|
97
97
|
if (Object.getOwnPropertySymbols) {
|
|
98
98
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -102,12 +102,12 @@ function ft(e, t) {
|
|
|
102
102
|
}
|
|
103
103
|
return n;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function q(e) {
|
|
106
106
|
for (var t = 1; t < arguments.length; t++) {
|
|
107
107
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
108
|
-
t % 2 ?
|
|
109
|
-
|
|
110
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
108
|
+
t % 2 ? pt(Object(n), !0).forEach(function(t) {
|
|
109
|
+
ft(e, t, n[t]);
|
|
110
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pt(Object(n)).forEach(function(t) {
|
|
111
111
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
112
112
|
});
|
|
113
113
|
}
|
|
@@ -115,10 +115,10 @@ function J(e) {
|
|
|
115
115
|
}
|
|
116
116
|
//#endregion
|
|
117
117
|
//#region node_modules/date-fns/locale/sl/_lib/formatDistance.js
|
|
118
|
-
function
|
|
118
|
+
function mt(e) {
|
|
119
119
|
return e.one !== void 0;
|
|
120
120
|
}
|
|
121
|
-
var
|
|
121
|
+
var ht = {
|
|
122
122
|
lessThanXSeconds: {
|
|
123
123
|
present: {
|
|
124
124
|
one: "manj kot {{count}} sekunda",
|
|
@@ -393,7 +393,7 @@ var mt = {
|
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
};
|
|
396
|
-
function
|
|
396
|
+
function gt(e) {
|
|
397
397
|
switch (e % 100) {
|
|
398
398
|
case 1: return "one";
|
|
399
399
|
case 2: return "two";
|
|
@@ -402,27 +402,27 @@ function ht(e) {
|
|
|
402
402
|
default: return "other";
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
var
|
|
405
|
+
var _t = (e, t, n) => {
|
|
406
406
|
let r = "", i = "present";
|
|
407
407
|
n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (i = "future", r = "čez ") : (i = "past", r = "pred "));
|
|
408
|
-
let a =
|
|
408
|
+
let a = ht[e];
|
|
409
409
|
if (typeof a == "string") r += a;
|
|
410
410
|
else {
|
|
411
|
-
let e =
|
|
412
|
-
|
|
411
|
+
let e = gt(t);
|
|
412
|
+
mt(a) ? r += a[e].replace("{{count}}", String(t)) : r += a[i][e].replace("{{count}}", String(t));
|
|
413
413
|
}
|
|
414
414
|
return r;
|
|
415
415
|
};
|
|
416
416
|
//#endregion
|
|
417
417
|
//#region node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
418
|
-
function
|
|
418
|
+
function vt(e) {
|
|
419
419
|
return (t = {}) => {
|
|
420
420
|
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
421
421
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
422
422
|
};
|
|
423
423
|
}
|
|
424
|
-
var
|
|
425
|
-
date:
|
|
424
|
+
var yt = {
|
|
425
|
+
date: vt({
|
|
426
426
|
formats: {
|
|
427
427
|
full: "EEEE, dd. MMMM y",
|
|
428
428
|
long: "dd. MMMM y",
|
|
@@ -431,7 +431,7 @@ var vt = {
|
|
|
431
431
|
},
|
|
432
432
|
defaultWidth: "full"
|
|
433
433
|
}),
|
|
434
|
-
time:
|
|
434
|
+
time: vt({
|
|
435
435
|
formats: {
|
|
436
436
|
full: "HH:mm:ss zzzz",
|
|
437
437
|
long: "HH:mm:ss z",
|
|
@@ -440,7 +440,7 @@ var vt = {
|
|
|
440
440
|
},
|
|
441
441
|
defaultWidth: "full"
|
|
442
442
|
}),
|
|
443
|
-
dateTime:
|
|
443
|
+
dateTime: vt({
|
|
444
444
|
formats: {
|
|
445
445
|
full: "{{date}} {{time}}",
|
|
446
446
|
long: "{{date}} {{time}}",
|
|
@@ -449,7 +449,7 @@ var vt = {
|
|
|
449
449
|
},
|
|
450
450
|
defaultWidth: "full"
|
|
451
451
|
})
|
|
452
|
-
},
|
|
452
|
+
}, bt = {
|
|
453
453
|
lastWeek: (e) => {
|
|
454
454
|
switch (e.getDay()) {
|
|
455
455
|
case 0: return "'prejšnjo nedeljo ob' p";
|
|
@@ -470,13 +470,13 @@ var vt = {
|
|
|
470
470
|
}
|
|
471
471
|
},
|
|
472
472
|
other: "P"
|
|
473
|
-
},
|
|
474
|
-
let i =
|
|
473
|
+
}, xt = (e, t, n, r) => {
|
|
474
|
+
let i = bt[e];
|
|
475
475
|
return typeof i == "function" ? i(t) : i;
|
|
476
476
|
};
|
|
477
477
|
//#endregion
|
|
478
478
|
//#region node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
479
|
-
function
|
|
479
|
+
function St(e) {
|
|
480
480
|
return (t, n) => {
|
|
481
481
|
let r = n != null && n.context ? String(n.context) : "standalone", i;
|
|
482
482
|
if (r === "formatting" && e.formattingValues) {
|
|
@@ -490,9 +490,9 @@ function xt(e) {
|
|
|
490
490
|
return i[a];
|
|
491
491
|
};
|
|
492
492
|
}
|
|
493
|
-
var
|
|
493
|
+
var Ct = {
|
|
494
494
|
ordinalNumber: (e, t) => Number(e) + ".",
|
|
495
|
-
era:
|
|
495
|
+
era: St({
|
|
496
496
|
values: {
|
|
497
497
|
narrow: ["pr. n. št.", "po n. št."],
|
|
498
498
|
abbreviated: ["pr. n. št.", "po n. št."],
|
|
@@ -500,7 +500,7 @@ var St = {
|
|
|
500
500
|
},
|
|
501
501
|
defaultWidth: "wide"
|
|
502
502
|
}),
|
|
503
|
-
quarter:
|
|
503
|
+
quarter: St({
|
|
504
504
|
values: {
|
|
505
505
|
narrow: [
|
|
506
506
|
"1",
|
|
@@ -524,7 +524,7 @@ var St = {
|
|
|
524
524
|
defaultWidth: "wide",
|
|
525
525
|
argumentCallback: (e) => e - 1
|
|
526
526
|
}),
|
|
527
|
-
month:
|
|
527
|
+
month: St({
|
|
528
528
|
values: {
|
|
529
529
|
narrow: [
|
|
530
530
|
"j",
|
|
@@ -571,7 +571,7 @@ var St = {
|
|
|
571
571
|
},
|
|
572
572
|
defaultWidth: "wide"
|
|
573
573
|
}),
|
|
574
|
-
day:
|
|
574
|
+
day: St({
|
|
575
575
|
values: {
|
|
576
576
|
narrow: [
|
|
577
577
|
"n",
|
|
@@ -612,7 +612,7 @@ var St = {
|
|
|
612
612
|
},
|
|
613
613
|
defaultWidth: "wide"
|
|
614
614
|
}),
|
|
615
|
-
dayPeriod:
|
|
615
|
+
dayPeriod: St({
|
|
616
616
|
values: {
|
|
617
617
|
narrow: {
|
|
618
618
|
am: "d",
|
|
@@ -683,11 +683,11 @@ var St = {
|
|
|
683
683
|
};
|
|
684
684
|
//#endregion
|
|
685
685
|
//#region node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
686
|
-
function
|
|
686
|
+
function wt(e) {
|
|
687
687
|
return (t, n = {}) => {
|
|
688
688
|
let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
|
|
689
689
|
if (!a) return null;
|
|
690
|
-
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ?
|
|
690
|
+
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? Et(s, (e) => e.test(o)) : Tt(s, (e) => e.test(o)), l;
|
|
691
691
|
l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
|
|
692
692
|
let u = t.slice(o.length);
|
|
693
693
|
return {
|
|
@@ -696,15 +696,15 @@ function Ct(e) {
|
|
|
696
696
|
};
|
|
697
697
|
};
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function Tt(e, t) {
|
|
700
700
|
for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function Et(e, t) {
|
|
703
703
|
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
704
704
|
}
|
|
705
705
|
//#endregion
|
|
706
706
|
//#region node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
707
|
-
function
|
|
707
|
+
function Dt(e) {
|
|
708
708
|
return (t, n = {}) => {
|
|
709
709
|
let r = t.match(e.matchPattern);
|
|
710
710
|
if (!r) return null;
|
|
@@ -721,19 +721,19 @@ function Et(e) {
|
|
|
721
721
|
}
|
|
722
722
|
//#endregion
|
|
723
723
|
//#region node_modules/date-fns/locale/sl.js
|
|
724
|
-
var
|
|
724
|
+
var Ot = {
|
|
725
725
|
code: "sl",
|
|
726
|
-
formatDistance:
|
|
727
|
-
formatLong:
|
|
728
|
-
formatRelative:
|
|
729
|
-
localize:
|
|
726
|
+
formatDistance: _t,
|
|
727
|
+
formatLong: yt,
|
|
728
|
+
formatRelative: xt,
|
|
729
|
+
localize: Ct,
|
|
730
730
|
match: {
|
|
731
|
-
ordinalNumber:
|
|
731
|
+
ordinalNumber: Dt({
|
|
732
732
|
matchPattern: /^(\d+)\./i,
|
|
733
733
|
parsePattern: /\d+/i,
|
|
734
734
|
valueCallback: (e) => parseInt(e, 10)
|
|
735
735
|
}),
|
|
736
|
-
era:
|
|
736
|
+
era: wt({
|
|
737
737
|
matchPatterns: {
|
|
738
738
|
abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
|
|
739
739
|
wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
|
|
@@ -742,7 +742,7 @@ var Dt = {
|
|
|
742
742
|
parsePatterns: { any: [/^pr/i, /^(po|na[sš]em)/i] },
|
|
743
743
|
defaultParseWidth: "any"
|
|
744
744
|
}),
|
|
745
|
-
quarter:
|
|
745
|
+
quarter: wt({
|
|
746
746
|
matchPatterns: {
|
|
747
747
|
narrow: /^[1234]/i,
|
|
748
748
|
abbreviated: /^[1234]\.\s?[čc]et\.?/i,
|
|
@@ -758,7 +758,7 @@ var Dt = {
|
|
|
758
758
|
defaultParseWidth: "any",
|
|
759
759
|
valueCallback: (e) => e + 1
|
|
760
760
|
}),
|
|
761
|
-
month:
|
|
761
|
+
month: wt({
|
|
762
762
|
matchPatterns: {
|
|
763
763
|
narrow: /^[jfmasond]/i,
|
|
764
764
|
abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,
|
|
@@ -811,7 +811,7 @@ var Dt = {
|
|
|
811
811
|
},
|
|
812
812
|
defaultParseWidth: "wide"
|
|
813
813
|
}),
|
|
814
|
-
day:
|
|
814
|
+
day: wt({
|
|
815
815
|
matchPatterns: {
|
|
816
816
|
narrow: /^[nptsčc]/i,
|
|
817
817
|
short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
@@ -841,7 +841,7 @@ var Dt = {
|
|
|
841
841
|
},
|
|
842
842
|
defaultParseWidth: "any"
|
|
843
843
|
}),
|
|
844
|
-
dayPeriod:
|
|
844
|
+
dayPeriod: wt({
|
|
845
845
|
matchPatterns: {
|
|
846
846
|
narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
|
|
847
847
|
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
|
|
@@ -876,16 +876,16 @@ var Dt = {
|
|
|
876
876
|
weekStartsOn: 1,
|
|
877
877
|
firstWeekContainsDate: 1
|
|
878
878
|
}
|
|
879
|
-
},
|
|
880
|
-
dateTimeLocale: S(
|
|
879
|
+
}, kt = {
|
|
880
|
+
dateTimeLocale: S(Ot),
|
|
881
881
|
setDateTimeLocale(e) {
|
|
882
882
|
f(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
|
|
883
883
|
}
|
|
884
|
-
},
|
|
884
|
+
}, At = class extends Error {
|
|
885
885
|
constructor(e) {
|
|
886
|
-
super(e),
|
|
886
|
+
super(e), ft(this, "errorText", void 0), this.errorText = e;
|
|
887
887
|
}
|
|
888
|
-
},
|
|
888
|
+
}, J = /* @__PURE__ */ l({
|
|
889
889
|
__name: "df-input-hint",
|
|
890
890
|
props: {
|
|
891
891
|
errors: { default: "" },
|
|
@@ -900,7 +900,7 @@ var Dt = {
|
|
|
900
900
|
classes: o.value
|
|
901
901
|
}, null, 8, ["message", "classes"]));
|
|
902
902
|
}
|
|
903
|
-
}),
|
|
903
|
+
}), Y = /* @__PURE__ */ l({
|
|
904
904
|
__name: "df-label",
|
|
905
905
|
props: {
|
|
906
906
|
data: {},
|
|
@@ -935,16 +935,16 @@ var Dt = {
|
|
|
935
935
|
])) : (x(), i(e, { key: 2 }, [s(O(c.value), 1)], 64))], 2);
|
|
936
936
|
};
|
|
937
937
|
}
|
|
938
|
-
}),
|
|
938
|
+
}), jt = Symbol("vuetifyInputsSettingsKey"), Mt = class {
|
|
939
939
|
constructor(e, t, n = "v-icon") {
|
|
940
|
-
|
|
940
|
+
ft(this, "text", void 0), ft(this, "icon", void 0), ft(this, "iconComponent", void 0), this.text = e, this.icon = t, this.iconComponent = n;
|
|
941
941
|
}
|
|
942
|
-
},
|
|
942
|
+
}, X = {
|
|
943
943
|
enabled: void 0,
|
|
944
944
|
clearable: !0
|
|
945
945
|
};
|
|
946
|
-
function
|
|
947
|
-
let r = d(
|
|
946
|
+
function Z(e, n) {
|
|
947
|
+
let r = d(jt, {}), i = d("field-density", null), a = d("field-variant", null), o = S(null), s = D(null), c = t({
|
|
948
948
|
get() {
|
|
949
949
|
return s.value ? s.value.value : e.control ? e.control.value : e.modelValue === void 0 ? o.value : e.modelValue;
|
|
950
950
|
},
|
|
@@ -976,7 +976,7 @@ function Q(e, n) {
|
|
|
976
976
|
}), C = t(() => {
|
|
977
977
|
var t;
|
|
978
978
|
let n = (t = e.label) == null ? x.value.label : t;
|
|
979
|
-
return
|
|
979
|
+
return G(n || "") ? new Mt(n || "") : n;
|
|
980
980
|
}), w = t(() => {
|
|
981
981
|
var t, n;
|
|
982
982
|
return (t = (n = e.placeholder) == null ? x.value.placeholder : n) == null ? "" : t;
|
|
@@ -1011,7 +1011,7 @@ function Q(e, n) {
|
|
|
1011
1011
|
densityClass: t(() => `df-density-${A.value}`),
|
|
1012
1012
|
vuetifyBindings: t(() => {
|
|
1013
1013
|
var t;
|
|
1014
|
-
return
|
|
1014
|
+
return q({
|
|
1015
1015
|
name: (t = e.control) == null ? void 0 : t.fieldName,
|
|
1016
1016
|
class: O.value,
|
|
1017
1017
|
density: j.value,
|
|
@@ -1021,7 +1021,7 @@ function Q(e, n) {
|
|
|
1021
1021
|
readonly: !_.value,
|
|
1022
1022
|
disabled: !_.value,
|
|
1023
1023
|
placeholder: w.value,
|
|
1024
|
-
"persistent-placeholder": !
|
|
1024
|
+
"persistent-placeholder": !ce(w.value),
|
|
1025
1025
|
hint: E.value,
|
|
1026
1026
|
persistentHint: !0,
|
|
1027
1027
|
hideDetails: "auto",
|
|
@@ -1032,7 +1032,7 @@ function Q(e, n) {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
//#endregion
|
|
1034
1034
|
//#region src/helpers/input-base.vue?vue&type=script&setup=true&lang.ts
|
|
1035
|
-
var
|
|
1035
|
+
var Nt = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Pt = /* @__PURE__ */ l({
|
|
1036
1036
|
__name: "input-base",
|
|
1037
1037
|
props: {
|
|
1038
1038
|
control: {},
|
|
@@ -1057,7 +1057,7 @@ var Mt = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Nt = /* @__P
|
|
|
1057
1057
|
"blur"
|
|
1058
1058
|
],
|
|
1059
1059
|
setup(e, { emit: i }) {
|
|
1060
|
-
let s = e, l = i, { isRendered: d, label: f, showErrors: p, touched: m, value: h, visibilityClass: v, vuetifyBindings: y } =
|
|
1060
|
+
let s = e, l = i, { isRendered: d, label: f, showErrors: p, touched: m, value: h, visibilityClass: v, vuetifyBindings: y } = Z(s, l), b = t(() => !!(j(s.clearable) && j(h))), C = S(!1);
|
|
1061
1061
|
function E(e) {
|
|
1062
1062
|
C.value = e, e || (m.value = !0, l("blur"));
|
|
1063
1063
|
}
|
|
@@ -1073,7 +1073,7 @@ var Mt = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Nt = /* @__P
|
|
|
1073
1073
|
"error-messages": j(y).errorMessages,
|
|
1074
1074
|
class: g([e.cssClass, j(v)])
|
|
1075
1075
|
}, o({
|
|
1076
|
-
message: P(({ message: e }) => [c(
|
|
1076
|
+
message: P(({ message: e }) => [c(J, {
|
|
1077
1077
|
message: e,
|
|
1078
1078
|
errors: j(p)
|
|
1079
1079
|
}, null, 8, ["message", "errors"])]),
|
|
@@ -1090,11 +1090,11 @@ var Mt = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Nt = /* @__P
|
|
|
1090
1090
|
"onClick:clear": i[0] || (i[0] = (e) => l("click:clear")),
|
|
1091
1091
|
"onUpdate:focused": i[1] || (i[1] = (e) => E(e))
|
|
1092
1092
|
}, o({
|
|
1093
|
-
label: P((e) => [c(
|
|
1093
|
+
label: P((e) => [c(Y, {
|
|
1094
1094
|
data: e,
|
|
1095
1095
|
label: j(f)
|
|
1096
1096
|
}, null, 8, ["data", "label"])]),
|
|
1097
|
-
default: P((e) => [a("div",
|
|
1097
|
+
default: P((e) => [a("div", Nt, [w(t.$slots, "default", _(u(e)))])]),
|
|
1098
1098
|
loader: P((e) => [w(t.$slots, "loader", _(u(e)))]),
|
|
1099
1099
|
_: 2
|
|
1100
1100
|
}, [t.$slots["prepend-inner"] ? {
|
|
@@ -1127,7 +1127,7 @@ var Mt = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Nt = /* @__P
|
|
|
1127
1127
|
])) : r("", !0);
|
|
1128
1128
|
};
|
|
1129
1129
|
}
|
|
1130
|
-
}), { strings:
|
|
1130
|
+
}), { strings: Ft, translateStrings: It } = me({
|
|
1131
1131
|
Yes: "Yes",
|
|
1132
1132
|
No: "No",
|
|
1133
1133
|
Close: "Close",
|
|
@@ -1190,36 +1190,36 @@ var Mt = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Nt = /* @__P
|
|
|
1190
1190
|
MediaEmbedUrl: "Video URL",
|
|
1191
1191
|
MediaEmbedInsert: "Insert",
|
|
1192
1192
|
InvalidHexColor: "Not a valid hex string."
|
|
1193
|
-
}),
|
|
1193
|
+
}), Q = /* @__PURE__ */ function(e) {
|
|
1194
1194
|
return e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e;
|
|
1195
|
-
}(
|
|
1195
|
+
}(Q || {}), Lt = 0;
|
|
1196
1196
|
(function(e) {
|
|
1197
1197
|
function t(e) {
|
|
1198
1198
|
return e.toUpperCase() === "BUTTON" ? 0 : +(e.toUpperCase() === "TEXT");
|
|
1199
1199
|
}
|
|
1200
1200
|
e.fromString = t;
|
|
1201
1201
|
function n(e) {
|
|
1202
|
-
let t = typeof e == "number" ? e :
|
|
1203
|
-
return Object.values(
|
|
1202
|
+
let t = typeof e == "number" ? e : Q.fromString(e);
|
|
1203
|
+
return Object.values(Q).includes(t) ? t : 0;
|
|
1204
1204
|
}
|
|
1205
1205
|
e.fromAny = n;
|
|
1206
1206
|
function r(e) {
|
|
1207
|
-
let t = typeof e == "number" ? e :
|
|
1208
|
-
return Object.values(
|
|
1207
|
+
let t = typeof e == "number" ? e : Q.fromString(e);
|
|
1208
|
+
return Object.values(Q).includes(t);
|
|
1209
1209
|
}
|
|
1210
1210
|
e.isDefined = r;
|
|
1211
|
-
})(
|
|
1211
|
+
})(Q || (Q = {})), Object.freeze(Q);
|
|
1212
1212
|
//#endregion
|
|
1213
1213
|
//#region src/helpers/action/responsive-render-options.ts
|
|
1214
|
-
var
|
|
1214
|
+
var Rt = [
|
|
1215
1215
|
"xs",
|
|
1216
1216
|
"sm",
|
|
1217
1217
|
"md",
|
|
1218
1218
|
"lg",
|
|
1219
1219
|
"xl"
|
|
1220
|
-
],
|
|
1220
|
+
], zt = class {
|
|
1221
1221
|
constructor(e) {
|
|
1222
|
-
|
|
1222
|
+
ft(this, "_value", void 0), this._value = this.cleanBreakpoint(e, !0), e && Rt.forEach((t) => {
|
|
1223
1223
|
let n = this.cleanBreakpoint(e[t]);
|
|
1224
1224
|
n && (this._value[t] = n);
|
|
1225
1225
|
});
|
|
@@ -1227,43 +1227,43 @@ var Lt = [
|
|
|
1227
1227
|
getOptionsForBreakpoint(e) {
|
|
1228
1228
|
var t;
|
|
1229
1229
|
let n = (t = this.cleanBreakpoint(this._value)) == null ? {} : t;
|
|
1230
|
-
for (let t of
|
|
1230
|
+
for (let t of Rt) {
|
|
1231
1231
|
var r;
|
|
1232
1232
|
let i = (r = this._value[t]) == null ? {} : r;
|
|
1233
1233
|
for (let e of Object.keys(i)) {
|
|
1234
1234
|
let t = i[e];
|
|
1235
|
-
t != null && (n[e] =
|
|
1235
|
+
t != null && (n[e] = fe(t) ? q(q({}, n[e]), t) : t);
|
|
1236
1236
|
}
|
|
1237
1237
|
if (t === e) break;
|
|
1238
1238
|
}
|
|
1239
1239
|
return n;
|
|
1240
1240
|
}
|
|
1241
1241
|
};
|
|
1242
|
-
function
|
|
1242
|
+
function Bt(e) {
|
|
1243
1243
|
return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1246
|
-
let e =
|
|
1247
|
-
return t(() =>
|
|
1245
|
+
function Vt() {
|
|
1246
|
+
let e = he();
|
|
1247
|
+
return t(() => Bt(e));
|
|
1248
1248
|
}
|
|
1249
1249
|
//#endregion
|
|
1250
1250
|
//#region src/helpers/action/action-render-options.ts
|
|
1251
|
-
var
|
|
1251
|
+
var Ht = class extends zt {
|
|
1252
1252
|
cleanBreakpoint(e, t = !1) {
|
|
1253
|
-
if ((!e || !
|
|
1253
|
+
if ((!e || !de(e)) && !t) return null;
|
|
1254
1254
|
let n = {};
|
|
1255
|
-
return t && (n.renderAs =
|
|
1255
|
+
return t && (n.renderAs = Q.BUTTON, n.showLabel = !0, n.showIcon = !0), e && (e.renderAs != null && (n.renderAs = Q.fromAny(e.renderAs)), G(e.label) && (n.label = e.label), G(e.icon) && (n.icon = e.icon), W(e.showLabel) && (n.showLabel = e.showLabel), W(e.showIcon) && (n.showIcon = e.showIcon), G(e.name) && (n.name = e.name), W(e.defaultConfirm) && (n.defaultConfirm = e.defaultConfirm), W(e.defaultReject) && (n.defaultReject = e.defaultReject), fe(e.passthroughAttrs) && (n.passthroughAttrs = q({}, e.passthroughAttrs))), Object.keys(n).length ? n : null;
|
|
1256
1256
|
}
|
|
1257
1257
|
};
|
|
1258
|
-
function
|
|
1259
|
-
let n = new
|
|
1258
|
+
function Ut(e, t) {
|
|
1259
|
+
let n = new Ht(e).getOptionsForBreakpoint(t);
|
|
1260
1260
|
return {
|
|
1261
1261
|
name: n.name,
|
|
1262
1262
|
label: n.showLabel ? n.label : void 0,
|
|
1263
1263
|
icon: n.showIcon ? n.icon : void 0,
|
|
1264
1264
|
renderAs: n.renderAs,
|
|
1265
|
-
showLabel:
|
|
1266
|
-
showIcon:
|
|
1265
|
+
showLabel: G(n.label) && !ce(n.label) ? n.showLabel : !1,
|
|
1266
|
+
showIcon: G(n.icon) && !ce(n.icon) ? n.showIcon : !1,
|
|
1267
1267
|
defaultConfirm: n.defaultConfirm,
|
|
1268
1268
|
defaultReject: n.defaultReject,
|
|
1269
1269
|
passthroughAttrs: n.passthroughAttrs
|
|
@@ -1271,9 +1271,9 @@ function Ht(e, t) {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
//#endregion
|
|
1273
1273
|
//#region src/helpers/action/action.ts
|
|
1274
|
-
var
|
|
1274
|
+
var Wt = class e extends R {
|
|
1275
1275
|
getBreakpointValue(e) {
|
|
1276
|
-
return t(() =>
|
|
1276
|
+
return t(() => Ut(this.value, e.value));
|
|
1277
1277
|
}
|
|
1278
1278
|
get name() {
|
|
1279
1279
|
return this.value.name;
|
|
@@ -1282,13 +1282,13 @@ var Ut = class e extends R {
|
|
|
1282
1282
|
return this.value.showLabel ? this.value.label : void 0;
|
|
1283
1283
|
}
|
|
1284
1284
|
get showLabel() {
|
|
1285
|
-
return
|
|
1285
|
+
return G(this.value.label) && !ce(this.value.label) ? this.value.showLabel : !1;
|
|
1286
1286
|
}
|
|
1287
1287
|
get renderedIcon() {
|
|
1288
1288
|
return this.value.showIcon ? this.value.icon : void 0;
|
|
1289
1289
|
}
|
|
1290
1290
|
get showIcon() {
|
|
1291
|
-
return
|
|
1291
|
+
return G(this.value.icon) && !ce(this.value.icon) ? this.value.showIcon : !1;
|
|
1292
1292
|
}
|
|
1293
1293
|
get renderAs() {
|
|
1294
1294
|
return this.value.renderAs;
|
|
@@ -1304,45 +1304,45 @@ var Ut = class e extends R {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
static closeAction(t) {
|
|
1306
1306
|
var n;
|
|
1307
|
-
let r =
|
|
1307
|
+
let r = q(q({}, t == null ? {} : t), {}, { value: {
|
|
1308
1308
|
name: "close",
|
|
1309
|
-
label:
|
|
1309
|
+
label: Ft.Close,
|
|
1310
1310
|
icon: "ion-close-outline",
|
|
1311
|
-
renderAs:
|
|
1311
|
+
renderAs: Q.BUTTON,
|
|
1312
1312
|
showLabel: !0,
|
|
1313
1313
|
showIcon: !0
|
|
1314
1314
|
} });
|
|
1315
|
-
return r.value =
|
|
1315
|
+
return r.value = q(q({}, r.value), (n = t == null ? void 0 : t.value) == null ? {} : n), new e(r);
|
|
1316
1316
|
}
|
|
1317
1317
|
static yesAction(t) {
|
|
1318
1318
|
var n;
|
|
1319
|
-
let r =
|
|
1319
|
+
let r = q(q({}, t == null ? {} : t), {}, { value: {
|
|
1320
1320
|
name: "yes",
|
|
1321
|
-
label:
|
|
1321
|
+
label: Ft.Yes,
|
|
1322
1322
|
icon: "ion-thumbs-up-outline",
|
|
1323
|
-
renderAs:
|
|
1323
|
+
renderAs: Q.BUTTON,
|
|
1324
1324
|
showLabel: !0,
|
|
1325
1325
|
showIcon: !0
|
|
1326
1326
|
} });
|
|
1327
|
-
return r.value =
|
|
1327
|
+
return r.value = q(q({}, r.value), (n = t == null ? void 0 : t.value) == null ? {} : n), new e(r);
|
|
1328
1328
|
}
|
|
1329
1329
|
static noAction(t) {
|
|
1330
1330
|
var n;
|
|
1331
|
-
let r =
|
|
1331
|
+
let r = q(q({}, t == null ? {} : t), {}, { value: {
|
|
1332
1332
|
name: "no",
|
|
1333
|
-
label:
|
|
1333
|
+
label: Ft.No,
|
|
1334
1334
|
icon: "ion-thumbs-down-outline",
|
|
1335
|
-
renderAs:
|
|
1335
|
+
renderAs: Q.BUTTON,
|
|
1336
1336
|
showLabel: !0,
|
|
1337
1337
|
showIcon: !0
|
|
1338
1338
|
} });
|
|
1339
|
-
return r.value =
|
|
1339
|
+
return r.value = q(q({}, r.value), (n = t == null ? void 0 : t.value) == null ? {} : n), new e(r);
|
|
1340
1340
|
}
|
|
1341
1341
|
};
|
|
1342
1342
|
//#endregion
|
|
1343
1343
|
//#region src/helpers/use-file-touch-keepalive.ts
|
|
1344
|
-
function
|
|
1345
|
-
let i = d(
|
|
1344
|
+
function Gt(e, t, n, r) {
|
|
1345
|
+
let i = d(jt, {}), a = S(null);
|
|
1346
1346
|
function o() {
|
|
1347
1347
|
a.value && window.clearInterval(a.value);
|
|
1348
1348
|
}
|
|
@@ -1352,7 +1352,7 @@ function Wt(e, t, n, r) {
|
|
|
1352
1352
|
let l = (s = (c = n()) == null ? i.defaultTouchInterval : c) == null ? 6e4 : s;
|
|
1353
1353
|
a.value = window.setInterval(() => {
|
|
1354
1354
|
e.value && t().touch(e.value).catch((e) => {
|
|
1355
|
-
e instanceof
|
|
1355
|
+
e instanceof At && r(e.errorText);
|
|
1356
1356
|
});
|
|
1357
1357
|
}, l);
|
|
1358
1358
|
}
|
|
@@ -1361,15 +1361,15 @@ function Wt(e, t, n, r) {
|
|
|
1361
1361
|
clearTouchInterval: o
|
|
1362
1362
|
};
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function Kt(e, t) {
|
|
1365
1365
|
e && (e.errors = [new ie(t)]);
|
|
1366
1366
|
}
|
|
1367
1367
|
//#endregion
|
|
1368
1368
|
//#region src/df-actions.vue?vue&type=script&setup=true&lang.ts
|
|
1369
|
-
var
|
|
1369
|
+
var qt = {
|
|
1370
1370
|
key: 1,
|
|
1371
1371
|
style: { width: "0.5rem" }
|
|
1372
|
-
},
|
|
1372
|
+
}, Jt = { key: 2 }, Yt = /* @__PURE__ */ l({
|
|
1373
1373
|
__name: "df-actions",
|
|
1374
1374
|
props: {
|
|
1375
1375
|
actions: {},
|
|
@@ -1378,7 +1378,7 @@ var Kt = {
|
|
|
1378
1378
|
showAsGroup: { default: "no" }
|
|
1379
1379
|
},
|
|
1380
1380
|
setup(a) {
|
|
1381
|
-
let o = a, s =
|
|
1381
|
+
let o = a, s = Vt(), c = t(() => j(o.actions).filter((e) => e.visibility !== z.SUPPRESS)), l = t(() => c.value.map((e) => q({ action: e }, Ut(e.value, s.value))));
|
|
1382
1382
|
function u(e) {
|
|
1383
1383
|
if (e.defaultConfirm) return "primary";
|
|
1384
1384
|
if (e.defaultReject) return "secondary";
|
|
@@ -1393,7 +1393,7 @@ var Kt = {
|
|
|
1393
1393
|
}])
|
|
1394
1394
|
}, [(x(!0), i(e, null, C(l.value, (e, t) => (x(), n(s, m({
|
|
1395
1395
|
key: t,
|
|
1396
|
-
variant: e.renderAs === j(
|
|
1396
|
+
variant: e.renderAs === j(Q).BUTTON ? "tonal" : "text",
|
|
1397
1397
|
color: u(e),
|
|
1398
1398
|
disabled: !e.action.effectiveEnabled || e.action.busy,
|
|
1399
1399
|
loading: e.action.busy,
|
|
@@ -1410,8 +1410,8 @@ var Kt = {
|
|
|
1410
1410
|
key: 0,
|
|
1411
1411
|
name: e.icon
|
|
1412
1412
|
}, null, 8, ["name"])) : r("", !0),
|
|
1413
|
-
e.icon && e.label ? (x(), i("span",
|
|
1414
|
-
e.label ? (x(), i("span",
|
|
1413
|
+
e.icon && e.label ? (x(), i("span", qt)) : r("", !0),
|
|
1414
|
+
e.label ? (x(), i("span", Jt, O(e.label), 1)) : r("", !0)
|
|
1415
1415
|
]),
|
|
1416
1416
|
_: 2
|
|
1417
1417
|
}, 1040, [
|
|
@@ -1426,7 +1426,7 @@ var Kt = {
|
|
|
1426
1426
|
]))), 128))], 2)) : r("", !0);
|
|
1427
1427
|
};
|
|
1428
1428
|
}
|
|
1429
|
-
}),
|
|
1429
|
+
}), Xt = /* @__PURE__ */ l({
|
|
1430
1430
|
__name: "df-checkbox",
|
|
1431
1431
|
props: /*@__PURE__*/ p({
|
|
1432
1432
|
allowNull: { type: Boolean },
|
|
@@ -1444,10 +1444,10 @@ var Kt = {
|
|
|
1444
1444
|
passthroughAttrs: {},
|
|
1445
1445
|
density: {},
|
|
1446
1446
|
variant: {}
|
|
1447
|
-
},
|
|
1447
|
+
}, q(q({}, X), {}, { allowNull: !1 })),
|
|
1448
1448
|
emits: ["update:modelValue", "click:clear"],
|
|
1449
1449
|
setup(e, { emit: i }) {
|
|
1450
|
-
let a = e, { densityClass: o, isRendered: s, label: l, showErrors: u, touched: d, value: f, visibilityClass: p, vuetifyBindings: h } =
|
|
1450
|
+
let a = e, { densityClass: o, isRendered: s, label: l, showErrors: u, touched: d, value: f, visibilityClass: p, vuetifyBindings: h } = Z(a, i), g = t(() => a.allowNull && f.value == null), _ = t({
|
|
1451
1451
|
get() {
|
|
1452
1452
|
return f.value;
|
|
1453
1453
|
},
|
|
@@ -1472,12 +1472,12 @@ var Kt = {
|
|
|
1472
1472
|
onChange: v,
|
|
1473
1473
|
onBlur: t[1] || (t[1] = (e) => d.value = !0)
|
|
1474
1474
|
}), {
|
|
1475
|
-
label: P((e) => [c(j(
|
|
1475
|
+
label: P((e) => [c(j(Y), {
|
|
1476
1476
|
"allow-wrap": !0,
|
|
1477
1477
|
data: e,
|
|
1478
1478
|
label: j(l)
|
|
1479
1479
|
}, null, 8, ["data", "label"])]),
|
|
1480
|
-
message: P(({ message: e }) => [c(j(
|
|
1480
|
+
message: P(({ message: e }) => [c(j(J), {
|
|
1481
1481
|
message: e,
|
|
1482
1482
|
errors: j(u)
|
|
1483
1483
|
}, null, 8, ["message", "errors"])]),
|
|
@@ -1489,7 +1489,7 @@ var Kt = {
|
|
|
1489
1489
|
])) : r("", !0);
|
|
1490
1490
|
};
|
|
1491
1491
|
}
|
|
1492
|
-
}),
|
|
1492
|
+
}), Zt = /* @__PURE__ */ l({
|
|
1493
1493
|
__name: "df-color",
|
|
1494
1494
|
props: /*@__PURE__*/ p({
|
|
1495
1495
|
allowNull: { type: Boolean },
|
|
@@ -1507,10 +1507,10 @@ var Kt = {
|
|
|
1507
1507
|
passthroughAttrs: {},
|
|
1508
1508
|
density: {},
|
|
1509
1509
|
variant: {}
|
|
1510
|
-
},
|
|
1510
|
+
}, q(q({}, X), {}, { allowNull: !1 })),
|
|
1511
1511
|
emits: ["update:modelValue", "click:clear"],
|
|
1512
1512
|
setup(e, { emit: i }) {
|
|
1513
|
-
let o = e, { densityClass: s, isRendered: l, label: u, showErrors: d, touched: p, value: h, visibilityClass: g, vuetifyBindings: _ } =
|
|
1513
|
+
let o = e, { densityClass: s, isRendered: l, label: u, showErrors: d, touched: p, value: h, visibilityClass: g, vuetifyBindings: _ } = Z(o, i), y = S(!1), b = t(() => [(e) => o.control || !e && o.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(e) ? !0 : Ft.InvalidHexColor]);
|
|
1514
1514
|
return (t, i) => {
|
|
1515
1515
|
let o = T("v-color-picker"), S = T("v-menu"), C = T("v-text-field");
|
|
1516
1516
|
return j(l) ? (x(), n(C, m({
|
|
@@ -1522,11 +1522,11 @@ var Kt = {
|
|
|
1522
1522
|
type: "text",
|
|
1523
1523
|
rules: b.value
|
|
1524
1524
|
}, j(_), { onBlur: i[3] || (i[3] = (e) => p.value = !0) }), {
|
|
1525
|
-
label: P((e) => [c(j(
|
|
1525
|
+
label: P((e) => [c(j(Y), {
|
|
1526
1526
|
data: e,
|
|
1527
1527
|
label: j(u)
|
|
1528
1528
|
}, null, 8, ["data", "label"])]),
|
|
1529
|
-
message: P(({ message: e }) => [c(j(
|
|
1529
|
+
message: P(({ message: e }) => [c(j(J), {
|
|
1530
1530
|
message: e,
|
|
1531
1531
|
errors: j(d)
|
|
1532
1532
|
}, null, 8, ["message", "errors"])]),
|
|
@@ -1558,7 +1558,7 @@ var Kt = {
|
|
|
1558
1558
|
])) : r("", !0);
|
|
1559
1559
|
};
|
|
1560
1560
|
}
|
|
1561
|
-
}),
|
|
1561
|
+
}), Qt = /* @__PURE__ */ l({
|
|
1562
1562
|
__name: "df-datetime",
|
|
1563
1563
|
props: /*@__PURE__*/ p({
|
|
1564
1564
|
inputType: {},
|
|
@@ -1579,7 +1579,7 @@ var Kt = {
|
|
|
1579
1579
|
passthroughAttrs: {},
|
|
1580
1580
|
density: {},
|
|
1581
1581
|
variant: {}
|
|
1582
|
-
},
|
|
1582
|
+
}, q(q({}, X), {}, {
|
|
1583
1583
|
inputType: "datetime",
|
|
1584
1584
|
displayFormatDate: "P",
|
|
1585
1585
|
displayFormatTime: "p"
|
|
@@ -1588,11 +1588,11 @@ var Kt = {
|
|
|
1588
1588
|
setup(e, { emit: i }) {
|
|
1589
1589
|
let o = e, s = i, l = t(() => {
|
|
1590
1590
|
var e;
|
|
1591
|
-
return (e = o.locale) == null ? j(
|
|
1591
|
+
return (e = o.locale) == null ? j(kt.dateTimeLocale) : e;
|
|
1592
1592
|
}), u = t(() => {
|
|
1593
1593
|
var e, t;
|
|
1594
1594
|
return (e = (t = l.value.options) == null ? void 0 : t.weekStartsOn) == null ? 1 : e;
|
|
1595
|
-
}), { density: d, densityClass: f, touched: p, value: h, vuetifyBindings: _ } =
|
|
1595
|
+
}), { density: d, densityClass: f, touched: p, value: h, vuetifyBindings: _ } = Z(o, s), { inputType: v, displayFormatDate: y, displayFormatTime: b } = A(o), C = S(""), w = t({
|
|
1596
1596
|
get() {
|
|
1597
1597
|
return j(C) === "date";
|
|
1598
1598
|
},
|
|
@@ -1606,7 +1606,7 @@ var Kt = {
|
|
|
1606
1606
|
set(e) {
|
|
1607
1607
|
C.value = e ? "time" : "";
|
|
1608
1608
|
}
|
|
1609
|
-
}), O = (e) => `${
|
|
1609
|
+
}), O = (e) => `${ge(e, "yyyy-MM-dd")}T${ge(e, "HH:mm")}:00`, k = S(null);
|
|
1610
1610
|
function M(e, t) {
|
|
1611
1611
|
if (e == null) k.value = null;
|
|
1612
1612
|
else if (t === -1) {
|
|
@@ -1618,7 +1618,7 @@ var Kt = {
|
|
|
1618
1618
|
} else {
|
|
1619
1619
|
k.value == null && (k.value = O(/* @__PURE__ */ new Date()));
|
|
1620
1620
|
let n = k.value.split(/[TZ]/g);
|
|
1621
|
-
n[t] = e.split(/[TZ]/g)[t], k.value = O(/* @__PURE__ */ new Date(`${n[0]}T${n[1].split(".")[0]}`)), j(v) === "date" ? h.value = n[0] : j(v) === "time" ? h.value = n[1] : h.value = j(k) +
|
|
1621
|
+
n[t] = e.split(/[TZ]/g)[t], k.value = O(/* @__PURE__ */ new Date(`${n[0]}T${n[1].split(".")[0]}`)), j(v) === "date" ? h.value = n[0] : j(v) === "time" ? h.value = n[1] : h.value = j(k) + ge(/* @__PURE__ */ new Date(), "XXX");
|
|
1622
1622
|
}
|
|
1623
1623
|
}
|
|
1624
1624
|
N(h, (e) => M(e, -1), { immediate: !0 });
|
|
@@ -1643,11 +1643,11 @@ var Kt = {
|
|
|
1643
1643
|
}), I = t({
|
|
1644
1644
|
get() {
|
|
1645
1645
|
let e = j(ee);
|
|
1646
|
-
return e == null ? "" :
|
|
1646
|
+
return e == null ? "" : ge(e, j(y), { locale: l.value });
|
|
1647
1647
|
},
|
|
1648
1648
|
set(e) {
|
|
1649
1649
|
try {
|
|
1650
|
-
let t =
|
|
1650
|
+
let t = _e(e, j(y), /* @__PURE__ */ new Date(), { locale: l.value });
|
|
1651
1651
|
M(O(t), 0);
|
|
1652
1652
|
} catch (e) {
|
|
1653
1653
|
console.error(e);
|
|
@@ -1656,18 +1656,18 @@ var Kt = {
|
|
|
1656
1656
|
}), L = t({
|
|
1657
1657
|
get() {
|
|
1658
1658
|
let e = j(ee);
|
|
1659
|
-
return e == null ? "" :
|
|
1659
|
+
return e == null ? "" : ge(e, j(b), { locale: l.value });
|
|
1660
1660
|
},
|
|
1661
1661
|
set(e) {
|
|
1662
1662
|
let t = e.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
1663
1663
|
if (t == null) return;
|
|
1664
|
-
let n =
|
|
1665
|
-
|
|
1664
|
+
let n = K(t[1]), r = K(t[2]);
|
|
1665
|
+
ue(n) || ue(r) || (t[3] && t[3].toLowerCase() === "pm" && n < 13 && (n += 12), M(`T${n.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}:00`, 1));
|
|
1666
1666
|
}
|
|
1667
1667
|
});
|
|
1668
1668
|
return (t, i) => {
|
|
1669
1669
|
let s = T("v-date-picker"), l = T("v-confirm-edit"), y = T("v-menu"), b = T("v-text-field"), S = T("v-time-picker");
|
|
1670
|
-
return x(), n(j(
|
|
1670
|
+
return x(), n(j(Pt), m(o, {
|
|
1671
1671
|
class: j(f),
|
|
1672
1672
|
clearable: e.clearable,
|
|
1673
1673
|
"onClick:clear": i[14] || (i[14] = (e) => h.value = null),
|
|
@@ -1799,7 +1799,7 @@ var Kt = {
|
|
|
1799
1799
|
});
|
|
1800
1800
|
//#endregion
|
|
1801
1801
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/asyncToGenerator.js
|
|
1802
|
-
function
|
|
1802
|
+
function $t(e, t, n, r, i, a, o) {
|
|
1803
1803
|
try {
|
|
1804
1804
|
var s = e[a](o), c = s.value;
|
|
1805
1805
|
} catch (e) {
|
|
@@ -1808,16 +1808,16 @@ function Qt(e, t, n, r, i, a, o) {
|
|
|
1808
1808
|
}
|
|
1809
1809
|
s.done ? t(c) : Promise.resolve(c).then(r, i);
|
|
1810
1810
|
}
|
|
1811
|
-
function
|
|
1811
|
+
function en(e) {
|
|
1812
1812
|
return function() {
|
|
1813
1813
|
var t = this, n = arguments;
|
|
1814
1814
|
return new Promise(function(r, i) {
|
|
1815
1815
|
var a = e.apply(t, n);
|
|
1816
1816
|
function o(e) {
|
|
1817
|
-
|
|
1817
|
+
$t(a, r, i, o, s, "next", e);
|
|
1818
1818
|
}
|
|
1819
1819
|
function s(e) {
|
|
1820
|
-
|
|
1820
|
+
$t(a, r, i, o, s, "throw", e);
|
|
1821
1821
|
}
|
|
1822
1822
|
o(void 0);
|
|
1823
1823
|
});
|
|
@@ -1825,7 +1825,7 @@ function $t(e) {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
//#endregion
|
|
1827
1827
|
//#region src/df-file.vue?vue&type=script&setup=true&lang.ts
|
|
1828
|
-
var
|
|
1828
|
+
var tn = ["title", "aria-label"], nn = /* @__PURE__ */ l({
|
|
1829
1829
|
__name: "df-file",
|
|
1830
1830
|
props: /*@__PURE__*/ p({
|
|
1831
1831
|
comms: {},
|
|
@@ -1844,15 +1844,15 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
1844
1844
|
passthroughAttrs: {},
|
|
1845
1845
|
density: {},
|
|
1846
1846
|
variant: {}
|
|
1847
|
-
},
|
|
1847
|
+
}, X),
|
|
1848
1848
|
emits: ["update:modelValue", "click:clear"],
|
|
1849
1849
|
setup(e, { emit: i }) {
|
|
1850
|
-
let s = e, { density: l, densityClass: u, touched: d, value: f, vuetifyBindings: p } =
|
|
1850
|
+
let s = e, { density: l, densityClass: u, touched: d, value: f, vuetifyBindings: p } = Z(s, i), h = Ft, _ = S(null), v = S(0), y = S(Math.round(Math.random() * 1e3)), b = S(), C = t(() => _.value && v.value < 100), w = t(() => !b.value && f.value ? f.value : ""), E = t(() => !b.value && !!f.value && !!s.comms.getDownloadUrl);
|
|
1851
1851
|
function D() {
|
|
1852
1852
|
return O.apply(this, arguments);
|
|
1853
1853
|
}
|
|
1854
1854
|
function O() {
|
|
1855
|
-
return O =
|
|
1855
|
+
return O = en(function* () {
|
|
1856
1856
|
if (!f.value || !s.comms.getDownloadUrl) return;
|
|
1857
1857
|
let e = yield s.comms.getDownloadUrl(f.value), t = document.createElement("a");
|
|
1858
1858
|
t.href = e, t.download = "", t.rel = "noopener", t.click();
|
|
@@ -1862,14 +1862,14 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
1862
1862
|
f.value = null, v.value = 0, y.value = Math.round(Math.random() * 1e3), _.value = null, b.value = null, ee();
|
|
1863
1863
|
}
|
|
1864
1864
|
function A(e) {
|
|
1865
|
-
k(),
|
|
1865
|
+
k(), Kt(s.control, e);
|
|
1866
1866
|
}
|
|
1867
|
-
let { setupTouchInterval: M, clearTouchInterval: ee } =
|
|
1867
|
+
let { setupTouchInterval: M, clearTouchInterval: ee } = Gt(f, () => s.comms, () => s.touchInterval, A);
|
|
1868
1868
|
function N() {
|
|
1869
1869
|
return te.apply(this, arguments);
|
|
1870
1870
|
}
|
|
1871
1871
|
function te() {
|
|
1872
|
-
return te =
|
|
1872
|
+
return te = en(function* () {
|
|
1873
1873
|
f.value && (yield s.comms.delete(f.value)), k();
|
|
1874
1874
|
}), te.apply(this, arguments);
|
|
1875
1875
|
}
|
|
@@ -1877,7 +1877,7 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
1877
1877
|
return L.apply(this, arguments);
|
|
1878
1878
|
}
|
|
1879
1879
|
function L() {
|
|
1880
|
-
return L =
|
|
1880
|
+
return L = en(function* (e) {
|
|
1881
1881
|
v.value = -1, _.value = e;
|
|
1882
1882
|
try {
|
|
1883
1883
|
f.value = yield s.comms.upload(e, (e, t) => {
|
|
@@ -1893,7 +1893,7 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
1893
1893
|
}
|
|
1894
1894
|
return (t, i) => {
|
|
1895
1895
|
let f = T("v-progress-linear"), y = T("v-file-input");
|
|
1896
|
-
return x(), n(j(
|
|
1896
|
+
return x(), n(j(Pt), m(q(q({}, s), {}, { loading: C.value }), {
|
|
1897
1897
|
class: j(u),
|
|
1898
1898
|
clearable: "",
|
|
1899
1899
|
"onClick:clear": N,
|
|
@@ -1932,7 +1932,7 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
1932
1932
|
title: j(h).FileDownload,
|
|
1933
1933
|
"aria-label": j(h).FileDownload,
|
|
1934
1934
|
onClick: I(D, ["stop", "prevent"])
|
|
1935
|
-
}, [c(j(V), { name: "mdi-download" })], 8,
|
|
1935
|
+
}, [c(j(V), { name: "mdi-download" })], 8, tn)]),
|
|
1936
1936
|
key: "0"
|
|
1937
1937
|
} : void 0]), 1040, [
|
|
1938
1938
|
"modelValue",
|
|
@@ -1948,17 +1948,17 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
1948
1948
|
}, 16, ["class"]);
|
|
1949
1949
|
};
|
|
1950
1950
|
}
|
|
1951
|
-
}),
|
|
1951
|
+
}), rn = [
|
|
1952
1952
|
"id",
|
|
1953
1953
|
"disabled",
|
|
1954
1954
|
"name",
|
|
1955
1955
|
"onFocus",
|
|
1956
1956
|
"onBlur"
|
|
1957
|
-
],
|
|
1957
|
+
], an = ["for"], on = ["for"], sn = ["for", "title"], cn = [
|
|
1958
1958
|
"href",
|
|
1959
1959
|
"title",
|
|
1960
1960
|
"aria-label"
|
|
1961
|
-
],
|
|
1961
|
+
], ln = /* @__PURE__ */ l({
|
|
1962
1962
|
__name: "df-image",
|
|
1963
1963
|
props: /*@__PURE__*/ p({
|
|
1964
1964
|
comms: {},
|
|
@@ -1977,10 +1977,10 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
1977
1977
|
passthroughAttrs: {},
|
|
1978
1978
|
density: {},
|
|
1979
1979
|
variant: {}
|
|
1980
|
-
},
|
|
1980
|
+
}, X),
|
|
1981
1981
|
emits: ["update:modelValue", "click:clear"],
|
|
1982
1982
|
setup(e, { emit: o }) {
|
|
1983
|
-
let s = e, { density: l, densityClass: u, touched: d, value: f, vuetifyBindings: p } =
|
|
1983
|
+
let s = e, { density: l, densityClass: u, touched: d, value: f, vuetifyBindings: p } = Z(s, o), h = Ft, _ = ee(), b = S(null), C = S(0), w = S(null), E = S(0), D = S(null), k = t(() => b.value && C.value < 100), A = t(() => !!(p.value.disabled || p.value.readonly)), M = t(() => E.value > 0), N = t(() => {
|
|
1984
1984
|
var e;
|
|
1985
1985
|
return (e = w.value) == null ? f.value ? f.value : null : e;
|
|
1986
1986
|
}), te = t(() => !!f.value);
|
|
@@ -1991,15 +1991,15 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
1991
1991
|
f.value = null, C.value = 0, b.value = null, F(), ne();
|
|
1992
1992
|
}
|
|
1993
1993
|
function R(e) {
|
|
1994
|
-
L(),
|
|
1994
|
+
L(), Kt(s.control, e);
|
|
1995
1995
|
}
|
|
1996
|
-
let { setupTouchInterval: z, clearTouchInterval: ne } =
|
|
1996
|
+
let { setupTouchInterval: z, clearTouchInterval: ne } = Gt(f, () => s.comms, () => s.touchInterval, R);
|
|
1997
1997
|
y(() => F());
|
|
1998
1998
|
function re() {
|
|
1999
1999
|
return B.apply(this, arguments);
|
|
2000
2000
|
}
|
|
2001
2001
|
function B() {
|
|
2002
|
-
return B =
|
|
2002
|
+
return B = en(function* () {
|
|
2003
2003
|
f.value && (yield s.comms.delete(f.value)), L();
|
|
2004
2004
|
}), B.apply(this, arguments);
|
|
2005
2005
|
}
|
|
@@ -2007,7 +2007,7 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
2007
2007
|
return H.apply(this, arguments);
|
|
2008
2008
|
}
|
|
2009
2009
|
function H() {
|
|
2010
|
-
return H =
|
|
2010
|
+
return H = en(function* (e) {
|
|
2011
2011
|
C.value = -1, b.value = e, F(), w.value = URL.createObjectURL(e);
|
|
2012
2012
|
try {
|
|
2013
2013
|
f.value = yield s.comms.upload(e, (e, t) => {
|
|
@@ -2044,7 +2044,7 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
2044
2044
|
}
|
|
2045
2045
|
return (e, t) => {
|
|
2046
2046
|
let o = T("v-progress-linear"), y = T("v-img");
|
|
2047
|
-
return x(), n(j(
|
|
2047
|
+
return x(), n(j(Pt), m(q(q({}, s), {}, { loading: k.value }), {
|
|
2048
2048
|
class: ["df-image-field", j(u)],
|
|
2049
2049
|
clearable: "",
|
|
2050
2050
|
"onClick:clear": re,
|
|
@@ -2079,7 +2079,7 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
2079
2079
|
onChange: ae,
|
|
2080
2080
|
onFocus: (t) => e.focus(),
|
|
2081
2081
|
onBlur: (t) => e.blur()
|
|
2082
|
-
}, null, 40,
|
|
2082
|
+
}, null, 40, rn),
|
|
2083
2083
|
N.value ? (x(), i("label", {
|
|
2084
2084
|
key: 0,
|
|
2085
2085
|
for: j(_),
|
|
@@ -2088,17 +2088,17 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
2088
2088
|
src: N.value,
|
|
2089
2089
|
class: "df-image-preview",
|
|
2090
2090
|
style: v(b.value && C.value < 100 ? "visibility: hidden" : "")
|
|
2091
|
-
}, null, 8, ["src", "style"])], 8,
|
|
2091
|
+
}, null, 8, ["src", "style"])], 8, an)) : (x(), i("label", {
|
|
2092
2092
|
key: 1,
|
|
2093
2093
|
for: j(_),
|
|
2094
2094
|
class: "df-image-placeholder"
|
|
2095
|
-
}, [c(j(V), { name: "mdi-tray-arrow-up" }), a("span", null, O(j(h).ImageDropHint), 1)], 8,
|
|
2095
|
+
}, [c(j(V), { name: "mdi-tray-arrow-up" }), a("span", null, O(j(h).ImageDropHint), 1)], 8, on)),
|
|
2096
2096
|
N.value && !A.value ? (x(), i("label", {
|
|
2097
2097
|
key: 2,
|
|
2098
2098
|
for: j(_),
|
|
2099
2099
|
class: "df-image-replace-btn",
|
|
2100
2100
|
title: j(h).ImageReplace
|
|
2101
|
-
}, [c(j(V), { name: "mdi-pencil" })], 8,
|
|
2101
|
+
}, [c(j(V), { name: "mdi-pencil" })], 8, sn)) : r("", !0),
|
|
2102
2102
|
te.value ? (x(), i("a", {
|
|
2103
2103
|
key: 3,
|
|
2104
2104
|
href: j(f),
|
|
@@ -2108,13 +2108,13 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
2108
2108
|
class: "df-image-download-btn",
|
|
2109
2109
|
title: j(h).ImageDownload,
|
|
2110
2110
|
"aria-label": j(h).ImageDownload
|
|
2111
|
-
}, [c(j(V), { name: "mdi-download" })], 8,
|
|
2111
|
+
}, [c(j(V), { name: "mdi-download" })], 8, cn)) : r("", !0)
|
|
2112
2112
|
], 34)]),
|
|
2113
2113
|
_: 1
|
|
2114
2114
|
}, 16, ["class"]);
|
|
2115
2115
|
};
|
|
2116
2116
|
}
|
|
2117
|
-
}),
|
|
2117
|
+
}), un = /* @__PURE__ */ l({
|
|
2118
2118
|
__name: "df-input",
|
|
2119
2119
|
props: /*@__PURE__*/ p({
|
|
2120
2120
|
inputType: {},
|
|
@@ -2136,7 +2136,7 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
2136
2136
|
passthroughAttrs: {},
|
|
2137
2137
|
density: {},
|
|
2138
2138
|
variant: {}
|
|
2139
|
-
},
|
|
2139
|
+
}, q(q({}, X), {}, {
|
|
2140
2140
|
inputType: "text",
|
|
2141
2141
|
precision: null,
|
|
2142
2142
|
step: void 0,
|
|
@@ -2145,7 +2145,7 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
2145
2145
|
})),
|
|
2146
2146
|
emits: ["update:modelValue", "click:clear"],
|
|
2147
2147
|
setup(e, { emit: a }) {
|
|
2148
|
-
let o = e, { densityClass: s, isRendered: l, label: u, showErrors: d, touched: p, value: h, visibilityClass: _, vuetifyBindings: v } =
|
|
2148
|
+
let o = e, { densityClass: s, isRendered: l, label: u, showErrors: d, touched: p, value: h, visibilityClass: _, vuetifyBindings: v } = Z(o, a), { inputType: y, max: b, min: S, precision: C, step: w } = A(o), E = t(() => y.value === "number"), D = t(() => E.value ? {
|
|
2149
2149
|
min: j(S),
|
|
2150
2150
|
max: j(b),
|
|
2151
2151
|
precision: j(C),
|
|
@@ -2162,12 +2162,12 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
2162
2162
|
"onUpdate:modelValue": t[2] || (t[2] = (e) => f(h) ? h.value = e : null),
|
|
2163
2163
|
density: "compact",
|
|
2164
2164
|
"control-variant": "stacked"
|
|
2165
|
-
},
|
|
2166
|
-
label: P((e) => [c(j(
|
|
2165
|
+
}, q(q({}, j(v)), D.value)), {
|
|
2166
|
+
label: P((e) => [c(j(Y), {
|
|
2167
2167
|
data: e,
|
|
2168
2168
|
label: j(u)
|
|
2169
2169
|
}, null, 8, ["data", "label"])]),
|
|
2170
|
-
message: P(({ message: e }) => [c(j(
|
|
2170
|
+
message: P(({ message: e }) => [c(j(J), {
|
|
2171
2171
|
message: e,
|
|
2172
2172
|
errors: j(d)
|
|
2173
2173
|
}, null, 8, ["message", "errors"])]),
|
|
@@ -2178,11 +2178,11 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
2178
2178
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => f(h) ? h.value = e : null),
|
|
2179
2179
|
type: j(y)
|
|
2180
2180
|
}, j(v), { onBlur: t[1] || (t[1] = (e) => p.value = !0) }), {
|
|
2181
|
-
label: P((e) => [c(j(
|
|
2181
|
+
label: P((e) => [c(j(Y), {
|
|
2182
2182
|
data: e,
|
|
2183
2183
|
label: j(u)
|
|
2184
2184
|
}, null, 8, ["data", "label"])]),
|
|
2185
|
-
message: P(({ message: e }) => [c(j(
|
|
2185
|
+
message: P(({ message: e }) => [c(j(J), {
|
|
2186
2186
|
message: e,
|
|
2187
2187
|
errors: j(d)
|
|
2188
2188
|
}, null, 8, ["message", "errors"])]),
|
|
@@ -2190,7 +2190,7 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
2190
2190
|
}, 16, ["modelValue", "type"]))], 2)) : r("", !0);
|
|
2191
2191
|
};
|
|
2192
2192
|
}
|
|
2193
|
-
}),
|
|
2193
|
+
}), dn = Ae.create({
|
|
2194
2194
|
name: "classAttribute",
|
|
2195
2195
|
addGlobalAttributes() {
|
|
2196
2196
|
return [{
|
|
@@ -2208,8 +2208,8 @@ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
|
2208
2208
|
}];
|
|
2209
2209
|
}
|
|
2210
2210
|
});
|
|
2211
|
-
function
|
|
2212
|
-
return
|
|
2211
|
+
function fn(e, t) {
|
|
2212
|
+
return je.create({
|
|
2213
2213
|
name: e,
|
|
2214
2214
|
parseHTML() {
|
|
2215
2215
|
return [{ tag: `span.${t}` }];
|
|
@@ -2217,13 +2217,13 @@ function dn(e, t) {
|
|
|
2217
2217
|
renderHTML({ HTMLAttributes: e }) {
|
|
2218
2218
|
return [
|
|
2219
2219
|
"span",
|
|
2220
|
-
|
|
2220
|
+
Ne(e, { class: t }),
|
|
2221
2221
|
0
|
|
2222
2222
|
];
|
|
2223
2223
|
}
|
|
2224
2224
|
});
|
|
2225
2225
|
}
|
|
2226
|
-
var
|
|
2226
|
+
var pn = fn("marker", "marker"), mn = fn("spoiler", "spoiler"), hn = [
|
|
2227
2227
|
{
|
|
2228
2228
|
key: "ArticleCategory",
|
|
2229
2229
|
kind: "heading",
|
|
@@ -2273,67 +2273,67 @@ var fn = dn("marker", "marker"), pn = dn("spoiler", "spoiler"), mn = [
|
|
|
2273
2273
|
className: "fancy-code fancy-code-bright"
|
|
2274
2274
|
}
|
|
2275
2275
|
];
|
|
2276
|
-
function
|
|
2276
|
+
function gn(e) {
|
|
2277
2277
|
let { state: t } = e, { $from: n } = t.selection;
|
|
2278
2278
|
return n.depth > 0 || t.doc.content.size === 0 ? n : t.doc.resolve(Math.min(1, t.doc.content.size));
|
|
2279
2279
|
}
|
|
2280
|
-
function
|
|
2281
|
-
return
|
|
2280
|
+
function _n(e) {
|
|
2281
|
+
return gn(e).parent;
|
|
2282
2282
|
}
|
|
2283
|
-
function
|
|
2284
|
-
let n =
|
|
2283
|
+
function vn(e, t) {
|
|
2284
|
+
let n = gn(e);
|
|
2285
2285
|
for (let e = n.depth; e >= 0; --e) if (n.node(e).type.name === t) return n.node(e);
|
|
2286
2286
|
return null;
|
|
2287
2287
|
}
|
|
2288
|
-
function
|
|
2288
|
+
function yn(e, t) {
|
|
2289
2289
|
switch (t.kind) {
|
|
2290
2290
|
case "heading": {
|
|
2291
|
-
let n =
|
|
2291
|
+
let n = _n(e);
|
|
2292
2292
|
return n.type.name === "heading" && n.attrs.level === t.level && n.attrs.class === t.className;
|
|
2293
2293
|
}
|
|
2294
2294
|
case "paragraph": {
|
|
2295
|
-
let n =
|
|
2295
|
+
let n = _n(e);
|
|
2296
2296
|
return n.type.name === "paragraph" && n.attrs.class === t.className;
|
|
2297
2297
|
}
|
|
2298
2298
|
case "codeBlock": {
|
|
2299
|
-
let n =
|
|
2299
|
+
let n = _n(e);
|
|
2300
2300
|
return n.type.name === "codeBlock" && n.attrs.class === t.className;
|
|
2301
2301
|
}
|
|
2302
2302
|
case "blockquote": {
|
|
2303
|
-
let n =
|
|
2303
|
+
let n = vn(e, "blockquote");
|
|
2304
2304
|
return !!n && n.attrs.class === t.className;
|
|
2305
2305
|
}
|
|
2306
2306
|
case "mark": return e.isActive(t.markName);
|
|
2307
2307
|
default: return !1;
|
|
2308
2308
|
}
|
|
2309
2309
|
}
|
|
2310
|
-
function
|
|
2310
|
+
function bn(e, t) {
|
|
2311
2311
|
let n = e.chain().focus(), { $from: r } = e.state.selection;
|
|
2312
|
-
switch (t.kind !== "mark" && r.depth === 0 && e.state.doc.content.size > 0 && n.setTextSelection(
|
|
2312
|
+
switch (t.kind !== "mark" && r.depth === 0 && e.state.doc.content.size > 0 && n.setTextSelection(gn(e).pos), t.kind) {
|
|
2313
2313
|
case "heading":
|
|
2314
|
-
|
|
2314
|
+
yn(e, t) ? n.setParagraph().updateAttributes("paragraph", { class: null }).run() : n.setNode("heading", { level: t.level }).updateAttributes("heading", { class: t.className }).run();
|
|
2315
2315
|
break;
|
|
2316
2316
|
case "paragraph":
|
|
2317
|
-
|
|
2317
|
+
yn(e, t) ? n.setParagraph().updateAttributes("paragraph", { class: null }).run() : n.setParagraph().updateAttributes("paragraph", { class: t.className }).run();
|
|
2318
2318
|
break;
|
|
2319
2319
|
case "blockquote":
|
|
2320
|
-
|
|
2320
|
+
yn(e, t) ? n.unsetBlockquote().run() : vn(e, "blockquote") ? n.updateAttributes("blockquote", { class: t.className }).run() : n.setBlockquote().updateAttributes("blockquote", { class: t.className }).run();
|
|
2321
2321
|
break;
|
|
2322
2322
|
case "codeBlock":
|
|
2323
|
-
|
|
2323
|
+
yn(e, t) ? n.toggleCodeBlock().updateAttributes("paragraph", { class: null }).run() : _n(e).type.name === "codeBlock" ? n.updateAttributes("codeBlock", { class: t.className }).run() : n.setCodeBlock().updateAttributes("codeBlock", { class: t.className }).run();
|
|
2324
2324
|
break;
|
|
2325
2325
|
case "mark": n.toggleMark(t.markName).run();
|
|
2326
2326
|
}
|
|
2327
2327
|
}
|
|
2328
2328
|
//#endregion
|
|
2329
2329
|
//#region src/helpers/rtf-editor/image-paste.ts
|
|
2330
|
-
function
|
|
2330
|
+
function xn(e) {
|
|
2331
2331
|
return new Promise((t, n) => {
|
|
2332
2332
|
let r = new FileReader();
|
|
2333
2333
|
r.onload = () => t(r.result), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
2334
2334
|
});
|
|
2335
2335
|
}
|
|
2336
|
-
function
|
|
2336
|
+
function Sn(e) {
|
|
2337
2337
|
if (!e) return [];
|
|
2338
2338
|
let t = [];
|
|
2339
2339
|
return Array.from(e.items || []).forEach((e) => {
|
|
@@ -2345,25 +2345,25 @@ function xn(e) {
|
|
|
2345
2345
|
e.type.startsWith("image/") && t.push(e);
|
|
2346
2346
|
}), t;
|
|
2347
2347
|
}
|
|
2348
|
-
function
|
|
2348
|
+
function Cn(e) {
|
|
2349
2349
|
let t = 0;
|
|
2350
2350
|
return e.forEach((e) => {
|
|
2351
|
-
e.type.name === "image" ? t += 1 : e.content.size && (t +=
|
|
2351
|
+
e.type.name === "image" ? t += 1 : e.content.size && (t += Cn(e.content));
|
|
2352
2352
|
}), t;
|
|
2353
2353
|
}
|
|
2354
|
-
function
|
|
2354
|
+
function wn(e, t, n) {
|
|
2355
2355
|
let r = [];
|
|
2356
2356
|
return e.forEach((e) => {
|
|
2357
|
-
e.type.name === "image" && n.index < t.length ? (r.push(e.type.create(
|
|
2358
|
-
}),
|
|
2357
|
+
e.type.name === "image" && n.index < t.length ? (r.push(e.type.create(q(q({}, e.attrs), {}, { src: t[n.index] }), e.content, e.marks)), n.index += 1) : e.content.size ? r.push(e.copy(wn(e.content, t, n))) : r.push(e);
|
|
2358
|
+
}), Pe.fromArray(r);
|
|
2359
2359
|
}
|
|
2360
|
-
function
|
|
2360
|
+
function Tn(e) {
|
|
2361
2361
|
return (t, n, r) => {
|
|
2362
|
-
let i =
|
|
2363
|
-
return i.length !== 0 && (n.preventDefault(), Promise.all(i.map(
|
|
2362
|
+
let i = Sn(n.clipboardData);
|
|
2363
|
+
return i.length !== 0 && (n.preventDefault(), Promise.all(i.map(xn)).then((n) => {
|
|
2364
2364
|
var i;
|
|
2365
|
-
if (
|
|
2366
|
-
let e =
|
|
2365
|
+
if (Cn(r.content) > 0) {
|
|
2366
|
+
let e = wn(r.content, n, { index: 0 }), i = new Fe(e, r.openStart, r.openEnd);
|
|
2367
2367
|
t.dispatch(t.state.tr.replaceSelection(i).scrollIntoView());
|
|
2368
2368
|
return;
|
|
2369
2369
|
}
|
|
@@ -2376,11 +2376,11 @@ function wn(e) {
|
|
|
2376
2376
|
}
|
|
2377
2377
|
//#endregion
|
|
2378
2378
|
//#region src/helpers/rtf-editor/link-with-download.ts
|
|
2379
|
-
var
|
|
2379
|
+
var En = Ie.extend({
|
|
2380
2380
|
name: "link",
|
|
2381
2381
|
addAttributes() {
|
|
2382
2382
|
var e;
|
|
2383
|
-
return
|
|
2383
|
+
return q(q({}, (e = this.parent) == null ? void 0 : e.call(this)), {}, { download: {
|
|
2384
2384
|
default: null,
|
|
2385
2385
|
parseHTML: (e) => e.getAttribute("download"),
|
|
2386
2386
|
renderHTML: (e) => e.download ? { download: e.download } : {}
|
|
@@ -2389,7 +2389,7 @@ var Tn = Fe.extend({
|
|
|
2389
2389
|
});
|
|
2390
2390
|
//#endregion
|
|
2391
2391
|
//#region src/helpers/rtf-editor/media-embed.ts
|
|
2392
|
-
function
|
|
2392
|
+
function Dn(e) {
|
|
2393
2393
|
let t;
|
|
2394
2394
|
try {
|
|
2395
2395
|
t = new URL(e);
|
|
@@ -2415,7 +2415,7 @@ function En(e) {
|
|
|
2415
2415
|
}
|
|
2416
2416
|
return null;
|
|
2417
2417
|
}
|
|
2418
|
-
var
|
|
2418
|
+
var On = Me.create({
|
|
2419
2419
|
name: "mediaEmbed",
|
|
2420
2420
|
group: "block",
|
|
2421
2421
|
atom: !0,
|
|
@@ -2427,7 +2427,7 @@ var Dn = je.create({
|
|
|
2427
2427
|
return [{ tag: "iframe.media-embed" }];
|
|
2428
2428
|
},
|
|
2429
2429
|
renderHTML({ HTMLAttributes: e }) {
|
|
2430
|
-
return ["iframe",
|
|
2430
|
+
return ["iframe", Ne({
|
|
2431
2431
|
class: "media-embed",
|
|
2432
2432
|
frameborder: "0",
|
|
2433
2433
|
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
|
|
@@ -2437,7 +2437,7 @@ var Dn = je.create({
|
|
|
2437
2437
|
});
|
|
2438
2438
|
//#endregion
|
|
2439
2439
|
//#region src/helpers/rtf-editor/use-editor-tick.ts
|
|
2440
|
-
function
|
|
2440
|
+
function kn(e) {
|
|
2441
2441
|
let t = S(0), n, r = () => {
|
|
2442
2442
|
t.value += 1;
|
|
2443
2443
|
}, i = (e) => {
|
|
@@ -2447,14 +2447,14 @@ function On(e) {
|
|
|
2447
2447
|
}
|
|
2448
2448
|
//#endregion
|
|
2449
2449
|
//#region src/helpers/rtf-editor/rtf-toolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2450
|
-
var
|
|
2450
|
+
var An = { class: "rtf-toolbar-group" }, jn = { class: "d-flex justify-end ga-2 mt-2" }, Mn = { class: "d-flex justify-space-between align-center ga-2 mt-2" }, Nn = { class: "d-flex justify-end mt-2" }, Pn = /* @__PURE__ */ l({
|
|
2451
2451
|
__name: "rtf-toolbar",
|
|
2452
2452
|
props: {
|
|
2453
2453
|
editor: { default: void 0 },
|
|
2454
2454
|
buttonSize: { default: "small" }
|
|
2455
2455
|
},
|
|
2456
2456
|
setup(o) {
|
|
2457
|
-
let l = o, u = t(() => l.buttonSize), d =
|
|
2457
|
+
let l = o, u = t(() => l.buttonSize), d = Ft, f = t(() => l.editor), p = kn(f), h = t(() => {
|
|
2458
2458
|
var e;
|
|
2459
2459
|
return p.value, !!((e = l.editor) != null && e.isEditable);
|
|
2460
2460
|
}), _ = t(() => ({
|
|
@@ -2500,7 +2500,7 @@ var kn = { class: "rtf-toolbar-group" }, An = { class: "d-flex justify-end ga-2
|
|
|
2500
2500
|
let a = new R({
|
|
2501
2501
|
value: {
|
|
2502
2502
|
icon: e,
|
|
2503
|
-
renderAs:
|
|
2503
|
+
renderAs: Q.TEXT,
|
|
2504
2504
|
showIcon: !0,
|
|
2505
2505
|
showLabel: !1
|
|
2506
2506
|
},
|
|
@@ -2519,7 +2519,7 @@ var kn = { class: "rtf-toolbar-group" }, An = { class: "d-flex justify-end ga-2
|
|
|
2519
2519
|
title: t(),
|
|
2520
2520
|
icon: !0
|
|
2521
2521
|
};
|
|
2522
|
-
r && (a.active = r()),
|
|
2522
|
+
r && (a.active = r()), le((i = e.value.passthroughAttrs) == null ? {} : i, a) || (e.value = q(q({}, e.value), {}, { passthroughAttrs: a }));
|
|
2523
2523
|
let o = !n();
|
|
2524
2524
|
e.enabled !== o && (e.enabled = o);
|
|
2525
2525
|
}
|
|
@@ -2620,9 +2620,9 @@ var kn = { class: "rtf-toolbar-group" }, An = { class: "d-flex justify-end ga-2
|
|
|
2620
2620
|
let n = (t = f.value) == null ? void 0 : t.chain().focus();
|
|
2621
2621
|
n && (e === 0 ? n.setParagraph().run() : n.toggleHeading({ level: e }).run());
|
|
2622
2622
|
}
|
|
2623
|
-
let B =
|
|
2623
|
+
let B = hn;
|
|
2624
2624
|
function ie(e) {
|
|
2625
|
-
return p.value, !!f.value &&
|
|
2625
|
+
return p.value, !!f.value && yn(f.value, e);
|
|
2626
2626
|
}
|
|
2627
2627
|
let H = S(""), U = S(!1);
|
|
2628
2628
|
function ae() {
|
|
@@ -2638,48 +2638,48 @@ var kn = { class: "rtf-toolbar-group" }, An = { class: "d-flex justify-end ga-2
|
|
|
2638
2638
|
var e;
|
|
2639
2639
|
(e = f.value) == null || e.chain().focus().unsetLink().run();
|
|
2640
2640
|
}
|
|
2641
|
-
let W = S(""),
|
|
2642
|
-
function
|
|
2641
|
+
let W = S(""), ce = S();
|
|
2642
|
+
function ue() {
|
|
2643
2643
|
var e;
|
|
2644
2644
|
W.value && ((e = f.value) == null || e.chain().focus().setImage({ src: W.value }).run(), W.value = "");
|
|
2645
2645
|
}
|
|
2646
|
-
function
|
|
2646
|
+
function de() {
|
|
2647
2647
|
var e;
|
|
2648
|
-
(e =
|
|
2648
|
+
(e = ce.value) == null || e.click();
|
|
2649
2649
|
}
|
|
2650
|
-
function
|
|
2651
|
-
return
|
|
2650
|
+
function fe(e) {
|
|
2651
|
+
return G.apply(this, arguments);
|
|
2652
2652
|
}
|
|
2653
|
-
function
|
|
2654
|
-
return
|
|
2653
|
+
function G() {
|
|
2654
|
+
return G = en(function* (e) {
|
|
2655
2655
|
var t, n;
|
|
2656
2656
|
let r = (t = e.target.files) == null ? void 0 : t[0];
|
|
2657
2657
|
if (!r) return;
|
|
2658
|
-
let i = yield
|
|
2658
|
+
let i = yield xn(r);
|
|
2659
2659
|
(n = f.value) == null || n.chain().focus().setImage({ src: i }).run(), e.target.value = "";
|
|
2660
|
-
}),
|
|
2660
|
+
}), G.apply(this, arguments);
|
|
2661
2661
|
}
|
|
2662
|
-
let
|
|
2663
|
-
function
|
|
2662
|
+
let K = S("");
|
|
2663
|
+
function pe() {
|
|
2664
2664
|
var e;
|
|
2665
|
-
if (!
|
|
2666
|
-
let t =
|
|
2665
|
+
if (!K.value) return;
|
|
2666
|
+
let t = Dn(K.value), n = (e = f.value) == null ? void 0 : e.chain().focus();
|
|
2667
2667
|
n && (t ? n.insertContent({
|
|
2668
2668
|
type: "mediaEmbed",
|
|
2669
2669
|
attrs: { src: t }
|
|
2670
2670
|
}).run() : n.insertContent({
|
|
2671
2671
|
type: "text",
|
|
2672
|
-
text:
|
|
2672
|
+
text: K.value,
|
|
2673
2673
|
marks: [{
|
|
2674
2674
|
type: "link",
|
|
2675
|
-
attrs: { href:
|
|
2675
|
+
attrs: { href: K.value }
|
|
2676
2676
|
}]
|
|
2677
|
-
}).run(),
|
|
2677
|
+
}).run(), K.value = "");
|
|
2678
2678
|
}
|
|
2679
2679
|
return (t, o) => {
|
|
2680
2680
|
let l = T("v-divider"), u = T("v-btn"), p = T("v-list-item-title"), b = T("v-list-item"), S = T("v-list"), w = T("v-menu"), E = T("v-text-field"), D = T("v-checkbox"), k = T("v-card");
|
|
2681
2681
|
return x(), i("div", { class: g(["rtf-toolbar", { "rtf-toolbar--disabled": !h.value }]) }, [
|
|
2682
|
-
c(
|
|
2682
|
+
c(Yt, m({ actions: A }, v.value, { "show-as-group": "grouped-no-borders" }), null, 16),
|
|
2683
2683
|
c(l, {
|
|
2684
2684
|
vertical: "",
|
|
2685
2685
|
inset: "",
|
|
@@ -2703,7 +2703,7 @@ var kn = { class: "rtf-toolbar-group" }, An = { class: "d-flex justify-end ga-2
|
|
|
2703
2703
|
class: "mx-1"
|
|
2704
2704
|
}),
|
|
2705
2705
|
c(w, null, {
|
|
2706
|
-
activator: P(({ props: e }) => [c(u, m(
|
|
2706
|
+
activator: P(({ props: e }) => [c(u, m(q(q({}, _.value), e), { "append-icon": "mdi-chevron-down" }), {
|
|
2707
2707
|
default: P(() => [s(O(z.value), 1)]),
|
|
2708
2708
|
_: 1
|
|
2709
2709
|
}, 16)]),
|
|
@@ -2724,7 +2724,7 @@ var kn = { class: "rtf-toolbar-group" }, An = { class: "d-flex justify-end ga-2
|
|
|
2724
2724
|
_: 1
|
|
2725
2725
|
}),
|
|
2726
2726
|
c(w, null, {
|
|
2727
|
-
activator: P(({ props: e }) => [c(u, m(
|
|
2727
|
+
activator: P(({ props: e }) => [c(u, m(q(q({}, _.value), e), { "append-icon": "mdi-chevron-down" }), {
|
|
2728
2728
|
default: P(() => [s(O(j(d).Style), 1)]),
|
|
2729
2729
|
_: 1
|
|
2730
2730
|
}, 16)]),
|
|
@@ -2732,7 +2732,7 @@ var kn = { class: "rtf-toolbar-group" }, An = { class: "d-flex justify-end ga-2
|
|
|
2732
2732
|
default: P(() => [(x(!0), i(e, null, C(j(B), (e) => (x(), n(b, {
|
|
2733
2733
|
key: e.key,
|
|
2734
2734
|
active: ie(e),
|
|
2735
|
-
onClick: (t) => f.value && j(
|
|
2735
|
+
onClick: (t) => f.value && j(bn)(f.value, e)
|
|
2736
2736
|
}, {
|
|
2737
2737
|
default: P(() => [c(p, null, {
|
|
2738
2738
|
default: P(() => [s(O(j(d)[e.key]), 1)]),
|
|
@@ -2749,13 +2749,13 @@ var kn = { class: "rtf-toolbar-group" }, An = { class: "d-flex justify-end ga-2
|
|
|
2749
2749
|
inset: "",
|
|
2750
2750
|
class: "mx-1"
|
|
2751
2751
|
}),
|
|
2752
|
-
c(
|
|
2752
|
+
c(Yt, m({ actions: M }, v.value, { "show-as-group": "grouped-no-borders" }), null, 16),
|
|
2753
2753
|
c(l, {
|
|
2754
2754
|
vertical: "",
|
|
2755
2755
|
inset: "",
|
|
2756
2756
|
class: "mx-1"
|
|
2757
2757
|
}),
|
|
2758
|
-
a("div",
|
|
2758
|
+
a("div", An, [
|
|
2759
2759
|
c(u, m(_.value, {
|
|
2760
2760
|
icon: "",
|
|
2761
2761
|
title: j(d).HorizontalLine,
|
|
@@ -2771,7 +2771,7 @@ var kn = { class: "rtf-toolbar-group" }, An = { class: "d-flex justify-end ga-2
|
|
|
2771
2771
|
"close-on-content-click": !1,
|
|
2772
2772
|
"onUpdate:modelValue": o[4] || (o[4] = (e) => e && ae())
|
|
2773
2773
|
}, {
|
|
2774
|
-
activator: P(({ props: e }) => [c(u, m(
|
|
2774
|
+
activator: P(({ props: e }) => [c(u, m(q(q({}, _.value), e), {
|
|
2775
2775
|
icon: "",
|
|
2776
2776
|
title: j(d).Link,
|
|
2777
2777
|
active: y.value.link
|
|
@@ -2801,7 +2801,7 @@ var kn = { class: "rtf-toolbar-group" }, An = { class: "d-flex justify-end ga-2
|
|
|
2801
2801
|
"hide-details": "",
|
|
2802
2802
|
class: "mt-1"
|
|
2803
2803
|
}, null, 8, ["modelValue", "label"]),
|
|
2804
|
-
a("div",
|
|
2804
|
+
a("div", jn, [y.value.link ? (x(), n(u, {
|
|
2805
2805
|
key: 0,
|
|
2806
2806
|
size: "small",
|
|
2807
2807
|
variant: "text",
|
|
@@ -2824,7 +2824,7 @@ var kn = { class: "rtf-toolbar-group" }, An = { class: "d-flex justify-end ga-2
|
|
|
2824
2824
|
_: 1
|
|
2825
2825
|
}),
|
|
2826
2826
|
c(w, { "close-on-content-click": !1 }, {
|
|
2827
|
-
activator: P(({ props: e }) => [c(u, m(
|
|
2827
|
+
activator: P(({ props: e }) => [c(u, m(q(q({}, _.value), e), {
|
|
2828
2828
|
icon: "",
|
|
2829
2829
|
title: j(d).Image
|
|
2830
2830
|
}), {
|
|
@@ -2842,12 +2842,12 @@ var kn = { class: "rtf-toolbar-group" }, An = { class: "d-flex justify-end ga-2
|
|
|
2842
2842
|
density: "compact",
|
|
2843
2843
|
"hide-details": "",
|
|
2844
2844
|
autofocus: "",
|
|
2845
|
-
onKeydown: F(
|
|
2846
|
-
}, null, 8, ["modelValue", "label"]), a("div",
|
|
2845
|
+
onKeydown: F(ue, ["enter"])
|
|
2846
|
+
}, null, 8, ["modelValue", "label"]), a("div", Mn, [c(u, {
|
|
2847
2847
|
size: "small",
|
|
2848
2848
|
variant: "text",
|
|
2849
2849
|
"prepend-icon": "mdi-upload",
|
|
2850
|
-
onClick:
|
|
2850
|
+
onClick: de
|
|
2851
2851
|
}, {
|
|
2852
2852
|
default: P(() => [s(O(j(d).ImageUpload), 1)]),
|
|
2853
2853
|
_: 1
|
|
@@ -2855,7 +2855,7 @@ var kn = { class: "rtf-toolbar-group" }, An = { class: "d-flex justify-end ga-2
|
|
|
2855
2855
|
size: "small",
|
|
2856
2856
|
color: "primary",
|
|
2857
2857
|
variant: "tonal",
|
|
2858
|
-
onClick:
|
|
2858
|
+
onClick: ue
|
|
2859
2859
|
}, {
|
|
2860
2860
|
default: P(() => [s(O(j(d).ImageInsert), 1)]),
|
|
2861
2861
|
_: 1
|
|
@@ -2866,14 +2866,14 @@ var kn = { class: "rtf-toolbar-group" }, An = { class: "d-flex justify-end ga-2
|
|
|
2866
2866
|
}),
|
|
2867
2867
|
a("input", {
|
|
2868
2868
|
ref_key: "imageInput",
|
|
2869
|
-
ref:
|
|
2869
|
+
ref: ce,
|
|
2870
2870
|
type: "file",
|
|
2871
2871
|
accept: "image/*",
|
|
2872
2872
|
class: "d-none",
|
|
2873
|
-
onChange:
|
|
2873
|
+
onChange: fe
|
|
2874
2874
|
}, null, 544),
|
|
2875
2875
|
c(w, { "close-on-content-click": !1 }, {
|
|
2876
|
-
activator: P(({ props: e }) => [c(u, m(
|
|
2876
|
+
activator: P(({ props: e }) => [c(u, m(q(q({}, _.value), e), {
|
|
2877
2877
|
icon: "",
|
|
2878
2878
|
title: j(d).MediaEmbed
|
|
2879
2879
|
}), {
|
|
@@ -2885,18 +2885,18 @@ var kn = { class: "rtf-toolbar-group" }, An = { class: "d-flex justify-end ga-2
|
|
|
2885
2885
|
class: "pa-3"
|
|
2886
2886
|
}, {
|
|
2887
2887
|
default: P(() => [c(E, {
|
|
2888
|
-
modelValue:
|
|
2889
|
-
"onUpdate:modelValue": o[6] || (o[6] = (e) =>
|
|
2888
|
+
modelValue: K.value,
|
|
2889
|
+
"onUpdate:modelValue": o[6] || (o[6] = (e) => K.value = e),
|
|
2890
2890
|
label: j(d).MediaEmbedUrl,
|
|
2891
2891
|
density: "compact",
|
|
2892
2892
|
"hide-details": "",
|
|
2893
2893
|
autofocus: "",
|
|
2894
|
-
onKeydown: F(
|
|
2895
|
-
}, null, 8, ["modelValue", "label"]), a("div",
|
|
2894
|
+
onKeydown: F(pe, ["enter"])
|
|
2895
|
+
}, null, 8, ["modelValue", "label"]), a("div", Nn, [c(u, {
|
|
2896
2896
|
size: "small",
|
|
2897
2897
|
color: "primary",
|
|
2898
2898
|
variant: "tonal",
|
|
2899
|
-
onClick:
|
|
2899
|
+
onClick: pe
|
|
2900
2900
|
}, {
|
|
2901
2901
|
default: P(() => [s(O(j(d).MediaEmbedInsert), 1)]),
|
|
2902
2902
|
_: 1
|
|
@@ -2906,7 +2906,7 @@ var kn = { class: "rtf-toolbar-group" }, An = { class: "d-flex justify-end ga-2
|
|
|
2906
2906
|
_: 1
|
|
2907
2907
|
}),
|
|
2908
2908
|
c(w, null, {
|
|
2909
|
-
activator: P(({ props: e }) => [c(u, m(
|
|
2909
|
+
activator: P(({ props: e }) => [c(u, m(q(q({}, _.value), e), {
|
|
2910
2910
|
icon: "",
|
|
2911
2911
|
title: j(d).Table
|
|
2912
2912
|
}), {
|
|
@@ -3068,18 +3068,18 @@ var kn = { class: "rtf-toolbar-group" }, An = { class: "d-flex justify-end ga-2
|
|
|
3068
3068
|
inset: "",
|
|
3069
3069
|
class: "mx-1"
|
|
3070
3070
|
}),
|
|
3071
|
-
c(
|
|
3071
|
+
c(Yt, m({ actions: j(ee) }, v.value, { "show-as-group": "grouped-no-borders" }), null, 16, ["actions"]),
|
|
3072
3072
|
c(l, {
|
|
3073
3073
|
vertical: "",
|
|
3074
3074
|
inset: "",
|
|
3075
3075
|
class: "mx-1"
|
|
3076
3076
|
}),
|
|
3077
|
-
c(
|
|
3077
|
+
c(Yt, m({ actions: N }, v.value, { "show-as-group": "grouped-no-borders" }), null, 16)
|
|
3078
3078
|
], 2);
|
|
3079
3079
|
};
|
|
3080
3080
|
}
|
|
3081
|
-
}),
|
|
3082
|
-
function
|
|
3081
|
+
}), Fn = /^[a-z][a-z0-9]*:[a-z]/i, In = /mso-[a-z-]+\s*:[^;]+;?/gi, Ln = /^Mso/i, Rn = /background(?:-color)?\s*:[^;]+;?/gi;
|
|
3082
|
+
function zn(e) {
|
|
3083
3083
|
let t = document.createTreeWalker(e, NodeFilter.SHOW_COMMENT), n = [];
|
|
3084
3084
|
for (let e = t.nextNode(); e; e = t.nextNode()) n.push(e);
|
|
3085
3085
|
n.forEach((e) => {
|
|
@@ -3087,42 +3087,42 @@ function Rn(e) {
|
|
|
3087
3087
|
return (t = e.parentNode) == null ? void 0 : t.removeChild(e);
|
|
3088
3088
|
});
|
|
3089
3089
|
}
|
|
3090
|
-
function
|
|
3090
|
+
function Bn(e) {
|
|
3091
3091
|
let t = e.parentNode;
|
|
3092
3092
|
if (t) {
|
|
3093
3093
|
for (; e.firstChild;) t.insertBefore(e.firstChild, e);
|
|
3094
3094
|
t.removeChild(e);
|
|
3095
3095
|
}
|
|
3096
3096
|
}
|
|
3097
|
-
function
|
|
3097
|
+
function Vn(e) {
|
|
3098
3098
|
let t = e.getAttribute("style");
|
|
3099
3099
|
if (t != null) {
|
|
3100
|
-
let n = t.replace(
|
|
3100
|
+
let n = t.replace(In, "").replace(Rn, "").trim();
|
|
3101
3101
|
n ? e.setAttribute("style", n) : e.removeAttribute("style");
|
|
3102
3102
|
}
|
|
3103
3103
|
let n = e.getAttribute("class");
|
|
3104
3104
|
if (n != null) {
|
|
3105
|
-
let t = n.split(/\s+/).filter((e) => e && !
|
|
3105
|
+
let t = n.split(/\s+/).filter((e) => e && !Ln.test(e)).join(" ");
|
|
3106
3106
|
t ? e.setAttribute("class", t) : e.removeAttribute("class");
|
|
3107
3107
|
}
|
|
3108
3108
|
e.removeAttribute("lang"), e.removeAttribute("xml:lang"), e.removeAttribute("id"), e.removeAttribute("align"), e.removeAttribute("bgcolor");
|
|
3109
3109
|
}
|
|
3110
|
-
function
|
|
3110
|
+
function Hn(e) {
|
|
3111
3111
|
if (!e || typeof DOMParser > "u") return e;
|
|
3112
3112
|
let t = new DOMParser().parseFromString(e, "text/html").body;
|
|
3113
|
-
return t ? (
|
|
3114
|
-
if (
|
|
3115
|
-
|
|
3113
|
+
return t ? (zn(t), t.querySelectorAll("xml, style, script, meta, link").forEach((e) => e.remove()), Array.from(t.querySelectorAll("*")).forEach((e) => {
|
|
3114
|
+
if (Fn.test(e.tagName) || e.tagName === "FONT") {
|
|
3115
|
+
Bn(e);
|
|
3116
3116
|
return;
|
|
3117
3117
|
}
|
|
3118
|
-
|
|
3118
|
+
Vn(e);
|
|
3119
3119
|
}), Array.from(t.querySelectorAll("span, div")).forEach((e) => {
|
|
3120
|
-
e.attributes.length === 0 &&
|
|
3120
|
+
e.attributes.length === 0 && Bn(e);
|
|
3121
3121
|
}), t.innerHTML) : e;
|
|
3122
3122
|
}
|
|
3123
3123
|
//#endregion
|
|
3124
3124
|
//#region src/helpers/rtf-editor/editor-core.vue?vue&type=script&setup=true&lang.ts
|
|
3125
|
-
var
|
|
3125
|
+
var Un = { class: "editor-container" }, Wn = { class: "rtf-bubble-menu" }, Gn = /* @__PURE__ */ l({
|
|
3126
3126
|
__name: "editor-core",
|
|
3127
3127
|
props: {
|
|
3128
3128
|
modelValue: { default: "" },
|
|
@@ -3148,17 +3148,17 @@ var Hn = { class: "editor-container" }, Un = { class: "rtf-bubble-menu" }, Wn =
|
|
|
3148
3148
|
n.style.setProperty("--rtf-toolbar-height", `${e.contentRect.height}px`);
|
|
3149
3149
|
}), d.observe(t));
|
|
3150
3150
|
}), y(() => d == null ? void 0 : d.disconnect());
|
|
3151
|
-
let f =
|
|
3151
|
+
let f = Oe({
|
|
3152
3152
|
content: s.modelValue,
|
|
3153
3153
|
editable: !s.disabled,
|
|
3154
3154
|
extensions: [
|
|
3155
|
-
|
|
3156
|
-
|
|
3155
|
+
Ee.configure({ link: !1 }),
|
|
3156
|
+
En.configure({
|
|
3157
3157
|
openOnClick: !1,
|
|
3158
3158
|
autolink: !0,
|
|
3159
3159
|
defaultProtocol: "https"
|
|
3160
3160
|
}),
|
|
3161
|
-
|
|
3161
|
+
ve.configure({
|
|
3162
3162
|
inline: !0,
|
|
3163
3163
|
allowBase64: !0,
|
|
3164
3164
|
resize: {
|
|
@@ -3177,21 +3177,21 @@ var Hn = { class: "editor-container" }, Un = { class: "rtf-bubble-menu" }, Wn =
|
|
|
3177
3177
|
minHeight: 24
|
|
3178
3178
|
}
|
|
3179
3179
|
}),
|
|
3180
|
-
|
|
3181
|
-
|
|
3180
|
+
we.configure({ types: ["heading", "paragraph"] }),
|
|
3181
|
+
be.configure({ resizable: !0 }),
|
|
3182
|
+
Ce,
|
|
3182
3183
|
Se,
|
|
3183
3184
|
xe,
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
un,
|
|
3187
|
-
fn,
|
|
3185
|
+
ye.configure({ placeholder: "" }),
|
|
3186
|
+
dn,
|
|
3188
3187
|
pn,
|
|
3189
|
-
|
|
3188
|
+
mn,
|
|
3189
|
+
On
|
|
3190
3190
|
],
|
|
3191
3191
|
editorProps: {
|
|
3192
3192
|
attributes: { class: "rtf-content" },
|
|
3193
|
-
transformPastedHTML: (e) =>
|
|
3194
|
-
handlePaste:
|
|
3193
|
+
transformPastedHTML: (e) => Hn(e),
|
|
3194
|
+
handlePaste: Tn(() => f.value)
|
|
3195
3195
|
},
|
|
3196
3196
|
onUpdate: ({ editor: e }) => {
|
|
3197
3197
|
l("update:modelValue", e.isEmpty ? "" : e.getHTML());
|
|
@@ -3211,7 +3211,7 @@ var Hn = { class: "editor-container" }, Un = { class: "rtf-bubble-menu" }, Wn =
|
|
|
3211
3211
|
size: "small",
|
|
3212
3212
|
density: "comfortable",
|
|
3213
3213
|
variant: "text"
|
|
3214
|
-
}, h =
|
|
3214
|
+
}, h = kn(f), g = t(() => {
|
|
3215
3215
|
var e, t, n, r, i;
|
|
3216
3216
|
return h.value, {
|
|
3217
3217
|
bold: !!((e = f.value) != null && e.isActive("bold")),
|
|
@@ -3222,7 +3222,7 @@ var Hn = { class: "editor-container" }, Un = { class: "rtf-bubble-menu" }, Wn =
|
|
|
3222
3222
|
};
|
|
3223
3223
|
});
|
|
3224
3224
|
function _({ state: e }) {
|
|
3225
|
-
return !e.selection.empty && !(e.selection instanceof
|
|
3225
|
+
return !e.selection.empty && !(e.selection instanceof Te);
|
|
3226
3226
|
}
|
|
3227
3227
|
function v(e) {
|
|
3228
3228
|
var t;
|
|
@@ -3235,28 +3235,28 @@ var Hn = { class: "editor-container" }, Un = { class: "rtf-bubble-menu" }, Wn =
|
|
|
3235
3235
|
e.chain().focus().unsetLink().run();
|
|
3236
3236
|
return;
|
|
3237
3237
|
}
|
|
3238
|
-
let t = window.prompt(
|
|
3238
|
+
let t = window.prompt(Ft.LinkUrl);
|
|
3239
3239
|
t && e.chain().focus().extendMarkRange("link").setLink({ href: t }).run();
|
|
3240
3240
|
}
|
|
3241
3241
|
return (t, o) => {
|
|
3242
3242
|
let s = T("v-btn");
|
|
3243
|
-
return x(), i("div",
|
|
3244
|
-
c(
|
|
3243
|
+
return x(), i("div", Un, [
|
|
3244
|
+
c(Pn, {
|
|
3245
3245
|
ref_key: "toolbarRef",
|
|
3246
3246
|
ref: u,
|
|
3247
3247
|
editor: j(f),
|
|
3248
3248
|
"button-size": e.toolbarButtonSize
|
|
3249
3249
|
}, null, 8, ["editor", "button-size"]),
|
|
3250
|
-
c(j(
|
|
3250
|
+
c(j(De), {
|
|
3251
3251
|
class: "editor-container__editor",
|
|
3252
3252
|
editor: j(f)
|
|
3253
3253
|
}, null, 8, ["editor"]),
|
|
3254
|
-
j(f) ? (x(), n(j(
|
|
3254
|
+
j(f) ? (x(), n(j(ke), {
|
|
3255
3255
|
key: 0,
|
|
3256
3256
|
editor: j(f),
|
|
3257
3257
|
"should-show": _
|
|
3258
3258
|
}, {
|
|
3259
|
-
default: P(() => [a("div",
|
|
3259
|
+
default: P(() => [a("div", Wn, [
|
|
3260
3260
|
c(s, m(p, {
|
|
3261
3261
|
active: g.value.bold,
|
|
3262
3262
|
onClick: o[0] || (o[0] = (e) => v("toggleBold"))
|
|
@@ -3298,7 +3298,7 @@ var Hn = { class: "editor-container" }, Un = { class: "rtf-bubble-menu" }, Wn =
|
|
|
3298
3298
|
]);
|
|
3299
3299
|
};
|
|
3300
3300
|
}
|
|
3301
|
-
}),
|
|
3301
|
+
}), Kn = /* @__PURE__ */ l({
|
|
3302
3302
|
__name: "df-rtf-editor",
|
|
3303
3303
|
props: /*@__PURE__*/ p({
|
|
3304
3304
|
minHeight: {},
|
|
@@ -3318,12 +3318,12 @@ var Hn = { class: "editor-container" }, Un = { class: "rtf-bubble-menu" }, Wn =
|
|
|
3318
3318
|
passthroughAttrs: {},
|
|
3319
3319
|
density: {},
|
|
3320
3320
|
variant: {}
|
|
3321
|
-
},
|
|
3321
|
+
}, q(q({}, X), {}, { minHeight: void 0 })),
|
|
3322
3322
|
emits: ["update:modelValue", "click:clear"],
|
|
3323
3323
|
setup(e, { emit: t }) {
|
|
3324
|
-
let r = e, { densityClass: i, value: a, vuetifyBindings: o } =
|
|
3325
|
-
return (t, s) => (x(), n(j(
|
|
3326
|
-
default: P((t) => [c(
|
|
3324
|
+
let r = e, { densityClass: i, value: a, vuetifyBindings: o } = Z(r, t);
|
|
3325
|
+
return (t, s) => (x(), n(j(Pt), m(r, { class: ["rtf-editor", j(i)] }), {
|
|
3326
|
+
default: P((t) => [c(Gn, m({
|
|
3327
3327
|
ref: "$editor",
|
|
3328
3328
|
modelValue: j(a),
|
|
3329
3329
|
"onUpdate:modelValue": s[0] || (s[0] = (e) => f(a) ? a.value = e : null),
|
|
@@ -3351,14 +3351,14 @@ var Hn = { class: "editor-container" }, Un = { class: "rtf-bubble-menu" }, Wn =
|
|
|
3351
3351
|
});
|
|
3352
3352
|
//#endregion
|
|
3353
3353
|
//#region src/helpers/df-select.helper.ts
|
|
3354
|
-
function
|
|
3354
|
+
function qn(e) {
|
|
3355
3355
|
return e.map((e) => ({
|
|
3356
3356
|
value: e.id,
|
|
3357
3357
|
title: e.text,
|
|
3358
3358
|
icon: e.icon
|
|
3359
3359
|
}));
|
|
3360
3360
|
}
|
|
3361
|
-
function
|
|
3361
|
+
function $(e, t) {
|
|
3362
3362
|
var n;
|
|
3363
3363
|
return e == null || se(e) && e.length === 0 ? null : t ? U(e) : se(e) ? (n = oe(e)) == null ? null : n : e;
|
|
3364
3364
|
}
|
|
@@ -3368,7 +3368,7 @@ function Jn(e, t) {
|
|
|
3368
3368
|
return e.filter((e) => n.some((t) => t === e.id));
|
|
3369
3369
|
}
|
|
3370
3370
|
function Yn(e, t, n, r, i) {
|
|
3371
|
-
let a =
|
|
3371
|
+
let a = $(e, n);
|
|
3372
3372
|
if (a == null) {
|
|
3373
3373
|
t.value = n ? [] : null;
|
|
3374
3374
|
return;
|
|
@@ -3412,7 +3412,7 @@ var Xn = {
|
|
|
3412
3412
|
passthroughAttrs: {},
|
|
3413
3413
|
density: {},
|
|
3414
3414
|
variant: {}
|
|
3415
|
-
},
|
|
3415
|
+
}, q(q({}, X), {}, {
|
|
3416
3416
|
choices: void 0,
|
|
3417
3417
|
multiple: !1,
|
|
3418
3418
|
allowTags: !1,
|
|
@@ -3426,91 +3426,115 @@ var Xn = {
|
|
|
3426
3426
|
],
|
|
3427
3427
|
setup(e, { emit: s }) {
|
|
3428
3428
|
var l;
|
|
3429
|
-
let d = e, { choices: f, multiple: p, allowTags: v, allowNull: y, cssClass: b } = A(d), C = s, D = S(null), { densityClass: k, isRendered: M, label: ee, showErrors: te, touched: F, value: I, visibilityClass: L, vuetifyBindings: R } =
|
|
3429
|
+
let d = e, { choices: f, multiple: p, allowTags: v, allowNull: y, cssClass: b } = A(d), C = s, D = S(null), { densityClass: k, isRendered: M, label: ee, showErrors: te, touched: F, value: I, visibilityClass: L, vuetifyBindings: R } = Z(d, C), z = S(null), ne = S(!1), re = S([]), B = t(() => j(ne) ? j(re) : j(f) || []), ie = t(() => qn(B.value)), H = S(null), ae = S(0), oe = S(!1), se = S(0), W = S(0), ce = t(() => W.value > 0 || se.value > 0);
|
|
3430
3430
|
(l = f.value) != null && l.length && d.fetchChoices !== void 0 && console.warn("Both choices and fetchChoices are set. Only one of them should be set.");
|
|
3431
|
-
function
|
|
3431
|
+
function ue(e) {
|
|
3432
3432
|
C("update:modelValueDisplay", Jn(B.value, e));
|
|
3433
3433
|
}
|
|
3434
|
-
let
|
|
3435
|
-
function
|
|
3436
|
-
|
|
3434
|
+
let de = S(!1);
|
|
3435
|
+
function fe(e) {
|
|
3436
|
+
de.value = !0;
|
|
3437
3437
|
try {
|
|
3438
3438
|
I.value = e;
|
|
3439
3439
|
} finally {
|
|
3440
|
-
|
|
3441
|
-
|
|
3440
|
+
h(() => {
|
|
3441
|
+
let t = $(I.value, p.value);
|
|
3442
|
+
le(t, e) || Yn(t, z, p.value, v.value, B.value), de.value = !1;
|
|
3442
3443
|
});
|
|
3443
3444
|
}
|
|
3444
3445
|
}
|
|
3445
|
-
function
|
|
3446
|
+
function G(e) {
|
|
3446
3447
|
if (!e) return 0;
|
|
3447
3448
|
let t = e.getBoundingClientRect(), n = window.getComputedStyle(e);
|
|
3448
3449
|
return t.width + parseFloat(n.marginLeft) + parseFloat(n.marginRight);
|
|
3449
3450
|
}
|
|
3450
|
-
function
|
|
3451
|
+
function K() {
|
|
3451
3452
|
if (p.value && y.value && z.value != null && z.value.length > 0 && D.value) {
|
|
3452
3453
|
var e;
|
|
3453
3454
|
let t = D.value.$el, n = (e = t.querySelector(".v-input__control")) == null ? void 0 : e.clientWidth, r = t.querySelector(".v-field__input"), i = r.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), a = window.getComputedStyle(r), o = parseFloat(a.paddingLeft) + parseFloat(a.paddingRight);
|
|
3454
3455
|
i.forEach((e) => {
|
|
3455
|
-
o +=
|
|
3456
|
+
o += G(e);
|
|
3456
3457
|
});
|
|
3457
|
-
let s =
|
|
3458
|
+
let s = G(t.querySelector(".v-field .v-field__clearable")), c = G(t.querySelector(".v-field .v-field__append-inner"));
|
|
3458
3459
|
oe.value = n - o - i.length * 2 - c < s;
|
|
3459
3460
|
} else oe.value = !1;
|
|
3460
3461
|
}
|
|
3461
|
-
function
|
|
3462
|
+
function me(e) {
|
|
3462
3463
|
let t = e.target;
|
|
3463
3464
|
t instanceof HTMLElement && t.closest(".v-chip__close") && (e.stopPropagation(), e.preventDefault());
|
|
3464
3465
|
}
|
|
3465
3466
|
N(z, (e) => {
|
|
3466
|
-
R.value.readonly || h(() => {
|
|
3467
|
-
let t =
|
|
3468
|
-
|
|
3467
|
+
R.value.readonly || se.value > 0 || h(() => {
|
|
3468
|
+
let t = $(e, p.value);
|
|
3469
|
+
ue(t), fe(t);
|
|
3469
3470
|
});
|
|
3470
3471
|
}, { deep: !0 }), N(I, (e) => {
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3472
|
+
if (de.value) return;
|
|
3473
|
+
let t = $(e, p.value), n = be(t);
|
|
3474
|
+
Yn(t, z, p.value, !1, B.value), n == null || n.then(() => {
|
|
3475
|
+
le($(I.value, p.value), t) && Yn(t, z, p.value, !1, B.value);
|
|
3476
|
+
});
|
|
3477
|
+
}, { deep: !0 }), N(de, () => {
|
|
3478
|
+
de.value || K();
|
|
3474
3479
|
});
|
|
3475
|
-
function
|
|
3476
|
-
|
|
3480
|
+
function he() {
|
|
3481
|
+
H.value != null && H.value.length > 0 && (H.value = null, ve());
|
|
3477
3482
|
}
|
|
3478
|
-
function
|
|
3479
|
-
if (
|
|
3480
|
-
let e =
|
|
3481
|
-
Yn(e, z, p.value, !1, B.value),
|
|
3483
|
+
function ge() {
|
|
3484
|
+
if (he(), R.value.readonly || v.value) return;
|
|
3485
|
+
let e = $(z.value, p.value);
|
|
3486
|
+
Yn(e, z, p.value, !1, B.value), fe(e);
|
|
3482
3487
|
}
|
|
3483
|
-
function
|
|
3488
|
+
function _e(e, t) {
|
|
3484
3489
|
if (e.stopPropagation(), R.value.readonly || v.value) {
|
|
3485
3490
|
v.value && (z.value = z.value.filter((e) => e !== t));
|
|
3486
3491
|
return;
|
|
3487
3492
|
}
|
|
3488
3493
|
let n;
|
|
3489
|
-
n = p.value && Array.isArray(z.value) ?
|
|
3494
|
+
n = p.value && Array.isArray(z.value) ? $(z.value.filter((e) => e !== t), p.value) : null, Yn(n, z, p.value, !1, B.value), fe(n);
|
|
3490
3495
|
}
|
|
3491
|
-
function
|
|
3492
|
-
return
|
|
3496
|
+
function ve(e, t) {
|
|
3497
|
+
return ye.apply(this, arguments);
|
|
3493
3498
|
}
|
|
3494
|
-
function
|
|
3495
|
-
return
|
|
3496
|
-
if (R.value.readonly || (
|
|
3499
|
+
function ye() {
|
|
3500
|
+
return ye = en(function* (e, t) {
|
|
3501
|
+
if (R.value.readonly || (H.value = e, f.value || d.fetchChoices === void 0)) return;
|
|
3497
3502
|
let n = ++ae.value;
|
|
3498
|
-
|
|
3503
|
+
W.value++;
|
|
3499
3504
|
try {
|
|
3500
|
-
let r =
|
|
3505
|
+
let r = yield d.fetchChoices(e, t);
|
|
3501
3506
|
if (n !== ae.value) return;
|
|
3502
|
-
|
|
3507
|
+
let i = Jn(B.value, $(I.value, p.value));
|
|
3508
|
+
re.value = pe([...i, ...r], "id"), ne.value = !0;
|
|
3503
3509
|
} finally {
|
|
3504
|
-
|
|
3510
|
+
W.value--;
|
|
3505
3511
|
}
|
|
3506
|
-
}),
|
|
3512
|
+
}), ye.apply(this, arguments);
|
|
3507
3513
|
}
|
|
3508
|
-
function
|
|
3514
|
+
function be(e) {
|
|
3515
|
+
let t = d.fetchChoices;
|
|
3516
|
+
if (t === void 0 || v.value || e == null) return null;
|
|
3517
|
+
let n = U(e).filter((e) => !B.value.some((t) => t.id === e));
|
|
3518
|
+
return n.length ? (se.value++, en(function* () {
|
|
3519
|
+
try {
|
|
3520
|
+
let e = yield t(void 0, p.value ? n : n[0]);
|
|
3521
|
+
re.value = pe([...B.value, ...e], "id"), ne.value = !0;
|
|
3522
|
+
} finally {
|
|
3523
|
+
se.value--;
|
|
3524
|
+
}
|
|
3525
|
+
})()) : null;
|
|
3526
|
+
}
|
|
3527
|
+
function xe() {
|
|
3509
3528
|
let e = I.value;
|
|
3510
|
-
!y.value && e == null &&
|
|
3529
|
+
!y.value && e == null && ie.value.length && (e = ie.value[0].value), e = $(e, p.value), Yn(e, z, p.value, v.value, B.value), !(se.value > 0) && (ue(e), fe(e));
|
|
3530
|
+
}
|
|
3531
|
+
let Se = null;
|
|
3532
|
+
if (d.fetchChoices !== void 0) {
|
|
3533
|
+
var Ce;
|
|
3534
|
+
Se = (Ce = be($(I.value, p.value))) == null ? ve(void 0, I.value) : Ce;
|
|
3511
3535
|
}
|
|
3512
|
-
return
|
|
3513
|
-
|
|
3536
|
+
return xe(), Se == null || Se.then(() => {
|
|
3537
|
+
xe();
|
|
3514
3538
|
}), (e, t) => {
|
|
3515
3539
|
let s = T("v-chip"), l = T("v-list-item");
|
|
3516
3540
|
return j(M) ? (x(), n(E(j(v) ? "v-combobox" : "v-autocomplete"), m({
|
|
@@ -3525,24 +3549,24 @@ var Xn = {
|
|
|
3525
3549
|
j(L),
|
|
3526
3550
|
{ "df-select-multirow": oe.value }
|
|
3527
3551
|
],
|
|
3528
|
-
items:
|
|
3552
|
+
items: ie.value,
|
|
3529
3553
|
"return-object": !1,
|
|
3530
3554
|
chips: "",
|
|
3531
3555
|
"auto-select-first": !0,
|
|
3532
3556
|
"closable-chips": j(y) || j(p) && z.value.length > 1,
|
|
3533
3557
|
clearable: j(y),
|
|
3534
3558
|
multiple: j(p),
|
|
3535
|
-
loading:
|
|
3559
|
+
loading: ce.value,
|
|
3536
3560
|
"hide-selected": !1,
|
|
3537
3561
|
"aria-describedby": j(R).helpText ? `${j(R).name}-help` : null,
|
|
3538
3562
|
"menu-props": { maxHeight: "400" },
|
|
3539
|
-
search:
|
|
3563
|
+
search: H.value
|
|
3540
3564
|
}, j(R), {
|
|
3541
|
-
"onUpdate:search": t[1] || (t[1] = (e) =>
|
|
3542
|
-
"onUpdate:modelValue":
|
|
3565
|
+
"onUpdate:search": t[1] || (t[1] = (e) => ve(e, void 0)),
|
|
3566
|
+
"onUpdate:modelValue": ge,
|
|
3543
3567
|
"onClick:clear": t[2] || (t[2] = (e) => z.value = null),
|
|
3544
3568
|
onBlur: t[3] || (t[3] = (e) => F.value = !0),
|
|
3545
|
-
onMousedownCapture: t[4] || (t[4] = (e) =>
|
|
3569
|
+
onMousedownCapture: t[4] || (t[4] = (e) => me(e))
|
|
3546
3570
|
}), o({
|
|
3547
3571
|
chip: P(({ item: e }) => [(x(), n(s, {
|
|
3548
3572
|
key: e.value,
|
|
@@ -3551,7 +3575,7 @@ var Xn = {
|
|
|
3551
3575
|
class: "d-flex align-middle",
|
|
3552
3576
|
variant: j(p) ? "tonal" : "text",
|
|
3553
3577
|
closable: j(p),
|
|
3554
|
-
"onClick:close": (t) =>
|
|
3578
|
+
"onClick:close": (t) => _e(t, e.value)
|
|
3555
3579
|
}, {
|
|
3556
3580
|
prepend: P(() => {
|
|
3557
3581
|
var t;
|
|
@@ -3568,7 +3592,7 @@ var Xn = {
|
|
|
3568
3592
|
"closable",
|
|
3569
3593
|
"onClick:close"
|
|
3570
3594
|
]))]),
|
|
3571
|
-
label: P((e) => [c(j(
|
|
3595
|
+
label: P((e) => [c(j(Y), {
|
|
3572
3596
|
data: e,
|
|
3573
3597
|
label: j(ee)
|
|
3574
3598
|
}, null, 8, ["data", "label"])]),
|
|
@@ -3582,7 +3606,7 @@ var Xn = {
|
|
|
3582
3606
|
}),
|
|
3583
3607
|
_: 2
|
|
3584
3608
|
}, 1040)]),
|
|
3585
|
-
message: P(({ message: e }) => [c(j(
|
|
3609
|
+
message: P(({ message: e }) => [c(j(J), {
|
|
3586
3610
|
message: e,
|
|
3587
3611
|
errors: j(te)
|
|
3588
3612
|
}, null, 8, ["message", "errors"])]),
|
|
@@ -3608,7 +3632,7 @@ var Xn = {
|
|
|
3608
3632
|
])) : r("", !0);
|
|
3609
3633
|
};
|
|
3610
3634
|
}
|
|
3611
|
-
}), [["__scopeId", "data-v-
|
|
3635
|
+
}), [["__scopeId", "data-v-ad3db4b8"]]), Qn = /* @__PURE__ */ l({
|
|
3612
3636
|
__name: "df-text-area",
|
|
3613
3637
|
props: /*@__PURE__*/ p({
|
|
3614
3638
|
rows: {},
|
|
@@ -3627,13 +3651,13 @@ var Xn = {
|
|
|
3627
3651
|
passthroughAttrs: {},
|
|
3628
3652
|
density: {},
|
|
3629
3653
|
variant: {}
|
|
3630
|
-
},
|
|
3654
|
+
}, q(q({}, X), {}, {
|
|
3631
3655
|
rows: void 0,
|
|
3632
3656
|
maxRows: void 0
|
|
3633
3657
|
})),
|
|
3634
3658
|
emits: ["update:modelValue", "click:clear"],
|
|
3635
3659
|
setup(e, { emit: t }) {
|
|
3636
|
-
let n = e, { densityClass: a, isRendered: o, label: s, showErrors: l, touched: u, value: d, visibilityClass: p, vuetifyBindings: h } =
|
|
3660
|
+
let n = e, { densityClass: a, isRendered: o, label: s, showErrors: l, touched: u, value: d, visibilityClass: p, vuetifyBindings: h } = Z(n, t), { cssClass: _ } = A(n);
|
|
3637
3661
|
return (t, n) => {
|
|
3638
3662
|
let v = T("v-textarea");
|
|
3639
3663
|
return j(o) ? (x(), i("div", {
|
|
@@ -3647,11 +3671,11 @@ var Xn = {
|
|
|
3647
3671
|
"auto-grow": (e.maxRows || 0) > 0,
|
|
3648
3672
|
"max-rows": e.maxRows
|
|
3649
3673
|
}, j(h), { onBlur: n[1] || (n[1] = (e) => u.value = !0) }), {
|
|
3650
|
-
label: P((e) => [c(j(
|
|
3674
|
+
label: P((e) => [c(j(Y), {
|
|
3651
3675
|
data: e,
|
|
3652
3676
|
label: j(s)
|
|
3653
3677
|
}, null, 8, ["data", "label"])]),
|
|
3654
|
-
message: P(({ message: e }) => [c(j(
|
|
3678
|
+
message: P(({ message: e }) => [c(j(J), {
|
|
3655
3679
|
message: e,
|
|
3656
3680
|
errors: j(l)
|
|
3657
3681
|
}, null, 8, ["message", "errors"])]),
|
|
@@ -3665,62 +3689,62 @@ var Xn = {
|
|
|
3665
3689
|
])], 2)) : r("", !0);
|
|
3666
3690
|
};
|
|
3667
3691
|
}
|
|
3668
|
-
}), $n = /* @__PURE__ */
|
|
3669
|
-
DfActions: () =>
|
|
3670
|
-
DfCheckbox: () =>
|
|
3671
|
-
DfColor: () =>
|
|
3672
|
-
DfDateTime: () =>
|
|
3673
|
-
DfFile: () =>
|
|
3674
|
-
DfImage: () =>
|
|
3675
|
-
DfInput: () =>
|
|
3676
|
-
DfInputHint: () =>
|
|
3677
|
-
DfLabel: () =>
|
|
3678
|
-
DfRtfEditor: () =>
|
|
3692
|
+
}), $n = /* @__PURE__ */ ct({
|
|
3693
|
+
DfActions: () => Yt,
|
|
3694
|
+
DfCheckbox: () => Xt,
|
|
3695
|
+
DfColor: () => Zt,
|
|
3696
|
+
DfDateTime: () => Qt,
|
|
3697
|
+
DfFile: () => nn,
|
|
3698
|
+
DfImage: () => ln,
|
|
3699
|
+
DfInput: () => un,
|
|
3700
|
+
DfInputHint: () => J,
|
|
3701
|
+
DfLabel: () => Y,
|
|
3702
|
+
DfRtfEditor: () => Kn,
|
|
3679
3703
|
DfSelect: () => Zn,
|
|
3680
3704
|
DfTextArea: () => Qn
|
|
3681
|
-
}), er = /* @__PURE__ */
|
|
3682
|
-
VAutocomplete: () =>
|
|
3683
|
-
VBtn: () =>
|
|
3684
|
-
VCheckbox: () =>
|
|
3685
|
-
VChip: () =>
|
|
3686
|
-
VCol: () =>
|
|
3687
|
-
VColorPicker: () =>
|
|
3688
|
-
VCombobox: () =>
|
|
3689
|
-
VConfirmEdit: () =>
|
|
3690
|
-
VDatePicker: () =>
|
|
3691
|
-
VField: () =>
|
|
3692
|
-
VFileInput: () =>
|
|
3693
|
-
VIcon: () =>
|
|
3694
|
-
VImg: () =>
|
|
3695
|
-
VInput: () =>
|
|
3696
|
-
VListItem: () =>
|
|
3697
|
-
VMenu: () =>
|
|
3698
|
-
VNumberInput: () =>
|
|
3699
|
-
VProgressLinear: () =>
|
|
3700
|
-
VRow: () =>
|
|
3701
|
-
VSelect: () =>
|
|
3702
|
-
VSwitch: () =>
|
|
3703
|
-
VTextField: () =>
|
|
3704
|
-
VTextarea: () =>
|
|
3705
|
-
VTimePicker: () =>
|
|
3705
|
+
}), er = /* @__PURE__ */ ct({
|
|
3706
|
+
VAutocomplete: () => Le,
|
|
3707
|
+
VBtn: () => Re,
|
|
3708
|
+
VCheckbox: () => ze,
|
|
3709
|
+
VChip: () => Be,
|
|
3710
|
+
VCol: () => qe,
|
|
3711
|
+
VColorPicker: () => He,
|
|
3712
|
+
VCombobox: () => Ve,
|
|
3713
|
+
VConfirmEdit: () => Ue,
|
|
3714
|
+
VDatePicker: () => We,
|
|
3715
|
+
VField: () => Ge,
|
|
3716
|
+
VFileInput: () => Ke,
|
|
3717
|
+
VIcon: () => Ye,
|
|
3718
|
+
VImg: () => Xe,
|
|
3719
|
+
VInput: () => Ze,
|
|
3720
|
+
VListItem: () => Qe,
|
|
3721
|
+
VMenu: () => $e,
|
|
3722
|
+
VNumberInput: () => et,
|
|
3723
|
+
VProgressLinear: () => tt,
|
|
3724
|
+
VRow: () => Je,
|
|
3725
|
+
VSelect: () => nt,
|
|
3726
|
+
VSwitch: () => rt,
|
|
3727
|
+
VTextField: () => at,
|
|
3728
|
+
VTextarea: () => it,
|
|
3729
|
+
VTimePicker: () => ot
|
|
3706
3730
|
}), tr = {
|
|
3707
|
-
"df-actions":
|
|
3708
|
-
"df-checkbox":
|
|
3709
|
-
"df-color":
|
|
3710
|
-
"df-date-time":
|
|
3711
|
-
"df-file":
|
|
3712
|
-
"df-image":
|
|
3713
|
-
"df-input":
|
|
3714
|
-
"df-input-hint":
|
|
3715
|
-
"df-label":
|
|
3716
|
-
"df-rtf-editor":
|
|
3731
|
+
"df-actions": Yt,
|
|
3732
|
+
"df-checkbox": Xt,
|
|
3733
|
+
"df-color": Zt,
|
|
3734
|
+
"df-date-time": Qt,
|
|
3735
|
+
"df-file": nn,
|
|
3736
|
+
"df-image": ln,
|
|
3737
|
+
"df-input": un,
|
|
3738
|
+
"df-input-hint": J,
|
|
3739
|
+
"df-label": Y,
|
|
3740
|
+
"df-rtf-editor": Kn,
|
|
3717
3741
|
"df-select": Zn,
|
|
3718
3742
|
"df-text-area": Qn
|
|
3719
|
-
}, nr = /* @__PURE__ */
|
|
3743
|
+
}, nr = /* @__PURE__ */ ct({}), rr = { install: (e, t) => {
|
|
3720
3744
|
var n, r;
|
|
3721
|
-
e.provide(
|
|
3745
|
+
e.provide(jt, t == null ? {} : t), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries($n).map(([t, n]) => e.component(t, n)), (r = t == null ? void 0 : t.registerVuetifyComponents) != null && r && Object.entries(er).map(([t, n]) => e.component(t, n));
|
|
3722
3746
|
} };
|
|
3723
3747
|
//#endregion
|
|
3724
|
-
export {
|
|
3748
|
+
export { Wt as Action, Q as ActionDisplayStyle, kt as DateTimeLocaleConfig, Yt as DfActions, Xt as DfCheckbox, Zt as DfColor, Qt as DfDateTime, nn as DfFile, ln as DfImage, un as DfInput, nr as DfInputComponentProps, $n as DfInputComponents, J as DfInputHint, Y as DfLabel, Kn as DfRtfEditor, Zn as DfSelect, Qn as DfTextArea, rr as DynamicFormsInputs, At as FileGoneError, Pt as InputBase, Mt as Label, Ht as ResponsiveActionRenderOptions, zt as ResponsiveRenderOptions, er as VuetifyComponents, X as defaultBaseProps, Lt as defaultDisplayStyle, tr as dfInputComponentsByTag, Bt as getBreakpointName, Ut as getRenderOptionsForBreakpoint, Rt as responsiveBreakpoints, Kt as setFileGoneError, Ft as translatableStrings, It as translateStrings, Vt as useBreakpoint, Gt as useFileTouchKeepAlive, Z as useInputBase, jt as vuetifyInputsSettingsKey };
|
|
3725
3749
|
|
|
3726
3750
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|