@dynamicforms/vuetify-inputs 0.1.14 → 0.1.16
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 +578 -557
- 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 +7 -4
- package/dist/style.css +2 -2
- package/package.json +1 -1
|
@@ -1,61 +1,61 @@
|
|
|
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
|
|
15
|
-
var a = (
|
|
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
|
+
var a = (d) => {
|
|
16
16
|
try {
|
|
17
|
-
u(l.next(
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
u(l.next(d));
|
|
18
|
+
} catch (b) {
|
|
19
|
+
o(b);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, v = (d) => {
|
|
22
22
|
try {
|
|
23
|
-
u(l.throw(
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
u(l.throw(d));
|
|
24
|
+
} catch (b) {
|
|
25
|
+
o(b);
|
|
26
26
|
}
|
|
27
|
-
}, u = (
|
|
27
|
+
}, u = (d) => d.done ? i(d.value) : Promise.resolve(d.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
|
|
35
|
+
import Ae, { ValidationErrorRenderContent as it, DisplayMode as H, ExecuteAction as st, Action as de } 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 dt, Alignment as ct, 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
|
-
import { VInput as
|
|
51
|
-
import { VListItem as
|
|
50
|
+
import { VInput as dl } from "vuetify/components/VInput";
|
|
51
|
+
import { VListItem as cl } from "vuetify/components/VList";
|
|
52
52
|
import { VMenu as ml } from "vuetify/components/VMenu";
|
|
53
53
|
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
|
|
200
|
+
const ce = "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(), d = S();
|
|
216
216
|
e({
|
|
217
217
|
instance: u,
|
|
218
|
-
lastEditorData:
|
|
219
|
-
}),
|
|
220
|
-
u.value &&
|
|
221
|
-
}),
|
|
222
|
-
|
|
218
|
+
lastEditorData: d
|
|
219
|
+
}), ee(i, (r) => {
|
|
220
|
+
u.value && r !== d.value && u.value.data.set(r);
|
|
221
|
+
}), ee(() => o.disabled, (r) => {
|
|
222
|
+
r ? u.value.enableReadOnlyMode(ce) : u.value.disableReadOnlyMode(ce);
|
|
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((c) => {
|
|
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 = d.value = r.data.get();
|
|
236
|
+
a("update:modelValue", h, c, r), a("input", h, c, r);
|
|
237
|
+
}, xl, { leading: !0 });
|
|
238
|
+
r.model.document.on("change:data", m), r.editing.view.document.on("focus", (c) => {
|
|
239
|
+
a("focus", c, r);
|
|
240
|
+
}), r.editing.view.document.on("blur", (c) => {
|
|
241
|
+
a("blur", c, 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(ce), 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(c) {
|
|
286
|
+
t.control && (t.control.value = c), e("update:modelValue", c);
|
|
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
|
-
),
|
|
291
|
+
const i = _(() => t.control ? t.control.valid : !0), o = _(
|
|
292
|
+
() => t.control ? t.control.errors : (t.errors || []).map((c) => new it(c))
|
|
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
|
+
), d = _(() => 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 c;
|
|
304
304
|
return {
|
|
305
|
-
name: (
|
|
305
|
+
name: (c = t.control) == null ? void 0 : c.fieldName,
|
|
306
306
|
class: m.value,
|
|
307
|
-
|
|
307
|
+
density: "default",
|
|
308
|
+
variant: "underlined",
|
|
309
|
+
label: d.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), d = _(() => 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: c }) => [
|
|
404
|
+
x(W, {
|
|
405
|
+
message: c,
|
|
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
|
+
d.value ? {
|
|
406
415
|
name: "append",
|
|
407
416
|
fn: y(() => [
|
|
408
|
-
|
|
409
|
-
onClick:
|
|
417
|
+
x(r, {
|
|
418
|
+
onClick: s[0] || (s[0] = (c) => 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
|
|
463
|
-
const
|
|
464
|
-
if (
|
|
469
|
+
showIcon: (v = this._value.showIcon) != null ? v : !0
|
|
470
|
+
}, i = [...De].reverse();
|
|
471
|
+
for (const u of i) {
|
|
472
|
+
const d = this._value[u];
|
|
473
|
+
if (d && (d.label != null && (l.label = d.label), d.renderAs != null && (l.renderAs = d.renderAs), d.showIcon != null && (l.showIcon = d.showIcon), d.showLabel != null && (l.showLabel = d.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,11 +508,11 @@ class ae {
|
|
|
499
508
|
}
|
|
500
509
|
static makeFormAction(e) {
|
|
501
510
|
let l;
|
|
502
|
-
if (e instanceof
|
|
503
|
-
l =
|
|
511
|
+
if (e instanceof st)
|
|
512
|
+
l = de.create().registerAction(e);
|
|
504
513
|
else if (e === void 0)
|
|
505
|
-
l =
|
|
506
|
-
else if (e instanceof
|
|
514
|
+
l = de.create();
|
|
515
|
+
else if (e instanceof de)
|
|
507
516
|
l = e;
|
|
508
517
|
else
|
|
509
518
|
throw new Error("actionOrExecuteHandler is not of any of supported types");
|
|
@@ -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
|
|
579
|
-
var
|
|
580
|
-
return (
|
|
587
|
+
function d(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), (c, h) => (g(), V(m, {
|
|
605
|
+
key: h,
|
|
606
|
+
variant: d(c) === 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) => c.formAction.execute(k), ["stop"])
|
|
602
611
|
}, {
|
|
603
612
|
default: y(() => [
|
|
604
|
-
|
|
613
|
+
v(c) ? (g(), V(n(fe), {
|
|
605
614
|
key: 0,
|
|
606
615
|
class: "action-icon",
|
|
607
|
-
name:
|
|
608
|
-
}, null, 8, ["name"])) :
|
|
609
|
-
|
|
610
|
-
u(
|
|
616
|
+
name: c.formAction.icon
|
|
617
|
+
}, null, 8, ["name"])) : E("", !0),
|
|
618
|
+
v(c) && u(c) ? (g(), $("span", Fl)) : E("", !0),
|
|
619
|
+
u(c) ? (g(), $("span", Pl, q(b(c)), 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), d = _({
|
|
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
|
|
649
|
-
modelValue:
|
|
650
|
-
"onUpdate:modelValue":
|
|
651
|
-
},
|
|
655
|
+
return (s, r) => {
|
|
656
|
+
const m = A("v-checkbox");
|
|
657
|
+
return g(), V(m, P({
|
|
658
|
+
modelValue: d.value,
|
|
659
|
+
"onUpdate:modelValue": r[0] || (r[0] = (c) => d.value = c)
|
|
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: c }) => [
|
|
668
|
+
x(n(W), {
|
|
669
|
+
message: c,
|
|
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), d = _(() => [
|
|
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"), c = A("v-menu");
|
|
700
|
+
return g(), V(c, {
|
|
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
|
-
|
|
703
|
-
rules: c.value
|
|
714
|
+
rules: d.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: d } = 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 c(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()), c(`T${f}`, 1);
|
|
765
779
|
else {
|
|
766
|
-
const
|
|
767
|
-
|
|
780
|
+
const I = r(new Date(f));
|
|
781
|
+
c(I, 0), c(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) => c(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
|
+
c(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
|
+
c(`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
|
+
c(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(d));
|
|
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), c(`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), d = 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 c() {
|
|
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 ? c() : 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, d.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
|
-
|
|
974
|
+
function k(D) {
|
|
975
|
+
return oe(this, null, function* () {
|
|
976
|
+
d.value = -1, u.value = D;
|
|
961
977
|
try {
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
(
|
|
965
|
-
|
|
978
|
+
o.value = yield l.comms.upload(
|
|
979
|
+
D,
|
|
980
|
+
(f, p) => {
|
|
981
|
+
d.value = Math.round(f * 100 / p);
|
|
966
982
|
}
|
|
967
|
-
),
|
|
968
|
-
} catch (
|
|
969
|
-
throw
|
|
983
|
+
), d.value = 100, c();
|
|
984
|
+
} catch (f) {
|
|
985
|
+
throw d.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 &&
|
|
999
|
+
le("div", Kl, [
|
|
1000
|
+
u.value && d.value < 100 ? (g(), V(p, {
|
|
985
1001
|
key: 0,
|
|
986
|
-
"model-value":
|
|
987
|
-
indeterminate:
|
|
1002
|
+
"model-value": d.value,
|
|
1003
|
+
indeterminate: d.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 && d.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,49 +1047,48 @@ const Fl = {
|
|
|
1029
1047
|
visibility: {},
|
|
1030
1048
|
cssClass: {},
|
|
1031
1049
|
clearable: { type: Boolean }
|
|
1032
|
-
},
|
|
1050
|
+
}, M(N({}, K), {
|
|
1033
1051
|
inputType: "text",
|
|
1034
|
-
precision:
|
|
1052
|
+
precision: null,
|
|
1035
1053
|
step: void 0,
|
|
1036
1054
|
min: void 0,
|
|
1037
1055
|
max: void 0
|
|
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: d, min: b, precision: s, step: r } = re(l), m = _(() => u.value === "number"), c = _(() => m.value ? { min: n(b), max: n(d), 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({},
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
A(o(W), { errors: o(n) }, null, 8, ["errors"])
|
|
1065
|
+
modelValue: n(a),
|
|
1066
|
+
"onUpdate:modelValue": k[1] || (k[1] = (f) => G(a) ? a.value = f : null)
|
|
1067
|
+
}, N(N({}, n(v)), c.value), { "control-variant": "stacked" }), {
|
|
1068
|
+
message: y(({ message: f }) => [
|
|
1069
|
+
x(n(W), {
|
|
1070
|
+
message: f,
|
|
1071
|
+
errors: n(o)
|
|
1072
|
+
}, null, 8, ["message", "errors"])
|
|
1056
1073
|
]),
|
|
1057
1074
|
_: 1
|
|
1058
|
-
}, 16, ["modelValue"])) : (
|
|
1075
|
+
}, 16, ["modelValue"])) : (g(), V(O, P({
|
|
1059
1076
|
key: 0,
|
|
1060
|
-
modelValue:
|
|
1061
|
-
"onUpdate:modelValue":
|
|
1062
|
-
},
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1077
|
+
modelValue: n(a),
|
|
1078
|
+
"onUpdate:modelValue": k[0] || (k[0] = (f) => G(a) ? a.value = f : null)
|
|
1079
|
+
}, n(v), { type: n(u) }), {
|
|
1080
|
+
message: y(({ message: f }) => [
|
|
1081
|
+
x(n(W), {
|
|
1082
|
+
message: f,
|
|
1083
|
+
errors: n(o)
|
|
1084
|
+
}, null, 8, ["message", "errors"])
|
|
1068
1085
|
]),
|
|
1069
1086
|
_: 1
|
|
1070
1087
|
}, 16, ["modelValue", "type"]))
|
|
1071
1088
|
]);
|
|
1072
1089
|
};
|
|
1073
1090
|
}
|
|
1074
|
-
}),
|
|
1091
|
+
}), ql = /* @__PURE__ */ ne(Xl, [["__scopeId", "data-v-11ea1dad"]]), Zl = { class: "editor-container" }, Yl = { class: "editor-container__editor" }, Ql = { ref: "editorElement" }, Jl = /* @__PURE__ */ L({
|
|
1075
1092
|
__name: "ck-editor-custom",
|
|
1076
1093
|
props: {
|
|
1077
1094
|
modelValue: { default: "" },
|
|
@@ -1080,10 +1097,10 @@ const Fl = {
|
|
|
1080
1097
|
},
|
|
1081
1098
|
emits: ["update:modelValue"],
|
|
1082
1099
|
setup(t, { expose: e, emit: l }) {
|
|
1083
|
-
Je((
|
|
1084
|
-
"3d4d5a06":
|
|
1100
|
+
Je((r) => ({
|
|
1101
|
+
"3d4d5a06": r.minHeight
|
|
1085
1102
|
}));
|
|
1086
|
-
const
|
|
1103
|
+
const i = l, o = S(!1), a = Yt, b = {
|
|
1087
1104
|
toolbar: {
|
|
1088
1105
|
items: [
|
|
1089
1106
|
"undo",
|
|
@@ -1115,15 +1132,15 @@ const Fl = {
|
|
|
1115
1132
|
shouldNotGroupWhenFull: !1
|
|
1116
1133
|
},
|
|
1117
1134
|
plugins: [
|
|
1118
|
-
ct,
|
|
1119
1135
|
dt,
|
|
1136
|
+
ct,
|
|
1120
1137
|
mt,
|
|
1121
1138
|
pt,
|
|
1122
1139
|
ft,
|
|
1123
1140
|
vt,
|
|
1124
1141
|
bt,
|
|
1125
|
-
ht,
|
|
1126
1142
|
gt,
|
|
1143
|
+
ht,
|
|
1127
1144
|
yt,
|
|
1128
1145
|
_t,
|
|
1129
1146
|
wt,
|
|
@@ -1133,21 +1150,21 @@ const Fl = {
|
|
|
1133
1150
|
Ct,
|
|
1134
1151
|
It,
|
|
1135
1152
|
Bt,
|
|
1136
|
-
xt,
|
|
1137
1153
|
At,
|
|
1154
|
+
xt,
|
|
1138
1155
|
Dt,
|
|
1139
1156
|
St,
|
|
1140
1157
|
Nt,
|
|
1141
1158
|
$t,
|
|
1142
1159
|
Et,
|
|
1143
1160
|
Ut,
|
|
1144
|
-
Ft,
|
|
1145
1161
|
Lt,
|
|
1162
|
+
Ft,
|
|
1146
1163
|
Pt,
|
|
1147
1164
|
Rt,
|
|
1148
1165
|
Ot,
|
|
1149
|
-
Ht,
|
|
1150
1166
|
Mt,
|
|
1167
|
+
Ht,
|
|
1151
1168
|
jt,
|
|
1152
1169
|
zt,
|
|
1153
1170
|
Kt,
|
|
@@ -1215,31 +1232,31 @@ const Fl = {
|
|
|
1215
1232
|
table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] }
|
|
1216
1233
|
};
|
|
1217
1234
|
Se(() => {
|
|
1218
|
-
|
|
1235
|
+
o.value = !0;
|
|
1219
1236
|
});
|
|
1220
|
-
const
|
|
1237
|
+
const s = (r) => {
|
|
1221
1238
|
};
|
|
1222
|
-
return e({ onEditorReady:
|
|
1223
|
-
const
|
|
1224
|
-
return
|
|
1225
|
-
le("div",
|
|
1226
|
-
le("div",
|
|
1227
|
-
|
|
1239
|
+
return e({ onEditorReady: s }), (r, m) => {
|
|
1240
|
+
const c = A("ckeditor");
|
|
1241
|
+
return g(), $("div", Zl, [
|
|
1242
|
+
le("div", Yl, [
|
|
1243
|
+
le("div", Ql, [
|
|
1244
|
+
o.value ? (g(), V(c, {
|
|
1228
1245
|
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"])) :
|
|
1246
|
+
"model-value": r.modelValue,
|
|
1247
|
+
editor: n(a),
|
|
1248
|
+
config: b,
|
|
1249
|
+
disabled: r.disabled,
|
|
1250
|
+
style: ge(`min-height: ${r.minHeight}`),
|
|
1251
|
+
onReady: s,
|
|
1252
|
+
"onUpdate:modelValue": m[0] || (m[0] = (h) => i("update:modelValue", h))
|
|
1253
|
+
}, null, 8, ["model-value", "editor", "disabled", "style"])) : E("", !0)
|
|
1237
1254
|
], 512)
|
|
1238
1255
|
])
|
|
1239
1256
|
]);
|
|
1240
1257
|
};
|
|
1241
1258
|
}
|
|
1242
|
-
}),
|
|
1259
|
+
}), en = /* @__PURE__ */ L({
|
|
1243
1260
|
__name: "df-rtf-editor",
|
|
1244
1261
|
props: /* @__PURE__ */ z({
|
|
1245
1262
|
minHeight: {},
|
|
@@ -1254,59 +1271,59 @@ const Fl = {
|
|
|
1254
1271
|
visibility: {},
|
|
1255
1272
|
cssClass: {},
|
|
1256
1273
|
clearable: { type: Boolean }
|
|
1257
|
-
},
|
|
1274
|
+
}, M(N({}, K), { minHeight: void 0 })),
|
|
1258
1275
|
emits: ["update:modelValue", "click:clear"],
|
|
1259
1276
|
setup(t, { emit: e }) {
|
|
1260
|
-
const l = t,
|
|
1261
|
-
return (
|
|
1277
|
+
const l = t, i = e, { value: o, vuetifyBindings: a } = j(l, i);
|
|
1278
|
+
return (v, u) => (g(), V(n(he), Ue(Le(l)), {
|
|
1262
1279
|
default: y(() => [
|
|
1263
|
-
|
|
1280
|
+
x(Jl, {
|
|
1264
1281
|
ref: "$editor",
|
|
1265
|
-
modelValue: o
|
|
1266
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1267
|
-
"min-height":
|
|
1268
|
-
disabled:
|
|
1282
|
+
modelValue: n(o),
|
|
1283
|
+
"onUpdate:modelValue": u[0] || (u[0] = (d) => G(o) ? o.value = d : null),
|
|
1284
|
+
"min-height": v.minHeight,
|
|
1285
|
+
disabled: n(a).disabled
|
|
1269
1286
|
}, null, 8, ["modelValue", "min-height", "disabled"])
|
|
1270
1287
|
]),
|
|
1271
1288
|
_: 1
|
|
1272
1289
|
}, 16));
|
|
1273
1290
|
}
|
|
1274
1291
|
});
|
|
1275
|
-
function
|
|
1292
|
+
function tn(t) {
|
|
1276
1293
|
return t.map((e) => ({ value: e.id, title: e.text, icon: e.icon }));
|
|
1277
1294
|
}
|
|
1278
|
-
function
|
|
1295
|
+
function J(t, e) {
|
|
1279
1296
|
var l;
|
|
1280
|
-
return t == null || Be(t) && t.length === 0 ? null : e ?
|
|
1297
|
+
return t == null || Be(t) && t.length === 0 ? null : e ? Fe(t) : Be(t) ? (l = Pe(t)) != null ? l : null : t;
|
|
1281
1298
|
}
|
|
1282
1299
|
function ve(t, e) {
|
|
1283
1300
|
if (e == null) return [];
|
|
1284
|
-
const l =
|
|
1285
|
-
return t.filter((
|
|
1301
|
+
const l = Fe(e);
|
|
1302
|
+
return t.filter((i) => l.some((o) => o === i.id));
|
|
1286
1303
|
}
|
|
1287
|
-
function me(t, e, l,
|
|
1288
|
-
var
|
|
1289
|
-
const a =
|
|
1304
|
+
function me(t, e, l, i, o) {
|
|
1305
|
+
var v;
|
|
1306
|
+
const a = J(t, l);
|
|
1290
1307
|
if (a == null) {
|
|
1291
1308
|
e.value = l ? [] : null;
|
|
1292
1309
|
return;
|
|
1293
1310
|
}
|
|
1294
1311
|
if (l)
|
|
1295
|
-
|
|
1296
|
-
else if (
|
|
1312
|
+
i ? e.value = a : e.value = ve(o, a).map((u) => u.id);
|
|
1313
|
+
else if (i)
|
|
1297
1314
|
e.value = a;
|
|
1298
1315
|
else {
|
|
1299
|
-
const u = Pe(ve(
|
|
1300
|
-
e.value = (
|
|
1316
|
+
const u = Pe(ve(o, a));
|
|
1317
|
+
e.value = (v = u == null ? void 0 : u.id) != null ? v : null;
|
|
1301
1318
|
}
|
|
1302
1319
|
}
|
|
1303
|
-
const
|
|
1320
|
+
const ln = {
|
|
1304
1321
|
key: 0,
|
|
1305
1322
|
class: "me-1"
|
|
1306
|
-
},
|
|
1323
|
+
}, nn = {
|
|
1307
1324
|
key: 0,
|
|
1308
1325
|
class: "me-1"
|
|
1309
|
-
},
|
|
1326
|
+
}, on = /* @__PURE__ */ L({
|
|
1310
1327
|
__name: "df-select",
|
|
1311
1328
|
props: /* @__PURE__ */ z({
|
|
1312
1329
|
choices: {},
|
|
@@ -1325,7 +1342,7 @@ const to = {
|
|
|
1325
1342
|
visibility: {},
|
|
1326
1343
|
cssClass: {},
|
|
1327
1344
|
clearable: { type: Boolean }
|
|
1328
|
-
},
|
|
1345
|
+
}, M(N({}, K), {
|
|
1329
1346
|
choices: void 0,
|
|
1330
1347
|
multiple: !1,
|
|
1331
1348
|
allowTags: !1,
|
|
@@ -1334,127 +1351,129 @@ const to = {
|
|
|
1334
1351
|
})),
|
|
1335
1352
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
1336
1353
|
setup(t, { emit: e }) {
|
|
1337
|
-
const l = t, { choices:
|
|
1338
|
-
function
|
|
1339
|
-
|
|
1354
|
+
const l = t, { choices: i } = l, { multiple: o, allowTags: a, allowNull: v, cssClass: u, visibility: d } = re(l), b = S(!1), s = e, { errors: r, value: m, vuetifyBindings: c } = j(l, s), h = S(null), k = S(i || []), O = S(!1), D = _(() => tn(k.value));
|
|
1355
|
+
function f(C) {
|
|
1356
|
+
s("update:modelValueDisplay", ve(k.value, C));
|
|
1340
1357
|
}
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
const T =
|
|
1344
|
-
|
|
1358
|
+
ee(h, (C) => {
|
|
1359
|
+
c.value.readonly || et(() => {
|
|
1360
|
+
const T = J(C, o.value);
|
|
1361
|
+
f(T), m.value = T;
|
|
1345
1362
|
});
|
|
1346
1363
|
}, { deep: !0 });
|
|
1347
|
-
function
|
|
1348
|
-
if (
|
|
1349
|
-
const C =
|
|
1350
|
-
me(C,
|
|
1364
|
+
function p() {
|
|
1365
|
+
if (c.value.readonly || a.value) return;
|
|
1366
|
+
const C = J(h.value, o.value);
|
|
1367
|
+
me(C, h, o.value, !1, k.value), m.value = C;
|
|
1351
1368
|
}
|
|
1352
|
-
function
|
|
1369
|
+
function I(C) {
|
|
1353
1370
|
let T;
|
|
1354
|
-
|
|
1371
|
+
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
1372
|
}
|
|
1356
|
-
function
|
|
1357
|
-
return
|
|
1358
|
-
if (!(
|
|
1373
|
+
function F(C, T) {
|
|
1374
|
+
return oe(this, null, function* () {
|
|
1375
|
+
if (!(i || l.fetchChoices === void 0)) {
|
|
1359
1376
|
O.value = !0;
|
|
1360
1377
|
try {
|
|
1361
|
-
|
|
1378
|
+
k.value = yield l.fetchChoices(C, T);
|
|
1362
1379
|
} finally {
|
|
1363
1380
|
O.value = !1;
|
|
1364
1381
|
}
|
|
1365
1382
|
}
|
|
1366
1383
|
});
|
|
1367
1384
|
}
|
|
1368
|
-
function
|
|
1385
|
+
function Z() {
|
|
1369
1386
|
let C = m.value;
|
|
1370
|
-
!
|
|
1387
|
+
!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
1388
|
}
|
|
1372
|
-
return
|
|
1373
|
-
|
|
1389
|
+
return Z(), l.fetchChoices !== void 0 && F(void 0, m.value).then(() => {
|
|
1390
|
+
Z();
|
|
1374
1391
|
}), (C, T) => {
|
|
1375
|
-
const w =
|
|
1376
|
-
return
|
|
1392
|
+
const w = A("v-chip"), U = A("v-list-item");
|
|
1393
|
+
return n(d) !== n(H).SUPPRESS ? (g(), V(te(n(a) ? "v-combobox" : "v-autocomplete"), P({
|
|
1377
1394
|
key: 0,
|
|
1378
|
-
modelValue:
|
|
1379
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
1395
|
+
modelValue: h.value,
|
|
1396
|
+
"onUpdate:modelValue": T[0] || (T[0] = (B) => h.value = B),
|
|
1380
1397
|
class: [
|
|
1381
|
-
|
|
1398
|
+
n(u),
|
|
1382
1399
|
{
|
|
1383
|
-
"d-none":
|
|
1384
|
-
invisible:
|
|
1400
|
+
"d-none": n(d) === n(H).HIDDEN,
|
|
1401
|
+
invisible: n(d) === n(H).INVISIBLE
|
|
1385
1402
|
}
|
|
1386
1403
|
],
|
|
1387
|
-
|
|
1388
|
-
items: B.value,
|
|
1404
|
+
items: D.value,
|
|
1389
1405
|
"return-object": !1
|
|
1390
|
-
},
|
|
1391
|
-
label:
|
|
1406
|
+
}, n(c), {
|
|
1407
|
+
label: b.value ? "" : n(c).label,
|
|
1392
1408
|
chips: "",
|
|
1393
1409
|
"auto-select-first": !0,
|
|
1394
|
-
"closable-chips":
|
|
1395
|
-
clearable:
|
|
1396
|
-
multiple: o
|
|
1410
|
+
"closable-chips": n(v) || n(o) && h.value.length > 1,
|
|
1411
|
+
clearable: n(v),
|
|
1412
|
+
multiple: n(o),
|
|
1397
1413
|
loading: O.value,
|
|
1398
1414
|
"hide-selected": !1,
|
|
1399
|
-
"aria-describedby":
|
|
1415
|
+
"aria-describedby": n(c).helpText ? `${n(c).name}-help` : null,
|
|
1400
1416
|
"menu-props": { maxHeight: "400" },
|
|
1401
1417
|
"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] = (
|
|
1418
|
+
"onUpdate:search": T[1] || (T[1] = (B) => F(B, void 0)),
|
|
1419
|
+
"onUpdate:modelValue": p,
|
|
1420
|
+
"onClick:clear": T[2] || (T[2] = (B) => h.value = null),
|
|
1421
|
+
onFocus: T[3] || (T[3] = (B) => b.value = !0),
|
|
1422
|
+
onBlur: T[4] || (T[4] = (B) => b.value = !1)
|
|
1407
1423
|
}), {
|
|
1408
|
-
chip: y(({ item:
|
|
1409
|
-
(
|
|
1410
|
-
key:
|
|
1424
|
+
chip: y(({ item: B }) => [
|
|
1425
|
+
(g(), V(w, {
|
|
1426
|
+
key: B.value,
|
|
1411
1427
|
label: "",
|
|
1412
1428
|
size: "small",
|
|
1413
|
-
variant: o
|
|
1414
|
-
closable: o
|
|
1415
|
-
"onClick:close": (X) =>
|
|
1429
|
+
variant: n(o) ? "tonal" : "text",
|
|
1430
|
+
closable: n(o),
|
|
1431
|
+
"onClick:close": (X) => I(B.value)
|
|
1416
1432
|
}, {
|
|
1417
1433
|
prepend: y(() => {
|
|
1418
1434
|
var X;
|
|
1419
1435
|
return [
|
|
1420
|
-
(X =
|
|
1421
|
-
|
|
1436
|
+
(X = B.raw) != null && X.icon ? (g(), $("span", ln, [
|
|
1437
|
+
x(n(fe), {
|
|
1422
1438
|
class: "action-icon d-inline-block",
|
|
1423
|
-
name:
|
|
1439
|
+
name: B.raw.icon
|
|
1424
1440
|
}, null, 8, ["name"])
|
|
1425
|
-
])) :
|
|
1441
|
+
])) : E("", !0)
|
|
1426
1442
|
];
|
|
1427
1443
|
}),
|
|
1428
1444
|
default: y(() => [
|
|
1429
|
-
be(" " +
|
|
1445
|
+
be(" " + q(B.title), 1)
|
|
1430
1446
|
]),
|
|
1431
1447
|
_: 2
|
|
1432
1448
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
1433
1449
|
]),
|
|
1434
|
-
item: y(({ props:
|
|
1435
|
-
|
|
1450
|
+
item: y(({ props: B, item: X }) => [
|
|
1451
|
+
x(U, Ue(Le(B)), {
|
|
1436
1452
|
prepend: y(() => {
|
|
1437
1453
|
var ye;
|
|
1438
1454
|
return [
|
|
1439
|
-
(ye = X.raw) != null && ye.icon ? (
|
|
1440
|
-
|
|
1455
|
+
(ye = X.raw) != null && ye.icon ? (g(), $("span", nn, [
|
|
1456
|
+
x(n(fe), {
|
|
1441
1457
|
class: "action-icon d-inline-block",
|
|
1442
1458
|
name: X.raw.icon
|
|
1443
1459
|
}, null, 8, ["name"])
|
|
1444
|
-
])) :
|
|
1460
|
+
])) : E("", !0)
|
|
1445
1461
|
];
|
|
1446
1462
|
}),
|
|
1447
1463
|
_: 2
|
|
1448
1464
|
}, 1040)
|
|
1449
1465
|
]),
|
|
1450
|
-
message: y(() => [
|
|
1451
|
-
|
|
1466
|
+
message: y(({ message: B }) => [
|
|
1467
|
+
x(n(W), {
|
|
1468
|
+
message: B,
|
|
1469
|
+
errors: n(r)
|
|
1470
|
+
}, null, 8, ["message", "errors"])
|
|
1452
1471
|
]),
|
|
1453
1472
|
_: 1
|
|
1454
|
-
}, 16, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) :
|
|
1473
|
+
}, 16, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : E("", !0);
|
|
1455
1474
|
};
|
|
1456
1475
|
}
|
|
1457
|
-
}),
|
|
1476
|
+
}), an = /* @__PURE__ */ ne(on, [["__scopeId", "data-v-75dcb518"]]), sn = { class: "container" }, rn = /* @__PURE__ */ L({
|
|
1458
1477
|
__name: "df-text-area",
|
|
1459
1478
|
props: /* @__PURE__ */ z({
|
|
1460
1479
|
rows: {},
|
|
@@ -1470,99 +1489,101 @@ const to = {
|
|
|
1470
1489
|
visibility: {},
|
|
1471
1490
|
cssClass: {},
|
|
1472
1491
|
clearable: { type: Boolean }
|
|
1473
|
-
},
|
|
1492
|
+
}, M(N({}, K), {
|
|
1474
1493
|
rows: void 0,
|
|
1475
1494
|
maxRows: void 0
|
|
1476
1495
|
})),
|
|
1477
1496
|
emits: ["update:modelValue", "click:clear"],
|
|
1478
1497
|
setup(t, { emit: e }) {
|
|
1479
|
-
const l = t,
|
|
1480
|
-
return (
|
|
1481
|
-
const
|
|
1482
|
-
return
|
|
1483
|
-
|
|
1498
|
+
const l = t, i = e, { errors: o, value: a, vuetifyBindings: v } = j(l, i), { cssClass: u, visibility: d } = re(l);
|
|
1499
|
+
return (b, s) => {
|
|
1500
|
+
const r = A("v-textarea");
|
|
1501
|
+
return g(), $("div", sn, [
|
|
1502
|
+
n(d) !== n(H).SUPPRESS ? (g(), V(r, P({
|
|
1484
1503
|
key: 0,
|
|
1485
|
-
modelValue:
|
|
1486
|
-
"onUpdate:modelValue":
|
|
1504
|
+
modelValue: n(a),
|
|
1505
|
+
"onUpdate:modelValue": s[0] || (s[0] = (m) => G(a) ? a.value = m : null),
|
|
1487
1506
|
class: [
|
|
1488
|
-
|
|
1507
|
+
n(u),
|
|
1489
1508
|
{
|
|
1490
|
-
"d-none":
|
|
1491
|
-
invisible:
|
|
1509
|
+
"d-none": n(d) === n(H).HIDDEN,
|
|
1510
|
+
invisible: n(d) === n(H).INVISIBLE
|
|
1492
1511
|
}
|
|
1493
1512
|
],
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
"
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1513
|
+
rows: b.rows,
|
|
1514
|
+
"auto-grow": (b.maxRows || 0) > 0,
|
|
1515
|
+
"max-rows": b.maxRows
|
|
1516
|
+
}, n(v)), {
|
|
1517
|
+
message: y(({ message: m }) => [
|
|
1518
|
+
x(n(W), {
|
|
1519
|
+
message: m,
|
|
1520
|
+
errors: n(o)
|
|
1521
|
+
}, null, 8, ["message", "errors"])
|
|
1501
1522
|
]),
|
|
1502
1523
|
_: 1
|
|
1503
|
-
}, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) :
|
|
1524
|
+
}, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) : E("", !0)
|
|
1504
1525
|
]);
|
|
1505
1526
|
};
|
|
1506
1527
|
}
|
|
1507
|
-
}),
|
|
1528
|
+
}), un = /* @__PURE__ */ ne(rn, [["__scopeId", "data-v-1a04c9b5"]]), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1508
1529
|
__proto__: null,
|
|
1509
|
-
DfActions:
|
|
1510
|
-
DfCheckbox:
|
|
1530
|
+
DfActions: Ol,
|
|
1531
|
+
DfCheckbox: Ml,
|
|
1511
1532
|
DfColor: Hl,
|
|
1512
|
-
DfDateTime:
|
|
1513
|
-
DfFile:
|
|
1514
|
-
DfInput:
|
|
1515
|
-
DfRtfEditor:
|
|
1516
|
-
DfSelect:
|
|
1517
|
-
DfTextArea:
|
|
1518
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1533
|
+
DfDateTime: zl,
|
|
1534
|
+
DfFile: Gl,
|
|
1535
|
+
DfInput: ql,
|
|
1536
|
+
DfRtfEditor: en,
|
|
1537
|
+
DfSelect: an,
|
|
1538
|
+
DfTextArea: un
|
|
1539
|
+
}, Symbol.toStringTag, { value: "Module" })), cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1519
1540
|
__proto__: null,
|
|
1520
1541
|
VAutocomplete: Qt,
|
|
1521
1542
|
VBtn: Jt,
|
|
1522
1543
|
VCheckbox: el,
|
|
1523
1544
|
VChip: tl,
|
|
1524
|
-
VCol:
|
|
1525
|
-
VColorPicker:
|
|
1545
|
+
VCol: sl,
|
|
1546
|
+
VColorPicker: nl,
|
|
1526
1547
|
VCombobox: ll,
|
|
1527
|
-
VConfirmEdit:
|
|
1548
|
+
VConfirmEdit: ol,
|
|
1528
1549
|
VDatePicker: al,
|
|
1529
|
-
VFileInput:
|
|
1550
|
+
VFileInput: il,
|
|
1530
1551
|
VIcon: ul,
|
|
1531
|
-
VInput:
|
|
1532
|
-
VListItem:
|
|
1552
|
+
VInput: dl,
|
|
1553
|
+
VListItem: cl,
|
|
1533
1554
|
VMenu: ml,
|
|
1534
1555
|
VNumberInput: pl,
|
|
1535
1556
|
VProgressLinear: fl,
|
|
1536
|
-
VRow:
|
|
1557
|
+
VRow: rl,
|
|
1537
1558
|
VSelect: vl,
|
|
1538
1559
|
VSwitch: bl,
|
|
1539
|
-
VTextField:
|
|
1540
|
-
VTextarea:
|
|
1560
|
+
VTextField: hl,
|
|
1561
|
+
VTextarea: gl,
|
|
1541
1562
|
VTimePicker: yl
|
|
1542
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1563
|
+
}, Symbol.toStringTag, { value: "Module" })), Hn = {
|
|
1543
1564
|
install: (t, e) => {
|
|
1544
|
-
var l,
|
|
1545
|
-
t.use(Sl), (l = e == null ? void 0 : e.registerComponents) != null && l && Object.entries(
|
|
1565
|
+
var l, i;
|
|
1566
|
+
t.use(Sl), (l = e == null ? void 0 : e.registerComponents) != null && l && Object.entries(dn).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));
|
|
1546
1567
|
}
|
|
1547
1568
|
};
|
|
1548
1569
|
export {
|
|
1549
1570
|
ae as Action,
|
|
1550
1571
|
R as ActionDisplayStyle,
|
|
1551
|
-
|
|
1552
|
-
|
|
1572
|
+
Ol as DfActions,
|
|
1573
|
+
Ml as DfCheckbox,
|
|
1553
1574
|
Hl as DfColor,
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1575
|
+
zl as DfDateTime,
|
|
1576
|
+
Gl as DfFile,
|
|
1577
|
+
ql as DfInput,
|
|
1578
|
+
en as DfRtfEditor,
|
|
1579
|
+
an as DfSelect,
|
|
1580
|
+
un as DfTextArea,
|
|
1581
|
+
Hn as DynamicFormsInputs,
|
|
1582
|
+
he as InputBase,
|
|
1583
|
+
W as MessagesWidget,
|
|
1584
|
+
cn as VuetifyComponents,
|
|
1564
1585
|
K as defaultBaseProps,
|
|
1565
|
-
|
|
1586
|
+
xe as defaultDisplayStyle,
|
|
1566
1587
|
j as useInputBase
|
|
1567
1588
|
};
|
|
1568
1589
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|