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