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