@dynamicforms/vuetify-inputs 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var Qe = Object.defineProperty, Je = Object.defineProperties;
|
|
2
2
|
var el = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var De = Object.getOwnPropertySymbols;
|
|
4
4
|
var ll = Object.prototype.hasOwnProperty, tl = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var ke = (l, e, n) => e in l ? Qe(l, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : l[e] = n,
|
|
5
|
+
var ke = (l, e, n) => e in l ? Qe(l, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : l[e] = n, D = (l, e) => {
|
|
6
6
|
for (var n in e || (e = {}))
|
|
7
7
|
ll.call(e, n) && ke(l, n, e[n]);
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
8
|
+
if (De)
|
|
9
|
+
for (var n of De(e))
|
|
10
10
|
tl.call(e, n) && ke(l, n, e[n]);
|
|
11
11
|
return l;
|
|
12
12
|
}, R = (l, e) => Je(l, el(e));
|
|
13
|
-
var
|
|
13
|
+
var xe = (l, e, n) => ke(l, typeof e != "symbol" ? e + "" : e, n);
|
|
14
14
|
var be = (l, e, n) => new Promise((o, s) => {
|
|
15
15
|
var a = (m) => {
|
|
16
16
|
try {
|
|
@@ -35,7 +35,7 @@ import Re, { ValidationErrorRenderContent as vl, DisplayMode as j, Action as pl
|
|
|
35
35
|
import fl from "vue-markdown-render";
|
|
36
36
|
import { useDisplay as bl } from "vuetify";
|
|
37
37
|
import { format as ce, parse as gl } from "date-fns";
|
|
38
|
-
import { AccessibilityHelp as hl, Alignment as yl, AutoImage as Vl, AutoLink as _l, Autosave as kl, BalloonToolbar as wl, BlockQuote as Tl, Bold as Cl, CloudServices as Bl, Essentials as Il, GeneralHtmlSupport as $l, Heading as
|
|
38
|
+
import { AccessibilityHelp as hl, Alignment as yl, AutoImage as Vl, AutoLink as _l, Autosave as kl, BalloonToolbar as wl, BlockQuote as Tl, Bold as Cl, CloudServices as Bl, Essentials as Il, GeneralHtmlSupport as $l, Heading as Dl, HorizontalLine as xl, ImageBlock as Nl, ImageCaption as Sl, ImageInline as El, ImageInsertViaUrl as Ul, ImageResize as Al, ImageStyle as Fl, ImageToolbar as Ll, ImageUpload as Ol, Indent as Rl, IndentBlock as Pl, Italic as Ml, Link as Hl, List as jl, Autoformat as zl, MediaEmbed as Kl, Paragraph as Gl, PasteFromMarkdownExperimental as Wl, PasteFromOffice as Xl, SelectAll as ql, Style as Yl, Table as Zl, TableCellProperties as Ql, TableColumnResize as Jl, TableProperties as et, TableToolbar as lt, Undo as tt, TextTransformation as nt, Base64UploadAdapter as ot, ClassicEditor as at } from "ckeditor5";
|
|
39
39
|
import { VAutocomplete as st } from "vuetify/components/VAutocomplete";
|
|
40
40
|
import { VBtn as rt } from "vuetify/components/VBtn";
|
|
41
41
|
import { VCheckbox as it } from "vuetify/components/VCheckbox";
|
|
@@ -58,7 +58,7 @@ import { VSelect as Ct } from "vuetify/components/VSelect";
|
|
|
58
58
|
import { VSwitch as Bt } from "vuetify/components/VSwitch";
|
|
59
59
|
import { VTextarea as It } from "vuetify/components/VTextarea";
|
|
60
60
|
import { VTextField as $t } from "vuetify/components/VTextField";
|
|
61
|
-
import { VTimePicker as
|
|
61
|
+
import { VTimePicker as Dt } from "vuetify/labs/VTimePicker";
|
|
62
62
|
/**
|
|
63
63
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
64
64
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -72,9 +72,9 @@ new Array(256).fill("").map((l, e) => ("0" + e.toString(16)).slice(-2));
|
|
|
72
72
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
73
73
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
74
74
|
*/
|
|
75
|
-
function
|
|
75
|
+
function xt(l, e) {
|
|
76
76
|
const n = l.extraPlugins || [];
|
|
77
|
-
return R(
|
|
77
|
+
return R(D({}, l), {
|
|
78
78
|
extraPlugins: [
|
|
79
79
|
...n,
|
|
80
80
|
...e.filter((o) => !n.includes(o))
|
|
@@ -190,7 +190,7 @@ const Lt = Ft(
|
|
|
190
190
|
* For licensing, see LICENSE.md.
|
|
191
191
|
*/
|
|
192
192
|
function Ot(l) {
|
|
193
|
-
return Ye(l.licenseKey) ? l :
|
|
193
|
+
return Ye(l.licenseKey) ? l : xt(l, [
|
|
194
194
|
/**
|
|
195
195
|
* This part of the code is not executed in open-source implementations using a GPL key.
|
|
196
196
|
* It only runs when a specific license key is provided. If you are uncertain whether
|
|
@@ -317,7 +317,7 @@ class zt {
|
|
|
317
317
|
this.text = e, this.icon = n, this.iconComponent = o;
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
const Q = { enabled: void 0 };
|
|
320
|
+
const Q = { enabled: void 0, clearable: !0 };
|
|
321
321
|
function K(l, e) {
|
|
322
322
|
const n = sl(Ze, {}), o = S(null), s = T({
|
|
323
323
|
get() {
|
|
@@ -533,7 +533,7 @@ Object.freeze(P);
|
|
|
533
533
|
const Me = ["xs", "sm", "md", "lg", "xl"];
|
|
534
534
|
class Zt {
|
|
535
535
|
constructor(e) {
|
|
536
|
-
|
|
536
|
+
xe(this, "_value");
|
|
537
537
|
this._value = this.cleanBreakpoint(e, !0), e && Me.forEach((n) => {
|
|
538
538
|
const o = this.cleanBreakpoint(e[n]);
|
|
539
539
|
o && (this._value[n] = o);
|
|
@@ -602,7 +602,7 @@ class he extends pl {
|
|
|
602
602
|
}
|
|
603
603
|
static closeAction(e) {
|
|
604
604
|
var o;
|
|
605
|
-
const n = R(
|
|
605
|
+
const n = R(D({}, e != null ? e : {}), {
|
|
606
606
|
// any properties in data should overwrite properties in the constant
|
|
607
607
|
value: {
|
|
608
608
|
name: "close",
|
|
@@ -613,11 +613,11 @@ class he extends pl {
|
|
|
613
613
|
showIcon: !0
|
|
614
614
|
}
|
|
615
615
|
});
|
|
616
|
-
return n.value =
|
|
616
|
+
return n.value = D(D({}, n.value), (o = e == null ? void 0 : e.value) != null ? o : {}), he.create(n);
|
|
617
617
|
}
|
|
618
618
|
static yesAction(e) {
|
|
619
619
|
var o;
|
|
620
|
-
const n = R(
|
|
620
|
+
const n = R(D({}, e != null ? e : {}), {
|
|
621
621
|
// any properties in data should overwrite properties in the constant
|
|
622
622
|
value: {
|
|
623
623
|
name: "yes",
|
|
@@ -628,11 +628,11 @@ class he extends pl {
|
|
|
628
628
|
showIcon: !0
|
|
629
629
|
}
|
|
630
630
|
});
|
|
631
|
-
return n.value =
|
|
631
|
+
return n.value = D(D({}, n.value), (o = e == null ? void 0 : e.value) != null ? o : {}), he.create(n);
|
|
632
632
|
}
|
|
633
633
|
static noAction(e) {
|
|
634
634
|
var o;
|
|
635
|
-
const n = R(
|
|
635
|
+
const n = R(D({}, e != null ? e : {}), {
|
|
636
636
|
// any properties in data should overwrite properties in the constant
|
|
637
637
|
value: {
|
|
638
638
|
name: "no",
|
|
@@ -643,7 +643,7 @@ class he extends pl {
|
|
|
643
643
|
showIcon: !0
|
|
644
644
|
}
|
|
645
645
|
});
|
|
646
|
-
return n.value =
|
|
646
|
+
return n.value = D(D({}, n.value), (o = e == null ? void 0 : e.value) != null ? o : {}), he.create(n);
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
const ln = {
|
|
@@ -657,7 +657,7 @@ const ln = {
|
|
|
657
657
|
showAsGroup: { default: "no" }
|
|
658
658
|
},
|
|
659
659
|
setup(l) {
|
|
660
|
-
const e = l, n = Jt(), o = T(() => t(e.actions)), s = T(() => o.value.map((a) =>
|
|
660
|
+
const e = l, n = Jt(), o = T(() => t(e.actions)), s = T(() => o.value.map((a) => D({
|
|
661
661
|
action: a
|
|
662
662
|
}, t(a.getBreakpointValue(n)))));
|
|
663
663
|
return (a, g) => {
|
|
@@ -705,7 +705,7 @@ const ln = {
|
|
|
705
705
|
visibility: {},
|
|
706
706
|
cssClass: {},
|
|
707
707
|
clearable: { type: Boolean }
|
|
708
|
-
}, R(
|
|
708
|
+
}, R(D({}, Q), { allowNull: !1 })),
|
|
709
709
|
emits: ["update:modelValue", "click:clear"],
|
|
710
710
|
setup(l, { emit: e }) {
|
|
711
711
|
const n = l, o = e, { errors: s, label: a, touched: g, value: r, vuetifyBindings: m } = K(n, o), v = T(() => n.allowNull && r.value == null), _ = T({
|
|
@@ -768,7 +768,7 @@ const ln = {
|
|
|
768
768
|
visibility: {},
|
|
769
769
|
cssClass: {},
|
|
770
770
|
clearable: { type: Boolean }
|
|
771
|
-
}, R(
|
|
771
|
+
}, R(D({}, Q), { allowNull: !1 })),
|
|
772
772
|
emits: ["update:modelValue", "click:clear"],
|
|
773
773
|
setup(l, { emit: e }) {
|
|
774
774
|
const n = l, o = e, { errors: s, label: a, touched: g, value: r, vuetifyBindings: m } = K(n, o), v = S(!1), _ = T(() => [
|
|
@@ -845,7 +845,7 @@ const ln = {
|
|
|
845
845
|
visibility: {},
|
|
846
846
|
cssClass: {},
|
|
847
847
|
clearable: { type: Boolean }
|
|
848
|
-
}, R(
|
|
848
|
+
}, R(D({}, Q), {
|
|
849
849
|
inputType: "datetime",
|
|
850
850
|
displayFormatDate: "P",
|
|
851
851
|
displayFormatTime: "p"
|
|
@@ -874,13 +874,13 @@ const ln = {
|
|
|
874
874
|
if (t(r) === "time")
|
|
875
875
|
b.value = f(/* @__PURE__ */ new Date()), V(`T${u}`, 1);
|
|
876
876
|
else {
|
|
877
|
-
const
|
|
878
|
-
V(
|
|
877
|
+
const x = f(new Date(u));
|
|
878
|
+
V(x, 0), V(x, 1);
|
|
879
879
|
}
|
|
880
880
|
else {
|
|
881
881
|
b.value == null && (b.value = f(/* @__PURE__ */ new Date()));
|
|
882
|
-
const
|
|
883
|
-
|
|
882
|
+
const x = b.value.split(/[TZ]/g), F = u.split(/[TZ]/g);
|
|
883
|
+
x[d] = F[d], b.value = f(/* @__PURE__ */ new Date(`${x[0]}T${x[1].split(".")[0]}`)), t(r) === "date" ? a.value = x[0] : t(r) === "time" ? a.value = x[1] : a.value = t(b) + ce(/* @__PURE__ */ new Date(), "XXX");
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
886
|
ie(a, (u) => V(u, -1), { immediate: !0 });
|
|
@@ -923,15 +923,15 @@ const ln = {
|
|
|
923
923
|
set(u) {
|
|
924
924
|
const d = u.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
925
925
|
if (d == null) return;
|
|
926
|
-
let
|
|
926
|
+
let x = Fe(d[1]);
|
|
927
927
|
const F = Fe(d[2]);
|
|
928
|
-
Le(
|
|
928
|
+
Le(x) || Le(F) || (d[3] && d[3].toLowerCase() === "pm" && x < 13 && (x += 12), V(`T${x.toString().padStart(2, "0")}:${F.toString().padStart(2, "0")}:00`, 1));
|
|
929
929
|
}
|
|
930
930
|
});
|
|
931
931
|
return (u, d) => {
|
|
932
|
-
const
|
|
932
|
+
const x = $("v-date-picker"), F = $("v-confirm-edit"), G = $("v-menu"), W = $("v-text-field"), fe = $("v-time-picker");
|
|
933
933
|
return y(), B(t(Ie), z(n, {
|
|
934
|
-
clearable:
|
|
934
|
+
clearable: u.clearable,
|
|
935
935
|
"onClick:clear": d[14] || (d[14] = (M) => a.value = null),
|
|
936
936
|
onBlur: d[15] || (d[15] = (M) => s.value = !0)
|
|
937
937
|
}), {
|
|
@@ -969,7 +969,7 @@ const ln = {
|
|
|
969
969
|
onSave: d[2] || (d[2] = (c) => _.value = "")
|
|
970
970
|
}, {
|
|
971
971
|
default: h(({ model: c, actions: I }) => [
|
|
972
|
-
C(
|
|
972
|
+
C(x, {
|
|
973
973
|
modelValue: c.value,
|
|
974
974
|
"onUpdate:modelValue": (H) => c.value = H,
|
|
975
975
|
"hide-header": !0,
|
|
@@ -1046,7 +1046,7 @@ const ln = {
|
|
|
1046
1046
|
])
|
|
1047
1047
|
]),
|
|
1048
1048
|
_: 1
|
|
1049
|
-
}, 16);
|
|
1049
|
+
}, 16, ["clearable"]);
|
|
1050
1050
|
};
|
|
1051
1051
|
}
|
|
1052
1052
|
}), dn = {
|
|
@@ -1106,8 +1106,8 @@ const ln = {
|
|
|
1106
1106
|
E && (Array.isArray(E) ? console.error("Uploading multiple files not supported right now") : w(E));
|
|
1107
1107
|
}
|
|
1108
1108
|
return (E, u) => {
|
|
1109
|
-
const d = $("v-icon"),
|
|
1110
|
-
return y(), B(t(Ie), z(R(
|
|
1109
|
+
const d = $("v-icon"), x = $("v-progress-linear"), F = $("v-file-input");
|
|
1110
|
+
return y(), B(t(Ie), z(R(D({}, n), { loading: p.value }), {
|
|
1111
1111
|
clearable: "",
|
|
1112
1112
|
"onClick:clear": k,
|
|
1113
1113
|
onBlur: u[1] || (u[1] = (G) => s.value = !0)
|
|
@@ -1116,7 +1116,7 @@ const ln = {
|
|
|
1116
1116
|
C(d, { icon: "$file" })
|
|
1117
1117
|
]),
|
|
1118
1118
|
loader: h(() => [
|
|
1119
|
-
m.value && v.value < 100 ? (y(), B(
|
|
1119
|
+
m.value && v.value < 100 ? (y(), B(x, {
|
|
1120
1120
|
key: 0,
|
|
1121
1121
|
"model-value": v.value,
|
|
1122
1122
|
indeterminate: v.value === -1
|
|
@@ -1170,7 +1170,7 @@ const ln = {
|
|
|
1170
1170
|
visibility: {},
|
|
1171
1171
|
cssClass: {},
|
|
1172
1172
|
clearable: { type: Boolean }
|
|
1173
|
-
}, R(
|
|
1173
|
+
}, R(D({}, Q), {
|
|
1174
1174
|
inputType: "text",
|
|
1175
1175
|
precision: null,
|
|
1176
1176
|
step: void 0,
|
|
@@ -1187,7 +1187,7 @@ const ln = {
|
|
|
1187
1187
|
key: 1,
|
|
1188
1188
|
modelValue: t(r),
|
|
1189
1189
|
"onUpdate:modelValue": w[2] || (w[2] = (u) => de(r) ? r.value = u : null)
|
|
1190
|
-
},
|
|
1190
|
+
}, D(D({}, t(m)), V.value), {
|
|
1191
1191
|
density: "compact",
|
|
1192
1192
|
"control-variant": "stacked"
|
|
1193
1193
|
}), Y({
|
|
@@ -1294,8 +1294,8 @@ const ln = {
|
|
|
1294
1294
|
Bl,
|
|
1295
1295
|
Il,
|
|
1296
1296
|
$l,
|
|
1297
|
-
xl,
|
|
1298
1297
|
Dl,
|
|
1298
|
+
xl,
|
|
1299
1299
|
Nl,
|
|
1300
1300
|
Sl,
|
|
1301
1301
|
El,
|
|
@@ -1422,7 +1422,7 @@ const ln = {
|
|
|
1422
1422
|
visibility: {},
|
|
1423
1423
|
cssClass: {},
|
|
1424
1424
|
clearable: { type: Boolean }
|
|
1425
|
-
}, R(
|
|
1425
|
+
}, R(D({}, Q), { minHeight: void 0 })),
|
|
1426
1426
|
emits: ["update:modelValue", "click:clear"],
|
|
1427
1427
|
setup(l, { emit: e }) {
|
|
1428
1428
|
const n = l, o = e, { value: s, vuetifyBindings: a } = K(n, o);
|
|
@@ -1493,7 +1493,7 @@ const _n = {
|
|
|
1493
1493
|
visibility: {},
|
|
1494
1494
|
cssClass: {},
|
|
1495
1495
|
clearable: { type: Boolean }
|
|
1496
|
-
}, R(
|
|
1496
|
+
}, R(D({}, Q), {
|
|
1497
1497
|
choices: void 0,
|
|
1498
1498
|
multiple: !1,
|
|
1499
1499
|
allowTags: !1,
|
|
@@ -1506,10 +1506,10 @@ const _n = {
|
|
|
1506
1506
|
function d(c) {
|
|
1507
1507
|
v("update:modelValueDisplay", ye(A.value, c));
|
|
1508
1508
|
}
|
|
1509
|
-
let
|
|
1509
|
+
let x = !1;
|
|
1510
1510
|
function F(c) {
|
|
1511
|
-
|
|
1512
|
-
|
|
1511
|
+
x = !0, f.value = c, Ue(() => {
|
|
1512
|
+
x = !1;
|
|
1513
1513
|
});
|
|
1514
1514
|
}
|
|
1515
1515
|
ie(V, (c) => {
|
|
@@ -1518,7 +1518,7 @@ const _n = {
|
|
|
1518
1518
|
d(I), F(I);
|
|
1519
1519
|
});
|
|
1520
1520
|
}, { deep: !0 }), ie(f, (c) => {
|
|
1521
|
-
if (!
|
|
1521
|
+
if (!x) {
|
|
1522
1522
|
const I = J(c, s.value);
|
|
1523
1523
|
ge(I, V, s.value, !1, A.value);
|
|
1524
1524
|
}
|
|
@@ -1678,7 +1678,7 @@ const _n = {
|
|
|
1678
1678
|
visibility: {},
|
|
1679
1679
|
cssClass: {},
|
|
1680
1680
|
clearable: { type: Boolean }
|
|
1681
|
-
}, R(
|
|
1681
|
+
}, R(D({}, Q), {
|
|
1682
1682
|
rows: void 0,
|
|
1683
1683
|
maxRows: void 0
|
|
1684
1684
|
})),
|
|
@@ -1763,7 +1763,7 @@ const _n = {
|
|
|
1763
1763
|
VSwitch: Bt,
|
|
1764
1764
|
VTextField: $t,
|
|
1765
1765
|
VTextarea: It,
|
|
1766
|
-
VTimePicker:
|
|
1766
|
+
VTimePicker: Dt
|
|
1767
1767
|
}, Symbol.toStringTag, { value: "Module" })), io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1768
1768
|
__proto__: null
|
|
1769
1769
|
}, Symbol.toStringTag, { value: "Module" })), uo = {
|