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