@dynamicforms/vuetify-inputs 0.5.1 → 0.5.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 +224 -221
- package/dist/dynamicforms-vuetify-inputs.js.map +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs +14 -14
- package/dist/dynamicforms-vuetify-inputs.umd.cjs.map +1 -1
- package/dist/index.d.ts +125 -96
- package/dist/style.css +2 -2
- package/package.json +2 -2
|
@@ -9,7 +9,7 @@ var ke = (l, e, n) => e in l ? Qe(l, e, { enumerable: !0, configurable: !0, writ
|
|
|
9
9
|
for (var n of xe(e))
|
|
10
10
|
tl.call(e, n) && ke(l, n, e[n]);
|
|
11
11
|
return l;
|
|
12
|
-
},
|
|
12
|
+
}, R = (l, e) => Je(l, el(e));
|
|
13
13
|
var De = (l, e, n) => ke(l, typeof e != "symbol" ? e + "" : e, n);
|
|
14
14
|
var be = (l, e, n) => new Promise((o, a) => {
|
|
15
15
|
var s = (m) => {
|
|
@@ -28,14 +28,14 @@ var be = (l, e, n) => new Promise((o, a) => {
|
|
|
28
28
|
r((n = n.apply(l, e)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as Ne from "vue";
|
|
31
|
-
import { defineComponent as
|
|
32
|
-
import { debounce as ul, isString as ee, isEmpty as
|
|
31
|
+
import { defineComponent as O, mergeModels as Se, useModel as nl, ref as E, watch as ie, onMounted as He, markRaw as ol, onBeforeUnmount as je, createBlock as B, openBlock as _, resolveDynamicComponent as ue, version as al, resolveComponent as $, createElementBlock as U, createCommentVNode as L, createTextVNode as ze, Fragment as Ce, toDisplayString as re, inject as sl, computed as k, renderList as Ke, normalizeClass as pe, unref as t, mergeProps as z, withCtx as y, createSlots as Y, createVNode as T, renderSlot as se, normalizeProps as X, guardReactiveProps as q, createElementVNode as le, withModifiers as rl, mergeDefaults as Z, isRef as de, normalizeStyle as Be, toRefs as _e, withKeys as Ee, useCssVars as il, nextTick as Ue } from "vue";
|
|
32
|
+
import { debounce as ul, isString as ee, isEmpty as me, isObjectLike as dl, isBoolean as Ae, clone as cl, toNumber as Fe, isNaN as Le, isArray as Oe, castArray as Ge, first as We, unionBy as ml } from "lodash-es";
|
|
33
33
|
import Te from "vue-ionicon";
|
|
34
|
-
import
|
|
34
|
+
import Re, { ValidationErrorRenderContent as vl, DisplayMode as j, Action as pl } from "@dynamicforms/vue-forms";
|
|
35
35
|
import fl from "vue-markdown-render";
|
|
36
36
|
import { useDisplay as bl } from "vuetify";
|
|
37
|
-
import { format as
|
|
38
|
-
import { AccessibilityHelp as hl, Alignment as yl, AutoImage as
|
|
37
|
+
import { format as ce, parse as gl } from "date-fns";
|
|
38
|
+
import { AccessibilityHelp as hl, Alignment as yl, AutoImage as _l, AutoLink as Vl, Autosave as kl, BalloonToolbar as wl, BlockQuote as Tl, Bold as Cl, CloudServices as Bl, Essentials as Il, GeneralHtmlSupport as $l, Heading as xl, HorizontalLine as Dl, ImageBlock as Nl, ImageCaption as Sl, ImageInline as El, ImageInsertViaUrl as Ul, ImageResize as Al, ImageStyle as Fl, ImageToolbar as Ll, ImageUpload as Ol, Indent as Rl, IndentBlock as Pl, Italic as Ml, Link as Hl, List as jl, Autoformat as zl, MediaEmbed as Kl, Paragraph as Gl, PasteFromMarkdownExperimental as Wl, PasteFromOffice as Xl, SelectAll as ql, Style as Yl, Table as Zl, TableCellProperties as Ql, TableColumnResize as Jl, TableProperties as et, TableToolbar as lt, Undo as tt, TextTransformation as nt, Base64UploadAdapter as ot, ClassicEditor as at } from "ckeditor5";
|
|
39
39
|
import { VAutocomplete as st } from "vuetify/components/VAutocomplete";
|
|
40
40
|
import { VBtn as rt } from "vuetify/components/VBtn";
|
|
41
41
|
import { VCheckbox as it } from "vuetify/components/VCheckbox";
|
|
@@ -49,8 +49,8 @@ import { VFileInput as ft } from "vuetify/components/VFileInput";
|
|
|
49
49
|
import { VCol as bt, VRow as gt } from "vuetify/components/VGrid";
|
|
50
50
|
import { VIcon as ht } from "vuetify/components/VIcon";
|
|
51
51
|
import { VImg as yt } from "vuetify/components/VImg";
|
|
52
|
-
import { VInput as
|
|
53
|
-
import { VListItem as
|
|
52
|
+
import { VInput as _t } from "vuetify/components/VInput";
|
|
53
|
+
import { VListItem as Vt } from "vuetify/components/VList";
|
|
54
54
|
import { VMenu as kt } from "vuetify/components/VMenu";
|
|
55
55
|
import { VNumberInput as wt } from "vuetify/components/VNumberInput";
|
|
56
56
|
import { VProgressLinear as Tt } from "vuetify/components/VProgressLinear";
|
|
@@ -74,7 +74,7 @@ new Array(256).fill("").map((l, e) => ("0" + e.toString(16)).slice(-2));
|
|
|
74
74
|
*/
|
|
75
75
|
function Dt(l, e) {
|
|
76
76
|
const n = l.extraPlugins || [];
|
|
77
|
-
return
|
|
77
|
+
return R(x({}, l), {
|
|
78
78
|
extraPlugins: [
|
|
79
79
|
...n,
|
|
80
80
|
...e.filter((o) => !n.includes(o))
|
|
@@ -189,7 +189,7 @@ const Lt = Ft(
|
|
|
189
189
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
190
190
|
* For licensing, see LICENSE.md.
|
|
191
191
|
*/
|
|
192
|
-
function
|
|
192
|
+
function Ot(l) {
|
|
193
193
|
return Ye(l.licenseKey) ? l : Dt(l, [
|
|
194
194
|
/**
|
|
195
195
|
* This part of the code is not executed in open-source implementations using a GPL key.
|
|
@@ -199,7 +199,7 @@ function Rt(l) {
|
|
|
199
199
|
Lt
|
|
200
200
|
]);
|
|
201
201
|
}
|
|
202
|
-
const we = "Lock from Vue integration (@ckeditor/ckeditor5-vue)",
|
|
202
|
+
const we = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Rt = 300, Pt = /* @__PURE__ */ O({
|
|
203
203
|
name: "CKEditor",
|
|
204
204
|
__name: "ckeditor",
|
|
205
205
|
props: /* @__PURE__ */ Se({
|
|
@@ -214,13 +214,13 @@ const we = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Ot = 300, Pt =
|
|
|
214
214
|
}),
|
|
215
215
|
emits: /* @__PURE__ */ Se(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
|
|
216
216
|
setup(l, { expose: e, emit: n }) {
|
|
217
|
-
const o = nl(l, "modelValue"), a = l, s = n, h =
|
|
217
|
+
const o = nl(l, "modelValue"), a = l, s = n, h = E(), r = E(), m = E();
|
|
218
218
|
e({
|
|
219
219
|
instance: r,
|
|
220
220
|
lastEditorData: m
|
|
221
|
-
}),
|
|
221
|
+
}), ie(o, (i) => {
|
|
222
222
|
r.value && i !== m.value && r.value.data.set(i);
|
|
223
|
-
}),
|
|
223
|
+
}), ie(() => a.disabled, (i) => {
|
|
224
224
|
i ? r.value.enableReadOnlyMode(we) : r.value.disableReadOnlyMode(we);
|
|
225
225
|
});
|
|
226
226
|
function v() {
|
|
@@ -230,13 +230,13 @@ const we = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Ot = 300, Pt =
|
|
|
230
230
|
const [p] = i.split(".").map(Number);
|
|
231
231
|
p >= 42 || i.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function V(i) {
|
|
234
234
|
const p = ul((f) => {
|
|
235
235
|
if (a.disableTwoWayDataBinding)
|
|
236
236
|
return;
|
|
237
237
|
const b = m.value = i.data.get();
|
|
238
238
|
s("update:modelValue", b, f, i), s("input", b, f, i);
|
|
239
|
-
},
|
|
239
|
+
}, Rt, { leading: !0 });
|
|
240
240
|
i.model.document.on("change:data", p), i.editing.view.document.on("focus", (f) => {
|
|
241
241
|
s("focus", f, i);
|
|
242
242
|
}), i.editing.view.document.on("blur", (f) => {
|
|
@@ -244,17 +244,17 @@ const we = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Ot = 300, Pt =
|
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
246
|
return v(), He(() => {
|
|
247
|
-
const i =
|
|
247
|
+
const i = Ot(
|
|
248
248
|
Object.assign({}, a.config)
|
|
249
249
|
);
|
|
250
250
|
o.value && (i.initialData = o.value), a.editor.create(h.value, i).then((p) => {
|
|
251
|
-
r.value = ol(p),
|
|
251
|
+
r.value = ol(p), V(p), o.value !== i.initialData && p.data.set(o.value), a.disabled && p.enableReadOnlyMode(we), s("ready", p);
|
|
252
252
|
}).catch((p) => {
|
|
253
253
|
console.error(p);
|
|
254
254
|
});
|
|
255
255
|
}), je(() => {
|
|
256
256
|
r.value && (r.value.destroy(), r.value = void 0), s("destroy");
|
|
257
|
-
}), (i, p) => (
|
|
257
|
+
}), (i, p) => (_(), B(ue(i.tagName), {
|
|
258
258
|
ref_key: "element",
|
|
259
259
|
ref: h
|
|
260
260
|
}, null, 512));
|
|
@@ -278,7 +278,7 @@ const Mt = {
|
|
|
278
278
|
install(l) {
|
|
279
279
|
l.component("Ckeditor", Pt);
|
|
280
280
|
}
|
|
281
|
-
}, Ht = { class: "label" }, jt = /* @__PURE__ */
|
|
281
|
+
}, Ht = { class: "label" }, jt = /* @__PURE__ */ O({
|
|
282
282
|
__name: "df-label",
|
|
283
283
|
props: {
|
|
284
284
|
data: {},
|
|
@@ -287,38 +287,38 @@ const Mt = {
|
|
|
287
287
|
setup(l) {
|
|
288
288
|
return (e, n) => {
|
|
289
289
|
const o = $("v-icon"), a = $("v-img");
|
|
290
|
-
return
|
|
291
|
-
e.label.icon ? (
|
|
292
|
-
e.label.iconComponent === "v-icon" ? (
|
|
290
|
+
return _(), U("div", Ht, [
|
|
291
|
+
e.label.icon ? (_(), U(Ce, { key: 0 }, [
|
|
292
|
+
e.label.iconComponent === "v-icon" ? (_(), B(o, {
|
|
293
293
|
key: 0,
|
|
294
294
|
icon: e.label.icon,
|
|
295
295
|
size: "1.25em"
|
|
296
|
-
}, null, 8, ["icon"])) : e.label.iconComponent === "v-img" ? (
|
|
296
|
+
}, null, 8, ["icon"])) : e.label.iconComponent === "v-img" ? (_(), B(a, {
|
|
297
297
|
key: 1,
|
|
298
298
|
class: "icon",
|
|
299
299
|
src: e.label.icon
|
|
300
|
-
}, null, 8, ["src"])) : (
|
|
300
|
+
}, null, 8, ["src"])) : (_(), B(ue(e.label.iconComponent), {
|
|
301
301
|
key: 2,
|
|
302
302
|
src: e.label.icon
|
|
303
303
|
}, null, 8, ["src"]))
|
|
304
304
|
], 64)) : L("", !0),
|
|
305
|
-
|
|
305
|
+
ze(" " + re(e.data ? e.data.label : e.label.text), 1)
|
|
306
306
|
]);
|
|
307
307
|
};
|
|
308
308
|
}
|
|
309
|
-
}),
|
|
309
|
+
}), oe = (l, e) => {
|
|
310
310
|
const n = l.__vccOpts || l;
|
|
311
311
|
for (const [o, a] of e)
|
|
312
312
|
n[o] = a;
|
|
313
313
|
return n;
|
|
314
|
-
},
|
|
315
|
-
class
|
|
314
|
+
}, te = /* @__PURE__ */ oe(jt, [["__scopeId", "data-v-0034f29f"]]), Ze = Symbol("vuetifyInputsSettingsKey");
|
|
315
|
+
class zt {
|
|
316
316
|
constructor(e, n, o = "v-icon") {
|
|
317
317
|
this.text = e, this.icon = n, this.iconComponent = o;
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
const Q = { enabled: void 0 };
|
|
321
|
-
function
|
|
321
|
+
function K(l, e) {
|
|
322
322
|
const n = sl(Ze, {}), o = k({
|
|
323
323
|
get() {
|
|
324
324
|
return l.control ? l.control.value : l.modelValue;
|
|
@@ -327,14 +327,14 @@ function z(l, e) {
|
|
|
327
327
|
l.control && (l.control.value = g), e("update:modelValue", g);
|
|
328
328
|
}
|
|
329
329
|
});
|
|
330
|
-
if (l.control && !(l.control instanceof
|
|
330
|
+
if (l.control && !(l.control instanceof Re.FieldBase))
|
|
331
331
|
throw new Error("control prop is not a vue-form control instance");
|
|
332
|
-
const a =
|
|
332
|
+
const a = E(!1), s = k(() => l.control ? l.control.valid : !0), h = k(
|
|
333
333
|
() => l.control ? l.control.errors : (l.errors || []).map((g) => new vl(g))
|
|
334
334
|
), r = k(() => a.value && h.value.length > 0 ? " " : void 0), m = k(() => l.control ? l.control.enabled : l.enabled !== !1), v = k(
|
|
335
|
-
() => l.control ? l.control.visibility : l.visibility ||
|
|
336
|
-
),
|
|
337
|
-
() => ee(l.label || "") ? new
|
|
335
|
+
() => l.control ? l.control.visibility : l.visibility || Re.DisplayMode.FULL
|
|
336
|
+
), V = k(
|
|
337
|
+
() => ee(l.label || "") ? new zt(l.label || "") : l.label
|
|
338
338
|
), i = k(() => l.placeholder || ""), p = k(() => l.helpText || ""), f = k(() => l.hint || ""), b = k(() => l.cssClass || "");
|
|
339
339
|
return {
|
|
340
340
|
value: o,
|
|
@@ -342,7 +342,7 @@ function z(l, e) {
|
|
|
342
342
|
enabled: m,
|
|
343
343
|
errors: h,
|
|
344
344
|
visibility: v,
|
|
345
|
-
label:
|
|
345
|
+
label: V,
|
|
346
346
|
touched: a,
|
|
347
347
|
vuetifyBindings: k(() => {
|
|
348
348
|
var g, C;
|
|
@@ -351,14 +351,14 @@ function z(l, e) {
|
|
|
351
351
|
class: b.value,
|
|
352
352
|
density: "default",
|
|
353
353
|
variant: (C = n.defaultVariant) != null ? C : "underlined",
|
|
354
|
-
label:
|
|
354
|
+
label: V.value.text,
|
|
355
355
|
messages: r.value,
|
|
356
356
|
errorMessages: r.value,
|
|
357
357
|
// 'error-count': errors?.value.length || 0,
|
|
358
358
|
readonly: !m.value,
|
|
359
359
|
disabled: !m.value,
|
|
360
360
|
placeholder: i.value,
|
|
361
|
-
"persistent-placeholder": !
|
|
361
|
+
"persistent-placeholder": !me(i.value),
|
|
362
362
|
hint: f.value,
|
|
363
363
|
persistentHint: !0,
|
|
364
364
|
// we want persistent hint always
|
|
@@ -369,40 +369,40 @@ function z(l, e) {
|
|
|
369
369
|
})
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
|
-
const
|
|
372
|
+
const Kt = {
|
|
373
373
|
key: 0,
|
|
374
374
|
class: "custom-error-display text-error"
|
|
375
|
-
}, Gt = { key: 0 }, Wt = { key: 1 }, Xt = /* @__PURE__ */
|
|
375
|
+
}, Gt = { key: 0 }, Wt = { key: 1 }, Xt = /* @__PURE__ */ O({
|
|
376
376
|
__name: "messages-widget",
|
|
377
377
|
props: {
|
|
378
378
|
errors: {},
|
|
379
379
|
message: {}
|
|
380
380
|
},
|
|
381
381
|
setup(l) {
|
|
382
|
-
return (e, n) => e.message === " " ? (
|
|
383
|
-
(
|
|
382
|
+
return (e, n) => e.message === " " ? (_(), U("div", Kt, [
|
|
383
|
+
(_(!0), U(Ce, null, Ke(e.errors, (o, a) => {
|
|
384
384
|
var s;
|
|
385
|
-
return
|
|
385
|
+
return _(), U("div", {
|
|
386
386
|
key: a,
|
|
387
|
-
class:
|
|
387
|
+
class: pe({ "first-error": a === 0, "last-error": a === e.errors.length - 1 })
|
|
388
388
|
}, [
|
|
389
|
-
o.componentName === "template" ? (
|
|
389
|
+
o.componentName === "template" ? (_(), U("div", Gt, re(o.componentBody), 1)) : o.componentName === "vue-markdown" ? (_(), B(t(fl), {
|
|
390
390
|
key: 1,
|
|
391
391
|
source: (s = o.componentBindings) == null ? void 0 : s.source
|
|
392
|
-
}, null, 8, ["source"])) : (
|
|
392
|
+
}, null, 8, ["source"])) : (_(), B(ue(o.componentName), z({
|
|
393
393
|
key: 2,
|
|
394
394
|
ref_for: !0
|
|
395
395
|
}, o.componentBindings), {
|
|
396
396
|
default: y(() => [
|
|
397
|
-
|
|
397
|
+
ze(re(o.componentBody), 1)
|
|
398
398
|
]),
|
|
399
399
|
_: 2
|
|
400
400
|
}, 1040))
|
|
401
401
|
], 2);
|
|
402
402
|
}), 128))
|
|
403
|
-
])) : (
|
|
403
|
+
])) : (_(), U("span", Wt, re(e.message), 1));
|
|
404
404
|
}
|
|
405
|
-
}),
|
|
405
|
+
}), ne = /* @__PURE__ */ oe(Xt, [["__scopeId", "data-v-ff7a8b63"]]), qt = { class: "d-flex w-100 style-resetting" }, Yt = /* @__PURE__ */ O({
|
|
406
406
|
__name: "input-base",
|
|
407
407
|
props: {
|
|
408
408
|
control: {},
|
|
@@ -420,20 +420,20 @@ const zt = {
|
|
|
420
420
|
},
|
|
421
421
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
422
422
|
setup(l, { emit: e }) {
|
|
423
|
-
const n = l, o = e, { errors: a, label: s, value: h, touched: r, visibility: m, vuetifyBindings: v } =
|
|
423
|
+
const n = l, o = e, { errors: a, label: s, value: h, touched: r, visibility: m, vuetifyBindings: v } = K(n, o), V = k(() => !!(t(n.clearable) && t(h))), i = E(!1);
|
|
424
424
|
function p(f) {
|
|
425
425
|
i.value = f, f || (r.value = !0, o("blur"));
|
|
426
426
|
}
|
|
427
427
|
return (f, b) => {
|
|
428
428
|
const g = $("v-field"), C = $("v-input");
|
|
429
|
-
return t(m) !== t(j).SUPPRESS ? (
|
|
429
|
+
return t(m) !== t(j).SUPPRESS ? (_(), B(C, {
|
|
430
430
|
key: 0,
|
|
431
431
|
name: t(v).name,
|
|
432
432
|
hint: t(v).hint,
|
|
433
433
|
"persistent-hint": t(v).persistentHint,
|
|
434
434
|
"hide-details": t(v).hideDetails,
|
|
435
435
|
"error-messages": t(v).errorMessages,
|
|
436
|
-
class:
|
|
436
|
+
class: pe([
|
|
437
437
|
f.cssClass,
|
|
438
438
|
{
|
|
439
439
|
"d-none": t(m) === t(j).HIDDEN,
|
|
@@ -442,7 +442,7 @@ const zt = {
|
|
|
442
442
|
])
|
|
443
443
|
}, Y({
|
|
444
444
|
message: y(({ message: w }) => [
|
|
445
|
-
T(
|
|
445
|
+
T(ne, {
|
|
446
446
|
message: w,
|
|
447
447
|
errors: t(a)
|
|
448
448
|
}, null, 8, ["message", "errors"])
|
|
@@ -452,7 +452,7 @@ const zt = {
|
|
|
452
452
|
variant: t(v).variant,
|
|
453
453
|
label: t(v).label,
|
|
454
454
|
disabled: t(v).disabled,
|
|
455
|
-
clearable:
|
|
455
|
+
clearable: V.value,
|
|
456
456
|
"persistent-clear": !0,
|
|
457
457
|
dirty: !!t(h),
|
|
458
458
|
active: i.value,
|
|
@@ -462,18 +462,18 @@ const zt = {
|
|
|
462
462
|
}, Y({
|
|
463
463
|
default: y((w) => [
|
|
464
464
|
le("div", qt, [
|
|
465
|
-
|
|
465
|
+
se(f.$slots, "default", X(q(w)), void 0, !0)
|
|
466
466
|
])
|
|
467
467
|
]),
|
|
468
468
|
loader: y((w) => [
|
|
469
|
-
|
|
469
|
+
se(f.$slots, "loader", X(q(w)), void 0, !0)
|
|
470
470
|
]),
|
|
471
471
|
_: 2
|
|
472
472
|
}, [
|
|
473
473
|
t(s).icon ? {
|
|
474
474
|
name: "label",
|
|
475
475
|
fn: y((w) => [
|
|
476
|
-
T(
|
|
476
|
+
T(te, {
|
|
477
477
|
data: w,
|
|
478
478
|
label: t(s)
|
|
479
479
|
}, null, 8, ["data", "label"])
|
|
@@ -483,7 +483,7 @@ const zt = {
|
|
|
483
483
|
f.$slots["prepend-inner"] ? {
|
|
484
484
|
name: "prepend-inner",
|
|
485
485
|
fn: y((w) => [
|
|
486
|
-
|
|
486
|
+
se(f.$slots, "prepend-inner", X(q(w)), void 0, !0)
|
|
487
487
|
]),
|
|
488
488
|
key: "1"
|
|
489
489
|
} : void 0
|
|
@@ -494,21 +494,21 @@ const zt = {
|
|
|
494
494
|
f.$slots.prepend ? {
|
|
495
495
|
name: "prepend",
|
|
496
496
|
fn: y((w) => [
|
|
497
|
-
|
|
497
|
+
se(f.$slots, "prepend", X(q(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"])) : L("", !0);
|
|
502
502
|
};
|
|
503
503
|
}
|
|
504
|
-
}), Ie = /* @__PURE__ */
|
|
504
|
+
}), Ie = /* @__PURE__ */ oe(Yt, [["__scopeId", "data-v-7ba7207d"]]), ve = {
|
|
505
505
|
Yes: "Yes",
|
|
506
506
|
No: "No",
|
|
507
507
|
Close: "Close"
|
|
508
508
|
};
|
|
509
509
|
function ro(l) {
|
|
510
|
-
Object.keys(
|
|
511
|
-
|
|
510
|
+
Object.keys(ve).forEach((e) => {
|
|
511
|
+
ve[e] = l(e);
|
|
512
512
|
});
|
|
513
513
|
}
|
|
514
514
|
var P = /* @__PURE__ */ ((l) => (l[l.BUTTON = 0] = "BUTTON", l[l.TEXT = 1] = "TEXT", l))(P || {});
|
|
@@ -577,8 +577,8 @@ class he extends pl {
|
|
|
577
577
|
label: o.showLabel ? o.label : void 0,
|
|
578
578
|
icon: o.showIcon ? o.icon : void 0,
|
|
579
579
|
renderAs: o.renderAs,
|
|
580
|
-
showLabel: ee(o.label) && !
|
|
581
|
-
showIcon: ee(o.icon) && !
|
|
580
|
+
showLabel: ee(o.label) && !me(o.label) ? o.showLabel : !1,
|
|
581
|
+
showIcon: ee(o.icon) && !me(o.icon) ? o.showIcon : !1
|
|
582
582
|
};
|
|
583
583
|
});
|
|
584
584
|
}
|
|
@@ -589,24 +589,24 @@ class he extends pl {
|
|
|
589
589
|
return this.value.showLabel ? this.value.label : void 0;
|
|
590
590
|
}
|
|
591
591
|
get showLabel() {
|
|
592
|
-
return ee(this.value.label) && !
|
|
592
|
+
return ee(this.value.label) && !me(this.value.label) ? this.value.showLabel : !1;
|
|
593
593
|
}
|
|
594
594
|
get icon() {
|
|
595
595
|
return this.value.showIcon ? this.value.icon : void 0;
|
|
596
596
|
}
|
|
597
597
|
get showIcon() {
|
|
598
|
-
return ee(this.value.icon) && !
|
|
598
|
+
return ee(this.value.icon) && !me(this.value.icon) ? this.value.showIcon : !1;
|
|
599
599
|
}
|
|
600
600
|
get renderAs() {
|
|
601
601
|
return this.value.renderAs;
|
|
602
602
|
}
|
|
603
603
|
static closeAction(e) {
|
|
604
604
|
var o;
|
|
605
|
-
const n =
|
|
605
|
+
const n = R(x({}, e != null ? e : {}), {
|
|
606
606
|
// any properties in data should overwrite properties in the constant
|
|
607
607
|
value: {
|
|
608
608
|
name: "close",
|
|
609
|
-
label:
|
|
609
|
+
label: ve.Close,
|
|
610
610
|
icon: "close-outline",
|
|
611
611
|
renderAs: P.BUTTON,
|
|
612
612
|
showLabel: !0,
|
|
@@ -617,11 +617,11 @@ class he extends pl {
|
|
|
617
617
|
}
|
|
618
618
|
static yesAction(e) {
|
|
619
619
|
var o;
|
|
620
|
-
const n =
|
|
620
|
+
const n = R(x({}, e != null ? e : {}), {
|
|
621
621
|
// any properties in data should overwrite properties in the constant
|
|
622
622
|
value: {
|
|
623
623
|
name: "yes",
|
|
624
|
-
label:
|
|
624
|
+
label: ve.Yes,
|
|
625
625
|
icon: "thumbs-up-outline",
|
|
626
626
|
renderAs: P.BUTTON,
|
|
627
627
|
showLabel: !0,
|
|
@@ -632,11 +632,11 @@ class he extends pl {
|
|
|
632
632
|
}
|
|
633
633
|
static noAction(e) {
|
|
634
634
|
var o;
|
|
635
|
-
const n =
|
|
635
|
+
const n = R(x({}, e != null ? e : {}), {
|
|
636
636
|
// any properties in data should overwrite properties in the constant
|
|
637
637
|
value: {
|
|
638
638
|
name: "no",
|
|
639
|
-
label:
|
|
639
|
+
label: ve.No,
|
|
640
640
|
icon: "thumbs-down-outline",
|
|
641
641
|
renderAs: P.BUTTON,
|
|
642
642
|
showLabel: !0,
|
|
@@ -649,7 +649,7 @@ class he extends pl {
|
|
|
649
649
|
const ln = {
|
|
650
650
|
key: 1,
|
|
651
651
|
style: { width: ".5rem" }
|
|
652
|
-
}, tn = { key: 2 }, nn = /* @__PURE__ */
|
|
652
|
+
}, tn = { key: 2 }, nn = /* @__PURE__ */ O({
|
|
653
653
|
__name: "df-actions",
|
|
654
654
|
props: {
|
|
655
655
|
actions: {},
|
|
@@ -657,41 +657,40 @@ const ln = {
|
|
|
657
657
|
showAsGroup: { default: "no" }
|
|
658
658
|
},
|
|
659
659
|
setup(l) {
|
|
660
|
-
const e = l, n = Jt(), o =
|
|
660
|
+
const e = l, n = Jt(), o = k(() => t(e.actions)), a = k(() => o.value.map((s) => x({
|
|
661
661
|
action: s
|
|
662
662
|
}, t(s.getBreakpointValue(n)))));
|
|
663
663
|
return (s, h) => {
|
|
664
664
|
const r = $("v-btn");
|
|
665
|
-
return
|
|
665
|
+
return o.value.length > 0 ? (_(), U("div", {
|
|
666
666
|
key: 0,
|
|
667
|
-
class:
|
|
667
|
+
class: pe(["text-end", {
|
|
668
668
|
"button-group": s.showAsGroup === "grouped" || s.showAsGroup === "grouped-no-borders",
|
|
669
669
|
"with-border": s.showAsGroup === "grouped"
|
|
670
670
|
}])
|
|
671
671
|
}, [
|
|
672
|
-
(
|
|
672
|
+
(_(!0), U(Ce, null, Ke(a.value, (m, v) => (_(), B(r, {
|
|
673
673
|
key: v,
|
|
674
674
|
variant: m.renderAs === t(P).BUTTON ? "tonal" : "text",
|
|
675
675
|
elevation: 0,
|
|
676
|
-
class: ce(v !== -1 ? "" : "ms-3"),
|
|
677
676
|
size: s.buttonSize,
|
|
678
|
-
onClick: rl((
|
|
677
|
+
onClick: rl((V) => m.action.execute(V), ["stop"])
|
|
679
678
|
}, {
|
|
680
679
|
default: y(() => [
|
|
681
|
-
m.icon ? (
|
|
680
|
+
m.icon ? (_(), B(t(Te), {
|
|
682
681
|
key: 0,
|
|
683
682
|
class: "action-icon",
|
|
684
683
|
name: m.icon
|
|
685
684
|
}, null, 8, ["name"])) : L("", !0),
|
|
686
|
-
m.icon && m.label ? (
|
|
687
|
-
m.label ? (
|
|
685
|
+
m.icon && m.label ? (_(), U("span", ln)) : L("", !0),
|
|
686
|
+
m.label ? (_(), U("span", tn, re(m.label), 1)) : L("", !0)
|
|
688
687
|
]),
|
|
689
688
|
_: 2
|
|
690
|
-
}, 1032, ["variant", "
|
|
689
|
+
}, 1032, ["variant", "size", "onClick"]))), 128))
|
|
691
690
|
], 2)) : L("", !0);
|
|
692
691
|
};
|
|
693
692
|
}
|
|
694
|
-
}), on = /* @__PURE__ */
|
|
693
|
+
}), on = /* @__PURE__ */ oe(nn, [["__scopeId", "data-v-7f811834"]]), an = /* @__PURE__ */ O({
|
|
695
694
|
__name: "df-checkbox",
|
|
696
695
|
props: /* @__PURE__ */ Z({
|
|
697
696
|
allowNull: { type: Boolean },
|
|
@@ -706,10 +705,10 @@ const ln = {
|
|
|
706
705
|
visibility: {},
|
|
707
706
|
cssClass: {},
|
|
708
707
|
clearable: { type: Boolean }
|
|
709
|
-
},
|
|
708
|
+
}, R(x({}, Q), { allowNull: !1 })),
|
|
710
709
|
emits: ["update:modelValue", "click:clear"],
|
|
711
710
|
setup(l, { emit: e }) {
|
|
712
|
-
const n = l, o = e, { errors: a, label: s, touched: h, value: r, vuetifyBindings: m } =
|
|
711
|
+
const n = l, o = e, { errors: a, label: s, touched: h, value: r, vuetifyBindings: m } = K(n, o), v = k(() => n.allowNull && r.value == null), V = k({
|
|
713
712
|
get() {
|
|
714
713
|
return r.value;
|
|
715
714
|
},
|
|
@@ -722,9 +721,9 @@ const ln = {
|
|
|
722
721
|
}
|
|
723
722
|
return (p, f) => {
|
|
724
723
|
const b = $("v-checkbox");
|
|
725
|
-
return
|
|
726
|
-
modelValue:
|
|
727
|
-
"onUpdate:modelValue": f[0] || (f[0] = (g) =>
|
|
724
|
+
return _(), B(b, z({
|
|
725
|
+
modelValue: V.value,
|
|
726
|
+
"onUpdate:modelValue": f[0] || (f[0] = (g) => V.value = g)
|
|
728
727
|
}, t(m), {
|
|
729
728
|
density: "compact",
|
|
730
729
|
indeterminate: v.value,
|
|
@@ -734,7 +733,7 @@ const ln = {
|
|
|
734
733
|
onBlur: f[1] || (f[1] = (g) => h.value = !0)
|
|
735
734
|
}), Y({
|
|
736
735
|
message: y(({ message: g }) => [
|
|
737
|
-
T(t(
|
|
736
|
+
T(t(ne), {
|
|
738
737
|
message: g,
|
|
739
738
|
errors: t(a)
|
|
740
739
|
}, null, 8, ["message", "errors"])
|
|
@@ -744,7 +743,7 @@ const ln = {
|
|
|
744
743
|
t(s).icon ? {
|
|
745
744
|
name: "label",
|
|
746
745
|
fn: y((g) => [
|
|
747
|
-
T(t(
|
|
746
|
+
T(t(te), {
|
|
748
747
|
data: g,
|
|
749
748
|
label: t(s)
|
|
750
749
|
}, null, 8, ["data", "label"])
|
|
@@ -754,7 +753,7 @@ const ln = {
|
|
|
754
753
|
]), 1040, ["modelValue", "indeterminate"]);
|
|
755
754
|
};
|
|
756
755
|
}
|
|
757
|
-
}), sn = /* @__PURE__ */
|
|
756
|
+
}), sn = /* @__PURE__ */ O({
|
|
758
757
|
__name: "df-color",
|
|
759
758
|
props: /* @__PURE__ */ Z({
|
|
760
759
|
allowNull: { type: Boolean },
|
|
@@ -769,25 +768,25 @@ const ln = {
|
|
|
769
768
|
visibility: {},
|
|
770
769
|
cssClass: {},
|
|
771
770
|
clearable: { type: Boolean }
|
|
772
|
-
},
|
|
771
|
+
}, R(x({}, Q), { allowNull: !1 })),
|
|
773
772
|
emits: ["update:modelValue", "click:clear"],
|
|
774
773
|
setup(l, { emit: e }) {
|
|
775
|
-
const n = l, o = e, { errors: a, label: s, touched: h, value: r, vuetifyBindings: m } =
|
|
774
|
+
const n = l, o = e, { errors: a, label: s, touched: h, value: r, vuetifyBindings: m } = K(n, o), v = E(!1), V = k(() => [
|
|
776
775
|
(i) => n.control || !i && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(i) ? !0 : "Not a valid hex string."
|
|
777
776
|
]);
|
|
778
777
|
return (i, p) => {
|
|
779
778
|
const f = $("v-color-picker"), b = $("v-menu"), g = $("v-text-field");
|
|
780
|
-
return
|
|
779
|
+
return _(), B(g, z({
|
|
781
780
|
modelValue: t(r),
|
|
782
|
-
"onUpdate:modelValue": p[2] || (p[2] = (C) =>
|
|
781
|
+
"onUpdate:modelValue": p[2] || (p[2] = (C) => de(r) ? r.value = C : null)
|
|
783
782
|
}, t(m), {
|
|
784
783
|
clearable: i.allowNull,
|
|
785
784
|
type: "text",
|
|
786
|
-
rules:
|
|
785
|
+
rules: V.value,
|
|
787
786
|
onBlur: p[3] || (p[3] = (C) => h.value = !0)
|
|
788
787
|
}), Y({
|
|
789
788
|
message: y(({ message: C }) => [
|
|
790
|
-
T(t(
|
|
789
|
+
T(t(ne), {
|
|
791
790
|
message: C,
|
|
792
791
|
errors: t(a)
|
|
793
792
|
}, null, 8, ["message", "errors"])
|
|
@@ -807,7 +806,7 @@ const ln = {
|
|
|
807
806
|
default: y(() => [
|
|
808
807
|
T(f, {
|
|
809
808
|
modelValue: t(r),
|
|
810
|
-
"onUpdate:modelValue": p[0] || (p[0] = (C) =>
|
|
809
|
+
"onUpdate:modelValue": p[0] || (p[0] = (C) => de(r) ? r.value = C : null),
|
|
811
810
|
mode: "hexa"
|
|
812
811
|
}, null, 8, ["modelValue"])
|
|
813
812
|
]),
|
|
@@ -819,7 +818,7 @@ const ln = {
|
|
|
819
818
|
t(s).icon ? {
|
|
820
819
|
name: "label",
|
|
821
820
|
fn: y((C) => [
|
|
822
|
-
T(t(
|
|
821
|
+
T(t(te), {
|
|
823
822
|
data: C,
|
|
824
823
|
label: t(s)
|
|
825
824
|
}, null, 8, ["data", "label"])
|
|
@@ -829,7 +828,7 @@ const ln = {
|
|
|
829
828
|
]), 1040, ["modelValue", "clearable", "rules"]);
|
|
830
829
|
};
|
|
831
830
|
}
|
|
832
|
-
}), rn = { class: "d-flex w-100 pt-5 pl-2 pb-1" }, un = /* @__PURE__ */
|
|
831
|
+
}), rn = { class: "d-flex w-100 pt-5 pl-2 pb-1" }, un = /* @__PURE__ */ O({
|
|
833
832
|
__name: "df-datetime",
|
|
834
833
|
props: /* @__PURE__ */ Z({
|
|
835
834
|
inputType: {},
|
|
@@ -846,28 +845,28 @@ const ln = {
|
|
|
846
845
|
visibility: {},
|
|
847
846
|
cssClass: {},
|
|
848
847
|
clearable: { type: Boolean }
|
|
849
|
-
},
|
|
848
|
+
}, R(x({}, Q), {
|
|
850
849
|
inputType: "datetime",
|
|
851
850
|
displayFormatDate: "P",
|
|
852
851
|
displayFormatTime: "p"
|
|
853
852
|
})),
|
|
854
853
|
emits: ["update:modelValue", "click:clear"],
|
|
855
854
|
setup(l, { emit: e }) {
|
|
856
|
-
const n = l, o = e, { touched: a, value: s, vuetifyBindings: h } =
|
|
855
|
+
const n = l, o = e, { touched: a, value: s, vuetifyBindings: h } = K(n, o), { inputType: r, displayFormatDate: m, displayFormatTime: v } = _e(n), V = E(""), i = k({
|
|
857
856
|
get() {
|
|
858
|
-
return t(
|
|
857
|
+
return t(V) === "date";
|
|
859
858
|
},
|
|
860
859
|
set(u) {
|
|
861
|
-
|
|
860
|
+
V.value = u ? "date" : "";
|
|
862
861
|
}
|
|
863
862
|
}), p = k({
|
|
864
863
|
get() {
|
|
865
|
-
return t(
|
|
864
|
+
return t(V) === "time";
|
|
866
865
|
},
|
|
867
866
|
set(u) {
|
|
868
|
-
|
|
867
|
+
V.value = u ? "time" : "";
|
|
869
868
|
}
|
|
870
|
-
}), f = (u) => `${
|
|
869
|
+
}), f = (u) => `${ce(u, "yyyy-MM-dd")}T${ce(u, "HH:mm")}:00`, b = E(null);
|
|
871
870
|
function g(u, d) {
|
|
872
871
|
if (u == null)
|
|
873
872
|
b.value = null;
|
|
@@ -881,10 +880,10 @@ const ln = {
|
|
|
881
880
|
else {
|
|
882
881
|
b.value == null && (b.value = f(/* @__PURE__ */ new Date()));
|
|
883
882
|
const D = b.value.split(/[TZ]/g), F = u.split(/[TZ]/g);
|
|
884
|
-
D[d] = F[d], b.value = f(/* @__PURE__ */ new Date(`${D[0]}T${D[1].split(".")[0]}`)), t(r) === "date" ? s.value = D[0] : t(r) === "time" ? s.value = D[1] : s.value = t(b) +
|
|
883
|
+
D[d] = F[d], b.value = f(/* @__PURE__ */ new Date(`${D[0]}T${D[1].split(".")[0]}`)), t(r) === "date" ? s.value = D[0] : t(r) === "time" ? s.value = D[1] : s.value = t(b) + ce(/* @__PURE__ */ new Date(), "XXX");
|
|
885
884
|
}
|
|
886
885
|
}
|
|
887
|
-
|
|
886
|
+
ie(s, (u) => g(u, -1), { immediate: !0 });
|
|
888
887
|
const C = k({
|
|
889
888
|
get() {
|
|
890
889
|
const u = t(b);
|
|
@@ -906,7 +905,7 @@ const ln = {
|
|
|
906
905
|
}), A = k({
|
|
907
906
|
get() {
|
|
908
907
|
const u = t(C);
|
|
909
|
-
return u == null ? "" :
|
|
908
|
+
return u == null ? "" : ce(u, t(m));
|
|
910
909
|
},
|
|
911
910
|
set(u) {
|
|
912
911
|
try {
|
|
@@ -916,10 +915,10 @@ const ln = {
|
|
|
916
915
|
console.error(d);
|
|
917
916
|
}
|
|
918
917
|
}
|
|
919
|
-
}),
|
|
918
|
+
}), S = k({
|
|
920
919
|
get() {
|
|
921
920
|
const u = t(C);
|
|
922
|
-
return u == null ? "" :
|
|
921
|
+
return u == null ? "" : ce(u, t(v));
|
|
923
922
|
},
|
|
924
923
|
set(u) {
|
|
925
924
|
const d = u.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
@@ -931,14 +930,14 @@ const ln = {
|
|
|
931
930
|
});
|
|
932
931
|
return (u, d) => {
|
|
933
932
|
const D = $("v-date-picker"), F = $("v-confirm-edit"), G = $("v-menu"), W = $("v-text-field"), fe = $("v-time-picker");
|
|
934
|
-
return
|
|
933
|
+
return _(), B(t(Ie), z(n, {
|
|
935
934
|
clearable: "",
|
|
936
935
|
"onClick:clear": d[14] || (d[14] = (M) => s.value = null),
|
|
937
936
|
onBlur: d[15] || (d[15] = (M) => a.value = !0)
|
|
938
937
|
}), {
|
|
939
938
|
default: y((M) => [
|
|
940
939
|
le("div", rn, [
|
|
941
|
-
["date", "datetime"].includes(t(r)) ? (
|
|
940
|
+
["date", "datetime"].includes(t(r)) ? (_(), B(W, {
|
|
942
941
|
key: 0,
|
|
943
942
|
modelValue: A.value,
|
|
944
943
|
"onUpdate:modelValue": d[4] || (d[4] = (c) => A.value = c),
|
|
@@ -950,8 +949,8 @@ const ln = {
|
|
|
950
949
|
readonly: t(h).readonly,
|
|
951
950
|
disabled: t(h).disabled,
|
|
952
951
|
name: `${t(h).name}-date`,
|
|
953
|
-
onClick: d[5] || (d[5] = (c) =>
|
|
954
|
-
onKeydown: d[6] || (d[6] = Ee((c) =>
|
|
952
|
+
onClick: d[5] || (d[5] = (c) => V.value = "date"),
|
|
953
|
+
onKeydown: d[6] || (d[6] = Ee((c) => V.value = "date", ["space"])),
|
|
955
954
|
onFocus: (c) => M.focus(),
|
|
956
955
|
onBlur: (c) => M.blur()
|
|
957
956
|
}, {
|
|
@@ -966,8 +965,8 @@ const ln = {
|
|
|
966
965
|
T(F, {
|
|
967
966
|
modelValue: C.value,
|
|
968
967
|
"onUpdate:modelValue": d[0] || (d[0] = (c) => C.value = c),
|
|
969
|
-
onCancel: d[1] || (d[1] = (c) =>
|
|
970
|
-
onSave: d[2] || (d[2] = (c) =>
|
|
968
|
+
onCancel: d[1] || (d[1] = (c) => V.value = ""),
|
|
969
|
+
onSave: d[2] || (d[2] = (c) => V.value = "")
|
|
971
970
|
}, {
|
|
972
971
|
default: y(({ model: c, actions: I }) => [
|
|
973
972
|
T(D, {
|
|
@@ -979,7 +978,7 @@ const ln = {
|
|
|
979
978
|
"show-week": !0
|
|
980
979
|
}, {
|
|
981
980
|
actions: y(() => [
|
|
982
|
-
(
|
|
981
|
+
(_(), B(ue(I)))
|
|
983
982
|
]),
|
|
984
983
|
_: 2
|
|
985
984
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -992,10 +991,10 @@ const ln = {
|
|
|
992
991
|
]),
|
|
993
992
|
_: 2
|
|
994
993
|
}, 1032, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : L("", !0),
|
|
995
|
-
["time", "datetime"].includes(t(r)) ? (
|
|
994
|
+
["time", "datetime"].includes(t(r)) ? (_(), B(W, {
|
|
996
995
|
key: 1,
|
|
997
|
-
modelValue:
|
|
998
|
-
"onUpdate:modelValue": d[11] || (d[11] = (c) =>
|
|
996
|
+
modelValue: S.value,
|
|
997
|
+
"onUpdate:modelValue": d[11] || (d[11] = (c) => S.value = c),
|
|
999
998
|
style: { "flex-grow": "3" },
|
|
1000
999
|
density: "compact",
|
|
1001
1000
|
variant: "plain",
|
|
@@ -1004,8 +1003,8 @@ const ln = {
|
|
|
1004
1003
|
readonly: t(h).readonly,
|
|
1005
1004
|
disabled: t(h).disabled,
|
|
1006
1005
|
name: `${t(h).name}-time`,
|
|
1007
|
-
onClick: d[12] || (d[12] = (c) =>
|
|
1008
|
-
onKeydown: d[13] || (d[13] = Ee((c) =>
|
|
1006
|
+
onClick: d[12] || (d[12] = (c) => V.value = "time"),
|
|
1007
|
+
onKeydown: d[13] || (d[13] = Ee((c) => V.value = "time", ["space"])),
|
|
1009
1008
|
onFocus: (c) => M.focus(),
|
|
1010
1009
|
onBlur: (c) => M.blur()
|
|
1011
1010
|
}, {
|
|
@@ -1020,8 +1019,8 @@ const ln = {
|
|
|
1020
1019
|
T(F, {
|
|
1021
1020
|
modelValue: w.value,
|
|
1022
1021
|
"onUpdate:modelValue": d[7] || (d[7] = (c) => w.value = c),
|
|
1023
|
-
onCancel: d[8] || (d[8] = (c) =>
|
|
1024
|
-
onSave: d[9] || (d[9] = (c) =>
|
|
1022
|
+
onCancel: d[8] || (d[8] = (c) => V.value = ""),
|
|
1023
|
+
onSave: d[9] || (d[9] = (c) => V.value = "")
|
|
1025
1024
|
}, {
|
|
1026
1025
|
default: y(({ model: c, actions: I }) => [
|
|
1027
1026
|
T(fe, {
|
|
@@ -1031,7 +1030,7 @@ const ln = {
|
|
|
1031
1030
|
format: "24hr"
|
|
1032
1031
|
}, {
|
|
1033
1032
|
actions: y(() => [
|
|
1034
|
-
(
|
|
1033
|
+
(_(), B(ue(I)))
|
|
1035
1034
|
]),
|
|
1036
1035
|
_: 2
|
|
1037
1036
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1053,7 +1052,7 @@ const ln = {
|
|
|
1053
1052
|
}), dn = {
|
|
1054
1053
|
class: "d-flex w-100 pt-5 pl-2 pb-1",
|
|
1055
1054
|
style: { position: "relative" }
|
|
1056
|
-
}, cn = /* @__PURE__ */
|
|
1055
|
+
}, cn = /* @__PURE__ */ O({
|
|
1057
1056
|
__name: "df-file",
|
|
1058
1057
|
props: /* @__PURE__ */ Z({
|
|
1059
1058
|
comms: {},
|
|
@@ -1071,7 +1070,7 @@ const ln = {
|
|
|
1071
1070
|
}, Q),
|
|
1072
1071
|
emits: ["update:modelValue", "click:clear"],
|
|
1073
1072
|
setup(l, { emit: e }) {
|
|
1074
|
-
const n = l, o = e, { touched: a, value: s, vuetifyBindings: h } =
|
|
1073
|
+
const n = l, o = e, { touched: a, value: s, vuetifyBindings: h } = K(n, o), r = E(null), m = E(null), v = E(0), V = E(Math.round(Math.random() * 1e3)), i = E(), p = k(() => m.value && v.value < 100), f = k(() => !i.value && s.value ? n.modelValue : "");
|
|
1075
1074
|
function b() {
|
|
1076
1075
|
r.value && window.clearInterval(r.value);
|
|
1077
1076
|
}
|
|
@@ -1080,35 +1079,35 @@ const ln = {
|
|
|
1080
1079
|
s.value && n.comms.touch(s.value);
|
|
1081
1080
|
}, 60 * 1e3);
|
|
1082
1081
|
}
|
|
1083
|
-
je(() => b()),
|
|
1084
|
-
|
|
1082
|
+
je(() => b()), ie(s, (S) => {
|
|
1083
|
+
S ? g() : b();
|
|
1085
1084
|
});
|
|
1086
1085
|
function C() {
|
|
1087
1086
|
return be(this, null, function* () {
|
|
1088
|
-
s.value && (yield n.comms.delete(s.value)), s.value = null, v.value = 0,
|
|
1087
|
+
s.value && (yield n.comms.delete(s.value)), s.value = null, v.value = 0, V.value = Math.round(Math.random() * 1e3), m.value = null, i.value = null, b();
|
|
1089
1088
|
});
|
|
1090
1089
|
}
|
|
1091
|
-
function w(
|
|
1090
|
+
function w(S) {
|
|
1092
1091
|
return be(this, null, function* () {
|
|
1093
|
-
v.value = -1, m.value =
|
|
1092
|
+
v.value = -1, m.value = S;
|
|
1094
1093
|
try {
|
|
1095
1094
|
s.value = yield n.comms.upload(
|
|
1096
|
-
|
|
1095
|
+
S,
|
|
1097
1096
|
(u, d) => {
|
|
1098
1097
|
v.value = Math.round(u * 100 / d);
|
|
1099
1098
|
}
|
|
1100
1099
|
), v.value = 100, g();
|
|
1101
1100
|
} catch (u) {
|
|
1102
|
-
throw v.value = 0, m.value = null,
|
|
1101
|
+
throw v.value = 0, m.value = null, V.value = Math.round(Math.random() * 1e3), i.value = null, u;
|
|
1103
1102
|
}
|
|
1104
1103
|
});
|
|
1105
1104
|
}
|
|
1106
|
-
function A(
|
|
1107
|
-
|
|
1105
|
+
function A(S) {
|
|
1106
|
+
S && (Array.isArray(S) ? console.error("Uploading multiple files not supported right now") : w(S));
|
|
1108
1107
|
}
|
|
1109
|
-
return (
|
|
1108
|
+
return (S, u) => {
|
|
1110
1109
|
const d = $("v-icon"), D = $("v-progress-linear"), F = $("v-file-input");
|
|
1111
|
-
return
|
|
1110
|
+
return _(), B(t(Ie), z(R(x({}, n), { loading: p.value }), {
|
|
1112
1111
|
clearable: "",
|
|
1113
1112
|
"onClick:clear": C,
|
|
1114
1113
|
onBlur: u[1] || (u[1] = (G) => a.value = !0)
|
|
@@ -1117,7 +1116,7 @@ const ln = {
|
|
|
1117
1116
|
T(d, { icon: "$file" })
|
|
1118
1117
|
]),
|
|
1119
1118
|
loader: y(() => [
|
|
1120
|
-
m.value && v.value < 100 ? (
|
|
1119
|
+
m.value && v.value < 100 ? (_(), B(D, {
|
|
1121
1120
|
key: 0,
|
|
1122
1121
|
"model-value": v.value,
|
|
1123
1122
|
indeterminate: v.value === -1
|
|
@@ -1152,7 +1151,7 @@ const ln = {
|
|
|
1152
1151
|
}, 16);
|
|
1153
1152
|
};
|
|
1154
1153
|
}
|
|
1155
|
-
}), mn = { class: "container" }, vn = /* @__PURE__ */
|
|
1154
|
+
}), mn = { class: "container" }, vn = /* @__PURE__ */ O({
|
|
1156
1155
|
__name: "df-input",
|
|
1157
1156
|
props: /* @__PURE__ */ Z({
|
|
1158
1157
|
inputType: {},
|
|
@@ -1171,7 +1170,7 @@ const ln = {
|
|
|
1171
1170
|
visibility: {},
|
|
1172
1171
|
cssClass: {},
|
|
1173
1172
|
clearable: { type: Boolean }
|
|
1174
|
-
},
|
|
1173
|
+
}, R(x({}, Q), {
|
|
1175
1174
|
inputType: "text",
|
|
1176
1175
|
precision: null,
|
|
1177
1176
|
step: void 0,
|
|
@@ -1180,20 +1179,20 @@ const ln = {
|
|
|
1180
1179
|
})),
|
|
1181
1180
|
emits: ["update:modelValue", "click:clear"],
|
|
1182
1181
|
setup(l, { emit: e }) {
|
|
1183
|
-
const n = l, o = e, { errors: a, label: s, touched: h, value: r, vuetifyBindings: m } =
|
|
1182
|
+
const n = l, o = e, { errors: a, label: s, touched: h, value: r, vuetifyBindings: m } = K(n, o), { inputType: v, max: V, min: i, precision: p, step: f } = _e(n), b = k(() => v.value === "number"), g = k(() => b.value ? { min: t(i), max: t(V), precision: t(p), step: t(f) } : {});
|
|
1184
1183
|
return (C, w) => {
|
|
1185
|
-
const A = $("v-text-field"),
|
|
1186
|
-
return
|
|
1187
|
-
b.value ? (
|
|
1184
|
+
const A = $("v-text-field"), S = $("v-number-input");
|
|
1185
|
+
return _(), U("div", mn, [
|
|
1186
|
+
b.value ? (_(), B(S, z({
|
|
1188
1187
|
key: 1,
|
|
1189
1188
|
modelValue: t(r),
|
|
1190
|
-
"onUpdate:modelValue": w[2] || (w[2] = (u) =>
|
|
1189
|
+
"onUpdate:modelValue": w[2] || (w[2] = (u) => de(r) ? r.value = u : null)
|
|
1191
1190
|
}, x(x({}, t(m)), g.value), {
|
|
1192
1191
|
density: "compact",
|
|
1193
1192
|
"control-variant": "stacked"
|
|
1194
1193
|
}), Y({
|
|
1195
1194
|
message: y(({ message: u }) => [
|
|
1196
|
-
T(t(
|
|
1195
|
+
T(t(ne), {
|
|
1197
1196
|
message: u,
|
|
1198
1197
|
errors: t(a)
|
|
1199
1198
|
}, null, 8, ["message", "errors"])
|
|
@@ -1203,23 +1202,23 @@ const ln = {
|
|
|
1203
1202
|
t(s).icon ? {
|
|
1204
1203
|
name: "label",
|
|
1205
1204
|
fn: y((u) => [
|
|
1206
|
-
T(t(
|
|
1205
|
+
T(t(te), {
|
|
1207
1206
|
data: u,
|
|
1208
1207
|
label: t(s)
|
|
1209
1208
|
}, null, 8, ["data", "label"])
|
|
1210
1209
|
]),
|
|
1211
1210
|
key: "0"
|
|
1212
1211
|
} : void 0
|
|
1213
|
-
]), 1040, ["modelValue"])) : (
|
|
1212
|
+
]), 1040, ["modelValue"])) : (_(), B(A, z({
|
|
1214
1213
|
key: 0,
|
|
1215
1214
|
modelValue: t(r),
|
|
1216
|
-
"onUpdate:modelValue": w[0] || (w[0] = (u) =>
|
|
1215
|
+
"onUpdate:modelValue": w[0] || (w[0] = (u) => de(r) ? r.value = u : null)
|
|
1217
1216
|
}, t(m), {
|
|
1218
1217
|
type: t(v),
|
|
1219
1218
|
onBlur: w[1] || (w[1] = (u) => h.value = !0)
|
|
1220
1219
|
}), Y({
|
|
1221
1220
|
message: y(({ message: u }) => [
|
|
1222
|
-
T(t(
|
|
1221
|
+
T(t(ne), {
|
|
1223
1222
|
message: u,
|
|
1224
1223
|
errors: t(a)
|
|
1225
1224
|
}, null, 8, ["message", "errors"])
|
|
@@ -1229,7 +1228,7 @@ const ln = {
|
|
|
1229
1228
|
t(s).icon ? {
|
|
1230
1229
|
name: "label",
|
|
1231
1230
|
fn: y((u) => [
|
|
1232
|
-
T(t(
|
|
1231
|
+
T(t(te), {
|
|
1233
1232
|
data: u,
|
|
1234
1233
|
label: t(s)
|
|
1235
1234
|
}, null, 8, ["data", "label"])
|
|
@@ -1240,7 +1239,7 @@ const ln = {
|
|
|
1240
1239
|
]);
|
|
1241
1240
|
};
|
|
1242
1241
|
}
|
|
1243
|
-
}), pn = /* @__PURE__ */
|
|
1242
|
+
}), pn = /* @__PURE__ */ oe(vn, [["__scopeId", "data-v-a3a9a978"]]), fn = { class: "editor-container" }, bn = { class: "editor-container__editor" }, gn = { ref: "editorElement" }, hn = /* @__PURE__ */ O({
|
|
1244
1243
|
__name: "ck-editor-custom",
|
|
1245
1244
|
props: {
|
|
1246
1245
|
modelValue: { default: "" },
|
|
@@ -1252,7 +1251,7 @@ const ln = {
|
|
|
1252
1251
|
il((i) => ({
|
|
1253
1252
|
"3d4d5a06": i.minHeight
|
|
1254
1253
|
}));
|
|
1255
|
-
const o = n, a =
|
|
1254
|
+
const o = n, a = E(!1), s = at, v = {
|
|
1256
1255
|
toolbar: {
|
|
1257
1256
|
items: [
|
|
1258
1257
|
"undo",
|
|
@@ -1286,8 +1285,8 @@ const ln = {
|
|
|
1286
1285
|
plugins: [
|
|
1287
1286
|
hl,
|
|
1288
1287
|
yl,
|
|
1289
|
-
Vl,
|
|
1290
1288
|
_l,
|
|
1289
|
+
Vl,
|
|
1291
1290
|
kl,
|
|
1292
1291
|
wl,
|
|
1293
1292
|
Tl,
|
|
@@ -1304,14 +1303,14 @@ const ln = {
|
|
|
1304
1303
|
Al,
|
|
1305
1304
|
Fl,
|
|
1306
1305
|
Ll,
|
|
1307
|
-
Rl,
|
|
1308
1306
|
Ol,
|
|
1307
|
+
Rl,
|
|
1309
1308
|
Pl,
|
|
1310
1309
|
Ml,
|
|
1311
1310
|
Hl,
|
|
1312
1311
|
jl,
|
|
1313
|
-
Kl,
|
|
1314
1312
|
zl,
|
|
1313
|
+
Kl,
|
|
1315
1314
|
Gl,
|
|
1316
1315
|
Wl,
|
|
1317
1316
|
Xl,
|
|
@@ -1386,21 +1385,21 @@ const ln = {
|
|
|
1386
1385
|
He(() => {
|
|
1387
1386
|
a.value = !0;
|
|
1388
1387
|
});
|
|
1389
|
-
const
|
|
1388
|
+
const V = (i) => {
|
|
1390
1389
|
};
|
|
1391
|
-
return e({ onEditorReady:
|
|
1390
|
+
return e({ onEditorReady: V }), (i, p) => {
|
|
1392
1391
|
const f = $("ckeditor");
|
|
1393
|
-
return
|
|
1392
|
+
return _(), U("div", fn, [
|
|
1394
1393
|
le("div", bn, [
|
|
1395
1394
|
le("div", gn, [
|
|
1396
|
-
a.value ? (
|
|
1395
|
+
a.value ? (_(), B(f, {
|
|
1397
1396
|
key: 0,
|
|
1398
1397
|
"model-value": i.modelValue,
|
|
1399
1398
|
editor: t(s),
|
|
1400
1399
|
config: v,
|
|
1401
1400
|
disabled: i.disabled,
|
|
1402
1401
|
style: Be(`min-height: ${i.minHeight}`),
|
|
1403
|
-
onReady:
|
|
1402
|
+
onReady: V,
|
|
1404
1403
|
"onUpdate:modelValue": p[0] || (p[0] = (b) => o("update:modelValue", b))
|
|
1405
1404
|
}, null, 8, ["model-value", "editor", "disabled", "style"])) : L("", !0)
|
|
1406
1405
|
], 512)
|
|
@@ -1408,7 +1407,7 @@ const ln = {
|
|
|
1408
1407
|
]);
|
|
1409
1408
|
};
|
|
1410
1409
|
}
|
|
1411
|
-
}), yn = /* @__PURE__ */
|
|
1410
|
+
}), yn = /* @__PURE__ */ O({
|
|
1412
1411
|
__name: "df-rtf-editor",
|
|
1413
1412
|
props: /* @__PURE__ */ Z({
|
|
1414
1413
|
minHeight: {},
|
|
@@ -1423,17 +1422,17 @@ const ln = {
|
|
|
1423
1422
|
visibility: {},
|
|
1424
1423
|
cssClass: {},
|
|
1425
1424
|
clearable: { type: Boolean }
|
|
1426
|
-
},
|
|
1425
|
+
}, R(x({}, Q), { minHeight: void 0 })),
|
|
1427
1426
|
emits: ["update:modelValue", "click:clear"],
|
|
1428
1427
|
setup(l, { emit: e }) {
|
|
1429
|
-
const n = l, o = e, { value: a, vuetifyBindings: s } =
|
|
1430
|
-
return (h, r) => (
|
|
1428
|
+
const n = l, o = e, { value: a, vuetifyBindings: s } = K(n, o);
|
|
1429
|
+
return (h, r) => (_(), B(t(Ie), X(q(n)), {
|
|
1431
1430
|
default: y((m) => [
|
|
1432
1431
|
T(hn, {
|
|
1433
1432
|
ref: "$editor",
|
|
1434
1433
|
modelValue: t(a),
|
|
1435
|
-
"onUpdate:modelValue": r[0] || (r[0] = (v) =>
|
|
1436
|
-
class:
|
|
1434
|
+
"onUpdate:modelValue": r[0] || (r[0] = (v) => de(a) ? a.value = v : null),
|
|
1435
|
+
class: pe({ "mt-8": !!h.label }),
|
|
1437
1436
|
"min-height": h.minHeight,
|
|
1438
1437
|
disabled: t(s).disabled,
|
|
1439
1438
|
onFocusin: (v) => m.focus(),
|
|
@@ -1444,12 +1443,12 @@ const ln = {
|
|
|
1444
1443
|
}, 16));
|
|
1445
1444
|
}
|
|
1446
1445
|
});
|
|
1447
|
-
function
|
|
1446
|
+
function _n(l) {
|
|
1448
1447
|
return l.map((e) => ({ value: e.id, title: e.text, icon: e.icon }));
|
|
1449
1448
|
}
|
|
1450
1449
|
function J(l, e) {
|
|
1451
1450
|
var n;
|
|
1452
|
-
return l == null ||
|
|
1451
|
+
return l == null || Oe(l) && l.length === 0 ? null : e ? Ge(l) : Oe(l) ? (n = We(l)) != null ? n : null : l;
|
|
1453
1452
|
}
|
|
1454
1453
|
function ye(l, e) {
|
|
1455
1454
|
if (e == null) return [];
|
|
@@ -1472,10 +1471,10 @@ function ge(l, e, n, o, a) {
|
|
|
1472
1471
|
e.value = (h = r == null ? void 0 : r.id) != null ? h : null;
|
|
1473
1472
|
}
|
|
1474
1473
|
}
|
|
1475
|
-
const
|
|
1474
|
+
const Vn = {
|
|
1476
1475
|
key: 0,
|
|
1477
1476
|
class: "me-1"
|
|
1478
|
-
}, kn = /* @__PURE__ */
|
|
1477
|
+
}, kn = /* @__PURE__ */ O({
|
|
1479
1478
|
__name: "df-select",
|
|
1480
1479
|
props: /* @__PURE__ */ Z({
|
|
1481
1480
|
choices: {},
|
|
@@ -1494,7 +1493,7 @@ const _n = {
|
|
|
1494
1493
|
visibility: {},
|
|
1495
1494
|
cssClass: {},
|
|
1496
1495
|
clearable: { type: Boolean }
|
|
1497
|
-
},
|
|
1496
|
+
}, R(x({}, Q), {
|
|
1498
1497
|
choices: void 0,
|
|
1499
1498
|
multiple: !1,
|
|
1500
1499
|
allowTags: !1,
|
|
@@ -1503,7 +1502,7 @@ const _n = {
|
|
|
1503
1502
|
})),
|
|
1504
1503
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
1505
1504
|
setup(l, { emit: e }) {
|
|
1506
|
-
const n = l, { choices: o, multiple: a, allowTags: s, allowNull: h, cssClass: r, visibility: m } =
|
|
1505
|
+
const n = l, { choices: o, multiple: a, allowTags: s, allowNull: h, cssClass: r, visibility: m } = _e(n), v = e, { errors: V, label: i, touched: p, value: f, vuetifyBindings: b } = K(n, v), g = E(null), C = E(!1), w = E([]), A = k(() => t(C) ? t(w) : t(o) || []), S = E(!1), u = k(() => _n(A.value));
|
|
1507
1506
|
function d(c) {
|
|
1508
1507
|
v("update:modelValueDisplay", ye(A.value, c));
|
|
1509
1508
|
}
|
|
@@ -1513,12 +1512,12 @@ const _n = {
|
|
|
1513
1512
|
D = !1;
|
|
1514
1513
|
});
|
|
1515
1514
|
}
|
|
1516
|
-
|
|
1515
|
+
ie(g, (c) => {
|
|
1517
1516
|
b.value.readonly || Ue(() => {
|
|
1518
1517
|
const I = J(c, a.value);
|
|
1519
1518
|
d(I), F(I);
|
|
1520
1519
|
});
|
|
1521
|
-
}, { deep: !0 }),
|
|
1520
|
+
}, { deep: !0 }), ie(f, (c) => {
|
|
1522
1521
|
if (!D) {
|
|
1523
1522
|
const I = J(c, a.value);
|
|
1524
1523
|
ge(I, g, a.value, !1, A.value);
|
|
@@ -1536,12 +1535,12 @@ const _n = {
|
|
|
1536
1535
|
function fe(c, I) {
|
|
1537
1536
|
return be(this, null, function* () {
|
|
1538
1537
|
if (!(o.value || n.fetchChoices === void 0)) {
|
|
1539
|
-
|
|
1538
|
+
S.value = !0;
|
|
1540
1539
|
try {
|
|
1541
|
-
const H = ye(A.value, J(g.value, a.value)),
|
|
1542
|
-
w.value = ml([...H, ...
|
|
1540
|
+
const H = ye(A.value, J(g.value, a.value)), Ve = yield n.fetchChoices(c, I);
|
|
1541
|
+
w.value = ml([...H, ...Ve], "id"), C.value = !0;
|
|
1543
1542
|
} finally {
|
|
1544
|
-
|
|
1543
|
+
S.value = !1;
|
|
1545
1544
|
}
|
|
1546
1545
|
}
|
|
1547
1546
|
});
|
|
@@ -1553,8 +1552,8 @@ const _n = {
|
|
|
1553
1552
|
return M(), n.fetchChoices !== void 0 && fe(void 0, f.value).then(() => {
|
|
1554
1553
|
M();
|
|
1555
1554
|
}), (c, I) => {
|
|
1556
|
-
const H = $("v-chip"),
|
|
1557
|
-
return t(m) !== t(j).SUPPRESS ? (
|
|
1555
|
+
const H = $("v-chip"), Ve = $("v-list-item");
|
|
1556
|
+
return t(m) !== t(j).SUPPRESS ? (_(), B(ue(t(s) ? "v-combobox" : "v-autocomplete"), z({
|
|
1558
1557
|
key: 0,
|
|
1559
1558
|
modelValue: g.value,
|
|
1560
1559
|
"onUpdate:modelValue": I[0] || (I[0] = (N) => g.value = N),
|
|
@@ -1574,7 +1573,7 @@ const _n = {
|
|
|
1574
1573
|
"closable-chips": t(h) || t(a) && g.value.length > 1,
|
|
1575
1574
|
clearable: t(h),
|
|
1576
1575
|
multiple: t(a),
|
|
1577
|
-
loading:
|
|
1576
|
+
loading: S.value,
|
|
1578
1577
|
"hide-selected": !1,
|
|
1579
1578
|
"aria-describedby": t(b).helpText ? `${t(b).name}-help` : null,
|
|
1580
1579
|
"menu-props": { maxHeight: "400" },
|
|
@@ -1585,19 +1584,19 @@ const _n = {
|
|
|
1585
1584
|
onBlur: I[3] || (I[3] = (N) => p.value = !0)
|
|
1586
1585
|
}), Y({
|
|
1587
1586
|
chip: y(({ item: N }) => [
|
|
1588
|
-
(
|
|
1587
|
+
(_(), B(H, {
|
|
1589
1588
|
key: N.value,
|
|
1590
1589
|
label: "",
|
|
1591
1590
|
size: "small",
|
|
1592
1591
|
class: "d-flex align-middle",
|
|
1593
1592
|
variant: t(a) ? "tonal" : "text",
|
|
1594
1593
|
closable: t(a),
|
|
1595
|
-
"onClick:close": (
|
|
1594
|
+
"onClick:close": (ae) => W(N.value)
|
|
1596
1595
|
}, {
|
|
1597
1596
|
prepend: y(() => {
|
|
1598
|
-
var
|
|
1597
|
+
var ae;
|
|
1599
1598
|
return [
|
|
1600
|
-
(
|
|
1599
|
+
(ae = N.raw) != null && ae.icon ? (_(), B(t(Te), {
|
|
1601
1600
|
key: 0,
|
|
1602
1601
|
class: "me-1 action-icon d-inline-block",
|
|
1603
1602
|
name: N.raw.icon
|
|
@@ -1606,21 +1605,21 @@ const _n = {
|
|
|
1606
1605
|
}),
|
|
1607
1606
|
default: y(() => [
|
|
1608
1607
|
le("span", {
|
|
1609
|
-
class:
|
|
1610
|
-
},
|
|
1608
|
+
class: pe({ "text-body-1": !t(a) })
|
|
1609
|
+
}, re(N.title), 3)
|
|
1611
1610
|
]),
|
|
1612
1611
|
_: 2
|
|
1613
1612
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
1614
1613
|
]),
|
|
1615
|
-
item: y(({ props: N, item:
|
|
1616
|
-
T(
|
|
1614
|
+
item: y(({ props: N, item: ae }) => [
|
|
1615
|
+
T(Ve, X(q(N)), {
|
|
1617
1616
|
prepend: y(() => {
|
|
1618
1617
|
var $e;
|
|
1619
1618
|
return [
|
|
1620
|
-
($e =
|
|
1619
|
+
($e = ae.raw) != null && $e.icon ? (_(), U("span", Vn, [
|
|
1621
1620
|
T(t(Te), {
|
|
1622
1621
|
class: "action-icon d-inline-block",
|
|
1623
|
-
name:
|
|
1622
|
+
name: ae.raw.icon
|
|
1624
1623
|
}, null, 8, ["name"])
|
|
1625
1624
|
])) : L("", !0)
|
|
1626
1625
|
];
|
|
@@ -1629,9 +1628,9 @@ const _n = {
|
|
|
1629
1628
|
}, 1040)
|
|
1630
1629
|
]),
|
|
1631
1630
|
message: y(({ message: N }) => [
|
|
1632
|
-
T(t(
|
|
1631
|
+
T(t(ne), {
|
|
1633
1632
|
message: N,
|
|
1634
|
-
errors: t(
|
|
1633
|
+
errors: t(V)
|
|
1635
1634
|
}, null, 8, ["message", "errors"])
|
|
1636
1635
|
]),
|
|
1637
1636
|
_: 2
|
|
@@ -1639,7 +1638,7 @@ const _n = {
|
|
|
1639
1638
|
t(i).icon ? {
|
|
1640
1639
|
name: "label",
|
|
1641
1640
|
fn: y((N) => [
|
|
1642
|
-
T(t(
|
|
1641
|
+
T(t(te), {
|
|
1643
1642
|
data: N,
|
|
1644
1643
|
label: t(i)
|
|
1645
1644
|
}, null, 8, ["data", "label"])
|
|
@@ -1649,21 +1648,21 @@ const _n = {
|
|
|
1649
1648
|
c.$slots["append-inner"] ? {
|
|
1650
1649
|
name: "append-inner",
|
|
1651
1650
|
fn: y((N) => [
|
|
1652
|
-
|
|
1651
|
+
se(c.$slots, "append-inner", X(q(N)), void 0, !0)
|
|
1653
1652
|
]),
|
|
1654
1653
|
key: "1"
|
|
1655
1654
|
} : void 0,
|
|
1656
1655
|
c.$slots["prepend-inner"] ? {
|
|
1657
1656
|
name: "prepend-inner",
|
|
1658
1657
|
fn: y((N) => [
|
|
1659
|
-
|
|
1658
|
+
se(c.$slots, "prepend-inner", X(q(N)), void 0, !0)
|
|
1660
1659
|
]),
|
|
1661
1660
|
key: "2"
|
|
1662
1661
|
} : void 0
|
|
1663
1662
|
]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : L("", !0);
|
|
1664
1663
|
};
|
|
1665
1664
|
}
|
|
1666
|
-
}), wn = /* @__PURE__ */
|
|
1665
|
+
}), wn = /* @__PURE__ */ oe(kn, [["__scopeId", "data-v-928dac22"]]), Tn = { class: "container" }, Cn = /* @__PURE__ */ O({
|
|
1667
1666
|
__name: "df-text-area",
|
|
1668
1667
|
props: /* @__PURE__ */ Z({
|
|
1669
1668
|
rows: {},
|
|
@@ -1679,25 +1678,25 @@ const _n = {
|
|
|
1679
1678
|
visibility: {},
|
|
1680
1679
|
cssClass: {},
|
|
1681
1680
|
clearable: { type: Boolean }
|
|
1682
|
-
},
|
|
1681
|
+
}, R(x({}, Q), {
|
|
1683
1682
|
rows: void 0,
|
|
1684
1683
|
maxRows: void 0
|
|
1685
1684
|
})),
|
|
1686
1685
|
emits: ["update:modelValue", "click:clear"],
|
|
1687
1686
|
setup(l, { emit: e }) {
|
|
1688
|
-
const n = l, o = e, { errors: a, label: s, touched: h, value: r, vuetifyBindings: m } =
|
|
1687
|
+
const n = l, o = e, { errors: a, label: s, touched: h, value: r, vuetifyBindings: m } = K(n, o), { cssClass: v, visibility: V } = _e(n);
|
|
1689
1688
|
return (i, p) => {
|
|
1690
1689
|
const f = $("v-textarea");
|
|
1691
|
-
return
|
|
1692
|
-
t(
|
|
1690
|
+
return _(), U("div", Tn, [
|
|
1691
|
+
t(V) !== t(j).SUPPRESS ? (_(), B(f, z({
|
|
1693
1692
|
key: 0,
|
|
1694
1693
|
modelValue: t(r),
|
|
1695
|
-
"onUpdate:modelValue": p[0] || (p[0] = (b) =>
|
|
1694
|
+
"onUpdate:modelValue": p[0] || (p[0] = (b) => de(r) ? r.value = b : null),
|
|
1696
1695
|
class: [
|
|
1697
1696
|
t(v),
|
|
1698
1697
|
{
|
|
1699
|
-
"d-none": t(
|
|
1700
|
-
invisible: t(
|
|
1698
|
+
"d-none": t(V) === t(j).HIDDEN,
|
|
1699
|
+
invisible: t(V) === t(j).INVISIBLE
|
|
1701
1700
|
}
|
|
1702
1701
|
],
|
|
1703
1702
|
rows: i.rows,
|
|
@@ -1707,7 +1706,7 @@ const _n = {
|
|
|
1707
1706
|
onBlur: p[1] || (p[1] = (b) => h.value = !0)
|
|
1708
1707
|
}), Y({
|
|
1709
1708
|
message: y(({ message: b }) => [
|
|
1710
|
-
T(t(
|
|
1709
|
+
T(t(ne), {
|
|
1711
1710
|
message: b,
|
|
1712
1711
|
errors: t(a)
|
|
1713
1712
|
}, null, 8, ["message", "errors"])
|
|
@@ -1717,7 +1716,7 @@ const _n = {
|
|
|
1717
1716
|
t(s).icon ? {
|
|
1718
1717
|
name: "label",
|
|
1719
1718
|
fn: y((b) => [
|
|
1720
|
-
T(t(
|
|
1719
|
+
T(t(te), {
|
|
1721
1720
|
data: b,
|
|
1722
1721
|
label: t(s)
|
|
1723
1722
|
}, null, 8, ["data", "label"])
|
|
@@ -1728,7 +1727,7 @@ const _n = {
|
|
|
1728
1727
|
]);
|
|
1729
1728
|
};
|
|
1730
1729
|
}
|
|
1731
|
-
}), Bn = /* @__PURE__ */
|
|
1730
|
+
}), Bn = /* @__PURE__ */ oe(Cn, [["__scopeId", "data-v-b2f125f8"]]), In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1732
1731
|
__proto__: null,
|
|
1733
1732
|
DfActions: on,
|
|
1734
1733
|
DfCheckbox: an,
|
|
@@ -1754,8 +1753,8 @@ const _n = {
|
|
|
1754
1753
|
VFileInput: ft,
|
|
1755
1754
|
VIcon: ht,
|
|
1756
1755
|
VImg: yt,
|
|
1757
|
-
VInput:
|
|
1758
|
-
VListItem:
|
|
1756
|
+
VInput: _t,
|
|
1757
|
+
VListItem: Vt,
|
|
1759
1758
|
VMenu: kt,
|
|
1760
1759
|
VNumberInput: wt,
|
|
1761
1760
|
VProgressLinear: Tt,
|
|
@@ -1765,7 +1764,9 @@ const _n = {
|
|
|
1765
1764
|
VTextField: $t,
|
|
1766
1765
|
VTextarea: It,
|
|
1767
1766
|
VTimePicker: xt
|
|
1768
|
-
}, Symbol.toStringTag, { value: "Module" })), io = {
|
|
1767
|
+
}, Symbol.toStringTag, { value: "Module" })), io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1768
|
+
__proto__: null
|
|
1769
|
+
}, Symbol.toStringTag, { value: "Module" })), uo = {
|
|
1769
1770
|
install: (l, e) => {
|
|
1770
1771
|
var n, o;
|
|
1771
1772
|
l.use(Mt), l.provide(Ze, e != null ? e : {}), (n = e == null ? void 0 : e.registerComponents) != null && n && Object.entries(In).map(([a, s]) => l.component(a, s)), (o = e == null ? void 0 : e.registerVuetifyComponents) != null && o && Object.entries($n).map(([a, s]) => l.component(a, s));
|
|
@@ -1780,14 +1781,16 @@ export {
|
|
|
1780
1781
|
un as DfDateTime,
|
|
1781
1782
|
cn as DfFile,
|
|
1782
1783
|
pn as DfInput,
|
|
1783
|
-
|
|
1784
|
+
io as DfInputComponentProps,
|
|
1785
|
+
In as DfInputComponents,
|
|
1786
|
+
te as DfLabel,
|
|
1784
1787
|
yn as DfRtfEditor,
|
|
1785
1788
|
wn as DfSelect,
|
|
1786
1789
|
Bn as DfTextArea,
|
|
1787
|
-
|
|
1790
|
+
uo as DynamicFormsInputs,
|
|
1788
1791
|
Ie as InputBase,
|
|
1789
|
-
|
|
1790
|
-
|
|
1792
|
+
zt as Label,
|
|
1793
|
+
ne as MessagesWidget,
|
|
1791
1794
|
en as ResponsiveActionRenderOptions,
|
|
1792
1795
|
Zt as ResponsiveRenderOptions,
|
|
1793
1796
|
$n as VuetifyComponents,
|
|
@@ -1795,10 +1798,10 @@ export {
|
|
|
1795
1798
|
Pe as defaultDisplayStyle,
|
|
1796
1799
|
Qt as getBreakpointName,
|
|
1797
1800
|
Me as responsiveBreakpoints,
|
|
1798
|
-
|
|
1801
|
+
ve as translatableStrings,
|
|
1799
1802
|
ro as translateStrings,
|
|
1800
1803
|
Jt as useBreakpoint,
|
|
1801
|
-
|
|
1804
|
+
K as useInputBase,
|
|
1802
1805
|
Ze as vuetifyInputsSettingsKey
|
|
1803
1806
|
};
|
|
1804
1807
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|