@dynamicforms/vuetify-inputs 0.5.2 → 0.5.3
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,31 +11,31 @@ var ke = (l, e, n) => e in l ? Qe(l, e, { enumerable: !0, configurable: !0, writ
|
|
|
11
11
|
return l;
|
|
12
12
|
}, R = (l, e) => Je(l, el(e));
|
|
13
13
|
var De = (l, e, n) => ke(l, typeof e != "symbol" ? e + "" : e, n);
|
|
14
|
-
var be = (l, e, n) => new Promise((o,
|
|
15
|
-
var
|
|
14
|
+
var be = (l, e, n) => new Promise((o, s) => {
|
|
15
|
+
var a = (m) => {
|
|
16
16
|
try {
|
|
17
17
|
r(n.next(m));
|
|
18
18
|
} catch (v) {
|
|
19
|
-
|
|
19
|
+
s(v);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, g = (m) => {
|
|
22
22
|
try {
|
|
23
23
|
r(n.throw(m));
|
|
24
24
|
} catch (v) {
|
|
25
|
-
|
|
25
|
+
s(v);
|
|
26
26
|
}
|
|
27
|
-
}, r = (m) => m.done ? o(m.value) : Promise.resolve(m.value).then(
|
|
27
|
+
}, r = (m) => m.done ? o(m.value) : Promise.resolve(m.value).then(a, g);
|
|
28
28
|
r((n = n.apply(l, e)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as Ne from "vue";
|
|
31
|
-
import { defineComponent as O, mergeModels as Se, useModel as nl, ref as
|
|
31
|
+
import { defineComponent as O, mergeModels as Se, useModel as nl, ref as S, watch as ie, onMounted as He, markRaw as ol, onBeforeUnmount as je, createBlock as B, openBlock as y, resolveDynamicComponent as ue, version as al, resolveComponent as $, createElementBlock as U, createCommentVNode as L, createTextVNode as ze, Fragment as Ce, toDisplayString as re, inject as sl, computed as T, renderList as Ke, normalizeClass as pe, unref as t, mergeProps as z, withCtx as h, createSlots as Y, createVNode as C, renderSlot as se, normalizeProps as X, guardReactiveProps as q, createElementVNode as le, withModifiers as rl, mergeDefaults as Z, isRef as de, normalizeStyle as Be, toRefs as Ve, withKeys as Ee, useCssVars as il, nextTick as Ue } from "vue";
|
|
32
32
|
import { debounce as ul, isString as ee, isEmpty as me, isObjectLike as dl, isBoolean as Ae, clone as cl, toNumber as Fe, isNaN as Le, isArray as Oe, castArray as Ge, first as We, unionBy as ml } from "lodash-es";
|
|
33
33
|
import Te from "vue-ionicon";
|
|
34
34
|
import Re, { ValidationErrorRenderContent as vl, DisplayMode as j, Action as pl } from "@dynamicforms/vue-forms";
|
|
35
35
|
import fl from "vue-markdown-render";
|
|
36
36
|
import { useDisplay as bl } from "vuetify";
|
|
37
37
|
import { format as ce, parse as gl } from "date-fns";
|
|
38
|
-
import { AccessibilityHelp as hl, Alignment as yl, AutoImage as
|
|
38
|
+
import { AccessibilityHelp as hl, Alignment as yl, AutoImage as Vl, AutoLink as _l, Autosave as kl, BalloonToolbar as wl, BlockQuote as Tl, Bold as Cl, CloudServices as Bl, Essentials as Il, GeneralHtmlSupport as $l, Heading as xl, HorizontalLine as Dl, ImageBlock as Nl, ImageCaption as Sl, ImageInline as El, ImageInsertViaUrl as Ul, ImageResize as Al, ImageStyle as Fl, ImageToolbar as Ll, ImageUpload as Ol, Indent as Rl, IndentBlock as Pl, Italic as Ml, Link as Hl, List as jl, Autoformat as zl, MediaEmbed as Kl, Paragraph as Gl, PasteFromMarkdownExperimental as Wl, PasteFromOffice as Xl, SelectAll as ql, Style as Yl, Table as Zl, TableCellProperties as Ql, TableColumnResize as Jl, TableProperties as et, TableToolbar as lt, Undo as tt, TextTransformation as nt, Base64UploadAdapter as ot, ClassicEditor as at } from "ckeditor5";
|
|
39
39
|
import { VAutocomplete as st } from "vuetify/components/VAutocomplete";
|
|
40
40
|
import { VBtn as rt } from "vuetify/components/VBtn";
|
|
41
41
|
import { VCheckbox as it } from "vuetify/components/VCheckbox";
|
|
@@ -49,8 +49,8 @@ import { VFileInput as ft } from "vuetify/components/VFileInput";
|
|
|
49
49
|
import { VCol as bt, VRow as gt } from "vuetify/components/VGrid";
|
|
50
50
|
import { VIcon as ht } from "vuetify/components/VIcon";
|
|
51
51
|
import { VImg as yt } from "vuetify/components/VImg";
|
|
52
|
-
import { VInput as
|
|
53
|
-
import { VListItem as
|
|
52
|
+
import { VInput as Vt } from "vuetify/components/VInput";
|
|
53
|
+
import { VListItem as _t } from "vuetify/components/VList";
|
|
54
54
|
import { VMenu as kt } from "vuetify/components/VMenu";
|
|
55
55
|
import { VNumberInput as wt } from "vuetify/components/VNumberInput";
|
|
56
56
|
import { VProgressLinear as Tt } from "vuetify/components/VProgressLinear";
|
|
@@ -169,8 +169,8 @@ function Ye(l, e) {
|
|
|
169
169
|
*/
|
|
170
170
|
function Ft(l, e) {
|
|
171
171
|
return function(o) {
|
|
172
|
-
Ye(o.config.get("licenseKey")) || o.on("collectUsageData", (
|
|
173
|
-
|
|
172
|
+
Ye(o.config.get("licenseKey")) || o.on("collectUsageData", (s, { setUsageData: a }) => {
|
|
173
|
+
a(`integration.${l}`, e);
|
|
174
174
|
});
|
|
175
175
|
};
|
|
176
176
|
}
|
|
@@ -214,13 +214,13 @@ const we = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Rt = 300, Pt =
|
|
|
214
214
|
}),
|
|
215
215
|
emits: /* @__PURE__ */ Se(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
|
|
216
216
|
setup(l, { expose: e, emit: n }) {
|
|
217
|
-
const o = nl(l, "modelValue"),
|
|
217
|
+
const o = nl(l, "modelValue"), s = l, a = n, g = S(), r = S(), m = S();
|
|
218
218
|
e({
|
|
219
219
|
instance: r,
|
|
220
220
|
lastEditorData: m
|
|
221
221
|
}), ie(o, (i) => {
|
|
222
222
|
r.value && i !== m.value && r.value.data.set(i);
|
|
223
|
-
}), ie(() =>
|
|
223
|
+
}), ie(() => s.disabled, (i) => {
|
|
224
224
|
i ? r.value.enableReadOnlyMode(we) : r.value.disableReadOnlyMode(we);
|
|
225
225
|
});
|
|
226
226
|
function v() {
|
|
@@ -230,33 +230,33 @@ const we = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Rt = 300, Pt =
|
|
|
230
230
|
const [p] = i.split(".").map(Number);
|
|
231
231
|
p >= 42 || i.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function _(i) {
|
|
234
234
|
const p = ul((f) => {
|
|
235
|
-
if (
|
|
235
|
+
if (s.disableTwoWayDataBinding)
|
|
236
236
|
return;
|
|
237
237
|
const b = m.value = i.data.get();
|
|
238
|
-
|
|
238
|
+
a("update:modelValue", b, f, i), a("input", b, f, i);
|
|
239
239
|
}, Rt, { leading: !0 });
|
|
240
240
|
i.model.document.on("change:data", p), i.editing.view.document.on("focus", (f) => {
|
|
241
|
-
|
|
241
|
+
a("focus", f, i);
|
|
242
242
|
}), i.editing.view.document.on("blur", (f) => {
|
|
243
|
-
|
|
243
|
+
a("blur", f, i);
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
246
|
return v(), He(() => {
|
|
247
247
|
const i = Ot(
|
|
248
|
-
Object.assign({},
|
|
248
|
+
Object.assign({}, s.config)
|
|
249
249
|
);
|
|
250
|
-
o.value && (i.initialData = o.value),
|
|
251
|
-
r.value = ol(p),
|
|
250
|
+
o.value && (i.initialData = o.value), s.editor.create(g.value, i).then((p) => {
|
|
251
|
+
r.value = ol(p), _(p), o.value !== i.initialData && p.data.set(o.value), s.disabled && p.enableReadOnlyMode(we), a("ready", p);
|
|
252
252
|
}).catch((p) => {
|
|
253
253
|
console.error(p);
|
|
254
254
|
});
|
|
255
255
|
}), je(() => {
|
|
256
|
-
r.value && (r.value.destroy(), r.value = void 0),
|
|
257
|
-
}), (i, p) => (
|
|
256
|
+
r.value && (r.value.destroy(), r.value = void 0), a("destroy");
|
|
257
|
+
}), (i, p) => (y(), B(ue(i.tagName), {
|
|
258
258
|
ref_key: "element",
|
|
259
|
-
ref:
|
|
259
|
+
ref: g
|
|
260
260
|
}, null, 512));
|
|
261
261
|
}
|
|
262
262
|
});
|
|
@@ -286,18 +286,18 @@ const Mt = {
|
|
|
286
286
|
},
|
|
287
287
|
setup(l) {
|
|
288
288
|
return (e, n) => {
|
|
289
|
-
const o = $("v-icon"),
|
|
290
|
-
return
|
|
291
|
-
e.label.icon ? (
|
|
292
|
-
e.label.iconComponent === "v-icon" ? (
|
|
289
|
+
const o = $("v-icon"), s = $("v-img");
|
|
290
|
+
return y(), U("div", Ht, [
|
|
291
|
+
e.label.icon ? (y(), U(Ce, { key: 0 }, [
|
|
292
|
+
e.label.iconComponent === "v-icon" ? (y(), B(o, {
|
|
293
293
|
key: 0,
|
|
294
294
|
icon: e.label.icon,
|
|
295
295
|
size: "1.25em"
|
|
296
|
-
}, null, 8, ["icon"])) : e.label.iconComponent === "v-img" ? (
|
|
296
|
+
}, null, 8, ["icon"])) : e.label.iconComponent === "v-img" ? (y(), B(s, {
|
|
297
297
|
key: 1,
|
|
298
298
|
class: "icon",
|
|
299
299
|
src: e.label.icon
|
|
300
|
-
}, null, 8, ["src"])) : (
|
|
300
|
+
}, null, 8, ["src"])) : (y(), B(ue(e.label.iconComponent), {
|
|
301
301
|
key: 2,
|
|
302
302
|
src: e.label.icon
|
|
303
303
|
}, null, 8, ["src"]))
|
|
@@ -308,8 +308,8 @@ const Mt = {
|
|
|
308
308
|
}
|
|
309
309
|
}), oe = (l, e) => {
|
|
310
310
|
const n = l.__vccOpts || l;
|
|
311
|
-
for (const [o,
|
|
312
|
-
n[o] =
|
|
311
|
+
for (const [o, s] of e)
|
|
312
|
+
n[o] = s;
|
|
313
313
|
return n;
|
|
314
314
|
}, te = /* @__PURE__ */ oe(jt, [["__scopeId", "data-v-0034f29f"]]), Ze = Symbol("vuetifyInputsSettingsKey");
|
|
315
315
|
class zt {
|
|
@@ -319,52 +319,52 @@ class zt {
|
|
|
319
319
|
}
|
|
320
320
|
const Q = { enabled: void 0 };
|
|
321
321
|
function K(l, e) {
|
|
322
|
-
const n = sl(Ze, {}), o =
|
|
322
|
+
const n = sl(Ze, {}), o = S(null), s = T({
|
|
323
323
|
get() {
|
|
324
|
-
return l.control ? l.control.value : l.modelValue;
|
|
324
|
+
return l.control ? l.control.value : l.modelValue === void 0 ? o.value : l.modelValue;
|
|
325
325
|
},
|
|
326
|
-
set(
|
|
327
|
-
l.control && (l.control.value =
|
|
326
|
+
set(k) {
|
|
327
|
+
l.control && (l.control.value = k), l.modelValue === void 0 && (o.value = k), e("update:modelValue", k);
|
|
328
328
|
}
|
|
329
329
|
});
|
|
330
330
|
if (l.control && !(l.control instanceof Re.FieldBase))
|
|
331
331
|
throw new Error("control prop is not a vue-form control instance");
|
|
332
|
-
const a =
|
|
333
|
-
() => l.control ? l.control.errors : (l.errors || []).map((
|
|
334
|
-
),
|
|
332
|
+
const a = S(!1), g = T(() => l.control ? l.control.valid : !0), r = T(
|
|
333
|
+
() => l.control ? l.control.errors : (l.errors || []).map((k) => new vl(k))
|
|
334
|
+
), m = T(() => a.value && r.value.length > 0 ? " " : void 0), v = T(() => l.control ? l.control.enabled : l.enabled !== !1), _ = T(
|
|
335
335
|
() => l.control ? l.control.visibility : l.visibility || Re.DisplayMode.FULL
|
|
336
|
-
),
|
|
336
|
+
), i = T(
|
|
337
337
|
() => ee(l.label || "") ? new zt(l.label || "") : l.label
|
|
338
|
-
),
|
|
338
|
+
), p = T(() => l.placeholder || ""), f = T(() => l.helpText || ""), b = T(() => l.hint || ""), V = T(() => l.cssClass || "");
|
|
339
339
|
return {
|
|
340
|
-
value:
|
|
341
|
-
valid:
|
|
342
|
-
enabled:
|
|
343
|
-
errors:
|
|
344
|
-
visibility:
|
|
345
|
-
label:
|
|
340
|
+
value: s,
|
|
341
|
+
valid: g,
|
|
342
|
+
enabled: v,
|
|
343
|
+
errors: r,
|
|
344
|
+
visibility: _,
|
|
345
|
+
label: i,
|
|
346
346
|
touched: a,
|
|
347
|
-
vuetifyBindings:
|
|
348
|
-
var
|
|
347
|
+
vuetifyBindings: T(() => {
|
|
348
|
+
var k, w;
|
|
349
349
|
return {
|
|
350
|
-
name: (
|
|
351
|
-
class:
|
|
350
|
+
name: (k = l.control) == null ? void 0 : k.fieldName,
|
|
351
|
+
class: V.value,
|
|
352
352
|
density: "default",
|
|
353
|
-
variant: (
|
|
354
|
-
label:
|
|
355
|
-
messages:
|
|
356
|
-
errorMessages:
|
|
353
|
+
variant: (w = n.defaultVariant) != null ? w : "underlined",
|
|
354
|
+
label: i.value.text,
|
|
355
|
+
messages: m.value,
|
|
356
|
+
errorMessages: m.value,
|
|
357
357
|
// 'error-count': errors?.value.length || 0,
|
|
358
|
-
readonly: !
|
|
359
|
-
disabled: !
|
|
360
|
-
placeholder:
|
|
361
|
-
"persistent-placeholder": !me(
|
|
362
|
-
hint:
|
|
358
|
+
readonly: !v.value,
|
|
359
|
+
disabled: !v.value,
|
|
360
|
+
placeholder: p.value,
|
|
361
|
+
"persistent-placeholder": !me(p.value),
|
|
362
|
+
hint: b.value,
|
|
363
363
|
persistentHint: !0,
|
|
364
364
|
// we want persistent hint always
|
|
365
365
|
hideDetails: "auto",
|
|
366
366
|
// we want to hide the hint element when hint isn't there
|
|
367
|
-
helpText:
|
|
367
|
+
helpText: f.value
|
|
368
368
|
};
|
|
369
369
|
})
|
|
370
370
|
};
|
|
@@ -379,28 +379,28 @@ const Kt = {
|
|
|
379
379
|
message: {}
|
|
380
380
|
},
|
|
381
381
|
setup(l) {
|
|
382
|
-
return (e, n) => e.message === " " ? (
|
|
383
|
-
(
|
|
384
|
-
var
|
|
385
|
-
return
|
|
386
|
-
key:
|
|
387
|
-
class: pe({ "first-error":
|
|
382
|
+
return (e, n) => e.message === " " ? (y(), U("div", Kt, [
|
|
383
|
+
(y(!0), U(Ce, null, Ke(e.errors, (o, s) => {
|
|
384
|
+
var a;
|
|
385
|
+
return y(), U("div", {
|
|
386
|
+
key: s,
|
|
387
|
+
class: pe({ "first-error": s === 0, "last-error": s === e.errors.length - 1 })
|
|
388
388
|
}, [
|
|
389
|
-
o.componentName === "template" ? (
|
|
389
|
+
o.componentName === "template" ? (y(), U("div", Gt, re(o.componentBody), 1)) : o.componentName === "vue-markdown" ? (y(), B(t(fl), {
|
|
390
390
|
key: 1,
|
|
391
|
-
source: (
|
|
392
|
-
}, null, 8, ["source"])) : (
|
|
391
|
+
source: (a = o.componentBindings) == null ? void 0 : a.source
|
|
392
|
+
}, null, 8, ["source"])) : (y(), B(ue(o.componentName), z({
|
|
393
393
|
key: 2,
|
|
394
394
|
ref_for: !0
|
|
395
395
|
}, o.componentBindings), {
|
|
396
|
-
default:
|
|
396
|
+
default: h(() => [
|
|
397
397
|
ze(re(o.componentBody), 1)
|
|
398
398
|
]),
|
|
399
399
|
_: 2
|
|
400
400
|
}, 1040))
|
|
401
401
|
], 2);
|
|
402
402
|
}), 128))
|
|
403
|
-
])) : (
|
|
403
|
+
])) : (y(), U("span", Wt, re(e.message), 1));
|
|
404
404
|
}
|
|
405
405
|
}), ne = /* @__PURE__ */ oe(Xt, [["__scopeId", "data-v-ff7a8b63"]]), qt = { class: "d-flex w-100 style-resetting" }, Yt = /* @__PURE__ */ O({
|
|
406
406
|
__name: "input-base",
|
|
@@ -420,13 +420,13 @@ const Kt = {
|
|
|
420
420
|
},
|
|
421
421
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
422
422
|
setup(l, { emit: e }) {
|
|
423
|
-
const n = l, o = e, { errors:
|
|
423
|
+
const n = l, o = e, { errors: s, label: a, value: g, touched: r, visibility: m, vuetifyBindings: v } = K(n, o), _ = T(() => !!(t(n.clearable) && t(g))), i = S(!1);
|
|
424
424
|
function p(f) {
|
|
425
425
|
i.value = f, f || (r.value = !0, o("blur"));
|
|
426
426
|
}
|
|
427
427
|
return (f, b) => {
|
|
428
|
-
const
|
|
429
|
-
return t(m) !== t(j).SUPPRESS ? (
|
|
428
|
+
const V = $("v-field"), k = $("v-input");
|
|
429
|
+
return t(m) !== t(j).SUPPRESS ? (y(), B(k, {
|
|
430
430
|
key: 0,
|
|
431
431
|
name: t(v).name,
|
|
432
432
|
hint: t(v).hint,
|
|
@@ -441,48 +441,48 @@ const Kt = {
|
|
|
441
441
|
}
|
|
442
442
|
])
|
|
443
443
|
}, Y({
|
|
444
|
-
message:
|
|
445
|
-
|
|
444
|
+
message: h(({ message: w }) => [
|
|
445
|
+
C(ne, {
|
|
446
446
|
message: w,
|
|
447
|
-
errors: t(
|
|
447
|
+
errors: t(s)
|
|
448
448
|
}, null, 8, ["message", "errors"])
|
|
449
449
|
]),
|
|
450
|
-
default:
|
|
451
|
-
|
|
450
|
+
default: h(() => [
|
|
451
|
+
C(V, {
|
|
452
452
|
variant: t(v).variant,
|
|
453
453
|
label: t(v).label,
|
|
454
454
|
disabled: t(v).disabled,
|
|
455
|
-
clearable:
|
|
455
|
+
clearable: _.value,
|
|
456
456
|
"persistent-clear": !0,
|
|
457
|
-
dirty: !!t(
|
|
457
|
+
dirty: !!t(g),
|
|
458
458
|
active: i.value,
|
|
459
459
|
loading: f.loading,
|
|
460
460
|
"onClick:clear": b[0] || (b[0] = (w) => o("click:clear")),
|
|
461
461
|
"onUpdate:focused": b[1] || (b[1] = (w) => p(w))
|
|
462
462
|
}, Y({
|
|
463
|
-
default:
|
|
463
|
+
default: h((w) => [
|
|
464
464
|
le("div", qt, [
|
|
465
465
|
se(f.$slots, "default", X(q(w)), void 0, !0)
|
|
466
466
|
])
|
|
467
467
|
]),
|
|
468
|
-
loader:
|
|
468
|
+
loader: h((w) => [
|
|
469
469
|
se(f.$slots, "loader", X(q(w)), void 0, !0)
|
|
470
470
|
]),
|
|
471
471
|
_: 2
|
|
472
472
|
}, [
|
|
473
|
-
t(
|
|
473
|
+
t(a).icon ? {
|
|
474
474
|
name: "label",
|
|
475
|
-
fn:
|
|
476
|
-
|
|
475
|
+
fn: h((w) => [
|
|
476
|
+
C(te, {
|
|
477
477
|
data: w,
|
|
478
|
-
label: t(
|
|
478
|
+
label: t(a)
|
|
479
479
|
}, null, 8, ["data", "label"])
|
|
480
480
|
]),
|
|
481
481
|
key: "0"
|
|
482
482
|
} : void 0,
|
|
483
483
|
f.$slots["prepend-inner"] ? {
|
|
484
484
|
name: "prepend-inner",
|
|
485
|
-
fn:
|
|
485
|
+
fn: h((w) => [
|
|
486
486
|
se(f.$slots, "prepend-inner", X(q(w)), void 0, !0)
|
|
487
487
|
]),
|
|
488
488
|
key: "1"
|
|
@@ -493,7 +493,7 @@ const Kt = {
|
|
|
493
493
|
}, [
|
|
494
494
|
f.$slots.prepend ? {
|
|
495
495
|
name: "prepend",
|
|
496
|
-
fn:
|
|
496
|
+
fn: h((w) => [
|
|
497
497
|
se(f.$slots, "prepend", X(q(w)), void 0, !0)
|
|
498
498
|
]),
|
|
499
499
|
key: "0"
|
|
@@ -514,18 +514,18 @@ function ro(l) {
|
|
|
514
514
|
var P = /* @__PURE__ */ ((l) => (l[l.BUTTON = 0] = "BUTTON", l[l.TEXT = 1] = "TEXT", l))(P || {});
|
|
515
515
|
const Pe = 0;
|
|
516
516
|
((l) => {
|
|
517
|
-
function e(
|
|
518
|
-
return
|
|
517
|
+
function e(s) {
|
|
518
|
+
return s.toUpperCase() === "BUTTON" ? 0 : s.toUpperCase() === "TEXT" ? 1 : Pe;
|
|
519
519
|
}
|
|
520
520
|
l.fromString = e;
|
|
521
|
-
function n(
|
|
522
|
-
const
|
|
523
|
-
return Object.values(l).includes(
|
|
521
|
+
function n(s) {
|
|
522
|
+
const a = typeof s == "number" ? s : l.fromString(s);
|
|
523
|
+
return Object.values(l).includes(a) ? a : Pe;
|
|
524
524
|
}
|
|
525
525
|
l.fromAny = n;
|
|
526
|
-
function o(
|
|
527
|
-
const
|
|
528
|
-
return Object.values(l).includes(
|
|
526
|
+
function o(s) {
|
|
527
|
+
const a = typeof s == "number" ? s : l.fromString(s);
|
|
528
|
+
return Object.values(l).includes(a);
|
|
529
529
|
}
|
|
530
530
|
l.isDefined = o;
|
|
531
531
|
})(P || (P = {}));
|
|
@@ -541,11 +541,11 @@ class Zt {
|
|
|
541
541
|
}
|
|
542
542
|
getOptionsForBreakpoint(e) {
|
|
543
543
|
const n = this.cleanBreakpoint(this._value), o = Object.keys(n);
|
|
544
|
-
for (const
|
|
545
|
-
const
|
|
546
|
-
for (const
|
|
547
|
-
(
|
|
548
|
-
if (
|
|
544
|
+
for (const s of Me) {
|
|
545
|
+
const a = this._value[s];
|
|
546
|
+
for (const g of o)
|
|
547
|
+
(a == null ? void 0 : a[g]) != null && (n[g] = a[g]);
|
|
548
|
+
if (s === e) break;
|
|
549
549
|
}
|
|
550
550
|
return n;
|
|
551
551
|
}
|
|
@@ -555,7 +555,7 @@ function Qt(l) {
|
|
|
555
555
|
}
|
|
556
556
|
function Jt() {
|
|
557
557
|
const l = bl();
|
|
558
|
-
return
|
|
558
|
+
return T(() => Qt(l));
|
|
559
559
|
}
|
|
560
560
|
class en extends Zt {
|
|
561
561
|
// eslint-disable-next-line class-methods-use-this
|
|
@@ -570,7 +570,7 @@ class he extends pl {
|
|
|
570
570
|
return super.create(e);
|
|
571
571
|
}
|
|
572
572
|
getBreakpointValue(e) {
|
|
573
|
-
return
|
|
573
|
+
return T(() => {
|
|
574
574
|
const o = new en(this.value).getOptionsForBreakpoint(e.value);
|
|
575
575
|
return {
|
|
576
576
|
name: o.name,
|
|
@@ -657,33 +657,33 @@ const ln = {
|
|
|
657
657
|
showAsGroup: { default: "no" }
|
|
658
658
|
},
|
|
659
659
|
setup(l) {
|
|
660
|
-
const e = l, n = Jt(), o =
|
|
661
|
-
action:
|
|
662
|
-
}, t(
|
|
663
|
-
return (
|
|
660
|
+
const e = l, n = Jt(), o = T(() => t(e.actions)), s = T(() => o.value.map((a) => x({
|
|
661
|
+
action: a
|
|
662
|
+
}, t(a.getBreakpointValue(n)))));
|
|
663
|
+
return (a, g) => {
|
|
664
664
|
const r = $("v-btn");
|
|
665
|
-
return o.value.length > 0 ? (
|
|
665
|
+
return o.value.length > 0 ? (y(), U("div", {
|
|
666
666
|
key: 0,
|
|
667
667
|
class: pe(["text-end", {
|
|
668
|
-
"button-group":
|
|
669
|
-
"with-border":
|
|
668
|
+
"button-group": a.showAsGroup === "grouped" || a.showAsGroup === "grouped-no-borders",
|
|
669
|
+
"with-border": a.showAsGroup === "grouped"
|
|
670
670
|
}])
|
|
671
671
|
}, [
|
|
672
|
-
(
|
|
672
|
+
(y(!0), U(Ce, null, Ke(s.value, (m, v) => (y(), B(r, {
|
|
673
673
|
key: v,
|
|
674
674
|
variant: m.renderAs === t(P).BUTTON ? "tonal" : "text",
|
|
675
675
|
elevation: 0,
|
|
676
|
-
size:
|
|
677
|
-
onClick: rl((
|
|
676
|
+
size: a.buttonSize,
|
|
677
|
+
onClick: rl((_) => m.action.execute(_), ["stop"])
|
|
678
678
|
}, {
|
|
679
|
-
default:
|
|
680
|
-
m.icon ? (
|
|
679
|
+
default: h(() => [
|
|
680
|
+
m.icon ? (y(), B(t(Te), {
|
|
681
681
|
key: 0,
|
|
682
682
|
class: "action-icon",
|
|
683
683
|
name: m.icon
|
|
684
684
|
}, null, 8, ["name"])) : L("", !0),
|
|
685
|
-
m.icon && m.label ? (
|
|
686
|
-
m.label ? (
|
|
685
|
+
m.icon && m.label ? (y(), U("span", ln)) : L("", !0),
|
|
686
|
+
m.label ? (y(), U("span", tn, re(m.label), 1)) : L("", !0)
|
|
687
687
|
]),
|
|
688
688
|
_: 2
|
|
689
689
|
}, 1032, ["variant", "size", "onClick"]))), 128))
|
|
@@ -708,7 +708,7 @@ const ln = {
|
|
|
708
708
|
}, R(x({}, Q), { allowNull: !1 })),
|
|
709
709
|
emits: ["update:modelValue", "click:clear"],
|
|
710
710
|
setup(l, { emit: e }) {
|
|
711
|
-
const n = l, o = e, { errors:
|
|
711
|
+
const n = l, o = e, { errors: s, label: a, touched: g, value: r, vuetifyBindings: m } = K(n, o), v = T(() => n.allowNull && r.value == null), _ = T({
|
|
712
712
|
get() {
|
|
713
713
|
return r.value;
|
|
714
714
|
},
|
|
@@ -721,31 +721,31 @@ const ln = {
|
|
|
721
721
|
}
|
|
722
722
|
return (p, f) => {
|
|
723
723
|
const b = $("v-checkbox");
|
|
724
|
-
return
|
|
725
|
-
modelValue:
|
|
726
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
724
|
+
return y(), B(b, z({
|
|
725
|
+
modelValue: _.value,
|
|
726
|
+
"onUpdate:modelValue": f[0] || (f[0] = (V) => _.value = V)
|
|
727
727
|
}, t(m), {
|
|
728
728
|
density: "compact",
|
|
729
729
|
indeterminate: v.value,
|
|
730
730
|
"false-value": !1,
|
|
731
731
|
"true-value": !0,
|
|
732
732
|
onChange: i,
|
|
733
|
-
onBlur: f[1] || (f[1] = (
|
|
733
|
+
onBlur: f[1] || (f[1] = (V) => g.value = !0)
|
|
734
734
|
}), Y({
|
|
735
|
-
message:
|
|
736
|
-
|
|
737
|
-
message:
|
|
738
|
-
errors: t(
|
|
735
|
+
message: h(({ message: V }) => [
|
|
736
|
+
C(t(ne), {
|
|
737
|
+
message: V,
|
|
738
|
+
errors: t(s)
|
|
739
739
|
}, null, 8, ["message", "errors"])
|
|
740
740
|
]),
|
|
741
741
|
_: 2
|
|
742
742
|
}, [
|
|
743
|
-
t(
|
|
743
|
+
t(a).icon ? {
|
|
744
744
|
name: "label",
|
|
745
|
-
fn:
|
|
746
|
-
|
|
747
|
-
data:
|
|
748
|
-
label: t(
|
|
745
|
+
fn: h((V) => [
|
|
746
|
+
C(t(te), {
|
|
747
|
+
data: V,
|
|
748
|
+
label: t(a)
|
|
749
749
|
}, null, 8, ["data", "label"])
|
|
750
750
|
]),
|
|
751
751
|
key: "0"
|
|
@@ -771,42 +771,42 @@ const ln = {
|
|
|
771
771
|
}, R(x({}, Q), { allowNull: !1 })),
|
|
772
772
|
emits: ["update:modelValue", "click:clear"],
|
|
773
773
|
setup(l, { emit: e }) {
|
|
774
|
-
const n = l, o = e, { errors:
|
|
774
|
+
const n = l, o = e, { errors: s, label: a, touched: g, value: r, vuetifyBindings: m } = K(n, o), v = S(!1), _ = T(() => [
|
|
775
775
|
(i) => n.control || !i && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(i) ? !0 : "Not a valid hex string."
|
|
776
776
|
]);
|
|
777
777
|
return (i, p) => {
|
|
778
|
-
const f = $("v-color-picker"), b = $("v-menu"),
|
|
779
|
-
return
|
|
778
|
+
const f = $("v-color-picker"), b = $("v-menu"), V = $("v-text-field");
|
|
779
|
+
return y(), B(V, z({
|
|
780
780
|
modelValue: t(r),
|
|
781
|
-
"onUpdate:modelValue": p[2] || (p[2] = (
|
|
781
|
+
"onUpdate:modelValue": p[2] || (p[2] = (k) => de(r) ? r.value = k : null)
|
|
782
782
|
}, t(m), {
|
|
783
783
|
clearable: i.allowNull,
|
|
784
784
|
type: "text",
|
|
785
|
-
rules:
|
|
786
|
-
onBlur: p[3] || (p[3] = (
|
|
785
|
+
rules: _.value,
|
|
786
|
+
onBlur: p[3] || (p[3] = (k) => g.value = !0)
|
|
787
787
|
}), Y({
|
|
788
|
-
message:
|
|
789
|
-
|
|
790
|
-
message:
|
|
791
|
-
errors: t(
|
|
788
|
+
message: h(({ message: k }) => [
|
|
789
|
+
C(t(ne), {
|
|
790
|
+
message: k,
|
|
791
|
+
errors: t(s)
|
|
792
792
|
}, null, 8, ["message", "errors"])
|
|
793
793
|
]),
|
|
794
|
-
"prepend-inner":
|
|
794
|
+
"prepend-inner": h(() => [
|
|
795
795
|
le("div", {
|
|
796
796
|
style: Be([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: t(r) }])
|
|
797
797
|
}, null, 4)
|
|
798
798
|
]),
|
|
799
|
-
default:
|
|
800
|
-
|
|
799
|
+
default: h(() => [
|
|
800
|
+
C(b, {
|
|
801
801
|
modelValue: v.value,
|
|
802
|
-
"onUpdate:modelValue": p[1] || (p[1] = (
|
|
802
|
+
"onUpdate:modelValue": p[1] || (p[1] = (k) => v.value = k),
|
|
803
803
|
"close-on-content-click": !1,
|
|
804
804
|
activator: "parent"
|
|
805
805
|
}, {
|
|
806
|
-
default:
|
|
807
|
-
|
|
806
|
+
default: h(() => [
|
|
807
|
+
C(f, {
|
|
808
808
|
modelValue: t(r),
|
|
809
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
809
|
+
"onUpdate:modelValue": p[0] || (p[0] = (k) => de(r) ? r.value = k : null),
|
|
810
810
|
mode: "hexa"
|
|
811
811
|
}, null, 8, ["modelValue"])
|
|
812
812
|
]),
|
|
@@ -815,12 +815,12 @@ const ln = {
|
|
|
815
815
|
]),
|
|
816
816
|
_: 2
|
|
817
817
|
}, [
|
|
818
|
-
t(
|
|
818
|
+
t(a).icon ? {
|
|
819
819
|
name: "label",
|
|
820
|
-
fn:
|
|
821
|
-
|
|
822
|
-
data:
|
|
823
|
-
label: t(
|
|
820
|
+
fn: h((k) => [
|
|
821
|
+
C(t(te), {
|
|
822
|
+
data: k,
|
|
823
|
+
label: t(a)
|
|
824
824
|
}, null, 8, ["data", "label"])
|
|
825
825
|
]),
|
|
826
826
|
key: "0"
|
|
@@ -852,39 +852,39 @@ const ln = {
|
|
|
852
852
|
})),
|
|
853
853
|
emits: ["update:modelValue", "click:clear"],
|
|
854
854
|
setup(l, { emit: e }) {
|
|
855
|
-
const n = l, o = e, { touched:
|
|
855
|
+
const n = l, o = e, { touched: s, value: a, vuetifyBindings: g } = K(n, o), { inputType: r, displayFormatDate: m, displayFormatTime: v } = Ve(n), _ = S(""), i = T({
|
|
856
856
|
get() {
|
|
857
|
-
return t(
|
|
857
|
+
return t(_) === "date";
|
|
858
858
|
},
|
|
859
859
|
set(u) {
|
|
860
|
-
|
|
860
|
+
_.value = u ? "date" : "";
|
|
861
861
|
}
|
|
862
|
-
}), p =
|
|
862
|
+
}), p = T({
|
|
863
863
|
get() {
|
|
864
|
-
return t(
|
|
864
|
+
return t(_) === "time";
|
|
865
865
|
},
|
|
866
866
|
set(u) {
|
|
867
|
-
|
|
867
|
+
_.value = u ? "time" : "";
|
|
868
868
|
}
|
|
869
|
-
}), f = (u) => `${ce(u, "yyyy-MM-dd")}T${ce(u, "HH:mm")}:00`, b =
|
|
870
|
-
function
|
|
869
|
+
}), f = (u) => `${ce(u, "yyyy-MM-dd")}T${ce(u, "HH:mm")}:00`, b = S(null);
|
|
870
|
+
function V(u, d) {
|
|
871
871
|
if (u == null)
|
|
872
872
|
b.value = null;
|
|
873
873
|
else if (d === -1)
|
|
874
874
|
if (t(r) === "time")
|
|
875
|
-
b.value = f(/* @__PURE__ */ new Date()),
|
|
875
|
+
b.value = f(/* @__PURE__ */ new Date()), V(`T${u}`, 1);
|
|
876
876
|
else {
|
|
877
877
|
const D = f(new Date(u));
|
|
878
|
-
|
|
878
|
+
V(D, 0), V(D, 1);
|
|
879
879
|
}
|
|
880
880
|
else {
|
|
881
881
|
b.value == null && (b.value = f(/* @__PURE__ */ new Date()));
|
|
882
882
|
const D = b.value.split(/[TZ]/g), F = u.split(/[TZ]/g);
|
|
883
|
-
D[d] = F[d], b.value = f(/* @__PURE__ */ new Date(`${D[0]}T${D[1].split(".")[0]}`)), t(r) === "date" ?
|
|
883
|
+
D[d] = F[d], b.value = f(/* @__PURE__ */ new Date(`${D[0]}T${D[1].split(".")[0]}`)), t(r) === "date" ? a.value = D[0] : t(r) === "time" ? a.value = D[1] : a.value = t(b) + ce(/* @__PURE__ */ new Date(), "XXX");
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
|
-
ie(
|
|
887
|
-
const
|
|
886
|
+
ie(a, (u) => V(u, -1), { immediate: !0 });
|
|
887
|
+
const k = T({
|
|
888
888
|
get() {
|
|
889
889
|
const u = t(b);
|
|
890
890
|
if (u == null) return null;
|
|
@@ -892,32 +892,32 @@ const ln = {
|
|
|
892
892
|
return Number.isNaN(d.getTime()) ? null : d;
|
|
893
893
|
},
|
|
894
894
|
set(u) {
|
|
895
|
-
|
|
895
|
+
V(f(u), 0);
|
|
896
896
|
}
|
|
897
|
-
}), w =
|
|
897
|
+
}), w = T({
|
|
898
898
|
get() {
|
|
899
899
|
const u = t(b);
|
|
900
900
|
return u == null ? "" : u.split(/[TZ]/g)[1].split(".")[0];
|
|
901
901
|
},
|
|
902
902
|
set(u) {
|
|
903
|
-
|
|
903
|
+
V(`T${u}`, 1);
|
|
904
904
|
}
|
|
905
|
-
}), A =
|
|
905
|
+
}), A = T({
|
|
906
906
|
get() {
|
|
907
|
-
const u = t(
|
|
907
|
+
const u = t(k);
|
|
908
908
|
return u == null ? "" : ce(u, t(m));
|
|
909
909
|
},
|
|
910
910
|
set(u) {
|
|
911
911
|
try {
|
|
912
912
|
const d = gl(u, t(m), /* @__PURE__ */ new Date());
|
|
913
|
-
|
|
913
|
+
V(f(d), 0);
|
|
914
914
|
} catch (d) {
|
|
915
915
|
console.error(d);
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
|
-
}),
|
|
918
|
+
}), E = T({
|
|
919
919
|
get() {
|
|
920
|
-
const u = t(
|
|
920
|
+
const u = t(k);
|
|
921
921
|
return u == null ? "" : ce(u, t(v));
|
|
922
922
|
},
|
|
923
923
|
set(u) {
|
|
@@ -925,19 +925,19 @@ const ln = {
|
|
|
925
925
|
if (d == null) return;
|
|
926
926
|
let D = Fe(d[1]);
|
|
927
927
|
const F = Fe(d[2]);
|
|
928
|
-
Le(D) || Le(F) || (d[3] && d[3].toLowerCase() === "pm" && D < 13 && (D += 12),
|
|
928
|
+
Le(D) || Le(F) || (d[3] && d[3].toLowerCase() === "pm" && D < 13 && (D += 12), V(`T${D.toString().padStart(2, "0")}:${F.toString().padStart(2, "0")}:00`, 1));
|
|
929
929
|
}
|
|
930
930
|
});
|
|
931
931
|
return (u, d) => {
|
|
932
932
|
const D = $("v-date-picker"), F = $("v-confirm-edit"), G = $("v-menu"), W = $("v-text-field"), fe = $("v-time-picker");
|
|
933
|
-
return
|
|
933
|
+
return y(), B(t(Ie), z(n, {
|
|
934
934
|
clearable: "",
|
|
935
|
-
"onClick:clear": d[14] || (d[14] = (M) =>
|
|
936
|
-
onBlur: d[15] || (d[15] = (M) =>
|
|
935
|
+
"onClick:clear": d[14] || (d[14] = (M) => a.value = null),
|
|
936
|
+
onBlur: d[15] || (d[15] = (M) => s.value = !0)
|
|
937
937
|
}), {
|
|
938
|
-
default:
|
|
938
|
+
default: h((M) => [
|
|
939
939
|
le("div", rn, [
|
|
940
|
-
["date", "datetime"].includes(t(r)) ? (
|
|
940
|
+
["date", "datetime"].includes(t(r)) ? (y(), B(W, {
|
|
941
941
|
key: 0,
|
|
942
942
|
modelValue: A.value,
|
|
943
943
|
"onUpdate:modelValue": d[4] || (d[4] = (c) => A.value = c),
|
|
@@ -946,30 +946,30 @@ const ln = {
|
|
|
946
946
|
variant: "plain",
|
|
947
947
|
clearable: !1,
|
|
948
948
|
"hide-details": !0,
|
|
949
|
-
readonly: t(
|
|
950
|
-
disabled: t(
|
|
951
|
-
name: `${t(
|
|
952
|
-
onClick: d[5] || (d[5] = (c) =>
|
|
953
|
-
onKeydown: d[6] || (d[6] = Ee((c) =>
|
|
949
|
+
readonly: t(g).readonly,
|
|
950
|
+
disabled: t(g).disabled,
|
|
951
|
+
name: `${t(g).name}-date`,
|
|
952
|
+
onClick: d[5] || (d[5] = (c) => _.value = "date"),
|
|
953
|
+
onKeydown: d[6] || (d[6] = Ee((c) => _.value = "date", ["space"])),
|
|
954
954
|
onFocus: (c) => M.focus(),
|
|
955
955
|
onBlur: (c) => M.blur()
|
|
956
956
|
}, {
|
|
957
|
-
default:
|
|
958
|
-
|
|
957
|
+
default: h(() => [
|
|
958
|
+
C(G, {
|
|
959
959
|
modelValue: i.value,
|
|
960
960
|
"onUpdate:modelValue": d[3] || (d[3] = (c) => i.value = c),
|
|
961
961
|
"close-on-content-click": !1,
|
|
962
962
|
activator: "parent"
|
|
963
963
|
}, {
|
|
964
|
-
default:
|
|
965
|
-
|
|
966
|
-
modelValue:
|
|
967
|
-
"onUpdate:modelValue": d[0] || (d[0] = (c) =>
|
|
968
|
-
onCancel: d[1] || (d[1] = (c) =>
|
|
969
|
-
onSave: d[2] || (d[2] = (c) =>
|
|
964
|
+
default: h(() => [
|
|
965
|
+
C(F, {
|
|
966
|
+
modelValue: k.value,
|
|
967
|
+
"onUpdate:modelValue": d[0] || (d[0] = (c) => k.value = c),
|
|
968
|
+
onCancel: d[1] || (d[1] = (c) => _.value = ""),
|
|
969
|
+
onSave: d[2] || (d[2] = (c) => _.value = "")
|
|
970
970
|
}, {
|
|
971
|
-
default:
|
|
972
|
-
|
|
971
|
+
default: h(({ model: c, actions: I }) => [
|
|
972
|
+
C(D, {
|
|
973
973
|
modelValue: c.value,
|
|
974
974
|
"onUpdate:modelValue": (H) => c.value = H,
|
|
975
975
|
"hide-header": !0,
|
|
@@ -977,8 +977,8 @@ const ln = {
|
|
|
977
977
|
"show-adjacent-months": !0,
|
|
978
978
|
"show-week": !0
|
|
979
979
|
}, {
|
|
980
|
-
actions:
|
|
981
|
-
(
|
|
980
|
+
actions: h(() => [
|
|
981
|
+
(y(), B(ue(I)))
|
|
982
982
|
]),
|
|
983
983
|
_: 2
|
|
984
984
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -991,46 +991,46 @@ const ln = {
|
|
|
991
991
|
]),
|
|
992
992
|
_: 2
|
|
993
993
|
}, 1032, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : L("", !0),
|
|
994
|
-
["time", "datetime"].includes(t(r)) ? (
|
|
994
|
+
["time", "datetime"].includes(t(r)) ? (y(), B(W, {
|
|
995
995
|
key: 1,
|
|
996
|
-
modelValue:
|
|
997
|
-
"onUpdate:modelValue": d[11] || (d[11] = (c) =>
|
|
996
|
+
modelValue: E.value,
|
|
997
|
+
"onUpdate:modelValue": d[11] || (d[11] = (c) => E.value = c),
|
|
998
998
|
style: { "flex-grow": "3" },
|
|
999
999
|
density: "compact",
|
|
1000
1000
|
variant: "plain",
|
|
1001
1001
|
clearable: !1,
|
|
1002
1002
|
"hide-details": !0,
|
|
1003
|
-
readonly: t(
|
|
1004
|
-
disabled: t(
|
|
1005
|
-
name: `${t(
|
|
1006
|
-
onClick: d[12] || (d[12] = (c) =>
|
|
1007
|
-
onKeydown: d[13] || (d[13] = Ee((c) =>
|
|
1003
|
+
readonly: t(g).readonly,
|
|
1004
|
+
disabled: t(g).disabled,
|
|
1005
|
+
name: `${t(g).name}-time`,
|
|
1006
|
+
onClick: d[12] || (d[12] = (c) => _.value = "time"),
|
|
1007
|
+
onKeydown: d[13] || (d[13] = Ee((c) => _.value = "time", ["space"])),
|
|
1008
1008
|
onFocus: (c) => M.focus(),
|
|
1009
1009
|
onBlur: (c) => M.blur()
|
|
1010
1010
|
}, {
|
|
1011
|
-
default:
|
|
1012
|
-
|
|
1011
|
+
default: h(() => [
|
|
1012
|
+
C(G, {
|
|
1013
1013
|
modelValue: p.value,
|
|
1014
1014
|
"onUpdate:modelValue": d[10] || (d[10] = (c) => p.value = c),
|
|
1015
1015
|
"close-on-content-click": !1,
|
|
1016
1016
|
activator: "parent"
|
|
1017
1017
|
}, {
|
|
1018
|
-
default:
|
|
1019
|
-
|
|
1018
|
+
default: h(() => [
|
|
1019
|
+
C(F, {
|
|
1020
1020
|
modelValue: w.value,
|
|
1021
1021
|
"onUpdate:modelValue": d[7] || (d[7] = (c) => w.value = c),
|
|
1022
|
-
onCancel: d[8] || (d[8] = (c) =>
|
|
1023
|
-
onSave: d[9] || (d[9] = (c) =>
|
|
1022
|
+
onCancel: d[8] || (d[8] = (c) => _.value = ""),
|
|
1023
|
+
onSave: d[9] || (d[9] = (c) => _.value = "")
|
|
1024
1024
|
}, {
|
|
1025
|
-
default:
|
|
1026
|
-
|
|
1025
|
+
default: h(({ model: c, actions: I }) => [
|
|
1026
|
+
C(fe, {
|
|
1027
1027
|
modelValue: c.value,
|
|
1028
1028
|
"onUpdate:modelValue": (H) => c.value = H,
|
|
1029
1029
|
"hide-header": !0,
|
|
1030
1030
|
format: "24hr"
|
|
1031
1031
|
}, {
|
|
1032
|
-
actions:
|
|
1033
|
-
(
|
|
1032
|
+
actions: h(() => [
|
|
1033
|
+
(y(), B(ue(I)))
|
|
1034
1034
|
]),
|
|
1035
1035
|
_: 2
|
|
1036
1036
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1070,61 +1070,61 @@ const ln = {
|
|
|
1070
1070
|
}, Q),
|
|
1071
1071
|
emits: ["update:modelValue", "click:clear"],
|
|
1072
1072
|
setup(l, { emit: e }) {
|
|
1073
|
-
const n = l, o = e, { touched:
|
|
1073
|
+
const n = l, o = e, { touched: s, value: a, vuetifyBindings: g } = K(n, o), r = S(null), m = S(null), v = S(0), _ = S(Math.round(Math.random() * 1e3)), i = S(), p = T(() => m.value && v.value < 100), f = T(() => !i.value && a.value ? n.modelValue : "");
|
|
1074
1074
|
function b() {
|
|
1075
1075
|
r.value && window.clearInterval(r.value);
|
|
1076
1076
|
}
|
|
1077
|
-
function
|
|
1077
|
+
function V() {
|
|
1078
1078
|
b(), r.value = window.setInterval(() => {
|
|
1079
|
-
|
|
1079
|
+
a.value && n.comms.touch(a.value);
|
|
1080
1080
|
}, 60 * 1e3);
|
|
1081
1081
|
}
|
|
1082
|
-
je(() => b()), ie(
|
|
1083
|
-
|
|
1082
|
+
je(() => b()), ie(a, (E) => {
|
|
1083
|
+
E ? V() : b();
|
|
1084
1084
|
});
|
|
1085
|
-
function
|
|
1085
|
+
function k() {
|
|
1086
1086
|
return be(this, null, function* () {
|
|
1087
|
-
|
|
1087
|
+
a.value && (yield n.comms.delete(a.value)), a.value = null, v.value = 0, _.value = Math.round(Math.random() * 1e3), m.value = null, i.value = null, b();
|
|
1088
1088
|
});
|
|
1089
1089
|
}
|
|
1090
|
-
function w(
|
|
1090
|
+
function w(E) {
|
|
1091
1091
|
return be(this, null, function* () {
|
|
1092
|
-
v.value = -1, m.value =
|
|
1092
|
+
v.value = -1, m.value = E;
|
|
1093
1093
|
try {
|
|
1094
|
-
|
|
1095
|
-
|
|
1094
|
+
a.value = yield n.comms.upload(
|
|
1095
|
+
E,
|
|
1096
1096
|
(u, d) => {
|
|
1097
1097
|
v.value = Math.round(u * 100 / d);
|
|
1098
1098
|
}
|
|
1099
|
-
), v.value = 100,
|
|
1099
|
+
), v.value = 100, V();
|
|
1100
1100
|
} catch (u) {
|
|
1101
|
-
throw v.value = 0, m.value = null,
|
|
1101
|
+
throw v.value = 0, m.value = null, _.value = Math.round(Math.random() * 1e3), i.value = null, u;
|
|
1102
1102
|
}
|
|
1103
1103
|
});
|
|
1104
1104
|
}
|
|
1105
|
-
function A(
|
|
1106
|
-
|
|
1105
|
+
function A(E) {
|
|
1106
|
+
E && (Array.isArray(E) ? console.error("Uploading multiple files not supported right now") : w(E));
|
|
1107
1107
|
}
|
|
1108
|
-
return (
|
|
1108
|
+
return (E, u) => {
|
|
1109
1109
|
const d = $("v-icon"), D = $("v-progress-linear"), F = $("v-file-input");
|
|
1110
|
-
return
|
|
1110
|
+
return y(), B(t(Ie), z(R(x({}, n), { loading: p.value }), {
|
|
1111
1111
|
clearable: "",
|
|
1112
|
-
"onClick:clear":
|
|
1113
|
-
onBlur: u[1] || (u[1] = (G) =>
|
|
1112
|
+
"onClick:clear": k,
|
|
1113
|
+
onBlur: u[1] || (u[1] = (G) => s.value = !0)
|
|
1114
1114
|
}), {
|
|
1115
|
-
"prepend-inner":
|
|
1116
|
-
|
|
1115
|
+
"prepend-inner": h(() => [
|
|
1116
|
+
C(d, { icon: "$file" })
|
|
1117
1117
|
]),
|
|
1118
|
-
loader:
|
|
1119
|
-
m.value && v.value < 100 ? (
|
|
1118
|
+
loader: h(() => [
|
|
1119
|
+
m.value && v.value < 100 ? (y(), B(D, {
|
|
1120
1120
|
key: 0,
|
|
1121
1121
|
"model-value": v.value,
|
|
1122
1122
|
indeterminate: v.value === -1
|
|
1123
1123
|
}, null, 8, ["model-value", "indeterminate"])) : L("", !0)
|
|
1124
1124
|
]),
|
|
1125
|
-
default:
|
|
1125
|
+
default: h((G) => [
|
|
1126
1126
|
le("div", dn, [
|
|
1127
|
-
|
|
1127
|
+
C(F, {
|
|
1128
1128
|
modelValue: i.value,
|
|
1129
1129
|
"onUpdate:modelValue": [
|
|
1130
1130
|
u[0] || (u[0] = (W) => i.value = W),
|
|
@@ -1133,9 +1133,9 @@ const ln = {
|
|
|
1133
1133
|
label: f.value,
|
|
1134
1134
|
density: "compact",
|
|
1135
1135
|
variant: "plain",
|
|
1136
|
-
readonly: t(
|
|
1137
|
-
disabled: t(
|
|
1138
|
-
name: t(
|
|
1136
|
+
readonly: t(g).readonly,
|
|
1137
|
+
disabled: t(g).disabled,
|
|
1138
|
+
name: t(g).name,
|
|
1139
1139
|
"hide-details": !0,
|
|
1140
1140
|
"show-size": !0,
|
|
1141
1141
|
multiple: !1,
|
|
@@ -1179,58 +1179,58 @@ const ln = {
|
|
|
1179
1179
|
})),
|
|
1180
1180
|
emits: ["update:modelValue", "click:clear"],
|
|
1181
1181
|
setup(l, { emit: e }) {
|
|
1182
|
-
const n = l, o = e, { errors:
|
|
1183
|
-
return (
|
|
1184
|
-
const A = $("v-text-field"),
|
|
1185
|
-
return
|
|
1186
|
-
b.value ? (
|
|
1182
|
+
const n = l, o = e, { errors: s, label: a, touched: g, value: r, vuetifyBindings: m } = K(n, o), { inputType: v, max: _, min: i, precision: p, step: f } = Ve(n), b = T(() => v.value === "number"), V = T(() => b.value ? { min: t(i), max: t(_), precision: t(p), step: t(f) } : {});
|
|
1183
|
+
return (k, w) => {
|
|
1184
|
+
const A = $("v-text-field"), E = $("v-number-input");
|
|
1185
|
+
return y(), U("div", mn, [
|
|
1186
|
+
b.value ? (y(), B(E, z({
|
|
1187
1187
|
key: 1,
|
|
1188
1188
|
modelValue: t(r),
|
|
1189
1189
|
"onUpdate:modelValue": w[2] || (w[2] = (u) => de(r) ? r.value = u : null)
|
|
1190
|
-
}, x(x({}, t(m)),
|
|
1190
|
+
}, x(x({}, t(m)), V.value), {
|
|
1191
1191
|
density: "compact",
|
|
1192
1192
|
"control-variant": "stacked"
|
|
1193
1193
|
}), Y({
|
|
1194
|
-
message:
|
|
1195
|
-
|
|
1194
|
+
message: h(({ message: u }) => [
|
|
1195
|
+
C(t(ne), {
|
|
1196
1196
|
message: u,
|
|
1197
|
-
errors: t(
|
|
1197
|
+
errors: t(s)
|
|
1198
1198
|
}, null, 8, ["message", "errors"])
|
|
1199
1199
|
]),
|
|
1200
1200
|
_: 2
|
|
1201
1201
|
}, [
|
|
1202
|
-
t(
|
|
1202
|
+
t(a).icon ? {
|
|
1203
1203
|
name: "label",
|
|
1204
|
-
fn:
|
|
1205
|
-
|
|
1204
|
+
fn: h((u) => [
|
|
1205
|
+
C(t(te), {
|
|
1206
1206
|
data: u,
|
|
1207
|
-
label: t(
|
|
1207
|
+
label: t(a)
|
|
1208
1208
|
}, null, 8, ["data", "label"])
|
|
1209
1209
|
]),
|
|
1210
1210
|
key: "0"
|
|
1211
1211
|
} : void 0
|
|
1212
|
-
]), 1040, ["modelValue"])) : (
|
|
1212
|
+
]), 1040, ["modelValue"])) : (y(), B(A, z({
|
|
1213
1213
|
key: 0,
|
|
1214
1214
|
modelValue: t(r),
|
|
1215
1215
|
"onUpdate:modelValue": w[0] || (w[0] = (u) => de(r) ? r.value = u : null)
|
|
1216
1216
|
}, t(m), {
|
|
1217
1217
|
type: t(v),
|
|
1218
|
-
onBlur: w[1] || (w[1] = (u) =>
|
|
1218
|
+
onBlur: w[1] || (w[1] = (u) => g.value = !0)
|
|
1219
1219
|
}), Y({
|
|
1220
|
-
message:
|
|
1221
|
-
|
|
1220
|
+
message: h(({ message: u }) => [
|
|
1221
|
+
C(t(ne), {
|
|
1222
1222
|
message: u,
|
|
1223
|
-
errors: t(
|
|
1223
|
+
errors: t(s)
|
|
1224
1224
|
}, null, 8, ["message", "errors"])
|
|
1225
1225
|
]),
|
|
1226
1226
|
_: 2
|
|
1227
1227
|
}, [
|
|
1228
|
-
t(
|
|
1228
|
+
t(a).icon ? {
|
|
1229
1229
|
name: "label",
|
|
1230
|
-
fn:
|
|
1231
|
-
|
|
1230
|
+
fn: h((u) => [
|
|
1231
|
+
C(t(te), {
|
|
1232
1232
|
data: u,
|
|
1233
|
-
label: t(
|
|
1233
|
+
label: t(a)
|
|
1234
1234
|
}, null, 8, ["data", "label"])
|
|
1235
1235
|
]),
|
|
1236
1236
|
key: "0"
|
|
@@ -1251,7 +1251,7 @@ const ln = {
|
|
|
1251
1251
|
il((i) => ({
|
|
1252
1252
|
"3d4d5a06": i.minHeight
|
|
1253
1253
|
}));
|
|
1254
|
-
const o = n,
|
|
1254
|
+
const o = n, s = S(!1), a = at, v = {
|
|
1255
1255
|
toolbar: {
|
|
1256
1256
|
items: [
|
|
1257
1257
|
"undo",
|
|
@@ -1285,8 +1285,8 @@ const ln = {
|
|
|
1285
1285
|
plugins: [
|
|
1286
1286
|
hl,
|
|
1287
1287
|
yl,
|
|
1288
|
-
_l,
|
|
1289
1288
|
Vl,
|
|
1289
|
+
_l,
|
|
1290
1290
|
kl,
|
|
1291
1291
|
wl,
|
|
1292
1292
|
Tl,
|
|
@@ -1383,23 +1383,23 @@ const ln = {
|
|
|
1383
1383
|
table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] }
|
|
1384
1384
|
};
|
|
1385
1385
|
He(() => {
|
|
1386
|
-
|
|
1386
|
+
s.value = !0;
|
|
1387
1387
|
});
|
|
1388
|
-
const
|
|
1388
|
+
const _ = (i) => {
|
|
1389
1389
|
};
|
|
1390
|
-
return e({ onEditorReady:
|
|
1390
|
+
return e({ onEditorReady: _ }), (i, p) => {
|
|
1391
1391
|
const f = $("ckeditor");
|
|
1392
|
-
return
|
|
1392
|
+
return y(), U("div", fn, [
|
|
1393
1393
|
le("div", bn, [
|
|
1394
1394
|
le("div", gn, [
|
|
1395
|
-
|
|
1395
|
+
s.value ? (y(), B(f, {
|
|
1396
1396
|
key: 0,
|
|
1397
1397
|
"model-value": i.modelValue,
|
|
1398
|
-
editor: t(
|
|
1398
|
+
editor: t(a),
|
|
1399
1399
|
config: v,
|
|
1400
1400
|
disabled: i.disabled,
|
|
1401
1401
|
style: Be(`min-height: ${i.minHeight}`),
|
|
1402
|
-
onReady:
|
|
1402
|
+
onReady: _,
|
|
1403
1403
|
"onUpdate:modelValue": p[0] || (p[0] = (b) => o("update:modelValue", b))
|
|
1404
1404
|
}, null, 8, ["model-value", "editor", "disabled", "style"])) : L("", !0)
|
|
1405
1405
|
], 512)
|
|
@@ -1425,16 +1425,16 @@ const ln = {
|
|
|
1425
1425
|
}, R(x({}, Q), { minHeight: void 0 })),
|
|
1426
1426
|
emits: ["update:modelValue", "click:clear"],
|
|
1427
1427
|
setup(l, { emit: e }) {
|
|
1428
|
-
const n = l, o = e, { value:
|
|
1429
|
-
return (
|
|
1430
|
-
default:
|
|
1431
|
-
|
|
1428
|
+
const n = l, o = e, { value: s, vuetifyBindings: a } = K(n, o);
|
|
1429
|
+
return (g, r) => (y(), B(t(Ie), X(q(n)), {
|
|
1430
|
+
default: h((m) => [
|
|
1431
|
+
C(hn, {
|
|
1432
1432
|
ref: "$editor",
|
|
1433
|
-
modelValue: t(
|
|
1434
|
-
"onUpdate:modelValue": r[0] || (r[0] = (v) => de(
|
|
1435
|
-
class: pe({ "mt-8": !!
|
|
1436
|
-
"min-height":
|
|
1437
|
-
disabled: t(
|
|
1433
|
+
modelValue: t(s),
|
|
1434
|
+
"onUpdate:modelValue": r[0] || (r[0] = (v) => de(s) ? s.value = v : null),
|
|
1435
|
+
class: pe({ "mt-8": !!g.label }),
|
|
1436
|
+
"min-height": g.minHeight,
|
|
1437
|
+
disabled: t(a).disabled,
|
|
1438
1438
|
onFocusin: (v) => m.focus(),
|
|
1439
1439
|
onFocusout: (v) => m.blur()
|
|
1440
1440
|
}, null, 8, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
|
|
@@ -1443,7 +1443,7 @@ const ln = {
|
|
|
1443
1443
|
}, 16));
|
|
1444
1444
|
}
|
|
1445
1445
|
});
|
|
1446
|
-
function
|
|
1446
|
+
function Vn(l) {
|
|
1447
1447
|
return l.map((e) => ({ value: e.id, title: e.text, icon: e.icon }));
|
|
1448
1448
|
}
|
|
1449
1449
|
function J(l, e) {
|
|
@@ -1453,25 +1453,25 @@ function J(l, e) {
|
|
|
1453
1453
|
function ye(l, e) {
|
|
1454
1454
|
if (e == null) return [];
|
|
1455
1455
|
const n = Ge(e);
|
|
1456
|
-
return l.filter((o) => n.some((
|
|
1456
|
+
return l.filter((o) => n.some((s) => s === o.id));
|
|
1457
1457
|
}
|
|
1458
|
-
function ge(l, e, n, o,
|
|
1459
|
-
var
|
|
1460
|
-
const
|
|
1461
|
-
if (
|
|
1458
|
+
function ge(l, e, n, o, s) {
|
|
1459
|
+
var g;
|
|
1460
|
+
const a = J(l, n);
|
|
1461
|
+
if (a == null) {
|
|
1462
1462
|
e.value = n ? [] : null;
|
|
1463
1463
|
return;
|
|
1464
1464
|
}
|
|
1465
1465
|
if (n)
|
|
1466
|
-
o ? e.value =
|
|
1466
|
+
o ? e.value = a : e.value = ye(s, a).map((r) => r.id);
|
|
1467
1467
|
else if (o)
|
|
1468
|
-
e.value =
|
|
1468
|
+
e.value = a;
|
|
1469
1469
|
else {
|
|
1470
|
-
const r = We(ye(
|
|
1471
|
-
e.value = (
|
|
1470
|
+
const r = We(ye(s, a));
|
|
1471
|
+
e.value = (g = r == null ? void 0 : r.id) != null ? g : null;
|
|
1472
1472
|
}
|
|
1473
1473
|
}
|
|
1474
|
-
const
|
|
1474
|
+
const _n = {
|
|
1475
1475
|
key: 0,
|
|
1476
1476
|
class: "me-1"
|
|
1477
1477
|
}, kn = /* @__PURE__ */ O({
|
|
@@ -1502,7 +1502,7 @@ const Vn = {
|
|
|
1502
1502
|
})),
|
|
1503
1503
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
1504
1504
|
setup(l, { emit: e }) {
|
|
1505
|
-
const n = l, { choices: o, multiple:
|
|
1505
|
+
const n = l, { choices: o, multiple: s, allowTags: a, allowNull: g, cssClass: r, visibility: m } = Ve(n), v = e, { errors: _, label: i, touched: p, value: f, vuetifyBindings: b } = K(n, v), V = S(null), k = S(!1), w = S([]), A = T(() => t(k) ? t(w) : t(o) || []), E = S(!1), u = T(() => Vn(A.value));
|
|
1506
1506
|
function d(c) {
|
|
1507
1507
|
v("update:modelValueDisplay", ye(A.value, c));
|
|
1508
1508
|
}
|
|
@@ -1512,51 +1512,51 @@ const Vn = {
|
|
|
1512
1512
|
D = !1;
|
|
1513
1513
|
});
|
|
1514
1514
|
}
|
|
1515
|
-
ie(
|
|
1515
|
+
ie(V, (c) => {
|
|
1516
1516
|
b.value.readonly || Ue(() => {
|
|
1517
|
-
const I = J(c,
|
|
1517
|
+
const I = J(c, s.value);
|
|
1518
1518
|
d(I), F(I);
|
|
1519
1519
|
});
|
|
1520
1520
|
}, { deep: !0 }), ie(f, (c) => {
|
|
1521
1521
|
if (!D) {
|
|
1522
|
-
const I = J(c,
|
|
1523
|
-
ge(I,
|
|
1522
|
+
const I = J(c, s.value);
|
|
1523
|
+
ge(I, V, s.value, !1, A.value);
|
|
1524
1524
|
}
|
|
1525
1525
|
}, { deep: !0 });
|
|
1526
1526
|
function G() {
|
|
1527
|
-
if (b.value.readonly ||
|
|
1528
|
-
const c = J(
|
|
1529
|
-
ge(c,
|
|
1527
|
+
if (b.value.readonly || a.value) return;
|
|
1528
|
+
const c = J(V.value, s.value);
|
|
1529
|
+
ge(c, V, s.value, !1, A.value), F(c);
|
|
1530
1530
|
}
|
|
1531
1531
|
function W(c) {
|
|
1532
1532
|
let I;
|
|
1533
|
-
|
|
1533
|
+
s.value && Array.isArray(V.value) ? I = J(V.value.filter((H) => H !== c), s.value) : I = null, ge(I, V, s.value, !1, A.value), F(I);
|
|
1534
1534
|
}
|
|
1535
1535
|
function fe(c, I) {
|
|
1536
1536
|
return be(this, null, function* () {
|
|
1537
1537
|
if (!(o.value || n.fetchChoices === void 0)) {
|
|
1538
|
-
|
|
1538
|
+
E.value = !0;
|
|
1539
1539
|
try {
|
|
1540
|
-
const H = ye(A.value, J(
|
|
1541
|
-
w.value = ml([...H, ...
|
|
1540
|
+
const H = ye(A.value, J(V.value, s.value)), _e = yield n.fetchChoices(c, I);
|
|
1541
|
+
w.value = ml([...H, ..._e], "id"), k.value = !0;
|
|
1542
1542
|
} finally {
|
|
1543
|
-
|
|
1543
|
+
E.value = !1;
|
|
1544
1544
|
}
|
|
1545
1545
|
}
|
|
1546
1546
|
});
|
|
1547
1547
|
}
|
|
1548
1548
|
function M() {
|
|
1549
1549
|
let c = f.value;
|
|
1550
|
-
!
|
|
1550
|
+
!g.value && c == null && u.value.length && (c = u.value[0].value), c = J(c, s.value), ge(c, V, s.value, a.value, A.value), d(c), F(c);
|
|
1551
1551
|
}
|
|
1552
1552
|
return M(), n.fetchChoices !== void 0 && fe(void 0, f.value).then(() => {
|
|
1553
1553
|
M();
|
|
1554
1554
|
}), (c, I) => {
|
|
1555
|
-
const H = $("v-chip"),
|
|
1556
|
-
return t(m) !== t(j).SUPPRESS ? (
|
|
1555
|
+
const H = $("v-chip"), _e = $("v-list-item");
|
|
1556
|
+
return t(m) !== t(j).SUPPRESS ? (y(), B(ue(t(a) ? "v-combobox" : "v-autocomplete"), z({
|
|
1557
1557
|
key: 0,
|
|
1558
|
-
modelValue:
|
|
1559
|
-
"onUpdate:modelValue": I[0] || (I[0] = (N) =>
|
|
1558
|
+
modelValue: V.value,
|
|
1559
|
+
"onUpdate:modelValue": I[0] || (I[0] = (N) => V.value = N),
|
|
1560
1560
|
class: [
|
|
1561
1561
|
t(r),
|
|
1562
1562
|
{
|
|
@@ -1570,54 +1570,54 @@ const Vn = {
|
|
|
1570
1570
|
label: t(b).label,
|
|
1571
1571
|
chips: "",
|
|
1572
1572
|
"auto-select-first": !0,
|
|
1573
|
-
"closable-chips": t(
|
|
1574
|
-
clearable: t(
|
|
1575
|
-
multiple: t(
|
|
1576
|
-
loading:
|
|
1573
|
+
"closable-chips": t(g) || t(s) && V.value.length > 1,
|
|
1574
|
+
clearable: t(g),
|
|
1575
|
+
multiple: t(s),
|
|
1576
|
+
loading: E.value,
|
|
1577
1577
|
"hide-selected": !1,
|
|
1578
1578
|
"aria-describedby": t(b).helpText ? `${t(b).name}-help` : null,
|
|
1579
1579
|
"menu-props": { maxHeight: "400" },
|
|
1580
1580
|
"hide-details": "auto",
|
|
1581
1581
|
"onUpdate:search": I[1] || (I[1] = (N) => fe(N, void 0)),
|
|
1582
1582
|
"onUpdate:modelValue": G,
|
|
1583
|
-
"onClick:clear": I[2] || (I[2] = (N) =>
|
|
1583
|
+
"onClick:clear": I[2] || (I[2] = (N) => V.value = null),
|
|
1584
1584
|
onBlur: I[3] || (I[3] = (N) => p.value = !0)
|
|
1585
1585
|
}), Y({
|
|
1586
|
-
chip:
|
|
1587
|
-
(
|
|
1586
|
+
chip: h(({ item: N }) => [
|
|
1587
|
+
(y(), B(H, {
|
|
1588
1588
|
key: N.value,
|
|
1589
1589
|
label: "",
|
|
1590
1590
|
size: "small",
|
|
1591
1591
|
class: "d-flex align-middle",
|
|
1592
|
-
variant: t(
|
|
1593
|
-
closable: t(
|
|
1592
|
+
variant: t(s) ? "tonal" : "text",
|
|
1593
|
+
closable: t(s),
|
|
1594
1594
|
"onClick:close": (ae) => W(N.value)
|
|
1595
1595
|
}, {
|
|
1596
|
-
prepend:
|
|
1596
|
+
prepend: h(() => {
|
|
1597
1597
|
var ae;
|
|
1598
1598
|
return [
|
|
1599
|
-
(ae = N.raw) != null && ae.icon ? (
|
|
1599
|
+
(ae = N.raw) != null && ae.icon ? (y(), B(t(Te), {
|
|
1600
1600
|
key: 0,
|
|
1601
1601
|
class: "me-1 action-icon d-inline-block",
|
|
1602
1602
|
name: N.raw.icon
|
|
1603
1603
|
}, null, 8, ["name"])) : L("", !0)
|
|
1604
1604
|
];
|
|
1605
1605
|
}),
|
|
1606
|
-
default:
|
|
1606
|
+
default: h(() => [
|
|
1607
1607
|
le("span", {
|
|
1608
|
-
class: pe({ "text-body-1": !t(
|
|
1608
|
+
class: pe({ "text-body-1": !t(s) })
|
|
1609
1609
|
}, re(N.title), 3)
|
|
1610
1610
|
]),
|
|
1611
1611
|
_: 2
|
|
1612
1612
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
1613
1613
|
]),
|
|
1614
|
-
item:
|
|
1615
|
-
|
|
1616
|
-
prepend:
|
|
1614
|
+
item: h(({ props: N, item: ae }) => [
|
|
1615
|
+
C(_e, X(q(N)), {
|
|
1616
|
+
prepend: h(() => {
|
|
1617
1617
|
var $e;
|
|
1618
1618
|
return [
|
|
1619
|
-
($e = ae.raw) != null && $e.icon ? (
|
|
1620
|
-
|
|
1619
|
+
($e = ae.raw) != null && $e.icon ? (y(), U("span", _n, [
|
|
1620
|
+
C(t(Te), {
|
|
1621
1621
|
class: "action-icon d-inline-block",
|
|
1622
1622
|
name: ae.raw.icon
|
|
1623
1623
|
}, null, 8, ["name"])
|
|
@@ -1627,18 +1627,18 @@ const Vn = {
|
|
|
1627
1627
|
_: 2
|
|
1628
1628
|
}, 1040)
|
|
1629
1629
|
]),
|
|
1630
|
-
message:
|
|
1631
|
-
|
|
1630
|
+
message: h(({ message: N }) => [
|
|
1631
|
+
C(t(ne), {
|
|
1632
1632
|
message: N,
|
|
1633
|
-
errors: t(
|
|
1633
|
+
errors: t(_)
|
|
1634
1634
|
}, null, 8, ["message", "errors"])
|
|
1635
1635
|
]),
|
|
1636
1636
|
_: 2
|
|
1637
1637
|
}, [
|
|
1638
1638
|
t(i).icon ? {
|
|
1639
1639
|
name: "label",
|
|
1640
|
-
fn:
|
|
1641
|
-
|
|
1640
|
+
fn: h((N) => [
|
|
1641
|
+
C(t(te), {
|
|
1642
1642
|
data: N,
|
|
1643
1643
|
label: t(i)
|
|
1644
1644
|
}, null, 8, ["data", "label"])
|
|
@@ -1647,14 +1647,14 @@ const Vn = {
|
|
|
1647
1647
|
} : void 0,
|
|
1648
1648
|
c.$slots["append-inner"] ? {
|
|
1649
1649
|
name: "append-inner",
|
|
1650
|
-
fn:
|
|
1650
|
+
fn: h((N) => [
|
|
1651
1651
|
se(c.$slots, "append-inner", X(q(N)), void 0, !0)
|
|
1652
1652
|
]),
|
|
1653
1653
|
key: "1"
|
|
1654
1654
|
} : void 0,
|
|
1655
1655
|
c.$slots["prepend-inner"] ? {
|
|
1656
1656
|
name: "prepend-inner",
|
|
1657
|
-
fn:
|
|
1657
|
+
fn: h((N) => [
|
|
1658
1658
|
se(c.$slots, "prepend-inner", X(q(N)), void 0, !0)
|
|
1659
1659
|
]),
|
|
1660
1660
|
key: "2"
|
|
@@ -1684,41 +1684,41 @@ const Vn = {
|
|
|
1684
1684
|
})),
|
|
1685
1685
|
emits: ["update:modelValue", "click:clear"],
|
|
1686
1686
|
setup(l, { emit: e }) {
|
|
1687
|
-
const n = l, o = e, { errors:
|
|
1687
|
+
const n = l, o = e, { errors: s, label: a, touched: g, value: r, vuetifyBindings: m } = K(n, o), { cssClass: v, visibility: _ } = Ve(n);
|
|
1688
1688
|
return (i, p) => {
|
|
1689
1689
|
const f = $("v-textarea");
|
|
1690
|
-
return
|
|
1691
|
-
t(
|
|
1690
|
+
return y(), U("div", Tn, [
|
|
1691
|
+
t(_) !== t(j).SUPPRESS ? (y(), B(f, z({
|
|
1692
1692
|
key: 0,
|
|
1693
1693
|
modelValue: t(r),
|
|
1694
1694
|
"onUpdate:modelValue": p[0] || (p[0] = (b) => de(r) ? r.value = b : null),
|
|
1695
1695
|
class: [
|
|
1696
1696
|
t(v),
|
|
1697
1697
|
{
|
|
1698
|
-
"d-none": t(
|
|
1699
|
-
invisible: t(
|
|
1698
|
+
"d-none": t(_) === t(j).HIDDEN,
|
|
1699
|
+
invisible: t(_) === t(j).INVISIBLE
|
|
1700
1700
|
}
|
|
1701
1701
|
],
|
|
1702
1702
|
rows: i.rows,
|
|
1703
1703
|
"auto-grow": (i.maxRows || 0) > 0,
|
|
1704
1704
|
"max-rows": i.maxRows
|
|
1705
1705
|
}, t(m), {
|
|
1706
|
-
onBlur: p[1] || (p[1] = (b) =>
|
|
1706
|
+
onBlur: p[1] || (p[1] = (b) => g.value = !0)
|
|
1707
1707
|
}), Y({
|
|
1708
|
-
message:
|
|
1709
|
-
|
|
1708
|
+
message: h(({ message: b }) => [
|
|
1709
|
+
C(t(ne), {
|
|
1710
1710
|
message: b,
|
|
1711
|
-
errors: t(
|
|
1711
|
+
errors: t(s)
|
|
1712
1712
|
}, null, 8, ["message", "errors"])
|
|
1713
1713
|
]),
|
|
1714
1714
|
_: 2
|
|
1715
1715
|
}, [
|
|
1716
|
-
t(
|
|
1716
|
+
t(a).icon ? {
|
|
1717
1717
|
name: "label",
|
|
1718
|
-
fn:
|
|
1719
|
-
|
|
1718
|
+
fn: h((b) => [
|
|
1719
|
+
C(t(te), {
|
|
1720
1720
|
data: b,
|
|
1721
|
-
label: t(
|
|
1721
|
+
label: t(a)
|
|
1722
1722
|
}, null, 8, ["data", "label"])
|
|
1723
1723
|
]),
|
|
1724
1724
|
key: "0"
|
|
@@ -1753,8 +1753,8 @@ const Vn = {
|
|
|
1753
1753
|
VFileInput: ft,
|
|
1754
1754
|
VIcon: ht,
|
|
1755
1755
|
VImg: yt,
|
|
1756
|
-
VInput:
|
|
1757
|
-
VListItem:
|
|
1756
|
+
VInput: Vt,
|
|
1757
|
+
VListItem: _t,
|
|
1758
1758
|
VMenu: kt,
|
|
1759
1759
|
VNumberInput: wt,
|
|
1760
1760
|
VProgressLinear: Tt,
|
|
@@ -1769,7 +1769,7 @@ const Vn = {
|
|
|
1769
1769
|
}, Symbol.toStringTag, { value: "Module" })), uo = {
|
|
1770
1770
|
install: (l, e) => {
|
|
1771
1771
|
var n, o;
|
|
1772
|
-
l.use(Mt), l.provide(Ze, e != null ? e : {}), (n = e == null ? void 0 : e.registerComponents) != null && n && Object.entries(In).map(([
|
|
1772
|
+
l.use(Mt), l.provide(Ze, e != null ? e : {}), (n = e == null ? void 0 : e.registerComponents) != null && n && Object.entries(In).map(([s, a]) => l.component(s, a)), (o = e == null ? void 0 : e.registerVuetifyComponents) != null && o && Object.entries($n).map(([s, a]) => l.component(s, a));
|
|
1773
1773
|
}
|
|
1774
1774
|
};
|
|
1775
1775
|
export {
|