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