@dynamicforms/vuetify-inputs 0.10.3 → 0.10.5
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 -922
- 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, N;
|
|
908
|
+
return (N = (S = (A = (m = t.density) != null ? m : g.value.density) != null ? A : a) != null ? S : e.defaultDensity) != null ? N : "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, N;
|
|
913
|
+
return (N = (S = (A = (m = t.variant) != null ? m : g.value.variant) != null ? A : r) != null ? S : e.defaultVariant) != null ? N : "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"), N = 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(N, {
|
|
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] = (N) => B.value = N),
|
|
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: (N) => S.focus(),
|
|
1847
|
+
onBlur: (N) => 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,146 @@ 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
1942
|
function N() {
|
|
1918
|
-
|
|
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[2] || (K[2] = (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
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
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(N, ["prevent"]),
|
|
1976
|
+
onDragover: K[0] || (K[0] = ke(() => {
|
|
1977
|
+
}, ["prevent"])),
|
|
1978
|
+
onDragleave: ke(le, ["prevent"]),
|
|
1979
|
+
onDrop: ke(D, ["prevent"]),
|
|
1980
|
+
onClick: K[1] || (K[1] = ke(() => {
|
|
1955
1981
|
}, ["stop"]))
|
|
1956
1982
|
}, [
|
|
1957
|
-
|
|
1983
|
+
ae("input", {
|
|
1958
1984
|
id: l(v),
|
|
1959
1985
|
ref_key: "fileInputRef",
|
|
1960
|
-
ref:
|
|
1986
|
+
ref: V,
|
|
1961
1987
|
type: "file",
|
|
1962
1988
|
accept: "image/*",
|
|
1963
1989
|
class: "df-image-native-input",
|
|
1964
|
-
disabled:
|
|
1990
|
+
disabled: L.value,
|
|
1965
1991
|
name: l(k).name,
|
|
1966
|
-
onChange:
|
|
1967
|
-
onFocus: (
|
|
1968
|
-
onBlur: (
|
|
1969
|
-
}, null, 40,
|
|
1970
|
-
|
|
1992
|
+
onChange: S,
|
|
1993
|
+
onFocus: (Re) => p.focus(),
|
|
1994
|
+
onBlur: (Re) => p.blur()
|
|
1995
|
+
}, null, 40, Rl),
|
|
1996
|
+
$.value ? (T(), Q("label", {
|
|
1971
1997
|
key: 0,
|
|
1972
1998
|
for: l(v),
|
|
1973
1999
|
class: "df-image-preview-label"
|
|
1974
2000
|
}, [
|
|
1975
|
-
i(
|
|
1976
|
-
src:
|
|
2001
|
+
i(y, {
|
|
2002
|
+
src: $.value,
|
|
1977
2003
|
class: "df-image-preview",
|
|
1978
|
-
style: st(
|
|
2004
|
+
style: st(b.value && _.value < 100 ? "visibility: hidden" : "")
|
|
1979
2005
|
}, null, 8, ["src", "style"])
|
|
1980
|
-
], 8,
|
|
2006
|
+
], 8, Pl)) : (T(), Q("label", {
|
|
1981
2007
|
key: 1,
|
|
1982
2008
|
for: l(v),
|
|
1983
2009
|
class: "df-image-placeholder"
|
|
1984
2010
|
}, [
|
|
1985
|
-
i(l(
|
|
1986
|
-
|
|
1987
|
-
], 8,
|
|
1988
|
-
|
|
2011
|
+
i(l(j), { name: "mdi-tray-arrow-up" }),
|
|
2012
|
+
ae("span", null, G(l(f).ImageDropHint), 1)
|
|
2013
|
+
], 8, El)),
|
|
2014
|
+
$.value && !L.value ? (T(), Q("label", {
|
|
1989
2015
|
key: 2,
|
|
1990
2016
|
for: l(v),
|
|
1991
2017
|
class: "df-image-replace-btn",
|
|
1992
2018
|
title: l(f).ImageReplace
|
|
1993
2019
|
}, [
|
|
1994
|
-
i(l(
|
|
2020
|
+
i(l(j), { name: "mdi-pencil" })
|
|
2021
|
+
], 8, Fl)) : Y("", !0),
|
|
2022
|
+
W.value ? (T(), Q("a", {
|
|
2023
|
+
key: 3,
|
|
2024
|
+
href: l(h),
|
|
2025
|
+
download: "",
|
|
2026
|
+
target: "_blank",
|
|
2027
|
+
rel: "noopener",
|
|
2028
|
+
class: "df-image-download-btn",
|
|
2029
|
+
title: l(f).ImageDownload,
|
|
2030
|
+
"aria-label": l(f).ImageDownload
|
|
2031
|
+
}, [
|
|
2032
|
+
i(l(j), { name: "mdi-download" })
|
|
1995
2033
|
], 8, Nl)) : Y("", !0)
|
|
1996
2034
|
], 34)
|
|
1997
2035
|
]),
|
|
@@ -1999,7 +2037,7 @@ const Dl = {
|
|
|
1999
2037
|
}, 16, ["class"]);
|
|
2000
2038
|
};
|
|
2001
2039
|
}
|
|
2002
|
-
}), xt = /* @__PURE__ */
|
|
2040
|
+
}), xt = /* @__PURE__ */ ne({
|
|
2003
2041
|
__name: "df-input",
|
|
2004
2042
|
props: /* @__PURE__ */ pe({
|
|
2005
2043
|
inputType: {},
|
|
@@ -2021,7 +2059,7 @@ const Dl = {
|
|
|
2021
2059
|
passthroughAttrs: {},
|
|
2022
2060
|
density: {},
|
|
2023
2061
|
variant: {}
|
|
2024
|
-
},
|
|
2062
|
+
}, te(z({}, be), {
|
|
2025
2063
|
inputType: "text",
|
|
2026
2064
|
precision: null,
|
|
2027
2065
|
step: void 0,
|
|
@@ -2030,55 +2068,55 @@ const Dl = {
|
|
|
2030
2068
|
})),
|
|
2031
2069
|
emits: ["update:modelValue", "click:clear"],
|
|
2032
2070
|
setup(t, { emit: n }) {
|
|
2033
|
-
const e = t, a = n, { densityClass: r, isRendered:
|
|
2071
|
+
const e = t, a = n, { densityClass: r, isRendered: c, label: d, showErrors: h, touched: k, value: f, visibilityClass: v, vuetifyBindings: b } = ce(
|
|
2034
2072
|
e,
|
|
2035
2073
|
a
|
|
2036
|
-
), { inputType:
|
|
2037
|
-
() =>
|
|
2074
|
+
), { inputType: _, max: B, min: x, precision: V, step: E } = Oe(e), L = C(() => _.value === "number"), g = C(
|
|
2075
|
+
() => L.value ? { min: l(x), max: l(B), precision: l(V), step: l(E) } : {}
|
|
2038
2076
|
);
|
|
2039
|
-
return (
|
|
2040
|
-
const
|
|
2041
|
-
return l(
|
|
2077
|
+
return ($, W) => {
|
|
2078
|
+
const q = P("v-text-field"), Z = P("v-number-input");
|
|
2079
|
+
return l(c) ? (T(), Q("div", {
|
|
2042
2080
|
key: 0,
|
|
2043
2081
|
class: ue(["df-input-container", [l(r), l(v)]])
|
|
2044
2082
|
}, [
|
|
2045
|
-
|
|
2083
|
+
L.value ? (T(), H(Z, X({
|
|
2046
2084
|
key: 1,
|
|
2047
2085
|
modelValue: l(f),
|
|
2048
|
-
"onUpdate:modelValue":
|
|
2086
|
+
"onUpdate:modelValue": W[2] || (W[2] = (M) => xe(f) ? f.value = M : null),
|
|
2049
2087
|
density: "compact",
|
|
2050
2088
|
"control-variant": "stacked"
|
|
2051
|
-
}, z(z({}, l(
|
|
2052
|
-
label: s((
|
|
2089
|
+
}, z(z({}, l(b)), g.value)), {
|
|
2090
|
+
label: s((M) => [
|
|
2053
2091
|
i(l(fe), {
|
|
2054
|
-
data:
|
|
2092
|
+
data: M,
|
|
2055
2093
|
label: l(d)
|
|
2056
2094
|
}, null, 8, ["data", "label"])
|
|
2057
2095
|
]),
|
|
2058
|
-
message: s(({ message:
|
|
2096
|
+
message: s(({ message: M }) => [
|
|
2059
2097
|
i(l(ve), {
|
|
2060
|
-
message:
|
|
2098
|
+
message: M,
|
|
2061
2099
|
errors: l(h)
|
|
2062
2100
|
}, null, 8, ["message", "errors"])
|
|
2063
2101
|
]),
|
|
2064
2102
|
_: 1
|
|
2065
|
-
}, 16, ["modelValue"])) : (
|
|
2103
|
+
}, 16, ["modelValue"])) : (T(), H(q, X({
|
|
2066
2104
|
key: 0,
|
|
2067
2105
|
modelValue: l(f),
|
|
2068
|
-
"onUpdate:modelValue":
|
|
2069
|
-
type: l(
|
|
2070
|
-
}, l(
|
|
2071
|
-
onBlur:
|
|
2106
|
+
"onUpdate:modelValue": W[0] || (W[0] = (M) => xe(f) ? f.value = M : null),
|
|
2107
|
+
type: l(_)
|
|
2108
|
+
}, l(b), {
|
|
2109
|
+
onBlur: W[1] || (W[1] = (M) => k.value = !0)
|
|
2072
2110
|
}), {
|
|
2073
|
-
label: s((
|
|
2111
|
+
label: s((M) => [
|
|
2074
2112
|
i(l(fe), {
|
|
2075
|
-
data:
|
|
2113
|
+
data: M,
|
|
2076
2114
|
label: l(d)
|
|
2077
2115
|
}, null, 8, ["data", "label"])
|
|
2078
2116
|
]),
|
|
2079
|
-
message: s(({ message:
|
|
2117
|
+
message: s(({ message: M }) => [
|
|
2080
2118
|
i(l(ve), {
|
|
2081
|
-
message:
|
|
2119
|
+
message: M,
|
|
2082
2120
|
errors: l(h)
|
|
2083
2121
|
}, null, 8, ["message", "errors"])
|
|
2084
2122
|
]),
|
|
@@ -2087,7 +2125,7 @@ const Dl = {
|
|
|
2087
2125
|
], 2)) : Y("", !0);
|
|
2088
2126
|
};
|
|
2089
2127
|
}
|
|
2090
|
-
}),
|
|
2128
|
+
}), Ul = fn.create({
|
|
2091
2129
|
name: "classAttribute",
|
|
2092
2130
|
addGlobalAttributes() {
|
|
2093
2131
|
return [
|
|
@@ -2115,7 +2153,7 @@ function At(t, n) {
|
|
|
2115
2153
|
}
|
|
2116
2154
|
});
|
|
2117
2155
|
}
|
|
2118
|
-
const
|
|
2156
|
+
const zl = At("marker", "marker"), Hl = At("spoiler", "spoiler"), Ol = [
|
|
2119
2157
|
{ key: "ArticleCategory", kind: "heading", level: 3, className: "category" },
|
|
2120
2158
|
{ key: "Title", kind: "heading", level: 2, className: "document-title" },
|
|
2121
2159
|
{ key: "Subtitle", kind: "heading", level: 3, className: "document-subtitle" },
|
|
@@ -2126,35 +2164,35 @@ const Ul = At("marker", "marker"), zl = At("spoiler", "spoiler"), Fl = [
|
|
|
2126
2164
|
{ key: "CodeDark", kind: "codeBlock", className: "fancy-code fancy-code-dark" },
|
|
2127
2165
|
{ key: "CodeBright", kind: "codeBlock", className: "fancy-code fancy-code-bright" }
|
|
2128
2166
|
];
|
|
2129
|
-
function
|
|
2167
|
+
function Ze(t) {
|
|
2130
2168
|
const { state: n } = t, { $from: e } = n.selection;
|
|
2131
2169
|
return e.depth > 0 || n.doc.content.size === 0 ? e : n.doc.resolve(Math.min(1, n.doc.content.size));
|
|
2132
2170
|
}
|
|
2133
|
-
function
|
|
2134
|
-
return
|
|
2171
|
+
function Ne(t) {
|
|
2172
|
+
return Ze(t).parent;
|
|
2135
2173
|
}
|
|
2136
|
-
function
|
|
2137
|
-
const e =
|
|
2174
|
+
function _t(t, n) {
|
|
2175
|
+
const e = Ze(t);
|
|
2138
2176
|
for (let a = e.depth; a >= 0; a -= 1)
|
|
2139
2177
|
if (e.node(a).type.name === n) return e.node(a);
|
|
2140
2178
|
return null;
|
|
2141
2179
|
}
|
|
2142
|
-
function
|
|
2180
|
+
function Le(t, n) {
|
|
2143
2181
|
switch (n.kind) {
|
|
2144
2182
|
case "heading": {
|
|
2145
|
-
const e =
|
|
2183
|
+
const e = Ne(t);
|
|
2146
2184
|
return e.type.name === "heading" && e.attrs.level === n.level && e.attrs.class === n.className;
|
|
2147
2185
|
}
|
|
2148
2186
|
case "paragraph": {
|
|
2149
|
-
const e =
|
|
2187
|
+
const e = Ne(t);
|
|
2150
2188
|
return e.type.name === "paragraph" && e.attrs.class === n.className;
|
|
2151
2189
|
}
|
|
2152
2190
|
case "codeBlock": {
|
|
2153
|
-
const e =
|
|
2191
|
+
const e = Ne(t);
|
|
2154
2192
|
return e.type.name === "codeBlock" && e.attrs.class === n.className;
|
|
2155
2193
|
}
|
|
2156
2194
|
case "blockquote": {
|
|
2157
|
-
const e =
|
|
2195
|
+
const e = _t(t, "blockquote");
|
|
2158
2196
|
return !!e && e.attrs.class === n.className;
|
|
2159
2197
|
}
|
|
2160
2198
|
case "mark":
|
|
@@ -2163,33 +2201,33 @@ function $e(t, n) {
|
|
|
2163
2201
|
return !1;
|
|
2164
2202
|
}
|
|
2165
2203
|
}
|
|
2166
|
-
function
|
|
2204
|
+
function Wl(t, n) {
|
|
2167
2205
|
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(
|
|
2206
|
+
switch (n.kind !== "mark" && a.depth === 0 && t.state.doc.content.size > 0 && e.setTextSelection(Ze(t).pos), n.kind) {
|
|
2169
2207
|
case "heading":
|
|
2170
|
-
|
|
2208
|
+
Le(t, n) ? e.setParagraph().updateAttributes("paragraph", { class: null }).run() : e.setNode("heading", { level: n.level }).updateAttributes("heading", { class: n.className }).run();
|
|
2171
2209
|
break;
|
|
2172
2210
|
case "paragraph":
|
|
2173
|
-
|
|
2211
|
+
Le(t, n) ? e.setParagraph().updateAttributes("paragraph", { class: null }).run() : e.setParagraph().updateAttributes("paragraph", { class: n.className }).run();
|
|
2174
2212
|
break;
|
|
2175
2213
|
case "blockquote":
|
|
2176
|
-
|
|
2214
|
+
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
2215
|
break;
|
|
2178
2216
|
case "codeBlock":
|
|
2179
|
-
|
|
2217
|
+
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
2218
|
break;
|
|
2181
2219
|
case "mark":
|
|
2182
2220
|
e.toggleMark(n.markName).run();
|
|
2183
2221
|
break;
|
|
2184
2222
|
}
|
|
2185
2223
|
}
|
|
2186
|
-
function
|
|
2224
|
+
function Tt(t) {
|
|
2187
2225
|
return new Promise((n, e) => {
|
|
2188
2226
|
const a = new FileReader();
|
|
2189
2227
|
a.onload = () => n(a.result), a.onerror = () => e(a.error), a.readAsDataURL(t);
|
|
2190
2228
|
});
|
|
2191
2229
|
}
|
|
2192
|
-
function
|
|
2230
|
+
function ql(t) {
|
|
2193
2231
|
if (!t) return [];
|
|
2194
2232
|
const n = [];
|
|
2195
2233
|
return Array.from(t.items || []).forEach((e) => {
|
|
@@ -2210,28 +2248,28 @@ function Vt(t) {
|
|
|
2210
2248
|
function jt(t, n, e) {
|
|
2211
2249
|
const a = [];
|
|
2212
2250
|
return t.forEach((r) => {
|
|
2213
|
-
r.type.name === "image" && e.index < n.length ? (a.push(r.type.create(
|
|
2251
|
+
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
2252
|
}), gn.fromArray(a);
|
|
2215
2253
|
}
|
|
2216
|
-
function
|
|
2254
|
+
function Kl(t) {
|
|
2217
2255
|
return (n, e, a) => {
|
|
2218
|
-
const r =
|
|
2219
|
-
return r.length === 0 ? !1 : (e.preventDefault(), Promise.all(r.map(
|
|
2256
|
+
const r = ql(e.clipboardData);
|
|
2257
|
+
return r.length === 0 ? !1 : (e.preventDefault(), Promise.all(r.map(Tt)).then((c) => {
|
|
2220
2258
|
var d;
|
|
2221
2259
|
if (Vt(a.content) > 0) {
|
|
2222
|
-
const h = jt(a.content,
|
|
2260
|
+
const h = jt(a.content, c, { index: 0 }), k = new hn(h, a.openStart, a.openEnd);
|
|
2223
2261
|
n.dispatch(n.state.tr.replaceSelection(k).scrollIntoView());
|
|
2224
2262
|
return;
|
|
2225
2263
|
}
|
|
2226
|
-
(d = t()) == null || d.chain().focus().insertContent(
|
|
2264
|
+
(d = t()) == null || d.chain().focus().insertContent(c.map((h) => ({ type: "image", attrs: { src: h } }))).run();
|
|
2227
2265
|
}), !0);
|
|
2228
2266
|
};
|
|
2229
2267
|
}
|
|
2230
|
-
const
|
|
2268
|
+
const Gl = yn.extend({
|
|
2231
2269
|
name: "link",
|
|
2232
2270
|
addAttributes() {
|
|
2233
2271
|
var t;
|
|
2234
|
-
return
|
|
2272
|
+
return te(z({}, (t = this.parent) == null ? void 0 : t.call(this)), {
|
|
2235
2273
|
download: {
|
|
2236
2274
|
default: null,
|
|
2237
2275
|
parseHTML: (n) => n.getAttribute("download"),
|
|
@@ -2240,7 +2278,7 @@ const ql = yn.extend({
|
|
|
2240
2278
|
});
|
|
2241
2279
|
}
|
|
2242
2280
|
});
|
|
2243
|
-
function
|
|
2281
|
+
function Xl(t) {
|
|
2244
2282
|
let n;
|
|
2245
2283
|
try {
|
|
2246
2284
|
n = new URL(t);
|
|
@@ -2253,8 +2291,8 @@ function Kl(t) {
|
|
|
2253
2291
|
if (a) return `https://www.youtube.com/embed/${a}`;
|
|
2254
2292
|
const r = n.pathname.match(/^\/embed\/([\w-]+)/);
|
|
2255
2293
|
if (r) return `https://www.youtube.com/embed/${r[1]}`;
|
|
2256
|
-
const
|
|
2257
|
-
return
|
|
2294
|
+
const c = n.pathname.match(/^\/shorts\/([\w-]+)/);
|
|
2295
|
+
return c ? `https://www.youtube.com/embed/${c[1]}` : null;
|
|
2258
2296
|
}
|
|
2259
2297
|
if (e === "youtu.be") {
|
|
2260
2298
|
const a = n.pathname.slice(1);
|
|
@@ -2266,7 +2304,7 @@ function Kl(t) {
|
|
|
2266
2304
|
}
|
|
2267
2305
|
return null;
|
|
2268
2306
|
}
|
|
2269
|
-
const
|
|
2307
|
+
const Yl = bn.create({
|
|
2270
2308
|
name: "mediaEmbed",
|
|
2271
2309
|
group: "block",
|
|
2272
2310
|
atom: !0,
|
|
@@ -2295,25 +2333,25 @@ const Gl = bn.create({
|
|
|
2295
2333
|
}
|
|
2296
2334
|
});
|
|
2297
2335
|
function Bt(t) {
|
|
2298
|
-
const n =
|
|
2336
|
+
const n = R(0);
|
|
2299
2337
|
let e;
|
|
2300
2338
|
const a = () => {
|
|
2301
2339
|
n.value += 1;
|
|
2302
|
-
}, r = (
|
|
2303
|
-
e == null || e.off("transaction", a), e =
|
|
2340
|
+
}, r = (c) => {
|
|
2341
|
+
e == null || e.off("transaction", a), e = c, e == null || e.on("transaction", a);
|
|
2304
2342
|
};
|
|
2305
|
-
return me(t, r, { immediate: !0 }),
|
|
2343
|
+
return me(t, r, { immediate: !0 }), Je(() => r(void 0)), n;
|
|
2306
2344
|
}
|
|
2307
|
-
const
|
|
2345
|
+
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
2346
|
__name: "rtf-toolbar",
|
|
2309
2347
|
props: {
|
|
2310
2348
|
editor: {}
|
|
2311
2349
|
},
|
|
2312
2350
|
setup(t) {
|
|
2313
|
-
const n = t, e =
|
|
2351
|
+
const n = t, e = ye, a = C(() => n.editor), r = Bt(a), c = C(() => {
|
|
2314
2352
|
var o;
|
|
2315
2353
|
return !!((o = n.editor) != null && o.isEditable);
|
|
2316
|
-
}), d =
|
|
2354
|
+
}), d = C(() => {
|
|
2317
2355
|
r.value;
|
|
2318
2356
|
const o = n.editor;
|
|
2319
2357
|
return {
|
|
@@ -2343,81 +2381,81 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2343
2381
|
{ level: 6, label: e.Heading6 }
|
|
2344
2382
|
];
|
|
2345
2383
|
function k(o) {
|
|
2346
|
-
var
|
|
2347
|
-
return r.value, o === 0 ? !!((
|
|
2384
|
+
var u, m;
|
|
2385
|
+
return r.value, o === 0 ? !!((u = a.value) != null && u.isActive("paragraph")) : !!((m = a.value) != null && m.isActive("heading", { level: o }));
|
|
2348
2386
|
}
|
|
2349
|
-
const f =
|
|
2387
|
+
const f = C(
|
|
2350
2388
|
() => {
|
|
2351
|
-
var o,
|
|
2352
|
-
return (
|
|
2389
|
+
var o, u;
|
|
2390
|
+
return (u = (o = h.find((m) => k(m.level))) == null ? void 0 : o.label) != null ? u : e.Paragraph;
|
|
2353
2391
|
}
|
|
2354
2392
|
);
|
|
2355
2393
|
function v(o) {
|
|
2356
2394
|
var m;
|
|
2357
|
-
const
|
|
2358
|
-
|
|
2395
|
+
const u = (m = a.value) == null ? void 0 : m.chain().focus();
|
|
2396
|
+
u && (o === 0 ? u.setParagraph().run() : u.toggleHeading({ level: o }).run());
|
|
2359
2397
|
}
|
|
2360
|
-
const
|
|
2361
|
-
function
|
|
2362
|
-
return r.value, !!a.value &&
|
|
2398
|
+
const b = Ol;
|
|
2399
|
+
function _(o) {
|
|
2400
|
+
return r.value, !!a.value && Le(a.value, o);
|
|
2363
2401
|
}
|
|
2364
|
-
const
|
|
2365
|
-
function
|
|
2366
|
-
var
|
|
2367
|
-
const o = (m = (
|
|
2368
|
-
|
|
2402
|
+
const B = R(""), x = R(!1);
|
|
2403
|
+
function V() {
|
|
2404
|
+
var u, m, A;
|
|
2405
|
+
const o = (m = (u = a.value) == null ? void 0 : u.getAttributes("link")) != null ? m : {};
|
|
2406
|
+
B.value = (A = o.href) != null ? A : "", x.value = !!o.download;
|
|
2369
2407
|
}
|
|
2370
|
-
function
|
|
2408
|
+
function E() {
|
|
2371
2409
|
var o;
|
|
2372
|
-
|
|
2410
|
+
B.value && ((o = a.value) == null || o.chain().focus().extendMarkRange("link").setLink({ href: B.value }).updateAttributes("link", { download: x.value ? "file" : null }).run());
|
|
2373
2411
|
}
|
|
2374
|
-
function
|
|
2412
|
+
function L() {
|
|
2375
2413
|
var o;
|
|
2376
2414
|
(o = a.value) == null || o.chain().focus().unsetLink().run();
|
|
2377
2415
|
}
|
|
2378
|
-
const
|
|
2379
|
-
function
|
|
2416
|
+
const g = R(""), $ = R();
|
|
2417
|
+
function W() {
|
|
2380
2418
|
var o;
|
|
2381
|
-
|
|
2419
|
+
g.value && ((o = a.value) == null || o.chain().focus().setImage({ src: g.value }).run(), g.value = "");
|
|
2382
2420
|
}
|
|
2383
|
-
function
|
|
2421
|
+
function q() {
|
|
2384
2422
|
var o;
|
|
2385
|
-
(o =
|
|
2386
|
-
}
|
|
2387
|
-
function
|
|
2388
|
-
return
|
|
2389
|
-
var
|
|
2390
|
-
const
|
|
2391
|
-
if (!
|
|
2392
|
-
const m = yield
|
|
2393
|
-
(
|
|
2423
|
+
(o = $.value) == null || o.click();
|
|
2424
|
+
}
|
|
2425
|
+
function Z(o) {
|
|
2426
|
+
return he(this, null, function* () {
|
|
2427
|
+
var A, S;
|
|
2428
|
+
const u = (A = o.target.files) == null ? void 0 : A[0];
|
|
2429
|
+
if (!u) return;
|
|
2430
|
+
const m = yield Tt(u);
|
|
2431
|
+
(S = a.value) == null || S.chain().focus().setImage({ src: m }).run(), o.target.value = "";
|
|
2394
2432
|
});
|
|
2395
2433
|
}
|
|
2396
|
-
const
|
|
2434
|
+
const M = R("");
|
|
2397
2435
|
function w() {
|
|
2398
2436
|
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": !
|
|
2437
|
+
if (!M.value) return;
|
|
2438
|
+
const o = Xl(M.value), u = (m = a.value) == null ? void 0 : m.chain().focus();
|
|
2439
|
+
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 = "");
|
|
2440
|
+
}
|
|
2441
|
+
return (o, u) => {
|
|
2442
|
+
const m = P("v-btn"), A = P("v-divider"), S = P("v-list-item-title"), N = 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");
|
|
2443
|
+
return T(), Q("div", {
|
|
2444
|
+
class: ue(["rtf-toolbar", { "rtf-toolbar--disabled": !c.value }])
|
|
2407
2445
|
}, [
|
|
2408
2446
|
i(m, {
|
|
2409
2447
|
icon: "",
|
|
2410
2448
|
size: "small",
|
|
2411
2449
|
variant: "text",
|
|
2412
2450
|
title: l(e).Undo,
|
|
2413
|
-
disabled: !
|
|
2414
|
-
onClick:
|
|
2451
|
+
disabled: !c.value || !d.value.canUndo,
|
|
2452
|
+
onClick: u[0] || (u[0] = (y) => {
|
|
2415
2453
|
var p;
|
|
2416
2454
|
return (p = a.value) == null ? void 0 : p.chain().focus().undo().run();
|
|
2417
2455
|
})
|
|
2418
2456
|
}, {
|
|
2419
2457
|
default: s(() => [
|
|
2420
|
-
i(l(
|
|
2458
|
+
i(l(j), { name: "mdi-undo" })
|
|
2421
2459
|
]),
|
|
2422
2460
|
_: 1
|
|
2423
2461
|
}, 8, ["title", "disabled"]),
|
|
@@ -2426,18 +2464,18 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2426
2464
|
size: "small",
|
|
2427
2465
|
variant: "text",
|
|
2428
2466
|
title: l(e).Redo,
|
|
2429
|
-
disabled: !
|
|
2430
|
-
onClick:
|
|
2467
|
+
disabled: !c.value || !d.value.canRedo,
|
|
2468
|
+
onClick: u[1] || (u[1] = (y) => {
|
|
2431
2469
|
var p;
|
|
2432
2470
|
return (p = a.value) == null ? void 0 : p.chain().focus().redo().run();
|
|
2433
2471
|
})
|
|
2434
2472
|
}, {
|
|
2435
2473
|
default: s(() => [
|
|
2436
|
-
i(l(
|
|
2474
|
+
i(l(j), { name: "mdi-redo" })
|
|
2437
2475
|
]),
|
|
2438
2476
|
_: 1
|
|
2439
2477
|
}, 8, ["title", "disabled"]),
|
|
2440
|
-
i(
|
|
2478
|
+
i(A, {
|
|
2441
2479
|
vertical: "",
|
|
2442
2480
|
inset: "",
|
|
2443
2481
|
class: "mx-1"
|
|
@@ -2447,28 +2485,28 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2447
2485
|
size: "small",
|
|
2448
2486
|
variant: "text",
|
|
2449
2487
|
title: l(e).SelectAll,
|
|
2450
|
-
disabled: !
|
|
2451
|
-
onClick:
|
|
2488
|
+
disabled: !c.value,
|
|
2489
|
+
onClick: u[2] || (u[2] = (y) => {
|
|
2452
2490
|
var p;
|
|
2453
2491
|
return (p = a.value) == null ? void 0 : p.chain().focus().selectAll().run();
|
|
2454
2492
|
})
|
|
2455
2493
|
}, {
|
|
2456
2494
|
default: s(() => [
|
|
2457
|
-
i(l(
|
|
2495
|
+
i(l(j), { name: "mdi-select-all" })
|
|
2458
2496
|
]),
|
|
2459
2497
|
_: 1
|
|
2460
2498
|
}, 8, ["title", "disabled"]),
|
|
2461
|
-
i(
|
|
2499
|
+
i(A, {
|
|
2462
2500
|
vertical: "",
|
|
2463
2501
|
inset: "",
|
|
2464
2502
|
class: "mx-1"
|
|
2465
2503
|
}),
|
|
2466
|
-
i(
|
|
2504
|
+
i(D, null, {
|
|
2467
2505
|
activator: s(({ props: y }) => [
|
|
2468
2506
|
i(m, X({
|
|
2469
2507
|
size: "small",
|
|
2470
2508
|
variant: "text",
|
|
2471
|
-
disabled: !
|
|
2509
|
+
disabled: !c.value
|
|
2472
2510
|
}, y, { "append-icon": "mdi-chevron-down" }), {
|
|
2473
2511
|
default: s(() => [
|
|
2474
2512
|
J(G(f.value), 1)
|
|
@@ -2477,15 +2515,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2477
2515
|
}, 16, ["disabled"])
|
|
2478
2516
|
]),
|
|
2479
2517
|
default: s(() => [
|
|
2480
|
-
i(
|
|
2518
|
+
i(le, { density: "compact" }, {
|
|
2481
2519
|
default: s(() => [
|
|
2482
|
-
(
|
|
2520
|
+
(T(), Q(Se, null, Ye(h, (y) => i(N, {
|
|
2483
2521
|
key: y.level,
|
|
2484
2522
|
active: k(y.level),
|
|
2485
2523
|
onClick: (p) => v(y.level)
|
|
2486
2524
|
}, {
|
|
2487
2525
|
default: s(() => [
|
|
2488
|
-
i(
|
|
2526
|
+
i(S, null, {
|
|
2489
2527
|
default: s(() => [
|
|
2490
2528
|
J(G(y.label), 1)
|
|
2491
2529
|
]),
|
|
@@ -2500,12 +2538,12 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2500
2538
|
]),
|
|
2501
2539
|
_: 1
|
|
2502
2540
|
}),
|
|
2503
|
-
i(
|
|
2541
|
+
i(D, null, {
|
|
2504
2542
|
activator: s(({ props: y }) => [
|
|
2505
2543
|
i(m, X({
|
|
2506
2544
|
size: "small",
|
|
2507
2545
|
variant: "text",
|
|
2508
|
-
disabled: !
|
|
2546
|
+
disabled: !c.value
|
|
2509
2547
|
}, y, { "append-icon": "mdi-chevron-down" }), {
|
|
2510
2548
|
default: s(() => [
|
|
2511
2549
|
J(G(l(e).Style), 1)
|
|
@@ -2514,15 +2552,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2514
2552
|
}, 16, ["disabled"])
|
|
2515
2553
|
]),
|
|
2516
2554
|
default: s(() => [
|
|
2517
|
-
i(
|
|
2555
|
+
i(le, { density: "compact" }, {
|
|
2518
2556
|
default: s(() => [
|
|
2519
|
-
(
|
|
2557
|
+
(T(!0), Q(Se, null, Ye(l(b), (y) => (T(), H(N, {
|
|
2520
2558
|
key: y.key,
|
|
2521
|
-
active:
|
|
2522
|
-
onClick: (p) => a.value && l(
|
|
2559
|
+
active: _(y),
|
|
2560
|
+
onClick: (p) => a.value && l(Wl)(a.value, y)
|
|
2523
2561
|
}, {
|
|
2524
2562
|
default: s(() => [
|
|
2525
|
-
i(
|
|
2563
|
+
i(S, null, {
|
|
2526
2564
|
default: s(() => [
|
|
2527
2565
|
J(G(l(e)[y.key]), 1)
|
|
2528
2566
|
]),
|
|
@@ -2537,7 +2575,7 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2537
2575
|
]),
|
|
2538
2576
|
_: 1
|
|
2539
2577
|
}),
|
|
2540
|
-
i(
|
|
2578
|
+
i(A, {
|
|
2541
2579
|
vertical: "",
|
|
2542
2580
|
inset: "",
|
|
2543
2581
|
class: "mx-1"
|
|
@@ -2547,15 +2585,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2547
2585
|
size: "small",
|
|
2548
2586
|
variant: "text",
|
|
2549
2587
|
title: l(e).Bold,
|
|
2550
|
-
disabled: !
|
|
2588
|
+
disabled: !c.value,
|
|
2551
2589
|
active: d.value.bold,
|
|
2552
|
-
onClick:
|
|
2590
|
+
onClick: u[3] || (u[3] = (y) => {
|
|
2553
2591
|
var p;
|
|
2554
2592
|
return (p = a.value) == null ? void 0 : p.chain().focus().toggleBold().run();
|
|
2555
2593
|
})
|
|
2556
2594
|
}, {
|
|
2557
2595
|
default: s(() => [
|
|
2558
|
-
i(l(
|
|
2596
|
+
i(l(j), { name: "mdi-format-bold" })
|
|
2559
2597
|
]),
|
|
2560
2598
|
_: 1
|
|
2561
2599
|
}, 8, ["title", "disabled", "active"]),
|
|
@@ -2564,19 +2602,19 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2564
2602
|
size: "small",
|
|
2565
2603
|
variant: "text",
|
|
2566
2604
|
title: l(e).Italic,
|
|
2567
|
-
disabled: !
|
|
2605
|
+
disabled: !c.value,
|
|
2568
2606
|
active: d.value.italic,
|
|
2569
|
-
onClick:
|
|
2607
|
+
onClick: u[4] || (u[4] = (y) => {
|
|
2570
2608
|
var p;
|
|
2571
2609
|
return (p = a.value) == null ? void 0 : p.chain().focus().toggleItalic().run();
|
|
2572
2610
|
})
|
|
2573
2611
|
}, {
|
|
2574
2612
|
default: s(() => [
|
|
2575
|
-
i(l(
|
|
2613
|
+
i(l(j), { name: "mdi-format-italic" })
|
|
2576
2614
|
]),
|
|
2577
2615
|
_: 1
|
|
2578
2616
|
}, 8, ["title", "disabled", "active"]),
|
|
2579
|
-
i(
|
|
2617
|
+
i(A, {
|
|
2580
2618
|
vertical: "",
|
|
2581
2619
|
inset: "",
|
|
2582
2620
|
class: "mx-1"
|
|
@@ -2586,20 +2624,20 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2586
2624
|
size: "small",
|
|
2587
2625
|
variant: "text",
|
|
2588
2626
|
title: l(e).HorizontalLine,
|
|
2589
|
-
disabled: !
|
|
2590
|
-
onClick:
|
|
2627
|
+
disabled: !c.value,
|
|
2628
|
+
onClick: u[5] || (u[5] = (y) => {
|
|
2591
2629
|
var p;
|
|
2592
2630
|
return (p = a.value) == null ? void 0 : p.chain().focus().setHorizontalRule().run();
|
|
2593
2631
|
})
|
|
2594
2632
|
}, {
|
|
2595
2633
|
default: s(() => [
|
|
2596
|
-
i(l(
|
|
2634
|
+
i(l(j), { name: "mdi-minus" })
|
|
2597
2635
|
]),
|
|
2598
2636
|
_: 1
|
|
2599
2637
|
}, 8, ["title", "disabled"]),
|
|
2600
|
-
i(
|
|
2638
|
+
i(D, {
|
|
2601
2639
|
"close-on-content-click": !1,
|
|
2602
|
-
"onUpdate:modelValue":
|
|
2640
|
+
"onUpdate:modelValue": u[8] || (u[8] = (y) => y && V())
|
|
2603
2641
|
}, {
|
|
2604
2642
|
activator: s(({ props: y }) => [
|
|
2605
2643
|
i(m, X({
|
|
@@ -2607,44 +2645,44 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2607
2645
|
size: "small",
|
|
2608
2646
|
variant: "text",
|
|
2609
2647
|
title: l(e).Link,
|
|
2610
|
-
disabled: !
|
|
2648
|
+
disabled: !c.value,
|
|
2611
2649
|
active: d.value.link
|
|
2612
2650
|
}, y), {
|
|
2613
2651
|
default: s(() => [
|
|
2614
|
-
i(l(
|
|
2652
|
+
i(l(j), { name: "mdi-link-variant" })
|
|
2615
2653
|
]),
|
|
2616
2654
|
_: 1
|
|
2617
2655
|
}, 16, ["title", "disabled", "active"])
|
|
2618
2656
|
]),
|
|
2619
2657
|
default: s(() => [
|
|
2620
|
-
i(
|
|
2658
|
+
i(ee, {
|
|
2621
2659
|
"min-width": "280",
|
|
2622
2660
|
class: "pa-3"
|
|
2623
2661
|
}, {
|
|
2624
2662
|
default: s(() => [
|
|
2625
|
-
i(
|
|
2626
|
-
modelValue:
|
|
2627
|
-
"onUpdate:modelValue":
|
|
2663
|
+
i(O, {
|
|
2664
|
+
modelValue: B.value,
|
|
2665
|
+
"onUpdate:modelValue": u[6] || (u[6] = (y) => B.value = y),
|
|
2628
2666
|
label: l(e).LinkUrl,
|
|
2629
2667
|
density: "compact",
|
|
2630
2668
|
"hide-details": "",
|
|
2631
2669
|
autofocus: "",
|
|
2632
|
-
onKeydown:
|
|
2670
|
+
onKeydown: $e(E, ["enter"])
|
|
2633
2671
|
}, null, 8, ["modelValue", "label"]),
|
|
2634
|
-
i(
|
|
2635
|
-
modelValue:
|
|
2636
|
-
"onUpdate:modelValue":
|
|
2672
|
+
i(K, {
|
|
2673
|
+
modelValue: x.value,
|
|
2674
|
+
"onUpdate:modelValue": u[7] || (u[7] = (y) => x.value = y),
|
|
2637
2675
|
label: l(e).Downloadable,
|
|
2638
2676
|
density: "compact",
|
|
2639
2677
|
"hide-details": "",
|
|
2640
2678
|
class: "mt-1"
|
|
2641
2679
|
}, null, 8, ["modelValue", "label"]),
|
|
2642
|
-
|
|
2643
|
-
d.value.link ? (
|
|
2680
|
+
ae("div", Jl, [
|
|
2681
|
+
d.value.link ? (T(), H(m, {
|
|
2644
2682
|
key: 0,
|
|
2645
2683
|
size: "small",
|
|
2646
2684
|
variant: "text",
|
|
2647
|
-
onClick:
|
|
2685
|
+
onClick: L
|
|
2648
2686
|
}, {
|
|
2649
2687
|
default: s(() => [
|
|
2650
2688
|
J(G(l(e).LinkRemove), 1)
|
|
@@ -2655,7 +2693,7 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2655
2693
|
size: "small",
|
|
2656
2694
|
color: "primary",
|
|
2657
2695
|
variant: "tonal",
|
|
2658
|
-
onClick:
|
|
2696
|
+
onClick: E
|
|
2659
2697
|
}, {
|
|
2660
2698
|
default: s(() => [
|
|
2661
2699
|
J(G(l(e).LinkApply), 1)
|
|
@@ -2669,42 +2707,42 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2669
2707
|
]),
|
|
2670
2708
|
_: 1
|
|
2671
2709
|
}),
|
|
2672
|
-
i(
|
|
2710
|
+
i(D, { "close-on-content-click": !1 }, {
|
|
2673
2711
|
activator: s(({ props: y }) => [
|
|
2674
2712
|
i(m, X({
|
|
2675
2713
|
icon: "",
|
|
2676
2714
|
size: "small",
|
|
2677
2715
|
variant: "text",
|
|
2678
2716
|
title: l(e).Image,
|
|
2679
|
-
disabled: !
|
|
2717
|
+
disabled: !c.value
|
|
2680
2718
|
}, y), {
|
|
2681
2719
|
default: s(() => [
|
|
2682
|
-
i(l(
|
|
2720
|
+
i(l(j), { name: "mdi-image-plus" })
|
|
2683
2721
|
]),
|
|
2684
2722
|
_: 1
|
|
2685
2723
|
}, 16, ["title", "disabled"])
|
|
2686
2724
|
]),
|
|
2687
2725
|
default: s(() => [
|
|
2688
|
-
i(
|
|
2726
|
+
i(ee, {
|
|
2689
2727
|
"min-width": "280",
|
|
2690
2728
|
class: "pa-3"
|
|
2691
2729
|
}, {
|
|
2692
2730
|
default: s(() => [
|
|
2693
|
-
i(
|
|
2694
|
-
modelValue:
|
|
2695
|
-
"onUpdate:modelValue":
|
|
2731
|
+
i(O, {
|
|
2732
|
+
modelValue: g.value,
|
|
2733
|
+
"onUpdate:modelValue": u[9] || (u[9] = (y) => g.value = y),
|
|
2696
2734
|
label: l(e).ImageUrl,
|
|
2697
2735
|
density: "compact",
|
|
2698
2736
|
"hide-details": "",
|
|
2699
2737
|
autofocus: "",
|
|
2700
|
-
onKeydown:
|
|
2738
|
+
onKeydown: $e(W, ["enter"])
|
|
2701
2739
|
}, null, 8, ["modelValue", "label"]),
|
|
2702
|
-
|
|
2740
|
+
ae("div", Ql, [
|
|
2703
2741
|
i(m, {
|
|
2704
2742
|
size: "small",
|
|
2705
2743
|
variant: "text",
|
|
2706
2744
|
"prepend-icon": "mdi-upload",
|
|
2707
|
-
onClick:
|
|
2745
|
+
onClick: q
|
|
2708
2746
|
}, {
|
|
2709
2747
|
default: s(() => [
|
|
2710
2748
|
J(G(l(e).ImageUpload), 1)
|
|
@@ -2715,7 +2753,7 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2715
2753
|
size: "small",
|
|
2716
2754
|
color: "primary",
|
|
2717
2755
|
variant: "tonal",
|
|
2718
|
-
onClick:
|
|
2756
|
+
onClick: W
|
|
2719
2757
|
}, {
|
|
2720
2758
|
default: s(() => [
|
|
2721
2759
|
J(G(l(e).ImageInsert), 1)
|
|
@@ -2729,45 +2767,45 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2729
2767
|
]),
|
|
2730
2768
|
_: 1
|
|
2731
2769
|
}),
|
|
2732
|
-
|
|
2770
|
+
ae("input", {
|
|
2733
2771
|
ref_key: "imageInput",
|
|
2734
|
-
ref:
|
|
2772
|
+
ref: $,
|
|
2735
2773
|
type: "file",
|
|
2736
2774
|
accept: "image/*",
|
|
2737
2775
|
class: "d-none",
|
|
2738
|
-
onChange:
|
|
2776
|
+
onChange: Z
|
|
2739
2777
|
}, null, 544),
|
|
2740
|
-
i(
|
|
2778
|
+
i(D, { "close-on-content-click": !1 }, {
|
|
2741
2779
|
activator: s(({ props: y }) => [
|
|
2742
2780
|
i(m, X({
|
|
2743
2781
|
icon: "",
|
|
2744
2782
|
size: "small",
|
|
2745
2783
|
variant: "text",
|
|
2746
2784
|
title: l(e).MediaEmbed,
|
|
2747
|
-
disabled: !
|
|
2785
|
+
disabled: !c.value
|
|
2748
2786
|
}, y), {
|
|
2749
2787
|
default: s(() => [
|
|
2750
|
-
i(l(
|
|
2788
|
+
i(l(j), { name: "mdi-video-plus" })
|
|
2751
2789
|
]),
|
|
2752
2790
|
_: 1
|
|
2753
2791
|
}, 16, ["title", "disabled"])
|
|
2754
2792
|
]),
|
|
2755
2793
|
default: s(() => [
|
|
2756
|
-
i(
|
|
2794
|
+
i(ee, {
|
|
2757
2795
|
"min-width": "280",
|
|
2758
2796
|
class: "pa-3"
|
|
2759
2797
|
}, {
|
|
2760
2798
|
default: s(() => [
|
|
2761
|
-
i(
|
|
2762
|
-
modelValue:
|
|
2763
|
-
"onUpdate:modelValue":
|
|
2799
|
+
i(O, {
|
|
2800
|
+
modelValue: M.value,
|
|
2801
|
+
"onUpdate:modelValue": u[10] || (u[10] = (y) => M.value = y),
|
|
2764
2802
|
label: l(e).MediaEmbedUrl,
|
|
2765
2803
|
density: "compact",
|
|
2766
2804
|
"hide-details": "",
|
|
2767
2805
|
autofocus: "",
|
|
2768
|
-
onKeydown:
|
|
2806
|
+
onKeydown: $e(w, ["enter"])
|
|
2769
2807
|
}, null, 8, ["modelValue", "label"]),
|
|
2770
|
-
|
|
2808
|
+
ae("div", Zl, [
|
|
2771
2809
|
i(m, {
|
|
2772
2810
|
size: "small",
|
|
2773
2811
|
color: "primary",
|
|
@@ -2786,35 +2824,35 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2786
2824
|
]),
|
|
2787
2825
|
_: 1
|
|
2788
2826
|
}),
|
|
2789
|
-
i(
|
|
2827
|
+
i(D, null, {
|
|
2790
2828
|
activator: s(({ props: y }) => [
|
|
2791
2829
|
i(m, X({
|
|
2792
2830
|
icon: "",
|
|
2793
2831
|
size: "small",
|
|
2794
2832
|
variant: "text",
|
|
2795
2833
|
title: l(e).Table,
|
|
2796
|
-
disabled: !
|
|
2834
|
+
disabled: !c.value
|
|
2797
2835
|
}, y), {
|
|
2798
2836
|
default: s(() => [
|
|
2799
|
-
i(l(
|
|
2837
|
+
i(l(j), { name: "mdi-table" })
|
|
2800
2838
|
]),
|
|
2801
2839
|
_: 1
|
|
2802
2840
|
}, 16, ["title", "disabled"])
|
|
2803
2841
|
]),
|
|
2804
2842
|
default: s(() => [
|
|
2805
|
-
i(
|
|
2843
|
+
i(le, { density: "compact" }, {
|
|
2806
2844
|
default: s(() => [
|
|
2807
|
-
i(
|
|
2808
|
-
onClick:
|
|
2845
|
+
i(N, {
|
|
2846
|
+
onClick: u[11] || (u[11] = (y) => {
|
|
2809
2847
|
var p;
|
|
2810
2848
|
return (p = a.value) == null ? void 0 : p.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: !0 }).run();
|
|
2811
2849
|
})
|
|
2812
2850
|
}, {
|
|
2813
2851
|
prepend: s(() => [
|
|
2814
|
-
i(l(
|
|
2852
|
+
i(l(j), { name: "mdi-table-plus" })
|
|
2815
2853
|
]),
|
|
2816
2854
|
default: s(() => [
|
|
2817
|
-
i(
|
|
2855
|
+
i(S, null, {
|
|
2818
2856
|
default: s(() => [
|
|
2819
2857
|
J(G(l(e).TableInsert), 1)
|
|
2820
2858
|
]),
|
|
@@ -2823,19 +2861,19 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2823
2861
|
]),
|
|
2824
2862
|
_: 1
|
|
2825
2863
|
}),
|
|
2826
|
-
i(
|
|
2827
|
-
i(
|
|
2864
|
+
i(A),
|
|
2865
|
+
i(N, {
|
|
2828
2866
|
disabled: !d.value.inTable,
|
|
2829
|
-
onClick:
|
|
2867
|
+
onClick: u[12] || (u[12] = (y) => {
|
|
2830
2868
|
var p;
|
|
2831
2869
|
return (p = a.value) == null ? void 0 : p.chain().focus().addRowBefore().run();
|
|
2832
2870
|
})
|
|
2833
2871
|
}, {
|
|
2834
2872
|
prepend: s(() => [
|
|
2835
|
-
i(l(
|
|
2873
|
+
i(l(j), { name: "mdi-table-row-plus-before" })
|
|
2836
2874
|
]),
|
|
2837
2875
|
default: s(() => [
|
|
2838
|
-
i(
|
|
2876
|
+
i(S, null, {
|
|
2839
2877
|
default: s(() => [
|
|
2840
2878
|
J(G(l(e).TableAddRowAbove), 1)
|
|
2841
2879
|
]),
|
|
@@ -2844,18 +2882,18 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2844
2882
|
]),
|
|
2845
2883
|
_: 1
|
|
2846
2884
|
}, 8, ["disabled"]),
|
|
2847
|
-
i(
|
|
2885
|
+
i(N, {
|
|
2848
2886
|
disabled: !d.value.inTable,
|
|
2849
|
-
onClick:
|
|
2887
|
+
onClick: u[13] || (u[13] = (y) => {
|
|
2850
2888
|
var p;
|
|
2851
2889
|
return (p = a.value) == null ? void 0 : p.chain().focus().addRowAfter().run();
|
|
2852
2890
|
})
|
|
2853
2891
|
}, {
|
|
2854
2892
|
prepend: s(() => [
|
|
2855
|
-
i(l(
|
|
2893
|
+
i(l(j), { name: "mdi-table-row-plus-after" })
|
|
2856
2894
|
]),
|
|
2857
2895
|
default: s(() => [
|
|
2858
|
-
i(
|
|
2896
|
+
i(S, null, {
|
|
2859
2897
|
default: s(() => [
|
|
2860
2898
|
J(G(l(e).TableAddRowBelow), 1)
|
|
2861
2899
|
]),
|
|
@@ -2864,18 +2902,18 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2864
2902
|
]),
|
|
2865
2903
|
_: 1
|
|
2866
2904
|
}, 8, ["disabled"]),
|
|
2867
|
-
i(
|
|
2905
|
+
i(N, {
|
|
2868
2906
|
disabled: !d.value.inTable,
|
|
2869
|
-
onClick:
|
|
2907
|
+
onClick: u[14] || (u[14] = (y) => {
|
|
2870
2908
|
var p;
|
|
2871
2909
|
return (p = a.value) == null ? void 0 : p.chain().focus().deleteRow().run();
|
|
2872
2910
|
})
|
|
2873
2911
|
}, {
|
|
2874
2912
|
prepend: s(() => [
|
|
2875
|
-
i(l(
|
|
2913
|
+
i(l(j), { name: "mdi-table-row-remove" })
|
|
2876
2914
|
]),
|
|
2877
2915
|
default: s(() => [
|
|
2878
|
-
i(
|
|
2916
|
+
i(S, null, {
|
|
2879
2917
|
default: s(() => [
|
|
2880
2918
|
J(G(l(e).TableDeleteRow), 1)
|
|
2881
2919
|
]),
|
|
@@ -2884,19 +2922,19 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2884
2922
|
]),
|
|
2885
2923
|
_: 1
|
|
2886
2924
|
}, 8, ["disabled"]),
|
|
2887
|
-
i(
|
|
2888
|
-
i(
|
|
2925
|
+
i(A),
|
|
2926
|
+
i(N, {
|
|
2889
2927
|
disabled: !d.value.inTable,
|
|
2890
|
-
onClick:
|
|
2928
|
+
onClick: u[15] || (u[15] = (y) => {
|
|
2891
2929
|
var p;
|
|
2892
2930
|
return (p = a.value) == null ? void 0 : p.chain().focus().addColumnBefore().run();
|
|
2893
2931
|
})
|
|
2894
2932
|
}, {
|
|
2895
2933
|
prepend: s(() => [
|
|
2896
|
-
i(l(
|
|
2934
|
+
i(l(j), { name: "mdi-table-column-plus-before" })
|
|
2897
2935
|
]),
|
|
2898
2936
|
default: s(() => [
|
|
2899
|
-
i(
|
|
2937
|
+
i(S, null, {
|
|
2900
2938
|
default: s(() => [
|
|
2901
2939
|
J(G(l(e).TableAddColumnBefore), 1)
|
|
2902
2940
|
]),
|
|
@@ -2905,18 +2943,18 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2905
2943
|
]),
|
|
2906
2944
|
_: 1
|
|
2907
2945
|
}, 8, ["disabled"]),
|
|
2908
|
-
i(
|
|
2946
|
+
i(N, {
|
|
2909
2947
|
disabled: !d.value.inTable,
|
|
2910
|
-
onClick:
|
|
2948
|
+
onClick: u[16] || (u[16] = (y) => {
|
|
2911
2949
|
var p;
|
|
2912
2950
|
return (p = a.value) == null ? void 0 : p.chain().focus().addColumnAfter().run();
|
|
2913
2951
|
})
|
|
2914
2952
|
}, {
|
|
2915
2953
|
prepend: s(() => [
|
|
2916
|
-
i(l(
|
|
2954
|
+
i(l(j), { name: "mdi-table-column-plus-after" })
|
|
2917
2955
|
]),
|
|
2918
2956
|
default: s(() => [
|
|
2919
|
-
i(
|
|
2957
|
+
i(S, null, {
|
|
2920
2958
|
default: s(() => [
|
|
2921
2959
|
J(G(l(e).TableAddColumnAfter), 1)
|
|
2922
2960
|
]),
|
|
@@ -2925,18 +2963,18 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2925
2963
|
]),
|
|
2926
2964
|
_: 1
|
|
2927
2965
|
}, 8, ["disabled"]),
|
|
2928
|
-
i(
|
|
2966
|
+
i(N, {
|
|
2929
2967
|
disabled: !d.value.inTable,
|
|
2930
|
-
onClick:
|
|
2968
|
+
onClick: u[17] || (u[17] = (y) => {
|
|
2931
2969
|
var p;
|
|
2932
2970
|
return (p = a.value) == null ? void 0 : p.chain().focus().deleteColumn().run();
|
|
2933
2971
|
})
|
|
2934
2972
|
}, {
|
|
2935
2973
|
prepend: s(() => [
|
|
2936
|
-
i(l(
|
|
2974
|
+
i(l(j), { name: "mdi-table-column-remove" })
|
|
2937
2975
|
]),
|
|
2938
2976
|
default: s(() => [
|
|
2939
|
-
i(
|
|
2977
|
+
i(S, null, {
|
|
2940
2978
|
default: s(() => [
|
|
2941
2979
|
J(G(l(e).TableDeleteColumn), 1)
|
|
2942
2980
|
]),
|
|
@@ -2945,19 +2983,19 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2945
2983
|
]),
|
|
2946
2984
|
_: 1
|
|
2947
2985
|
}, 8, ["disabled"]),
|
|
2948
|
-
i(
|
|
2949
|
-
i(
|
|
2986
|
+
i(A),
|
|
2987
|
+
i(N, {
|
|
2950
2988
|
disabled: !d.value.inTable,
|
|
2951
|
-
onClick:
|
|
2989
|
+
onClick: u[18] || (u[18] = (y) => {
|
|
2952
2990
|
var p;
|
|
2953
2991
|
return (p = a.value) == null ? void 0 : p.chain().focus().toggleHeaderRow().run();
|
|
2954
2992
|
})
|
|
2955
2993
|
}, {
|
|
2956
2994
|
prepend: s(() => [
|
|
2957
|
-
i(l(
|
|
2995
|
+
i(l(j), { name: "mdi-table-row" })
|
|
2958
2996
|
]),
|
|
2959
2997
|
default: s(() => [
|
|
2960
|
-
i(
|
|
2998
|
+
i(S, null, {
|
|
2961
2999
|
default: s(() => [
|
|
2962
3000
|
J(G(l(e).TableToggleHeaderRow), 1)
|
|
2963
3001
|
]),
|
|
@@ -2966,18 +3004,18 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2966
3004
|
]),
|
|
2967
3005
|
_: 1
|
|
2968
3006
|
}, 8, ["disabled"]),
|
|
2969
|
-
i(
|
|
3007
|
+
i(N, {
|
|
2970
3008
|
disabled: !d.value.inTable,
|
|
2971
|
-
onClick:
|
|
3009
|
+
onClick: u[19] || (u[19] = (y) => {
|
|
2972
3010
|
var p;
|
|
2973
3011
|
return (p = a.value) == null ? void 0 : p.chain().focus().deleteTable().run();
|
|
2974
3012
|
})
|
|
2975
3013
|
}, {
|
|
2976
3014
|
prepend: s(() => [
|
|
2977
|
-
i(l(
|
|
3015
|
+
i(l(j), { name: "mdi-table-remove" })
|
|
2978
3016
|
]),
|
|
2979
3017
|
default: s(() => [
|
|
2980
|
-
i(
|
|
3018
|
+
i(S, null, {
|
|
2981
3019
|
default: s(() => [
|
|
2982
3020
|
J(G(l(e).TableDeleteTable), 1)
|
|
2983
3021
|
]),
|
|
@@ -2997,19 +3035,19 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
2997
3035
|
size: "small",
|
|
2998
3036
|
variant: "text",
|
|
2999
3037
|
title: l(e).Blockquote,
|
|
3000
|
-
disabled: !
|
|
3038
|
+
disabled: !c.value,
|
|
3001
3039
|
active: d.value.blockquote,
|
|
3002
|
-
onClick:
|
|
3040
|
+
onClick: u[20] || (u[20] = (y) => {
|
|
3003
3041
|
var p;
|
|
3004
3042
|
return (p = a.value) == null ? void 0 : p.chain().focus().toggleBlockquote().run();
|
|
3005
3043
|
})
|
|
3006
3044
|
}, {
|
|
3007
3045
|
default: s(() => [
|
|
3008
|
-
i(l(
|
|
3046
|
+
i(l(j), { name: "mdi-format-quote-close" })
|
|
3009
3047
|
]),
|
|
3010
3048
|
_: 1
|
|
3011
3049
|
}, 8, ["title", "disabled", "active"]),
|
|
3012
|
-
i(
|
|
3050
|
+
i(A, {
|
|
3013
3051
|
vertical: "",
|
|
3014
3052
|
inset: "",
|
|
3015
3053
|
class: "mx-1"
|
|
@@ -3019,15 +3057,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
3019
3057
|
size: "small",
|
|
3020
3058
|
variant: "text",
|
|
3021
3059
|
title: l(e).AlignLeft,
|
|
3022
|
-
disabled: !
|
|
3060
|
+
disabled: !c.value,
|
|
3023
3061
|
active: d.value.alignLeft,
|
|
3024
|
-
onClick:
|
|
3062
|
+
onClick: u[21] || (u[21] = (y) => {
|
|
3025
3063
|
var p;
|
|
3026
3064
|
return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("left").run();
|
|
3027
3065
|
})
|
|
3028
3066
|
}, {
|
|
3029
3067
|
default: s(() => [
|
|
3030
|
-
i(l(
|
|
3068
|
+
i(l(j), { name: "mdi-format-align-left" })
|
|
3031
3069
|
]),
|
|
3032
3070
|
_: 1
|
|
3033
3071
|
}, 8, ["title", "disabled", "active"]),
|
|
@@ -3036,15 +3074,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
3036
3074
|
size: "small",
|
|
3037
3075
|
variant: "text",
|
|
3038
3076
|
title: l(e).AlignCenter,
|
|
3039
|
-
disabled: !
|
|
3077
|
+
disabled: !c.value,
|
|
3040
3078
|
active: d.value.alignCenter,
|
|
3041
|
-
onClick:
|
|
3079
|
+
onClick: u[22] || (u[22] = (y) => {
|
|
3042
3080
|
var p;
|
|
3043
3081
|
return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("center").run();
|
|
3044
3082
|
})
|
|
3045
3083
|
}, {
|
|
3046
3084
|
default: s(() => [
|
|
3047
|
-
i(l(
|
|
3085
|
+
i(l(j), { name: "mdi-format-align-center" })
|
|
3048
3086
|
]),
|
|
3049
3087
|
_: 1
|
|
3050
3088
|
}, 8, ["title", "disabled", "active"]),
|
|
@@ -3053,15 +3091,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
3053
3091
|
size: "small",
|
|
3054
3092
|
variant: "text",
|
|
3055
3093
|
title: l(e).AlignRight,
|
|
3056
|
-
disabled: !
|
|
3094
|
+
disabled: !c.value,
|
|
3057
3095
|
active: d.value.alignRight,
|
|
3058
|
-
onClick:
|
|
3096
|
+
onClick: u[23] || (u[23] = (y) => {
|
|
3059
3097
|
var p;
|
|
3060
3098
|
return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("right").run();
|
|
3061
3099
|
})
|
|
3062
3100
|
}, {
|
|
3063
3101
|
default: s(() => [
|
|
3064
|
-
i(l(
|
|
3102
|
+
i(l(j), { name: "mdi-format-align-right" })
|
|
3065
3103
|
]),
|
|
3066
3104
|
_: 1
|
|
3067
3105
|
}, 8, ["title", "disabled", "active"]),
|
|
@@ -3070,19 +3108,19 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
3070
3108
|
size: "small",
|
|
3071
3109
|
variant: "text",
|
|
3072
3110
|
title: l(e).AlignJustify,
|
|
3073
|
-
disabled: !
|
|
3111
|
+
disabled: !c.value,
|
|
3074
3112
|
active: d.value.alignJustify,
|
|
3075
|
-
onClick:
|
|
3113
|
+
onClick: u[24] || (u[24] = (y) => {
|
|
3076
3114
|
var p;
|
|
3077
3115
|
return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("justify").run();
|
|
3078
3116
|
})
|
|
3079
3117
|
}, {
|
|
3080
3118
|
default: s(() => [
|
|
3081
|
-
i(l(
|
|
3119
|
+
i(l(j), { name: "mdi-format-align-justify" })
|
|
3082
3120
|
]),
|
|
3083
3121
|
_: 1
|
|
3084
3122
|
}, 8, ["title", "disabled", "active"]),
|
|
3085
|
-
i(
|
|
3123
|
+
i(A, {
|
|
3086
3124
|
vertical: "",
|
|
3087
3125
|
inset: "",
|
|
3088
3126
|
class: "mx-1"
|
|
@@ -3092,15 +3130,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
3092
3130
|
size: "small",
|
|
3093
3131
|
variant: "text",
|
|
3094
3132
|
title: l(e).BulletedList,
|
|
3095
|
-
disabled: !
|
|
3133
|
+
disabled: !c.value,
|
|
3096
3134
|
active: d.value.bulletList,
|
|
3097
|
-
onClick:
|
|
3135
|
+
onClick: u[25] || (u[25] = (y) => {
|
|
3098
3136
|
var p;
|
|
3099
3137
|
return (p = a.value) == null ? void 0 : p.chain().focus().toggleBulletList().run();
|
|
3100
3138
|
})
|
|
3101
3139
|
}, {
|
|
3102
3140
|
default: s(() => [
|
|
3103
|
-
i(l(
|
|
3141
|
+
i(l(j), { name: "mdi-format-list-bulleted" })
|
|
3104
3142
|
]),
|
|
3105
3143
|
_: 1
|
|
3106
3144
|
}, 8, ["title", "disabled", "active"]),
|
|
@@ -3109,15 +3147,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
3109
3147
|
size: "small",
|
|
3110
3148
|
variant: "text",
|
|
3111
3149
|
title: l(e).NumberedList,
|
|
3112
|
-
disabled: !
|
|
3150
|
+
disabled: !c.value,
|
|
3113
3151
|
active: d.value.orderedList,
|
|
3114
|
-
onClick:
|
|
3152
|
+
onClick: u[26] || (u[26] = (y) => {
|
|
3115
3153
|
var p;
|
|
3116
3154
|
return (p = a.value) == null ? void 0 : p.chain().focus().toggleOrderedList().run();
|
|
3117
3155
|
})
|
|
3118
3156
|
}, {
|
|
3119
3157
|
default: s(() => [
|
|
3120
|
-
i(l(
|
|
3158
|
+
i(l(j), { name: "mdi-format-list-numbered" })
|
|
3121
3159
|
]),
|
|
3122
3160
|
_: 1
|
|
3123
3161
|
}, 8, ["title", "disabled", "active"]),
|
|
@@ -3126,14 +3164,14 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
3126
3164
|
size: "small",
|
|
3127
3165
|
variant: "text",
|
|
3128
3166
|
title: l(e).Outdent,
|
|
3129
|
-
disabled: !
|
|
3130
|
-
onClick:
|
|
3167
|
+
disabled: !c.value || !d.value.canLift,
|
|
3168
|
+
onClick: u[27] || (u[27] = (y) => {
|
|
3131
3169
|
var p;
|
|
3132
3170
|
return (p = a.value) == null ? void 0 : p.chain().focus().liftListItem("listItem").run();
|
|
3133
3171
|
})
|
|
3134
3172
|
}, {
|
|
3135
3173
|
default: s(() => [
|
|
3136
|
-
i(l(
|
|
3174
|
+
i(l(j), { name: "mdi-format-indent-decrease" })
|
|
3137
3175
|
]),
|
|
3138
3176
|
_: 1
|
|
3139
3177
|
}, 8, ["title", "disabled"]),
|
|
@@ -3142,22 +3180,22 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
|
|
|
3142
3180
|
size: "small",
|
|
3143
3181
|
variant: "text",
|
|
3144
3182
|
title: l(e).Indent,
|
|
3145
|
-
disabled: !
|
|
3146
|
-
onClick:
|
|
3183
|
+
disabled: !c.value || !d.value.canSink,
|
|
3184
|
+
onClick: u[28] || (u[28] = (y) => {
|
|
3147
3185
|
var p;
|
|
3148
3186
|
return (p = a.value) == null ? void 0 : p.chain().focus().sinkListItem("listItem").run();
|
|
3149
3187
|
})
|
|
3150
3188
|
}, {
|
|
3151
3189
|
default: s(() => [
|
|
3152
|
-
i(l(
|
|
3190
|
+
i(l(j), { name: "mdi-format-indent-increase" })
|
|
3153
3191
|
]),
|
|
3154
3192
|
_: 1
|
|
3155
3193
|
}, 8, ["title", "disabled"])
|
|
3156
3194
|
], 2);
|
|
3157
3195
|
};
|
|
3158
3196
|
}
|
|
3159
|
-
}),
|
|
3160
|
-
function
|
|
3197
|
+
}), ta = /^[a-z][a-z0-9]*:[a-z]/i, na = /mso-[a-z-]+\s*:[^;]+;?/gi, la = /^Mso/i, aa = /background(?:-color)?\s*:[^;]+;?/gi;
|
|
3198
|
+
function oa(t) {
|
|
3161
3199
|
const n = document.createTreeWalker(t, NodeFilter.SHOW_COMMENT), e = [];
|
|
3162
3200
|
for (let a = n.nextNode(); a; a = n.nextNode()) e.push(a);
|
|
3163
3201
|
e.forEach((a) => {
|
|
@@ -3172,33 +3210,33 @@ function rt(t) {
|
|
|
3172
3210
|
n.removeChild(t);
|
|
3173
3211
|
}
|
|
3174
3212
|
}
|
|
3175
|
-
function
|
|
3213
|
+
function ia(t) {
|
|
3176
3214
|
const n = t.getAttribute("style");
|
|
3177
3215
|
if (n != null) {
|
|
3178
|
-
const a = n.replace(
|
|
3216
|
+
const a = n.replace(na, "").replace(aa, "").trim();
|
|
3179
3217
|
a ? t.setAttribute("style", a) : t.removeAttribute("style");
|
|
3180
3218
|
}
|
|
3181
3219
|
const e = t.getAttribute("class");
|
|
3182
3220
|
if (e != null) {
|
|
3183
|
-
const a = e.split(/\s+/).filter((r) => r && !
|
|
3221
|
+
const a = e.split(/\s+/).filter((r) => r && !la.test(r)).join(" ");
|
|
3184
3222
|
a ? t.setAttribute("class", a) : t.removeAttribute("class");
|
|
3185
3223
|
}
|
|
3186
3224
|
t.removeAttribute("lang"), t.removeAttribute("xml:lang"), t.removeAttribute("id"), t.removeAttribute("align"), t.removeAttribute("bgcolor");
|
|
3187
3225
|
}
|
|
3188
|
-
function
|
|
3226
|
+
function ra(t) {
|
|
3189
3227
|
if (!t || typeof DOMParser == "undefined") return t;
|
|
3190
3228
|
const e = new DOMParser().parseFromString(t, "text/html").body;
|
|
3191
|
-
return e ? (
|
|
3192
|
-
if (
|
|
3229
|
+
return e ? (oa(e), e.querySelectorAll("xml, style, script, meta, link").forEach((a) => a.remove()), Array.from(e.querySelectorAll("*")).forEach((a) => {
|
|
3230
|
+
if (ta.test(a.tagName) || a.tagName === "FONT") {
|
|
3193
3231
|
rt(a);
|
|
3194
3232
|
return;
|
|
3195
3233
|
}
|
|
3196
|
-
|
|
3234
|
+
ia(a);
|
|
3197
3235
|
}), Array.from(e.querySelectorAll("span, div")).forEach((a) => {
|
|
3198
3236
|
a.attributes.length === 0 && rt(a);
|
|
3199
3237
|
}), e.innerHTML) : t;
|
|
3200
3238
|
}
|
|
3201
|
-
const
|
|
3239
|
+
const sa = { class: "editor-container" }, ua = { class: "rtf-bubble-menu" }, ca = /* @__PURE__ */ ne({
|
|
3202
3240
|
__name: "editor-core",
|
|
3203
3241
|
props: {
|
|
3204
3242
|
modelValue: { default: "" },
|
|
@@ -3215,7 +3253,7 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
|
|
|
3215
3253
|
editable: !e.disabled,
|
|
3216
3254
|
extensions: [
|
|
3217
3255
|
cn.configure({ link: !1 }),
|
|
3218
|
-
|
|
3256
|
+
Gl.configure({ openOnClick: !1, autolink: !0, defaultProtocol: "https" }),
|
|
3219
3257
|
tn.configure({
|
|
3220
3258
|
inline: !0,
|
|
3221
3259
|
allowBase64: !0,
|
|
@@ -3232,15 +3270,15 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
|
|
|
3232
3270
|
on,
|
|
3233
3271
|
an,
|
|
3234
3272
|
nn.configure({ placeholder: "" }),
|
|
3235
|
-
El,
|
|
3236
3273
|
Ul,
|
|
3237
3274
|
zl,
|
|
3238
|
-
|
|
3275
|
+
Hl,
|
|
3276
|
+
Yl
|
|
3239
3277
|
],
|
|
3240
3278
|
editorProps: {
|
|
3241
3279
|
attributes: { class: "rtf-content" },
|
|
3242
|
-
transformPastedHTML: (v) =>
|
|
3243
|
-
handlePaste:
|
|
3280
|
+
transformPastedHTML: (v) => ra(v),
|
|
3281
|
+
handlePaste: Kl(() => r.value)
|
|
3244
3282
|
},
|
|
3245
3283
|
onUpdate: ({ editor: v }) => {
|
|
3246
3284
|
a("update:modelValue", v.getHTML());
|
|
@@ -3249,34 +3287,34 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
|
|
|
3249
3287
|
me(
|
|
3250
3288
|
() => e.modelValue,
|
|
3251
3289
|
(v) => {
|
|
3252
|
-
const
|
|
3253
|
-
if (!
|
|
3254
|
-
const
|
|
3255
|
-
|
|
3290
|
+
const b = r.value;
|
|
3291
|
+
if (!b) return;
|
|
3292
|
+
const _ = v != null ? v : "";
|
|
3293
|
+
_ !== b.getHTML() && b.commands.setContent(_, { emitUpdate: !1 });
|
|
3256
3294
|
}
|
|
3257
3295
|
), me(
|
|
3258
3296
|
() => e.disabled,
|
|
3259
3297
|
(v) => {
|
|
3260
|
-
var
|
|
3261
|
-
return (
|
|
3298
|
+
var b;
|
|
3299
|
+
return (b = r.value) == null ? void 0 : b.setEditable(!v);
|
|
3262
3300
|
}
|
|
3263
3301
|
), me(r, (v) => v == null ? void 0 : v.setEditable(!e.disabled));
|
|
3264
|
-
const
|
|
3265
|
-
var v,
|
|
3266
|
-
return
|
|
3302
|
+
const c = Bt(r), d = C(() => {
|
|
3303
|
+
var v, b, _, B, x;
|
|
3304
|
+
return c.value, {
|
|
3267
3305
|
bold: !!((v = r.value) != null && v.isActive("bold")),
|
|
3268
|
-
italic: !!((
|
|
3269
|
-
link: !!((
|
|
3270
|
-
bulletList: !!((
|
|
3271
|
-
orderedList: !!((
|
|
3306
|
+
italic: !!((b = r.value) != null && b.isActive("italic")),
|
|
3307
|
+
link: !!((_ = r.value) != null && _.isActive("link")),
|
|
3308
|
+
bulletList: !!((B = r.value) != null && B.isActive("bulletList")),
|
|
3309
|
+
orderedList: !!((x = r.value) != null && x.isActive("orderedList"))
|
|
3272
3310
|
};
|
|
3273
3311
|
});
|
|
3274
3312
|
function h({ state: v }) {
|
|
3275
3313
|
return !v.selection.empty && !(v.selection instanceof un);
|
|
3276
3314
|
}
|
|
3277
3315
|
function k(v) {
|
|
3278
|
-
var
|
|
3279
|
-
(
|
|
3316
|
+
var b;
|
|
3317
|
+
(b = r.value) == null || b.chain().focus()[v]().run();
|
|
3280
3318
|
}
|
|
3281
3319
|
function f() {
|
|
3282
3320
|
const v = r.value;
|
|
@@ -3285,49 +3323,49 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
|
|
|
3285
3323
|
v.chain().focus().unsetLink().run();
|
|
3286
3324
|
return;
|
|
3287
3325
|
}
|
|
3288
|
-
const
|
|
3289
|
-
|
|
3326
|
+
const b = window.prompt("URL");
|
|
3327
|
+
b && v.chain().focus().extendMarkRange("link").setLink({ href: b }).run();
|
|
3290
3328
|
}
|
|
3291
|
-
return (v,
|
|
3292
|
-
const
|
|
3293
|
-
return
|
|
3294
|
-
i(
|
|
3329
|
+
return (v, b) => {
|
|
3330
|
+
const _ = P("v-btn");
|
|
3331
|
+
return T(), Q("div", sa, [
|
|
3332
|
+
i(ea, { editor: l(r) }, null, 8, ["editor"]),
|
|
3295
3333
|
i(l(mn), {
|
|
3296
3334
|
class: "editor-container__editor",
|
|
3297
3335
|
editor: l(r)
|
|
3298
3336
|
}, null, 8, ["editor"]),
|
|
3299
|
-
l(r) ? (
|
|
3337
|
+
l(r) ? (T(), H(l(vn), {
|
|
3300
3338
|
key: 0,
|
|
3301
3339
|
editor: l(r),
|
|
3302
3340
|
"should-show": h
|
|
3303
3341
|
}, {
|
|
3304
3342
|
default: s(() => [
|
|
3305
|
-
|
|
3306
|
-
i(
|
|
3343
|
+
ae("div", ua, [
|
|
3344
|
+
i(_, {
|
|
3307
3345
|
icon: "",
|
|
3308
3346
|
size: "small",
|
|
3309
3347
|
variant: "text",
|
|
3310
3348
|
active: d.value.bold,
|
|
3311
|
-
onClick:
|
|
3349
|
+
onClick: b[0] || (b[0] = (B) => k("toggleBold"))
|
|
3312
3350
|
}, {
|
|
3313
3351
|
default: s(() => [
|
|
3314
|
-
i(l(
|
|
3352
|
+
i(l(j), { name: "mdi-format-bold" })
|
|
3315
3353
|
]),
|
|
3316
3354
|
_: 1
|
|
3317
3355
|
}, 8, ["active"]),
|
|
3318
|
-
i(
|
|
3356
|
+
i(_, {
|
|
3319
3357
|
icon: "",
|
|
3320
3358
|
size: "small",
|
|
3321
3359
|
variant: "text",
|
|
3322
3360
|
active: d.value.italic,
|
|
3323
|
-
onClick:
|
|
3361
|
+
onClick: b[1] || (b[1] = (B) => k("toggleItalic"))
|
|
3324
3362
|
}, {
|
|
3325
3363
|
default: s(() => [
|
|
3326
|
-
i(l(
|
|
3364
|
+
i(l(j), { name: "mdi-format-italic" })
|
|
3327
3365
|
]),
|
|
3328
3366
|
_: 1
|
|
3329
3367
|
}, 8, ["active"]),
|
|
3330
|
-
i(
|
|
3368
|
+
i(_, {
|
|
3331
3369
|
icon: "",
|
|
3332
3370
|
size: "small",
|
|
3333
3371
|
variant: "text",
|
|
@@ -3335,31 +3373,31 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
|
|
|
3335
3373
|
onClick: f
|
|
3336
3374
|
}, {
|
|
3337
3375
|
default: s(() => [
|
|
3338
|
-
i(l(
|
|
3376
|
+
i(l(j), { name: "mdi-link-variant" })
|
|
3339
3377
|
]),
|
|
3340
3378
|
_: 1
|
|
3341
3379
|
}, 8, ["active"]),
|
|
3342
|
-
i(
|
|
3380
|
+
i(_, {
|
|
3343
3381
|
icon: "",
|
|
3344
3382
|
size: "small",
|
|
3345
3383
|
variant: "text",
|
|
3346
3384
|
active: d.value.bulletList,
|
|
3347
|
-
onClick:
|
|
3385
|
+
onClick: b[2] || (b[2] = (B) => k("toggleBulletList"))
|
|
3348
3386
|
}, {
|
|
3349
3387
|
default: s(() => [
|
|
3350
|
-
i(l(
|
|
3388
|
+
i(l(j), { name: "mdi-format-list-bulleted" })
|
|
3351
3389
|
]),
|
|
3352
3390
|
_: 1
|
|
3353
3391
|
}, 8, ["active"]),
|
|
3354
|
-
i(
|
|
3392
|
+
i(_, {
|
|
3355
3393
|
icon: "",
|
|
3356
3394
|
size: "small",
|
|
3357
3395
|
variant: "text",
|
|
3358
3396
|
active: d.value.orderedList,
|
|
3359
|
-
onClick:
|
|
3397
|
+
onClick: b[3] || (b[3] = (B) => k("toggleOrderedList"))
|
|
3360
3398
|
}, {
|
|
3361
3399
|
default: s(() => [
|
|
3362
|
-
i(l(
|
|
3400
|
+
i(l(j), { name: "mdi-format-list-numbered" })
|
|
3363
3401
|
]),
|
|
3364
3402
|
_: 1
|
|
3365
3403
|
}, 8, ["active"])
|
|
@@ -3370,7 +3408,7 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
|
|
|
3370
3408
|
]);
|
|
3371
3409
|
};
|
|
3372
3410
|
}
|
|
3373
|
-
}),
|
|
3411
|
+
}), Dt = /* @__PURE__ */ ne({
|
|
3374
3412
|
__name: "df-rtf-editor",
|
|
3375
3413
|
props: /* @__PURE__ */ pe({
|
|
3376
3414
|
minHeight: {},
|
|
@@ -3388,18 +3426,18 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
|
|
|
3388
3426
|
passthroughAttrs: {},
|
|
3389
3427
|
density: {},
|
|
3390
3428
|
variant: {}
|
|
3391
|
-
},
|
|
3429
|
+
}, te(z({}, be), { minHeight: void 0 })),
|
|
3392
3430
|
emits: ["update:modelValue", "click:clear"],
|
|
3393
3431
|
setup(t, { emit: n }) {
|
|
3394
|
-
const e = t, a = n, { densityClass: r, value:
|
|
3395
|
-
return (h, k) => (
|
|
3432
|
+
const e = t, a = n, { densityClass: r, value: c, vuetifyBindings: d } = ce(e, a);
|
|
3433
|
+
return (h, k) => (T(), H(l(We), X(e, {
|
|
3396
3434
|
class: ["rtf-editor", l(r)]
|
|
3397
3435
|
}), {
|
|
3398
3436
|
default: s((f) => [
|
|
3399
|
-
i(
|
|
3437
|
+
i(ca, X({
|
|
3400
3438
|
ref: "$editor",
|
|
3401
|
-
modelValue: l(
|
|
3402
|
-
"onUpdate:modelValue": k[0] || (k[0] = (v) =>
|
|
3439
|
+
modelValue: l(c),
|
|
3440
|
+
"onUpdate:modelValue": k[0] || (k[0] = (v) => xe(c) ? c.value = v : null),
|
|
3403
3441
|
class: { "mt-6": !!t.label },
|
|
3404
3442
|
"min-height": t.minHeight,
|
|
3405
3443
|
disabled: l(d).disabled
|
|
@@ -3412,38 +3450,38 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
|
|
|
3412
3450
|
}, 16, ["class"]));
|
|
3413
3451
|
}
|
|
3414
3452
|
});
|
|
3415
|
-
function
|
|
3453
|
+
function da(t) {
|
|
3416
3454
|
return t.map((n) => ({ value: n.id, title: n.text, icon: n.icon }));
|
|
3417
3455
|
}
|
|
3418
3456
|
function de(t, n) {
|
|
3419
3457
|
var e;
|
|
3420
3458
|
return t == null || at(t) && t.length === 0 ? null : n ? dt(t) : at(t) ? (e = mt(t)) != null ? e : null : t;
|
|
3421
3459
|
}
|
|
3422
|
-
function
|
|
3460
|
+
function He(t, n) {
|
|
3423
3461
|
if (n == null) return [];
|
|
3424
3462
|
const e = dt(n);
|
|
3425
3463
|
return t.filter((a) => e.some((r) => r === a.id));
|
|
3426
3464
|
}
|
|
3427
3465
|
function Ie(t, n, e, a, r) {
|
|
3428
3466
|
var d;
|
|
3429
|
-
const
|
|
3430
|
-
if (
|
|
3467
|
+
const c = de(t, e);
|
|
3468
|
+
if (c == null) {
|
|
3431
3469
|
n.value = e ? [] : null;
|
|
3432
3470
|
return;
|
|
3433
3471
|
}
|
|
3434
3472
|
if (e)
|
|
3435
|
-
a ? n.value =
|
|
3473
|
+
a ? n.value = c : n.value = He(r, c).map((h) => h.id);
|
|
3436
3474
|
else if (a)
|
|
3437
|
-
n.value =
|
|
3475
|
+
n.value = c;
|
|
3438
3476
|
else {
|
|
3439
|
-
const h = mt(
|
|
3477
|
+
const h = mt(He(r, c));
|
|
3440
3478
|
n.value = (d = h == null ? void 0 : h.id) != null ? d : null;
|
|
3441
3479
|
}
|
|
3442
3480
|
}
|
|
3443
|
-
const
|
|
3481
|
+
const ma = {
|
|
3444
3482
|
key: 0,
|
|
3445
3483
|
class: "me-1"
|
|
3446
|
-
},
|
|
3484
|
+
}, va = /* @__PURE__ */ ne({
|
|
3447
3485
|
__name: "df-select",
|
|
3448
3486
|
props: /* @__PURE__ */ pe({
|
|
3449
3487
|
choices: {},
|
|
@@ -3465,7 +3503,7 @@ const ca = {
|
|
|
3465
3503
|
passthroughAttrs: {},
|
|
3466
3504
|
density: {},
|
|
3467
3505
|
variant: {}
|
|
3468
|
-
},
|
|
3506
|
+
}, te(z({}, be), {
|
|
3469
3507
|
choices: void 0,
|
|
3470
3508
|
multiple: !1,
|
|
3471
3509
|
allowTags: !1,
|
|
@@ -3474,165 +3512,165 @@ const ca = {
|
|
|
3474
3512
|
})),
|
|
3475
3513
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
3476
3514
|
setup(t, { emit: n }) {
|
|
3477
|
-
var
|
|
3478
|
-
const e = t, { choices: a, multiple: r, allowTags:
|
|
3515
|
+
var Re;
|
|
3516
|
+
const e = t, { choices: a, multiple: r, allowTags: c, allowNull: d, cssClass: h } = Oe(e), k = n, f = R(null), {
|
|
3479
3517
|
densityClass: v,
|
|
3480
|
-
isRendered:
|
|
3481
|
-
label:
|
|
3482
|
-
showErrors:
|
|
3483
|
-
touched:
|
|
3484
|
-
value:
|
|
3485
|
-
visibilityClass:
|
|
3486
|
-
vuetifyBindings:
|
|
3487
|
-
} = ce(e, k),
|
|
3488
|
-
(
|
|
3518
|
+
isRendered: b,
|
|
3519
|
+
label: _,
|
|
3520
|
+
showErrors: B,
|
|
3521
|
+
touched: x,
|
|
3522
|
+
value: V,
|
|
3523
|
+
visibilityClass: E,
|
|
3524
|
+
vuetifyBindings: L
|
|
3525
|
+
} = 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);
|
|
3526
|
+
(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
3527
|
function m(I) {
|
|
3490
|
-
k("update:modelValueDisplay",
|
|
3528
|
+
k("update:modelValueDisplay", He(q.value, I));
|
|
3491
3529
|
}
|
|
3492
|
-
const
|
|
3493
|
-
function
|
|
3494
|
-
|
|
3530
|
+
const A = R(!1);
|
|
3531
|
+
function S(I) {
|
|
3532
|
+
A.value = !0;
|
|
3495
3533
|
try {
|
|
3496
|
-
|
|
3534
|
+
V.value = I;
|
|
3497
3535
|
} finally {
|
|
3498
|
-
Jt(de(
|
|
3499
|
-
de(
|
|
3500
|
-
|
|
3536
|
+
Jt(de(V.value, r.value), I) || Ie(
|
|
3537
|
+
de(V.value, r.value),
|
|
3538
|
+
g,
|
|
3501
3539
|
r.value,
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
),
|
|
3505
|
-
|
|
3540
|
+
c.value,
|
|
3541
|
+
q.value
|
|
3542
|
+
), Xe(() => {
|
|
3543
|
+
A.value = !1;
|
|
3506
3544
|
});
|
|
3507
3545
|
}
|
|
3508
3546
|
}
|
|
3509
|
-
function
|
|
3547
|
+
function N(I) {
|
|
3510
3548
|
if (!I) return 0;
|
|
3511
|
-
const
|
|
3512
|
-
return
|
|
3549
|
+
const F = I.getBoundingClientRect(), oe = window.getComputedStyle(I);
|
|
3550
|
+
return F.width + parseFloat(oe.marginLeft) + parseFloat(oe.marginRight);
|
|
3513
3551
|
}
|
|
3514
|
-
function
|
|
3552
|
+
function le() {
|
|
3515
3553
|
var I;
|
|
3516
|
-
if (r.value && d.value &&
|
|
3517
|
-
const
|
|
3554
|
+
if (r.value && d.value && g.value != null && g.value.length > 0 && f.value) {
|
|
3555
|
+
const F = f.value.$el, oe = (I = F.querySelector(".v-input__control")) == null ? void 0 : I.clientWidth, ie = F.querySelector(".v-field__input"), U = ie.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), re = window.getComputedStyle(ie);
|
|
3518
3556
|
let Ve = parseFloat(re.paddingLeft) + parseFloat(re.paddingRight);
|
|
3519
3557
|
U.forEach((Rt) => {
|
|
3520
|
-
Ve +=
|
|
3558
|
+
Ve += N(Rt);
|
|
3521
3559
|
});
|
|
3522
|
-
const
|
|
3523
|
-
|
|
3560
|
+
const $t = N(F.querySelector(".v-field .v-field__clearable")), St = N(F.querySelector(".v-field .v-field__append-inner")), Mt = 2;
|
|
3561
|
+
u.value = oe - Ve - U.length * Mt - St < $t;
|
|
3524
3562
|
} else
|
|
3525
|
-
|
|
3563
|
+
u.value = !1;
|
|
3526
3564
|
}
|
|
3527
|
-
function
|
|
3528
|
-
const
|
|
3529
|
-
|
|
3565
|
+
function D(I) {
|
|
3566
|
+
const F = I.target;
|
|
3567
|
+
F instanceof HTMLElement && F.closest(".v-chip__close") && (I.stopPropagation(), I.preventDefault());
|
|
3530
3568
|
}
|
|
3531
3569
|
me(
|
|
3532
|
-
|
|
3570
|
+
g,
|
|
3533
3571
|
(I) => {
|
|
3534
|
-
|
|
3535
|
-
const
|
|
3536
|
-
m(
|
|
3572
|
+
L.value.readonly || Xe(() => {
|
|
3573
|
+
const F = de(I, r.value);
|
|
3574
|
+
m(F), S(F);
|
|
3537
3575
|
});
|
|
3538
3576
|
},
|
|
3539
3577
|
{ deep: !0 }
|
|
3540
3578
|
), me(
|
|
3541
|
-
|
|
3579
|
+
V,
|
|
3542
3580
|
(I) => {
|
|
3543
|
-
if (!
|
|
3544
|
-
const
|
|
3545
|
-
Ie(
|
|
3581
|
+
if (!A.value) {
|
|
3582
|
+
const F = de(I, r.value);
|
|
3583
|
+
Ie(F, g, r.value, !1, q.value);
|
|
3546
3584
|
}
|
|
3547
3585
|
},
|
|
3548
3586
|
{ deep: !0 }
|
|
3549
|
-
), me(
|
|
3550
|
-
|
|
3587
|
+
), me(A, () => {
|
|
3588
|
+
A.value || le();
|
|
3551
3589
|
});
|
|
3552
|
-
function
|
|
3590
|
+
function O() {
|
|
3553
3591
|
w.value != null && w.value.length > 0 && (w.value = null, y());
|
|
3554
3592
|
}
|
|
3555
|
-
function
|
|
3556
|
-
if (
|
|
3557
|
-
const I = de(
|
|
3558
|
-
Ie(I,
|
|
3593
|
+
function K() {
|
|
3594
|
+
if (O(), L.value.readonly || c.value) return;
|
|
3595
|
+
const I = de(g.value, r.value);
|
|
3596
|
+
Ie(I, g, r.value, !1, q.value), S(I);
|
|
3559
3597
|
}
|
|
3560
|
-
function
|
|
3561
|
-
if (I.stopPropagation(),
|
|
3562
|
-
|
|
3598
|
+
function ee(I, F) {
|
|
3599
|
+
if (I.stopPropagation(), L.value.readonly || c.value) {
|
|
3600
|
+
c.value && (g.value = g.value.filter((ie) => ie !== F));
|
|
3563
3601
|
return;
|
|
3564
3602
|
}
|
|
3565
|
-
let
|
|
3566
|
-
r.value && Array.isArray(
|
|
3567
|
-
|
|
3603
|
+
let oe;
|
|
3604
|
+
r.value && Array.isArray(g.value) ? oe = de(
|
|
3605
|
+
g.value.filter((ie) => ie !== F),
|
|
3568
3606
|
r.value
|
|
3569
|
-
) :
|
|
3607
|
+
) : oe = null, Ie(oe, g, r.value, !1, q.value), S(oe);
|
|
3570
3608
|
}
|
|
3571
|
-
function y(I,
|
|
3572
|
-
return
|
|
3573
|
-
if (
|
|
3574
|
-
const
|
|
3575
|
-
|
|
3609
|
+
function y(I, F) {
|
|
3610
|
+
return he(this, null, function* () {
|
|
3611
|
+
if (L.value.readonly || (w.value = I, a.value || e.fetchChoices === void 0)) return;
|
|
3612
|
+
const oe = ++o.value;
|
|
3613
|
+
Z.value = !0;
|
|
3576
3614
|
try {
|
|
3577
|
-
const ie =
|
|
3578
|
-
|
|
3579
|
-
de(
|
|
3580
|
-
), U = yield e.fetchChoices(I,
|
|
3581
|
-
if (
|
|
3582
|
-
|
|
3615
|
+
const ie = He(
|
|
3616
|
+
q.value,
|
|
3617
|
+
de(g.value, r.value)
|
|
3618
|
+
), U = yield e.fetchChoices(I, F);
|
|
3619
|
+
if (oe !== o.value) return;
|
|
3620
|
+
W.value = Qt([...ie, ...U], "id"), $.value = !0;
|
|
3583
3621
|
} finally {
|
|
3584
|
-
|
|
3622
|
+
Z.value = !1;
|
|
3585
3623
|
}
|
|
3586
3624
|
});
|
|
3587
3625
|
}
|
|
3588
3626
|
function p() {
|
|
3589
|
-
let I =
|
|
3590
|
-
!d.value && I == null &&
|
|
3627
|
+
let I = V.value;
|
|
3628
|
+
!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
3629
|
}
|
|
3592
|
-
return p(), e.fetchChoices !== void 0 && y(void 0,
|
|
3630
|
+
return p(), e.fetchChoices !== void 0 && y(void 0, V.value).then(() => {
|
|
3593
3631
|
p();
|
|
3594
|
-
}), (I,
|
|
3595
|
-
const
|
|
3596
|
-
return l(
|
|
3632
|
+
}), (I, F) => {
|
|
3633
|
+
const oe = P("v-chip"), ie = P("v-list-item");
|
|
3634
|
+
return l(b) ? (T(), H(Ue(l(c) ? "v-combobox" : "v-autocomplete"), X({
|
|
3597
3635
|
key: 0,
|
|
3598
3636
|
ref_key: "dfSelectRef",
|
|
3599
3637
|
ref: f,
|
|
3600
|
-
modelValue:
|
|
3601
|
-
"onUpdate:modelValue":
|
|
3602
|
-
class: [l(h), l(v), l(
|
|
3603
|
-
items:
|
|
3638
|
+
modelValue: g.value,
|
|
3639
|
+
"onUpdate:modelValue": F[0] || (F[0] = (U) => g.value = U),
|
|
3640
|
+
class: [l(h), l(v), l(E), { "df-select-multirow": u.value }],
|
|
3641
|
+
items: M.value,
|
|
3604
3642
|
"return-object": !1,
|
|
3605
3643
|
chips: "",
|
|
3606
3644
|
"auto-select-first": !0,
|
|
3607
|
-
"closable-chips": l(d) || l(r) &&
|
|
3645
|
+
"closable-chips": l(d) || l(r) && g.value.length > 1,
|
|
3608
3646
|
clearable: l(d),
|
|
3609
3647
|
multiple: l(r),
|
|
3610
|
-
loading:
|
|
3648
|
+
loading: Z.value,
|
|
3611
3649
|
"hide-selected": !1,
|
|
3612
|
-
"aria-describedby": l(
|
|
3650
|
+
"aria-describedby": l(L).helpText ? `${l(L).name}-help` : null,
|
|
3613
3651
|
"menu-props": { maxHeight: "400" },
|
|
3614
3652
|
search: w.value
|
|
3615
|
-
}, l(
|
|
3616
|
-
"onUpdate:search":
|
|
3617
|
-
"onUpdate:modelValue":
|
|
3618
|
-
"onClick:clear":
|
|
3619
|
-
onBlur:
|
|
3620
|
-
onMousedownCapture:
|
|
3621
|
-
}),
|
|
3653
|
+
}, l(L), {
|
|
3654
|
+
"onUpdate:search": F[1] || (F[1] = (U) => y(U, void 0)),
|
|
3655
|
+
"onUpdate:modelValue": K,
|
|
3656
|
+
"onClick:clear": F[2] || (F[2] = (U) => g.value = null),
|
|
3657
|
+
onBlur: F[3] || (F[3] = (U) => x.value = !0),
|
|
3658
|
+
onMousedownCapture: F[4] || (F[4] = (U) => D(U))
|
|
3659
|
+
}), ze({
|
|
3622
3660
|
chip: s(({ item: U }) => [
|
|
3623
|
-
(
|
|
3661
|
+
(T(), H(oe, {
|
|
3624
3662
|
key: U.value,
|
|
3625
3663
|
label: "",
|
|
3626
3664
|
size: "small",
|
|
3627
3665
|
class: "d-flex align-middle",
|
|
3628
3666
|
variant: l(r) ? "tonal" : "text",
|
|
3629
3667
|
closable: l(r),
|
|
3630
|
-
"onClick:close": (re) =>
|
|
3668
|
+
"onClick:close": (re) => ee(re, U.value)
|
|
3631
3669
|
}, {
|
|
3632
3670
|
prepend: s(() => {
|
|
3633
3671
|
var re;
|
|
3634
3672
|
return [
|
|
3635
|
-
(re = U.raw) != null && re.icon ? (
|
|
3673
|
+
(re = U.raw) != null && re.icon ? (T(), H(l(j), {
|
|
3636
3674
|
key: 0,
|
|
3637
3675
|
class: "me-1",
|
|
3638
3676
|
name: U.raw.icon
|
|
@@ -3640,7 +3678,7 @@ const ca = {
|
|
|
3640
3678
|
];
|
|
3641
3679
|
}),
|
|
3642
3680
|
default: s(() => [
|
|
3643
|
-
|
|
3681
|
+
ae("span", {
|
|
3644
3682
|
class: ue({ "text-body-1": !l(r) })
|
|
3645
3683
|
}, G(U.title), 3)
|
|
3646
3684
|
]),
|
|
@@ -3650,16 +3688,16 @@ const ca = {
|
|
|
3650
3688
|
label: s((U) => [
|
|
3651
3689
|
i(l(fe), {
|
|
3652
3690
|
data: U,
|
|
3653
|
-
label: l(
|
|
3691
|
+
label: l(_)
|
|
3654
3692
|
}, null, 8, ["data", "label"])
|
|
3655
3693
|
]),
|
|
3656
3694
|
item: s(({ props: U, item: re }) => [
|
|
3657
|
-
i(ie,
|
|
3695
|
+
i(ie, we(Ce(U)), {
|
|
3658
3696
|
prepend: s(() => {
|
|
3659
3697
|
var Ve;
|
|
3660
3698
|
return [
|
|
3661
|
-
(Ve = re.raw) != null && Ve.icon ? (
|
|
3662
|
-
i(l(
|
|
3699
|
+
(Ve = re.raw) != null && Ve.icon ? (T(), Q("span", ma, [
|
|
3700
|
+
i(l(j), {
|
|
3663
3701
|
class: "action-icon",
|
|
3664
3702
|
name: re.raw.icon
|
|
3665
3703
|
}, null, 8, ["name"])
|
|
@@ -3672,7 +3710,7 @@ const ca = {
|
|
|
3672
3710
|
message: s(({ message: U }) => [
|
|
3673
3711
|
i(l(ve), {
|
|
3674
3712
|
message: U,
|
|
3675
|
-
errors: l(
|
|
3713
|
+
errors: l(B)
|
|
3676
3714
|
}, null, 8, ["message", "errors"])
|
|
3677
3715
|
]),
|
|
3678
3716
|
_: 2
|
|
@@ -3680,26 +3718,26 @@ const ca = {
|
|
|
3680
3718
|
I.$slots["append-inner"] ? {
|
|
3681
3719
|
name: "append-inner",
|
|
3682
3720
|
fn: s((U) => [
|
|
3683
|
-
|
|
3721
|
+
Te(I.$slots, "append-inner", we(Ce(U)), void 0, !0)
|
|
3684
3722
|
]),
|
|
3685
3723
|
key: "0"
|
|
3686
3724
|
} : void 0,
|
|
3687
3725
|
I.$slots["prepend-inner"] ? {
|
|
3688
3726
|
name: "prepend-inner",
|
|
3689
3727
|
fn: s((U) => [
|
|
3690
|
-
|
|
3728
|
+
Te(I.$slots, "prepend-inner", we(Ce(U)), void 0, !0)
|
|
3691
3729
|
]),
|
|
3692
3730
|
key: "1"
|
|
3693
3731
|
} : void 0
|
|
3694
3732
|
]), 1040, ["modelValue", "class", "items", "closable-chips", "clearable", "multiple", "loading", "aria-describedby", "search"])) : Y("", !0);
|
|
3695
3733
|
};
|
|
3696
3734
|
}
|
|
3697
|
-
}),
|
|
3735
|
+
}), fa = (t, n) => {
|
|
3698
3736
|
const e = t.__vccOpts || t;
|
|
3699
3737
|
for (const [a, r] of n)
|
|
3700
3738
|
e[a] = r;
|
|
3701
3739
|
return e;
|
|
3702
|
-
}, It = /* @__PURE__ */
|
|
3740
|
+
}, It = /* @__PURE__ */ fa(va, [["__scopeId", "data-v-7e5aa3b6"]]), Lt = /* @__PURE__ */ ne({
|
|
3703
3741
|
__name: "df-text-area",
|
|
3704
3742
|
props: /* @__PURE__ */ pe({
|
|
3705
3743
|
rows: {},
|
|
@@ -3718,41 +3756,41 @@ const ca = {
|
|
|
3718
3756
|
passthroughAttrs: {},
|
|
3719
3757
|
density: {},
|
|
3720
3758
|
variant: {}
|
|
3721
|
-
},
|
|
3759
|
+
}, te(z({}, be), {
|
|
3722
3760
|
rows: void 0,
|
|
3723
3761
|
maxRows: void 0
|
|
3724
3762
|
})),
|
|
3725
3763
|
emits: ["update:modelValue", "click:clear"],
|
|
3726
3764
|
setup(t, { emit: n }) {
|
|
3727
|
-
const e = t, a = n, { densityClass: r, isRendered:
|
|
3765
|
+
const e = t, a = n, { densityClass: r, isRendered: c, label: d, showErrors: h, touched: k, value: f, visibilityClass: v, vuetifyBindings: b } = ce(
|
|
3728
3766
|
e,
|
|
3729
3767
|
a
|
|
3730
|
-
), { cssClass:
|
|
3731
|
-
return (
|
|
3732
|
-
const
|
|
3733
|
-
return l(
|
|
3768
|
+
), { cssClass: _ } = Oe(e);
|
|
3769
|
+
return (B, x) => {
|
|
3770
|
+
const V = P("v-textarea");
|
|
3771
|
+
return l(c) ? (T(), Q("div", {
|
|
3734
3772
|
key: 0,
|
|
3735
3773
|
class: ue(["df-textarea-container", [l(r), l(v)]])
|
|
3736
3774
|
}, [
|
|
3737
|
-
i(
|
|
3775
|
+
i(V, X({
|
|
3738
3776
|
modelValue: l(f),
|
|
3739
|
-
"onUpdate:modelValue":
|
|
3740
|
-
class: l(
|
|
3777
|
+
"onUpdate:modelValue": x[0] || (x[0] = (E) => xe(f) ? f.value = E : null),
|
|
3778
|
+
class: l(_),
|
|
3741
3779
|
rows: t.rows,
|
|
3742
3780
|
"auto-grow": (t.maxRows || 0) > 0,
|
|
3743
3781
|
"max-rows": t.maxRows
|
|
3744
|
-
}, l(
|
|
3745
|
-
onBlur:
|
|
3782
|
+
}, l(b), {
|
|
3783
|
+
onBlur: x[1] || (x[1] = (E) => k.value = !0)
|
|
3746
3784
|
}), {
|
|
3747
|
-
label: s((
|
|
3785
|
+
label: s((E) => [
|
|
3748
3786
|
i(l(fe), {
|
|
3749
|
-
data:
|
|
3787
|
+
data: E,
|
|
3750
3788
|
label: l(d)
|
|
3751
3789
|
}, null, 8, ["data", "label"])
|
|
3752
3790
|
]),
|
|
3753
|
-
message: s(({ message:
|
|
3791
|
+
message: s(({ message: E }) => [
|
|
3754
3792
|
i(l(ve), {
|
|
3755
|
-
message:
|
|
3793
|
+
message: E,
|
|
3756
3794
|
errors: l(h)
|
|
3757
3795
|
}, null, 8, ["message", "errors"])
|
|
3758
3796
|
]),
|
|
@@ -3761,7 +3799,7 @@ const ca = {
|
|
|
3761
3799
|
], 2)) : Y("", !0);
|
|
3762
3800
|
};
|
|
3763
3801
|
}
|
|
3764
|
-
}),
|
|
3802
|
+
}), pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3765
3803
|
__proto__: null,
|
|
3766
3804
|
DfActions: ht,
|
|
3767
3805
|
DfCheckbox: gt,
|
|
@@ -3772,36 +3810,36 @@ const ca = {
|
|
|
3772
3810
|
DfInput: xt,
|
|
3773
3811
|
DfInputHint: ve,
|
|
3774
3812
|
DfLabel: fe,
|
|
3775
|
-
DfRtfEditor:
|
|
3813
|
+
DfRtfEditor: Dt,
|
|
3776
3814
|
DfSelect: It,
|
|
3777
|
-
DfTextArea:
|
|
3778
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3815
|
+
DfTextArea: Lt
|
|
3816
|
+
}, Symbol.toStringTag, { value: "Module" })), ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3779
3817
|
__proto__: null,
|
|
3780
3818
|
VAutocomplete: kn,
|
|
3781
3819
|
VBtn: wn,
|
|
3782
3820
|
VCheckbox: Cn,
|
|
3783
3821
|
VChip: xn,
|
|
3784
|
-
VCol:
|
|
3785
|
-
VColorPicker:
|
|
3822
|
+
VCol: Dn,
|
|
3823
|
+
VColorPicker: _n,
|
|
3786
3824
|
VCombobox: An,
|
|
3787
|
-
VConfirmEdit:
|
|
3825
|
+
VConfirmEdit: Tn,
|
|
3788
3826
|
VDatePicker: Vn,
|
|
3789
3827
|
VField: jn,
|
|
3790
3828
|
VFileInput: Bn,
|
|
3791
|
-
VIcon:
|
|
3792
|
-
VImg:
|
|
3829
|
+
VIcon: Ln,
|
|
3830
|
+
VImg: $n,
|
|
3793
3831
|
VInput: Sn,
|
|
3794
3832
|
VListItem: Mn,
|
|
3795
3833
|
VMenu: Rn,
|
|
3796
3834
|
VNumberInput: Pn,
|
|
3797
|
-
VProgressLinear:
|
|
3835
|
+
VProgressLinear: En,
|
|
3798
3836
|
VRow: In,
|
|
3799
|
-
VSelect:
|
|
3800
|
-
VSwitch:
|
|
3801
|
-
VTextField:
|
|
3802
|
-
VTextarea:
|
|
3837
|
+
VSelect: Fn,
|
|
3838
|
+
VSwitch: Nn,
|
|
3839
|
+
VTextField: zn,
|
|
3840
|
+
VTextarea: Un,
|
|
3803
3841
|
VTimePicker: Hn
|
|
3804
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3842
|
+
}, Symbol.toStringTag, { value: "Module" })), uo = {
|
|
3805
3843
|
"df-actions": ht,
|
|
3806
3844
|
"df-checkbox": gt,
|
|
3807
3845
|
"df-color": yt,
|
|
@@ -3811,21 +3849,21 @@ const ca = {
|
|
|
3811
3849
|
"df-input": xt,
|
|
3812
3850
|
"df-input-hint": ve,
|
|
3813
3851
|
"df-label": fe,
|
|
3814
|
-
"df-rtf-editor":
|
|
3852
|
+
"df-rtf-editor": Dt,
|
|
3815
3853
|
"df-select": It,
|
|
3816
|
-
"df-text-area":
|
|
3817
|
-
},
|
|
3854
|
+
"df-text-area": Lt
|
|
3855
|
+
}, co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3818
3856
|
__proto__: null
|
|
3819
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3857
|
+
}, Symbol.toStringTag, { value: "Module" })), mo = {
|
|
3820
3858
|
install: (t, n) => {
|
|
3821
3859
|
var e, a;
|
|
3822
|
-
t.provide(
|
|
3860
|
+
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
3861
|
}
|
|
3824
3862
|
};
|
|
3825
3863
|
export {
|
|
3826
|
-
|
|
3864
|
+
Fe as Action,
|
|
3827
3865
|
se as ActionDisplayStyle,
|
|
3828
|
-
|
|
3866
|
+
_l as DateTimeLocaleConfig,
|
|
3829
3867
|
ht as DfActions,
|
|
3830
3868
|
gt as DfCheckbox,
|
|
3831
3869
|
yt as DfColor,
|
|
@@ -3833,32 +3871,32 @@ export {
|
|
|
3833
3871
|
wt as DfFile,
|
|
3834
3872
|
Ct as DfImage,
|
|
3835
3873
|
xt as DfInput,
|
|
3836
|
-
|
|
3837
|
-
|
|
3874
|
+
co as DfInputComponentProps,
|
|
3875
|
+
pa as DfInputComponents,
|
|
3838
3876
|
ve as DfInputHint,
|
|
3839
3877
|
fe as DfLabel,
|
|
3840
|
-
|
|
3878
|
+
Dt as DfRtfEditor,
|
|
3841
3879
|
It as DfSelect,
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3880
|
+
Lt as DfTextArea,
|
|
3881
|
+
mo as DynamicFormsInputs,
|
|
3882
|
+
Tl as FileGoneError,
|
|
3883
|
+
We as InputBase,
|
|
3846
3884
|
Vl as Label,
|
|
3847
|
-
|
|
3885
|
+
Ll as ResponsiveActionRenderOptions,
|
|
3848
3886
|
Bl as ResponsiveRenderOptions,
|
|
3849
|
-
|
|
3887
|
+
ba as VuetifyComponents,
|
|
3850
3888
|
be as defaultBaseProps,
|
|
3851
3889
|
ot as defaultDisplayStyle,
|
|
3852
|
-
|
|
3853
|
-
|
|
3890
|
+
uo as dfInputComponentsByTag,
|
|
3891
|
+
Dl as getBreakpointName,
|
|
3854
3892
|
ft as getRenderOptionsForBreakpoint,
|
|
3855
3893
|
it as responsiveBreakpoints,
|
|
3856
3894
|
bt as setFileGoneError,
|
|
3857
|
-
|
|
3858
|
-
|
|
3895
|
+
ye as translatableStrings,
|
|
3896
|
+
so as translateStrings,
|
|
3859
3897
|
Il as useBreakpoint,
|
|
3860
3898
|
pt as useFileTouchKeepAlive,
|
|
3861
3899
|
ce as useInputBase,
|
|
3862
|
-
|
|
3900
|
+
Qe as vuetifyInputsSettingsKey
|
|
3863
3901
|
};
|
|
3864
3902
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|