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