@dynamicforms/vuetify-inputs 0.5.12 → 0.6.0
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.css +2 -2
- package/dist/dynamicforms-vuetify-inputs.js +878 -832
- package/dist/dynamicforms-vuetify-inputs.js.map +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs +4 -4
- package/dist/dynamicforms-vuetify-inputs.umd.cjs.map +1 -1
- package/dist/index.d.ts +14 -3
- package/package.json +2 -2
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var tt = Object.defineProperty, nt = Object.defineProperties;
|
|
2
|
+
var ot = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Se = Object.getOwnPropertySymbols;
|
|
4
|
+
var at = Object.prototype.hasOwnProperty, lt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Te = (e, t, n) => t in e ? tt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, S = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
lt.call(t, n) &&
|
|
7
|
+
at.call(t, n) && Te(e, n, t[n]);
|
|
8
|
+
if (Se)
|
|
9
|
+
for (var n of Se(t))
|
|
10
|
+
lt.call(t, n) && Te(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var $e = (e, t, n) =>
|
|
14
|
-
var
|
|
15
|
-
var r = (
|
|
12
|
+
}, M = (e, t) => nt(e, ot(t));
|
|
13
|
+
var $e = (e, t, n) => Te(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
|
+
var ye = (e, t, n) => new Promise((a, l) => {
|
|
15
|
+
var r = (i) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
p(n.next(i));
|
|
18
18
|
} catch (d) {
|
|
19
|
-
|
|
19
|
+
l(d);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, s = (i) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
p(n.throw(i));
|
|
24
24
|
} catch (d) {
|
|
25
|
-
|
|
25
|
+
l(d);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, p = (i) => i.done ? a(i.value) : Promise.resolve(i.value).then(r, s);
|
|
28
|
+
p((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
31
|
-
import { defineComponent as
|
|
32
|
-
import { debounce as pt, isString as
|
|
33
|
-
import { CachedIcon as
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import { useDisplay as
|
|
37
|
-
import { format as
|
|
38
|
-
import { AccessibilityHelp as Vt, Alignment as
|
|
30
|
+
import * as Ee from "vue";
|
|
31
|
+
import { defineComponent as O, mergeModels as Ae, useModel as rt, ref as N, watch as ue, onMounted as He, markRaw as it, onBeforeUnmount as Ke, createBlock as x, openBlock as C, resolveDynamicComponent as be, version as st, isRef as ne, resolveComponent as A, createElementBlock as W, createCommentVNode as U, createTextVNode as ut, Fragment as Xe, unref as o, toDisplayString as Pe, inject as _e, computed as y, h as we, normalizeClass as re, createSlots as G, withCtx as g, createVNode as I, renderSlot as se, normalizeProps as J, guardReactiveProps as ee, createElementVNode as oe, renderList as ct, withModifiers as dt, mergeDefaults as q, mergeProps as R, normalizeStyle as Ge, toRefs as Ce, withKeys as Ne, useCssVars as mt, nextTick as Fe } from "vue";
|
|
32
|
+
import { debounce as pt, isString as te, isEmpty as ve, isObjectLike as ft, isBoolean as Le, clone as vt, toNumber as Me, isNaN as Ue, isArray as Oe, castArray as qe, first as Ye, unionBy as ht } from "lodash-es";
|
|
33
|
+
import { CachedIcon as ge } from "vue-cached-icon";
|
|
34
|
+
import Re, { ValidationErrorRenderContent as bt, DisplayMode as K, Action as gt } from "@dynamicforms/vue-forms";
|
|
35
|
+
import yt from "vue-markdown-render";
|
|
36
|
+
import { useDisplay as wt } from "vuetify";
|
|
37
|
+
import { format as me, parse as kt } from "date-fns";
|
|
38
|
+
import { AccessibilityHelp as Vt, Alignment as jt, AutoImage as Ct, AutoLink as Tt, Autosave as _t, BalloonToolbar as Bt, BlockQuote as It, Bold as Pt, CloudServices as Dt, Essentials as xt, GeneralHtmlSupport as St, Heading as $t, HorizontalLine as Et, ImageBlock as At, ImageCaption as Nt, ImageInline as Ft, ImageInsertViaUrl as Lt, ImageResize as Mt, ImageStyle as Ut, ImageToolbar as Ot, ImageUpload as Rt, Indent as Wt, IndentBlock as zt, Italic as Ht, Link as Kt, List as Xt, Autoformat as Gt, MediaEmbed as qt, Paragraph as Yt, PasteFromMarkdownExperimental as Qt, PasteFromOffice as Zt, SelectAll as Jt, Style as en, Table as tn, TableCellProperties as nn, TableColumnResize as on, TableProperties as an, TableToolbar as ln, Undo as rn, TextTransformation as sn, Base64UploadAdapter as un, ClassicEditor as cn } from "ckeditor5";
|
|
39
39
|
import { VAutocomplete as dn } from "vuetify/components/VAutocomplete";
|
|
40
40
|
import { VBtn as mn } from "vuetify/components/VBtn";
|
|
41
41
|
import { VCheckbox as pn } from "vuetify/components/VCheckbox";
|
|
@@ -44,20 +44,20 @@ import { VCombobox as vn } from "vuetify/components/VCombobox";
|
|
|
44
44
|
import { VColorPicker as hn } from "vuetify/components/VColorPicker";
|
|
45
45
|
import { VConfirmEdit as bn } from "vuetify/components/VConfirmEdit";
|
|
46
46
|
import { VDatePicker as gn } from "vuetify/components/VDatePicker";
|
|
47
|
-
import { VField as
|
|
48
|
-
import { VFileInput as
|
|
47
|
+
import { VField as yn } from "vuetify/components/VField";
|
|
48
|
+
import { VFileInput as wn } from "vuetify/components/VFileInput";
|
|
49
49
|
import { VCol as kn, VRow as Vn } from "vuetify/components/VGrid";
|
|
50
|
-
import { VIcon as
|
|
51
|
-
import { VImg as
|
|
52
|
-
import { VInput as
|
|
53
|
-
import { VListItem as
|
|
50
|
+
import { VIcon as jn } from "vuetify/components/VIcon";
|
|
51
|
+
import { VImg as Cn } from "vuetify/components/VImg";
|
|
52
|
+
import { VInput as Tn } from "vuetify/components/VInput";
|
|
53
|
+
import { VListItem as _n } from "vuetify/components/VList";
|
|
54
54
|
import { VMenu as Bn } from "vuetify/components/VMenu";
|
|
55
55
|
import { VNumberInput as In } from "vuetify/components/VNumberInput";
|
|
56
56
|
import { VProgressLinear as Pn } from "vuetify/components/VProgressLinear";
|
|
57
57
|
import { VSelect as Dn } from "vuetify/components/VSelect";
|
|
58
58
|
import { VSwitch as xn } from "vuetify/components/VSwitch";
|
|
59
|
-
import { VTextarea as
|
|
60
|
-
import { VTextField as
|
|
59
|
+
import { VTextarea as Sn } from "vuetify/components/VTextarea";
|
|
60
|
+
import { VTextField as $n } from "vuetify/components/VTextField";
|
|
61
61
|
import { VTimePicker as En } from "vuetify/components/VTimePicker";
|
|
62
62
|
/**
|
|
63
63
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
@@ -74,10 +74,10 @@ new Array(256).fill("").map((e, t) => ("0" + t.toString(16)).slice(-2));
|
|
|
74
74
|
*/
|
|
75
75
|
function An(e, t) {
|
|
76
76
|
const n = e.extraPlugins || [];
|
|
77
|
-
return
|
|
77
|
+
return M(S({}, e), {
|
|
78
78
|
extraPlugins: [
|
|
79
79
|
...n,
|
|
80
|
-
...t.filter((
|
|
80
|
+
...t.filter((a) => !n.includes(a))
|
|
81
81
|
]
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -85,31 +85,31 @@ function An(e, t) {
|
|
|
85
85
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
86
86
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
87
87
|
*/
|
|
88
|
-
function
|
|
88
|
+
function Qe(e) {
|
|
89
89
|
return !!e && /^\d+\.\d+\.\d+/.test(e);
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
93
93
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
94
94
|
*/
|
|
95
|
-
function
|
|
95
|
+
function Ze(e) {
|
|
96
96
|
return e ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((t) => e.includes(t)) : !1;
|
|
97
97
|
}
|
|
98
98
|
function Nn(e) {
|
|
99
|
-
return
|
|
99
|
+
return Qe(e) || Ze(e);
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
102
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
103
103
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
104
104
|
*/
|
|
105
105
|
function Fn(e) {
|
|
106
|
-
if (!
|
|
106
|
+
if (!Qe(e))
|
|
107
107
|
throw new Error(`Invalid semantic version: ${e || "<blank>"}.`);
|
|
108
|
-
const [t, n,
|
|
108
|
+
const [t, n, a] = e.split(".");
|
|
109
109
|
return {
|
|
110
110
|
major: Number.parseInt(t, 10),
|
|
111
111
|
minor: Number.parseInt(n, 10),
|
|
112
|
-
patch: Number.parseInt(
|
|
112
|
+
patch: Number.parseInt(a, 10)
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
@@ -117,7 +117,7 @@ function Fn(e) {
|
|
|
117
117
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
118
118
|
*/
|
|
119
119
|
function Ln(e) {
|
|
120
|
-
if (
|
|
120
|
+
if (Ze(e))
|
|
121
121
|
return 3;
|
|
122
122
|
const { major: t } = Fn(e);
|
|
123
123
|
switch (!0) {
|
|
@@ -152,7 +152,7 @@ function Un() {
|
|
|
152
152
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
153
153
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
154
154
|
*/
|
|
155
|
-
function
|
|
155
|
+
function Je(e, t) {
|
|
156
156
|
switch (t || (t = Un() || void 0), t) {
|
|
157
157
|
case 1:
|
|
158
158
|
case 2:
|
|
@@ -168,8 +168,8 @@ function Ze(e, t) {
|
|
|
168
168
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
169
169
|
*/
|
|
170
170
|
function On(e, t) {
|
|
171
|
-
return function(
|
|
172
|
-
|
|
171
|
+
return function(a) {
|
|
172
|
+
Je(a.config.get("licenseKey")) || a.on("collectUsageData", (l, { setUsageData: r }) => {
|
|
173
173
|
r(`integration.${e}`, t);
|
|
174
174
|
});
|
|
175
175
|
};
|
|
@@ -182,7 +182,7 @@ const Rn = On(
|
|
|
182
182
|
"vue",
|
|
183
183
|
{
|
|
184
184
|
version: "7.3.0",
|
|
185
|
-
frameworkVersion:
|
|
185
|
+
frameworkVersion: st
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
/**
|
|
@@ -190,7 +190,7 @@ const Rn = On(
|
|
|
190
190
|
* For licensing, see LICENSE.md.
|
|
191
191
|
*/
|
|
192
192
|
function Wn(e) {
|
|
193
|
-
return
|
|
193
|
+
return Je(e.licenseKey) ? e : An(e, [
|
|
194
194
|
/**
|
|
195
195
|
* This part of the code is not executed in open-source implementations using a GPL key.
|
|
196
196
|
* It only runs when a specific license key is provided. If you are uncertain whether
|
|
@@ -199,10 +199,10 @@ function Wn(e) {
|
|
|
199
199
|
Rn
|
|
200
200
|
]);
|
|
201
201
|
}
|
|
202
|
-
const
|
|
202
|
+
const Be = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", zn = 300, Hn = /* @__PURE__ */ O({
|
|
203
203
|
name: "CKEditor",
|
|
204
204
|
__name: "ckeditor",
|
|
205
|
-
props: /* @__PURE__ */
|
|
205
|
+
props: /* @__PURE__ */ Ae({
|
|
206
206
|
editor: {},
|
|
207
207
|
config: { default: () => ({}) },
|
|
208
208
|
tagName: { default: "div" },
|
|
@@ -212,51 +212,51 @@ const Ce = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", zn = 300, Hn =
|
|
|
212
212
|
modelValue: { type: String, default: "" },
|
|
213
213
|
modelModifiers: {}
|
|
214
214
|
}),
|
|
215
|
-
emits: /* @__PURE__ */
|
|
215
|
+
emits: /* @__PURE__ */ Ae(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
|
|
216
216
|
setup(e, { expose: t, emit: n }) {
|
|
217
|
-
const
|
|
217
|
+
const a = rt(e, "modelValue"), l = e, r = n, s = N(), p = N(), i = N();
|
|
218
218
|
t({
|
|
219
|
-
instance:
|
|
220
|
-
lastEditorData:
|
|
221
|
-
}),
|
|
222
|
-
|
|
223
|
-
}),
|
|
224
|
-
|
|
219
|
+
instance: p,
|
|
220
|
+
lastEditorData: i
|
|
221
|
+
}), ue(a, (m) => {
|
|
222
|
+
p.value && m !== i.value && p.value.data.set(m);
|
|
223
|
+
}), ue(() => l.disabled, (m) => {
|
|
224
|
+
m ? p.value.enableReadOnlyMode(Be) : p.value.disableReadOnlyMode(Be);
|
|
225
225
|
});
|
|
226
226
|
function d() {
|
|
227
|
-
const
|
|
228
|
-
if (!
|
|
227
|
+
const m = window.CKEDITOR_VERSION;
|
|
228
|
+
if (!m)
|
|
229
229
|
return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
|
|
230
|
-
const [
|
|
231
|
-
|
|
230
|
+
const [b] = m.split(".").map(Number);
|
|
231
|
+
b >= 42 || m.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
const
|
|
235
|
-
if (
|
|
233
|
+
function v(m) {
|
|
234
|
+
const b = pt((c) => {
|
|
235
|
+
if (l.disableTwoWayDataBinding)
|
|
236
236
|
return;
|
|
237
|
-
const
|
|
238
|
-
r("update:modelValue",
|
|
237
|
+
const T = i.value = m.data.get();
|
|
238
|
+
r("update:modelValue", T, c, m), r("input", T, c, m);
|
|
239
239
|
}, zn, { leading: !0 });
|
|
240
|
-
|
|
241
|
-
r("focus",
|
|
242
|
-
}),
|
|
243
|
-
r("blur",
|
|
240
|
+
m.model.document.on("change:data", b), m.editing.view.document.on("focus", (c) => {
|
|
241
|
+
r("focus", c, m);
|
|
242
|
+
}), m.editing.view.document.on("blur", (c) => {
|
|
243
|
+
r("blur", c, m);
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
|
-
return d(),
|
|
247
|
-
const
|
|
248
|
-
Object.assign({},
|
|
246
|
+
return d(), He(() => {
|
|
247
|
+
const m = Wn(
|
|
248
|
+
Object.assign({}, l.config)
|
|
249
249
|
);
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}).catch((
|
|
253
|
-
console.error(
|
|
250
|
+
a.value && (m.initialData = a.value), l.editor.create(s.value, m).then((b) => {
|
|
251
|
+
p.value = it(b), v(b), a.value !== m.initialData && b.data.set(a.value), l.disabled && b.enableReadOnlyMode(Be), r("ready", b);
|
|
252
|
+
}).catch((b) => {
|
|
253
|
+
console.error(b);
|
|
254
254
|
});
|
|
255
|
-
}),
|
|
256
|
-
|
|
257
|
-
}), (
|
|
255
|
+
}), Ke(() => {
|
|
256
|
+
p.value && (p.value.destroy(), p.value = void 0), r("destroy");
|
|
257
|
+
}), (m, b) => (C(), x(be(m.tagName), {
|
|
258
258
|
ref_key: "element",
|
|
259
|
-
ref:
|
|
259
|
+
ref: s
|
|
260
260
|
}, null, 512));
|
|
261
261
|
}
|
|
262
262
|
});
|
|
@@ -265,7 +265,7 @@ const Ce = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", zn = 300, Hn =
|
|
|
265
265
|
* For licensing, see LICENSE.md.
|
|
266
266
|
*/
|
|
267
267
|
/* istanbul ignore if -- @preserve */
|
|
268
|
-
if (!
|
|
268
|
+
if (!Ee.version || !Ee.version.startsWith("3."))
|
|
269
269
|
throw new Error(
|
|
270
270
|
"The CKEditor plugin works only with Vue 3+. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v3.html"
|
|
271
271
|
);
|
|
@@ -573,18 +573,18 @@ function qn(e) {
|
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
const Yn = (e, t, n) => {
|
|
576
|
-
let
|
|
577
|
-
n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (
|
|
576
|
+
let a = "", l = "present";
|
|
577
|
+
n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (l = "future", a = "čez ") : (l = "past", a = "pred "));
|
|
578
578
|
const r = Gn[e];
|
|
579
579
|
if (typeof r == "string")
|
|
580
|
-
|
|
580
|
+
a += r;
|
|
581
581
|
else {
|
|
582
|
-
const
|
|
583
|
-
Xn(r) ?
|
|
582
|
+
const s = qn(t);
|
|
583
|
+
Xn(r) ? a += r[s].replace("{{count}}", String(t)) : a += r[l][s].replace("{{count}}", String(t));
|
|
584
584
|
}
|
|
585
|
-
return
|
|
585
|
+
return a;
|
|
586
586
|
};
|
|
587
|
-
function
|
|
587
|
+
function Ie(e) {
|
|
588
588
|
return (t = {}) => {
|
|
589
589
|
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
590
590
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
@@ -606,15 +606,15 @@ const Qn = {
|
|
|
606
606
|
medium: "{{date}} {{time}}",
|
|
607
607
|
short: "{{date}} {{time}}"
|
|
608
608
|
}, eo = {
|
|
609
|
-
date:
|
|
609
|
+
date: Ie({
|
|
610
610
|
formats: Qn,
|
|
611
611
|
defaultWidth: "full"
|
|
612
612
|
}),
|
|
613
|
-
time:
|
|
613
|
+
time: Ie({
|
|
614
614
|
formats: Zn,
|
|
615
615
|
defaultWidth: "full"
|
|
616
616
|
}),
|
|
617
|
-
dateTime:
|
|
617
|
+
dateTime: Ie({
|
|
618
618
|
formats: Jn,
|
|
619
619
|
defaultWidth: "full"
|
|
620
620
|
})
|
|
@@ -647,34 +647,34 @@ const Qn = {
|
|
|
647
647
|
}
|
|
648
648
|
},
|
|
649
649
|
other: "P"
|
|
650
|
-
}, no = (e, t, n,
|
|
651
|
-
const
|
|
652
|
-
return typeof
|
|
650
|
+
}, no = (e, t, n, a) => {
|
|
651
|
+
const l = to[e];
|
|
652
|
+
return typeof l == "function" ? l(t) : l;
|
|
653
653
|
};
|
|
654
|
-
function
|
|
654
|
+
function pe(e) {
|
|
655
655
|
return (t, n) => {
|
|
656
|
-
const
|
|
657
|
-
let
|
|
658
|
-
if (
|
|
659
|
-
const
|
|
660
|
-
|
|
656
|
+
const a = n != null && n.context ? String(n.context) : "standalone";
|
|
657
|
+
let l;
|
|
658
|
+
if (a === "formatting" && e.formattingValues) {
|
|
659
|
+
const s = e.defaultFormattingWidth || e.defaultWidth, p = n != null && n.width ? String(n.width) : s;
|
|
660
|
+
l = e.formattingValues[p] || e.formattingValues[s];
|
|
661
661
|
} else {
|
|
662
|
-
const
|
|
663
|
-
|
|
662
|
+
const s = e.defaultWidth, p = n != null && n.width ? String(n.width) : e.defaultWidth;
|
|
663
|
+
l = e.values[p] || e.values[s];
|
|
664
664
|
}
|
|
665
665
|
const r = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
666
|
-
return
|
|
666
|
+
return l[r];
|
|
667
667
|
};
|
|
668
668
|
}
|
|
669
669
|
const oo = {
|
|
670
670
|
narrow: ["pr. n. št.", "po n. št."],
|
|
671
671
|
abbreviated: ["pr. n. št.", "po n. št."],
|
|
672
672
|
wide: ["pred našim štetjem", "po našem štetju"]
|
|
673
|
-
},
|
|
673
|
+
}, ao = {
|
|
674
674
|
narrow: ["1", "2", "3", "4"],
|
|
675
675
|
abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."],
|
|
676
676
|
wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"]
|
|
677
|
-
},
|
|
677
|
+
}, lo = {
|
|
678
678
|
narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
|
679
679
|
abbreviated: [
|
|
680
680
|
"jan.",
|
|
@@ -781,46 +781,46 @@ const oo = {
|
|
|
781
781
|
}
|
|
782
782
|
}, uo = (e, t) => Number(e) + ".", co = {
|
|
783
783
|
ordinalNumber: uo,
|
|
784
|
-
era:
|
|
784
|
+
era: pe({
|
|
785
785
|
values: oo,
|
|
786
786
|
defaultWidth: "wide"
|
|
787
787
|
}),
|
|
788
|
-
quarter:
|
|
789
|
-
values:
|
|
788
|
+
quarter: pe({
|
|
789
|
+
values: ao,
|
|
790
790
|
defaultWidth: "wide",
|
|
791
791
|
argumentCallback: (e) => e - 1
|
|
792
792
|
}),
|
|
793
|
-
month:
|
|
794
|
-
values:
|
|
793
|
+
month: pe({
|
|
794
|
+
values: lo,
|
|
795
795
|
defaultWidth: "wide"
|
|
796
796
|
}),
|
|
797
|
-
day:
|
|
797
|
+
day: pe({
|
|
798
798
|
values: ro,
|
|
799
799
|
defaultWidth: "wide"
|
|
800
800
|
}),
|
|
801
|
-
dayPeriod:
|
|
801
|
+
dayPeriod: pe({
|
|
802
802
|
values: io,
|
|
803
803
|
defaultWidth: "wide",
|
|
804
804
|
formattingValues: so,
|
|
805
805
|
defaultFormattingWidth: "wide"
|
|
806
806
|
})
|
|
807
807
|
};
|
|
808
|
-
function
|
|
808
|
+
function fe(e) {
|
|
809
809
|
return (t, n = {}) => {
|
|
810
|
-
const
|
|
810
|
+
const a = n.width, l = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth], r = t.match(l);
|
|
811
811
|
if (!r)
|
|
812
812
|
return null;
|
|
813
|
-
const
|
|
813
|
+
const s = r[0], p = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], i = Array.isArray(p) ? po(p, (m) => m.test(s)) : (
|
|
814
814
|
// [TODO] -- I challenge you to fix the type
|
|
815
|
-
mo(
|
|
815
|
+
mo(p, (m) => m.test(s))
|
|
816
816
|
);
|
|
817
817
|
let d;
|
|
818
|
-
d = e.valueCallback ? e.valueCallback(
|
|
818
|
+
d = e.valueCallback ? e.valueCallback(i) : i, d = n.valueCallback ? (
|
|
819
819
|
// [TODO] -- I challenge you to fix the type
|
|
820
820
|
n.valueCallback(d)
|
|
821
821
|
) : d;
|
|
822
|
-
const
|
|
823
|
-
return { value: d, rest:
|
|
822
|
+
const v = t.slice(s.length);
|
|
823
|
+
return { value: d, rest: v };
|
|
824
824
|
};
|
|
825
825
|
}
|
|
826
826
|
function mo(e, t) {
|
|
@@ -835,14 +835,14 @@ function po(e, t) {
|
|
|
835
835
|
}
|
|
836
836
|
function fo(e) {
|
|
837
837
|
return (t, n = {}) => {
|
|
838
|
-
const
|
|
839
|
-
if (!
|
|
840
|
-
const
|
|
838
|
+
const a = t.match(e.matchPattern);
|
|
839
|
+
if (!a) return null;
|
|
840
|
+
const l = a[0], r = t.match(e.parsePattern);
|
|
841
841
|
if (!r) return null;
|
|
842
|
-
let
|
|
843
|
-
|
|
844
|
-
const
|
|
845
|
-
return { value:
|
|
842
|
+
let s = e.valueCallback ? e.valueCallback(r[0]) : r[0];
|
|
843
|
+
s = n.valueCallback ? n.valueCallback(s) : s;
|
|
844
|
+
const p = t.slice(l.length);
|
|
845
|
+
return { value: s, rest: p };
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
848
|
const vo = /^(\d+)\./i, ho = /\d+/i, bo = {
|
|
@@ -850,11 +850,11 @@ const vo = /^(\d+)\./i, ho = /\d+/i, bo = {
|
|
|
850
850
|
wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
|
|
851
851
|
}, go = {
|
|
852
852
|
any: [/^pr/i, /^(po|na[sš]em)/i]
|
|
853
|
-
},
|
|
853
|
+
}, yo = {
|
|
854
854
|
narrow: /^[1234]/i,
|
|
855
855
|
abbreviated: /^[1234]\.\s?[čc]et\.?/i,
|
|
856
856
|
wide: /^[1234]\. [čc]etrtletje/i
|
|
857
|
-
},
|
|
857
|
+
}, wo = {
|
|
858
858
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
859
859
|
}, ko = {
|
|
860
860
|
narrow: /^[jfmasond]/i,
|
|
@@ -903,18 +903,18 @@ const vo = /^(\d+)\./i, ho = /\d+/i, bo = {
|
|
|
903
903
|
/^n/i,
|
|
904
904
|
/^d/i
|
|
905
905
|
]
|
|
906
|
-
},
|
|
906
|
+
}, jo = {
|
|
907
907
|
narrow: /^[nptsčc]/i,
|
|
908
908
|
short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
909
909
|
abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
910
910
|
wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i
|
|
911
|
-
},
|
|
911
|
+
}, Co = {
|
|
912
912
|
narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i],
|
|
913
913
|
any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i]
|
|
914
|
-
},
|
|
914
|
+
}, To = {
|
|
915
915
|
narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
|
|
916
916
|
any: /^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i
|
|
917
|
-
},
|
|
917
|
+
}, _o = {
|
|
918
918
|
narrow: {
|
|
919
919
|
am: /^d/i,
|
|
920
920
|
pm: /^p/i,
|
|
@@ -941,35 +941,35 @@ const vo = /^(\d+)\./i, ho = /\d+/i, bo = {
|
|
|
941
941
|
parsePattern: ho,
|
|
942
942
|
valueCallback: (e) => parseInt(e, 10)
|
|
943
943
|
}),
|
|
944
|
-
era:
|
|
944
|
+
era: fe({
|
|
945
945
|
matchPatterns: bo,
|
|
946
946
|
defaultMatchWidth: "wide",
|
|
947
947
|
parsePatterns: go,
|
|
948
948
|
defaultParseWidth: "any"
|
|
949
949
|
}),
|
|
950
|
-
quarter:
|
|
951
|
-
matchPatterns:
|
|
950
|
+
quarter: fe({
|
|
951
|
+
matchPatterns: yo,
|
|
952
952
|
defaultMatchWidth: "wide",
|
|
953
|
-
parsePatterns:
|
|
953
|
+
parsePatterns: wo,
|
|
954
954
|
defaultParseWidth: "any",
|
|
955
955
|
valueCallback: (e) => e + 1
|
|
956
956
|
}),
|
|
957
|
-
month:
|
|
957
|
+
month: fe({
|
|
958
958
|
matchPatterns: ko,
|
|
959
959
|
defaultMatchWidth: "wide",
|
|
960
960
|
parsePatterns: Vo,
|
|
961
961
|
defaultParseWidth: "wide"
|
|
962
962
|
}),
|
|
963
|
-
day:
|
|
964
|
-
matchPatterns:
|
|
963
|
+
day: fe({
|
|
964
|
+
matchPatterns: jo,
|
|
965
965
|
defaultMatchWidth: "wide",
|
|
966
|
-
parsePatterns:
|
|
966
|
+
parsePatterns: Co,
|
|
967
967
|
defaultParseWidth: "any"
|
|
968
968
|
}),
|
|
969
|
-
dayPeriod:
|
|
970
|
-
matchPatterns:
|
|
969
|
+
dayPeriod: fe({
|
|
970
|
+
matchPatterns: To,
|
|
971
971
|
defaultMatchWidth: "any",
|
|
972
|
-
parsePatterns:
|
|
972
|
+
parsePatterns: _o,
|
|
973
973
|
defaultParseWidth: "any"
|
|
974
974
|
})
|
|
975
975
|
}, Io = {
|
|
@@ -984,11 +984,11 @@ const vo = /^(\d+)\./i, ho = /\d+/i, bo = {
|
|
|
984
984
|
firstWeekContainsDate: 1
|
|
985
985
|
}
|
|
986
986
|
}, Po = {
|
|
987
|
-
dateTimeLocale:
|
|
987
|
+
dateTimeLocale: N(Io),
|
|
988
988
|
setDateTimeLocale(e) {
|
|
989
|
-
|
|
989
|
+
ne(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
|
|
990
990
|
}
|
|
991
|
-
}, Do = { class: "label" },
|
|
991
|
+
}, Do = { class: "df-label" }, ae = /* @__PURE__ */ O({
|
|
992
992
|
__name: "df-label",
|
|
993
993
|
props: {
|
|
994
994
|
data: {},
|
|
@@ -996,97 +996,104 @@ const vo = /^(\d+)\./i, ho = /\d+/i, bo = {
|
|
|
996
996
|
},
|
|
997
997
|
setup(e) {
|
|
998
998
|
return (t, n) => {
|
|
999
|
-
const
|
|
1000
|
-
return
|
|
1001
|
-
t.label.icon ? (
|
|
1002
|
-
t.label.iconComponent === "v-icon" ? (
|
|
999
|
+
const a = A("v-img");
|
|
1000
|
+
return C(), W("div", Do, [
|
|
1001
|
+
t.label.icon ? (C(), W(Xe, { key: 0 }, [
|
|
1002
|
+
t.label.iconComponent === "v-icon" ? (C(), x(o(ge), {
|
|
1003
1003
|
key: 0,
|
|
1004
1004
|
name: t.label.icon,
|
|
1005
1005
|
size: "1.25em"
|
|
1006
|
-
}, null, 8, ["name"])) : t.label.iconComponent === "v-img" ? (
|
|
1006
|
+
}, null, 8, ["name"])) : t.label.iconComponent === "v-img" ? (C(), x(a, {
|
|
1007
1007
|
key: 1,
|
|
1008
1008
|
class: "icon",
|
|
1009
1009
|
src: t.label.icon
|
|
1010
|
-
}, null, 8, ["src"])) : (
|
|
1010
|
+
}, null, 8, ["src"])) : (C(), x(be(t.label.iconComponent), {
|
|
1011
1011
|
key: 2,
|
|
1012
1012
|
src: t.label.icon
|
|
1013
1013
|
}, null, 8, ["src"]))
|
|
1014
|
-
], 64)) :
|
|
1015
|
-
|
|
1014
|
+
], 64)) : U("", !0),
|
|
1015
|
+
ut(" " + Pe(t.data ? t.data.label : t.label.text), 1)
|
|
1016
1016
|
]);
|
|
1017
1017
|
};
|
|
1018
1018
|
}
|
|
1019
|
-
}),
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
n
|
|
1023
|
-
return n;
|
|
1024
|
-
}, oe = /* @__PURE__ */ be(xo, [["__scopeId", "data-v-6d63a202"]]), Je = Symbol("vuetifyInputsSettingsKey");
|
|
1025
|
-
class $o {
|
|
1026
|
-
constructor(t, n, l = "v-icon") {
|
|
1027
|
-
this.text = t, this.icon = n, this.iconComponent = l;
|
|
1019
|
+
}), et = Symbol("vuetifyInputsSettingsKey");
|
|
1020
|
+
class xo {
|
|
1021
|
+
constructor(t, n, a = "v-icon") {
|
|
1022
|
+
this.text = t, this.icon = n, this.iconComponent = a;
|
|
1028
1023
|
}
|
|
1029
1024
|
}
|
|
1030
|
-
const
|
|
1031
|
-
function
|
|
1032
|
-
const n =
|
|
1025
|
+
const Y = { enabled: void 0, clearable: !0 };
|
|
1026
|
+
function X(e, t) {
|
|
1027
|
+
const n = _e(et, {}), a = N(null), l = y({
|
|
1033
1028
|
get() {
|
|
1034
|
-
return e.control ? e.control.value : e.modelValue === void 0 ?
|
|
1029
|
+
return e.control ? e.control.value : e.modelValue === void 0 ? a.value : e.modelValue;
|
|
1035
1030
|
},
|
|
1036
|
-
set(
|
|
1037
|
-
e.control && (e.control.value =
|
|
1031
|
+
set(k) {
|
|
1032
|
+
e.control && (e.control.value = k), e.modelValue === void 0 && (a.value = k), t("update:modelValue", k);
|
|
1038
1033
|
}
|
|
1039
1034
|
});
|
|
1040
|
-
if (e.control && !(e.control instanceof
|
|
1035
|
+
if (e.control && !(e.control instanceof Re.FieldBase))
|
|
1041
1036
|
throw new Error("control prop is not a vue-form control instance");
|
|
1042
|
-
const r =
|
|
1037
|
+
const r = y({
|
|
1043
1038
|
get() {
|
|
1044
1039
|
return e.control.touched;
|
|
1045
1040
|
},
|
|
1046
|
-
set(
|
|
1047
|
-
e.control.touched =
|
|
1041
|
+
set(k) {
|
|
1042
|
+
e.control.touched = k;
|
|
1043
|
+
}
|
|
1044
|
+
}), s = e.control ? r : N(!1), p = y(() => e.control ? e.control.valid : !0), i = y(
|
|
1045
|
+
() => e.control ? e.control.errors : (e.errors || []).map((k) => new bt(k))
|
|
1046
|
+
), d = y(() => s.value && i.value.length > 0 ? " " : void 0), v = y(() => e.control ? e.control.enabled : e.enabled !== !1), m = y(
|
|
1047
|
+
() => e.control ? e.control.visibility : e.visibility || Re.DisplayMode.FULL
|
|
1048
|
+
), b = y(
|
|
1049
|
+
() => te(e.label || "") ? new xo(e.label || "") : e.label
|
|
1050
|
+
), c = y(() => e.placeholder || ""), T = y(() => e.helpText || ""), _ = y(() => e.hint || ""), w = y(() => e.cssClass || ""), h = y(
|
|
1051
|
+
() => {
|
|
1052
|
+
var k, V, L;
|
|
1053
|
+
return (L = (V = (k = e.density) != null ? k : _e("field-density")) != null ? V : n.defaultDensity) != null ? L : "default";
|
|
1048
1054
|
}
|
|
1049
|
-
|
|
1050
|
-
() =>
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
), h = k(() => e.placeholder || ""), g = k(() => e.helpText || ""), w = k(() => e.hint || ""), j = k(() => e.cssClass || "");
|
|
1055
|
+
), $ = y(() => h.value === "inline" ? "default" : h.value), F = y(
|
|
1056
|
+
() => {
|
|
1057
|
+
var k, V, L;
|
|
1058
|
+
return (L = (V = (k = e.variant) != null ? k : _e("field-variant")) != null ? V : n.defaultVariant) != null ? L : "underlined";
|
|
1059
|
+
}
|
|
1060
|
+
);
|
|
1056
1061
|
return {
|
|
1057
|
-
value:
|
|
1058
|
-
valid:
|
|
1059
|
-
enabled:
|
|
1060
|
-
errors:
|
|
1061
|
-
visibility:
|
|
1062
|
-
label:
|
|
1063
|
-
touched:
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1062
|
+
value: l,
|
|
1063
|
+
valid: p,
|
|
1064
|
+
enabled: v,
|
|
1065
|
+
errors: i,
|
|
1066
|
+
visibility: m,
|
|
1067
|
+
label: b,
|
|
1068
|
+
touched: s,
|
|
1069
|
+
density: h.value,
|
|
1070
|
+
densityClass: y(() => `df-density-${h.value}`),
|
|
1071
|
+
vuetifyBindings: y(() => {
|
|
1072
|
+
var k;
|
|
1073
|
+
return S({
|
|
1074
|
+
name: (k = e.control) == null ? void 0 : k.fieldName,
|
|
1075
|
+
class: w.value,
|
|
1076
|
+
density: $.value,
|
|
1077
|
+
variant: F.value,
|
|
1078
|
+
label: b.value.text,
|
|
1072
1079
|
messages: d.value,
|
|
1073
1080
|
errorMessages: d.value,
|
|
1074
1081
|
// 'error-count': errors?.value.length || 0,
|
|
1075
|
-
readonly: !
|
|
1076
|
-
disabled: !
|
|
1077
|
-
placeholder:
|
|
1078
|
-
"persistent-placeholder": !
|
|
1079
|
-
hint:
|
|
1082
|
+
readonly: !v.value,
|
|
1083
|
+
disabled: !v.value,
|
|
1084
|
+
placeholder: c.value,
|
|
1085
|
+
"persistent-placeholder": !ve(c.value),
|
|
1086
|
+
hint: _.value,
|
|
1080
1087
|
persistentHint: !0,
|
|
1081
1088
|
// we want persistent hint always
|
|
1082
1089
|
hideDetails: "auto",
|
|
1083
1090
|
// we want to hide the hint element when hint isn't there
|
|
1084
|
-
helpText:
|
|
1091
|
+
helpText: T.value
|
|
1085
1092
|
}, e.passthroughAttrs || {});
|
|
1086
1093
|
})
|
|
1087
1094
|
};
|
|
1088
1095
|
}
|
|
1089
|
-
const le = /* @__PURE__ */
|
|
1096
|
+
const le = /* @__PURE__ */ O({
|
|
1090
1097
|
__name: "messages-widget",
|
|
1091
1098
|
props: {
|
|
1092
1099
|
errors: {},
|
|
@@ -1096,31 +1103,31 @@ const le = /* @__PURE__ */ M({
|
|
|
1096
1103
|
setup(e) {
|
|
1097
1104
|
const t = e, n = () => {
|
|
1098
1105
|
if (t.message !== " ") return we("span", { class: t.classes }, t.message);
|
|
1099
|
-
const
|
|
1100
|
-
return t.errors.forEach((
|
|
1101
|
-
switch (
|
|
1106
|
+
const a = [];
|
|
1107
|
+
return t.errors.forEach((l) => {
|
|
1108
|
+
switch (l.componentName) {
|
|
1102
1109
|
case "template":
|
|
1103
|
-
|
|
1110
|
+
a.push(we("div", { class: t.classes }, l.componentBody));
|
|
1104
1111
|
break;
|
|
1105
1112
|
case "vue-markdown":
|
|
1106
|
-
|
|
1107
|
-
we(
|
|
1113
|
+
a.push(
|
|
1114
|
+
we(yt, {
|
|
1108
1115
|
class: [t.classes, "df-messages-widget-markdown"],
|
|
1109
|
-
source:
|
|
1116
|
+
source: l.componentBindings.source
|
|
1110
1117
|
})
|
|
1111
1118
|
);
|
|
1112
1119
|
break;
|
|
1113
1120
|
default:
|
|
1114
|
-
|
|
1115
|
-
we(
|
|
1121
|
+
a.push(
|
|
1122
|
+
we(l.componentName, M(S({ class: t.classes }, l.componentBindings), { innerHTML: l.componentBody }))
|
|
1116
1123
|
);
|
|
1117
1124
|
break;
|
|
1118
1125
|
}
|
|
1119
|
-
}),
|
|
1126
|
+
}), a;
|
|
1120
1127
|
};
|
|
1121
|
-
return (
|
|
1128
|
+
return (a, l) => (C(), x(n));
|
|
1122
1129
|
}
|
|
1123
|
-
}), So = { class: "d-flex w-100 style-resetting" },
|
|
1130
|
+
}), So = { class: "d-flex w-100 df-style-resetting" }, De = /* @__PURE__ */ O({
|
|
1124
1131
|
__name: "input-base",
|
|
1125
1132
|
props: {
|
|
1126
1133
|
control: {},
|
|
@@ -1135,168 +1142,172 @@ const le = /* @__PURE__ */ M({
|
|
|
1135
1142
|
cssClass: {},
|
|
1136
1143
|
clearable: { type: Boolean },
|
|
1137
1144
|
passthroughAttrs: {},
|
|
1145
|
+
density: {},
|
|
1146
|
+
variant: {},
|
|
1138
1147
|
loading: { type: Boolean }
|
|
1139
1148
|
},
|
|
1140
1149
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
1141
1150
|
setup(e, { emit: t }) {
|
|
1142
|
-
const n = e,
|
|
1143
|
-
function
|
|
1144
|
-
|
|
1151
|
+
const n = e, a = t, { errors: l, label: r, value: s, touched: p, visibility: i, vuetifyBindings: d } = X(n, a), v = y(() => !!(o(n.clearable) && o(s))), m = N(!1);
|
|
1152
|
+
function b(c) {
|
|
1153
|
+
m.value = c, c || (p.value = !0, a("blur"));
|
|
1145
1154
|
}
|
|
1146
|
-
return (
|
|
1147
|
-
const
|
|
1148
|
-
return o(
|
|
1155
|
+
return (c, T) => {
|
|
1156
|
+
const _ = A("v-field"), w = A("v-input");
|
|
1157
|
+
return o(i) !== o(K).SUPPRESS ? (C(), x(w, {
|
|
1149
1158
|
key: 0,
|
|
1150
1159
|
name: o(d).name,
|
|
1160
|
+
density: o(d).density,
|
|
1151
1161
|
hint: o(d).hint,
|
|
1152
1162
|
"persistent-hint": o(d).persistentHint,
|
|
1153
1163
|
"hide-details": o(d).hideDetails,
|
|
1154
1164
|
"error-messages": o(d).errorMessages,
|
|
1155
|
-
class:
|
|
1156
|
-
|
|
1165
|
+
class: re([
|
|
1166
|
+
c.cssClass,
|
|
1157
1167
|
{
|
|
1158
|
-
"d-none": o(
|
|
1159
|
-
invisible: o(
|
|
1168
|
+
"d-none": o(i) === o(K).HIDDEN,
|
|
1169
|
+
invisible: o(i) === o(K).INVISIBLE
|
|
1160
1170
|
}
|
|
1161
1171
|
])
|
|
1162
|
-
},
|
|
1163
|
-
message:
|
|
1164
|
-
|
|
1165
|
-
message:
|
|
1166
|
-
errors: o(
|
|
1172
|
+
}, G({
|
|
1173
|
+
message: g(({ message: h }) => [
|
|
1174
|
+
I(le, {
|
|
1175
|
+
message: h,
|
|
1176
|
+
errors: o(l)
|
|
1167
1177
|
}, null, 8, ["message", "errors"])
|
|
1168
1178
|
]),
|
|
1169
|
-
default:
|
|
1170
|
-
|
|
1179
|
+
default: g(() => [
|
|
1180
|
+
I(_, {
|
|
1171
1181
|
variant: o(d).variant,
|
|
1182
|
+
density: o(d).density,
|
|
1172
1183
|
label: o(d).label,
|
|
1173
1184
|
disabled: o(d).disabled,
|
|
1174
|
-
clearable:
|
|
1185
|
+
clearable: v.value,
|
|
1175
1186
|
"persistent-clear": !0,
|
|
1176
|
-
dirty: !!o(
|
|
1177
|
-
active:
|
|
1178
|
-
loading:
|
|
1179
|
-
"onClick:clear":
|
|
1180
|
-
"onUpdate:focused":
|
|
1181
|
-
},
|
|
1182
|
-
default:
|
|
1183
|
-
|
|
1184
|
-
|
|
1187
|
+
dirty: !!o(s),
|
|
1188
|
+
active: m.value,
|
|
1189
|
+
loading: c.loading,
|
|
1190
|
+
"onClick:clear": T[0] || (T[0] = (h) => a("click:clear")),
|
|
1191
|
+
"onUpdate:focused": T[1] || (T[1] = (h) => b(h))
|
|
1192
|
+
}, G({
|
|
1193
|
+
default: g((h) => [
|
|
1194
|
+
oe("div", So, [
|
|
1195
|
+
se(c.$slots, "default", J(ee(h)))
|
|
1185
1196
|
])
|
|
1186
1197
|
]),
|
|
1187
|
-
loader:
|
|
1188
|
-
|
|
1198
|
+
loader: g((h) => [
|
|
1199
|
+
se(c.$slots, "loader", J(ee(h)))
|
|
1189
1200
|
]),
|
|
1190
1201
|
_: 2
|
|
1191
1202
|
}, [
|
|
1192
1203
|
o(r).icon ? {
|
|
1193
1204
|
name: "label",
|
|
1194
|
-
fn:
|
|
1195
|
-
|
|
1196
|
-
data:
|
|
1205
|
+
fn: g((h) => [
|
|
1206
|
+
I(ae, {
|
|
1207
|
+
data: h,
|
|
1197
1208
|
label: o(r)
|
|
1198
1209
|
}, null, 8, ["data", "label"])
|
|
1199
1210
|
]),
|
|
1200
1211
|
key: "0"
|
|
1201
1212
|
} : void 0,
|
|
1202
|
-
|
|
1213
|
+
c.$slots["prepend-inner"] ? {
|
|
1203
1214
|
name: "prepend-inner",
|
|
1204
|
-
fn:
|
|
1205
|
-
|
|
1215
|
+
fn: g((h) => [
|
|
1216
|
+
se(c.$slots, "prepend-inner", J(ee(h)))
|
|
1206
1217
|
]),
|
|
1207
1218
|
key: "1"
|
|
1208
1219
|
} : void 0
|
|
1209
|
-
]), 1032, ["variant", "label", "disabled", "clearable", "dirty", "active", "loading"])
|
|
1220
|
+
]), 1032, ["variant", "density", "label", "disabled", "clearable", "dirty", "active", "loading"])
|
|
1210
1221
|
]),
|
|
1211
1222
|
_: 2
|
|
1212
1223
|
}, [
|
|
1213
|
-
|
|
1224
|
+
c.$slots.prepend ? {
|
|
1214
1225
|
name: "prepend",
|
|
1215
|
-
fn:
|
|
1216
|
-
|
|
1226
|
+
fn: g((h) => [
|
|
1227
|
+
se(c.$slots, "prepend", J(ee(h)))
|
|
1217
1228
|
]),
|
|
1218
1229
|
key: "0"
|
|
1219
1230
|
} : void 0
|
|
1220
|
-
]), 1032, ["name", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) :
|
|
1231
|
+
]), 1032, ["name", "density", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : U("", !0);
|
|
1221
1232
|
};
|
|
1222
1233
|
}
|
|
1223
|
-
}),
|
|
1234
|
+
}), he = {
|
|
1224
1235
|
Yes: "Yes",
|
|
1225
1236
|
No: "No",
|
|
1226
1237
|
Close: "Close"
|
|
1227
1238
|
};
|
|
1228
|
-
function
|
|
1229
|
-
Object.keys(
|
|
1230
|
-
|
|
1239
|
+
function Ea(e) {
|
|
1240
|
+
Object.keys(he).forEach((t) => {
|
|
1241
|
+
he[t] = e(t);
|
|
1231
1242
|
});
|
|
1232
1243
|
}
|
|
1233
|
-
var
|
|
1234
|
-
const
|
|
1244
|
+
var z = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(z || {});
|
|
1245
|
+
const We = 0;
|
|
1235
1246
|
((e) => {
|
|
1236
|
-
function t(
|
|
1237
|
-
return
|
|
1247
|
+
function t(l) {
|
|
1248
|
+
return l.toUpperCase() === "BUTTON" ? 0 : l.toUpperCase() === "TEXT" ? 1 : We;
|
|
1238
1249
|
}
|
|
1239
1250
|
e.fromString = t;
|
|
1240
|
-
function n(
|
|
1241
|
-
const r = typeof
|
|
1242
|
-
return Object.values(e).includes(r) ? r :
|
|
1251
|
+
function n(l) {
|
|
1252
|
+
const r = typeof l == "number" ? l : e.fromString(l);
|
|
1253
|
+
return Object.values(e).includes(r) ? r : We;
|
|
1243
1254
|
}
|
|
1244
1255
|
e.fromAny = n;
|
|
1245
|
-
function l
|
|
1246
|
-
const r = typeof
|
|
1256
|
+
function a(l) {
|
|
1257
|
+
const r = typeof l == "number" ? l : e.fromString(l);
|
|
1247
1258
|
return Object.values(e).includes(r);
|
|
1248
1259
|
}
|
|
1249
|
-
e.isDefined =
|
|
1250
|
-
})(
|
|
1251
|
-
Object.freeze(
|
|
1252
|
-
const
|
|
1253
|
-
class
|
|
1260
|
+
e.isDefined = a;
|
|
1261
|
+
})(z || (z = {}));
|
|
1262
|
+
Object.freeze(z);
|
|
1263
|
+
const ze = ["xs", "sm", "md", "lg", "xl"];
|
|
1264
|
+
class $o {
|
|
1254
1265
|
constructor(t) {
|
|
1255
1266
|
$e(this, "_value");
|
|
1256
|
-
this._value = this.cleanBreakpoint(t, !0), t &&
|
|
1257
|
-
const
|
|
1258
|
-
|
|
1267
|
+
this._value = this.cleanBreakpoint(t, !0), t && ze.forEach((n) => {
|
|
1268
|
+
const a = this.cleanBreakpoint(t[n]);
|
|
1269
|
+
a && (this._value[n] = a);
|
|
1259
1270
|
});
|
|
1260
1271
|
}
|
|
1261
1272
|
getOptionsForBreakpoint(t) {
|
|
1262
|
-
const n = this.cleanBreakpoint(this._value),
|
|
1263
|
-
for (const
|
|
1264
|
-
const r = this._value[
|
|
1265
|
-
for (const
|
|
1266
|
-
(r == null ? void 0 : r[
|
|
1267
|
-
if (
|
|
1273
|
+
const n = this.cleanBreakpoint(this._value), a = Object.keys(n);
|
|
1274
|
+
for (const l of ze) {
|
|
1275
|
+
const r = this._value[l];
|
|
1276
|
+
for (const s of a)
|
|
1277
|
+
(r == null ? void 0 : r[s]) != null && (n[s] = r[s]);
|
|
1278
|
+
if (l === t) break;
|
|
1268
1279
|
}
|
|
1269
1280
|
return n;
|
|
1270
1281
|
}
|
|
1271
1282
|
}
|
|
1272
|
-
function
|
|
1283
|
+
function Eo(e) {
|
|
1273
1284
|
return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
|
|
1274
1285
|
}
|
|
1275
|
-
function
|
|
1276
|
-
const e =
|
|
1277
|
-
return
|
|
1286
|
+
function Ao() {
|
|
1287
|
+
const e = wt();
|
|
1288
|
+
return y(() => Eo(e));
|
|
1278
1289
|
}
|
|
1279
|
-
class
|
|
1290
|
+
class No extends $o {
|
|
1280
1291
|
cleanBreakpoint(t, n = !1) {
|
|
1281
1292
|
if ((!t || !ft(t)) && !n) return null;
|
|
1282
|
-
const
|
|
1283
|
-
return n && (
|
|
1293
|
+
const a = {};
|
|
1294
|
+
return n && (a.renderAs = z.BUTTON, a.showLabel = !0, a.showIcon = !0), t && (t.renderAs != null && (a.renderAs = z.fromAny(t.renderAs)), te(t.label) && (a.label = t.label), te(t.icon) && (a.icon = t.icon), Le(t.showLabel) && (a.showLabel = t.showLabel), Le(t.showIcon) && (a.showIcon = t.showIcon)), Object.keys(a).length ? a : null;
|
|
1284
1295
|
}
|
|
1285
1296
|
}
|
|
1286
|
-
class
|
|
1297
|
+
class Ve extends gt {
|
|
1287
1298
|
static create(t) {
|
|
1288
1299
|
return super.create(t);
|
|
1289
1300
|
}
|
|
1290
1301
|
getBreakpointValue(t) {
|
|
1291
|
-
return
|
|
1292
|
-
const
|
|
1302
|
+
return y(() => {
|
|
1303
|
+
const a = new No(this.value).getOptionsForBreakpoint(t.value);
|
|
1293
1304
|
return {
|
|
1294
|
-
name:
|
|
1295
|
-
label:
|
|
1296
|
-
icon:
|
|
1297
|
-
renderAs:
|
|
1298
|
-
showLabel:
|
|
1299
|
-
showIcon:
|
|
1305
|
+
name: a.name,
|
|
1306
|
+
label: a.showLabel ? a.label : void 0,
|
|
1307
|
+
icon: a.showIcon ? a.icon : void 0,
|
|
1308
|
+
renderAs: a.renderAs,
|
|
1309
|
+
showLabel: te(a.label) && !ve(a.label) ? a.showLabel : !1,
|
|
1310
|
+
showIcon: te(a.icon) && !ve(a.icon) ? a.showIcon : !1
|
|
1300
1311
|
};
|
|
1301
1312
|
});
|
|
1302
1313
|
}
|
|
@@ -1307,67 +1318,67 @@ class ke extends gt {
|
|
|
1307
1318
|
return this.value.showLabel ? this.value.label : void 0;
|
|
1308
1319
|
}
|
|
1309
1320
|
get showLabel() {
|
|
1310
|
-
return
|
|
1321
|
+
return te(this.value.label) && !ve(this.value.label) ? this.value.showLabel : !1;
|
|
1311
1322
|
}
|
|
1312
1323
|
get icon() {
|
|
1313
1324
|
return this.value.showIcon ? this.value.icon : void 0;
|
|
1314
1325
|
}
|
|
1315
1326
|
get showIcon() {
|
|
1316
|
-
return
|
|
1327
|
+
return te(this.value.icon) && !ve(this.value.icon) ? this.value.showIcon : !1;
|
|
1317
1328
|
}
|
|
1318
1329
|
get renderAs() {
|
|
1319
1330
|
return this.value.renderAs;
|
|
1320
1331
|
}
|
|
1321
1332
|
static closeAction(t) {
|
|
1322
|
-
var
|
|
1323
|
-
const n =
|
|
1333
|
+
var a;
|
|
1334
|
+
const n = M(S({}, t != null ? t : {}), {
|
|
1324
1335
|
// any properties in data should overwrite properties in the constant
|
|
1325
1336
|
value: {
|
|
1326
1337
|
name: "close",
|
|
1327
|
-
label:
|
|
1338
|
+
label: he.Close,
|
|
1328
1339
|
icon: "close-outline",
|
|
1329
|
-
renderAs:
|
|
1340
|
+
renderAs: z.BUTTON,
|
|
1330
1341
|
showLabel: !0,
|
|
1331
1342
|
showIcon: !0
|
|
1332
1343
|
}
|
|
1333
1344
|
});
|
|
1334
|
-
return n.value =
|
|
1345
|
+
return n.value = S(S({}, n.value), (a = t == null ? void 0 : t.value) != null ? a : {}), Ve.create(n);
|
|
1335
1346
|
}
|
|
1336
1347
|
static yesAction(t) {
|
|
1337
|
-
var
|
|
1338
|
-
const n =
|
|
1348
|
+
var a;
|
|
1349
|
+
const n = M(S({}, t != null ? t : {}), {
|
|
1339
1350
|
// any properties in data should overwrite properties in the constant
|
|
1340
1351
|
value: {
|
|
1341
1352
|
name: "yes",
|
|
1342
|
-
label:
|
|
1353
|
+
label: he.Yes,
|
|
1343
1354
|
icon: "thumbs-up-outline",
|
|
1344
|
-
renderAs:
|
|
1355
|
+
renderAs: z.BUTTON,
|
|
1345
1356
|
showLabel: !0,
|
|
1346
1357
|
showIcon: !0
|
|
1347
1358
|
}
|
|
1348
1359
|
});
|
|
1349
|
-
return n.value =
|
|
1360
|
+
return n.value = S(S({}, n.value), (a = t == null ? void 0 : t.value) != null ? a : {}), Ve.create(n);
|
|
1350
1361
|
}
|
|
1351
1362
|
static noAction(t) {
|
|
1352
|
-
var
|
|
1353
|
-
const n =
|
|
1363
|
+
var a;
|
|
1364
|
+
const n = M(S({}, t != null ? t : {}), {
|
|
1354
1365
|
// any properties in data should overwrite properties in the constant
|
|
1355
1366
|
value: {
|
|
1356
1367
|
name: "no",
|
|
1357
|
-
label:
|
|
1368
|
+
label: he.No,
|
|
1358
1369
|
icon: "thumbs-down-outline",
|
|
1359
|
-
renderAs:
|
|
1370
|
+
renderAs: z.BUTTON,
|
|
1360
1371
|
showLabel: !0,
|
|
1361
1372
|
showIcon: !0
|
|
1362
1373
|
}
|
|
1363
1374
|
});
|
|
1364
|
-
return n.value =
|
|
1375
|
+
return n.value = S(S({}, n.value), (a = t == null ? void 0 : t.value) != null ? a : {}), Ve.create(n);
|
|
1365
1376
|
}
|
|
1366
1377
|
}
|
|
1367
|
-
const
|
|
1378
|
+
const Fo = {
|
|
1368
1379
|
key: 1,
|
|
1369
1380
|
style: { width: "0.5rem" }
|
|
1370
|
-
},
|
|
1381
|
+
}, Lo = { key: 2 }, Mo = /* @__PURE__ */ O({
|
|
1371
1382
|
__name: "df-actions",
|
|
1372
1383
|
props: {
|
|
1373
1384
|
actions: {},
|
|
@@ -1375,43 +1386,43 @@ const Mo = {
|
|
|
1375
1386
|
showAsGroup: { default: "no" }
|
|
1376
1387
|
},
|
|
1377
1388
|
setup(e) {
|
|
1378
|
-
const t = e, n =
|
|
1379
|
-
() =>
|
|
1389
|
+
const t = e, n = Ao(), a = y(() => o(t.actions)), l = y(
|
|
1390
|
+
() => a.value.map((r) => S({
|
|
1380
1391
|
action: r
|
|
1381
1392
|
}, o(r.getBreakpointValue(n))))
|
|
1382
1393
|
);
|
|
1383
|
-
return (r,
|
|
1384
|
-
const
|
|
1385
|
-
return
|
|
1394
|
+
return (r, s) => {
|
|
1395
|
+
const p = A("v-btn");
|
|
1396
|
+
return a.value.length > 0 ? (C(), W("div", {
|
|
1386
1397
|
key: 0,
|
|
1387
|
-
class:
|
|
1398
|
+
class: re(["text-end df-actions", {
|
|
1388
1399
|
"button-group": r.showAsGroup === "grouped" || r.showAsGroup === "grouped-no-borders",
|
|
1389
1400
|
"with-border": r.showAsGroup === "grouped"
|
|
1390
1401
|
}])
|
|
1391
1402
|
}, [
|
|
1392
|
-
(
|
|
1403
|
+
(C(!0), W(Xe, null, ct(l.value, (i, d) => (C(), x(p, {
|
|
1393
1404
|
key: d,
|
|
1394
|
-
variant:
|
|
1405
|
+
variant: i.renderAs === o(z).BUTTON ? "tonal" : "text",
|
|
1395
1406
|
elevation: 0,
|
|
1396
1407
|
size: r.buttonSize,
|
|
1397
|
-
onClick: dt((
|
|
1408
|
+
onClick: dt((v) => i.action.execute(v), ["stop"])
|
|
1398
1409
|
}, {
|
|
1399
|
-
default:
|
|
1400
|
-
|
|
1410
|
+
default: g(() => [
|
|
1411
|
+
i.icon ? (C(), x(o(ge), {
|
|
1401
1412
|
key: 0,
|
|
1402
|
-
name:
|
|
1403
|
-
}, null, 8, ["name"])) :
|
|
1404
|
-
|
|
1405
|
-
|
|
1413
|
+
name: i.icon
|
|
1414
|
+
}, null, 8, ["name"])) : U("", !0),
|
|
1415
|
+
i.icon && i.label ? (C(), W("span", Fo)) : U("", !0),
|
|
1416
|
+
i.label ? (C(), W("span", Lo, Pe(i.label), 1)) : U("", !0)
|
|
1406
1417
|
]),
|
|
1407
1418
|
_: 2
|
|
1408
1419
|
}, 1032, ["variant", "size", "onClick"]))), 128))
|
|
1409
|
-
], 2)) :
|
|
1420
|
+
], 2)) : U("", !0);
|
|
1410
1421
|
};
|
|
1411
1422
|
}
|
|
1412
|
-
}),
|
|
1423
|
+
}), Uo = /* @__PURE__ */ O({
|
|
1413
1424
|
__name: "df-checkbox",
|
|
1414
|
-
props: /* @__PURE__ */
|
|
1425
|
+
props: /* @__PURE__ */ q({
|
|
1415
1426
|
allowNull: { type: Boolean },
|
|
1416
1427
|
control: {},
|
|
1417
1428
|
modelValue: {},
|
|
@@ -1424,58 +1435,61 @@ const Mo = {
|
|
|
1424
1435
|
visibility: {},
|
|
1425
1436
|
cssClass: {},
|
|
1426
1437
|
clearable: { type: Boolean },
|
|
1427
|
-
passthroughAttrs: {}
|
|
1428
|
-
|
|
1438
|
+
passthroughAttrs: {},
|
|
1439
|
+
density: {},
|
|
1440
|
+
variant: {}
|
|
1441
|
+
}, M(S({}, Y), { allowNull: !1 })),
|
|
1429
1442
|
emits: ["update:modelValue", "click:clear"],
|
|
1430
1443
|
setup(e, { emit: t }) {
|
|
1431
|
-
const n = e,
|
|
1444
|
+
const n = e, a = t, { densityClass: l, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, a), v = y(() => n.allowNull && i.value == null), m = y({
|
|
1432
1445
|
get() {
|
|
1433
1446
|
return i.value;
|
|
1434
1447
|
},
|
|
1435
1448
|
set() {
|
|
1436
1449
|
}
|
|
1437
1450
|
});
|
|
1438
|
-
function
|
|
1439
|
-
const
|
|
1440
|
-
|
|
1451
|
+
function b() {
|
|
1452
|
+
const c = vt(i.value);
|
|
1453
|
+
c === !0 ? i.value = n.allowNull ? null : !1 : i.value = c === !1;
|
|
1441
1454
|
}
|
|
1442
|
-
return (
|
|
1443
|
-
const
|
|
1444
|
-
return
|
|
1445
|
-
modelValue:
|
|
1446
|
-
"onUpdate:modelValue":
|
|
1447
|
-
}, o(
|
|
1455
|
+
return (c, T) => {
|
|
1456
|
+
const _ = A("v-checkbox");
|
|
1457
|
+
return C(), x(_, R({
|
|
1458
|
+
modelValue: m.value,
|
|
1459
|
+
"onUpdate:modelValue": T[0] || (T[0] = (w) => m.value = w)
|
|
1460
|
+
}, o(d), {
|
|
1448
1461
|
density: "compact",
|
|
1449
|
-
|
|
1462
|
+
class: o(l),
|
|
1463
|
+
indeterminate: v.value,
|
|
1450
1464
|
"false-value": !1,
|
|
1451
1465
|
"true-value": !0,
|
|
1452
|
-
onChange:
|
|
1453
|
-
onBlur:
|
|
1454
|
-
}),
|
|
1455
|
-
message:
|
|
1456
|
-
|
|
1466
|
+
onChange: b,
|
|
1467
|
+
onBlur: T[1] || (T[1] = (w) => p.value = !0)
|
|
1468
|
+
}), G({
|
|
1469
|
+
message: g(({ message: w }) => [
|
|
1470
|
+
I(o(le), {
|
|
1457
1471
|
message: w,
|
|
1458
|
-
errors: o(
|
|
1472
|
+
errors: o(r)
|
|
1459
1473
|
}, null, 8, ["message", "errors"])
|
|
1460
1474
|
]),
|
|
1461
1475
|
_: 2
|
|
1462
1476
|
}, [
|
|
1463
|
-
o(
|
|
1477
|
+
o(s).icon ? {
|
|
1464
1478
|
name: "label",
|
|
1465
|
-
fn:
|
|
1466
|
-
|
|
1479
|
+
fn: g((w) => [
|
|
1480
|
+
I(o(ae), {
|
|
1467
1481
|
data: w,
|
|
1468
|
-
label: o(
|
|
1482
|
+
label: o(s)
|
|
1469
1483
|
}, null, 8, ["data", "label"])
|
|
1470
1484
|
]),
|
|
1471
1485
|
key: "0"
|
|
1472
1486
|
} : void 0
|
|
1473
|
-
]), 1040, ["modelValue", "indeterminate"]);
|
|
1487
|
+
]), 1040, ["modelValue", "class", "indeterminate"]);
|
|
1474
1488
|
};
|
|
1475
1489
|
}
|
|
1476
|
-
}),
|
|
1490
|
+
}), Oo = /* @__PURE__ */ O({
|
|
1477
1491
|
__name: "df-color",
|
|
1478
|
-
props: /* @__PURE__ */
|
|
1492
|
+
props: /* @__PURE__ */ q({
|
|
1479
1493
|
allowNull: { type: Boolean },
|
|
1480
1494
|
control: {},
|
|
1481
1495
|
modelValue: {},
|
|
@@ -1488,46 +1502,49 @@ const Mo = {
|
|
|
1488
1502
|
visibility: {},
|
|
1489
1503
|
cssClass: {},
|
|
1490
1504
|
clearable: { type: Boolean },
|
|
1491
|
-
passthroughAttrs: {}
|
|
1492
|
-
|
|
1505
|
+
passthroughAttrs: {},
|
|
1506
|
+
density: {},
|
|
1507
|
+
variant: {}
|
|
1508
|
+
}, M(S({}, Y), { allowNull: !1 })),
|
|
1493
1509
|
emits: ["update:modelValue", "click:clear"],
|
|
1494
1510
|
setup(e, { emit: t }) {
|
|
1495
|
-
const n = e,
|
|
1496
|
-
(
|
|
1511
|
+
const n = e, a = t, { densityClass: l, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, a), v = N(!1), m = y(() => [
|
|
1512
|
+
(b) => n.control || !b && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(b) ? !0 : "Not a valid hex string."
|
|
1497
1513
|
]);
|
|
1498
|
-
return (
|
|
1499
|
-
const
|
|
1500
|
-
return
|
|
1514
|
+
return (b, c) => {
|
|
1515
|
+
const T = A("v-color-picker"), _ = A("v-menu"), w = A("v-text-field");
|
|
1516
|
+
return C(), x(w, R({
|
|
1501
1517
|
modelValue: o(i),
|
|
1502
|
-
"onUpdate:modelValue":
|
|
1503
|
-
}, o(
|
|
1504
|
-
|
|
1518
|
+
"onUpdate:modelValue": c[2] || (c[2] = (h) => ne(i) ? i.value = h : null)
|
|
1519
|
+
}, o(d), {
|
|
1520
|
+
class: o(l),
|
|
1521
|
+
clearable: b.allowNull,
|
|
1505
1522
|
type: "text",
|
|
1506
|
-
rules:
|
|
1507
|
-
onBlur:
|
|
1508
|
-
}),
|
|
1509
|
-
message:
|
|
1510
|
-
|
|
1511
|
-
message:
|
|
1512
|
-
errors: o(
|
|
1523
|
+
rules: m.value,
|
|
1524
|
+
onBlur: c[3] || (c[3] = (h) => p.value = !0)
|
|
1525
|
+
}), G({
|
|
1526
|
+
message: g(({ message: h }) => [
|
|
1527
|
+
I(o(le), {
|
|
1528
|
+
message: h,
|
|
1529
|
+
errors: o(r)
|
|
1513
1530
|
}, null, 8, ["message", "errors"])
|
|
1514
1531
|
]),
|
|
1515
|
-
"prepend-inner":
|
|
1516
|
-
|
|
1517
|
-
style:
|
|
1532
|
+
"prepend-inner": g(() => [
|
|
1533
|
+
oe("div", {
|
|
1534
|
+
style: Ge([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: o(i) }])
|
|
1518
1535
|
}, null, 4)
|
|
1519
1536
|
]),
|
|
1520
|
-
default:
|
|
1521
|
-
|
|
1522
|
-
modelValue:
|
|
1523
|
-
"onUpdate:modelValue":
|
|
1537
|
+
default: g(() => [
|
|
1538
|
+
I(_, {
|
|
1539
|
+
modelValue: v.value,
|
|
1540
|
+
"onUpdate:modelValue": c[1] || (c[1] = (h) => v.value = h),
|
|
1524
1541
|
"close-on-content-click": !1,
|
|
1525
1542
|
activator: "parent"
|
|
1526
1543
|
}, {
|
|
1527
|
-
default:
|
|
1528
|
-
|
|
1544
|
+
default: g(() => [
|
|
1545
|
+
I(T, {
|
|
1529
1546
|
modelValue: o(i),
|
|
1530
|
-
"onUpdate:modelValue":
|
|
1547
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => ne(i) ? i.value = h : null),
|
|
1531
1548
|
mode: "hexa"
|
|
1532
1549
|
}, null, 8, ["modelValue"])
|
|
1533
1550
|
]),
|
|
@@ -1536,22 +1553,22 @@ const Mo = {
|
|
|
1536
1553
|
]),
|
|
1537
1554
|
_: 2
|
|
1538
1555
|
}, [
|
|
1539
|
-
o(
|
|
1556
|
+
o(s).icon ? {
|
|
1540
1557
|
name: "label",
|
|
1541
|
-
fn:
|
|
1542
|
-
|
|
1543
|
-
data:
|
|
1544
|
-
label: o(
|
|
1558
|
+
fn: g((h) => [
|
|
1559
|
+
I(o(ae), {
|
|
1560
|
+
data: h,
|
|
1561
|
+
label: o(s)
|
|
1545
1562
|
}, null, 8, ["data", "label"])
|
|
1546
1563
|
]),
|
|
1547
1564
|
key: "0"
|
|
1548
1565
|
} : void 0
|
|
1549
|
-
]), 1040, ["modelValue", "clearable", "rules"]);
|
|
1566
|
+
]), 1040, ["modelValue", "class", "clearable", "rules"]);
|
|
1550
1567
|
};
|
|
1551
1568
|
}
|
|
1552
|
-
}),
|
|
1569
|
+
}), Ro = /* @__PURE__ */ O({
|
|
1553
1570
|
__name: "df-datetime",
|
|
1554
|
-
props: /* @__PURE__ */
|
|
1571
|
+
props: /* @__PURE__ */ q({
|
|
1555
1572
|
inputType: {},
|
|
1556
1573
|
displayFormatDate: {},
|
|
1557
1574
|
displayFormatTime: {},
|
|
@@ -1567,148 +1584,153 @@ const Mo = {
|
|
|
1567
1584
|
visibility: {},
|
|
1568
1585
|
cssClass: {},
|
|
1569
1586
|
clearable: { type: Boolean },
|
|
1570
|
-
passthroughAttrs: {}
|
|
1571
|
-
|
|
1587
|
+
passthroughAttrs: {},
|
|
1588
|
+
density: {},
|
|
1589
|
+
variant: {}
|
|
1590
|
+
}, M(S({}, Y), {
|
|
1572
1591
|
inputType: "datetime",
|
|
1573
1592
|
displayFormatDate: "P",
|
|
1574
1593
|
displayFormatTime: "p"
|
|
1575
1594
|
})),
|
|
1576
1595
|
emits: ["update:modelValue", "click:clear"],
|
|
1577
1596
|
setup(e, { emit: t }) {
|
|
1578
|
-
const n = e,
|
|
1597
|
+
const n = e, a = t, l = y(() => {
|
|
1579
1598
|
var f;
|
|
1580
1599
|
return (f = n.locale) != null ? f : o(Po.dateTimeLocale);
|
|
1581
|
-
}), r =
|
|
1600
|
+
}), r = y(() => {
|
|
1582
1601
|
var f, u;
|
|
1583
|
-
return (u = (f =
|
|
1584
|
-
}), { touched:
|
|
1602
|
+
return (u = (f = l.value.options) == null ? void 0 : f.weekStartsOn) != null ? u : 1;
|
|
1603
|
+
}), { densityClass: s, touched: p, value: i, vuetifyBindings: d } = X(n, a), { inputType: v, displayFormatDate: m, displayFormatTime: b } = Ce(n), c = N(""), T = y({
|
|
1585
1604
|
get() {
|
|
1586
|
-
return o(
|
|
1605
|
+
return o(c) === "date";
|
|
1587
1606
|
},
|
|
1588
1607
|
set(f) {
|
|
1589
|
-
|
|
1608
|
+
c.value = f ? "date" : "";
|
|
1590
1609
|
}
|
|
1591
|
-
}),
|
|
1610
|
+
}), _ = y({
|
|
1592
1611
|
get() {
|
|
1593
|
-
return o(
|
|
1612
|
+
return o(c) === "time";
|
|
1594
1613
|
},
|
|
1595
1614
|
set(f) {
|
|
1596
|
-
|
|
1615
|
+
c.value = f ? "time" : "";
|
|
1597
1616
|
}
|
|
1598
|
-
}), w = (f) => `${
|
|
1599
|
-
function
|
|
1617
|
+
}), w = (f) => `${me(f, "yyyy-MM-dd")}T${me(f, "HH:mm")}:00`, h = N(null);
|
|
1618
|
+
function $(f, u) {
|
|
1600
1619
|
if (f == null)
|
|
1601
|
-
|
|
1620
|
+
h.value = null;
|
|
1602
1621
|
else if (u === -1)
|
|
1603
|
-
if (o(
|
|
1604
|
-
|
|
1622
|
+
if (o(v) === "time")
|
|
1623
|
+
h.value = w(/* @__PURE__ */ new Date()), $(`T${f}`, 1);
|
|
1605
1624
|
else {
|
|
1606
|
-
const
|
|
1607
|
-
|
|
1625
|
+
const E = w(new Date(f));
|
|
1626
|
+
$(E, 0), $(E, 1);
|
|
1608
1627
|
}
|
|
1609
1628
|
else {
|
|
1610
|
-
|
|
1611
|
-
const
|
|
1612
|
-
|
|
1629
|
+
h.value == null && (h.value = w(/* @__PURE__ */ new Date()));
|
|
1630
|
+
const E = h.value.split(/[TZ]/g), H = f.split(/[TZ]/g);
|
|
1631
|
+
E[u] = H[u], h.value = w(/* @__PURE__ */ new Date(`${E[0]}T${E[1].split(".")[0]}`)), o(v) === "date" ? i.value = E[0] : o(v) === "time" ? i.value = E[1] : i.value = o(h) + me(/* @__PURE__ */ new Date(), "XXX");
|
|
1613
1632
|
}
|
|
1614
1633
|
}
|
|
1615
|
-
|
|
1616
|
-
const
|
|
1634
|
+
ue(i, (f) => $(f, -1), { immediate: !0 });
|
|
1635
|
+
const F = y({
|
|
1617
1636
|
get() {
|
|
1618
|
-
const f = o(
|
|
1637
|
+
const f = o(h);
|
|
1619
1638
|
if (f == null) return null;
|
|
1620
1639
|
const u = new Date(f);
|
|
1621
1640
|
return Number.isNaN(u.getTime()) ? null : u;
|
|
1622
1641
|
},
|
|
1623
1642
|
set(f) {
|
|
1624
|
-
|
|
1643
|
+
$(w(f), 0);
|
|
1625
1644
|
}
|
|
1626
|
-
}),
|
|
1645
|
+
}), k = y({
|
|
1627
1646
|
get() {
|
|
1628
|
-
const f = o(
|
|
1647
|
+
const f = o(h);
|
|
1629
1648
|
return f == null ? "" : f.split(/[TZ]/g)[1].split(".")[0];
|
|
1630
1649
|
},
|
|
1631
1650
|
set(f) {
|
|
1632
|
-
|
|
1651
|
+
$(`T${f}`, 1);
|
|
1633
1652
|
}
|
|
1634
|
-
}),
|
|
1653
|
+
}), V = y({
|
|
1635
1654
|
get() {
|
|
1636
|
-
const f = o(
|
|
1637
|
-
return f == null ? "" :
|
|
1655
|
+
const f = o(F);
|
|
1656
|
+
return f == null ? "" : me(f, o(m), { locale: l.value });
|
|
1638
1657
|
},
|
|
1639
1658
|
set(f) {
|
|
1640
1659
|
try {
|
|
1641
|
-
const u = kt(f, o(
|
|
1642
|
-
|
|
1660
|
+
const u = kt(f, o(m), /* @__PURE__ */ new Date(), { locale: l.value });
|
|
1661
|
+
$(w(u), 0);
|
|
1643
1662
|
} catch (u) {
|
|
1644
1663
|
console.error(u);
|
|
1645
1664
|
}
|
|
1646
1665
|
}
|
|
1647
|
-
}),
|
|
1666
|
+
}), L = y({
|
|
1648
1667
|
get() {
|
|
1649
|
-
const f = o(
|
|
1650
|
-
return f == null ? "" :
|
|
1668
|
+
const f = o(F);
|
|
1669
|
+
return f == null ? "" : me(f, o(b), { locale: l.value });
|
|
1651
1670
|
},
|
|
1652
1671
|
set(f) {
|
|
1653
1672
|
const u = f.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
1654
1673
|
if (u == null) return;
|
|
1655
|
-
let
|
|
1656
|
-
const
|
|
1657
|
-
|
|
1674
|
+
let E = Me(u[1]);
|
|
1675
|
+
const H = Me(u[2]);
|
|
1676
|
+
Ue(E) || Ue(H) || (u[3] && u[3].toLowerCase() === "pm" && E < 13 && (E += 12), $(`T${E.toString().padStart(2, "0")}:${H.toString().padStart(2, "0")}:00`, 1));
|
|
1658
1677
|
}
|
|
1659
1678
|
});
|
|
1660
1679
|
return (f, u) => {
|
|
1661
|
-
const
|
|
1662
|
-
return
|
|
1680
|
+
const E = A("v-date-picker"), H = A("v-confirm-edit"), ce = A("v-menu"), de = A("v-text-field"), B = A("v-time-picker");
|
|
1681
|
+
return C(), x(o(De), R(n, {
|
|
1682
|
+
class: o(s),
|
|
1663
1683
|
clearable: f.clearable,
|
|
1664
|
-
"onClick:clear": u[14] || (u[14] = (
|
|
1665
|
-
onBlur: u[15] || (u[15] = (
|
|
1684
|
+
"onClick:clear": u[14] || (u[14] = (P) => i.value = null),
|
|
1685
|
+
onBlur: u[15] || (u[15] = (P) => p.value = !0)
|
|
1666
1686
|
}), {
|
|
1667
|
-
default:
|
|
1668
|
-
|
|
1669
|
-
["
|
|
1687
|
+
default: g((P) => [
|
|
1688
|
+
oe("div", {
|
|
1689
|
+
class: re(["d-flex w-100 ml-4 df-input-wrapper", f.density])
|
|
1690
|
+
}, [
|
|
1691
|
+
["date", "datetime"].includes(o(v)) ? (C(), x(de, R({
|
|
1670
1692
|
key: 0,
|
|
1671
|
-
modelValue:
|
|
1672
|
-
"onUpdate:modelValue": u[4] || (u[4] = (
|
|
1693
|
+
modelValue: V.value,
|
|
1694
|
+
"onUpdate:modelValue": u[4] || (u[4] = (j) => V.value = j),
|
|
1673
1695
|
style: { "flex-grow": "4" },
|
|
1674
1696
|
density: "compact",
|
|
1675
1697
|
variant: "plain",
|
|
1676
1698
|
clearable: !1,
|
|
1677
1699
|
"hide-details": !0,
|
|
1678
|
-
readonly: o(
|
|
1679
|
-
disabled: o(
|
|
1680
|
-
name: `${o(
|
|
1700
|
+
readonly: o(d).readonly,
|
|
1701
|
+
disabled: o(d).disabled,
|
|
1702
|
+
name: `${o(d).name}-date`
|
|
1681
1703
|
}, f.passthroughAttrs, {
|
|
1682
|
-
onClick: u[5] || (u[5] = (
|
|
1683
|
-
onKeydown: u[6] || (u[6] =
|
|
1684
|
-
onFocus: (
|
|
1685
|
-
onBlur: (
|
|
1704
|
+
onClick: u[5] || (u[5] = (j) => c.value = "date"),
|
|
1705
|
+
onKeydown: u[6] || (u[6] = Ne((j) => c.value = "date", ["space"])),
|
|
1706
|
+
onFocus: (j) => P.focus(),
|
|
1707
|
+
onBlur: (j) => P.blur()
|
|
1686
1708
|
}), {
|
|
1687
|
-
default:
|
|
1688
|
-
|
|
1689
|
-
modelValue:
|
|
1690
|
-
"onUpdate:modelValue": u[3] || (u[3] = (
|
|
1709
|
+
default: g(() => [
|
|
1710
|
+
I(ce, {
|
|
1711
|
+
modelValue: T.value,
|
|
1712
|
+
"onUpdate:modelValue": u[3] || (u[3] = (j) => T.value = j),
|
|
1691
1713
|
"close-on-content-click": !1,
|
|
1692
1714
|
activator: "parent"
|
|
1693
1715
|
}, {
|
|
1694
|
-
default:
|
|
1695
|
-
|
|
1696
|
-
modelValue:
|
|
1697
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1698
|
-
onCancel: u[1] || (u[1] = (
|
|
1699
|
-
onSave: u[2] || (u[2] = (
|
|
1716
|
+
default: g(() => [
|
|
1717
|
+
I(H, {
|
|
1718
|
+
modelValue: F.value,
|
|
1719
|
+
"onUpdate:modelValue": u[0] || (u[0] = (j) => F.value = j),
|
|
1720
|
+
onCancel: u[1] || (u[1] = (j) => c.value = ""),
|
|
1721
|
+
onSave: u[2] || (u[2] = (j) => c.value = "")
|
|
1700
1722
|
}, {
|
|
1701
|
-
default:
|
|
1702
|
-
|
|
1703
|
-
modelValue:
|
|
1704
|
-
"onUpdate:modelValue": (
|
|
1723
|
+
default: g(({ model: j, actions: Q }) => [
|
|
1724
|
+
I(E, {
|
|
1725
|
+
modelValue: j.value,
|
|
1726
|
+
"onUpdate:modelValue": (D) => j.value = D,
|
|
1705
1727
|
"hide-header": !0,
|
|
1706
1728
|
"first-day-of-week": r.value,
|
|
1707
1729
|
"show-adjacent-months": !0,
|
|
1708
1730
|
"show-week": !0
|
|
1709
1731
|
}, {
|
|
1710
|
-
actions:
|
|
1711
|
-
(
|
|
1732
|
+
actions: g(() => [
|
|
1733
|
+
(C(), x(be(Q)))
|
|
1712
1734
|
]),
|
|
1713
1735
|
_: 2
|
|
1714
1736
|
}, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
|
|
@@ -1720,48 +1742,48 @@ const Mo = {
|
|
|
1720
1742
|
}, 8, ["modelValue"])
|
|
1721
1743
|
]),
|
|
1722
1744
|
_: 1
|
|
1723
|
-
}, 16, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) :
|
|
1724
|
-
["time", "datetime"].includes(o(
|
|
1745
|
+
}, 16, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : U("", !0),
|
|
1746
|
+
["time", "datetime"].includes(o(v)) ? (C(), x(de, R({
|
|
1725
1747
|
key: 1,
|
|
1726
|
-
modelValue:
|
|
1727
|
-
"onUpdate:modelValue": u[11] || (u[11] = (
|
|
1748
|
+
modelValue: L.value,
|
|
1749
|
+
"onUpdate:modelValue": u[11] || (u[11] = (j) => L.value = j),
|
|
1728
1750
|
style: { "flex-grow": "3" },
|
|
1729
1751
|
density: "compact",
|
|
1730
1752
|
variant: "plain",
|
|
1731
1753
|
clearable: !1,
|
|
1732
1754
|
"hide-details": !0,
|
|
1733
|
-
readonly: o(
|
|
1734
|
-
disabled: o(
|
|
1735
|
-
name: `${o(
|
|
1755
|
+
readonly: o(d).readonly,
|
|
1756
|
+
disabled: o(d).disabled,
|
|
1757
|
+
name: `${o(d).name}-time`
|
|
1736
1758
|
}, f.passthroughAttrs, {
|
|
1737
|
-
onClick: u[12] || (u[12] = (
|
|
1738
|
-
onKeydown: u[13] || (u[13] =
|
|
1739
|
-
onFocus: (
|
|
1740
|
-
onBlur: (
|
|
1759
|
+
onClick: u[12] || (u[12] = (j) => c.value = "time"),
|
|
1760
|
+
onKeydown: u[13] || (u[13] = Ne((j) => c.value = "time", ["space"])),
|
|
1761
|
+
onFocus: (j) => P.focus(),
|
|
1762
|
+
onBlur: (j) => P.blur()
|
|
1741
1763
|
}), {
|
|
1742
|
-
default:
|
|
1743
|
-
|
|
1744
|
-
modelValue:
|
|
1745
|
-
"onUpdate:modelValue": u[10] || (u[10] = (
|
|
1764
|
+
default: g(() => [
|
|
1765
|
+
I(ce, {
|
|
1766
|
+
modelValue: _.value,
|
|
1767
|
+
"onUpdate:modelValue": u[10] || (u[10] = (j) => _.value = j),
|
|
1746
1768
|
"close-on-content-click": !1,
|
|
1747
1769
|
activator: "parent"
|
|
1748
1770
|
}, {
|
|
1749
|
-
default:
|
|
1750
|
-
|
|
1751
|
-
modelValue:
|
|
1752
|
-
"onUpdate:modelValue": u[7] || (u[7] = (
|
|
1753
|
-
onCancel: u[8] || (u[8] = (
|
|
1754
|
-
onSave: u[9] || (u[9] = (
|
|
1771
|
+
default: g(() => [
|
|
1772
|
+
I(H, {
|
|
1773
|
+
modelValue: k.value,
|
|
1774
|
+
"onUpdate:modelValue": u[7] || (u[7] = (j) => k.value = j),
|
|
1775
|
+
onCancel: u[8] || (u[8] = (j) => c.value = ""),
|
|
1776
|
+
onSave: u[9] || (u[9] = (j) => c.value = "")
|
|
1755
1777
|
}, {
|
|
1756
|
-
default:
|
|
1757
|
-
B
|
|
1758
|
-
modelValue:
|
|
1759
|
-
"onUpdate:modelValue": (
|
|
1778
|
+
default: g(({ model: j, actions: Q }) => [
|
|
1779
|
+
I(B, {
|
|
1780
|
+
modelValue: j.value,
|
|
1781
|
+
"onUpdate:modelValue": (D) => j.value = D,
|
|
1760
1782
|
"hide-header": !0,
|
|
1761
1783
|
format: "24hr"
|
|
1762
1784
|
}, {
|
|
1763
|
-
actions:
|
|
1764
|
-
(
|
|
1785
|
+
actions: g(() => [
|
|
1786
|
+
(C(), x(be(Q)))
|
|
1765
1787
|
]),
|
|
1766
1788
|
_: 2
|
|
1767
1789
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1773,19 +1795,16 @@ const Mo = {
|
|
|
1773
1795
|
}, 8, ["modelValue"])
|
|
1774
1796
|
]),
|
|
1775
1797
|
_: 1
|
|
1776
|
-
}, 16, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) :
|
|
1777
|
-
])
|
|
1798
|
+
}, 16, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : U("", !0)
|
|
1799
|
+
], 2)
|
|
1778
1800
|
]),
|
|
1779
1801
|
_: 1
|
|
1780
|
-
}, 16, ["clearable"]);
|
|
1802
|
+
}, 16, ["class", "clearable"]);
|
|
1781
1803
|
};
|
|
1782
1804
|
}
|
|
1783
|
-
}),
|
|
1784
|
-
class: "d-flex w-100 pt-5 pl-2 pb-1",
|
|
1785
|
-
style: { position: "relative" }
|
|
1786
|
-
}, Go = /* @__PURE__ */ M({
|
|
1805
|
+
}), Wo = /* @__PURE__ */ O({
|
|
1787
1806
|
__name: "df-file",
|
|
1788
|
-
props: /* @__PURE__ */
|
|
1807
|
+
props: /* @__PURE__ */ q({
|
|
1789
1808
|
comms: {},
|
|
1790
1809
|
control: {},
|
|
1791
1810
|
modelValue: {},
|
|
@@ -1798,90 +1817,95 @@ const Mo = {
|
|
|
1798
1817
|
visibility: {},
|
|
1799
1818
|
cssClass: {},
|
|
1800
1819
|
clearable: { type: Boolean },
|
|
1801
|
-
passthroughAttrs: {}
|
|
1802
|
-
|
|
1820
|
+
passthroughAttrs: {},
|
|
1821
|
+
density: {},
|
|
1822
|
+
variant: {}
|
|
1823
|
+
}, Y),
|
|
1803
1824
|
emits: ["update:modelValue", "click:clear"],
|
|
1804
1825
|
setup(e, { emit: t }) {
|
|
1805
|
-
const n = e,
|
|
1806
|
-
function
|
|
1826
|
+
const n = e, a = t, { densityClass: l, touched: r, value: s, vuetifyBindings: p } = X(n, a), i = N(null), d = N(null), v = N(0), m = N(Math.round(Math.random() * 1e3)), b = N(), c = y(() => d.value && v.value < 100), T = y(() => !b.value && s.value ? n.modelValue : "");
|
|
1827
|
+
function _() {
|
|
1807
1828
|
i.value && window.clearInterval(i.value);
|
|
1808
1829
|
}
|
|
1809
1830
|
function w() {
|
|
1810
|
-
|
|
1811
|
-
|
|
1831
|
+
_(), i.value = window.setInterval(() => {
|
|
1832
|
+
s.value && n.comms.touch(s.value);
|
|
1812
1833
|
}, 60 * 1e3);
|
|
1813
1834
|
}
|
|
1814
|
-
|
|
1815
|
-
|
|
1835
|
+
Ke(() => _()), ue(s, (k) => {
|
|
1836
|
+
k ? w() : _();
|
|
1816
1837
|
});
|
|
1817
|
-
function
|
|
1818
|
-
return
|
|
1819
|
-
|
|
1838
|
+
function h() {
|
|
1839
|
+
return ye(this, null, function* () {
|
|
1840
|
+
s.value && (yield n.comms.delete(s.value)), s.value = null, v.value = 0, m.value = Math.round(Math.random() * 1e3), d.value = null, b.value = null, _();
|
|
1820
1841
|
});
|
|
1821
1842
|
}
|
|
1822
|
-
function
|
|
1823
|
-
return
|
|
1824
|
-
|
|
1843
|
+
function $(k) {
|
|
1844
|
+
return ye(this, null, function* () {
|
|
1845
|
+
v.value = -1, d.value = k;
|
|
1825
1846
|
try {
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
}),
|
|
1829
|
-
} catch (
|
|
1830
|
-
throw
|
|
1847
|
+
s.value = yield n.comms.upload(k, (V, L) => {
|
|
1848
|
+
v.value = Math.round(V * 100 / L);
|
|
1849
|
+
}), v.value = 100, w();
|
|
1850
|
+
} catch (V) {
|
|
1851
|
+
throw v.value = 0, d.value = null, m.value = Math.round(Math.random() * 1e3), b.value = null, V;
|
|
1831
1852
|
}
|
|
1832
1853
|
});
|
|
1833
1854
|
}
|
|
1834
|
-
function
|
|
1835
|
-
|
|
1855
|
+
function F(k) {
|
|
1856
|
+
k && (Array.isArray(k) ? console.error("Uploading multiple files not supported right now") : $(k));
|
|
1836
1857
|
}
|
|
1837
|
-
return (
|
|
1838
|
-
const
|
|
1839
|
-
return
|
|
1858
|
+
return (k, V) => {
|
|
1859
|
+
const L = A("v-progress-linear"), f = A("v-file-input");
|
|
1860
|
+
return C(), x(o(De), R(M(S({}, n), { loading: c.value }), {
|
|
1861
|
+
class: o(l),
|
|
1840
1862
|
clearable: "",
|
|
1841
|
-
"onClick:clear":
|
|
1842
|
-
onBlur:
|
|
1863
|
+
"onClick:clear": h,
|
|
1864
|
+
onBlur: V[1] || (V[1] = (u) => r.value = !0)
|
|
1843
1865
|
}), {
|
|
1844
|
-
"prepend-inner":
|
|
1845
|
-
|
|
1866
|
+
"prepend-inner": g(() => [
|
|
1867
|
+
I(o(ge), { name: "mdi-paperclip" })
|
|
1846
1868
|
]),
|
|
1847
|
-
loader:
|
|
1848
|
-
|
|
1869
|
+
loader: g(() => [
|
|
1870
|
+
d.value && v.value < 100 ? (C(), x(L, {
|
|
1849
1871
|
key: 0,
|
|
1850
|
-
"model-value":
|
|
1851
|
-
indeterminate:
|
|
1852
|
-
}, null, 8, ["model-value", "indeterminate"])) :
|
|
1872
|
+
"model-value": v.value,
|
|
1873
|
+
indeterminate: v.value === -1
|
|
1874
|
+
}, null, 8, ["model-value", "indeterminate"])) : U("", !0)
|
|
1853
1875
|
]),
|
|
1854
|
-
default:
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1876
|
+
default: g((u) => [
|
|
1877
|
+
oe("div", {
|
|
1878
|
+
class: re(["d-flex w-100 position-relative df-input-wrapper", k.density])
|
|
1879
|
+
}, [
|
|
1880
|
+
I(f, R({
|
|
1881
|
+
modelValue: b.value,
|
|
1882
|
+
"onUpdate:modelValue": V[0] || (V[0] = (E) => b.value = E),
|
|
1883
|
+
label: T.value,
|
|
1860
1884
|
density: "compact",
|
|
1861
1885
|
variant: "plain",
|
|
1862
|
-
readonly: o(
|
|
1863
|
-
disabled: o(
|
|
1864
|
-
name: o(
|
|
1886
|
+
readonly: o(p).readonly,
|
|
1887
|
+
disabled: o(p).disabled,
|
|
1888
|
+
name: o(p).name,
|
|
1865
1889
|
"hide-details": !0,
|
|
1866
1890
|
"show-size": !0,
|
|
1867
1891
|
multiple: !1,
|
|
1868
|
-
style:
|
|
1892
|
+
style: d.value && v.value < 100 ? "visibility: hidden" : "",
|
|
1869
1893
|
clearable: !1
|
|
1870
|
-
},
|
|
1894
|
+
}, k.passthroughAttrs, {
|
|
1871
1895
|
"prepend-icon": "",
|
|
1872
|
-
"onUpdate:modelValue":
|
|
1873
|
-
onFocus: (
|
|
1874
|
-
onBlur: (
|
|
1896
|
+
"onUpdate:modelValue": F,
|
|
1897
|
+
onFocus: (E) => u.focus(),
|
|
1898
|
+
onBlur: (E) => u.blur()
|
|
1875
1899
|
}), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
|
|
1876
|
-
])
|
|
1900
|
+
], 2)
|
|
1877
1901
|
]),
|
|
1878
1902
|
_: 1
|
|
1879
|
-
}, 16);
|
|
1903
|
+
}, 16, ["class"]);
|
|
1880
1904
|
};
|
|
1881
1905
|
}
|
|
1882
|
-
}),
|
|
1906
|
+
}), zo = /* @__PURE__ */ O({
|
|
1883
1907
|
__name: "df-input",
|
|
1884
|
-
props: /* @__PURE__ */
|
|
1908
|
+
props: /* @__PURE__ */ q({
|
|
1885
1909
|
inputType: {},
|
|
1886
1910
|
precision: {},
|
|
1887
1911
|
step: {},
|
|
@@ -1898,8 +1922,10 @@ const Mo = {
|
|
|
1898
1922
|
visibility: {},
|
|
1899
1923
|
cssClass: {},
|
|
1900
1924
|
clearable: { type: Boolean },
|
|
1901
|
-
passthroughAttrs: {}
|
|
1902
|
-
|
|
1925
|
+
passthroughAttrs: {},
|
|
1926
|
+
density: {},
|
|
1927
|
+
variant: {}
|
|
1928
|
+
}, M(S({}, Y), {
|
|
1903
1929
|
inputType: "text",
|
|
1904
1930
|
precision: null,
|
|
1905
1931
|
step: void 0,
|
|
@@ -1908,69 +1934,71 @@ const Mo = {
|
|
|
1908
1934
|
})),
|
|
1909
1935
|
emits: ["update:modelValue", "click:clear"],
|
|
1910
1936
|
setup(e, { emit: t }) {
|
|
1911
|
-
const n = e,
|
|
1912
|
-
() =>
|
|
1937
|
+
const n = e, a = t, { densityClass: l, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, a), { inputType: v, max: m, min: b, precision: c, step: T } = Ce(n), _ = y(() => v.value === "number"), w = y(
|
|
1938
|
+
() => _.value ? { min: o(b), max: o(m), precision: o(c), step: o(T) } : {}
|
|
1913
1939
|
);
|
|
1914
|
-
return (
|
|
1915
|
-
const
|
|
1916
|
-
return
|
|
1917
|
-
|
|
1940
|
+
return (h, $) => {
|
|
1941
|
+
const F = A("v-text-field"), k = A("v-number-input");
|
|
1942
|
+
return C(), W("div", {
|
|
1943
|
+
class: re(["df-input-container", o(l)])
|
|
1944
|
+
}, [
|
|
1945
|
+
_.value ? (C(), x(k, R({
|
|
1918
1946
|
key: 1,
|
|
1919
1947
|
modelValue: o(i),
|
|
1920
|
-
"onUpdate:modelValue":
|
|
1921
|
-
},
|
|
1948
|
+
"onUpdate:modelValue": $[2] || ($[2] = (V) => ne(i) ? i.value = V : null)
|
|
1949
|
+
}, S(S({}, o(d)), w.value), {
|
|
1922
1950
|
density: "compact",
|
|
1923
1951
|
"control-variant": "stacked"
|
|
1924
|
-
}),
|
|
1925
|
-
message:
|
|
1926
|
-
|
|
1927
|
-
message:
|
|
1928
|
-
errors: o(
|
|
1952
|
+
}), G({
|
|
1953
|
+
message: g(({ message: V }) => [
|
|
1954
|
+
I(o(le), {
|
|
1955
|
+
message: V,
|
|
1956
|
+
errors: o(r)
|
|
1929
1957
|
}, null, 8, ["message", "errors"])
|
|
1930
1958
|
]),
|
|
1931
1959
|
_: 2
|
|
1932
1960
|
}, [
|
|
1933
|
-
o(
|
|
1961
|
+
o(s).icon ? {
|
|
1934
1962
|
name: "label",
|
|
1935
|
-
fn:
|
|
1936
|
-
|
|
1937
|
-
data:
|
|
1938
|
-
label: o(
|
|
1963
|
+
fn: g((V) => [
|
|
1964
|
+
I(o(ae), {
|
|
1965
|
+
data: V,
|
|
1966
|
+
label: o(s)
|
|
1939
1967
|
}, null, 8, ["data", "label"])
|
|
1940
1968
|
]),
|
|
1941
1969
|
key: "0"
|
|
1942
1970
|
} : void 0
|
|
1943
|
-
]), 1040, ["modelValue"])) : (
|
|
1971
|
+
]), 1040, ["modelValue"])) : (C(), x(F, R({
|
|
1944
1972
|
key: 0,
|
|
1945
1973
|
modelValue: o(i),
|
|
1946
|
-
"onUpdate:modelValue":
|
|
1947
|
-
}, o(
|
|
1948
|
-
type: o(
|
|
1949
|
-
onBlur:
|
|
1950
|
-
}),
|
|
1951
|
-
message:
|
|
1952
|
-
|
|
1953
|
-
message:
|
|
1954
|
-
errors: o(
|
|
1974
|
+
"onUpdate:modelValue": $[0] || ($[0] = (V) => ne(i) ? i.value = V : null)
|
|
1975
|
+
}, o(d), {
|
|
1976
|
+
type: o(v),
|
|
1977
|
+
onBlur: $[1] || ($[1] = (V) => p.value = !0)
|
|
1978
|
+
}), G({
|
|
1979
|
+
message: g(({ message: V }) => [
|
|
1980
|
+
I(o(le), {
|
|
1981
|
+
message: V,
|
|
1982
|
+
errors: o(r)
|
|
1955
1983
|
}, null, 8, ["message", "errors"])
|
|
1956
1984
|
]),
|
|
1957
1985
|
_: 2
|
|
1958
1986
|
}, [
|
|
1959
|
-
o(
|
|
1987
|
+
o(s).icon ? {
|
|
1960
1988
|
name: "label",
|
|
1961
|
-
fn:
|
|
1962
|
-
|
|
1963
|
-
data:
|
|
1964
|
-
label: o(
|
|
1989
|
+
fn: g((V) => [
|
|
1990
|
+
I(o(ae), {
|
|
1991
|
+
data: V,
|
|
1992
|
+
label: o(s)
|
|
1965
1993
|
}, null, 8, ["data", "label"])
|
|
1966
1994
|
]),
|
|
1967
1995
|
key: "0"
|
|
1968
1996
|
} : void 0
|
|
1969
1997
|
]), 1040, ["modelValue", "type"]))
|
|
1970
|
-
]);
|
|
1998
|
+
], 2);
|
|
1971
1999
|
};
|
|
1972
2000
|
}
|
|
1973
|
-
}),
|
|
2001
|
+
}), Ho = { class: "editor-container" }, Ko = { class: "editor-container__editor" }, Xo = { ref: "editorElement" }, Go = /* @__PURE__ */ O({
|
|
1974
2002
|
__name: "ck-editor-custom",
|
|
1975
2003
|
props: {
|
|
1976
2004
|
modelValue: { default: "" },
|
|
@@ -1979,10 +2007,10 @@ const Mo = {
|
|
|
1979
2007
|
},
|
|
1980
2008
|
emits: ["update:modelValue"],
|
|
1981
2009
|
setup(e, { expose: t, emit: n }) {
|
|
1982
|
-
mt((
|
|
1983
|
-
"5f8a2e8c":
|
|
2010
|
+
mt((m) => ({
|
|
2011
|
+
"5f8a2e8c": m.minHeight
|
|
1984
2012
|
}));
|
|
1985
|
-
const
|
|
2013
|
+
const a = n, l = N(!1), r = cn, d = {
|
|
1986
2014
|
toolbar: {
|
|
1987
2015
|
items: [
|
|
1988
2016
|
"undo",
|
|
@@ -2015,17 +2043,17 @@ const Mo = {
|
|
|
2015
2043
|
},
|
|
2016
2044
|
plugins: [
|
|
2017
2045
|
Vt,
|
|
2018
|
-
_t,
|
|
2019
2046
|
jt,
|
|
2020
2047
|
Ct,
|
|
2021
2048
|
Tt,
|
|
2049
|
+
_t,
|
|
2022
2050
|
Bt,
|
|
2023
2051
|
It,
|
|
2024
2052
|
Pt,
|
|
2025
2053
|
Dt,
|
|
2026
2054
|
xt,
|
|
2027
|
-
$t,
|
|
2028
2055
|
St,
|
|
2056
|
+
$t,
|
|
2029
2057
|
Et,
|
|
2030
2058
|
At,
|
|
2031
2059
|
Nt,
|
|
@@ -2050,8 +2078,8 @@ const Mo = {
|
|
|
2050
2078
|
tn,
|
|
2051
2079
|
nn,
|
|
2052
2080
|
on,
|
|
2053
|
-
ln,
|
|
2054
2081
|
an,
|
|
2082
|
+
ln,
|
|
2055
2083
|
rn,
|
|
2056
2084
|
sn,
|
|
2057
2085
|
un
|
|
@@ -2111,34 +2139,34 @@ const Mo = {
|
|
|
2111
2139
|
},
|
|
2112
2140
|
table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] }
|
|
2113
2141
|
};
|
|
2114
|
-
|
|
2115
|
-
|
|
2142
|
+
He(() => {
|
|
2143
|
+
l.value = !0;
|
|
2116
2144
|
});
|
|
2117
|
-
const
|
|
2145
|
+
const v = (m) => {
|
|
2118
2146
|
};
|
|
2119
|
-
return t({ onEditorReady:
|
|
2120
|
-
const
|
|
2121
|
-
return
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2147
|
+
return t({ onEditorReady: v }), (m, b) => {
|
|
2148
|
+
const c = A("ckeditor");
|
|
2149
|
+
return C(), W("div", Ho, [
|
|
2150
|
+
oe("div", Ko, [
|
|
2151
|
+
oe("div", Xo, [
|
|
2152
|
+
l.value ? (C(), x(c, {
|
|
2125
2153
|
key: 0,
|
|
2126
|
-
"model-value":
|
|
2154
|
+
"model-value": m.modelValue,
|
|
2127
2155
|
editor: o(r),
|
|
2128
2156
|
config: d,
|
|
2129
|
-
disabled:
|
|
2130
|
-
style:
|
|
2131
|
-
onReady:
|
|
2132
|
-
"onUpdate:modelValue":
|
|
2133
|
-
}, null, 8, ["model-value", "editor", "disabled", "style"])) :
|
|
2157
|
+
disabled: m.disabled,
|
|
2158
|
+
style: Ge(`min-height: ${m.minHeight}`),
|
|
2159
|
+
onReady: v,
|
|
2160
|
+
"onUpdate:modelValue": b[0] || (b[0] = (T) => a("update:modelValue", T))
|
|
2161
|
+
}, null, 8, ["model-value", "editor", "disabled", "style"])) : U("", !0)
|
|
2134
2162
|
], 512)
|
|
2135
2163
|
])
|
|
2136
2164
|
]);
|
|
2137
2165
|
};
|
|
2138
2166
|
}
|
|
2139
|
-
}),
|
|
2167
|
+
}), qo = /* @__PURE__ */ O({
|
|
2140
2168
|
__name: "df-rtf-editor",
|
|
2141
|
-
props: /* @__PURE__ */
|
|
2169
|
+
props: /* @__PURE__ */ q({
|
|
2142
2170
|
minHeight: {},
|
|
2143
2171
|
control: {},
|
|
2144
2172
|
modelValue: {},
|
|
@@ -2151,64 +2179,68 @@ const Mo = {
|
|
|
2151
2179
|
visibility: {},
|
|
2152
2180
|
cssClass: {},
|
|
2153
2181
|
clearable: { type: Boolean },
|
|
2154
|
-
passthroughAttrs: {}
|
|
2155
|
-
|
|
2182
|
+
passthroughAttrs: {},
|
|
2183
|
+
density: {},
|
|
2184
|
+
variant: {}
|
|
2185
|
+
}, M(S({}, Y), { minHeight: void 0 })),
|
|
2156
2186
|
emits: ["update:modelValue", "click:clear"],
|
|
2157
2187
|
setup(e, { emit: t }) {
|
|
2158
|
-
const n = e,
|
|
2159
|
-
return (
|
|
2160
|
-
|
|
2161
|
-
|
|
2188
|
+
const n = e, a = t, { densityClass: l, value: r, vuetifyBindings: s } = X(n, a);
|
|
2189
|
+
return (p, i) => (C(), x(o(De), R(n, {
|
|
2190
|
+
class: ["ck-editor-custom", o(l)]
|
|
2191
|
+
}), {
|
|
2192
|
+
default: g((d) => [
|
|
2193
|
+
I(Go, R({
|
|
2162
2194
|
ref: "$editor",
|
|
2163
|
-
modelValue: o(
|
|
2164
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
2165
|
-
class: { "mt-6": !!
|
|
2166
|
-
"min-height":
|
|
2167
|
-
disabled: o(
|
|
2195
|
+
modelValue: o(r),
|
|
2196
|
+
"onUpdate:modelValue": i[0] || (i[0] = (v) => ne(r) ? r.value = v : null),
|
|
2197
|
+
class: { "mt-6": !!p.label },
|
|
2198
|
+
"min-height": p.minHeight,
|
|
2199
|
+
disabled: o(s).disabled,
|
|
2168
2200
|
placeholder: "dfsjghdf"
|
|
2169
|
-
},
|
|
2170
|
-
onFocusin: (
|
|
2171
|
-
onFocusout: (
|
|
2201
|
+
}, p.passthroughAttrs, {
|
|
2202
|
+
onFocusin: (v) => d.focus(),
|
|
2203
|
+
onFocusout: (v) => d.blur()
|
|
2172
2204
|
}), null, 16, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
|
|
2173
2205
|
]),
|
|
2174
2206
|
_: 1
|
|
2175
|
-
}, 16));
|
|
2207
|
+
}, 16, ["class"]));
|
|
2176
2208
|
}
|
|
2177
2209
|
});
|
|
2178
|
-
function
|
|
2210
|
+
function Yo(e) {
|
|
2179
2211
|
return e.map((t) => ({ value: t.id, title: t.text, icon: t.icon }));
|
|
2180
2212
|
}
|
|
2181
|
-
function
|
|
2213
|
+
function Z(e, t) {
|
|
2182
2214
|
var n;
|
|
2183
|
-
return e == null ||
|
|
2215
|
+
return e == null || Oe(e) && e.length === 0 ? null : t ? qe(e) : Oe(e) ? (n = Ye(e)) != null ? n : null : e;
|
|
2184
2216
|
}
|
|
2185
|
-
function
|
|
2217
|
+
function je(e, t) {
|
|
2186
2218
|
if (t == null) return [];
|
|
2187
|
-
const n =
|
|
2188
|
-
return e.filter((
|
|
2219
|
+
const n = qe(t);
|
|
2220
|
+
return e.filter((a) => n.some((l) => l === a.id));
|
|
2189
2221
|
}
|
|
2190
|
-
function
|
|
2191
|
-
var
|
|
2192
|
-
const r =
|
|
2222
|
+
function ke(e, t, n, a, l) {
|
|
2223
|
+
var s;
|
|
2224
|
+
const r = Z(e, n);
|
|
2193
2225
|
if (r == null) {
|
|
2194
2226
|
t.value = n ? [] : null;
|
|
2195
2227
|
return;
|
|
2196
2228
|
}
|
|
2197
2229
|
if (n)
|
|
2198
|
-
|
|
2199
|
-
else if (
|
|
2230
|
+
a ? t.value = r : t.value = je(l, r).map((p) => p.id);
|
|
2231
|
+
else if (a)
|
|
2200
2232
|
t.value = r;
|
|
2201
2233
|
else {
|
|
2202
|
-
const
|
|
2203
|
-
t.value = (
|
|
2234
|
+
const p = Ye(je(l, r));
|
|
2235
|
+
t.value = (s = p == null ? void 0 : p.id) != null ? s : null;
|
|
2204
2236
|
}
|
|
2205
2237
|
}
|
|
2206
|
-
const
|
|
2238
|
+
const Qo = {
|
|
2207
2239
|
key: 0,
|
|
2208
2240
|
class: "me-1"
|
|
2209
|
-
},
|
|
2241
|
+
}, Zo = /* @__PURE__ */ O({
|
|
2210
2242
|
__name: "df-select",
|
|
2211
|
-
props: /* @__PURE__ */
|
|
2243
|
+
props: /* @__PURE__ */ q({
|
|
2212
2244
|
choices: {},
|
|
2213
2245
|
multiple: { type: Boolean },
|
|
2214
2246
|
allowTags: { type: Boolean },
|
|
@@ -2225,8 +2257,10 @@ const ll = {
|
|
|
2225
2257
|
visibility: {},
|
|
2226
2258
|
cssClass: {},
|
|
2227
2259
|
clearable: { type: Boolean },
|
|
2228
|
-
passthroughAttrs: {}
|
|
2229
|
-
|
|
2260
|
+
passthroughAttrs: {},
|
|
2261
|
+
density: {},
|
|
2262
|
+
variant: {}
|
|
2263
|
+
}, M(S({}, Y), {
|
|
2230
2264
|
choices: void 0,
|
|
2231
2265
|
multiple: !1,
|
|
2232
2266
|
allowTags: !1,
|
|
@@ -2235,184 +2269,192 @@ const ll = {
|
|
|
2235
2269
|
})),
|
|
2236
2270
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
2237
2271
|
setup(e, { emit: t }) {
|
|
2238
|
-
const n = e, { choices:
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2272
|
+
const n = e, { choices: a, multiple: l, allowTags: r, allowNull: s, cssClass: p, visibility: i } = Ce(n), d = t, {
|
|
2273
|
+
densityClass: v,
|
|
2274
|
+
errors: m,
|
|
2275
|
+
label: b,
|
|
2276
|
+
touched: c,
|
|
2277
|
+
value: T,
|
|
2278
|
+
vuetifyBindings: _
|
|
2279
|
+
} = X(n, d), w = N(null), h = N(!1), $ = N([]), F = y(() => o(h) ? o($) : o(a) || []), k = N(!1), V = y(() => Yo(F.value));
|
|
2280
|
+
V.value && n.fetchChoices !== void 0 && console.warn("Both options and fetchChoices are set. Only one of them should be set.");
|
|
2281
|
+
function L(B) {
|
|
2282
|
+
d("update:modelValueDisplay", je(F.value, B));
|
|
2242
2283
|
}
|
|
2243
2284
|
let f = !1;
|
|
2244
|
-
function u(
|
|
2245
|
-
f = !0,
|
|
2285
|
+
function u(B) {
|
|
2286
|
+
f = !0, T.value = B, Fe(() => {
|
|
2246
2287
|
f = !1;
|
|
2247
2288
|
});
|
|
2248
2289
|
}
|
|
2249
|
-
|
|
2290
|
+
ue(
|
|
2250
2291
|
w,
|
|
2251
|
-
(
|
|
2252
|
-
|
|
2253
|
-
const
|
|
2254
|
-
|
|
2292
|
+
(B) => {
|
|
2293
|
+
_.value.readonly || Fe(() => {
|
|
2294
|
+
const P = Z(B, l.value);
|
|
2295
|
+
L(P), u(P);
|
|
2255
2296
|
});
|
|
2256
2297
|
},
|
|
2257
2298
|
{ deep: !0 }
|
|
2258
|
-
),
|
|
2259
|
-
|
|
2260
|
-
(
|
|
2299
|
+
), ue(
|
|
2300
|
+
T,
|
|
2301
|
+
(B) => {
|
|
2261
2302
|
if (!f) {
|
|
2262
|
-
const
|
|
2263
|
-
|
|
2303
|
+
const P = Z(B, l.value);
|
|
2304
|
+
ke(P, w, l.value, !1, F.value);
|
|
2264
2305
|
}
|
|
2265
2306
|
},
|
|
2266
2307
|
{ deep: !0 }
|
|
2267
2308
|
);
|
|
2268
|
-
function
|
|
2269
|
-
if (
|
|
2270
|
-
const
|
|
2271
|
-
|
|
2309
|
+
function E() {
|
|
2310
|
+
if (_.value.readonly || r.value) return;
|
|
2311
|
+
const B = Z(w.value, l.value);
|
|
2312
|
+
ke(B, w, l.value, !1, F.value), u(B);
|
|
2272
2313
|
}
|
|
2273
|
-
function
|
|
2274
|
-
let
|
|
2275
|
-
|
|
2276
|
-
w.value.filter((
|
|
2277
|
-
|
|
2278
|
-
) :
|
|
2314
|
+
function H(B) {
|
|
2315
|
+
let P;
|
|
2316
|
+
l.value && Array.isArray(w.value) ? P = Z(
|
|
2317
|
+
w.value.filter((j) => j !== B),
|
|
2318
|
+
l.value
|
|
2319
|
+
) : P = null, ke(P, w, l.value, !1, F.value), u(P);
|
|
2279
2320
|
}
|
|
2280
|
-
function
|
|
2281
|
-
return
|
|
2282
|
-
if (!(
|
|
2283
|
-
|
|
2321
|
+
function ce(B, P) {
|
|
2322
|
+
return ye(this, null, function* () {
|
|
2323
|
+
if (!(a.value || n.fetchChoices === void 0)) {
|
|
2324
|
+
k.value = !0;
|
|
2284
2325
|
try {
|
|
2285
|
-
const
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
),
|
|
2289
|
-
|
|
2326
|
+
const j = je(
|
|
2327
|
+
F.value,
|
|
2328
|
+
Z(w.value, l.value)
|
|
2329
|
+
), Q = yield n.fetchChoices(B, P);
|
|
2330
|
+
$.value = ht([...j, ...Q], "id"), h.value = !0;
|
|
2290
2331
|
} finally {
|
|
2291
|
-
|
|
2332
|
+
k.value = !1;
|
|
2292
2333
|
}
|
|
2293
2334
|
}
|
|
2294
2335
|
});
|
|
2295
2336
|
}
|
|
2296
|
-
function
|
|
2297
|
-
let
|
|
2298
|
-
!
|
|
2337
|
+
function de() {
|
|
2338
|
+
let B = T.value;
|
|
2339
|
+
!s.value && B == null && V.value.length && (B = V.value[0].value), B = Z(B, l.value), ke(B, w, l.value, r.value, F.value), L(B), u(B);
|
|
2299
2340
|
}
|
|
2300
|
-
return
|
|
2301
|
-
|
|
2302
|
-
}), (
|
|
2303
|
-
const
|
|
2304
|
-
return o(
|
|
2341
|
+
return de(), n.fetchChoices !== void 0 && ce(void 0, T.value).then(() => {
|
|
2342
|
+
de();
|
|
2343
|
+
}), (B, P) => {
|
|
2344
|
+
const j = A("v-chip"), Q = A("v-list-item");
|
|
2345
|
+
return o(i) !== o(K).SUPPRESS ? (C(), x(be(o(r) ? "v-combobox" : "v-autocomplete"), R({
|
|
2305
2346
|
key: 0,
|
|
2306
2347
|
modelValue: w.value,
|
|
2307
|
-
"onUpdate:modelValue":
|
|
2348
|
+
"onUpdate:modelValue": P[0] || (P[0] = (D) => w.value = D),
|
|
2308
2349
|
class: [
|
|
2309
|
-
o(
|
|
2350
|
+
o(p),
|
|
2351
|
+
o(v),
|
|
2310
2352
|
{
|
|
2311
|
-
"d-none": o(
|
|
2312
|
-
invisible: o(
|
|
2353
|
+
"d-none": o(i) === o(K).HIDDEN,
|
|
2354
|
+
invisible: o(i) === o(K).INVISIBLE
|
|
2313
2355
|
}
|
|
2314
2356
|
],
|
|
2315
|
-
items:
|
|
2357
|
+
items: V.value,
|
|
2316
2358
|
"return-object": !1
|
|
2317
|
-
}, o(
|
|
2318
|
-
label: o(
|
|
2359
|
+
}, o(_), {
|
|
2360
|
+
label: o(_).label,
|
|
2319
2361
|
chips: "",
|
|
2320
2362
|
"auto-select-first": !0,
|
|
2321
|
-
"closable-chips": o(
|
|
2322
|
-
clearable: o(
|
|
2323
|
-
multiple: o(
|
|
2324
|
-
loading:
|
|
2363
|
+
"closable-chips": o(s) || o(l) && w.value.length > 1,
|
|
2364
|
+
clearable: o(s),
|
|
2365
|
+
multiple: o(l),
|
|
2366
|
+
loading: k.value,
|
|
2325
2367
|
"hide-selected": !1,
|
|
2326
|
-
"aria-describedby": o(
|
|
2368
|
+
"aria-describedby": o(_).helpText ? `${o(_).name}-help` : null,
|
|
2327
2369
|
"menu-props": { maxHeight: "400" },
|
|
2328
2370
|
"hide-details": "auto",
|
|
2329
|
-
"onUpdate:search":
|
|
2330
|
-
"onUpdate:modelValue":
|
|
2331
|
-
"onClick:clear":
|
|
2332
|
-
onBlur:
|
|
2333
|
-
}),
|
|
2334
|
-
chip:
|
|
2335
|
-
(
|
|
2336
|
-
key:
|
|
2371
|
+
"onUpdate:search": P[1] || (P[1] = (D) => ce(D, void 0)),
|
|
2372
|
+
"onUpdate:modelValue": E,
|
|
2373
|
+
"onClick:clear": P[2] || (P[2] = (D) => w.value = null),
|
|
2374
|
+
onBlur: P[3] || (P[3] = (D) => c.value = !0)
|
|
2375
|
+
}), G({
|
|
2376
|
+
chip: g(({ item: D }) => [
|
|
2377
|
+
(C(), x(j, {
|
|
2378
|
+
key: D.value,
|
|
2337
2379
|
label: "",
|
|
2338
2380
|
size: "small",
|
|
2339
2381
|
class: "d-flex align-middle",
|
|
2340
|
-
variant: o(
|
|
2341
|
-
closable: o(
|
|
2342
|
-
"onClick:close": (
|
|
2382
|
+
variant: o(l) ? "tonal" : "text",
|
|
2383
|
+
closable: o(l),
|
|
2384
|
+
"onClick:close": (ie) => H(D.value)
|
|
2343
2385
|
}, {
|
|
2344
|
-
prepend:
|
|
2345
|
-
var
|
|
2386
|
+
prepend: g(() => {
|
|
2387
|
+
var ie;
|
|
2346
2388
|
return [
|
|
2347
|
-
(
|
|
2389
|
+
(ie = D.raw) != null && ie.icon ? (C(), x(o(ge), {
|
|
2348
2390
|
key: 0,
|
|
2349
2391
|
class: "me-1",
|
|
2350
|
-
name:
|
|
2351
|
-
}, null, 8, ["name"])) :
|
|
2392
|
+
name: D.raw.icon
|
|
2393
|
+
}, null, 8, ["name"])) : U("", !0)
|
|
2352
2394
|
];
|
|
2353
2395
|
}),
|
|
2354
|
-
default:
|
|
2355
|
-
|
|
2356
|
-
class:
|
|
2357
|
-
},
|
|
2396
|
+
default: g(() => [
|
|
2397
|
+
oe("span", {
|
|
2398
|
+
class: re({ "text-body-1": !o(l) })
|
|
2399
|
+
}, Pe(D.title), 3)
|
|
2358
2400
|
]),
|
|
2359
2401
|
_: 2
|
|
2360
2402
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
2361
2403
|
]),
|
|
2362
|
-
item:
|
|
2363
|
-
|
|
2364
|
-
prepend:
|
|
2365
|
-
var
|
|
2404
|
+
item: g(({ props: D, item: ie }) => [
|
|
2405
|
+
I(Q, J(ee(D)), {
|
|
2406
|
+
prepend: g(() => {
|
|
2407
|
+
var xe;
|
|
2366
2408
|
return [
|
|
2367
|
-
(
|
|
2368
|
-
|
|
2409
|
+
(xe = ie.raw) != null && xe.icon ? (C(), W("span", Qo, [
|
|
2410
|
+
I(o(ge), {
|
|
2369
2411
|
class: "action-icon",
|
|
2370
|
-
name:
|
|
2412
|
+
name: ie.raw.icon
|
|
2371
2413
|
}, null, 8, ["name"])
|
|
2372
|
-
])) :
|
|
2414
|
+
])) : U("", !0)
|
|
2373
2415
|
];
|
|
2374
2416
|
}),
|
|
2375
2417
|
_: 2
|
|
2376
2418
|
}, 1040)
|
|
2377
2419
|
]),
|
|
2378
|
-
message:
|
|
2379
|
-
|
|
2380
|
-
message:
|
|
2381
|
-
errors: o(
|
|
2420
|
+
message: g(({ message: D }) => [
|
|
2421
|
+
I(o(le), {
|
|
2422
|
+
message: D,
|
|
2423
|
+
errors: o(m)
|
|
2382
2424
|
}, null, 8, ["message", "errors"])
|
|
2383
2425
|
]),
|
|
2384
2426
|
_: 2
|
|
2385
2427
|
}, [
|
|
2386
|
-
o(
|
|
2428
|
+
o(b).icon ? {
|
|
2387
2429
|
name: "label",
|
|
2388
|
-
fn:
|
|
2389
|
-
|
|
2390
|
-
data:
|
|
2391
|
-
label: o(
|
|
2430
|
+
fn: g((D) => [
|
|
2431
|
+
I(o(ae), {
|
|
2432
|
+
data: D,
|
|
2433
|
+
label: o(b)
|
|
2392
2434
|
}, null, 8, ["data", "label"])
|
|
2393
2435
|
]),
|
|
2394
2436
|
key: "0"
|
|
2395
2437
|
} : void 0,
|
|
2396
|
-
|
|
2438
|
+
B.$slots["append-inner"] ? {
|
|
2397
2439
|
name: "append-inner",
|
|
2398
|
-
fn:
|
|
2399
|
-
|
|
2440
|
+
fn: g((D) => [
|
|
2441
|
+
se(B.$slots, "append-inner", J(ee(D)))
|
|
2400
2442
|
]),
|
|
2401
2443
|
key: "1"
|
|
2402
2444
|
} : void 0,
|
|
2403
|
-
|
|
2445
|
+
B.$slots["prepend-inner"] ? {
|
|
2404
2446
|
name: "prepend-inner",
|
|
2405
|
-
fn:
|
|
2406
|
-
|
|
2447
|
+
fn: g((D) => [
|
|
2448
|
+
se(B.$slots, "prepend-inner", J(ee(D)))
|
|
2407
2449
|
]),
|
|
2408
2450
|
key: "2"
|
|
2409
2451
|
} : void 0
|
|
2410
|
-
]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) :
|
|
2452
|
+
]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : U("", !0);
|
|
2411
2453
|
};
|
|
2412
2454
|
}
|
|
2413
|
-
}),
|
|
2455
|
+
}), Jo = /* @__PURE__ */ O({
|
|
2414
2456
|
__name: "df-text-area",
|
|
2415
|
-
props: /* @__PURE__ */
|
|
2457
|
+
props: /* @__PURE__ */ q({
|
|
2416
2458
|
rows: {},
|
|
2417
2459
|
maxRows: {},
|
|
2418
2460
|
control: {},
|
|
@@ -2426,68 +2468,72 @@ const ll = {
|
|
|
2426
2468
|
visibility: {},
|
|
2427
2469
|
cssClass: {},
|
|
2428
2470
|
clearable: { type: Boolean },
|
|
2429
|
-
passthroughAttrs: {}
|
|
2430
|
-
|
|
2471
|
+
passthroughAttrs: {},
|
|
2472
|
+
density: {},
|
|
2473
|
+
variant: {}
|
|
2474
|
+
}, M(S({}, Y), {
|
|
2431
2475
|
rows: void 0,
|
|
2432
2476
|
maxRows: void 0
|
|
2433
2477
|
})),
|
|
2434
2478
|
emits: ["update:modelValue", "click:clear"],
|
|
2435
2479
|
setup(e, { emit: t }) {
|
|
2436
|
-
const n = e,
|
|
2437
|
-
return (
|
|
2438
|
-
const
|
|
2439
|
-
return
|
|
2440
|
-
|
|
2480
|
+
const n = e, a = t, { densityClass: l, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, a), { cssClass: v, visibility: m } = Ce(n);
|
|
2481
|
+
return (b, c) => {
|
|
2482
|
+
const T = A("v-textarea");
|
|
2483
|
+
return C(), W("div", {
|
|
2484
|
+
class: re(["df-textarea-container", o(l)])
|
|
2485
|
+
}, [
|
|
2486
|
+
o(m) !== o(K).SUPPRESS ? (C(), x(T, R({
|
|
2441
2487
|
key: 0,
|
|
2442
2488
|
modelValue: o(i),
|
|
2443
|
-
"onUpdate:modelValue":
|
|
2489
|
+
"onUpdate:modelValue": c[0] || (c[0] = (_) => ne(i) ? i.value = _ : null),
|
|
2444
2490
|
class: [
|
|
2445
|
-
o(
|
|
2491
|
+
o(v),
|
|
2446
2492
|
{
|
|
2447
|
-
"d-none": o(
|
|
2448
|
-
invisible: o(
|
|
2493
|
+
"d-none": o(m) === o(K).HIDDEN,
|
|
2494
|
+
invisible: o(m) === o(K).INVISIBLE
|
|
2449
2495
|
}
|
|
2450
2496
|
],
|
|
2451
|
-
rows:
|
|
2452
|
-
"auto-grow": (
|
|
2453
|
-
"max-rows":
|
|
2454
|
-
}, o(
|
|
2455
|
-
onBlur:
|
|
2456
|
-
}),
|
|
2457
|
-
message:
|
|
2458
|
-
|
|
2459
|
-
message:
|
|
2460
|
-
errors: o(
|
|
2497
|
+
rows: b.rows,
|
|
2498
|
+
"auto-grow": (b.maxRows || 0) > 0,
|
|
2499
|
+
"max-rows": b.maxRows
|
|
2500
|
+
}, o(d), {
|
|
2501
|
+
onBlur: c[1] || (c[1] = (_) => p.value = !0)
|
|
2502
|
+
}), G({
|
|
2503
|
+
message: g(({ message: _ }) => [
|
|
2504
|
+
I(o(le), {
|
|
2505
|
+
message: _,
|
|
2506
|
+
errors: o(r)
|
|
2461
2507
|
}, null, 8, ["message", "errors"])
|
|
2462
2508
|
]),
|
|
2463
2509
|
_: 2
|
|
2464
2510
|
}, [
|
|
2465
|
-
o(
|
|
2511
|
+
o(s).icon ? {
|
|
2466
2512
|
name: "label",
|
|
2467
|
-
fn:
|
|
2468
|
-
|
|
2469
|
-
data:
|
|
2470
|
-
label: o(
|
|
2513
|
+
fn: g((_) => [
|
|
2514
|
+
I(o(ae), {
|
|
2515
|
+
data: _,
|
|
2516
|
+
label: o(s)
|
|
2471
2517
|
}, null, 8, ["data", "label"])
|
|
2472
2518
|
]),
|
|
2473
2519
|
key: "0"
|
|
2474
2520
|
} : void 0
|
|
2475
|
-
]), 1040, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) :
|
|
2476
|
-
]);
|
|
2521
|
+
]), 1040, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) : U("", !0)
|
|
2522
|
+
], 2);
|
|
2477
2523
|
};
|
|
2478
2524
|
}
|
|
2479
|
-
}),
|
|
2525
|
+
}), ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2480
2526
|
__proto__: null,
|
|
2481
|
-
DfActions:
|
|
2482
|
-
DfCheckbox:
|
|
2483
|
-
DfColor:
|
|
2484
|
-
DfDateTime:
|
|
2485
|
-
DfFile:
|
|
2486
|
-
DfInput:
|
|
2487
|
-
DfRtfEditor:
|
|
2488
|
-
DfSelect:
|
|
2489
|
-
DfTextArea:
|
|
2490
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2527
|
+
DfActions: Mo,
|
|
2528
|
+
DfCheckbox: Uo,
|
|
2529
|
+
DfColor: Oo,
|
|
2530
|
+
DfDateTime: Ro,
|
|
2531
|
+
DfFile: Wo,
|
|
2532
|
+
DfInput: zo,
|
|
2533
|
+
DfRtfEditor: qo,
|
|
2534
|
+
DfSelect: Zo,
|
|
2535
|
+
DfTextArea: Jo
|
|
2536
|
+
}, Symbol.toStringTag, { value: "Module" })), ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2491
2537
|
__proto__: null,
|
|
2492
2538
|
VAutocomplete: dn,
|
|
2493
2539
|
VBtn: mn,
|
|
@@ -2498,60 +2544,60 @@ const ll = {
|
|
|
2498
2544
|
VCombobox: vn,
|
|
2499
2545
|
VConfirmEdit: bn,
|
|
2500
2546
|
VDatePicker: gn,
|
|
2501
|
-
VField:
|
|
2502
|
-
VFileInput:
|
|
2503
|
-
VIcon:
|
|
2504
|
-
VImg:
|
|
2505
|
-
VInput:
|
|
2506
|
-
VListItem:
|
|
2547
|
+
VField: yn,
|
|
2548
|
+
VFileInput: wn,
|
|
2549
|
+
VIcon: jn,
|
|
2550
|
+
VImg: Cn,
|
|
2551
|
+
VInput: Tn,
|
|
2552
|
+
VListItem: _n,
|
|
2507
2553
|
VMenu: Bn,
|
|
2508
2554
|
VNumberInput: In,
|
|
2509
2555
|
VProgressLinear: Pn,
|
|
2510
2556
|
VRow: Vn,
|
|
2511
2557
|
VSelect: Dn,
|
|
2512
2558
|
VSwitch: xn,
|
|
2513
|
-
VTextField:
|
|
2514
|
-
VTextarea:
|
|
2559
|
+
VTextField: $n,
|
|
2560
|
+
VTextarea: Sn,
|
|
2515
2561
|
VTimePicker: En
|
|
2516
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2562
|
+
}, Symbol.toStringTag, { value: "Module" })), Aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2517
2563
|
__proto__: null
|
|
2518
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2564
|
+
}, Symbol.toStringTag, { value: "Module" })), Na = {
|
|
2519
2565
|
install: (e, t) => {
|
|
2520
|
-
var n,
|
|
2521
|
-
e.use(Kn), e.provide(
|
|
2566
|
+
var n, a;
|
|
2567
|
+
e.use(Kn), e.provide(et, t != null ? t : {}), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(ea).map(([l, r]) => e.component(l, r)), (a = t == null ? void 0 : t.registerVuetifyComponents) != null && a && Object.entries(ta).map(([l, r]) => e.component(l, r));
|
|
2522
2568
|
}
|
|
2523
2569
|
};
|
|
2524
2570
|
export {
|
|
2525
|
-
|
|
2526
|
-
|
|
2571
|
+
Ve as Action,
|
|
2572
|
+
z as ActionDisplayStyle,
|
|
2527
2573
|
Po as DateTimeLocaleConfig,
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2574
|
+
Mo as DfActions,
|
|
2575
|
+
Uo as DfCheckbox,
|
|
2576
|
+
Oo as DfColor,
|
|
2577
|
+
Ro as DfDateTime,
|
|
2578
|
+
Wo as DfFile,
|
|
2579
|
+
zo as DfInput,
|
|
2580
|
+
Aa as DfInputComponentProps,
|
|
2581
|
+
ea as DfInputComponents,
|
|
2582
|
+
ae as DfLabel,
|
|
2583
|
+
qo as DfRtfEditor,
|
|
2584
|
+
Zo as DfSelect,
|
|
2585
|
+
Jo as DfTextArea,
|
|
2586
|
+
Na as DynamicFormsInputs,
|
|
2587
|
+
De as InputBase,
|
|
2588
|
+
xo as Label,
|
|
2543
2589
|
le as MessagesWidget,
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2590
|
+
No as ResponsiveActionRenderOptions,
|
|
2591
|
+
$o as ResponsiveRenderOptions,
|
|
2592
|
+
ta as VuetifyComponents,
|
|
2593
|
+
Y as defaultBaseProps,
|
|
2594
|
+
We as defaultDisplayStyle,
|
|
2595
|
+
Eo as getBreakpointName,
|
|
2596
|
+
ze as responsiveBreakpoints,
|
|
2597
|
+
he as translatableStrings,
|
|
2598
|
+
Ea as translateStrings,
|
|
2599
|
+
Ao as useBreakpoint,
|
|
2600
|
+
X as useInputBase,
|
|
2601
|
+
et as vuetifyInputsSettingsKey
|
|
2556
2602
|
};
|
|
2557
2603
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|