@dynamicforms/vuetify-inputs 0.2.3 → 0.2.4
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.
|
@@ -2,40 +2,40 @@ var Me = Object.defineProperty, He = Object.defineProperties;
|
|
|
2
2
|
var je = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ge = Object.getOwnPropertySymbols;
|
|
4
4
|
var ze = Object.prototype.hasOwnProperty, Ke = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var re = (t, e, l) => e in t ? Me(t, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[e] = l, N = (t, e) => {
|
|
6
6
|
for (var l in e || (e = {}))
|
|
7
|
-
ze.call(e, l) &&
|
|
7
|
+
ze.call(e, l) && re(t, l, e[l]);
|
|
8
8
|
if (ge)
|
|
9
9
|
for (var l of ge(e))
|
|
10
|
-
Ke.call(e, l) &&
|
|
10
|
+
Ke.call(e, l) && re(t, l, e[l]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
13
|
-
var Y = (t, e, l) =>
|
|
12
|
+
}, R = (t, e) => He(t, je(e));
|
|
13
|
+
var Y = (t, e, l) => re(t, typeof e != "symbol" ? e + "" : e, l);
|
|
14
14
|
var oe = (t, e, l) => new Promise((i, o) => {
|
|
15
|
-
var a = (
|
|
15
|
+
var a = (v) => {
|
|
16
16
|
try {
|
|
17
|
-
c(l.next(
|
|
17
|
+
c(l.next(v));
|
|
18
18
|
} catch (s) {
|
|
19
19
|
o(s);
|
|
20
20
|
}
|
|
21
|
-
}, f = (
|
|
21
|
+
}, f = (v) => {
|
|
22
22
|
try {
|
|
23
|
-
c(l.throw(
|
|
23
|
+
c(l.throw(v));
|
|
24
24
|
} catch (s) {
|
|
25
25
|
o(s);
|
|
26
26
|
}
|
|
27
|
-
}, c = (
|
|
27
|
+
}, c = (v) => v.done ? i(v.value) : Promise.resolve(v.value).then(a, f);
|
|
28
28
|
c((l = l.apply(t, e)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as he from "vue";
|
|
31
|
-
import { defineComponent as U, mergeModels as ye, useModel as Ge, ref as
|
|
32
|
-
import { debounce as et, isEmpty as tt, isObjectLike as lt, isString as
|
|
33
|
-
import
|
|
31
|
+
import { defineComponent as U, mergeModels as ye, useModel as Ge, ref as S, watch as ee, onMounted as Ae, markRaw as We, onBeforeUnmount as Se, createBlock as k, openBlock as h, resolveDynamicComponent as te, version as Xe, computed as w, createElementBlock as $, Fragment as De, renderList as Ne, normalizeClass as le, toDisplayString as q, unref as n, mergeProps as M, withCtx as _, createTextVNode as $e, resolveComponent as I, createCommentVNode as E, createVNode as T, createSlots as qe, renderSlot as Ze, isRef as K, withModifiers as Ye, mergeDefaults as j, createElementVNode as Z, normalizeStyle as ve, toRefs as ie, withKeys as _e, useCssVars as Qe, normalizeProps as Ee, guardReactiveProps as Ue, nextTick as Je } from "vue";
|
|
32
|
+
import { debounce as et, isEmpty as tt, isObjectLike as lt, isString as me, isBoolean as Ve, clone as nt, toNumber as we, isNaN as ke, isArray as Te, castArray as Fe, first as Le } from "lodash-es";
|
|
33
|
+
import pe from "vue-ionicon";
|
|
34
34
|
import { useDisplay as ot } from "vuetify";
|
|
35
|
-
import Ce, { ValidationErrorRenderContent as at, DisplayMode as
|
|
35
|
+
import Ce, { ValidationErrorRenderContent as at, DisplayMode as O, ExecuteAction as it, Action as ue } from "@dynamicforms/vue-forms";
|
|
36
36
|
import st from "vue-markdown-render";
|
|
37
37
|
import { format as Q, parse as rt } from "date-fns";
|
|
38
|
-
import { AccessibilityHelp as ut, Alignment as
|
|
38
|
+
import { AccessibilityHelp as ut, Alignment as dt, AutoImage as ct, AutoLink as mt, Autosave as pt, BalloonToolbar as ft, BlockQuote as vt, Bold as bt, CloudServices as gt, Essentials as ht, GeneralHtmlSupport as yt, Heading as _t, HorizontalLine as Vt, ImageBlock as wt, ImageCaption as kt, ImageInline as Tt, ImageInsertViaUrl as Ct, ImageResize as It, ImageStyle as Bt, ImageToolbar as xt, ImageUpload as At, Indent as St, IndentBlock as Dt, Italic as Nt, Link as $t, List as Et, Autoformat as Ut, MediaEmbed as Ft, Paragraph as Lt, PasteFromMarkdownExperimental as Pt, PasteFromOffice as Rt, SelectAll as Ot, Style as Mt, Table as Ht, TableCellProperties as jt, TableColumnResize as zt, TableProperties as Kt, TableToolbar as Gt, Undo as Wt, TextTransformation as Xt, Base64UploadAdapter as qt, ClassicEditor as Zt } from "ckeditor5";
|
|
39
39
|
import { VAutocomplete as Yt } from "vuetify/components/VAutocomplete";
|
|
40
40
|
import { VBtn as Qt } from "vuetify/components/VBtn";
|
|
41
41
|
import { VCheckbox as Jt } from "vuetify/components/VCheckbox";
|
|
@@ -48,8 +48,8 @@ import { VFileInput as al } from "vuetify/components/VFileInput";
|
|
|
48
48
|
import { VCol as il, VRow as sl } from "vuetify/components/VGrid";
|
|
49
49
|
import { VIcon as rl } from "vuetify/components/VIcon";
|
|
50
50
|
import { VInput as ul } from "vuetify/components/VInput";
|
|
51
|
-
import { VListItem as
|
|
52
|
-
import { VMenu as
|
|
51
|
+
import { VListItem as dl } from "vuetify/components/VList";
|
|
52
|
+
import { VMenu as cl } from "vuetify/components/VMenu";
|
|
53
53
|
import { VNumberInput as ml } from "vuetify/components/VNumberInput";
|
|
54
54
|
import { VProgressLinear as pl } from "vuetify/components/VProgressLinear";
|
|
55
55
|
import { VSelect as fl } from "vuetify/components/VSelect";
|
|
@@ -72,7 +72,7 @@ new Array(256).fill("").map((t, e) => ("0" + e.toString(16)).slice(-2));
|
|
|
72
72
|
*/
|
|
73
73
|
function yl(t, e) {
|
|
74
74
|
const l = t.extraPlugins || [];
|
|
75
|
-
return
|
|
75
|
+
return R(N({}, t), {
|
|
76
76
|
extraPlugins: [
|
|
77
77
|
...l,
|
|
78
78
|
...e.filter((i) => !l.includes(i))
|
|
@@ -83,25 +83,25 @@ function yl(t, e) {
|
|
|
83
83
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
84
84
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
85
85
|
*/
|
|
86
|
-
function
|
|
86
|
+
function Pe(t) {
|
|
87
87
|
return !!t && /^\d+\.\d+\.\d+/.test(t);
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
90
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
91
91
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
92
92
|
*/
|
|
93
|
-
function
|
|
93
|
+
function Re(t) {
|
|
94
94
|
return t ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((e) => t.includes(e)) : !1;
|
|
95
95
|
}
|
|
96
96
|
function _l(t) {
|
|
97
|
-
return
|
|
97
|
+
return Pe(t) || Re(t);
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
100
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
101
101
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
102
102
|
*/
|
|
103
103
|
function Vl(t) {
|
|
104
|
-
if (!
|
|
104
|
+
if (!Pe(t))
|
|
105
105
|
throw new Error(`Invalid semantic version: ${t || "<blank>"}.`);
|
|
106
106
|
const [e, l, i] = t.split(".");
|
|
107
107
|
return {
|
|
@@ -115,7 +115,7 @@ function Vl(t) {
|
|
|
115
115
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
116
116
|
*/
|
|
117
117
|
function wl(t) {
|
|
118
|
-
if (
|
|
118
|
+
if (Re(t))
|
|
119
119
|
return 3;
|
|
120
120
|
const { major: e } = Vl(t);
|
|
121
121
|
switch (!0) {
|
|
@@ -197,7 +197,7 @@ function Bl(t) {
|
|
|
197
197
|
Il
|
|
198
198
|
]);
|
|
199
199
|
}
|
|
200
|
-
const
|
|
200
|
+
const de = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", xl = 300, Al = /* @__PURE__ */ U({
|
|
201
201
|
name: "CKEditor",
|
|
202
202
|
__name: "ckeditor",
|
|
203
203
|
props: /* @__PURE__ */ ye({
|
|
@@ -212,47 +212,47 @@ const ue = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", xl = 300, Al =
|
|
|
212
212
|
}),
|
|
213
213
|
emits: /* @__PURE__ */ ye(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
|
|
214
214
|
setup(t, { expose: e, emit: l }) {
|
|
215
|
-
const i = Ge(t, "modelValue"), o = t, a = l, f =
|
|
215
|
+
const i = Ge(t, "modelValue"), o = t, a = l, f = S(), c = S(), v = S();
|
|
216
216
|
e({
|
|
217
217
|
instance: c,
|
|
218
|
-
lastEditorData:
|
|
219
|
-
}), ee(i, (
|
|
220
|
-
c.value &&
|
|
221
|
-
}), ee(() => o.disabled, (
|
|
222
|
-
|
|
218
|
+
lastEditorData: v
|
|
219
|
+
}), ee(i, (u) => {
|
|
220
|
+
c.value && u !== v.value && c.value.data.set(u);
|
|
221
|
+
}), ee(() => o.disabled, (u) => {
|
|
222
|
+
u ? c.value.enableReadOnlyMode(de) : c.value.disableReadOnlyMode(de);
|
|
223
223
|
});
|
|
224
224
|
function s() {
|
|
225
|
-
const
|
|
226
|
-
if (!
|
|
225
|
+
const u = window.CKEDITOR_VERSION;
|
|
226
|
+
if (!u)
|
|
227
227
|
return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
|
|
228
|
-
const [
|
|
229
|
-
|
|
228
|
+
const [r] = u.split(".").map(Number);
|
|
229
|
+
r >= 42 || u.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
230
230
|
}
|
|
231
|
-
function
|
|
232
|
-
const
|
|
231
|
+
function p(u) {
|
|
232
|
+
const r = et((d) => {
|
|
233
233
|
if (o.disableTwoWayDataBinding)
|
|
234
234
|
return;
|
|
235
|
-
const y =
|
|
236
|
-
a("update:modelValue", y, d,
|
|
235
|
+
const y = v.value = u.data.get();
|
|
236
|
+
a("update:modelValue", y, d, u), a("input", y, d, u);
|
|
237
237
|
}, xl, { leading: !0 });
|
|
238
|
-
|
|
239
|
-
a("focus", d,
|
|
240
|
-
}),
|
|
241
|
-
a("blur", d,
|
|
238
|
+
u.model.document.on("change:data", r), u.editing.view.document.on("focus", (d) => {
|
|
239
|
+
a("focus", d, u);
|
|
240
|
+
}), u.editing.view.document.on("blur", (d) => {
|
|
241
|
+
a("blur", d, u);
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
return s(), Ae(() => {
|
|
245
|
-
const
|
|
245
|
+
const u = Bl(
|
|
246
246
|
Object.assign({}, o.config)
|
|
247
247
|
);
|
|
248
|
-
i.value && (
|
|
249
|
-
c.value = We(
|
|
250
|
-
}).catch((
|
|
251
|
-
console.error(
|
|
248
|
+
i.value && (u.initialData = i.value), o.editor.create(f.value, u).then((r) => {
|
|
249
|
+
c.value = We(r), p(r), i.value !== u.initialData && r.data.set(i.value), o.disabled && r.enableReadOnlyMode(de), a("ready", r);
|
|
250
|
+
}).catch((r) => {
|
|
251
|
+
console.error(r);
|
|
252
252
|
});
|
|
253
253
|
}), Se(() => {
|
|
254
254
|
c.value && (c.value.destroy(), c.value = void 0), a("destroy");
|
|
255
|
-
}), (
|
|
255
|
+
}), (u, r) => (h(), k(te(u.tagName), {
|
|
256
256
|
ref_key: "element",
|
|
257
257
|
ref: f
|
|
258
258
|
}, null, 512));
|
|
@@ -276,9 +276,9 @@ const Sl = {
|
|
|
276
276
|
install(t) {
|
|
277
277
|
t.component("Ckeditor", Al);
|
|
278
278
|
}
|
|
279
|
-
},
|
|
280
|
-
function
|
|
281
|
-
const l =
|
|
279
|
+
}, z = { enabled: void 0 };
|
|
280
|
+
function H(t, e) {
|
|
281
|
+
const l = w({
|
|
282
282
|
get() {
|
|
283
283
|
return t.control ? t.control.value : t.modelValue;
|
|
284
284
|
},
|
|
@@ -288,37 +288,37 @@ function j(t, e) {
|
|
|
288
288
|
});
|
|
289
289
|
if (t.control && !(t.control instanceof Ce.FieldBase))
|
|
290
290
|
throw new Error("control prop is not a vue-form control instance");
|
|
291
|
-
const i =
|
|
291
|
+
const i = w(() => t.control ? t.control.valid : !0), o = w(
|
|
292
292
|
() => t.control ? t.control.errors : (t.errors || []).map((d) => new at(d))
|
|
293
|
-
), a =
|
|
293
|
+
), a = w(() => o.value.length > 0 ? " " : void 0), f = w(() => t.control ? t.control.enabled : t.enabled !== !1), c = w(
|
|
294
294
|
() => t.control ? t.control.visibility : t.visibility || Ce.DisplayMode.FULL
|
|
295
|
-
),
|
|
295
|
+
), v = w(() => t.label || ""), s = w(() => t.placeholder || ""), p = w(() => t.helpText || ""), u = w(() => t.hint || ""), r = w(() => t.cssClass || "");
|
|
296
296
|
return {
|
|
297
297
|
value: l,
|
|
298
298
|
valid: i,
|
|
299
299
|
enabled: f,
|
|
300
300
|
errors: o,
|
|
301
301
|
visibility: c,
|
|
302
|
-
vuetifyBindings:
|
|
302
|
+
vuetifyBindings: w(() => {
|
|
303
303
|
var d;
|
|
304
304
|
return {
|
|
305
305
|
name: (d = t.control) == null ? void 0 : d.fieldName,
|
|
306
|
-
class:
|
|
306
|
+
class: r.value,
|
|
307
307
|
density: "default",
|
|
308
308
|
variant: "underlined",
|
|
309
|
-
label:
|
|
309
|
+
label: v.value,
|
|
310
310
|
messages: a.value,
|
|
311
311
|
// 'error-count': errors?.value.length || 0,
|
|
312
312
|
readonly: !f.value,
|
|
313
313
|
disabled: !f.value,
|
|
314
314
|
placeholder: s.value,
|
|
315
315
|
"persistent-placeholder": !tt(s.value),
|
|
316
|
-
hint:
|
|
316
|
+
hint: u.value,
|
|
317
317
|
persistentHint: !0,
|
|
318
318
|
// we want persistent hint always
|
|
319
319
|
hideDetails: "auto",
|
|
320
320
|
// we want to hide the hint element when hint isn't there
|
|
321
|
-
helpText:
|
|
321
|
+
helpText: p.value
|
|
322
322
|
};
|
|
323
323
|
})
|
|
324
324
|
};
|
|
@@ -333,38 +333,38 @@ const Dl = {
|
|
|
333
333
|
message: {}
|
|
334
334
|
},
|
|
335
335
|
setup(t) {
|
|
336
|
-
return (e, l) => e.message === " " ? (
|
|
337
|
-
(
|
|
336
|
+
return (e, l) => e.message === " " ? (h(), $("div", Dl, [
|
|
337
|
+
(h(!0), $(De, null, Ne(e.errors, (i, o) => {
|
|
338
338
|
var a;
|
|
339
|
-
return
|
|
339
|
+
return h(), $("div", {
|
|
340
340
|
key: o,
|
|
341
341
|
class: le({ "first-error": o === 0, "last-error": o === e.errors.length - 1 })
|
|
342
342
|
}, [
|
|
343
|
-
i.componentName === "template" ? (
|
|
343
|
+
i.componentName === "template" ? (h(), $("div", Nl, q(i.componentBody), 1)) : i.componentName === "vue-markdown" ? (h(), k(n(st), {
|
|
344
344
|
key: 1,
|
|
345
345
|
source: (a = i.componentBindings) == null ? void 0 : a.source
|
|
346
|
-
}, null, 8, ["source"])) : (
|
|
346
|
+
}, null, 8, ["source"])) : (h(), k(te(i.componentName), M({
|
|
347
347
|
key: 2,
|
|
348
348
|
ref_for: !0
|
|
349
349
|
}, i.componentBindings), {
|
|
350
|
-
default:
|
|
351
|
-
$e(
|
|
350
|
+
default: _(() => [
|
|
351
|
+
$e(q(i.componentBody), 1)
|
|
352
352
|
]),
|
|
353
353
|
_: 2
|
|
354
354
|
}, 1040))
|
|
355
355
|
], 2);
|
|
356
356
|
}), 128))
|
|
357
|
-
])) : (
|
|
357
|
+
])) : (h(), $("span", $l, q(e.message), 1));
|
|
358
358
|
}
|
|
359
359
|
}), ne = (t, e) => {
|
|
360
360
|
const l = t.__vccOpts || t;
|
|
361
361
|
for (const [i, o] of e)
|
|
362
362
|
l[i] = o;
|
|
363
363
|
return l;
|
|
364
|
-
},
|
|
364
|
+
}, G = /* @__PURE__ */ ne(El, [["__scopeId", "data-v-ff7a8b63"]]), Ul = {
|
|
365
365
|
key: 0,
|
|
366
366
|
for: "#following-v-input"
|
|
367
|
-
},
|
|
367
|
+
}, be = /* @__PURE__ */ U({
|
|
368
368
|
__name: "input-base",
|
|
369
369
|
props: {
|
|
370
370
|
control: {},
|
|
@@ -381,43 +381,43 @@ const Dl = {
|
|
|
381
381
|
},
|
|
382
382
|
emits: ["update:modelValue", "click:clear"],
|
|
383
383
|
setup(t, { emit: e }) {
|
|
384
|
-
const l = t, i = e, { errors: o, value: a, visibility: f, vuetifyBindings: c } =
|
|
385
|
-
return (s,
|
|
386
|
-
const
|
|
387
|
-
return n(f) !== n(
|
|
384
|
+
const l = t, i = e, { errors: o, value: a, visibility: f, vuetifyBindings: c } = H(l, i), v = w(() => n(l.clearable) && n(a));
|
|
385
|
+
return (s, p) => {
|
|
386
|
+
const u = I("v-icon"), r = I("v-input");
|
|
387
|
+
return n(f) !== n(O).SUPPRESS ? (h(), $("div", {
|
|
388
388
|
key: 0,
|
|
389
389
|
class: le([
|
|
390
390
|
s.cssClass,
|
|
391
391
|
{
|
|
392
|
-
"d-none": n(f) === n(
|
|
393
|
-
invisible: n(f) === n(
|
|
392
|
+
"d-none": n(f) === n(O).HIDDEN,
|
|
393
|
+
invisible: n(f) === n(O).INVISIBLE
|
|
394
394
|
}
|
|
395
395
|
])
|
|
396
396
|
}, [
|
|
397
|
-
n(c).label ? (
|
|
398
|
-
|
|
397
|
+
n(c).label ? (h(), $("label", Ul, q(n(c).label), 1)) : E("", !0),
|
|
398
|
+
T(r, {
|
|
399
399
|
hint: n(c).hint,
|
|
400
400
|
"persistent-hint": n(c).persistentHint,
|
|
401
401
|
"hide-details": n(c).hideDetails
|
|
402
402
|
}, qe({
|
|
403
|
-
message:
|
|
404
|
-
|
|
403
|
+
message: _(({ message: d }) => [
|
|
404
|
+
T(G, {
|
|
405
405
|
message: d,
|
|
406
406
|
errors: n(o)
|
|
407
407
|
}, null, 8, ["message", "errors"])
|
|
408
408
|
]),
|
|
409
|
-
default:
|
|
409
|
+
default: _(() => [
|
|
410
410
|
Ze(s.$slots, "default")
|
|
411
411
|
]),
|
|
412
412
|
_: 2
|
|
413
413
|
}, [
|
|
414
|
-
|
|
414
|
+
v.value ? {
|
|
415
415
|
name: "append",
|
|
416
|
-
fn:
|
|
417
|
-
|
|
418
|
-
onClick:
|
|
416
|
+
fn: _(() => [
|
|
417
|
+
T(u, {
|
|
418
|
+
onClick: p[0] || (p[0] = (d) => i("click:clear"))
|
|
419
419
|
}, {
|
|
420
|
-
default:
|
|
420
|
+
default: _(() => p[1] || (p[1] = [
|
|
421
421
|
$e("mdi-close-circle")
|
|
422
422
|
])),
|
|
423
423
|
_: 1
|
|
@@ -426,11 +426,11 @@ const Dl = {
|
|
|
426
426
|
key: "0"
|
|
427
427
|
} : void 0
|
|
428
428
|
]), 1032, ["hint", "persistent-hint", "hide-details"])
|
|
429
|
-
], 2)) :
|
|
429
|
+
], 2)) : E("", !0);
|
|
430
430
|
};
|
|
431
431
|
}
|
|
432
432
|
});
|
|
433
|
-
var
|
|
433
|
+
var F = /* @__PURE__ */ ((t) => (t[t.BUTTON = 0] = "BUTTON", t[t.TEXT = 1] = "TEXT", t))(F || {});
|
|
434
434
|
const Ie = 0;
|
|
435
435
|
((t) => {
|
|
436
436
|
function e(o) {
|
|
@@ -447,8 +447,8 @@ const Ie = 0;
|
|
|
447
447
|
return Object.values(t).includes(a);
|
|
448
448
|
}
|
|
449
449
|
t.isDefined = i;
|
|
450
|
-
})(
|
|
451
|
-
Object.freeze(
|
|
450
|
+
})(F || (F = {}));
|
|
451
|
+
Object.freeze(F);
|
|
452
452
|
const Be = ["xs", "sm", "md", "lg", "xl"];
|
|
453
453
|
class Fl {
|
|
454
454
|
constructor(e) {
|
|
@@ -474,7 +474,7 @@ class Ll extends Fl {
|
|
|
474
474
|
cleanBreakpoint(e, l = !1) {
|
|
475
475
|
if ((!e || !lt(e)) && !l) return null;
|
|
476
476
|
const i = {};
|
|
477
|
-
return l && (i.renderAs =
|
|
477
|
+
return l && (i.renderAs = F.BUTTON, i.showLabel = !0, i.showIcon = !0), e && (e.renderAs != null && (i.renderAs = F.fromAny(e.renderAs)), me(e.label) && (i.label = e.label), Ve(e.showLabel) && (i.showLabel = e.showLabel), Ve(e.showIcon) && (i.showIcon = e.showIcon)), Object.keys(i).length ? i : null;
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
function xe(t) {
|
|
@@ -486,8 +486,8 @@ class ae {
|
|
|
486
486
|
Y(this, "displayStyle");
|
|
487
487
|
Y(this, "formAction");
|
|
488
488
|
if (e.name == null) throw new Error(`Action name must not be empty ${e}`);
|
|
489
|
-
const i = !
|
|
490
|
-
this.name = e.name, this.displayStyle = new Ll(
|
|
489
|
+
const i = !me(e.label) || e.label.length === 0 ? void 0 : e.label, o = !me(e.icon) || e.icon.length === 0 ? void 0 : e.icon;
|
|
490
|
+
this.name = e.name, this.displayStyle = new Ll(N({ label: i }, e.displayStyle)), this.formAction = l, this.formAction.icon = o, this.formAction.label = i;
|
|
491
491
|
}
|
|
492
492
|
get label() {
|
|
493
493
|
var e;
|
|
@@ -509,10 +509,10 @@ class ae {
|
|
|
509
509
|
static makeFormAction(e) {
|
|
510
510
|
let l;
|
|
511
511
|
if (e instanceof it)
|
|
512
|
-
l =
|
|
512
|
+
l = ue.create().registerAction(e);
|
|
513
513
|
else if (e === void 0)
|
|
514
|
-
l =
|
|
515
|
-
else if (e instanceof
|
|
514
|
+
l = ue.create();
|
|
515
|
+
else if (e instanceof ue)
|
|
516
516
|
l = e;
|
|
517
517
|
else
|
|
518
518
|
throw new Error("actionOrExecuteHandler is not of any of supported types");
|
|
@@ -520,45 +520,45 @@ class ae {
|
|
|
520
520
|
}
|
|
521
521
|
static closeAction(e, l) {
|
|
522
522
|
return new ae(
|
|
523
|
-
|
|
523
|
+
N({
|
|
524
524
|
name: "close",
|
|
525
525
|
label: "Close",
|
|
526
526
|
// TODO: needs translation
|
|
527
527
|
icon: "close-outline",
|
|
528
|
-
displayStyle: { renderAs:
|
|
528
|
+
displayStyle: { renderAs: F.BUTTON, showLabel: !0, showIcon: !0 }
|
|
529
529
|
}, e),
|
|
530
530
|
this.makeFormAction(l)
|
|
531
531
|
);
|
|
532
532
|
}
|
|
533
533
|
static yesAction(e, l) {
|
|
534
534
|
return new ae(
|
|
535
|
-
|
|
535
|
+
N({
|
|
536
536
|
name: "yes",
|
|
537
537
|
label: "Yes",
|
|
538
538
|
// TODO: needs translation
|
|
539
539
|
icon: "thumbs-up-outline",
|
|
540
|
-
displayStyle: { renderAs:
|
|
540
|
+
displayStyle: { renderAs: F.BUTTON, showLabel: !0, showIcon: !0 }
|
|
541
541
|
}, e),
|
|
542
542
|
this.makeFormAction(l)
|
|
543
543
|
);
|
|
544
544
|
}
|
|
545
545
|
static noAction(e, l) {
|
|
546
546
|
return new ae(
|
|
547
|
-
|
|
547
|
+
N({
|
|
548
548
|
name: "no",
|
|
549
549
|
label: "No",
|
|
550
550
|
// TODO: needs translation
|
|
551
551
|
icon: "thumbs-down-outline",
|
|
552
|
-
displayStyle: { renderAs:
|
|
552
|
+
displayStyle: { renderAs: F.BUTTON, showLabel: !0, showIcon: !0 }
|
|
553
553
|
}, e),
|
|
554
554
|
this.makeFormAction(l)
|
|
555
555
|
);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
const
|
|
558
|
+
const Pl = {
|
|
559
559
|
key: 1,
|
|
560
560
|
style: { width: ".5rem" }
|
|
561
|
-
},
|
|
561
|
+
}, Rl = { key: 2 }, Ol = /* @__PURE__ */ U({
|
|
562
562
|
__name: "df-actions",
|
|
563
563
|
props: {
|
|
564
564
|
actions: {},
|
|
@@ -566,62 +566,62 @@ const Rl = {
|
|
|
566
566
|
showAsGroup: { default: "no" }
|
|
567
567
|
},
|
|
568
568
|
setup(t) {
|
|
569
|
-
const e = t, l =
|
|
569
|
+
const e = t, l = K(e.actions) ? e.actions : S(e.actions), i = ot(), o = w(() => {
|
|
570
570
|
const s = {};
|
|
571
571
|
s["%breakpoint%"] = xe(i);
|
|
572
|
-
for (const
|
|
573
|
-
s[
|
|
572
|
+
for (const p of l.value)
|
|
573
|
+
s[p.name] = p.displayStyle.getOptionsForBreakpoint(xe(i));
|
|
574
574
|
return s;
|
|
575
575
|
});
|
|
576
576
|
function a(s) {
|
|
577
|
-
var
|
|
578
|
-
return (
|
|
577
|
+
var p;
|
|
578
|
+
return (p = o.value[s.name].showIcon && s.iconAvailable) != null ? p : !0;
|
|
579
579
|
}
|
|
580
580
|
function f(s) {
|
|
581
581
|
return o.value[s.name].showLabel && s.labelAvailable ? !0 : !a(s);
|
|
582
582
|
}
|
|
583
583
|
function c(s) {
|
|
584
|
-
var
|
|
585
|
-
return (
|
|
584
|
+
var p;
|
|
585
|
+
return (p = o.value[s.name].renderAs) != null ? p : F.BUTTON;
|
|
586
586
|
}
|
|
587
|
-
function
|
|
588
|
-
var
|
|
589
|
-
return s.labelAvailable ? (
|
|
587
|
+
function v(s) {
|
|
588
|
+
var p;
|
|
589
|
+
return s.labelAvailable ? (p = s.formAction.label) != null ? p : "" : s.name;
|
|
590
590
|
}
|
|
591
|
-
return (s,
|
|
592
|
-
const
|
|
593
|
-
return n(l).length > 0 ? (
|
|
591
|
+
return (s, p) => {
|
|
592
|
+
const u = I("v-btn");
|
|
593
|
+
return n(l).length > 0 ? (h(), $("div", {
|
|
594
594
|
key: 0,
|
|
595
595
|
class: le(["text-end", {
|
|
596
596
|
"button-group": s.showAsGroup === "grouped" || s.showAsGroup === "grouped-no-borders",
|
|
597
597
|
"with-border": s.showAsGroup === "grouped"
|
|
598
598
|
}])
|
|
599
599
|
}, [
|
|
600
|
-
(
|
|
600
|
+
(h(!0), $(De, null, Ne(n(l), (r, d) => (h(), k(u, {
|
|
601
601
|
key: d,
|
|
602
|
-
variant: c(
|
|
602
|
+
variant: c(r) === n(F).BUTTON ? "tonal" : "text",
|
|
603
603
|
elevation: 0,
|
|
604
604
|
class: le(d !== -1 ? "" : "ms-3"),
|
|
605
605
|
size: s.buttonSize,
|
|
606
|
-
onClick: Ye((y) =>
|
|
606
|
+
onClick: Ye((y) => r.formAction.execute(y), ["stop"])
|
|
607
607
|
}, {
|
|
608
|
-
default:
|
|
609
|
-
a(
|
|
608
|
+
default: _(() => [
|
|
609
|
+
a(r) ? (h(), k(n(pe), {
|
|
610
610
|
key: 0,
|
|
611
611
|
class: "action-icon",
|
|
612
|
-
name:
|
|
613
|
-
}, null, 8, ["name"])) :
|
|
614
|
-
a(
|
|
615
|
-
f(
|
|
612
|
+
name: r.formAction.icon
|
|
613
|
+
}, null, 8, ["name"])) : E("", !0),
|
|
614
|
+
a(r) && f(r) ? (h(), $("span", Pl)) : E("", !0),
|
|
615
|
+
f(r) ? (h(), $("span", Rl, q(v(r)), 1)) : E("", !0)
|
|
616
616
|
]),
|
|
617
617
|
_: 2
|
|
618
618
|
}, 1032, ["variant", "class", "size", "onClick"]))), 128))
|
|
619
|
-
], 2)) :
|
|
619
|
+
], 2)) : E("", !0);
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
622
|
}), Ml = /* @__PURE__ */ ne(Ol, [["__scopeId", "data-v-d7ba6fac"]]), Hl = /* @__PURE__ */ U({
|
|
623
623
|
__name: "df-checkbox",
|
|
624
|
-
props: /* @__PURE__ */
|
|
624
|
+
props: /* @__PURE__ */ j({
|
|
625
625
|
allowNull: { type: Boolean },
|
|
626
626
|
control: {},
|
|
627
627
|
modelValue: {},
|
|
@@ -634,10 +634,10 @@ const Rl = {
|
|
|
634
634
|
visibility: {},
|
|
635
635
|
cssClass: {},
|
|
636
636
|
clearable: { type: Boolean }
|
|
637
|
-
},
|
|
637
|
+
}, R(N({}, z), { allowNull: !1 })),
|
|
638
638
|
emits: ["update:modelValue", "click:clear"],
|
|
639
639
|
setup(t, { emit: e }) {
|
|
640
|
-
const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } =
|
|
640
|
+
const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } = H(l, i), c = w(() => l.allowNull && a.value == null), v = w({
|
|
641
641
|
get() {
|
|
642
642
|
return a.value;
|
|
643
643
|
},
|
|
@@ -645,14 +645,14 @@ const Rl = {
|
|
|
645
645
|
}
|
|
646
646
|
});
|
|
647
647
|
function s() {
|
|
648
|
-
const
|
|
649
|
-
|
|
648
|
+
const p = nt(a.value);
|
|
649
|
+
p === !0 ? a.value = l.allowNull ? null : !1 : a.value = p === !1;
|
|
650
650
|
}
|
|
651
|
-
return (
|
|
652
|
-
const
|
|
653
|
-
return
|
|
654
|
-
modelValue:
|
|
655
|
-
"onUpdate:modelValue":
|
|
651
|
+
return (p, u) => {
|
|
652
|
+
const r = I("v-checkbox");
|
|
653
|
+
return h(), k(r, M({
|
|
654
|
+
modelValue: v.value,
|
|
655
|
+
"onUpdate:modelValue": u[0] || (u[0] = (d) => v.value = d)
|
|
656
656
|
}, n(f), {
|
|
657
657
|
density: "compact",
|
|
658
658
|
indeterminate: c.value,
|
|
@@ -660,8 +660,8 @@ const Rl = {
|
|
|
660
660
|
"true-value": !0,
|
|
661
661
|
onChange: s
|
|
662
662
|
}), {
|
|
663
|
-
message:
|
|
664
|
-
|
|
663
|
+
message: _(({ message: d }) => [
|
|
664
|
+
T(n(G), {
|
|
665
665
|
message: d,
|
|
666
666
|
errors: n(o)
|
|
667
667
|
}, null, 8, ["message", "errors"])
|
|
@@ -672,7 +672,7 @@ const Rl = {
|
|
|
672
672
|
}
|
|
673
673
|
}), jl = /* @__PURE__ */ U({
|
|
674
674
|
__name: "df-color",
|
|
675
|
-
props: /* @__PURE__ */
|
|
675
|
+
props: /* @__PURE__ */ j({
|
|
676
676
|
allowNull: { type: Boolean },
|
|
677
677
|
control: {},
|
|
678
678
|
modelValue: {},
|
|
@@ -685,58 +685,57 @@ const Rl = {
|
|
|
685
685
|
visibility: {},
|
|
686
686
|
cssClass: {},
|
|
687
687
|
clearable: { type: Boolean }
|
|
688
|
-
},
|
|
688
|
+
}, R(N({}, z), { allowNull: !1 })),
|
|
689
689
|
emits: ["update:modelValue", "click:clear"],
|
|
690
690
|
setup(t, { emit: e }) {
|
|
691
|
-
const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } =
|
|
692
|
-
(s) => !s && l.allowNull || /^#?([a-fA-F0-9]{6}[a-fA-F0-9]{
|
|
691
|
+
const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } = H(l, i), c = S(!1), v = w(() => [
|
|
692
|
+
(s) => l.control || !s && l.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(s) ? !0 : "Not a valid hex string."
|
|
693
693
|
]);
|
|
694
|
-
return (s,
|
|
695
|
-
const
|
|
696
|
-
return
|
|
697
|
-
modelValue:
|
|
698
|
-
"onUpdate:modelValue":
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
"
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
type: "text",
|
|
710
|
-
rules: b.value
|
|
711
|
-
}), {
|
|
712
|
-
message: h(({ message: A }) => [
|
|
713
|
-
x(n(W), {
|
|
714
|
-
message: A,
|
|
715
|
-
errors: n(o)
|
|
716
|
-
}, null, 8, ["message", "errors"])
|
|
717
|
-
]),
|
|
718
|
-
"prepend-inner": h(() => [
|
|
719
|
-
q("div", {
|
|
720
|
-
style: fe([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: n(a) }])
|
|
721
|
-
}, null, 4)
|
|
722
|
-
]),
|
|
723
|
-
_: 2
|
|
724
|
-
}, 1040, ["modelValue", "clearable", "rules"])
|
|
694
|
+
return (s, p) => {
|
|
695
|
+
const u = I("v-color-picker"), r = I("v-menu"), d = I("v-text-field");
|
|
696
|
+
return h(), k(d, M({
|
|
697
|
+
modelValue: n(a),
|
|
698
|
+
"onUpdate:modelValue": p[2] || (p[2] = (y) => K(a) ? a.value = y : null)
|
|
699
|
+
}, n(f), {
|
|
700
|
+
clearable: s.allowNull,
|
|
701
|
+
type: "text",
|
|
702
|
+
rules: v.value
|
|
703
|
+
}), {
|
|
704
|
+
message: _(({ message: y }) => [
|
|
705
|
+
T(n(G), {
|
|
706
|
+
message: y,
|
|
707
|
+
errors: n(o)
|
|
708
|
+
}, null, 8, ["message", "errors"])
|
|
725
709
|
]),
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
710
|
+
"prepend-inner": _(() => [
|
|
711
|
+
Z("div", {
|
|
712
|
+
style: ve([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: n(a) }])
|
|
713
|
+
}, null, 4)
|
|
714
|
+
]),
|
|
715
|
+
default: _(() => [
|
|
716
|
+
T(r, {
|
|
717
|
+
modelValue: c.value,
|
|
718
|
+
"onUpdate:modelValue": p[1] || (p[1] = (y) => c.value = y),
|
|
719
|
+
"close-on-content-click": !1,
|
|
720
|
+
activator: "parent"
|
|
721
|
+
}, {
|
|
722
|
+
default: _(() => [
|
|
723
|
+
T(u, {
|
|
724
|
+
modelValue: n(a),
|
|
725
|
+
"onUpdate:modelValue": p[0] || (p[0] = (y) => K(a) ? a.value = y : null),
|
|
726
|
+
mode: "hexa"
|
|
727
|
+
}, null, 8, ["modelValue"])
|
|
728
|
+
]),
|
|
729
|
+
_: 1
|
|
730
|
+
}, 8, ["modelValue"])
|
|
732
731
|
]),
|
|
733
732
|
_: 1
|
|
734
|
-
},
|
|
733
|
+
}, 16, ["modelValue", "clearable", "rules"]);
|
|
735
734
|
};
|
|
736
735
|
}
|
|
737
736
|
}), zl = { class: "d-flex w-100" }, Kl = /* @__PURE__ */ U({
|
|
738
737
|
__name: "df-datetime",
|
|
739
|
-
props: /* @__PURE__ */
|
|
738
|
+
props: /* @__PURE__ */ j({
|
|
740
739
|
inputType: {},
|
|
741
740
|
displayFormatDate: {},
|
|
742
741
|
displayFormatTime: {},
|
|
@@ -751,182 +750,200 @@ const Rl = {
|
|
|
751
750
|
visibility: {},
|
|
752
751
|
cssClass: {},
|
|
753
752
|
clearable: { type: Boolean }
|
|
754
|
-
},
|
|
753
|
+
}, R(N({}, z), {
|
|
755
754
|
inputType: "datetime",
|
|
756
755
|
displayFormatDate: "P",
|
|
757
756
|
displayFormatTime: "p"
|
|
758
757
|
})),
|
|
759
758
|
emits: ["update:modelValue", "click:clear"],
|
|
760
759
|
setup(t, { emit: e }) {
|
|
761
|
-
const l = t, i = e, { value: o, vuetifyBindings: a } =
|
|
760
|
+
const l = t, i = e, { value: o, vuetifyBindings: a } = H(l, i), { inputType: f, displayFormatDate: c, displayFormatTime: v } = ie(l), s = S(""), p = w({
|
|
762
761
|
get() {
|
|
763
|
-
return n(s)
|
|
762
|
+
return n(s) === "date";
|
|
764
763
|
},
|
|
765
|
-
set(
|
|
766
|
-
|
|
764
|
+
set(g) {
|
|
765
|
+
s.value = g ? "date" : "";
|
|
767
766
|
}
|
|
768
|
-
}),
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
767
|
+
}), u = w({
|
|
768
|
+
get() {
|
|
769
|
+
return n(s) === "time";
|
|
770
|
+
},
|
|
771
|
+
set(g) {
|
|
772
|
+
s.value = g ? "time" : "";
|
|
773
|
+
}
|
|
774
|
+
}), r = (g) => `${Q(g, "yyyy-MM-dd")}T${Q(g, "HH:mm")}:00`, d = S(null);
|
|
775
|
+
function y(g, m) {
|
|
776
|
+
if (g == null)
|
|
777
|
+
d.value = null;
|
|
778
|
+
else if (m === -1)
|
|
773
779
|
if (n(f) === "time")
|
|
774
|
-
|
|
780
|
+
d.value = r(/* @__PURE__ */ new Date()), y(`T${g}`, 1);
|
|
775
781
|
else {
|
|
776
|
-
const
|
|
777
|
-
|
|
782
|
+
const C = r(new Date(g));
|
|
783
|
+
y(C, 0), y(C, 1);
|
|
778
784
|
}
|
|
779
785
|
else {
|
|
780
|
-
|
|
781
|
-
const
|
|
782
|
-
|
|
786
|
+
d.value == null && (d.value = r(/* @__PURE__ */ new Date()));
|
|
787
|
+
const C = d.value.split(/[TZ]/g), V = g.split(/[TZ]/g);
|
|
788
|
+
C[m] = V[m], d.value = r(/* @__PURE__ */ new Date(`${C[0]}T${C[1].split(".")[0]}`)), n(f) === "date" ? o.value = C[0] : n(f) === "time" ? o.value = C[1] : o.value = n(d) + Q(/* @__PURE__ */ new Date(), "XXX");
|
|
783
789
|
}
|
|
784
790
|
}
|
|
785
|
-
ee(o, (
|
|
786
|
-
const
|
|
791
|
+
ee(o, (g) => y(g, -1), { immediate: !0 });
|
|
792
|
+
const D = w({
|
|
787
793
|
get() {
|
|
788
|
-
const
|
|
789
|
-
if (
|
|
790
|
-
const
|
|
791
|
-
return Number.isNaN(
|
|
794
|
+
const g = n(d);
|
|
795
|
+
if (g == null) return null;
|
|
796
|
+
const m = new Date(g);
|
|
797
|
+
return Number.isNaN(m.getTime()) ? null : m;
|
|
792
798
|
},
|
|
793
|
-
set(
|
|
794
|
-
|
|
799
|
+
set(g) {
|
|
800
|
+
y(r(g), 0);
|
|
795
801
|
}
|
|
796
|
-
}),
|
|
802
|
+
}), L = w({
|
|
797
803
|
get() {
|
|
798
|
-
const
|
|
799
|
-
return
|
|
804
|
+
const g = n(d);
|
|
805
|
+
return g == null ? "" : g.split(/[TZ]/g)[1].split(".")[0];
|
|
800
806
|
},
|
|
801
|
-
set(
|
|
802
|
-
|
|
807
|
+
set(g) {
|
|
808
|
+
y(`T${g}`, 1);
|
|
803
809
|
}
|
|
804
|
-
}),
|
|
810
|
+
}), A = w({
|
|
805
811
|
get() {
|
|
806
|
-
const
|
|
807
|
-
return
|
|
812
|
+
const g = n(D);
|
|
813
|
+
return g == null ? "" : Q(g, n(c));
|
|
808
814
|
},
|
|
809
|
-
set(
|
|
815
|
+
set(g) {
|
|
810
816
|
try {
|
|
811
|
-
const
|
|
812
|
-
|
|
813
|
-
} catch (
|
|
814
|
-
console.error(
|
|
817
|
+
const m = rt(g, n(c), /* @__PURE__ */ new Date());
|
|
818
|
+
y(r(m), 0);
|
|
819
|
+
} catch (m) {
|
|
820
|
+
console.error(m);
|
|
815
821
|
}
|
|
816
822
|
}
|
|
817
|
-
}),
|
|
823
|
+
}), B = w({
|
|
818
824
|
get() {
|
|
819
|
-
const
|
|
820
|
-
return
|
|
825
|
+
const g = n(D);
|
|
826
|
+
return g == null ? "" : Q(g, n(v));
|
|
821
827
|
},
|
|
822
|
-
set(
|
|
823
|
-
const
|
|
824
|
-
if (
|
|
825
|
-
let
|
|
826
|
-
const
|
|
827
|
-
ke(
|
|
828
|
+
set(g) {
|
|
829
|
+
const m = g.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
830
|
+
if (m == null) return;
|
|
831
|
+
let C = we(m[1]);
|
|
832
|
+
const V = we(m[2]);
|
|
833
|
+
ke(C) || ke(V) || (m[3] && m[3].toLowerCase() === "pm" && C < 13 && (C += 12), y(`T${C.toString().padStart(2, "0")}:${V.toString().padStart(2, "0")}:00`, 1));
|
|
828
834
|
}
|
|
829
835
|
});
|
|
830
|
-
return (
|
|
831
|
-
const
|
|
832
|
-
return
|
|
836
|
+
return (g, m) => {
|
|
837
|
+
const C = I("v-date-picker"), V = I("v-confirm-edit"), x = I("v-menu"), W = I("v-text-field"), se = I("v-time-picker");
|
|
838
|
+
return h(), k(n(be), M(l, {
|
|
833
839
|
clearable: "",
|
|
834
|
-
"onClick:clear":
|
|
840
|
+
"onClick:clear": m[14] || (m[14] = (b) => o.value = null)
|
|
835
841
|
}), {
|
|
836
|
-
default:
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
842
|
+
default: _(() => [
|
|
843
|
+
Z("div", zl, [
|
|
844
|
+
["date", "datetime"].includes(n(f)) ? (h(), k(W, {
|
|
845
|
+
key: 0,
|
|
846
|
+
modelValue: A.value,
|
|
847
|
+
"onUpdate:modelValue": m[4] || (m[4] = (b) => A.value = b),
|
|
848
|
+
style: { "flex-grow": "4" },
|
|
849
|
+
density: n(a).density,
|
|
850
|
+
variant: n(a).variant,
|
|
851
|
+
clearable: !1,
|
|
852
|
+
"hide-details": !0,
|
|
853
|
+
readonly: n(a).readonly,
|
|
854
|
+
disabled: n(a).disabled,
|
|
855
|
+
name: `${n(a).name}-date`,
|
|
856
|
+
onClick: m[5] || (m[5] = (b) => s.value = "date"),
|
|
857
|
+
onKeydown: m[6] || (m[6] = _e((b) => s.value = "date", ["space"]))
|
|
858
|
+
}, {
|
|
859
|
+
default: _(() => [
|
|
860
|
+
T(x, {
|
|
861
|
+
modelValue: p.value,
|
|
862
|
+
"onUpdate:modelValue": m[3] || (m[3] = (b) => p.value = b),
|
|
863
|
+
"close-on-content-click": !1,
|
|
864
|
+
activator: "parent"
|
|
865
|
+
}, {
|
|
866
|
+
default: _(() => [
|
|
867
|
+
T(V, {
|
|
868
|
+
modelValue: D.value,
|
|
869
|
+
"onUpdate:modelValue": m[0] || (m[0] = (b) => D.value = b),
|
|
870
|
+
onCancel: m[1] || (m[1] = (b) => s.value = ""),
|
|
871
|
+
onSave: m[2] || (m[2] = (b) => s.value = "")
|
|
872
|
+
}, {
|
|
873
|
+
default: _(({ model: b, actions: P }) => [
|
|
874
|
+
T(C, {
|
|
875
|
+
modelValue: b.value,
|
|
876
|
+
"onUpdate:modelValue": (X) => b.value = X,
|
|
877
|
+
"hide-header": !0,
|
|
878
|
+
"first-day-of-week": 1,
|
|
879
|
+
"show-adjacent-months": !0,
|
|
880
|
+
"show-week": !0
|
|
881
|
+
}, {
|
|
882
|
+
actions: _(() => [
|
|
883
|
+
(h(), k(te(P)))
|
|
884
|
+
]),
|
|
885
|
+
_: 2
|
|
886
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
887
|
+
]),
|
|
888
|
+
_: 1
|
|
889
|
+
}, 8, ["modelValue"])
|
|
890
|
+
]),
|
|
891
|
+
_: 1
|
|
892
|
+
}, 8, ["modelValue"])
|
|
893
|
+
]),
|
|
894
|
+
_: 1
|
|
895
|
+
}, 8, ["modelValue", "density", "variant", "readonly", "disabled", "name"])) : E("", !0),
|
|
896
|
+
["time", "datetime"].includes(n(f)) ? (h(), k(W, {
|
|
897
|
+
key: 1,
|
|
898
|
+
modelValue: B.value,
|
|
899
|
+
"onUpdate:modelValue": m[11] || (m[11] = (b) => B.value = b),
|
|
900
|
+
style: { "flex-grow": "3" },
|
|
901
|
+
density: n(a).density,
|
|
902
|
+
variant: n(a).variant,
|
|
903
|
+
clearable: !1,
|
|
904
|
+
"hide-details": !0,
|
|
905
|
+
readonly: n(a).readonly,
|
|
906
|
+
disabled: n(a).disabled,
|
|
907
|
+
name: `${n(a).name}-time`,
|
|
908
|
+
onClick: m[12] || (m[12] = (b) => s.value = "time"),
|
|
909
|
+
onKeydown: m[13] || (m[13] = _e((b) => s.value = "time", ["space"]))
|
|
910
|
+
}, {
|
|
911
|
+
default: _(() => [
|
|
912
|
+
T(x, {
|
|
913
|
+
modelValue: u.value,
|
|
914
|
+
"onUpdate:modelValue": m[10] || (m[10] = (b) => u.value = b),
|
|
915
|
+
"close-on-content-click": !1,
|
|
916
|
+
activator: "parent"
|
|
917
|
+
}, {
|
|
918
|
+
default: _(() => [
|
|
919
|
+
T(V, {
|
|
920
|
+
modelValue: L.value,
|
|
921
|
+
"onUpdate:modelValue": m[7] || (m[7] = (b) => L.value = b),
|
|
922
|
+
onCancel: m[8] || (m[8] = (b) => s.value = ""),
|
|
923
|
+
onSave: m[9] || (m[9] = (b) => s.value = "")
|
|
924
|
+
}, {
|
|
925
|
+
default: _(({ model: b, actions: P }) => [
|
|
926
|
+
T(se, {
|
|
927
|
+
modelValue: b.value,
|
|
928
|
+
"onUpdate:modelValue": (X) => b.value = X,
|
|
929
|
+
"hide-header": !0,
|
|
930
|
+
format: "24hr"
|
|
931
|
+
}, {
|
|
932
|
+
actions: _(() => [
|
|
933
|
+
(h(), k(te(P)))
|
|
934
|
+
]),
|
|
935
|
+
_: 2
|
|
936
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
937
|
+
]),
|
|
938
|
+
_: 1
|
|
939
|
+
}, 8, ["modelValue"])
|
|
940
|
+
]),
|
|
941
|
+
_: 1
|
|
942
|
+
}, 8, ["modelValue"])
|
|
943
|
+
]),
|
|
944
|
+
_: 1
|
|
945
|
+
}, 8, ["modelValue", "density", "variant", "readonly", "disabled", "name"])) : E("", !0)
|
|
946
|
+
])
|
|
930
947
|
]),
|
|
931
948
|
_: 1
|
|
932
949
|
}, 16);
|
|
@@ -934,7 +951,7 @@ const Rl = {
|
|
|
934
951
|
}
|
|
935
952
|
}), Gl = { style: { position: "relative", width: "100%" } }, Wl = /* @__PURE__ */ U({
|
|
936
953
|
__name: "df-file",
|
|
937
|
-
props: /* @__PURE__ */
|
|
954
|
+
props: /* @__PURE__ */ j({
|
|
938
955
|
comms: {},
|
|
939
956
|
control: {},
|
|
940
957
|
modelValue: {},
|
|
@@ -947,66 +964,66 @@ const Rl = {
|
|
|
947
964
|
visibility: {},
|
|
948
965
|
cssClass: {},
|
|
949
966
|
clearable: { type: Boolean }
|
|
950
|
-
},
|
|
967
|
+
}, z),
|
|
951
968
|
emits: ["update:modelValue", "click:clear"],
|
|
952
969
|
setup(t, { emit: e }) {
|
|
953
|
-
const l = t, i = e, { value: o, vuetifyBindings: a } =
|
|
954
|
-
function
|
|
970
|
+
const l = t, i = e, { value: o, vuetifyBindings: a } = H(l, i), f = S(null), c = S(null), v = S(0), s = S(Math.round(Math.random() * 1e3)), p = S(), u = w(() => !p.value && o.value ? l.modelValue : "");
|
|
971
|
+
function r() {
|
|
955
972
|
f.value && window.clearInterval(f.value);
|
|
956
973
|
}
|
|
957
974
|
function d() {
|
|
958
|
-
|
|
975
|
+
r(), f.value = window.setInterval(() => {
|
|
959
976
|
o.value && l.comms.touch(o.value);
|
|
960
977
|
}, 60 * 1e3);
|
|
961
978
|
}
|
|
962
|
-
Se(() =>
|
|
963
|
-
|
|
979
|
+
Se(() => r()), ee(o, (A) => {
|
|
980
|
+
A ? d() : r();
|
|
964
981
|
});
|
|
965
982
|
function y() {
|
|
966
983
|
return oe(this, null, function* () {
|
|
967
|
-
o.value && (yield l.comms.delete(o.value)), o.value = null,
|
|
984
|
+
o.value && (yield l.comms.delete(o.value)), o.value = null, v.value = 0, s.value = Math.round(Math.random() * 1e3), c.value = null, p.value = null, r();
|
|
968
985
|
});
|
|
969
986
|
}
|
|
970
|
-
function A
|
|
987
|
+
function D(A) {
|
|
971
988
|
return oe(this, null, function* () {
|
|
972
|
-
|
|
989
|
+
v.value = -1, c.value = A;
|
|
973
990
|
try {
|
|
974
991
|
o.value = yield l.comms.upload(
|
|
975
|
-
|
|
976
|
-
(
|
|
977
|
-
|
|
992
|
+
A,
|
|
993
|
+
(B, g) => {
|
|
994
|
+
v.value = Math.round(B * 100 / g);
|
|
978
995
|
}
|
|
979
|
-
),
|
|
980
|
-
} catch (
|
|
981
|
-
throw
|
|
996
|
+
), v.value = 100, d();
|
|
997
|
+
} catch (B) {
|
|
998
|
+
throw v.value = 0, c.value = null, s.value = Math.round(Math.random() * 1e3), p.value = null, B;
|
|
982
999
|
}
|
|
983
1000
|
});
|
|
984
1001
|
}
|
|
985
|
-
function
|
|
986
|
-
|
|
1002
|
+
function L(A) {
|
|
1003
|
+
A && (Array.isArray(A) ? console.error("Uploading multiple files not supported right now") : D(A));
|
|
987
1004
|
}
|
|
988
|
-
return (
|
|
989
|
-
const
|
|
990
|
-
return
|
|
1005
|
+
return (A, B) => {
|
|
1006
|
+
const g = I("v-progress-linear"), m = I("v-file-input");
|
|
1007
|
+
return h(), k(n(be), M(l, {
|
|
991
1008
|
clearable: "",
|
|
992
1009
|
"onClick:clear": y
|
|
993
1010
|
}), {
|
|
994
|
-
default:
|
|
995
|
-
|
|
996
|
-
c.value &&
|
|
1011
|
+
default: _(() => [
|
|
1012
|
+
Z("div", Gl, [
|
|
1013
|
+
c.value && v.value < 100 ? (h(), k(g, {
|
|
997
1014
|
key: 0,
|
|
998
|
-
"model-value":
|
|
999
|
-
indeterminate:
|
|
1015
|
+
"model-value": v.value,
|
|
1016
|
+
indeterminate: v.value === -1,
|
|
1000
1017
|
height: "10",
|
|
1001
1018
|
style: { position: "absolute", top: "50%", transform: "translateY(-50%)", width: "100%" }
|
|
1002
|
-
}, null, 8, ["model-value", "indeterminate"])) :
|
|
1003
|
-
|
|
1004
|
-
modelValue:
|
|
1019
|
+
}, null, 8, ["model-value", "indeterminate"])) : E("", !0),
|
|
1020
|
+
T(m, {
|
|
1021
|
+
modelValue: p.value,
|
|
1005
1022
|
"onUpdate:modelValue": [
|
|
1006
|
-
|
|
1007
|
-
|
|
1023
|
+
B[0] || (B[0] = (C) => p.value = C),
|
|
1024
|
+
L
|
|
1008
1025
|
],
|
|
1009
|
-
label:
|
|
1026
|
+
label: u.value,
|
|
1010
1027
|
density: n(a).density,
|
|
1011
1028
|
variant: n(a).variant,
|
|
1012
1029
|
readonly: n(a).readonly,
|
|
@@ -1015,7 +1032,7 @@ const Rl = {
|
|
|
1015
1032
|
"hide-details": !0,
|
|
1016
1033
|
"show-size": !0,
|
|
1017
1034
|
multiple: !1,
|
|
1018
|
-
style:
|
|
1035
|
+
style: ve(c.value && v.value < 100 ? "visibility: hidden" : ""),
|
|
1019
1036
|
clearable: !1
|
|
1020
1037
|
}, null, 8, ["modelValue", "label", "density", "variant", "readonly", "disabled", "name", "style"])
|
|
1021
1038
|
])
|
|
@@ -1026,7 +1043,7 @@ const Rl = {
|
|
|
1026
1043
|
}
|
|
1027
1044
|
}), Xl = { class: "container" }, ql = /* @__PURE__ */ U({
|
|
1028
1045
|
__name: "df-input",
|
|
1029
|
-
props: /* @__PURE__ */
|
|
1046
|
+
props: /* @__PURE__ */ j({
|
|
1030
1047
|
inputType: {},
|
|
1031
1048
|
precision: {},
|
|
1032
1049
|
step: {},
|
|
@@ -1043,7 +1060,7 @@ const Rl = {
|
|
|
1043
1060
|
visibility: {},
|
|
1044
1061
|
cssClass: {},
|
|
1045
1062
|
clearable: { type: Boolean }
|
|
1046
|
-
},
|
|
1063
|
+
}, R(N({}, z), {
|
|
1047
1064
|
inputType: "text",
|
|
1048
1065
|
precision: null,
|
|
1049
1066
|
step: void 0,
|
|
@@ -1052,33 +1069,33 @@ const Rl = {
|
|
|
1052
1069
|
})),
|
|
1053
1070
|
emits: ["update:modelValue", "click:clear"],
|
|
1054
1071
|
setup(t, { emit: e }) {
|
|
1055
|
-
const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } =
|
|
1056
|
-
return (y,
|
|
1057
|
-
const
|
|
1058
|
-
return
|
|
1059
|
-
|
|
1072
|
+
const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } = H(l, i), { inputType: c, max: v, min: s, precision: p, step: u } = ie(l), r = w(() => c.value === "number"), d = w(() => r.value ? { min: n(s), max: n(v), precision: n(p), step: n(u) } : {});
|
|
1073
|
+
return (y, D) => {
|
|
1074
|
+
const L = I("v-text-field"), A = I("v-number-input");
|
|
1075
|
+
return h(), $("div", Xl, [
|
|
1076
|
+
r.value ? (h(), k(A, M({
|
|
1060
1077
|
key: 1,
|
|
1061
1078
|
modelValue: n(a),
|
|
1062
|
-
"onUpdate:modelValue":
|
|
1063
|
-
},
|
|
1079
|
+
"onUpdate:modelValue": D[1] || (D[1] = (B) => K(a) ? a.value = B : null)
|
|
1080
|
+
}, N(N({}, n(f)), d.value), {
|
|
1064
1081
|
density: "compact",
|
|
1065
1082
|
"control-variant": "stacked"
|
|
1066
1083
|
}), {
|
|
1067
|
-
message:
|
|
1068
|
-
|
|
1069
|
-
message:
|
|
1084
|
+
message: _(({ message: B }) => [
|
|
1085
|
+
T(n(G), {
|
|
1086
|
+
message: B,
|
|
1070
1087
|
errors: n(o)
|
|
1071
1088
|
}, null, 8, ["message", "errors"])
|
|
1072
1089
|
]),
|
|
1073
1090
|
_: 1
|
|
1074
|
-
}, 16, ["modelValue"])) : (
|
|
1091
|
+
}, 16, ["modelValue"])) : (h(), k(L, M({
|
|
1075
1092
|
key: 0,
|
|
1076
1093
|
modelValue: n(a),
|
|
1077
|
-
"onUpdate:modelValue":
|
|
1094
|
+
"onUpdate:modelValue": D[0] || (D[0] = (B) => K(a) ? a.value = B : null)
|
|
1078
1095
|
}, n(f), { type: n(c) }), {
|
|
1079
|
-
message:
|
|
1080
|
-
|
|
1081
|
-
message:
|
|
1096
|
+
message: _(({ message: B }) => [
|
|
1097
|
+
T(n(G), {
|
|
1098
|
+
message: B,
|
|
1082
1099
|
errors: n(o)
|
|
1083
1100
|
}, null, 8, ["message", "errors"])
|
|
1084
1101
|
]),
|
|
@@ -1096,10 +1113,10 @@ const Rl = {
|
|
|
1096
1113
|
},
|
|
1097
1114
|
emits: ["update:modelValue"],
|
|
1098
1115
|
setup(t, { expose: e, emit: l }) {
|
|
1099
|
-
Qe((
|
|
1100
|
-
"3d4d5a06":
|
|
1116
|
+
Qe((u) => ({
|
|
1117
|
+
"3d4d5a06": u.minHeight
|
|
1101
1118
|
}));
|
|
1102
|
-
const i = l, o =
|
|
1119
|
+
const i = l, o = S(!1), a = Zt, s = {
|
|
1103
1120
|
toolbar: {
|
|
1104
1121
|
items: [
|
|
1105
1122
|
"undo",
|
|
@@ -1132,8 +1149,8 @@ const Rl = {
|
|
|
1132
1149
|
},
|
|
1133
1150
|
plugins: [
|
|
1134
1151
|
ut,
|
|
1135
|
-
ct,
|
|
1136
1152
|
dt,
|
|
1153
|
+
ct,
|
|
1137
1154
|
mt,
|
|
1138
1155
|
pt,
|
|
1139
1156
|
ft,
|
|
@@ -1160,8 +1177,8 @@ const Rl = {
|
|
|
1160
1177
|
Ut,
|
|
1161
1178
|
Ft,
|
|
1162
1179
|
Lt,
|
|
1163
|
-
Rt,
|
|
1164
1180
|
Pt,
|
|
1181
|
+
Rt,
|
|
1165
1182
|
Ot,
|
|
1166
1183
|
Mt,
|
|
1167
1184
|
Ht,
|
|
@@ -1233,23 +1250,23 @@ const Rl = {
|
|
|
1233
1250
|
Ae(() => {
|
|
1234
1251
|
o.value = !0;
|
|
1235
1252
|
});
|
|
1236
|
-
const
|
|
1253
|
+
const p = (u) => {
|
|
1237
1254
|
};
|
|
1238
|
-
return e({ onEditorReady:
|
|
1255
|
+
return e({ onEditorReady: p }), (u, r) => {
|
|
1239
1256
|
const d = I("ckeditor");
|
|
1240
|
-
return
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
o.value ? (
|
|
1257
|
+
return h(), $("div", Yl, [
|
|
1258
|
+
Z("div", Ql, [
|
|
1259
|
+
Z("div", Jl, [
|
|
1260
|
+
o.value ? (h(), k(d, {
|
|
1244
1261
|
key: 0,
|
|
1245
|
-
"model-value":
|
|
1262
|
+
"model-value": u.modelValue,
|
|
1246
1263
|
editor: n(a),
|
|
1247
1264
|
config: s,
|
|
1248
|
-
disabled:
|
|
1249
|
-
style:
|
|
1250
|
-
onReady:
|
|
1251
|
-
"onUpdate:modelValue":
|
|
1252
|
-
}, null, 8, ["model-value", "editor", "disabled", "style"])) :
|
|
1265
|
+
disabled: u.disabled,
|
|
1266
|
+
style: ve(`min-height: ${u.minHeight}`),
|
|
1267
|
+
onReady: p,
|
|
1268
|
+
"onUpdate:modelValue": r[0] || (r[0] = (y) => i("update:modelValue", y))
|
|
1269
|
+
}, null, 8, ["model-value", "editor", "disabled", "style"])) : E("", !0)
|
|
1253
1270
|
], 512)
|
|
1254
1271
|
])
|
|
1255
1272
|
]);
|
|
@@ -1257,7 +1274,7 @@ const Rl = {
|
|
|
1257
1274
|
}
|
|
1258
1275
|
}), tn = /* @__PURE__ */ U({
|
|
1259
1276
|
__name: "df-rtf-editor",
|
|
1260
|
-
props: /* @__PURE__ */
|
|
1277
|
+
props: /* @__PURE__ */ j({
|
|
1261
1278
|
minHeight: {},
|
|
1262
1279
|
control: {},
|
|
1263
1280
|
modelValue: {},
|
|
@@ -1270,16 +1287,16 @@ const Rl = {
|
|
|
1270
1287
|
visibility: {},
|
|
1271
1288
|
cssClass: {},
|
|
1272
1289
|
clearable: { type: Boolean }
|
|
1273
|
-
},
|
|
1290
|
+
}, R(N({}, z), { minHeight: void 0 })),
|
|
1274
1291
|
emits: ["update:modelValue", "click:clear"],
|
|
1275
1292
|
setup(t, { emit: e }) {
|
|
1276
|
-
const l = t, i = e, { value: o, vuetifyBindings: a } =
|
|
1277
|
-
return (f, c) => (
|
|
1278
|
-
default:
|
|
1279
|
-
|
|
1293
|
+
const l = t, i = e, { value: o, vuetifyBindings: a } = H(l, i);
|
|
1294
|
+
return (f, c) => (h(), k(n(be), Ee(Ue(l)), {
|
|
1295
|
+
default: _(() => [
|
|
1296
|
+
T(en, {
|
|
1280
1297
|
ref: "$editor",
|
|
1281
1298
|
modelValue: n(o),
|
|
1282
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1299
|
+
"onUpdate:modelValue": c[0] || (c[0] = (v) => K(o) ? o.value = v : null),
|
|
1283
1300
|
"min-height": f.minHeight,
|
|
1284
1301
|
disabled: n(a).disabled
|
|
1285
1302
|
}, null, 8, ["modelValue", "min-height", "disabled"])
|
|
@@ -1295,7 +1312,7 @@ function J(t, e) {
|
|
|
1295
1312
|
var l;
|
|
1296
1313
|
return t == null || Te(t) && t.length === 0 ? null : e ? Fe(t) : Te(t) ? (l = Le(t)) != null ? l : null : t;
|
|
1297
1314
|
}
|
|
1298
|
-
function
|
|
1315
|
+
function fe(t, e) {
|
|
1299
1316
|
if (e == null) return [];
|
|
1300
1317
|
const l = Fe(e);
|
|
1301
1318
|
return t.filter((i) => l.some((o) => o === i.id));
|
|
@@ -1308,11 +1325,11 @@ function ce(t, e, l, i, o) {
|
|
|
1308
1325
|
return;
|
|
1309
1326
|
}
|
|
1310
1327
|
if (l)
|
|
1311
|
-
i ? e.value = a : e.value =
|
|
1328
|
+
i ? e.value = a : e.value = fe(o, a).map((c) => c.id);
|
|
1312
1329
|
else if (i)
|
|
1313
1330
|
e.value = a;
|
|
1314
1331
|
else {
|
|
1315
|
-
const c = Le(
|
|
1332
|
+
const c = Le(fe(o, a));
|
|
1316
1333
|
e.value = (f = c == null ? void 0 : c.id) != null ? f : null;
|
|
1317
1334
|
}
|
|
1318
1335
|
}
|
|
@@ -1321,7 +1338,7 @@ const nn = {
|
|
|
1321
1338
|
class: "me-1"
|
|
1322
1339
|
}, on = /* @__PURE__ */ U({
|
|
1323
1340
|
__name: "df-select",
|
|
1324
|
-
props: /* @__PURE__ */
|
|
1341
|
+
props: /* @__PURE__ */ j({
|
|
1325
1342
|
choices: {},
|
|
1326
1343
|
multiple: { type: Boolean },
|
|
1327
1344
|
allowTags: { type: Boolean },
|
|
@@ -1338,7 +1355,7 @@ const nn = {
|
|
|
1338
1355
|
visibility: {},
|
|
1339
1356
|
cssClass: {},
|
|
1340
1357
|
clearable: { type: Boolean }
|
|
1341
|
-
},
|
|
1358
|
+
}, R(N({}, z), {
|
|
1342
1359
|
choices: void 0,
|
|
1343
1360
|
multiple: !1,
|
|
1344
1361
|
allowTags: !1,
|
|
@@ -1347,131 +1364,131 @@ const nn = {
|
|
|
1347
1364
|
})),
|
|
1348
1365
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
1349
1366
|
setup(t, { emit: e }) {
|
|
1350
|
-
const l = t, { choices: i } = l, { multiple: o, allowTags: a, allowNull: f, cssClass: c, visibility:
|
|
1351
|
-
function
|
|
1352
|
-
s("update:modelValueDisplay",
|
|
1367
|
+
const l = t, { choices: i } = l, { multiple: o, allowTags: a, allowNull: f, cssClass: c, visibility: v } = ie(l), s = e, { errors: p, value: u, vuetifyBindings: r } = H(l, s), d = S(null), y = S(i || []), D = S(!1), L = w(() => ln(y.value));
|
|
1368
|
+
function A(V) {
|
|
1369
|
+
s("update:modelValueDisplay", fe(y.value, V));
|
|
1353
1370
|
}
|
|
1354
|
-
ee(d, (
|
|
1355
|
-
|
|
1356
|
-
const
|
|
1357
|
-
|
|
1371
|
+
ee(d, (V) => {
|
|
1372
|
+
r.value.readonly || Je(() => {
|
|
1373
|
+
const x = J(V, o.value);
|
|
1374
|
+
A(x), u.value = x;
|
|
1358
1375
|
});
|
|
1359
1376
|
}, { deep: !0 });
|
|
1360
|
-
function
|
|
1361
|
-
if (
|
|
1362
|
-
const
|
|
1363
|
-
ce(
|
|
1377
|
+
function B() {
|
|
1378
|
+
if (r.value.readonly || a.value) return;
|
|
1379
|
+
const V = J(d.value, o.value);
|
|
1380
|
+
ce(V, d, o.value, !1, y.value), u.value = V;
|
|
1364
1381
|
}
|
|
1365
|
-
function
|
|
1366
|
-
let
|
|
1367
|
-
o.value && Array.isArray(d.value) ?
|
|
1382
|
+
function g(V) {
|
|
1383
|
+
let x;
|
|
1384
|
+
o.value && Array.isArray(d.value) ? x = J(d.value.filter((W) => W !== V), o.value) : x = null, ce(x, d, o.value, !1, y.value), u.value = x;
|
|
1368
1385
|
}
|
|
1369
|
-
function
|
|
1386
|
+
function m(V, x) {
|
|
1370
1387
|
return oe(this, null, function* () {
|
|
1371
1388
|
if (!(i || l.fetchChoices === void 0)) {
|
|
1372
|
-
|
|
1389
|
+
D.value = !0;
|
|
1373
1390
|
try {
|
|
1374
|
-
y.value = yield l.fetchChoices(
|
|
1391
|
+
y.value = yield l.fetchChoices(V, x);
|
|
1375
1392
|
} finally {
|
|
1376
|
-
|
|
1393
|
+
D.value = !1;
|
|
1377
1394
|
}
|
|
1378
1395
|
}
|
|
1379
1396
|
});
|
|
1380
1397
|
}
|
|
1381
|
-
function
|
|
1382
|
-
let
|
|
1383
|
-
!f.value &&
|
|
1398
|
+
function C() {
|
|
1399
|
+
let V = u.value;
|
|
1400
|
+
!f.value && V == null && L.value.length && (V = L.value[0].value), V = J(V, o.value), ce(V, d, o.value, a.value, y.value), A(V), u.value = V;
|
|
1384
1401
|
}
|
|
1385
|
-
return
|
|
1386
|
-
|
|
1387
|
-
}), (
|
|
1388
|
-
const
|
|
1389
|
-
return n(
|
|
1402
|
+
return C(), l.fetchChoices !== void 0 && m(void 0, u.value).then(() => {
|
|
1403
|
+
C();
|
|
1404
|
+
}), (V, x) => {
|
|
1405
|
+
const W = I("v-chip"), se = I("v-list-item");
|
|
1406
|
+
return n(v) !== n(O).SUPPRESS ? (h(), k(te(n(a) ? "v-combobox" : "v-autocomplete"), M({
|
|
1390
1407
|
key: 0,
|
|
1391
1408
|
modelValue: d.value,
|
|
1392
|
-
"onUpdate:modelValue":
|
|
1409
|
+
"onUpdate:modelValue": x[0] || (x[0] = (b) => d.value = b),
|
|
1393
1410
|
class: [
|
|
1394
1411
|
n(c),
|
|
1395
1412
|
{
|
|
1396
|
-
"d-none": n(
|
|
1397
|
-
invisible: n(
|
|
1413
|
+
"d-none": n(v) === n(O).HIDDEN,
|
|
1414
|
+
invisible: n(v) === n(O).INVISIBLE
|
|
1398
1415
|
}
|
|
1399
1416
|
],
|
|
1400
|
-
items:
|
|
1417
|
+
items: L.value,
|
|
1401
1418
|
"return-object": !1
|
|
1402
|
-
}, n(
|
|
1403
|
-
label: n(
|
|
1419
|
+
}, n(r), {
|
|
1420
|
+
label: n(r).label,
|
|
1404
1421
|
chips: "",
|
|
1405
1422
|
"auto-select-first": !0,
|
|
1406
1423
|
"closable-chips": n(f) || n(o) && d.value.length > 1,
|
|
1407
1424
|
clearable: n(f),
|
|
1408
1425
|
multiple: n(o),
|
|
1409
|
-
loading:
|
|
1426
|
+
loading: D.value,
|
|
1410
1427
|
"hide-selected": !1,
|
|
1411
|
-
"aria-describedby": n(
|
|
1428
|
+
"aria-describedby": n(r).helpText ? `${n(r).name}-help` : null,
|
|
1412
1429
|
"menu-props": { maxHeight: "400" },
|
|
1413
1430
|
"hide-details": "auto",
|
|
1414
|
-
"onUpdate:search":
|
|
1415
|
-
"onUpdate:modelValue":
|
|
1416
|
-
"onClick:clear":
|
|
1431
|
+
"onUpdate:search": x[1] || (x[1] = (b) => m(b, void 0)),
|
|
1432
|
+
"onUpdate:modelValue": B,
|
|
1433
|
+
"onClick:clear": x[2] || (x[2] = (b) => d.value = null)
|
|
1417
1434
|
}), {
|
|
1418
|
-
chip:
|
|
1419
|
-
(
|
|
1420
|
-
key:
|
|
1435
|
+
chip: _(({ item: b }) => [
|
|
1436
|
+
(h(), k(W, {
|
|
1437
|
+
key: b.value,
|
|
1421
1438
|
label: "",
|
|
1422
1439
|
size: "small",
|
|
1423
1440
|
class: "d-flex align-middle",
|
|
1424
1441
|
variant: n(o) ? "tonal" : "text",
|
|
1425
1442
|
closable: n(o),
|
|
1426
|
-
"onClick:close": (
|
|
1443
|
+
"onClick:close": (P) => g(b.value)
|
|
1427
1444
|
}, {
|
|
1428
|
-
prepend:
|
|
1429
|
-
var
|
|
1445
|
+
prepend: _(() => {
|
|
1446
|
+
var P;
|
|
1430
1447
|
return [
|
|
1431
|
-
(
|
|
1448
|
+
(P = b.raw) != null && P.icon ? (h(), k(n(pe), {
|
|
1432
1449
|
key: 0,
|
|
1433
1450
|
class: "me-1 action-icon d-inline-block",
|
|
1434
|
-
name:
|
|
1435
|
-
}, null, 8, ["name"])) :
|
|
1451
|
+
name: b.raw.icon
|
|
1452
|
+
}, null, 8, ["name"])) : E("", !0)
|
|
1436
1453
|
];
|
|
1437
1454
|
}),
|
|
1438
|
-
default:
|
|
1439
|
-
|
|
1455
|
+
default: _(() => [
|
|
1456
|
+
Z("span", {
|
|
1440
1457
|
class: le({ "text-body-1": !n(o) })
|
|
1441
|
-
},
|
|
1458
|
+
}, q(b.title), 3)
|
|
1442
1459
|
]),
|
|
1443
1460
|
_: 2
|
|
1444
1461
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
1445
1462
|
]),
|
|
1446
|
-
item:
|
|
1447
|
-
|
|
1448
|
-
prepend:
|
|
1449
|
-
var
|
|
1463
|
+
item: _(({ props: b, item: P }) => [
|
|
1464
|
+
T(se, Ee(Ue(b)), {
|
|
1465
|
+
prepend: _(() => {
|
|
1466
|
+
var X;
|
|
1450
1467
|
return [
|
|
1451
|
-
(
|
|
1452
|
-
|
|
1468
|
+
(X = P.raw) != null && X.icon ? (h(), $("span", nn, [
|
|
1469
|
+
T(n(pe), {
|
|
1453
1470
|
class: "action-icon d-inline-block",
|
|
1454
|
-
name:
|
|
1471
|
+
name: P.raw.icon
|
|
1455
1472
|
}, null, 8, ["name"])
|
|
1456
|
-
])) :
|
|
1473
|
+
])) : E("", !0)
|
|
1457
1474
|
];
|
|
1458
1475
|
}),
|
|
1459
1476
|
_: 2
|
|
1460
1477
|
}, 1040)
|
|
1461
1478
|
]),
|
|
1462
|
-
message:
|
|
1463
|
-
|
|
1464
|
-
message:
|
|
1465
|
-
errors: n(
|
|
1479
|
+
message: _(({ message: b }) => [
|
|
1480
|
+
T(n(G), {
|
|
1481
|
+
message: b,
|
|
1482
|
+
errors: n(p)
|
|
1466
1483
|
}, null, 8, ["message", "errors"])
|
|
1467
1484
|
]),
|
|
1468
1485
|
_: 1
|
|
1469
|
-
}, 16, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) :
|
|
1486
|
+
}, 16, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : E("", !0);
|
|
1470
1487
|
};
|
|
1471
1488
|
}
|
|
1472
1489
|
}), an = /* @__PURE__ */ ne(on, [["__scopeId", "data-v-efe3f250"]]), sn = { class: "container" }, rn = /* @__PURE__ */ U({
|
|
1473
1490
|
__name: "df-text-area",
|
|
1474
|
-
props: /* @__PURE__ */
|
|
1491
|
+
props: /* @__PURE__ */ j({
|
|
1475
1492
|
rows: {},
|
|
1476
1493
|
maxRows: {},
|
|
1477
1494
|
control: {},
|
|
@@ -1485,43 +1502,43 @@ const nn = {
|
|
|
1485
1502
|
visibility: {},
|
|
1486
1503
|
cssClass: {},
|
|
1487
1504
|
clearable: { type: Boolean }
|
|
1488
|
-
},
|
|
1505
|
+
}, R(N({}, z), {
|
|
1489
1506
|
rows: void 0,
|
|
1490
1507
|
maxRows: void 0
|
|
1491
1508
|
})),
|
|
1492
1509
|
emits: ["update:modelValue", "click:clear"],
|
|
1493
1510
|
setup(t, { emit: e }) {
|
|
1494
|
-
const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } =
|
|
1495
|
-
return (s,
|
|
1496
|
-
const
|
|
1497
|
-
return
|
|
1498
|
-
n(
|
|
1511
|
+
const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } = H(l, i), { cssClass: c, visibility: v } = ie(l);
|
|
1512
|
+
return (s, p) => {
|
|
1513
|
+
const u = I("v-textarea");
|
|
1514
|
+
return h(), $("div", sn, [
|
|
1515
|
+
n(v) !== n(O).SUPPRESS ? (h(), k(u, M({
|
|
1499
1516
|
key: 0,
|
|
1500
1517
|
modelValue: n(a),
|
|
1501
|
-
"onUpdate:modelValue":
|
|
1518
|
+
"onUpdate:modelValue": p[0] || (p[0] = (r) => K(a) ? a.value = r : null),
|
|
1502
1519
|
class: [
|
|
1503
1520
|
n(c),
|
|
1504
1521
|
{
|
|
1505
|
-
"d-none": n(
|
|
1506
|
-
invisible: n(
|
|
1522
|
+
"d-none": n(v) === n(O).HIDDEN,
|
|
1523
|
+
invisible: n(v) === n(O).INVISIBLE
|
|
1507
1524
|
}
|
|
1508
1525
|
],
|
|
1509
1526
|
rows: s.rows,
|
|
1510
1527
|
"auto-grow": (s.maxRows || 0) > 0,
|
|
1511
1528
|
"max-rows": s.maxRows
|
|
1512
1529
|
}, n(f)), {
|
|
1513
|
-
message:
|
|
1514
|
-
|
|
1515
|
-
message:
|
|
1530
|
+
message: _(({ message: r }) => [
|
|
1531
|
+
T(n(G), {
|
|
1532
|
+
message: r,
|
|
1516
1533
|
errors: n(o)
|
|
1517
1534
|
}, null, 8, ["message", "errors"])
|
|
1518
1535
|
]),
|
|
1519
1536
|
_: 1
|
|
1520
|
-
}, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) :
|
|
1537
|
+
}, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) : E("", !0)
|
|
1521
1538
|
]);
|
|
1522
1539
|
};
|
|
1523
1540
|
}
|
|
1524
|
-
}), un = /* @__PURE__ */ ne(rn, [["__scopeId", "data-v-1a04c9b5"]]),
|
|
1541
|
+
}), un = /* @__PURE__ */ ne(rn, [["__scopeId", "data-v-1a04c9b5"]]), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1525
1542
|
__proto__: null,
|
|
1526
1543
|
DfActions: Ml,
|
|
1527
1544
|
DfCheckbox: Hl,
|
|
@@ -1532,7 +1549,7 @@ const nn = {
|
|
|
1532
1549
|
DfRtfEditor: tn,
|
|
1533
1550
|
DfSelect: an,
|
|
1534
1551
|
DfTextArea: un
|
|
1535
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1552
|
+
}, Symbol.toStringTag, { value: "Module" })), cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1536
1553
|
__proto__: null,
|
|
1537
1554
|
VAutocomplete: Yt,
|
|
1538
1555
|
VBtn: Qt,
|
|
@@ -1546,8 +1563,8 @@ const nn = {
|
|
|
1546
1563
|
VFileInput: al,
|
|
1547
1564
|
VIcon: rl,
|
|
1548
1565
|
VInput: ul,
|
|
1549
|
-
VListItem:
|
|
1550
|
-
VMenu:
|
|
1566
|
+
VListItem: dl,
|
|
1567
|
+
VMenu: cl,
|
|
1551
1568
|
VNumberInput: ml,
|
|
1552
1569
|
VProgressLinear: pl,
|
|
1553
1570
|
VRow: sl,
|
|
@@ -1559,12 +1576,12 @@ const nn = {
|
|
|
1559
1576
|
}, Symbol.toStringTag, { value: "Module" })), Hn = {
|
|
1560
1577
|
install: (t, e) => {
|
|
1561
1578
|
var l, i;
|
|
1562
|
-
t.use(Sl), (l = e == null ? void 0 : e.registerComponents) != null && l && Object.entries(
|
|
1579
|
+
t.use(Sl), (l = e == null ? void 0 : e.registerComponents) != null && l && Object.entries(dn).map(([o, a]) => t.component(o, a)), (i = e == null ? void 0 : e.registerVuetifyComponents) != null && i && Object.entries(cn).map(([o, a]) => t.component(o, a));
|
|
1563
1580
|
}
|
|
1564
1581
|
};
|
|
1565
1582
|
export {
|
|
1566
1583
|
ae as Action,
|
|
1567
|
-
|
|
1584
|
+
F as ActionDisplayStyle,
|
|
1568
1585
|
Ml as DfActions,
|
|
1569
1586
|
Hl as DfCheckbox,
|
|
1570
1587
|
jl as DfColor,
|
|
@@ -1575,15 +1592,15 @@ export {
|
|
|
1575
1592
|
an as DfSelect,
|
|
1576
1593
|
un as DfTextArea,
|
|
1577
1594
|
Hn as DynamicFormsInputs,
|
|
1578
|
-
|
|
1579
|
-
|
|
1595
|
+
be as InputBase,
|
|
1596
|
+
G as MessagesWidget,
|
|
1580
1597
|
Ll as ResponsiveLabelRenderOptions,
|
|
1581
1598
|
Fl as ResponsiveRenderOptions,
|
|
1582
|
-
|
|
1583
|
-
|
|
1599
|
+
cn as VuetifyComponents,
|
|
1600
|
+
z as defaultBaseProps,
|
|
1584
1601
|
Ie as defaultDisplayStyle,
|
|
1585
1602
|
xe as getBreakpointName,
|
|
1586
1603
|
Be as responsiveBreakpoints,
|
|
1587
|
-
|
|
1604
|
+
H as useInputBase
|
|
1588
1605
|
};
|
|
1589
1606
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|