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