@dynamicforms/vuetify-inputs 0.4.1 → 0.4.2
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 +399 -385
- package/dist/dynamicforms-vuetify-inputs.js.map +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs +3 -3
- package/dist/dynamicforms-vuetify-inputs.umd.cjs.map +1 -1
- package/dist/index.d.ts +39 -16
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -10,37 +10,37 @@ var ge = (l, e, n) => e in l ? We(l, e, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
Qe.call(e, n) && ge(l, n, e[n]);
|
|
11
11
|
return l;
|
|
12
12
|
}, H = (l, e) => Xe(l, qe(e));
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
13
|
+
var ue = (l, e, n) => ge(l, typeof e != "symbol" ? e + "" : e, n);
|
|
14
|
+
var me = (l, e, n) => new Promise((a, o) => {
|
|
15
|
+
var i = (g) => {
|
|
16
16
|
try {
|
|
17
|
-
r(n.next(
|
|
18
|
-
} catch (
|
|
19
|
-
o(
|
|
17
|
+
r(n.next(g));
|
|
18
|
+
} catch (s) {
|
|
19
|
+
o(s);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, y = (g) => {
|
|
22
22
|
try {
|
|
23
|
-
r(n.throw(
|
|
24
|
-
} catch (
|
|
25
|
-
o(
|
|
23
|
+
r(n.throw(g));
|
|
24
|
+
} catch (s) {
|
|
25
|
+
o(s);
|
|
26
26
|
}
|
|
27
|
-
}, r = (
|
|
27
|
+
}, r = (g) => g.done ? a(g.value) : Promise.resolve(g.value).then(i, y);
|
|
28
28
|
r((n = n.apply(l, e)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as Be from "vue";
|
|
31
|
-
import { defineComponent as F, mergeModels as Ie, useModel as Ye, ref as
|
|
32
|
-
import { debounce as al, isString as ve, isEmpty as
|
|
31
|
+
import { defineComponent as F, mergeModels as Ie, useModel as Ye, ref as D, watch as ce, onMounted as Le, markRaw as Je, onBeforeUnmount as Re, createBlock as I, openBlock as V, resolveDynamicComponent as se, version as el, resolveComponent as A, createElementBlock as U, createCommentVNode as E, createTextVNode as Oe, Fragment as ke, toDisplayString as ie, inject as ll, computed as C, renderList as Pe, normalizeClass as re, unref as t, mergeProps as K, withCtx as _, createSlots as X, createVNode as B, renderSlot as ae, normalizeProps as G, guardReactiveProps as W, createElementVNode as Y, isRef as J, withModifiers as tl, mergeDefaults as q, normalizeStyle as we, toRefs as be, withKeys as $e, useCssVars as nl, nextTick as ol } from "vue";
|
|
32
|
+
import { debounce as al, isString as ve, isEmpty as il, isObjectLike as sl, isBoolean as Ae, clone as rl, toNumber as Se, isNaN as De, isArray as xe, castArray as Me, first as He, unionBy as ul } from "lodash-es";
|
|
33
33
|
import Ve from "vue-ionicon";
|
|
34
34
|
import { useDisplay as dl } from "vuetify";
|
|
35
35
|
import Ne, { ValidationErrorRenderContent as cl, DisplayMode as j, ExecuteAction as ml, Action as ye } from "@dynamicforms/vue-forms";
|
|
36
36
|
import pl from "vue-markdown-render";
|
|
37
|
-
import { format as
|
|
38
|
-
import { AccessibilityHelp as fl, Alignment as bl, AutoImage as gl, AutoLink as yl, Autosave as hl, BalloonToolbar as _l, BlockQuote as Vl, Bold as kl, CloudServices as wl, Essentials as Tl, GeneralHtmlSupport as Cl, Heading as Bl, HorizontalLine as Il, ImageBlock as $l, ImageCaption as Al, ImageInline as Sl, ImageInsertViaUrl as
|
|
37
|
+
import { format as de, parse as vl } from "date-fns";
|
|
38
|
+
import { AccessibilityHelp as fl, Alignment as bl, AutoImage as gl, AutoLink as yl, Autosave as hl, BalloonToolbar as _l, BlockQuote as Vl, Bold as kl, CloudServices as wl, Essentials as Tl, GeneralHtmlSupport as Cl, Heading as Bl, HorizontalLine as Il, ImageBlock as $l, ImageCaption as Al, ImageInline as Sl, ImageInsertViaUrl as Dl, ImageResize as xl, ImageStyle as Nl, ImageToolbar as Ul, ImageUpload as El, Indent as Fl, IndentBlock as Ll, Italic as Rl, Link as Ol, List as Pl, Autoformat as Ml, MediaEmbed as Hl, Paragraph as jl, PasteFromMarkdownExperimental as Kl, PasteFromOffice as zl, SelectAll as Gl, Style as Wl, Table as Xl, TableCellProperties as ql, TableColumnResize as Zl, TableProperties as Ql, TableToolbar as Yl, Undo as Jl, TextTransformation as et, Base64UploadAdapter as lt, ClassicEditor as tt } from "ckeditor5";
|
|
39
39
|
import { VAutocomplete as nt } from "vuetify/components/VAutocomplete";
|
|
40
40
|
import { VBtn as ot } from "vuetify/components/VBtn";
|
|
41
41
|
import { VCheckbox as at } from "vuetify/components/VCheckbox";
|
|
42
|
-
import { VChip as
|
|
43
|
-
import { VCombobox as
|
|
42
|
+
import { VChip as it } from "vuetify/components/VChip";
|
|
43
|
+
import { VCombobox as st } from "vuetify/components/VCombobox";
|
|
44
44
|
import { VColorPicker as rt } from "vuetify/components/VColorPicker";
|
|
45
45
|
import { VConfirmEdit as ut } from "vuetify/components/VConfirmEdit";
|
|
46
46
|
import { VDatePicker as dt } from "vuetify/components/VDatePicker";
|
|
@@ -133,7 +133,7 @@ function St(l) {
|
|
|
133
133
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
134
134
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
135
135
|
*/
|
|
136
|
-
function
|
|
136
|
+
function Dt() {
|
|
137
137
|
const { CKEDITOR_VERSION: l, CKEDITOR: e } = window;
|
|
138
138
|
return $t(l) ? {
|
|
139
139
|
source: e ? "cdn" : "npm",
|
|
@@ -144,8 +144,8 @@ function xt() {
|
|
|
144
144
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
145
145
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
146
146
|
*/
|
|
147
|
-
function
|
|
148
|
-
const l =
|
|
147
|
+
function xt() {
|
|
148
|
+
const l = Dt();
|
|
149
149
|
return l ? St(l.version) : null;
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
@@ -153,7 +153,7 @@ function Dt() {
|
|
|
153
153
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
154
154
|
*/
|
|
155
155
|
function ze(l, e) {
|
|
156
|
-
switch (e || (e =
|
|
156
|
+
switch (e || (e = xt() || void 0), e) {
|
|
157
157
|
case 1:
|
|
158
158
|
case 2:
|
|
159
159
|
return l === void 0;
|
|
@@ -169,8 +169,8 @@ function ze(l, e) {
|
|
|
169
169
|
*/
|
|
170
170
|
function Nt(l, e) {
|
|
171
171
|
return function(a) {
|
|
172
|
-
ze(a.config.get("licenseKey")) || a.on("collectUsageData", (o, { setUsageData:
|
|
173
|
-
|
|
172
|
+
ze(a.config.get("licenseKey")) || a.on("collectUsageData", (o, { setUsageData: i }) => {
|
|
173
|
+
i(`integration.${l}`, e);
|
|
174
174
|
});
|
|
175
175
|
};
|
|
176
176
|
}
|
|
@@ -214,16 +214,16 @@ const he = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Ft = 300, Lt =
|
|
|
214
214
|
}),
|
|
215
215
|
emits: /* @__PURE__ */ Ie(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
|
|
216
216
|
setup(l, { expose: e, emit: n }) {
|
|
217
|
-
const a = Ye(l, "modelValue"), o = l,
|
|
217
|
+
const a = Ye(l, "modelValue"), o = l, i = n, y = D(), r = D(), g = D();
|
|
218
218
|
e({
|
|
219
219
|
instance: r,
|
|
220
|
-
lastEditorData:
|
|
221
|
-
}),
|
|
222
|
-
r.value && u !==
|
|
223
|
-
}),
|
|
220
|
+
lastEditorData: g
|
|
221
|
+
}), ce(a, (u) => {
|
|
222
|
+
r.value && u !== g.value && r.value.data.set(u);
|
|
223
|
+
}), ce(() => o.disabled, (u) => {
|
|
224
224
|
u ? r.value.enableReadOnlyMode(he) : r.value.disableReadOnlyMode(he);
|
|
225
225
|
});
|
|
226
|
-
function
|
|
226
|
+
function s() {
|
|
227
227
|
const u = window.CKEDITOR_VERSION;
|
|
228
228
|
if (!u)
|
|
229
229
|
return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
|
|
@@ -234,29 +234,29 @@ const he = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Ft = 300, Lt =
|
|
|
234
234
|
const c = al((p) => {
|
|
235
235
|
if (o.disableTwoWayDataBinding)
|
|
236
236
|
return;
|
|
237
|
-
const
|
|
238
|
-
|
|
237
|
+
const b = g.value = u.data.get();
|
|
238
|
+
i("update:modelValue", b, p, u), i("input", b, p, u);
|
|
239
239
|
}, Ft, { leading: !0 });
|
|
240
240
|
u.model.document.on("change:data", c), u.editing.view.document.on("focus", (p) => {
|
|
241
|
-
|
|
241
|
+
i("focus", p, u);
|
|
242
242
|
}), u.editing.view.document.on("blur", (p) => {
|
|
243
|
-
|
|
243
|
+
i("blur", p, u);
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
|
-
return
|
|
246
|
+
return s(), Le(() => {
|
|
247
247
|
const u = Et(
|
|
248
248
|
Object.assign({}, o.config)
|
|
249
249
|
);
|
|
250
|
-
a.value && (u.initialData = a.value), o.editor.create(
|
|
251
|
-
r.value = Je(c), v(c), a.value !== u.initialData && c.data.set(a.value), o.disabled && c.enableReadOnlyMode(he),
|
|
250
|
+
a.value && (u.initialData = a.value), o.editor.create(y.value, u).then((c) => {
|
|
251
|
+
r.value = Je(c), v(c), a.value !== u.initialData && c.data.set(a.value), o.disabled && c.enableReadOnlyMode(he), i("ready", c);
|
|
252
252
|
}).catch((c) => {
|
|
253
253
|
console.error(c);
|
|
254
254
|
});
|
|
255
255
|
}), Re(() => {
|
|
256
|
-
r.value && (r.value.destroy(), r.value = void 0),
|
|
256
|
+
r.value && (r.value.destroy(), r.value = void 0), i("destroy");
|
|
257
257
|
}), (u, c) => (V(), I(se(u.tagName), {
|
|
258
258
|
ref_key: "element",
|
|
259
|
-
ref:
|
|
259
|
+
ref: y
|
|
260
260
|
}, null, 512));
|
|
261
261
|
}
|
|
262
262
|
});
|
|
@@ -302,24 +302,24 @@ const Rt = {
|
|
|
302
302
|
src: e.label.icon
|
|
303
303
|
}, null, 8, ["src"]))
|
|
304
304
|
], 64)) : E("", !0),
|
|
305
|
-
Oe(" " +
|
|
305
|
+
Oe(" " + ie(e.data ? e.data.label : e.label.text), 1)
|
|
306
306
|
]);
|
|
307
307
|
};
|
|
308
308
|
}
|
|
309
|
-
}),
|
|
309
|
+
}), te = (l, e) => {
|
|
310
310
|
const n = l.__vccOpts || l;
|
|
311
311
|
for (const [a, o] of e)
|
|
312
312
|
n[a] = o;
|
|
313
313
|
return n;
|
|
314
|
-
},
|
|
314
|
+
}, ee = /* @__PURE__ */ te(Pt, [["__scopeId", "data-v-0034f29f"]]), Ge = Symbol("vuetifyInputsSettingsKey");
|
|
315
315
|
class Mt {
|
|
316
316
|
constructor(e, n, a = "v-icon") {
|
|
317
317
|
this.text = e, this.icon = n, this.iconComponent = a;
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
const
|
|
320
|
+
const Z = { enabled: void 0 };
|
|
321
321
|
function z(l, e) {
|
|
322
|
-
const n = ll(Ge, {}), a =
|
|
322
|
+
const n = ll(Ge, {}), a = C({
|
|
323
323
|
get() {
|
|
324
324
|
return l.control ? l.control.value : l.modelValue;
|
|
325
325
|
},
|
|
@@ -329,36 +329,36 @@ function z(l, e) {
|
|
|
329
329
|
});
|
|
330
330
|
if (l.control && !(l.control instanceof Ne.FieldBase))
|
|
331
331
|
throw new Error("control prop is not a vue-form control instance");
|
|
332
|
-
const o =
|
|
332
|
+
const o = D(!1), i = C(() => l.control ? l.control.valid : !0), y = C(
|
|
333
333
|
() => l.control ? l.control.errors : (l.errors || []).map((h) => new cl(h))
|
|
334
|
-
), r =
|
|
334
|
+
), r = C(() => o.value && y.value.length > 0 ? " " : void 0), g = C(() => l.control ? l.control.enabled : l.enabled !== !1), s = C(
|
|
335
335
|
() => l.control ? l.control.visibility : l.visibility || Ne.DisplayMode.FULL
|
|
336
|
-
), v =
|
|
336
|
+
), v = C(
|
|
337
337
|
() => ve(l.label || "") ? new Mt(l.label || "") : l.label
|
|
338
|
-
), u =
|
|
338
|
+
), u = C(() => l.placeholder || ""), c = C(() => l.helpText || ""), p = C(() => l.hint || ""), b = C(() => l.cssClass || "");
|
|
339
339
|
return {
|
|
340
340
|
value: a,
|
|
341
|
-
valid:
|
|
342
|
-
enabled:
|
|
343
|
-
errors:
|
|
344
|
-
visibility:
|
|
341
|
+
valid: i,
|
|
342
|
+
enabled: g,
|
|
343
|
+
errors: y,
|
|
344
|
+
visibility: s,
|
|
345
345
|
label: v,
|
|
346
346
|
touched: o,
|
|
347
|
-
vuetifyBindings:
|
|
347
|
+
vuetifyBindings: C(() => {
|
|
348
348
|
var h, k;
|
|
349
349
|
return {
|
|
350
350
|
name: (h = l.control) == null ? void 0 : h.fieldName,
|
|
351
|
-
class:
|
|
351
|
+
class: b.value,
|
|
352
352
|
density: "default",
|
|
353
353
|
variant: (k = n.defaultVariant) != null ? k : "underlined",
|
|
354
354
|
label: v.value.text,
|
|
355
355
|
messages: r.value,
|
|
356
356
|
errorMessages: r.value,
|
|
357
357
|
// 'error-count': errors?.value.length || 0,
|
|
358
|
-
readonly: !
|
|
359
|
-
disabled: !
|
|
358
|
+
readonly: !g.value,
|
|
359
|
+
disabled: !g.value,
|
|
360
360
|
placeholder: u.value,
|
|
361
|
-
"persistent-placeholder": !
|
|
361
|
+
"persistent-placeholder": !il(u.value),
|
|
362
362
|
hint: p.value,
|
|
363
363
|
persistentHint: !0,
|
|
364
364
|
// we want persistent hint always
|
|
@@ -381,28 +381,28 @@ const Ht = {
|
|
|
381
381
|
setup(l) {
|
|
382
382
|
return (e, n) => e.message === " " ? (V(), U("div", Ht, [
|
|
383
383
|
(V(!0), U(ke, null, Pe(e.errors, (a, o) => {
|
|
384
|
-
var
|
|
384
|
+
var i;
|
|
385
385
|
return V(), U("div", {
|
|
386
386
|
key: o,
|
|
387
|
-
class:
|
|
387
|
+
class: re({ "first-error": o === 0, "last-error": o === e.errors.length - 1 })
|
|
388
388
|
}, [
|
|
389
|
-
a.componentName === "template" ? (V(), U("div", jt,
|
|
389
|
+
a.componentName === "template" ? (V(), U("div", jt, ie(a.componentBody), 1)) : a.componentName === "vue-markdown" ? (V(), I(t(pl), {
|
|
390
390
|
key: 1,
|
|
391
|
-
source: (
|
|
391
|
+
source: (i = a.componentBindings) == null ? void 0 : i.source
|
|
392
392
|
}, null, 8, ["source"])) : (V(), I(se(a.componentName), K({
|
|
393
393
|
key: 2,
|
|
394
394
|
ref_for: !0
|
|
395
395
|
}, a.componentBindings), {
|
|
396
396
|
default: _(() => [
|
|
397
|
-
Oe(
|
|
397
|
+
Oe(ie(a.componentBody), 1)
|
|
398
398
|
]),
|
|
399
399
|
_: 2
|
|
400
400
|
}, 1040))
|
|
401
401
|
], 2);
|
|
402
402
|
}), 128))
|
|
403
|
-
])) : (V(), U("span", Kt,
|
|
403
|
+
])) : (V(), U("span", Kt, ie(e.message), 1));
|
|
404
404
|
}
|
|
405
|
-
}),
|
|
405
|
+
}), le = /* @__PURE__ */ te(zt, [["__scopeId", "data-v-ff7a8b63"]]), Gt = { class: "d-flex w-100 style-resetting" }, Wt = /* @__PURE__ */ F({
|
|
406
406
|
__name: "input-base",
|
|
407
407
|
props: {
|
|
408
408
|
control: {},
|
|
@@ -420,62 +420,62 @@ const Ht = {
|
|
|
420
420
|
},
|
|
421
421
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
422
422
|
setup(l, { emit: e }) {
|
|
423
|
-
const n = l, a = e, { errors: o, label:
|
|
423
|
+
const n = l, a = e, { errors: o, label: i, value: y, touched: r, visibility: g, vuetifyBindings: s } = z(n, a), v = C(() => !!(t(n.clearable) && t(y))), u = D(!1);
|
|
424
424
|
function c(p) {
|
|
425
425
|
console.log(p), u.value = p, p || (r.value = !0, a("blur"));
|
|
426
426
|
}
|
|
427
|
-
return (p,
|
|
427
|
+
return (p, b) => {
|
|
428
428
|
const h = A("v-field"), k = A("v-input");
|
|
429
|
-
return t(
|
|
429
|
+
return t(g) !== t(j).SUPPRESS ? (V(), I(k, {
|
|
430
430
|
key: 0,
|
|
431
|
-
name: t(
|
|
432
|
-
hint: t(
|
|
433
|
-
"persistent-hint": t(
|
|
434
|
-
"hide-details": t(
|
|
435
|
-
"error-messages": t(
|
|
436
|
-
class:
|
|
431
|
+
name: t(s).name,
|
|
432
|
+
hint: t(s).hint,
|
|
433
|
+
"persistent-hint": t(s).persistentHint,
|
|
434
|
+
"hide-details": t(s).hideDetails,
|
|
435
|
+
"error-messages": t(s).errorMessages,
|
|
436
|
+
class: re([
|
|
437
437
|
p.cssClass,
|
|
438
438
|
{
|
|
439
|
-
"d-none": t(
|
|
440
|
-
invisible: t(
|
|
439
|
+
"d-none": t(g) === t(j).HIDDEN,
|
|
440
|
+
invisible: t(g) === t(j).INVISIBLE
|
|
441
441
|
}
|
|
442
442
|
])
|
|
443
|
-
},
|
|
443
|
+
}, X({
|
|
444
444
|
message: _(({ message: w }) => [
|
|
445
|
-
|
|
445
|
+
B(le, {
|
|
446
446
|
message: w,
|
|
447
447
|
errors: t(o)
|
|
448
448
|
}, null, 8, ["message", "errors"])
|
|
449
449
|
]),
|
|
450
450
|
default: _(() => [
|
|
451
|
-
|
|
452
|
-
variant: t(
|
|
453
|
-
label: t(
|
|
454
|
-
disabled: t(
|
|
451
|
+
B(h, {
|
|
452
|
+
variant: t(s).variant,
|
|
453
|
+
label: t(s).label,
|
|
454
|
+
disabled: t(s).disabled,
|
|
455
455
|
clearable: v.value,
|
|
456
456
|
"persistent-clear": !0,
|
|
457
|
-
dirty: !!t(
|
|
457
|
+
dirty: !!t(y),
|
|
458
458
|
active: u.value,
|
|
459
459
|
loading: p.loading,
|
|
460
|
-
"onClick:clear":
|
|
461
|
-
"onUpdate:focused":
|
|
462
|
-
},
|
|
460
|
+
"onClick:clear": b[0] || (b[0] = (w) => a("click:clear")),
|
|
461
|
+
"onUpdate:focused": b[1] || (b[1] = (w) => c(w))
|
|
462
|
+
}, X({
|
|
463
463
|
default: _((w) => [
|
|
464
|
-
|
|
465
|
-
|
|
464
|
+
Y("div", Gt, [
|
|
465
|
+
ae(p.$slots, "default", G(W(w)), void 0, !0)
|
|
466
466
|
])
|
|
467
467
|
]),
|
|
468
468
|
loader: _((w) => [
|
|
469
|
-
|
|
469
|
+
ae(p.$slots, "loader", G(W(w)), void 0, !0)
|
|
470
470
|
]),
|
|
471
471
|
_: 2
|
|
472
472
|
}, [
|
|
473
|
-
t(
|
|
473
|
+
t(i).icon ? {
|
|
474
474
|
name: "label",
|
|
475
475
|
fn: _((w) => [
|
|
476
|
-
|
|
476
|
+
B(ee, {
|
|
477
477
|
data: w,
|
|
478
|
-
label: t(
|
|
478
|
+
label: t(i)
|
|
479
479
|
}, null, 8, ["data", "label"])
|
|
480
480
|
]),
|
|
481
481
|
key: "0"
|
|
@@ -483,7 +483,7 @@ const Ht = {
|
|
|
483
483
|
p.$slots["prepend-inner"] ? {
|
|
484
484
|
name: "prepend-inner",
|
|
485
485
|
fn: _((w) => [
|
|
486
|
-
|
|
486
|
+
ae(p.$slots, "prepend-inner", G(W(w)), void 0, !0)
|
|
487
487
|
]),
|
|
488
488
|
key: "1"
|
|
489
489
|
} : void 0
|
|
@@ -494,14 +494,14 @@ const Ht = {
|
|
|
494
494
|
p.$slots.prepend ? {
|
|
495
495
|
name: "prepend",
|
|
496
496
|
fn: _((w) => [
|
|
497
|
-
|
|
497
|
+
ae(p.$slots, "prepend", G(W(w)), void 0, !0)
|
|
498
498
|
]),
|
|
499
499
|
key: "0"
|
|
500
500
|
} : void 0
|
|
501
501
|
]), 1032, ["name", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : E("", !0);
|
|
502
502
|
};
|
|
503
503
|
}
|
|
504
|
-
}), Te = /* @__PURE__ */
|
|
504
|
+
}), Te = /* @__PURE__ */ te(Wt, [["__scopeId", "data-v-4aab06cf"]]);
|
|
505
505
|
var R = /* @__PURE__ */ ((l) => (l[l.BUTTON = 0] = "BUTTON", l[l.TEXT = 1] = "TEXT", l))(R || {});
|
|
506
506
|
const Ue = 0;
|
|
507
507
|
((l) => {
|
|
@@ -510,13 +510,13 @@ const Ue = 0;
|
|
|
510
510
|
}
|
|
511
511
|
l.fromString = e;
|
|
512
512
|
function n(o) {
|
|
513
|
-
const
|
|
514
|
-
return Object.values(l).includes(
|
|
513
|
+
const i = typeof o == "number" ? o : l.fromString(o);
|
|
514
|
+
return Object.values(l).includes(i) ? i : Ue;
|
|
515
515
|
}
|
|
516
516
|
l.fromAny = n;
|
|
517
517
|
function a(o) {
|
|
518
|
-
const
|
|
519
|
-
return Object.values(l).includes(
|
|
518
|
+
const i = typeof o == "number" ? o : l.fromString(o);
|
|
519
|
+
return Object.values(l).includes(i);
|
|
520
520
|
}
|
|
521
521
|
l.isDefined = a;
|
|
522
522
|
})(R || (R = {}));
|
|
@@ -524,7 +524,7 @@ Object.freeze(R);
|
|
|
524
524
|
const Ee = ["xs", "sm", "md", "lg", "xl"];
|
|
525
525
|
class Xt {
|
|
526
526
|
constructor(e) {
|
|
527
|
-
|
|
527
|
+
ue(this, "_value");
|
|
528
528
|
this._value = this.cleanBreakpoint(e, !0), e && Ee.forEach((n) => {
|
|
529
529
|
const a = this.cleanBreakpoint(e[n]);
|
|
530
530
|
a && (this._value[n] = a);
|
|
@@ -533,9 +533,9 @@ class Xt {
|
|
|
533
533
|
getOptionsForBreakpoint(e) {
|
|
534
534
|
const n = this.cleanBreakpoint(this._value), a = Object.keys(n);
|
|
535
535
|
for (const o of Ee) {
|
|
536
|
-
const
|
|
537
|
-
for (const
|
|
538
|
-
(
|
|
536
|
+
const i = this._value[o];
|
|
537
|
+
for (const y of a)
|
|
538
|
+
(i == null ? void 0 : i[y]) != null && (n[y] = i[y]);
|
|
539
539
|
if (o === e) break;
|
|
540
540
|
}
|
|
541
541
|
return n;
|
|
@@ -544,7 +544,7 @@ class Xt {
|
|
|
544
544
|
class qt extends Xt {
|
|
545
545
|
// eslint-disable-next-line class-methods-use-this
|
|
546
546
|
cleanBreakpoint(e, n = !1) {
|
|
547
|
-
if ((!e || !
|
|
547
|
+
if ((!e || !sl(e)) && !n) return null;
|
|
548
548
|
const a = {};
|
|
549
549
|
return n && (a.renderAs = R.BUTTON, a.showLabel = !0, a.showIcon = !0), e && (e.renderAs != null && (a.renderAs = R.fromAny(e.renderAs)), ve(e.label) && (a.label = e.label), Ae(e.showLabel) && (a.showLabel = e.showLabel), Ae(e.showIcon) && (a.showIcon = e.showIcon)), Object.keys(a).length ? a : null;
|
|
550
550
|
}
|
|
@@ -554,9 +554,9 @@ function Fe(l) {
|
|
|
554
554
|
}
|
|
555
555
|
class pe {
|
|
556
556
|
constructor(e, n) {
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
557
|
+
ue(this, "name");
|
|
558
|
+
ue(this, "displayStyle");
|
|
559
|
+
ue(this, "formAction");
|
|
560
560
|
if (e.name == null) throw new Error(`Action name must not be empty ${e}`);
|
|
561
561
|
const a = !ve(e.label) || e.label.length === 0 ? void 0 : e.label, o = !ve(e.icon) || e.icon.length === 0 ? void 0 : e.icon;
|
|
562
562
|
this.name = e.name, this.displayStyle = new qt(N({ label: a }, e.displayStyle)), this.formAction = n, this.formAction.icon = o, this.formAction.label = a;
|
|
@@ -638,62 +638,62 @@ const Zt = {
|
|
|
638
638
|
showAsGroup: { default: "no" }
|
|
639
639
|
},
|
|
640
640
|
setup(l) {
|
|
641
|
-
const e = l, n =
|
|
642
|
-
const
|
|
643
|
-
|
|
641
|
+
const e = l, n = J(e.actions) ? e.actions : D(e.actions), a = dl(), o = C(() => {
|
|
642
|
+
const s = {};
|
|
643
|
+
s["%breakpoint%"] = Fe(a);
|
|
644
644
|
for (const v of n.value)
|
|
645
|
-
|
|
646
|
-
return
|
|
645
|
+
s[v.name] = v.displayStyle.getOptionsForBreakpoint(Fe(a));
|
|
646
|
+
return s;
|
|
647
647
|
});
|
|
648
|
-
function s
|
|
648
|
+
function i(s) {
|
|
649
649
|
var v;
|
|
650
|
-
return (v = o.value[
|
|
650
|
+
return (v = o.value[s.name].showIcon && s.iconAvailable) != null ? v : !0;
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
return o.value[
|
|
652
|
+
function y(s) {
|
|
653
|
+
return o.value[s.name].showLabel && s.labelAvailable ? !0 : !i(s);
|
|
654
654
|
}
|
|
655
|
-
function r(
|
|
655
|
+
function r(s) {
|
|
656
656
|
var v;
|
|
657
|
-
return (v = o.value[
|
|
657
|
+
return (v = o.value[s.name].renderAs) != null ? v : R.BUTTON;
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function g(s) {
|
|
660
660
|
var v;
|
|
661
|
-
return
|
|
661
|
+
return s.labelAvailable ? (v = s.formAction.label) != null ? v : "" : s.name;
|
|
662
662
|
}
|
|
663
|
-
return (
|
|
663
|
+
return (s, v) => {
|
|
664
664
|
const u = A("v-btn");
|
|
665
665
|
return t(n).length > 0 ? (V(), U("div", {
|
|
666
666
|
key: 0,
|
|
667
|
-
class:
|
|
668
|
-
"button-group":
|
|
669
|
-
"with-border":
|
|
667
|
+
class: re(["text-end", {
|
|
668
|
+
"button-group": s.showAsGroup === "grouped" || s.showAsGroup === "grouped-no-borders",
|
|
669
|
+
"with-border": s.showAsGroup === "grouped"
|
|
670
670
|
}])
|
|
671
671
|
}, [
|
|
672
672
|
(V(!0), U(ke, null, Pe(t(n), (c, p) => (V(), I(u, {
|
|
673
673
|
key: p,
|
|
674
674
|
variant: r(c) === t(R).BUTTON ? "tonal" : "text",
|
|
675
675
|
elevation: 0,
|
|
676
|
-
class:
|
|
677
|
-
size:
|
|
678
|
-
onClick: tl((
|
|
676
|
+
class: re(p !== -1 ? "" : "ms-3"),
|
|
677
|
+
size: s.buttonSize,
|
|
678
|
+
onClick: tl((b) => c.formAction.execute(b), ["stop"])
|
|
679
679
|
}, {
|
|
680
680
|
default: _(() => [
|
|
681
|
-
|
|
681
|
+
i(c) ? (V(), I(t(Ve), {
|
|
682
682
|
key: 0,
|
|
683
683
|
class: "action-icon",
|
|
684
684
|
name: c.formAction.icon
|
|
685
685
|
}, null, 8, ["name"])) : E("", !0),
|
|
686
|
-
|
|
687
|
-
|
|
686
|
+
i(c) && y(c) ? (V(), U("span", Zt)) : E("", !0),
|
|
687
|
+
y(c) ? (V(), U("span", Qt, ie(g(c)), 1)) : E("", !0)
|
|
688
688
|
]),
|
|
689
689
|
_: 2
|
|
690
690
|
}, 1032, ["variant", "class", "size", "onClick"]))), 128))
|
|
691
691
|
], 2)) : E("", !0);
|
|
692
692
|
};
|
|
693
693
|
}
|
|
694
|
-
}), Jt = /* @__PURE__ */
|
|
694
|
+
}), Jt = /* @__PURE__ */ te(Yt, [["__scopeId", "data-v-d7ba6fac"]]), en = /* @__PURE__ */ F({
|
|
695
695
|
__name: "df-checkbox",
|
|
696
|
-
props: /* @__PURE__ */
|
|
696
|
+
props: /* @__PURE__ */ q({
|
|
697
697
|
allowNull: { type: Boolean },
|
|
698
698
|
control: {},
|
|
699
699
|
modelValue: {},
|
|
@@ -706,10 +706,10 @@ const Zt = {
|
|
|
706
706
|
visibility: {},
|
|
707
707
|
cssClass: {},
|
|
708
708
|
clearable: { type: Boolean }
|
|
709
|
-
}, H(N({},
|
|
709
|
+
}, H(N({}, Z), { allowNull: !1 })),
|
|
710
710
|
emits: ["update:modelValue", "click:clear"],
|
|
711
711
|
setup(l, { emit: e }) {
|
|
712
|
-
const n = l, a = e, { errors: o, label:
|
|
712
|
+
const n = l, a = e, { errors: o, label: i, touched: y, value: r, vuetifyBindings: g } = z(n, a), s = C(() => n.allowNull && r.value == null), v = C({
|
|
713
713
|
get() {
|
|
714
714
|
return r.value;
|
|
715
715
|
},
|
|
@@ -721,32 +721,32 @@ const Zt = {
|
|
|
721
721
|
c === !0 ? r.value = n.allowNull ? null : !1 : r.value = c === !1;
|
|
722
722
|
}
|
|
723
723
|
return (c, p) => {
|
|
724
|
-
const
|
|
725
|
-
return V(), I(
|
|
724
|
+
const b = A("v-checkbox");
|
|
725
|
+
return V(), I(b, K({
|
|
726
726
|
modelValue: v.value,
|
|
727
727
|
"onUpdate:modelValue": p[0] || (p[0] = (h) => v.value = h)
|
|
728
|
-
}, t(
|
|
728
|
+
}, t(g), {
|
|
729
729
|
density: "compact",
|
|
730
|
-
indeterminate:
|
|
730
|
+
indeterminate: s.value,
|
|
731
731
|
"false-value": !1,
|
|
732
732
|
"true-value": !0,
|
|
733
733
|
onChange: u,
|
|
734
|
-
onBlur: p[1] || (p[1] = (h) =>
|
|
735
|
-
}),
|
|
734
|
+
onBlur: p[1] || (p[1] = (h) => y.value = !0)
|
|
735
|
+
}), X({
|
|
736
736
|
message: _(({ message: h }) => [
|
|
737
|
-
|
|
737
|
+
B(t(le), {
|
|
738
738
|
message: h,
|
|
739
739
|
errors: t(o)
|
|
740
740
|
}, null, 8, ["message", "errors"])
|
|
741
741
|
]),
|
|
742
742
|
_: 2
|
|
743
743
|
}, [
|
|
744
|
-
t(
|
|
744
|
+
t(i).icon ? {
|
|
745
745
|
name: "label",
|
|
746
746
|
fn: _((h) => [
|
|
747
|
-
|
|
747
|
+
B(t(ee), {
|
|
748
748
|
data: h,
|
|
749
|
-
label: t(
|
|
749
|
+
label: t(i)
|
|
750
750
|
}, null, 8, ["data", "label"])
|
|
751
751
|
]),
|
|
752
752
|
key: "0"
|
|
@@ -756,7 +756,7 @@ const Zt = {
|
|
|
756
756
|
}
|
|
757
757
|
}), ln = /* @__PURE__ */ F({
|
|
758
758
|
__name: "df-color",
|
|
759
|
-
props: /* @__PURE__ */
|
|
759
|
+
props: /* @__PURE__ */ q({
|
|
760
760
|
allowNull: { type: Boolean },
|
|
761
761
|
control: {},
|
|
762
762
|
modelValue: {},
|
|
@@ -769,45 +769,45 @@ const Zt = {
|
|
|
769
769
|
visibility: {},
|
|
770
770
|
cssClass: {},
|
|
771
771
|
clearable: { type: Boolean }
|
|
772
|
-
}, H(N({},
|
|
772
|
+
}, H(N({}, Z), { allowNull: !1 })),
|
|
773
773
|
emits: ["update:modelValue", "click:clear"],
|
|
774
774
|
setup(l, { emit: e }) {
|
|
775
|
-
const n = l, a = e, { errors: o, label:
|
|
775
|
+
const n = l, a = e, { errors: o, label: i, touched: y, value: r, vuetifyBindings: g } = z(n, a), s = D(!1), v = C(() => [
|
|
776
776
|
(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."
|
|
777
777
|
]);
|
|
778
778
|
return (u, c) => {
|
|
779
|
-
const p = A("v-color-picker"),
|
|
779
|
+
const p = A("v-color-picker"), b = A("v-menu"), h = A("v-text-field");
|
|
780
780
|
return V(), I(h, K({
|
|
781
781
|
modelValue: t(r),
|
|
782
|
-
"onUpdate:modelValue": c[2] || (c[2] = (k) =>
|
|
783
|
-
}, t(
|
|
782
|
+
"onUpdate:modelValue": c[2] || (c[2] = (k) => J(r) ? r.value = k : null)
|
|
783
|
+
}, t(g), {
|
|
784
784
|
clearable: u.allowNull,
|
|
785
785
|
type: "text",
|
|
786
786
|
rules: v.value,
|
|
787
|
-
onBlur: c[3] || (c[3] = (k) =>
|
|
788
|
-
}),
|
|
787
|
+
onBlur: c[3] || (c[3] = (k) => y.value = !0)
|
|
788
|
+
}), X({
|
|
789
789
|
message: _(({ message: k }) => [
|
|
790
|
-
|
|
790
|
+
B(t(le), {
|
|
791
791
|
message: k,
|
|
792
792
|
errors: t(o)
|
|
793
793
|
}, null, 8, ["message", "errors"])
|
|
794
794
|
]),
|
|
795
795
|
"prepend-inner": _(() => [
|
|
796
|
-
|
|
796
|
+
Y("div", {
|
|
797
797
|
style: we([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: t(r) }])
|
|
798
798
|
}, null, 4)
|
|
799
799
|
]),
|
|
800
800
|
default: _(() => [
|
|
801
|
-
|
|
802
|
-
modelValue:
|
|
803
|
-
"onUpdate:modelValue": c[1] || (c[1] = (k) =>
|
|
801
|
+
B(b, {
|
|
802
|
+
modelValue: s.value,
|
|
803
|
+
"onUpdate:modelValue": c[1] || (c[1] = (k) => s.value = k),
|
|
804
804
|
"close-on-content-click": !1,
|
|
805
805
|
activator: "parent"
|
|
806
806
|
}, {
|
|
807
807
|
default: _(() => [
|
|
808
|
-
|
|
808
|
+
B(p, {
|
|
809
809
|
modelValue: t(r),
|
|
810
|
-
"onUpdate:modelValue": c[0] || (c[0] = (k) =>
|
|
810
|
+
"onUpdate:modelValue": c[0] || (c[0] = (k) => J(r) ? r.value = k : null),
|
|
811
811
|
mode: "hexa"
|
|
812
812
|
}, null, 8, ["modelValue"])
|
|
813
813
|
]),
|
|
@@ -816,12 +816,12 @@ const Zt = {
|
|
|
816
816
|
]),
|
|
817
817
|
_: 2
|
|
818
818
|
}, [
|
|
819
|
-
t(
|
|
819
|
+
t(i).icon ? {
|
|
820
820
|
name: "label",
|
|
821
821
|
fn: _((k) => [
|
|
822
|
-
|
|
822
|
+
B(t(ee), {
|
|
823
823
|
data: k,
|
|
824
|
-
label: t(
|
|
824
|
+
label: t(i)
|
|
825
825
|
}, null, 8, ["data", "label"])
|
|
826
826
|
]),
|
|
827
827
|
key: "0"
|
|
@@ -831,7 +831,7 @@ const Zt = {
|
|
|
831
831
|
}
|
|
832
832
|
}), tn = { class: "d-flex w-100 pt-5 pl-2 pb-1" }, nn = /* @__PURE__ */ F({
|
|
833
833
|
__name: "df-datetime",
|
|
834
|
-
props: /* @__PURE__ */
|
|
834
|
+
props: /* @__PURE__ */ q({
|
|
835
835
|
inputType: {},
|
|
836
836
|
displayFormatDate: {},
|
|
837
837
|
displayFormatTime: {},
|
|
@@ -846,48 +846,48 @@ const Zt = {
|
|
|
846
846
|
visibility: {},
|
|
847
847
|
cssClass: {},
|
|
848
848
|
clearable: { type: Boolean }
|
|
849
|
-
}, H(N({},
|
|
849
|
+
}, H(N({}, Z), {
|
|
850
850
|
inputType: "datetime",
|
|
851
851
|
displayFormatDate: "P",
|
|
852
852
|
displayFormatTime: "p"
|
|
853
853
|
})),
|
|
854
854
|
emits: ["update:modelValue", "click:clear"],
|
|
855
855
|
setup(l, { emit: e }) {
|
|
856
|
-
const n = l, a = e, { touched: o, value:
|
|
856
|
+
const n = l, a = e, { touched: o, value: i, vuetifyBindings: y } = z(n, a), { inputType: r, displayFormatDate: g, displayFormatTime: s } = be(n), v = D(""), u = C({
|
|
857
857
|
get() {
|
|
858
858
|
return t(v) === "date";
|
|
859
859
|
},
|
|
860
860
|
set(d) {
|
|
861
861
|
v.value = d ? "date" : "";
|
|
862
862
|
}
|
|
863
|
-
}), c =
|
|
863
|
+
}), c = C({
|
|
864
864
|
get() {
|
|
865
865
|
return t(v) === "time";
|
|
866
866
|
},
|
|
867
867
|
set(d) {
|
|
868
868
|
v.value = d ? "time" : "";
|
|
869
869
|
}
|
|
870
|
-
}), p = (d) => `${
|
|
870
|
+
}), p = (d) => `${de(d, "yyyy-MM-dd")}T${de(d, "HH:mm")}:00`, b = D(null);
|
|
871
871
|
function h(d, m) {
|
|
872
872
|
if (d == null)
|
|
873
|
-
|
|
873
|
+
b.value = null;
|
|
874
874
|
else if (m === -1)
|
|
875
875
|
if (t(r) === "time")
|
|
876
|
-
|
|
876
|
+
b.value = p(/* @__PURE__ */ new Date()), h(`T${d}`, 1);
|
|
877
877
|
else {
|
|
878
878
|
const S = p(new Date(d));
|
|
879
879
|
h(S, 0), h(S, 1);
|
|
880
880
|
}
|
|
881
881
|
else {
|
|
882
|
-
|
|
883
|
-
const S =
|
|
884
|
-
S[m] = L[m],
|
|
882
|
+
b.value == null && (b.value = p(/* @__PURE__ */ new Date()));
|
|
883
|
+
const S = b.value.split(/[TZ]/g), L = d.split(/[TZ]/g);
|
|
884
|
+
S[m] = L[m], b.value = p(/* @__PURE__ */ new Date(`${S[0]}T${S[1].split(".")[0]}`)), t(r) === "date" ? i.value = S[0] : t(r) === "time" ? i.value = S[1] : i.value = t(b) + de(/* @__PURE__ */ new Date(), "XXX");
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
|
-
|
|
888
|
-
const k =
|
|
887
|
+
ce(i, (d) => h(d, -1), { immediate: !0 });
|
|
888
|
+
const k = C({
|
|
889
889
|
get() {
|
|
890
|
-
const d = t(
|
|
890
|
+
const d = t(b);
|
|
891
891
|
if (d == null) return null;
|
|
892
892
|
const m = new Date(d);
|
|
893
893
|
return Number.isNaN(m.getTime()) ? null : m;
|
|
@@ -895,84 +895,84 @@ const Zt = {
|
|
|
895
895
|
set(d) {
|
|
896
896
|
h(p(d), 0);
|
|
897
897
|
}
|
|
898
|
-
}), w =
|
|
898
|
+
}), w = C({
|
|
899
899
|
get() {
|
|
900
|
-
const d = t(
|
|
900
|
+
const d = t(b);
|
|
901
901
|
return d == null ? "" : d.split(/[TZ]/g)[1].split(".")[0];
|
|
902
902
|
},
|
|
903
903
|
set(d) {
|
|
904
904
|
h(`T${d}`, 1);
|
|
905
905
|
}
|
|
906
|
-
}), O =
|
|
906
|
+
}), O = C({
|
|
907
907
|
get() {
|
|
908
908
|
const d = t(k);
|
|
909
|
-
return d == null ? "" :
|
|
909
|
+
return d == null ? "" : de(d, t(g));
|
|
910
910
|
},
|
|
911
911
|
set(d) {
|
|
912
912
|
try {
|
|
913
|
-
const m = vl(d, t(
|
|
913
|
+
const m = vl(d, t(g), /* @__PURE__ */ new Date());
|
|
914
914
|
h(p(m), 0);
|
|
915
915
|
} catch (m) {
|
|
916
916
|
console.error(m);
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
|
-
}),
|
|
919
|
+
}), x = C({
|
|
920
920
|
get() {
|
|
921
921
|
const d = t(k);
|
|
922
|
-
return d == null ? "" :
|
|
922
|
+
return d == null ? "" : de(d, t(s));
|
|
923
923
|
},
|
|
924
924
|
set(d) {
|
|
925
925
|
const m = d.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
926
926
|
if (m == null) return;
|
|
927
927
|
let S = Se(m[1]);
|
|
928
928
|
const L = Se(m[2]);
|
|
929
|
-
|
|
929
|
+
De(S) || De(L) || (m[3] && m[3].toLowerCase() === "pm" && S < 13 && (S += 12), h(`T${S.toString().padStart(2, "0")}:${L.toString().padStart(2, "0")}:00`, 1));
|
|
930
930
|
}
|
|
931
931
|
});
|
|
932
932
|
return (d, m) => {
|
|
933
|
-
const S = A("v-date-picker"), L = A("v-confirm-edit"),
|
|
933
|
+
const S = A("v-date-picker"), L = A("v-confirm-edit"), T = A("v-menu"), $ = A("v-text-field"), Q = A("v-time-picker");
|
|
934
934
|
return V(), I(t(Te), K(n, {
|
|
935
935
|
clearable: "",
|
|
936
|
-
"onClick:clear": m[14] || (m[14] = (P) =>
|
|
936
|
+
"onClick:clear": m[14] || (m[14] = (P) => i.value = null),
|
|
937
937
|
onBlur: m[15] || (m[15] = (P) => o.value = !0)
|
|
938
938
|
}), {
|
|
939
939
|
default: _((P) => [
|
|
940
|
-
|
|
940
|
+
Y("div", tn, [
|
|
941
941
|
["date", "datetime"].includes(t(r)) ? (V(), I($, {
|
|
942
942
|
key: 0,
|
|
943
943
|
modelValue: O.value,
|
|
944
|
-
"onUpdate:modelValue": m[4] || (m[4] = (
|
|
944
|
+
"onUpdate:modelValue": m[4] || (m[4] = (f) => O.value = f),
|
|
945
945
|
style: { "flex-grow": "4" },
|
|
946
946
|
density: "compact",
|
|
947
947
|
variant: "plain",
|
|
948
948
|
clearable: !1,
|
|
949
949
|
"hide-details": !0,
|
|
950
|
-
readonly: t(
|
|
951
|
-
disabled: t(
|
|
952
|
-
name: `${t(
|
|
953
|
-
onClick: m[5] || (m[5] = (
|
|
954
|
-
onKeydown: m[6] || (m[6] = $e((
|
|
955
|
-
onFocus: (
|
|
956
|
-
onBlur: (
|
|
950
|
+
readonly: t(y).readonly,
|
|
951
|
+
disabled: t(y).disabled,
|
|
952
|
+
name: `${t(y).name}-date`,
|
|
953
|
+
onClick: m[5] || (m[5] = (f) => v.value = "date"),
|
|
954
|
+
onKeydown: m[6] || (m[6] = $e((f) => v.value = "date", ["space"])),
|
|
955
|
+
onFocus: (f) => P.focus(),
|
|
956
|
+
onBlur: (f) => P.blur()
|
|
957
957
|
}, {
|
|
958
958
|
default: _(() => [
|
|
959
|
-
|
|
959
|
+
B(T, {
|
|
960
960
|
modelValue: u.value,
|
|
961
|
-
"onUpdate:modelValue": m[3] || (m[3] = (
|
|
961
|
+
"onUpdate:modelValue": m[3] || (m[3] = (f) => u.value = f),
|
|
962
962
|
"close-on-content-click": !1,
|
|
963
963
|
activator: "parent"
|
|
964
964
|
}, {
|
|
965
965
|
default: _(() => [
|
|
966
|
-
|
|
966
|
+
B(L, {
|
|
967
967
|
modelValue: k.value,
|
|
968
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
969
|
-
onCancel: m[1] || (m[1] = (
|
|
970
|
-
onSave: m[2] || (m[2] = (
|
|
968
|
+
"onUpdate:modelValue": m[0] || (m[0] = (f) => k.value = f),
|
|
969
|
+
onCancel: m[1] || (m[1] = (f) => v.value = ""),
|
|
970
|
+
onSave: m[2] || (m[2] = (f) => v.value = "")
|
|
971
971
|
}, {
|
|
972
|
-
default: _(({ model:
|
|
973
|
-
|
|
974
|
-
modelValue:
|
|
975
|
-
"onUpdate:modelValue": (
|
|
972
|
+
default: _(({ model: f, actions: M }) => [
|
|
973
|
+
B(S, {
|
|
974
|
+
modelValue: f.value,
|
|
975
|
+
"onUpdate:modelValue": (ne) => f.value = ne,
|
|
976
976
|
"hide-header": !0,
|
|
977
977
|
"first-day-of-week": 1,
|
|
978
978
|
"show-adjacent-months": !0,
|
|
@@ -994,39 +994,39 @@ const Zt = {
|
|
|
994
994
|
}, 1032, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : E("", !0),
|
|
995
995
|
["time", "datetime"].includes(t(r)) ? (V(), I($, {
|
|
996
996
|
key: 1,
|
|
997
|
-
modelValue:
|
|
998
|
-
"onUpdate:modelValue": m[11] || (m[11] = (
|
|
997
|
+
modelValue: x.value,
|
|
998
|
+
"onUpdate:modelValue": m[11] || (m[11] = (f) => x.value = f),
|
|
999
999
|
style: { "flex-grow": "3" },
|
|
1000
1000
|
density: "compact",
|
|
1001
1001
|
variant: "plain",
|
|
1002
1002
|
clearable: !1,
|
|
1003
1003
|
"hide-details": !0,
|
|
1004
|
-
readonly: t(
|
|
1005
|
-
disabled: t(
|
|
1006
|
-
name: `${t(
|
|
1007
|
-
onClick: m[12] || (m[12] = (
|
|
1008
|
-
onKeydown: m[13] || (m[13] = $e((
|
|
1009
|
-
onFocus: (
|
|
1010
|
-
onBlur: (
|
|
1004
|
+
readonly: t(y).readonly,
|
|
1005
|
+
disabled: t(y).disabled,
|
|
1006
|
+
name: `${t(y).name}-time`,
|
|
1007
|
+
onClick: m[12] || (m[12] = (f) => v.value = "time"),
|
|
1008
|
+
onKeydown: m[13] || (m[13] = $e((f) => v.value = "time", ["space"])),
|
|
1009
|
+
onFocus: (f) => P.focus(),
|
|
1010
|
+
onBlur: (f) => P.blur()
|
|
1011
1011
|
}, {
|
|
1012
1012
|
default: _(() => [
|
|
1013
|
-
|
|
1013
|
+
B(T, {
|
|
1014
1014
|
modelValue: c.value,
|
|
1015
|
-
"onUpdate:modelValue": m[10] || (m[10] = (
|
|
1015
|
+
"onUpdate:modelValue": m[10] || (m[10] = (f) => c.value = f),
|
|
1016
1016
|
"close-on-content-click": !1,
|
|
1017
1017
|
activator: "parent"
|
|
1018
1018
|
}, {
|
|
1019
1019
|
default: _(() => [
|
|
1020
|
-
|
|
1020
|
+
B(L, {
|
|
1021
1021
|
modelValue: w.value,
|
|
1022
|
-
"onUpdate:modelValue": m[7] || (m[7] = (
|
|
1023
|
-
onCancel: m[8] || (m[8] = (
|
|
1024
|
-
onSave: m[9] || (m[9] = (
|
|
1022
|
+
"onUpdate:modelValue": m[7] || (m[7] = (f) => w.value = f),
|
|
1023
|
+
onCancel: m[8] || (m[8] = (f) => v.value = ""),
|
|
1024
|
+
onSave: m[9] || (m[9] = (f) => v.value = "")
|
|
1025
1025
|
}, {
|
|
1026
|
-
default: _(({ model:
|
|
1027
|
-
|
|
1028
|
-
modelValue:
|
|
1029
|
-
"onUpdate:modelValue": (
|
|
1026
|
+
default: _(({ model: f, actions: M }) => [
|
|
1027
|
+
B(Q, {
|
|
1028
|
+
modelValue: f.value,
|
|
1029
|
+
"onUpdate:modelValue": (ne) => f.value = ne,
|
|
1030
1030
|
"hide-header": !0,
|
|
1031
1031
|
format: "24hr"
|
|
1032
1032
|
}, {
|
|
@@ -1055,7 +1055,7 @@ const Zt = {
|
|
|
1055
1055
|
style: { position: "relative" }
|
|
1056
1056
|
}, an = /* @__PURE__ */ F({
|
|
1057
1057
|
__name: "df-file",
|
|
1058
|
-
props: /* @__PURE__ */
|
|
1058
|
+
props: /* @__PURE__ */ q({
|
|
1059
1059
|
comms: {},
|
|
1060
1060
|
control: {},
|
|
1061
1061
|
modelValue: {},
|
|
@@ -1068,64 +1068,64 @@ const Zt = {
|
|
|
1068
1068
|
visibility: {},
|
|
1069
1069
|
cssClass: {},
|
|
1070
1070
|
clearable: { type: Boolean }
|
|
1071
|
-
},
|
|
1071
|
+
}, Z),
|
|
1072
1072
|
emits: ["update:modelValue", "click:clear"],
|
|
1073
1073
|
setup(l, { emit: e }) {
|
|
1074
|
-
const n = l, a = e, { touched: o, value:
|
|
1075
|
-
function
|
|
1074
|
+
const n = l, a = e, { touched: o, value: i, vuetifyBindings: y } = z(n, a), r = D(null), g = D(null), s = D(0), v = D(Math.round(Math.random() * 1e3)), u = D(), c = C(() => g.value && s.value < 100), p = C(() => !u.value && i.value ? n.modelValue : "");
|
|
1075
|
+
function b() {
|
|
1076
1076
|
r.value && window.clearInterval(r.value);
|
|
1077
1077
|
}
|
|
1078
1078
|
function h() {
|
|
1079
|
-
|
|
1080
|
-
|
|
1079
|
+
b(), r.value = window.setInterval(() => {
|
|
1080
|
+
i.value && n.comms.touch(i.value);
|
|
1081
1081
|
}, 60 * 1e3);
|
|
1082
1082
|
}
|
|
1083
|
-
Re(() =>
|
|
1084
|
-
|
|
1083
|
+
Re(() => b()), ce(i, (x) => {
|
|
1084
|
+
x ? h() : b();
|
|
1085
1085
|
});
|
|
1086
1086
|
function k() {
|
|
1087
|
-
return
|
|
1088
|
-
|
|
1087
|
+
return me(this, null, function* () {
|
|
1088
|
+
i.value && (yield n.comms.delete(i.value)), i.value = null, s.value = 0, v.value = Math.round(Math.random() * 1e3), g.value = null, u.value = null, b();
|
|
1089
1089
|
});
|
|
1090
1090
|
}
|
|
1091
|
-
function w(
|
|
1092
|
-
return
|
|
1093
|
-
|
|
1091
|
+
function w(x) {
|
|
1092
|
+
return me(this, null, function* () {
|
|
1093
|
+
s.value = -1, g.value = x;
|
|
1094
1094
|
try {
|
|
1095
|
-
|
|
1096
|
-
|
|
1095
|
+
i.value = yield n.comms.upload(
|
|
1096
|
+
x,
|
|
1097
1097
|
(d, m) => {
|
|
1098
|
-
|
|
1098
|
+
s.value = Math.round(d * 100 / m);
|
|
1099
1099
|
}
|
|
1100
|
-
),
|
|
1100
|
+
), s.value = 100, h();
|
|
1101
1101
|
} catch (d) {
|
|
1102
|
-
throw
|
|
1102
|
+
throw s.value = 0, g.value = null, v.value = Math.round(Math.random() * 1e3), u.value = null, d;
|
|
1103
1103
|
}
|
|
1104
1104
|
});
|
|
1105
1105
|
}
|
|
1106
|
-
function O(
|
|
1107
|
-
|
|
1106
|
+
function O(x) {
|
|
1107
|
+
x && (Array.isArray(x) ? console.error("Uploading multiple files not supported right now") : w(x));
|
|
1108
1108
|
}
|
|
1109
|
-
return (
|
|
1109
|
+
return (x, d) => {
|
|
1110
1110
|
const m = A("v-icon"), S = A("v-progress-linear"), L = A("v-file-input");
|
|
1111
1111
|
return V(), I(t(Te), K(H(N({}, n), { loading: c.value }), {
|
|
1112
1112
|
clearable: "",
|
|
1113
1113
|
"onClick:clear": k,
|
|
1114
|
-
onBlur: d[1] || (d[1] = (
|
|
1114
|
+
onBlur: d[1] || (d[1] = (T) => o.value = !0)
|
|
1115
1115
|
}), {
|
|
1116
1116
|
"prepend-inner": _(() => [
|
|
1117
|
-
|
|
1117
|
+
B(m, { icon: "$file" })
|
|
1118
1118
|
]),
|
|
1119
1119
|
loader: _(() => [
|
|
1120
|
-
|
|
1120
|
+
g.value && s.value < 100 ? (V(), I(S, {
|
|
1121
1121
|
key: 0,
|
|
1122
|
-
"model-value":
|
|
1123
|
-
indeterminate:
|
|
1122
|
+
"model-value": s.value,
|
|
1123
|
+
indeterminate: s.value === -1
|
|
1124
1124
|
}, null, 8, ["model-value", "indeterminate"])) : E("", !0)
|
|
1125
1125
|
]),
|
|
1126
|
-
default: _((
|
|
1127
|
-
|
|
1128
|
-
|
|
1126
|
+
default: _((T) => [
|
|
1127
|
+
Y("div", on, [
|
|
1128
|
+
B(L, {
|
|
1129
1129
|
modelValue: u.value,
|
|
1130
1130
|
"onUpdate:modelValue": [
|
|
1131
1131
|
d[0] || (d[0] = ($) => u.value = $),
|
|
@@ -1134,17 +1134,17 @@ const Zt = {
|
|
|
1134
1134
|
label: p.value,
|
|
1135
1135
|
density: "compact",
|
|
1136
1136
|
variant: "plain",
|
|
1137
|
-
readonly: t(
|
|
1138
|
-
disabled: t(
|
|
1139
|
-
name: t(
|
|
1137
|
+
readonly: t(y).readonly,
|
|
1138
|
+
disabled: t(y).disabled,
|
|
1139
|
+
name: t(y).name,
|
|
1140
1140
|
"hide-details": !0,
|
|
1141
1141
|
"show-size": !0,
|
|
1142
1142
|
multiple: !1,
|
|
1143
|
-
style: we(
|
|
1143
|
+
style: we(g.value && s.value < 100 ? "visibility: hidden" : ""),
|
|
1144
1144
|
clearable: !1,
|
|
1145
1145
|
"prepend-icon": "",
|
|
1146
|
-
onFocus: ($) =>
|
|
1147
|
-
onBlur: ($) =>
|
|
1146
|
+
onFocus: ($) => T.focus(),
|
|
1147
|
+
onBlur: ($) => T.blur()
|
|
1148
1148
|
}, null, 8, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
|
|
1149
1149
|
])
|
|
1150
1150
|
]),
|
|
@@ -1154,7 +1154,7 @@ const Zt = {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
}), sn = { class: "container" }, rn = /* @__PURE__ */ F({
|
|
1156
1156
|
__name: "df-input",
|
|
1157
|
-
props: /* @__PURE__ */
|
|
1157
|
+
props: /* @__PURE__ */ q({
|
|
1158
1158
|
inputType: {},
|
|
1159
1159
|
precision: {},
|
|
1160
1160
|
step: {},
|
|
@@ -1171,7 +1171,7 @@ const Zt = {
|
|
|
1171
1171
|
visibility: {},
|
|
1172
1172
|
cssClass: {},
|
|
1173
1173
|
clearable: { type: Boolean }
|
|
1174
|
-
}, H(N({},
|
|
1174
|
+
}, H(N({}, Z), {
|
|
1175
1175
|
inputType: "text",
|
|
1176
1176
|
precision: null,
|
|
1177
1177
|
step: void 0,
|
|
@@ -1180,32 +1180,32 @@ const Zt = {
|
|
|
1180
1180
|
})),
|
|
1181
1181
|
emits: ["update:modelValue", "click:clear"],
|
|
1182
1182
|
setup(l, { emit: e }) {
|
|
1183
|
-
const n = l, a = e, { errors: o, label:
|
|
1183
|
+
const n = l, a = e, { errors: o, label: i, touched: y, value: r, vuetifyBindings: g } = z(n, a), { inputType: s, max: v, min: u, precision: c, step: p } = be(n), b = C(() => s.value === "number"), h = C(() => b.value ? { min: t(u), max: t(v), precision: t(c), step: t(p) } : {});
|
|
1184
1184
|
return (k, w) => {
|
|
1185
|
-
const O = A("v-text-field"),
|
|
1185
|
+
const O = A("v-text-field"), x = A("v-number-input");
|
|
1186
1186
|
return V(), U("div", sn, [
|
|
1187
|
-
|
|
1187
|
+
b.value ? (V(), I(x, K({
|
|
1188
1188
|
key: 1,
|
|
1189
1189
|
modelValue: t(r),
|
|
1190
|
-
"onUpdate:modelValue": w[2] || (w[2] = (d) =>
|
|
1191
|
-
}, N(N({}, t(
|
|
1190
|
+
"onUpdate:modelValue": w[2] || (w[2] = (d) => J(r) ? r.value = d : null)
|
|
1191
|
+
}, N(N({}, t(g)), h.value), {
|
|
1192
1192
|
density: "compact",
|
|
1193
1193
|
"control-variant": "stacked"
|
|
1194
|
-
}),
|
|
1194
|
+
}), X({
|
|
1195
1195
|
message: _(({ message: d }) => [
|
|
1196
|
-
|
|
1196
|
+
B(t(le), {
|
|
1197
1197
|
message: d,
|
|
1198
1198
|
errors: t(o)
|
|
1199
1199
|
}, null, 8, ["message", "errors"])
|
|
1200
1200
|
]),
|
|
1201
1201
|
_: 2
|
|
1202
1202
|
}, [
|
|
1203
|
-
t(
|
|
1203
|
+
t(i).icon ? {
|
|
1204
1204
|
name: "label",
|
|
1205
1205
|
fn: _((d) => [
|
|
1206
|
-
|
|
1206
|
+
B(t(ee), {
|
|
1207
1207
|
data: d,
|
|
1208
|
-
label: t(
|
|
1208
|
+
label: t(i)
|
|
1209
1209
|
}, null, 8, ["data", "label"])
|
|
1210
1210
|
]),
|
|
1211
1211
|
key: "0"
|
|
@@ -1213,25 +1213,25 @@ const Zt = {
|
|
|
1213
1213
|
]), 1040, ["modelValue"])) : (V(), I(O, K({
|
|
1214
1214
|
key: 0,
|
|
1215
1215
|
modelValue: t(r),
|
|
1216
|
-
"onUpdate:modelValue": w[0] || (w[0] = (d) =>
|
|
1217
|
-
}, t(
|
|
1218
|
-
type: t(
|
|
1219
|
-
onBlur: w[1] || (w[1] = (d) =>
|
|
1220
|
-
}),
|
|
1216
|
+
"onUpdate:modelValue": w[0] || (w[0] = (d) => J(r) ? r.value = d : null)
|
|
1217
|
+
}, t(g), {
|
|
1218
|
+
type: t(s),
|
|
1219
|
+
onBlur: w[1] || (w[1] = (d) => y.value = !0)
|
|
1220
|
+
}), X({
|
|
1221
1221
|
message: _(({ message: d }) => [
|
|
1222
|
-
|
|
1222
|
+
B(t(le), {
|
|
1223
1223
|
message: d,
|
|
1224
1224
|
errors: t(o)
|
|
1225
1225
|
}, null, 8, ["message", "errors"])
|
|
1226
1226
|
]),
|
|
1227
1227
|
_: 2
|
|
1228
1228
|
}, [
|
|
1229
|
-
t(
|
|
1229
|
+
t(i).icon ? {
|
|
1230
1230
|
name: "label",
|
|
1231
1231
|
fn: _((d) => [
|
|
1232
|
-
|
|
1232
|
+
B(t(ee), {
|
|
1233
1233
|
data: d,
|
|
1234
|
-
label: t(
|
|
1234
|
+
label: t(i)
|
|
1235
1235
|
}, null, 8, ["data", "label"])
|
|
1236
1236
|
]),
|
|
1237
1237
|
key: "0"
|
|
@@ -1240,7 +1240,7 @@ const Zt = {
|
|
|
1240
1240
|
]);
|
|
1241
1241
|
};
|
|
1242
1242
|
}
|
|
1243
|
-
}), un = /* @__PURE__ */
|
|
1243
|
+
}), un = /* @__PURE__ */ te(rn, [["__scopeId", "data-v-06be139f"]]), dn = { class: "editor-container" }, cn = { class: "editor-container__editor" }, mn = { ref: "editorElement" }, pn = /* @__PURE__ */ F({
|
|
1244
1244
|
__name: "ck-editor-custom",
|
|
1245
1245
|
props: {
|
|
1246
1246
|
modelValue: { default: "" },
|
|
@@ -1252,7 +1252,7 @@ const Zt = {
|
|
|
1252
1252
|
nl((u) => ({
|
|
1253
1253
|
"3d4d5a06": u.minHeight
|
|
1254
1254
|
}));
|
|
1255
|
-
const a = n, o =
|
|
1255
|
+
const a = n, o = D(!1), i = tt, s = {
|
|
1256
1256
|
toolbar: {
|
|
1257
1257
|
items: [
|
|
1258
1258
|
"undo",
|
|
@@ -1300,8 +1300,8 @@ const Zt = {
|
|
|
1300
1300
|
$l,
|
|
1301
1301
|
Al,
|
|
1302
1302
|
Sl,
|
|
1303
|
-
xl,
|
|
1304
1303
|
Dl,
|
|
1304
|
+
xl,
|
|
1305
1305
|
Nl,
|
|
1306
1306
|
Ul,
|
|
1307
1307
|
El,
|
|
@@ -1391,17 +1391,17 @@ const Zt = {
|
|
|
1391
1391
|
return e({ onEditorReady: v }), (u, c) => {
|
|
1392
1392
|
const p = A("ckeditor");
|
|
1393
1393
|
return V(), U("div", dn, [
|
|
1394
|
-
|
|
1395
|
-
|
|
1394
|
+
Y("div", cn, [
|
|
1395
|
+
Y("div", mn, [
|
|
1396
1396
|
o.value ? (V(), I(p, {
|
|
1397
1397
|
key: 0,
|
|
1398
1398
|
"model-value": u.modelValue,
|
|
1399
|
-
editor: t(
|
|
1400
|
-
config:
|
|
1399
|
+
editor: t(i),
|
|
1400
|
+
config: s,
|
|
1401
1401
|
disabled: u.disabled,
|
|
1402
1402
|
style: we(`min-height: ${u.minHeight}`),
|
|
1403
1403
|
onReady: v,
|
|
1404
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1404
|
+
"onUpdate:modelValue": c[0] || (c[0] = (b) => a("update:modelValue", b))
|
|
1405
1405
|
}, null, 8, ["model-value", "editor", "disabled", "style"])) : E("", !0)
|
|
1406
1406
|
], 512)
|
|
1407
1407
|
])
|
|
@@ -1410,7 +1410,7 @@ const Zt = {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
}), vn = /* @__PURE__ */ F({
|
|
1412
1412
|
__name: "df-rtf-editor",
|
|
1413
|
-
props: /* @__PURE__ */
|
|
1413
|
+
props: /* @__PURE__ */ q({
|
|
1414
1414
|
minHeight: {},
|
|
1415
1415
|
control: {},
|
|
1416
1416
|
modelValue: {},
|
|
@@ -1423,21 +1423,21 @@ const Zt = {
|
|
|
1423
1423
|
visibility: {},
|
|
1424
1424
|
cssClass: {},
|
|
1425
1425
|
clearable: { type: Boolean }
|
|
1426
|
-
}, H(N({},
|
|
1426
|
+
}, H(N({}, Z), { minHeight: void 0 })),
|
|
1427
1427
|
emits: ["update:modelValue", "click:clear"],
|
|
1428
1428
|
setup(l, { emit: e }) {
|
|
1429
|
-
const n = l, a = e, { value: o, vuetifyBindings:
|
|
1430
|
-
return (
|
|
1431
|
-
default: _((
|
|
1432
|
-
|
|
1429
|
+
const n = l, a = e, { value: o, vuetifyBindings: i } = z(n, a);
|
|
1430
|
+
return (y, r) => (V(), I(t(Te), G(W(n)), {
|
|
1431
|
+
default: _((g) => [
|
|
1432
|
+
B(pn, {
|
|
1433
1433
|
ref: "$editor",
|
|
1434
1434
|
modelValue: t(o),
|
|
1435
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
1436
|
-
class:
|
|
1437
|
-
"min-height":
|
|
1438
|
-
disabled: t(
|
|
1439
|
-
onFocusin: (
|
|
1440
|
-
onFocusout: (
|
|
1435
|
+
"onUpdate:modelValue": r[0] || (r[0] = (s) => J(o) ? o.value = s : null),
|
|
1436
|
+
class: re({ "mt-8": !!y.label }),
|
|
1437
|
+
"min-height": y.minHeight,
|
|
1438
|
+
disabled: t(i).disabled,
|
|
1439
|
+
onFocusin: (s) => g.focus(),
|
|
1440
|
+
onFocusout: (s) => g.blur()
|
|
1441
1441
|
}, null, 8, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
|
|
1442
1442
|
]),
|
|
1443
1443
|
_: 1
|
|
@@ -1447,9 +1447,9 @@ const Zt = {
|
|
|
1447
1447
|
function fn(l) {
|
|
1448
1448
|
return l.map((e) => ({ value: e.id, title: e.text, icon: e.icon }));
|
|
1449
1449
|
}
|
|
1450
|
-
function
|
|
1450
|
+
function oe(l, e) {
|
|
1451
1451
|
var n;
|
|
1452
|
-
return l == null ||
|
|
1452
|
+
return l == null || xe(l) && l.length === 0 ? null : e ? Me(l) : xe(l) ? (n = He(l)) != null ? n : null : l;
|
|
1453
1453
|
}
|
|
1454
1454
|
function fe(l, e) {
|
|
1455
1455
|
if (e == null) return [];
|
|
@@ -1457,19 +1457,19 @@ function fe(l, e) {
|
|
|
1457
1457
|
return l.filter((a) => n.some((o) => o === a.id));
|
|
1458
1458
|
}
|
|
1459
1459
|
function _e(l, e, n, a, o) {
|
|
1460
|
-
var
|
|
1461
|
-
const
|
|
1462
|
-
if (
|
|
1460
|
+
var y;
|
|
1461
|
+
const i = oe(l, n);
|
|
1462
|
+
if (i == null) {
|
|
1463
1463
|
e.value = n ? [] : null;
|
|
1464
1464
|
return;
|
|
1465
1465
|
}
|
|
1466
1466
|
if (n)
|
|
1467
|
-
a ? e.value =
|
|
1467
|
+
a ? e.value = i : e.value = fe(o, i).map((r) => r.id);
|
|
1468
1468
|
else if (a)
|
|
1469
|
-
e.value =
|
|
1469
|
+
e.value = i;
|
|
1470
1470
|
else {
|
|
1471
|
-
const r = He(fe(o,
|
|
1472
|
-
e.value = (
|
|
1471
|
+
const r = He(fe(o, i));
|
|
1472
|
+
e.value = (y = r == null ? void 0 : r.id) != null ? y : null;
|
|
1473
1473
|
}
|
|
1474
1474
|
}
|
|
1475
1475
|
const bn = {
|
|
@@ -1477,7 +1477,7 @@ const bn = {
|
|
|
1477
1477
|
class: "me-1"
|
|
1478
1478
|
}, gn = /* @__PURE__ */ F({
|
|
1479
1479
|
__name: "df-select",
|
|
1480
|
-
props: /* @__PURE__ */
|
|
1480
|
+
props: /* @__PURE__ */ q({
|
|
1481
1481
|
choices: {},
|
|
1482
1482
|
multiple: { type: Boolean },
|
|
1483
1483
|
allowTags: { type: Boolean },
|
|
@@ -1494,7 +1494,7 @@ const bn = {
|
|
|
1494
1494
|
visibility: {},
|
|
1495
1495
|
cssClass: {},
|
|
1496
1496
|
clearable: { type: Boolean }
|
|
1497
|
-
}, H(N({},
|
|
1497
|
+
}, H(N({}, Z), {
|
|
1498
1498
|
choices: void 0,
|
|
1499
1499
|
multiple: !1,
|
|
1500
1500
|
allowTags: !1,
|
|
@@ -1503,32 +1503,32 @@ const bn = {
|
|
|
1503
1503
|
})),
|
|
1504
1504
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
1505
1505
|
setup(l, { emit: e }) {
|
|
1506
|
-
const n = l, { choices: a } = n, { multiple: o, allowTags:
|
|
1507
|
-
function
|
|
1508
|
-
|
|
1506
|
+
const n = l, { choices: a } = n, { multiple: o, allowTags: i, allowNull: y, cssClass: r, visibility: g } = be(n), s = e, { errors: v, label: u, touched: c, value: p, vuetifyBindings: b } = z(n, s), h = D(null), k = D(a || []), w = D(!1), O = C(() => fn(k.value));
|
|
1507
|
+
function x(T) {
|
|
1508
|
+
s("update:modelValueDisplay", fe(k.value, T));
|
|
1509
1509
|
}
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
const $ =
|
|
1513
|
-
|
|
1510
|
+
ce(h, (T) => {
|
|
1511
|
+
b.value.readonly || ol(() => {
|
|
1512
|
+
const $ = oe(T, o.value);
|
|
1513
|
+
x($), p.value = $;
|
|
1514
1514
|
});
|
|
1515
1515
|
}, { deep: !0 });
|
|
1516
1516
|
function d() {
|
|
1517
|
-
if (
|
|
1518
|
-
const
|
|
1519
|
-
_e(
|
|
1517
|
+
if (b.value.readonly || i.value) return;
|
|
1518
|
+
const T = oe(h.value, o.value);
|
|
1519
|
+
_e(T, h, o.value, !1, k.value), p.value = T;
|
|
1520
1520
|
}
|
|
1521
|
-
function m(
|
|
1521
|
+
function m(T) {
|
|
1522
1522
|
let $;
|
|
1523
|
-
o.value && Array.isArray(h.value) ? $ =
|
|
1523
|
+
o.value && Array.isArray(h.value) ? $ = oe(h.value.filter((Q) => Q !== T), o.value) : $ = null, _e($, h, o.value, !1, k.value), p.value = $;
|
|
1524
1524
|
}
|
|
1525
|
-
function S(
|
|
1526
|
-
return
|
|
1525
|
+
function S(T, $) {
|
|
1526
|
+
return me(this, null, function* () {
|
|
1527
1527
|
if (!(a || n.fetchChoices === void 0)) {
|
|
1528
1528
|
w.value = !0;
|
|
1529
1529
|
try {
|
|
1530
|
-
const
|
|
1531
|
-
k.value = ul([...
|
|
1530
|
+
const Q = fe(k.value, oe(h.value, o.value)), P = yield n.fetchChoices(T, $);
|
|
1531
|
+
k.value = ul([...Q, ...P], "id");
|
|
1532
1532
|
} finally {
|
|
1533
1533
|
w.value = !1;
|
|
1534
1534
|
}
|
|
@@ -1536,78 +1536,78 @@ const bn = {
|
|
|
1536
1536
|
});
|
|
1537
1537
|
}
|
|
1538
1538
|
function L() {
|
|
1539
|
-
let
|
|
1540
|
-
!
|
|
1539
|
+
let T = p.value;
|
|
1540
|
+
!y.value && T == null && O.value.length && (T = O.value[0].value), T = oe(T, o.value), _e(T, h, o.value, i.value, k.value), x(T), p.value = T;
|
|
1541
1541
|
}
|
|
1542
1542
|
return L(), n.fetchChoices !== void 0 && S(void 0, p.value).then(() => {
|
|
1543
1543
|
L();
|
|
1544
|
-
}), (
|
|
1545
|
-
const
|
|
1546
|
-
return t(
|
|
1544
|
+
}), (T, $) => {
|
|
1545
|
+
const Q = A("v-chip"), P = A("v-list-item");
|
|
1546
|
+
return t(g) !== t(j).SUPPRESS ? (V(), I(se(t(i) ? "v-combobox" : "v-autocomplete"), K({
|
|
1547
1547
|
key: 0,
|
|
1548
1548
|
modelValue: h.value,
|
|
1549
|
-
"onUpdate:modelValue": $[0] || ($[0] = (
|
|
1549
|
+
"onUpdate:modelValue": $[0] || ($[0] = (f) => h.value = f),
|
|
1550
1550
|
class: [
|
|
1551
1551
|
t(r),
|
|
1552
1552
|
{
|
|
1553
|
-
"d-none": t(
|
|
1554
|
-
invisible: t(
|
|
1553
|
+
"d-none": t(g) === t(j).HIDDEN,
|
|
1554
|
+
invisible: t(g) === t(j).INVISIBLE
|
|
1555
1555
|
}
|
|
1556
1556
|
],
|
|
1557
1557
|
items: O.value,
|
|
1558
1558
|
"return-object": !1
|
|
1559
|
-
}, t(
|
|
1560
|
-
label: t(
|
|
1559
|
+
}, t(b), {
|
|
1560
|
+
label: t(b).label,
|
|
1561
1561
|
chips: "",
|
|
1562
1562
|
"auto-select-first": !0,
|
|
1563
|
-
"closable-chips": t(
|
|
1564
|
-
clearable: t(
|
|
1563
|
+
"closable-chips": t(y) || t(o) && h.value.length > 1,
|
|
1564
|
+
clearable: t(y),
|
|
1565
1565
|
multiple: t(o),
|
|
1566
1566
|
loading: w.value,
|
|
1567
1567
|
"hide-selected": !1,
|
|
1568
|
-
"aria-describedby": t(
|
|
1568
|
+
"aria-describedby": t(b).helpText ? `${t(b).name}-help` : null,
|
|
1569
1569
|
"menu-props": { maxHeight: "400" },
|
|
1570
1570
|
"hide-details": "auto",
|
|
1571
|
-
"onUpdate:search": $[1] || ($[1] = (
|
|
1571
|
+
"onUpdate:search": $[1] || ($[1] = (f) => S(f, void 0)),
|
|
1572
1572
|
"onUpdate:modelValue": d,
|
|
1573
|
-
"onClick:clear": $[2] || ($[2] = (
|
|
1574
|
-
onBlur: $[3] || ($[3] = (
|
|
1575
|
-
}),
|
|
1576
|
-
chip: _(({ item:
|
|
1577
|
-
(V(), I(
|
|
1578
|
-
key:
|
|
1573
|
+
"onClick:clear": $[2] || ($[2] = (f) => h.value = null),
|
|
1574
|
+
onBlur: $[3] || ($[3] = (f) => c.value = !0)
|
|
1575
|
+
}), X({
|
|
1576
|
+
chip: _(({ item: f }) => [
|
|
1577
|
+
(V(), I(Q, {
|
|
1578
|
+
key: f.value,
|
|
1579
1579
|
label: "",
|
|
1580
1580
|
size: "small",
|
|
1581
1581
|
class: "d-flex align-middle",
|
|
1582
1582
|
variant: t(o) ? "tonal" : "text",
|
|
1583
1583
|
closable: t(o),
|
|
1584
|
-
"onClick:close": (M) => m(
|
|
1584
|
+
"onClick:close": (M) => m(f.value)
|
|
1585
1585
|
}, {
|
|
1586
1586
|
prepend: _(() => {
|
|
1587
1587
|
var M;
|
|
1588
1588
|
return [
|
|
1589
|
-
(M =
|
|
1589
|
+
(M = f.raw) != null && M.icon ? (V(), I(t(Ve), {
|
|
1590
1590
|
key: 0,
|
|
1591
1591
|
class: "me-1 action-icon d-inline-block",
|
|
1592
|
-
name:
|
|
1592
|
+
name: f.raw.icon
|
|
1593
1593
|
}, null, 8, ["name"])) : E("", !0)
|
|
1594
1594
|
];
|
|
1595
1595
|
}),
|
|
1596
1596
|
default: _(() => [
|
|
1597
|
-
|
|
1598
|
-
class:
|
|
1599
|
-
},
|
|
1597
|
+
Y("span", {
|
|
1598
|
+
class: re({ "text-body-1": !t(o) })
|
|
1599
|
+
}, ie(f.title), 3)
|
|
1600
1600
|
]),
|
|
1601
1601
|
_: 2
|
|
1602
1602
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
1603
1603
|
]),
|
|
1604
|
-
item: _(({ props:
|
|
1605
|
-
|
|
1604
|
+
item: _(({ props: f, item: M }) => [
|
|
1605
|
+
B(P, G(W(f)), {
|
|
1606
1606
|
prepend: _(() => {
|
|
1607
|
-
var
|
|
1607
|
+
var ne;
|
|
1608
1608
|
return [
|
|
1609
|
-
(
|
|
1610
|
-
|
|
1609
|
+
(ne = M.raw) != null && ne.icon ? (V(), U("span", bn, [
|
|
1610
|
+
B(t(Ve), {
|
|
1611
1611
|
class: "action-icon d-inline-block",
|
|
1612
1612
|
name: M.raw.icon
|
|
1613
1613
|
}, null, 8, ["name"])
|
|
@@ -1617,9 +1617,9 @@ const bn = {
|
|
|
1617
1617
|
_: 2
|
|
1618
1618
|
}, 1040)
|
|
1619
1619
|
]),
|
|
1620
|
-
message: _(({ message:
|
|
1621
|
-
|
|
1622
|
-
message:
|
|
1620
|
+
message: _(({ message: f }) => [
|
|
1621
|
+
B(t(le), {
|
|
1622
|
+
message: f,
|
|
1623
1623
|
errors: t(v)
|
|
1624
1624
|
}, null, 8, ["message", "errors"])
|
|
1625
1625
|
]),
|
|
@@ -1627,20 +1627,34 @@ const bn = {
|
|
|
1627
1627
|
}, [
|
|
1628
1628
|
t(u).icon ? {
|
|
1629
1629
|
name: "label",
|
|
1630
|
-
fn: _((
|
|
1631
|
-
|
|
1632
|
-
data:
|
|
1630
|
+
fn: _((f) => [
|
|
1631
|
+
B(t(ee), {
|
|
1632
|
+
data: f,
|
|
1633
1633
|
label: t(u)
|
|
1634
1634
|
}, null, 8, ["data", "label"])
|
|
1635
1635
|
]),
|
|
1636
1636
|
key: "0"
|
|
1637
|
+
} : void 0,
|
|
1638
|
+
T.$slots["append-inner"] ? {
|
|
1639
|
+
name: "append-inner",
|
|
1640
|
+
fn: _((f) => [
|
|
1641
|
+
ae(T.$slots, "append-inner", G(W(f)), void 0, !0)
|
|
1642
|
+
]),
|
|
1643
|
+
key: "1"
|
|
1644
|
+
} : void 0,
|
|
1645
|
+
T.$slots["prepend-inner"] ? {
|
|
1646
|
+
name: "prepend-inner",
|
|
1647
|
+
fn: _((f) => [
|
|
1648
|
+
ae(T.$slots, "prepend-inner", G(W(f)), void 0, !0)
|
|
1649
|
+
]),
|
|
1650
|
+
key: "2"
|
|
1637
1651
|
} : void 0
|
|
1638
1652
|
]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : E("", !0);
|
|
1639
1653
|
};
|
|
1640
1654
|
}
|
|
1641
|
-
}), yn = /* @__PURE__ */
|
|
1655
|
+
}), yn = /* @__PURE__ */ te(gn, [["__scopeId", "data-v-7e0390c8"]]), hn = { class: "container" }, _n = /* @__PURE__ */ F({
|
|
1642
1656
|
__name: "df-text-area",
|
|
1643
|
-
props: /* @__PURE__ */
|
|
1657
|
+
props: /* @__PURE__ */ q({
|
|
1644
1658
|
rows: {},
|
|
1645
1659
|
maxRows: {},
|
|
1646
1660
|
control: {},
|
|
@@ -1654,22 +1668,22 @@ const bn = {
|
|
|
1654
1668
|
visibility: {},
|
|
1655
1669
|
cssClass: {},
|
|
1656
1670
|
clearable: { type: Boolean }
|
|
1657
|
-
}, H(N({},
|
|
1671
|
+
}, H(N({}, Z), {
|
|
1658
1672
|
rows: void 0,
|
|
1659
1673
|
maxRows: void 0
|
|
1660
1674
|
})),
|
|
1661
1675
|
emits: ["update:modelValue", "click:clear"],
|
|
1662
1676
|
setup(l, { emit: e }) {
|
|
1663
|
-
const n = l, a = e, { errors: o, label:
|
|
1677
|
+
const n = l, a = e, { errors: o, label: i, touched: y, value: r, vuetifyBindings: g } = z(n, a), { cssClass: s, visibility: v } = be(n);
|
|
1664
1678
|
return (u, c) => {
|
|
1665
1679
|
const p = A("v-textarea");
|
|
1666
1680
|
return V(), U("div", hn, [
|
|
1667
1681
|
t(v) !== t(j).SUPPRESS ? (V(), I(p, K({
|
|
1668
1682
|
key: 0,
|
|
1669
1683
|
modelValue: t(r),
|
|
1670
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1684
|
+
"onUpdate:modelValue": c[0] || (c[0] = (b) => J(r) ? r.value = b : null),
|
|
1671
1685
|
class: [
|
|
1672
|
-
t(
|
|
1686
|
+
t(s),
|
|
1673
1687
|
{
|
|
1674
1688
|
"d-none": t(v) === t(j).HIDDEN,
|
|
1675
1689
|
invisible: t(v) === t(j).INVISIBLE
|
|
@@ -1678,23 +1692,23 @@ const bn = {
|
|
|
1678
1692
|
rows: u.rows,
|
|
1679
1693
|
"auto-grow": (u.maxRows || 0) > 0,
|
|
1680
1694
|
"max-rows": u.maxRows
|
|
1681
|
-
}, t(
|
|
1682
|
-
onBlur: c[1] || (c[1] = (
|
|
1683
|
-
}),
|
|
1684
|
-
message: _(({ message:
|
|
1685
|
-
|
|
1686
|
-
message:
|
|
1695
|
+
}, t(g), {
|
|
1696
|
+
onBlur: c[1] || (c[1] = (b) => y.value = !0)
|
|
1697
|
+
}), X({
|
|
1698
|
+
message: _(({ message: b }) => [
|
|
1699
|
+
B(t(le), {
|
|
1700
|
+
message: b,
|
|
1687
1701
|
errors: t(o)
|
|
1688
1702
|
}, null, 8, ["message", "errors"])
|
|
1689
1703
|
]),
|
|
1690
1704
|
_: 2
|
|
1691
1705
|
}, [
|
|
1692
|
-
t(
|
|
1706
|
+
t(i).icon ? {
|
|
1693
1707
|
name: "label",
|
|
1694
|
-
fn: _((
|
|
1695
|
-
|
|
1696
|
-
data:
|
|
1697
|
-
label: t(
|
|
1708
|
+
fn: _((b) => [
|
|
1709
|
+
B(t(ee), {
|
|
1710
|
+
data: b,
|
|
1711
|
+
label: t(i)
|
|
1698
1712
|
}, null, 8, ["data", "label"])
|
|
1699
1713
|
]),
|
|
1700
1714
|
key: "0"
|
|
@@ -1703,7 +1717,7 @@ const bn = {
|
|
|
1703
1717
|
]);
|
|
1704
1718
|
};
|
|
1705
1719
|
}
|
|
1706
|
-
}), Vn = /* @__PURE__ */
|
|
1720
|
+
}), Vn = /* @__PURE__ */ te(_n, [["__scopeId", "data-v-6257d46c"]]), kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1707
1721
|
__proto__: null,
|
|
1708
1722
|
DfActions: Jt,
|
|
1709
1723
|
DfCheckbox: en,
|
|
@@ -1719,10 +1733,10 @@ const bn = {
|
|
|
1719
1733
|
VAutocomplete: nt,
|
|
1720
1734
|
VBtn: ot,
|
|
1721
1735
|
VCheckbox: at,
|
|
1722
|
-
VChip:
|
|
1736
|
+
VChip: it,
|
|
1723
1737
|
VCol: pt,
|
|
1724
1738
|
VColorPicker: rt,
|
|
1725
|
-
VCombobox:
|
|
1739
|
+
VCombobox: st,
|
|
1726
1740
|
VConfirmEdit: ut,
|
|
1727
1741
|
VDatePicker: dt,
|
|
1728
1742
|
VField: ct,
|
|
@@ -1743,7 +1757,7 @@ const bn = {
|
|
|
1743
1757
|
}, Symbol.toStringTag, { value: "Module" })), to = {
|
|
1744
1758
|
install: (l, e) => {
|
|
1745
1759
|
var n, a;
|
|
1746
|
-
l.use(Rt), l.provide(Ge, e != null ? e : {}), (n = e == null ? void 0 : e.registerComponents) != null && n && Object.entries(kn).map(([o,
|
|
1760
|
+
l.use(Rt), l.provide(Ge, e != null ? e : {}), (n = e == null ? void 0 : e.registerComponents) != null && n && Object.entries(kn).map(([o, i]) => l.component(o, i)), (a = e == null ? void 0 : e.registerVuetifyComponents) != null && a && Object.entries(wn).map(([o, i]) => l.component(o, i));
|
|
1747
1761
|
}
|
|
1748
1762
|
};
|
|
1749
1763
|
export {
|
|
@@ -1755,18 +1769,18 @@ export {
|
|
|
1755
1769
|
nn as DfDateTime,
|
|
1756
1770
|
an as DfFile,
|
|
1757
1771
|
un as DfInput,
|
|
1758
|
-
|
|
1772
|
+
ee as DfLabel,
|
|
1759
1773
|
vn as DfRtfEditor,
|
|
1760
1774
|
yn as DfSelect,
|
|
1761
1775
|
Vn as DfTextArea,
|
|
1762
1776
|
to as DynamicFormsInputs,
|
|
1763
1777
|
Te as InputBase,
|
|
1764
1778
|
Mt as Label,
|
|
1765
|
-
|
|
1779
|
+
le as MessagesWidget,
|
|
1766
1780
|
qt as ResponsiveLabelRenderOptions,
|
|
1767
1781
|
Xt as ResponsiveRenderOptions,
|
|
1768
1782
|
wn as VuetifyComponents,
|
|
1769
|
-
|
|
1783
|
+
Z as defaultBaseProps,
|
|
1770
1784
|
Ue as defaultDisplayStyle,
|
|
1771
1785
|
Fe as getBreakpointName,
|
|
1772
1786
|
Ee as responsiveBreakpoints,
|