@dynamicforms/vuetify-inputs 0.5.7 → 0.5.9
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 +608 -601
- 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 +4 -3
- package/dist/style.css +2 -2
- package/package.json +3 -4
|
@@ -1,48 +1,47 @@
|
|
|
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
|
+
}, d = (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, d);
|
|
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
|
|
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
|
|
33
|
-
import
|
|
34
|
-
import Oe, { ValidationErrorRenderContent as ht, DisplayMode as H, Action as gt } from "@dynamicforms/vue-forms";
|
|
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 he, 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 k, 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
|
+
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 ht } from "lodash-es";
|
|
33
|
+
import Oe, { ValidationErrorRenderContent as bt, 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";
|
|
42
41
|
import { VChip as fn } from "vuetify/components/VChip";
|
|
43
42
|
import { VCombobox as vn } from "vuetify/components/VCombobox";
|
|
44
|
-
import { VColorPicker as
|
|
45
|
-
import { VConfirmEdit as
|
|
43
|
+
import { VColorPicker as hn } from "vuetify/components/VColorPicker";
|
|
44
|
+
import { VConfirmEdit as bn } from "vuetify/components/VConfirmEdit";
|
|
46
45
|
import { VDatePicker as gn } from "vuetify/components/VDatePicker";
|
|
47
46
|
import { VField as wn } from "vuetify/components/VField";
|
|
48
47
|
import { VFileInput as yn } from "vuetify/components/VFileInput";
|
|
@@ -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, d = 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 [m] =
|
|
231
|
-
m >= 42 ||
|
|
229
|
+
const [m] = u.split(".").map(Number);
|
|
230
|
+
m >= 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
|
|
234
|
-
const m = pt((
|
|
235
|
-
if (
|
|
232
|
+
function _(u) {
|
|
233
|
+
const m = pt((h) => {
|
|
234
|
+
if (a.disableTwoWayDataBinding)
|
|
236
235
|
return;
|
|
237
|
-
const
|
|
238
|
-
r("update:modelValue",
|
|
239
|
-
},
|
|
240
|
-
|
|
241
|
-
r("focus",
|
|
242
|
-
}),
|
|
243
|
-
r("blur",
|
|
236
|
+
const g = p.value = u.data.get();
|
|
237
|
+
r("update:modelValue", g, h, u), r("input", g, h, u);
|
|
238
|
+
}, Wn, { leading: !0 });
|
|
239
|
+
u.model.document.on("change:data", m), u.editing.view.document.on("focus", (h) => {
|
|
240
|
+
r("focus", h, u);
|
|
241
|
+
}), u.editing.view.document.on("blur", (h) => {
|
|
242
|
+
r("blur", h, 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(m),
|
|
249
|
+
l.value && (u.initialData = l.value), a.editor.create(d.value, u).then((m) => {
|
|
250
|
+
i.value = rt(m), _(m), l.value !== u.initialData && m.data.set(l.value), a.disabled && m.enableReadOnlyMode(Ce), r("ready", m);
|
|
252
251
|
}).catch((m) => {
|
|
253
252
|
console.error(m);
|
|
254
253
|
});
|
|
255
254
|
}), He(() => {
|
|
256
255
|
i.value && (i.value.destroy(), i.value = void 0), r("destroy");
|
|
257
|
-
}), (
|
|
256
|
+
}), (u, m) => (V(), P(he(u.tagName), {
|
|
258
257
|
ref_key: "element",
|
|
259
|
-
ref:
|
|
258
|
+
ref: d
|
|
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 d = e.defaultFormattingWidth || e.defaultWidth, i = n != null && n.width ? String(n.width) : d;
|
|
293
|
+
a = e.formattingValues[i] || e.formattingValues[d];
|
|
295
294
|
} else {
|
|
296
|
-
const
|
|
297
|
-
|
|
295
|
+
const d = e.defaultWidth, i = n != null && n.width ? String(n.width) : e.defaultWidth;
|
|
296
|
+
a = e.values[i] || e.values[d];
|
|
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 d = r[0], i = l && e.parsePatterns[l] || e.parsePatterns[e.defaultParseWidth], p = Array.isArray(i) ? Gn(i, (u) => u.test(d)) : (
|
|
309
308
|
// [TODO] -- I challenge you to fix the type
|
|
310
|
-
Xn(i, (
|
|
309
|
+
Xn(i, (u) => u.test(d))
|
|
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
|
|
318
|
-
return { value:
|
|
314
|
+
n.valueCallback(s)
|
|
315
|
+
) : s;
|
|
316
|
+
const _ = t.slice(d.length);
|
|
317
|
+
return { value: s, rest: _ };
|
|
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 d = e.valueCallback ? e.valueCallback(r[0]) : r[0];
|
|
337
|
+
d = n.valueCallback ? n.valueCallback(d) : d;
|
|
338
|
+
const i = t.slice(a.length);
|
|
339
|
+
return { value: d, 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 d = Zn(t);
|
|
643
|
+
Yn(r) ? l += r[d].replace("{{count}}", String(t)) : l += r[a][d].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."],
|
|
@@ -842,7 +841,7 @@ const Jn = (e, t, n) => {
|
|
|
842
841
|
formattingValues: mo,
|
|
843
842
|
defaultFormattingWidth: "wide"
|
|
844
843
|
})
|
|
845
|
-
}, vo = /^(\d+)\./i,
|
|
844
|
+
}, vo = /^(\d+)\./i, ho = /\d+/i, bo = {
|
|
846
845
|
abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
|
|
847
846
|
wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
|
|
848
847
|
}, go = {
|
|
@@ -935,11 +934,11 @@ const Jn = (e, t, n) => {
|
|
|
935
934
|
}, Bo = {
|
|
936
935
|
ordinalNumber: qn({
|
|
937
936
|
matchPattern: vo,
|
|
938
|
-
parsePattern:
|
|
937
|
+
parsePattern: ho,
|
|
939
938
|
valueCallback: (e) => parseInt(e, 10)
|
|
940
939
|
}),
|
|
941
940
|
era: pe({
|
|
942
|
-
matchPatterns:
|
|
941
|
+
matchPatterns: bo,
|
|
943
942
|
defaultMatchWidth: "wide",
|
|
944
943
|
parsePatterns: go,
|
|
945
944
|
defaultParseWidth: "any"
|
|
@@ -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(he(t.label.iconComponent), {
|
|
1008
1007
|
key: 2,
|
|
1009
1008
|
src: t.label.icon
|
|
1010
1009
|
}, null, 8, ["src"]))
|
|
@@ -1013,70 +1012,77 @@ const Jn = (e, t, n) => {
|
|
|
1013
1012
|
]);
|
|
1014
1013
|
};
|
|
1015
1014
|
}
|
|
1016
|
-
}),
|
|
1015
|
+
}), be = (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__ */ be(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 = k({
|
|
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
|
-
set(
|
|
1034
|
-
e.control && (e.control.value =
|
|
1032
|
+
set(v) {
|
|
1033
|
+
e.control && (e.control.value = v), e.modelValue === void 0 && (l.value = v), t("update:modelValue", v);
|
|
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 =
|
|
1040
|
-
()
|
|
1041
|
-
|
|
1038
|
+
const r = k({
|
|
1039
|
+
get() {
|
|
1040
|
+
return e.control.touched;
|
|
1041
|
+
},
|
|
1042
|
+
set(v) {
|
|
1043
|
+
e.control.touched = v;
|
|
1044
|
+
}
|
|
1045
|
+
}), d = e.control ? r : E(!1), i = k(() => e.control ? e.control.valid : !0), p = k(
|
|
1046
|
+
() => e.control ? e.control.errors : (e.errors || []).map((v) => new bt(v))
|
|
1047
|
+
), s = k(() => d.value && p.value.length > 0 ? " " : void 0), _ = k(() => e.control ? e.control.enabled : e.enabled !== !1), u = k(
|
|
1042
1048
|
() => e.control ? e.control.visibility : e.visibility || Oe.DisplayMode.FULL
|
|
1043
|
-
),
|
|
1049
|
+
), m = k(
|
|
1044
1050
|
() => ee(e.label || "") ? new $o(e.label || "") : e.label
|
|
1045
|
-
),
|
|
1051
|
+
), h = k(() => e.placeholder || ""), g = k(() => e.helpText || ""), w = k(() => e.hint || ""), j = k(() => e.cssClass || "");
|
|
1046
1052
|
return {
|
|
1047
|
-
value:
|
|
1048
|
-
valid:
|
|
1049
|
-
enabled:
|
|
1050
|
-
errors:
|
|
1051
|
-
visibility:
|
|
1052
|
-
label:
|
|
1053
|
-
touched:
|
|
1054
|
-
vuetifyBindings:
|
|
1055
|
-
var
|
|
1053
|
+
value: a,
|
|
1054
|
+
valid: i,
|
|
1055
|
+
enabled: _,
|
|
1056
|
+
errors: p,
|
|
1057
|
+
visibility: u,
|
|
1058
|
+
label: m,
|
|
1059
|
+
touched: d,
|
|
1060
|
+
vuetifyBindings: k(() => {
|
|
1061
|
+
var v, A;
|
|
1056
1062
|
return x({
|
|
1057
|
-
name: (
|
|
1058
|
-
class:
|
|
1063
|
+
name: (v = e.control) == null ? void 0 : v.fieldName,
|
|
1064
|
+
class: j.value,
|
|
1059
1065
|
density: "default",
|
|
1060
|
-
variant: (
|
|
1061
|
-
label:
|
|
1062
|
-
messages:
|
|
1063
|
-
errorMessages:
|
|
1066
|
+
variant: (A = n.defaultVariant) != null ? A : "underlined",
|
|
1067
|
+
label: m.value.text,
|
|
1068
|
+
messages: s.value,
|
|
1069
|
+
errorMessages: s.value,
|
|
1064
1070
|
// 'error-count': errors?.value.length || 0,
|
|
1065
|
-
readonly: !
|
|
1066
|
-
disabled: !
|
|
1067
|
-
placeholder:
|
|
1068
|
-
"persistent-placeholder": !fe(
|
|
1069
|
-
hint:
|
|
1071
|
+
readonly: !_.value,
|
|
1072
|
+
disabled: !_.value,
|
|
1073
|
+
placeholder: h.value,
|
|
1074
|
+
"persistent-placeholder": !fe(h.value),
|
|
1075
|
+
hint: w.value,
|
|
1070
1076
|
persistentHint: !0,
|
|
1071
1077
|
// we want persistent hint always
|
|
1072
1078
|
hideDetails: "auto",
|
|
1073
1079
|
// we want to hide the hint element when hint isn't there
|
|
1074
|
-
helpText:
|
|
1080
|
+
helpText: g.value
|
|
1075
1081
|
}, e.passthroughAttrs || {});
|
|
1076
1082
|
})
|
|
1077
1083
|
};
|
|
1078
1084
|
}
|
|
1079
|
-
const
|
|
1085
|
+
const le = /* @__PURE__ */ M({
|
|
1080
1086
|
__name: "messages-widget",
|
|
1081
1087
|
props: {
|
|
1082
1088
|
errors: {},
|
|
@@ -1085,28 +1091,28 @@ const ae = /* @__PURE__ */ M({
|
|
|
1085
1091
|
},
|
|
1086
1092
|
setup(e) {
|
|
1087
1093
|
const t = e, n = () => {
|
|
1088
|
-
if (t.message !== " ") return
|
|
1089
|
-
const
|
|
1090
|
-
return t.errors.forEach((
|
|
1091
|
-
switch (
|
|
1094
|
+
if (t.message !== " ") return we("span", { class: t.classes }, t.message);
|
|
1095
|
+
const l = [];
|
|
1096
|
+
return t.errors.forEach((a) => {
|
|
1097
|
+
switch (a.componentName) {
|
|
1092
1098
|
case "template":
|
|
1093
|
-
|
|
1099
|
+
l.push(we("div", { class: t.classes }, a.componentBody));
|
|
1094
1100
|
break;
|
|
1095
1101
|
case "vue-markdown":
|
|
1096
|
-
|
|
1102
|
+
l.push(we(
|
|
1097
1103
|
wt,
|
|
1098
|
-
{ class: [t.classes, "df-messages-widget-markdown"], source:
|
|
1104
|
+
{ class: [t.classes, "df-messages-widget-markdown"], source: a.componentBindings.source }
|
|
1099
1105
|
));
|
|
1100
1106
|
break;
|
|
1101
1107
|
default:
|
|
1102
|
-
|
|
1103
|
-
|
|
1108
|
+
l.push(
|
|
1109
|
+
we(a.componentName, F(x({ class: t.classes }, a.componentBindings), { innerHTML: a.componentBody }))
|
|
1104
1110
|
);
|
|
1105
1111
|
break;
|
|
1106
1112
|
}
|
|
1107
|
-
}),
|
|
1113
|
+
}), l;
|
|
1108
1114
|
};
|
|
1109
|
-
return (
|
|
1115
|
+
return (l, a) => (V(), P(n));
|
|
1110
1116
|
}
|
|
1111
1117
|
}), So = { class: "d-flex w-100 style-resetting" }, Eo = /* @__PURE__ */ M({
|
|
1112
1118
|
__name: "input-base",
|
|
@@ -1127,70 +1133,70 @@ const ae = /* @__PURE__ */ M({
|
|
|
1127
1133
|
},
|
|
1128
1134
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
1129
1135
|
setup(e, { emit: t }) {
|
|
1130
|
-
const n = e,
|
|
1131
|
-
function m(
|
|
1132
|
-
|
|
1136
|
+
const n = e, l = t, { errors: a, label: r, value: d, touched: i, visibility: p, vuetifyBindings: s } = K(n, l), _ = k(() => !!(o(n.clearable) && o(d))), u = E(!1);
|
|
1137
|
+
function m(h) {
|
|
1138
|
+
u.value = h, h || (i.value = !0, l("blur"));
|
|
1133
1139
|
}
|
|
1134
|
-
return (
|
|
1135
|
-
const
|
|
1136
|
-
return o(
|
|
1140
|
+
return (h, g) => {
|
|
1141
|
+
const w = D("v-field"), j = D("v-input");
|
|
1142
|
+
return o(p) !== o(H).SUPPRESS ? (V(), P(j, {
|
|
1137
1143
|
key: 0,
|
|
1138
|
-
name: o(
|
|
1139
|
-
hint: o(
|
|
1140
|
-
"persistent-hint": o(
|
|
1141
|
-
"hide-details": o(
|
|
1142
|
-
"error-messages": o(
|
|
1144
|
+
name: o(s).name,
|
|
1145
|
+
hint: o(s).hint,
|
|
1146
|
+
"persistent-hint": o(s).persistentHint,
|
|
1147
|
+
"hide-details": o(s).hideDetails,
|
|
1148
|
+
"error-messages": o(s).errorMessages,
|
|
1143
1149
|
class: Ie([
|
|
1144
|
-
|
|
1150
|
+
h.cssClass,
|
|
1145
1151
|
{
|
|
1146
|
-
"d-none": o(
|
|
1147
|
-
invisible: o(
|
|
1152
|
+
"d-none": o(p) === o(H).HIDDEN,
|
|
1153
|
+
invisible: o(p) === o(H).INVISIBLE
|
|
1148
1154
|
}
|
|
1149
1155
|
])
|
|
1150
1156
|
}, q({
|
|
1151
|
-
message: b(({ message:
|
|
1152
|
-
B(
|
|
1153
|
-
message:
|
|
1154
|
-
errors: o(
|
|
1157
|
+
message: b(({ message: v }) => [
|
|
1158
|
+
B(le, {
|
|
1159
|
+
message: v,
|
|
1160
|
+
errors: o(a)
|
|
1155
1161
|
}, null, 8, ["message", "errors"])
|
|
1156
1162
|
]),
|
|
1157
1163
|
default: b(() => [
|
|
1158
|
-
B(
|
|
1159
|
-
variant: o(
|
|
1160
|
-
label: o(
|
|
1161
|
-
disabled: o(
|
|
1162
|
-
clearable:
|
|
1164
|
+
B(w, {
|
|
1165
|
+
variant: o(s).variant,
|
|
1166
|
+
label: o(s).label,
|
|
1167
|
+
disabled: o(s).disabled,
|
|
1168
|
+
clearable: _.value,
|
|
1163
1169
|
"persistent-clear": !0,
|
|
1164
|
-
dirty: !!o(
|
|
1165
|
-
active:
|
|
1166
|
-
loading:
|
|
1167
|
-
"onClick:clear":
|
|
1168
|
-
"onUpdate:focused":
|
|
1170
|
+
dirty: !!o(d),
|
|
1171
|
+
active: u.value,
|
|
1172
|
+
loading: h.loading,
|
|
1173
|
+
"onClick:clear": g[0] || (g[0] = (v) => l("click:clear")),
|
|
1174
|
+
"onUpdate:focused": g[1] || (g[1] = (v) => m(v))
|
|
1169
1175
|
}, q({
|
|
1170
|
-
default: b((
|
|
1176
|
+
default: b((v) => [
|
|
1171
1177
|
ne("div", So, [
|
|
1172
|
-
re(
|
|
1178
|
+
re(h.$slots, "default", X(G(v)), void 0, !0)
|
|
1173
1179
|
])
|
|
1174
1180
|
]),
|
|
1175
|
-
loader: b((
|
|
1176
|
-
re(
|
|
1181
|
+
loader: b((v) => [
|
|
1182
|
+
re(h.$slots, "loader", X(G(v)), void 0, !0)
|
|
1177
1183
|
]),
|
|
1178
1184
|
_: 2
|
|
1179
1185
|
}, [
|
|
1180
1186
|
o(r).icon ? {
|
|
1181
1187
|
name: "label",
|
|
1182
|
-
fn: b((
|
|
1188
|
+
fn: b((v) => [
|
|
1183
1189
|
B(oe, {
|
|
1184
|
-
data:
|
|
1190
|
+
data: v,
|
|
1185
1191
|
label: o(r)
|
|
1186
1192
|
}, null, 8, ["data", "label"])
|
|
1187
1193
|
]),
|
|
1188
1194
|
key: "0"
|
|
1189
1195
|
} : void 0,
|
|
1190
|
-
|
|
1196
|
+
h.$slots["prepend-inner"] ? {
|
|
1191
1197
|
name: "prepend-inner",
|
|
1192
|
-
fn: b((
|
|
1193
|
-
re(
|
|
1198
|
+
fn: b((v) => [
|
|
1199
|
+
re(h.$slots, "prepend-inner", X(G(v)), void 0, !0)
|
|
1194
1200
|
]),
|
|
1195
1201
|
key: "1"
|
|
1196
1202
|
} : void 0
|
|
@@ -1198,61 +1204,61 @@ const ae = /* @__PURE__ */ M({
|
|
|
1198
1204
|
]),
|
|
1199
1205
|
_: 2
|
|
1200
1206
|
}, [
|
|
1201
|
-
|
|
1207
|
+
h.$slots.prepend ? {
|
|
1202
1208
|
name: "prepend",
|
|
1203
|
-
fn: b((
|
|
1204
|
-
re(
|
|
1209
|
+
fn: b((v) => [
|
|
1210
|
+
re(h.$slots, "prepend", X(G(v)), void 0, !0)
|
|
1205
1211
|
]),
|
|
1206
1212
|
key: "0"
|
|
1207
1213
|
} : void 0
|
|
1208
1214
|
]), 1032, ["name", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : L("", !0);
|
|
1209
1215
|
};
|
|
1210
1216
|
}
|
|
1211
|
-
}), Pe = /* @__PURE__ */
|
|
1217
|
+
}), Pe = /* @__PURE__ */ be(Eo, [["__scopeId", "data-v-7ba7207d"]]), ve = {
|
|
1212
1218
|
Yes: "Yes",
|
|
1213
1219
|
No: "No",
|
|
1214
1220
|
Close: "Close"
|
|
1215
1221
|
};
|
|
1216
|
-
function
|
|
1222
|
+
function Rl(e) {
|
|
1217
1223
|
Object.keys(ve).forEach((t) => {
|
|
1218
1224
|
ve[t] = e(t);
|
|
1219
1225
|
});
|
|
1220
1226
|
}
|
|
1221
|
-
var
|
|
1227
|
+
var z = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(z || {});
|
|
1222
1228
|
const Re = 0;
|
|
1223
1229
|
((e) => {
|
|
1224
|
-
function t(
|
|
1225
|
-
return
|
|
1230
|
+
function t(a) {
|
|
1231
|
+
return a.toUpperCase() === "BUTTON" ? 0 : a.toUpperCase() === "TEXT" ? 1 : Re;
|
|
1226
1232
|
}
|
|
1227
1233
|
e.fromString = t;
|
|
1228
|
-
function n(
|
|
1229
|
-
const r = typeof
|
|
1234
|
+
function n(a) {
|
|
1235
|
+
const r = typeof a == "number" ? a : e.fromString(a);
|
|
1230
1236
|
return Object.values(e).includes(r) ? r : Re;
|
|
1231
1237
|
}
|
|
1232
1238
|
e.fromAny = n;
|
|
1233
|
-
function a
|
|
1234
|
-
const r = typeof
|
|
1239
|
+
function l(a) {
|
|
1240
|
+
const r = typeof a == "number" ? a : e.fromString(a);
|
|
1235
1241
|
return Object.values(e).includes(r);
|
|
1236
1242
|
}
|
|
1237
|
-
e.isDefined =
|
|
1238
|
-
})(
|
|
1239
|
-
Object.freeze(
|
|
1240
|
-
const
|
|
1243
|
+
e.isDefined = l;
|
|
1244
|
+
})(z || (z = {}));
|
|
1245
|
+
Object.freeze(z);
|
|
1246
|
+
const ze = ["xs", "sm", "md", "lg", "xl"];
|
|
1241
1247
|
class Ao {
|
|
1242
1248
|
constructor(t) {
|
|
1243
1249
|
$e(this, "_value");
|
|
1244
|
-
this._value = this.cleanBreakpoint(t, !0), t &&
|
|
1245
|
-
const
|
|
1246
|
-
|
|
1250
|
+
this._value = this.cleanBreakpoint(t, !0), t && ze.forEach((n) => {
|
|
1251
|
+
const l = this.cleanBreakpoint(t[n]);
|
|
1252
|
+
l && (this._value[n] = l);
|
|
1247
1253
|
});
|
|
1248
1254
|
}
|
|
1249
1255
|
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 (
|
|
1256
|
+
const n = this.cleanBreakpoint(this._value), l = Object.keys(n);
|
|
1257
|
+
for (const a of ze) {
|
|
1258
|
+
const r = this._value[a];
|
|
1259
|
+
for (const d of l)
|
|
1260
|
+
(r == null ? void 0 : r[d]) != null && (n[d] = r[d]);
|
|
1261
|
+
if (a === t) break;
|
|
1256
1262
|
}
|
|
1257
1263
|
return n;
|
|
1258
1264
|
}
|
|
@@ -1262,30 +1268,30 @@ function No(e) {
|
|
|
1262
1268
|
}
|
|
1263
1269
|
function Fo() {
|
|
1264
1270
|
const e = yt();
|
|
1265
|
-
return
|
|
1271
|
+
return k(() => No(e));
|
|
1266
1272
|
}
|
|
1267
1273
|
class Lo extends Ao {
|
|
1268
1274
|
// eslint-disable-next-line class-methods-use-this
|
|
1269
1275
|
cleanBreakpoint(t, n = !1) {
|
|
1270
1276
|
if ((!t || !ft(t)) && !n) return null;
|
|
1271
|
-
const
|
|
1272
|
-
return n && (
|
|
1277
|
+
const l = {};
|
|
1278
|
+
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
1279
|
}
|
|
1274
1280
|
}
|
|
1275
|
-
class
|
|
1281
|
+
class ke extends gt {
|
|
1276
1282
|
static create(t) {
|
|
1277
1283
|
return super.create(t);
|
|
1278
1284
|
}
|
|
1279
1285
|
getBreakpointValue(t) {
|
|
1280
|
-
return
|
|
1281
|
-
const
|
|
1286
|
+
return k(() => {
|
|
1287
|
+
const l = new Lo(this.value).getOptionsForBreakpoint(t.value);
|
|
1282
1288
|
return {
|
|
1283
|
-
name:
|
|
1284
|
-
label:
|
|
1285
|
-
icon:
|
|
1286
|
-
renderAs:
|
|
1287
|
-
showLabel: ee(
|
|
1288
|
-
showIcon: ee(
|
|
1289
|
+
name: l.name,
|
|
1290
|
+
label: l.showLabel ? l.label : void 0,
|
|
1291
|
+
icon: l.showIcon ? l.icon : void 0,
|
|
1292
|
+
renderAs: l.renderAs,
|
|
1293
|
+
showLabel: ee(l.label) && !fe(l.label) ? l.showLabel : !1,
|
|
1294
|
+
showIcon: ee(l.icon) && !fe(l.icon) ? l.showIcon : !1
|
|
1289
1295
|
};
|
|
1290
1296
|
});
|
|
1291
1297
|
}
|
|
@@ -1308,49 +1314,49 @@ class ye extends gt {
|
|
|
1308
1314
|
return this.value.renderAs;
|
|
1309
1315
|
}
|
|
1310
1316
|
static closeAction(t) {
|
|
1311
|
-
var
|
|
1317
|
+
var l;
|
|
1312
1318
|
const n = F(x({}, t != null ? t : {}), {
|
|
1313
1319
|
// any properties in data should overwrite properties in the constant
|
|
1314
1320
|
value: {
|
|
1315
1321
|
name: "close",
|
|
1316
1322
|
label: ve.Close,
|
|
1317
1323
|
icon: "close-outline",
|
|
1318
|
-
renderAs:
|
|
1324
|
+
renderAs: z.BUTTON,
|
|
1319
1325
|
showLabel: !0,
|
|
1320
1326
|
showIcon: !0
|
|
1321
1327
|
}
|
|
1322
1328
|
});
|
|
1323
|
-
return n.value = x(x({}, n.value), (
|
|
1329
|
+
return n.value = x(x({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ke.create(n);
|
|
1324
1330
|
}
|
|
1325
1331
|
static yesAction(t) {
|
|
1326
|
-
var
|
|
1332
|
+
var l;
|
|
1327
1333
|
const n = F(x({}, t != null ? t : {}), {
|
|
1328
1334
|
// any properties in data should overwrite properties in the constant
|
|
1329
1335
|
value: {
|
|
1330
1336
|
name: "yes",
|
|
1331
1337
|
label: ve.Yes,
|
|
1332
1338
|
icon: "thumbs-up-outline",
|
|
1333
|
-
renderAs:
|
|
1339
|
+
renderAs: z.BUTTON,
|
|
1334
1340
|
showLabel: !0,
|
|
1335
1341
|
showIcon: !0
|
|
1336
1342
|
}
|
|
1337
1343
|
});
|
|
1338
|
-
return n.value = x(x({}, n.value), (
|
|
1344
|
+
return n.value = x(x({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ke.create(n);
|
|
1339
1345
|
}
|
|
1340
1346
|
static noAction(t) {
|
|
1341
|
-
var
|
|
1347
|
+
var l;
|
|
1342
1348
|
const n = F(x({}, t != null ? t : {}), {
|
|
1343
1349
|
// any properties in data should overwrite properties in the constant
|
|
1344
1350
|
value: {
|
|
1345
1351
|
name: "no",
|
|
1346
1352
|
label: ve.No,
|
|
1347
1353
|
icon: "thumbs-down-outline",
|
|
1348
|
-
renderAs:
|
|
1354
|
+
renderAs: z.BUTTON,
|
|
1349
1355
|
showLabel: !0,
|
|
1350
1356
|
showIcon: !0
|
|
1351
1357
|
}
|
|
1352
1358
|
});
|
|
1353
|
-
return n.value = x(x({}, n.value), (
|
|
1359
|
+
return n.value = x(x({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ke.create(n);
|
|
1354
1360
|
}
|
|
1355
1361
|
}
|
|
1356
1362
|
const Mo = {
|
|
@@ -1364,40 +1370,40 @@ const Mo = {
|
|
|
1364
1370
|
showAsGroup: { default: "no" }
|
|
1365
1371
|
},
|
|
1366
1372
|
setup(e) {
|
|
1367
|
-
const t = e, n = Fo(),
|
|
1373
|
+
const t = e, n = Fo(), l = k(() => o(t.actions)), a = k(() => l.value.map((r) => x({
|
|
1368
1374
|
action: r
|
|
1369
1375
|
}, o(r.getBreakpointValue(n)))));
|
|
1370
|
-
return (r,
|
|
1371
|
-
const i =
|
|
1372
|
-
return
|
|
1376
|
+
return (r, d) => {
|
|
1377
|
+
const i = D("v-icon"), p = D("v-btn");
|
|
1378
|
+
return l.value.length > 0 ? (V(), R("div", {
|
|
1373
1379
|
key: 0,
|
|
1374
1380
|
class: Ie(["text-end", {
|
|
1375
1381
|
"button-group": r.showAsGroup === "grouped" || r.showAsGroup === "grouped-no-borders",
|
|
1376
1382
|
"with-border": r.showAsGroup === "grouped"
|
|
1377
1383
|
}])
|
|
1378
1384
|
}, [
|
|
1379
|
-
(V(!0), R(Ke, null, ct(
|
|
1380
|
-
key:
|
|
1381
|
-
variant:
|
|
1385
|
+
(V(!0), R(Ke, null, ct(a.value, (s, _) => (V(), P(p, {
|
|
1386
|
+
key: _,
|
|
1387
|
+
variant: s.renderAs === o(z).BUTTON ? "tonal" : "text",
|
|
1382
1388
|
elevation: 0,
|
|
1383
1389
|
size: r.buttonSize,
|
|
1384
|
-
onClick: dt((
|
|
1390
|
+
onClick: dt((u) => s.action.execute(u), ["stop"])
|
|
1385
1391
|
}, {
|
|
1386
1392
|
default: b(() => [
|
|
1387
|
-
|
|
1393
|
+
s.icon ? (V(), P(i, {
|
|
1388
1394
|
key: 0,
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
}, null, 8, ["
|
|
1392
|
-
|
|
1393
|
-
|
|
1395
|
+
size: "24",
|
|
1396
|
+
icon: s.icon
|
|
1397
|
+
}, null, 8, ["icon"])) : L("", !0),
|
|
1398
|
+
s.icon && s.label ? (V(), R("span", Mo)) : L("", !0),
|
|
1399
|
+
s.label ? (V(), R("span", Uo, Be(s.label), 1)) : L("", !0)
|
|
1394
1400
|
]),
|
|
1395
1401
|
_: 2
|
|
1396
1402
|
}, 1032, ["variant", "size", "onClick"]))), 128))
|
|
1397
1403
|
], 2)) : L("", !0);
|
|
1398
1404
|
};
|
|
1399
1405
|
}
|
|
1400
|
-
}), Ro = /* @__PURE__ */
|
|
1406
|
+
}), Ro = /* @__PURE__ */ be(Oo, [["__scopeId", "data-v-3502f34e"]]), zo = /* @__PURE__ */ M({
|
|
1401
1407
|
__name: "df-checkbox",
|
|
1402
1408
|
props: /* @__PURE__ */ Y({
|
|
1403
1409
|
allowNull: { type: Boolean },
|
|
@@ -1416,43 +1422,43 @@ const Mo = {
|
|
|
1416
1422
|
}, F(x({}, Q), { allowNull: !1 })),
|
|
1417
1423
|
emits: ["update:modelValue", "click:clear"],
|
|
1418
1424
|
setup(e, { emit: t }) {
|
|
1419
|
-
const n = e,
|
|
1425
|
+
const n = e, l = t, { errors: a, label: r, touched: d, value: i, vuetifyBindings: p } = K(n, l), s = k(() => n.allowNull && i.value == null), _ = k({
|
|
1420
1426
|
get() {
|
|
1421
1427
|
return i.value;
|
|
1422
1428
|
},
|
|
1423
1429
|
set() {
|
|
1424
1430
|
}
|
|
1425
1431
|
});
|
|
1426
|
-
function
|
|
1432
|
+
function u() {
|
|
1427
1433
|
const m = vt(i.value);
|
|
1428
1434
|
m === !0 ? i.value = n.allowNull ? null : !1 : i.value = m === !1;
|
|
1429
1435
|
}
|
|
1430
|
-
return (m,
|
|
1431
|
-
const
|
|
1432
|
-
return V(),
|
|
1433
|
-
modelValue:
|
|
1434
|
-
"onUpdate:modelValue":
|
|
1435
|
-
}, o(
|
|
1436
|
+
return (m, h) => {
|
|
1437
|
+
const g = D("v-checkbox");
|
|
1438
|
+
return V(), P(g, O({
|
|
1439
|
+
modelValue: _.value,
|
|
1440
|
+
"onUpdate:modelValue": h[0] || (h[0] = (w) => _.value = w)
|
|
1441
|
+
}, o(p), {
|
|
1436
1442
|
density: "compact",
|
|
1437
|
-
indeterminate:
|
|
1443
|
+
indeterminate: s.value,
|
|
1438
1444
|
"false-value": !1,
|
|
1439
1445
|
"true-value": !0,
|
|
1440
|
-
onChange:
|
|
1441
|
-
onBlur:
|
|
1446
|
+
onChange: u,
|
|
1447
|
+
onBlur: h[1] || (h[1] = (w) => d.value = !0)
|
|
1442
1448
|
}), q({
|
|
1443
|
-
message: b(({ message:
|
|
1444
|
-
B(o(
|
|
1445
|
-
message:
|
|
1446
|
-
errors: o(
|
|
1449
|
+
message: b(({ message: w }) => [
|
|
1450
|
+
B(o(le), {
|
|
1451
|
+
message: w,
|
|
1452
|
+
errors: o(a)
|
|
1447
1453
|
}, null, 8, ["message", "errors"])
|
|
1448
1454
|
]),
|
|
1449
1455
|
_: 2
|
|
1450
1456
|
}, [
|
|
1451
1457
|
o(r).icon ? {
|
|
1452
1458
|
name: "label",
|
|
1453
|
-
fn: b((
|
|
1459
|
+
fn: b((w) => [
|
|
1454
1460
|
B(o(oe), {
|
|
1455
|
-
data:
|
|
1461
|
+
data: w,
|
|
1456
1462
|
label: o(r)
|
|
1457
1463
|
}, null, 8, ["data", "label"])
|
|
1458
1464
|
]),
|
|
@@ -1461,7 +1467,7 @@ const Mo = {
|
|
|
1461
1467
|
]), 1040, ["modelValue", "indeterminate"]);
|
|
1462
1468
|
};
|
|
1463
1469
|
}
|
|
1464
|
-
}),
|
|
1470
|
+
}), Wo = /* @__PURE__ */ M({
|
|
1465
1471
|
__name: "df-color",
|
|
1466
1472
|
props: /* @__PURE__ */ Y({
|
|
1467
1473
|
allowNull: { type: Boolean },
|
|
@@ -1480,24 +1486,24 @@ const Mo = {
|
|
|
1480
1486
|
}, F(x({}, Q), { allowNull: !1 })),
|
|
1481
1487
|
emits: ["update:modelValue", "click:clear"],
|
|
1482
1488
|
setup(e, { emit: t }) {
|
|
1483
|
-
const n = e,
|
|
1484
|
-
(
|
|
1489
|
+
const n = e, l = t, { errors: a, label: r, touched: d, value: i, vuetifyBindings: p } = K(n, l), s = E(!1), _ = k(() => [
|
|
1490
|
+
(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
1491
|
]);
|
|
1486
|
-
return (
|
|
1487
|
-
const
|
|
1488
|
-
return V(),
|
|
1492
|
+
return (u, m) => {
|
|
1493
|
+
const h = D("v-color-picker"), g = D("v-menu"), w = D("v-text-field");
|
|
1494
|
+
return V(), P(w, O({
|
|
1489
1495
|
modelValue: o(i),
|
|
1490
|
-
"onUpdate:modelValue": m[2] || (m[2] = (
|
|
1491
|
-
}, o(
|
|
1492
|
-
clearable:
|
|
1496
|
+
"onUpdate:modelValue": m[2] || (m[2] = (j) => te(i) ? i.value = j : null)
|
|
1497
|
+
}, o(p), {
|
|
1498
|
+
clearable: u.allowNull,
|
|
1493
1499
|
type: "text",
|
|
1494
|
-
rules:
|
|
1495
|
-
onBlur: m[3] || (m[3] = (
|
|
1500
|
+
rules: _.value,
|
|
1501
|
+
onBlur: m[3] || (m[3] = (j) => d.value = !0)
|
|
1496
1502
|
}), q({
|
|
1497
|
-
message: b(({ message:
|
|
1498
|
-
B(o(
|
|
1499
|
-
message:
|
|
1500
|
-
errors: o(
|
|
1503
|
+
message: b(({ message: j }) => [
|
|
1504
|
+
B(o(le), {
|
|
1505
|
+
message: j,
|
|
1506
|
+
errors: o(a)
|
|
1501
1507
|
}, null, 8, ["message", "errors"])
|
|
1502
1508
|
]),
|
|
1503
1509
|
"prepend-inner": b(() => [
|
|
@@ -1506,16 +1512,16 @@ const Mo = {
|
|
|
1506
1512
|
}, null, 4)
|
|
1507
1513
|
]),
|
|
1508
1514
|
default: b(() => [
|
|
1509
|
-
B(
|
|
1510
|
-
modelValue:
|
|
1511
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
1515
|
+
B(g, {
|
|
1516
|
+
modelValue: s.value,
|
|
1517
|
+
"onUpdate:modelValue": m[1] || (m[1] = (j) => s.value = j),
|
|
1512
1518
|
"close-on-content-click": !1,
|
|
1513
1519
|
activator: "parent"
|
|
1514
1520
|
}, {
|
|
1515
1521
|
default: b(() => [
|
|
1516
|
-
B(
|
|
1522
|
+
B(h, {
|
|
1517
1523
|
modelValue: o(i),
|
|
1518
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
1524
|
+
"onUpdate:modelValue": m[0] || (m[0] = (j) => te(i) ? i.value = j : null),
|
|
1519
1525
|
mode: "hexa"
|
|
1520
1526
|
}, null, 8, ["modelValue"])
|
|
1521
1527
|
]),
|
|
@@ -1526,9 +1532,9 @@ const Mo = {
|
|
|
1526
1532
|
}, [
|
|
1527
1533
|
o(r).icon ? {
|
|
1528
1534
|
name: "label",
|
|
1529
|
-
fn: b((
|
|
1535
|
+
fn: b((j) => [
|
|
1530
1536
|
B(o(oe), {
|
|
1531
|
-
data:
|
|
1537
|
+
data: j,
|
|
1532
1538
|
label: o(r)
|
|
1533
1539
|
}, null, 8, ["data", "label"])
|
|
1534
1540
|
]),
|
|
@@ -1563,140 +1569,140 @@ const Mo = {
|
|
|
1563
1569
|
})),
|
|
1564
1570
|
emits: ["update:modelValue", "click:clear"],
|
|
1565
1571
|
setup(e, { emit: t }) {
|
|
1566
|
-
const n = e,
|
|
1572
|
+
const n = e, l = t, a = k(() => {
|
|
1567
1573
|
var f;
|
|
1568
1574
|
return (f = n.locale) != null ? f : o(Po.dateTimeLocale);
|
|
1569
|
-
}), r =
|
|
1570
|
-
var f,
|
|
1571
|
-
return (
|
|
1572
|
-
}), { touched:
|
|
1575
|
+
}), r = k(() => {
|
|
1576
|
+
var f, c;
|
|
1577
|
+
return (c = (f = a.value.options) == null ? void 0 : f.weekStartsOn) != null ? c : 1;
|
|
1578
|
+
}), { touched: d, value: i, vuetifyBindings: p } = K(n, l), { inputType: s, displayFormatDate: _, displayFormatTime: u } = _e(n), m = E(""), h = k({
|
|
1573
1579
|
get() {
|
|
1574
1580
|
return o(m) === "date";
|
|
1575
1581
|
},
|
|
1576
1582
|
set(f) {
|
|
1577
1583
|
m.value = f ? "date" : "";
|
|
1578
1584
|
}
|
|
1579
|
-
}),
|
|
1585
|
+
}), g = k({
|
|
1580
1586
|
get() {
|
|
1581
1587
|
return o(m) === "time";
|
|
1582
1588
|
},
|
|
1583
1589
|
set(f) {
|
|
1584
1590
|
m.value = f ? "time" : "";
|
|
1585
1591
|
}
|
|
1586
|
-
}),
|
|
1587
|
-
function
|
|
1592
|
+
}), w = (f) => `${de(f, "yyyy-MM-dd")}T${de(f, "HH:mm")}:00`, j = E(null);
|
|
1593
|
+
function v(f, c) {
|
|
1588
1594
|
if (f == null)
|
|
1589
|
-
|
|
1590
|
-
else if (
|
|
1591
|
-
if (o(
|
|
1592
|
-
|
|
1595
|
+
j.value = null;
|
|
1596
|
+
else if (c === -1)
|
|
1597
|
+
if (o(s) === "time")
|
|
1598
|
+
j.value = w(/* @__PURE__ */ new Date()), v(`T${f}`, 1);
|
|
1593
1599
|
else {
|
|
1594
|
-
const
|
|
1595
|
-
|
|
1600
|
+
const $ = w(new Date(f));
|
|
1601
|
+
v($, 0), v($, 1);
|
|
1596
1602
|
}
|
|
1597
1603
|
else {
|
|
1598
|
-
|
|
1599
|
-
const
|
|
1600
|
-
|
|
1604
|
+
j.value == null && (j.value = w(/* @__PURE__ */ new Date()));
|
|
1605
|
+
const $ = j.value.split(/[TZ]/g), U = f.split(/[TZ]/g);
|
|
1606
|
+
$[c] = U[c], j.value = w(/* @__PURE__ */ new Date(`${$[0]}T${$[1].split(".")[0]}`)), o(s) === "date" ? i.value = $[0] : o(s) === "time" ? i.value = $[1] : i.value = o(j) + de(/* @__PURE__ */ new Date(), "XXX");
|
|
1601
1607
|
}
|
|
1602
1608
|
}
|
|
1603
|
-
ie(i, (f) =>
|
|
1604
|
-
const
|
|
1609
|
+
ie(i, (f) => v(f, -1), { immediate: !0 });
|
|
1610
|
+
const A = k({
|
|
1605
1611
|
get() {
|
|
1606
|
-
const f = o(
|
|
1612
|
+
const f = o(j);
|
|
1607
1613
|
if (f == null) return null;
|
|
1608
|
-
const
|
|
1609
|
-
return Number.isNaN(
|
|
1614
|
+
const c = new Date(f);
|
|
1615
|
+
return Number.isNaN(c.getTime()) ? null : c;
|
|
1610
1616
|
},
|
|
1611
1617
|
set(f) {
|
|
1612
|
-
w(
|
|
1618
|
+
v(w(f), 0);
|
|
1613
1619
|
}
|
|
1614
|
-
}),
|
|
1620
|
+
}), N = k({
|
|
1615
1621
|
get() {
|
|
1616
|
-
const f = o(
|
|
1622
|
+
const f = o(j);
|
|
1617
1623
|
return f == null ? "" : f.split(/[TZ]/g)[1].split(".")[0];
|
|
1618
1624
|
},
|
|
1619
1625
|
set(f) {
|
|
1620
|
-
|
|
1626
|
+
v(`T${f}`, 1);
|
|
1621
1627
|
}
|
|
1622
|
-
}), T =
|
|
1628
|
+
}), T = k({
|
|
1623
1629
|
get() {
|
|
1624
|
-
const f = o(
|
|
1625
|
-
return f == null ? "" : de(f, o(
|
|
1630
|
+
const f = o(A);
|
|
1631
|
+
return f == null ? "" : de(f, o(_), { locale: a.value });
|
|
1626
1632
|
},
|
|
1627
1633
|
set(f) {
|
|
1628
1634
|
try {
|
|
1629
|
-
const
|
|
1630
|
-
w(
|
|
1631
|
-
} catch (
|
|
1632
|
-
console.error(
|
|
1635
|
+
const c = kt(f, o(_), /* @__PURE__ */ new Date(), { locale: a.value });
|
|
1636
|
+
v(w(c), 0);
|
|
1637
|
+
} catch (c) {
|
|
1638
|
+
console.error(c);
|
|
1633
1639
|
}
|
|
1634
1640
|
}
|
|
1635
|
-
}),
|
|
1641
|
+
}), W = k({
|
|
1636
1642
|
get() {
|
|
1637
|
-
const f = o(
|
|
1638
|
-
return f == null ? "" : de(f, o(
|
|
1643
|
+
const f = o(A);
|
|
1644
|
+
return f == null ? "" : de(f, o(u), { locale: a.value });
|
|
1639
1645
|
},
|
|
1640
1646
|
set(f) {
|
|
1641
|
-
const
|
|
1642
|
-
if (
|
|
1643
|
-
let
|
|
1644
|
-
const U = Le(
|
|
1645
|
-
Me(
|
|
1647
|
+
const c = f.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
1648
|
+
if (c == null) return;
|
|
1649
|
+
let $ = Le(c[1]);
|
|
1650
|
+
const U = Le(c[2]);
|
|
1651
|
+
Me($) || Me(U) || (c[3] && c[3].toLowerCase() === "pm" && $ < 13 && ($ += 12), v(`T${$.toString().padStart(2, "0")}:${U.toString().padStart(2, "0")}:00`, 1));
|
|
1646
1652
|
}
|
|
1647
1653
|
});
|
|
1648
|
-
return (f,
|
|
1649
|
-
const
|
|
1650
|
-
return V(),
|
|
1654
|
+
return (f, c) => {
|
|
1655
|
+
const $ = D("v-date-picker"), U = D("v-confirm-edit"), se = D("v-menu"), ue = D("v-text-field"), C = D("v-time-picker");
|
|
1656
|
+
return V(), P(o(Pe), O(n, {
|
|
1651
1657
|
clearable: f.clearable,
|
|
1652
|
-
"onClick:clear":
|
|
1653
|
-
onBlur:
|
|
1658
|
+
"onClick:clear": c[14] || (c[14] = (I) => i.value = null),
|
|
1659
|
+
onBlur: c[15] || (c[15] = (I) => d.value = !0)
|
|
1654
1660
|
}), {
|
|
1655
1661
|
default: b((I) => [
|
|
1656
1662
|
ne("div", Ho, [
|
|
1657
|
-
["date", "datetime"].includes(o(
|
|
1663
|
+
["date", "datetime"].includes(o(s)) ? (V(), P(ue, O({
|
|
1658
1664
|
key: 0,
|
|
1659
1665
|
modelValue: T.value,
|
|
1660
|
-
"onUpdate:modelValue":
|
|
1666
|
+
"onUpdate:modelValue": c[4] || (c[4] = (y) => T.value = y),
|
|
1661
1667
|
style: { "flex-grow": "4" },
|
|
1662
1668
|
density: "compact",
|
|
1663
1669
|
variant: "plain",
|
|
1664
1670
|
clearable: !1,
|
|
1665
1671
|
"hide-details": !0,
|
|
1666
|
-
readonly: o(
|
|
1667
|
-
disabled: o(
|
|
1668
|
-
name: `${o(
|
|
1672
|
+
readonly: o(p).readonly,
|
|
1673
|
+
disabled: o(p).disabled,
|
|
1674
|
+
name: `${o(p).name}-date`
|
|
1669
1675
|
}, f.passthroughAttrs, {
|
|
1670
|
-
onClick:
|
|
1671
|
-
onKeydown:
|
|
1672
|
-
onFocus: (
|
|
1673
|
-
onBlur: (
|
|
1676
|
+
onClick: c[5] || (c[5] = (y) => m.value = "date"),
|
|
1677
|
+
onKeydown: c[6] || (c[6] = Ae((y) => m.value = "date", ["space"])),
|
|
1678
|
+
onFocus: (y) => I.focus(),
|
|
1679
|
+
onBlur: (y) => I.blur()
|
|
1674
1680
|
}), {
|
|
1675
1681
|
default: b(() => [
|
|
1676
|
-
B(
|
|
1677
|
-
modelValue:
|
|
1678
|
-
"onUpdate:modelValue":
|
|
1682
|
+
B(se, {
|
|
1683
|
+
modelValue: h.value,
|
|
1684
|
+
"onUpdate:modelValue": c[3] || (c[3] = (y) => h.value = y),
|
|
1679
1685
|
"close-on-content-click": !1,
|
|
1680
1686
|
activator: "parent"
|
|
1681
1687
|
}, {
|
|
1682
1688
|
default: b(() => [
|
|
1683
1689
|
B(U, {
|
|
1684
|
-
modelValue:
|
|
1685
|
-
"onUpdate:modelValue":
|
|
1686
|
-
onCancel:
|
|
1687
|
-
onSave:
|
|
1690
|
+
modelValue: A.value,
|
|
1691
|
+
"onUpdate:modelValue": c[0] || (c[0] = (y) => A.value = y),
|
|
1692
|
+
onCancel: c[1] || (c[1] = (y) => m.value = ""),
|
|
1693
|
+
onSave: c[2] || (c[2] = (y) => m.value = "")
|
|
1688
1694
|
}, {
|
|
1689
|
-
default: b(({ model:
|
|
1690
|
-
B(
|
|
1691
|
-
modelValue:
|
|
1692
|
-
"onUpdate:modelValue": (
|
|
1695
|
+
default: b(({ model: y, actions: Z }) => [
|
|
1696
|
+
B($, {
|
|
1697
|
+
modelValue: y.value,
|
|
1698
|
+
"onUpdate:modelValue": (ce) => y.value = ce,
|
|
1693
1699
|
"hide-header": !0,
|
|
1694
1700
|
"first-day-of-week": r.value,
|
|
1695
1701
|
"show-adjacent-months": !0,
|
|
1696
1702
|
"show-week": !0
|
|
1697
1703
|
}, {
|
|
1698
1704
|
actions: b(() => [
|
|
1699
|
-
(V(),
|
|
1705
|
+
(V(), P(he(Z)))
|
|
1700
1706
|
]),
|
|
1701
1707
|
_: 2
|
|
1702
1708
|
}, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
|
|
@@ -1709,47 +1715,47 @@ const Mo = {
|
|
|
1709
1715
|
]),
|
|
1710
1716
|
_: 2
|
|
1711
1717
|
}, 1040, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : L("", !0),
|
|
1712
|
-
["time", "datetime"].includes(o(
|
|
1718
|
+
["time", "datetime"].includes(o(s)) ? (V(), P(ue, O({
|
|
1713
1719
|
key: 1,
|
|
1714
|
-
modelValue:
|
|
1715
|
-
"onUpdate:modelValue":
|
|
1720
|
+
modelValue: W.value,
|
|
1721
|
+
"onUpdate:modelValue": c[11] || (c[11] = (y) => W.value = y),
|
|
1716
1722
|
style: { "flex-grow": "3" },
|
|
1717
1723
|
density: "compact",
|
|
1718
1724
|
variant: "plain",
|
|
1719
1725
|
clearable: !1,
|
|
1720
1726
|
"hide-details": !0,
|
|
1721
|
-
readonly: o(
|
|
1722
|
-
disabled: o(
|
|
1723
|
-
name: `${o(
|
|
1727
|
+
readonly: o(p).readonly,
|
|
1728
|
+
disabled: o(p).disabled,
|
|
1729
|
+
name: `${o(p).name}-time`
|
|
1724
1730
|
}, f.passthroughAttrs, {
|
|
1725
|
-
onClick:
|
|
1726
|
-
onKeydown:
|
|
1727
|
-
onFocus: (
|
|
1728
|
-
onBlur: (
|
|
1731
|
+
onClick: c[12] || (c[12] = (y) => m.value = "time"),
|
|
1732
|
+
onKeydown: c[13] || (c[13] = Ae((y) => m.value = "time", ["space"])),
|
|
1733
|
+
onFocus: (y) => I.focus(),
|
|
1734
|
+
onBlur: (y) => I.blur()
|
|
1729
1735
|
}), {
|
|
1730
1736
|
default: b(() => [
|
|
1731
|
-
B(
|
|
1732
|
-
modelValue:
|
|
1733
|
-
"onUpdate:modelValue":
|
|
1737
|
+
B(se, {
|
|
1738
|
+
modelValue: g.value,
|
|
1739
|
+
"onUpdate:modelValue": c[10] || (c[10] = (y) => g.value = y),
|
|
1734
1740
|
"close-on-content-click": !1,
|
|
1735
1741
|
activator: "parent"
|
|
1736
1742
|
}, {
|
|
1737
1743
|
default: b(() => [
|
|
1738
1744
|
B(U, {
|
|
1739
|
-
modelValue:
|
|
1740
|
-
"onUpdate:modelValue":
|
|
1741
|
-
onCancel:
|
|
1742
|
-
onSave:
|
|
1745
|
+
modelValue: N.value,
|
|
1746
|
+
"onUpdate:modelValue": c[7] || (c[7] = (y) => N.value = y),
|
|
1747
|
+
onCancel: c[8] || (c[8] = (y) => m.value = ""),
|
|
1748
|
+
onSave: c[9] || (c[9] = (y) => m.value = "")
|
|
1743
1749
|
}, {
|
|
1744
|
-
default: b(({ model:
|
|
1750
|
+
default: b(({ model: y, actions: Z }) => [
|
|
1745
1751
|
B(C, {
|
|
1746
|
-
modelValue:
|
|
1747
|
-
"onUpdate:modelValue": (
|
|
1752
|
+
modelValue: y.value,
|
|
1753
|
+
"onUpdate:modelValue": (ce) => y.value = ce,
|
|
1748
1754
|
"hide-header": !0,
|
|
1749
1755
|
format: "24hr"
|
|
1750
1756
|
}, {
|
|
1751
1757
|
actions: b(() => [
|
|
1752
|
-
(V(),
|
|
1758
|
+
(V(), P(he(Z)))
|
|
1753
1759
|
]),
|
|
1754
1760
|
_: 2
|
|
1755
1761
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1790,79 +1796,79 @@ const Mo = {
|
|
|
1790
1796
|
}, Q),
|
|
1791
1797
|
emits: ["update:modelValue", "click:clear"],
|
|
1792
1798
|
setup(e, { emit: t }) {
|
|
1793
|
-
const n = e,
|
|
1794
|
-
function
|
|
1799
|
+
const n = e, l = t, { touched: a, value: r, vuetifyBindings: d } = K(n, l), i = E(null), p = E(null), s = E(0), _ = E(Math.round(Math.random() * 1e3)), u = E(), m = k(() => p.value && s.value < 100), h = k(() => !u.value && r.value ? n.modelValue : "");
|
|
1800
|
+
function g() {
|
|
1795
1801
|
i.value && window.clearInterval(i.value);
|
|
1796
1802
|
}
|
|
1797
|
-
function
|
|
1798
|
-
|
|
1803
|
+
function w() {
|
|
1804
|
+
g(), i.value = window.setInterval(() => {
|
|
1799
1805
|
r.value && n.comms.touch(r.value);
|
|
1800
1806
|
}, 60 * 1e3);
|
|
1801
1807
|
}
|
|
1802
|
-
He(() =>
|
|
1803
|
-
|
|
1808
|
+
He(() => g()), ie(r, (N) => {
|
|
1809
|
+
N ? w() : g();
|
|
1804
1810
|
});
|
|
1805
|
-
function
|
|
1806
|
-
return
|
|
1807
|
-
r.value && (yield n.comms.delete(r.value)), r.value = null,
|
|
1811
|
+
function j() {
|
|
1812
|
+
return ge(this, null, function* () {
|
|
1813
|
+
r.value && (yield n.comms.delete(r.value)), r.value = null, s.value = 0, _.value = Math.round(Math.random() * 1e3), p.value = null, u.value = null, g();
|
|
1808
1814
|
});
|
|
1809
1815
|
}
|
|
1810
|
-
function
|
|
1811
|
-
return
|
|
1812
|
-
|
|
1816
|
+
function v(N) {
|
|
1817
|
+
return ge(this, null, function* () {
|
|
1818
|
+
s.value = -1, p.value = N;
|
|
1813
1819
|
try {
|
|
1814
1820
|
r.value = yield n.comms.upload(
|
|
1815
|
-
|
|
1816
|
-
(T,
|
|
1817
|
-
|
|
1821
|
+
N,
|
|
1822
|
+
(T, W) => {
|
|
1823
|
+
s.value = Math.round(T * 100 / W);
|
|
1818
1824
|
}
|
|
1819
|
-
),
|
|
1825
|
+
), s.value = 100, w();
|
|
1820
1826
|
} catch (T) {
|
|
1821
|
-
throw
|
|
1827
|
+
throw s.value = 0, p.value = null, _.value = Math.round(Math.random() * 1e3), u.value = null, T;
|
|
1822
1828
|
}
|
|
1823
1829
|
});
|
|
1824
1830
|
}
|
|
1825
|
-
function N
|
|
1826
|
-
|
|
1831
|
+
function A(N) {
|
|
1832
|
+
N && (Array.isArray(N) ? console.error("Uploading multiple files not supported right now") : v(N));
|
|
1827
1833
|
}
|
|
1828
|
-
return (
|
|
1829
|
-
const
|
|
1830
|
-
return V(),
|
|
1834
|
+
return (N, T) => {
|
|
1835
|
+
const W = D("v-icon"), f = D("v-progress-linear"), c = D("v-file-input");
|
|
1836
|
+
return V(), P(o(Pe), O(F(x({}, n), { loading: m.value }), {
|
|
1831
1837
|
clearable: "",
|
|
1832
|
-
"onClick:clear":
|
|
1833
|
-
onBlur: T[1] || (T[1] = (
|
|
1838
|
+
"onClick:clear": j,
|
|
1839
|
+
onBlur: T[1] || (T[1] = ($) => a.value = !0)
|
|
1834
1840
|
}), {
|
|
1835
1841
|
"prepend-inner": b(() => [
|
|
1836
|
-
B(
|
|
1842
|
+
B(W, { icon: "$file" })
|
|
1837
1843
|
]),
|
|
1838
1844
|
loader: b(() => [
|
|
1839
|
-
|
|
1845
|
+
p.value && s.value < 100 ? (V(), P(f, {
|
|
1840
1846
|
key: 0,
|
|
1841
|
-
"model-value":
|
|
1842
|
-
indeterminate:
|
|
1847
|
+
"model-value": s.value,
|
|
1848
|
+
indeterminate: s.value === -1
|
|
1843
1849
|
}, null, 8, ["model-value", "indeterminate"])) : L("", !0)
|
|
1844
1850
|
]),
|
|
1845
|
-
default: b((
|
|
1851
|
+
default: b(($) => [
|
|
1846
1852
|
ne("div", Xo, [
|
|
1847
|
-
B(
|
|
1848
|
-
modelValue:
|
|
1849
|
-
"onUpdate:modelValue": T[0] || (T[0] = (U) =>
|
|
1850
|
-
label:
|
|
1853
|
+
B(c, O({
|
|
1854
|
+
modelValue: u.value,
|
|
1855
|
+
"onUpdate:modelValue": T[0] || (T[0] = (U) => u.value = U),
|
|
1856
|
+
label: h.value,
|
|
1851
1857
|
density: "compact",
|
|
1852
1858
|
variant: "plain",
|
|
1853
|
-
readonly: o(
|
|
1854
|
-
disabled: o(
|
|
1855
|
-
name: o(
|
|
1859
|
+
readonly: o(d).readonly,
|
|
1860
|
+
disabled: o(d).disabled,
|
|
1861
|
+
name: o(d).name,
|
|
1856
1862
|
"hide-details": !0,
|
|
1857
1863
|
"show-size": !0,
|
|
1858
1864
|
multiple: !1,
|
|
1859
|
-
style:
|
|
1865
|
+
style: p.value && s.value < 100 ? "visibility: hidden" : "",
|
|
1860
1866
|
clearable: !1
|
|
1861
|
-
},
|
|
1867
|
+
}, N.passthroughAttrs, {
|
|
1862
1868
|
"prepend-icon": "",
|
|
1863
|
-
"onUpdate:modelValue":
|
|
1864
|
-
onFocus: (U) =>
|
|
1865
|
-
onBlur: (U) =>
|
|
1869
|
+
"onUpdate:modelValue": A,
|
|
1870
|
+
onFocus: (U) => $.focus(),
|
|
1871
|
+
onBlur: (U) => $.blur()
|
|
1866
1872
|
}), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
|
|
1867
1873
|
])
|
|
1868
1874
|
]),
|
|
@@ -1899,22 +1905,22 @@ const Mo = {
|
|
|
1899
1905
|
})),
|
|
1900
1906
|
emits: ["update:modelValue", "click:clear"],
|
|
1901
1907
|
setup(e, { emit: t }) {
|
|
1902
|
-
const n = e,
|
|
1903
|
-
return (
|
|
1904
|
-
const
|
|
1908
|
+
const n = e, l = t, { errors: a, label: r, touched: d, value: i, vuetifyBindings: p } = K(n, l), { inputType: s, max: _, min: u, precision: m, step: h } = _e(n), g = k(() => s.value === "number"), w = k(() => g.value ? { min: o(u), max: o(_), precision: o(m), step: o(h) } : {});
|
|
1909
|
+
return (j, v) => {
|
|
1910
|
+
const A = D("v-text-field"), N = D("v-number-input");
|
|
1905
1911
|
return V(), R("div", qo, [
|
|
1906
|
-
|
|
1912
|
+
g.value ? (V(), P(N, O({
|
|
1907
1913
|
key: 1,
|
|
1908
1914
|
modelValue: o(i),
|
|
1909
|
-
"onUpdate:modelValue":
|
|
1910
|
-
}, x(x({}, o(
|
|
1915
|
+
"onUpdate:modelValue": v[2] || (v[2] = (T) => te(i) ? i.value = T : null)
|
|
1916
|
+
}, x(x({}, o(p)), w.value), {
|
|
1911
1917
|
density: "compact",
|
|
1912
1918
|
"control-variant": "stacked"
|
|
1913
1919
|
}), q({
|
|
1914
1920
|
message: b(({ message: T }) => [
|
|
1915
|
-
B(o(
|
|
1921
|
+
B(o(le), {
|
|
1916
1922
|
message: T,
|
|
1917
|
-
errors: o(
|
|
1923
|
+
errors: o(a)
|
|
1918
1924
|
}, null, 8, ["message", "errors"])
|
|
1919
1925
|
]),
|
|
1920
1926
|
_: 2
|
|
@@ -1929,18 +1935,18 @@ const Mo = {
|
|
|
1929
1935
|
]),
|
|
1930
1936
|
key: "0"
|
|
1931
1937
|
} : void 0
|
|
1932
|
-
]), 1040, ["modelValue"])) : (V(),
|
|
1938
|
+
]), 1040, ["modelValue"])) : (V(), P(A, O({
|
|
1933
1939
|
key: 0,
|
|
1934
1940
|
modelValue: o(i),
|
|
1935
|
-
"onUpdate:modelValue":
|
|
1936
|
-
}, o(
|
|
1937
|
-
type: o(
|
|
1938
|
-
onBlur:
|
|
1941
|
+
"onUpdate:modelValue": v[0] || (v[0] = (T) => te(i) ? i.value = T : null)
|
|
1942
|
+
}, o(p), {
|
|
1943
|
+
type: o(s),
|
|
1944
|
+
onBlur: v[1] || (v[1] = (T) => d.value = !0)
|
|
1939
1945
|
}), q({
|
|
1940
1946
|
message: b(({ message: T }) => [
|
|
1941
|
-
B(o(
|
|
1947
|
+
B(o(le), {
|
|
1942
1948
|
message: T,
|
|
1943
|
-
errors: o(
|
|
1949
|
+
errors: o(a)
|
|
1944
1950
|
}, null, 8, ["message", "errors"])
|
|
1945
1951
|
]),
|
|
1946
1952
|
_: 2
|
|
@@ -1959,7 +1965,7 @@ const Mo = {
|
|
|
1959
1965
|
]);
|
|
1960
1966
|
};
|
|
1961
1967
|
}
|
|
1962
|
-
}), Qo = /* @__PURE__ */
|
|
1968
|
+
}), Qo = /* @__PURE__ */ be(Yo, [["__scopeId", "data-v-a3a9a978"]]), Zo = { class: "editor-container" }, Jo = { class: "editor-container__editor" }, el = { ref: "editorElement" }, tl = /* @__PURE__ */ M({
|
|
1963
1969
|
__name: "ck-editor-custom",
|
|
1964
1970
|
props: {
|
|
1965
1971
|
modelValue: { default: "" },
|
|
@@ -1968,10 +1974,10 @@ const Mo = {
|
|
|
1968
1974
|
},
|
|
1969
1975
|
emits: ["update:modelValue"],
|
|
1970
1976
|
setup(e, { expose: t, emit: n }) {
|
|
1971
|
-
mt((
|
|
1972
|
-
"3d4d5a06":
|
|
1977
|
+
mt((u) => ({
|
|
1978
|
+
"3d4d5a06": u.minHeight
|
|
1973
1979
|
}));
|
|
1974
|
-
const
|
|
1980
|
+
const l = n, a = E(!1), r = cn, s = {
|
|
1975
1981
|
toolbar: {
|
|
1976
1982
|
items: [
|
|
1977
1983
|
"undo",
|
|
@@ -2024,8 +2030,8 @@ const Mo = {
|
|
|
2024
2030
|
Ut,
|
|
2025
2031
|
Ot,
|
|
2026
2032
|
Rt,
|
|
2027
|
-
Wt,
|
|
2028
2033
|
zt,
|
|
2034
|
+
Wt,
|
|
2029
2035
|
Ht,
|
|
2030
2036
|
Kt,
|
|
2031
2037
|
Xt,
|
|
@@ -2039,8 +2045,8 @@ const Mo = {
|
|
|
2039
2045
|
tn,
|
|
2040
2046
|
nn,
|
|
2041
2047
|
on,
|
|
2042
|
-
an,
|
|
2043
2048
|
ln,
|
|
2049
|
+
an,
|
|
2044
2050
|
rn,
|
|
2045
2051
|
sn,
|
|
2046
2052
|
un
|
|
@@ -2102,32 +2108,32 @@ const Mo = {
|
|
|
2102
2108
|
},
|
|
2103
2109
|
table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] }
|
|
2104
2110
|
};
|
|
2105
|
-
|
|
2106
|
-
|
|
2111
|
+
We(() => {
|
|
2112
|
+
a.value = !0;
|
|
2107
2113
|
});
|
|
2108
|
-
const
|
|
2114
|
+
const _ = (u) => {
|
|
2109
2115
|
};
|
|
2110
|
-
return t({ onEditorReady:
|
|
2111
|
-
const
|
|
2116
|
+
return t({ onEditorReady: _ }), (u, m) => {
|
|
2117
|
+
const h = D("ckeditor");
|
|
2112
2118
|
return V(), R("div", Zo, [
|
|
2113
2119
|
ne("div", Jo, [
|
|
2114
|
-
ne("div",
|
|
2115
|
-
|
|
2120
|
+
ne("div", el, [
|
|
2121
|
+
a.value ? (V(), P(h, {
|
|
2116
2122
|
key: 0,
|
|
2117
|
-
"model-value":
|
|
2123
|
+
"model-value": u.modelValue,
|
|
2118
2124
|
editor: o(r),
|
|
2119
|
-
config:
|
|
2120
|
-
disabled:
|
|
2121
|
-
style: Xe(`min-height: ${
|
|
2122
|
-
onReady:
|
|
2123
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
2125
|
+
config: s,
|
|
2126
|
+
disabled: u.disabled,
|
|
2127
|
+
style: Xe(`min-height: ${u.minHeight}`),
|
|
2128
|
+
onReady: _,
|
|
2129
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => l("update:modelValue", g))
|
|
2124
2130
|
}, null, 8, ["model-value", "editor", "disabled", "style"])) : L("", !0)
|
|
2125
2131
|
], 512)
|
|
2126
2132
|
])
|
|
2127
2133
|
]);
|
|
2128
2134
|
};
|
|
2129
2135
|
}
|
|
2130
|
-
}),
|
|
2136
|
+
}), nl = /* @__PURE__ */ M({
|
|
2131
2137
|
__name: "df-rtf-editor",
|
|
2132
2138
|
props: /* @__PURE__ */ Y({
|
|
2133
2139
|
minHeight: {},
|
|
@@ -2146,57 +2152,57 @@ const Mo = {
|
|
|
2146
2152
|
}, F(x({}, Q), { minHeight: void 0 })),
|
|
2147
2153
|
emits: ["update:modelValue", "click:clear"],
|
|
2148
2154
|
setup(e, { emit: t }) {
|
|
2149
|
-
const n = e,
|
|
2150
|
-
return (
|
|
2151
|
-
default: b((
|
|
2152
|
-
B(
|
|
2155
|
+
const n = e, l = t, { value: a, vuetifyBindings: r } = K(n, l);
|
|
2156
|
+
return (d, i) => (V(), P(o(Pe), X(G(n)), {
|
|
2157
|
+
default: b((p) => [
|
|
2158
|
+
B(tl, O({
|
|
2153
2159
|
ref: "$editor",
|
|
2154
|
-
modelValue: o(
|
|
2155
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
2156
|
-
class: { "mt-8": !!
|
|
2157
|
-
"min-height":
|
|
2160
|
+
modelValue: o(a),
|
|
2161
|
+
"onUpdate:modelValue": i[0] || (i[0] = (s) => te(a) ? a.value = s : null),
|
|
2162
|
+
class: { "mt-8": !!d.label },
|
|
2163
|
+
"min-height": d.minHeight,
|
|
2158
2164
|
disabled: o(r).disabled
|
|
2159
|
-
},
|
|
2160
|
-
onFocusin: (
|
|
2161
|
-
onFocusout: (
|
|
2165
|
+
}, d.passthroughAttrs, {
|
|
2166
|
+
onFocusin: (s) => p.focus(),
|
|
2167
|
+
onFocusout: (s) => p.blur()
|
|
2162
2168
|
}), null, 16, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
|
|
2163
2169
|
]),
|
|
2164
2170
|
_: 1
|
|
2165
2171
|
}, 16));
|
|
2166
2172
|
}
|
|
2167
2173
|
});
|
|
2168
|
-
function
|
|
2174
|
+
function ol(e) {
|
|
2169
2175
|
return e.map((t) => ({ value: t.id, title: t.text, icon: t.icon }));
|
|
2170
2176
|
}
|
|
2171
2177
|
function J(e, t) {
|
|
2172
2178
|
var n;
|
|
2173
2179
|
return e == null || Ue(e) && e.length === 0 ? null : t ? Ge(e) : Ue(e) ? (n = qe(e)) != null ? n : null : e;
|
|
2174
2180
|
}
|
|
2175
|
-
function
|
|
2181
|
+
function Ve(e, t) {
|
|
2176
2182
|
if (t == null) return [];
|
|
2177
2183
|
const n = Ge(t);
|
|
2178
|
-
return e.filter((
|
|
2184
|
+
return e.filter((l) => n.some((a) => a === l.id));
|
|
2179
2185
|
}
|
|
2180
|
-
function
|
|
2181
|
-
var
|
|
2186
|
+
function ye(e, t, n, l, a) {
|
|
2187
|
+
var d;
|
|
2182
2188
|
const r = J(e, n);
|
|
2183
2189
|
if (r == null) {
|
|
2184
2190
|
t.value = n ? [] : null;
|
|
2185
2191
|
return;
|
|
2186
2192
|
}
|
|
2187
2193
|
if (n)
|
|
2188
|
-
|
|
2189
|
-
else if (
|
|
2194
|
+
l ? t.value = r : t.value = Ve(a, r).map((i) => i.id);
|
|
2195
|
+
else if (l)
|
|
2190
2196
|
t.value = r;
|
|
2191
2197
|
else {
|
|
2192
|
-
const i = qe(
|
|
2193
|
-
t.value = (
|
|
2198
|
+
const i = qe(Ve(a, r));
|
|
2199
|
+
t.value = (d = i == null ? void 0 : i.id) != null ? d : null;
|
|
2194
2200
|
}
|
|
2195
2201
|
}
|
|
2196
|
-
const
|
|
2202
|
+
const ll = {
|
|
2197
2203
|
key: 0,
|
|
2198
2204
|
class: "me-1"
|
|
2199
|
-
},
|
|
2205
|
+
}, al = /* @__PURE__ */ M({
|
|
2200
2206
|
__name: "df-select",
|
|
2201
2207
|
props: /* @__PURE__ */ Y({
|
|
2202
2208
|
choices: {},
|
|
@@ -2225,167 +2231,168 @@ const aa = {
|
|
|
2225
2231
|
})),
|
|
2226
2232
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
2227
2233
|
setup(e, { emit: t }) {
|
|
2228
|
-
const n = e, { choices:
|
|
2229
|
-
function
|
|
2230
|
-
|
|
2234
|
+
const n = e, { choices: l, multiple: a, allowTags: r, allowNull: d, cssClass: i, visibility: p } = _e(n), s = t, { errors: _, label: u, touched: m, value: h, vuetifyBindings: g } = K(n, s), w = E(null), j = E(!1), v = E([]), A = k(() => o(j) ? o(v) : o(l) || []), N = E(!1), T = k(() => ol(A.value));
|
|
2235
|
+
function W(C) {
|
|
2236
|
+
s("update:modelValueDisplay", Ve(A.value, C));
|
|
2231
2237
|
}
|
|
2232
2238
|
let f = !1;
|
|
2233
|
-
function
|
|
2234
|
-
f = !0,
|
|
2239
|
+
function c(C) {
|
|
2240
|
+
f = !0, h.value = C, Ne(() => {
|
|
2235
2241
|
f = !1;
|
|
2236
2242
|
});
|
|
2237
2243
|
}
|
|
2238
|
-
ie(
|
|
2239
|
-
|
|
2240
|
-
const I = J(C,
|
|
2241
|
-
|
|
2244
|
+
ie(w, (C) => {
|
|
2245
|
+
g.value.readonly || Ne(() => {
|
|
2246
|
+
const I = J(C, a.value);
|
|
2247
|
+
W(I), c(I);
|
|
2242
2248
|
});
|
|
2243
|
-
}, { deep: !0 }), ie(
|
|
2249
|
+
}, { deep: !0 }), ie(h, (C) => {
|
|
2244
2250
|
if (!f) {
|
|
2245
|
-
const I = J(C,
|
|
2246
|
-
|
|
2251
|
+
const I = J(C, a.value);
|
|
2252
|
+
ye(I, w, a.value, !1, A.value);
|
|
2247
2253
|
}
|
|
2248
2254
|
}, { deep: !0 });
|
|
2249
|
-
function
|
|
2250
|
-
if (
|
|
2251
|
-
const C = J(
|
|
2252
|
-
|
|
2255
|
+
function $() {
|
|
2256
|
+
if (g.value.readonly || r.value) return;
|
|
2257
|
+
const C = J(w.value, a.value);
|
|
2258
|
+
ye(C, w, a.value, !1, A.value), c(C);
|
|
2253
2259
|
}
|
|
2254
2260
|
function U(C) {
|
|
2255
2261
|
let I;
|
|
2256
|
-
|
|
2262
|
+
a.value && Array.isArray(w.value) ? I = J(w.value.filter((y) => y !== C), a.value) : I = null, ye(I, w, a.value, !1, A.value), c(I);
|
|
2257
2263
|
}
|
|
2258
|
-
function
|
|
2259
|
-
return
|
|
2260
|
-
if (!(
|
|
2261
|
-
|
|
2264
|
+
function se(C, I) {
|
|
2265
|
+
return ge(this, null, function* () {
|
|
2266
|
+
if (!(l.value || n.fetchChoices === void 0)) {
|
|
2267
|
+
N.value = !0;
|
|
2262
2268
|
try {
|
|
2263
|
-
const
|
|
2264
|
-
|
|
2269
|
+
const y = Ve(A.value, J(w.value, a.value)), Z = yield n.fetchChoices(C, I);
|
|
2270
|
+
v.value = ht([...y, ...Z], "id"), j.value = !0;
|
|
2265
2271
|
} finally {
|
|
2266
|
-
|
|
2272
|
+
N.value = !1;
|
|
2267
2273
|
}
|
|
2268
2274
|
}
|
|
2269
2275
|
});
|
|
2270
2276
|
}
|
|
2271
|
-
function
|
|
2272
|
-
let C =
|
|
2273
|
-
!
|
|
2277
|
+
function ue() {
|
|
2278
|
+
let C = h.value;
|
|
2279
|
+
!d.value && C == null && T.value.length && (C = T.value[0].value), C = J(C, a.value), ye(C, w, a.value, r.value, A.value), W(C), c(C);
|
|
2274
2280
|
}
|
|
2275
|
-
return
|
|
2276
|
-
|
|
2281
|
+
return ue(), n.fetchChoices !== void 0 && se(void 0, h.value).then(() => {
|
|
2282
|
+
ue();
|
|
2277
2283
|
}), (C, I) => {
|
|
2278
|
-
const
|
|
2279
|
-
return o(
|
|
2284
|
+
const y = D("v-icon"), Z = D("v-chip"), ce = D("v-list-item");
|
|
2285
|
+
return o(p) !== o(H).SUPPRESS ? (V(), P(he(o(r) ? "v-combobox" : "v-autocomplete"), O({
|
|
2280
2286
|
key: 0,
|
|
2281
|
-
modelValue:
|
|
2282
|
-
"onUpdate:modelValue": I[0] || (I[0] = (
|
|
2287
|
+
modelValue: w.value,
|
|
2288
|
+
"onUpdate:modelValue": I[0] || (I[0] = (S) => w.value = S),
|
|
2283
2289
|
class: [
|
|
2284
2290
|
o(i),
|
|
2285
2291
|
{
|
|
2286
|
-
"d-none": o(
|
|
2287
|
-
invisible: o(
|
|
2292
|
+
"d-none": o(p) === o(H).HIDDEN,
|
|
2293
|
+
invisible: o(p) === o(H).INVISIBLE
|
|
2288
2294
|
}
|
|
2289
2295
|
],
|
|
2290
2296
|
items: T.value,
|
|
2291
2297
|
"return-object": !1
|
|
2292
|
-
}, o(
|
|
2293
|
-
label: o(
|
|
2298
|
+
}, o(g), {
|
|
2299
|
+
label: o(g).label,
|
|
2294
2300
|
chips: "",
|
|
2295
2301
|
"auto-select-first": !0,
|
|
2296
|
-
"closable-chips": o(
|
|
2297
|
-
clearable: o(
|
|
2298
|
-
multiple: o(
|
|
2299
|
-
loading:
|
|
2302
|
+
"closable-chips": o(d) || o(a) && w.value.length > 1,
|
|
2303
|
+
clearable: o(d),
|
|
2304
|
+
multiple: o(a),
|
|
2305
|
+
loading: N.value,
|
|
2300
2306
|
"hide-selected": !1,
|
|
2301
|
-
"aria-describedby": o(
|
|
2307
|
+
"aria-describedby": o(g).helpText ? `${o(g).name}-help` : null,
|
|
2302
2308
|
"menu-props": { maxHeight: "400" },
|
|
2303
2309
|
"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] = (
|
|
2310
|
+
"onUpdate:search": I[1] || (I[1] = (S) => se(S, void 0)),
|
|
2311
|
+
"onUpdate:modelValue": $,
|
|
2312
|
+
"onClick:clear": I[2] || (I[2] = (S) => w.value = null),
|
|
2313
|
+
onBlur: I[3] || (I[3] = (S) => m.value = !0)
|
|
2308
2314
|
}), q({
|
|
2309
|
-
chip: b(({ item:
|
|
2310
|
-
(V(),
|
|
2311
|
-
key:
|
|
2315
|
+
chip: b(({ item: S }) => [
|
|
2316
|
+
(V(), P(Z, {
|
|
2317
|
+
key: S.value,
|
|
2312
2318
|
label: "",
|
|
2313
2319
|
size: "small",
|
|
2314
2320
|
class: "d-flex align-middle",
|
|
2315
|
-
variant: o(
|
|
2316
|
-
closable: o(
|
|
2317
|
-
"onClick:close": (
|
|
2321
|
+
variant: o(a) ? "tonal" : "text",
|
|
2322
|
+
closable: o(a),
|
|
2323
|
+
"onClick:close": (ae) => U(S.value)
|
|
2318
2324
|
}, {
|
|
2319
2325
|
prepend: b(() => {
|
|
2320
|
-
var
|
|
2326
|
+
var ae;
|
|
2321
2327
|
return [
|
|
2322
|
-
(
|
|
2328
|
+
(ae = S.raw) != null && ae.icon ? (V(), P(y, {
|
|
2323
2329
|
key: 0,
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2330
|
+
size: "24",
|
|
2331
|
+
class: "me-1",
|
|
2332
|
+
icon: S.raw.icon
|
|
2333
|
+
}, null, 8, ["icon"])) : L("", !0)
|
|
2327
2334
|
];
|
|
2328
2335
|
}),
|
|
2329
2336
|
default: b(() => [
|
|
2330
2337
|
ne("span", {
|
|
2331
|
-
class: Ie({ "text-body-1": !o(
|
|
2332
|
-
}, Be(
|
|
2338
|
+
class: Ie({ "text-body-1": !o(a) })
|
|
2339
|
+
}, Be(S.title), 3)
|
|
2333
2340
|
]),
|
|
2334
2341
|
_: 2
|
|
2335
2342
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
2336
2343
|
]),
|
|
2337
|
-
item: b(({ props:
|
|
2338
|
-
B(
|
|
2344
|
+
item: b(({ props: S, item: ae }) => [
|
|
2345
|
+
B(ce, X(G(S)), {
|
|
2339
2346
|
prepend: b(() => {
|
|
2340
2347
|
var De;
|
|
2341
2348
|
return [
|
|
2342
|
-
(De =
|
|
2343
|
-
B(
|
|
2344
|
-
class: "action-icon
|
|
2345
|
-
|
|
2346
|
-
}, null, 8, ["
|
|
2349
|
+
(De = ae.raw) != null && De.icon ? (V(), R("span", ll, [
|
|
2350
|
+
B(y, {
|
|
2351
|
+
class: "action-icon",
|
|
2352
|
+
icon: ae.raw.icon
|
|
2353
|
+
}, null, 8, ["icon"])
|
|
2347
2354
|
])) : L("", !0)
|
|
2348
2355
|
];
|
|
2349
2356
|
}),
|
|
2350
2357
|
_: 2
|
|
2351
2358
|
}, 1040)
|
|
2352
2359
|
]),
|
|
2353
|
-
message: b(({ message:
|
|
2354
|
-
B(o(
|
|
2355
|
-
message:
|
|
2356
|
-
errors: o(
|
|
2360
|
+
message: b(({ message: S }) => [
|
|
2361
|
+
B(o(le), {
|
|
2362
|
+
message: S,
|
|
2363
|
+
errors: o(_)
|
|
2357
2364
|
}, null, 8, ["message", "errors"])
|
|
2358
2365
|
]),
|
|
2359
2366
|
_: 2
|
|
2360
2367
|
}, [
|
|
2361
|
-
o(
|
|
2368
|
+
o(u).icon ? {
|
|
2362
2369
|
name: "label",
|
|
2363
|
-
fn: b((
|
|
2370
|
+
fn: b((S) => [
|
|
2364
2371
|
B(o(oe), {
|
|
2365
|
-
data:
|
|
2366
|
-
label: o(
|
|
2372
|
+
data: S,
|
|
2373
|
+
label: o(u)
|
|
2367
2374
|
}, null, 8, ["data", "label"])
|
|
2368
2375
|
]),
|
|
2369
2376
|
key: "0"
|
|
2370
2377
|
} : void 0,
|
|
2371
2378
|
C.$slots["append-inner"] ? {
|
|
2372
2379
|
name: "append-inner",
|
|
2373
|
-
fn: b((
|
|
2374
|
-
re(C.$slots, "append-inner", X(G(
|
|
2380
|
+
fn: b((S) => [
|
|
2381
|
+
re(C.$slots, "append-inner", X(G(S)))
|
|
2375
2382
|
]),
|
|
2376
2383
|
key: "1"
|
|
2377
2384
|
} : void 0,
|
|
2378
2385
|
C.$slots["prepend-inner"] ? {
|
|
2379
2386
|
name: "prepend-inner",
|
|
2380
|
-
fn: b((
|
|
2381
|
-
re(C.$slots, "prepend-inner", X(G(
|
|
2387
|
+
fn: b((S) => [
|
|
2388
|
+
re(C.$slots, "prepend-inner", X(G(S)))
|
|
2382
2389
|
]),
|
|
2383
2390
|
key: "2"
|
|
2384
2391
|
} : void 0
|
|
2385
2392
|
]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : L("", !0);
|
|
2386
2393
|
};
|
|
2387
2394
|
}
|
|
2388
|
-
}),
|
|
2395
|
+
}), rl = { class: "container" }, il = /* @__PURE__ */ M({
|
|
2389
2396
|
__name: "df-text-area",
|
|
2390
2397
|
props: /* @__PURE__ */ Y({
|
|
2391
2398
|
rows: {},
|
|
@@ -2408,40 +2415,40 @@ const aa = {
|
|
|
2408
2415
|
})),
|
|
2409
2416
|
emits: ["update:modelValue", "click:clear"],
|
|
2410
2417
|
setup(e, { emit: t }) {
|
|
2411
|
-
const n = e,
|
|
2412
|
-
return (
|
|
2413
|
-
const
|
|
2414
|
-
return V(), R("div",
|
|
2415
|
-
o(
|
|
2418
|
+
const n = e, l = t, { errors: a, label: r, touched: d, value: i, vuetifyBindings: p } = K(n, l), { cssClass: s, visibility: _ } = _e(n);
|
|
2419
|
+
return (u, m) => {
|
|
2420
|
+
const h = D("v-textarea");
|
|
2421
|
+
return V(), R("div", rl, [
|
|
2422
|
+
o(_) !== o(H).SUPPRESS ? (V(), P(h, O({
|
|
2416
2423
|
key: 0,
|
|
2417
2424
|
modelValue: o(i),
|
|
2418
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
2425
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => te(i) ? i.value = g : null),
|
|
2419
2426
|
class: [
|
|
2420
|
-
o(
|
|
2427
|
+
o(s),
|
|
2421
2428
|
{
|
|
2422
|
-
"d-none": o(
|
|
2423
|
-
invisible: o(
|
|
2429
|
+
"d-none": o(_) === o(H).HIDDEN,
|
|
2430
|
+
invisible: o(_) === o(H).INVISIBLE
|
|
2424
2431
|
}
|
|
2425
2432
|
],
|
|
2426
|
-
rows:
|
|
2427
|
-
"auto-grow": (
|
|
2428
|
-
"max-rows":
|
|
2429
|
-
}, o(
|
|
2430
|
-
onBlur: m[1] || (m[1] = (
|
|
2433
|
+
rows: u.rows,
|
|
2434
|
+
"auto-grow": (u.maxRows || 0) > 0,
|
|
2435
|
+
"max-rows": u.maxRows
|
|
2436
|
+
}, o(p), {
|
|
2437
|
+
onBlur: m[1] || (m[1] = (g) => d.value = !0)
|
|
2431
2438
|
}), q({
|
|
2432
|
-
message: b(({ message:
|
|
2433
|
-
B(o(
|
|
2434
|
-
message:
|
|
2435
|
-
errors: o(
|
|
2439
|
+
message: b(({ message: g }) => [
|
|
2440
|
+
B(o(le), {
|
|
2441
|
+
message: g,
|
|
2442
|
+
errors: o(a)
|
|
2436
2443
|
}, null, 8, ["message", "errors"])
|
|
2437
2444
|
]),
|
|
2438
2445
|
_: 2
|
|
2439
2446
|
}, [
|
|
2440
2447
|
o(r).icon ? {
|
|
2441
2448
|
name: "label",
|
|
2442
|
-
fn: b((
|
|
2449
|
+
fn: b((g) => [
|
|
2443
2450
|
B(o(oe), {
|
|
2444
|
-
data:
|
|
2451
|
+
data: g,
|
|
2445
2452
|
label: o(r)
|
|
2446
2453
|
}, null, 8, ["data", "label"])
|
|
2447
2454
|
]),
|
|
@@ -2451,27 +2458,27 @@ const aa = {
|
|
|
2451
2458
|
]);
|
|
2452
2459
|
};
|
|
2453
2460
|
}
|
|
2454
|
-
}),
|
|
2461
|
+
}), sl = /* @__PURE__ */ be(il, [["__scopeId", "data-v-b2f125f8"]]), ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2455
2462
|
__proto__: null,
|
|
2456
2463
|
DfActions: Ro,
|
|
2457
|
-
DfCheckbox:
|
|
2458
|
-
DfColor:
|
|
2464
|
+
DfCheckbox: zo,
|
|
2465
|
+
DfColor: Wo,
|
|
2459
2466
|
DfDateTime: Ko,
|
|
2460
2467
|
DfFile: Go,
|
|
2461
2468
|
DfInput: Qo,
|
|
2462
|
-
DfRtfEditor:
|
|
2463
|
-
DfSelect:
|
|
2464
|
-
DfTextArea:
|
|
2465
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2469
|
+
DfRtfEditor: nl,
|
|
2470
|
+
DfSelect: al,
|
|
2471
|
+
DfTextArea: sl
|
|
2472
|
+
}, Symbol.toStringTag, { value: "Module" })), cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2466
2473
|
__proto__: null,
|
|
2467
2474
|
VAutocomplete: dn,
|
|
2468
2475
|
VBtn: mn,
|
|
2469
2476
|
VCheckbox: pn,
|
|
2470
2477
|
VChip: fn,
|
|
2471
2478
|
VCol: kn,
|
|
2472
|
-
VColorPicker:
|
|
2479
|
+
VColorPicker: hn,
|
|
2473
2480
|
VCombobox: vn,
|
|
2474
|
-
VConfirmEdit:
|
|
2481
|
+
VConfirmEdit: bn,
|
|
2475
2482
|
VDatePicker: gn,
|
|
2476
2483
|
VField: wn,
|
|
2477
2484
|
VFileInput: yn,
|
|
@@ -2488,43 +2495,43 @@ const aa = {
|
|
|
2488
2495
|
VTextField: Sn,
|
|
2489
2496
|
VTextarea: $n,
|
|
2490
2497
|
VTimePicker: En
|
|
2491
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2498
|
+
}, Symbol.toStringTag, { value: "Module" })), zl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2492
2499
|
__proto__: null
|
|
2493
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2500
|
+
}, Symbol.toStringTag, { value: "Module" })), Wl = {
|
|
2494
2501
|
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(
|
|
2502
|
+
var n, l;
|
|
2503
|
+
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
2504
|
}
|
|
2498
2505
|
};
|
|
2499
2506
|
export {
|
|
2500
|
-
|
|
2501
|
-
|
|
2507
|
+
ke as Action,
|
|
2508
|
+
z as ActionDisplayStyle,
|
|
2502
2509
|
Po as DateTimeLocaleConfig,
|
|
2503
2510
|
Ro as DfActions,
|
|
2504
|
-
|
|
2505
|
-
|
|
2511
|
+
zo as DfCheckbox,
|
|
2512
|
+
Wo as DfColor,
|
|
2506
2513
|
Ko as DfDateTime,
|
|
2507
2514
|
Go as DfFile,
|
|
2508
2515
|
Qo as DfInput,
|
|
2509
|
-
|
|
2510
|
-
|
|
2516
|
+
zl as DfInputComponentProps,
|
|
2517
|
+
ul as DfInputComponents,
|
|
2511
2518
|
oe as DfLabel,
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2519
|
+
nl as DfRtfEditor,
|
|
2520
|
+
al as DfSelect,
|
|
2521
|
+
sl as DfTextArea,
|
|
2522
|
+
Wl as DynamicFormsInputs,
|
|
2516
2523
|
Pe as InputBase,
|
|
2517
2524
|
$o as Label,
|
|
2518
|
-
|
|
2525
|
+
le as MessagesWidget,
|
|
2519
2526
|
Lo as ResponsiveActionRenderOptions,
|
|
2520
2527
|
Ao as ResponsiveRenderOptions,
|
|
2521
|
-
|
|
2528
|
+
cl as VuetifyComponents,
|
|
2522
2529
|
Q as defaultBaseProps,
|
|
2523
2530
|
Re as defaultDisplayStyle,
|
|
2524
2531
|
No as getBreakpointName,
|
|
2525
|
-
|
|
2532
|
+
ze as responsiveBreakpoints,
|
|
2526
2533
|
ve as translatableStrings,
|
|
2527
|
-
|
|
2534
|
+
Rl as translateStrings,
|
|
2528
2535
|
Fo as useBreakpoint,
|
|
2529
2536
|
K as useInputBase,
|
|
2530
2537
|
Je as vuetifyInputsSettingsKey
|