@dynamicforms/vuetify-inputs 0.6.2 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var nt = Object.defineProperty, ot = Object.defineProperties;
|
|
2
|
-
var
|
|
2
|
+
var lt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Ee = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var at = Object.prototype.hasOwnProperty, rt = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var Ce = (e, t, n) => t in e ? nt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, S = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
at.call(t, n) && Ce(e, n, t[n]);
|
|
8
8
|
if (Ee)
|
|
9
9
|
for (var n of Ee(t))
|
|
10
10
|
rt.call(t, n) && Ce(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, L = (e, t) => ot(e,
|
|
12
|
+
}, L = (e, t) => ot(e, lt(t));
|
|
13
13
|
var $e = (e, t, n) => Ce(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
|
-
var ge = (e, t, n) => new Promise((
|
|
14
|
+
var ge = (e, t, n) => new Promise((l, a) => {
|
|
15
15
|
var r = (i) => {
|
|
16
16
|
try {
|
|
17
17
|
p(n.next(i));
|
|
18
18
|
} catch (d) {
|
|
19
|
-
|
|
19
|
+
a(d);
|
|
20
20
|
}
|
|
21
21
|
}, s = (i) => {
|
|
22
22
|
try {
|
|
23
23
|
p(n.throw(i));
|
|
24
24
|
} catch (d) {
|
|
25
|
-
|
|
25
|
+
a(d);
|
|
26
26
|
}
|
|
27
|
-
}, p = (i) => i.done ?
|
|
27
|
+
}, p = (i) => i.done ? l(i.value) : Promise.resolve(i.value).then(r, s);
|
|
28
28
|
p((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as Ae from "vue";
|
|
@@ -35,7 +35,7 @@ import We, { MdString as gt, ValidationErrorRenderContent as wt, DisplayMode as
|
|
|
35
35
|
import Qe from "vue-markdown-render";
|
|
36
36
|
import { useDisplay as kt } from "vuetify";
|
|
37
37
|
import { format as de, parse as Vt } from "date-fns";
|
|
38
|
-
import { AccessibilityHelp as jt, Alignment as Ct, AutoImage as Tt, AutoLink as _t, Autosave as Bt, BalloonToolbar as It, BlockQuote as Pt, Bold as Dt, CloudServices as xt, Essentials as St, GeneralHtmlSupport as Et, Heading as $t, HorizontalLine as At, ImageBlock as Nt, ImageCaption as Ft, ImageInline as Mt, ImageInsertViaUrl as Lt, ImageResize as Ut, ImageStyle as Ot, ImageToolbar as Rt, ImageUpload as Wt, Indent as zt, IndentBlock as Ht, Italic as Kt, Link as Xt, List as Gt, Autoformat as qt, MediaEmbed as Yt, Paragraph as Qt, PasteFromMarkdownExperimental as Zt, PasteFromOffice as Jt, SelectAll as en, Style as tn, Table as nn, TableCellProperties as on, TableColumnResize as
|
|
38
|
+
import { AccessibilityHelp as jt, Alignment as Ct, AutoImage as Tt, AutoLink as _t, Autosave as Bt, BalloonToolbar as It, BlockQuote as Pt, Bold as Dt, CloudServices as xt, Essentials as St, GeneralHtmlSupport as Et, Heading as $t, HorizontalLine as At, ImageBlock as Nt, ImageCaption as Ft, ImageInline as Mt, ImageInsertViaUrl as Lt, ImageResize as Ut, ImageStyle as Ot, ImageToolbar as Rt, ImageUpload as Wt, Indent as zt, IndentBlock as Ht, Italic as Kt, Link as Xt, List as Gt, Autoformat as qt, MediaEmbed as Yt, Paragraph as Qt, PasteFromMarkdownExperimental as Zt, PasteFromOffice as Jt, SelectAll as en, Style as tn, Table as nn, TableCellProperties as on, TableColumnResize as ln, TableProperties as an, TableToolbar as rn, Undo as sn, TextTransformation as un, Base64UploadAdapter as cn, ClassicEditor as dn } from "ckeditor5";
|
|
39
39
|
import { VAutocomplete as mn } from "vuetify/components/VAutocomplete";
|
|
40
40
|
import { VBtn as pn } from "vuetify/components/VBtn";
|
|
41
41
|
import { VCheckbox as fn } from "vuetify/components/VCheckbox";
|
|
@@ -77,7 +77,7 @@ function Nn(e, t) {
|
|
|
77
77
|
return L(S({}, e), {
|
|
78
78
|
extraPlugins: [
|
|
79
79
|
...n,
|
|
80
|
-
...t.filter((
|
|
80
|
+
...t.filter((l) => !n.includes(l))
|
|
81
81
|
]
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -105,11 +105,11 @@ function Fn(e) {
|
|
|
105
105
|
function Mn(e) {
|
|
106
106
|
if (!Ze(e))
|
|
107
107
|
throw new Error(`Invalid semantic version: ${e || "<blank>"}.`);
|
|
108
|
-
const [t, n,
|
|
108
|
+
const [t, n, l] = e.split(".");
|
|
109
109
|
return {
|
|
110
110
|
major: Number.parseInt(t, 10),
|
|
111
111
|
minor: Number.parseInt(n, 10),
|
|
112
|
-
patch: Number.parseInt(
|
|
112
|
+
patch: Number.parseInt(l, 10)
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
@@ -168,8 +168,8 @@ function et(e, t) {
|
|
|
168
168
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
169
169
|
*/
|
|
170
170
|
function Rn(e, t) {
|
|
171
|
-
return function(
|
|
172
|
-
et(
|
|
171
|
+
return function(l) {
|
|
172
|
+
et(l.config.get("licenseKey")) || l.on("collectUsageData", (a, { setUsageData: r }) => {
|
|
173
173
|
r(`integration.${e}`, t);
|
|
174
174
|
});
|
|
175
175
|
};
|
|
@@ -214,13 +214,13 @@ const _e = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Hn = 300, Kn =
|
|
|
214
214
|
}),
|
|
215
215
|
emits: /* @__PURE__ */ Ne(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
|
|
216
216
|
setup(e, { expose: t, emit: n }) {
|
|
217
|
-
const
|
|
217
|
+
const l = it(e, "modelValue"), a = e, r = n, s = N(), p = N(), i = N();
|
|
218
218
|
t({
|
|
219
219
|
instance: p,
|
|
220
220
|
lastEditorData: i
|
|
221
|
-
}), se(
|
|
221
|
+
}), se(l, (m) => {
|
|
222
222
|
p.value && m !== i.value && p.value.data.set(m);
|
|
223
|
-
}), se(() =>
|
|
223
|
+
}), se(() => a.disabled, (m) => {
|
|
224
224
|
m ? p.value.enableReadOnlyMode(_e) : p.value.disableReadOnlyMode(_e);
|
|
225
225
|
});
|
|
226
226
|
function d() {
|
|
@@ -232,7 +232,7 @@ const _e = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Hn = 300, Kn =
|
|
|
232
232
|
}
|
|
233
233
|
function v(m) {
|
|
234
234
|
const b = ft((c) => {
|
|
235
|
-
if (
|
|
235
|
+
if (a.disableTwoWayDataBinding)
|
|
236
236
|
return;
|
|
237
237
|
const T = i.value = m.data.get();
|
|
238
238
|
r("update:modelValue", T, c, m), r("input", T, c, m);
|
|
@@ -245,10 +245,10 @@ const _e = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Hn = 300, Kn =
|
|
|
245
245
|
}
|
|
246
246
|
return d(), Ke(() => {
|
|
247
247
|
const m = zn(
|
|
248
|
-
Object.assign({},
|
|
248
|
+
Object.assign({}, a.config)
|
|
249
249
|
);
|
|
250
|
-
|
|
251
|
-
p.value = st(b), v(b),
|
|
250
|
+
l.value && (m.initialData = l.value), a.editor.create(s.value, m).then((b) => {
|
|
251
|
+
p.value = st(b), v(b), l.value !== m.initialData && b.data.set(l.value), a.disabled && b.enableReadOnlyMode(_e), r("ready", b);
|
|
252
252
|
}).catch((b) => {
|
|
253
253
|
console.error(b);
|
|
254
254
|
});
|
|
@@ -573,16 +573,16 @@ function Yn(e) {
|
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
const Qn = (e, t, n) => {
|
|
576
|
-
let
|
|
577
|
-
n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (
|
|
576
|
+
let l = "", a = "present";
|
|
577
|
+
n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (a = "future", l = "čez ") : (a = "past", l = "pred "));
|
|
578
578
|
const r = qn[e];
|
|
579
579
|
if (typeof r == "string")
|
|
580
|
-
|
|
580
|
+
l += r;
|
|
581
581
|
else {
|
|
582
582
|
const s = Yn(t);
|
|
583
|
-
Gn(r) ?
|
|
583
|
+
Gn(r) ? l += r[s].replace("{{count}}", String(t)) : l += r[a][s].replace("{{count}}", String(t));
|
|
584
584
|
}
|
|
585
|
-
return
|
|
585
|
+
return l;
|
|
586
586
|
};
|
|
587
587
|
function Be(e) {
|
|
588
588
|
return (t = {}) => {
|
|
@@ -647,30 +647,30 @@ const Zn = {
|
|
|
647
647
|
}
|
|
648
648
|
},
|
|
649
649
|
other: "P"
|
|
650
|
-
}, oo = (e, t, n,
|
|
651
|
-
const
|
|
652
|
-
return typeof
|
|
650
|
+
}, oo = (e, t, n, l) => {
|
|
651
|
+
const a = no[e];
|
|
652
|
+
return typeof a == "function" ? a(t) : a;
|
|
653
653
|
};
|
|
654
654
|
function me(e) {
|
|
655
655
|
return (t, n) => {
|
|
656
|
-
const
|
|
657
|
-
let
|
|
658
|
-
if (
|
|
656
|
+
const l = n != null && n.context ? String(n.context) : "standalone";
|
|
657
|
+
let a;
|
|
658
|
+
if (l === "formatting" && e.formattingValues) {
|
|
659
659
|
const s = e.defaultFormattingWidth || e.defaultWidth, p = n != null && n.width ? String(n.width) : s;
|
|
660
|
-
|
|
660
|
+
a = e.formattingValues[p] || e.formattingValues[s];
|
|
661
661
|
} else {
|
|
662
662
|
const s = e.defaultWidth, p = n != null && n.width ? String(n.width) : e.defaultWidth;
|
|
663
|
-
|
|
663
|
+
a = e.values[p] || e.values[s];
|
|
664
664
|
}
|
|
665
665
|
const r = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
666
|
-
return
|
|
666
|
+
return a[r];
|
|
667
667
|
};
|
|
668
668
|
}
|
|
669
|
-
const
|
|
669
|
+
const lo = {
|
|
670
670
|
narrow: ["pr. n. št.", "po n. št."],
|
|
671
671
|
abbreviated: ["pr. n. št.", "po n. št."],
|
|
672
672
|
wide: ["pred našim štetjem", "po našem štetju"]
|
|
673
|
-
},
|
|
673
|
+
}, ao = {
|
|
674
674
|
narrow: ["1", "2", "3", "4"],
|
|
675
675
|
abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."],
|
|
676
676
|
wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"]
|
|
@@ -782,11 +782,11 @@ const ao = {
|
|
|
782
782
|
}, co = (e, t) => Number(e) + ".", mo = {
|
|
783
783
|
ordinalNumber: co,
|
|
784
784
|
era: me({
|
|
785
|
-
values:
|
|
785
|
+
values: lo,
|
|
786
786
|
defaultWidth: "wide"
|
|
787
787
|
}),
|
|
788
788
|
quarter: me({
|
|
789
|
-
values:
|
|
789
|
+
values: ao,
|
|
790
790
|
defaultWidth: "wide",
|
|
791
791
|
argumentCallback: (e) => e - 1
|
|
792
792
|
}),
|
|
@@ -807,10 +807,10 @@ const ao = {
|
|
|
807
807
|
};
|
|
808
808
|
function pe(e) {
|
|
809
809
|
return (t, n = {}) => {
|
|
810
|
-
const
|
|
810
|
+
const l = n.width, a = l && e.matchPatterns[l] || e.matchPatterns[e.defaultMatchWidth], r = t.match(a);
|
|
811
811
|
if (!r)
|
|
812
812
|
return null;
|
|
813
|
-
const s = r[0], p =
|
|
813
|
+
const s = r[0], p = l && e.parsePatterns[l] || e.parsePatterns[e.defaultParseWidth], i = Array.isArray(p) ? fo(p, (m) => m.test(s)) : (
|
|
814
814
|
// [TODO] -- I challenge you to fix the type
|
|
815
815
|
po(p, (m) => m.test(s))
|
|
816
816
|
);
|
|
@@ -835,13 +835,13 @@ function fo(e, t) {
|
|
|
835
835
|
}
|
|
836
836
|
function vo(e) {
|
|
837
837
|
return (t, n = {}) => {
|
|
838
|
-
const
|
|
839
|
-
if (!
|
|
840
|
-
const
|
|
838
|
+
const l = t.match(e.matchPattern);
|
|
839
|
+
if (!l) return null;
|
|
840
|
+
const a = l[0], r = t.match(e.parsePattern);
|
|
841
841
|
if (!r) return null;
|
|
842
842
|
let s = e.valueCallback ? e.valueCallback(r[0]) : r[0];
|
|
843
843
|
s = n.valueCallback ? n.valueCallback(s) : s;
|
|
844
|
-
const p = t.slice(
|
|
844
|
+
const p = t.slice(a.length);
|
|
845
845
|
return { value: s, rest: p };
|
|
846
846
|
};
|
|
847
847
|
}
|
|
@@ -988,7 +988,7 @@ const ho = /^(\d+)\./i, bo = /\d+/i, go = {
|
|
|
988
988
|
setDateTimeLocale(e) {
|
|
989
989
|
ne(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
|
|
990
990
|
}
|
|
991
|
-
},
|
|
991
|
+
}, le = /* @__PURE__ */ O({
|
|
992
992
|
__name: "df-label",
|
|
993
993
|
props: {
|
|
994
994
|
data: {},
|
|
@@ -997,30 +997,32 @@ const ho = /^(\d+)\./i, bo = /\d+/i, go = {
|
|
|
997
997
|
},
|
|
998
998
|
setup(e) {
|
|
999
999
|
const t = e, n = w(() => t.data ? t.data.label : t.label.text);
|
|
1000
|
-
return (
|
|
1000
|
+
return (l, a) => {
|
|
1001
1001
|
const r = A("v-img");
|
|
1002
1002
|
return V(), W("div", {
|
|
1003
|
-
class: G(["df-label", { "allow-wrap":
|
|
1003
|
+
class: G(["df-label", { "allow-wrap": l.allowWrap }])
|
|
1004
1004
|
}, [
|
|
1005
|
-
|
|
1006
|
-
|
|
1005
|
+
l.label.icon ? (V(), W(Ie, { key: 0 }, [
|
|
1006
|
+
l.label.iconComponent === "v-icon" ? (V(), D(o(be), {
|
|
1007
1007
|
key: 0,
|
|
1008
|
-
name:
|
|
1008
|
+
name: l.label.icon,
|
|
1009
1009
|
size: "1.25em"
|
|
1010
|
-
}, null, 8, ["name"])) :
|
|
1010
|
+
}, null, 8, ["name"])) : l.label.iconComponent === "v-img" ? (V(), D(r, {
|
|
1011
1011
|
key: 1,
|
|
1012
1012
|
class: "icon",
|
|
1013
|
-
src:
|
|
1014
|
-
}, null, 8, ["src"])) : (V(), D(he(
|
|
1013
|
+
src: l.label.icon
|
|
1014
|
+
}, null, 8, ["src"])) : (V(), D(he(l.label.iconComponent), {
|
|
1015
1015
|
key: 2,
|
|
1016
|
-
src:
|
|
1016
|
+
src: l.label.icon
|
|
1017
1017
|
}, null, 8, ["src"]))
|
|
1018
1018
|
], 64)) : U("", !0),
|
|
1019
1019
|
n.value instanceof o(gt) ? (V(), D(o(Qe), {
|
|
1020
1020
|
key: 1,
|
|
1021
1021
|
class: "markdown",
|
|
1022
|
-
source: n.value.toString()
|
|
1023
|
-
|
|
1022
|
+
source: n.value.toString(),
|
|
1023
|
+
options: n.value.options,
|
|
1024
|
+
plugins: n.value.plugins
|
|
1025
|
+
}, null, 8, ["source", "options", "plugins"])) : (V(), W(Ie, { key: 2 }, [
|
|
1024
1026
|
ct(De(n.value), 1)
|
|
1025
1027
|
], 64))
|
|
1026
1028
|
], 2);
|
|
@@ -1028,18 +1030,18 @@ const ho = /^(\d+)\./i, bo = /\d+/i, go = {
|
|
|
1028
1030
|
}
|
|
1029
1031
|
}), tt = Symbol("vuetifyInputsSettingsKey");
|
|
1030
1032
|
class xo {
|
|
1031
|
-
constructor(t, n,
|
|
1032
|
-
this.text = t, this.icon = n, this.iconComponent =
|
|
1033
|
+
constructor(t, n, l = "v-icon") {
|
|
1034
|
+
this.text = t, this.icon = n, this.iconComponent = l;
|
|
1033
1035
|
}
|
|
1034
1036
|
}
|
|
1035
1037
|
const Y = { enabled: void 0, clearable: !0 };
|
|
1036
1038
|
function X(e, t) {
|
|
1037
|
-
const n = Te(tt, {}),
|
|
1039
|
+
const n = Te(tt, {}), l = N(null), a = w({
|
|
1038
1040
|
get() {
|
|
1039
|
-
return e.control ? e.control.value : e.modelValue === void 0 ?
|
|
1041
|
+
return e.control ? e.control.value : e.modelValue === void 0 ? l.value : e.modelValue;
|
|
1040
1042
|
},
|
|
1041
1043
|
set(k) {
|
|
1042
|
-
e.control && (e.control.value = k), e.modelValue === void 0 && (
|
|
1044
|
+
e.control && (e.control.value = k), e.modelValue === void 0 && (l.value = k), t("update:modelValue", k);
|
|
1043
1045
|
}
|
|
1044
1046
|
});
|
|
1045
1047
|
if (e.control && !(e.control instanceof We.FieldBase))
|
|
@@ -1069,7 +1071,7 @@ function X(e, t) {
|
|
|
1069
1071
|
}
|
|
1070
1072
|
);
|
|
1071
1073
|
return {
|
|
1072
|
-
value:
|
|
1074
|
+
value: a,
|
|
1073
1075
|
valid: p,
|
|
1074
1076
|
enabled: v,
|
|
1075
1077
|
errors: i,
|
|
@@ -1103,7 +1105,7 @@ function X(e, t) {
|
|
|
1103
1105
|
})
|
|
1104
1106
|
};
|
|
1105
1107
|
}
|
|
1106
|
-
const
|
|
1108
|
+
const ae = /* @__PURE__ */ O({
|
|
1107
1109
|
__name: "messages-widget",
|
|
1108
1110
|
props: {
|
|
1109
1111
|
errors: {},
|
|
@@ -1113,29 +1115,33 @@ const le = /* @__PURE__ */ O({
|
|
|
1113
1115
|
setup(e) {
|
|
1114
1116
|
const t = e, n = () => {
|
|
1115
1117
|
if (t.message !== " ") return we("span", { class: t.classes }, t.message);
|
|
1116
|
-
const
|
|
1117
|
-
return t.errors.forEach((
|
|
1118
|
-
switch (
|
|
1118
|
+
const l = [];
|
|
1119
|
+
return t.errors.forEach((a) => {
|
|
1120
|
+
switch (a.componentName) {
|
|
1119
1121
|
case "template":
|
|
1120
|
-
|
|
1122
|
+
l.push(we("div", { class: t.classes }, a.componentBody));
|
|
1121
1123
|
break;
|
|
1122
|
-
case "vue-markdown":
|
|
1123
|
-
a.
|
|
1124
|
+
case "vue-markdown": {
|
|
1125
|
+
const r = a.componentBindings;
|
|
1126
|
+
l.push(
|
|
1124
1127
|
we(Qe, {
|
|
1125
1128
|
class: [t.classes, "df-messages-widget-markdown"],
|
|
1126
|
-
source:
|
|
1129
|
+
source: r.source,
|
|
1130
|
+
options: r.options,
|
|
1131
|
+
plugins: r.plugins
|
|
1127
1132
|
})
|
|
1128
1133
|
);
|
|
1129
1134
|
break;
|
|
1135
|
+
}
|
|
1130
1136
|
default:
|
|
1131
|
-
|
|
1132
|
-
we(
|
|
1137
|
+
l.push(
|
|
1138
|
+
we(a.componentName, L(S({ class: t.classes }, a.componentBindings), { innerHTML: a.componentBody }))
|
|
1133
1139
|
);
|
|
1134
1140
|
break;
|
|
1135
1141
|
}
|
|
1136
|
-
}),
|
|
1142
|
+
}), l;
|
|
1137
1143
|
};
|
|
1138
|
-
return (
|
|
1144
|
+
return (l, a) => (V(), D(n));
|
|
1139
1145
|
}
|
|
1140
1146
|
}), So = { class: "d-flex w-100 df-style-resetting" }, xe = /* @__PURE__ */ O({
|
|
1141
1147
|
__name: "input-base",
|
|
@@ -1158,9 +1164,9 @@ const le = /* @__PURE__ */ O({
|
|
|
1158
1164
|
},
|
|
1159
1165
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
1160
1166
|
setup(e, { emit: t }) {
|
|
1161
|
-
const n = e,
|
|
1167
|
+
const n = e, l = t, { errors: a, label: r, value: s, touched: p, visibility: i, vuetifyBindings: d } = X(n, l), v = w(() => !!(o(n.clearable) && o(s))), m = N(!1);
|
|
1162
1168
|
function b(c) {
|
|
1163
|
-
m.value = c, c || (p.value = !0,
|
|
1169
|
+
m.value = c, c || (p.value = !0, l("blur"));
|
|
1164
1170
|
}
|
|
1165
1171
|
return (c, T) => {
|
|
1166
1172
|
const _ = A("v-field"), y = A("v-input");
|
|
@@ -1181,9 +1187,9 @@ const le = /* @__PURE__ */ O({
|
|
|
1181
1187
|
])
|
|
1182
1188
|
}, Pe({
|
|
1183
1189
|
message: g(({ message: h }) => [
|
|
1184
|
-
I(
|
|
1190
|
+
I(ae, {
|
|
1185
1191
|
message: h,
|
|
1186
|
-
errors: o(
|
|
1192
|
+
errors: o(a)
|
|
1187
1193
|
}, null, 8, ["message", "errors"])
|
|
1188
1194
|
]),
|
|
1189
1195
|
default: g(() => [
|
|
@@ -1197,11 +1203,11 @@ const le = /* @__PURE__ */ O({
|
|
|
1197
1203
|
dirty: !!o(s),
|
|
1198
1204
|
active: m.value,
|
|
1199
1205
|
loading: c.loading,
|
|
1200
|
-
"onClick:clear": T[0] || (T[0] = (h) =>
|
|
1206
|
+
"onClick:clear": T[0] || (T[0] = (h) => l("click:clear")),
|
|
1201
1207
|
"onUpdate:focused": T[1] || (T[1] = (h) => b(h))
|
|
1202
1208
|
}, Pe({
|
|
1203
1209
|
label: g((h) => [
|
|
1204
|
-
I(
|
|
1210
|
+
I(le, {
|
|
1205
1211
|
data: h,
|
|
1206
1212
|
label: o(r)
|
|
1207
1213
|
}, null, 8, ["data", "label"])
|
|
@@ -1242,7 +1248,7 @@ const le = /* @__PURE__ */ O({
|
|
|
1242
1248
|
No: "No",
|
|
1243
1249
|
Close: "Close"
|
|
1244
1250
|
};
|
|
1245
|
-
function $
|
|
1251
|
+
function $l(e) {
|
|
1246
1252
|
Object.keys(ve).forEach((t) => {
|
|
1247
1253
|
ve[t] = e(t);
|
|
1248
1254
|
});
|
|
@@ -1250,20 +1256,20 @@ function $a(e) {
|
|
|
1250
1256
|
var z = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(z || {});
|
|
1251
1257
|
const ze = 0;
|
|
1252
1258
|
((e) => {
|
|
1253
|
-
function t(
|
|
1254
|
-
return
|
|
1259
|
+
function t(a) {
|
|
1260
|
+
return a.toUpperCase() === "BUTTON" ? 0 : a.toUpperCase() === "TEXT" ? 1 : ze;
|
|
1255
1261
|
}
|
|
1256
1262
|
e.fromString = t;
|
|
1257
|
-
function n(
|
|
1258
|
-
const r = typeof
|
|
1263
|
+
function n(a) {
|
|
1264
|
+
const r = typeof a == "number" ? a : e.fromString(a);
|
|
1259
1265
|
return Object.values(e).includes(r) ? r : ze;
|
|
1260
1266
|
}
|
|
1261
1267
|
e.fromAny = n;
|
|
1262
|
-
function a
|
|
1263
|
-
const r = typeof
|
|
1268
|
+
function l(a) {
|
|
1269
|
+
const r = typeof a == "number" ? a : e.fromString(a);
|
|
1264
1270
|
return Object.values(e).includes(r);
|
|
1265
1271
|
}
|
|
1266
|
-
e.isDefined =
|
|
1272
|
+
e.isDefined = l;
|
|
1267
1273
|
})(z || (z = {}));
|
|
1268
1274
|
Object.freeze(z);
|
|
1269
1275
|
const He = ["xs", "sm", "md", "lg", "xl"];
|
|
@@ -1271,17 +1277,17 @@ class Eo {
|
|
|
1271
1277
|
constructor(t) {
|
|
1272
1278
|
$e(this, "_value");
|
|
1273
1279
|
this._value = this.cleanBreakpoint(t, !0), t && He.forEach((n) => {
|
|
1274
|
-
const
|
|
1275
|
-
|
|
1280
|
+
const l = this.cleanBreakpoint(t[n]);
|
|
1281
|
+
l && (this._value[n] = l);
|
|
1276
1282
|
});
|
|
1277
1283
|
}
|
|
1278
1284
|
getOptionsForBreakpoint(t) {
|
|
1279
|
-
const n = this.cleanBreakpoint(this._value),
|
|
1280
|
-
for (const
|
|
1281
|
-
const r = this._value[
|
|
1282
|
-
for (const s of
|
|
1285
|
+
const n = this.cleanBreakpoint(this._value), l = Object.keys(n);
|
|
1286
|
+
for (const a of He) {
|
|
1287
|
+
const r = this._value[a];
|
|
1288
|
+
for (const s of l)
|
|
1283
1289
|
(r == null ? void 0 : r[s]) != null && (n[s] = r[s]);
|
|
1284
|
-
if (
|
|
1290
|
+
if (a === t) break;
|
|
1285
1291
|
}
|
|
1286
1292
|
return n;
|
|
1287
1293
|
}
|
|
@@ -1296,8 +1302,8 @@ function Ao() {
|
|
|
1296
1302
|
class No extends Eo {
|
|
1297
1303
|
cleanBreakpoint(t, n = !1) {
|
|
1298
1304
|
if ((!t || !vt(t)) && !n) return null;
|
|
1299
|
-
const
|
|
1300
|
-
return n && (
|
|
1305
|
+
const l = {};
|
|
1306
|
+
return n && (l.renderAs = z.BUTTON, l.showLabel = !0, l.showIcon = !0), t && (t.renderAs != null && (l.renderAs = z.fromAny(t.renderAs)), te(t.label) && (l.label = t.label), te(t.icon) && (l.icon = t.icon), Le(t.showLabel) && (l.showLabel = t.showLabel), Le(t.showIcon) && (l.showIcon = t.showIcon)), Object.keys(l).length ? l : null;
|
|
1301
1307
|
}
|
|
1302
1308
|
}
|
|
1303
1309
|
class ke extends yt {
|
|
@@ -1306,14 +1312,14 @@ class ke extends yt {
|
|
|
1306
1312
|
}
|
|
1307
1313
|
getBreakpointValue(t) {
|
|
1308
1314
|
return w(() => {
|
|
1309
|
-
const
|
|
1315
|
+
const l = new No(this.value).getOptionsForBreakpoint(t.value);
|
|
1310
1316
|
return {
|
|
1311
|
-
name:
|
|
1312
|
-
label:
|
|
1313
|
-
icon:
|
|
1314
|
-
renderAs:
|
|
1315
|
-
showLabel: te(
|
|
1316
|
-
showIcon: te(
|
|
1317
|
+
name: l.name,
|
|
1318
|
+
label: l.showLabel ? l.label : void 0,
|
|
1319
|
+
icon: l.showIcon ? l.icon : void 0,
|
|
1320
|
+
renderAs: l.renderAs,
|
|
1321
|
+
showLabel: te(l.label) && !fe(l.label) ? l.showLabel : !1,
|
|
1322
|
+
showIcon: te(l.icon) && !fe(l.icon) ? l.showIcon : !1
|
|
1317
1323
|
};
|
|
1318
1324
|
});
|
|
1319
1325
|
}
|
|
@@ -1336,7 +1342,7 @@ class ke extends yt {
|
|
|
1336
1342
|
return this.value.renderAs;
|
|
1337
1343
|
}
|
|
1338
1344
|
static closeAction(t) {
|
|
1339
|
-
var
|
|
1345
|
+
var l;
|
|
1340
1346
|
const n = L(S({}, t != null ? t : {}), {
|
|
1341
1347
|
// any properties in data should overwrite properties in the constant
|
|
1342
1348
|
value: {
|
|
@@ -1348,10 +1354,10 @@ class ke extends yt {
|
|
|
1348
1354
|
showIcon: !0
|
|
1349
1355
|
}
|
|
1350
1356
|
});
|
|
1351
|
-
return n.value = S(S({}, n.value), (
|
|
1357
|
+
return n.value = S(S({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ke.create(n);
|
|
1352
1358
|
}
|
|
1353
1359
|
static yesAction(t) {
|
|
1354
|
-
var
|
|
1360
|
+
var l;
|
|
1355
1361
|
const n = L(S({}, t != null ? t : {}), {
|
|
1356
1362
|
// any properties in data should overwrite properties in the constant
|
|
1357
1363
|
value: {
|
|
@@ -1363,10 +1369,10 @@ class ke extends yt {
|
|
|
1363
1369
|
showIcon: !0
|
|
1364
1370
|
}
|
|
1365
1371
|
});
|
|
1366
|
-
return n.value = S(S({}, n.value), (
|
|
1372
|
+
return n.value = S(S({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ke.create(n);
|
|
1367
1373
|
}
|
|
1368
1374
|
static noAction(t) {
|
|
1369
|
-
var
|
|
1375
|
+
var l;
|
|
1370
1376
|
const n = L(S({}, t != null ? t : {}), {
|
|
1371
1377
|
// any properties in data should overwrite properties in the constant
|
|
1372
1378
|
value: {
|
|
@@ -1378,7 +1384,7 @@ class ke extends yt {
|
|
|
1378
1384
|
showIcon: !0
|
|
1379
1385
|
}
|
|
1380
1386
|
});
|
|
1381
|
-
return n.value = S(S({}, n.value), (
|
|
1387
|
+
return n.value = S(S({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ke.create(n);
|
|
1382
1388
|
}
|
|
1383
1389
|
}
|
|
1384
1390
|
const Fo = {
|
|
@@ -1392,21 +1398,21 @@ const Fo = {
|
|
|
1392
1398
|
showAsGroup: { default: "no" }
|
|
1393
1399
|
},
|
|
1394
1400
|
setup(e) {
|
|
1395
|
-
const t = e, n = Ao(),
|
|
1396
|
-
() =>
|
|
1401
|
+
const t = e, n = Ao(), l = w(() => o(t.actions)), a = w(
|
|
1402
|
+
() => l.value.map((r) => S({
|
|
1397
1403
|
action: r
|
|
1398
1404
|
}, o(r.getBreakpointValue(n))))
|
|
1399
1405
|
);
|
|
1400
1406
|
return (r, s) => {
|
|
1401
1407
|
const p = A("v-btn");
|
|
1402
|
-
return
|
|
1408
|
+
return l.value.length > 0 ? (V(), W("div", {
|
|
1403
1409
|
key: 0,
|
|
1404
1410
|
class: G(["text-end df-actions", {
|
|
1405
1411
|
"button-group": r.showAsGroup === "grouped" || r.showAsGroup === "grouped-no-borders",
|
|
1406
1412
|
"with-border": r.showAsGroup === "grouped"
|
|
1407
1413
|
}])
|
|
1408
1414
|
}, [
|
|
1409
|
-
(V(!0), W(Ie, null, dt(
|
|
1415
|
+
(V(!0), W(Ie, null, dt(a.value, (i, d) => (V(), D(p, {
|
|
1410
1416
|
key: d,
|
|
1411
1417
|
variant: i.renderAs === o(z).BUTTON ? "tonal" : "text",
|
|
1412
1418
|
elevation: 0,
|
|
@@ -1447,7 +1453,7 @@ const Fo = {
|
|
|
1447
1453
|
}, L(S({}, Y), { allowNull: !1 })),
|
|
1448
1454
|
emits: ["update:modelValue", "click:clear"],
|
|
1449
1455
|
setup(e, { emit: t }) {
|
|
1450
|
-
const n = e,
|
|
1456
|
+
const n = e, l = t, { densityClass: a, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, l), v = w(() => n.allowNull && i.value == null), m = w({
|
|
1451
1457
|
get() {
|
|
1452
1458
|
return i.value;
|
|
1453
1459
|
},
|
|
@@ -1465,7 +1471,7 @@ const Fo = {
|
|
|
1465
1471
|
"onUpdate:modelValue": T[0] || (T[0] = (y) => m.value = y)
|
|
1466
1472
|
}, o(d), {
|
|
1467
1473
|
density: "compact",
|
|
1468
|
-
class: o(
|
|
1474
|
+
class: o(a),
|
|
1469
1475
|
indeterminate: v.value,
|
|
1470
1476
|
"false-value": !1,
|
|
1471
1477
|
"true-value": !0,
|
|
@@ -1473,14 +1479,14 @@ const Fo = {
|
|
|
1473
1479
|
onBlur: T[1] || (T[1] = (y) => p.value = !0)
|
|
1474
1480
|
}), {
|
|
1475
1481
|
label: g((y) => [
|
|
1476
|
-
I(o(
|
|
1482
|
+
I(o(le), {
|
|
1477
1483
|
"allow-wrap": !0,
|
|
1478
1484
|
data: y,
|
|
1479
1485
|
label: o(s)
|
|
1480
1486
|
}, null, 8, ["data", "label"])
|
|
1481
1487
|
]),
|
|
1482
1488
|
message: g(({ message: y }) => [
|
|
1483
|
-
I(o(
|
|
1489
|
+
I(o(ae), {
|
|
1484
1490
|
message: y,
|
|
1485
1491
|
errors: o(r)
|
|
1486
1492
|
}, null, 8, ["message", "errors"])
|
|
@@ -1510,7 +1516,7 @@ const Fo = {
|
|
|
1510
1516
|
}, L(S({}, Y), { allowNull: !1 })),
|
|
1511
1517
|
emits: ["update:modelValue", "click:clear"],
|
|
1512
1518
|
setup(e, { emit: t }) {
|
|
1513
|
-
const n = e,
|
|
1519
|
+
const n = e, l = t, { densityClass: a, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, l), v = N(!1), m = w(() => [
|
|
1514
1520
|
(b) => n.control || !b && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(b) ? !0 : "Not a valid hex string."
|
|
1515
1521
|
]);
|
|
1516
1522
|
return (b, c) => {
|
|
@@ -1519,20 +1525,20 @@ const Fo = {
|
|
|
1519
1525
|
modelValue: o(i),
|
|
1520
1526
|
"onUpdate:modelValue": c[2] || (c[2] = (h) => ne(i) ? i.value = h : null)
|
|
1521
1527
|
}, o(d), {
|
|
1522
|
-
class: o(
|
|
1528
|
+
class: o(a),
|
|
1523
1529
|
clearable: b.allowNull,
|
|
1524
1530
|
type: "text",
|
|
1525
1531
|
rules: m.value,
|
|
1526
1532
|
onBlur: c[3] || (c[3] = (h) => p.value = !0)
|
|
1527
1533
|
}), {
|
|
1528
1534
|
label: g((h) => [
|
|
1529
|
-
I(o(
|
|
1535
|
+
I(o(le), {
|
|
1530
1536
|
data: h,
|
|
1531
1537
|
label: o(s)
|
|
1532
1538
|
}, null, 8, ["data", "label"])
|
|
1533
1539
|
]),
|
|
1534
1540
|
message: g(({ message: h }) => [
|
|
1535
|
-
I(o(
|
|
1541
|
+
I(o(ae), {
|
|
1536
1542
|
message: h,
|
|
1537
1543
|
errors: o(r)
|
|
1538
1544
|
}, null, 8, ["message", "errors"])
|
|
@@ -1591,13 +1597,13 @@ const Fo = {
|
|
|
1591
1597
|
})),
|
|
1592
1598
|
emits: ["update:modelValue", "click:clear"],
|
|
1593
1599
|
setup(e, { emit: t }) {
|
|
1594
|
-
const n = e,
|
|
1600
|
+
const n = e, l = t, a = w(() => {
|
|
1595
1601
|
var f;
|
|
1596
1602
|
return (f = n.locale) != null ? f : o(Do.dateTimeLocale);
|
|
1597
1603
|
}), r = w(() => {
|
|
1598
1604
|
var f, u;
|
|
1599
|
-
return (u = (f =
|
|
1600
|
-
}), { densityClass: s, touched: p, value: i, vuetifyBindings: d } = X(n,
|
|
1605
|
+
return (u = (f = a.value.options) == null ? void 0 : f.weekStartsOn) != null ? u : 1;
|
|
1606
|
+
}), { densityClass: s, touched: p, value: i, vuetifyBindings: d } = X(n, l), { inputType: v, displayFormatDate: m, displayFormatTime: b } = je(n), c = N(""), T = w({
|
|
1601
1607
|
get() {
|
|
1602
1608
|
return o(c) === "date";
|
|
1603
1609
|
},
|
|
@@ -1650,11 +1656,11 @@ const Fo = {
|
|
|
1650
1656
|
}), j = w({
|
|
1651
1657
|
get() {
|
|
1652
1658
|
const f = o(F);
|
|
1653
|
-
return f == null ? "" : de(f, o(m), { locale:
|
|
1659
|
+
return f == null ? "" : de(f, o(m), { locale: a.value });
|
|
1654
1660
|
},
|
|
1655
1661
|
set(f) {
|
|
1656
1662
|
try {
|
|
1657
|
-
const u = Vt(f, o(m), /* @__PURE__ */ new Date(), { locale:
|
|
1663
|
+
const u = Vt(f, o(m), /* @__PURE__ */ new Date(), { locale: a.value });
|
|
1658
1664
|
E(y(u), 0);
|
|
1659
1665
|
} catch (u) {
|
|
1660
1666
|
console.error(u);
|
|
@@ -1663,7 +1669,7 @@ const Fo = {
|
|
|
1663
1669
|
}), M = w({
|
|
1664
1670
|
get() {
|
|
1665
1671
|
const f = o(F);
|
|
1666
|
-
return f == null ? "" : de(f, o(b), { locale:
|
|
1672
|
+
return f == null ? "" : de(f, o(b), { locale: a.value });
|
|
1667
1673
|
},
|
|
1668
1674
|
set(f) {
|
|
1669
1675
|
const u = f.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
@@ -1820,7 +1826,7 @@ const Fo = {
|
|
|
1820
1826
|
}, Y),
|
|
1821
1827
|
emits: ["update:modelValue", "click:clear"],
|
|
1822
1828
|
setup(e, { emit: t }) {
|
|
1823
|
-
const n = e,
|
|
1829
|
+
const n = e, l = t, { densityClass: a, touched: r, value: s, vuetifyBindings: p } = X(n, l), i = N(null), d = N(null), v = N(0), m = N(Math.round(Math.random() * 1e3)), b = N(), c = w(() => d.value && v.value < 100), T = w(() => !b.value && s.value ? n.modelValue : "");
|
|
1824
1830
|
function _() {
|
|
1825
1831
|
i.value && window.clearInterval(i.value);
|
|
1826
1832
|
}
|
|
@@ -1855,7 +1861,7 @@ const Fo = {
|
|
|
1855
1861
|
return (k, j) => {
|
|
1856
1862
|
const M = A("v-progress-linear"), f = A("v-file-input");
|
|
1857
1863
|
return V(), D(o(xe), R(L(S({}, n), { loading: c.value }), {
|
|
1858
|
-
class: o(
|
|
1864
|
+
class: o(a),
|
|
1859
1865
|
clearable: "",
|
|
1860
1866
|
"onClick:clear": h,
|
|
1861
1867
|
onBlur: j[1] || (j[1] = (u) => r.value = !0)
|
|
@@ -1931,13 +1937,13 @@ const Fo = {
|
|
|
1931
1937
|
})),
|
|
1932
1938
|
emits: ["update:modelValue", "click:clear"],
|
|
1933
1939
|
setup(e, { emit: t }) {
|
|
1934
|
-
const n = e,
|
|
1940
|
+
const n = e, l = t, { densityClass: a, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, l), { inputType: v, max: m, min: b, precision: c, step: T } = je(n), _ = w(() => v.value === "number"), y = w(
|
|
1935
1941
|
() => _.value ? { min: o(b), max: o(m), precision: o(c), step: o(T) } : {}
|
|
1936
1942
|
);
|
|
1937
1943
|
return (h, E) => {
|
|
1938
1944
|
const F = A("v-text-field"), k = A("v-number-input");
|
|
1939
1945
|
return V(), W("div", {
|
|
1940
|
-
class: G(["df-input-container", o(
|
|
1946
|
+
class: G(["df-input-container", o(a)])
|
|
1941
1947
|
}, [
|
|
1942
1948
|
_.value ? (V(), D(k, R({
|
|
1943
1949
|
key: 1,
|
|
@@ -1948,13 +1954,13 @@ const Fo = {
|
|
|
1948
1954
|
"control-variant": "stacked"
|
|
1949
1955
|
}), {
|
|
1950
1956
|
label: g((j) => [
|
|
1951
|
-
I(o(
|
|
1957
|
+
I(o(le), {
|
|
1952
1958
|
data: j,
|
|
1953
1959
|
label: o(s)
|
|
1954
1960
|
}, null, 8, ["data", "label"])
|
|
1955
1961
|
]),
|
|
1956
1962
|
message: g(({ message: j }) => [
|
|
1957
|
-
I(o(
|
|
1963
|
+
I(o(ae), {
|
|
1958
1964
|
message: j,
|
|
1959
1965
|
errors: o(r)
|
|
1960
1966
|
}, null, 8, ["message", "errors"])
|
|
@@ -1969,13 +1975,13 @@ const Fo = {
|
|
|
1969
1975
|
onBlur: E[1] || (E[1] = (j) => p.value = !0)
|
|
1970
1976
|
}), {
|
|
1971
1977
|
label: g((j) => [
|
|
1972
|
-
I(o(
|
|
1978
|
+
I(o(le), {
|
|
1973
1979
|
data: j,
|
|
1974
1980
|
label: o(s)
|
|
1975
1981
|
}, null, 8, ["data", "label"])
|
|
1976
1982
|
]),
|
|
1977
1983
|
message: g(({ message: j }) => [
|
|
1978
|
-
I(o(
|
|
1984
|
+
I(o(ae), {
|
|
1979
1985
|
message: j,
|
|
1980
1986
|
errors: o(r)
|
|
1981
1987
|
}, null, 8, ["message", "errors"])
|
|
@@ -1997,7 +2003,7 @@ const Fo = {
|
|
|
1997
2003
|
pt((m) => ({
|
|
1998
2004
|
"5f8a2e8c": m.minHeight
|
|
1999
2005
|
}));
|
|
2000
|
-
const
|
|
2006
|
+
const l = n, a = N(!1), r = dn, d = {
|
|
2001
2007
|
toolbar: {
|
|
2002
2008
|
items: [
|
|
2003
2009
|
"undo",
|
|
@@ -2064,8 +2070,8 @@ const Fo = {
|
|
|
2064
2070
|
tn,
|
|
2065
2071
|
nn,
|
|
2066
2072
|
on,
|
|
2067
|
-
an,
|
|
2068
2073
|
ln,
|
|
2074
|
+
an,
|
|
2069
2075
|
rn,
|
|
2070
2076
|
sn,
|
|
2071
2077
|
un,
|
|
@@ -2127,7 +2133,7 @@ const Fo = {
|
|
|
2127
2133
|
table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] }
|
|
2128
2134
|
};
|
|
2129
2135
|
Ke(() => {
|
|
2130
|
-
|
|
2136
|
+
a.value = !0;
|
|
2131
2137
|
});
|
|
2132
2138
|
const v = (m) => {
|
|
2133
2139
|
};
|
|
@@ -2136,7 +2142,7 @@ const Fo = {
|
|
|
2136
2142
|
return V(), W("div", Ho, [
|
|
2137
2143
|
oe("div", Ko, [
|
|
2138
2144
|
oe("div", Xo, [
|
|
2139
|
-
|
|
2145
|
+
a.value ? (V(), D(c, {
|
|
2140
2146
|
key: 0,
|
|
2141
2147
|
"model-value": m.modelValue,
|
|
2142
2148
|
editor: o(r),
|
|
@@ -2144,7 +2150,7 @@ const Fo = {
|
|
|
2144
2150
|
disabled: m.disabled,
|
|
2145
2151
|
style: Ge(`min-height: ${m.minHeight}`),
|
|
2146
2152
|
onReady: v,
|
|
2147
|
-
"onUpdate:modelValue": b[0] || (b[0] = (T) =>
|
|
2153
|
+
"onUpdate:modelValue": b[0] || (b[0] = (T) => l("update:modelValue", T))
|
|
2148
2154
|
}, null, 8, ["model-value", "editor", "disabled", "style"])) : U("", !0)
|
|
2149
2155
|
], 512)
|
|
2150
2156
|
])
|
|
@@ -2172,9 +2178,9 @@ const Fo = {
|
|
|
2172
2178
|
}, L(S({}, Y), { minHeight: void 0 })),
|
|
2173
2179
|
emits: ["update:modelValue", "click:clear"],
|
|
2174
2180
|
setup(e, { emit: t }) {
|
|
2175
|
-
const n = e,
|
|
2181
|
+
const n = e, l = t, { densityClass: a, value: r, vuetifyBindings: s } = X(n, l);
|
|
2176
2182
|
return (p, i) => (V(), D(o(xe), R(n, {
|
|
2177
|
-
class: ["ck-editor-custom", o(
|
|
2183
|
+
class: ["ck-editor-custom", o(a)]
|
|
2178
2184
|
}), {
|
|
2179
2185
|
default: g((d) => [
|
|
2180
2186
|
I(Go, R({
|
|
@@ -2204,9 +2210,9 @@ function Z(e, t) {
|
|
|
2204
2210
|
function Ve(e, t) {
|
|
2205
2211
|
if (t == null) return [];
|
|
2206
2212
|
const n = qe(t);
|
|
2207
|
-
return e.filter((
|
|
2213
|
+
return e.filter((l) => n.some((a) => a === l.id));
|
|
2208
2214
|
}
|
|
2209
|
-
function ye(e, t, n,
|
|
2215
|
+
function ye(e, t, n, l, a) {
|
|
2210
2216
|
var s;
|
|
2211
2217
|
const r = Z(e, n);
|
|
2212
2218
|
if (r == null) {
|
|
@@ -2214,11 +2220,11 @@ function ye(e, t, n, a, l) {
|
|
|
2214
2220
|
return;
|
|
2215
2221
|
}
|
|
2216
2222
|
if (n)
|
|
2217
|
-
|
|
2218
|
-
else if (
|
|
2223
|
+
l ? t.value = r : t.value = Ve(a, r).map((p) => p.id);
|
|
2224
|
+
else if (l)
|
|
2219
2225
|
t.value = r;
|
|
2220
2226
|
else {
|
|
2221
|
-
const p = Ye(Ve(
|
|
2227
|
+
const p = Ye(Ve(a, r));
|
|
2222
2228
|
t.value = (s = p == null ? void 0 : p.id) != null ? s : null;
|
|
2223
2229
|
}
|
|
2224
2230
|
}
|
|
@@ -2256,14 +2262,14 @@ const Qo = {
|
|
|
2256
2262
|
})),
|
|
2257
2263
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
2258
2264
|
setup(e, { emit: t }) {
|
|
2259
|
-
const n = e, { choices:
|
|
2265
|
+
const n = e, { choices: l, multiple: a, allowTags: r, allowNull: s, cssClass: p, visibility: i } = je(n), d = t, {
|
|
2260
2266
|
densityClass: v,
|
|
2261
2267
|
errors: m,
|
|
2262
2268
|
label: b,
|
|
2263
2269
|
touched: c,
|
|
2264
2270
|
value: T,
|
|
2265
2271
|
vuetifyBindings: _
|
|
2266
|
-
} = X(n, d), y = N(null), h = N(!1), E = N([]), F = w(() => o(h) ? o(E) : o(
|
|
2272
|
+
} = X(n, d), y = N(null), h = N(!1), E = N([]), F = w(() => o(h) ? o(E) : o(l) || []), k = N(!1), j = w(() => Yo(F.value));
|
|
2267
2273
|
j.value && n.fetchChoices !== void 0 && console.warn("Both options and fetchChoices are set. Only one of them should be set.");
|
|
2268
2274
|
function M(B) {
|
|
2269
2275
|
d("update:modelValueDisplay", Ve(F.value, B));
|
|
@@ -2278,7 +2284,7 @@ const Qo = {
|
|
|
2278
2284
|
y,
|
|
2279
2285
|
(B) => {
|
|
2280
2286
|
_.value.readonly || Me(() => {
|
|
2281
|
-
const P = Z(B,
|
|
2287
|
+
const P = Z(B, a.value);
|
|
2282
2288
|
M(P), u(P);
|
|
2283
2289
|
});
|
|
2284
2290
|
},
|
|
@@ -2287,32 +2293,32 @@ const Qo = {
|
|
|
2287
2293
|
T,
|
|
2288
2294
|
(B) => {
|
|
2289
2295
|
if (!f) {
|
|
2290
|
-
const P = Z(B,
|
|
2291
|
-
ye(P, y,
|
|
2296
|
+
const P = Z(B, a.value);
|
|
2297
|
+
ye(P, y, a.value, !1, F.value);
|
|
2292
2298
|
}
|
|
2293
2299
|
},
|
|
2294
2300
|
{ deep: !0 }
|
|
2295
2301
|
);
|
|
2296
2302
|
function $() {
|
|
2297
2303
|
if (_.value.readonly || r.value) return;
|
|
2298
|
-
const B = Z(y.value,
|
|
2299
|
-
ye(B, y,
|
|
2304
|
+
const B = Z(y.value, a.value);
|
|
2305
|
+
ye(B, y, a.value, !1, F.value), u(B);
|
|
2300
2306
|
}
|
|
2301
2307
|
function H(B) {
|
|
2302
2308
|
let P;
|
|
2303
|
-
|
|
2309
|
+
a.value && Array.isArray(y.value) ? P = Z(
|
|
2304
2310
|
y.value.filter((C) => C !== B),
|
|
2305
|
-
|
|
2306
|
-
) : P = null, ye(P, y,
|
|
2311
|
+
a.value
|
|
2312
|
+
) : P = null, ye(P, y, a.value, !1, F.value), u(P);
|
|
2307
2313
|
}
|
|
2308
2314
|
function ue(B, P) {
|
|
2309
2315
|
return ge(this, null, function* () {
|
|
2310
|
-
if (!(
|
|
2316
|
+
if (!(l.value || n.fetchChoices === void 0)) {
|
|
2311
2317
|
k.value = !0;
|
|
2312
2318
|
try {
|
|
2313
2319
|
const C = Ve(
|
|
2314
2320
|
F.value,
|
|
2315
|
-
Z(y.value,
|
|
2321
|
+
Z(y.value, a.value)
|
|
2316
2322
|
), Q = yield n.fetchChoices(B, P);
|
|
2317
2323
|
E.value = bt([...C, ...Q], "id"), h.value = !0;
|
|
2318
2324
|
} finally {
|
|
@@ -2323,7 +2329,7 @@ const Qo = {
|
|
|
2323
2329
|
}
|
|
2324
2330
|
function ce() {
|
|
2325
2331
|
let B = T.value;
|
|
2326
|
-
!s.value && B == null && j.value.length && (B = j.value[0].value), B = Z(B,
|
|
2332
|
+
!s.value && B == null && j.value.length && (B = j.value[0].value), B = Z(B, a.value), ye(B, y, a.value, r.value, F.value), M(B), u(B);
|
|
2327
2333
|
}
|
|
2328
2334
|
return ce(), n.fetchChoices !== void 0 && ue(void 0, T.value).then(() => {
|
|
2329
2335
|
ce();
|
|
@@ -2347,9 +2353,9 @@ const Qo = {
|
|
|
2347
2353
|
label: o(_).label,
|
|
2348
2354
|
chips: "",
|
|
2349
2355
|
"auto-select-first": !0,
|
|
2350
|
-
"closable-chips": o(s) || o(
|
|
2356
|
+
"closable-chips": o(s) || o(a) && y.value.length > 1,
|
|
2351
2357
|
clearable: o(s),
|
|
2352
|
-
multiple: o(
|
|
2358
|
+
multiple: o(a),
|
|
2353
2359
|
loading: k.value,
|
|
2354
2360
|
"hide-selected": !1,
|
|
2355
2361
|
"aria-describedby": o(_).helpText ? `${o(_).name}-help` : null,
|
|
@@ -2366,8 +2372,8 @@ const Qo = {
|
|
|
2366
2372
|
label: "",
|
|
2367
2373
|
size: "small",
|
|
2368
2374
|
class: "d-flex align-middle",
|
|
2369
|
-
variant: o(
|
|
2370
|
-
closable: o(
|
|
2375
|
+
variant: o(a) ? "tonal" : "text",
|
|
2376
|
+
closable: o(a),
|
|
2371
2377
|
"onClick:close": (re) => H(x.value)
|
|
2372
2378
|
}, {
|
|
2373
2379
|
prepend: g(() => {
|
|
@@ -2382,14 +2388,14 @@ const Qo = {
|
|
|
2382
2388
|
}),
|
|
2383
2389
|
default: g(() => [
|
|
2384
2390
|
oe("span", {
|
|
2385
|
-
class: G({ "text-body-1": !o(
|
|
2391
|
+
class: G({ "text-body-1": !o(a) })
|
|
2386
2392
|
}, De(x.title), 3)
|
|
2387
2393
|
]),
|
|
2388
2394
|
_: 2
|
|
2389
2395
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
2390
2396
|
]),
|
|
2391
2397
|
label: g((x) => [
|
|
2392
|
-
I(o(
|
|
2398
|
+
I(o(le), {
|
|
2393
2399
|
data: x,
|
|
2394
2400
|
label: o(b)
|
|
2395
2401
|
}, null, 8, ["data", "label"])
|
|
@@ -2411,7 +2417,7 @@ const Qo = {
|
|
|
2411
2417
|
}, 1040)
|
|
2412
2418
|
]),
|
|
2413
2419
|
message: g(({ message: x }) => [
|
|
2414
|
-
I(o(
|
|
2420
|
+
I(o(ae), {
|
|
2415
2421
|
message: x,
|
|
2416
2422
|
errors: o(m)
|
|
2417
2423
|
}, null, 8, ["message", "errors"])
|
|
@@ -2460,11 +2466,11 @@ const Qo = {
|
|
|
2460
2466
|
})),
|
|
2461
2467
|
emits: ["update:modelValue", "click:clear"],
|
|
2462
2468
|
setup(e, { emit: t }) {
|
|
2463
|
-
const n = e,
|
|
2469
|
+
const n = e, l = t, { densityClass: a, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, l), { cssClass: v, visibility: m } = je(n);
|
|
2464
2470
|
return (b, c) => {
|
|
2465
2471
|
const T = A("v-textarea");
|
|
2466
2472
|
return V(), W("div", {
|
|
2467
|
-
class: G(["df-textarea-container", o(
|
|
2473
|
+
class: G(["df-textarea-container", o(a)])
|
|
2468
2474
|
}, [
|
|
2469
2475
|
o(m) !== o(K).SUPPRESS ? (V(), D(T, R({
|
|
2470
2476
|
key: 0,
|
|
@@ -2484,13 +2490,13 @@ const Qo = {
|
|
|
2484
2490
|
onBlur: c[1] || (c[1] = (_) => p.value = !0)
|
|
2485
2491
|
}), {
|
|
2486
2492
|
label: g((_) => [
|
|
2487
|
-
I(o(
|
|
2493
|
+
I(o(le), {
|
|
2488
2494
|
data: _,
|
|
2489
2495
|
label: o(s)
|
|
2490
2496
|
}, null, 8, ["data", "label"])
|
|
2491
2497
|
]),
|
|
2492
2498
|
message: g(({ message: _ }) => [
|
|
2493
|
-
I(o(
|
|
2499
|
+
I(o(ae), {
|
|
2494
2500
|
message: _,
|
|
2495
2501
|
errors: o(r)
|
|
2496
2502
|
}, null, 8, ["message", "errors"])
|
|
@@ -2500,7 +2506,7 @@ const Qo = {
|
|
|
2500
2506
|
], 2);
|
|
2501
2507
|
};
|
|
2502
2508
|
}
|
|
2503
|
-
}),
|
|
2509
|
+
}), el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2504
2510
|
__proto__: null,
|
|
2505
2511
|
DfActions: Lo,
|
|
2506
2512
|
DfCheckbox: Uo,
|
|
@@ -2511,7 +2517,7 @@ const Qo = {
|
|
|
2511
2517
|
DfRtfEditor: qo,
|
|
2512
2518
|
DfSelect: Zo,
|
|
2513
2519
|
DfTextArea: Jo
|
|
2514
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2520
|
+
}, Symbol.toStringTag, { value: "Module" })), tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2515
2521
|
__proto__: null,
|
|
2516
2522
|
VAutocomplete: mn,
|
|
2517
2523
|
VBtn: pn,
|
|
@@ -2537,12 +2543,12 @@ const Qo = {
|
|
|
2537
2543
|
VTextField: $n,
|
|
2538
2544
|
VTextarea: En,
|
|
2539
2545
|
VTimePicker: An
|
|
2540
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2546
|
+
}, Symbol.toStringTag, { value: "Module" })), Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2541
2547
|
__proto__: null
|
|
2542
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2548
|
+
}, Symbol.toStringTag, { value: "Module" })), Nl = {
|
|
2543
2549
|
install: (e, t) => {
|
|
2544
|
-
var n,
|
|
2545
|
-
e.use(Xn), e.provide(tt, t != null ? t : {}), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(
|
|
2550
|
+
var n, l;
|
|
2551
|
+
e.use(Xn), e.provide(tt, t != null ? t : {}), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(el).map(([a, r]) => e.component(a, r)), (l = t == null ? void 0 : t.registerVuetifyComponents) != null && l && Object.entries(tl).map(([a, r]) => e.component(a, r));
|
|
2546
2552
|
}
|
|
2547
2553
|
};
|
|
2548
2554
|
export {
|
|
@@ -2555,25 +2561,25 @@ export {
|
|
|
2555
2561
|
Ro as DfDateTime,
|
|
2556
2562
|
Wo as DfFile,
|
|
2557
2563
|
zo as DfInput,
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2564
|
+
Al as DfInputComponentProps,
|
|
2565
|
+
el as DfInputComponents,
|
|
2566
|
+
le as DfLabel,
|
|
2561
2567
|
qo as DfRtfEditor,
|
|
2562
2568
|
Zo as DfSelect,
|
|
2563
2569
|
Jo as DfTextArea,
|
|
2564
|
-
|
|
2570
|
+
Nl as DynamicFormsInputs,
|
|
2565
2571
|
xe as InputBase,
|
|
2566
2572
|
xo as Label,
|
|
2567
|
-
|
|
2573
|
+
ae as MessagesWidget,
|
|
2568
2574
|
No as ResponsiveActionRenderOptions,
|
|
2569
2575
|
Eo as ResponsiveRenderOptions,
|
|
2570
|
-
|
|
2576
|
+
tl as VuetifyComponents,
|
|
2571
2577
|
Y as defaultBaseProps,
|
|
2572
2578
|
ze as defaultDisplayStyle,
|
|
2573
2579
|
$o as getBreakpointName,
|
|
2574
2580
|
He as responsiveBreakpoints,
|
|
2575
2581
|
ve as translatableStrings,
|
|
2576
|
-
$
|
|
2582
|
+
$l as translateStrings,
|
|
2577
2583
|
Ao as useBreakpoint,
|
|
2578
2584
|
X as useInputBase,
|
|
2579
2585
|
tt as vuetifyInputsSettingsKey
|