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