@dynamicforms/vuetify-inputs 0.1.10 → 0.1.11
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.
|
@@ -11,7 +11,7 @@ var ue = (t, e, l) => e in t ? Me(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
11
11
|
return t;
|
|
12
12
|
}, H = (t, e) => je(t, ze(e));
|
|
13
13
|
var Z = (t, e, l) => ue(t, typeof e != "symbol" ? e + "" : e, l);
|
|
14
|
-
var
|
|
14
|
+
var oe = (t, e, l) => new Promise((r, n) => {
|
|
15
15
|
var a = (c) => {
|
|
16
16
|
try {
|
|
17
17
|
u(l.next(c));
|
|
@@ -28,7 +28,7 @@ var ne = (t, e, l) => new Promise((r, n) => {
|
|
|
28
28
|
u((l = l.apply(t, e)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as we from "vue";
|
|
31
|
-
import { defineComponent as F, mergeModels as Ve, useModel as We, ref as S, watch as J, onMounted as Se, markRaw as Xe, onBeforeUnmount as Ne, createBlock as
|
|
31
|
+
import { defineComponent as F, mergeModels as Ve, useModel as We, ref as S, watch as J, onMounted as Se, markRaw as Xe, onBeforeUnmount as Ne, createBlock as V, openBlock as h, resolveDynamicComponent as ee, version as qe, computed as _, createElementBlock as E, Fragment as $e, renderList as Ee, normalizeClass as ae, toDisplayString as te, unref as o, mergeProps as P, withCtx as y, createTextVNode as be, resolveComponent as x, createCommentVNode as $, createVNode as A, createSlots as Ze, renderSlot as Ye, isRef as G, withModifiers as Qe, mergeDefaults as z, createElementVNode as le, normalizeStyle as he, toRefs as ie, withKeys as ke, useCssVars as Je, normalizeProps as Ue, guardReactiveProps as Fe, nextTick as et } from "vue";
|
|
32
32
|
import { debounce as tt, isEmpty as lt, isObjectLike as ot, isString as pe, isBoolean as Te, clone as nt, toNumber as Ce, isNaN as Ie, isArray as Be, castArray as Le, first as Pe } from "lodash-es";
|
|
33
33
|
import fe from "vue-ionicon";
|
|
34
34
|
import { useDisplay as at } from "vuetify";
|
|
@@ -216,43 +216,43 @@ const de = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Al = 300, Dl =
|
|
|
216
216
|
e({
|
|
217
217
|
instance: u,
|
|
218
218
|
lastEditorData: c
|
|
219
|
-
}), J(r, (
|
|
220
|
-
u.value &&
|
|
221
|
-
}), J(() => n.disabled, (
|
|
222
|
-
|
|
219
|
+
}), J(r, (s) => {
|
|
220
|
+
u.value && s !== c.value && u.value.data.set(s);
|
|
221
|
+
}), J(() => n.disabled, (s) => {
|
|
222
|
+
s ? u.value.enableReadOnlyMode(de) : u.value.disableReadOnlyMode(de);
|
|
223
223
|
});
|
|
224
224
|
function v() {
|
|
225
|
-
const
|
|
226
|
-
if (!
|
|
225
|
+
const s = window.CKEDITOR_VERSION;
|
|
226
|
+
if (!s)
|
|
227
227
|
return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
|
|
228
|
-
const [m] =
|
|
229
|
-
m >= 42 ||
|
|
228
|
+
const [m] = s.split(".").map(Number);
|
|
229
|
+
m >= 42 || s.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
230
230
|
}
|
|
231
|
-
function s
|
|
231
|
+
function i(s) {
|
|
232
232
|
const m = tt((p) => {
|
|
233
233
|
if (n.disableTwoWayDataBinding)
|
|
234
234
|
return;
|
|
235
|
-
const g = c.value =
|
|
236
|
-
a("update:modelValue", g, p,
|
|
235
|
+
const g = c.value = s.data.get();
|
|
236
|
+
a("update:modelValue", g, p, s), a("input", g, p, s);
|
|
237
237
|
}, Al, { leading: !0 });
|
|
238
|
-
|
|
239
|
-
a("focus", p,
|
|
240
|
-
}),
|
|
241
|
-
a("blur", p,
|
|
238
|
+
s.model.document.on("change:data", m), s.editing.view.document.on("focus", (p) => {
|
|
239
|
+
a("focus", p, s);
|
|
240
|
+
}), s.editing.view.document.on("blur", (p) => {
|
|
241
|
+
a("blur", p, s);
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
return v(), Se(() => {
|
|
245
|
-
const
|
|
245
|
+
const s = xl(
|
|
246
246
|
Object.assign({}, n.config)
|
|
247
247
|
);
|
|
248
|
-
r.value && (
|
|
249
|
-
u.value = Xe(m),
|
|
248
|
+
r.value && (s.initialData = r.value), n.editor.create(f.value, s).then((m) => {
|
|
249
|
+
u.value = Xe(m), i(m), r.value !== s.initialData && m.data.set(r.value), n.disabled && m.enableReadOnlyMode(de), a("ready", m);
|
|
250
250
|
}).catch((m) => {
|
|
251
251
|
console.error(m);
|
|
252
252
|
});
|
|
253
253
|
}), Ne(() => {
|
|
254
254
|
u.value && (u.value.destroy(), u.value = void 0), a("destroy");
|
|
255
|
-
}), (
|
|
255
|
+
}), (s, m) => (h(), V(ee(s.tagName), {
|
|
256
256
|
ref_key: "element",
|
|
257
257
|
ref: f
|
|
258
258
|
}, null, 512));
|
|
@@ -292,7 +292,7 @@ function j(t, e) {
|
|
|
292
292
|
() => t.control ? t.control.errors : (t.errors || []).map((p) => new rt(p))
|
|
293
293
|
), a = _(() => n.value.length > 0 ? " " : void 0), f = _(() => t.control ? t.control.enabled : t.enabled !== !1), u = _(
|
|
294
294
|
() => t.control ? t.control.visibility : t.visibility || xe.DisplayMode.FULL
|
|
295
|
-
), c = _(() => t.label || ""), v = _(() => t.placeholder || ""),
|
|
295
|
+
), c = _(() => t.label || ""), v = _(() => t.placeholder || ""), i = _(() => t.helpText || ""), s = _(() => t.hint || ""), m = _(() => t.cssClass || "");
|
|
296
296
|
return {
|
|
297
297
|
value: l,
|
|
298
298
|
valid: r,
|
|
@@ -311,12 +311,12 @@ function j(t, e) {
|
|
|
311
311
|
disabled: !f.value,
|
|
312
312
|
placeholder: v.value,
|
|
313
313
|
"persistent-placeholder": !lt(v.value),
|
|
314
|
-
hint:
|
|
314
|
+
hint: s.value,
|
|
315
315
|
persistentHint: !0,
|
|
316
316
|
// we want persistent hint always
|
|
317
317
|
hideDetails: "auto",
|
|
318
318
|
// we want to hide the hint element when hint isn't there
|
|
319
|
-
helpText:
|
|
319
|
+
helpText: i.value
|
|
320
320
|
};
|
|
321
321
|
})
|
|
322
322
|
};
|
|
@@ -332,12 +332,12 @@ const Nl = { class: "custom-error-display text-error" }, $l = { key: 0 }, El = /
|
|
|
332
332
|
var a;
|
|
333
333
|
return h(), E("div", {
|
|
334
334
|
key: n,
|
|
335
|
-
class:
|
|
335
|
+
class: ae({ "first-error": n === 0, "last-error": n === e.errors.length - 1 })
|
|
336
336
|
}, [
|
|
337
|
-
r.componentName === "template" ? (h(), E("div", $l, te(r.componentBody), 1)) : r.componentName === "vue-markdown" ? (h(),
|
|
337
|
+
r.componentName === "template" ? (h(), E("div", $l, te(r.componentBody), 1)) : r.componentName === "vue-markdown" ? (h(), V(o(st), {
|
|
338
338
|
key: 1,
|
|
339
339
|
source: (a = r.componentBindings) == null ? void 0 : a.source
|
|
340
|
-
}, null, 8, ["source"])) : (h(),
|
|
340
|
+
}, null, 8, ["source"])) : (h(), V(ee(r.componentName), P({
|
|
341
341
|
key: 2,
|
|
342
342
|
ref_for: !0
|
|
343
343
|
}, r.componentBindings), {
|
|
@@ -350,12 +350,12 @@ const Nl = { class: "custom-error-display text-error" }, $l = { key: 0 }, El = /
|
|
|
350
350
|
}), 128))
|
|
351
351
|
]));
|
|
352
352
|
}
|
|
353
|
-
}),
|
|
353
|
+
}), se = (t, e) => {
|
|
354
354
|
const l = t.__vccOpts || t;
|
|
355
355
|
for (const [r, n] of e)
|
|
356
356
|
l[r] = n;
|
|
357
357
|
return l;
|
|
358
|
-
}, W = /* @__PURE__ */
|
|
358
|
+
}, W = /* @__PURE__ */ se(El, [["__scopeId", "data-v-b274d086"]]), Ul = {
|
|
359
359
|
key: 0,
|
|
360
360
|
for: "#following-v-input"
|
|
361
361
|
}, ge = /* @__PURE__ */ F({
|
|
@@ -376,11 +376,11 @@ const Nl = { class: "custom-error-display text-error" }, $l = { key: 0 }, El = /
|
|
|
376
376
|
emits: ["update:modelValue", "click:clear"],
|
|
377
377
|
setup(t, { emit: e }) {
|
|
378
378
|
const l = t, r = e, { errors: n, value: a, visibility: f, vuetifyBindings: u } = j(l, r), c = _(() => o(l.clearable) && o(a));
|
|
379
|
-
return (v,
|
|
380
|
-
const
|
|
379
|
+
return (v, i) => {
|
|
380
|
+
const s = x("v-icon"), m = x("v-input");
|
|
381
381
|
return o(f) !== o(M).SUPPRESS ? (h(), E("div", {
|
|
382
382
|
key: 0,
|
|
383
|
-
class:
|
|
383
|
+
class: ae([
|
|
384
384
|
v.cssClass,
|
|
385
385
|
{
|
|
386
386
|
"d-none": o(f) === o(M).HIDDEN,
|
|
@@ -405,10 +405,10 @@ const Nl = { class: "custom-error-display text-error" }, $l = { key: 0 }, El = /
|
|
|
405
405
|
c.value ? {
|
|
406
406
|
name: "append",
|
|
407
407
|
fn: y(() => [
|
|
408
|
-
A(
|
|
409
|
-
onClick:
|
|
408
|
+
A(s, {
|
|
409
|
+
onClick: i[0] || (i[0] = (p) => r("click:clear"))
|
|
410
410
|
}, {
|
|
411
|
-
default: y(() =>
|
|
411
|
+
default: y(() => i[1] || (i[1] = [
|
|
412
412
|
be("mdi-close-circle")
|
|
413
413
|
])),
|
|
414
414
|
_: 1
|
|
@@ -421,7 +421,7 @@ const Nl = { class: "custom-error-display text-error" }, $l = { key: 0 }, El = /
|
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
423
|
});
|
|
424
|
-
var
|
|
424
|
+
var R = /* @__PURE__ */ ((t) => (t[t.BUTTON = 0] = "BUTTON", t[t.TEXT = 1] = "TEXT", t))(R || {});
|
|
425
425
|
const Ae = 0;
|
|
426
426
|
((t) => {
|
|
427
427
|
function e(n) {
|
|
@@ -438,16 +438,16 @@ const Ae = 0;
|
|
|
438
438
|
return Object.values(t).includes(a);
|
|
439
439
|
}
|
|
440
440
|
t.isDefined = r;
|
|
441
|
-
})(
|
|
442
|
-
Object.freeze(
|
|
441
|
+
})(R || (R = {}));
|
|
442
|
+
Object.freeze(R);
|
|
443
443
|
const De = ["xl", "lg", "md", "sm", "xs"];
|
|
444
|
-
class
|
|
444
|
+
class re {
|
|
445
445
|
constructor(e, l) {
|
|
446
446
|
Z(this, "_value");
|
|
447
447
|
if (this._value = {}, !e) return;
|
|
448
|
-
let r =
|
|
448
|
+
let r = re.cleanBreakpoint(e);
|
|
449
449
|
!(r != null && r.label) && l && (r ? r.label || (r.label = l) : r = { label: l }), r && (this._value = r), De.forEach((n) => {
|
|
450
|
-
const a =
|
|
450
|
+
const a = re.cleanBreakpoint(e[n]);
|
|
451
451
|
a && (this._value[n] = a);
|
|
452
452
|
});
|
|
453
453
|
}
|
|
@@ -455,7 +455,7 @@ class ie {
|
|
|
455
455
|
var n, a, f;
|
|
456
456
|
const l = {
|
|
457
457
|
label: this._value.label,
|
|
458
|
-
renderAs: (n = this._value.renderAs) != null ? n :
|
|
458
|
+
renderAs: (n = this._value.renderAs) != null ? n : R.BUTTON,
|
|
459
459
|
showLabel: (a = this._value.showLabel) != null ? a : !0,
|
|
460
460
|
showIcon: (f = this._value.showIcon) != null ? f : !0
|
|
461
461
|
}, r = [...De].reverse();
|
|
@@ -468,17 +468,17 @@ class ie {
|
|
|
468
468
|
static cleanBreakpoint(e) {
|
|
469
469
|
if (!e || !ot(e)) return null;
|
|
470
470
|
const l = {};
|
|
471
|
-
return e.renderAs !== void 0 && (l.renderAs =
|
|
471
|
+
return e.renderAs !== void 0 && (l.renderAs = R.fromAny(e.renderAs)), pe(e.label) && (l.label = e.label), Te(e.showLabel) && (l.showLabel = e.showLabel), Te(e.showIcon) && (l.showIcon = e.showIcon), Object.keys(l).length ? l : null;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
class
|
|
474
|
+
class ne {
|
|
475
475
|
constructor(e, l) {
|
|
476
476
|
Z(this, "name");
|
|
477
477
|
Z(this, "displayStyle");
|
|
478
478
|
Z(this, "formAction");
|
|
479
479
|
if (e.name == null) throw new Error(`Action name must not be empty ${e}`);
|
|
480
480
|
const r = !pe(e.label) || e.label.length === 0 ? void 0 : e.label, n = !pe(e.icon) || e.icon.length === 0 ? void 0 : e.icon;
|
|
481
|
-
this.name = e.name, this.displayStyle = new
|
|
481
|
+
this.name = e.name, this.displayStyle = new re(e.displayStyle, r), this.formAction = l, this.formAction.icon = n, this.formAction.label = r;
|
|
482
482
|
}
|
|
483
483
|
get label() {
|
|
484
484
|
var e;
|
|
@@ -510,37 +510,37 @@ class ae {
|
|
|
510
510
|
return l;
|
|
511
511
|
}
|
|
512
512
|
static closeAction(e, l) {
|
|
513
|
-
return new
|
|
513
|
+
return new ne(
|
|
514
514
|
N({
|
|
515
515
|
name: "close",
|
|
516
516
|
label: "Close",
|
|
517
517
|
// TODO: needs translation
|
|
518
518
|
icon: "close-outline",
|
|
519
|
-
displayStyle: { renderAs:
|
|
519
|
+
displayStyle: { renderAs: R.BUTTON, showLabel: !0, showIcon: !0 }
|
|
520
520
|
}, e),
|
|
521
521
|
this.makeFormAction(l)
|
|
522
522
|
);
|
|
523
523
|
}
|
|
524
524
|
static yesAction(e, l) {
|
|
525
|
-
return new
|
|
525
|
+
return new ne(
|
|
526
526
|
N({
|
|
527
527
|
name: "yes",
|
|
528
528
|
label: "Yes",
|
|
529
529
|
// TODO: needs translation
|
|
530
530
|
icon: "thumbs-up-outline",
|
|
531
|
-
displayStyle: { renderAs:
|
|
531
|
+
displayStyle: { renderAs: R.BUTTON, showLabel: !0, showIcon: !0 }
|
|
532
532
|
}, e),
|
|
533
533
|
this.makeFormAction(l)
|
|
534
534
|
);
|
|
535
535
|
}
|
|
536
536
|
static noAction(e, l) {
|
|
537
|
-
return new
|
|
537
|
+
return new ne(
|
|
538
538
|
N({
|
|
539
539
|
name: "no",
|
|
540
540
|
label: "No",
|
|
541
541
|
// TODO: needs translation
|
|
542
542
|
icon: "thumbs-down-outline",
|
|
543
|
-
displayStyle: { renderAs:
|
|
543
|
+
displayStyle: { renderAs: R.BUTTON, showLabel: !0, showIcon: !0 }
|
|
544
544
|
}, e),
|
|
545
545
|
this.makeFormAction(l)
|
|
546
546
|
);
|
|
@@ -558,50 +558,50 @@ const Fl = {
|
|
|
558
558
|
},
|
|
559
559
|
setup(t) {
|
|
560
560
|
const e = t, l = G(e.actions) ? e.actions : S(e.actions);
|
|
561
|
-
function r(
|
|
562
|
-
return
|
|
561
|
+
function r(i) {
|
|
562
|
+
return i.xlAndUp.value ? "xl" : i.lgAndUp.value ? "lg" : i.mdAndUp.value ? "md" : i.smAndUp.value ? "sm" : "xs";
|
|
563
563
|
}
|
|
564
564
|
const n = at(), a = _(() => {
|
|
565
|
-
const
|
|
566
|
-
|
|
567
|
-
for (const
|
|
568
|
-
s
|
|
569
|
-
return
|
|
565
|
+
const i = {};
|
|
566
|
+
i["%breakpoint%"] = r(n);
|
|
567
|
+
for (const s of l.value)
|
|
568
|
+
i[s.name] = s.displayStyle.getOptionsForBreakpoint(r(n));
|
|
569
|
+
return i;
|
|
570
570
|
});
|
|
571
|
-
function f(
|
|
572
|
-
var
|
|
573
|
-
return (
|
|
571
|
+
function f(i) {
|
|
572
|
+
var s;
|
|
573
|
+
return (s = a.value[i.name].showIcon && i.iconAvailable) != null ? s : !0;
|
|
574
574
|
}
|
|
575
|
-
function u(
|
|
576
|
-
return a.value[
|
|
575
|
+
function u(i) {
|
|
576
|
+
return a.value[i.name].showLabel && i.labelAvailable ? !0 : !f(i);
|
|
577
577
|
}
|
|
578
|
-
function c(
|
|
579
|
-
var
|
|
580
|
-
return (
|
|
578
|
+
function c(i) {
|
|
579
|
+
var s;
|
|
580
|
+
return (s = a.value[i.name].renderAs) != null ? s : R.BUTTON;
|
|
581
581
|
}
|
|
582
|
-
function v(
|
|
583
|
-
var
|
|
584
|
-
return
|
|
582
|
+
function v(i) {
|
|
583
|
+
var s;
|
|
584
|
+
return i.labelAvailable ? (s = i.formAction.label) != null ? s : "" : i.name;
|
|
585
585
|
}
|
|
586
|
-
return (
|
|
586
|
+
return (i, s) => {
|
|
587
587
|
const m = x("v-btn");
|
|
588
588
|
return o(l).length > 0 ? (h(), E("div", {
|
|
589
589
|
key: 0,
|
|
590
|
-
class:
|
|
591
|
-
"button-group":
|
|
592
|
-
"with-border":
|
|
590
|
+
class: ae(["text-end", {
|
|
591
|
+
"button-group": i.showAsGroup === "grouped" || i.showAsGroup === "grouped-no-borders",
|
|
592
|
+
"with-border": i.showAsGroup === "grouped"
|
|
593
593
|
}])
|
|
594
594
|
}, [
|
|
595
|
-
(h(!0), E($e, null, Ee(o(l), (p, g) => (h(),
|
|
595
|
+
(h(!0), E($e, null, Ee(o(l), (p, g) => (h(), V(m, {
|
|
596
596
|
key: g,
|
|
597
|
-
variant: c(p) === o(
|
|
597
|
+
variant: c(p) === o(R).BUTTON ? "tonal" : "text",
|
|
598
598
|
elevation: 0,
|
|
599
|
-
class:
|
|
600
|
-
size:
|
|
601
|
-
onClick: Qe((
|
|
599
|
+
class: ae(g !== -1 ? "" : "ms-3"),
|
|
600
|
+
size: i.buttonSize,
|
|
601
|
+
onClick: Qe((I) => p.formAction.execute(I), ["stop"])
|
|
602
602
|
}, {
|
|
603
603
|
default: y(() => [
|
|
604
|
-
f(p) ? (h(),
|
|
604
|
+
f(p) ? (h(), V(o(fe), {
|
|
605
605
|
key: 0,
|
|
606
606
|
class: "action-icon",
|
|
607
607
|
name: p.formAction.icon
|
|
@@ -614,7 +614,7 @@ const Fl = {
|
|
|
614
614
|
], 2)) : $("", !0);
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
|
-
}), Rl = /* @__PURE__ */
|
|
617
|
+
}), Rl = /* @__PURE__ */ se(Pl, [["__scopeId", "data-v-eb616f46"]]), Ol = /* @__PURE__ */ F({
|
|
618
618
|
__name: "df-checkbox",
|
|
619
619
|
props: /* @__PURE__ */ z({
|
|
620
620
|
allowNull: { type: Boolean },
|
|
@@ -640,14 +640,14 @@ const Fl = {
|
|
|
640
640
|
}
|
|
641
641
|
});
|
|
642
642
|
function v() {
|
|
643
|
-
const
|
|
644
|
-
|
|
643
|
+
const i = nt(a.value);
|
|
644
|
+
i === !0 ? a.value = l.allowNull ? null : !1 : a.value = i === !1;
|
|
645
645
|
}
|
|
646
|
-
return (
|
|
646
|
+
return (i, s) => {
|
|
647
647
|
const m = x("v-checkbox");
|
|
648
|
-
return h(),
|
|
648
|
+
return h(), V(m, P({
|
|
649
649
|
modelValue: c.value,
|
|
650
|
-
"onUpdate:modelValue":
|
|
650
|
+
"onUpdate:modelValue": s[0] || (s[0] = (p) => c.value = p)
|
|
651
651
|
}, o(f), {
|
|
652
652
|
density: "compact",
|
|
653
653
|
indeterminate: u.value,
|
|
@@ -681,26 +681,23 @@ const Fl = {
|
|
|
681
681
|
emits: ["update:modelValue", "click:clear"],
|
|
682
682
|
setup(t, { emit: e }) {
|
|
683
683
|
const l = t, r = e, { errors: n, value: a, vuetifyBindings: f } = j(l, r), u = S(!1), c = _(() => [
|
|
684
|
-
(
|
|
684
|
+
(v) => !v && l.allowNull || /^#?([a-fA-F0-9]{6}[a-fA-F0-9]{0,2})$/.test(v) ? !0 : "Not a valid hex string."
|
|
685
685
|
]);
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
return (s, i) => {
|
|
690
|
-
const m = x("v-text-field"), p = x("v-color-picker"), g = x("v-menu");
|
|
691
|
-
return h(), k(g, {
|
|
686
|
+
return (v, i) => {
|
|
687
|
+
const s = x("v-text-field"), m = x("v-color-picker"), p = x("v-menu");
|
|
688
|
+
return h(), V(p, {
|
|
692
689
|
modelValue: u.value,
|
|
693
|
-
"onUpdate:modelValue": i[2] || (i[2] = (
|
|
690
|
+
"onUpdate:modelValue": i[2] || (i[2] = (g) => u.value = g),
|
|
694
691
|
location: "top start",
|
|
695
692
|
origin: "bottom start",
|
|
696
693
|
"close-on-content-click": !1
|
|
697
694
|
}, {
|
|
698
|
-
activator: y(({ props:
|
|
699
|
-
A(
|
|
695
|
+
activator: y(({ props: g }) => [
|
|
696
|
+
A(s, P({
|
|
700
697
|
modelValue: o(a),
|
|
701
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
702
|
-
}, N(N({}, o(f)),
|
|
703
|
-
clearable:
|
|
698
|
+
"onUpdate:modelValue": i[0] || (i[0] = (I) => G(a) ? a.value = I : null)
|
|
699
|
+
}, N(N({}, o(f)), g), {
|
|
700
|
+
clearable: v.allowNull,
|
|
704
701
|
type: "text",
|
|
705
702
|
variant: "underlined",
|
|
706
703
|
rules: c.value
|
|
@@ -717,12 +714,9 @@ const Fl = {
|
|
|
717
714
|
}, 1040, ["modelValue", "clearable", "rules"])
|
|
718
715
|
]),
|
|
719
716
|
default: y(() => [
|
|
720
|
-
A(
|
|
717
|
+
A(m, {
|
|
721
718
|
modelValue: o(a),
|
|
722
|
-
"onUpdate:modelValue": [
|
|
723
|
-
i[1] || (i[1] = (w) => G(a) ? a.value = w : null),
|
|
724
|
-
v
|
|
725
|
-
],
|
|
719
|
+
"onUpdate:modelValue": i[1] || (i[1] = (g) => G(a) ? a.value = g : null),
|
|
726
720
|
mode: "hexa"
|
|
727
721
|
}, null, 8, ["modelValue"])
|
|
728
722
|
]),
|
|
@@ -754,28 +748,28 @@ const Fl = {
|
|
|
754
748
|
})),
|
|
755
749
|
emits: ["update:modelValue", "click:clear"],
|
|
756
750
|
setup(t, { emit: e }) {
|
|
757
|
-
const l = t, r = e, { value: n, vuetifyBindings: a } = j(l, r), { inputType: f, displayFormatDate: u, displayFormatTime: c } =
|
|
751
|
+
const l = t, r = e, { value: n, vuetifyBindings: a } = j(l, r), { inputType: f, displayFormatDate: u, displayFormatTime: c } = ie(l), v = S(""), i = _({
|
|
758
752
|
get() {
|
|
759
753
|
return o(v) !== "";
|
|
760
754
|
},
|
|
761
755
|
set(b) {
|
|
762
756
|
b ? v.value = "date" : v.value = "";
|
|
763
757
|
}
|
|
764
|
-
}),
|
|
758
|
+
}), s = (b) => `${Y(b, "yyyy-MM-dd")}T${Y(b, "HH:mm")}:00`, m = S(null);
|
|
765
759
|
function p(b, d) {
|
|
766
760
|
if (b == null)
|
|
767
761
|
m.value = null;
|
|
768
762
|
else if (d === -1)
|
|
769
763
|
if (o(f) === "time")
|
|
770
|
-
m.value =
|
|
764
|
+
m.value = s(/* @__PURE__ */ new Date()), p(`T${b}`, 1);
|
|
771
765
|
else {
|
|
772
|
-
const
|
|
773
|
-
p(
|
|
766
|
+
const k = s(new Date(b));
|
|
767
|
+
p(k, 0), p(k, 1);
|
|
774
768
|
}
|
|
775
769
|
else {
|
|
776
|
-
m.value == null && (m.value =
|
|
777
|
-
const
|
|
778
|
-
|
|
770
|
+
m.value == null && (m.value = s(/* @__PURE__ */ new Date()));
|
|
771
|
+
const k = m.value.split(/[TZ]/g), L = b.split(/[TZ]/g);
|
|
772
|
+
k[d] = L[d], m.value = s(/* @__PURE__ */ new Date(`${k[0]}T${k[1].split(".")[0]}`)), o(f) === "date" ? n.value = k[0] : o(f) === "time" ? n.value = k[1] : n.value = o(m) + Y(/* @__PURE__ */ new Date(), "XXX");
|
|
779
773
|
}
|
|
780
774
|
}
|
|
781
775
|
J(n, (b) => p(b, -1), { immediate: !0 });
|
|
@@ -787,9 +781,9 @@ const Fl = {
|
|
|
787
781
|
return Number.isNaN(d.getTime()) ? null : d;
|
|
788
782
|
},
|
|
789
783
|
set(b) {
|
|
790
|
-
p(
|
|
784
|
+
p(s(b), 0);
|
|
791
785
|
}
|
|
792
|
-
}),
|
|
786
|
+
}), I = _({
|
|
793
787
|
get() {
|
|
794
788
|
const b = o(m);
|
|
795
789
|
return b == null ? "" : b.split(/[TZ]/g)[1].split(".")[0];
|
|
@@ -797,7 +791,7 @@ const Fl = {
|
|
|
797
791
|
set(b) {
|
|
798
792
|
p(`T${b}`, 1);
|
|
799
793
|
}
|
|
800
|
-
}),
|
|
794
|
+
}), O = _({
|
|
801
795
|
get() {
|
|
802
796
|
const b = o(g);
|
|
803
797
|
return b == null ? "" : Y(b, o(u));
|
|
@@ -805,7 +799,7 @@ const Fl = {
|
|
|
805
799
|
set(b) {
|
|
806
800
|
try {
|
|
807
801
|
const d = ut(b, o(u), /* @__PURE__ */ new Date());
|
|
808
|
-
p(
|
|
802
|
+
p(s(d), 0);
|
|
809
803
|
} catch (d) {
|
|
810
804
|
console.error(d);
|
|
811
805
|
}
|
|
@@ -818,31 +812,31 @@ const Fl = {
|
|
|
818
812
|
set(b) {
|
|
819
813
|
const d = b.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
820
814
|
if (d == null) return;
|
|
821
|
-
let
|
|
822
|
-
const
|
|
823
|
-
Ie(
|
|
815
|
+
let k = Ce(d[1]);
|
|
816
|
+
const L = Ce(d[2]);
|
|
817
|
+
Ie(k) || Ie(L) || (d[3] && d[3].toLowerCase() === "pm" && k < 13 && (k += 12), p(`T${k.toString().padStart(2, "0")}:${L.toString().padStart(2, "0")}:00`, 1));
|
|
824
818
|
}
|
|
825
819
|
});
|
|
826
820
|
return (b, d) => {
|
|
827
|
-
const
|
|
828
|
-
return h(),
|
|
821
|
+
const k = x("v-text-field"), L = x("v-date-picker"), q = x("v-confirm-edit"), C = x("v-time-picker"), T = x("v-menu");
|
|
822
|
+
return h(), V(o(ge), P(l, {
|
|
829
823
|
clearable: "",
|
|
830
|
-
"onClick:clear": d[13] || (d[13] = (
|
|
824
|
+
"onClick:clear": d[13] || (d[13] = (w) => n.value = null)
|
|
831
825
|
}), {
|
|
832
826
|
default: y(() => [
|
|
833
|
-
A(
|
|
834
|
-
modelValue:
|
|
835
|
-
"onUpdate:modelValue": d[12] || (d[12] = (
|
|
827
|
+
A(T, {
|
|
828
|
+
modelValue: i.value,
|
|
829
|
+
"onUpdate:modelValue": d[12] || (d[12] = (w) => i.value = w),
|
|
836
830
|
location: "top start",
|
|
837
831
|
origin: `bottom ${o(f) === "datetime" ? "center" : "start"}`,
|
|
838
832
|
"close-on-content-click": !1
|
|
839
833
|
}, {
|
|
840
|
-
activator: y(({ props:
|
|
834
|
+
activator: y(({ props: w }) => [
|
|
841
835
|
le("div", Ml, [
|
|
842
|
-
["date", "datetime"].includes(o(f)) ? (h(), k
|
|
836
|
+
["date", "datetime"].includes(o(f)) ? (h(), V(k, P({
|
|
843
837
|
key: 0,
|
|
844
|
-
modelValue:
|
|
845
|
-
"onUpdate:modelValue": d[0] || (d[0] = (U) =>
|
|
838
|
+
modelValue: O.value,
|
|
839
|
+
"onUpdate:modelValue": d[0] || (d[0] = (U) => O.value = U),
|
|
846
840
|
style: { "flex-grow": "4" },
|
|
847
841
|
density: "compact",
|
|
848
842
|
clearable: !1,
|
|
@@ -850,11 +844,11 @@ const Fl = {
|
|
|
850
844
|
readonly: o(a).readonly,
|
|
851
845
|
disabled: o(a).disabled,
|
|
852
846
|
name: `${o(a).name}-date`
|
|
853
|
-
},
|
|
847
|
+
}, w, {
|
|
854
848
|
onClick: d[1] || (d[1] = (U) => v.value = "date"),
|
|
855
849
|
onKeydown: d[2] || (d[2] = ke((U) => v.value = "date", ["space"]))
|
|
856
850
|
}), null, 16, ["modelValue", "readonly", "disabled", "name"])) : $("", !0),
|
|
857
|
-
["time", "datetime"].includes(o(f)) ? (h(), k
|
|
851
|
+
["time", "datetime"].includes(o(f)) ? (h(), V(k, P({
|
|
858
852
|
key: 1,
|
|
859
853
|
modelValue: B.value,
|
|
860
854
|
"onUpdate:modelValue": d[3] || (d[3] = (U) => B.value = U),
|
|
@@ -865,53 +859,53 @@ const Fl = {
|
|
|
865
859
|
readonly: o(a).readonly,
|
|
866
860
|
disabled: o(a).disabled,
|
|
867
861
|
name: `${o(a).name}-time`
|
|
868
|
-
},
|
|
862
|
+
}, w, {
|
|
869
863
|
onClick: d[4] || (d[4] = (U) => v.value = "time"),
|
|
870
864
|
onKeydown: d[5] || (d[5] = ke((U) => v.value = "time", ["space"]))
|
|
871
865
|
}), null, 16, ["modelValue", "readonly", "disabled", "name"])) : $("", !0)
|
|
872
866
|
])
|
|
873
867
|
]),
|
|
874
868
|
default: y(() => [
|
|
875
|
-
v.value === "date" ? (h(),
|
|
869
|
+
v.value === "date" ? (h(), V(q, {
|
|
876
870
|
key: 0,
|
|
877
871
|
modelValue: g.value,
|
|
878
|
-
"onUpdate:modelValue": d[6] || (d[6] = (
|
|
879
|
-
onCancel: d[7] || (d[7] = (
|
|
880
|
-
onSave: d[8] || (d[8] = (
|
|
872
|
+
"onUpdate:modelValue": d[6] || (d[6] = (w) => g.value = w),
|
|
873
|
+
onCancel: d[7] || (d[7] = (w) => v.value = ""),
|
|
874
|
+
onSave: d[8] || (d[8] = (w) => v.value = "")
|
|
881
875
|
}, {
|
|
882
|
-
default: y(({ model:
|
|
883
|
-
A(
|
|
884
|
-
modelValue:
|
|
885
|
-
"onUpdate:modelValue": (D) =>
|
|
876
|
+
default: y(({ model: w, actions: U }) => [
|
|
877
|
+
A(L, {
|
|
878
|
+
modelValue: w.value,
|
|
879
|
+
"onUpdate:modelValue": (D) => w.value = D,
|
|
886
880
|
"hide-header": !0,
|
|
887
881
|
"first-day-of-week": 1,
|
|
888
882
|
"show-adjacent-months": !0,
|
|
889
883
|
"show-week": !0
|
|
890
884
|
}, {
|
|
891
885
|
actions: y(() => [
|
|
892
|
-
(h(),
|
|
886
|
+
(h(), V(ee(U)))
|
|
893
887
|
]),
|
|
894
888
|
_: 2
|
|
895
889
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
896
890
|
]),
|
|
897
891
|
_: 1
|
|
898
892
|
}, 8, ["modelValue"])) : $("", !0),
|
|
899
|
-
v.value === "time" ? (h(),
|
|
893
|
+
v.value === "time" ? (h(), V(q, {
|
|
900
894
|
key: 1,
|
|
901
|
-
modelValue:
|
|
902
|
-
"onUpdate:modelValue": d[9] || (d[9] = (
|
|
903
|
-
onCancel: d[10] || (d[10] = (
|
|
904
|
-
onSave: d[11] || (d[11] = (
|
|
895
|
+
modelValue: I.value,
|
|
896
|
+
"onUpdate:modelValue": d[9] || (d[9] = (w) => I.value = w),
|
|
897
|
+
onCancel: d[10] || (d[10] = (w) => v.value = ""),
|
|
898
|
+
onSave: d[11] || (d[11] = (w) => v.value = "")
|
|
905
899
|
}, {
|
|
906
|
-
default: y(({ model:
|
|
907
|
-
A(
|
|
908
|
-
modelValue:
|
|
909
|
-
"onUpdate:modelValue": (D) =>
|
|
900
|
+
default: y(({ model: w, actions: U }) => [
|
|
901
|
+
A(C, {
|
|
902
|
+
modelValue: w.value,
|
|
903
|
+
"onUpdate:modelValue": (D) => w.value = D,
|
|
910
904
|
"hide-header": !0,
|
|
911
905
|
format: "24hr"
|
|
912
906
|
}, {
|
|
913
907
|
actions: y(() => [
|
|
914
|
-
(h(),
|
|
908
|
+
(h(), V(ee(U)))
|
|
915
909
|
]),
|
|
916
910
|
_: 2
|
|
917
911
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -944,7 +938,7 @@ const Fl = {
|
|
|
944
938
|
}, K),
|
|
945
939
|
emits: ["update:modelValue", "click:clear"],
|
|
946
940
|
setup(t, { emit: e }) {
|
|
947
|
-
const l = t, r = e, { value: n, vuetifyBindings: a } = j(l, r), f = S(null), u = S(null), c = S(0), v = S(Math.round(Math.random() * 1e3)),
|
|
941
|
+
const l = t, r = e, { value: n, vuetifyBindings: a } = j(l, r), f = S(null), u = S(null), c = S(0), v = S(Math.round(Math.random() * 1e3)), i = S(), s = _(() => !i.value && n.value ? l.modelValue : "");
|
|
948
942
|
function m() {
|
|
949
943
|
f.value && window.clearInterval(f.value);
|
|
950
944
|
}
|
|
@@ -957,50 +951,50 @@ const Fl = {
|
|
|
957
951
|
B ? p() : m();
|
|
958
952
|
});
|
|
959
953
|
function g() {
|
|
960
|
-
return
|
|
961
|
-
n.value && (yield l.comms.delete(n.value)), n.value = null, c.value = 0, v.value = Math.round(Math.random() * 1e3), u.value = null,
|
|
954
|
+
return oe(this, null, function* () {
|
|
955
|
+
n.value && (yield l.comms.delete(n.value)), n.value = null, c.value = 0, v.value = Math.round(Math.random() * 1e3), u.value = null, i.value = null, m();
|
|
962
956
|
});
|
|
963
957
|
}
|
|
964
|
-
function
|
|
965
|
-
return
|
|
958
|
+
function I(B) {
|
|
959
|
+
return oe(this, null, function* () {
|
|
966
960
|
c.value = -1, u.value = B, new FormData().append("file", B, B.name);
|
|
967
961
|
try {
|
|
968
962
|
n.value = yield l.comms.upload(
|
|
969
963
|
B,
|
|
970
|
-
(d,
|
|
971
|
-
c.value = Math.round(d * 100 /
|
|
964
|
+
(d, k) => {
|
|
965
|
+
c.value = Math.round(d * 100 / k);
|
|
972
966
|
}
|
|
973
967
|
), c.value = 100, p();
|
|
974
968
|
} catch (d) {
|
|
975
|
-
throw c.value = 0, u.value = null, v.value = Math.round(Math.random() * 1e3),
|
|
969
|
+
throw c.value = 0, u.value = null, v.value = Math.round(Math.random() * 1e3), i.value = null, d;
|
|
976
970
|
}
|
|
977
971
|
});
|
|
978
972
|
}
|
|
979
|
-
function
|
|
980
|
-
B && (Array.isArray(B) ? console.error("Uploading multiple files not supported right now") :
|
|
973
|
+
function O(B) {
|
|
974
|
+
B && (Array.isArray(B) ? console.error("Uploading multiple files not supported right now") : I(B));
|
|
981
975
|
}
|
|
982
976
|
return (B, b) => {
|
|
983
|
-
const d = x("v-progress-linear"),
|
|
984
|
-
return h(),
|
|
977
|
+
const d = x("v-progress-linear"), k = x("v-file-input");
|
|
978
|
+
return h(), V(o(ge), P(l, {
|
|
985
979
|
clearable: "",
|
|
986
980
|
"onClick:clear": g
|
|
987
981
|
}), {
|
|
988
982
|
default: y(() => [
|
|
989
983
|
le("div", zl, [
|
|
990
|
-
u.value && c.value < 100 ? (h(),
|
|
984
|
+
u.value && c.value < 100 ? (h(), V(d, {
|
|
991
985
|
key: 0,
|
|
992
986
|
"model-value": c.value,
|
|
993
987
|
indeterminate: c.value === -1,
|
|
994
988
|
height: "10",
|
|
995
989
|
style: { position: "absolute", top: "50%", transform: "translateY(-50%)", width: "100%" }
|
|
996
990
|
}, null, 8, ["model-value", "indeterminate"])) : $("", !0),
|
|
997
|
-
A(
|
|
998
|
-
modelValue:
|
|
991
|
+
A(k, {
|
|
992
|
+
modelValue: i.value,
|
|
999
993
|
"onUpdate:modelValue": [
|
|
1000
|
-
b[0] || (b[0] = (
|
|
1001
|
-
|
|
994
|
+
b[0] || (b[0] = (L) => i.value = L),
|
|
995
|
+
O
|
|
1002
996
|
],
|
|
1003
|
-
label:
|
|
997
|
+
label: s.value,
|
|
1004
998
|
readonly: o(a).readonly,
|
|
1005
999
|
disabled: o(a).disabled,
|
|
1006
1000
|
name: o(a).name,
|
|
@@ -1044,14 +1038,14 @@ const Fl = {
|
|
|
1044
1038
|
})),
|
|
1045
1039
|
emits: ["update:modelValue", "click:clear"],
|
|
1046
1040
|
setup(t, { emit: e }) {
|
|
1047
|
-
const l = t, r = e, { errors: n, value: a, vuetifyBindings: f } = j(l, r), { inputType: u, max: c, min: v, precision:
|
|
1048
|
-
return (g,
|
|
1049
|
-
const
|
|
1041
|
+
const l = t, r = e, { errors: n, value: a, vuetifyBindings: f } = j(l, r), { inputType: u, max: c, min: v, precision: i, step: s } = ie(l), m = _(() => u.value === "number"), p = _(() => m.value ? { min: v.value, max: c.value, precision: i.value, step: s.value } : {});
|
|
1042
|
+
return (g, I) => {
|
|
1043
|
+
const O = x("v-text-field"), B = x("v-number-input");
|
|
1050
1044
|
return h(), E("div", Gl, [
|
|
1051
|
-
m.value ? (h(),
|
|
1045
|
+
m.value ? (h(), V(B, P({
|
|
1052
1046
|
key: 1,
|
|
1053
1047
|
modelValue: o(a),
|
|
1054
|
-
"onUpdate:modelValue":
|
|
1048
|
+
"onUpdate:modelValue": I[1] || (I[1] = (b) => G(a) ? a.value = b : null)
|
|
1055
1049
|
}, N(N({}, o(f)), p.value), {
|
|
1056
1050
|
density: "compact",
|
|
1057
1051
|
"control-variant": "stacked",
|
|
@@ -1061,10 +1055,10 @@ const Fl = {
|
|
|
1061
1055
|
A(o(W), { errors: o(n) }, null, 8, ["errors"])
|
|
1062
1056
|
]),
|
|
1063
1057
|
_: 1
|
|
1064
|
-
}, 16, ["modelValue"])) : (h(),
|
|
1058
|
+
}, 16, ["modelValue"])) : (h(), V(O, P({
|
|
1065
1059
|
key: 0,
|
|
1066
1060
|
modelValue: o(a),
|
|
1067
|
-
"onUpdate:modelValue":
|
|
1061
|
+
"onUpdate:modelValue": I[0] || (I[0] = (b) => G(a) ? a.value = b : null)
|
|
1068
1062
|
}, o(f), {
|
|
1069
1063
|
variant: "underlined",
|
|
1070
1064
|
type: o(u)
|
|
@@ -1077,7 +1071,7 @@ const Fl = {
|
|
|
1077
1071
|
]);
|
|
1078
1072
|
};
|
|
1079
1073
|
}
|
|
1080
|
-
}), Xl = /* @__PURE__ */
|
|
1074
|
+
}), Xl = /* @__PURE__ */ se(Wl, [["__scopeId", "data-v-7ce40eb2"]]), ql = { class: "editor-container" }, Zl = { class: "editor-container__editor" }, Yl = { ref: "editorElement" }, Ql = /* @__PURE__ */ F({
|
|
1081
1075
|
__name: "ck-editor-custom",
|
|
1082
1076
|
props: {
|
|
1083
1077
|
modelValue: { default: "" },
|
|
@@ -1086,8 +1080,8 @@ const Fl = {
|
|
|
1086
1080
|
},
|
|
1087
1081
|
emits: ["update:modelValue"],
|
|
1088
1082
|
setup(t, { expose: e, emit: l }) {
|
|
1089
|
-
Je((
|
|
1090
|
-
"3d4d5a06":
|
|
1083
|
+
Je((s) => ({
|
|
1084
|
+
"3d4d5a06": s.minHeight
|
|
1091
1085
|
}));
|
|
1092
1086
|
const r = l, n = S(!1), a = Yt, v = {
|
|
1093
1087
|
toolbar: {
|
|
@@ -1223,21 +1217,21 @@ const Fl = {
|
|
|
1223
1217
|
Se(() => {
|
|
1224
1218
|
n.value = !0;
|
|
1225
1219
|
});
|
|
1226
|
-
const
|
|
1220
|
+
const i = (s) => {
|
|
1227
1221
|
};
|
|
1228
|
-
return e({ onEditorReady:
|
|
1222
|
+
return e({ onEditorReady: i }), (s, m) => {
|
|
1229
1223
|
const p = x("ckeditor");
|
|
1230
1224
|
return h(), E("div", ql, [
|
|
1231
1225
|
le("div", Zl, [
|
|
1232
1226
|
le("div", Yl, [
|
|
1233
|
-
n.value ? (h(),
|
|
1227
|
+
n.value ? (h(), V(p, {
|
|
1234
1228
|
key: 0,
|
|
1235
|
-
"model-value":
|
|
1229
|
+
"model-value": s.modelValue,
|
|
1236
1230
|
editor: o(a),
|
|
1237
1231
|
config: v,
|
|
1238
|
-
disabled:
|
|
1239
|
-
style: he(`min-height: ${
|
|
1240
|
-
onReady:
|
|
1232
|
+
disabled: s.disabled,
|
|
1233
|
+
style: he(`min-height: ${s.minHeight}`),
|
|
1234
|
+
onReady: i,
|
|
1241
1235
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => r("update:modelValue", g))
|
|
1242
1236
|
}, null, 8, ["model-value", "editor", "disabled", "style"])) : $("", !0)
|
|
1243
1237
|
], 512)
|
|
@@ -1264,7 +1258,7 @@ const Fl = {
|
|
|
1264
1258
|
emits: ["update:modelValue", "click:clear"],
|
|
1265
1259
|
setup(t, { emit: e }) {
|
|
1266
1260
|
const l = t, r = e, { value: n, vuetifyBindings: a } = j(l, r);
|
|
1267
|
-
return (f, u) => (h(),
|
|
1261
|
+
return (f, u) => (h(), V(o(ge), Ue(Fe(l)), {
|
|
1268
1262
|
default: y(() => [
|
|
1269
1263
|
A(Ql, {
|
|
1270
1264
|
ref: "$editor",
|
|
@@ -1340,49 +1334,49 @@ const to = {
|
|
|
1340
1334
|
})),
|
|
1341
1335
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
1342
1336
|
setup(t, { emit: e }) {
|
|
1343
|
-
const l = t, { choices: r } = l, { multiple: n, allowTags: a, allowNull: f, cssClass: u, visibility: c } =
|
|
1344
|
-
function b(
|
|
1345
|
-
|
|
1337
|
+
const l = t, { choices: r } = l, { multiple: n, allowTags: a, allowNull: f, cssClass: u, visibility: c } = ie(l), v = S(!1), i = e, { errors: s, value: m, vuetifyBindings: p } = j(l, i), g = S(null), I = S(r || []), O = S(!1), B = _(() => eo(I.value));
|
|
1338
|
+
function b(C) {
|
|
1339
|
+
i("update:modelValueDisplay", ve(I.value, C));
|
|
1346
1340
|
}
|
|
1347
|
-
J(g, (
|
|
1341
|
+
J(g, (C) => {
|
|
1348
1342
|
p.value.readonly || et(() => {
|
|
1349
|
-
const
|
|
1350
|
-
b(
|
|
1343
|
+
const T = Q(C, n.value);
|
|
1344
|
+
b(T), m.value = T;
|
|
1351
1345
|
});
|
|
1352
1346
|
}, { deep: !0 });
|
|
1353
1347
|
function d() {
|
|
1354
1348
|
if (p.value.readonly || a.value) return;
|
|
1355
|
-
const
|
|
1356
|
-
me(
|
|
1349
|
+
const C = Q(g.value, n.value);
|
|
1350
|
+
me(C, g, n.value, !1, I.value), m.value = C;
|
|
1357
1351
|
}
|
|
1358
|
-
function
|
|
1359
|
-
let
|
|
1360
|
-
n.value && Array.isArray(g.value) ?
|
|
1352
|
+
function k(C) {
|
|
1353
|
+
let T;
|
|
1354
|
+
n.value && Array.isArray(g.value) ? T = Q(g.value.filter((w) => w !== C), n.value) : T = null, me(T, g, n.value, !1, I.value), m.value = T;
|
|
1361
1355
|
}
|
|
1362
|
-
function
|
|
1363
|
-
return
|
|
1356
|
+
function L(C, T) {
|
|
1357
|
+
return oe(this, null, function* () {
|
|
1364
1358
|
if (!(r || l.fetchChoices === void 0)) {
|
|
1365
|
-
|
|
1359
|
+
O.value = !0;
|
|
1366
1360
|
try {
|
|
1367
|
-
|
|
1361
|
+
I.value = yield l.fetchChoices(C, T);
|
|
1368
1362
|
} finally {
|
|
1369
|
-
|
|
1363
|
+
O.value = !1;
|
|
1370
1364
|
}
|
|
1371
1365
|
}
|
|
1372
1366
|
});
|
|
1373
1367
|
}
|
|
1374
1368
|
function q() {
|
|
1375
|
-
let
|
|
1376
|
-
!f.value &&
|
|
1369
|
+
let C = m.value;
|
|
1370
|
+
!f.value && C == null && B.value.length && (C = B.value[0].value), C = Q(C, n.value), me(C, g, n.value, a.value, I.value), b(C), m.value = C;
|
|
1377
1371
|
}
|
|
1378
|
-
return q(), l.fetchChoices !== void 0 &&
|
|
1372
|
+
return q(), l.fetchChoices !== void 0 && L(void 0, m.value).then(() => {
|
|
1379
1373
|
q();
|
|
1380
|
-
}), (
|
|
1381
|
-
const
|
|
1382
|
-
return o(c) !== o(M).SUPPRESS ? (h(),
|
|
1374
|
+
}), (C, T) => {
|
|
1375
|
+
const w = x("v-chip"), U = x("v-list-item");
|
|
1376
|
+
return o(c) !== o(M).SUPPRESS ? (h(), V(ee(o(a) ? "v-combobox" : "v-autocomplete"), P({
|
|
1383
1377
|
key: 0,
|
|
1384
1378
|
modelValue: g.value,
|
|
1385
|
-
"onUpdate:modelValue":
|
|
1379
|
+
"onUpdate:modelValue": T[0] || (T[0] = (D) => g.value = D),
|
|
1386
1380
|
class: [
|
|
1387
1381
|
o(u),
|
|
1388
1382
|
{
|
|
@@ -1400,32 +1394,32 @@ const to = {
|
|
|
1400
1394
|
"closable-chips": o(f) || o(n) && g.value.length > 1,
|
|
1401
1395
|
clearable: o(f),
|
|
1402
1396
|
multiple: o(n),
|
|
1403
|
-
loading:
|
|
1397
|
+
loading: O.value,
|
|
1404
1398
|
"hide-selected": !1,
|
|
1405
1399
|
"aria-describedby": o(p).helpText ? `${o(p).name}-help` : null,
|
|
1406
1400
|
"menu-props": { maxHeight: "400" },
|
|
1407
1401
|
"hide-details": "auto",
|
|
1408
|
-
"onUpdate:search":
|
|
1402
|
+
"onUpdate:search": T[1] || (T[1] = (D) => L(D, void 0)),
|
|
1409
1403
|
"onUpdate:modelValue": d,
|
|
1410
|
-
"onClick:clear":
|
|
1411
|
-
onFocus:
|
|
1412
|
-
onBlur:
|
|
1404
|
+
"onClick:clear": T[2] || (T[2] = (D) => g.value.value = null),
|
|
1405
|
+
onFocus: T[3] || (T[3] = (D) => v.value = !0),
|
|
1406
|
+
onBlur: T[4] || (T[4] = (D) => v.value = !1)
|
|
1413
1407
|
}), {
|
|
1414
1408
|
chip: y(({ item: D }) => [
|
|
1415
|
-
(h(),
|
|
1409
|
+
(h(), V(w, {
|
|
1416
1410
|
key: D.value,
|
|
1417
1411
|
label: "",
|
|
1418
1412
|
size: "small",
|
|
1419
1413
|
variant: o(n) ? "tonal" : "text",
|
|
1420
1414
|
closable: o(n),
|
|
1421
|
-
"onClick:close": (X) =>
|
|
1415
|
+
"onClick:close": (X) => k(D.value)
|
|
1422
1416
|
}, {
|
|
1423
1417
|
prepend: y(() => {
|
|
1424
1418
|
var X;
|
|
1425
1419
|
return [
|
|
1426
1420
|
(X = D.raw) != null && X.icon ? (h(), E("span", to, [
|
|
1427
1421
|
A(o(fe), {
|
|
1428
|
-
class: "action-icon d-inline-block",
|
|
1422
|
+
class: "df-select-action-icon d-inline-block",
|
|
1429
1423
|
name: D.raw.icon
|
|
1430
1424
|
}, null, 8, ["name"])
|
|
1431
1425
|
])) : $("", !0)
|
|
@@ -1444,7 +1438,7 @@ const to = {
|
|
|
1444
1438
|
return [
|
|
1445
1439
|
(ye = X.raw) != null && ye.icon ? (h(), E("span", lo, [
|
|
1446
1440
|
A(o(fe), {
|
|
1447
|
-
class: "action-icon
|
|
1441
|
+
class: "df-select-action-icon",
|
|
1448
1442
|
name: X.raw.icon
|
|
1449
1443
|
}, null, 8, ["name"])
|
|
1450
1444
|
])) : $("", !0)
|
|
@@ -1454,13 +1448,13 @@ const to = {
|
|
|
1454
1448
|
}, 1040)
|
|
1455
1449
|
]),
|
|
1456
1450
|
message: y(() => [
|
|
1457
|
-
A(o(W), { errors: o(
|
|
1451
|
+
A(o(W), { errors: o(s) }, null, 8, ["errors"])
|
|
1458
1452
|
]),
|
|
1459
1453
|
_: 1
|
|
1460
1454
|
}, 16, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : $("", !0);
|
|
1461
1455
|
};
|
|
1462
1456
|
}
|
|
1463
|
-
}), no =
|
|
1457
|
+
}), no = { class: "container" }, ao = /* @__PURE__ */ F({
|
|
1464
1458
|
__name: "df-text-area",
|
|
1465
1459
|
props: /* @__PURE__ */ z({
|
|
1466
1460
|
rows: {},
|
|
@@ -1482,14 +1476,14 @@ const to = {
|
|
|
1482
1476
|
})),
|
|
1483
1477
|
emits: ["update:modelValue", "click:clear"],
|
|
1484
1478
|
setup(t, { emit: e }) {
|
|
1485
|
-
const l = t, r = e, { errors: n, value: a, vuetifyBindings: f } = j(l, r), { cssClass: u, visibility: c } =
|
|
1486
|
-
return (v,
|
|
1487
|
-
const
|
|
1488
|
-
return h(), E("div",
|
|
1489
|
-
o(c) !== o(M).SUPPRESS ? (h(),
|
|
1479
|
+
const l = t, r = e, { errors: n, value: a, vuetifyBindings: f } = j(l, r), { cssClass: u, visibility: c } = ie(l);
|
|
1480
|
+
return (v, i) => {
|
|
1481
|
+
const s = x("v-textarea");
|
|
1482
|
+
return h(), E("div", no, [
|
|
1483
|
+
o(c) !== o(M).SUPPRESS ? (h(), V(s, P({
|
|
1490
1484
|
key: 0,
|
|
1491
1485
|
modelValue: o(a),
|
|
1492
|
-
"onUpdate:modelValue":
|
|
1486
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => G(a) ? a.value = m : null),
|
|
1493
1487
|
class: [
|
|
1494
1488
|
o(u),
|
|
1495
1489
|
{
|
|
@@ -1510,7 +1504,7 @@ const to = {
|
|
|
1510
1504
|
]);
|
|
1511
1505
|
};
|
|
1512
1506
|
}
|
|
1513
|
-
}),
|
|
1507
|
+
}), ro = /* @__PURE__ */ se(ao, [["__scopeId", "data-v-2dc106f6"]]), io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1514
1508
|
__proto__: null,
|
|
1515
1509
|
DfActions: Rl,
|
|
1516
1510
|
DfCheckbox: Ol,
|
|
@@ -1519,9 +1513,9 @@ const to = {
|
|
|
1519
1513
|
DfFile: Kl,
|
|
1520
1514
|
DfInput: Xl,
|
|
1521
1515
|
DfRtfEditor: Jl,
|
|
1522
|
-
DfSelect:
|
|
1523
|
-
DfTextArea:
|
|
1524
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1516
|
+
DfSelect: oo,
|
|
1517
|
+
DfTextArea: ro
|
|
1518
|
+
}, Symbol.toStringTag, { value: "Module" })), so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1525
1519
|
__proto__: null,
|
|
1526
1520
|
VAutocomplete: Qt,
|
|
1527
1521
|
VBtn: Jt,
|
|
@@ -1545,15 +1539,15 @@ const to = {
|
|
|
1545
1539
|
VTextField: gl,
|
|
1546
1540
|
VTextarea: hl,
|
|
1547
1541
|
VTimePicker: yl
|
|
1548
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1542
|
+
}, Symbol.toStringTag, { value: "Module" })), Oo = {
|
|
1549
1543
|
install: (t, e) => {
|
|
1550
1544
|
var l, r;
|
|
1551
|
-
t.use(Sl), (l = e == null ? void 0 : e.registerComponents) != null && l && Object.entries(
|
|
1545
|
+
t.use(Sl), (l = e == null ? void 0 : e.registerComponents) != null && l && Object.entries(io).map(([n, a]) => t.component(n, a)), (r = e == null ? void 0 : e.registerVuetifyComponents) != null && r && Object.entries(so).map(([n, a]) => t.component(n, a));
|
|
1552
1546
|
}
|
|
1553
1547
|
};
|
|
1554
1548
|
export {
|
|
1555
|
-
|
|
1556
|
-
|
|
1549
|
+
ne as Action,
|
|
1550
|
+
R as ActionDisplayStyle,
|
|
1557
1551
|
Rl as DfActions,
|
|
1558
1552
|
Ol as DfCheckbox,
|
|
1559
1553
|
Hl as DfColor,
|
|
@@ -1561,12 +1555,12 @@ export {
|
|
|
1561
1555
|
Kl as DfFile,
|
|
1562
1556
|
Xl as DfInput,
|
|
1563
1557
|
Jl as DfRtfEditor,
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1558
|
+
oo as DfSelect,
|
|
1559
|
+
ro as DfTextArea,
|
|
1560
|
+
Oo as DynamicFormsInputs,
|
|
1567
1561
|
W as ErrorsWidget,
|
|
1568
1562
|
ge as InputBase,
|
|
1569
|
-
|
|
1563
|
+
so as VuetifyComponents,
|
|
1570
1564
|
K as defaultBaseProps,
|
|
1571
1565
|
Ae as defaultDisplayStyle,
|
|
1572
1566
|
j as useInputBase
|