@dynamicforms/vuetify-inputs 0.1.8 → 0.1.10
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.
|
@@ -10,8 +10,8 @@ var ue = (t, e, l) => e in t ? Me(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
Ge.call(e, l) && ue(t, l, e[l]);
|
|
11
11
|
return t;
|
|
12
12
|
}, H = (t, e) => je(t, ze(e));
|
|
13
|
-
var
|
|
14
|
-
var
|
|
13
|
+
var Z = (t, e, l) => ue(t, typeof e != "symbol" ? e + "" : e, l);
|
|
14
|
+
var ne = (t, e, l) => new Promise((r, n) => {
|
|
15
15
|
var a = (c) => {
|
|
16
16
|
try {
|
|
17
17
|
u(l.next(c));
|
|
@@ -28,14 +28,14 @@ var oe = (t, e, l) => new Promise((r, n) => {
|
|
|
28
28
|
u((l = l.apply(t, e)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as we from "vue";
|
|
31
|
-
import { defineComponent as F, mergeModels as Ve, useModel as We, ref as S, watch as
|
|
31
|
+
import { defineComponent as F, mergeModels as Ve, useModel as We, ref as S, watch as J, onMounted as Se, markRaw as Xe, onBeforeUnmount as Ne, createBlock as k, openBlock as h, resolveDynamicComponent as ee, version as qe, computed as _, createElementBlock as E, Fragment as $e, renderList as Ee, normalizeClass as re, toDisplayString as te, unref as o, mergeProps as R, withCtx as y, createTextVNode as be, resolveComponent as x, createCommentVNode as $, createVNode as A, createSlots as Ze, renderSlot as Ye, isRef as G, withModifiers as Qe, mergeDefaults as z, createElementVNode as le, normalizeStyle as he, toRefs as se, withKeys as ke, useCssVars as Je, normalizeProps as Ue, guardReactiveProps as Fe, nextTick as et } from "vue";
|
|
32
32
|
import { debounce as tt, isEmpty as lt, isObjectLike as ot, isString as pe, isBoolean as Te, clone as nt, toNumber as Ce, isNaN as Ie, isArray as Be, castArray as Le, first as Pe } from "lodash-es";
|
|
33
33
|
import fe from "vue-ionicon";
|
|
34
34
|
import { useDisplay as at } from "vuetify";
|
|
35
35
|
import xe, { ValidationErrorRenderContent as rt, DisplayMode as M, ExecuteAction as it, Action as ce } from "@dynamicforms/vue-forms";
|
|
36
36
|
import st from "vue-markdown-render";
|
|
37
|
-
import { format as
|
|
38
|
-
import { AccessibilityHelp as ct, Alignment as dt, AutoImage as mt, AutoLink as pt, Autosave as ft, BalloonToolbar as vt, BlockQuote as bt, Bold as ht, CloudServices as gt, Essentials as yt, GeneralHtmlSupport as _t, Heading as wt, HorizontalLine as Vt, ImageBlock as kt, ImageCaption as Tt, ImageInline as Ct, ImageInsertViaUrl as It, ImageResize as Bt, ImageStyle as xt, ImageToolbar as At, ImageUpload as Dt, Indent as St, IndentBlock as Nt, Italic as $t, Link as Et, List as Ut, Autoformat as Ft, MediaEmbed as Lt, Paragraph as Pt, PasteFromMarkdownExperimental as Rt, PasteFromOffice as Ot, SelectAll as Ht, Style as Mt, Table as jt, TableCellProperties as zt, TableColumnResize as Kt, TableProperties as Gt, TableToolbar as Wt, Undo as
|
|
37
|
+
import { format as Y, parse as ut } from "date-fns";
|
|
38
|
+
import { AccessibilityHelp as ct, Alignment as dt, AutoImage as mt, AutoLink as pt, Autosave as ft, BalloonToolbar as vt, BlockQuote as bt, Bold as ht, CloudServices as gt, Essentials as yt, GeneralHtmlSupport as _t, Heading as wt, HorizontalLine as Vt, ImageBlock as kt, ImageCaption as Tt, ImageInline as Ct, ImageInsertViaUrl as It, ImageResize as Bt, ImageStyle as xt, ImageToolbar as At, ImageUpload as Dt, Indent as St, IndentBlock as Nt, Italic as $t, Link as Et, List as Ut, Autoformat as Ft, MediaEmbed as Lt, Paragraph as Pt, PasteFromMarkdownExperimental as Rt, PasteFromOffice as Ot, SelectAll as Ht, Style as Mt, Table as jt, TableCellProperties as zt, TableColumnResize as Kt, TableProperties as Gt, TableToolbar as Wt, Undo as Xt, TextTransformation as qt, Base64UploadAdapter as Zt, ClassicEditor as Yt } from "ckeditor5";
|
|
39
39
|
import { VAutocomplete as Qt } from "vuetify/components/VAutocomplete";
|
|
40
40
|
import { VBtn as Jt } from "vuetify/components/VBtn";
|
|
41
41
|
import { VCheckbox as el } from "vuetify/components/VCheckbox";
|
|
@@ -180,7 +180,7 @@ const Bl = Il(
|
|
|
180
180
|
"vue",
|
|
181
181
|
{
|
|
182
182
|
version: "7.3.0",
|
|
183
|
-
frameworkVersion:
|
|
183
|
+
frameworkVersion: qe
|
|
184
184
|
}
|
|
185
185
|
);
|
|
186
186
|
/**
|
|
@@ -216,9 +216,9 @@ const de = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Al = 300, Dl =
|
|
|
216
216
|
e({
|
|
217
217
|
instance: u,
|
|
218
218
|
lastEditorData: c
|
|
219
|
-
}),
|
|
219
|
+
}), J(r, (i) => {
|
|
220
220
|
u.value && i !== c.value && u.value.data.set(i);
|
|
221
|
-
}),
|
|
221
|
+
}), J(() => n.disabled, (i) => {
|
|
222
222
|
i ? u.value.enableReadOnlyMode(de) : u.value.disableReadOnlyMode(de);
|
|
223
223
|
});
|
|
224
224
|
function v() {
|
|
@@ -246,13 +246,13 @@ const de = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Al = 300, Dl =
|
|
|
246
246
|
Object.assign({}, n.config)
|
|
247
247
|
);
|
|
248
248
|
r.value && (i.initialData = r.value), n.editor.create(f.value, i).then((m) => {
|
|
249
|
-
u.value =
|
|
249
|
+
u.value = Xe(m), s(m), r.value !== i.initialData && m.data.set(r.value), n.disabled && m.enableReadOnlyMode(de), a("ready", m);
|
|
250
250
|
}).catch((m) => {
|
|
251
251
|
console.error(m);
|
|
252
252
|
});
|
|
253
253
|
}), Ne(() => {
|
|
254
254
|
u.value && (u.value.destroy(), u.value = void 0), a("destroy");
|
|
255
|
-
}), (i, m) => (h(), k(
|
|
255
|
+
}), (i, m) => (h(), k(ee(i.tagName), {
|
|
256
256
|
ref_key: "element",
|
|
257
257
|
ref: f
|
|
258
258
|
}, null, 512));
|
|
@@ -334,15 +334,15 @@ const Nl = { class: "custom-error-display text-error" }, $l = { key: 0 }, El = /
|
|
|
334
334
|
key: n,
|
|
335
335
|
class: re({ "first-error": n === 0, "last-error": n === e.errors.length - 1 })
|
|
336
336
|
}, [
|
|
337
|
-
r.componentName === "template" ? (h(), E("div", $l,
|
|
337
|
+
r.componentName === "template" ? (h(), E("div", $l, te(r.componentBody), 1)) : r.componentName === "vue-markdown" ? (h(), k(o(st), {
|
|
338
338
|
key: 1,
|
|
339
339
|
source: (a = r.componentBindings) == null ? void 0 : a.source
|
|
340
|
-
}, null, 8, ["source"])) : (h(), k(
|
|
340
|
+
}, null, 8, ["source"])) : (h(), k(ee(r.componentName), R({
|
|
341
341
|
key: 2,
|
|
342
342
|
ref_for: !0
|
|
343
343
|
}, r.componentBindings), {
|
|
344
344
|
default: y(() => [
|
|
345
|
-
be(
|
|
345
|
+
be(te(r.componentBody), 1)
|
|
346
346
|
]),
|
|
347
347
|
_: 2
|
|
348
348
|
}, 1040))
|
|
@@ -350,12 +350,12 @@ const Nl = { class: "custom-error-display text-error" }, $l = { key: 0 }, El = /
|
|
|
350
350
|
}), 128))
|
|
351
351
|
]));
|
|
352
352
|
}
|
|
353
|
-
}),
|
|
353
|
+
}), oe = (t, e) => {
|
|
354
354
|
const l = t.__vccOpts || t;
|
|
355
355
|
for (const [r, n] of e)
|
|
356
356
|
l[r] = n;
|
|
357
357
|
return l;
|
|
358
|
-
}, W = /* @__PURE__ */
|
|
358
|
+
}, W = /* @__PURE__ */ oe(El, [["__scopeId", "data-v-b274d086"]]), Ul = {
|
|
359
359
|
key: 0,
|
|
360
360
|
for: "#following-v-input"
|
|
361
361
|
}, ge = /* @__PURE__ */ F({
|
|
@@ -388,12 +388,12 @@ const Nl = { class: "custom-error-display text-error" }, $l = { key: 0 }, El = /
|
|
|
388
388
|
}
|
|
389
389
|
])
|
|
390
390
|
}, [
|
|
391
|
-
o(u).label ? (h(), E("label", Ul,
|
|
391
|
+
o(u).label ? (h(), E("label", Ul, te(o(u).label), 1)) : $("", !0),
|
|
392
392
|
A(m, {
|
|
393
393
|
hint: o(u).hint,
|
|
394
394
|
"persistent-hint": o(u).persistentHint,
|
|
395
395
|
"hide-details": o(u).hideDetails
|
|
396
|
-
},
|
|
396
|
+
}, Ze({
|
|
397
397
|
message: y(() => [
|
|
398
398
|
A(W, { errors: o(n) }, null, 8, ["errors"])
|
|
399
399
|
]),
|
|
@@ -443,7 +443,7 @@ Object.freeze(O);
|
|
|
443
443
|
const De = ["xl", "lg", "md", "sm", "xs"];
|
|
444
444
|
class ie {
|
|
445
445
|
constructor(e, l) {
|
|
446
|
-
|
|
446
|
+
Z(this, "_value");
|
|
447
447
|
if (this._value = {}, !e) return;
|
|
448
448
|
let r = ie.cleanBreakpoint(e);
|
|
449
449
|
!(r != null && r.label) && l && (r ? r.label || (r.label = l) : r = { label: l }), r && (this._value = r), De.forEach((n) => {
|
|
@@ -473,9 +473,9 @@ class ie {
|
|
|
473
473
|
}
|
|
474
474
|
class ae {
|
|
475
475
|
constructor(e, l) {
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
476
|
+
Z(this, "name");
|
|
477
|
+
Z(this, "displayStyle");
|
|
478
|
+
Z(this, "formAction");
|
|
479
479
|
if (e.name == null) throw new Error(`Action name must not be empty ${e}`);
|
|
480
480
|
const r = !pe(e.label) || e.label.length === 0 ? void 0 : e.label, n = !pe(e.icon) || e.icon.length === 0 ? void 0 : e.icon;
|
|
481
481
|
this.name = e.name, this.displayStyle = new ie(e.displayStyle, r), this.formAction = l, this.formAction.icon = n, this.formAction.label = r;
|
|
@@ -607,14 +607,14 @@ const Fl = {
|
|
|
607
607
|
name: p.formAction.icon
|
|
608
608
|
}, null, 8, ["name"])) : $("", !0),
|
|
609
609
|
f(p) && u(p) ? (h(), E("span", Fl)) : $("", !0),
|
|
610
|
-
u(p) ? (h(), E("span", Ll,
|
|
610
|
+
u(p) ? (h(), E("span", Ll, te(v(p)), 1)) : $("", !0)
|
|
611
611
|
]),
|
|
612
612
|
_: 2
|
|
613
613
|
}, 1032, ["variant", "class", "size", "onClick"]))), 128))
|
|
614
614
|
], 2)) : $("", !0);
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
|
-
}), Rl = /* @__PURE__ */
|
|
617
|
+
}), Rl = /* @__PURE__ */ oe(Pl, [["__scopeId", "data-v-eb616f46"]]), Ol = /* @__PURE__ */ F({
|
|
618
618
|
__name: "df-checkbox",
|
|
619
619
|
props: /* @__PURE__ */ z({
|
|
620
620
|
allowNull: { type: Boolean },
|
|
@@ -636,13 +636,9 @@ const Fl = {
|
|
|
636
636
|
get() {
|
|
637
637
|
return a.value;
|
|
638
638
|
},
|
|
639
|
-
set(
|
|
639
|
+
set() {
|
|
640
640
|
}
|
|
641
|
-
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
642
641
|
});
|
|
643
|
-
Z(a, (s) => {
|
|
644
|
-
s ? a.value = !0 : l.allowNull && s == null ? a.value = null : a.value = !1;
|
|
645
|
-
}, { immediate: !0 });
|
|
646
642
|
function v() {
|
|
647
643
|
const s = nt(a.value);
|
|
648
644
|
s === !0 ? a.value = l.allowNull ? null : !1 : a.value = s === !1;
|
|
@@ -713,7 +709,7 @@ const Fl = {
|
|
|
713
709
|
A(o(W), { errors: o(n) }, null, 8, ["errors"])
|
|
714
710
|
]),
|
|
715
711
|
"prepend-inner": y(() => [
|
|
716
|
-
|
|
712
|
+
le("div", {
|
|
717
713
|
style: he([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: o(a) }])
|
|
718
714
|
}, null, 4)
|
|
719
715
|
]),
|
|
@@ -765,7 +761,7 @@ const Fl = {
|
|
|
765
761
|
set(b) {
|
|
766
762
|
b ? v.value = "date" : v.value = "";
|
|
767
763
|
}
|
|
768
|
-
}), i = (b) => `${
|
|
764
|
+
}), i = (b) => `${Y(b, "yyyy-MM-dd")}T${Y(b, "HH:mm")}:00`, m = S(null);
|
|
769
765
|
function p(b, d) {
|
|
770
766
|
if (b == null)
|
|
771
767
|
m.value = null;
|
|
@@ -779,10 +775,10 @@ const Fl = {
|
|
|
779
775
|
else {
|
|
780
776
|
m.value == null && (m.value = i(/* @__PURE__ */ new Date()));
|
|
781
777
|
const T = m.value.split(/[TZ]/g), P = b.split(/[TZ]/g);
|
|
782
|
-
T[d] = P[d], m.value = i(/* @__PURE__ */ new Date(`${T[0]}T${T[1].split(".")[0]}`)), o(f) === "date" ? n.value = T[0] : o(f) === "time" ? n.value = T[1] : n.value = o(m);
|
|
778
|
+
T[d] = P[d], m.value = i(/* @__PURE__ */ new Date(`${T[0]}T${T[1].split(".")[0]}`)), o(f) === "date" ? n.value = T[0] : o(f) === "time" ? n.value = T[1] : n.value = o(m) + Y(/* @__PURE__ */ new Date(), "XXX");
|
|
783
779
|
}
|
|
784
780
|
}
|
|
785
|
-
|
|
781
|
+
J(n, (b) => p(b, -1), { immediate: !0 });
|
|
786
782
|
const g = _({
|
|
787
783
|
get() {
|
|
788
784
|
const b = o(m);
|
|
@@ -804,7 +800,7 @@ const Fl = {
|
|
|
804
800
|
}), L = _({
|
|
805
801
|
get() {
|
|
806
802
|
const b = o(g);
|
|
807
|
-
return b == null ? "" :
|
|
803
|
+
return b == null ? "" : Y(b, o(u));
|
|
808
804
|
},
|
|
809
805
|
set(b) {
|
|
810
806
|
try {
|
|
@@ -817,7 +813,7 @@ const Fl = {
|
|
|
817
813
|
}), B = _({
|
|
818
814
|
get() {
|
|
819
815
|
const b = o(g);
|
|
820
|
-
return b == null ? "" :
|
|
816
|
+
return b == null ? "" : Y(b, o(c));
|
|
821
817
|
},
|
|
822
818
|
set(b) {
|
|
823
819
|
const d = b.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
@@ -828,7 +824,7 @@ const Fl = {
|
|
|
828
824
|
}
|
|
829
825
|
});
|
|
830
826
|
return (b, d) => {
|
|
831
|
-
const T = x("v-text-field"), P = x("v-date-picker"),
|
|
827
|
+
const T = x("v-text-field"), P = x("v-date-picker"), q = x("v-confirm-edit"), I = x("v-time-picker"), C = x("v-menu");
|
|
832
828
|
return h(), k(o(ge), R(l, {
|
|
833
829
|
clearable: "",
|
|
834
830
|
"onClick:clear": d[13] || (d[13] = (V) => n.value = null)
|
|
@@ -842,7 +838,7 @@ const Fl = {
|
|
|
842
838
|
"close-on-content-click": !1
|
|
843
839
|
}, {
|
|
844
840
|
activator: y(({ props: V }) => [
|
|
845
|
-
|
|
841
|
+
le("div", Ml, [
|
|
846
842
|
["date", "datetime"].includes(o(f)) ? (h(), k(T, R({
|
|
847
843
|
key: 0,
|
|
848
844
|
modelValue: L.value,
|
|
@@ -876,7 +872,7 @@ const Fl = {
|
|
|
876
872
|
])
|
|
877
873
|
]),
|
|
878
874
|
default: y(() => [
|
|
879
|
-
v.value === "date" ? (h(), k(
|
|
875
|
+
v.value === "date" ? (h(), k(q, {
|
|
880
876
|
key: 0,
|
|
881
877
|
modelValue: g.value,
|
|
882
878
|
"onUpdate:modelValue": d[6] || (d[6] = (V) => g.value = V),
|
|
@@ -893,14 +889,14 @@ const Fl = {
|
|
|
893
889
|
"show-week": !0
|
|
894
890
|
}, {
|
|
895
891
|
actions: y(() => [
|
|
896
|
-
(h(), k(
|
|
892
|
+
(h(), k(ee(U)))
|
|
897
893
|
]),
|
|
898
894
|
_: 2
|
|
899
895
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
900
896
|
]),
|
|
901
897
|
_: 1
|
|
902
898
|
}, 8, ["modelValue"])) : $("", !0),
|
|
903
|
-
v.value === "time" ? (h(), k(
|
|
899
|
+
v.value === "time" ? (h(), k(q, {
|
|
904
900
|
key: 1,
|
|
905
901
|
modelValue: w.value,
|
|
906
902
|
"onUpdate:modelValue": d[9] || (d[9] = (V) => w.value = V),
|
|
@@ -915,7 +911,7 @@ const Fl = {
|
|
|
915
911
|
format: "24hr"
|
|
916
912
|
}, {
|
|
917
913
|
actions: y(() => [
|
|
918
|
-
(h(), k(
|
|
914
|
+
(h(), k(ee(U)))
|
|
919
915
|
]),
|
|
920
916
|
_: 2
|
|
921
917
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -957,16 +953,16 @@ const Fl = {
|
|
|
957
953
|
n.value && l.comms.touch(n.value);
|
|
958
954
|
}, 60 * 1e3);
|
|
959
955
|
}
|
|
960
|
-
Ne(() => m()),
|
|
956
|
+
Ne(() => m()), J(n, (B) => {
|
|
961
957
|
B ? p() : m();
|
|
962
958
|
});
|
|
963
959
|
function g() {
|
|
964
|
-
return
|
|
960
|
+
return ne(this, null, function* () {
|
|
965
961
|
n.value && (yield l.comms.delete(n.value)), n.value = null, c.value = 0, v.value = Math.round(Math.random() * 1e3), u.value = null, s.value = null, m();
|
|
966
962
|
});
|
|
967
963
|
}
|
|
968
964
|
function w(B) {
|
|
969
|
-
return
|
|
965
|
+
return ne(this, null, function* () {
|
|
970
966
|
c.value = -1, u.value = B, new FormData().append("file", B, B.name);
|
|
971
967
|
try {
|
|
972
968
|
n.value = yield l.comms.upload(
|
|
@@ -990,7 +986,7 @@ const Fl = {
|
|
|
990
986
|
"onClick:clear": g
|
|
991
987
|
}), {
|
|
992
988
|
default: y(() => [
|
|
993
|
-
|
|
989
|
+
le("div", zl, [
|
|
994
990
|
u.value && c.value < 100 ? (h(), k(d, {
|
|
995
991
|
key: 0,
|
|
996
992
|
"model-value": c.value,
|
|
@@ -1081,7 +1077,7 @@ const Fl = {
|
|
|
1081
1077
|
]);
|
|
1082
1078
|
};
|
|
1083
1079
|
}
|
|
1084
|
-
}),
|
|
1080
|
+
}), Xl = /* @__PURE__ */ oe(Wl, [["__scopeId", "data-v-7ce40eb2"]]), ql = { class: "editor-container" }, Zl = { class: "editor-container__editor" }, Yl = { ref: "editorElement" }, Ql = /* @__PURE__ */ F({
|
|
1085
1081
|
__name: "ck-editor-custom",
|
|
1086
1082
|
props: {
|
|
1087
1083
|
modelValue: { default: "" },
|
|
@@ -1163,9 +1159,9 @@ const Fl = {
|
|
|
1163
1159
|
Kt,
|
|
1164
1160
|
Gt,
|
|
1165
1161
|
Wt,
|
|
1162
|
+
Xt,
|
|
1166
1163
|
qt,
|
|
1167
|
-
Zt
|
|
1168
|
-
Xt
|
|
1164
|
+
Zt
|
|
1169
1165
|
],
|
|
1170
1166
|
balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
|
|
1171
1167
|
heading: {
|
|
@@ -1231,9 +1227,9 @@ const Fl = {
|
|
|
1231
1227
|
};
|
|
1232
1228
|
return e({ onEditorReady: s }), (i, m) => {
|
|
1233
1229
|
const p = x("ckeditor");
|
|
1234
|
-
return h(), E("div",
|
|
1235
|
-
|
|
1236
|
-
|
|
1230
|
+
return h(), E("div", ql, [
|
|
1231
|
+
le("div", Zl, [
|
|
1232
|
+
le("div", Yl, [
|
|
1237
1233
|
n.value ? (h(), k(p, {
|
|
1238
1234
|
key: 0,
|
|
1239
1235
|
"model-value": i.modelValue,
|
|
@@ -1348,7 +1344,7 @@ const to = {
|
|
|
1348
1344
|
function b(I) {
|
|
1349
1345
|
s("update:modelValueDisplay", ve(w.value, I));
|
|
1350
1346
|
}
|
|
1351
|
-
|
|
1347
|
+
J(g, (I) => {
|
|
1352
1348
|
p.value.readonly || et(() => {
|
|
1353
1349
|
const C = Q(I, n.value);
|
|
1354
1350
|
b(C), m.value = C;
|
|
@@ -1364,7 +1360,7 @@ const to = {
|
|
|
1364
1360
|
n.value && Array.isArray(g.value) ? C = Q(g.value.filter((V) => V !== I), n.value) : C = null, me(C, g, n.value, !1, w.value), m.value = C;
|
|
1365
1361
|
}
|
|
1366
1362
|
function P(I, C) {
|
|
1367
|
-
return
|
|
1363
|
+
return ne(this, null, function* () {
|
|
1368
1364
|
if (!(r || l.fetchChoices === void 0)) {
|
|
1369
1365
|
L.value = !0;
|
|
1370
1366
|
try {
|
|
@@ -1375,15 +1371,15 @@ const to = {
|
|
|
1375
1371
|
}
|
|
1376
1372
|
});
|
|
1377
1373
|
}
|
|
1378
|
-
function
|
|
1374
|
+
function q() {
|
|
1379
1375
|
let I = m.value;
|
|
1380
1376
|
!f.value && I == null && B.value.length && (I = B.value[0].value), I = Q(I, n.value), me(I, g, n.value, a.value, w.value), b(I), m.value = I;
|
|
1381
1377
|
}
|
|
1382
|
-
return
|
|
1383
|
-
|
|
1378
|
+
return q(), l.fetchChoices !== void 0 && P(void 0, m.value).then(() => {
|
|
1379
|
+
q();
|
|
1384
1380
|
}), (I, C) => {
|
|
1385
1381
|
const V = x("v-chip"), U = x("v-list-item");
|
|
1386
|
-
return o(c) !== o(M).SUPPRESS ? (h(), k(
|
|
1382
|
+
return o(c) !== o(M).SUPPRESS ? (h(), k(ee(o(a) ? "v-combobox" : "v-autocomplete"), R({
|
|
1387
1383
|
key: 0,
|
|
1388
1384
|
modelValue: g.value,
|
|
1389
1385
|
"onUpdate:modelValue": C[0] || (C[0] = (D) => g.value = D),
|
|
@@ -1422,12 +1418,12 @@ const to = {
|
|
|
1422
1418
|
size: "small",
|
|
1423
1419
|
variant: o(n) ? "tonal" : "text",
|
|
1424
1420
|
closable: o(n),
|
|
1425
|
-
"onClick:close": (
|
|
1421
|
+
"onClick:close": (X) => T(D.value)
|
|
1426
1422
|
}, {
|
|
1427
1423
|
prepend: y(() => {
|
|
1428
|
-
var
|
|
1424
|
+
var X;
|
|
1429
1425
|
return [
|
|
1430
|
-
(
|
|
1426
|
+
(X = D.raw) != null && X.icon ? (h(), E("span", to, [
|
|
1431
1427
|
A(o(fe), {
|
|
1432
1428
|
class: "action-icon d-inline-block",
|
|
1433
1429
|
name: D.raw.icon
|
|
@@ -1436,20 +1432,20 @@ const to = {
|
|
|
1436
1432
|
];
|
|
1437
1433
|
}),
|
|
1438
1434
|
default: y(() => [
|
|
1439
|
-
be(" " +
|
|
1435
|
+
be(" " + te(D.title), 1)
|
|
1440
1436
|
]),
|
|
1441
1437
|
_: 2
|
|
1442
1438
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
1443
1439
|
]),
|
|
1444
|
-
item: y(({ props: D, item:
|
|
1440
|
+
item: y(({ props: D, item: X }) => [
|
|
1445
1441
|
A(U, Ue(Fe(D)), {
|
|
1446
1442
|
prepend: y(() => {
|
|
1447
1443
|
var ye;
|
|
1448
1444
|
return [
|
|
1449
|
-
(ye =
|
|
1445
|
+
(ye = X.raw) != null && ye.icon ? (h(), E("span", lo, [
|
|
1450
1446
|
A(o(fe), {
|
|
1451
1447
|
class: "action-icon d-inline-block",
|
|
1452
|
-
name:
|
|
1448
|
+
name: X.raw.icon
|
|
1453
1449
|
}, null, 8, ["name"])
|
|
1454
1450
|
])) : $("", !0)
|
|
1455
1451
|
];
|
|
@@ -1464,7 +1460,7 @@ const to = {
|
|
|
1464
1460
|
}, 16, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : $("", !0);
|
|
1465
1461
|
};
|
|
1466
1462
|
}
|
|
1467
|
-
}), no = /* @__PURE__ */
|
|
1463
|
+
}), no = /* @__PURE__ */ oe(oo, [["__scopeId", "data-v-2d1b6f78"]]), ao = { class: "container" }, ro = /* @__PURE__ */ F({
|
|
1468
1464
|
__name: "df-text-area",
|
|
1469
1465
|
props: /* @__PURE__ */ z({
|
|
1470
1466
|
rows: {},
|
|
@@ -1514,14 +1510,14 @@ const to = {
|
|
|
1514
1510
|
]);
|
|
1515
1511
|
};
|
|
1516
1512
|
}
|
|
1517
|
-
}), io = /* @__PURE__ */
|
|
1513
|
+
}), io = /* @__PURE__ */ oe(ro, [["__scopeId", "data-v-2dc106f6"]]), so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1518
1514
|
__proto__: null,
|
|
1519
1515
|
DfActions: Rl,
|
|
1520
1516
|
DfCheckbox: Ol,
|
|
1521
1517
|
DfColor: Hl,
|
|
1522
1518
|
DfDateTime: jl,
|
|
1523
1519
|
DfFile: Kl,
|
|
1524
|
-
DfInput:
|
|
1520
|
+
DfInput: Xl,
|
|
1525
1521
|
DfRtfEditor: Jl,
|
|
1526
1522
|
DfSelect: no,
|
|
1527
1523
|
DfTextArea: io
|
|
@@ -1563,7 +1559,7 @@ export {
|
|
|
1563
1559
|
Hl as DfColor,
|
|
1564
1560
|
jl as DfDateTime,
|
|
1565
1561
|
Kl as DfFile,
|
|
1566
|
-
|
|
1562
|
+
Xl as DfInput,
|
|
1567
1563
|
Jl as DfRtfEditor,
|
|
1568
1564
|
no as DfSelect,
|
|
1569
1565
|
io as DfTextArea,
|