@dynamicforms/vuetify-inputs 0.1.9 → 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.
|
@@ -10,8 +10,8 @@ var ue = (t, e, l) => e in t ? Me(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
Ge.call(e, l) && ue(t, l, e[l]);
|
|
11
11
|
return t;
|
|
12
12
|
}, H = (t, e) => je(t, ze(e));
|
|
13
|
-
var
|
|
14
|
-
var
|
|
13
|
+
var Z = (t, e, l) => ue(t, typeof e != "symbol" ? e + "" : e, l);
|
|
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,13 +28,13 @@ 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
|
|
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";
|
|
35
35
|
import xe, { ValidationErrorRenderContent as rt, DisplayMode as M, ExecuteAction as it, Action as ce } from "@dynamicforms/vue-forms";
|
|
36
36
|
import st from "vue-markdown-render";
|
|
37
|
-
import { format as
|
|
37
|
+
import { format as Y, parse as ut } from "date-fns";
|
|
38
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 ht, CloudServices as gt, 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 xt, ImageToolbar as At, ImageUpload as Dt, Indent as St, IndentBlock as Nt, Italic as $t, Link as Et, List as Ut, Autoformat as Ft, MediaEmbed as Lt, Paragraph as Pt, PasteFromMarkdownExperimental as Rt, PasteFromOffice as Ot, SelectAll as Ht, Style as Mt, 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";
|
|
@@ -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
|
-
}),
|
|
220
|
-
u.value &&
|
|
221
|
-
}),
|
|
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
|
-
|
|
477
|
-
|
|
478
|
-
|
|
476
|
+
Z(this, "name");
|
|
477
|
+
Z(this, "displayStyle");
|
|
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 },
|
|
@@ -636,22 +636,18 @@ const Fl = {
|
|
|
636
636
|
get() {
|
|
637
637
|
return a.value;
|
|
638
638
|
},
|
|
639
|
-
set(
|
|
639
|
+
set() {
|
|
640
640
|
}
|
|
641
|
-
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
642
641
|
});
|
|
643
|
-
q(a, (s) => {
|
|
644
|
-
s ? a.value = !0 : l.allowNull && s == null ? a.value = null : a.value = !1;
|
|
645
|
-
}, { immediate: !0 });
|
|
646
642
|
function v() {
|
|
647
|
-
const
|
|
648
|
-
|
|
643
|
+
const i = nt(a.value);
|
|
644
|
+
i === !0 ? a.value = l.allowNull ? null : !1 : a.value = i === !1;
|
|
649
645
|
}
|
|
650
|
-
return (
|
|
646
|
+
return (i, s) => {
|
|
651
647
|
const m = x("v-checkbox");
|
|
652
|
-
return h(),
|
|
648
|
+
return h(), V(m, P({
|
|
653
649
|
modelValue: c.value,
|
|
654
|
-
"onUpdate:modelValue":
|
|
650
|
+
"onUpdate:modelValue": s[0] || (s[0] = (p) => c.value = p)
|
|
655
651
|
}, o(f), {
|
|
656
652
|
density: "compact",
|
|
657
653
|
indeterminate: u.value,
|
|
@@ -685,26 +681,23 @@ const Fl = {
|
|
|
685
681
|
emits: ["update:modelValue", "click:clear"],
|
|
686
682
|
setup(t, { emit: e }) {
|
|
687
683
|
const l = t, r = e, { errors: n, value: a, vuetifyBindings: f } = j(l, r), u = S(!1), c = _(() => [
|
|
688
|
-
(
|
|
684
|
+
(v) => !v && l.allowNull || /^#?([a-fA-F0-9]{6}[a-fA-F0-9]{0,2})$/.test(v) ? !0 : "Not a valid hex string."
|
|
689
685
|
]);
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
return (s, i) => {
|
|
694
|
-
const m = x("v-text-field"), p = x("v-color-picker"), g = x("v-menu");
|
|
695
|
-
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, {
|
|
696
689
|
modelValue: u.value,
|
|
697
|
-
"onUpdate:modelValue": i[2] || (i[2] = (
|
|
690
|
+
"onUpdate:modelValue": i[2] || (i[2] = (g) => u.value = g),
|
|
698
691
|
location: "top start",
|
|
699
692
|
origin: "bottom start",
|
|
700
693
|
"close-on-content-click": !1
|
|
701
694
|
}, {
|
|
702
|
-
activator: y(({ props:
|
|
703
|
-
A(
|
|
695
|
+
activator: y(({ props: g }) => [
|
|
696
|
+
A(s, P({
|
|
704
697
|
modelValue: o(a),
|
|
705
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
706
|
-
}, N(N({}, o(f)),
|
|
707
|
-
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,
|
|
708
701
|
type: "text",
|
|
709
702
|
variant: "underlined",
|
|
710
703
|
rules: c.value
|
|
@@ -721,12 +714,9 @@ const Fl = {
|
|
|
721
714
|
}, 1040, ["modelValue", "clearable", "rules"])
|
|
722
715
|
]),
|
|
723
716
|
default: y(() => [
|
|
724
|
-
A(
|
|
717
|
+
A(m, {
|
|
725
718
|
modelValue: o(a),
|
|
726
|
-
"onUpdate:modelValue": [
|
|
727
|
-
i[1] || (i[1] = (w) => G(a) ? a.value = w : null),
|
|
728
|
-
v
|
|
729
|
-
],
|
|
719
|
+
"onUpdate:modelValue": i[1] || (i[1] = (g) => G(a) ? a.value = g : null),
|
|
730
720
|
mode: "hexa"
|
|
731
721
|
}, null, 8, ["modelValue"])
|
|
732
722
|
]),
|
|
@@ -758,31 +748,31 @@ const Fl = {
|
|
|
758
748
|
})),
|
|
759
749
|
emits: ["update:modelValue", "click:clear"],
|
|
760
750
|
setup(t, { emit: e }) {
|
|
761
|
-
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 = _({
|
|
762
752
|
get() {
|
|
763
753
|
return o(v) !== "";
|
|
764
754
|
},
|
|
765
755
|
set(b) {
|
|
766
756
|
b ? v.value = "date" : v.value = "";
|
|
767
757
|
}
|
|
768
|
-
}),
|
|
758
|
+
}), s = (b) => `${Y(b, "yyyy-MM-dd")}T${Y(b, "HH:mm")}:00`, m = S(null);
|
|
769
759
|
function p(b, d) {
|
|
770
760
|
if (b == null)
|
|
771
761
|
m.value = null;
|
|
772
762
|
else if (d === -1)
|
|
773
763
|
if (o(f) === "time")
|
|
774
|
-
m.value =
|
|
764
|
+
m.value = s(/* @__PURE__ */ new Date()), p(`T${b}`, 1);
|
|
775
765
|
else {
|
|
776
|
-
const
|
|
777
|
-
p(
|
|
766
|
+
const k = s(new Date(b));
|
|
767
|
+
p(k, 0), p(k, 1);
|
|
778
768
|
}
|
|
779
769
|
else {
|
|
780
|
-
m.value == null && (m.value =
|
|
781
|
-
const
|
|
782
|
-
|
|
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");
|
|
783
773
|
}
|
|
784
774
|
}
|
|
785
|
-
|
|
775
|
+
J(n, (b) => p(b, -1), { immediate: !0 });
|
|
786
776
|
const g = _({
|
|
787
777
|
get() {
|
|
788
778
|
const b = o(m);
|
|
@@ -791,9 +781,9 @@ const Fl = {
|
|
|
791
781
|
return Number.isNaN(d.getTime()) ? null : d;
|
|
792
782
|
},
|
|
793
783
|
set(b) {
|
|
794
|
-
p(
|
|
784
|
+
p(s(b), 0);
|
|
795
785
|
}
|
|
796
|
-
}),
|
|
786
|
+
}), I = _({
|
|
797
787
|
get() {
|
|
798
788
|
const b = o(m);
|
|
799
789
|
return b == null ? "" : b.split(/[TZ]/g)[1].split(".")[0];
|
|
@@ -801,15 +791,15 @@ const Fl = {
|
|
|
801
791
|
set(b) {
|
|
802
792
|
p(`T${b}`, 1);
|
|
803
793
|
}
|
|
804
|
-
}),
|
|
794
|
+
}), O = _({
|
|
805
795
|
get() {
|
|
806
796
|
const b = o(g);
|
|
807
|
-
return b == null ? "" :
|
|
797
|
+
return b == null ? "" : Y(b, o(u));
|
|
808
798
|
},
|
|
809
799
|
set(b) {
|
|
810
800
|
try {
|
|
811
801
|
const d = ut(b, o(u), /* @__PURE__ */ new Date());
|
|
812
|
-
p(
|
|
802
|
+
p(s(d), 0);
|
|
813
803
|
} catch (d) {
|
|
814
804
|
console.error(d);
|
|
815
805
|
}
|
|
@@ -817,36 +807,36 @@ const Fl = {
|
|
|
817
807
|
}), B = _({
|
|
818
808
|
get() {
|
|
819
809
|
const b = o(g);
|
|
820
|
-
return b == null ? "" :
|
|
810
|
+
return b == null ? "" : Y(b, o(c));
|
|
821
811
|
},
|
|
822
812
|
set(b) {
|
|
823
813
|
const d = b.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
824
814
|
if (d == null) return;
|
|
825
|
-
let
|
|
826
|
-
const
|
|
827
|
-
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));
|
|
828
818
|
}
|
|
829
819
|
});
|
|
830
820
|
return (b, d) => {
|
|
831
|
-
const
|
|
832
|
-
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, {
|
|
833
823
|
clearable: "",
|
|
834
|
-
"onClick:clear": d[13] || (d[13] = (
|
|
824
|
+
"onClick:clear": d[13] || (d[13] = (w) => n.value = null)
|
|
835
825
|
}), {
|
|
836
826
|
default: y(() => [
|
|
837
|
-
A(
|
|
838
|
-
modelValue:
|
|
839
|
-
"onUpdate:modelValue": d[12] || (d[12] = (
|
|
827
|
+
A(T, {
|
|
828
|
+
modelValue: i.value,
|
|
829
|
+
"onUpdate:modelValue": d[12] || (d[12] = (w) => i.value = w),
|
|
840
830
|
location: "top start",
|
|
841
831
|
origin: `bottom ${o(f) === "datetime" ? "center" : "start"}`,
|
|
842
832
|
"close-on-content-click": !1
|
|
843
833
|
}, {
|
|
844
|
-
activator: y(({ props:
|
|
834
|
+
activator: y(({ props: w }) => [
|
|
845
835
|
le("div", Ml, [
|
|
846
|
-
["date", "datetime"].includes(o(f)) ? (h(), k
|
|
836
|
+
["date", "datetime"].includes(o(f)) ? (h(), V(k, P({
|
|
847
837
|
key: 0,
|
|
848
|
-
modelValue:
|
|
849
|
-
"onUpdate:modelValue": d[0] || (d[0] = (U) =>
|
|
838
|
+
modelValue: O.value,
|
|
839
|
+
"onUpdate:modelValue": d[0] || (d[0] = (U) => O.value = U),
|
|
850
840
|
style: { "flex-grow": "4" },
|
|
851
841
|
density: "compact",
|
|
852
842
|
clearable: !1,
|
|
@@ -854,11 +844,11 @@ const Fl = {
|
|
|
854
844
|
readonly: o(a).readonly,
|
|
855
845
|
disabled: o(a).disabled,
|
|
856
846
|
name: `${o(a).name}-date`
|
|
857
|
-
},
|
|
847
|
+
}, w, {
|
|
858
848
|
onClick: d[1] || (d[1] = (U) => v.value = "date"),
|
|
859
849
|
onKeydown: d[2] || (d[2] = ke((U) => v.value = "date", ["space"]))
|
|
860
850
|
}), null, 16, ["modelValue", "readonly", "disabled", "name"])) : $("", !0),
|
|
861
|
-
["time", "datetime"].includes(o(f)) ? (h(), k
|
|
851
|
+
["time", "datetime"].includes(o(f)) ? (h(), V(k, P({
|
|
862
852
|
key: 1,
|
|
863
853
|
modelValue: B.value,
|
|
864
854
|
"onUpdate:modelValue": d[3] || (d[3] = (U) => B.value = U),
|
|
@@ -869,53 +859,53 @@ const Fl = {
|
|
|
869
859
|
readonly: o(a).readonly,
|
|
870
860
|
disabled: o(a).disabled,
|
|
871
861
|
name: `${o(a).name}-time`
|
|
872
|
-
},
|
|
862
|
+
}, w, {
|
|
873
863
|
onClick: d[4] || (d[4] = (U) => v.value = "time"),
|
|
874
864
|
onKeydown: d[5] || (d[5] = ke((U) => v.value = "time", ["space"]))
|
|
875
865
|
}), null, 16, ["modelValue", "readonly", "disabled", "name"])) : $("", !0)
|
|
876
866
|
])
|
|
877
867
|
]),
|
|
878
868
|
default: y(() => [
|
|
879
|
-
v.value === "date" ? (h(),
|
|
869
|
+
v.value === "date" ? (h(), V(q, {
|
|
880
870
|
key: 0,
|
|
881
871
|
modelValue: g.value,
|
|
882
|
-
"onUpdate:modelValue": d[6] || (d[6] = (
|
|
883
|
-
onCancel: d[7] || (d[7] = (
|
|
884
|
-
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 = "")
|
|
885
875
|
}, {
|
|
886
|
-
default: y(({ model:
|
|
887
|
-
A(
|
|
888
|
-
modelValue:
|
|
889
|
-
"onUpdate:modelValue": (D) =>
|
|
876
|
+
default: y(({ model: w, actions: U }) => [
|
|
877
|
+
A(L, {
|
|
878
|
+
modelValue: w.value,
|
|
879
|
+
"onUpdate:modelValue": (D) => w.value = D,
|
|
890
880
|
"hide-header": !0,
|
|
891
881
|
"first-day-of-week": 1,
|
|
892
882
|
"show-adjacent-months": !0,
|
|
893
883
|
"show-week": !0
|
|
894
884
|
}, {
|
|
895
885
|
actions: y(() => [
|
|
896
|
-
(h(),
|
|
886
|
+
(h(), V(ee(U)))
|
|
897
887
|
]),
|
|
898
888
|
_: 2
|
|
899
889
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
900
890
|
]),
|
|
901
891
|
_: 1
|
|
902
892
|
}, 8, ["modelValue"])) : $("", !0),
|
|
903
|
-
v.value === "time" ? (h(),
|
|
893
|
+
v.value === "time" ? (h(), V(q, {
|
|
904
894
|
key: 1,
|
|
905
|
-
modelValue:
|
|
906
|
-
"onUpdate:modelValue": d[9] || (d[9] = (
|
|
907
|
-
onCancel: d[10] || (d[10] = (
|
|
908
|
-
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 = "")
|
|
909
899
|
}, {
|
|
910
|
-
default: y(({ model:
|
|
911
|
-
A(
|
|
912
|
-
modelValue:
|
|
913
|
-
"onUpdate:modelValue": (D) =>
|
|
900
|
+
default: y(({ model: w, actions: U }) => [
|
|
901
|
+
A(C, {
|
|
902
|
+
modelValue: w.value,
|
|
903
|
+
"onUpdate:modelValue": (D) => w.value = D,
|
|
914
904
|
"hide-header": !0,
|
|
915
905
|
format: "24hr"
|
|
916
906
|
}, {
|
|
917
907
|
actions: y(() => [
|
|
918
|
-
(h(),
|
|
908
|
+
(h(), V(ee(U)))
|
|
919
909
|
]),
|
|
920
910
|
_: 2
|
|
921
911
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -948,7 +938,7 @@ const Fl = {
|
|
|
948
938
|
}, K),
|
|
949
939
|
emits: ["update:modelValue", "click:clear"],
|
|
950
940
|
setup(t, { emit: e }) {
|
|
951
|
-
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 : "");
|
|
952
942
|
function m() {
|
|
953
943
|
f.value && window.clearInterval(f.value);
|
|
954
944
|
}
|
|
@@ -957,54 +947,54 @@ const Fl = {
|
|
|
957
947
|
n.value && l.comms.touch(n.value);
|
|
958
948
|
}, 60 * 1e3);
|
|
959
949
|
}
|
|
960
|
-
Ne(() => m()),
|
|
950
|
+
Ne(() => m()), J(n, (B) => {
|
|
961
951
|
B ? p() : m();
|
|
962
952
|
});
|
|
963
953
|
function g() {
|
|
964
|
-
return
|
|
965
|
-
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();
|
|
966
956
|
});
|
|
967
957
|
}
|
|
968
|
-
function
|
|
969
|
-
return
|
|
958
|
+
function I(B) {
|
|
959
|
+
return oe(this, null, function* () {
|
|
970
960
|
c.value = -1, u.value = B, new FormData().append("file", B, B.name);
|
|
971
961
|
try {
|
|
972
962
|
n.value = yield l.comms.upload(
|
|
973
963
|
B,
|
|
974
|
-
(d,
|
|
975
|
-
c.value = Math.round(d * 100 /
|
|
964
|
+
(d, k) => {
|
|
965
|
+
c.value = Math.round(d * 100 / k);
|
|
976
966
|
}
|
|
977
967
|
), c.value = 100, p();
|
|
978
968
|
} catch (d) {
|
|
979
|
-
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;
|
|
980
970
|
}
|
|
981
971
|
});
|
|
982
972
|
}
|
|
983
|
-
function
|
|
984
|
-
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));
|
|
985
975
|
}
|
|
986
976
|
return (B, b) => {
|
|
987
|
-
const d = x("v-progress-linear"),
|
|
988
|
-
return h(),
|
|
977
|
+
const d = x("v-progress-linear"), k = x("v-file-input");
|
|
978
|
+
return h(), V(o(ge), P(l, {
|
|
989
979
|
clearable: "",
|
|
990
980
|
"onClick:clear": g
|
|
991
981
|
}), {
|
|
992
982
|
default: y(() => [
|
|
993
983
|
le("div", zl, [
|
|
994
|
-
u.value && c.value < 100 ? (h(),
|
|
984
|
+
u.value && c.value < 100 ? (h(), V(d, {
|
|
995
985
|
key: 0,
|
|
996
986
|
"model-value": c.value,
|
|
997
987
|
indeterminate: c.value === -1,
|
|
998
988
|
height: "10",
|
|
999
989
|
style: { position: "absolute", top: "50%", transform: "translateY(-50%)", width: "100%" }
|
|
1000
990
|
}, null, 8, ["model-value", "indeterminate"])) : $("", !0),
|
|
1001
|
-
A(
|
|
1002
|
-
modelValue:
|
|
991
|
+
A(k, {
|
|
992
|
+
modelValue: i.value,
|
|
1003
993
|
"onUpdate:modelValue": [
|
|
1004
|
-
b[0] || (b[0] = (
|
|
1005
|
-
|
|
994
|
+
b[0] || (b[0] = (L) => i.value = L),
|
|
995
|
+
O
|
|
1006
996
|
],
|
|
1007
|
-
label:
|
|
997
|
+
label: s.value,
|
|
1008
998
|
readonly: o(a).readonly,
|
|
1009
999
|
disabled: o(a).disabled,
|
|
1010
1000
|
name: o(a).name,
|
|
@@ -1048,14 +1038,14 @@ const Fl = {
|
|
|
1048
1038
|
})),
|
|
1049
1039
|
emits: ["update:modelValue", "click:clear"],
|
|
1050
1040
|
setup(t, { emit: e }) {
|
|
1051
|
-
const l = t, r = e, { errors: n, value: a, vuetifyBindings: f } = j(l, r), { inputType: u, max: c, min: v, precision:
|
|
1052
|
-
return (g,
|
|
1053
|
-
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");
|
|
1054
1044
|
return h(), E("div", Gl, [
|
|
1055
|
-
m.value ? (h(),
|
|
1045
|
+
m.value ? (h(), V(B, P({
|
|
1056
1046
|
key: 1,
|
|
1057
1047
|
modelValue: o(a),
|
|
1058
|
-
"onUpdate:modelValue":
|
|
1048
|
+
"onUpdate:modelValue": I[1] || (I[1] = (b) => G(a) ? a.value = b : null)
|
|
1059
1049
|
}, N(N({}, o(f)), p.value), {
|
|
1060
1050
|
density: "compact",
|
|
1061
1051
|
"control-variant": "stacked",
|
|
@@ -1065,10 +1055,10 @@ const Fl = {
|
|
|
1065
1055
|
A(o(W), { errors: o(n) }, null, 8, ["errors"])
|
|
1066
1056
|
]),
|
|
1067
1057
|
_: 1
|
|
1068
|
-
}, 16, ["modelValue"])) : (h(),
|
|
1058
|
+
}, 16, ["modelValue"])) : (h(), V(O, P({
|
|
1069
1059
|
key: 0,
|
|
1070
1060
|
modelValue: o(a),
|
|
1071
|
-
"onUpdate:modelValue":
|
|
1061
|
+
"onUpdate:modelValue": I[0] || (I[0] = (b) => G(a) ? a.value = b : null)
|
|
1072
1062
|
}, o(f), {
|
|
1073
1063
|
variant: "underlined",
|
|
1074
1064
|
type: o(u)
|
|
@@ -1081,7 +1071,7 @@ const Fl = {
|
|
|
1081
1071
|
]);
|
|
1082
1072
|
};
|
|
1083
1073
|
}
|
|
1084
|
-
}), 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({
|
|
1085
1075
|
__name: "ck-editor-custom",
|
|
1086
1076
|
props: {
|
|
1087
1077
|
modelValue: { default: "" },
|
|
@@ -1090,8 +1080,8 @@ const Fl = {
|
|
|
1090
1080
|
},
|
|
1091
1081
|
emits: ["update:modelValue"],
|
|
1092
1082
|
setup(t, { expose: e, emit: l }) {
|
|
1093
|
-
Je((
|
|
1094
|
-
"3d4d5a06":
|
|
1083
|
+
Je((s) => ({
|
|
1084
|
+
"3d4d5a06": s.minHeight
|
|
1095
1085
|
}));
|
|
1096
1086
|
const r = l, n = S(!1), a = Yt, v = {
|
|
1097
1087
|
toolbar: {
|
|
@@ -1227,21 +1217,21 @@ const Fl = {
|
|
|
1227
1217
|
Se(() => {
|
|
1228
1218
|
n.value = !0;
|
|
1229
1219
|
});
|
|
1230
|
-
const
|
|
1220
|
+
const i = (s) => {
|
|
1231
1221
|
};
|
|
1232
|
-
return e({ onEditorReady:
|
|
1222
|
+
return e({ onEditorReady: i }), (s, m) => {
|
|
1233
1223
|
const p = x("ckeditor");
|
|
1234
1224
|
return h(), E("div", ql, [
|
|
1235
1225
|
le("div", Zl, [
|
|
1236
1226
|
le("div", Yl, [
|
|
1237
|
-
n.value ? (h(),
|
|
1227
|
+
n.value ? (h(), V(p, {
|
|
1238
1228
|
key: 0,
|
|
1239
|
-
"model-value":
|
|
1229
|
+
"model-value": s.modelValue,
|
|
1240
1230
|
editor: o(a),
|
|
1241
1231
|
config: v,
|
|
1242
|
-
disabled:
|
|
1243
|
-
style: he(`min-height: ${
|
|
1244
|
-
onReady:
|
|
1232
|
+
disabled: s.disabled,
|
|
1233
|
+
style: he(`min-height: ${s.minHeight}`),
|
|
1234
|
+
onReady: i,
|
|
1245
1235
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => r("update:modelValue", g))
|
|
1246
1236
|
}, null, 8, ["model-value", "editor", "disabled", "style"])) : $("", !0)
|
|
1247
1237
|
], 512)
|
|
@@ -1268,7 +1258,7 @@ const Fl = {
|
|
|
1268
1258
|
emits: ["update:modelValue", "click:clear"],
|
|
1269
1259
|
setup(t, { emit: e }) {
|
|
1270
1260
|
const l = t, r = e, { value: n, vuetifyBindings: a } = j(l, r);
|
|
1271
|
-
return (f, u) => (h(),
|
|
1261
|
+
return (f, u) => (h(), V(o(ge), Ue(Fe(l)), {
|
|
1272
1262
|
default: y(() => [
|
|
1273
1263
|
A(Ql, {
|
|
1274
1264
|
ref: "$editor",
|
|
@@ -1285,7 +1275,7 @@ const Fl = {
|
|
|
1285
1275
|
function eo(t) {
|
|
1286
1276
|
return t.map((e) => ({ value: e.id, title: e.text, icon: e.icon }));
|
|
1287
1277
|
}
|
|
1288
|
-
function
|
|
1278
|
+
function Q(t, e) {
|
|
1289
1279
|
var l;
|
|
1290
1280
|
return t == null || Be(t) && t.length === 0 ? null : e ? Le(t) : Be(t) ? (l = Pe(t)) != null ? l : null : t;
|
|
1291
1281
|
}
|
|
@@ -1296,7 +1286,7 @@ function ve(t, e) {
|
|
|
1296
1286
|
}
|
|
1297
1287
|
function me(t, e, l, r, n) {
|
|
1298
1288
|
var f;
|
|
1299
|
-
const a =
|
|
1289
|
+
const a = Q(t, l);
|
|
1300
1290
|
if (a == null) {
|
|
1301
1291
|
e.value = l ? [] : null;
|
|
1302
1292
|
return;
|
|
@@ -1344,49 +1334,49 @@ const to = {
|
|
|
1344
1334
|
})),
|
|
1345
1335
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
1346
1336
|
setup(t, { emit: e }) {
|
|
1347
|
-
const l = t, { choices: r } = l, { multiple: n, allowTags: a, allowNull: f, cssClass: u, visibility: c } =
|
|
1348
|
-
function b(
|
|
1349
|
-
|
|
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));
|
|
1350
1340
|
}
|
|
1351
|
-
|
|
1341
|
+
J(g, (C) => {
|
|
1352
1342
|
p.value.readonly || et(() => {
|
|
1353
|
-
const
|
|
1354
|
-
b(
|
|
1343
|
+
const T = Q(C, n.value);
|
|
1344
|
+
b(T), m.value = T;
|
|
1355
1345
|
});
|
|
1356
1346
|
}, { deep: !0 });
|
|
1357
1347
|
function d() {
|
|
1358
1348
|
if (p.value.readonly || a.value) return;
|
|
1359
|
-
const
|
|
1360
|
-
me(
|
|
1349
|
+
const C = Q(g.value, n.value);
|
|
1350
|
+
me(C, g, n.value, !1, I.value), m.value = C;
|
|
1361
1351
|
}
|
|
1362
|
-
function
|
|
1363
|
-
let
|
|
1364
|
-
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;
|
|
1365
1355
|
}
|
|
1366
|
-
function
|
|
1367
|
-
return
|
|
1356
|
+
function L(C, T) {
|
|
1357
|
+
return oe(this, null, function* () {
|
|
1368
1358
|
if (!(r || l.fetchChoices === void 0)) {
|
|
1369
|
-
|
|
1359
|
+
O.value = !0;
|
|
1370
1360
|
try {
|
|
1371
|
-
|
|
1361
|
+
I.value = yield l.fetchChoices(C, T);
|
|
1372
1362
|
} finally {
|
|
1373
|
-
|
|
1363
|
+
O.value = !1;
|
|
1374
1364
|
}
|
|
1375
1365
|
}
|
|
1376
1366
|
});
|
|
1377
1367
|
}
|
|
1378
|
-
function
|
|
1379
|
-
let
|
|
1380
|
-
!f.value &&
|
|
1368
|
+
function q() {
|
|
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;
|
|
1381
1371
|
}
|
|
1382
|
-
return
|
|
1383
|
-
|
|
1384
|
-
}), (
|
|
1385
|
-
const
|
|
1386
|
-
return o(c) !== o(M).SUPPRESS ? (h(),
|
|
1372
|
+
return q(), l.fetchChoices !== void 0 && L(void 0, m.value).then(() => {
|
|
1373
|
+
q();
|
|
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({
|
|
1387
1377
|
key: 0,
|
|
1388
1378
|
modelValue: g.value,
|
|
1389
|
-
"onUpdate:modelValue":
|
|
1379
|
+
"onUpdate:modelValue": T[0] || (T[0] = (D) => g.value = D),
|
|
1390
1380
|
class: [
|
|
1391
1381
|
o(u),
|
|
1392
1382
|
{
|
|
@@ -1404,32 +1394,32 @@ const to = {
|
|
|
1404
1394
|
"closable-chips": o(f) || o(n) && g.value.length > 1,
|
|
1405
1395
|
clearable: o(f),
|
|
1406
1396
|
multiple: o(n),
|
|
1407
|
-
loading:
|
|
1397
|
+
loading: O.value,
|
|
1408
1398
|
"hide-selected": !1,
|
|
1409
1399
|
"aria-describedby": o(p).helpText ? `${o(p).name}-help` : null,
|
|
1410
1400
|
"menu-props": { maxHeight: "400" },
|
|
1411
1401
|
"hide-details": "auto",
|
|
1412
|
-
"onUpdate:search":
|
|
1402
|
+
"onUpdate:search": T[1] || (T[1] = (D) => L(D, void 0)),
|
|
1413
1403
|
"onUpdate:modelValue": d,
|
|
1414
|
-
"onClick:clear":
|
|
1415
|
-
onFocus:
|
|
1416
|
-
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)
|
|
1417
1407
|
}), {
|
|
1418
1408
|
chip: y(({ item: D }) => [
|
|
1419
|
-
(h(),
|
|
1409
|
+
(h(), V(w, {
|
|
1420
1410
|
key: D.value,
|
|
1421
1411
|
label: "",
|
|
1422
1412
|
size: "small",
|
|
1423
1413
|
variant: o(n) ? "tonal" : "text",
|
|
1424
1414
|
closable: o(n),
|
|
1425
|
-
"onClick:close": (X) =>
|
|
1415
|
+
"onClick:close": (X) => k(D.value)
|
|
1426
1416
|
}, {
|
|
1427
1417
|
prepend: y(() => {
|
|
1428
1418
|
var X;
|
|
1429
1419
|
return [
|
|
1430
1420
|
(X = D.raw) != null && X.icon ? (h(), E("span", to, [
|
|
1431
1421
|
A(o(fe), {
|
|
1432
|
-
class: "action-icon d-inline-block",
|
|
1422
|
+
class: "df-select-action-icon d-inline-block",
|
|
1433
1423
|
name: D.raw.icon
|
|
1434
1424
|
}, null, 8, ["name"])
|
|
1435
1425
|
])) : $("", !0)
|
|
@@ -1448,7 +1438,7 @@ const to = {
|
|
|
1448
1438
|
return [
|
|
1449
1439
|
(ye = X.raw) != null && ye.icon ? (h(), E("span", lo, [
|
|
1450
1440
|
A(o(fe), {
|
|
1451
|
-
class: "action-icon
|
|
1441
|
+
class: "df-select-action-icon",
|
|
1452
1442
|
name: X.raw.icon
|
|
1453
1443
|
}, null, 8, ["name"])
|
|
1454
1444
|
])) : $("", !0)
|
|
@@ -1458,13 +1448,13 @@ const to = {
|
|
|
1458
1448
|
}, 1040)
|
|
1459
1449
|
]),
|
|
1460
1450
|
message: y(() => [
|
|
1461
|
-
A(o(W), { errors: o(
|
|
1451
|
+
A(o(W), { errors: o(s) }, null, 8, ["errors"])
|
|
1462
1452
|
]),
|
|
1463
1453
|
_: 1
|
|
1464
1454
|
}, 16, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : $("", !0);
|
|
1465
1455
|
};
|
|
1466
1456
|
}
|
|
1467
|
-
}), no =
|
|
1457
|
+
}), no = { class: "container" }, ao = /* @__PURE__ */ F({
|
|
1468
1458
|
__name: "df-text-area",
|
|
1469
1459
|
props: /* @__PURE__ */ z({
|
|
1470
1460
|
rows: {},
|
|
@@ -1486,14 +1476,14 @@ const to = {
|
|
|
1486
1476
|
})),
|
|
1487
1477
|
emits: ["update:modelValue", "click:clear"],
|
|
1488
1478
|
setup(t, { emit: e }) {
|
|
1489
|
-
const l = t, r = e, { errors: n, value: a, vuetifyBindings: f } = j(l, r), { cssClass: u, visibility: c } =
|
|
1490
|
-
return (v,
|
|
1491
|
-
const
|
|
1492
|
-
return h(), E("div",
|
|
1493
|
-
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({
|
|
1494
1484
|
key: 0,
|
|
1495
1485
|
modelValue: o(a),
|
|
1496
|
-
"onUpdate:modelValue":
|
|
1486
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => G(a) ? a.value = m : null),
|
|
1497
1487
|
class: [
|
|
1498
1488
|
o(u),
|
|
1499
1489
|
{
|
|
@@ -1514,7 +1504,7 @@ const to = {
|
|
|
1514
1504
|
]);
|
|
1515
1505
|
};
|
|
1516
1506
|
}
|
|
1517
|
-
}),
|
|
1507
|
+
}), ro = /* @__PURE__ */ se(ao, [["__scopeId", "data-v-2dc106f6"]]), io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1518
1508
|
__proto__: null,
|
|
1519
1509
|
DfActions: Rl,
|
|
1520
1510
|
DfCheckbox: Ol,
|
|
@@ -1523,9 +1513,9 @@ const to = {
|
|
|
1523
1513
|
DfFile: Kl,
|
|
1524
1514
|
DfInput: Xl,
|
|
1525
1515
|
DfRtfEditor: Jl,
|
|
1526
|
-
DfSelect:
|
|
1527
|
-
DfTextArea:
|
|
1528
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1516
|
+
DfSelect: oo,
|
|
1517
|
+
DfTextArea: ro
|
|
1518
|
+
}, Symbol.toStringTag, { value: "Module" })), so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1529
1519
|
__proto__: null,
|
|
1530
1520
|
VAutocomplete: Qt,
|
|
1531
1521
|
VBtn: Jt,
|
|
@@ -1549,15 +1539,15 @@ const to = {
|
|
|
1549
1539
|
VTextField: gl,
|
|
1550
1540
|
VTextarea: hl,
|
|
1551
1541
|
VTimePicker: yl
|
|
1552
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1542
|
+
}, Symbol.toStringTag, { value: "Module" })), Oo = {
|
|
1553
1543
|
install: (t, e) => {
|
|
1554
1544
|
var l, r;
|
|
1555
|
-
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));
|
|
1556
1546
|
}
|
|
1557
1547
|
};
|
|
1558
1548
|
export {
|
|
1559
|
-
|
|
1560
|
-
|
|
1549
|
+
ne as Action,
|
|
1550
|
+
R as ActionDisplayStyle,
|
|
1561
1551
|
Rl as DfActions,
|
|
1562
1552
|
Ol as DfCheckbox,
|
|
1563
1553
|
Hl as DfColor,
|
|
@@ -1565,12 +1555,12 @@ export {
|
|
|
1565
1555
|
Kl as DfFile,
|
|
1566
1556
|
Xl as DfInput,
|
|
1567
1557
|
Jl as DfRtfEditor,
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1558
|
+
oo as DfSelect,
|
|
1559
|
+
ro as DfTextArea,
|
|
1560
|
+
Oo as DynamicFormsInputs,
|
|
1571
1561
|
W as ErrorsWidget,
|
|
1572
1562
|
ge as InputBase,
|
|
1573
|
-
|
|
1563
|
+
so as VuetifyComponents,
|
|
1574
1564
|
K as defaultBaseProps,
|
|
1575
1565
|
Ae as defaultDisplayStyle,
|
|
1576
1566
|
j as useInputBase
|