@dynamicforms/vuetify-inputs 0.5.7 → 0.5.8
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.
- package/dist/dynamicforms-vuetify-inputs.js +486 -486
- package/dist/dynamicforms-vuetify-inputs.js.map +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs +10 -10
- package/dist/dynamicforms-vuetify-inputs.umd.cjs.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/style.css +2 -2
- package/package.json +2 -3
|
@@ -1,41 +1,40 @@
|
|
|
1
1
|
var et = Object.defineProperty, tt = Object.defineProperties;
|
|
2
2
|
var nt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var xe = Object.getOwnPropertySymbols;
|
|
4
|
-
var ot = Object.prototype.hasOwnProperty,
|
|
5
|
-
var
|
|
4
|
+
var ot = Object.prototype.hasOwnProperty, lt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var je = (e, t, n) => t in e ? et(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, x = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
ot.call(t, n) &&
|
|
7
|
+
ot.call(t, n) && je(e, n, t[n]);
|
|
8
8
|
if (xe)
|
|
9
9
|
for (var n of xe(t))
|
|
10
|
-
|
|
10
|
+
lt.call(t, n) && je(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, F = (e, t) => tt(e, nt(t));
|
|
13
|
-
var $e = (e, t, n) =>
|
|
14
|
-
var
|
|
15
|
-
var r = (
|
|
13
|
+
var $e = (e, t, n) => je(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
|
+
var ge = (e, t, n) => new Promise((l, a) => {
|
|
15
|
+
var r = (p) => {
|
|
16
16
|
try {
|
|
17
|
-
i(n.next(
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
i(n.next(p));
|
|
18
|
+
} catch (s) {
|
|
19
|
+
a(s);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, m = (p) => {
|
|
22
22
|
try {
|
|
23
|
-
i(n.throw(
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
i(n.throw(p));
|
|
24
|
+
} catch (s) {
|
|
25
|
+
a(s);
|
|
26
26
|
}
|
|
27
|
-
}, i = (
|
|
27
|
+
}, i = (p) => p.done ? l(p.value) : Promise.resolve(p.value).then(r, m);
|
|
28
28
|
i((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as Se from "vue";
|
|
31
|
-
import { defineComponent as M, mergeModels as Ee, useModel as
|
|
31
|
+
import { defineComponent as M, mergeModels as Ee, useModel as at, ref as E, watch as ie, onMounted as We, markRaw as rt, onBeforeUnmount as He, createBlock as P, openBlock as V, resolveDynamicComponent as be, version as it, isRef as te, resolveComponent as D, createElementBlock as R, createCommentVNode as L, createTextVNode as st, Fragment as Ke, toDisplayString as Be, inject as ut, computed as _, h as we, unref as o, normalizeClass as Ie, createSlots as q, withCtx as b, createVNode as B, renderSlot as re, normalizeProps as X, guardReactiveProps as G, createElementVNode as ne, renderList as ct, withModifiers as dt, mergeDefaults as Y, mergeProps as O, normalizeStyle as Xe, toRefs as _e, withKeys as Ae, useCssVars as mt, nextTick as Ne } from "vue";
|
|
32
32
|
import { debounce as pt, isString as ee, isEmpty as fe, isObjectLike as ft, isBoolean as Fe, clone as vt, toNumber as Le, isNaN as Me, isArray as Ue, castArray as Ge, first as qe, unionBy as bt } from "lodash-es";
|
|
33
|
-
import Te from "vue-ionicon";
|
|
34
33
|
import Oe, { ValidationErrorRenderContent as ht, DisplayMode as H, Action as gt } from "@dynamicforms/vue-forms";
|
|
35
34
|
import wt from "vue-markdown-render";
|
|
36
35
|
import { useDisplay as yt } from "vuetify";
|
|
37
36
|
import { format as de, parse as kt } from "date-fns";
|
|
38
|
-
import { AccessibilityHelp as Vt, Alignment as _t, AutoImage as jt, AutoLink as Ct, Autosave as Tt, BalloonToolbar as Bt, BlockQuote as It, Bold as Pt, CloudServices as Dt, Essentials as xt, GeneralHtmlSupport as $t, Heading as St, HorizontalLine as Et, ImageBlock as At, ImageCaption as Nt, ImageInline as Ft, ImageInsertViaUrl as Lt, ImageResize as Mt, ImageStyle as Ut, ImageToolbar as Ot, ImageUpload as Rt, Indent as
|
|
37
|
+
import { AccessibilityHelp as Vt, Alignment as _t, AutoImage as jt, AutoLink as Ct, Autosave as Tt, BalloonToolbar as Bt, BlockQuote as It, Bold as Pt, CloudServices as Dt, Essentials as xt, GeneralHtmlSupport as $t, Heading as St, HorizontalLine as Et, ImageBlock as At, ImageCaption as Nt, ImageInline as Ft, ImageInsertViaUrl as Lt, ImageResize as Mt, ImageStyle as Ut, ImageToolbar as Ot, ImageUpload as Rt, Indent as zt, IndentBlock as Wt, Italic as Ht, Link as Kt, List as Xt, Autoformat as Gt, MediaEmbed as qt, Paragraph as Yt, PasteFromMarkdownExperimental as Qt, PasteFromOffice as Zt, SelectAll as Jt, Style as en, Table as tn, TableCellProperties as nn, TableColumnResize as on, TableProperties as ln, TableToolbar as an, Undo as rn, TextTransformation as sn, Base64UploadAdapter as un, ClassicEditor as cn } from "ckeditor5";
|
|
39
38
|
import { VAutocomplete as dn } from "vuetify/components/VAutocomplete";
|
|
40
39
|
import { VBtn as mn } from "vuetify/components/VBtn";
|
|
41
40
|
import { VCheckbox as pn } from "vuetify/components/VCheckbox";
|
|
@@ -58,7 +57,7 @@ import { VSelect as Dn } from "vuetify/components/VSelect";
|
|
|
58
57
|
import { VSwitch as xn } from "vuetify/components/VSwitch";
|
|
59
58
|
import { VTextarea as $n } from "vuetify/components/VTextarea";
|
|
60
59
|
import { VTextField as Sn } from "vuetify/components/VTextField";
|
|
61
|
-
import { VTimePicker as En } from "vuetify/
|
|
60
|
+
import { VTimePicker as En } from "vuetify/components/VTimePicker";
|
|
62
61
|
/**
|
|
63
62
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
64
63
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -77,7 +76,7 @@ function An(e, t) {
|
|
|
77
76
|
return F(x({}, e), {
|
|
78
77
|
extraPlugins: [
|
|
79
78
|
...n,
|
|
80
|
-
...t.filter((
|
|
79
|
+
...t.filter((l) => !n.includes(l))
|
|
81
80
|
]
|
|
82
81
|
});
|
|
83
82
|
}
|
|
@@ -105,11 +104,11 @@ function Nn(e) {
|
|
|
105
104
|
function Fn(e) {
|
|
106
105
|
if (!Ye(e))
|
|
107
106
|
throw new Error(`Invalid semantic version: ${e || "<blank>"}.`);
|
|
108
|
-
const [t, n,
|
|
107
|
+
const [t, n, l] = e.split(".");
|
|
109
108
|
return {
|
|
110
109
|
major: Number.parseInt(t, 10),
|
|
111
110
|
minor: Number.parseInt(n, 10),
|
|
112
|
-
patch: Number.parseInt(
|
|
111
|
+
patch: Number.parseInt(l, 10)
|
|
113
112
|
};
|
|
114
113
|
}
|
|
115
114
|
/**
|
|
@@ -168,8 +167,8 @@ function Ze(e, t) {
|
|
|
168
167
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
169
168
|
*/
|
|
170
169
|
function On(e, t) {
|
|
171
|
-
return function(
|
|
172
|
-
Ze(
|
|
170
|
+
return function(l) {
|
|
171
|
+
Ze(l.config.get("licenseKey")) || l.on("collectUsageData", (a, { setUsageData: r }) => {
|
|
173
172
|
r(`integration.${e}`, t);
|
|
174
173
|
});
|
|
175
174
|
};
|
|
@@ -189,7 +188,7 @@ const Rn = On(
|
|
|
189
188
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
190
189
|
* For licensing, see LICENSE.md.
|
|
191
190
|
*/
|
|
192
|
-
function
|
|
191
|
+
function zn(e) {
|
|
193
192
|
return Ze(e.licenseKey) ? e : An(e, [
|
|
194
193
|
/**
|
|
195
194
|
* This part of the code is not executed in open-source implementations using a GPL key.
|
|
@@ -199,7 +198,7 @@ function Wn(e) {
|
|
|
199
198
|
Rn
|
|
200
199
|
]);
|
|
201
200
|
}
|
|
202
|
-
const
|
|
201
|
+
const Ce = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Wn = 300, Hn = /* @__PURE__ */ M({
|
|
203
202
|
name: "CKEditor",
|
|
204
203
|
__name: "ckeditor",
|
|
205
204
|
props: /* @__PURE__ */ Ee({
|
|
@@ -214,49 +213,49 @@ const je = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", zn = 300, Hn =
|
|
|
214
213
|
}),
|
|
215
214
|
emits: /* @__PURE__ */ Ee(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
|
|
216
215
|
setup(e, { expose: t, emit: n }) {
|
|
217
|
-
const
|
|
216
|
+
const l = at(e, "modelValue"), a = e, r = n, m = E(), i = E(), p = E();
|
|
218
217
|
t({
|
|
219
218
|
instance: i,
|
|
220
|
-
lastEditorData:
|
|
221
|
-
}), ie(
|
|
222
|
-
i.value &&
|
|
223
|
-
}), ie(() =>
|
|
224
|
-
|
|
219
|
+
lastEditorData: p
|
|
220
|
+
}), ie(l, (u) => {
|
|
221
|
+
i.value && u !== p.value && i.value.data.set(u);
|
|
222
|
+
}), ie(() => a.disabled, (u) => {
|
|
223
|
+
u ? i.value.enableReadOnlyMode(Ce) : i.value.disableReadOnlyMode(Ce);
|
|
225
224
|
});
|
|
226
|
-
function
|
|
227
|
-
const
|
|
228
|
-
if (!
|
|
225
|
+
function s() {
|
|
226
|
+
const u = window.CKEDITOR_VERSION;
|
|
227
|
+
if (!u)
|
|
229
228
|
return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
|
|
230
|
-
const [
|
|
231
|
-
|
|
229
|
+
const [d] = u.split(".").map(Number);
|
|
230
|
+
d >= 42 || u.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
232
231
|
}
|
|
233
|
-
function j(
|
|
234
|
-
const
|
|
235
|
-
if (
|
|
232
|
+
function j(u) {
|
|
233
|
+
const d = pt((v) => {
|
|
234
|
+
if (a.disableTwoWayDataBinding)
|
|
236
235
|
return;
|
|
237
|
-
const h =
|
|
238
|
-
r("update:modelValue", h, v,
|
|
239
|
-
},
|
|
240
|
-
|
|
241
|
-
r("focus", v,
|
|
242
|
-
}),
|
|
243
|
-
r("blur", v,
|
|
236
|
+
const h = p.value = u.data.get();
|
|
237
|
+
r("update:modelValue", h, v, u), r("input", h, v, u);
|
|
238
|
+
}, Wn, { leading: !0 });
|
|
239
|
+
u.model.document.on("change:data", d), u.editing.view.document.on("focus", (v) => {
|
|
240
|
+
r("focus", v, u);
|
|
241
|
+
}), u.editing.view.document.on("blur", (v) => {
|
|
242
|
+
r("blur", v, u);
|
|
244
243
|
});
|
|
245
244
|
}
|
|
246
|
-
return
|
|
247
|
-
const
|
|
248
|
-
Object.assign({},
|
|
245
|
+
return s(), We(() => {
|
|
246
|
+
const u = zn(
|
|
247
|
+
Object.assign({}, a.config)
|
|
249
248
|
);
|
|
250
|
-
|
|
251
|
-
i.value = rt(
|
|
252
|
-
}).catch((
|
|
253
|
-
console.error(
|
|
249
|
+
l.value && (u.initialData = l.value), a.editor.create(m.value, u).then((d) => {
|
|
250
|
+
i.value = rt(d), j(d), l.value !== u.initialData && d.data.set(l.value), a.disabled && d.enableReadOnlyMode(Ce), r("ready", d);
|
|
251
|
+
}).catch((d) => {
|
|
252
|
+
console.error(d);
|
|
254
253
|
});
|
|
255
254
|
}), He(() => {
|
|
256
255
|
i.value && (i.value.destroy(), i.value = void 0), r("destroy");
|
|
257
|
-
}), (
|
|
256
|
+
}), (u, d) => (V(), P(be(u.tagName), {
|
|
258
257
|
ref_key: "element",
|
|
259
|
-
ref:
|
|
258
|
+
ref: m
|
|
260
259
|
}, null, 512));
|
|
261
260
|
}
|
|
262
261
|
});
|
|
@@ -279,7 +278,7 @@ const Kn = {
|
|
|
279
278
|
e.component("Ckeditor", Hn);
|
|
280
279
|
}
|
|
281
280
|
};
|
|
282
|
-
function
|
|
281
|
+
function Te(e) {
|
|
283
282
|
return (t = {}) => {
|
|
284
283
|
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
285
284
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
@@ -287,35 +286,35 @@ function Ce(e) {
|
|
|
287
286
|
}
|
|
288
287
|
function me(e) {
|
|
289
288
|
return (t, n) => {
|
|
290
|
-
const
|
|
291
|
-
let
|
|
292
|
-
if (
|
|
293
|
-
const
|
|
294
|
-
|
|
289
|
+
const l = n != null && n.context ? String(n.context) : "standalone";
|
|
290
|
+
let a;
|
|
291
|
+
if (l === "formatting" && e.formattingValues) {
|
|
292
|
+
const m = e.defaultFormattingWidth || e.defaultWidth, i = n != null && n.width ? String(n.width) : m;
|
|
293
|
+
a = e.formattingValues[i] || e.formattingValues[m];
|
|
295
294
|
} else {
|
|
296
|
-
const
|
|
297
|
-
|
|
295
|
+
const m = e.defaultWidth, i = n != null && n.width ? String(n.width) : e.defaultWidth;
|
|
296
|
+
a = e.values[i] || e.values[m];
|
|
298
297
|
}
|
|
299
298
|
const r = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
300
|
-
return
|
|
299
|
+
return a[r];
|
|
301
300
|
};
|
|
302
301
|
}
|
|
303
302
|
function pe(e) {
|
|
304
303
|
return (t, n = {}) => {
|
|
305
|
-
const
|
|
304
|
+
const l = n.width, a = l && e.matchPatterns[l] || e.matchPatterns[e.defaultMatchWidth], r = t.match(a);
|
|
306
305
|
if (!r)
|
|
307
306
|
return null;
|
|
308
|
-
const
|
|
307
|
+
const m = r[0], i = l && e.parsePatterns[l] || e.parsePatterns[e.defaultParseWidth], p = Array.isArray(i) ? Gn(i, (u) => u.test(m)) : (
|
|
309
308
|
// [TODO] -- I challenge you to fix the type
|
|
310
|
-
Xn(i, (
|
|
309
|
+
Xn(i, (u) => u.test(m))
|
|
311
310
|
);
|
|
312
|
-
let
|
|
313
|
-
|
|
311
|
+
let s;
|
|
312
|
+
s = e.valueCallback ? e.valueCallback(p) : p, s = n.valueCallback ? (
|
|
314
313
|
// [TODO] -- I challenge you to fix the type
|
|
315
|
-
n.valueCallback(
|
|
316
|
-
) :
|
|
317
|
-
const j = t.slice(
|
|
318
|
-
return { value:
|
|
314
|
+
n.valueCallback(s)
|
|
315
|
+
) : s;
|
|
316
|
+
const j = t.slice(m.length);
|
|
317
|
+
return { value: s, rest: j };
|
|
319
318
|
};
|
|
320
319
|
}
|
|
321
320
|
function Xn(e, t) {
|
|
@@ -330,14 +329,14 @@ function Gn(e, t) {
|
|
|
330
329
|
}
|
|
331
330
|
function qn(e) {
|
|
332
331
|
return (t, n = {}) => {
|
|
333
|
-
const
|
|
334
|
-
if (!
|
|
335
|
-
const
|
|
332
|
+
const l = t.match(e.matchPattern);
|
|
333
|
+
if (!l) return null;
|
|
334
|
+
const a = l[0], r = t.match(e.parsePattern);
|
|
336
335
|
if (!r) return null;
|
|
337
|
-
let
|
|
338
|
-
|
|
339
|
-
const i = t.slice(
|
|
340
|
-
return { value:
|
|
336
|
+
let m = e.valueCallback ? e.valueCallback(r[0]) : r[0];
|
|
337
|
+
m = n.valueCallback ? n.valueCallback(m) : m;
|
|
338
|
+
const i = t.slice(a.length);
|
|
339
|
+
return { value: m, rest: i };
|
|
341
340
|
};
|
|
342
341
|
}
|
|
343
342
|
function Yn(e) {
|
|
@@ -634,16 +633,16 @@ function Zn(e) {
|
|
|
634
633
|
}
|
|
635
634
|
}
|
|
636
635
|
const Jn = (e, t, n) => {
|
|
637
|
-
let
|
|
638
|
-
n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (
|
|
636
|
+
let l = "", a = "present";
|
|
637
|
+
n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (a = "future", l = "čez ") : (a = "past", l = "pred "));
|
|
639
638
|
const r = Qn[e];
|
|
640
639
|
if (typeof r == "string")
|
|
641
|
-
|
|
640
|
+
l += r;
|
|
642
641
|
else {
|
|
643
|
-
const
|
|
644
|
-
Yn(r) ?
|
|
642
|
+
const m = Zn(t);
|
|
643
|
+
Yn(r) ? l += r[m].replace("{{count}}", String(t)) : l += r[a][m].replace("{{count}}", String(t));
|
|
645
644
|
}
|
|
646
|
-
return
|
|
645
|
+
return l;
|
|
647
646
|
}, eo = {
|
|
648
647
|
full: "EEEE, dd. MMMM y",
|
|
649
648
|
long: "dd. MMMM y",
|
|
@@ -660,19 +659,19 @@ const Jn = (e, t, n) => {
|
|
|
660
659
|
medium: "{{date}} {{time}}",
|
|
661
660
|
short: "{{date}} {{time}}"
|
|
662
661
|
}, oo = {
|
|
663
|
-
date:
|
|
662
|
+
date: Te({
|
|
664
663
|
formats: eo,
|
|
665
664
|
defaultWidth: "full"
|
|
666
665
|
}),
|
|
667
|
-
time:
|
|
666
|
+
time: Te({
|
|
668
667
|
formats: to,
|
|
669
668
|
defaultWidth: "full"
|
|
670
669
|
}),
|
|
671
|
-
dateTime:
|
|
670
|
+
dateTime: Te({
|
|
672
671
|
formats: no,
|
|
673
672
|
defaultWidth: "full"
|
|
674
673
|
})
|
|
675
|
-
},
|
|
674
|
+
}, lo = {
|
|
676
675
|
lastWeek: (e) => {
|
|
677
676
|
switch (e.getDay()) {
|
|
678
677
|
case 0:
|
|
@@ -701,9 +700,9 @@ const Jn = (e, t, n) => {
|
|
|
701
700
|
}
|
|
702
701
|
},
|
|
703
702
|
other: "P"
|
|
704
|
-
},
|
|
705
|
-
const
|
|
706
|
-
return typeof
|
|
703
|
+
}, ao = (e, t, n, l) => {
|
|
704
|
+
const a = lo[e];
|
|
705
|
+
return typeof a == "function" ? a(t) : a;
|
|
707
706
|
}, ro = {
|
|
708
707
|
narrow: ["pr. n. št.", "po n. št."],
|
|
709
708
|
abbreviated: ["pr. n. št.", "po n. št."],
|
|
@@ -973,7 +972,7 @@ const Jn = (e, t, n) => {
|
|
|
973
972
|
code: "sl",
|
|
974
973
|
formatDistance: Jn,
|
|
975
974
|
formatLong: oo,
|
|
976
|
-
formatRelative:
|
|
975
|
+
formatRelative: ao,
|
|
977
976
|
localize: fo,
|
|
978
977
|
match: Bo,
|
|
979
978
|
options: {
|
|
@@ -993,18 +992,18 @@ const Jn = (e, t, n) => {
|
|
|
993
992
|
},
|
|
994
993
|
setup(e) {
|
|
995
994
|
return (t, n) => {
|
|
996
|
-
const
|
|
995
|
+
const l = D("v-icon"), a = D("v-img");
|
|
997
996
|
return V(), R("div", Do, [
|
|
998
997
|
t.label.icon ? (V(), R(Ke, { key: 0 }, [
|
|
999
|
-
t.label.iconComponent === "v-icon" ? (V(),
|
|
998
|
+
t.label.iconComponent === "v-icon" ? (V(), P(l, {
|
|
1000
999
|
key: 0,
|
|
1001
1000
|
icon: t.label.icon,
|
|
1002
1001
|
size: "1.25em"
|
|
1003
|
-
}, null, 8, ["icon"])) : t.label.iconComponent === "v-img" ? (V(),
|
|
1002
|
+
}, null, 8, ["icon"])) : t.label.iconComponent === "v-img" ? (V(), P(a, {
|
|
1004
1003
|
key: 1,
|
|
1005
1004
|
class: "icon",
|
|
1006
1005
|
src: t.label.icon
|
|
1007
|
-
}, null, 8, ["src"])) : (V(),
|
|
1006
|
+
}, null, 8, ["src"])) : (V(), P(be(t.label.iconComponent), {
|
|
1008
1007
|
key: 2,
|
|
1009
1008
|
src: t.label.icon
|
|
1010
1009
|
}, null, 8, ["src"]))
|
|
@@ -1013,43 +1012,43 @@ const Jn = (e, t, n) => {
|
|
|
1013
1012
|
]);
|
|
1014
1013
|
};
|
|
1015
1014
|
}
|
|
1016
|
-
}),
|
|
1015
|
+
}), he = (e, t) => {
|
|
1017
1016
|
const n = e.__vccOpts || e;
|
|
1018
|
-
for (const [
|
|
1019
|
-
n[
|
|
1017
|
+
for (const [l, a] of t)
|
|
1018
|
+
n[l] = a;
|
|
1020
1019
|
return n;
|
|
1021
|
-
}, oe = /* @__PURE__ */
|
|
1020
|
+
}, oe = /* @__PURE__ */ he(xo, [["__scopeId", "data-v-0034f29f"]]), Je = Symbol("vuetifyInputsSettingsKey");
|
|
1022
1021
|
class $o {
|
|
1023
|
-
constructor(t, n,
|
|
1024
|
-
this.text = t, this.icon = n, this.iconComponent =
|
|
1022
|
+
constructor(t, n, l = "v-icon") {
|
|
1023
|
+
this.text = t, this.icon = n, this.iconComponent = l;
|
|
1025
1024
|
}
|
|
1026
1025
|
}
|
|
1027
1026
|
const Q = { enabled: void 0, clearable: !0 };
|
|
1028
1027
|
function K(e, t) {
|
|
1029
|
-
const n = ut(Je, {}),
|
|
1028
|
+
const n = ut(Je, {}), l = E(null), a = _({
|
|
1030
1029
|
get() {
|
|
1031
|
-
return e.control ? e.control.value : e.modelValue === void 0 ?
|
|
1030
|
+
return e.control ? e.control.value : e.modelValue === void 0 ? l.value : e.modelValue;
|
|
1032
1031
|
},
|
|
1033
1032
|
set(y) {
|
|
1034
|
-
e.control && (e.control.value = y), e.modelValue === void 0 && (
|
|
1033
|
+
e.control && (e.control.value = y), e.modelValue === void 0 && (l.value = y), t("update:modelValue", y);
|
|
1035
1034
|
}
|
|
1036
1035
|
});
|
|
1037
1036
|
if (e.control && !(e.control instanceof Oe.FieldBase))
|
|
1038
1037
|
throw new Error("control prop is not a vue-form control instance");
|
|
1039
|
-
const r = E(!1),
|
|
1038
|
+
const r = E(!1), m = _(() => e.control ? e.control.valid : !0), i = _(
|
|
1040
1039
|
() => e.control ? e.control.errors : (e.errors || []).map((y) => new ht(y))
|
|
1041
|
-
),
|
|
1040
|
+
), p = _(() => r.value && i.value.length > 0 ? " " : void 0), s = _(() => e.control ? e.control.enabled : e.enabled !== !1), j = _(
|
|
1042
1041
|
() => e.control ? e.control.visibility : e.visibility || Oe.DisplayMode.FULL
|
|
1043
|
-
),
|
|
1042
|
+
), u = _(
|
|
1044
1043
|
() => ee(e.label || "") ? new $o(e.label || "") : e.label
|
|
1045
|
-
),
|
|
1044
|
+
), d = _(() => e.placeholder || ""), v = _(() => e.helpText || ""), h = _(() => e.hint || ""), g = _(() => e.cssClass || "");
|
|
1046
1045
|
return {
|
|
1047
|
-
value:
|
|
1048
|
-
valid:
|
|
1049
|
-
enabled:
|
|
1046
|
+
value: a,
|
|
1047
|
+
valid: m,
|
|
1048
|
+
enabled: s,
|
|
1050
1049
|
errors: i,
|
|
1051
1050
|
visibility: j,
|
|
1052
|
-
label:
|
|
1051
|
+
label: u,
|
|
1053
1052
|
touched: r,
|
|
1054
1053
|
vuetifyBindings: _(() => {
|
|
1055
1054
|
var y, w;
|
|
@@ -1058,14 +1057,14 @@ function K(e, t) {
|
|
|
1058
1057
|
class: g.value,
|
|
1059
1058
|
density: "default",
|
|
1060
1059
|
variant: (w = n.defaultVariant) != null ? w : "underlined",
|
|
1061
|
-
label:
|
|
1062
|
-
messages:
|
|
1063
|
-
errorMessages:
|
|
1060
|
+
label: u.value.text,
|
|
1061
|
+
messages: p.value,
|
|
1062
|
+
errorMessages: p.value,
|
|
1064
1063
|
// 'error-count': errors?.value.length || 0,
|
|
1065
|
-
readonly: !
|
|
1066
|
-
disabled: !
|
|
1067
|
-
placeholder:
|
|
1068
|
-
"persistent-placeholder": !fe(
|
|
1064
|
+
readonly: !s.value,
|
|
1065
|
+
disabled: !s.value,
|
|
1066
|
+
placeholder: d.value,
|
|
1067
|
+
"persistent-placeholder": !fe(d.value),
|
|
1069
1068
|
hint: h.value,
|
|
1070
1069
|
persistentHint: !0,
|
|
1071
1070
|
// we want persistent hint always
|
|
@@ -1076,7 +1075,7 @@ function K(e, t) {
|
|
|
1076
1075
|
})
|
|
1077
1076
|
};
|
|
1078
1077
|
}
|
|
1079
|
-
const
|
|
1078
|
+
const le = /* @__PURE__ */ M({
|
|
1080
1079
|
__name: "messages-widget",
|
|
1081
1080
|
props: {
|
|
1082
1081
|
errors: {},
|
|
@@ -1085,28 +1084,28 @@ const ae = /* @__PURE__ */ M({
|
|
|
1085
1084
|
},
|
|
1086
1085
|
setup(e) {
|
|
1087
1086
|
const t = e, n = () => {
|
|
1088
|
-
if (t.message !== " ") return
|
|
1089
|
-
const
|
|
1090
|
-
return t.errors.forEach((
|
|
1091
|
-
switch (
|
|
1087
|
+
if (t.message !== " ") return we("span", { class: t.classes }, t.message);
|
|
1088
|
+
const l = [];
|
|
1089
|
+
return t.errors.forEach((a) => {
|
|
1090
|
+
switch (a.componentName) {
|
|
1092
1091
|
case "template":
|
|
1093
|
-
|
|
1092
|
+
l.push(we("div", { class: t.classes }, a.componentBody));
|
|
1094
1093
|
break;
|
|
1095
1094
|
case "vue-markdown":
|
|
1096
|
-
|
|
1095
|
+
l.push(we(
|
|
1097
1096
|
wt,
|
|
1098
|
-
{ class: [t.classes, "df-messages-widget-markdown"], source:
|
|
1097
|
+
{ class: [t.classes, "df-messages-widget-markdown"], source: a.componentBindings.source }
|
|
1099
1098
|
));
|
|
1100
1099
|
break;
|
|
1101
1100
|
default:
|
|
1102
|
-
|
|
1103
|
-
|
|
1101
|
+
l.push(
|
|
1102
|
+
we(a.componentName, F(x({ class: t.classes }, a.componentBindings), { innerHTML: a.componentBody }))
|
|
1104
1103
|
);
|
|
1105
1104
|
break;
|
|
1106
1105
|
}
|
|
1107
|
-
}),
|
|
1106
|
+
}), l;
|
|
1108
1107
|
};
|
|
1109
|
-
return (
|
|
1108
|
+
return (l, a) => (V(), P(n));
|
|
1110
1109
|
}
|
|
1111
1110
|
}), So = { class: "d-flex w-100 style-resetting" }, Eo = /* @__PURE__ */ M({
|
|
1112
1111
|
__name: "input-base",
|
|
@@ -1127,45 +1126,45 @@ const ae = /* @__PURE__ */ M({
|
|
|
1127
1126
|
},
|
|
1128
1127
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
1129
1128
|
setup(e, { emit: t }) {
|
|
1130
|
-
const n = e,
|
|
1131
|
-
function
|
|
1132
|
-
|
|
1129
|
+
const n = e, l = t, { errors: a, label: r, value: m, touched: i, visibility: p, vuetifyBindings: s } = K(n, l), j = _(() => !!(o(n.clearable) && o(m))), u = E(!1);
|
|
1130
|
+
function d(v) {
|
|
1131
|
+
u.value = v, v || (i.value = !0, l("blur"));
|
|
1133
1132
|
}
|
|
1134
1133
|
return (v, h) => {
|
|
1135
|
-
const g =
|
|
1136
|
-
return o(
|
|
1134
|
+
const g = D("v-field"), y = D("v-input");
|
|
1135
|
+
return o(p) !== o(H).SUPPRESS ? (V(), P(y, {
|
|
1137
1136
|
key: 0,
|
|
1138
|
-
name: o(
|
|
1139
|
-
hint: o(
|
|
1140
|
-
"persistent-hint": o(
|
|
1141
|
-
"hide-details": o(
|
|
1142
|
-
"error-messages": o(
|
|
1137
|
+
name: o(s).name,
|
|
1138
|
+
hint: o(s).hint,
|
|
1139
|
+
"persistent-hint": o(s).persistentHint,
|
|
1140
|
+
"hide-details": o(s).hideDetails,
|
|
1141
|
+
"error-messages": o(s).errorMessages,
|
|
1143
1142
|
class: Ie([
|
|
1144
1143
|
v.cssClass,
|
|
1145
1144
|
{
|
|
1146
|
-
"d-none": o(
|
|
1147
|
-
invisible: o(
|
|
1145
|
+
"d-none": o(p) === o(H).HIDDEN,
|
|
1146
|
+
invisible: o(p) === o(H).INVISIBLE
|
|
1148
1147
|
}
|
|
1149
1148
|
])
|
|
1150
1149
|
}, q({
|
|
1151
1150
|
message: b(({ message: w }) => [
|
|
1152
|
-
B(
|
|
1151
|
+
B(le, {
|
|
1153
1152
|
message: w,
|
|
1154
|
-
errors: o(
|
|
1153
|
+
errors: o(a)
|
|
1155
1154
|
}, null, 8, ["message", "errors"])
|
|
1156
1155
|
]),
|
|
1157
1156
|
default: b(() => [
|
|
1158
1157
|
B(g, {
|
|
1159
|
-
variant: o(
|
|
1160
|
-
label: o(
|
|
1161
|
-
disabled: o(
|
|
1158
|
+
variant: o(s).variant,
|
|
1159
|
+
label: o(s).label,
|
|
1160
|
+
disabled: o(s).disabled,
|
|
1162
1161
|
clearable: j.value,
|
|
1163
1162
|
"persistent-clear": !0,
|
|
1164
|
-
dirty: !!o(
|
|
1165
|
-
active:
|
|
1163
|
+
dirty: !!o(m),
|
|
1164
|
+
active: u.value,
|
|
1166
1165
|
loading: v.loading,
|
|
1167
|
-
"onClick:clear": h[0] || (h[0] = (w) =>
|
|
1168
|
-
"onUpdate:focused": h[1] || (h[1] = (w) =>
|
|
1166
|
+
"onClick:clear": h[0] || (h[0] = (w) => l("click:clear")),
|
|
1167
|
+
"onUpdate:focused": h[1] || (h[1] = (w) => d(w))
|
|
1169
1168
|
}, q({
|
|
1170
1169
|
default: b((w) => [
|
|
1171
1170
|
ne("div", So, [
|
|
@@ -1208,51 +1207,51 @@ const ae = /* @__PURE__ */ M({
|
|
|
1208
1207
|
]), 1032, ["name", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : L("", !0);
|
|
1209
1208
|
};
|
|
1210
1209
|
}
|
|
1211
|
-
}), Pe = /* @__PURE__ */
|
|
1210
|
+
}), Pe = /* @__PURE__ */ he(Eo, [["__scopeId", "data-v-7ba7207d"]]), ve = {
|
|
1212
1211
|
Yes: "Yes",
|
|
1213
1212
|
No: "No",
|
|
1214
1213
|
Close: "Close"
|
|
1215
1214
|
};
|
|
1216
|
-
function
|
|
1215
|
+
function Rl(e) {
|
|
1217
1216
|
Object.keys(ve).forEach((t) => {
|
|
1218
1217
|
ve[t] = e(t);
|
|
1219
1218
|
});
|
|
1220
1219
|
}
|
|
1221
|
-
var
|
|
1220
|
+
var z = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(z || {});
|
|
1222
1221
|
const Re = 0;
|
|
1223
1222
|
((e) => {
|
|
1224
|
-
function t(
|
|
1225
|
-
return
|
|
1223
|
+
function t(a) {
|
|
1224
|
+
return a.toUpperCase() === "BUTTON" ? 0 : a.toUpperCase() === "TEXT" ? 1 : Re;
|
|
1226
1225
|
}
|
|
1227
1226
|
e.fromString = t;
|
|
1228
|
-
function n(
|
|
1229
|
-
const r = typeof
|
|
1227
|
+
function n(a) {
|
|
1228
|
+
const r = typeof a == "number" ? a : e.fromString(a);
|
|
1230
1229
|
return Object.values(e).includes(r) ? r : Re;
|
|
1231
1230
|
}
|
|
1232
1231
|
e.fromAny = n;
|
|
1233
|
-
function a
|
|
1234
|
-
const r = typeof
|
|
1232
|
+
function l(a) {
|
|
1233
|
+
const r = typeof a == "number" ? a : e.fromString(a);
|
|
1235
1234
|
return Object.values(e).includes(r);
|
|
1236
1235
|
}
|
|
1237
|
-
e.isDefined =
|
|
1238
|
-
})(
|
|
1239
|
-
Object.freeze(
|
|
1240
|
-
const
|
|
1236
|
+
e.isDefined = l;
|
|
1237
|
+
})(z || (z = {}));
|
|
1238
|
+
Object.freeze(z);
|
|
1239
|
+
const ze = ["xs", "sm", "md", "lg", "xl"];
|
|
1241
1240
|
class Ao {
|
|
1242
1241
|
constructor(t) {
|
|
1243
1242
|
$e(this, "_value");
|
|
1244
|
-
this._value = this.cleanBreakpoint(t, !0), t &&
|
|
1245
|
-
const
|
|
1246
|
-
|
|
1243
|
+
this._value = this.cleanBreakpoint(t, !0), t && ze.forEach((n) => {
|
|
1244
|
+
const l = this.cleanBreakpoint(t[n]);
|
|
1245
|
+
l && (this._value[n] = l);
|
|
1247
1246
|
});
|
|
1248
1247
|
}
|
|
1249
1248
|
getOptionsForBreakpoint(t) {
|
|
1250
|
-
const n = this.cleanBreakpoint(this._value),
|
|
1251
|
-
for (const
|
|
1252
|
-
const r = this._value[
|
|
1253
|
-
for (const
|
|
1254
|
-
(r == null ? void 0 : r[
|
|
1255
|
-
if (
|
|
1249
|
+
const n = this.cleanBreakpoint(this._value), l = Object.keys(n);
|
|
1250
|
+
for (const a of ze) {
|
|
1251
|
+
const r = this._value[a];
|
|
1252
|
+
for (const m of l)
|
|
1253
|
+
(r == null ? void 0 : r[m]) != null && (n[m] = r[m]);
|
|
1254
|
+
if (a === t) break;
|
|
1256
1255
|
}
|
|
1257
1256
|
return n;
|
|
1258
1257
|
}
|
|
@@ -1268,24 +1267,24 @@ class Lo extends Ao {
|
|
|
1268
1267
|
// eslint-disable-next-line class-methods-use-this
|
|
1269
1268
|
cleanBreakpoint(t, n = !1) {
|
|
1270
1269
|
if ((!t || !ft(t)) && !n) return null;
|
|
1271
|
-
const
|
|
1272
|
-
return n && (
|
|
1270
|
+
const l = {};
|
|
1271
|
+
return n && (l.renderAs = z.BUTTON, l.showLabel = !0, l.showIcon = !0), t && (t.renderAs != null && (l.renderAs = z.fromAny(t.renderAs)), ee(t.label) && (l.label = t.label), ee(t.icon) && (l.icon = t.icon), Fe(t.showLabel) && (l.showLabel = t.showLabel), Fe(t.showIcon) && (l.showIcon = t.showIcon)), Object.keys(l).length ? l : null;
|
|
1273
1272
|
}
|
|
1274
1273
|
}
|
|
1275
|
-
class
|
|
1274
|
+
class ke extends gt {
|
|
1276
1275
|
static create(t) {
|
|
1277
1276
|
return super.create(t);
|
|
1278
1277
|
}
|
|
1279
1278
|
getBreakpointValue(t) {
|
|
1280
1279
|
return _(() => {
|
|
1281
|
-
const
|
|
1280
|
+
const l = new Lo(this.value).getOptionsForBreakpoint(t.value);
|
|
1282
1281
|
return {
|
|
1283
|
-
name:
|
|
1284
|
-
label:
|
|
1285
|
-
icon:
|
|
1286
|
-
renderAs:
|
|
1287
|
-
showLabel: ee(
|
|
1288
|
-
showIcon: ee(
|
|
1282
|
+
name: l.name,
|
|
1283
|
+
label: l.showLabel ? l.label : void 0,
|
|
1284
|
+
icon: l.showIcon ? l.icon : void 0,
|
|
1285
|
+
renderAs: l.renderAs,
|
|
1286
|
+
showLabel: ee(l.label) && !fe(l.label) ? l.showLabel : !1,
|
|
1287
|
+
showIcon: ee(l.icon) && !fe(l.icon) ? l.showIcon : !1
|
|
1289
1288
|
};
|
|
1290
1289
|
});
|
|
1291
1290
|
}
|
|
@@ -1308,49 +1307,49 @@ class ye extends gt {
|
|
|
1308
1307
|
return this.value.renderAs;
|
|
1309
1308
|
}
|
|
1310
1309
|
static closeAction(t) {
|
|
1311
|
-
var
|
|
1310
|
+
var l;
|
|
1312
1311
|
const n = F(x({}, t != null ? t : {}), {
|
|
1313
1312
|
// any properties in data should overwrite properties in the constant
|
|
1314
1313
|
value: {
|
|
1315
1314
|
name: "close",
|
|
1316
1315
|
label: ve.Close,
|
|
1317
1316
|
icon: "close-outline",
|
|
1318
|
-
renderAs:
|
|
1317
|
+
renderAs: z.BUTTON,
|
|
1319
1318
|
showLabel: !0,
|
|
1320
1319
|
showIcon: !0
|
|
1321
1320
|
}
|
|
1322
1321
|
});
|
|
1323
|
-
return n.value = x(x({}, n.value), (
|
|
1322
|
+
return n.value = x(x({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ke.create(n);
|
|
1324
1323
|
}
|
|
1325
1324
|
static yesAction(t) {
|
|
1326
|
-
var
|
|
1325
|
+
var l;
|
|
1327
1326
|
const n = F(x({}, t != null ? t : {}), {
|
|
1328
1327
|
// any properties in data should overwrite properties in the constant
|
|
1329
1328
|
value: {
|
|
1330
1329
|
name: "yes",
|
|
1331
1330
|
label: ve.Yes,
|
|
1332
1331
|
icon: "thumbs-up-outline",
|
|
1333
|
-
renderAs:
|
|
1332
|
+
renderAs: z.BUTTON,
|
|
1334
1333
|
showLabel: !0,
|
|
1335
1334
|
showIcon: !0
|
|
1336
1335
|
}
|
|
1337
1336
|
});
|
|
1338
|
-
return n.value = x(x({}, n.value), (
|
|
1337
|
+
return n.value = x(x({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ke.create(n);
|
|
1339
1338
|
}
|
|
1340
1339
|
static noAction(t) {
|
|
1341
|
-
var
|
|
1340
|
+
var l;
|
|
1342
1341
|
const n = F(x({}, t != null ? t : {}), {
|
|
1343
1342
|
// any properties in data should overwrite properties in the constant
|
|
1344
1343
|
value: {
|
|
1345
1344
|
name: "no",
|
|
1346
1345
|
label: ve.No,
|
|
1347
1346
|
icon: "thumbs-down-outline",
|
|
1348
|
-
renderAs:
|
|
1347
|
+
renderAs: z.BUTTON,
|
|
1349
1348
|
showLabel: !0,
|
|
1350
1349
|
showIcon: !0
|
|
1351
1350
|
}
|
|
1352
1351
|
});
|
|
1353
|
-
return n.value = x(x({}, n.value), (
|
|
1352
|
+
return n.value = x(x({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ke.create(n);
|
|
1354
1353
|
}
|
|
1355
1354
|
}
|
|
1356
1355
|
const Mo = {
|
|
@@ -1364,40 +1363,40 @@ const Mo = {
|
|
|
1364
1363
|
showAsGroup: { default: "no" }
|
|
1365
1364
|
},
|
|
1366
1365
|
setup(e) {
|
|
1367
|
-
const t = e, n = Fo(),
|
|
1366
|
+
const t = e, n = Fo(), l = _(() => o(t.actions)), a = _(() => l.value.map((r) => x({
|
|
1368
1367
|
action: r
|
|
1369
1368
|
}, o(r.getBreakpointValue(n)))));
|
|
1370
|
-
return (r,
|
|
1371
|
-
const i =
|
|
1372
|
-
return
|
|
1369
|
+
return (r, m) => {
|
|
1370
|
+
const i = D("v-icon"), p = D("v-btn");
|
|
1371
|
+
return l.value.length > 0 ? (V(), R("div", {
|
|
1373
1372
|
key: 0,
|
|
1374
1373
|
class: Ie(["text-end", {
|
|
1375
1374
|
"button-group": r.showAsGroup === "grouped" || r.showAsGroup === "grouped-no-borders",
|
|
1376
1375
|
"with-border": r.showAsGroup === "grouped"
|
|
1377
1376
|
}])
|
|
1378
1377
|
}, [
|
|
1379
|
-
(V(!0), R(Ke, null, ct(
|
|
1380
|
-
key:
|
|
1381
|
-
variant:
|
|
1378
|
+
(V(!0), R(Ke, null, ct(a.value, (s, j) => (V(), P(p, {
|
|
1379
|
+
key: j,
|
|
1380
|
+
variant: s.renderAs === o(z).BUTTON ? "tonal" : "text",
|
|
1382
1381
|
elevation: 0,
|
|
1383
1382
|
size: r.buttonSize,
|
|
1384
|
-
onClick: dt((
|
|
1383
|
+
onClick: dt((u) => s.action.execute(u), ["stop"])
|
|
1385
1384
|
}, {
|
|
1386
1385
|
default: b(() => [
|
|
1387
|
-
|
|
1386
|
+
s.icon ? (V(), P(i, {
|
|
1388
1387
|
key: 0,
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
}, null, 8, ["
|
|
1392
|
-
|
|
1393
|
-
|
|
1388
|
+
size: "24",
|
|
1389
|
+
icon: s.icon
|
|
1390
|
+
}, null, 8, ["icon"])) : L("", !0),
|
|
1391
|
+
s.icon && s.label ? (V(), R("span", Mo)) : L("", !0),
|
|
1392
|
+
s.label ? (V(), R("span", Uo, Be(s.label), 1)) : L("", !0)
|
|
1394
1393
|
]),
|
|
1395
1394
|
_: 2
|
|
1396
1395
|
}, 1032, ["variant", "size", "onClick"]))), 128))
|
|
1397
1396
|
], 2)) : L("", !0);
|
|
1398
1397
|
};
|
|
1399
1398
|
}
|
|
1400
|
-
}), Ro = /* @__PURE__ */
|
|
1399
|
+
}), Ro = /* @__PURE__ */ he(Oo, [["__scopeId", "data-v-3502f34e"]]), zo = /* @__PURE__ */ M({
|
|
1401
1400
|
__name: "df-checkbox",
|
|
1402
1401
|
props: /* @__PURE__ */ Y({
|
|
1403
1402
|
allowNull: { type: Boolean },
|
|
@@ -1416,34 +1415,34 @@ const Mo = {
|
|
|
1416
1415
|
}, F(x({}, Q), { allowNull: !1 })),
|
|
1417
1416
|
emits: ["update:modelValue", "click:clear"],
|
|
1418
1417
|
setup(e, { emit: t }) {
|
|
1419
|
-
const n = e,
|
|
1418
|
+
const n = e, l = t, { errors: a, label: r, touched: m, value: i, vuetifyBindings: p } = K(n, l), s = _(() => n.allowNull && i.value == null), j = _({
|
|
1420
1419
|
get() {
|
|
1421
1420
|
return i.value;
|
|
1422
1421
|
},
|
|
1423
1422
|
set() {
|
|
1424
1423
|
}
|
|
1425
1424
|
});
|
|
1426
|
-
function
|
|
1427
|
-
const
|
|
1428
|
-
|
|
1425
|
+
function u() {
|
|
1426
|
+
const d = vt(i.value);
|
|
1427
|
+
d === !0 ? i.value = n.allowNull ? null : !1 : i.value = d === !1;
|
|
1429
1428
|
}
|
|
1430
|
-
return (
|
|
1431
|
-
const h =
|
|
1432
|
-
return V(),
|
|
1429
|
+
return (d, v) => {
|
|
1430
|
+
const h = D("v-checkbox");
|
|
1431
|
+
return V(), P(h, O({
|
|
1433
1432
|
modelValue: j.value,
|
|
1434
1433
|
"onUpdate:modelValue": v[0] || (v[0] = (g) => j.value = g)
|
|
1435
|
-
}, o(
|
|
1434
|
+
}, o(p), {
|
|
1436
1435
|
density: "compact",
|
|
1437
|
-
indeterminate:
|
|
1436
|
+
indeterminate: s.value,
|
|
1438
1437
|
"false-value": !1,
|
|
1439
1438
|
"true-value": !0,
|
|
1440
|
-
onChange:
|
|
1441
|
-
onBlur: v[1] || (v[1] = (g) =>
|
|
1439
|
+
onChange: u,
|
|
1440
|
+
onBlur: v[1] || (v[1] = (g) => m.value = !0)
|
|
1442
1441
|
}), q({
|
|
1443
1442
|
message: b(({ message: g }) => [
|
|
1444
|
-
B(o(
|
|
1443
|
+
B(o(le), {
|
|
1445
1444
|
message: g,
|
|
1446
|
-
errors: o(
|
|
1445
|
+
errors: o(a)
|
|
1447
1446
|
}, null, 8, ["message", "errors"])
|
|
1448
1447
|
]),
|
|
1449
1448
|
_: 2
|
|
@@ -1461,7 +1460,7 @@ const Mo = {
|
|
|
1461
1460
|
]), 1040, ["modelValue", "indeterminate"]);
|
|
1462
1461
|
};
|
|
1463
1462
|
}
|
|
1464
|
-
}),
|
|
1463
|
+
}), Wo = /* @__PURE__ */ M({
|
|
1465
1464
|
__name: "df-color",
|
|
1466
1465
|
props: /* @__PURE__ */ Y({
|
|
1467
1466
|
allowNull: { type: Boolean },
|
|
@@ -1480,24 +1479,24 @@ const Mo = {
|
|
|
1480
1479
|
}, F(x({}, Q), { allowNull: !1 })),
|
|
1481
1480
|
emits: ["update:modelValue", "click:clear"],
|
|
1482
1481
|
setup(e, { emit: t }) {
|
|
1483
|
-
const n = e,
|
|
1484
|
-
(
|
|
1482
|
+
const n = e, l = t, { errors: a, label: r, touched: m, value: i, vuetifyBindings: p } = K(n, l), s = E(!1), j = _(() => [
|
|
1483
|
+
(u) => n.control || !u && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(u) ? !0 : "Not a valid hex string."
|
|
1485
1484
|
]);
|
|
1486
|
-
return (
|
|
1487
|
-
const v =
|
|
1488
|
-
return V(),
|
|
1485
|
+
return (u, d) => {
|
|
1486
|
+
const v = D("v-color-picker"), h = D("v-menu"), g = D("v-text-field");
|
|
1487
|
+
return V(), P(g, O({
|
|
1489
1488
|
modelValue: o(i),
|
|
1490
|
-
"onUpdate:modelValue":
|
|
1491
|
-
}, o(
|
|
1492
|
-
clearable:
|
|
1489
|
+
"onUpdate:modelValue": d[2] || (d[2] = (y) => te(i) ? i.value = y : null)
|
|
1490
|
+
}, o(p), {
|
|
1491
|
+
clearable: u.allowNull,
|
|
1493
1492
|
type: "text",
|
|
1494
1493
|
rules: j.value,
|
|
1495
|
-
onBlur:
|
|
1494
|
+
onBlur: d[3] || (d[3] = (y) => m.value = !0)
|
|
1496
1495
|
}), q({
|
|
1497
1496
|
message: b(({ message: y }) => [
|
|
1498
|
-
B(o(
|
|
1497
|
+
B(o(le), {
|
|
1499
1498
|
message: y,
|
|
1500
|
-
errors: o(
|
|
1499
|
+
errors: o(a)
|
|
1501
1500
|
}, null, 8, ["message", "errors"])
|
|
1502
1501
|
]),
|
|
1503
1502
|
"prepend-inner": b(() => [
|
|
@@ -1507,15 +1506,15 @@ const Mo = {
|
|
|
1507
1506
|
]),
|
|
1508
1507
|
default: b(() => [
|
|
1509
1508
|
B(h, {
|
|
1510
|
-
modelValue:
|
|
1511
|
-
"onUpdate:modelValue":
|
|
1509
|
+
modelValue: s.value,
|
|
1510
|
+
"onUpdate:modelValue": d[1] || (d[1] = (y) => s.value = y),
|
|
1512
1511
|
"close-on-content-click": !1,
|
|
1513
1512
|
activator: "parent"
|
|
1514
1513
|
}, {
|
|
1515
1514
|
default: b(() => [
|
|
1516
1515
|
B(v, {
|
|
1517
1516
|
modelValue: o(i),
|
|
1518
|
-
"onUpdate:modelValue":
|
|
1517
|
+
"onUpdate:modelValue": d[0] || (d[0] = (y) => te(i) ? i.value = y : null),
|
|
1519
1518
|
mode: "hexa"
|
|
1520
1519
|
}, null, 8, ["modelValue"])
|
|
1521
1520
|
]),
|
|
@@ -1563,41 +1562,41 @@ const Mo = {
|
|
|
1563
1562
|
})),
|
|
1564
1563
|
emits: ["update:modelValue", "click:clear"],
|
|
1565
1564
|
setup(e, { emit: t }) {
|
|
1566
|
-
const n = e,
|
|
1565
|
+
const n = e, l = t, a = _(() => {
|
|
1567
1566
|
var f;
|
|
1568
1567
|
return (f = n.locale) != null ? f : o(Po.dateTimeLocale);
|
|
1569
1568
|
}), r = _(() => {
|
|
1570
|
-
var f,
|
|
1571
|
-
return (
|
|
1572
|
-
}), { touched:
|
|
1569
|
+
var f, c;
|
|
1570
|
+
return (c = (f = a.value.options) == null ? void 0 : f.weekStartsOn) != null ? c : 1;
|
|
1571
|
+
}), { touched: m, value: i, vuetifyBindings: p } = K(n, l), { inputType: s, displayFormatDate: j, displayFormatTime: u } = _e(n), d = E(""), v = _({
|
|
1573
1572
|
get() {
|
|
1574
|
-
return o(
|
|
1573
|
+
return o(d) === "date";
|
|
1575
1574
|
},
|
|
1576
1575
|
set(f) {
|
|
1577
|
-
|
|
1576
|
+
d.value = f ? "date" : "";
|
|
1578
1577
|
}
|
|
1579
1578
|
}), h = _({
|
|
1580
1579
|
get() {
|
|
1581
|
-
return o(
|
|
1580
|
+
return o(d) === "time";
|
|
1582
1581
|
},
|
|
1583
1582
|
set(f) {
|
|
1584
|
-
|
|
1583
|
+
d.value = f ? "time" : "";
|
|
1585
1584
|
}
|
|
1586
1585
|
}), g = (f) => `${de(f, "yyyy-MM-dd")}T${de(f, "HH:mm")}:00`, y = E(null);
|
|
1587
|
-
function w(f,
|
|
1586
|
+
function w(f, c) {
|
|
1588
1587
|
if (f == null)
|
|
1589
1588
|
y.value = null;
|
|
1590
|
-
else if (
|
|
1591
|
-
if (o(
|
|
1589
|
+
else if (c === -1)
|
|
1590
|
+
if (o(s) === "time")
|
|
1592
1591
|
y.value = g(/* @__PURE__ */ new Date()), w(`T${f}`, 1);
|
|
1593
1592
|
else {
|
|
1594
|
-
const
|
|
1595
|
-
w(
|
|
1593
|
+
const $ = g(new Date(f));
|
|
1594
|
+
w($, 0), w($, 1);
|
|
1596
1595
|
}
|
|
1597
1596
|
else {
|
|
1598
1597
|
y.value == null && (y.value = g(/* @__PURE__ */ new Date()));
|
|
1599
|
-
const
|
|
1600
|
-
|
|
1598
|
+
const $ = y.value.split(/[TZ]/g), U = f.split(/[TZ]/g);
|
|
1599
|
+
$[c] = U[c], y.value = g(/* @__PURE__ */ new Date(`${$[0]}T${$[1].split(".")[0]}`)), o(s) === "date" ? i.value = $[0] : o(s) === "time" ? i.value = $[1] : i.value = o(y) + de(/* @__PURE__ */ new Date(), "XXX");
|
|
1601
1600
|
}
|
|
1602
1601
|
}
|
|
1603
1602
|
ie(i, (f) => w(f, -1), { immediate: !0 });
|
|
@@ -1605,8 +1604,8 @@ const Mo = {
|
|
|
1605
1604
|
get() {
|
|
1606
1605
|
const f = o(y);
|
|
1607
1606
|
if (f == null) return null;
|
|
1608
|
-
const
|
|
1609
|
-
return Number.isNaN(
|
|
1607
|
+
const c = new Date(f);
|
|
1608
|
+
return Number.isNaN(c.getTime()) ? null : c;
|
|
1610
1609
|
},
|
|
1611
1610
|
set(f) {
|
|
1612
1611
|
w(g(f), 0);
|
|
@@ -1622,81 +1621,81 @@ const Mo = {
|
|
|
1622
1621
|
}), T = _({
|
|
1623
1622
|
get() {
|
|
1624
1623
|
const f = o(N);
|
|
1625
|
-
return f == null ? "" : de(f, o(j), { locale:
|
|
1624
|
+
return f == null ? "" : de(f, o(j), { locale: a.value });
|
|
1626
1625
|
},
|
|
1627
1626
|
set(f) {
|
|
1628
1627
|
try {
|
|
1629
|
-
const
|
|
1630
|
-
w(g(
|
|
1631
|
-
} catch (
|
|
1632
|
-
console.error(
|
|
1628
|
+
const c = kt(f, o(j), /* @__PURE__ */ new Date(), { locale: a.value });
|
|
1629
|
+
w(g(c), 0);
|
|
1630
|
+
} catch (c) {
|
|
1631
|
+
console.error(c);
|
|
1633
1632
|
}
|
|
1634
1633
|
}
|
|
1635
|
-
}),
|
|
1634
|
+
}), W = _({
|
|
1636
1635
|
get() {
|
|
1637
1636
|
const f = o(N);
|
|
1638
|
-
return f == null ? "" : de(f, o(
|
|
1637
|
+
return f == null ? "" : de(f, o(u), { locale: a.value });
|
|
1639
1638
|
},
|
|
1640
1639
|
set(f) {
|
|
1641
|
-
const
|
|
1642
|
-
if (
|
|
1643
|
-
let
|
|
1644
|
-
const U = Le(
|
|
1645
|
-
Me(
|
|
1640
|
+
const c = f.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
1641
|
+
if (c == null) return;
|
|
1642
|
+
let $ = Le(c[1]);
|
|
1643
|
+
const U = Le(c[2]);
|
|
1644
|
+
Me($) || Me(U) || (c[3] && c[3].toLowerCase() === "pm" && $ < 13 && ($ += 12), w(`T${$.toString().padStart(2, "0")}:${U.toString().padStart(2, "0")}:00`, 1));
|
|
1646
1645
|
}
|
|
1647
1646
|
});
|
|
1648
|
-
return (f,
|
|
1649
|
-
const
|
|
1650
|
-
return V(),
|
|
1647
|
+
return (f, c) => {
|
|
1648
|
+
const $ = D("v-date-picker"), U = D("v-confirm-edit"), se = D("v-menu"), ue = D("v-text-field"), C = D("v-time-picker");
|
|
1649
|
+
return V(), P(o(Pe), O(n, {
|
|
1651
1650
|
clearable: f.clearable,
|
|
1652
|
-
"onClick:clear":
|
|
1653
|
-
onBlur:
|
|
1651
|
+
"onClick:clear": c[14] || (c[14] = (I) => i.value = null),
|
|
1652
|
+
onBlur: c[15] || (c[15] = (I) => m.value = !0)
|
|
1654
1653
|
}), {
|
|
1655
1654
|
default: b((I) => [
|
|
1656
1655
|
ne("div", Ho, [
|
|
1657
|
-
["date", "datetime"].includes(o(
|
|
1656
|
+
["date", "datetime"].includes(o(s)) ? (V(), P(ue, O({
|
|
1658
1657
|
key: 0,
|
|
1659
1658
|
modelValue: T.value,
|
|
1660
|
-
"onUpdate:modelValue":
|
|
1659
|
+
"onUpdate:modelValue": c[4] || (c[4] = (k) => T.value = k),
|
|
1661
1660
|
style: { "flex-grow": "4" },
|
|
1662
1661
|
density: "compact",
|
|
1663
1662
|
variant: "plain",
|
|
1664
1663
|
clearable: !1,
|
|
1665
1664
|
"hide-details": !0,
|
|
1666
|
-
readonly: o(
|
|
1667
|
-
disabled: o(
|
|
1668
|
-
name: `${o(
|
|
1665
|
+
readonly: o(p).readonly,
|
|
1666
|
+
disabled: o(p).disabled,
|
|
1667
|
+
name: `${o(p).name}-date`
|
|
1669
1668
|
}, f.passthroughAttrs, {
|
|
1670
|
-
onClick:
|
|
1671
|
-
onKeydown:
|
|
1669
|
+
onClick: c[5] || (c[5] = (k) => d.value = "date"),
|
|
1670
|
+
onKeydown: c[6] || (c[6] = Ae((k) => d.value = "date", ["space"])),
|
|
1672
1671
|
onFocus: (k) => I.focus(),
|
|
1673
1672
|
onBlur: (k) => I.blur()
|
|
1674
1673
|
}), {
|
|
1675
1674
|
default: b(() => [
|
|
1676
|
-
B(
|
|
1675
|
+
B(se, {
|
|
1677
1676
|
modelValue: v.value,
|
|
1678
|
-
"onUpdate:modelValue":
|
|
1677
|
+
"onUpdate:modelValue": c[3] || (c[3] = (k) => v.value = k),
|
|
1679
1678
|
"close-on-content-click": !1,
|
|
1680
1679
|
activator: "parent"
|
|
1681
1680
|
}, {
|
|
1682
1681
|
default: b(() => [
|
|
1683
1682
|
B(U, {
|
|
1684
1683
|
modelValue: N.value,
|
|
1685
|
-
"onUpdate:modelValue":
|
|
1686
|
-
onCancel:
|
|
1687
|
-
onSave:
|
|
1684
|
+
"onUpdate:modelValue": c[0] || (c[0] = (k) => N.value = k),
|
|
1685
|
+
onCancel: c[1] || (c[1] = (k) => d.value = ""),
|
|
1686
|
+
onSave: c[2] || (c[2] = (k) => d.value = "")
|
|
1688
1687
|
}, {
|
|
1689
1688
|
default: b(({ model: k, actions: Z }) => [
|
|
1690
|
-
B(
|
|
1689
|
+
B($, {
|
|
1691
1690
|
modelValue: k.value,
|
|
1692
|
-
"onUpdate:modelValue": (
|
|
1691
|
+
"onUpdate:modelValue": (ce) => k.value = ce,
|
|
1693
1692
|
"hide-header": !0,
|
|
1694
1693
|
"first-day-of-week": r.value,
|
|
1695
1694
|
"show-adjacent-months": !0,
|
|
1696
1695
|
"show-week": !0
|
|
1697
1696
|
}, {
|
|
1698
1697
|
actions: b(() => [
|
|
1699
|
-
(V(),
|
|
1698
|
+
(V(), P(be(Z)))
|
|
1700
1699
|
]),
|
|
1701
1700
|
_: 2
|
|
1702
1701
|
}, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
|
|
@@ -1709,47 +1708,47 @@ const Mo = {
|
|
|
1709
1708
|
]),
|
|
1710
1709
|
_: 2
|
|
1711
1710
|
}, 1040, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : L("", !0),
|
|
1712
|
-
["time", "datetime"].includes(o(
|
|
1711
|
+
["time", "datetime"].includes(o(s)) ? (V(), P(ue, O({
|
|
1713
1712
|
key: 1,
|
|
1714
|
-
modelValue:
|
|
1715
|
-
"onUpdate:modelValue":
|
|
1713
|
+
modelValue: W.value,
|
|
1714
|
+
"onUpdate:modelValue": c[11] || (c[11] = (k) => W.value = k),
|
|
1716
1715
|
style: { "flex-grow": "3" },
|
|
1717
1716
|
density: "compact",
|
|
1718
1717
|
variant: "plain",
|
|
1719
1718
|
clearable: !1,
|
|
1720
1719
|
"hide-details": !0,
|
|
1721
|
-
readonly: o(
|
|
1722
|
-
disabled: o(
|
|
1723
|
-
name: `${o(
|
|
1720
|
+
readonly: o(p).readonly,
|
|
1721
|
+
disabled: o(p).disabled,
|
|
1722
|
+
name: `${o(p).name}-time`
|
|
1724
1723
|
}, f.passthroughAttrs, {
|
|
1725
|
-
onClick:
|
|
1726
|
-
onKeydown:
|
|
1724
|
+
onClick: c[12] || (c[12] = (k) => d.value = "time"),
|
|
1725
|
+
onKeydown: c[13] || (c[13] = Ae((k) => d.value = "time", ["space"])),
|
|
1727
1726
|
onFocus: (k) => I.focus(),
|
|
1728
1727
|
onBlur: (k) => I.blur()
|
|
1729
1728
|
}), {
|
|
1730
1729
|
default: b(() => [
|
|
1731
|
-
B(
|
|
1730
|
+
B(se, {
|
|
1732
1731
|
modelValue: h.value,
|
|
1733
|
-
"onUpdate:modelValue":
|
|
1732
|
+
"onUpdate:modelValue": c[10] || (c[10] = (k) => h.value = k),
|
|
1734
1733
|
"close-on-content-click": !1,
|
|
1735
1734
|
activator: "parent"
|
|
1736
1735
|
}, {
|
|
1737
1736
|
default: b(() => [
|
|
1738
1737
|
B(U, {
|
|
1739
1738
|
modelValue: A.value,
|
|
1740
|
-
"onUpdate:modelValue":
|
|
1741
|
-
onCancel:
|
|
1742
|
-
onSave:
|
|
1739
|
+
"onUpdate:modelValue": c[7] || (c[7] = (k) => A.value = k),
|
|
1740
|
+
onCancel: c[8] || (c[8] = (k) => d.value = ""),
|
|
1741
|
+
onSave: c[9] || (c[9] = (k) => d.value = "")
|
|
1743
1742
|
}, {
|
|
1744
1743
|
default: b(({ model: k, actions: Z }) => [
|
|
1745
1744
|
B(C, {
|
|
1746
1745
|
modelValue: k.value,
|
|
1747
|
-
"onUpdate:modelValue": (
|
|
1746
|
+
"onUpdate:modelValue": (ce) => k.value = ce,
|
|
1748
1747
|
"hide-header": !0,
|
|
1749
1748
|
format: "24hr"
|
|
1750
1749
|
}, {
|
|
1751
1750
|
actions: b(() => [
|
|
1752
|
-
(V(),
|
|
1751
|
+
(V(), P(be(Z)))
|
|
1753
1752
|
]),
|
|
1754
1753
|
_: 2
|
|
1755
1754
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1790,7 +1789,7 @@ const Mo = {
|
|
|
1790
1789
|
}, Q),
|
|
1791
1790
|
emits: ["update:modelValue", "click:clear"],
|
|
1792
1791
|
setup(e, { emit: t }) {
|
|
1793
|
-
const n = e,
|
|
1792
|
+
const n = e, l = t, { touched: a, value: r, vuetifyBindings: m } = K(n, l), i = E(null), p = E(null), s = E(0), j = E(Math.round(Math.random() * 1e3)), u = E(), d = _(() => p.value && s.value < 100), v = _(() => !u.value && r.value ? n.modelValue : "");
|
|
1794
1793
|
function h() {
|
|
1795
1794
|
i.value && window.clearInterval(i.value);
|
|
1796
1795
|
}
|
|
@@ -1803,22 +1802,22 @@ const Mo = {
|
|
|
1803
1802
|
A ? g() : h();
|
|
1804
1803
|
});
|
|
1805
1804
|
function y() {
|
|
1806
|
-
return
|
|
1807
|
-
r.value && (yield n.comms.delete(r.value)), r.value = null,
|
|
1805
|
+
return ge(this, null, function* () {
|
|
1806
|
+
r.value && (yield n.comms.delete(r.value)), r.value = null, s.value = 0, j.value = Math.round(Math.random() * 1e3), p.value = null, u.value = null, h();
|
|
1808
1807
|
});
|
|
1809
1808
|
}
|
|
1810
1809
|
function w(A) {
|
|
1811
|
-
return
|
|
1812
|
-
|
|
1810
|
+
return ge(this, null, function* () {
|
|
1811
|
+
s.value = -1, p.value = A;
|
|
1813
1812
|
try {
|
|
1814
1813
|
r.value = yield n.comms.upload(
|
|
1815
1814
|
A,
|
|
1816
|
-
(T,
|
|
1817
|
-
|
|
1815
|
+
(T, W) => {
|
|
1816
|
+
s.value = Math.round(T * 100 / W);
|
|
1818
1817
|
}
|
|
1819
|
-
),
|
|
1818
|
+
), s.value = 100, g();
|
|
1820
1819
|
} catch (T) {
|
|
1821
|
-
throw
|
|
1820
|
+
throw s.value = 0, p.value = null, j.value = Math.round(Math.random() * 1e3), u.value = null, T;
|
|
1822
1821
|
}
|
|
1823
1822
|
});
|
|
1824
1823
|
}
|
|
@@ -1826,43 +1825,43 @@ const Mo = {
|
|
|
1826
1825
|
A && (Array.isArray(A) ? console.error("Uploading multiple files not supported right now") : w(A));
|
|
1827
1826
|
}
|
|
1828
1827
|
return (A, T) => {
|
|
1829
|
-
const
|
|
1830
|
-
return V(),
|
|
1828
|
+
const W = D("v-icon"), f = D("v-progress-linear"), c = D("v-file-input");
|
|
1829
|
+
return V(), P(o(Pe), O(F(x({}, n), { loading: d.value }), {
|
|
1831
1830
|
clearable: "",
|
|
1832
1831
|
"onClick:clear": y,
|
|
1833
|
-
onBlur: T[1] || (T[1] = (
|
|
1832
|
+
onBlur: T[1] || (T[1] = ($) => a.value = !0)
|
|
1834
1833
|
}), {
|
|
1835
1834
|
"prepend-inner": b(() => [
|
|
1836
|
-
B(
|
|
1835
|
+
B(W, { icon: "$file" })
|
|
1837
1836
|
]),
|
|
1838
1837
|
loader: b(() => [
|
|
1839
|
-
|
|
1838
|
+
p.value && s.value < 100 ? (V(), P(f, {
|
|
1840
1839
|
key: 0,
|
|
1841
|
-
"model-value":
|
|
1842
|
-
indeterminate:
|
|
1840
|
+
"model-value": s.value,
|
|
1841
|
+
indeterminate: s.value === -1
|
|
1843
1842
|
}, null, 8, ["model-value", "indeterminate"])) : L("", !0)
|
|
1844
1843
|
]),
|
|
1845
|
-
default: b((
|
|
1844
|
+
default: b(($) => [
|
|
1846
1845
|
ne("div", Xo, [
|
|
1847
|
-
B(
|
|
1848
|
-
modelValue:
|
|
1849
|
-
"onUpdate:modelValue": T[0] || (T[0] = (U) =>
|
|
1846
|
+
B(c, O({
|
|
1847
|
+
modelValue: u.value,
|
|
1848
|
+
"onUpdate:modelValue": T[0] || (T[0] = (U) => u.value = U),
|
|
1850
1849
|
label: v.value,
|
|
1851
1850
|
density: "compact",
|
|
1852
1851
|
variant: "plain",
|
|
1853
|
-
readonly: o(
|
|
1854
|
-
disabled: o(
|
|
1855
|
-
name: o(
|
|
1852
|
+
readonly: o(m).readonly,
|
|
1853
|
+
disabled: o(m).disabled,
|
|
1854
|
+
name: o(m).name,
|
|
1856
1855
|
"hide-details": !0,
|
|
1857
1856
|
"show-size": !0,
|
|
1858
1857
|
multiple: !1,
|
|
1859
|
-
style:
|
|
1858
|
+
style: p.value && s.value < 100 ? "visibility: hidden" : "",
|
|
1860
1859
|
clearable: !1
|
|
1861
1860
|
}, A.passthroughAttrs, {
|
|
1862
1861
|
"prepend-icon": "",
|
|
1863
1862
|
"onUpdate:modelValue": N,
|
|
1864
|
-
onFocus: (U) =>
|
|
1865
|
-
onBlur: (U) =>
|
|
1863
|
+
onFocus: (U) => $.focus(),
|
|
1864
|
+
onBlur: (U) => $.blur()
|
|
1866
1865
|
}), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
|
|
1867
1866
|
])
|
|
1868
1867
|
]),
|
|
@@ -1899,22 +1898,22 @@ const Mo = {
|
|
|
1899
1898
|
})),
|
|
1900
1899
|
emits: ["update:modelValue", "click:clear"],
|
|
1901
1900
|
setup(e, { emit: t }) {
|
|
1902
|
-
const n = e,
|
|
1901
|
+
const n = e, l = t, { errors: a, label: r, touched: m, value: i, vuetifyBindings: p } = K(n, l), { inputType: s, max: j, min: u, precision: d, step: v } = _e(n), h = _(() => s.value === "number"), g = _(() => h.value ? { min: o(u), max: o(j), precision: o(d), step: o(v) } : {});
|
|
1903
1902
|
return (y, w) => {
|
|
1904
|
-
const N =
|
|
1903
|
+
const N = D("v-text-field"), A = D("v-number-input");
|
|
1905
1904
|
return V(), R("div", qo, [
|
|
1906
|
-
h.value ? (V(),
|
|
1905
|
+
h.value ? (V(), P(A, O({
|
|
1907
1906
|
key: 1,
|
|
1908
1907
|
modelValue: o(i),
|
|
1909
1908
|
"onUpdate:modelValue": w[2] || (w[2] = (T) => te(i) ? i.value = T : null)
|
|
1910
|
-
}, x(x({}, o(
|
|
1909
|
+
}, x(x({}, o(p)), g.value), {
|
|
1911
1910
|
density: "compact",
|
|
1912
1911
|
"control-variant": "stacked"
|
|
1913
1912
|
}), q({
|
|
1914
1913
|
message: b(({ message: T }) => [
|
|
1915
|
-
B(o(
|
|
1914
|
+
B(o(le), {
|
|
1916
1915
|
message: T,
|
|
1917
|
-
errors: o(
|
|
1916
|
+
errors: o(a)
|
|
1918
1917
|
}, null, 8, ["message", "errors"])
|
|
1919
1918
|
]),
|
|
1920
1919
|
_: 2
|
|
@@ -1929,18 +1928,18 @@ const Mo = {
|
|
|
1929
1928
|
]),
|
|
1930
1929
|
key: "0"
|
|
1931
1930
|
} : void 0
|
|
1932
|
-
]), 1040, ["modelValue"])) : (V(),
|
|
1931
|
+
]), 1040, ["modelValue"])) : (V(), P(N, O({
|
|
1933
1932
|
key: 0,
|
|
1934
1933
|
modelValue: o(i),
|
|
1935
1934
|
"onUpdate:modelValue": w[0] || (w[0] = (T) => te(i) ? i.value = T : null)
|
|
1936
|
-
}, o(
|
|
1937
|
-
type: o(
|
|
1938
|
-
onBlur: w[1] || (w[1] = (T) =>
|
|
1935
|
+
}, o(p), {
|
|
1936
|
+
type: o(s),
|
|
1937
|
+
onBlur: w[1] || (w[1] = (T) => m.value = !0)
|
|
1939
1938
|
}), q({
|
|
1940
1939
|
message: b(({ message: T }) => [
|
|
1941
|
-
B(o(
|
|
1940
|
+
B(o(le), {
|
|
1942
1941
|
message: T,
|
|
1943
|
-
errors: o(
|
|
1942
|
+
errors: o(a)
|
|
1944
1943
|
}, null, 8, ["message", "errors"])
|
|
1945
1944
|
]),
|
|
1946
1945
|
_: 2
|
|
@@ -1959,7 +1958,7 @@ const Mo = {
|
|
|
1959
1958
|
]);
|
|
1960
1959
|
};
|
|
1961
1960
|
}
|
|
1962
|
-
}), Qo = /* @__PURE__ */
|
|
1961
|
+
}), Qo = /* @__PURE__ */ he(Yo, [["__scopeId", "data-v-a3a9a978"]]), Zo = { class: "editor-container" }, Jo = { class: "editor-container__editor" }, el = { ref: "editorElement" }, tl = /* @__PURE__ */ M({
|
|
1963
1962
|
__name: "ck-editor-custom",
|
|
1964
1963
|
props: {
|
|
1965
1964
|
modelValue: { default: "" },
|
|
@@ -1968,10 +1967,10 @@ const Mo = {
|
|
|
1968
1967
|
},
|
|
1969
1968
|
emits: ["update:modelValue"],
|
|
1970
1969
|
setup(e, { expose: t, emit: n }) {
|
|
1971
|
-
mt((
|
|
1972
|
-
"3d4d5a06":
|
|
1970
|
+
mt((u) => ({
|
|
1971
|
+
"3d4d5a06": u.minHeight
|
|
1973
1972
|
}));
|
|
1974
|
-
const
|
|
1973
|
+
const l = n, a = E(!1), r = cn, s = {
|
|
1975
1974
|
toolbar: {
|
|
1976
1975
|
items: [
|
|
1977
1976
|
"undo",
|
|
@@ -2024,8 +2023,8 @@ const Mo = {
|
|
|
2024
2023
|
Ut,
|
|
2025
2024
|
Ot,
|
|
2026
2025
|
Rt,
|
|
2027
|
-
Wt,
|
|
2028
2026
|
zt,
|
|
2027
|
+
Wt,
|
|
2029
2028
|
Ht,
|
|
2030
2029
|
Kt,
|
|
2031
2030
|
Xt,
|
|
@@ -2039,8 +2038,8 @@ const Mo = {
|
|
|
2039
2038
|
tn,
|
|
2040
2039
|
nn,
|
|
2041
2040
|
on,
|
|
2042
|
-
an,
|
|
2043
2041
|
ln,
|
|
2042
|
+
an,
|
|
2044
2043
|
rn,
|
|
2045
2044
|
sn,
|
|
2046
2045
|
un
|
|
@@ -2102,32 +2101,32 @@ const Mo = {
|
|
|
2102
2101
|
},
|
|
2103
2102
|
table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] }
|
|
2104
2103
|
};
|
|
2105
|
-
|
|
2106
|
-
|
|
2104
|
+
We(() => {
|
|
2105
|
+
a.value = !0;
|
|
2107
2106
|
});
|
|
2108
|
-
const j = (
|
|
2107
|
+
const j = (u) => {
|
|
2109
2108
|
};
|
|
2110
|
-
return t({ onEditorReady: j }), (
|
|
2111
|
-
const v =
|
|
2109
|
+
return t({ onEditorReady: j }), (u, d) => {
|
|
2110
|
+
const v = D("ckeditor");
|
|
2112
2111
|
return V(), R("div", Zo, [
|
|
2113
2112
|
ne("div", Jo, [
|
|
2114
|
-
ne("div",
|
|
2115
|
-
|
|
2113
|
+
ne("div", el, [
|
|
2114
|
+
a.value ? (V(), P(v, {
|
|
2116
2115
|
key: 0,
|
|
2117
|
-
"model-value":
|
|
2116
|
+
"model-value": u.modelValue,
|
|
2118
2117
|
editor: o(r),
|
|
2119
|
-
config:
|
|
2120
|
-
disabled:
|
|
2121
|
-
style: Xe(`min-height: ${
|
|
2118
|
+
config: s,
|
|
2119
|
+
disabled: u.disabled,
|
|
2120
|
+
style: Xe(`min-height: ${u.minHeight}`),
|
|
2122
2121
|
onReady: j,
|
|
2123
|
-
"onUpdate:modelValue":
|
|
2122
|
+
"onUpdate:modelValue": d[0] || (d[0] = (h) => l("update:modelValue", h))
|
|
2124
2123
|
}, null, 8, ["model-value", "editor", "disabled", "style"])) : L("", !0)
|
|
2125
2124
|
], 512)
|
|
2126
2125
|
])
|
|
2127
2126
|
]);
|
|
2128
2127
|
};
|
|
2129
2128
|
}
|
|
2130
|
-
}),
|
|
2129
|
+
}), nl = /* @__PURE__ */ M({
|
|
2131
2130
|
__name: "df-rtf-editor",
|
|
2132
2131
|
props: /* @__PURE__ */ Y({
|
|
2133
2132
|
minHeight: {},
|
|
@@ -2146,57 +2145,57 @@ const Mo = {
|
|
|
2146
2145
|
}, F(x({}, Q), { minHeight: void 0 })),
|
|
2147
2146
|
emits: ["update:modelValue", "click:clear"],
|
|
2148
2147
|
setup(e, { emit: t }) {
|
|
2149
|
-
const n = e,
|
|
2150
|
-
return (
|
|
2151
|
-
default: b((
|
|
2152
|
-
B(
|
|
2148
|
+
const n = e, l = t, { value: a, vuetifyBindings: r } = K(n, l);
|
|
2149
|
+
return (m, i) => (V(), P(o(Pe), X(G(n)), {
|
|
2150
|
+
default: b((p) => [
|
|
2151
|
+
B(tl, O({
|
|
2153
2152
|
ref: "$editor",
|
|
2154
|
-
modelValue: o(
|
|
2155
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
2156
|
-
class: { "mt-8": !!
|
|
2157
|
-
"min-height":
|
|
2153
|
+
modelValue: o(a),
|
|
2154
|
+
"onUpdate:modelValue": i[0] || (i[0] = (s) => te(a) ? a.value = s : null),
|
|
2155
|
+
class: { "mt-8": !!m.label },
|
|
2156
|
+
"min-height": m.minHeight,
|
|
2158
2157
|
disabled: o(r).disabled
|
|
2159
|
-
},
|
|
2160
|
-
onFocusin: (
|
|
2161
|
-
onFocusout: (
|
|
2158
|
+
}, m.passthroughAttrs, {
|
|
2159
|
+
onFocusin: (s) => p.focus(),
|
|
2160
|
+
onFocusout: (s) => p.blur()
|
|
2162
2161
|
}), null, 16, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
|
|
2163
2162
|
]),
|
|
2164
2163
|
_: 1
|
|
2165
2164
|
}, 16));
|
|
2166
2165
|
}
|
|
2167
2166
|
});
|
|
2168
|
-
function
|
|
2167
|
+
function ol(e) {
|
|
2169
2168
|
return e.map((t) => ({ value: t.id, title: t.text, icon: t.icon }));
|
|
2170
2169
|
}
|
|
2171
2170
|
function J(e, t) {
|
|
2172
2171
|
var n;
|
|
2173
2172
|
return e == null || Ue(e) && e.length === 0 ? null : t ? Ge(e) : Ue(e) ? (n = qe(e)) != null ? n : null : e;
|
|
2174
2173
|
}
|
|
2175
|
-
function
|
|
2174
|
+
function Ve(e, t) {
|
|
2176
2175
|
if (t == null) return [];
|
|
2177
2176
|
const n = Ge(t);
|
|
2178
|
-
return e.filter((
|
|
2177
|
+
return e.filter((l) => n.some((a) => a === l.id));
|
|
2179
2178
|
}
|
|
2180
|
-
function
|
|
2181
|
-
var
|
|
2179
|
+
function ye(e, t, n, l, a) {
|
|
2180
|
+
var m;
|
|
2182
2181
|
const r = J(e, n);
|
|
2183
2182
|
if (r == null) {
|
|
2184
2183
|
t.value = n ? [] : null;
|
|
2185
2184
|
return;
|
|
2186
2185
|
}
|
|
2187
2186
|
if (n)
|
|
2188
|
-
|
|
2189
|
-
else if (
|
|
2187
|
+
l ? t.value = r : t.value = Ve(a, r).map((i) => i.id);
|
|
2188
|
+
else if (l)
|
|
2190
2189
|
t.value = r;
|
|
2191
2190
|
else {
|
|
2192
|
-
const i = qe(
|
|
2193
|
-
t.value = (
|
|
2191
|
+
const i = qe(Ve(a, r));
|
|
2192
|
+
t.value = (m = i == null ? void 0 : i.id) != null ? m : null;
|
|
2194
2193
|
}
|
|
2195
2194
|
}
|
|
2196
|
-
const
|
|
2195
|
+
const ll = {
|
|
2197
2196
|
key: 0,
|
|
2198
2197
|
class: "me-1"
|
|
2199
|
-
},
|
|
2198
|
+
}, al = /* @__PURE__ */ M({
|
|
2200
2199
|
__name: "df-select",
|
|
2201
2200
|
props: /* @__PURE__ */ Y({
|
|
2202
2201
|
choices: {},
|
|
@@ -2225,42 +2224,42 @@ const aa = {
|
|
|
2225
2224
|
})),
|
|
2226
2225
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
2227
2226
|
setup(e, { emit: t }) {
|
|
2228
|
-
const n = e, { choices:
|
|
2229
|
-
function
|
|
2230
|
-
|
|
2227
|
+
const n = e, { choices: l, multiple: a, allowTags: r, allowNull: m, cssClass: i, visibility: p } = _e(n), s = t, { errors: j, label: u, touched: d, value: v, vuetifyBindings: h } = K(n, s), g = E(null), y = E(!1), w = E([]), N = _(() => o(y) ? o(w) : o(l) || []), A = E(!1), T = _(() => ol(N.value));
|
|
2228
|
+
function W(C) {
|
|
2229
|
+
s("update:modelValueDisplay", Ve(N.value, C));
|
|
2231
2230
|
}
|
|
2232
2231
|
let f = !1;
|
|
2233
|
-
function
|
|
2232
|
+
function c(C) {
|
|
2234
2233
|
f = !0, v.value = C, Ne(() => {
|
|
2235
2234
|
f = !1;
|
|
2236
2235
|
});
|
|
2237
2236
|
}
|
|
2238
2237
|
ie(g, (C) => {
|
|
2239
2238
|
h.value.readonly || Ne(() => {
|
|
2240
|
-
const I = J(C,
|
|
2241
|
-
|
|
2239
|
+
const I = J(C, a.value);
|
|
2240
|
+
W(I), c(I);
|
|
2242
2241
|
});
|
|
2243
2242
|
}, { deep: !0 }), ie(v, (C) => {
|
|
2244
2243
|
if (!f) {
|
|
2245
|
-
const I = J(C,
|
|
2246
|
-
|
|
2244
|
+
const I = J(C, a.value);
|
|
2245
|
+
ye(I, g, a.value, !1, N.value);
|
|
2247
2246
|
}
|
|
2248
2247
|
}, { deep: !0 });
|
|
2249
|
-
function
|
|
2248
|
+
function $() {
|
|
2250
2249
|
if (h.value.readonly || r.value) return;
|
|
2251
|
-
const C = J(g.value,
|
|
2252
|
-
|
|
2250
|
+
const C = J(g.value, a.value);
|
|
2251
|
+
ye(C, g, a.value, !1, N.value), c(C);
|
|
2253
2252
|
}
|
|
2254
2253
|
function U(C) {
|
|
2255
2254
|
let I;
|
|
2256
|
-
|
|
2255
|
+
a.value && Array.isArray(g.value) ? I = J(g.value.filter((k) => k !== C), a.value) : I = null, ye(I, g, a.value, !1, N.value), c(I);
|
|
2257
2256
|
}
|
|
2258
|
-
function
|
|
2259
|
-
return
|
|
2260
|
-
if (!(
|
|
2257
|
+
function se(C, I) {
|
|
2258
|
+
return ge(this, null, function* () {
|
|
2259
|
+
if (!(l.value || n.fetchChoices === void 0)) {
|
|
2261
2260
|
A.value = !0;
|
|
2262
2261
|
try {
|
|
2263
|
-
const k =
|
|
2262
|
+
const k = Ve(N.value, J(g.value, a.value)), Z = yield n.fetchChoices(C, I);
|
|
2264
2263
|
w.value = bt([...k, ...Z], "id"), y.value = !0;
|
|
2265
2264
|
} finally {
|
|
2266
2265
|
A.value = !1;
|
|
@@ -2268,23 +2267,23 @@ const aa = {
|
|
|
2268
2267
|
}
|
|
2269
2268
|
});
|
|
2270
2269
|
}
|
|
2271
|
-
function
|
|
2270
|
+
function ue() {
|
|
2272
2271
|
let C = v.value;
|
|
2273
|
-
!
|
|
2272
|
+
!m.value && C == null && T.value.length && (C = T.value[0].value), C = J(C, a.value), ye(C, g, a.value, r.value, N.value), W(C), c(C);
|
|
2274
2273
|
}
|
|
2275
|
-
return
|
|
2276
|
-
|
|
2274
|
+
return ue(), n.fetchChoices !== void 0 && se(void 0, v.value).then(() => {
|
|
2275
|
+
ue();
|
|
2277
2276
|
}), (C, I) => {
|
|
2278
|
-
const k =
|
|
2279
|
-
return o(
|
|
2277
|
+
const k = D("v-icon"), Z = D("v-chip"), ce = D("v-list-item");
|
|
2278
|
+
return o(p) !== o(H).SUPPRESS ? (V(), P(be(o(r) ? "v-combobox" : "v-autocomplete"), O({
|
|
2280
2279
|
key: 0,
|
|
2281
2280
|
modelValue: g.value,
|
|
2282
|
-
"onUpdate:modelValue": I[0] || (I[0] = (
|
|
2281
|
+
"onUpdate:modelValue": I[0] || (I[0] = (S) => g.value = S),
|
|
2283
2282
|
class: [
|
|
2284
2283
|
o(i),
|
|
2285
2284
|
{
|
|
2286
|
-
"d-none": o(
|
|
2287
|
-
invisible: o(
|
|
2285
|
+
"d-none": o(p) === o(H).HIDDEN,
|
|
2286
|
+
invisible: o(p) === o(H).INVISIBLE
|
|
2288
2287
|
}
|
|
2289
2288
|
],
|
|
2290
2289
|
items: T.value,
|
|
@@ -2293,99 +2292,100 @@ const aa = {
|
|
|
2293
2292
|
label: o(h).label,
|
|
2294
2293
|
chips: "",
|
|
2295
2294
|
"auto-select-first": !0,
|
|
2296
|
-
"closable-chips": o(
|
|
2297
|
-
clearable: o(
|
|
2298
|
-
multiple: o(
|
|
2295
|
+
"closable-chips": o(m) || o(a) && g.value.length > 1,
|
|
2296
|
+
clearable: o(m),
|
|
2297
|
+
multiple: o(a),
|
|
2299
2298
|
loading: A.value,
|
|
2300
2299
|
"hide-selected": !1,
|
|
2301
2300
|
"aria-describedby": o(h).helpText ? `${o(h).name}-help` : null,
|
|
2302
2301
|
"menu-props": { maxHeight: "400" },
|
|
2303
2302
|
"hide-details": "auto",
|
|
2304
|
-
"onUpdate:search": I[1] || (I[1] = (
|
|
2305
|
-
"onUpdate:modelValue":
|
|
2306
|
-
"onClick:clear": I[2] || (I[2] = (
|
|
2307
|
-
onBlur: I[3] || (I[3] = (
|
|
2303
|
+
"onUpdate:search": I[1] || (I[1] = (S) => se(S, void 0)),
|
|
2304
|
+
"onUpdate:modelValue": $,
|
|
2305
|
+
"onClick:clear": I[2] || (I[2] = (S) => g.value = null),
|
|
2306
|
+
onBlur: I[3] || (I[3] = (S) => d.value = !0)
|
|
2308
2307
|
}), q({
|
|
2309
|
-
chip: b(({ item:
|
|
2310
|
-
(V(),
|
|
2311
|
-
key:
|
|
2308
|
+
chip: b(({ item: S }) => [
|
|
2309
|
+
(V(), P(Z, {
|
|
2310
|
+
key: S.value,
|
|
2312
2311
|
label: "",
|
|
2313
2312
|
size: "small",
|
|
2314
2313
|
class: "d-flex align-middle",
|
|
2315
|
-
variant: o(
|
|
2316
|
-
closable: o(
|
|
2317
|
-
"onClick:close": (
|
|
2314
|
+
variant: o(a) ? "tonal" : "text",
|
|
2315
|
+
closable: o(a),
|
|
2316
|
+
"onClick:close": (ae) => U(S.value)
|
|
2318
2317
|
}, {
|
|
2319
2318
|
prepend: b(() => {
|
|
2320
|
-
var
|
|
2319
|
+
var ae;
|
|
2321
2320
|
return [
|
|
2322
|
-
(
|
|
2321
|
+
(ae = S.raw) != null && ae.icon ? (V(), P(k, {
|
|
2323
2322
|
key: 0,
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2323
|
+
size: "24",
|
|
2324
|
+
class: "me-1",
|
|
2325
|
+
icon: S.raw.icon
|
|
2326
|
+
}, null, 8, ["icon"])) : L("", !0)
|
|
2327
2327
|
];
|
|
2328
2328
|
}),
|
|
2329
2329
|
default: b(() => [
|
|
2330
2330
|
ne("span", {
|
|
2331
|
-
class: Ie({ "text-body-1": !o(
|
|
2332
|
-
}, Be(
|
|
2331
|
+
class: Ie({ "text-body-1": !o(a) })
|
|
2332
|
+
}, Be(S.title), 3)
|
|
2333
2333
|
]),
|
|
2334
2334
|
_: 2
|
|
2335
2335
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
2336
2336
|
]),
|
|
2337
|
-
item: b(({ props:
|
|
2338
|
-
B(
|
|
2337
|
+
item: b(({ props: S, item: ae }) => [
|
|
2338
|
+
B(ce, X(G(S)), {
|
|
2339
2339
|
prepend: b(() => {
|
|
2340
2340
|
var De;
|
|
2341
2341
|
return [
|
|
2342
|
-
(De =
|
|
2343
|
-
B(
|
|
2344
|
-
class: "action-icon
|
|
2345
|
-
|
|
2346
|
-
}, null, 8, ["
|
|
2342
|
+
(De = ae.raw) != null && De.icon ? (V(), R("span", ll, [
|
|
2343
|
+
B(k, {
|
|
2344
|
+
class: "action-icon",
|
|
2345
|
+
icon: ae.raw.icon
|
|
2346
|
+
}, null, 8, ["icon"])
|
|
2347
2347
|
])) : L("", !0)
|
|
2348
2348
|
];
|
|
2349
2349
|
}),
|
|
2350
2350
|
_: 2
|
|
2351
2351
|
}, 1040)
|
|
2352
2352
|
]),
|
|
2353
|
-
message: b(({ message:
|
|
2354
|
-
B(o(
|
|
2355
|
-
message:
|
|
2353
|
+
message: b(({ message: S }) => [
|
|
2354
|
+
B(o(le), {
|
|
2355
|
+
message: S,
|
|
2356
2356
|
errors: o(j)
|
|
2357
2357
|
}, null, 8, ["message", "errors"])
|
|
2358
2358
|
]),
|
|
2359
2359
|
_: 2
|
|
2360
2360
|
}, [
|
|
2361
|
-
o(
|
|
2361
|
+
o(u).icon ? {
|
|
2362
2362
|
name: "label",
|
|
2363
|
-
fn: b((
|
|
2363
|
+
fn: b((S) => [
|
|
2364
2364
|
B(o(oe), {
|
|
2365
|
-
data:
|
|
2366
|
-
label: o(
|
|
2365
|
+
data: S,
|
|
2366
|
+
label: o(u)
|
|
2367
2367
|
}, null, 8, ["data", "label"])
|
|
2368
2368
|
]),
|
|
2369
2369
|
key: "0"
|
|
2370
2370
|
} : void 0,
|
|
2371
2371
|
C.$slots["append-inner"] ? {
|
|
2372
2372
|
name: "append-inner",
|
|
2373
|
-
fn: b((
|
|
2374
|
-
re(C.$slots, "append-inner", X(G(
|
|
2373
|
+
fn: b((S) => [
|
|
2374
|
+
re(C.$slots, "append-inner", X(G(S)))
|
|
2375
2375
|
]),
|
|
2376
2376
|
key: "1"
|
|
2377
2377
|
} : void 0,
|
|
2378
2378
|
C.$slots["prepend-inner"] ? {
|
|
2379
2379
|
name: "prepend-inner",
|
|
2380
|
-
fn: b((
|
|
2381
|
-
re(C.$slots, "prepend-inner", X(G(
|
|
2380
|
+
fn: b((S) => [
|
|
2381
|
+
re(C.$slots, "prepend-inner", X(G(S)))
|
|
2382
2382
|
]),
|
|
2383
2383
|
key: "2"
|
|
2384
2384
|
} : void 0
|
|
2385
2385
|
]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : L("", !0);
|
|
2386
2386
|
};
|
|
2387
2387
|
}
|
|
2388
|
-
}),
|
|
2388
|
+
}), rl = { class: "container" }, il = /* @__PURE__ */ M({
|
|
2389
2389
|
__name: "df-text-area",
|
|
2390
2390
|
props: /* @__PURE__ */ Y({
|
|
2391
2391
|
rows: {},
|
|
@@ -2408,31 +2408,31 @@ const aa = {
|
|
|
2408
2408
|
})),
|
|
2409
2409
|
emits: ["update:modelValue", "click:clear"],
|
|
2410
2410
|
setup(e, { emit: t }) {
|
|
2411
|
-
const n = e,
|
|
2412
|
-
return (
|
|
2413
|
-
const v =
|
|
2414
|
-
return V(), R("div",
|
|
2415
|
-
o(j) !== o(H).SUPPRESS ? (V(),
|
|
2411
|
+
const n = e, l = t, { errors: a, label: r, touched: m, value: i, vuetifyBindings: p } = K(n, l), { cssClass: s, visibility: j } = _e(n);
|
|
2412
|
+
return (u, d) => {
|
|
2413
|
+
const v = D("v-textarea");
|
|
2414
|
+
return V(), R("div", rl, [
|
|
2415
|
+
o(j) !== o(H).SUPPRESS ? (V(), P(v, O({
|
|
2416
2416
|
key: 0,
|
|
2417
2417
|
modelValue: o(i),
|
|
2418
|
-
"onUpdate:modelValue":
|
|
2418
|
+
"onUpdate:modelValue": d[0] || (d[0] = (h) => te(i) ? i.value = h : null),
|
|
2419
2419
|
class: [
|
|
2420
|
-
o(
|
|
2420
|
+
o(s),
|
|
2421
2421
|
{
|
|
2422
2422
|
"d-none": o(j) === o(H).HIDDEN,
|
|
2423
2423
|
invisible: o(j) === o(H).INVISIBLE
|
|
2424
2424
|
}
|
|
2425
2425
|
],
|
|
2426
|
-
rows:
|
|
2427
|
-
"auto-grow": (
|
|
2428
|
-
"max-rows":
|
|
2429
|
-
}, o(
|
|
2430
|
-
onBlur:
|
|
2426
|
+
rows: u.rows,
|
|
2427
|
+
"auto-grow": (u.maxRows || 0) > 0,
|
|
2428
|
+
"max-rows": u.maxRows
|
|
2429
|
+
}, o(p), {
|
|
2430
|
+
onBlur: d[1] || (d[1] = (h) => m.value = !0)
|
|
2431
2431
|
}), q({
|
|
2432
2432
|
message: b(({ message: h }) => [
|
|
2433
|
-
B(o(
|
|
2433
|
+
B(o(le), {
|
|
2434
2434
|
message: h,
|
|
2435
|
-
errors: o(
|
|
2435
|
+
errors: o(a)
|
|
2436
2436
|
}, null, 8, ["message", "errors"])
|
|
2437
2437
|
]),
|
|
2438
2438
|
_: 2
|
|
@@ -2451,18 +2451,18 @@ const aa = {
|
|
|
2451
2451
|
]);
|
|
2452
2452
|
};
|
|
2453
2453
|
}
|
|
2454
|
-
}),
|
|
2454
|
+
}), sl = /* @__PURE__ */ he(il, [["__scopeId", "data-v-b2f125f8"]]), ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2455
2455
|
__proto__: null,
|
|
2456
2456
|
DfActions: Ro,
|
|
2457
|
-
DfCheckbox:
|
|
2458
|
-
DfColor:
|
|
2457
|
+
DfCheckbox: zo,
|
|
2458
|
+
DfColor: Wo,
|
|
2459
2459
|
DfDateTime: Ko,
|
|
2460
2460
|
DfFile: Go,
|
|
2461
2461
|
DfInput: Qo,
|
|
2462
|
-
DfRtfEditor:
|
|
2463
|
-
DfSelect:
|
|
2464
|
-
DfTextArea:
|
|
2465
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2462
|
+
DfRtfEditor: nl,
|
|
2463
|
+
DfSelect: al,
|
|
2464
|
+
DfTextArea: sl
|
|
2465
|
+
}, Symbol.toStringTag, { value: "Module" })), cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2466
2466
|
__proto__: null,
|
|
2467
2467
|
VAutocomplete: dn,
|
|
2468
2468
|
VBtn: mn,
|
|
@@ -2488,43 +2488,43 @@ const aa = {
|
|
|
2488
2488
|
VTextField: Sn,
|
|
2489
2489
|
VTextarea: $n,
|
|
2490
2490
|
VTimePicker: En
|
|
2491
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2491
|
+
}, Symbol.toStringTag, { value: "Module" })), zl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2492
2492
|
__proto__: null
|
|
2493
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2493
|
+
}, Symbol.toStringTag, { value: "Module" })), Wl = {
|
|
2494
2494
|
install: (e, t) => {
|
|
2495
|
-
var n,
|
|
2496
|
-
e.use(Kn), e.provide(Je, t != null ? t : {}), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(
|
|
2495
|
+
var n, l;
|
|
2496
|
+
e.use(Kn), e.provide(Je, t != null ? t : {}), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(ul).map(([a, r]) => e.component(a, r)), (l = t == null ? void 0 : t.registerVuetifyComponents) != null && l && Object.entries(cl).map(([a, r]) => e.component(a, r));
|
|
2497
2497
|
}
|
|
2498
2498
|
};
|
|
2499
2499
|
export {
|
|
2500
|
-
|
|
2501
|
-
|
|
2500
|
+
ke as Action,
|
|
2501
|
+
z as ActionDisplayStyle,
|
|
2502
2502
|
Po as DateTimeLocaleConfig,
|
|
2503
2503
|
Ro as DfActions,
|
|
2504
|
-
|
|
2505
|
-
|
|
2504
|
+
zo as DfCheckbox,
|
|
2505
|
+
Wo as DfColor,
|
|
2506
2506
|
Ko as DfDateTime,
|
|
2507
2507
|
Go as DfFile,
|
|
2508
2508
|
Qo as DfInput,
|
|
2509
|
-
|
|
2510
|
-
|
|
2509
|
+
zl as DfInputComponentProps,
|
|
2510
|
+
ul as DfInputComponents,
|
|
2511
2511
|
oe as DfLabel,
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2512
|
+
nl as DfRtfEditor,
|
|
2513
|
+
al as DfSelect,
|
|
2514
|
+
sl as DfTextArea,
|
|
2515
|
+
Wl as DynamicFormsInputs,
|
|
2516
2516
|
Pe as InputBase,
|
|
2517
2517
|
$o as Label,
|
|
2518
|
-
|
|
2518
|
+
le as MessagesWidget,
|
|
2519
2519
|
Lo as ResponsiveActionRenderOptions,
|
|
2520
2520
|
Ao as ResponsiveRenderOptions,
|
|
2521
|
-
|
|
2521
|
+
cl as VuetifyComponents,
|
|
2522
2522
|
Q as defaultBaseProps,
|
|
2523
2523
|
Re as defaultDisplayStyle,
|
|
2524
2524
|
No as getBreakpointName,
|
|
2525
|
-
|
|
2525
|
+
ze as responsiveBreakpoints,
|
|
2526
2526
|
ve as translatableStrings,
|
|
2527
|
-
|
|
2527
|
+
Rl as translateStrings,
|
|
2528
2528
|
Fo as useBreakpoint,
|
|
2529
2529
|
K as useInputBase,
|
|
2530
2530
|
Je as vuetifyInputsSettingsKey
|