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