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