@dynamicforms/vuetify-inputs 0.1.16 → 0.1.17
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.
|
@@ -12,19 +12,19 @@ var ue = (t, e, l) => e in t ? He(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
12
12
|
}, M = (t, e) => je(t, ze(e));
|
|
13
13
|
var Y = (t, e, l) => ue(t, typeof e != "symbol" ? e + "" : e, l);
|
|
14
14
|
var oe = (t, e, l) => new Promise((i, o) => {
|
|
15
|
-
var a = (
|
|
15
|
+
var a = (c) => {
|
|
16
16
|
try {
|
|
17
|
-
u(l.next(
|
|
17
|
+
u(l.next(c));
|
|
18
18
|
} catch (b) {
|
|
19
19
|
o(b);
|
|
20
20
|
}
|
|
21
|
-
}, v = (
|
|
21
|
+
}, v = (c) => {
|
|
22
22
|
try {
|
|
23
|
-
u(l.throw(
|
|
23
|
+
u(l.throw(c));
|
|
24
24
|
} catch (b) {
|
|
25
25
|
o(b);
|
|
26
26
|
}
|
|
27
|
-
}, u = (
|
|
27
|
+
}, u = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(a, v);
|
|
28
28
|
u((l = l.apply(t, e)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as we from "vue";
|
|
@@ -32,10 +32,10 @@ import { defineComponent as L, mergeModels as Ve, useModel as We, ref as S, watc
|
|
|
32
32
|
import { debounce as tt, isEmpty as lt, isObjectLike as nt, isString as pe, isBoolean as Te, clone as ot, toNumber as Ce, isNaN as Ie, isArray as Be, castArray as Fe, first as Pe } from "lodash-es";
|
|
33
33
|
import fe from "vue-ionicon";
|
|
34
34
|
import { useDisplay as at } from "vuetify";
|
|
35
|
-
import Ae, { ValidationErrorRenderContent as it, DisplayMode as H, ExecuteAction as st, Action as
|
|
35
|
+
import Ae, { ValidationErrorRenderContent as it, DisplayMode as H, ExecuteAction as st, Action as ce } from "@dynamicforms/vue-forms";
|
|
36
36
|
import rt from "vue-markdown-render";
|
|
37
37
|
import { format as Q, parse as ut } from "date-fns";
|
|
38
|
-
import { AccessibilityHelp as
|
|
38
|
+
import { AccessibilityHelp as ct, Alignment as dt, AutoImage as mt, AutoLink as pt, Autosave as ft, BalloonToolbar as vt, BlockQuote as bt, Bold as gt, CloudServices as ht, Essentials as yt, GeneralHtmlSupport as _t, Heading as wt, HorizontalLine as Vt, ImageBlock as kt, ImageCaption as Tt, ImageInline as Ct, ImageInsertViaUrl as It, ImageResize as Bt, ImageStyle as At, ImageToolbar as xt, ImageUpload as Dt, Indent as St, IndentBlock as Nt, Italic as $t, Link as Et, List as Ut, Autoformat as Lt, MediaEmbed as Ft, Paragraph as Pt, PasteFromMarkdownExperimental as Rt, PasteFromOffice as Ot, SelectAll as Mt, Style as Ht, Table as jt, TableCellProperties as zt, TableColumnResize as Kt, TableProperties as Gt, TableToolbar as Wt, Undo as Xt, TextTransformation as qt, Base64UploadAdapter as Zt, ClassicEditor as Yt } from "ckeditor5";
|
|
39
39
|
import { VAutocomplete as Qt } from "vuetify/components/VAutocomplete";
|
|
40
40
|
import { VBtn as Jt } from "vuetify/components/VBtn";
|
|
41
41
|
import { VCheckbox as el } from "vuetify/components/VCheckbox";
|
|
@@ -47,8 +47,8 @@ import { VDatePicker as al } from "vuetify/components/VDatePicker";
|
|
|
47
47
|
import { VFileInput as il } from "vuetify/components/VFileInput";
|
|
48
48
|
import { VCol as sl, VRow as rl } from "vuetify/components/VGrid";
|
|
49
49
|
import { VIcon as ul } from "vuetify/components/VIcon";
|
|
50
|
-
import { VInput as
|
|
51
|
-
import { VListItem as
|
|
50
|
+
import { VInput as cl } from "vuetify/components/VInput";
|
|
51
|
+
import { VListItem as dl } from "vuetify/components/VList";
|
|
52
52
|
import { VMenu as ml } from "vuetify/components/VMenu";
|
|
53
53
|
import { VNumberInput as pl } from "vuetify/components/VNumberInput";
|
|
54
54
|
import { VProgressLinear as fl } from "vuetify/components/VProgressLinear";
|
|
@@ -197,7 +197,7 @@ function Al(t) {
|
|
|
197
197
|
Bl
|
|
198
198
|
]);
|
|
199
199
|
}
|
|
200
|
-
const
|
|
200
|
+
const de = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", xl = 300, Dl = /* @__PURE__ */ L({
|
|
201
201
|
name: "CKEditor",
|
|
202
202
|
__name: "ckeditor",
|
|
203
203
|
props: /* @__PURE__ */ Ve({
|
|
@@ -212,14 +212,14 @@ const ce = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", xl = 300, Dl =
|
|
|
212
212
|
}),
|
|
213
213
|
emits: /* @__PURE__ */ Ve(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
|
|
214
214
|
setup(t, { expose: e, emit: l }) {
|
|
215
|
-
const i = We(t, "modelValue"), o = t, a = l, v = S(), u = S(),
|
|
215
|
+
const i = We(t, "modelValue"), o = t, a = l, v = S(), u = S(), c = S();
|
|
216
216
|
e({
|
|
217
217
|
instance: u,
|
|
218
|
-
lastEditorData:
|
|
218
|
+
lastEditorData: c
|
|
219
219
|
}), ee(i, (r) => {
|
|
220
|
-
u.value && r !==
|
|
220
|
+
u.value && r !== c.value && u.value.data.set(r);
|
|
221
221
|
}), ee(() => o.disabled, (r) => {
|
|
222
|
-
r ? u.value.enableReadOnlyMode(
|
|
222
|
+
r ? u.value.enableReadOnlyMode(de) : u.value.disableReadOnlyMode(de);
|
|
223
223
|
});
|
|
224
224
|
function b() {
|
|
225
225
|
const r = window.CKEDITOR_VERSION;
|
|
@@ -229,16 +229,16 @@ const ce = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", xl = 300, Dl =
|
|
|
229
229
|
m >= 42 || r.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
230
230
|
}
|
|
231
231
|
function s(r) {
|
|
232
|
-
const m = tt((
|
|
232
|
+
const m = tt((d) => {
|
|
233
233
|
if (o.disableTwoWayDataBinding)
|
|
234
234
|
return;
|
|
235
|
-
const h =
|
|
236
|
-
a("update:modelValue", h,
|
|
235
|
+
const h = c.value = r.data.get();
|
|
236
|
+
a("update:modelValue", h, d, r), a("input", h, d, r);
|
|
237
237
|
}, xl, { leading: !0 });
|
|
238
|
-
r.model.document.on("change:data", m), r.editing.view.document.on("focus", (
|
|
239
|
-
a("focus",
|
|
240
|
-
}), r.editing.view.document.on("blur", (
|
|
241
|
-
a("blur",
|
|
238
|
+
r.model.document.on("change:data", m), r.editing.view.document.on("focus", (d) => {
|
|
239
|
+
a("focus", d, r);
|
|
240
|
+
}), r.editing.view.document.on("blur", (d) => {
|
|
241
|
+
a("blur", d, r);
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
return b(), Se(() => {
|
|
@@ -246,7 +246,7 @@ const ce = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", xl = 300, Dl =
|
|
|
246
246
|
Object.assign({}, o.config)
|
|
247
247
|
);
|
|
248
248
|
i.value && (r.initialData = i.value), o.editor.create(v.value, r).then((m) => {
|
|
249
|
-
u.value = Xe(m), s(m), i.value !== r.initialData && m.data.set(i.value), o.disabled && m.enableReadOnlyMode(
|
|
249
|
+
u.value = Xe(m), s(m), i.value !== r.initialData && m.data.set(i.value), o.disabled && m.enableReadOnlyMode(de), a("ready", m);
|
|
250
250
|
}).catch((m) => {
|
|
251
251
|
console.error(m);
|
|
252
252
|
});
|
|
@@ -282,17 +282,17 @@ function j(t, e) {
|
|
|
282
282
|
get() {
|
|
283
283
|
return t.control ? t.control.value : t.modelValue;
|
|
284
284
|
},
|
|
285
|
-
set(
|
|
286
|
-
t.control && (t.control.value =
|
|
285
|
+
set(d) {
|
|
286
|
+
t.control && (t.control.value = d), e("update:modelValue", d);
|
|
287
287
|
}
|
|
288
288
|
});
|
|
289
289
|
if (t.control && !(t.control instanceof Ae.FieldBase))
|
|
290
290
|
throw new Error("control prop is not a vue-form control instance");
|
|
291
291
|
const i = _(() => t.control ? t.control.valid : !0), o = _(
|
|
292
|
-
() => t.control ? t.control.errors : (t.errors || []).map((
|
|
292
|
+
() => t.control ? t.control.errors : (t.errors || []).map((d) => new it(d))
|
|
293
293
|
), a = _(() => o.value.length > 0 ? " " : void 0), v = _(() => t.control ? t.control.enabled : t.enabled !== !1), u = _(
|
|
294
294
|
() => t.control ? t.control.visibility : t.visibility || Ae.DisplayMode.FULL
|
|
295
|
-
),
|
|
295
|
+
), c = _(() => t.label || ""), b = _(() => t.placeholder || ""), s = _(() => t.helpText || ""), r = _(() => t.hint || ""), m = _(() => t.cssClass || "");
|
|
296
296
|
return {
|
|
297
297
|
value: l,
|
|
298
298
|
valid: i,
|
|
@@ -300,13 +300,13 @@ function j(t, e) {
|
|
|
300
300
|
errors: o,
|
|
301
301
|
visibility: u,
|
|
302
302
|
vuetifyBindings: _(() => {
|
|
303
|
-
var
|
|
303
|
+
var d;
|
|
304
304
|
return {
|
|
305
|
-
name: (
|
|
305
|
+
name: (d = t.control) == null ? void 0 : d.fieldName,
|
|
306
306
|
class: m.value,
|
|
307
307
|
density: "default",
|
|
308
308
|
variant: "underlined",
|
|
309
|
-
label:
|
|
309
|
+
label: c.value,
|
|
310
310
|
messages: a.value,
|
|
311
311
|
// 'error-count': errors?.value.length || 0,
|
|
312
312
|
readonly: !v.value,
|
|
@@ -381,7 +381,7 @@ const Nl = {
|
|
|
381
381
|
},
|
|
382
382
|
emits: ["update:modelValue", "click:clear"],
|
|
383
383
|
setup(t, { emit: e }) {
|
|
384
|
-
const l = t, i = e, { errors: o, value: a, visibility: v, vuetifyBindings: u } = j(l, i),
|
|
384
|
+
const l = t, i = e, { errors: o, value: a, visibility: v, vuetifyBindings: u } = j(l, i), c = _(() => n(l.clearable) && n(a));
|
|
385
385
|
return (b, s) => {
|
|
386
386
|
const r = A("v-icon"), m = A("v-input");
|
|
387
387
|
return n(v) !== n(H).SUPPRESS ? (g(), $("div", {
|
|
@@ -400,9 +400,9 @@ const Nl = {
|
|
|
400
400
|
"persistent-hint": n(u).persistentHint,
|
|
401
401
|
"hide-details": n(u).hideDetails
|
|
402
402
|
}, Ze({
|
|
403
|
-
message: y(({ message:
|
|
403
|
+
message: y(({ message: d }) => [
|
|
404
404
|
x(W, {
|
|
405
|
-
message:
|
|
405
|
+
message: d,
|
|
406
406
|
errors: n(o)
|
|
407
407
|
}, null, 8, ["message", "errors"])
|
|
408
408
|
]),
|
|
@@ -411,11 +411,11 @@ const Nl = {
|
|
|
411
411
|
]),
|
|
412
412
|
_: 2
|
|
413
413
|
}, [
|
|
414
|
-
|
|
414
|
+
c.value ? {
|
|
415
415
|
name: "append",
|
|
416
416
|
fn: y(() => [
|
|
417
417
|
x(r, {
|
|
418
|
-
onClick: s[0] || (s[0] = (
|
|
418
|
+
onClick: s[0] || (s[0] = (d) => i("click:clear"))
|
|
419
419
|
}, {
|
|
420
420
|
default: y(() => s[1] || (s[1] = [
|
|
421
421
|
be("mdi-close-circle")
|
|
@@ -469,8 +469,8 @@ class se {
|
|
|
469
469
|
showIcon: (v = this._value.showIcon) != null ? v : !0
|
|
470
470
|
}, i = [...De].reverse();
|
|
471
471
|
for (const u of i) {
|
|
472
|
-
const
|
|
473
|
-
if (
|
|
472
|
+
const c = this._value[u];
|
|
473
|
+
if (c && (c.label != null && (l.label = c.label), c.renderAs != null && (l.renderAs = c.renderAs), c.showIcon != null && (l.showIcon = c.showIcon), c.showLabel != null && (l.showLabel = c.showLabel)), u === e) break;
|
|
474
474
|
}
|
|
475
475
|
return l;
|
|
476
476
|
}
|
|
@@ -509,10 +509,10 @@ class ae {
|
|
|
509
509
|
static makeFormAction(e) {
|
|
510
510
|
let l;
|
|
511
511
|
if (e instanceof st)
|
|
512
|
-
l =
|
|
512
|
+
l = ce.create().registerAction(e);
|
|
513
513
|
else if (e === void 0)
|
|
514
|
-
l =
|
|
515
|
-
else if (e instanceof
|
|
514
|
+
l = ce.create();
|
|
515
|
+
else if (e instanceof ce)
|
|
516
516
|
l = e;
|
|
517
517
|
else
|
|
518
518
|
throw new Error("actionOrExecuteHandler is not of any of supported types");
|
|
@@ -584,7 +584,7 @@ const Fl = {
|
|
|
584
584
|
function u(s) {
|
|
585
585
|
return a.value[s.name].showLabel && s.labelAvailable ? !0 : !v(s);
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function c(s) {
|
|
588
588
|
var r;
|
|
589
589
|
return (r = a.value[s.name].renderAs) != null ? r : R.BUTTON;
|
|
590
590
|
}
|
|
@@ -601,22 +601,22 @@ const Fl = {
|
|
|
601
601
|
"with-border": s.showAsGroup === "grouped"
|
|
602
602
|
}])
|
|
603
603
|
}, [
|
|
604
|
-
(g(!0), $($e, null, Ee(n(l), (
|
|
604
|
+
(g(!0), $($e, null, Ee(n(l), (d, h) => (g(), V(m, {
|
|
605
605
|
key: h,
|
|
606
|
-
variant: d
|
|
606
|
+
variant: c(d) === n(R).BUTTON ? "tonal" : "text",
|
|
607
607
|
elevation: 0,
|
|
608
608
|
class: ie(h !== -1 ? "" : "ms-3"),
|
|
609
609
|
size: s.buttonSize,
|
|
610
|
-
onClick: Qe((k) =>
|
|
610
|
+
onClick: Qe((k) => d.formAction.execute(k), ["stop"])
|
|
611
611
|
}, {
|
|
612
612
|
default: y(() => [
|
|
613
|
-
v(
|
|
613
|
+
v(d) ? (g(), V(n(fe), {
|
|
614
614
|
key: 0,
|
|
615
615
|
class: "action-icon",
|
|
616
|
-
name:
|
|
616
|
+
name: d.formAction.icon
|
|
617
617
|
}, null, 8, ["name"])) : E("", !0),
|
|
618
|
-
v(
|
|
619
|
-
u(
|
|
618
|
+
v(d) && u(d) ? (g(), $("span", Fl)) : E("", !0),
|
|
619
|
+
u(d) ? (g(), $("span", Pl, q(b(d)), 1)) : E("", !0)
|
|
620
620
|
]),
|
|
621
621
|
_: 2
|
|
622
622
|
}, 1032, ["variant", "class", "size", "onClick"]))), 128))
|
|
@@ -641,7 +641,7 @@ const Fl = {
|
|
|
641
641
|
}, M(N({}, K), { allowNull: !1 })),
|
|
642
642
|
emits: ["update:modelValue", "click:clear"],
|
|
643
643
|
setup(t, { emit: e }) {
|
|
644
|
-
const l = t, i = e, { errors: o, value: a, vuetifyBindings: v } = j(l, i), u = _(() => l.allowNull && a.value == null),
|
|
644
|
+
const l = t, i = e, { errors: o, value: a, vuetifyBindings: v } = j(l, i), u = _(() => l.allowNull && a.value == null), c = _({
|
|
645
645
|
get() {
|
|
646
646
|
return a.value;
|
|
647
647
|
},
|
|
@@ -655,8 +655,8 @@ const Fl = {
|
|
|
655
655
|
return (s, r) => {
|
|
656
656
|
const m = A("v-checkbox");
|
|
657
657
|
return g(), V(m, P({
|
|
658
|
-
modelValue:
|
|
659
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
658
|
+
modelValue: c.value,
|
|
659
|
+
"onUpdate:modelValue": r[0] || (r[0] = (d) => c.value = d)
|
|
660
660
|
}, n(v), {
|
|
661
661
|
density: "compact",
|
|
662
662
|
indeterminate: u.value,
|
|
@@ -664,9 +664,9 @@ const Fl = {
|
|
|
664
664
|
"true-value": !0,
|
|
665
665
|
onChange: b
|
|
666
666
|
}), {
|
|
667
|
-
message: y(({ message:
|
|
667
|
+
message: y(({ message: d }) => [
|
|
668
668
|
x(n(W), {
|
|
669
|
-
message:
|
|
669
|
+
message: d,
|
|
670
670
|
errors: n(o)
|
|
671
671
|
}, null, 8, ["message", "errors"])
|
|
672
672
|
]),
|
|
@@ -692,12 +692,12 @@ const Fl = {
|
|
|
692
692
|
}, M(N({}, K), { allowNull: !1 })),
|
|
693
693
|
emits: ["update:modelValue", "click:clear"],
|
|
694
694
|
setup(t, { emit: e }) {
|
|
695
|
-
const l = t, i = e, { errors: o, value: a, vuetifyBindings: v } = j(l, i), u = S(!1),
|
|
695
|
+
const l = t, i = e, { errors: o, value: a, vuetifyBindings: v } = j(l, i), u = S(!1), c = _(() => [
|
|
696
696
|
(b) => !b && l.allowNull || /^#?([a-fA-F0-9]{6}[a-fA-F0-9]{0,2})$/.test(b) ? !0 : "Not a valid hex string."
|
|
697
697
|
]);
|
|
698
698
|
return (b, s) => {
|
|
699
|
-
const r = A("v-text-field"), m = A("v-color-picker"),
|
|
700
|
-
return g(), V(
|
|
699
|
+
const r = A("v-text-field"), m = A("v-color-picker"), d = A("v-menu");
|
|
700
|
+
return g(), V(d, {
|
|
701
701
|
modelValue: u.value,
|
|
702
702
|
"onUpdate:modelValue": s[2] || (s[2] = (h) => u.value = h),
|
|
703
703
|
location: "top start",
|
|
@@ -711,7 +711,7 @@ const Fl = {
|
|
|
711
711
|
}, N(N({}, n(v)), h), {
|
|
712
712
|
clearable: b.allowNull,
|
|
713
713
|
type: "text",
|
|
714
|
-
rules:
|
|
714
|
+
rules: c.value
|
|
715
715
|
}), {
|
|
716
716
|
message: y(({ message: k }) => [
|
|
717
717
|
x(n(W), {
|
|
@@ -762,7 +762,7 @@ const Fl = {
|
|
|
762
762
|
})),
|
|
763
763
|
emits: ["update:modelValue", "click:clear"],
|
|
764
764
|
setup(t, { emit: e }) {
|
|
765
|
-
const l = t, i = e, { value: o, vuetifyBindings: a } = j(l, i), { inputType: v, displayFormatDate: u, displayFormatTime:
|
|
765
|
+
const l = t, i = e, { value: o, vuetifyBindings: a } = j(l, i), { inputType: v, displayFormatDate: u, displayFormatTime: c } = re(l), b = S(""), s = _({
|
|
766
766
|
get() {
|
|
767
767
|
return n(b) !== "";
|
|
768
768
|
},
|
|
@@ -770,15 +770,15 @@ const Fl = {
|
|
|
770
770
|
f ? b.value = "date" : b.value = "";
|
|
771
771
|
}
|
|
772
772
|
}), r = (f) => `${Q(f, "yyyy-MM-dd")}T${Q(f, "HH:mm")}:00`, m = S(null);
|
|
773
|
-
function
|
|
773
|
+
function d(f, p) {
|
|
774
774
|
if (f == null)
|
|
775
775
|
m.value = null;
|
|
776
776
|
else if (p === -1)
|
|
777
777
|
if (n(v) === "time")
|
|
778
|
-
m.value = r(/* @__PURE__ */ new Date()),
|
|
778
|
+
m.value = r(/* @__PURE__ */ new Date()), d(`T${f}`, 1);
|
|
779
779
|
else {
|
|
780
780
|
const I = r(new Date(f));
|
|
781
|
-
|
|
781
|
+
d(I, 0), d(I, 1);
|
|
782
782
|
}
|
|
783
783
|
else {
|
|
784
784
|
m.value == null && (m.value = r(/* @__PURE__ */ new Date()));
|
|
@@ -786,7 +786,7 @@ const Fl = {
|
|
|
786
786
|
I[p] = F[p], m.value = r(/* @__PURE__ */ new Date(`${I[0]}T${I[1].split(".")[0]}`)), n(v) === "date" ? o.value = I[0] : n(v) === "time" ? o.value = I[1] : o.value = n(m) + Q(/* @__PURE__ */ new Date(), "XXX");
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
|
-
ee(o, (f) =>
|
|
789
|
+
ee(o, (f) => d(f, -1), { immediate: !0 });
|
|
790
790
|
const h = _({
|
|
791
791
|
get() {
|
|
792
792
|
const f = n(m);
|
|
@@ -795,7 +795,7 @@ const Fl = {
|
|
|
795
795
|
return Number.isNaN(p.getTime()) ? null : p;
|
|
796
796
|
},
|
|
797
797
|
set(f) {
|
|
798
|
-
|
|
798
|
+
d(r(f), 0);
|
|
799
799
|
}
|
|
800
800
|
}), k = _({
|
|
801
801
|
get() {
|
|
@@ -803,7 +803,7 @@ const Fl = {
|
|
|
803
803
|
return f == null ? "" : f.split(/[TZ]/g)[1].split(".")[0];
|
|
804
804
|
},
|
|
805
805
|
set(f) {
|
|
806
|
-
|
|
806
|
+
d(`T${f}`, 1);
|
|
807
807
|
}
|
|
808
808
|
}), O = _({
|
|
809
809
|
get() {
|
|
@@ -813,7 +813,7 @@ const Fl = {
|
|
|
813
813
|
set(f) {
|
|
814
814
|
try {
|
|
815
815
|
const p = ut(f, n(u), /* @__PURE__ */ new Date());
|
|
816
|
-
|
|
816
|
+
d(r(p), 0);
|
|
817
817
|
} catch (p) {
|
|
818
818
|
console.error(p);
|
|
819
819
|
}
|
|
@@ -821,14 +821,14 @@ const Fl = {
|
|
|
821
821
|
}), D = _({
|
|
822
822
|
get() {
|
|
823
823
|
const f = n(h);
|
|
824
|
-
return f == null ? "" : Q(f, n(
|
|
824
|
+
return f == null ? "" : Q(f, n(c));
|
|
825
825
|
},
|
|
826
826
|
set(f) {
|
|
827
827
|
const p = f.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
828
828
|
if (p == null) return;
|
|
829
829
|
let I = Ce(p[1]);
|
|
830
830
|
const F = Ce(p[2]);
|
|
831
|
-
Ie(I) || Ie(F) || (p[3] && p[3].toLowerCase() === "pm" && I < 13 && (I += 12),
|
|
831
|
+
Ie(I) || Ie(F) || (p[3] && p[3].toLowerCase() === "pm" && I < 13 && (I += 12), d(`T${I.toString().padStart(2, "0")}:${F.toString().padStart(2, "0")}:00`, 1));
|
|
832
832
|
}
|
|
833
833
|
});
|
|
834
834
|
return (f, p) => {
|
|
@@ -954,35 +954,35 @@ const Fl = {
|
|
|
954
954
|
}, K),
|
|
955
955
|
emits: ["update:modelValue", "click:clear"],
|
|
956
956
|
setup(t, { emit: e }) {
|
|
957
|
-
const l = t, i = e, { value: o, vuetifyBindings: a } = j(l, i), v = S(null), u = S(null),
|
|
957
|
+
const l = t, i = e, { value: o, vuetifyBindings: a } = j(l, i), v = S(null), u = S(null), c = S(0), b = S(Math.round(Math.random() * 1e3)), s = S(), r = _(() => !s.value && o.value ? l.modelValue : "");
|
|
958
958
|
function m() {
|
|
959
959
|
v.value && window.clearInterval(v.value);
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function d() {
|
|
962
962
|
m(), v.value = window.setInterval(() => {
|
|
963
963
|
o.value && l.comms.touch(o.value);
|
|
964
964
|
}, 60 * 1e3);
|
|
965
965
|
}
|
|
966
966
|
Ne(() => m()), ee(o, (D) => {
|
|
967
|
-
D ?
|
|
967
|
+
D ? d() : m();
|
|
968
968
|
});
|
|
969
969
|
function h() {
|
|
970
970
|
return oe(this, null, function* () {
|
|
971
|
-
o.value && (yield l.comms.delete(o.value)), o.value = null,
|
|
971
|
+
o.value && (yield l.comms.delete(o.value)), o.value = null, c.value = 0, b.value = Math.round(Math.random() * 1e3), u.value = null, s.value = null, m();
|
|
972
972
|
});
|
|
973
973
|
}
|
|
974
974
|
function k(D) {
|
|
975
975
|
return oe(this, null, function* () {
|
|
976
|
-
|
|
976
|
+
c.value = -1, u.value = D;
|
|
977
977
|
try {
|
|
978
978
|
o.value = yield l.comms.upload(
|
|
979
979
|
D,
|
|
980
980
|
(f, p) => {
|
|
981
|
-
|
|
981
|
+
c.value = Math.round(f * 100 / p);
|
|
982
982
|
}
|
|
983
|
-
),
|
|
983
|
+
), c.value = 100, d();
|
|
984
984
|
} catch (f) {
|
|
985
|
-
throw
|
|
985
|
+
throw c.value = 0, u.value = null, b.value = Math.round(Math.random() * 1e3), s.value = null, f;
|
|
986
986
|
}
|
|
987
987
|
});
|
|
988
988
|
}
|
|
@@ -997,10 +997,10 @@ const Fl = {
|
|
|
997
997
|
}), {
|
|
998
998
|
default: y(() => [
|
|
999
999
|
le("div", Kl, [
|
|
1000
|
-
u.value &&
|
|
1000
|
+
u.value && c.value < 100 ? (g(), V(p, {
|
|
1001
1001
|
key: 0,
|
|
1002
|
-
"model-value":
|
|
1003
|
-
indeterminate:
|
|
1002
|
+
"model-value": c.value,
|
|
1003
|
+
indeterminate: c.value === -1,
|
|
1004
1004
|
height: "10",
|
|
1005
1005
|
style: { position: "absolute", top: "50%", transform: "translateY(-50%)", width: "100%" }
|
|
1006
1006
|
}, null, 8, ["model-value", "indeterminate"])) : E("", !0),
|
|
@@ -1019,7 +1019,7 @@ const Fl = {
|
|
|
1019
1019
|
"hide-details": !0,
|
|
1020
1020
|
"show-size": !0,
|
|
1021
1021
|
multiple: !1,
|
|
1022
|
-
style: ge(u.value &&
|
|
1022
|
+
style: ge(u.value && c.value < 100 ? "visibility: hidden" : ""),
|
|
1023
1023
|
clearable: !1
|
|
1024
1024
|
}, null, 8, ["modelValue", "label", "density", "variant", "readonly", "disabled", "name", "style"])
|
|
1025
1025
|
])
|
|
@@ -1056,7 +1056,7 @@ const Fl = {
|
|
|
1056
1056
|
})),
|
|
1057
1057
|
emits: ["update:modelValue", "click:clear"],
|
|
1058
1058
|
setup(t, { emit: e }) {
|
|
1059
|
-
const l = t, i = e, { errors: o, value: a, vuetifyBindings: v } = j(l, i), { inputType: u, max:
|
|
1059
|
+
const l = t, i = e, { errors: o, value: a, vuetifyBindings: v } = j(l, i), { inputType: u, max: c, min: b, precision: s, step: r } = re(l), m = _(() => u.value === "number"), d = _(() => m.value ? { min: n(b), max: n(c), precision: n(s), step: n(r) } : {});
|
|
1060
1060
|
return (h, k) => {
|
|
1061
1061
|
const O = A("v-text-field"), D = A("v-number-input");
|
|
1062
1062
|
return g(), $("div", Wl, [
|
|
@@ -1064,7 +1064,10 @@ const Fl = {
|
|
|
1064
1064
|
key: 1,
|
|
1065
1065
|
modelValue: n(a),
|
|
1066
1066
|
"onUpdate:modelValue": k[1] || (k[1] = (f) => G(a) ? a.value = f : null)
|
|
1067
|
-
}, N(N({}, n(v)),
|
|
1067
|
+
}, N(N({}, n(v)), d.value), {
|
|
1068
|
+
density: "compact",
|
|
1069
|
+
"control-variant": "stacked"
|
|
1070
|
+
}), {
|
|
1068
1071
|
message: y(({ message: f }) => [
|
|
1069
1072
|
x(n(W), {
|
|
1070
1073
|
message: f,
|
|
@@ -1088,7 +1091,7 @@ const Fl = {
|
|
|
1088
1091
|
]);
|
|
1089
1092
|
};
|
|
1090
1093
|
}
|
|
1091
|
-
}), ql = /* @__PURE__ */ ne(Xl, [["__scopeId", "data-v-
|
|
1094
|
+
}), ql = /* @__PURE__ */ ne(Xl, [["__scopeId", "data-v-aa68213c"]]), Zl = { class: "editor-container" }, Yl = { class: "editor-container__editor" }, Ql = { ref: "editorElement" }, Jl = /* @__PURE__ */ L({
|
|
1092
1095
|
__name: "ck-editor-custom",
|
|
1093
1096
|
props: {
|
|
1094
1097
|
modelValue: { default: "" },
|
|
@@ -1132,8 +1135,8 @@ const Fl = {
|
|
|
1132
1135
|
shouldNotGroupWhenFull: !1
|
|
1133
1136
|
},
|
|
1134
1137
|
plugins: [
|
|
1135
|
-
dt,
|
|
1136
1138
|
ct,
|
|
1139
|
+
dt,
|
|
1137
1140
|
mt,
|
|
1138
1141
|
pt,
|
|
1139
1142
|
ft,
|
|
@@ -1237,11 +1240,11 @@ const Fl = {
|
|
|
1237
1240
|
const s = (r) => {
|
|
1238
1241
|
};
|
|
1239
1242
|
return e({ onEditorReady: s }), (r, m) => {
|
|
1240
|
-
const
|
|
1243
|
+
const d = A("ckeditor");
|
|
1241
1244
|
return g(), $("div", Zl, [
|
|
1242
1245
|
le("div", Yl, [
|
|
1243
1246
|
le("div", Ql, [
|
|
1244
|
-
o.value ? (g(), V(
|
|
1247
|
+
o.value ? (g(), V(d, {
|
|
1245
1248
|
key: 0,
|
|
1246
1249
|
"model-value": r.modelValue,
|
|
1247
1250
|
editor: n(a),
|
|
@@ -1280,7 +1283,7 @@ const Fl = {
|
|
|
1280
1283
|
x(Jl, {
|
|
1281
1284
|
ref: "$editor",
|
|
1282
1285
|
modelValue: n(o),
|
|
1283
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1286
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => G(o) ? o.value = c : null),
|
|
1284
1287
|
"min-height": v.minHeight,
|
|
1285
1288
|
disabled: n(a).disabled
|
|
1286
1289
|
}, null, 8, ["modelValue", "min-height", "disabled"])
|
|
@@ -1351,18 +1354,18 @@ const ln = {
|
|
|
1351
1354
|
})),
|
|
1352
1355
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
1353
1356
|
setup(t, { emit: e }) {
|
|
1354
|
-
const l = t, { choices: i } = l, { multiple: o, allowTags: a, allowNull: v, cssClass: u, visibility:
|
|
1357
|
+
const l = t, { choices: i } = l, { multiple: o, allowTags: a, allowNull: v, cssClass: u, visibility: c } = re(l), b = S(!1), s = e, { errors: r, value: m, vuetifyBindings: d } = j(l, s), h = S(null), k = S(i || []), O = S(!1), D = _(() => tn(k.value));
|
|
1355
1358
|
function f(C) {
|
|
1356
1359
|
s("update:modelValueDisplay", ve(k.value, C));
|
|
1357
1360
|
}
|
|
1358
1361
|
ee(h, (C) => {
|
|
1359
|
-
|
|
1362
|
+
d.value.readonly || et(() => {
|
|
1360
1363
|
const T = J(C, o.value);
|
|
1361
1364
|
f(T), m.value = T;
|
|
1362
1365
|
});
|
|
1363
1366
|
}, { deep: !0 });
|
|
1364
1367
|
function p() {
|
|
1365
|
-
if (
|
|
1368
|
+
if (d.value.readonly || a.value) return;
|
|
1366
1369
|
const C = J(h.value, o.value);
|
|
1367
1370
|
me(C, h, o.value, !1, k.value), m.value = C;
|
|
1368
1371
|
}
|
|
@@ -1390,21 +1393,21 @@ const ln = {
|
|
|
1390
1393
|
Z();
|
|
1391
1394
|
}), (C, T) => {
|
|
1392
1395
|
const w = A("v-chip"), U = A("v-list-item");
|
|
1393
|
-
return n(
|
|
1396
|
+
return n(c) !== n(H).SUPPRESS ? (g(), V(te(n(a) ? "v-combobox" : "v-autocomplete"), P({
|
|
1394
1397
|
key: 0,
|
|
1395
1398
|
modelValue: h.value,
|
|
1396
1399
|
"onUpdate:modelValue": T[0] || (T[0] = (B) => h.value = B),
|
|
1397
1400
|
class: [
|
|
1398
1401
|
n(u),
|
|
1399
1402
|
{
|
|
1400
|
-
"d-none": n(
|
|
1401
|
-
invisible: n(
|
|
1403
|
+
"d-none": n(c) === n(H).HIDDEN,
|
|
1404
|
+
invisible: n(c) === n(H).INVISIBLE
|
|
1402
1405
|
}
|
|
1403
1406
|
],
|
|
1404
1407
|
items: D.value,
|
|
1405
1408
|
"return-object": !1
|
|
1406
|
-
}, n(
|
|
1407
|
-
label: b.value ? "" : n(
|
|
1409
|
+
}, n(d), {
|
|
1410
|
+
label: b.value ? "" : n(d).label,
|
|
1408
1411
|
chips: "",
|
|
1409
1412
|
"auto-select-first": !0,
|
|
1410
1413
|
"closable-chips": n(v) || n(o) && h.value.length > 1,
|
|
@@ -1412,7 +1415,7 @@ const ln = {
|
|
|
1412
1415
|
multiple: n(o),
|
|
1413
1416
|
loading: O.value,
|
|
1414
1417
|
"hide-selected": !1,
|
|
1415
|
-
"aria-describedby": n(
|
|
1418
|
+
"aria-describedby": n(d).helpText ? `${n(d).name}-help` : null,
|
|
1416
1419
|
"menu-props": { maxHeight: "400" },
|
|
1417
1420
|
"hide-details": "auto",
|
|
1418
1421
|
"onUpdate:search": T[1] || (T[1] = (B) => F(B, void 0)),
|
|
@@ -1495,19 +1498,19 @@ const ln = {
|
|
|
1495
1498
|
})),
|
|
1496
1499
|
emits: ["update:modelValue", "click:clear"],
|
|
1497
1500
|
setup(t, { emit: e }) {
|
|
1498
|
-
const l = t, i = e, { errors: o, value: a, vuetifyBindings: v } = j(l, i), { cssClass: u, visibility:
|
|
1501
|
+
const l = t, i = e, { errors: o, value: a, vuetifyBindings: v } = j(l, i), { cssClass: u, visibility: c } = re(l);
|
|
1499
1502
|
return (b, s) => {
|
|
1500
1503
|
const r = A("v-textarea");
|
|
1501
1504
|
return g(), $("div", sn, [
|
|
1502
|
-
n(
|
|
1505
|
+
n(c) !== n(H).SUPPRESS ? (g(), V(r, P({
|
|
1503
1506
|
key: 0,
|
|
1504
1507
|
modelValue: n(a),
|
|
1505
1508
|
"onUpdate:modelValue": s[0] || (s[0] = (m) => G(a) ? a.value = m : null),
|
|
1506
1509
|
class: [
|
|
1507
1510
|
n(u),
|
|
1508
1511
|
{
|
|
1509
|
-
"d-none": n(
|
|
1510
|
-
invisible: n(
|
|
1512
|
+
"d-none": n(c) === n(H).HIDDEN,
|
|
1513
|
+
invisible: n(c) === n(H).INVISIBLE
|
|
1511
1514
|
}
|
|
1512
1515
|
],
|
|
1513
1516
|
rows: b.rows,
|
|
@@ -1525,7 +1528,7 @@ const ln = {
|
|
|
1525
1528
|
]);
|
|
1526
1529
|
};
|
|
1527
1530
|
}
|
|
1528
|
-
}), un = /* @__PURE__ */ ne(rn, [["__scopeId", "data-v-1a04c9b5"]]),
|
|
1531
|
+
}), un = /* @__PURE__ */ ne(rn, [["__scopeId", "data-v-1a04c9b5"]]), cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1529
1532
|
__proto__: null,
|
|
1530
1533
|
DfActions: Ol,
|
|
1531
1534
|
DfCheckbox: Ml,
|
|
@@ -1536,7 +1539,7 @@ const ln = {
|
|
|
1536
1539
|
DfRtfEditor: en,
|
|
1537
1540
|
DfSelect: an,
|
|
1538
1541
|
DfTextArea: un
|
|
1539
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1542
|
+
}, Symbol.toStringTag, { value: "Module" })), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1540
1543
|
__proto__: null,
|
|
1541
1544
|
VAutocomplete: Qt,
|
|
1542
1545
|
VBtn: Jt,
|
|
@@ -1549,8 +1552,8 @@ const ln = {
|
|
|
1549
1552
|
VDatePicker: al,
|
|
1550
1553
|
VFileInput: il,
|
|
1551
1554
|
VIcon: ul,
|
|
1552
|
-
VInput:
|
|
1553
|
-
VListItem:
|
|
1555
|
+
VInput: cl,
|
|
1556
|
+
VListItem: dl,
|
|
1554
1557
|
VMenu: ml,
|
|
1555
1558
|
VNumberInput: pl,
|
|
1556
1559
|
VProgressLinear: fl,
|
|
@@ -1563,7 +1566,7 @@ const ln = {
|
|
|
1563
1566
|
}, Symbol.toStringTag, { value: "Module" })), Hn = {
|
|
1564
1567
|
install: (t, e) => {
|
|
1565
1568
|
var l, i;
|
|
1566
|
-
t.use(Sl), (l = e == null ? void 0 : e.registerComponents) != null && l && Object.entries(
|
|
1569
|
+
t.use(Sl), (l = e == null ? void 0 : e.registerComponents) != null && l && Object.entries(cn).map(([o, a]) => t.component(o, a)), (i = e == null ? void 0 : e.registerVuetifyComponents) != null && i && Object.entries(dn).map(([o, a]) => t.component(o, a));
|
|
1567
1570
|
}
|
|
1568
1571
|
};
|
|
1569
1572
|
export {
|
|
@@ -1581,7 +1584,7 @@ export {
|
|
|
1581
1584
|
Hn as DynamicFormsInputs,
|
|
1582
1585
|
he as InputBase,
|
|
1583
1586
|
W as MessagesWidget,
|
|
1584
|
-
|
|
1587
|
+
dn as VuetifyComponents,
|
|
1585
1588
|
K as defaultBaseProps,
|
|
1586
1589
|
xe as defaultDisplayStyle,
|
|
1587
1590
|
j as useInputBase
|