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