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