@dynamicforms/vuetify-inputs 0.2.2 → 0.2.4
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 +667 -650
- package/dist/dynamicforms-vuetify-inputs.js.map +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs +14 -14
- package/dist/dynamicforms-vuetify-inputs.umd.cjs.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Me = Object.defineProperty, He = Object.defineProperties;
|
|
2
|
+
var je = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ge = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var ze = Object.prototype.hasOwnProperty, Ke = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var re = (t, e, l) => e in t ? Me(t, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[e] = l, N = (t, e) => {
|
|
6
6
|
for (var l in e || (e = {}))
|
|
7
|
-
|
|
7
|
+
ze.call(e, l) && re(t, l, e[l]);
|
|
8
8
|
if (ge)
|
|
9
9
|
for (var l of ge(e))
|
|
10
|
-
|
|
10
|
+
Ke.call(e, l) && re(t, l, e[l]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
13
|
-
var Y = (t, e, l) =>
|
|
12
|
+
}, R = (t, e) => He(t, je(e));
|
|
13
|
+
var Y = (t, e, l) => re(t, typeof e != "symbol" ? e + "" : e, l);
|
|
14
14
|
var oe = (t, e, l) => new Promise((i, o) => {
|
|
15
|
-
var a = (
|
|
15
|
+
var a = (v) => {
|
|
16
16
|
try {
|
|
17
|
-
c(l.next(
|
|
18
|
-
} catch (
|
|
19
|
-
o(
|
|
17
|
+
c(l.next(v));
|
|
18
|
+
} catch (s) {
|
|
19
|
+
o(s);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, f = (v) => {
|
|
22
22
|
try {
|
|
23
|
-
c(l.throw(
|
|
24
|
-
} catch (
|
|
25
|
-
o(
|
|
23
|
+
c(l.throw(v));
|
|
24
|
+
} catch (s) {
|
|
25
|
+
o(s);
|
|
26
26
|
}
|
|
27
|
-
}, c = (
|
|
27
|
+
}, c = (v) => v.done ? i(v.value) : Promise.resolve(v.value).then(a, f);
|
|
28
28
|
c((l = l.apply(t, e)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as he from "vue";
|
|
31
|
-
import { defineComponent as U, mergeModels as ye, useModel as
|
|
32
|
-
import { debounce as
|
|
33
|
-
import
|
|
34
|
-
import { useDisplay as
|
|
35
|
-
import Ce, { ValidationErrorRenderContent as
|
|
36
|
-
import
|
|
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
|
|
51
|
-
import { VListItem as
|
|
31
|
+
import { defineComponent as U, mergeModels as ye, useModel as Ge, ref as S, watch as ee, onMounted as Ae, markRaw as We, onBeforeUnmount as Se, createBlock as k, openBlock as h, resolveDynamicComponent as te, version as Xe, computed as w, createElementBlock as $, Fragment as De, renderList as Ne, normalizeClass as le, toDisplayString as q, unref as n, mergeProps as M, withCtx as _, createTextVNode as $e, resolveComponent as I, createCommentVNode as E, createVNode as T, createSlots as qe, renderSlot as Ze, isRef as K, withModifiers as Ye, mergeDefaults as j, createElementVNode as Z, normalizeStyle as ve, toRefs as ie, withKeys as _e, 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 we, isNaN as ke, isArray as Te, castArray as Fe, first as Le } from "lodash-es";
|
|
33
|
+
import pe from "vue-ionicon";
|
|
34
|
+
import { useDisplay as ot } from "vuetify";
|
|
35
|
+
import Ce, { ValidationErrorRenderContent as at, DisplayMode as O, ExecuteAction as it, Action as ue } from "@dynamicforms/vue-forms";
|
|
36
|
+
import st from "vue-markdown-render";
|
|
37
|
+
import { format as Q, parse as rt } from "date-fns";
|
|
38
|
+
import { AccessibilityHelp as ut, Alignment as dt, AutoImage as ct, 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 Vt, ImageBlock as wt, ImageCaption as kt, ImageInline as Tt, ImageInsertViaUrl as Ct, ImageResize as It, ImageStyle as Bt, ImageToolbar as xt, ImageUpload as At, Indent as St, IndentBlock as Dt, Italic as Nt, Link as $t, List as Et, Autoformat as Ut, MediaEmbed as Ft, Paragraph as Lt, 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 sl } from "vuetify/components/VGrid";
|
|
49
|
+
import { VIcon as rl } from "vuetify/components/VIcon";
|
|
50
|
+
import { VInput as ul } from "vuetify/components/VInput";
|
|
51
|
+
import { VListItem as dl } from "vuetify/components/VList";
|
|
52
52
|
import { VMenu as cl } from "vuetify/components/VMenu";
|
|
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
|
|
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
|
|
75
|
+
return R(N({}, t), {
|
|
76
76
|
extraPlugins: [
|
|
77
77
|
...l,
|
|
78
78
|
...e.filter((i) => !l.includes(i))
|
|
@@ -83,7 +83,7 @@ function hl(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
|
/**
|
|
@@ -93,15 +93,15 @@ function Le(t) {
|
|
|
93
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 Vl(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 _l(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
|
|
117
|
+
function wl(t) {
|
|
118
118
|
if (Re(t))
|
|
119
119
|
return 3;
|
|
120
|
-
const { major: e } =
|
|
120
|
+
const { major: e } = Vl(t);
|
|
121
121
|
switch (!0) {
|
|
122
122
|
case e >= 44:
|
|
123
123
|
return 3;
|
|
@@ -131,9 +131,9 @@ function Vl(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 wl() {
|
|
|
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 ? wl(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 Pe(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,28 +176,28 @@ function Tl(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
|
|
200
|
+
const de = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", xl = 300, Al = /* @__PURE__ */ U({
|
|
201
201
|
name: "CKEditor",
|
|
202
202
|
__name: "ckeditor",
|
|
203
203
|
props: /* @__PURE__ */ ye({
|
|
@@ -212,49 +212,49 @@ const ue = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Bl = 300, xl =
|
|
|
212
212
|
}),
|
|
213
213
|
emits: /* @__PURE__ */ ye(["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 = S(), c = S(), v = S();
|
|
216
216
|
e({
|
|
217
217
|
instance: c,
|
|
218
|
-
lastEditorData:
|
|
219
|
-
}), ee(i, (
|
|
220
|
-
c.value &&
|
|
221
|
-
}), ee(() => o.disabled, (
|
|
222
|
-
|
|
218
|
+
lastEditorData: v
|
|
219
|
+
}), ee(i, (u) => {
|
|
220
|
+
c.value && u !== v.value && c.value.data.set(u);
|
|
221
|
+
}), ee(() => o.disabled, (u) => {
|
|
222
|
+
u ? c.value.enableReadOnlyMode(de) : c.value.disableReadOnlyMode(de);
|
|
223
223
|
});
|
|
224
|
-
function
|
|
225
|
-
const
|
|
226
|
-
if (!
|
|
224
|
+
function s() {
|
|
225
|
+
const u = window.CKEDITOR_VERSION;
|
|
226
|
+
if (!u)
|
|
227
227
|
return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
|
|
228
|
-
const [
|
|
229
|
-
|
|
228
|
+
const [r] = u.split(".").map(Number);
|
|
229
|
+
r >= 42 || u.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
230
230
|
}
|
|
231
|
-
function
|
|
232
|
-
const
|
|
231
|
+
function p(u) {
|
|
232
|
+
const r = et((d) => {
|
|
233
233
|
if (o.disableTwoWayDataBinding)
|
|
234
234
|
return;
|
|
235
|
-
const y =
|
|
236
|
-
a("update:modelValue", y,
|
|
237
|
-
},
|
|
238
|
-
|
|
239
|
-
a("focus",
|
|
240
|
-
}),
|
|
241
|
-
a("blur",
|
|
235
|
+
const y = v.value = u.data.get();
|
|
236
|
+
a("update:modelValue", y, d, u), a("input", y, d, u);
|
|
237
|
+
}, xl, { leading: !0 });
|
|
238
|
+
u.model.document.on("change:data", r), u.editing.view.document.on("focus", (d) => {
|
|
239
|
+
a("focus", d, u);
|
|
240
|
+
}), u.editing.view.document.on("blur", (d) => {
|
|
241
|
+
a("blur", d, u);
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
|
-
return
|
|
245
|
-
const
|
|
244
|
+
return s(), Ae(() => {
|
|
245
|
+
const u = Bl(
|
|
246
246
|
Object.assign({}, o.config)
|
|
247
247
|
);
|
|
248
|
-
i.value && (
|
|
249
|
-
c.value =
|
|
250
|
-
}).catch((
|
|
251
|
-
console.error(
|
|
248
|
+
i.value && (u.initialData = i.value), o.editor.create(f.value, u).then((r) => {
|
|
249
|
+
c.value = We(r), p(r), i.value !== u.initialData && r.data.set(i.value), o.disabled && r.enableReadOnlyMode(de), a("ready", r);
|
|
250
|
+
}).catch((r) => {
|
|
251
|
+
console.error(r);
|
|
252
252
|
});
|
|
253
|
-
}),
|
|
253
|
+
}), Se(() => {
|
|
254
254
|
c.value && (c.value.destroy(), c.value = void 0), a("destroy");
|
|
255
|
-
}), (
|
|
255
|
+
}), (u, r) => (h(), k(te(u.tagName), {
|
|
256
256
|
ref_key: "element",
|
|
257
|
-
ref:
|
|
257
|
+
ref: f
|
|
258
258
|
}, null, 512));
|
|
259
259
|
}
|
|
260
260
|
});
|
|
@@ -267,104 +267,104 @@ if (!he.version || !he.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 Sl = {
|
|
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
|
-
},
|
|
280
|
-
function
|
|
281
|
-
const l =
|
|
279
|
+
}, z = { enabled: void 0 };
|
|
280
|
+
function H(t, e) {
|
|
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(d) {
|
|
286
|
+
t.control && (t.control.value = d), e("update:modelValue", d);
|
|
287
287
|
}
|
|
288
288
|
});
|
|
289
289
|
if (t.control && !(t.control instanceof Ce.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 =
|
|
291
|
+
const i = w(() => t.control ? t.control.valid : !0), o = w(
|
|
292
|
+
() => t.control ? t.control.errors : (t.errors || []).map((d) => new at(d))
|
|
293
|
+
), a = w(() => o.value.length > 0 ? " " : void 0), f = w(() => t.control ? t.control.enabled : t.enabled !== !1), c = w(
|
|
294
294
|
() => t.control ? t.control.visibility : t.visibility || Ce.DisplayMode.FULL
|
|
295
|
-
),
|
|
295
|
+
), v = w(() => t.label || ""), s = w(() => t.placeholder || ""), p = w(() => t.helpText || ""), u = w(() => t.hint || ""), r = w(() => t.cssClass || "");
|
|
296
296
|
return {
|
|
297
297
|
value: l,
|
|
298
298
|
valid: i,
|
|
299
|
-
enabled:
|
|
299
|
+
enabled: f,
|
|
300
300
|
errors: o,
|
|
301
301
|
visibility: c,
|
|
302
|
-
vuetifyBindings:
|
|
303
|
-
var
|
|
302
|
+
vuetifyBindings: w(() => {
|
|
303
|
+
var d;
|
|
304
304
|
return {
|
|
305
|
-
name: (
|
|
306
|
-
class:
|
|
305
|
+
name: (d = t.control) == null ? void 0 : d.fieldName,
|
|
306
|
+
class: r.value,
|
|
307
307
|
density: "default",
|
|
308
308
|
variant: "underlined",
|
|
309
|
-
label:
|
|
309
|
+
label: v.value,
|
|
310
310
|
messages: a.value,
|
|
311
311
|
// 'error-count': errors?.value.length || 0,
|
|
312
|
-
readonly: !
|
|
313
|
-
disabled: !
|
|
314
|
-
placeholder:
|
|
315
|
-
"persistent-placeholder": !
|
|
316
|
-
hint:
|
|
312
|
+
readonly: !f.value,
|
|
313
|
+
disabled: !f.value,
|
|
314
|
+
placeholder: s.value,
|
|
315
|
+
"persistent-placeholder": !tt(s.value),
|
|
316
|
+
hint: u.value,
|
|
317
317
|
persistentHint: !0,
|
|
318
318
|
// we want persistent hint always
|
|
319
319
|
hideDetails: "auto",
|
|
320
320
|
// we want to hide the hint element when hint isn't there
|
|
321
|
-
helpText:
|
|
321
|
+
helpText: p.value
|
|
322
322
|
};
|
|
323
323
|
})
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
|
-
const
|
|
326
|
+
const Dl = {
|
|
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 === " " ? (
|
|
337
|
-
(
|
|
336
|
+
return (e, l) => e.message === " " ? (h(), $("div", Dl, [
|
|
337
|
+
(h(!0), $(De, null, Ne(e.errors, (i, o) => {
|
|
338
338
|
var a;
|
|
339
|
-
return
|
|
339
|
+
return h(), $("div", {
|
|
340
340
|
key: o,
|
|
341
341
|
class: le({ "first-error": o === 0, "last-error": o === e.errors.length - 1 })
|
|
342
342
|
}, [
|
|
343
|
-
i.componentName === "template" ? (
|
|
343
|
+
i.componentName === "template" ? (h(), $("div", Nl, q(i.componentBody), 1)) : i.componentName === "vue-markdown" ? (h(), k(n(st), {
|
|
344
344
|
key: 1,
|
|
345
345
|
source: (a = i.componentBindings) == null ? void 0 : a.source
|
|
346
|
-
}, null, 8, ["source"])) : (
|
|
346
|
+
}, null, 8, ["source"])) : (h(), k(te(i.componentName), M({
|
|
347
347
|
key: 2,
|
|
348
348
|
ref_for: !0
|
|
349
349
|
}, i.componentBindings), {
|
|
350
|
-
default:
|
|
351
|
-
|
|
350
|
+
default: _(() => [
|
|
351
|
+
$e(q(i.componentBody), 1)
|
|
352
352
|
]),
|
|
353
353
|
_: 2
|
|
354
354
|
}, 1040))
|
|
355
355
|
], 2);
|
|
356
356
|
}), 128))
|
|
357
|
-
])) : (
|
|
357
|
+
])) : (h(), $("span", $l, q(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
|
-
},
|
|
364
|
+
}, G = /* @__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 Sl = {
|
|
|
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:
|
|
385
|
-
return (
|
|
386
|
-
const
|
|
387
|
-
return n(
|
|
384
|
+
const l = t, i = e, { errors: o, value: a, visibility: f, vuetifyBindings: c } = H(l, i), v = w(() => n(l.clearable) && n(a));
|
|
385
|
+
return (s, p) => {
|
|
386
|
+
const u = I("v-icon"), r = I("v-input");
|
|
387
|
+
return n(f) !== n(O).SUPPRESS ? (h(), $("div", {
|
|
388
388
|
key: 0,
|
|
389
389
|
class: le([
|
|
390
|
-
|
|
390
|
+
s.cssClass,
|
|
391
391
|
{
|
|
392
|
-
"d-none": n(
|
|
393
|
-
invisible: n(
|
|
392
|
+
"d-none": n(f) === n(O).HIDDEN,
|
|
393
|
+
invisible: n(f) === n(O).INVISIBLE
|
|
394
394
|
}
|
|
395
395
|
])
|
|
396
396
|
}, [
|
|
397
|
-
n(c).label ? (
|
|
398
|
-
|
|
397
|
+
n(c).label ? (h(), $("label", Ul, q(n(c).label), 1)) : E("", !0),
|
|
398
|
+
T(r, {
|
|
399
399
|
hint: n(c).hint,
|
|
400
400
|
"persistent-hint": n(c).persistentHint,
|
|
401
401
|
"hide-details": n(c).hideDetails
|
|
402
|
-
},
|
|
403
|
-
message:
|
|
404
|
-
|
|
405
|
-
message:
|
|
402
|
+
}, qe({
|
|
403
|
+
message: _(({ message: d }) => [
|
|
404
|
+
T(G, {
|
|
405
|
+
message: d,
|
|
406
406
|
errors: n(o)
|
|
407
407
|
}, null, 8, ["message", "errors"])
|
|
408
408
|
]),
|
|
409
|
-
default:
|
|
410
|
-
|
|
409
|
+
default: _(() => [
|
|
410
|
+
Ze(s.$slots, "default")
|
|
411
411
|
]),
|
|
412
412
|
_: 2
|
|
413
413
|
}, [
|
|
414
|
-
|
|
414
|
+
v.value ? {
|
|
415
415
|
name: "append",
|
|
416
|
-
fn:
|
|
417
|
-
|
|
418
|
-
onClick:
|
|
416
|
+
fn: _(() => [
|
|
417
|
+
T(u, {
|
|
418
|
+
onClick: p[0] || (p[0] = (d) => i("click:clear"))
|
|
419
419
|
}, {
|
|
420
|
-
default:
|
|
421
|
-
|
|
420
|
+
default: _(() => p[1] || (p[1] = [
|
|
421
|
+
$e("mdi-close-circle")
|
|
422
422
|
])),
|
|
423
423
|
_: 1
|
|
424
424
|
})
|
|
@@ -426,11 +426,11 @@ const Sl = {
|
|
|
426
426
|
key: "0"
|
|
427
427
|
} : void 0
|
|
428
428
|
]), 1032, ["hint", "persistent-hint", "hide-details"])
|
|
429
|
-
], 2)) :
|
|
429
|
+
], 2)) : E("", !0);
|
|
430
430
|
};
|
|
431
431
|
}
|
|
432
432
|
});
|
|
433
|
-
var
|
|
433
|
+
var F = /* @__PURE__ */ ((t) => (t[t.BUTTON = 0] = "BUTTON", t[t.TEXT = 1] = "TEXT", t))(F || {});
|
|
434
434
|
const Ie = 0;
|
|
435
435
|
((t) => {
|
|
436
436
|
function e(o) {
|
|
@@ -447,10 +447,10 @@ const Ie = 0;
|
|
|
447
447
|
return Object.values(t).includes(a);
|
|
448
448
|
}
|
|
449
449
|
t.isDefined = i;
|
|
450
|
-
})(
|
|
451
|
-
Object.freeze(
|
|
450
|
+
})(F || (F = {}));
|
|
451
|
+
Object.freeze(F);
|
|
452
452
|
const Be = ["xs", "sm", "md", "lg", "xl"];
|
|
453
|
-
class
|
|
453
|
+
class Fl {
|
|
454
454
|
constructor(e) {
|
|
455
455
|
Y(this, "_value");
|
|
456
456
|
this._value = this.cleanBreakpoint(e, !0), e && Be.forEach((l) => {
|
|
@@ -462,29 +462,32 @@ class Ul {
|
|
|
462
462
|
const l = this.cleanBreakpoint(this._value), i = Object.keys(l);
|
|
463
463
|
for (const o of Be) {
|
|
464
464
|
const a = this._value[o];
|
|
465
|
-
for (const
|
|
466
|
-
(a == null ? void 0 : a[
|
|
465
|
+
for (const f of i)
|
|
466
|
+
(a == null ? void 0 : a[f]) != null && (l[f] = a[f]);
|
|
467
467
|
if (o === e) break;
|
|
468
468
|
}
|
|
469
469
|
return l;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
class
|
|
472
|
+
class Ll extends Fl {
|
|
473
473
|
// eslint-disable-next-line class-methods-use-this
|
|
474
474
|
cleanBreakpoint(e, l = !1) {
|
|
475
|
-
if ((!e || !
|
|
475
|
+
if ((!e || !lt(e)) && !l) return null;
|
|
476
476
|
const i = {};
|
|
477
|
-
return l && (i.renderAs =
|
|
477
|
+
return l && (i.renderAs = F.BUTTON, i.showLabel = !0, i.showIcon = !0), e && (e.renderAs != null && (i.renderAs = F.fromAny(e.renderAs)), me(e.label) && (i.label = e.label), Ve(e.showLabel) && (i.showLabel = e.showLabel), Ve(e.showIcon) && (i.showIcon = e.showIcon)), Object.keys(i).length ? i : null;
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
+
function xe(t) {
|
|
481
|
+
return t.xlAndUp.value ? "xl" : t.lgAndUp.value ? "lg" : t.mdAndUp.value ? "md" : t.smAndUp.value ? "sm" : "xs";
|
|
482
|
+
}
|
|
480
483
|
class ae {
|
|
481
484
|
constructor(e, l) {
|
|
482
485
|
Y(this, "name");
|
|
483
486
|
Y(this, "displayStyle");
|
|
484
487
|
Y(this, "formAction");
|
|
485
488
|
if (e.name == null) throw new Error(`Action name must not be empty ${e}`);
|
|
486
|
-
const i = !
|
|
487
|
-
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 Ll(N({ label: i }, e.displayStyle)), this.formAction = l, this.formAction.icon = o, this.formAction.label = i;
|
|
488
491
|
}
|
|
489
492
|
get label() {
|
|
490
493
|
var e;
|
|
@@ -505,11 +508,11 @@ class ae {
|
|
|
505
508
|
}
|
|
506
509
|
static makeFormAction(e) {
|
|
507
510
|
let l;
|
|
508
|
-
if (e instanceof
|
|
509
|
-
l =
|
|
511
|
+
if (e instanceof it)
|
|
512
|
+
l = ue.create().registerAction(e);
|
|
510
513
|
else if (e === void 0)
|
|
511
|
-
l =
|
|
512
|
-
else if (e instanceof
|
|
514
|
+
l = ue.create();
|
|
515
|
+
else if (e instanceof ue)
|
|
513
516
|
l = e;
|
|
514
517
|
else
|
|
515
518
|
throw new Error("actionOrExecuteHandler is not of any of supported types");
|
|
@@ -517,45 +520,45 @@ class ae {
|
|
|
517
520
|
}
|
|
518
521
|
static closeAction(e, l) {
|
|
519
522
|
return new ae(
|
|
520
|
-
|
|
523
|
+
N({
|
|
521
524
|
name: "close",
|
|
522
525
|
label: "Close",
|
|
523
526
|
// TODO: needs translation
|
|
524
527
|
icon: "close-outline",
|
|
525
|
-
displayStyle: { renderAs:
|
|
528
|
+
displayStyle: { renderAs: F.BUTTON, showLabel: !0, showIcon: !0 }
|
|
526
529
|
}, e),
|
|
527
530
|
this.makeFormAction(l)
|
|
528
531
|
);
|
|
529
532
|
}
|
|
530
533
|
static yesAction(e, l) {
|
|
531
534
|
return new ae(
|
|
532
|
-
|
|
535
|
+
N({
|
|
533
536
|
name: "yes",
|
|
534
537
|
label: "Yes",
|
|
535
538
|
// TODO: needs translation
|
|
536
539
|
icon: "thumbs-up-outline",
|
|
537
|
-
displayStyle: { renderAs:
|
|
540
|
+
displayStyle: { renderAs: F.BUTTON, showLabel: !0, showIcon: !0 }
|
|
538
541
|
}, e),
|
|
539
542
|
this.makeFormAction(l)
|
|
540
543
|
);
|
|
541
544
|
}
|
|
542
545
|
static noAction(e, l) {
|
|
543
546
|
return new ae(
|
|
544
|
-
|
|
547
|
+
N({
|
|
545
548
|
name: "no",
|
|
546
549
|
label: "No",
|
|
547
550
|
// TODO: needs translation
|
|
548
551
|
icon: "thumbs-down-outline",
|
|
549
|
-
displayStyle: { renderAs:
|
|
552
|
+
displayStyle: { renderAs: F.BUTTON, showLabel: !0, showIcon: !0 }
|
|
550
553
|
}, e),
|
|
551
554
|
this.makeFormAction(l)
|
|
552
555
|
);
|
|
553
556
|
}
|
|
554
557
|
}
|
|
555
|
-
const
|
|
558
|
+
const Pl = {
|
|
556
559
|
key: 1,
|
|
557
560
|
style: { width: ".5rem" }
|
|
558
|
-
}, Rl = { key: 2 },
|
|
561
|
+
}, Rl = { key: 2 }, Ol = /* @__PURE__ */ U({
|
|
559
562
|
__name: "df-actions",
|
|
560
563
|
props: {
|
|
561
564
|
actions: {},
|
|
@@ -563,66 +566,62 @@ const Ll = {
|
|
|
563
566
|
showAsGroup: { default: "no" }
|
|
564
567
|
},
|
|
565
568
|
setup(t) {
|
|
566
|
-
const e = t, l =
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
r["%breakpoint%"] = i(o);
|
|
573
|
-
for (const s of l.value)
|
|
574
|
-
r[s.name] = s.displayStyle.getOptionsForBreakpoint(i(o));
|
|
575
|
-
return r;
|
|
569
|
+
const e = t, l = K(e.actions) ? e.actions : S(e.actions), i = ot(), o = w(() => {
|
|
570
|
+
const s = {};
|
|
571
|
+
s["%breakpoint%"] = xe(i);
|
|
572
|
+
for (const p of l.value)
|
|
573
|
+
s[p.name] = p.displayStyle.getOptionsForBreakpoint(xe(i));
|
|
574
|
+
return s;
|
|
576
575
|
});
|
|
577
|
-
function
|
|
578
|
-
var
|
|
579
|
-
return (
|
|
576
|
+
function a(s) {
|
|
577
|
+
var p;
|
|
578
|
+
return (p = o.value[s.name].showIcon && s.iconAvailable) != null ? p : !0;
|
|
580
579
|
}
|
|
581
|
-
function
|
|
582
|
-
return
|
|
580
|
+
function f(s) {
|
|
581
|
+
return o.value[s.name].showLabel && s.labelAvailable ? !0 : !a(s);
|
|
583
582
|
}
|
|
584
|
-
function
|
|
585
|
-
var
|
|
586
|
-
return (
|
|
583
|
+
function c(s) {
|
|
584
|
+
var p;
|
|
585
|
+
return (p = o.value[s.name].renderAs) != null ? p : F.BUTTON;
|
|
587
586
|
}
|
|
588
|
-
function v(
|
|
589
|
-
var
|
|
590
|
-
return
|
|
587
|
+
function v(s) {
|
|
588
|
+
var p;
|
|
589
|
+
return s.labelAvailable ? (p = s.formAction.label) != null ? p : "" : s.name;
|
|
591
590
|
}
|
|
592
|
-
return (
|
|
593
|
-
const
|
|
594
|
-
return n(l).length > 0 ? (
|
|
591
|
+
return (s, p) => {
|
|
592
|
+
const u = I("v-btn");
|
|
593
|
+
return n(l).length > 0 ? (h(), $("div", {
|
|
595
594
|
key: 0,
|
|
596
595
|
class: le(["text-end", {
|
|
597
|
-
"button-group":
|
|
598
|
-
"with-border":
|
|
596
|
+
"button-group": s.showAsGroup === "grouped" || s.showAsGroup === "grouped-no-borders",
|
|
597
|
+
"with-border": s.showAsGroup === "grouped"
|
|
599
598
|
}])
|
|
600
599
|
}, [
|
|
601
|
-
(
|
|
602
|
-
key:
|
|
603
|
-
variant:
|
|
600
|
+
(h(!0), $(De, null, Ne(n(l), (r, d) => (h(), k(u, {
|
|
601
|
+
key: d,
|
|
602
|
+
variant: c(r) === n(F).BUTTON ? "tonal" : "text",
|
|
604
603
|
elevation: 0,
|
|
605
|
-
class: le(
|
|
606
|
-
size:
|
|
607
|
-
onClick:
|
|
604
|
+
class: le(d !== -1 ? "" : "ms-3"),
|
|
605
|
+
size: s.buttonSize,
|
|
606
|
+
onClick: Ye((y) => r.formAction.execute(y), ["stop"])
|
|
608
607
|
}, {
|
|
609
|
-
default:
|
|
610
|
-
|
|
608
|
+
default: _(() => [
|
|
609
|
+
a(r) ? (h(), k(n(pe), {
|
|
611
610
|
key: 0,
|
|
612
611
|
class: "action-icon",
|
|
613
|
-
name:
|
|
614
|
-
}, null, 8, ["name"])) :
|
|
615
|
-
|
|
616
|
-
|
|
612
|
+
name: r.formAction.icon
|
|
613
|
+
}, null, 8, ["name"])) : E("", !0),
|
|
614
|
+
a(r) && f(r) ? (h(), $("span", Pl)) : E("", !0),
|
|
615
|
+
f(r) ? (h(), $("span", Rl, q(v(r)), 1)) : E("", !0)
|
|
617
616
|
]),
|
|
618
617
|
_: 2
|
|
619
618
|
}, 1032, ["variant", "class", "size", "onClick"]))), 128))
|
|
620
|
-
], 2)) :
|
|
619
|
+
], 2)) : E("", !0);
|
|
621
620
|
};
|
|
622
621
|
}
|
|
623
|
-
}),
|
|
622
|
+
}), Ml = /* @__PURE__ */ ne(Ol, [["__scopeId", "data-v-d7ba6fac"]]), Hl = /* @__PURE__ */ U({
|
|
624
623
|
__name: "df-checkbox",
|
|
625
|
-
props: /* @__PURE__ */
|
|
624
|
+
props: /* @__PURE__ */ j({
|
|
626
625
|
allowNull: { type: Boolean },
|
|
627
626
|
control: {},
|
|
628
627
|
modelValue: {},
|
|
@@ -635,35 +634,35 @@ const Ll = {
|
|
|
635
634
|
visibility: {},
|
|
636
635
|
cssClass: {},
|
|
637
636
|
clearable: { type: Boolean }
|
|
638
|
-
},
|
|
637
|
+
}, R(N({}, z), { allowNull: !1 })),
|
|
639
638
|
emits: ["update:modelValue", "click:clear"],
|
|
640
639
|
setup(t, { emit: e }) {
|
|
641
|
-
const l = t, i = e, { errors: o, value: a, vuetifyBindings:
|
|
640
|
+
const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } = H(l, i), c = w(() => l.allowNull && a.value == null), v = w({
|
|
642
641
|
get() {
|
|
643
642
|
return a.value;
|
|
644
643
|
},
|
|
645
644
|
set() {
|
|
646
645
|
}
|
|
647
646
|
});
|
|
648
|
-
function
|
|
649
|
-
const
|
|
650
|
-
|
|
647
|
+
function s() {
|
|
648
|
+
const p = nt(a.value);
|
|
649
|
+
p === !0 ? a.value = l.allowNull ? null : !1 : a.value = p === !1;
|
|
651
650
|
}
|
|
652
|
-
return (
|
|
653
|
-
const
|
|
654
|
-
return
|
|
655
|
-
modelValue:
|
|
656
|
-
"onUpdate:modelValue":
|
|
657
|
-
}, n(
|
|
651
|
+
return (p, u) => {
|
|
652
|
+
const r = I("v-checkbox");
|
|
653
|
+
return h(), k(r, M({
|
|
654
|
+
modelValue: v.value,
|
|
655
|
+
"onUpdate:modelValue": u[0] || (u[0] = (d) => v.value = d)
|
|
656
|
+
}, n(f), {
|
|
658
657
|
density: "compact",
|
|
659
658
|
indeterminate: c.value,
|
|
660
659
|
"false-value": !1,
|
|
661
660
|
"true-value": !0,
|
|
662
|
-
onChange:
|
|
661
|
+
onChange: s
|
|
663
662
|
}), {
|
|
664
|
-
message:
|
|
665
|
-
|
|
666
|
-
message:
|
|
663
|
+
message: _(({ message: d }) => [
|
|
664
|
+
T(n(G), {
|
|
665
|
+
message: d,
|
|
667
666
|
errors: n(o)
|
|
668
667
|
}, null, 8, ["message", "errors"])
|
|
669
668
|
]),
|
|
@@ -671,9 +670,9 @@ const Ll = {
|
|
|
671
670
|
}, 16, ["modelValue", "indeterminate"]);
|
|
672
671
|
};
|
|
673
672
|
}
|
|
674
|
-
}),
|
|
673
|
+
}), jl = /* @__PURE__ */ U({
|
|
675
674
|
__name: "df-color",
|
|
676
|
-
props: /* @__PURE__ */
|
|
675
|
+
props: /* @__PURE__ */ j({
|
|
677
676
|
allowNull: { type: Boolean },
|
|
678
677
|
control: {},
|
|
679
678
|
modelValue: {},
|
|
@@ -686,58 +685,57 @@ const Ll = {
|
|
|
686
685
|
visibility: {},
|
|
687
686
|
cssClass: {},
|
|
688
687
|
clearable: { type: Boolean }
|
|
689
|
-
},
|
|
688
|
+
}, R(N({}, z), { allowNull: !1 })),
|
|
690
689
|
emits: ["update:modelValue", "click:clear"],
|
|
691
690
|
setup(t, { emit: e }) {
|
|
692
|
-
const l = t, i = e, { errors: o, value: a, vuetifyBindings:
|
|
693
|
-
(
|
|
691
|
+
const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } = H(l, i), c = S(!1), v = w(() => [
|
|
692
|
+
(s) => l.control || !s && l.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(s) ? !0 : "Not a valid hex string."
|
|
694
693
|
]);
|
|
695
|
-
return (
|
|
696
|
-
const
|
|
697
|
-
return
|
|
698
|
-
modelValue:
|
|
699
|
-
"onUpdate:modelValue":
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
"
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
type: "text",
|
|
711
|
-
rules: b.value
|
|
712
|
-
}), {
|
|
713
|
-
message: h(({ message: B }) => [
|
|
714
|
-
A(n(W), {
|
|
715
|
-
message: B,
|
|
716
|
-
errors: n(o)
|
|
717
|
-
}, null, 8, ["message", "errors"])
|
|
718
|
-
]),
|
|
719
|
-
"prepend-inner": h(() => [
|
|
720
|
-
q("div", {
|
|
721
|
-
style: fe([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: n(a) }])
|
|
722
|
-
}, null, 4)
|
|
723
|
-
]),
|
|
724
|
-
_: 2
|
|
725
|
-
}, 1040, ["modelValue", "clearable", "rules"])
|
|
694
|
+
return (s, p) => {
|
|
695
|
+
const u = I("v-color-picker"), r = I("v-menu"), d = I("v-text-field");
|
|
696
|
+
return h(), k(d, M({
|
|
697
|
+
modelValue: n(a),
|
|
698
|
+
"onUpdate:modelValue": p[2] || (p[2] = (y) => K(a) ? a.value = y : null)
|
|
699
|
+
}, n(f), {
|
|
700
|
+
clearable: s.allowNull,
|
|
701
|
+
type: "text",
|
|
702
|
+
rules: v.value
|
|
703
|
+
}), {
|
|
704
|
+
message: _(({ message: y }) => [
|
|
705
|
+
T(n(G), {
|
|
706
|
+
message: y,
|
|
707
|
+
errors: n(o)
|
|
708
|
+
}, null, 8, ["message", "errors"])
|
|
726
709
|
]),
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
710
|
+
"prepend-inner": _(() => [
|
|
711
|
+
Z("div", {
|
|
712
|
+
style: ve([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: n(a) }])
|
|
713
|
+
}, null, 4)
|
|
714
|
+
]),
|
|
715
|
+
default: _(() => [
|
|
716
|
+
T(r, {
|
|
717
|
+
modelValue: c.value,
|
|
718
|
+
"onUpdate:modelValue": p[1] || (p[1] = (y) => c.value = y),
|
|
719
|
+
"close-on-content-click": !1,
|
|
720
|
+
activator: "parent"
|
|
721
|
+
}, {
|
|
722
|
+
default: _(() => [
|
|
723
|
+
T(u, {
|
|
724
|
+
modelValue: n(a),
|
|
725
|
+
"onUpdate:modelValue": p[0] || (p[0] = (y) => K(a) ? a.value = y : null),
|
|
726
|
+
mode: "hexa"
|
|
727
|
+
}, null, 8, ["modelValue"])
|
|
728
|
+
]),
|
|
729
|
+
_: 1
|
|
730
|
+
}, 8, ["modelValue"])
|
|
733
731
|
]),
|
|
734
732
|
_: 1
|
|
735
|
-
},
|
|
733
|
+
}, 16, ["modelValue", "clearable", "rules"]);
|
|
736
734
|
};
|
|
737
735
|
}
|
|
738
|
-
}),
|
|
736
|
+
}), zl = { class: "d-flex w-100" }, Kl = /* @__PURE__ */ U({
|
|
739
737
|
__name: "df-datetime",
|
|
740
|
-
props: /* @__PURE__ */
|
|
738
|
+
props: /* @__PURE__ */ j({
|
|
741
739
|
inputType: {},
|
|
742
740
|
displayFormatDate: {},
|
|
743
741
|
displayFormatTime: {},
|
|
@@ -752,190 +750,208 @@ const Ll = {
|
|
|
752
750
|
visibility: {},
|
|
753
751
|
cssClass: {},
|
|
754
752
|
clearable: { type: Boolean }
|
|
755
|
-
},
|
|
753
|
+
}, R(N({}, z), {
|
|
756
754
|
inputType: "datetime",
|
|
757
755
|
displayFormatDate: "P",
|
|
758
756
|
displayFormatTime: "p"
|
|
759
757
|
})),
|
|
760
758
|
emits: ["update:modelValue", "click:clear"],
|
|
761
759
|
setup(t, { emit: e }) {
|
|
762
|
-
const l = t, i = e, { value: o, vuetifyBindings: a } =
|
|
760
|
+
const l = t, i = e, { value: o, vuetifyBindings: a } = H(l, i), { inputType: f, displayFormatDate: c, displayFormatTime: v } = ie(l), s = S(""), p = w({
|
|
761
|
+
get() {
|
|
762
|
+
return n(s) === "date";
|
|
763
|
+
},
|
|
764
|
+
set(g) {
|
|
765
|
+
s.value = g ? "date" : "";
|
|
766
|
+
}
|
|
767
|
+
}), u = w({
|
|
763
768
|
get() {
|
|
764
|
-
return n(
|
|
769
|
+
return n(s) === "time";
|
|
765
770
|
},
|
|
766
|
-
set(
|
|
767
|
-
|
|
771
|
+
set(g) {
|
|
772
|
+
s.value = g ? "time" : "";
|
|
768
773
|
}
|
|
769
|
-
}),
|
|
770
|
-
function
|
|
771
|
-
if (
|
|
774
|
+
}), r = (g) => `${Q(g, "yyyy-MM-dd")}T${Q(g, "HH:mm")}:00`, d = S(null);
|
|
775
|
+
function y(g, m) {
|
|
776
|
+
if (g == null)
|
|
772
777
|
d.value = null;
|
|
773
778
|
else if (m === -1)
|
|
774
|
-
if (n(
|
|
775
|
-
d.value =
|
|
779
|
+
if (n(f) === "time")
|
|
780
|
+
d.value = r(/* @__PURE__ */ new Date()), y(`T${g}`, 1);
|
|
776
781
|
else {
|
|
777
|
-
const
|
|
778
|
-
|
|
782
|
+
const C = r(new Date(g));
|
|
783
|
+
y(C, 0), y(C, 1);
|
|
779
784
|
}
|
|
780
785
|
else {
|
|
781
|
-
d.value == null && (d.value =
|
|
782
|
-
const
|
|
783
|
-
|
|
786
|
+
d.value == null && (d.value = r(/* @__PURE__ */ new Date()));
|
|
787
|
+
const C = d.value.split(/[TZ]/g), V = g.split(/[TZ]/g);
|
|
788
|
+
C[m] = V[m], d.value = r(/* @__PURE__ */ new Date(`${C[0]}T${C[1].split(".")[0]}`)), n(f) === "date" ? o.value = C[0] : n(f) === "time" ? o.value = C[1] : o.value = n(d) + Q(/* @__PURE__ */ new Date(), "XXX");
|
|
784
789
|
}
|
|
785
790
|
}
|
|
786
|
-
ee(o, (
|
|
787
|
-
const
|
|
791
|
+
ee(o, (g) => y(g, -1), { immediate: !0 });
|
|
792
|
+
const D = w({
|
|
788
793
|
get() {
|
|
789
|
-
const
|
|
790
|
-
if (
|
|
791
|
-
const m = new Date(
|
|
794
|
+
const g = n(d);
|
|
795
|
+
if (g == null) return null;
|
|
796
|
+
const m = new Date(g);
|
|
792
797
|
return Number.isNaN(m.getTime()) ? null : m;
|
|
793
798
|
},
|
|
794
|
-
set(
|
|
795
|
-
|
|
799
|
+
set(g) {
|
|
800
|
+
y(r(g), 0);
|
|
796
801
|
}
|
|
797
|
-
}),
|
|
802
|
+
}), L = w({
|
|
798
803
|
get() {
|
|
799
|
-
const
|
|
800
|
-
return
|
|
804
|
+
const g = n(d);
|
|
805
|
+
return g == null ? "" : g.split(/[TZ]/g)[1].split(".")[0];
|
|
801
806
|
},
|
|
802
|
-
set(
|
|
803
|
-
|
|
807
|
+
set(g) {
|
|
808
|
+
y(`T${g}`, 1);
|
|
804
809
|
}
|
|
805
|
-
}),
|
|
810
|
+
}), A = w({
|
|
806
811
|
get() {
|
|
807
|
-
const
|
|
808
|
-
return
|
|
812
|
+
const g = n(D);
|
|
813
|
+
return g == null ? "" : Q(g, n(c));
|
|
809
814
|
},
|
|
810
|
-
set(
|
|
815
|
+
set(g) {
|
|
811
816
|
try {
|
|
812
|
-
const m =
|
|
813
|
-
|
|
817
|
+
const m = rt(g, n(c), /* @__PURE__ */ new Date());
|
|
818
|
+
y(r(m), 0);
|
|
814
819
|
} catch (m) {
|
|
815
820
|
console.error(m);
|
|
816
821
|
}
|
|
817
822
|
}
|
|
818
|
-
}),
|
|
823
|
+
}), B = w({
|
|
819
824
|
get() {
|
|
820
|
-
const
|
|
821
|
-
return
|
|
825
|
+
const g = n(D);
|
|
826
|
+
return g == null ? "" : Q(g, n(v));
|
|
822
827
|
},
|
|
823
|
-
set(
|
|
824
|
-
const m =
|
|
828
|
+
set(g) {
|
|
829
|
+
const m = g.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
825
830
|
if (m == null) return;
|
|
826
|
-
let
|
|
827
|
-
const
|
|
828
|
-
ke(
|
|
831
|
+
let C = we(m[1]);
|
|
832
|
+
const V = we(m[2]);
|
|
833
|
+
ke(C) || ke(V) || (m[3] && m[3].toLowerCase() === "pm" && C < 13 && (C += 12), y(`T${C.toString().padStart(2, "0")}:${V.toString().padStart(2, "0")}:00`, 1));
|
|
829
834
|
}
|
|
830
835
|
});
|
|
831
|
-
return (
|
|
832
|
-
const
|
|
833
|
-
return
|
|
836
|
+
return (g, m) => {
|
|
837
|
+
const C = I("v-date-picker"), V = I("v-confirm-edit"), x = I("v-menu"), W = I("v-text-field"), se = I("v-time-picker");
|
|
838
|
+
return h(), k(n(be), M(l, {
|
|
834
839
|
clearable: "",
|
|
835
|
-
"onClick:clear": m[
|
|
840
|
+
"onClick:clear": m[14] || (m[14] = (b) => o.value = null)
|
|
836
841
|
}), {
|
|
837
|
-
default:
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
842
|
+
default: _(() => [
|
|
843
|
+
Z("div", zl, [
|
|
844
|
+
["date", "datetime"].includes(n(f)) ? (h(), k(W, {
|
|
845
|
+
key: 0,
|
|
846
|
+
modelValue: A.value,
|
|
847
|
+
"onUpdate:modelValue": m[4] || (m[4] = (b) => A.value = b),
|
|
848
|
+
style: { "flex-grow": "4" },
|
|
849
|
+
density: n(a).density,
|
|
850
|
+
variant: n(a).variant,
|
|
851
|
+
clearable: !1,
|
|
852
|
+
"hide-details": !0,
|
|
853
|
+
readonly: n(a).readonly,
|
|
854
|
+
disabled: n(a).disabled,
|
|
855
|
+
name: `${n(a).name}-date`,
|
|
856
|
+
onClick: m[5] || (m[5] = (b) => s.value = "date"),
|
|
857
|
+
onKeydown: m[6] || (m[6] = _e((b) => s.value = "date", ["space"]))
|
|
858
|
+
}, {
|
|
859
|
+
default: _(() => [
|
|
860
|
+
T(x, {
|
|
861
|
+
modelValue: p.value,
|
|
862
|
+
"onUpdate:modelValue": m[3] || (m[3] = (b) => p.value = b),
|
|
863
|
+
"close-on-content-click": !1,
|
|
864
|
+
activator: "parent"
|
|
865
|
+
}, {
|
|
866
|
+
default: _(() => [
|
|
867
|
+
T(V, {
|
|
868
|
+
modelValue: D.value,
|
|
869
|
+
"onUpdate:modelValue": m[0] || (m[0] = (b) => D.value = b),
|
|
870
|
+
onCancel: m[1] || (m[1] = (b) => s.value = ""),
|
|
871
|
+
onSave: m[2] || (m[2] = (b) => s.value = "")
|
|
872
|
+
}, {
|
|
873
|
+
default: _(({ model: b, actions: P }) => [
|
|
874
|
+
T(C, {
|
|
875
|
+
modelValue: b.value,
|
|
876
|
+
"onUpdate:modelValue": (X) => b.value = X,
|
|
877
|
+
"hide-header": !0,
|
|
878
|
+
"first-day-of-week": 1,
|
|
879
|
+
"show-adjacent-months": !0,
|
|
880
|
+
"show-week": !0
|
|
881
|
+
}, {
|
|
882
|
+
actions: _(() => [
|
|
883
|
+
(h(), k(te(P)))
|
|
884
|
+
]),
|
|
885
|
+
_: 2
|
|
886
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
887
|
+
]),
|
|
888
|
+
_: 1
|
|
889
|
+
}, 8, ["modelValue"])
|
|
890
|
+
]),
|
|
891
|
+
_: 1
|
|
892
|
+
}, 8, ["modelValue"])
|
|
893
|
+
]),
|
|
894
|
+
_: 1
|
|
895
|
+
}, 8, ["modelValue", "density", "variant", "readonly", "disabled", "name"])) : E("", !0),
|
|
896
|
+
["time", "datetime"].includes(n(f)) ? (h(), k(W, {
|
|
897
|
+
key: 1,
|
|
898
|
+
modelValue: B.value,
|
|
899
|
+
"onUpdate:modelValue": m[11] || (m[11] = (b) => B.value = b),
|
|
900
|
+
style: { "flex-grow": "3" },
|
|
901
|
+
density: n(a).density,
|
|
902
|
+
variant: n(a).variant,
|
|
903
|
+
clearable: !1,
|
|
904
|
+
"hide-details": !0,
|
|
905
|
+
readonly: n(a).readonly,
|
|
906
|
+
disabled: n(a).disabled,
|
|
907
|
+
name: `${n(a).name}-time`,
|
|
908
|
+
onClick: m[12] || (m[12] = (b) => s.value = "time"),
|
|
909
|
+
onKeydown: m[13] || (m[13] = _e((b) => s.value = "time", ["space"]))
|
|
910
|
+
}, {
|
|
911
|
+
default: _(() => [
|
|
912
|
+
T(x, {
|
|
913
|
+
modelValue: u.value,
|
|
914
|
+
"onUpdate:modelValue": m[10] || (m[10] = (b) => u.value = b),
|
|
915
|
+
"close-on-content-click": !1,
|
|
916
|
+
activator: "parent"
|
|
917
|
+
}, {
|
|
918
|
+
default: _(() => [
|
|
919
|
+
T(V, {
|
|
920
|
+
modelValue: L.value,
|
|
921
|
+
"onUpdate:modelValue": m[7] || (m[7] = (b) => L.value = b),
|
|
922
|
+
onCancel: m[8] || (m[8] = (b) => s.value = ""),
|
|
923
|
+
onSave: m[9] || (m[9] = (b) => s.value = "")
|
|
924
|
+
}, {
|
|
925
|
+
default: _(({ model: b, actions: P }) => [
|
|
926
|
+
T(se, {
|
|
927
|
+
modelValue: b.value,
|
|
928
|
+
"onUpdate:modelValue": (X) => b.value = X,
|
|
929
|
+
"hide-header": !0,
|
|
930
|
+
format: "24hr"
|
|
931
|
+
}, {
|
|
932
|
+
actions: _(() => [
|
|
933
|
+
(h(), k(te(P)))
|
|
934
|
+
]),
|
|
935
|
+
_: 2
|
|
936
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
937
|
+
]),
|
|
938
|
+
_: 1
|
|
939
|
+
}, 8, ["modelValue"])
|
|
940
|
+
]),
|
|
941
|
+
_: 1
|
|
942
|
+
}, 8, ["modelValue"])
|
|
943
|
+
]),
|
|
944
|
+
_: 1
|
|
945
|
+
}, 8, ["modelValue", "density", "variant", "readonly", "disabled", "name"])) : E("", !0)
|
|
946
|
+
])
|
|
931
947
|
]),
|
|
932
948
|
_: 1
|
|
933
949
|
}, 16);
|
|
934
950
|
};
|
|
935
951
|
}
|
|
936
|
-
}),
|
|
952
|
+
}), Gl = { style: { position: "relative", width: "100%" } }, Wl = /* @__PURE__ */ U({
|
|
937
953
|
__name: "df-file",
|
|
938
|
-
props: /* @__PURE__ */
|
|
954
|
+
props: /* @__PURE__ */ j({
|
|
939
955
|
comms: {},
|
|
940
956
|
control: {},
|
|
941
957
|
modelValue: {},
|
|
@@ -948,66 +964,66 @@ const Ll = {
|
|
|
948
964
|
visibility: {},
|
|
949
965
|
cssClass: {},
|
|
950
966
|
clearable: { type: Boolean }
|
|
951
|
-
},
|
|
967
|
+
}, z),
|
|
952
968
|
emits: ["update:modelValue", "click:clear"],
|
|
953
969
|
setup(t, { emit: e }) {
|
|
954
|
-
const l = t, i = e, { value: o, vuetifyBindings: a } =
|
|
955
|
-
function
|
|
956
|
-
|
|
970
|
+
const l = t, i = e, { value: o, vuetifyBindings: a } = H(l, i), f = S(null), c = S(null), v = S(0), s = S(Math.round(Math.random() * 1e3)), p = S(), u = w(() => !p.value && o.value ? l.modelValue : "");
|
|
971
|
+
function r() {
|
|
972
|
+
f.value && window.clearInterval(f.value);
|
|
957
973
|
}
|
|
958
|
-
function
|
|
959
|
-
|
|
974
|
+
function d() {
|
|
975
|
+
r(), f.value = window.setInterval(() => {
|
|
960
976
|
o.value && l.comms.touch(o.value);
|
|
961
977
|
}, 60 * 1e3);
|
|
962
978
|
}
|
|
963
|
-
|
|
964
|
-
|
|
979
|
+
Se(() => r()), ee(o, (A) => {
|
|
980
|
+
A ? d() : r();
|
|
965
981
|
});
|
|
966
982
|
function y() {
|
|
967
983
|
return oe(this, null, function* () {
|
|
968
|
-
o.value && (yield l.comms.delete(o.value)), o.value = null,
|
|
984
|
+
o.value && (yield l.comms.delete(o.value)), o.value = null, v.value = 0, s.value = Math.round(Math.random() * 1e3), c.value = null, p.value = null, r();
|
|
969
985
|
});
|
|
970
986
|
}
|
|
971
|
-
function
|
|
987
|
+
function D(A) {
|
|
972
988
|
return oe(this, null, function* () {
|
|
973
|
-
|
|
989
|
+
v.value = -1, c.value = A;
|
|
974
990
|
try {
|
|
975
991
|
o.value = yield l.comms.upload(
|
|
976
|
-
|
|
977
|
-
(
|
|
978
|
-
|
|
992
|
+
A,
|
|
993
|
+
(B, g) => {
|
|
994
|
+
v.value = Math.round(B * 100 / g);
|
|
979
995
|
}
|
|
980
|
-
),
|
|
981
|
-
} catch (
|
|
982
|
-
throw
|
|
996
|
+
), v.value = 100, d();
|
|
997
|
+
} catch (B) {
|
|
998
|
+
throw v.value = 0, c.value = null, s.value = Math.round(Math.random() * 1e3), p.value = null, B;
|
|
983
999
|
}
|
|
984
1000
|
});
|
|
985
1001
|
}
|
|
986
|
-
function
|
|
987
|
-
|
|
1002
|
+
function L(A) {
|
|
1003
|
+
A && (Array.isArray(A) ? console.error("Uploading multiple files not supported right now") : D(A));
|
|
988
1004
|
}
|
|
989
|
-
return (
|
|
990
|
-
const
|
|
991
|
-
return
|
|
1005
|
+
return (A, B) => {
|
|
1006
|
+
const g = I("v-progress-linear"), m = I("v-file-input");
|
|
1007
|
+
return h(), k(n(be), M(l, {
|
|
992
1008
|
clearable: "",
|
|
993
1009
|
"onClick:clear": y
|
|
994
1010
|
}), {
|
|
995
|
-
default:
|
|
996
|
-
|
|
997
|
-
c.value &&
|
|
1011
|
+
default: _(() => [
|
|
1012
|
+
Z("div", Gl, [
|
|
1013
|
+
c.value && v.value < 100 ? (h(), k(g, {
|
|
998
1014
|
key: 0,
|
|
999
|
-
"model-value":
|
|
1000
|
-
indeterminate:
|
|
1015
|
+
"model-value": v.value,
|
|
1016
|
+
indeterminate: v.value === -1,
|
|
1001
1017
|
height: "10",
|
|
1002
1018
|
style: { position: "absolute", top: "50%", transform: "translateY(-50%)", width: "100%" }
|
|
1003
|
-
}, null, 8, ["model-value", "indeterminate"])) :
|
|
1004
|
-
|
|
1005
|
-
modelValue:
|
|
1019
|
+
}, null, 8, ["model-value", "indeterminate"])) : E("", !0),
|
|
1020
|
+
T(m, {
|
|
1021
|
+
modelValue: p.value,
|
|
1006
1022
|
"onUpdate:modelValue": [
|
|
1007
|
-
|
|
1008
|
-
|
|
1023
|
+
B[0] || (B[0] = (C) => p.value = C),
|
|
1024
|
+
L
|
|
1009
1025
|
],
|
|
1010
|
-
label:
|
|
1026
|
+
label: u.value,
|
|
1011
1027
|
density: n(a).density,
|
|
1012
1028
|
variant: n(a).variant,
|
|
1013
1029
|
readonly: n(a).readonly,
|
|
@@ -1016,7 +1032,7 @@ const Ll = {
|
|
|
1016
1032
|
"hide-details": !0,
|
|
1017
1033
|
"show-size": !0,
|
|
1018
1034
|
multiple: !1,
|
|
1019
|
-
style:
|
|
1035
|
+
style: ve(c.value && v.value < 100 ? "visibility: hidden" : ""),
|
|
1020
1036
|
clearable: !1
|
|
1021
1037
|
}, null, 8, ["modelValue", "label", "density", "variant", "readonly", "disabled", "name", "style"])
|
|
1022
1038
|
])
|
|
@@ -1025,9 +1041,9 @@ const Ll = {
|
|
|
1025
1041
|
}, 16);
|
|
1026
1042
|
};
|
|
1027
1043
|
}
|
|
1028
|
-
}),
|
|
1044
|
+
}), Xl = { class: "container" }, ql = /* @__PURE__ */ U({
|
|
1029
1045
|
__name: "df-input",
|
|
1030
|
-
props: /* @__PURE__ */
|
|
1046
|
+
props: /* @__PURE__ */ j({
|
|
1031
1047
|
inputType: {},
|
|
1032
1048
|
precision: {},
|
|
1033
1049
|
step: {},
|
|
@@ -1044,7 +1060,7 @@ const Ll = {
|
|
|
1044
1060
|
visibility: {},
|
|
1045
1061
|
cssClass: {},
|
|
1046
1062
|
clearable: { type: Boolean }
|
|
1047
|
-
},
|
|
1063
|
+
}, R(N({}, z), {
|
|
1048
1064
|
inputType: "text",
|
|
1049
1065
|
precision: null,
|
|
1050
1066
|
step: void 0,
|
|
@@ -1053,33 +1069,33 @@ const Ll = {
|
|
|
1053
1069
|
})),
|
|
1054
1070
|
emits: ["update:modelValue", "click:clear"],
|
|
1055
1071
|
setup(t, { emit: e }) {
|
|
1056
|
-
const l = t, i = e, { errors: o, value: a, vuetifyBindings:
|
|
1057
|
-
return (y,
|
|
1058
|
-
const
|
|
1059
|
-
return
|
|
1060
|
-
|
|
1072
|
+
const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } = H(l, i), { inputType: c, max: v, min: s, precision: p, step: u } = ie(l), r = w(() => c.value === "number"), d = w(() => r.value ? { min: n(s), max: n(v), precision: n(p), step: n(u) } : {});
|
|
1073
|
+
return (y, D) => {
|
|
1074
|
+
const L = I("v-text-field"), A = I("v-number-input");
|
|
1075
|
+
return h(), $("div", Xl, [
|
|
1076
|
+
r.value ? (h(), k(A, M({
|
|
1061
1077
|
key: 1,
|
|
1062
1078
|
modelValue: n(a),
|
|
1063
|
-
"onUpdate:modelValue":
|
|
1064
|
-
},
|
|
1079
|
+
"onUpdate:modelValue": D[1] || (D[1] = (B) => K(a) ? a.value = B : null)
|
|
1080
|
+
}, N(N({}, n(f)), d.value), {
|
|
1065
1081
|
density: "compact",
|
|
1066
1082
|
"control-variant": "stacked"
|
|
1067
1083
|
}), {
|
|
1068
|
-
message:
|
|
1069
|
-
|
|
1070
|
-
message:
|
|
1084
|
+
message: _(({ message: B }) => [
|
|
1085
|
+
T(n(G), {
|
|
1086
|
+
message: B,
|
|
1071
1087
|
errors: n(o)
|
|
1072
1088
|
}, null, 8, ["message", "errors"])
|
|
1073
1089
|
]),
|
|
1074
1090
|
_: 1
|
|
1075
|
-
}, 16, ["modelValue"])) : (
|
|
1091
|
+
}, 16, ["modelValue"])) : (h(), k(L, M({
|
|
1076
1092
|
key: 0,
|
|
1077
1093
|
modelValue: n(a),
|
|
1078
|
-
"onUpdate:modelValue":
|
|
1079
|
-
}, n(
|
|
1080
|
-
message:
|
|
1081
|
-
|
|
1082
|
-
message:
|
|
1094
|
+
"onUpdate:modelValue": D[0] || (D[0] = (B) => K(a) ? a.value = B : null)
|
|
1095
|
+
}, n(f), { type: n(c) }), {
|
|
1096
|
+
message: _(({ message: B }) => [
|
|
1097
|
+
T(n(G), {
|
|
1098
|
+
message: B,
|
|
1083
1099
|
errors: n(o)
|
|
1084
1100
|
}, null, 8, ["message", "errors"])
|
|
1085
1101
|
]),
|
|
@@ -1088,7 +1104,7 @@ const Ll = {
|
|
|
1088
1104
|
]);
|
|
1089
1105
|
};
|
|
1090
1106
|
}
|
|
1091
|
-
}),
|
|
1107
|
+
}), Zl = /* @__PURE__ */ ne(ql, [["__scopeId", "data-v-aa68213c"]]), Yl = { class: "editor-container" }, Ql = { class: "editor-container__editor" }, Jl = { ref: "editorElement" }, en = /* @__PURE__ */ U({
|
|
1092
1108
|
__name: "ck-editor-custom",
|
|
1093
1109
|
props: {
|
|
1094
1110
|
modelValue: { default: "" },
|
|
@@ -1097,10 +1113,10 @@ const Ll = {
|
|
|
1097
1113
|
},
|
|
1098
1114
|
emits: ["update:modelValue"],
|
|
1099
1115
|
setup(t, { expose: e, emit: l }) {
|
|
1100
|
-
|
|
1101
|
-
"3d4d5a06":
|
|
1116
|
+
Qe((u) => ({
|
|
1117
|
+
"3d4d5a06": u.minHeight
|
|
1102
1118
|
}));
|
|
1103
|
-
const i = l, o =
|
|
1119
|
+
const i = l, o = S(!1), a = Zt, s = {
|
|
1104
1120
|
toolbar: {
|
|
1105
1121
|
items: [
|
|
1106
1122
|
"undo",
|
|
@@ -1132,10 +1148,9 @@ const Ll = {
|
|
|
1132
1148
|
shouldNotGroupWhenFull: !1
|
|
1133
1149
|
},
|
|
1134
1150
|
plugins: [
|
|
1135
|
-
rt,
|
|
1136
1151
|
ut,
|
|
1137
|
-
ct,
|
|
1138
1152
|
dt,
|
|
1153
|
+
ct,
|
|
1139
1154
|
mt,
|
|
1140
1155
|
pt,
|
|
1141
1156
|
ft,
|
|
@@ -1162,8 +1177,8 @@ const Ll = {
|
|
|
1162
1177
|
Ut,
|
|
1163
1178
|
Ft,
|
|
1164
1179
|
Lt,
|
|
1165
|
-
Rt,
|
|
1166
1180
|
Pt,
|
|
1181
|
+
Rt,
|
|
1167
1182
|
Ot,
|
|
1168
1183
|
Mt,
|
|
1169
1184
|
Ht,
|
|
@@ -1172,7 +1187,8 @@ const Ll = {
|
|
|
1172
1187
|
Kt,
|
|
1173
1188
|
Gt,
|
|
1174
1189
|
Wt,
|
|
1175
|
-
Xt
|
|
1190
|
+
Xt,
|
|
1191
|
+
qt
|
|
1176
1192
|
],
|
|
1177
1193
|
balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
|
|
1178
1194
|
heading: {
|
|
@@ -1231,34 +1247,34 @@ const Ll = {
|
|
|
1231
1247
|
},
|
|
1232
1248
|
table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] }
|
|
1233
1249
|
};
|
|
1234
|
-
|
|
1250
|
+
Ae(() => {
|
|
1235
1251
|
o.value = !0;
|
|
1236
1252
|
});
|
|
1237
|
-
const
|
|
1253
|
+
const p = (u) => {
|
|
1238
1254
|
};
|
|
1239
|
-
return e({ onEditorReady:
|
|
1240
|
-
const
|
|
1241
|
-
return
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
o.value ? (
|
|
1255
|
+
return e({ onEditorReady: p }), (u, r) => {
|
|
1256
|
+
const d = I("ckeditor");
|
|
1257
|
+
return h(), $("div", Yl, [
|
|
1258
|
+
Z("div", Ql, [
|
|
1259
|
+
Z("div", Jl, [
|
|
1260
|
+
o.value ? (h(), k(d, {
|
|
1245
1261
|
key: 0,
|
|
1246
|
-
"model-value":
|
|
1262
|
+
"model-value": u.modelValue,
|
|
1247
1263
|
editor: n(a),
|
|
1248
|
-
config:
|
|
1249
|
-
disabled:
|
|
1250
|
-
style:
|
|
1251
|
-
onReady:
|
|
1252
|
-
"onUpdate:modelValue":
|
|
1253
|
-
}, null, 8, ["model-value", "editor", "disabled", "style"])) :
|
|
1264
|
+
config: s,
|
|
1265
|
+
disabled: u.disabled,
|
|
1266
|
+
style: ve(`min-height: ${u.minHeight}`),
|
|
1267
|
+
onReady: p,
|
|
1268
|
+
"onUpdate:modelValue": r[0] || (r[0] = (y) => i("update:modelValue", y))
|
|
1269
|
+
}, null, 8, ["model-value", "editor", "disabled", "style"])) : E("", !0)
|
|
1254
1270
|
], 512)
|
|
1255
1271
|
])
|
|
1256
1272
|
]);
|
|
1257
1273
|
};
|
|
1258
1274
|
}
|
|
1259
|
-
}),
|
|
1275
|
+
}), tn = /* @__PURE__ */ U({
|
|
1260
1276
|
__name: "df-rtf-editor",
|
|
1261
|
-
props: /* @__PURE__ */
|
|
1277
|
+
props: /* @__PURE__ */ j({
|
|
1262
1278
|
minHeight: {},
|
|
1263
1279
|
control: {},
|
|
1264
1280
|
modelValue: {},
|
|
@@ -1271,17 +1287,17 @@ const Ll = {
|
|
|
1271
1287
|
visibility: {},
|
|
1272
1288
|
cssClass: {},
|
|
1273
1289
|
clearable: { type: Boolean }
|
|
1274
|
-
},
|
|
1290
|
+
}, R(N({}, z), { minHeight: void 0 })),
|
|
1275
1291
|
emits: ["update:modelValue", "click:clear"],
|
|
1276
1292
|
setup(t, { emit: e }) {
|
|
1277
|
-
const l = t, i = e, { value: o, vuetifyBindings: a } =
|
|
1278
|
-
return (
|
|
1279
|
-
default:
|
|
1280
|
-
|
|
1293
|
+
const l = t, i = e, { value: o, vuetifyBindings: a } = H(l, i);
|
|
1294
|
+
return (f, c) => (h(), k(n(be), Ee(Ue(l)), {
|
|
1295
|
+
default: _(() => [
|
|
1296
|
+
T(en, {
|
|
1281
1297
|
ref: "$editor",
|
|
1282
1298
|
modelValue: n(o),
|
|
1283
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1284
|
-
"min-height":
|
|
1299
|
+
"onUpdate:modelValue": c[0] || (c[0] = (v) => K(o) ? o.value = v : null),
|
|
1300
|
+
"min-height": f.minHeight,
|
|
1285
1301
|
disabled: n(a).disabled
|
|
1286
1302
|
}, null, 8, ["modelValue", "min-height", "disabled"])
|
|
1287
1303
|
]),
|
|
@@ -1289,40 +1305,40 @@ const Ll = {
|
|
|
1289
1305
|
}, 16));
|
|
1290
1306
|
}
|
|
1291
1307
|
});
|
|
1292
|
-
function
|
|
1308
|
+
function ln(t) {
|
|
1293
1309
|
return t.map((e) => ({ value: e.id, title: e.text, icon: e.icon }));
|
|
1294
1310
|
}
|
|
1295
1311
|
function J(t, e) {
|
|
1296
1312
|
var l;
|
|
1297
|
-
return t == null || Te(t) && t.length === 0 ? null : e ?
|
|
1313
|
+
return t == null || Te(t) && t.length === 0 ? null : e ? Fe(t) : Te(t) ? (l = Le(t)) != null ? l : null : t;
|
|
1298
1314
|
}
|
|
1299
|
-
function
|
|
1315
|
+
function fe(t, e) {
|
|
1300
1316
|
if (e == null) return [];
|
|
1301
|
-
const l =
|
|
1317
|
+
const l = Fe(e);
|
|
1302
1318
|
return t.filter((i) => l.some((o) => o === i.id));
|
|
1303
1319
|
}
|
|
1304
1320
|
function ce(t, e, l, i, o) {
|
|
1305
|
-
var
|
|
1321
|
+
var f;
|
|
1306
1322
|
const a = J(t, l);
|
|
1307
1323
|
if (a == null) {
|
|
1308
1324
|
e.value = l ? [] : null;
|
|
1309
1325
|
return;
|
|
1310
1326
|
}
|
|
1311
1327
|
if (l)
|
|
1312
|
-
i ? e.value = a : e.value =
|
|
1328
|
+
i ? e.value = a : e.value = fe(o, a).map((c) => c.id);
|
|
1313
1329
|
else if (i)
|
|
1314
1330
|
e.value = a;
|
|
1315
1331
|
else {
|
|
1316
|
-
const c =
|
|
1317
|
-
e.value = (
|
|
1332
|
+
const c = Le(fe(o, a));
|
|
1333
|
+
e.value = (f = c == null ? void 0 : c.id) != null ? f : null;
|
|
1318
1334
|
}
|
|
1319
1335
|
}
|
|
1320
|
-
const
|
|
1336
|
+
const nn = {
|
|
1321
1337
|
key: 0,
|
|
1322
1338
|
class: "me-1"
|
|
1323
|
-
},
|
|
1339
|
+
}, on = /* @__PURE__ */ U({
|
|
1324
1340
|
__name: "df-select",
|
|
1325
|
-
props: /* @__PURE__ */
|
|
1341
|
+
props: /* @__PURE__ */ j({
|
|
1326
1342
|
choices: {},
|
|
1327
1343
|
multiple: { type: Boolean },
|
|
1328
1344
|
allowTags: { type: Boolean },
|
|
@@ -1339,7 +1355,7 @@ const ln = {
|
|
|
1339
1355
|
visibility: {},
|
|
1340
1356
|
cssClass: {},
|
|
1341
1357
|
clearable: { type: Boolean }
|
|
1342
|
-
},
|
|
1358
|
+
}, R(N({}, z), {
|
|
1343
1359
|
choices: void 0,
|
|
1344
1360
|
multiple: !1,
|
|
1345
1361
|
allowTags: !1,
|
|
@@ -1348,131 +1364,131 @@ const ln = {
|
|
|
1348
1364
|
})),
|
|
1349
1365
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
1350
1366
|
setup(t, { emit: e }) {
|
|
1351
|
-
const l = t, { choices: i } = l, { multiple: o, allowTags: a, allowNull:
|
|
1352
|
-
function
|
|
1353
|
-
|
|
1367
|
+
const l = t, { choices: i } = l, { multiple: o, allowTags: a, allowNull: f, cssClass: c, visibility: v } = ie(l), s = e, { errors: p, value: u, vuetifyBindings: r } = H(l, s), d = S(null), y = S(i || []), D = S(!1), L = w(() => ln(y.value));
|
|
1368
|
+
function A(V) {
|
|
1369
|
+
s("update:modelValueDisplay", fe(y.value, V));
|
|
1354
1370
|
}
|
|
1355
|
-
ee(
|
|
1356
|
-
|
|
1357
|
-
const x = J(
|
|
1358
|
-
|
|
1371
|
+
ee(d, (V) => {
|
|
1372
|
+
r.value.readonly || Je(() => {
|
|
1373
|
+
const x = J(V, o.value);
|
|
1374
|
+
A(x), u.value = x;
|
|
1359
1375
|
});
|
|
1360
1376
|
}, { deep: !0 });
|
|
1361
|
-
function
|
|
1362
|
-
if (
|
|
1363
|
-
const
|
|
1364
|
-
ce(
|
|
1377
|
+
function B() {
|
|
1378
|
+
if (r.value.readonly || a.value) return;
|
|
1379
|
+
const V = J(d.value, o.value);
|
|
1380
|
+
ce(V, d, o.value, !1, y.value), u.value = V;
|
|
1365
1381
|
}
|
|
1366
|
-
function
|
|
1382
|
+
function g(V) {
|
|
1367
1383
|
let x;
|
|
1368
|
-
o.value && Array.isArray(
|
|
1384
|
+
o.value && Array.isArray(d.value) ? x = J(d.value.filter((W) => W !== V), o.value) : x = null, ce(x, d, o.value, !1, y.value), u.value = x;
|
|
1369
1385
|
}
|
|
1370
|
-
function
|
|
1386
|
+
function m(V, x) {
|
|
1371
1387
|
return oe(this, null, function* () {
|
|
1372
1388
|
if (!(i || l.fetchChoices === void 0)) {
|
|
1373
|
-
|
|
1389
|
+
D.value = !0;
|
|
1374
1390
|
try {
|
|
1375
|
-
y.value = yield l.fetchChoices(
|
|
1391
|
+
y.value = yield l.fetchChoices(V, x);
|
|
1376
1392
|
} finally {
|
|
1377
|
-
|
|
1393
|
+
D.value = !1;
|
|
1378
1394
|
}
|
|
1379
1395
|
}
|
|
1380
1396
|
});
|
|
1381
1397
|
}
|
|
1382
|
-
function
|
|
1383
|
-
let
|
|
1384
|
-
!
|
|
1398
|
+
function C() {
|
|
1399
|
+
let V = u.value;
|
|
1400
|
+
!f.value && V == null && L.value.length && (V = L.value[0].value), V = J(V, o.value), ce(V, d, o.value, a.value, y.value), A(V), u.value = V;
|
|
1385
1401
|
}
|
|
1386
|
-
return
|
|
1387
|
-
|
|
1388
|
-
}), (
|
|
1389
|
-
const
|
|
1390
|
-
return n(
|
|
1402
|
+
return C(), l.fetchChoices !== void 0 && m(void 0, u.value).then(() => {
|
|
1403
|
+
C();
|
|
1404
|
+
}), (V, x) => {
|
|
1405
|
+
const W = I("v-chip"), se = I("v-list-item");
|
|
1406
|
+
return n(v) !== n(O).SUPPRESS ? (h(), k(te(n(a) ? "v-combobox" : "v-autocomplete"), M({
|
|
1391
1407
|
key: 0,
|
|
1392
|
-
modelValue:
|
|
1393
|
-
"onUpdate:modelValue": x[0] || (x[0] = (
|
|
1408
|
+
modelValue: d.value,
|
|
1409
|
+
"onUpdate:modelValue": x[0] || (x[0] = (b) => d.value = b),
|
|
1394
1410
|
class: [
|
|
1395
1411
|
n(c),
|
|
1396
1412
|
{
|
|
1397
|
-
"d-none": n(
|
|
1398
|
-
invisible: n(
|
|
1413
|
+
"d-none": n(v) === n(O).HIDDEN,
|
|
1414
|
+
invisible: n(v) === n(O).INVISIBLE
|
|
1399
1415
|
}
|
|
1400
1416
|
],
|
|
1401
|
-
items:
|
|
1417
|
+
items: L.value,
|
|
1402
1418
|
"return-object": !1
|
|
1403
|
-
}, n(
|
|
1404
|
-
label: n(
|
|
1419
|
+
}, n(r), {
|
|
1420
|
+
label: n(r).label,
|
|
1405
1421
|
chips: "",
|
|
1406
1422
|
"auto-select-first": !0,
|
|
1407
|
-
"closable-chips": n(
|
|
1408
|
-
clearable: n(
|
|
1423
|
+
"closable-chips": n(f) || n(o) && d.value.length > 1,
|
|
1424
|
+
clearable: n(f),
|
|
1409
1425
|
multiple: n(o),
|
|
1410
|
-
loading:
|
|
1426
|
+
loading: D.value,
|
|
1411
1427
|
"hide-selected": !1,
|
|
1412
|
-
"aria-describedby": n(
|
|
1428
|
+
"aria-describedby": n(r).helpText ? `${n(r).name}-help` : null,
|
|
1413
1429
|
"menu-props": { maxHeight: "400" },
|
|
1414
1430
|
"hide-details": "auto",
|
|
1415
|
-
"onUpdate:search": x[1] || (x[1] = (
|
|
1416
|
-
"onUpdate:modelValue":
|
|
1417
|
-
"onClick:clear": x[2] || (x[2] = (
|
|
1431
|
+
"onUpdate:search": x[1] || (x[1] = (b) => m(b, void 0)),
|
|
1432
|
+
"onUpdate:modelValue": B,
|
|
1433
|
+
"onClick:clear": x[2] || (x[2] = (b) => d.value = null)
|
|
1418
1434
|
}), {
|
|
1419
|
-
chip:
|
|
1420
|
-
(
|
|
1421
|
-
key:
|
|
1435
|
+
chip: _(({ item: b }) => [
|
|
1436
|
+
(h(), k(W, {
|
|
1437
|
+
key: b.value,
|
|
1422
1438
|
label: "",
|
|
1423
1439
|
size: "small",
|
|
1424
1440
|
class: "d-flex align-middle",
|
|
1425
1441
|
variant: n(o) ? "tonal" : "text",
|
|
1426
1442
|
closable: n(o),
|
|
1427
|
-
"onClick:close": (
|
|
1443
|
+
"onClick:close": (P) => g(b.value)
|
|
1428
1444
|
}, {
|
|
1429
|
-
prepend:
|
|
1430
|
-
var
|
|
1445
|
+
prepend: _(() => {
|
|
1446
|
+
var P;
|
|
1431
1447
|
return [
|
|
1432
|
-
(
|
|
1448
|
+
(P = b.raw) != null && P.icon ? (h(), k(n(pe), {
|
|
1433
1449
|
key: 0,
|
|
1434
1450
|
class: "me-1 action-icon d-inline-block",
|
|
1435
|
-
name:
|
|
1436
|
-
}, null, 8, ["name"])) :
|
|
1451
|
+
name: b.raw.icon
|
|
1452
|
+
}, null, 8, ["name"])) : E("", !0)
|
|
1437
1453
|
];
|
|
1438
1454
|
}),
|
|
1439
|
-
default:
|
|
1440
|
-
|
|
1455
|
+
default: _(() => [
|
|
1456
|
+
Z("span", {
|
|
1441
1457
|
class: le({ "text-body-1": !n(o) })
|
|
1442
|
-
},
|
|
1458
|
+
}, q(b.title), 3)
|
|
1443
1459
|
]),
|
|
1444
1460
|
_: 2
|
|
1445
1461
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
1446
1462
|
]),
|
|
1447
|
-
item:
|
|
1448
|
-
|
|
1449
|
-
prepend:
|
|
1450
|
-
var
|
|
1463
|
+
item: _(({ props: b, item: P }) => [
|
|
1464
|
+
T(se, Ee(Ue(b)), {
|
|
1465
|
+
prepend: _(() => {
|
|
1466
|
+
var X;
|
|
1451
1467
|
return [
|
|
1452
|
-
(
|
|
1453
|
-
|
|
1468
|
+
(X = P.raw) != null && X.icon ? (h(), $("span", nn, [
|
|
1469
|
+
T(n(pe), {
|
|
1454
1470
|
class: "action-icon d-inline-block",
|
|
1455
|
-
name:
|
|
1471
|
+
name: P.raw.icon
|
|
1456
1472
|
}, null, 8, ["name"])
|
|
1457
|
-
])) :
|
|
1473
|
+
])) : E("", !0)
|
|
1458
1474
|
];
|
|
1459
1475
|
}),
|
|
1460
1476
|
_: 2
|
|
1461
1477
|
}, 1040)
|
|
1462
1478
|
]),
|
|
1463
|
-
message:
|
|
1464
|
-
|
|
1465
|
-
message:
|
|
1466
|
-
errors: n(
|
|
1479
|
+
message: _(({ message: b }) => [
|
|
1480
|
+
T(n(G), {
|
|
1481
|
+
message: b,
|
|
1482
|
+
errors: n(p)
|
|
1467
1483
|
}, null, 8, ["message", "errors"])
|
|
1468
1484
|
]),
|
|
1469
1485
|
_: 1
|
|
1470
|
-
}, 16, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) :
|
|
1486
|
+
}, 16, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : E("", !0);
|
|
1471
1487
|
};
|
|
1472
1488
|
}
|
|
1473
|
-
}),
|
|
1489
|
+
}), an = /* @__PURE__ */ ne(on, [["__scopeId", "data-v-efe3f250"]]), sn = { class: "container" }, rn = /* @__PURE__ */ U({
|
|
1474
1490
|
__name: "df-text-area",
|
|
1475
|
-
props: /* @__PURE__ */
|
|
1491
|
+
props: /* @__PURE__ */ j({
|
|
1476
1492
|
rows: {},
|
|
1477
1493
|
maxRows: {},
|
|
1478
1494
|
control: {},
|
|
@@ -1486,104 +1502,105 @@ const ln = {
|
|
|
1486
1502
|
visibility: {},
|
|
1487
1503
|
cssClass: {},
|
|
1488
1504
|
clearable: { type: Boolean }
|
|
1489
|
-
},
|
|
1505
|
+
}, R(N({}, z), {
|
|
1490
1506
|
rows: void 0,
|
|
1491
1507
|
maxRows: void 0
|
|
1492
1508
|
})),
|
|
1493
1509
|
emits: ["update:modelValue", "click:clear"],
|
|
1494
1510
|
setup(t, { emit: e }) {
|
|
1495
|
-
const l = t, i = e, { errors: o, value: a, vuetifyBindings:
|
|
1496
|
-
return (
|
|
1497
|
-
const
|
|
1498
|
-
return
|
|
1499
|
-
n(
|
|
1511
|
+
const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } = H(l, i), { cssClass: c, visibility: v } = ie(l);
|
|
1512
|
+
return (s, p) => {
|
|
1513
|
+
const u = I("v-textarea");
|
|
1514
|
+
return h(), $("div", sn, [
|
|
1515
|
+
n(v) !== n(O).SUPPRESS ? (h(), k(u, M({
|
|
1500
1516
|
key: 0,
|
|
1501
1517
|
modelValue: n(a),
|
|
1502
|
-
"onUpdate:modelValue":
|
|
1518
|
+
"onUpdate:modelValue": p[0] || (p[0] = (r) => K(a) ? a.value = r : null),
|
|
1503
1519
|
class: [
|
|
1504
1520
|
n(c),
|
|
1505
1521
|
{
|
|
1506
|
-
"d-none": n(
|
|
1507
|
-
invisible: n(
|
|
1522
|
+
"d-none": n(v) === n(O).HIDDEN,
|
|
1523
|
+
invisible: n(v) === n(O).INVISIBLE
|
|
1508
1524
|
}
|
|
1509
1525
|
],
|
|
1510
|
-
rows:
|
|
1511
|
-
"auto-grow": (
|
|
1512
|
-
"max-rows":
|
|
1513
|
-
}, n(
|
|
1514
|
-
message:
|
|
1515
|
-
|
|
1516
|
-
message:
|
|
1526
|
+
rows: s.rows,
|
|
1527
|
+
"auto-grow": (s.maxRows || 0) > 0,
|
|
1528
|
+
"max-rows": s.maxRows
|
|
1529
|
+
}, n(f)), {
|
|
1530
|
+
message: _(({ message: r }) => [
|
|
1531
|
+
T(n(G), {
|
|
1532
|
+
message: r,
|
|
1517
1533
|
errors: n(o)
|
|
1518
1534
|
}, null, 8, ["message", "errors"])
|
|
1519
1535
|
]),
|
|
1520
1536
|
_: 1
|
|
1521
|
-
}, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) :
|
|
1537
|
+
}, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) : E("", !0)
|
|
1522
1538
|
]);
|
|
1523
1539
|
};
|
|
1524
1540
|
}
|
|
1525
|
-
}),
|
|
1541
|
+
}), un = /* @__PURE__ */ ne(rn, [["__scopeId", "data-v-1a04c9b5"]]), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1526
1542
|
__proto__: null,
|
|
1527
|
-
DfActions:
|
|
1528
|
-
DfCheckbox:
|
|
1529
|
-
DfColor:
|
|
1530
|
-
DfDateTime:
|
|
1531
|
-
DfFile:
|
|
1532
|
-
DfInput:
|
|
1533
|
-
DfRtfEditor:
|
|
1534
|
-
DfSelect:
|
|
1535
|
-
DfTextArea:
|
|
1543
|
+
DfActions: Ml,
|
|
1544
|
+
DfCheckbox: Hl,
|
|
1545
|
+
DfColor: jl,
|
|
1546
|
+
DfDateTime: Kl,
|
|
1547
|
+
DfFile: Wl,
|
|
1548
|
+
DfInput: Zl,
|
|
1549
|
+
DfRtfEditor: tn,
|
|
1550
|
+
DfSelect: an,
|
|
1551
|
+
DfTextArea: un
|
|
1536
1552
|
}, Symbol.toStringTag, { value: "Module" })), cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1537
1553
|
__proto__: null,
|
|
1538
|
-
VAutocomplete:
|
|
1539
|
-
VBtn:
|
|
1540
|
-
VCheckbox:
|
|
1541
|
-
VChip:
|
|
1542
|
-
VCol:
|
|
1543
|
-
VColorPicker:
|
|
1544
|
-
VCombobox:
|
|
1545
|
-
VConfirmEdit:
|
|
1546
|
-
VDatePicker:
|
|
1547
|
-
VFileInput:
|
|
1548
|
-
VIcon:
|
|
1549
|
-
VInput:
|
|
1550
|
-
VListItem:
|
|
1554
|
+
VAutocomplete: Yt,
|
|
1555
|
+
VBtn: Qt,
|
|
1556
|
+
VCheckbox: Jt,
|
|
1557
|
+
VChip: el,
|
|
1558
|
+
VCol: il,
|
|
1559
|
+
VColorPicker: ll,
|
|
1560
|
+
VCombobox: tl,
|
|
1561
|
+
VConfirmEdit: nl,
|
|
1562
|
+
VDatePicker: ol,
|
|
1563
|
+
VFileInput: al,
|
|
1564
|
+
VIcon: rl,
|
|
1565
|
+
VInput: ul,
|
|
1566
|
+
VListItem: dl,
|
|
1551
1567
|
VMenu: cl,
|
|
1552
|
-
VNumberInput:
|
|
1553
|
-
VProgressLinear:
|
|
1554
|
-
VRow:
|
|
1555
|
-
VSelect:
|
|
1556
|
-
VSwitch:
|
|
1557
|
-
VTextField:
|
|
1558
|
-
VTextarea:
|
|
1559
|
-
VTimePicker:
|
|
1560
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1568
|
+
VNumberInput: ml,
|
|
1569
|
+
VProgressLinear: pl,
|
|
1570
|
+
VRow: sl,
|
|
1571
|
+
VSelect: fl,
|
|
1572
|
+
VSwitch: vl,
|
|
1573
|
+
VTextField: gl,
|
|
1574
|
+
VTextarea: bl,
|
|
1575
|
+
VTimePicker: hl
|
|
1576
|
+
}, Symbol.toStringTag, { value: "Module" })), Hn = {
|
|
1561
1577
|
install: (t, e) => {
|
|
1562
1578
|
var l, i;
|
|
1563
|
-
t.use(
|
|
1579
|
+
t.use(Sl), (l = e == null ? void 0 : e.registerComponents) != null && l && Object.entries(dn).map(([o, a]) => t.component(o, a)), (i = e == null ? void 0 : e.registerVuetifyComponents) != null && i && Object.entries(cn).map(([o, a]) => t.component(o, a));
|
|
1564
1580
|
}
|
|
1565
1581
|
};
|
|
1566
1582
|
export {
|
|
1567
1583
|
ae as Action,
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1584
|
+
F as ActionDisplayStyle,
|
|
1585
|
+
Ml as DfActions,
|
|
1586
|
+
Hl as DfCheckbox,
|
|
1587
|
+
jl as DfColor,
|
|
1588
|
+
Kl as DfDateTime,
|
|
1589
|
+
Wl as DfFile,
|
|
1590
|
+
Zl as DfInput,
|
|
1591
|
+
tn as DfRtfEditor,
|
|
1592
|
+
an as DfSelect,
|
|
1593
|
+
un as DfTextArea,
|
|
1594
|
+
Hn as DynamicFormsInputs,
|
|
1595
|
+
be as InputBase,
|
|
1596
|
+
G as MessagesWidget,
|
|
1597
|
+
Ll as ResponsiveLabelRenderOptions,
|
|
1598
|
+
Fl as ResponsiveRenderOptions,
|
|
1583
1599
|
cn as VuetifyComponents,
|
|
1584
|
-
|
|
1600
|
+
z as defaultBaseProps,
|
|
1585
1601
|
Ie as defaultDisplayStyle,
|
|
1602
|
+
xe as getBreakpointName,
|
|
1586
1603
|
Be as responsiveBreakpoints,
|
|
1587
|
-
|
|
1604
|
+
H as useInputBase
|
|
1588
1605
|
};
|
|
1589
1606
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|