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